Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zl/v4.20.4 sync #68

Merged
merged 1,066 commits into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1066 commits
Select commit Hold shift + click to select a range
c5e8efb
feat: Dropdown support switch options with arrow keys (#34738)
MadCcc Mar 28, 2022
0299966
fix: skeleton cannot display children (#34751)
Dunqing Mar 28, 2022
93bc388
chore: update rc-tabs version (#34757)
MadCcc Mar 28, 2022
0c4281f
test: Update snapshot (#34758)
shuaijiumei Mar 28, 2022
2bff96f
feat: Input.Group prevent components from getting style from Form.Ite…
MadCcc Mar 29, 2022
ff02a4e
docs: replace grid design img (#34771)
MadCcc Mar 29, 2022
ceba0d5
chore: comiple use matrix (#34770)
zombieJ Mar 29, 2022
c89e33d
test: update snapshot
zombieJ Mar 30, 2022
2733977
chore: React 18 test case (#34781)
zombieJ Mar 30, 2022
c0304cc
fix: Pagination should display middle size Select when ConfigProvider…
afc163 Mar 30, 2022
f5c6379
fix: correct className (#34791)
Unuuuuu Mar 30, 2022
a73629f
chore: merge feature
afc163 Mar 31, 2022
83b979e
chore: auto merge branchs (#34800)
github-actions[bot] Mar 31, 2022
0edd112
feat: Anchor supports `getCurrentAnchor(activeLink)` (#34799)
afc163 Mar 31, 2022
550f60f
docs: update draggable demo with rtl mode (#34785)
miracles1919 Mar 31, 2022
1b12107
Update faq.zh-CN.md
afc163 Mar 31, 2022
1e06f6c
docs: patch 4.19.3 change log (#34821)
yoyo837 Apr 1, 2022
dd13e80
chore: minify themes css (#34824)
afc163 Apr 1, 2022
80c1391
docs: Add faq (#34830)
zombieJ Apr 1, 2022
452c583
feat: Tree `switcherIcon` prop support render-prop (#34470)
zqran Apr 1, 2022
baade86
fix: Form unmount miss origin store value (#34845)
zombieJ Apr 2, 2022
11d09f8
docs: 4.19.5 changelog (#34851)
zombieJ Apr 2, 2022
6776bb8
docs: demo support react18 (#34843)
MadCcc Apr 3, 2022
25f8a0a
docs: add size property to progress (#34860)
Unuuuuu Apr 5, 2022
b47ac62
chore(deps-dev): bump eslint-plugin-unicorn from 41.0.1 to 42.0.0 (#3…
dependabot[bot] Apr 5, 2022
27bb1ea
chore: Update de_DE.tsx (#34836)
pfedan Apr 5, 2022
c4ffbff
fix: set requestId to null after fn was cancelled (#34858)
tmkx Apr 5, 2022
445e6c6
feat: Support ref for Title, Text, Paragraph (#34847)
MQuy Apr 5, 2022
1a8a5ee
fix: add aria-checked prop to checkbox (#34862)
SpaNb4 Apr 6, 2022
08e962d
chore(deps): update moment to 2.29.2 (#34867)
crenshaw-dev Apr 6, 2022
a67c0d2
fix: react 18 test fixing (#34787)
zombieJ Apr 6, 2022
3de8030
docs: site wrap with strict mode (#34895)
zombieJ Apr 7, 2022
d490134
fix: not warpper animation for badge RTL (#34899)
hmz22 Apr 7, 2022
3cdc02b
feat: Synchronize the update of antd 4.19.5 version
Apr 7, 2022
b3e6676
fix: skeleton cannot dispaly without children and loading props : Ske…
AlbertAZ1992 Apr 7, 2022
afa4442
refactor: add optionType for Radio internally (#34849)
vagusX Apr 8, 2022
f41b6a8
chore(deps-dev): bump @types/react-dom from 17.0.15 to 18.0.0 (#34943)
dependabot[bot] Apr 8, 2022
5b8e4e5
chore: Compatible for @types/react@18 (#34937)
zombieJ Apr 8, 2022
fd1265b
chore(deps): update dependency react-highlight-words to ^0.18.0 (#34954)
renovate[bot] Apr 11, 2022
ae4e660
feat: add new component `Segmented` (#34319)
vagusX Apr 11, 2022
01a475a
ci: Add GitHub token permissions for workflows (#34946)
varunsh-coder Apr 11, 2022
77b6a86
fix: Form layout span 24 usage in responsive mode (#34907)
afc163 Apr 11, 2022
494c55d
fix: small size of Table style problem (#34963)
afc163 Apr 11, 2022
688422b
test: back of coverage (#34964)
zombieJ Apr 11, 2022
a0d1440
chore: merge conflict
zombieJ Apr 11, 2022
85a351e
chore: test fix
zombieJ Apr 11, 2022
65cec14
chore: fix ts
zombieJ Apr 11, 2022
1e35235
chore: fix ts demo
zombieJ Apr 11, 2022
227036f
chore: auto merge branchs (#34974)
github-actions[bot] Apr 11, 2022
3fd6b7e
chore: auto merge branchs (#34976)
github-actions[bot] Apr 11, 2022
f11bde4
docs: Add faq about chrome with upload
zombieJ Apr 12, 2022
62b2212
feat: crossorigin attribute of Upload (#34981)
dragmove Apr 12, 2022
6223342
docs: update faq (#34984)
zombieJ Apr 12, 2022
9c0fc05
test: Update snapshot
zombieJ Apr 12, 2022
15453e7
feat: Image preview support keyboard switch (#34992)
zpc7 Apr 12, 2022
cbe8538
style: remove selected item style of AutoComplete (#34996)
afc163 Apr 12, 2022
618490b
chore(deps-dev): bump react-helmet-async from 1.2.3 to 1.3.0 (#34997)
dependabot[bot] Apr 12, 2022
3718a8e
chore: use ~ instead of ^ for rc-segmented
afc163 Apr 12, 2022
cf44a6b
docs: recommend S2 and ProTable in table documentation (#34998)
afc163 Apr 12, 2022
c421383
Update index.en-US.md
afc163 Apr 12, 2022
1cd911c
docs: changelog for 4.20.0-alpha.0 (#34977)
PeachScript Apr 12, 2022
bd6cb95
fix: arrow radius use fixed value (#34999)
MadCcc Apr 13, 2022
d66784a
fix: Spin rotate deg number (#35005)
afc163 Apr 13, 2022
3142c10
docs(input): use Intl.NumberFormat (#34985)
nnmax Apr 13, 2022
800ce2a
chore(deps-dev): bump glob from 7.2.0 to 8.0.1 (#35017)
dependabot[bot] Apr 13, 2022
a7c5f6b
fix(cascader): search result not fill the entire panel (#35019)
boomler Apr 13, 2022
4c8041d
fix: Select and AutoComplete scroll behavior by keyboard (#35025)
afc163 Apr 14, 2022
cfc0530
chore: auto merge branchs (#35027)
github-actions[bot] Apr 14, 2022
35a943d
chore: clean up some project files (#35028)
afc163 Apr 14, 2022
9ed3193
chore: remove unused Upload in form styles (#35033)
afc163 Apr 14, 2022
67ccf39
fix: Notification & message throw `createRoot` warning in React 18 (#…
zombieJ Apr 14, 2022
b62e409
feat: Form support useWatch (#35036)
zombieJ Apr 14, 2022
7769ca1
feat: Image PreviewGroup Support top progress rendering (#35038)
zpc7 Apr 14, 2022
9b73058
refactor: wrap picker with FC (#34994)
MadCcc Apr 15, 2022
c95bd2a
Merge branch 'master' into zl/v4.19.5-sync
Apr 15, 2022
15597e1
test: Update snapshot
zombieJ Apr 15, 2022
beeaf2d
docs: More info about useWatch (#35039)
zombieJ Apr 15, 2022
4291c1d
chore: auto merge branchs (#35049)
github-actions[bot] Apr 15, 2022
0f0e2f9
docs: simplify demo code, #30853 (#35050)
afc163 Apr 15, 2022
5a7a3c6
feat: sync v4.20.0 antd
Apr 15, 2022
33c0da0
style: cleanup upload unused styles (#35052)
afc163 Apr 15, 2022
9902c21
fix: Upload pass UploadList prefixCls (#34944)
swchen Apr 15, 2022
52a1e8b
Update overview.en-US.md
afc163 Apr 15, 2022
39af7b3
docs: fix overview content (#35055)
c0dedance Apr 15, 2022
cd34715
test: fix jest snapshot
afc163 Apr 15, 2022
e4a8775
test: update test cases to testing-lib (#35056)
MadCcc Apr 15, 2022
1c8e499
test: migrate some test case to testing-library (#35062)
MadCcc Apr 17, 2022
ee78417
ci: up version (#35067)
xrkffgg Apr 17, 2022
e3d8689
chore: auto merge branchs (#35053)
github-actions[bot] Apr 17, 2022
f8ed048
chore: auto merge branchs (#35068)
github-actions[bot] Apr 18, 2022
61a6083
docs: Update useWatch docs
zombieJ Apr 18, 2022
2154b45
docs: update docs version
xrkffgg Apr 18, 2022
805759e
docs: add 4.20.0-alpha.1 changelog (#35070)
xrkffgg Apr 18, 2022
2a35bea
docs: Update changelog missing useFormInstance
zombieJ Apr 18, 2022
640fe5d
chore: rc-dialog id unique sync (#35072)
zombieJ Apr 18, 2022
0785f0b
feat: Sync 4.20.0-alpha.1 version from Antd
Apr 18, 2022
1e91a49
chore: Compatible for @types/react@18 (#35075)
AliRezaBeigy Apr 18, 2022
2e0aed9
chore: 🤖 component Steps ts def for react18 (#35076)
littledian Apr 18, 2022
30ac6bd
test: wrap React.StrictMode for test cases (#35026)
afc163 Apr 18, 2022
7f54a45
test: Update snapshot
zombieJ Apr 18, 2022
dc4da79
fix: fixed arrow border radius variables (#35086)
MadCcc Apr 19, 2022
d6b2309
style: fix the problem of inconsistent styles in RTL mode (#35088)
zpc7 Apr 19, 2022
eb7f8c7
refactor: change anchor to fc for the cssinjs prepare (#35073)
LongHaoo Apr 19, 2022
9038524
style: fix the style of progress rendering at the top of component Im…
zpc7 Apr 19, 2022
50a6a44
pref: upgrade rc-menu (#35071)
KAROTT7 Apr 19, 2022
b8eaecb
fix: Form in React 18 StrictMode (#35096)
zombieJ Apr 19, 2022
37e3e1a
docs: update Drawer overview image (#35099)
afc163 Apr 19, 2022
ea648e7
chore: tweak upload style (#35097)
afc163 Apr 19, 2022
74b60d2
fix: cn menus doc (#35078)
nuintun Apr 19, 2022
12d98f9
chore: update snapshot due to rc-trigger bumped (#35106)
afc163 Apr 19, 2022
f180ec6
style: Switch background should not be transparent (#35103)
afc163 Apr 20, 2022
1349b99
docs: improve upload demos (#35104)
afc163 Apr 20, 2022
5dfa867
docs: add input showCount lose focus desc. close #35080
zombieJ Apr 20, 2022
78536b2
chore: fix cirrus-actions/rebase
afc163 Apr 20, 2022
e8b816e
fix(Typography): change less function to less variable in danger styl…
TrickyPi Apr 20, 2022
b666bfd
refactor: wrap Spin with FC (#35114)
MadCcc Apr 20, 2022
9eae13a
fix: breadcrumb shows the number (#35123)
zombieJ Apr 20, 2022
4de07ad
docs: Add deprecated usage (#35128)
zombieJ Apr 20, 2022
566632e
docs: Update Menu demo sample
zombieJ Apr 20, 2022
255bfdd
docs: improve menu usage for items (#35131)
afc163 Apr 20, 2022
cbd4f1b
docs: update getContainer of Modal and Drawer (#35141)
afc163 Apr 20, 2022
1525ac4
chore: bump dropdown with inject mark (#35153)
zombieJ Apr 21, 2022
3e6817a
docs: Update Dropdown basic demo icon
zombieJ Apr 21, 2022
15599bb
docs: Add dropdown menu missing keys
zombieJ Apr 21, 2022
93b55d5
chore: remove Breadcrumb Dropdown warning (#35162)
afc163 Apr 21, 2022
8f06430
fix: DropDownProps => DropdownProps (#35161)
afc163 Apr 21, 2022
91a7e8b
docs: add Application Frameworks recommendation (#35168)
omeraplak Apr 21, 2022
3511642
docs: segmented update (#35171)
MadCcc Apr 22, 2022
f8d7281
docs: Update demo with Space (#35172)
zombieJ Apr 22, 2022
8923d59
fix: small table selection dropdown margin issue
afc163 Apr 22, 2022
7d822f1
fix: small table selection dropdown margin issue (#35173)
afc163 Apr 22, 2022
6a00bdd
docs: Update Dropdown demo
zombieJ Apr 22, 2022
e14ec00
fix: small/middle table selection dropdown margin issue (#35174)
afc163 Apr 22, 2022
f8e7cba
refactor: Simplify Button Group Style (#35175)
zombieJ Apr 22, 2022
eb70223
docs: faq about modal. close #35177
zombieJ Apr 22, 2022
e2cddd6
test: fix test in segmented (#35183)
vagusX Apr 22, 2022
26707f1
test(🏞): batch upload snapshots to argos-ci.com (#35181)
afc163 Apr 22, 2022
ad9e2d9
fix: Upload interface generic type (#35158)
rendaoer Apr 22, 2022
ee62176
docs(🛡): update README badges (#35185)
afc163 Apr 22, 2022
2d654bf
chore: fix argos-ci upload BATCH_SIZE
afc163 Apr 22, 2022
68b2344
fix: code to use @html-selector variable (#35186)
jeffdrumgod Apr 23, 2022
77dcd12
revert: batchCount of argos-ci
afc163 Apr 23, 2022
22c1021
docs: add debug demo for segmented (#35176)
vagusX Apr 23, 2022
78eed85
style: `Segmented` supports rtl styles (#35188)
vagusX Apr 23, 2022
a9806a2
perf: optimize calculation of filteredKeysIsAllControlled (#35064)
nieyuyao Apr 23, 2022
5bb4705
chore: fix argos-ci check status in PR (#35193)
afc163 Apr 23, 2022
1548f44
feat: upgrade rc-segmented v2 (#35187)
vagusX Apr 23, 2022
cf99398
site: tweak theme button margin of site footer (#35192)
afc163 Apr 23, 2022
f410b18
fix: remove Tabs overflow hidden style (#35195)
afc163 Apr 23, 2022
0efba5f
docs: add demo link for Menu legacy usage (#35202)
afc163 Apr 24, 2022
75c741c
chore: update ui.yml
afc163 Apr 24, 2022
da85ed4
docs: 4.20.0 changelog (#35203)
zombieJ Apr 24, 2022
59c7c37
docs: fix changelog date
zombieJ Apr 24, 2022
3467c36
docs: Update Segmented changelog
zombieJ Apr 24, 2022
43d2265
docs: Note for 18 known issue
zombieJ Apr 24, 2022
c1831fb
test: Replace transfer part test with testing lib (#35216)
zombieJ Apr 24, 2022
6a08a46
fix: upload circle ref (#34379)
kanweiwei Apr 24, 2022
c85d988
chore: add useWatch test placeholder
zombieJ Apr 25, 2022
6da5d64
chore: run image snapshots on every branches
afc163 Apr 25, 2022
4a6db91
style: fix Breadcrumb reset style (#35235)
afc163 Apr 26, 2022
8ca52a1
fix: input onSearch trigger wrongly (#34844) (#35164)
qyzzzz Apr 26, 2022
8a36abc
docs(:sparkles:): release 4.20.1 (#35250)
afc163 Apr 26, 2022
42525ff
test: add menu focus test (#35252)
MadCcc Apr 26, 2022
2a79f85
test: fix upload test case
afc163 Apr 26, 2022
8ec7ad1
feat: Sync 4.20.0 version from Antd
Apr 26, 2022
b793a4e
test: skip uploadlist test for now
afc163 Apr 26, 2022
45a1902
docs: replace `git.io` link with the original URL (#35261)
SukkaW Apr 27, 2022
5a6b3cc
fix: Table columns sorter a11y experience (#35269)
afc163 Apr 27, 2022
eee3b50
feat: support icon only in segmented (#35256)
vagusX Apr 28, 2022
1ff58d2
feat: dropdown auto-focus (#35307)
MadCcc Apr 28, 2022
24fa6a1
docs: update space demos
afc163 Apr 28, 2022
3eabcba
fix: Space duplicated key warning (#35311)
afc163 Apr 28, 2022
8a06dcb
Added pending filter translations Table locale/es_ES (#35309)
agarciaguillo Apr 29, 2022
3c2d3ac
chore: Add code file owner
zombieJ Apr 29, 2022
ee5de21
chore: more owner files
zombieJ Apr 29, 2022
d7ba815
docs: fix form instance type error (#35320)
Dunqing Apr 29, 2022
409c25b
feat: set proper height for Segmented (#35281)
vagusX Apr 29, 2022
9984f0a
style: tweak BreadCrumb link hover color (#35324)
afc163 Apr 29, 2022
4b71e1a
chore: Aligning the CI description and its behavior (#35325)
yoyo837 Apr 29, 2022
19d5f07
test: Rewrite mountTest with testing lib (#35326)
jrr997 Apr 29, 2022
e153cf0
docs: add instruction about tokenSeparators (#35329)
afc163 Apr 29, 2022
1fed15c
test: replace Empty part test with test lib (#35289)
lalalazero Apr 29, 2022
11e69f3
fix: Switch disabled color in dark theme (#35332)
afc163 Apr 29, 2022
0658932
Revert "feat: dropdown auto-focus (#35307)" (#35337)
afc163 Apr 30, 2022
4281739
docs: update Tabs component onEdit prop describe (#35271)
Dreamcreative Apr 30, 2022
609d576
docs: changelog for 4.20.2 (#35338)
afc163 Apr 30, 2022
c5ddb00
docs: add changelog for #35336
afc163 Apr 30, 2022
a21da91
style: fix Select tag remove icon position (#35336)
walidcherhane Apr 30, 2022
d241028
Merge branch 'master' of github.com:ant-design/ant-design
afc163 Apr 30, 2022
2290144
test: update test case
zombieJ May 1, 2022
c2741c2
test: transfer part of tooltip test case to testing library (#35362)
zpc7 May 3, 2022
85fd064
test: refactor test cases of Space (#35372)
jrr997 May 4, 2022
44b9ab7
test: migrate part of anchor tests (#35371)
linqiqi077 May 4, 2022
50d3d99
test: migrate part of checkbox tests (#35354)
TrickyPi May 5, 2022
a217301
fix: Carousel compatible with vertical property (#35349)
haipeng May 5, 2022
978226f
chore: fix npm start error in Gitpod
afc163 May 5, 2022
e039b10
Revert "chore: fix npm start error in Gitpod"
afc163 May 5, 2022
6c0f67e
fix: table column filter reset is not working (#35226) (#35386)
lalalazero May 5, 2022
10596d9
fix: Respect user provided space item key (#35344)
cncolder May 5, 2022
d8ab5a5
Resolve Ant Design Notification component TypeScript error via adding…
cwveysey May 5, 2022
ce1fc29
fix: use less variables for Segmented (#35387)
vagusX May 5, 2022
206e6dd
docs: reverse React 18 demo
afc163 May 5, 2022
7511b9e
test: replace textarea some test case with testing lib (#35398)
zombieJ May 6, 2022
c75e59f
chore: rm useless console
zombieJ May 6, 2022
1a788cf
chore: rm CODEOWNER since this block github action
zombieJ May 6, 2022
8545647
test: transfer tooltip test case to testing library
zpc7 May 6, 2022
d9ce1ad
ci: trigger the pr check
zpc7 May 6, 2022
8ade7ab
test: try to fix the pr check
zpc7 May 6, 2022
55f9e29
test: remove some test case
zpc7 May 6, 2022
22b89ee
test: foreach all placement
zpc7 May 7, 2022
d07dcd4
fix(<Row/>): wipe out unnecessary prop (#35409)
KAROTT7 May 7, 2022
9b56ad8
docs: explain Avatar fallback strategy (#35415)
parabolazz May 7, 2022
7873bf7
fix: arrow style (#35401)
MadCcc May 7, 2022
ad886d1
test: replace some slepp with jest.runAllTimers
zpc7 May 7, 2022
bd31a6a
Revert "test: replace some slepp with jest.runAllTimers"
zpc7 May 7, 2022
5d2475a
fix: List.Item ref (#35321)
hengkx May 7, 2022
d1f85d9
fix: List.Item typescript (#35418)
hengkx May 7, 2022
00fb822
Merge pull request #35396 from zpc7/test/transfer-tooltip-to-testing-…
zombieJ May 7, 2022
1719748
chore: eslint add consistent-type-imports (#35419)
hengkx May 7, 2022
04c884b
Merge branch 'master' of github.com:infra-fe/infra-design into zl/v4.…
May 7, 2022
9a59018
chore: change menu icon in site
afc163 May 7, 2022
11e2ce6
docs: update mirror link (#35424)
MadCcc May 7, 2022
8b682a5
chore: split chunks (#35222)
MadCcc May 8, 2022
fcf2afd
fix: add missing localizations (#35430)
velykanov May 8, 2022
be982e1
docs: add 4.20.3 changelog (#35435)
chenshuai2144 May 8, 2022
c897728
docs: update demo template (#35440)
MadCcc May 9, 2022
36ded1a
docs: fix typo (#35439)
cisolarix May 9, 2022
6e10020
chore(deps-dev): bump husky from 7.0.4 to 8.0.1 (#35451)
dependabot[bot] May 9, 2022
01ebb6a
test: update snapshot (#35452)
MadCcc May 9, 2022
b5699cc
chore: optimze LGTM (#35443)
MadCcc May 9, 2022
0f63293
fix: dev broken (#35453)
MadCcc May 9, 2022
ed4d416
chore(deps-dev): upgrade to jest 28 (#35334)
afc163 May 9, 2022
1d3fd70
fix: bad List.Item type (#35454) (#35455)
rsmeral May 10, 2022
f5831f1
docs: replace class component with hooks (#35461)
poyiding May 10, 2022
17cd13f
refactor: remove cascader displayRender warning (#35417)
lalalazero May 10, 2022
338ec7d
perf: refactor devWarning for production code size (#35411)
KAROTT7 May 10, 2022
5cf579c
docs: replace class component with hooks (#35472)
poyiding May 10, 2022
b4ae920
chore: fix LGTM
afc163 May 11, 2022
68a2f8b
docs: indicate that menu items require `key`s (#35474)
tonywu6 May 11, 2022
089dc7e
docs: remove editable in table documentation
afc163 May 11, 2022
19f5514
fix: tree checkbox margin in rtl mode (#35491)
miracles1919 May 11, 2022
765bc1e
docs: Table QA about rowSelection renderCell (#35494)
mrlmx May 11, 2022
fbdcbc7
docs: changelog 4.20.4 (#35495)
MadCcc May 11, 2022
be2b0d8
docs: replace class component with hooks (#35500)
poyiding May 11, 2022
debd7f3
fix(statistic): ignore the decimal part when the precision is negativ…
ty888 May 12, 2022
e8d9c42
test: Update snapshot
zombieJ May 13, 2022
d7cdd88
test: Update snapshot (#35529)
zombieJ May 13, 2022
6d18e8d
docs: update work with us part
afc163 May 13, 2022
941a7f6
feat: Sync 4.20.4 version from antd
May 13, 2022
e4a5525
feat: update changelog
May 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 2,
'@typescript-eslint/consistent-type-imports': 2,
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
key: lock-${{ github.sha }}

- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts
run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps

- name: hack for single file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/site-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
key: lock-${{ github.sha }}

- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts
run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps

- name: hack for single file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
key: lock-${{ github.sha }}

- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts
run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps

- name: hack for single file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
node-version: '16'

- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts
run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps

- name: hack for single file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-files-modify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
assignees: 'afc163, zombieJ, xrkffgg, MadCcc'
comment-mark: 'version'
comment: |
Hi @${{ github.event.pull_request.user.login }}. Thanks for your contribution. The path `.github/` or `scripts/` and `CHANGELOG` `package.json` is only maintained by team members. This current PR will be closed and team members will help on this.
Hi @${{ github.event.pull_request.user.login }}. Thanks for your contribution. The path `.github/` or `scripts/` and `CHANGELOG` is only maintained by team members. This current PR will be closed and team members will help on this.
close: true
set-failed: false

Expand Down
18 changes: 10 additions & 8 deletions .jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'md'],
modulePathIgnorePatterns: ['/_site/'],
moduleNameMapper: {
'^dnd-core$': 'dnd-core/dist/cjs',
'^react-dnd$': 'react-dnd/dist/cjs',
'^react-dnd-html5-backend$': 'react-dnd-html5-backend/dist/cjs',
'^react-dnd-touch-backend$': 'react-dnd-touch-backend/dist/cjs',
'^react-dnd-test-backend$': 'react-dnd-test-backend/dist/cjs',
'^react-dnd-test-utils$': 'react-dnd-test-utils/dist/cjs',
'\\.(css|less)$': 'identity-obj-proxy',
'/^dnd-core$/': 'dnd-core/dist/cjs',
'/^react-dnd$/': 'react-dnd/dist/cjs',
'/^react-dnd-html5-backend$/': 'react-dnd-html5-backend/dist/cjs',
'/^react-dnd-touch-backend$/': 'react-dnd-touch-backend/dist/cjs',
'/^react-dnd-test-backend$/': 'react-dnd-test-backend/dist/cjs',
'/^react-dnd-test-utils$/': 'react-dnd-test-utils/dist/cjs',
'/\\.(css|less)$/': 'identity-obj-proxy',
infrad: '<rootDir>/components',
},
testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node', 'image.test.js', 'image.test.ts'],
Expand All @@ -53,5 +53,7 @@ module.exports = {
tsConfig: './tsconfig.test.json',
},
},
testURL: 'http://localhost',
testEnvironmentOptions: {
url: 'http://localhost',
},
};
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{
"ignoreFunctions": [
"fade",
"fadeout",
"tint",
"darken",
"ceil",
Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ timeline: true

| infrad version | antd version | update content | time |
| --- | --- | --- | --- |
| 4.20.4 | 4.20.4 | Synchronize the update of antd 4.20.4 version | 2022-05-13 |
| 4.20.0 | 4.20.0 | Synchronize the update of antd 4.20.0 version | 2022-04-26 |
| 4.19.5 | 4.19.5 | Synchronize the update of antd 4.19.5 version | 2022-04-07 |
| 4.19.3 | 4.19.3 | Synchronize the update of antd 4.19.3 version | 2022-03-22 |
Expand All @@ -32,6 +33,50 @@ if you have some problem, welcome to connect `[email protected]` or `lay.z

---

## 4.20.4

`2022-05-11`

- 🐞 Fix broken List.Item type definition. [#35455](https://github.com/ant-design/ant-design/pull/35455) [@rsmeral](https://github.com/rsmeral)
- 🐞 Fix Checkbox margin in Tree RTL mode. [#35491](https://github.com/ant-design/ant-design/pull/35491) [@miracles1919](https://github.com/miracles1919)
- 🗑 Remove Cascader `displayRender` warning. [#35417](https://github.com/ant-design/ant-design/pull/35417) [@lalalazero](https://github.com/lalalazero)

## 4.20.3

`2022-05-08`

- 🐞 Fix unnecessary `rowGap: 0` style attribute in Row. [#35409](https://github.com/ant-design/ant-design/pull/35409)
- 🐞 Fix List.Item `ref` no work problem. [#35321](https://github.com/ant-design/ant-design/pull/35321)
- 💄 Optimize the style of arrow in Tooltip. [#35401](https://github.com/ant-design/ant-design/pull/35401)
- 🐞 Fix Table column filter reset is not working. [#35386](https://github.com/ant-design/ant-design/pull/35386) [@lalalazero](https://github.com/lalalazero)
- 🌍 Add missing localizations for 🇬🇧 en_GB and 🇺🇦 uk_UA. [#35430](https://github.com/ant-design/ant-design/pull/35430) [@velykanov](https://github.com/velykanov)
- Typescript
- 🤖 Fixed an issue where notification `maxCount` attribute was missing. [#35369](https://github.com/ant-design/ant-design/pull/35369) [@cwveysey](https://github.com/cwveysey)

## 4.20.2

`2022-04-30`

- Segmented
- 🐞 Fix Segmented inconsisit height with other controls. [#35281](https://github.com/ant-design/ant-design/pull/35281)
- 🐞 Fix Segmented animation not working correct in StrictMode mode. [#35281](https://github.com/ant-design/ant-design/pull/35281)
- 🆕 Segmented `options` now supports `icon` property. [#35256](https://github.com/ant-design/ant-design/pull/35256)
- Table
- ⌨️ Improve Table columns sorter a11y experience. [#35269](https://github.com/ant-design/ant-design/pull/35269)
- 🇪🇸 Added Table filter localization for es_ES. [#35309](https://github.com/ant-design/ant-design/pull/35309) [@agarciaguillo](https://github.com/agarciaguillo)
- 💄 Fix Switch color in dark theme. [#35332](https://github.com/ant-design/ant-design/pull/35332)
- 💄 Tweak Breadcrumb link hover color. [#35324](https://github.com/ant-design/ant-design/pull/35324)
- 🐞 Fix Space throws `Encountered two children with the same key` warning in some cases. [#35311](https://github.com/ant-design/ant-design/pull/35311)
- 🐞 Fix Select tag remove icon position issue. [#35336](https://github.com/ant-design/ant-design/pull/35336) [@walidcherhane](https://github.com/walidcherhane)

## 4.20.1

`2022-04-26`

- 🐞 Fix Breadcrumb extra padding and margin style. [#35235](https://github.com/ant-design/ant-design/pull/35235)
- 🐞 Fix Input.Seach inconsistent behavior of triggering `onSearch` when press enter using Chinese inputting method. [#35164](https://github.com/ant-design/ant-design/pull/35164) [@qyzzzz](https://github.com/qyzzzz)
- 🐞 Fix circle reference between Upload and Dragger. [#34379](https://github.com/ant-design/ant-design/pull/34379) [@kanweiwei](https://github.com/kanweiwei)

## 4.20.0

`2022-04-24`
Expand Down
46 changes: 46 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ timeline: true

| infrad 版本号 | 对应 antd 版本号 | 更新内容 | 时间 |
| --- | --- | --- | --- |
| 4.20.4 | 4.20.4 | 同步 antd 4.20.4 版本的更新 | 2022-05-13 |
| 4.20.0 | 4.20.0 | 同步 antd 4.20.0 版本的更新 | 2022-04-26 |
| 4.19.5 | 4.19.5 | 同步 antd 4.19.5 版本的更新 | 2022-04-07 |
| 4.19.3 | 4.19.3 | 同步 antd 4.19.3 版本的更新 | 2022-03-22 |
Expand All @@ -32,6 +33,51 @@ timeline: true

---

## 4.20.4

`2022-05-11`

- 🐞 修复 List.Item 类型错误。[#35455](https://github.com/ant-design/ant-design/pull/35455) [@rsmeral](https://github.com/rsmeral)
- 🐞 修复 Tree 组件 RTL 模式下 Checkbox 的间距。[#35491](https://github.com/ant-design/ant-design/pull/35491) [@miracles1919](https://github.com/miracles1919)
- 🗑 删除 Cascader `displayRender` 警告。[#35417](https://github.com/ant-design/ant-design/pull/35417) [@lalalazero](https://github.com/lalalazero)

## 4.20.3

`2022-05-08`

- 🔥 增加 [官方国内镜像](https://ant-design.antgroup.com/index-cn),享受飞一般的加载速度。
- 🐞 修复 Row 里不必要的 `rowGap: 0` 样式属性。[#35409](https://github.com/ant-design/ant-design/pull/35409)
- 🐞 修复 List.Item `ref` 不生效的问题。[#35321](https://github.com/ant-design/ant-design/pull/35321)
- 💄 优化 Tooltip 箭头的样式。[#35401](https://github.com/ant-design/ant-design/pull/35401)
- 🐞 修复 Table 筛选的重置功能不生效问题。[#35386](https://github.com/ant-design/ant-design/pull/35386) [@lalalazero](https://github.com/lalalazero)
- 🌍 为 🇬🇧 en_GB 和 🇺🇦 uk_UA 添加缺失的本地化文案。[#35430](https://github.com/ant-design/ant-design/pull/35430) [@velykanov](https://github.com/velykanov)
- TypeScript
- 🤖 修复 Notification 的 `maxCount` 属性缺失的问题。[#35369](https://github.com/ant-design/ant-design/pull/35369) [@cwveysey](https://github.com/cwveysey)

## 4.20.2

`2022-04-30`

- Segmented
- 🐞 修复 Segmented 组件高度和其他控件不一致的问题。[#35281](https://github.com/ant-design/ant-design/pull/35281)
- 🐞 修复 React StrictMode 下 Segmented 动画丢失的问题。[#35281](https://github.com/ant-design/ant-design/pull/35281)
- 🆕 Segmented `options` 支持设置 `icon` 属性。[#35256](https://github.com/ant-design/ant-design/pull/35256)
- Table
- ⌨️ 优化 Table 排序按钮的键盘可访问性。[#35269](https://github.com/ant-design/ant-design/pull/35269)
- 🇪🇸 补充 Table 西班牙语筛选文案。[#35309](https://github.com/ant-design/ant-design/pull/35309) [@agarciaguillo](https://github.com/agarciaguillo)
- 🐞 修复 Switch 在暗黑主题下关闭时的颜色问题。[#35332](https://github.com/ant-design/ant-design/pull/35332)
- 💄 微调 Breadcrumb 链接 hover 色为中性色。[#35324](https://github.com/ant-design/ant-design/pull/35324)
- 🐞 修复 Space 在某些情况下抛出 `Encountered two children with the same key` 警告的问题。[#35311](https://github.com/ant-design/ant-design/pull/35311)
- 🐞 修复 Select 多选标签移除图标位置偏下的问题。[#35336](https://github.com/ant-design/ant-design/pull/35336) [@walidcherhane](https://github.com/walidcherhane)

## 4.20.1

`2022-04-26`

- 🐞 修复 Breadcrumb 多余的 `padding` 和 `margin` 样式。[#35235](https://github.com/ant-design/ant-design/pull/35235)
- 🐞 修复 Input.Search 在中文输入法下回车键触发 `onSearch` 的行为不一致的问题。[#35164](https://github.com/ant-design/ant-design/pull/35164) [@qyzzzz](https://github.com/qyzzzz)
- 🐞 修复 Upload 和 Upload.Dragger 之间循环依赖的问题。[#34379](https://github.com/ant-design/ant-design/pull/34379) [@kanweiwei](https://github.com/kanweiwei)

## 4.20.0

`2022-04-24`
Expand Down
3 changes: 2 additions & 1 deletion components/_util/ActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import useState from 'rc-util/lib/hooks/useState';
import Button from '../button';
import { LegacyButtonType, ButtonProps, convertLegacyProps } from '../button/button';
import type { LegacyButtonType, ButtonProps } from '../button/button';
import { convertLegacyProps } from '../button/button';

export interface ActionButtonProps {
type?: LegacyButtonType;
Expand Down
65 changes: 65 additions & 0 deletions components/_util/__tests__/warning.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
describe('Test warning', () => {
let spy: jest.SpyInstance;

beforeAll(() => {
spy = jest.spyOn(console, 'error');
});

afterAll(() => {
spy.mockRestore();
});

beforeEach(() => {
jest.resetModules();
});

afterEach(() => {
spy.mockReset();
});

it('Test noop', async () => {
const { noop } = await import('../warning');
const value = noop();

expect(value).toBe(undefined);
expect(spy).not.toHaveBeenCalled();
expect(() => {
noop();
}).not.toThrow();
});

describe('process.env.NODE_ENV !== "production"', () => {
it('If `false`, exec `console.error`', async () => {
const warning = (await import('../warning')).default;
warning(false, 'error');

expect(spy).toHaveBeenCalled();
});

it('If `true`, do not exec `console.error`', async () => {
const warning = (await import('../warning')).default;
warning(true, 'error message');

expect(spy).not.toHaveBeenCalled();
});
});

describe('process.env.NODE_ENV === "production"', () => {
it('Whether `true` or `false`, do not exec `console.error`', async () => {
const prevEnv = process.env.NODE_ENV;
process.env.NODE_ENV = 'production';

const { default: warning, noop } = await import('../warning');

expect(warning).toEqual(noop);

warning(false, 'error message');
expect(spy).not.toHaveBeenCalled();

warning(true, 'error message');
expect(spy).not.toHaveBeenCalled();

process.env.NODE_ENV = prevEnv;
});
});
});
3 changes: 2 additions & 1 deletion components/_util/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ElementOf, tuple } from './type';
import type { ElementOf } from './type';
import { tuple } from './type';

export const PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning');
// eslint-disable-next-line import/prefer-default-export
Expand Down
12 changes: 0 additions & 12 deletions components/_util/devWarning.ts

This file was deleted.

2 changes: 1 addition & 1 deletion components/_util/getRenderPropValue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as React from 'react';
import type * as React from 'react';

export type RenderFunction = () => React.ReactNode;

Expand Down
4 changes: 2 additions & 2 deletions components/_util/motion.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CSSMotionProps, MotionEventHandler, MotionEndEventHandler } from 'rc-motion';
import { MotionEvent } from 'rc-motion/lib/interface';
import type { CSSMotionProps, MotionEventHandler, MotionEndEventHandler } from 'rc-motion';
import type { MotionEvent } from 'rc-motion/lib/interface';
import { tuple } from './type';

// ================== Collapse Motion ==================
Expand Down
2 changes: 1 addition & 1 deletion components/_util/placements.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { placements } from 'rc-tooltip/lib/placements';
import { BuildInPlacements } from 'rc-trigger';
import type { BuildInPlacements } from 'rc-trigger';

const autoAdjustOverflowEnabled = {
adjustX: 1,
Expand Down
2 changes: 1 addition & 1 deletion components/_util/statusUtils.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from 'classnames';
import { ValidateStatus } from '../form/FormItem';
import type { ValidateStatus } from '../form/FormItem';
import { tuple } from './type';

const InputStatuses = tuple('warning', 'error', '');
Expand Down
21 changes: 21 additions & 0 deletions components/_util/warning.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import rcWarning, { resetWarned } from 'rc-util/lib/warning';

export { resetWarned };
export function noop() {}

type Warning = (valid: boolean, component: string, message: string) => void;

// eslint-disable-next-line import/no-mutable-exports
let warning: Warning = noop;
if (process.env.NODE_ENV !== 'production') {
warning = (valid, component, message) => {
rcWarning(valid, `[antd: ${component}] ${message}`);

// StrictMode will inject console which will not throw warning in React 17.
if (process.env.NODE_ENV === 'test') {
resetWarned();
}
};
}

export default warning;
3 changes: 2 additions & 1 deletion components/_util/wave.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import * as React from 'react';
import { updateCSS } from 'rc-util/lib/Dom/dynamicCSS';
import { supportRef, composeRef } from 'rc-util/lib/ref';
import raf from './raf';
import { ConfigConsumer, ConfigConsumerProps, CSPConfig, ConfigContext } from '../config-provider';
import type { ConfigConsumerProps, CSPConfig } from '../config-provider';
import { ConfigConsumer, ConfigContext } from '../config-provider';
import { cloneElement } from './reactNode';

let styleForPseudo: HTMLStyleElement | null;
Expand Down
6 changes: 4 additions & 2 deletions components/affix/__tests__/Affix.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import { mount, ReactWrapper } from 'enzyme';
import Affix, { AffixProps, AffixState } from '..';
import type { ReactWrapper } from 'enzyme';
import { mount } from 'enzyme';
import type { AffixProps, AffixState } from '..';
import Affix from '..';
import { getObserverEntities } from '../utils';
import Button from '../../button';
import rtlTest from '../../../tests/shared/rtlTest';
Expand Down
3 changes: 2 additions & 1 deletion components/affix/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import * as React from 'react';
import classNames from 'classnames';
import omit from 'rc-util/lib/omit';
import ResizeObserver from 'rc-resize-observer';
import { ConfigContext, ConfigConsumerProps } from '../config-provider';
import type { ConfigConsumerProps } from '../config-provider';
import { ConfigContext } from '../config-provider';
import { throttleByAnimationFrameDecorator } from '../_util/throttleByAnimationFrame';

import {
Expand Down
3 changes: 2 additions & 1 deletion components/anchor/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import classNames from 'classnames';
import memoizeOne from 'memoize-one';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import Affix from '../affix';
import { ConfigContext, ConfigConsumerProps } from '../config-provider';
import type { ConfigConsumerProps } from '../config-provider';
import { ConfigContext } from '../config-provider';
import scrollTo from '../_util/scrollTo';
import getScroll from '../_util/getScroll';
import AnchorContext from './context';
Expand Down
Loading