Commit Graph

15001 Commits

Author SHA1 Message Date
MadCcc
3a5a9385b6 test: fix lint 2022-08-30 14:14:26 +08:00
MadCcc
0d50767aa8 Merge branch 'master' into next-merge-master 2022-08-30 13:05:50 +08:00
Peritot Chan
2910313a47
fix: config provider theme active color not same in variable.less (#37304) 2022-08-30 11:42:52 +08:00
dependabot[bot]
7e7c47509f
chore(deps-dev): bump eslint-plugin-jest from 26.9.0 to 27.0.1 (#37291)
* chore(deps-dev): bump eslint-plugin-jest from 26.9.0 to 27.0.1

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.9.0 to 27.0.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.9.0...v27.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix eslint errors in test files

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-08-30 10:57:13 +08:00
lijianan
3c72aa0855
test: migrate part of Menu tests (#37274)
* test: migrate part of Menu tests

* test: migrate part of Menu tests

* test: migrate part of Menu tests

* fix: add Layout.Sider

* fix: add Layout.Sider

* fix: remove Layout.Sider

* fix: remove Layout.Sider

* fix: strong type
2022-08-30 10:06:38 +08:00
MadCcc
2eecd90ed3
fix: button link color (#37292)
* fix: button link color

* chore: code clean
2022-08-29 20:03:09 +08:00
MadCcc
ffef094c9c
fix: set icon line height 0 (#37287) 2022-08-29 19:06:55 +08:00
MadCcc
2686a126ce
feat: update token colorFill (#37286) 2022-08-29 17:49:44 +08:00
MadCcc
c0653c8a3c
feat: v5 margin (#37283)
* feat: v5 margin

* fix: alert icon line-height
2022-08-29 17:09:41 +08:00
lijianan
6546b8287c
test: migrate part of Avatar tests (#37266)
* test: migrate part of Avatar tests

* test: migrate part of Avatar tests

* test: migrate part of Avatar tests
2022-08-28 22:41:44 +08:00
lijianan
58a1268356
type: strong type (#37258) 2022-08-28 22:29:14 +08:00
MadCcc
d2b219dbf8
fix: iconPrefixCls should affect cssinjs (#37259) 2022-08-26 19:31:53 +08:00
yykoypj
6b658dab76
feat: switch visible to open for Tooltip (#37241)
* feat: switch visible to open for Tooltip & Popover & Popconfirm

* fix lint

* fix: merge state

* chore: Update ts part

* test: add legacy test

* test: fix test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-26 17:17:13 +08:00
lijianan
6bc36b26a3
test: migrate part of Message tests (#37256)
* test: migrate part of Message tests

* test: migrate part of Message tests
2022-08-26 16:50:01 +08:00
MadCcc
ec13e824be
feat: v5 shadow & colorPrimary (#37254)
* feat: v5 shadow

* chore: color lint

* test: fix test case
2022-08-26 16:05:16 +08:00
lijianan
e2a927ee52
test: migrate part of Notification tests (#37253)
* test: migrate part of Notification tests

* test: migrate part of Notification tests

* test: migrate part of Notification tests

* test: migrate part of Notification tests
2022-08-26 16:00:38 +08:00
lijianan
60da9bfc61
test: remove Array.from() (#37252) 2022-08-26 15:25:01 +08:00
二货机器人
76eec57ddc chore: Update snapshot 2022-08-26 14:12:42 +08:00
二货机器人
1164c46f26 Merge branch 'master' into feature-merge-master 2022-08-26 11:47:08 +08:00
Marco Heinrich
92a19adf6b
Adding filterCheckall to the below mentioned files. (#37246)
This will ensure a proper translation in the table filter checkbox.
when filterMode is set to 'tree'

Changes to be committed:
	modified:   components/locale/de_DE.tsx
	modified:   components/locale/fr_BE.tsx
	modified:   components/locale/fr_CA.tsx
	modified:   components/locale/fr_FR.tsx
2022-08-26 10:39:14 +08:00
lijianan
c8d1b370e4
test: migrate part of page-header tests (#37218)
* test: test: migrate part of page-header tests

* test: test: migrate part of page-header tests

* test: test: migrate part of page-header tests

* test: test: migrate part of page-header tests

* test: test: migrate part of page-header tests

* test: test: migrate part of page-header tests

* test: test: migrate part of page-header tests
2022-08-26 10:23:11 +08:00
MadCcc
e3a2c68236
feat: better round arrow (#37236) 2022-08-25 19:39:26 +08:00
二货爱吃白萝卜
137af11d19
feat: AutoComplete PurePanel (#37225)
* feat: AutoComplete PurePanel

* test: update snapshot

* test: Update snapshot
2022-08-25 11:50:24 +08:00
黑雨
ed1bb649ba
feat: replace date-picker,time-picker dropdownClassName to popupClassName (#37207) 2022-08-25 10:33:16 +08:00
二货机器人
428665827b chore: clean up useless ts def 2022-08-25 10:17:29 +08:00
yykoypj
43d45330c5
feat: switch visible to open for Tooltip & Popover & Popconfirm (#36807)
* feat: switch visible to open for Tooltip

* feat: switch visible to open for Popover

* feat: switch visible to open for Popconfirm

* fix

* chore: resolve conflict

* test: fix test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-24 21:34:17 +08:00
江麻妞
4299c15139
style: Optimize Spacing Strategy (#37183) 2022-08-24 21:25:52 +08:00
yykoypj
41a8003241
feat: switch visible to open for Dropdown (#36799)
* feat: switch visible to open for Dropdown

* feat: add warning when use visible

* fix: visible in dropdown-button

* chore: merge conflict

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-24 17:46:44 +08:00
Uladzimir Atroshchanka
c9fd7fb8f1
feat: Input fields in error are missing multiple ARIA attributes (#36762)
* feat: add implementation and update snapshots

* test: update snapshot

* test: update snapshots

* test: update snapshots

* test: update snapshots
2022-08-24 17:07:50 +08:00
lijianan
1b0e5af599
test: test: migrate part of Button tests (#37214) 2022-08-24 17:00:40 +08:00
二货机器人
b794248c43 chore: merge master 2022-08-24 15:52:24 +08:00
二货机器人
9b99c815fa Merge branch 'master' into feature-merge-master 2022-08-24 15:46:36 +08:00
moderate
7dbd6cee27
test: removed the comment component's enzyme (#37196)
* test: removed the comment component's enzyme

* feat: removed the comment component's enzyme

Co-authored-by: qanglee <545540710@qq.com>
2022-08-24 15:05:01 +08:00
yykoypj
771c7a6f2d
feat: change visible to open for Modal (#36774)
* feat: change visible to open for Modal

* feat: add warning when use visible

* test: fix lint

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-24 11:15:25 +08:00
二货机器人
aa00b93ab8 test: force clean up 2022-08-23 23:50:33 +08:00
Dalton Craven
4758d561c5
fix: export individual menu type declarations (#36681) 2022-08-23 23:40:44 +08:00
二货机器人
acc80d8916 test: update test case 2022-08-23 23:05:02 +08:00
二货机器人
f64c6ca2f3 test: Update warning 2022-08-23 22:41:01 +08:00
二货机器人
83eda31e73 test: fix warning check 2022-08-23 22:38:53 +08:00
lijianan
9f57b26009
test: rewrite locale-provider test case with ts (#37205) 2022-08-23 22:34:02 +08:00
二货机器人
4ca73c67bc fix: drawer rootStyle 2022-08-23 21:57:11 +08:00
lijianan
908b9de345
test: migrate part of locale-provider tests (#37198)
* test: migrate part of locale-provider tests

* test: migrate part of locale-provider tests

* test: migrate part of locale-provider tests

* test: migrate part of locale-provider tests
2022-08-23 21:50:45 +08:00
二货机器人
2b38025710 chore: resolve dayjs conflict 2022-08-23 18:00:20 +08:00
二货机器人
d9a9fdc509 chore: merge next 2022-08-23 17:48:00 +08:00
yykoypj
3d8cd0b451
feat: switch visible to open for Modal (#37084)
* feat: switch visible to open for Modal

* test: depcated check

* docs: site api update

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-23 16:55:57 +08:00
yykoypj
766748a501
feat: change visible to open for drawer (#36750)
* feat: change visible to open for Drawer

* refactor: use open internal either

* feat: add warning when use visible

* test: Fix test

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-23 16:22:00 +08:00
lijianan
5c61ea7f57
test: config-provider case rewrite js => ts (#37194) 2022-08-23 15:40:32 +08:00
yykoypj
1919b5f7d9
feat: switch visible to open for Drawer (#37047)
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-23 14:52:37 +08:00
二货机器人
91d32ea258 test: merge missing test case 2022-08-23 14:14:30 +08:00
lijianan
7f49d221a0
test: migrate part of Tree-Select tests (#37190) 2022-08-23 11:57:50 +08:00
二货机器人
cf49149ce7 chore: merge master 2022-08-23 11:53:24 +08:00
lijianan
db0344c85f
test: migrate part of ConfigProvider tests (#37142)
* test: migrate part of ConfigProvider tests

* test: migrate part of ConfigProvider tests

* test: update snap

* test: update snap

* test: migrate part of ConfigProvider tests

* fix: commented error case

* chore: update snapshot name

* test: csp test case

* test: revert test case

* test: Update snapshot

* test: Update ser logic

* test: more cov

* test: cascader snapshit

* test: update match

* test: more detact

* test: more handler

* chore: Update snapshot

* test: Table test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-22 22:54:38 +08:00
黑雨
15c82b6f7e
feat: replace dropdownClassName to popupClassName (#37092) 2022-08-22 17:02:37 +08:00
黑雨
fc2b64e6ab
feat: replace dropdownClassName to popupClassName (#37091) 2022-08-22 15:54:34 +08:00
yykoypj
a2605f757d
feat: switch filterDropdownVisible to filterDropdownOpen for Table (#36747)
* feat: change filterDropdownVisible to filterDropdownOpen for Table

* docs: resolve conflict

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-22 15:37:51 +08:00
github-actions[bot]
19acac6f80
chore: auto merge branches (#37173)
chore: next merge feature
2022-08-22 04:14:58 +00:00
yykoypj
f0e4963187
feat: switch filterDropdownVisible to filterDropdownOpen for Table (#37026)
* feat: table filterDropdownVisible to filterDropdownOpen

* chore: adjust prosp pass

* test: Update test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-22 11:19:53 +08:00
lijianan
dd31d7775a
test: migrate part of utils tests (#37155)
* test: migrate part of utils tests

* test: migrate part of utils tests

* test: migrate part of utils tests
2022-08-21 23:25:00 +08:00
眼圈发黑
0a5b995e9c
fix: duplicate attribute definition (#37170) 2022-08-21 20:30:51 +08:00
Dmitry Artamonov
a34c9cef7f
Fix: sortable columns are not indicated as such for screen readers (#37167) 2022-08-21 16:39:54 +08:00
黑雨
07be7c986e
feat: replace cascader dropdownClassName to popupClassName (#37089) 2022-08-21 15:32:49 +08:00
二货爱吃白萝卜
78cca16779
chore: default hashed (#37154)
* chore: default hashed

* test: try for clean default hashed

* chore: clean up

* chore: fix dist

* chore: es inject

* chore: no hashed in test env

* chore: update comment

* chore: hack in jest env

* chore: try unique entry
2022-08-19 17:45:03 +08:00
黑雨
9b3a4dab70
feat: replace dropdownClassName to popupClassName (#37122) 2022-08-19 17:40:22 +08:00
黑雨
d9ab3ee4b5
feat: replace dropdownClassName to popupClassName (#37087)
Co-authored-by: 二货爱吃白萝卜 <smith3816@gmail.com>
2022-08-19 17:26:22 +08:00
二货爱吃白萝卜
61f2ef6d6b
fix: Ghost should be the top of collapse (#37158) 2022-08-19 16:53:08 +08:00
MadCcc
f27cfe54d4
feat: v4 algorithm (#37152)
* feat: v4 theme

* feat: v4 dark theme

* feat: algorithm

* refactor: rename
2022-08-19 13:57:19 +08:00
二货爱吃白萝卜
af42c491bd
chore: compatible for babel-import (#37151)
* chore: compatible for babel-import

* chore: comment
2022-08-19 10:51:41 +08:00
MadCcc
93908debec
feat: v5 radius (#37146)
* feat: v5 radius

* test: fix test
2022-08-19 10:10:51 +08:00
二货爱吃白萝卜
15e4b93e43
fix: Visible change not show Tooltip of Typography (#37147)
* test: Update snapshot

* test: Add test case

* test: fix react 18
2022-08-19 01:31:16 +08:00
yykoypj
42bbd9e24f
feat: change slide tooltip api (#37043)
* feat: change slide tooltip api

* fix

* fix

* fix: Slider test in config-provider

* fix: Slider test

* chore: adjust prosp pass

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-18 20:26:19 +08:00
lijianan
8010cd19b6
test: migrate part of DatePicker tests (#37115)
* test: migrate part of DatePicker tests

* test: migrate part of DatePicker tests

* fix: update snap

* test: migrate part of DatePicker tests

* test: migrate part of DatePicker tests

* test: migrate part of DatePicker tests

* test: migrate part of DatePicker tests

* test: migrate part of DatePicker tests

* test: migrate part of DatePicker tests

* test: remove useless methods

* test: add test ignore
2022-08-18 17:40:47 +08:00
二货机器人
25e001f8b5 chore: next merge feature 2022-08-18 17:24:39 +08:00
afc163
24f9556134
style: use @checkbox-border-radius (#37131) 2022-08-18 11:36:09 +08:00
二货机器人
baedb702d0 chore: fix test ts 2022-08-18 11:06:13 +08:00
二货机器人
bf8a7ace41 Merge remote-tracking branch 'origin/master' into feature 2022-08-18 10:57:17 +08:00
二货爱吃白萝卜
94edd8e917
refactor: Select like PurePanel remove motion and support auto width (#37117)
* refactor: Pure support open

* chore: fit content size

* test: Update snapshot

* test: back of snapshot

* test: ignore purePanel
2022-08-17 19:57:10 +08:00
yykoypj
aa97494625
feat: change slide tooltip api (#37000)
* feat: change slide tooltip api

* fix: deprecated warning

* refactor: remove boolean type support for Slider tooltip

* feat: update warning text

* chore: fix typo

* chore: save prod perf

* test: back of test case

* chore: clean up

* chore: fix test require

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-17 15:47:22 +08:00
Haniel Cui
16492a2090
fix: InputNumber border-radius and handle color style (#37070) 2022-08-17 14:51:20 +08:00
MadCcc
ab4d656b7b
test: add table multi-sort case (#37109)
* test: add table multi-sort case

* chore: code clean
2022-08-17 13:21:44 +08:00
Dmitry Artamonov
5c62731b11
fix: Accordions are missing expand and collapse states (#37065)
* UIEN-1399 - Accordions are missing expand and collapse states

* update tests

* updated snapshots
2022-08-17 12:28:37 +08:00
二货爱吃白萝卜
73b3c7828d
fix: Drawer add motion deadline (#37100)
* fix: Drawer add motion deadline

* test: Update snapshot

* test: ignore motion in snapshot render
2022-08-17 11:16:01 +08:00
yykoypj
38aaec1156
chore: save prod perf (#37088) 2022-08-17 10:29:16 +08:00
MadCcc
0124f24595 Revert "fix(Table): onChange sorter param types (#36710)"
This reverts commit 9e7e32b60c.
2022-08-17 10:13:25 +08:00
MadCcc
8c50cc135b
feat: algorithm array (#37082)
* feat: algorithm array

* chore: update deps

* chore: add default
2022-08-16 21:06:25 +08:00
yykoypj
0f2cddbbe9
refactor: remove visible prop for Tag (#36671)
* feat: remove visible props for Tag

* fix: remove relate snap

* feat: add warning when use visible in Tag

* Update components/tag/index.tsx

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

* doc: add v5-note

Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-16 16:51:18 +08:00
二货机器人
2490c4cb7f chore: next merge feature 2022-08-16 15:52:28 +08:00
Yuki Zhang
81aac069ac
test: move test cases to testing-library for Grid (#37057)
* test: move test cases to testing-library for Grid

* fix: test when typeof gutter is object array in large screen
2022-08-16 10:14:41 +08:00
黑雨
1182f782c0
feat: replace testing-lib(replace .js to .ts) (#37042) 2022-08-16 10:03:04 +08:00
Kyrielin
c435eaad3f
feat(Tooltip): support React.Fragment as children (#37045) 2022-08-16 09:59:27 +08:00
Alan Deng
4b1b0e3d00
feat: custom slider handle margin left in the vertical direction (#37001) 2022-08-15 21:46:08 +08:00
Yuki Zhang
969925653c
test: move test cases to testing-library for DropDown (#37003)
* temp

* fix: mock esmodule default for Dropdown

* test: move test cases to testing-library for DropDown

* chore: remove console

* fix: snapshot test

* refactor: jest mock improvement
2022-08-15 17:47:10 +08:00
lijianan
19ab86e67a
test: migrate part of TimePicker tests (#37055)
* test: migrate part of TimePicker tests

* test: test clearIcon

* test: migrate part of TimePicker tests

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-15 17:44:43 +08:00
dingkang
82ba5eac40
test: replace Menu test case with test lib (#37046)
* test: replace test case with test lib

* test: Update test case to make more sense

* chore: trigger ci

* test: rm firstChild

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-15 16:43:41 +08:00
MadCcc
a4324aeef8 chore: recover dayjs test case 2022-08-15 15:57:19 +08:00
MadCcc
c367c51307 chore: recover test 2022-08-15 15:36:00 +08:00
MadCcc
e6335e233c Merge branch 'master' into next-merge-master 2022-08-15 15:20:39 +08:00
yykoypj
ca73f6e3f1
chore: Remove visible usage for tag (#36934)
* feat: remove visible for Tag

* chore: adjust warning info

* test: back of doc

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-15 14:39:02 +08:00
lijianan
de78a22130
test: migrate part of Popover tests (#36997) 2022-08-12 18:09:51 +08:00
lijianan
37b9c7f192
test: migrate part of Mentions tests (#36998) 2022-08-12 18:09:25 +08:00
ZhiHao Li
9c01aff437
docs: fix useWatch type error (#37013) 2022-08-12 18:06:26 +08:00
jinrui
b63e49e9e8
style(Popover): remove incorrect box-shadow (#37030) 2022-08-12 18:05:47 +08:00
afc163
b9295e3010
style: fix Progress tail position (#36996) 2022-08-12 17:36:47 +08:00
afc163
9230196cf0 Merge branch 'feature' into master-merge-feature 2022-08-10 17:18:29 +08:00
afc163
956d332c01 chore: update image demo snapshot 2022-08-10 17:17:37 +08:00
cl1107
00f59d32f0
🐞 fix: .ant-select-selector是content-box导致宽度不正常 (#36971)
* 🐞 fix: .ant-select-selector是content-box导致宽度不正常

* 🐞 fix: add resetComponent

* 🐞 fix: genItemStyle add box-sizing:border-box
2022-08-10 17:16:46 +08:00
lijianan
32bb2fe61b
fix: eslint error fix (#36976) 2022-08-10 14:26:59 +08:00
MadCcc
af6d58fb5b
refactor: token update (#36973)
* refactor: token update

* chore: code update

* chore: token update

* chore: token
2022-08-09 20:29:12 +08:00
lijianan
d6aa3aaf10
test: migrate part of Descriptions tests (#36970)
* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* fix: strong type

* refactor: rewrite IconDisplay & PicSearcher & Category by FunctionComponent

* style: formatting

* pref: add useCallback/useMemo

* refactor: use typescript refactor javascript

* fix: remove string

* fix: fix eslint

* test: migrate part of Descriptions tests

* test: migrate part of Descriptions tests

* test: migrate part of Descriptions tests
2022-08-09 19:32:40 +08:00
YMiemie-cy
0fb3bc29f2
feat: Form add defaultValidateMessages.i18n az_AZ language #23369 (#36967) 2022-08-09 19:22:57 +08:00
hydraZty
baf84e849f
style(Select): error border exclueds pagination (#36972)
Co-authored-by: hydraZty <hydra_zty@163.com>
2022-08-09 19:19:21 +08:00
二货爱吃白萝卜
ad312b23a2
fix: Upload in React 18 sync problem (#36968)
* fix: sync flush

* test: test case

* test: fix deps
2022-08-09 16:29:48 +08:00
二货爱吃白萝卜
dcc114e042
test: Adjust Drawer test case (#36964) 2022-08-09 14:31:53 +08:00
尾宿君
e51cd35143
test: replace message part test with testing lib (#36923) 2022-08-09 09:58:55 +08:00
尾宿君
1a3635c0fc
test: replace Calendar part test with testing lib (#36927) 2022-08-08 22:43:57 +08:00
尾宿君
7bbdd0d282
test: replace notification part test with testing lib (#36924) 2022-08-08 22:43:39 +08:00
clean99
8129bfee8b
test: refactor autocomplete test with screen and userEvent (#36953)
* AutoComplete(test): refactor custom input autocomplete with userEvent and screen

* AutoComplete(test): refactor dataSource is object array with screen and userEvent

* AutoComplete(test): update file name to tsx and refactor with screen

* AutoComplete(test): option test refactor

* AutoComplete(test): className test refactor

* remove fireEvent

* ignore ts error

* disable no-console

Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2022-08-08 22:42:57 +08:00
二货爱吃白萝卜
3012c77482
fix: Drawer zIndex (#36958) 2022-08-08 22:09:51 +08:00
Qiuhang817385
fdaa946f24
do'c's):add onChange props for useFormItemStatus description code (#36929)
* fix(docs):fix useFormItemStatus description code

* fix():修复CR意见
2022-08-08 22:08:28 +08:00
二货机器人
f7e7a7e373 chore: clean up 2022-08-08 19:22:47 +08:00
二货机器人
6c4a25a1e9 chore: merge feature 2022-08-08 19:08:43 +08:00
二货爱吃白萝卜
304b36a5bf
refactor: Replace Tabs motion (#36943)
* chore: bump rc-tabs

* refactor: use internal motion

* test: Update snapshot

* chore: clean up

* test: Update snapshot

* test: coverage

* test: resolve conflict
2022-08-08 17:01:25 +08:00
MadCcc
c32eafbcd1 Revert "feat: enable hash by default"
This reverts commit 86c8f945db.
2022-08-08 17:01:23 +08:00
MadCcc
86c8f945db feat: enable hash by default 2022-08-08 16:48:22 +08:00
MadCcc
de4914880e
fix: Menu horizontal border (#36947) 2022-08-08 15:57:18 +08:00
MadCcc
a5588f631e
fix: Input replace '.ant' with antCls (#36937)
* fix: Input replace '.ant' with antCls

* chore: update eslint rules
2022-08-08 15:50:49 +08:00
github-actions[bot]
3115657010
chore: auto merge branches (#36944)
chore: feature merge master
2022-08-08 07:17:41 +00:00
MadCcc
dbff63666a Merge branch 'master' into next-merge-master 2022-08-08 15:12:31 +08:00
clean99
1239910f66
test: change act import from utils use act wrap timer and not wrap fireEvent (#36921)
Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2022-08-08 13:31:55 +08:00
kalykun
c8262525e0
feat(Avatar): add onClick prop (#36940) 2022-08-08 13:30:49 +08:00
clean99
20a2bb3374
fix: testing act error (#36915)
* test: switch act from react-dom/test-utils to testing-library/react

* test: fix jest.runAllTimers usage with act

Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2022-08-05 18:27:08 +08:00
github-actions[bot]
c9ea74299a
chore: auto merge branches (#36910)
chore: Next merge feature
2022-08-05 08:24:44 +00:00
MadCcc
9e3d704ebf
refacot: token update (#36912) 2022-08-05 16:15:24 +08:00
二货机器人
c91af108d6 test: Update snapshot 2022-08-05 16:02:27 +08:00
二货机器人
d8af28cb83 chore: resolve conflict 2022-08-05 15:37:03 +08:00
二货机器人
d970d80fa0 chore: next merge feature 2022-08-05 15:23:36 +08:00
github-actions[bot]
2fc754eeaf
chore: auto merge branches (#36906)
chore: feature merge master
2022-08-05 04:52:57 +00:00
gaokaifeis
8ee6044ee2
test: move test cases to testing lib for Progress (#36826)
Co-authored-by: gaokaifei <gaokaifei@maxtropy.com>
2022-08-05 12:17:05 +08:00
afc163
8ed18fc239
style: reduce some css code (#36904) 2022-08-05 11:37:55 +08:00
黑雨
8b05546367
feat: Replace dropdownClassName to popupClassName (#36880) 2022-08-05 11:21:07 +08:00
afc163
30d60fc05c
style: button focus style should not stay after click (#36902)
:focus => :focus-visible

close #36896
2022-08-05 10:58:07 +08:00
二货爱吃白萝卜
628968f460
feat: Tabs support items (#36889)
* refactor: Using items

* docs: replace with items

* docs: deprecated demo

* test: Update snapshot

* docs: simple basic demo

* test: coverage
2022-08-05 10:49:08 +08:00
github-actions[bot]
37cc36ac7e
chore: auto merge branches (#36883)
chore: feature merge master
2022-08-04 09:35:42 +00:00
他不是牛马
dce76afd93
test: Replace slider part test with testing lib (#36888) 2022-08-04 17:09:54 +08:00
MadCcc
ec3444a407
refactor: token udpate (#36892) 2022-08-04 16:16:50 +08:00
kalykun
9e7e32b60c
fix(Table): onChange sorter param types (#36710)
* fix(types): fixes `sorter` param types

* chore: add test case

* Update type.test.tsx

* Update type.test.tsx
2022-08-04 11:16:24 +08:00
nuintun
dd6e93d4ae
feat: Dropdown button add danger status support (#36810)
* feat: Dropdown button add danger status support

* fix: Dropdown button danger test

* fix: Dropdown button danger test

* Update components/dropdown/index.zh-CN.md

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

* Update components/dropdown/index.en-US.md

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

Co-authored-by: afc163 <afc163@gmail.com>
2022-08-04 10:49:55 +08:00
yifanwww
8dfef70868
chore: Make data-${string} undefinable (#36858) 2022-08-04 10:03:58 +08:00
MadCcc
f1ba08fd0c
fix: token update (#36871)
* fix: token update

* refactor: map token update
2022-08-03 20:04:58 +08:00
Yuki Zhang
4d7ef8d5c6
test: move test cases to testing-library for Skeleton (#36856) 2022-08-03 11:02:45 +08:00
yanm1ng
5b45a8fa87
style(drawer): fix drawer nesting style pollution (#36845)
Co-authored-by: eason.ym <eason.ym@alibaba-inc.com>
2022-08-02 14:54:13 +08:00
二货机器人
0dc7c99e7d
feat: PurePanel and refactor naming (#36834)
* docs: PurePanel

* docs: Update API

* docs: Update doc

* chore: correct style naming

* test: Update snapshot
2022-08-01 23:20:04 +08:00
JarvisArt
549a2f956f
feat: add value parameter to textarea showCount.formatter (#36793) 2022-08-01 17:39:57 +08:00
二货机器人
468e2dea19 chore: (merge master) cleanup less style 2022-08-01 17:30:14 +08:00
二货机器人
fa4f7f089d chore: merge master 2022-08-01 17:12:27 +08:00
二货机器人
ab0b6b2c9a
chore: clean Drawer ts def (#36823) 2022-08-01 17:06:19 +08:00
陈帅
dcca3d25f2
feat: add menu token and adjust style (#36777)
* fix: menu add margin token

* Update components/menu/style/index.tsx

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

* fix ci

Co-authored-by: MadCcc <1075746765@qq.com>
2022-08-01 11:19:32 +08:00
zhengjitf
ae43c269c3
fix: upload list item flashes after being removed in react18 (#36801) 2022-07-31 18:04:09 +08:00
二货机器人
ffb3a4da90
fix: Form vertical with span row (#36800)
* fix: form vertical with span

* test: update snapshot
2022-07-30 21:00:00 +08:00
losgif
aa648d2cd8
feat(table): add column title attribute in expandable props. (#36794)
* chore: rc-table's version up to 7.26.0

* docs(table): add column title attribute in expandable

* docs(table): add column title attribute in expandable
2022-07-30 17:13:20 +08:00
二货机器人
7fb7391cba test: fix test case 2022-07-29 19:26:48 +08:00
二货机器人
3e33697352 chore: update snapshot 2022-07-29 18:00:37 +08:00
二货机器人
74ae7f68f0 chore: back motion style 2022-07-29 16:19:01 +08:00
二货机器人
394aba4afe chore: merge master 2022-07-29 15:56:11 +08:00
MadCcc
c5668a7e34
docs: Form disabled version (#36760)
* docs: Form disabled version

* test: update snapshot
2022-07-29 15:54:36 +08:00
二货机器人
51954aa470
fix: fix row in flex layout size cal (#36770) 2022-07-28 23:15:08 +08:00
MadCcc
d7c2f5f5d3
feat: menu theme implemented by design token (#36738)
* feat: menu theme implemented by design token

* test: fix test

* fix: lint

* fix: menu motion

* 偷偷加了几个token

Co-authored-by: 期贤 <qixian.cs@antgroup.com>
2022-07-28 20:33:10 +08:00
二货机器人
ddb97b22ba
chore: collapse title text auto width (#36761)
* chore: collapse title text auto width

* test: fix mock snapshot
2022-07-28 20:30:41 +08:00
二货机器人
24be945ea8
fix: Not work in old browser (#36748)
* fix: Drawer contentWrapperStyle logic

* fix: Update style

* test: Update snapshot

* test: More test case
2022-07-27 23:44:45 +08:00
二货机器人
740d9f4111
fix: Drawer width with ptg (#36729)
* fix: Drawer width with ptg

* test:Update snapshot
2022-07-27 16:50:55 +08:00
dingkang
1ef45439d6
test: replace Cascader test case with test library (#36475)
* test: relpace test case with test library

* test: fix test case

* test: replace snapshot

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-07-26 22:27:42 +08:00
Zheeeng
7b3220fb49
chore: refine getScroll internal signature and some assertion (#36695)
* chore: refine getScroll internal signature and some assertion

* fix: for mock scenario to passing tests
2022-07-26 16:12:36 +08:00
二货机器人
84c0498d64
fix: Upload item removed should keep status className (#36706)
* fix: not blink of remove file

* test: test case of remove
2022-07-26 15:17:41 +08:00
hoho2017
f3db1f2dab
docs: fix Menu api layout (#36697)
Co-authored-by: zhanghaoqiang <zhanghq7458@joyowo.com>
2022-07-26 14:34:21 +08:00
Zheeeng
b89ed86698
chore: prefer using type-compatible-assigning over using type-assertion (#36694) 2022-07-26 11:25:45 +08:00
xrkffgg
16d2c5def3
Merge pull request #36685 from ant-design/feature
branch: merge feature into master
2022-07-26 00:09:16 +08:00
二货机器人
d422d71c1e
refactor: Drawer refactor (#36672)
* chore: back part of styl

* chore: all basic

* test: part test case

* test: part test case

* test: more test case

* test: update snapshot

* test: demo test support

* test: update snapshot

* chore: adjust mock logic to inject on rc-drawer instead

* test: more snapshot

* chore: adjust pos

* chore: back of render

* test: drawer demo extends test
2022-07-25 21:04:43 +08:00
github-actions[bot]
b5302f404a
chore: auto merge branches (#36684)
branch: merge feature into master
2022-07-25 11:59:51 +00:00
zombiej
46d146d692 chore: resolve conflict of feature merge master 2022-07-25 17:39:38 +08:00
afc163
80114d62c7
Revert "fix: Upload item removed should keep status className (#36439)" (#36682)
This reverts commit cebbe23393.
2022-07-25 17:38:28 +08:00
zombiej
2b46b3e6e1 Merge remote-tracking branch 'origin/master' into feature-merge-master 2022-07-25 17:37:47 +08:00
叶枫
00c891ac05
feat: Typography ellipsis.tooltip could be a object (#36099)
* feat: add tooltipProps

* feat: doc

* feat: props

* feat: props

* feat: props

* feat: docs

* feat: review

* feat: add tooltipProps

* feat: doc

* feat: props

* feat: props

* feat: props

* feat: docs

* feat: review
2022-07-25 13:09:39 +08:00
fairyland
3675ad5a3f
test: move-test-cases-to-testing-lib-for-Radio (#36664)
* test: move-test-cases-to-testing-lib-for-Radio

* update toMatchSnapshot

Co-authored-by: ranrui.cwj <ranrui.cwj@alibaba-inc.com>
2022-07-24 12:33:05 +08:00
afc163
1e88248903
docs: renew Select dropdownRender demo and FAQ (#36665)
* docs: renew Select dropdownRender FAQ and demo

* chore: update snapshot

* chore: fix Select demo tsc

* chore: fix Select demo tsc
2022-07-23 17:00:19 +08:00
Alan Deng
3920a724cc
feat: Tree/TreeSelect switcherIcon support more parameter in argument (#36651) 2022-07-23 16:54:36 +08:00
Zheeeng
fd5d463213
chore: write React.ChangeEvent<E> once (#36644) 2022-07-23 16:37:32 +08:00
Wuxh
16ecdbb58d
fix(modal): Modal.xxx onCancel close argument is not a function (#36600)
* fix(modal):  fix the error of `onCancel` parameter of modal returned by `useModal`

resolve: 36581

ref: https://github.com/ant-design/ant-design/issues/36581#issuecomment-1189396007

* test(confirm): 补充 modal 测试用例

* test(modal): 添加测试用例

* Revert "fix(modal):  fix the error of `onCancel` parameter of modal returned by `useModal`"

This reverts commit e4fcb3e62add63193ec9081b2c21e657379bebfb.

* fix(modal): fix modal onOk/onCancel method is not a valid function when there is a close parameter

closed: #36581

* chore: cancel the introduction of `noop` from third-party library
2022-07-23 16:04:23 +08:00
Tianyuan Zhang
09de419253
fix(Tree): DraggableFn params type (#36648)
* fix(Tree): DraggableFn params type

* chore: add blank line

* test: add typ test for draggable Fn

* test: add typ test for draggable Fn

Co-authored-by: tianyuan233 <zty.dev@outlook.com>
2022-07-22 20:26:52 +08:00
MadCcc
e6349a759a
fix: dark fill token (#36656)
* fix: dark fill token

* fix: mention bg

* feat: update color palettes
2022-07-22 20:09:26 +08:00
二货机器人
0b9f1db072
Revert "feat: Space support align stretch (#36310)" (#36650)
This reverts commit bfa8aaec5e.
2022-07-22 14:14:01 +08:00
Tianyuan Zhang
1180b61131
docs: tabpane add disabled (#36634)
close #36610
2022-07-21 18:45:48 +08:00
MadCcc
1ad0553249
refactor: token update (#36637)
* refactor: token update

* refactor: token

* chore: error color

* fix: menu danger
2022-07-21 17:00:42 +08:00
Yuki Zhang
817773e015
test: move test cases to testing lib for Collapse (#36227)
* test: move test cases to testing lib for Collapse

* chore: remove useless file

* fix: react 18 concurrent

* chore: remove useless file
2022-07-21 11:18:14 +08:00
黑雨
8c34cb793f
feat: Replace input-number part test with testing lib (#36080)
* feat: Replace input-number part test with testing lib

* feat: update rc-input-number version
2022-07-20 20:47:09 +08:00
MadCcc
fafaa26797
refactor: colorBrand to colorPrimary (#36616)
* refactor: colorBrand to colorPrimary

* refactor: colorBgBase and colorTextBase
2022-07-20 18:35:09 +08:00
dashaowang
cff762cf3d
style: fix Table extra shadow and scrollbar when all columns are fixed
Co-authored-by: weiwang <wren@xuncetech.com>
2022-07-20 13:30:57 +08:00
afc163
2146d18045
style: fix Table tree data ellipsis style problem (#36608)
close #36583
2022-07-20 13:30:34 +08:00
二货机器人
31eef3a956
docs: menu faq (#36604)
* docs: menu faq

* docs: patch codesandbox
2022-07-20 10:58:47 +08:00
MadCcc
357750e081
refactor: collapse motion (#36597)
* chore: v5.0.0-experimental.5

* refactor: collapse motion
2022-07-19 22:53:38 +08:00
zombiej
c71ce67e14 chore: next merge feature 2022-07-19 17:51:35 +08:00
二货机器人
03ea767cad
fix: Form validate message shaking (#36575)
* refactor: move component out

* refactor: clean up code

* chore: stable it

* chore: back of container

* chore: adjust leave motion

* test: update snapshot

* chore: update motion logic

* fix: list start motion

* test: update snapshot

* test: update snapshot

* test: test for marginBottom
2022-07-19 16:01:31 +08:00
二货机器人
3301b4d6fc
Merge pull request #36576 from ant-design/master
chore: feature merge master
2022-07-18 20:59:32 +08:00
fairyland
8c9ad9b1b6
fix: form disabeld support Upload (#36573)
Co-authored-by: ranrui.cwj <ranrui.cwj@alibaba-inc.com>
2022-07-18 14:21:52 +08:00
二货机器人
b8a2f0a0c7
feat: Modal PureRender type support type (#36544)
* feat: Modal type support PurePanel

* feat: Modal PurePanel support type

* chore: do fix

* chore: do fix

* fix: Static logic locale
2022-07-15 20:51:07 +08:00
MadCcc
dc017f5141
feat: dark color algorithm (#36546)
* feat: dark color algorithm

* test: fix lint

* chore: update colorError

* chore: color update
2022-07-15 19:27:29 +08:00
二货机器人
f654b6cce0
feat: Popconfirm support PurePanel (#36538)
* refactor: move popconfirm content out

* fix: lint

* chore: use locale
2022-07-15 15:28:09 +08:00
Neil
9989a2d751
add Modal @modal-border-radius less variable (#36527)
* add Modal @modal-border-radius less variable

* fix:  add less variable
2022-07-15 14:50:07 +08:00
zombiej
22857b4d93 Merge remote-tracking branch 'origin/master' into next-merge-master 2022-07-15 11:48:11 +08:00
zombiej
ed5f4c3626 test: update snapshot 2022-07-15 11:47:57 +08:00
zombiej
3ffd0d8a46 chore: next merge master 2022-07-15 11:23:50 +08:00
二货机器人
006c055cf8
refactor: move popconfirm content out (#36530)
* refactor: move popconfirm content out

* fix: lint
2022-07-15 11:11:50 +08:00
afc163
2255dbada6 docs: update select documentation 2022-07-14 19:27:37 +08:00
Wuxh
14c7c63bbf
fix: fixed the non draggable element did not hide the draggable icon (#36511)
fix #33708
2022-07-14 18:03:11 +08:00
二货机器人
2c3ad833f1
feat: Popover Pure Panel (#36514)
* feat: Popver shadow

* test: Update snapshot

* chore: clean up
2022-07-14 12:06:18 +08:00
Jon
92c8bdc88f
fix: SVG Upload Preview Error (#36402)
* Update utils.tsx

* style: unify img styling

Unify the styling  of img attribute setting.

* test: add previewImage test for svg file

Add previewImage test for SVG upload

* fix: remove charset

Remove charset in data url for text content.

* test: fix test

* fix: typo

* fix: correct patching for svg upload error

* fix: correct patching for svg upload error

* test: update test
2022-07-14 11:25:57 +08:00
MadCcc
aca2c3d4e7
feat: add Form.Item.useStatus (#36486)
* feat: add useFormItemStatus

* chore: code clean

* docs: update example

* refactor: api change

* docs: fix typo

* docs: update docs

* docs: udpate

* chore: add warning

* test: add test case

* chore: update warning

* chore: code clean

* test: fix test case
2022-07-14 11:01:39 +08:00
二货机器人
8a0764dd69
feat: Tooltip support pure render (#36512)
* chore: init

* feat: Pure Panel Tooltip

* test: snapshot

* chore: clean up
2022-07-13 23:06:28 +08:00
github-actions[bot]
1314942f3e
chore: auto merge branches (#36504)
chore: Next merge master
2022-07-13 10:12:26 +00:00
MadCcc
2a1bdec970
refactor: link style only related with hashId (#36498)
* refactor: link style only related with hashId

* chore: code clean
2022-07-13 18:08:03 +08:00
zombiej
17f020f0a7 chore: merge master 2022-07-13 17:52:42 +08:00
Wuxh
c86d02e03f
docs: simplified Layout component sample code (#36497)
the component example code expands to take up the entire monitor screen and is not well read
2022-07-13 16:57:18 +08:00
afc163
008681c1bf
style: Table expandIcon style when column is fixed and ellipsis (#36496)
close #36485
2022-07-13 14:40:43 +08:00
二货机器人
5cc54947a1
feat: Mentions support Pure Render (#36487)
* feat: Dropdown support PurePanel

* chore: clean up

* docs: init

* feat: Mentions PurePanel

* test: Update snapshot

* chore: clean up
2022-07-12 20:46:27 +08:00
MadCcc
4f7ac9f6bc
fix: tooltip cannot close on disabled Radio (#36483)
* fix: tooltip cannot close on disabled Radio

* test: add test
2022-07-12 19:31:45 +08:00
MadCcc
1cbc37f7bc fix: style 2022-07-12 18:15:14 +08:00
二货机器人
6599c2780e
fix: Select with percent width leaves unexpected height in Form (#36484) 2022-07-12 18:01:05 +08:00
zombiej
5bd221ad39 chore: merge master 2022-07-12 17:09:43 +08:00
二货机器人
41464e7068
chore: bump mentions (#36479) 2022-07-12 16:49:44 +08:00
github-actions[bot]
e46dedd90c
chore: auto merge branches (#36478)
chore: feature merge master
2022-07-12 08:21:41 +00:00
MadCcc
98994ab692
fix: collapse motion (#36477) 2022-07-12 14:32:54 +08:00
afc163
6497d0dfef
docs: moment version mismatched issue (#36473)
https://github.com/ant-design/ant-design/issues/36465#issuecomment-1181275538
2022-07-12 13:10:20 +08:00
bobo
7dfc80504a
docs: update index.zh-CN.md (#36471)
去掉文案描述中多的标点
2022-07-12 11:35:13 +08:00
二货机器人
94a3d51cb0
feat: Dropdown support PurePanel (#36461)
* feat: Dropdown support PurePanel

* chore: clean up
2022-07-11 15:57:05 +08:00
MadCcc
cdbfe45df1
feat: generate anchor style for all components (#36460)
* test: fix lint

* chore: code clean

* doc: anchor color

* chore: style order
2022-07-11 15:35:58 +08:00
二货机器人
1bf275fa9a
feat: Picker support PureRender (#36458)
* feat: Picker support PureRender

* test: update snapshot

* fix: timepicker wrapper
2022-07-11 14:58:59 +08:00
Sg
6ada28cce2
docs: fix typo (#36457)
fix typo in useWatch.md
2022-07-11 14:40:35 +08:00
Dawnlck
1643acf0d0
feat: Add support to Skeleton, which allow deployer use custom node as prop. (#36441)
* feat: Skeleton component supports for custom node

* fix: Clear redundant code

* refactor: Remove changes in package.json

* test: Update the snapshot of Skeleton demo

* Update components/skeleton/demo/element.md

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

Co-authored-by: afc163 <afc163@gmail.com>
2022-07-11 12:04:18 +08:00
afc163
91ff1dcce2
style: fix Skeleton active lost border-radius in Safari (#36445)
* style: fix Skeleton active lost border-radius in Safari

* perf: reduce skeleton css bundle size

* chore: fix bundle size limit

* chore: fix active typing
2022-07-10 12:05:35 +08:00
Leon Kattendick
46be23a5db
fix: breadcrumb seperators hidden when used in list (#36448) 2022-07-10 12:05:16 +08:00
afc163
cebbe23393
fix: Upload item removed should keep status className (#36439)
* fix: Upload item removed should keep status className

* add test case

* test: fix act warning

* revert act test

* test: update snapshot
2022-07-08 22:41:58 +08:00
Alan Deng
1d0ae5712d
docs(Typography): fix editable.onChange parameter (#36443) 2022-07-08 22:10:24 +08:00
NinJa
4e03961b91
feat: Update Doc (#36437)
Co-authored-by: meng.jia <meng.jia@ly.com>
2022-07-08 19:12:03 +08:00
MadCcc
b9e71b93a8
chore: rm alpha warning notification and add console error (#36433)
* chore: rm alpha warning notification and add console error

* chore: ignore in test

* chore: ignore coverage
2022-07-08 15:18:01 +08:00
simplejason
1a8edd992c
fix: fix wrong color of date picker with status set (#35685)
* fix: fix wrong color of date picker with status set

* Update status.less

Co-authored-by: afc163 <afc163@gmail.com>
2022-07-08 11:59:32 +08:00
zombiej
3f9dfb4781 chore: next merge master 2022-07-08 11:24:57 +08:00
舜岳
47f68d0e5c
fix: fix table container z-index (#36420) 2022-07-08 10:31:53 +08:00
二货机器人
dbbf1e50a2
chore: rm useless warning in alpha (#36419)
* chore: rm useless warning in alpha

* chore: no need for test
2022-07-07 23:41:20 +08:00
二货机器人
254bbda86d
feat: Select like component support pure render (#36407)
* feat: support select pure render

* test: Update snapshot

* chore: fix pure render export ts

* chore: fix lint

* test: do not care about ssr
2022-07-07 20:05:19 +08:00
Alan Deng
3fc4ff2dc6
docs(Typography): translate docs from English to Chinese (#36417) 2022-07-07 18:38:23 +08:00
MadCcc
6a0b90c8e7
chore: reset a style (#36414) 2022-07-07 16:56:04 +08:00
hsk-kr
e262ae8133
docs: fix customize calendar example (#36356)
* docs: fix customize calendar example

* test: changed calendar snapshot

Co-authored-by: lico <lico@licoui-MacBookPro.local>
2022-07-06 23:29:57 +08:00