Commit Graph

445 Commits

Author SHA1 Message Date
afc163
8a64ec6a9e chore: merge branch 2024-11-07 16:51:58 +08:00
Jony J
08a9325182
feat: add a11y test for components demo (#51414)
* test: add accessibility test utilities

* refactor(tests): replace polling with Promise chain for axe test queue management

* test: add a11y test for components demo

* feat: add a11y test utils

* test: add a11y test for components demo

* test: add a11y test for components demo

* chore: remove unnecessary code

* feat: add polyfill for test environment

* test: add a11y test for components demo

* test: add a11y test for components demo

* chore: adjust code style
2024-11-01 11:30:11 +08:00
Jony J
87eb378b78
fix(typo): correct test function name (#51423) 2024-10-30 10:57:53 +08:00
afc163
fa4028beb7
chore: fix emotion style missing in visual diff (#50995) 2024-09-24 22:58:51 +08:00
renovate[bot]
863f61d908
chore(deps): update dependency eslint to v9 (#50690)
Co-authored-by: afc163 <afc163@gmail.com>
2024-09-19 03:30:19 +08:00
Wanpan
742ce37887
feat:🔥New Component: Splitter (#50038)
* feat: SplitPanel init

* feat: SplitPanel update

* feat: SplitPanel update

* feat: splitPanel update useResize

* feat: SplitPanel update

* feat: splitPanel update useResize

* feat: SplitPanel update

* feat: splitPanel demo

* feat: splitPanel update

* feat: splitPanel support complicated combination

* feat: SplitPanel rename to Splitter

* feat: Splitter support onRize

* feat: support collapsible

* feat: support token and collapsible

* feat: update docs

* feat: size defaultSize support string

* feat: min max support string

* feat: update

* feat: support DOM structure

* feat: Optimize UI

* feat: Optimize Code

* fix: Add a default size during initialization to prevent failure to obtain container size

* feat: optimized code

* feat: optimized code

* feat: Optimize Code

* Update components/splitter/demo/layout.tsx

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: Wanpan <wanpan96@163.com>

* Update components/splitter/demo/multiple.tsx

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: Wanpan <wanpan96@163.com>

* docs: update

* feat: Modify the style and optimize the interface

* feat: use PropsWithChildren

* feat: support rtl

* feat: collapsible supports object types

* fix: when collapsible is boolean not work

* feat: Splitter add test

* feat: update

* test: update snapshots

* docs: update

* test: update snapshots

* test: update

* test: update

* test: update

* test: update

* fix: Removed invalid min and max restrictions when collapsible exists

* test: update

* test: update

* test: update

* test: test coverage

* Revert "test: test coverage"

This reverts commit d247193722.

* test: test coverage

* feat: rename

* feat: optimized code

* ci: lint

* feat: optimized code

* feat: add useag tips

* feat: optimized code

* feat: Modify splitbar layout

* feat: optimized code

* feat: numerical precision

* feat: optimized code

* feat: Optimized trigger region

* feat: Support configuration animation

* fix: Fix Collapsible exception when using multiple panels

* fix: Fixed the issue of drag area overlapping when multiple panels are folded

* feat: optimized code

* feat: annotation

* feAt: optimized code

* fix: bgcolor

* fix: Modify the initial value calculation method

* test: update

* feat: add cover image

* chore: adjust logic

* chore: use items size

* chore: rtl

* chore: limit

* chore: controlled

* docs: update demo

* docs: adjust style

* chore: add split style

* chore: hor collapisble style

* chore: collapse icon

* chore: update warning

* chore: clean up

* chore: collapse logic

* chore: adjust demo

* chore: clean up

* test: adjust logic

* docs: update demo

* docs: rm useless demo

* docs: demo

* test: add demo test

* test: test of them

* test: 100% coverage

* chore: fix lint

* docs: update demo

* refactor: unique resize config

* docs: add demo

* fix: support virtual resiable

* chore: add cursor mask

* test: update snapshot

* test: add test case

* test: update snapshot

* chore: use px base

* chore: rm useless code

---------

Signed-off-by: Wanpan <wanpan96@163.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: ice <49827327+coding-ice@users.noreply.github.com>
2024-09-09 19:23:25 +08:00
afc163
0c97a6fa43
test: speed up test workflow (#50346)
* test: faster test.yml

* test: upgrade to node 20

* fix depends

* fix needs

* fix needs

* fix needs

* fix needs

* test: update test.yml

* test: update test.yml

* test: update test.yml

* test: update test.yml

* test: update test.yml

* test: update test.yml

* test: update test.yml

* test: update test.yml

* test: update test.yml

* fix: lib es test

* fix: lib es test

* fix: lib es test

* skip dist test in react lagacy

* Update test.yml

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: afc163 <afc163@gmail.com>
2024-08-11 14:14:06 +08:00
thinkasany
a84279a3aa
docs: fix typos (#49869) 2024-07-15 11:47:01 +08:00
Rubu Jam
1d84cca4e3
fix: issues in imageTest.tsx (#49826)
* chore(deps): removed deprecated `crypto@1.0.1`

* fix: issues in `imageTest.tsx`
2024-07-12 10:28:58 +08:00
afc163
59ad48476b
refactor: add boime lint and fix lint errrors (#49536)
* chore: add boime lint

* fix lint

* use files ignore

* revert change

* ignore clarity.js

* fix some errors

* fix some errors

* fix some errors

* fix some errors

* add yml file

* Update clarity.js

Signed-off-by: afc163 <afc163@gmail.com>

* add npm run lint:biome

* add npm run lint:biome

* fix test case

* fix ts errors

* fix ts errors

* fix lint and add .lintstagedrc

* shorten prop name

* chore: update package.json

* update biome.json

* chore: remove stylelint

* chore: useOptionalChain

* fix lint

* biome format

* prettier all code

* prettier all code

* fix site test

---------

Signed-off-by: afc163 <afc163@gmail.com>
2024-06-22 21:59:12 +08:00
lijianan
7769a40c72
refactor: refactor InputNumber code (#49428) 2024-06-15 19:44:35 +08:00
vagusX
5c54566cdc
fix: padding unit for Progress text-inner (#49250)
Co-authored-by: afc163 <afc163@gmail.com>
2024-06-05 19:08:22 +08:00
lijianan
8b1f79c1f5
demo: update demo type { children: React.ReactNode } => React.PropsWithChildren (#48771)
* demo: update demo type React.ReactNode => React.PropsWithChildren

* fix: fix
2024-05-06 12:04:27 +08:00
lijianan
eb205575a1
docs: update release Date (#48745) 2024-05-03 00:56:50 +08:00
lijianan
13c5801ac1
type: replace any with HTTPRequest (#48737)
* chore: code optimization

* fix: fix

* fix: fix

* fix: fix

---------

Co-authored-by: afc163 <afc163@gmail.com>
2024-05-02 23:40:02 +08:00
lijianan
029cb1dff0
test: rm legacy react-dom/test-utils for compatible React-18.3.1 (#48667)
* test: rm legacy react-dom/test-utils for compatible React-18.3.0

* fix: fix

* chore: cls

* chore: update

* fix: fix
2024-04-28 09:52:54 +08:00
lijianan
b9d90f8299
chore: simplify import expression from package.json (#48602) 2024-04-24 11:06:12 +08:00
二货爱吃白萝卜
c664676cc0
enhance: speedup image snapshot diff (#48487)
* chore: rm useless code

* chore: fix reset logic
2024-04-16 19:07:16 +08:00
叶枫
502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00
afc163
0a18e5ba41
chore: improve publish process (#48264)
* chore: improve publish process by skipping test command (#48230)

* chore: speed up publishing

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: check runs

* chore: skip test

* fix: types

* revert demo change

* fix: script

* chore: fix duplicate parts

* chore: fix duplicate parts

* chore: fix duplicate parts

* improve code

* use latest.hash

chore: download build artifacts from remote

chore: skip build when publish

chore: improve cli log

chore: fix something

chore: fix something

chore: fix something

chore: fix something

chore: fix something

chore: fix upload-build-artifacts

chore: fix needs

chore: fix needs

* chore: check map files

* chore: check package diff before publish

* chore Please use `npm publish` instead

* chore: sort-package-json

* chore: fix needs

* chore: import download process

* fix types

* fix types

* chore: update scripts

* chore: codesandbox ci

* fix token:statistic

* fix token:statistic

* fix ci

* fix ci

* chore: codesandbox ci

* fix ci

* chore: only upload when push to master
2024-04-07 19:14:44 +08:00
叶枫
14a1e6bd51
feat: tsconfig enable strict (#47998)
* feat: tsconfig enable strict

* feat: add no-explicit-any

* feat: strict

* feat: as THEME

* feat: 优化 keys 类型写法

* feat: demo remove any

* feat: as number

* feat: this any

* feat: add eslint

* feat: cascader

* feat: props any

* feat: remove any

* feat: remove any

* feat: any 提示错误

* feat: remove any

* feat: add eslint

* feat: 允许 T = any 存在

* feat: color funciton

* feat: 恢复 lint

* feat: merge master

* feat: as ReactElement

* feat: type
2024-04-01 15:49:45 +08:00
叶枫
e17cd4ae27
test: keep spaces (#47024)
* feat: snap

* feat: up snap
2024-03-22 20:49:55 +08:00
二货爱吃白萝卜
72ee4517f0
refactor: Use native css for measure css line ellipsis (#47597)
* chore: init

* chore: ellpsis check with native css

* docs: all the lines

* chore: move copied btn out

* chore: add dpes

* fix: logic order

* fix: ellipsis event

* test: update testcase

* chore: use native way

* chore: destructure

* chore: fix lint

* chore: fix lint

* chore: fix lint
2024-02-27 16:56:24 +08:00
二货爱吃白萝卜
7104513a84
docs: Support semantic preview (#47332)
* docs: init

* docs: semantic block

* docs: part of demo

* docs: modal

* docs: slider

* docs: space

* docs: all sementic

* docs: clean up

* chore: fix lint

* chore: clean up

* chore: update script

* test: fix test case

* test: update testcase
2024-02-05 11:45:42 +08:00
二货爱吃白萝卜
cdac522053
test: update block logic (#47000) 2024-01-16 22:49:56 +08:00
vagusX
9490179108
ci: enable splitTheme (#46984)
* ci: enable splitTheme

* chore: remove blue border
2024-01-15 17:58:48 +08:00
二货爱吃白萝卜
8ad9f52e46
test: support trigger image (#46935) 2024-01-12 11:57:25 +08:00
lijianan
0b6356d984
chore: rename file .tsx => .ts (#46759)
* chore: rename file .tsx => .ts

* fix: fix

* test: add test case
2024-01-03 08:45:11 +08:00
二货爱吃白萝卜
eff720837c
test: Update image snapshot logic (#46529)
* test: mix snapshot

* test: clean up

* test: fix order

* test: fix test logic

* test: fix reset

* test: refactor code

* test: clean fetch

* chore: lint

* test: clean up

* test: delay check

* chore: refactor fetch

* docs: update diff html

* test: add ssr support

* chore: part use ssr

* chore: update style

* chore: slice of it

* docs: fix cut
2023-12-21 10:30:08 +08:00
vagusX
b2fb234655
ci: compare css-var and css-in-js to the same css-in-js png in master (#46416) 2023-12-13 12:42:24 +08:00
vagusX
48d430dff7
ci: better naming for test-image snapshot filename (#46369) 2023-12-10 19:58:23 +08:00
vagusX
379a7692f9
ci: shorten image-test snapshot name (#46313) 2023-12-07 17:19:47 +08:00
MadCcc
c4b8c9df93
refactor: genStyleHooks (#46038)
* refactor: genStyleHooks

* chore: update sciprt

* refactor: affix

* refactor: select

* chore: update

* refactor: update

* refactor: update

* refactor: done

* chore: code clean

* chore: code clean

* chore: fix lint

* chore: decrease size limit

* chore: code clean

* chore: code clean

* chore: remove export
2023-11-29 17:23:45 +08:00
lijianan
cc5724481c
Merge branch master into master-merge-feature 2023-11-28 07:58:49 +08:00
MadCcc
5012049923
chore: add ci to test antd.min.js (#46108)
* chore: add ci to test antd.min.js

* chore: update

* chore: update

* chore: update

* chore: code clean
2023-11-27 21:37:32 +08:00
MadCcc
80e46b7662
chore: enable cssVar in imageTest (#45985)
* chore: enable cssVar in imageTest

* fix: tree select style

* chore: fix avatar group style

* fix: cascader panel style

* fix: form style

* fix: slider disabled style

* fix: mentions style

* fix: tag style

* fix: tabs style

* fix: Rate style

* fix: table custom token

* chore: update snapshot

* fix: menu style

* fix: InputNumber style

* chore: recover image test

* chore: add css var image test
2023-11-22 20:53:48 +08:00
叶枫
923aaba047
chore: add lodash eslint (#45627) 2023-11-02 15:10:56 +08:00
github-actions[bot]
f3a4b6c429
chore: auto merge branches (#44915)
chore: merge master into feature
2023-09-17 16:08:27 +00:00
lijianan
a0699ea1a0
type: fix .dumi type error (#44916) 2023-09-17 23:32:14 +08:00
kiner-tang(文辉)
4717b5c649 Merge branch 'master' into feature-merge-master 2023-09-16 11:11:47 +08:00
lijianan
1e0c3b8c58
🔥feat: new component Flex (#44362)
* feat: new component Flex

* feat: new component Flex

* fix: fix

* test: add test case

* fix: fix

* update size-limit

* test: update snap

* fix: fix

* test: update snap

* chore: add use client

* fix: lint

* test: update snap

* fix

* docs: add docs

* fix: fix demo

* clear

* demo: update demo

* update demos

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* test: update snap

* fix: fix

* fix: fix

* demo: update demo

* feat: CP

* fix: use token

* fix: fix

* fix: fix test case

* test: update snap

* Update components/flex/style/index.ts

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/flex/demo/align.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* demo: update demo

* fix: fix

* docs

* update cover

* fix: fix

* test: update case

* fix: rerun CI

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* demo: update demo

* fix: fix lint

* fix: fix

* fix: fix

* fix: fix

* fix:  fix

* fix: fix test case

* fix: fix

* docs: update docs

* fix: fix

* chore: fix

* chore: fix

* docs: update docs

* docs: update

* fix: fix demo

* type: update type

* add debug demo

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: 栗嘉男 <mac@macdeMacBook-Pro.local>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-09-14 17:04:05 +08:00
MadCcc
afcdc3fbe2
chore: try to fix screenshot (#44817)
* chore: try to fix screenshot

* chore: set small viewport

* chore: rm wait until

* chore: minimize demo

* chore: support onlyViewPort

* chore: better logic

* chore: config demos

* chore: update

* refactor: rename

* chore: update

* chore: update

* chore: update
2023-09-14 16:59:11 +08:00
MadCcc
0cb23a8004
chore: try to fix pupppeteer screenshot (#44760) 2023-09-11 15:38:35 +08:00
Dunqing
f0c105d262
feat: insert use client automatically at compilations instead of hardcode (#44608)
* feat: remove the hardcode of `use client`

* chore: update `@ant-design/tools`

* test: update

* fix: incorrect dictionary

* chore: update dep

* ci: check use client

* chore: update ci

* fix: should be LIB_DIR

* ci: should only run in dist

* chore: update check tsx files
2023-09-04 19:27:20 +08:00
afc163
54316f719c
test: disable timeout for puppeteer waitForSelector (#44611) 2023-09-04 17:58:51 +08:00
MadCcc
ddfe37a14e
docs: bump theme-editor (#44171)
* chore: fix plugin antd import

* chore: code clean

* chore: fix image test

* chore: fix image test
2023-08-11 19:37:53 +08:00
二货爱吃白萝卜
700cb6af8a
docs: simplify with regex of component log (#43995) 2023-08-03 16:30:55 +08:00
二货爱吃白萝卜
28051ebe91
docs: Component page support history log (#43974)
* chore: init

* chore: update logic

* chore: update logic

* docs: update doc

* docs: fix all

* docs: fix all

* chore: add public path

* chore: write file

* docs: en

* docs: all

* chore: adjust

* feat: changelog

* docs: fix changelog

* chore: update script

* chore: fix lint

* chore: fix lint

* docs: update doc check logic

* docs: update changelog

* docs: update changelog

* test: update test case

* test: update test case

* test: update snapshot
2023-08-03 10:58:38 +08:00
MadCcc
7829ff9f2c
chore: make puppeteer screenshot wait (#43978)
* chore: make puppeteer screenshot wait

* chore: use waitForSelector

* chore: update
2023-08-03 10:39:16 +08:00
二货爱吃白萝卜
5d3b45551d
test: snapshot of demo warning message (#43947)
* test: init of test

* test: update snapshot

* test: update snapshot

* chore: adjust size limit

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update snapshot

---------

Co-authored-by: lijianan <574980606@qq.com>
2023-08-02 14:20:13 +08:00