Commit Graph

14285 Commits

Author SHA1 Message Date
afc163
8d05774053
fix: Skeleton active style in dark theme (#36116)
close #36114
2022-06-19 14:22:52 +08:00
C. T. Lin
ef286d5eb4
fix: exporting UploadFile from upload (#34733) 2022-06-17 21:34:12 +08:00
afc163
4fe88a5577
docs: add locale link in Calender (#36108)
close https://github.com/ant-design/ant-design/issues/36107#issuecomment-1158630726
2022-06-17 17:41:01 +08:00
yykoypj
96ccdfedf1
test: change to fakeTimer when error happens sometimes (#36102) 2022-06-17 15:07:32 +08:00
二货机器人
63fc5055f9
fix: Table customize filterDropdown with Menu should not block default selectable (#36098)
* fix: Table customize Menu should be selectable

* test: Add test case

* test: Update snapshow
2022-06-17 14:37:18 +08:00
Jaylan
f19cf66c88
fix: Typescript - Tree component DirectoryTreeProps, missing Node Type (#36092)
* fix: edit DirectoryTreeProps

* test: add DirectoryTree type test

* fix: edit type

Co-authored-by: JaylanChen <JaylanChen@126.com>
2022-06-17 11:37:57 +08:00
C. T. Lin
89717f1b0f
fix: exporting RefSelectProps from select (#34732) 2022-06-17 09:52:56 +08:00
C. T. Lin
853a04ddce
fix: exporting Rule, FormListFieldData, FormListOperation from form (#34735) 2022-06-17 09:51:36 +08:00
yykoypj
83eb5e5a35
test: move test cases to @testing/library for Upload (#36024)
* test: move test cases to @testing/library for Upload

* refactor: use jest.fn to replace done logic

* test: sample of moving test to testing lib

* test: check for 17

* refactor: manual control timer for React18

* refactor: animateEnd for useless middle state snapshot for 'handle error'

Co-authored-by: zombiej <smith3816@gmail.com>
2022-06-16 23:29:04 +08:00
二货机器人
34dfb808ad
feat: Form support setFieldValue (#36058) 2022-06-15 17:30:10 +08:00
Humble
0e6e1c047d
fix:when props.value is not undefined, can't reset value and focus (#34728)
* fix: when props.value is not undefined, can't reset value and focus

* test: add test case

Co-authored-by: MadCcc <1075746765@qq.com>
2022-06-15 14:51:30 +08:00
Yuki Zhang
6195376bd0
test: move test cases to testing lib for Badge (#36033) 2022-06-15 10:43:56 +08:00
Yuki Zhang
88858c7888
test: improve test cases for Statistic (#36034) 2022-06-15 10:38:11 +08:00
MadCcc
147468a69c
fix: fix incorrect form status with noStyle (#36054)
* fix: form status

* test: update test case
2022-06-15 00:09:31 +08:00
kalykun
524c93642c
docs: fix demos (#36040)
* docs: fix demos

* ++
2022-06-14 14:58:06 +08:00
MadCcc
e3974850fa
fix: Radio.Group focus and blur should work (#36041) 2022-06-14 14:00:33 +08:00
afc163
c72c70024e
docs: fix menu API table (#36043)
* docs: fix menu API table

* Update index.en-US.md
2022-06-14 11:08:16 +08:00
csr632
29565273cb
docs: title is no loger supported by SubMenuType (#36037) 2022-06-14 11:04:18 +08:00
dingkang
52b049d170
test: replace Table part test with test lib (#35989)
* test: replace Table part test with test lib

* test: replace table test with test library

* test: update snapshot

* test: replace last mount

* test: fix 18 testing

Co-authored-by: zombiej <smith3816@gmail.com>
2022-06-13 11:26:16 +08:00
Yuki Zhang
3f822ac43f
test: move test cases to testing lib for Statistic (#36019)
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-13 09:05:49 +08:00
Taisuke Hinata
f93480a61d
docs: fix onChange description repeated twice (#36013) 2022-06-12 18:29:40 +08:00
苯苯
961383fa0c
fix: missing semicolon (#36008) 2022-06-11 15:10:03 +08:00
苯苯
c7638a9294
fix: Fixed the getContainer property in Image not reading the settings in ConfigProvider (#36002)
* fix: 35942

* test: 添加测试用例

* fix:

* fix:
2022-06-11 13:54:50 +08:00
二货机器人
c7aa754efe
chore: update ts config (#36000) 2022-06-10 20:35:28 +08:00
苯苯
a86feb702e
fix: DropdownProps definition (#35990)
Co-authored-by: jhonebee <zhangjin19960908@gamil.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2022-06-10 17:59:26 +08:00
muxin
f2a5d2f881
fix: Button has no disabled style when link type (#35975)
Co-authored-by: MadCcc <1075746765@qq.com>
2022-06-10 17:58:58 +08:00
二货机器人
66c3639ed4
chore: bump rc-dialog version (#35969)
* chore: bump rc-dialog version

* chore: trigger

* chore: trigger

* docs: RM peer conflict demo

* chore: bump deps version

* chore: bump ver

* chore: bump

* chore: bump

* chore: test

* chore: rm peer

* chore: clean all peer

* chor: bump rc-image
2022-06-10 17:06:07 +08:00
afc163
74287acd0a chore: fix typo 2022-06-10 13:35:42 +08:00
XIN HU
4fd49a8f7f
docs: Segmented API type (#35974)
* Update index.en-US.md

* Update index.zh-CN.md
2022-06-09 21:39:35 +08:00
Umberto Gariggio
4c0ac91f48
chore: Update it_IT.tsx (#35970)
Fix italian translation for Table.cancelSort key
2022-06-09 19:15:51 +08:00
yykoypj
cfc790d6fe
test: move test cases to @testing/library for Typography (#35955)
* test: move test cases to @testing/library for Typography

* fix: waitFor for tooltip test

* fix: sleep to wait copy hide

* test: refactor focus test
2022-06-09 18:09:43 +08:00
Christian Lechner
da9324fe63
Fix color generation for grey colors (#35954)
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-09 15:11:15 +08:00
龙风
e5ed96d6d4
chore: fix code (#35949) 2022-06-09 11:47:02 +08:00
MadCcc
c56bb2bb0f
fix: cubic-bezier should be animation-timing-function (#35943) 2022-06-08 11:06:50 +08:00
MasaoBlue
d099dea28b
fix: menu items typings (#35790)
* Fix menu items typings

* add test case for menu item type checking
2022-06-08 10:25:49 +08:00
Yuki Zhang
c0389d200a
test: move test cases to testing lib (#35900) 2022-06-08 09:57:09 +08:00
Yuki Zhang
08a9c0b7f8
test: move test cases to testing lib (#35909) 2022-06-08 09:56:50 +08:00
二货机器人
771836cbc0
test: refactor tree with testing lib (#35937)
* test: tree test

* test: clean up

* chore: bump rc-tree

* test: Update snapshot

* test: Update for react 18
2022-06-07 21:04:47 +08:00
dingkang
dfd1897063
test: replace test case with test library (#35925)
* test: replace test case with test library

* test: replace test case with test library

* test: update snapshots
2022-06-07 10:14:32 +08:00
MadCcc
1f080c299e
fix: Form.Item noStyle should not be affected by parent Form.Item (#35849)
* fix: Form.Item noStyle should not be affected by parent Form.Item

* test: update snapshot

* fix: status

* chore: code clean

* fix: modal and drawer

* test: fix lint

* chore: code clean

* refactor: noFormStyle

* chore: code clean

* revert: revert change in Form.Item

* chore: code clean
2022-06-06 23:39:00 +08:00
MadCcc
6e04120265
docs: fix tree demo (#35927) 2022-06-06 23:23:11 +08:00
zombiej
d56ba7062f chore: bump bundle size of babel runtime 2022-06-06 18:57:00 +08:00
zombiej
2d7122ce8e Merge remote-tracking branch 'origin/feature' into master-merge-feature 2022-06-06 18:55:54 +08:00
Heaven
4dd6fcaf99
Feat: support 'treeExpandAction' prop for TreeSelect (#35618)
* Feat: support 'treeExpandAction' prop for TreeSelect

* chore: bump rc-tree

* chore: fix lint

* fix: fix directory tree duplicate expandAction

* fix: fix directory tree duplicate expandAction

* fix: fix directory tree duplicate expandAction

* chore: add docs

Co-authored-by: zombiej <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-06 18:44:58 +08:00
Shang Song
22c8bc4c7a
test: migrate part of Affix tests (#35860) 2022-06-06 17:49:55 +08:00
Luobo Zhang
b29d749a71
test: migrate part of Button tests (#35869) 2022-06-06 17:33:42 +08:00
kalykun
7bb5a7a563
docs: correct types (#35919)
* docs: correct types

* ++

Co-authored-by: afc163 <afc163@gmail.com>
2022-06-06 16:28:00 +08:00
MadCcc
d1de6d9a40
fix: remove important in radio style (#35920)
* fix: remove important in radio style

* chore: code clean
2022-06-06 15:44:23 +08:00
元凛
ebe9c3c7f3 docs: add typography format version 2022-06-06 14:35:53 +08:00
chenxiang
c9145d7051
fix: 类型“FormListFieldData”上不存在属性“fieldKey”。(#35883) (#35884)
* fix: 类型“FormListFieldData”上不存在属性“fieldKey”。(#35883)

* add deprecated tag to fieldKey

* add changelog

* Revert "add changelog"

This reverts commit 2cc174f633.
2022-06-06 14:26:16 +08:00
github-actions[bot]
2c1d5120b5
chore: auto merge branchs (#35910)
branch: merge master into feature
2022-06-06 03:37:12 +00:00
yykoypj
1bae50c6be
fix:border-style for inputNumber addon when rtl (#35876) 2022-06-02 19:36:10 +08:00
MadCcc
77823c5932
feat: tabs support popupClassName (#35892)
* feat: tabs support popupClassName

* docs: update
2022-06-02 19:31:27 +08:00
Luobo Zhang
a5074efcb0
refactor: Wave in React 18 StrictMode (#35889) 2022-06-02 18:39:32 +08:00
MadCcc
a5d8db0368
refactor: pagination mini className (#35881)
* refactor: pagination mini cls

* test: update snapshot

* test: update snapshot

* chore: code clean

* chore: code clean

* test: update snapshot

* test: update snapshot
2022-06-02 17:26:41 +08:00
郑国庆
6e55310fca
test: replace Input part test with test lib (#35754)
* test: replace Input part test with test lib

* test: test input case

* test: update textarea case

Co-authored-by: z1399 <zhenggq@dtdream.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-02 16:28:22 +08:00
二货机器人
8b27d06eaa
chore: stlye patch of statistic (#35874)
* chore: stlye patch of statistic

* test: Udpate snapshot
2022-06-02 11:36:03 +08:00
afc163
2113c25664
feat: Progress steps support custom strokeColor for each step (#35855)
* feat: <Progress steps /> could accept string[] as strokeColor

close #35852
close #26858

* fix: tsx demo

* docs: add version column
2022-06-01 23:00:03 +08:00
afc163
792d23036c test: update snapshot 2022-06-01 19:24:56 +08:00
afc163
6423e22f78 chore: merge feature 2022-06-01 18:28:31 +08:00
叶枫
c3fc5db788
fix: drawer close twice children is undefined (#35853)
* fix: drawer close twice children is undefined

* fix: drawer close twice children is undefined

* chore: code

* fix: test
2022-06-01 16:46:55 +08:00
zombiej
81a2b2dd06 chore: bump rc-dialog & update snapshot 2022-06-01 15:02:36 +08:00
yykoypj
7dc56e3f00
test: move test cases to @testing/library for List (#35850) 2022-06-01 13:45:51 +08:00
afc163
d13f02a89f
style: tweak Skeleton margin top style (#35848) 2022-06-01 13:14:05 +08:00
slotDumpling
1251a4e775
perf: active skeleton animated with transform (#35836)
* active skeleton animated with transform

* properties order fixed

* properties order fixed

* properties order fixed

Co-authored-by: afc163 <afc163@gmail.com>
2022-06-01 12:13:09 +08:00
yykoypj
166100ee1b
test: move test cases to @testing/library for Drawer (#35839) 2022-06-01 09:40:25 +08:00
MrHadEnough
cfd25f9650
docs: fix typo of Menu items code example (#35832) 2022-05-31 21:05:53 +08:00
afc163
6ced6c33f4
fix: Progress type="line" strokeLinecap (#35822) 2022-05-31 13:42:53 +08:00
Yuki Zhang
b46e839a5f
test: move test cases to @testing/library for Modal (#35785)
* test: move test cases to @testing/library for Modal

* update

* fix: test

* test: add test case for mouse position

* chore: revert
2022-05-31 10:29:13 +08:00
二货机器人
99c16aa8d6
refactor: Fix Dropdown nesting menu injection logic (#35810)
* refactor: Dependency Inversion

* test: update snapshot

* test: Update snapshot

* test: more

* fix: table dropdown logic

* fix: menu lint
2022-05-30 19:06:51 +08:00
yykoypj
8281c064cf
test: move test cases to @testing/library for Image (#35806) 2022-05-30 13:47:13 +08:00
yykoypj
f64291689c
test: move test cases to @testing/library for Tabs (#35796) 2022-05-29 22:50:31 +08:00
afc163
596d24e4e5 Merge branch 'feature' into master-merge-feature 2022-05-29 20:21:51 +08:00
Gabriel Haruki
363e077298
docs: add note to custom BackTop demo (#35625)
* docs: add note to custom BackTop demo

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>
2022-05-28 15:31:13 +08:00
Long Hao (龙濠)
e7393ee97e
test: Replace card component test with testing lib (#35751)
* test: Replace card component test with testing lib

* test: update the snapshot
2022-05-28 14:47:29 +08:00
二货机器人
9578f06a3b
refactor: bump rc-collapse to stable dom (#35781)
* chore: bump rc-collapse to stable dom

* chore: clean up
2022-05-27 23:18:36 +08:00
zombiej
bd2b726199 chore: feature merge master 2022-05-27 16:13:19 +08:00
二货机器人
7a8fce504e
refactor: Collapse replace expandIconPosition with logical position (#35770)
* refactor: change collapse to logic position

* test: Update snapshot

* chore: force trigger CI
2022-05-27 16:07:32 +08:00
MadCcc
d797dfc0ff
docs: fix skeleton demo (#35760) 2022-05-26 23:33:46 +08:00
Long Hao (龙濠)
c644371533
fix: the ts wrong of card inteface (#35753)
* fix: the ts wrong of card inteface

* fix: add export cardproprs

* feat: add card type test
2022-05-26 20:50:16 +08:00
二货机器人
1ed1fda421
feat: Config provider pagination showSizeChanger (#35750)
* feat: support showSizeChanger

* test: test case
2022-05-26 17:14:05 +08:00
zhao-huo-long
1fda3ece9e
docs(select): fix type (#35726)
* fix: demo ts type

* mend

* Update select-users.md
2022-05-25 21:10:07 +08:00
社长长
990a602636
test: Replace alert part test with testing lib (#35736)
Co-authored-by: chenkan1 <chenkan1@huya.com>
2022-05-25 20:31:36 +08:00
MadCcc
303c9884cb
docs: componentDisabled version (#35730) 2022-05-25 15:30:17 +08:00
MadCcc
414f049697
feat: config provider support componentDisabled (#35718)
* feat: config provider support componentDisable

* test: update snapshot

* docs: update

* chore: code
2022-05-25 14:57:58 +08:00
MadCcc
6c0d45a220
fix: Popover arrow style (#35717) 2022-05-25 14:01:29 +08:00
MadCcc
e9e2d18121 Merge branch 'master' into feature-merge-master 2022-05-25 11:03:13 +08:00
叶枫
5e5ad935a4
fix: drawer can not ref form instance when open (#35706)
* fix: drawer can not ref form instance when open

* fix: test

* feat: div ref

* feat: test

* feat: test

* feat: test

* feat: test
2022-05-25 10:50:12 +08:00
Niyaz Akhmetov
56bcd1ee9f
docs: fix mistype (#35714) 2022-05-24 22:33:22 +08:00
vagusX
95f56f6d20
fix: division in less for Segmented (#35701)
* fix: division in less for Segmented

* fix: update
2022-05-24 14:50:43 +08:00
二货机器人
8a6874cba3
refactor: align with popover (#35676) 2022-05-23 15:41:59 +08:00
zombiej
23c4e1cff5 test: Update snapshot 2022-05-23 14:53:04 +08:00
zombiej
f58efe9b32 chore: merge master 2022-05-23 14:37:16 +08:00
Zack Chang
042c718976
test: refactor test cases of Timeline with testing library (#35654)
* test: refactor test cases of TimeLine

* fix: lint errors
2022-05-20 19:47:36 +08:00
dingkang
8af11c6ef5
docs(mentions): fix debounce demo bug (#35653) 2022-05-20 15:34:02 +08:00
黑雨
905eada4a4
test: improve Select test case (#35633) 2022-05-20 12:18:27 +08:00
dingkang
40e3d7a053
docs: Convert part demo to ts version (#35641)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue

* docs(modal): replace class component with hooks

* docs(pagination): replace class component with hooks

* docs(popconfirm): replace class component with hooks

* docs(popover): replace class component with hooks

* docs(progress): replace class component with hooks

* docs(rate): replace class component with hooks

* docs(radio): replace class component with hooks

* docs: jsx to TS demo
2022-05-19 20:02:56 +08:00
黑雨
370960ed6d
feat: add-testing-lib (#35626) 2022-05-19 16:27:24 +08:00
yykoypj
10964f158c
fix: incorrect position of picker popup (#35620)
Co-authored-by: yangpj17 <yangpj17@chianunicom.com>

close #35590
2022-05-19 11:15:07 +08:00
vagusX
dd0b9d91ed
test: move test cases to @testing/library for Result (#35621) 2022-05-19 10:18:17 +08:00
Bart Piotrowski
4bccb9985a
fix: Remove Grid row and cell aria roles (#35616)
close https://github.com/ant-design/ant-design/issues/35549
2022-05-19 10:05:40 +08:00
章鱼
7fd093bd0a
docs: feat components TS demo (#34742)
* docs: add general components TS demo

* docs: add layout components TS demo

* docs: add navigation components TS demo

* docs: add data entry components TS demo

* chore(deps): add types for qs

* docs: add data display TS demo

* docs: add feedback components TS demo

* docs: add other components TS demo

* chore(deps): add types

* docs: unified demo code style

* docs: fix lint error

* docs: add demo TS type

* docs: fix demo TS type

* test: update snapshot

* docs: fix TS demo

* feat: update Rate character type

* docs: fix lint error

* feat: update Rate character type

* feat: update Rate character type
2022-05-19 09:46:26 +08:00
dingkang
e5b09aa879
docs: replace class component with hooks (#35613)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue

* docs(modal): replace class component with hooks
2022-05-18 19:29:01 +08:00
joson
c52f19ac46
style: anchor text is overwritten (#35612)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-05-18 18:21:22 +08:00
zombiej
5e910e74c1 docs: Fix DatePicker throw demo 2022-05-18 17:25:40 +08:00
MadCcc
6817db7b52
feat: table rowSelection.onChange support type (#35598)
* feat: table rowSelection onChange support method

* docs: update

* chore: rename param

* test: update

* test: update
2022-05-18 11:59:00 +08:00
Amumu
b222f93cc5
feat: add a new locale tk_TK (#35605)
* feat: add a new locale tk_TK

* fix: fix moment locale
2022-05-18 11:20:53 +08:00
github-actions[bot]
0b780574ae
chore: auto merge branchs (#35597)
chore: feature merge master
2022-05-17 11:42:21 +00:00
afc163
f9f3a0e604
style: fix Table header border when has rowSpan (#35591)
close #35577
2022-05-17 18:19:17 +08:00
dingkang
196a4351e3
docs: replace class component with hooks (#35580)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue
2022-05-17 10:19:38 +08:00
joson
bcc3274260
chore: delete extra spaces (#35582)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-05-16 21:10:20 +08:00
github-actions[bot]
91181c5b56
chore: auto merge branchs (#35572)
chore: feature merge master
2022-05-16 09:03:24 +00:00
二货机器人
3d21ec54e2
refactor: reduce empty cycling deps (#35570)
* chore: rm in root

* chore: fix ts

* test: Update snapshot

* chore: ignore part
2022-05-16 16:34:42 +08:00
叶枫
644e4bfc6a
fix: drawer close speed (#35339)
* fix: drawer close speed

* chroe: snap

* chroe: test

* chroe: test

* feat: remove file

* feat: 重新整理

* feat: forceRender

* feat: snap

* chroe: test

* chroe: test

* chroe: test

* feat: create event

* feat: diff code

* feat: forceRender

* chore: test (#35364)

* Update components/drawer/index.tsx

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

* feat: remove load state

* feat: test

* fix: destroyOnClose

* feat: add load

* fix: update snap

* fix: update snap

* feat: reset test

* feat: docs

* feat: test

* feat: test

Co-authored-by: afc163 <afc163@gmail.com>
2022-05-16 10:14:26 +08:00
afc163
46df154ce4
chore: deprecated rowSelection.onSelectNone and onSelectMultiple (#35545) 2022-05-14 16:41:34 +08:00
dingkang
58df74c38e
docs: replace class component with hooks (#35519)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error
2022-05-14 16:40:42 +08:00
二货机器人
f56e66a262
fix: Picker focus & blur not working (#35552) 2022-05-14 16:34:35 +08:00
vagusX
e629b39c20
test: moving to testing-library in Segmented (#35538)
* test(Segmented): moving to testing-library

* chore: cleanup

* fix: test

* test: use click instead of change to fire event

* Update index.test.tsx
2022-05-13 22:00:01 +08:00
Yuki Zhang
0846d4fce7
refactor: modal confirm button style (#35530)
* fix: modal rtl style

* fix: cannot use logic css

* chore: change css writing order
2022-05-13 14:40:56 +08:00
github-actions[bot]
0d8fa8d1dd
chore: auto merge branchs (#35532)
chore: feature merge master
2022-05-13 03:59:13 +00:00
MadCcc
d4f23bae2a
refactor: Card loading (#35525)
* feat: card loading with skeleton

* test: update snapshot

* test: add style deps

* chore: import
2022-05-13 11:32:40 +08:00
二货机器人
d7cdd88e3a
test: Update snapshot (#35529) 2022-05-13 10:57:10 +08:00
zombiej
e8d9c42565 test: Update snapshot 2022-05-13 10:14:09 +08:00
ty888
debd7f3496
fix(statistic): ignore the decimal part when the precision is negative (#35520) 2022-05-13 00:47:20 +08:00
MadCcc
b11cf22dd3 test: update snapshot 2022-05-12 23:23:51 +08:00
MadCcc
2d70027f45 Merge branch 'master' into feature-merge-master 2022-05-12 15:56:18 +08:00
dingkang
be2b0d8a6e
docs: replace class component with hooks (#35500)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks
2022-05-11 19:43:54 +08:00
limingxin
765bc1effc
docs: Table QA about rowSelection renderCell (#35494)
* Update index.zh-CN.md

之前需要在 可选列的勾选框 中增加 Tooltip,没有在文档中找到相关的文档,通过搜索 issue,以为暂时不支持,看了源码才发现已经支持了。

所以想要完善一下文档,可以方便其他用户找到此内容。

* docs: Table QA about rowSelection renderCell

update US doc
2022-05-11 17:58:26 +08:00
miracles1919
19f55145c8
fix: tree checkbox margin in rtl mode (#35491) 2022-05-11 16:57:21 +08:00
afc163
089dc7e36a docs: remove editable in table documentation
close
https://github.com/ant-design/ant-design/pull/35471#issuecomment-1123239879
2022-05-11 14:35:43 +08:00
Tony Wu
68a2f8b2ac
docs: indicate that menu items require keys (#35474) 2022-05-11 14:29:26 +08:00
dingkang
5cf579c37a
docs: replace class component with hooks (#35472)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks
2022-05-10 20:49:42 +08:00
Karott
338ec7dad7
perf: refactor devWarning for production code size (#35411)
* pref: better code style for production

* refactor `devWarning`

* don't use `useEffect` only wrap `devWarning`

* chore: add 'noop' to coverage

* chore: add test cases for devWarning

* chore: add test case

* chore: update test cases for devWarning

* chore: restore test script command

* fix: remove 'throw new Error'

* should not use `throw` for browser

* chore: update test case for AutoComplete

* perf: add prefix for `devWarning`

* update RegExp for UMD

* add prefix for ES and CJS

* chore: better code style

* perf:

* upgrade antd-tools

* remove `injectWarningCondition`

* rename `devWarning` to `warning`

* chore: better code style

* chore: better code style

* chore: restore hasValidName
2022-05-10 15:43:29 +08:00
lalalazero
17cd13fe53
refactor: remove cascader displayRender warning (#35417)
* refactor: remove useless warning (#35291)

* refactor: remove useless test case

* docs: remove cascader tagRender
2022-05-10 13:57:38 +08:00
dingkang
f5831f121d
docs: replace class component with hooks (#35461)
* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies
2022-05-10 13:00:31 +08:00
Ron Šmeral
1d3fd70dbf
fix: bad List.Item type (#35454) (#35455)
Co-authored-by: Ron Smeral <ron.smeral@merck.com>
2022-05-10 10:01:11 +08:00
MadCcc
01ebb6a563
test: update snapshot (#35452) 2022-05-09 20:25:55 +08:00
Yanming Deng
36ded1a741
docs: fix typo (#35439)
* chore: fixed typo

* chore: fixed typo+1
2022-05-09 18:09:02 +08:00
黑雨
42f91f970f
feat: edit date-picker to hook (#35425) 2022-05-09 10:34:10 +08:00
afc163
6ca32a6665
refactor: Progress type="circle" for some issues (#35433)
* refactor: Progress type="circle" for some issues

close #17706
close #35009
close #35352

* test: update progress snapshot

* docs: update linecap.md

* Update components/progress/demo/linecap.md

* test: update progress snapshot

* fix: rc-progress@~3.3.1

* fix: rc-progress@~3.3.2
2022-05-08 23:57:17 +08:00
Mykyta Velykanov
fcf2afd3fa
fix: add missing localizations (#35430)
* Add missing localizations

* Update snapshot
2022-05-08 22:35:46 +08:00
afc163
594f138760 resolve conflict between feature and master 2022-05-08 17:01:54 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
二货机器人
00fb82276f
Merge pull request #35396 from zpc7/test/transfer-tooltip-to-testing-library
Replace Tooltip test case with testing library
2022-05-07 14:04:15 +08:00
Tom Xu
d1f85d94e5
fix: List.Item typescript (#35418) 2022-05-07 14:03:41 +08:00
Tom Xu
5d2475a2a1
fix: List.Item ref (#35321)
* fix: list item ref

* add test

* improve
2022-05-07 13:34:40 +08:00
zpc7
bd31a6a46a Revert "test: replace some slepp with jest.runAllTimers"
This reverts commit ad886d1f65.
2022-05-07 13:05:11 +08:00
MadCcc
130b146590 chore: update snapshot 2022-05-07 12:27:03 +08:00
MadCcc
4184cc782c Merge branch 'master' into feature-merge-master 2022-05-07 12:24:25 +08:00
zpc7
ad886d1f65 test: replace some slepp with jest.runAllTimers 2022-05-07 12:09:25 +08:00
MadCcc
7873bf7f1c
fix: arrow style (#35401)
* fix: arrow style

* fix: raise arrow z-index

* fix: fix defualt arrow color

* fix: mix shadow

* chore: code clean

* chore: code clean

* fix: use fadeout instead

* test: fix style lint
2022-05-07 12:04:46 +08:00
parabolazz
9b56ad86fb
docs: explain Avatar fallback strategy (#35415)
The original description was unclear, incomplete, and confusing, requiring a look at the code to understand it, so I revised it to a more understandable version.
2022-05-07 11:56:03 +08:00
Karott Schu
d07dcd46b7
fix(<Row/>): wipe out unnecessary prop (#35409)
* fix: wipe out unnecessary prop

* wipe out unnecessary prop(`row-gap: 0px`) on <Row />

* add test case

* chore: remove unnecessary import

* chore: add  prop to Row and Col

* chore: update snapshot (Form/Grid/Card)

* chore: update snapshot

* chore: move  location
2022-05-07 11:44:48 +08:00
MadCcc
4734f65f2f
feat: focus menu item automaticly when focusing menu (#35407)
* feat: focus menu item automaticly when focusing menu

* chore: update mentions

* test: fix test case

* chore: decrease bundle size

* chore: increase bundle size
2022-05-07 11:36:34 +08:00
zpc7
22b89eea5a test: foreach all placement 2022-05-07 10:43:59 +08:00
zpc7
55f9e29360 test: remove some test case 2022-05-07 09:35:12 +08:00
zpc7
8ade7ab323 test: try to fix the pr check 2022-05-07 09:35:12 +08:00
zpc7
d9ce1ad14c ci: trigger the pr check 2022-05-07 09:35:12 +08:00
zpc7
8545647313 test: transfer tooltip test case to testing library 2022-05-07 09:35:12 +08:00
zombiej
c75e59faf1 chore: rm useless console 2022-05-06 18:52:01 +08:00
shuaijiumei
63d3c579f9
refactor: Progress rebuild as function component (#35393)
* refactor: Progress rebuild as function component

* refactor: Progress rebuild as function component

* refactor: Progress rebuild as function component

* refactor: Progress rebuild as function component

* refactor: Progress rebuild as function component

* refactor: Progress rebuild as function component

* refactor: Progress rebuild as function component
2022-05-06 18:34:45 +08:00
github-actions[bot]
25de1c4d31
chore: auto merge branchs (#35399)
chore: feature merge master
2022-05-06 05:52:21 +00:00
二货机器人
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
Zack Chang
85fd0640c5
test: refactor test cases of Space (#35372) 2022-05-04 20:44:37 +08:00
PCCCCCCC
c2741c2c4b
test: transfer part of tooltip test case to testing library (#35362) 2022-05-03 10:40:12 +08:00
github-actions[bot]
85707ff36f
chore: auto merge branchs (#35347)
chore: Feature merge master
2022-05-01 10:16:06 +00:00
zombiej
2290144b25 test: update test case 2022-05-01 17:50:10 +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
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
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
zombiej
c85d9889ab chore: add useWatch test placeholder 2022-04-25 11:20:56 +08:00