Commit Graph

14353 Commits

Author SHA1 Message Date
二货机器人
7511b9e8ac
test: replace textarea some test case with testing lib (#35398)
* test: replace textarea some test case with testing lib

* test: full process

* test: mv input test to input scope

* test: fix lint
2022-05-06 11:48:18 +08:00
MadCcc
7f6e4492a0
feat: Dropdown support autoFocus (#35391)
* feat: Dropdown support autoFocus

* chore: add bundle size
2022-05-05 16:45:07 +08:00
vagusX
ce1fc29bd7
fix: use less variables for Segmented (#35387) 2022-05-05 14:09:27 +08:00
Cooper Veysey
d8ab5a5771
Resolve Ant Design Notification component TypeScript error via adding maxCount as an ArgsProps property (#35369) 2022-05-05 14:06:57 +08:00
Yanlin Jiang
10596d9604
fix: Respect user provided space item key (#35344) 2022-05-05 13:46:52 +08:00
lalalazero
6c0f67e407
fix: table column filter reset is not working (#35226) (#35386) 2022-05-05 12:17:15 +08:00
haipeng
a217301cb7
fix: Carousel compatible with vertical property (#35349) 2022-05-05 10:52:41 +08:00
TrickyPi
50d3d99a78
test: migrate part of checkbox tests (#35354) 2022-05-05 10:25:22 +08:00
linqiqi077
44b9ab7e40
test: migrate part of anchor tests (#35371) 2022-05-04 23:14:07 +08:00
一个道士
94e43c4821
refactor: cssinjs for Space component (#35211) 2022-05-04 22:00:39 +08:00
zombiej
bad8be482d fix: Divider vertical style 2022-05-04 20:52:44 +08:00
Zack Chang
85fd0640c5
test: refactor test cases of Space (#35372) 2022-05-04 20:44:37 +08:00
PCCCCCCC
b3e8e2d555
Refactor:Component Tooltip Less to cssinjs (#35340)
* refactor: add basic css layout for tooltip

* style: handle the special mutilte repeat property

* style: complete the custom color style

* style: replace with Logical properties

* style: skip check some logic property

* docs: add FIXME necessary

* chore: adjust bundle size and trigger the preview ci
2022-05-03 22:41:59 +08:00
zombiej
61141cc52c Merge remote-tracking branch 'origin/master' into next 2022-05-03 10:41:16 +08:00
PCCCCCCC
c2741c2c4b
test: transfer part of tooltip test case to testing library (#35362) 2022-05-03 10:40:12 +08:00
Long Hao (龙濠)
c3549f30b2
refactor: icon for cssinjs (#35346)
* refactor: icon for cssinjs

* fix: add skip dep
2022-05-01 19:12:03 +08:00
github-actions[bot]
85707ff36f
chore: auto merge branchs (#35347)
chore: Feature merge master
2022-05-01 10:16:06 +00:00
zombiej
8c6cd540e4 Merge remote-tracking branch 'origin/master' into next 2022-05-01 17:51:45 +08:00
zombiej
2290144b25 test: update test case 2022-05-01 17:50:10 +08:00
zombiej
3e69660e52 chore: merge master 2022-05-01 16:32:08 +08:00
Walid Cherhane
a21da91dcc
style: fix Select tag remove icon position (#35336)
The icon is pushed down a bit
2022-04-30 15:33:19 +08:00
Dreamcreative
4281739d5d
docs: update Tabs component onEdit prop describe (#35271)
* docs: update Tabs component  onEdit prop describe

* docs: update Tabs component  onEdit prop describe

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>
2022-04-30 15:11:41 +08:00
afc163
0658932fa0
Revert "feat: dropdown auto-focus (#35307)" (#35337)
This reverts commit 1ff58d23f0.
2022-04-30 15:10:04 +08:00
afc163
11e69f31eb
fix: Switch disabled color in dark theme (#35332) 2022-04-29 23:29:47 +08:00
lalalazero
1fed15ceeb
test: replace Empty part test with test lib (#35289)
* test: replace Empty part test with test lib

* test: update snapshot case
2022-04-29 23:25:13 +08:00
afc163
e153cf07b0
docs: add instruction about tokenSeparators (#35329) 2022-04-29 21:23:39 +08:00
黑雨
b0a652580a
feat: Form disabled (#35210)
* feat: add form disabled

* feat: add form disabled

* feat: add radio disabled

* feat: update snap

* feat: add test case
2022-04-29 20:48:10 +08:00
Long Hao (龙濠)
32d0067d55
refactor: Anchor cssinjs (#35139)
* refactor: anchor cssinjs

* fix: padding use logical css

* fix: link padding wrong
2022-04-29 17:23:23 +08:00
afc163
9984f0a1e3
style: tweak BreadCrumb link hover color (#35324) 2022-04-29 16:23:42 +08:00
vagusX
409c25b7ce
feat: set proper height for Segmented (#35281) 2022-04-29 15:11:42 +08:00
Dunqing
d7ba815f81
docs: fix form instance type error (#35320) 2022-04-29 14:35:23 +08:00
agarciaguillo
8a06dcbbd9
Added pending filter translations Table locale/es_ES (#35309)
Co-authored-by: Jesús Gallego Irles <jesusgallego@outlook.com>
2022-04-29 10:28:15 +08:00
afc163
3eabcba073
fix: Space duplicated key warning (#35311)
close #35305
2022-04-28 22:23:06 +08:00
afc163
24fa6a1721 docs: update space demos 2022-04-28 20:54:19 +08:00
MadCcc
1ff58d23f0
feat: dropdown auto-focus (#35307)
* feat: dropdown auto-focus

* chore: update rc-tabs
2022-04-28 19:50:33 +08:00
vagusX
eee3b50727
feat: support icon only in segmented (#35256)
* feat: support icon only with segmented

* fix: lint issue

* chore: update

* test: fix

* test: update snapshot
2022-04-28 19:39:52 +08:00
MadCcc
b22aa64884
feat: component path (#35303) 2022-04-28 18:32:33 +08:00
miracles1919
9003b5378f
refactor: replace float with flex of Card (#35278) 2022-04-27 21:43:16 +08:00
afc163
5a6b3ccd98
fix: Table columns sorter a11y experience (#35269)
* Make table sortable columns focusable and keyboard accessible.

* Fix typo.

* Change focus style for sortable table column header from broken outline to color text.

* Update snapshots.

* Change order to fix lint error.

* Add unit test to test sorting with keypress.

* Update components/table/hooks/useSorter.tsx

* chore: improve code style

* style: use focus-visible

* fix: test case

* test: update snapshot

Co-authored-by: Katsiaryna Pustakhod <Katsiaryna_Pustakhod@epam.com>
2022-04-27 16:27:13 +08:00
Sukka
45a19024ab
docs: replace git.io link with the original URL (#35261) 2022-04-27 10:07:16 +08:00
afc163
b793a4e700 test: skip uploadlist test for now 2022-04-26 20:43:10 +08:00
miracles1919
444ce6d384
refactor: replace float with flex of Card (#35236) 2022-04-26 20:35:25 +08:00
afc163
2a79f85036 test: fix upload test case 2022-04-26 19:16:06 +08:00
github-actions[bot]
40379a3e40
chore: auto merge branchs (#35253)
chore: feature merge master
2022-04-26 11:08:58 +00:00
MadCcc
42525ffbdc
test: add menu focus test (#35252) 2022-04-26 18:17:55 +08:00
qyzzzz
8ca52a1dda
fix: input onSearch trigger wrongly (#34844) (#35164)
Co-authored-by: zhangqingyang@mindlinker.com <zhangqingyang@mindlinker.com>
2022-04-26 15:00:48 +08:00
afc163
4a6db91365
style: fix Breadcrumb reset style (#35235)
close https://github.com/ant-design/ant-design/issues/35233
2022-04-26 11:07:57 +08:00
afc163
9169de21f8
fix: argos-ci diff for Upload and Descriptions (#35229) 2022-04-26 10:21:50 +08:00
MadCcc
eed87d6276
chore: remove keyframes declaration (#35231) 2022-04-26 01:00:39 +08:00
github-actions[bot]
ebd86abdd3
chore: auto merge branchs (#35230)
chore: merge master into next
2022-04-25 14:09:05 +00:00
afc163
08d1a71ff4
refactor: Move Upload from less to css in js (#34528)
* refactor: Upload to CSS-in-JS

* chore: clean up outdated code

* chore: add FIXME

* revert useless change of UploadList

* fix: upload animation
2022-04-25 18:46:53 +08:00
xrkffgg
274c1f7fa3
refactor: collpase cssinjs (#35066) 2022-04-25 14:45:26 +08:00
zombiej
c85d9889ab chore: add useWatch test placeholder 2022-04-25 11:20:56 +08:00
二货机器人
b4730281a9
refactor: Dropdown cssinjs support (#35214)
* chore: init

* chore: dropdown style

* chore: more style

* chore: icon style

* chore: more style

* chore: diff shows the cache path

* chore: motion support

* chore: more style

* feat: status

* chore: sub menu style

* chore: all dropdown style

* fix: ts

* chore: update snapshot

* Update components/dropdown/style/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>

* chore: update style

Co-authored-by: MadCcc <1075746765@qq.com>
2022-04-25 10:54:00 +08:00
Camol
bdabee4db4
feat(Typography): copyable text support format (#35219)
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
2022-04-25 09:49:48 +08:00
Camol
6a08a46ecc
fix: upload circle ref (#34379)
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
2022-04-24 20:55:18 +08:00
二货机器人
690608d1c2 test: Replace transfer part test with testing lib (#35216)
* test: Replace transfer part test with testing lib

* chore: clean up
2022-04-24 18:34:40 +08:00
二货机器人
c1831fbf82
test: Replace transfer part test with testing lib (#35216)
* test: Replace transfer part test with testing lib

* chore: clean up
2022-04-24 18:33:57 +08:00
afc163
3d23b809b1
refactor: import css-in-js utils from theme (#35215) 2022-04-24 18:05:08 +08:00
afc163
4ebe262426
refactor: Carousel code style (#35213) 2022-04-24 17:42:36 +08:00
afc163
b25d5f90bd chore: merge master to next 2022-04-24 12:17:49 +08:00
afc163
0efba5f720
docs: add demo link for Menu legacy usage (#35202)
* docs: add demo links for Menu legacy usage

* Update index.en-US.md
2022-04-24 11:24:46 +08:00
afc163
f410b189dc
fix: remove Tabs overflow hidden style (#35195)
close #34021
close #35136
2022-04-23 23:24:30 +08:00
vagusX
1548f44ef8
feat: upgrade rc-segmented v2 (#35187)
* docs: add debug demo for segmented

* chore: update

* feat: upgrade rc-segmented v2

* Update components/segmented/__tests__/index.test.tsx

Co-authored-by: afc163 <afc163@gmail.com>

* Update components/segmented/demo/controlled-two.md

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: afc163 <afc163@gmail.com>
2022-04-23 21:00:05 +08:00
github-actions[bot]
1d6da1a5cc
chore: auto merge branchs (#35190)
chore: merge master to next
2022-04-23 09:34:47 +00:00
Yuyao Nie
a9806a2be0
perf: optimize calculation of filteredKeysIsAllControlled (#35064)
* perf: optimize calculation of filteredKeysIsAllControlled

* fix: ci failure

* fix: modify codes by suggestion
2022-04-23 17:11:52 +08:00
vagusX
78eed85cba
style: Segmented supports rtl styles (#35188) 2022-04-23 16:53:07 +08:00
vagusX
22c10212b6
docs: add debug demo for segmented (#35176)
* docs: add debug demo for segmented

* chore: update

* chore: update
2022-04-23 16:52:48 +08:00
Jefferson Rafael Kozerski
68b2344c7a
fix: code to use @html-selector variable (#35186) 2022-04-23 13:19:02 +08:00
二货机器人
3e5d9be968
fix: Button Group style (#35178) 2022-04-22 22:36:50 +08:00
rendaoer
ad9e2d9a0e
fix: Upload interface generic type (#35158)
* fix:Uplooad组件UploadChangeParam fileList不使用范型

* feat:upload component interface generic test
2022-04-22 22:33:05 +08:00
vagusX
e2cddd68b5
test: fix test in segmented (#35183) 2022-04-22 22:02:50 +08:00
zombiej
eb70223bdb docs: faq about modal. close #35177 2022-04-22 19:30:44 +08:00
zombiej
1a84acb3fb chore: merge master 2022-04-22 18:21:45 +08:00
二货机器人
f8e7cba353
refactor: Simplify Button Group Style (#35175)
* chore: refactor grp with context

* test: Update snapshot

* chore: clean up

* test: fix test case

* chore: clean up

* test: fix test
2022-04-22 17:40:52 +08:00
afc163
e14ec001a1
fix: small/middle table selection dropdown margin issue (#35174)
* fix: small/middle table selection dropdown margin issue

* Update index.less
2022-04-22 16:01:20 +08:00
zombiej
a513051761 docs: Update Dropdown demo 2022-04-22 15:35:10 +08:00
afc163
cf2450e759 fix: small table selection dropdown margin issue (#35173)
close #35167
2022-04-22 15:35:10 +08:00
afc163
9c1ecf0922 fix: small table selection dropdown margin issue
close #35167
2022-04-22 15:35:10 +08:00
zombiej
6a00bddade docs: Update Dropdown demo 2022-04-22 15:33:15 +08:00
PCCCCCCC
a74fdbc911
Refactor:Component Layout Less to cssinjs (#35102)
* refactor: add basic cssinjs strcture

* refactor: add more refactor style

* style: modify more style

* style: keep the code style consistent
2022-04-22 15:00:18 +08:00
afc163
7d822f1b26
fix: small table selection dropdown margin issue (#35173)
close #35167
2022-04-22 14:58:02 +08:00
afc163
8923d59860
fix: small table selection dropdown margin issue
close #35167
2022-04-22 14:16:54 +08:00
zombiej
4607346d3c chore: next merge master 2022-04-22 13:36:51 +08:00
二货机器人
f8d728161c
docs: Update demo with Space (#35172) 2022-04-22 13:35:27 +08:00
MadCcc
3511642337
docs: segmented update (#35171)
* docs: segmented update

* test: fix lint
2022-04-22 12:26:44 +08:00
afc163
8f06430336
fix: DropDownProps => DropdownProps (#35161)
* fix: DropDown => Dropdown

* chore: leave DropDownProps for compatibility
2022-04-21 22:09:59 +08:00
afc163
93b55d5e8c
chore: remove Breadcrumb Dropdown warning (#35162) 2022-04-21 21:34:10 +08:00
zombiej
5646fbbf24 Merge branch 'master' into next 2022-04-21 19:01:34 +08:00
zombiej
15599bb3b8 docs: Add dropdown menu missing keys 2022-04-21 19:01:26 +08:00
zombiej
d416354a75 docs: Update Dropdown basic demo icon 2022-04-21 18:06:31 +08:00
zombiej
3e6817a10a docs: Update Dropdown basic demo icon 2022-04-21 18:05:39 +08:00
MadCcc
a106459dd1
feat: add zoom animation (#35148)
* feat: support Keyframes as 'animationName' value

* feat: add zoom animation

* chore: code clean

* test: fix anim

* chore: move file

* chore: dep clean
2022-04-21 17:28:02 +08:00
zombiej
669f41502e Merge branch 'master' into next 2022-04-21 17:10:29 +08:00
二货机器人
1525ac47fb
chore: bump dropdown with inject mark (#35153) 2022-04-21 17:10:06 +08:00
MadCcc
1d91507a59
feat: support Keyframes as 'animationName' value (#35142) 2022-04-21 02:06:22 +08:00
afc163
cbd4f1b66d
docs: update getContainer of Modal and Drawer (#35141)
close https://github.com/ant-design/ant-design/issues/35124
2022-04-20 23:14:32 +08:00
afc163
255bfddc3f
docs: improve menu usage for items (#35131)
* docs: improve menu usage for items

* test: update snapshot

* docs: update menu title
2022-04-20 22:31:21 +08:00
Long Hao (龙濠)
959049f03e
refactor: BackTop cssinjs (#34882)
* feat: finish half

* feat: next-backtop finish

* fix: delete px and add duration

* fix: use genComponentStyleHook and change right to logical css

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
Co-authored-by: 龙濠 <longhao@longhaodeMacBook-Pro.local>
2022-04-20 19:36:59 +08:00
zombiej
566632efa3 docs: Update Menu demo sample 2022-04-20 19:03:39 +08:00
二货机器人
4de07ad102
docs: Add deprecated usage (#35128) 2022-04-20 17:56:11 +08:00
黑雨
b0ad8b6d14
feat: fix menu site (#35127) 2022-04-20 17:38:13 +08:00
黑雨
87a5ddf0be
feat: cssinjs for menu (#34958)
* feat: cssinjs for menu

* feat: merge next

* feat: update for lint

* feat: update for test

* feat: update for style

* feat: update snap
2022-04-20 15:31:04 +08:00
二货机器人
9eae13a968
fix: breadcrumb shows the number (#35123) 2022-04-20 15:26:18 +08:00
二货机器人
c4dab10188
chore: dynamic salt on dev env (#35120) 2022-04-20 15:18:25 +08:00
MadCcc
a5f031175a Merge branch 'master' into next-merge-master 2022-04-20 12:20:20 +08:00
MadCcc
b666bfd3d1
refactor: wrap Spin with FC (#35114)
* refactor: wrap Spin with FC

* chore: code clean
2022-04-20 12:13:11 +08:00
TrickyPi
e8b816e68a
fix(Typography): change less function to less variable in danger style (#35113) 2022-04-20 12:00:16 +08:00
afc163
968df7a0a8 fix: image style check 2022-04-20 11:48:38 +08:00
afc163
756f06c2fe chore: sync master into next branch 2022-04-20 11:30:55 +08:00
zombiej
5dfa8678c0 docs: add input showCount lose focus desc. close #35080 2022-04-20 10:33:42 +08:00
MadCcc
acb21e1848
feat: animation check (#35108)
* feat: animation check

* chore: remove treeNodeFX import
2022-04-20 10:24:24 +08:00
afc163
1349b99122
docs: improve upload demos (#35104)
* docs: improve upload demos

* Update drag-sorting.md
2022-04-20 09:48:26 +08:00
afc163
f180ec6df5
style: Switch background should not be transparent (#35103) 2022-04-20 09:48:18 +08:00
afc163
12d98f9ed6
chore: update snapshot due to rc-trigger bumped (#35106) 2022-04-20 00:16:39 +08:00
afc163
f1f56e3177
chore: fix Spin eslint errors in test (#35105) 2022-04-19 23:37:49 +08:00
nuintun
74b60d22b1
fix: cn menus doc (#35078) 2022-04-19 21:02:06 +08:00
afc163
ea648e7cb6
chore: tweak upload style (#35097)
* chore: tweak upload style

* chore: update snapshot
2022-04-19 20:47:42 +08:00
afc163
37e3e1a83e
docs: update Drawer overview image (#35099)
* docs: update Drawer overview image

* Update index.en-US.md
2022-04-19 20:37:06 +08:00
二货机器人
b8eaecb898
fix: Form in React 18 StrictMode (#35096)
* test: fix with react 18

* fix: Form in StrictMode

* test: clean up

* test: clean up

* chore: bump rc-motion version

* chore: fix test case logic

* test: back of it

* test: back missing test case
2022-04-19 20:06:32 +08:00
PCCCCCCC
9038524376
style: fix the style of progress rendering at the top of component Image PreviewGroup (#35092)
* style: fix the style of progress rendering at the top of component Image PreviewGroup

* style: add debug-demo for top progress countRender
2022-04-19 17:07:57 +08:00
MadCcc
e8991979fd
refactor: picker cssinjs (#35037)
* refactor: picker cssinjs

* feat: cssinjs

* feat: panel style

* refactor: picker status style

* feat: rtl style

* test: fix lint

* fix: fix && selector

* fix: range style

* fix: time panel style

* fix: round arrow style

* fix: style

* fix: ranges

* fix: logical

* chore: comment
2022-04-19 16:54:52 +08:00
Long Hao (龙濠)
eb7f8c7ef1
refactor: change anchor to fc for the cssinjs prepare (#35073)
* refactor: change anchor to fc for the cssinjs prepare

* fix: fix anchor test
2022-04-19 16:44:47 +08:00
PCCCCCCC
d6b230958a
style: fix the problem of inconsistent styles in RTL mode (#35088) 2022-04-19 15:31:08 +08:00
MadCcc
dc4da79638
fix: fixed arrow border radius variables (#35086) 2022-04-19 14:52:55 +08:00
PCCCCCCC
f4411d9393
Refactor:Component Steps Less to cssInJs (#35058)
* refactor: Steps cssInJs add basic structure

* refactor: change Component Steps less into cssInJs

* refactor: ♻️ steps cssInJs code formated

* style: 💄 change Steps cssinjs left and right into Logical Properties

* style: 💄 steps cssinjs add FIXME for number hardcode

* style: 💄 steps cssinjs dismiss useless rtl style

* style: 💄 step cssinjs fix the 'not compatible with RTL mode' warning and fix the style in RTL mode

* style: code formated for FIXME

* style: revert the change about _skip_check_

* style: step cssinjs margin/padding used with Logical properties

* ci: fix lint check

* style: fix the style on RTL

* style: try fix the step subtitle order on RTL mode

* style: optimization the style on RTL and dismiss duplicate styles with logical properties
2022-04-19 11:28:06 +08:00
MadCcc
617449ddd2
test: add cssinjs test (#35077)
* test: add cssinjs test

* test: demoTest test cssinjs

* test: update snapshot

* test: adjust text
2022-04-19 11:27:09 +08:00
zombiej
7f54a459f6 test: Update snapshot 2022-04-18 22:37:28 +08:00
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases (#35026)
* test: React StrictMode

* test: fix Spin test

* chore: wrapper enzyme

* test: fix setState

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: disable part of it

* test: fix test & add placeholder

* test: Use orign enzyme mount

Co-authored-by: zombiej <smith3816@gmail.com>
2022-04-18 21:02:11 +08:00
AliRezaBeigy
1e91a4961c
chore: Compatible for @types/react@18 (#35075)
* chore: Compatible for @types/react@18

* chore: Compatible for @types/react@18
2022-04-18 18:39:23 +08:00
二货机器人
640fe5df09
chore: rc-dialog id unique sync (#35072) 2022-04-18 15:12:06 +08:00
元凛
2154b453a9 docs: update docs version 2022-04-18 11:16:23 +08:00
zombiej
61a6083adf docs: Update useWatch docs 2022-04-18 10:37:12 +08:00
github-actions[bot]
e3d8689643
chore: auto merge branchs (#35053)
chore: sync master into feature
2022-04-17 15:03:29 +00:00
github-actions[bot]
16fb0e88a3
chore: auto merge branchs (#35054)
chore: sync master into next
2022-04-17 15:03:21 +00:00
MadCcc
1c8e499f9c
test: migrate some test case to testing-library (#35062)
* test: migrate some test case to testing-library

* chore: code clean

* test: fix stylelint

* test: test case
2022-04-17 22:36:36 +08:00
MadCcc
e4a87750ac
test: update test cases to testing-lib (#35056) 2022-04-15 23:33:10 +08:00
afc163
cd3471506c test: fix jest snapshot 2022-04-15 23:07:05 +08:00
chensw
9902c21042
fix: Upload pass UploadList prefixCls (#34944)
* fix: pass UploadList prefixCls

* test: <Upload /> should pass <UploadList /> prefixCls

Co-authored-by: chenshanwang <chenshanwang@lianfan.com>
2022-04-15 19:36:38 +08:00
afc163
33c0da0042
style: cleanup upload unused styles (#35052) 2022-04-15 16:54:30 +08:00
afc163
0f0e2f9f43
docs: simplify demo code, #30853 (#35050) 2022-04-15 16:20:56 +08:00
github-actions[bot]
4291c1d121
chore: auto merge branchs (#35049)
chore: merge master into feature
2022-04-15 08:03:26 +00:00
zombiej
c86e8fa0a2 chore: next merge feature 2022-04-15 15:54:13 +08:00
二货机器人
beeaf2d221
docs: More info about useWatch (#35039)
* docs: more about useWatch

* test: Update test case

* docs: more info

* docs: more & more

* feat: add useFormInstance

* chore: add version info
2022-04-15 15:51:09 +08:00
zombiej
a8010d5422 chore: next merge master 2022-04-15 15:44:02 +08:00
zombiej
15597e1a0e test: Update snapshot 2022-04-15 15:39:06 +08:00
MadCcc
9b73058045
refactor: wrap picker with FC (#34994)
* refactor: wrap picker with FC

* chore: code clean

* feat: cast type

* test: fix test
2022-04-15 10:45:20 +08:00
PCCCCCCC
7769ca1271
feat: Image PreviewGroup Support top progress rendering (#35038) 2022-04-14 23:45:16 +08:00
二货机器人
b62e409ad5
feat: Form support useWatch (#35036)
* feat: Support useWatch

* test: update test case

* chore: update snapshot
2022-04-14 20:46:57 +08:00
vagusX
10427f7c3d
Refactor/cssinjs in radio (#34740)
* feat: basic convert to cssinjs

* feat: update

* fix: lint issue

* fix: remove important

* chore: update

* chore: update

* refactor: add optionType for Radio instead of using prefixCls

* fix: use colorPrimaryOutline for  primary-1

* chore: add some comments

* fix: conflict code cleanup

* feat: use motionDurationSlow instead of radioDuration

* chore: update

* chore: update

* fix: use isnert-inline for position left/right

* fix: use css logical properties and values

* fix: padding
2022-04-14 19:14:54 +08:00
二货机器人
67ccf39bd3
fix: Notification & message throw createRoot warning in React 18 (#35030)
* chore: bump notification version

* test: notification test case

* test: more test case

* test: part message test

* test: rest message test

* test: notification config test
2022-04-14 18:09:19 +08:00
afc163
9ed31930e7
chore: remove unused Upload in form styles (#35033)
* chore: remove unused Upload in form styles

* Update Upload.tsx

* Update Upload.tsx

* test: update snapshot
2022-04-14 16:45:00 +08:00
iamkun
c3da183293 update test 2022-04-14 15:40:57 +08:00
iamkun
4b6bcd42c8 update test 2022-04-14 15:35:51 +08:00
iamkun
1ed1a51aab update test 2022-04-14 15:04:06 +08:00
github-actions[bot]
cfc0530e3b
chore: auto merge branchs (#35027)
chore: merge master into feature
2022-04-14 02:57:25 +00:00
王浩
a7c5f6b516
fix(cascader): search result not fill the entire panel (#35019)
Co-authored-by: wanghao <wanghao.wong@bytedance.com>
2022-04-13 21:59:41 +08:00
maxin
3142c10b04
docs(input): use Intl.NumberFormat (#34985)
Co-authored-by: maxin <maxin@growingio.com>
2022-04-13 18:24:12 +08:00
iamkun
d2b0592764 update test 2022-04-13 17:17:28 +08:00
miracles1919
9f0397c585
refactor: cssinjs for Card (#35008)
* refactor: cssinjs for Card

* refactor: remove float skip

* chore: fix lint
2022-04-13 16:22:28 +08:00
iamkun
70acaf4d46 update dayjs locale mapping 2022-04-13 15:27:09 +08:00
iamkun
2804cb843a update test 2022-04-13 14:27:29 +08:00
afc163
d66784ab7e
fix: Spin rotate deg number (#35005)
close #34866
2022-04-13 13:51:36 +08:00
MadCcc
bd6cb95514
fix: arrow radius use fixed value (#34999) 2022-04-13 11:56:04 +08:00
afc163
c421383d02
Update index.en-US.md 2022-04-12 22:25:47 +08:00
afc163
cf44a6bde9
docs: recommend S2 and ProTable in table documentation (#34998)
* docs: recommend S2 and ProTable in table documentation

* Update index.en-US.md
2022-04-12 22:22:01 +08:00
zombiej
9357e7f940 Merge branch 'master' into next-merge-feature 2022-04-12 17:12:59 +08:00
zombiej
9c0fc05beb test: Update snapshot 2022-04-12 17:12:36 +08:00
zombiej
4c127f3822 chore: bump cssinjs 2022-04-12 16:46:19 +08:00
zombiej
d907338d79 chore: merge feature 2022-04-12 15:59:36 +08:00
二货机器人
62233426f3
docs: update faq (#34984) 2022-04-12 14:19:32 +08:00
Hyunseok.Kim
62b221269d
feat: crossorigin attribute of Upload (#34981)
* feat: Add crossOrigin prop to thumbnail image

* feat: Add test cases about crossOrigin prop of Upload component

* doc: Add a description about crossOrigin prop to Upload component manual

* Update components/upload/interface.tsx

Update type definition using React.ImgHTMLAttributes

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: hyunseok.kim <hyunseok.kim@42dot.ai>
Co-authored-by: afc163 <afc163@gmail.com>
2022-04-12 12:03:46 +08:00
zombiej
f11bde4207 docs: Add faq about chrome with upload 2022-04-12 10:58:51 +08:00
LuZhenJie1999
a5e9547b26
feat: add cssinjs of timeline (#34980)
* feat: add cssinjs of timeline

* fix: fix cr problems

* chore: revert unreteated code

* chore: revert unreteated code

* chore: clean code

Co-authored-by: 歆其 <luzhenjie.lzj@antgroup.com>
2022-04-12 00:17:57 +08:00
zombiej
1e35235e6c chore: fix ts demo 2022-04-11 18:32:02 +08:00
zombiej
65cec1458f chore: fix ts 2022-04-11 18:15:03 +08:00
zombiej
85a351ed3b chore: test fix 2022-04-11 18:07:34 +08:00
zombiej
a0d1440050 chore: merge conflict 2022-04-11 17:41:54 +08:00
MadCcc
101865cf7e
fix: statistic token (#34962)
* fix: statistic token

* fix: all components token

* test: fix lint

* chore: code clean

* Revert "chore: code clean"

This reverts commit 2c0e7d6ba3.
2022-04-11 16:04:00 +08:00
二货机器人
688422b490
test: back of coverage (#34964)
* test: fix coverage

* chore: bump bisheng

* chore: clean up

* chore: update deps

* chore: test coverage
2022-04-11 15:32:00 +08:00
afc163
494c55df30
fix: small size of Table style problem (#34963)
close #34949
2022-04-11 13:07:48 +08:00
afc163
77b6a86656
fix: Form layout span 24 usage in responsive mode (#34907)
close #34903
2022-04-11 12:30:47 +08:00
vagusX
ae4e660a05
feat: add new component Segmented (#34319)
* feat: basic implements in antd

* feat: use rc-segmented

* feat: add some demos

* feat: support dark theme

* docs: add more demos

* feat: support `icon` in segmented

* docs: format content

* test: add test cases

* docs: update docs

* chore: update

* fix: lint issues

* style: add border-radius for selected effect

* style: change border-radius-base

* chore: update gitignore

* feat: segmented support block

* chore: update gitignore

* feat: support block

* feat: add test case

* feat: support size

* docs: update demos

* chore: update

* chore: update

* test: update

* style: update colors

* style: hover and focus styles

* doc: add version mark in docs

* fix: style lint issue

* fix: some lint issues

* doc: add version in demo mds

* doc: add version mark before api details

* Revert "doc: add version in demo mds"

This reverts commit 2a9e86f6ffc2331f7d73eae6edac7c889358a838.

* test: only test for thumb appear

* style: update color vars

* style: add transition

* style: text vertial align

* test: update snapshots

* feat: add preview svg and support dark theme

* fix: update test snapshot

* docs: update docs

* fix: remove useless z-index

* build: add 1kb for bundlesize of antd.variable.min.css

Co-authored-by: taian.lta <taian.lta@antgroup.com>
2022-04-11 11:13:16 +08:00
zombiej
9a1d0b5fda Merge remote-tracking branch 'origin/feature' into next 2022-04-11 10:02:57 +08:00
二货机器人
5b8e4e51e9
chore: Compatible for @types/react@18 (#34937)
* chore: bump types def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: free --legacy-peer-deps

* chore: ignore peer

* chore: fix ts logic

* chore: use fork docsearch

* chore: fix demo ts
2022-04-08 22:55:42 +08:00
MadCcc
ab402c1976
refactor: Image migrate to genComponentStyleHook (#34933) 2022-04-08 18:05:50 +08:00
MadCcc
5d6bf9d2df
refactor: List migrate to genComponentStyleHook (#34932) 2022-04-08 17:43:44 +08:00
MadCcc
05643ab9f3
refactor: Drawer migrate to genComponentStyleHook (#34931) 2022-04-08 15:43:28 +08:00
MadCcc
87827c193b
refactor: Descriptions migrate to genComponentStyleHook (#34930) 2022-04-08 15:28:34 +08:00
MadCcc
ef2d66ec42
refactor: Spin migrate to genComponentStyleHook (#34929) 2022-04-08 15:28:24 +08:00
MadCcc
c9dc63df75
refactor: Grid migrate to genComponentHook (#34928) 2022-04-08 15:24:07 +08:00
vagusX
afa4442a10
refactor: add optionType for Radio internally (#34849)
* refactor: add optionType for Radio internally

* fix: lint

* fix: update snapshot

* feat: remove useless condition for RadioGroupContext

* test: add test case for Radio.Button
2022-04-08 15:23:52 +08:00
MadCcc
7392a6d05b
refactor: Skeleton migrate to genComponentStyleHook (#34922) 2022-04-08 14:36:50 +08:00
MadCcc
1a0efc22d1
refactor: Switch migrate to genComponentStyleHook (#34920)
* refactor: Switch migrate to genComponentStyleHook

* test: fix lint

* chore: code clean
2022-04-08 14:36:26 +08:00
MadCcc
32b993feee
refactor: Rate migrate to genComponentStyleHook (#34919) 2022-04-08 11:10:46 +08:00
MadCcc
c0d1359098
refactor: Statistic migrate to genComponentStyleHook (#34917) 2022-04-08 00:18:31 +08:00
MadCcc
a2e6e3cec4
refactor: Badge migrate to genComponentStyleHook (#34916) 2022-04-08 00:18:02 +08:00
MadCcc
662653952e
refactor: Result migrate to genComponentStyleHook (#34915) 2022-04-07 22:25:04 +08:00
MadCcc
41452045e0
refactor: Tag migrate to genComponentStyleHook (#34914) 2022-04-07 22:19:56 +08:00
miracles1919
f581159cb5
refactor: cssinjs for Tabs (#34811)
* refactor: cssinjs for Tabs

* doc: update demo css

* refactor: use genHook

* refactor: add skip check

* fix: remove useless skip

* refactor: remove rootPrefixCls
2022-04-07 22:07:18 +08:00
MadCcc
aa9a36da43
refactor: Popover & Avatar migrate to genComponentStyleHook (#34913) 2022-04-07 21:50:35 +08:00
MadCcc
5d54fa9be5
refactor: Alert migrate to genComponentStyleHook (#34912) 2022-04-07 21:29:50 +08:00
MadCcc
e7c8802c22
refactor: Slider migrate to genComponentStyleHook (#34910) 2022-04-07 20:56:27 +08:00
MadCcc
064edfe22a
refactor: Checkbox & Tree migrate to genComponentStyleHook (#34904)
* refactor: Checkbox migrate to genComponentStyleHook

* refactor: tree migrate to genComponentStyleHook
2022-04-07 18:24:45 +08:00
Albert Zhang
b3e66762d6
fix: skeleton cannot dispaly without children and loading props : Skeleton(...) return nothing (#34872)
* fix: skeleton cannot dispaly without children

* [CodeFactor] Apply fixes to commit 0b4a968

[ci skip] [skip ci]

* fix: update skeleton

Co-authored-by: codefactor-io <support@codefactor.io>
2022-04-07 17:55:30 +08:00
MadCcc
8dd16a1f57
refactor: Carousel migrate to genComponentStyleHook (#34902) 2022-04-07 17:02:54 +08:00
Hamed Mohammadzadeh
d49013468a
fix: not warpper animation for badge RTL (#34899) 2022-04-07 16:15:02 +08:00
MadCcc
c18dea7c2d
refactor: Divider use genComponentStyleHook (#34897) 2022-04-07 14:53:33 +08:00
MadCcc
811c48795a
refactor: affix use genComponentStyleHook (#34896) 2022-04-07 14:53:13 +08:00
MadCcc
821ac5bc97
refactor: select use genHook (#34891)
* refactor: select use genHook

* chore: code clean

* refactor: tree-select support genHook

* chore: code clean

* chore: code clean

* fix: tree style
2022-04-07 12:20:34 +08:00
MadCcc
8cb60ad7f1
feat: provide antCls in token (#34889) 2022-04-07 00:19:37 +08:00
MadCcc
b7c7abfdd4
refactor: form use genHook (#34888) 2022-04-06 22:14:16 +08:00
MadCcc
e5efbee968
refactor: Components based on Input migrate to genHook (#34884)
* refactor: Input base components use genHook

* chore: code style

* chore: code clean
2022-04-06 21:49:30 +08:00
MadCcc
f9b80cbcc3
refactor: provide iconCls in token (#34869)
* perf: provide iconCls in token

* chore: code style

* chore: use import/export type
2022-04-06 12:20:52 +08:00
二货机器人
a67c0d28d3
fix: react 18 test fixing (#34787)
* fix: try fix

* chore: ci

* test: recover

* test: more test case

* test: more and mote

* test: btn test

* fix: react 18 compitable

* chore: more test

* test: all confirm test

* chore: tmp

* chore: test lib

* chore: tmp

* chore: tmp

* test: back of part

* test: back of menu index test

* test: more test

* test: form test

* test: rm IE11 test case

* chore: fix compatible

* chore: clean up

* chore: back of all test case

* test: ignore 18 lines

* chore: remove render test of enzyme in upload

* test: back of IE11 test case to fit 100% coverage

* chore: fix pkg deps
2022-04-06 11:07:15 +08:00
Dzmitry Yarmoshkin
1a8a5ee06f
fix: add aria-checked prop to checkbox (#34862)
* fix: add aria-checked prop to checkbox

* fix: update snapshots

* fix: update aria-checked logic and snapshots

* refactor: change props order

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: Dzmitry Yarmoshkin <dzmitry_yarmoshkin@epam.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-04-06 10:04:09 +08:00
Minh Quy
445e6c6bca
feat: Support ref for Title, Text, Paragraph (#34847)
* feat: Support ref for Title, Text, Paragraph

* feat: Add tests for Title, Paragraph and Text
2022-04-05 13:02:32 +08:00
Tmk
c4ffbff841
fix: set requestId to null after fn was cancelled (#34858) 2022-04-05 13:01:18 +08:00
Daniel Pfeffer
27bb1ea4ae
chore: Update de_DE.tsx (#34836) 2022-04-05 12:37:10 +08:00
Yunwoo Ji
25f8a0ad5f
docs: add size property to progress (#34860) 2022-04-05 12:34:31 +08:00
MadCcc
6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00
MadCcc
d0c4d7b0ec
feat: add useComponentStyle (#34802)
* feat: add useComponentStyle

* chore: auto generic

* feat: add overload

* feat: filter component token

* feat: genComponentStyleHook

* test: fix lint

* feat: button for test case

* chore: code clean

* chore: code clean

* feat: add componentCls into token

* feat: merge token statistic

* chore: code clean

* fix: cache token merge

* chore: code clean

* chore: add comment & rename variables

* chore: code  enhancement

* chore: FullToken<ComponentName>

* chore: clean input

* chore: code clean

* test: fix lint

* feat: inset prefixCls

Co-authored-by: zombiej <smith3816@gmail.com>
2022-04-02 22:55:02 +08:00
Long Hao (龙濠)
bffdf0dee5
refactor: Empty cssinjs (#34842)
* feat: next-empty finish

* fix: add comment and remove type

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
2022-04-02 18:17:14 +08:00
zqran
452c5835ec
feat: Tree switcherIcon prop support render-prop (#34470)
* feat: Tree `switcherIcon` prop support render-prop

* add test for `switcherIcon` render-prop

* change the `switcherIcon` prop type of `TreeSelect`

* fix switcherIcon render-prop condition

* fix switcherIcon
2022-04-01 17:10:38 +08:00
二货机器人
1dc998ace5
docs: Access component use which token (#34827)
* chore: token of it

* chore: not only

* chore: site always can statistic

* chore: shows

* chore: ignore useless coverage
2022-04-01 17:00:12 +08:00
黑雨
ead003a8e6
feat: cssinjs for list (#34739)
* feat: cssinjs for list

* feat: update for style

* feat: update for lint

* feat: update for style
2022-04-01 10:23:34 +08:00
dengqing
4b7c95b445
refactor: descriptions cssinjs (#34786)
* refactor: less move to cssinjs

* feat: move rtl related less to cssinjs

* style: comment style

* fix: remove all hashIds expecting root hashId

* docs: add hard code in v4

* refactor: rtl support switched to logical properties

* refactor: shorthand rtl className

* styles: style invalid

Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>
2022-03-31 17:11:44 +08:00
miracles1919
550f60ff76
docs: update draggable demo with rtl mode (#34785)
* docs: update draggable demo with rtl mode

* test: update tabs demo snapshot
2022-03-31 14:06:44 +08:00
JiquanWang99
582df1199b
refactor: migrate the grid from less to cssinjs (#34573)
* refactor: migrate the grid from less to cssinjs

* fix: remove the hashid in col component

* refactor: split the useStyle of grid

* chore: add deps-lint-skip-all

* chore: add a fixme comment

* chore: remove the preset grid sizes in grid
2022-03-31 12:45:41 +08:00
afc163
0edd112d5b
feat: Anchor supports getCurrentAnchor(activeLink) (#34799)
close #34784
2022-03-31 11:17:17 +08:00
afc163
a73629fb85 chore: merge feature 2022-03-31 09:57:33 +08:00
github-actions[bot]
6515d80431
chore: auto merge branchs (#34801)
chore: sync master to next
2022-03-30 14:09:09 +00:00
Yunwoo Ji
f5c6379bba
fix: correct className (#34791) 2022-03-30 16:59:17 +08:00
afc163
c0304cca55
fix: Pagination should display middle size Select when ConfigProvider componentSize is large (#34756)
* fix: Pagination should display middle size Select
when ConfigProvider componentSize is large

close #34744

* fix snapshot
2022-03-30 16:38:08 +08:00
iamkun
4705be920a update test 2022-03-30 15:07:46 +08:00
iamkun
c48a3228ad update test 2022-03-30 14:40:54 +08:00
iamkun
15f5453315 update test 2022-03-30 14:38:11 +08:00
二货机器人
2733977245
chore: React 18 test case (#34781)
* chore: add 18 test

* chore: update test flow

* chore: fail fast

* chore: foce ci

* chore: more if

* chore: test it

* chore: back of it

* chore: master only

* chore: fix spell

* chore: force install

* test: comment 16 tmp

* chore: use react 17

* chore: install 18

* chore: back of 16 & 17
2022-03-30 14:35:43 +08:00
iamkun
f8c93dd4e1 update test 2022-03-30 14:22:45 +08:00
MadCcc
833ff22728
refactor: form cssinjs (#34679)
* refactor: form cssinjs

* fix: use rootPrefixCls

* feat: enhance

* test: update snapshot

* chore: code clean

* refactor: code enhance

* chore: code clean

* feat: add feedback icon style

* fix: padding

* feat: add motion easeout

* fix: explain padding

* fix: style

* chore: code clean

* test: update snapshot
2022-03-30 14:13:36 +08:00
MadCcc
003e27ff4f
fix: mentions status style (#34776)
* fix: mentions status style

* test: update snapshot

* chore: code clean
2022-03-30 14:10:59 +08:00
Peach
25078f4673
refactor: cssinjs for Pagination (#34661)
* refactor: restore marginSM theme alias

* feat: export sm from input style

* refactor: cssinjs for Pagination

* refactor: use updated design token for Pagination

* refactor: update design token for Pagination

* refactor: update changed design token for Pagination

* chore: fixme for Pagination style
2022-03-30 13:54:21 +08:00
iamkun
886d9598d6 update lint 2022-03-30 13:34:27 +08:00
zombiej
c89e33d0b6 test: update snapshot 2022-03-30 11:54:22 +08:00
黑雨
35cb77ade5
feat: cssinjs for skeleton (#34698)
* feat: cssinjs for skeleton

* feat: update for review

* feat: update for style

* feat: update for style
2022-03-29 20:55:44 +08:00
zombiej
2425c019bc chore: merge master 2022-03-29 20:51:03 +08:00
MadCcc
ff02a4e265
docs: replace grid design img (#34771)
* chore: replace grid design img

* fix: code error
2022-03-29 19:46:16 +08:00
二货机器人
d437f9fad9
refactor: More token used on component (#34766)
* chore: add fontSizeIcon

* chore: cascader

* chore: slider token

* chore: slider token

* chore: move to outline

* chore: input style

* chore: input align

* chore: slider full

* chore: align inputNumber

* chore: input token

* chore: input-number token

* chore: mention token

* fix: ts def
2022-03-29 15:57:39 +08:00
MadCcc
c84a7aa7ec Merge branch 'feature' into next-merge-feature 2022-03-29 14:55:39 +08:00
xrkffgg
bc143ca65c
refactor: avatar cssinjs (#34737)
* refactor: avatar cssinjs

* style: format

* fix: group
2022-03-29 13:56:19 +08:00