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.21.0 sync #70

Merged
merged 1,225 commits into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1225 commits
Select commit Hold shift + click to select a range
6a08a46
fix: upload circle ref (#34379)
kanweiwei Apr 24, 2022
bdabee4
feat(Typography): copyable text support format (#35219)
kanweiwei Apr 25, 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
40379a3
chore: auto merge branchs (#35253)
github-actions[bot] Apr 26, 2022
2a79f85
test: fix upload test case
afc163 Apr 26, 2022
444ce6d
refactor: replace float with flex of Card (#35236)
miracles1919 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
b0a6525
feat: Form disabled (#35210)
heiyu4585 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
85707ff
chore: auto merge branchs (#35347)
github-actions[bot] 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
7f6e449
feat: Dropdown support autoFocus (#35391)
MadCcc May 5, 2022
7511b9e
test: replace textarea some test case with testing lib (#35398)
zombieJ May 6, 2022
25de1c4
chore: auto merge branchs (#35399)
github-actions[bot] May 6, 2022
63d3c57
refactor: Progress rebuild as function component (#35393)
shuaijiumei 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
4734f65
feat: focus menu item automaticly when focusing menu (#35407)
MadCcc 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
4184cc7
Merge branch 'master' into feature-merge-master
MadCcc May 7, 2022
130b146
chore: update snapshot
MadCcc May 7, 2022
079ab97
chore: auto merge branchs (#35416)
github-actions[bot] 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
594f138
resolve conflict between feature and master
afc163 May 8, 2022
2aa3e7a
chore: auto merge branchs (#35432)
github-actions[bot] May 8, 2022
fcf2afd
fix: add missing localizations (#35430)
velykanov May 8, 2022
6ca32a6
refactor: Progress type="circle" for some issues (#35433)
afc163 May 8, 2022
be982e1
docs: add 4.20.3 changelog (#35435)
chenshuai2144 May 8, 2022
42f91f9
feat: edit date-picker to hook (#35425)
heiyu4585 May 9, 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
2d70027
Merge branch 'master' into feature-merge-master
MadCcc May 12, 2022
b11cf22
test: update snapshot
MadCcc May 12, 2022
5af2680
chore: auto merge branchs (#35516)
github-actions[bot] May 12, 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
d4f23ba
refactor: Card loading (#35525)
MadCcc May 13, 2022
0d8fa8d
chore: auto merge branchs (#35532)
github-actions[bot] May 13, 2022
6d18e8d
docs: update work with us part
afc163 May 13, 2022
0846d4f
refactor: modal confirm button style (#35530)
foryuki May 13, 2022
941a7f6
feat: Sync 4.20.4 version from antd
May 13, 2022
e4a5525
feat: update changelog
May 13, 2022
e629b39
test: moving to testing-library in `Segmented` (#35538)
vagusX May 13, 2022
f56e66a
fix: Picker focus & blur not working (#35552)
zombieJ May 14, 2022
58df74c
docs: replace class component with hooks (#35519)
poyiding May 14, 2022
46df154
chore: deprecated rowSelection.onSelectNone and onSelectMultiple (#35…
afc163 May 14, 2022
0a69bb5
chore: del unused package && downgrade some packages which related we…
TrickyPi May 14, 2022
2631855
docs: changelog 4.20.5 (#35560)
MadCcc May 15, 2022
47d4032
chore: Update github action release helper release title
zombieJ May 15, 2022
644e4bf
fix: drawer close speed (#35339)
crazyair May 16, 2022
a909fbb
docs: fix 4.20.5 changelog typo (#35567)
MadCcc May 16, 2022
3d21ec5
refactor: reduce empty cycling deps (#35570)
zombieJ May 16, 2022
91181c5
chore: auto merge branchs (#35572)
github-actions[bot] May 16, 2022
bcc3274
chore: delete extra spaces (#35582)
josonho May 16, 2022
196a435
docs: replace class component with hooks (#35580)
poyiding May 17, 2022
b47aced
chore: bump tools version (#35594)
zombieJ May 17, 2022
f9f3a0e
style: fix Table header border when has rowSpan (#35591)
afc163 May 17, 2022
0b78057
chore: auto merge branchs (#35597)
github-actions[bot] May 17, 2022
c92e508
docs: Update CHANGELOG.zh-CN.md (#35604)
Brucia323 May 18, 2022
b222f93
feat: add a new locale tk_TK (#35605)
yoyo837 May 18, 2022
6817db7
feat: table rowSelection.onChange support type (#35598)
MadCcc May 18, 2022
c9b27cd
Update rebase.yml
afc163 May 18, 2022
5e910e7
docs: Fix DatePicker throw demo
zombieJ May 18, 2022
c52f19a
style: anchor text is overwritten (#35612)
josonho May 18, 2022
e5b09aa
docs: replace class component with hooks (#35613)
poyiding May 18, 2022
7fd093b
docs: feat components TS demo (#34742)
madocto May 19, 2022
4bccb99
fix: Remove Grid row and cell aria roles (#35616)
bartpio May 19, 2022
dd0b9d9
test: move test cases to `@testing/library` for Result (#35621)
vagusX May 19, 2022
10964f1
fix: incorrect position of picker popup (#35620)
yykoypj May 19, 2022
370960e
feat: add-testing-lib (#35626)
heiyu4585 May 19, 2022
40e3d7a
docs: Convert part demo to ts version (#35641)
poyiding May 19, 2022
905eada
test: improve Select test case (#35633)
heiyu4585 May 20, 2022
8af11c6
docs(mentions): fix debounce demo bug (#35653)
poyiding May 20, 2022
f55778c
chore(deps-dev): bump @types/react-resizable from 1.7.4 to 3.0.0 (#35…
dependabot[bot] May 20, 2022
042c718
test: refactor test cases of Timeline with testing library (#35654)
jrr997 May 20, 2022
eaefc86
chore(deps-dev): bump react-intl from 5.25.1 to 6.0.1 (#35659)
dependabot[bot] May 20, 2022
8b595e0
chore: fix cheerio for enzyme fix (#35666)
zombieJ May 21, 2022
e27aaeb
docs: 4.20.6 changelog (#35671)
zombieJ May 22, 2022
3adde1c
Merge branch 'master' of github.com:infra-fe/infra-design into zl/v4.…
May 23, 2022
f58efe9
chore: merge master
zombieJ May 23, 2022
23c4e1c
test: Update snapshot
zombieJ May 23, 2022
3952bca
chore: auto merge branchs (#35677)
github-actions[bot] May 23, 2022
8a6874c
refactor: align with popover (#35676)
zombieJ May 23, 2022
919667a
chore: short auto merge time
zombieJ May 23, 2022
f3a893b
chore: update issue check mirror (#35680)
MadCcc May 23, 2022
95f56f6
fix: division in less for Segmented (#35701)
vagusX May 24, 2022
00eb63a
chore: increase bundle size (#35709)
MadCcc May 24, 2022
56bcd1e
docs: fix mistype (#35714)
morfey13 May 24, 2022
764069b
docs: update demo code (#35695)
MadCcc May 24, 2022
5e5ad93
fix: drawer can not ref form instance when open (#35706)
crazyair May 25, 2022
e9e2d18
Merge branch 'master' into feature-merge-master
MadCcc May 25, 2022
a48a049
chore: lock stylelint (#35725)
MadCcc May 25, 2022
be61009
Merge branch 'master' into feature-merge-master
MadCcc May 25, 2022
b843fbd
chore: auto merge branchs (#35723)
github-actions[bot] May 25, 2022
6c0d45a
fix: Popover arrow style (#35717)
MadCcc May 25, 2022
414f049
feat: config provider support componentDisabled (#35718)
MadCcc May 25, 2022
303c988
docs: componentDisabled version (#35730)
MadCcc May 25, 2022
990a602
test: Replace alert part test with testing lib (#35736)
shezhangzhang May 25, 2022
1666313
chore(deps-dev): bump typescript from 4.6.4 to 4.7.2 (#35737)
dependabot[bot] May 25, 2022
1fda3ec
docs(select): fix type (#35726)
zhao-huo-long May 25, 2022
02c0c13
chore: move `@types/qs` from deps to devDeps (#35747)
dancerphil May 26, 2022
1ed1fda
feat: Config provider pagination showSizeChanger (#35750)
zombieJ May 26, 2022
c644371
fix: the ts wrong of card inteface (#35753)
LongHaoo May 26, 2022
534abc3
docs(👍): update recommendation (#35758)
afc163 May 26, 2022
d797dfc
docs: fix skeleton demo (#35760)
MadCcc May 26, 2022
9f9a790
feat: Sync 4.20.6 version from Antd
May 27, 2022
7a8fce5
refactor: Collapse replace expandIconPosition with logical position (…
zombieJ May 27, 2022
bd2b726
chore: feature merge master
zombieJ May 27, 2022
7a2a4e2
chore: auto merge branchs (#35772)
github-actions[bot] May 27, 2022
acdd164
ci: use jest shard (#35622)
vagusX May 27, 2022
9578f06
refactor: bump rc-collapse to stable dom (#35781)
zombieJ May 27, 2022
e7393ee
test: Replace card component test with testing lib (#35751)
LongHaoo May 28, 2022
363e077
docs: add note to custom BackTop demo (#35625)
Harukisatoh May 28, 2022
effa554
test: lock eslint-plugin-jest version for false positive
afc163 May 29, 2022
596d24e
Merge branch 'feature' into master-merge-feature
afc163 May 29, 2022
70aa243
chore: auto merge branchs (#35799)
github-actions[bot] May 29, 2022
f642916
test: move test cases to @testing/library for Tabs (#35796)
yykoypj May 29, 2022
b535068
chore(deps): update dependency eslint-plugin-jest to ~26.4.0 (#35801)
renovate[bot] May 30, 2022
454afc5
feat: fix cherrio version issue in enzyme
May 30, 2022
ca89c51
feat: change the changelog of 4.20.6 version
May 30, 2022
8281c06
test: move test cases to @testing/library for Image (#35806)
yykoypj May 30, 2022
336fef0
docs: changelog for 4.20.7 (#35804)
PeachScript May 30, 2022
99c16aa
refactor: Fix Dropdown nesting menu injection logic (#35810)
zombieJ May 30, 2022
a61671f
chore: upgrade to jest-image-snapshot 5.x (#35818)
afc163 May 31, 2022
b46e839
test: move test cases to @testing/library for Modal (#35785)
foryuki May 31, 2022
6ced6c3
fix: Progress type="line" strokeLinecap (#35822)
afc163 May 31, 2022
cfd25f9
docs: fix typo of Menu items code example (#35832)
mrhadenough May 31, 2022
166100e
test: move test cases to @testing/library for Drawer (#35839)
yykoypj Jun 1, 2022
1251a4e
perf: active skeleton animated with transform (#35836)
slotDumpling Jun 1, 2022
d13f02a
style: tweak Skeleton margin top style (#35848)
afc163 Jun 1, 2022
cc9e3c2
docs: update FAQ titles
afc163 Jun 1, 2022
7dc56e3
test: move test cases to @testing/library for List (#35850)
yykoypj Jun 1, 2022
81a2b2d
chore: bump rc-dialog & update snapshot
zombieJ Jun 1, 2022
938cdab
fix: set jest shard to 2 (#35831)
vagusX Jun 1, 2022
c3fc5db
fix: drawer close twice children is undefined (#35853)
crazyair Jun 1, 2022
6423e22
chore: merge feature
afc163 Jun 1, 2022
792d230
test: update snapshot
afc163 Jun 1, 2022
1223895
chore: auto merge branchs (#35857)
github-actions[bot] Jun 1, 2022
d239ae5
fix: remove extraneous space from rc-segmented version (#35863)
momesana Jun 1, 2022
2113c25
feat: Progress steps support custom strokeColor for each step (#35855)
afc163 Jun 1, 2022
8b27d06
chore: stlye patch of statistic (#35874)
zombieJ Jun 2, 2022
6e55310
test: replace Input part test with test lib (#35754)
zhengshuai1001 Jun 2, 2022
a5d8db0
refactor: pagination mini className (#35881)
MadCcc Jun 2, 2022
a5074ef
refactor: Wave in React 18 StrictMode (#35889)
Carrotzpc Jun 2, 2022
77823c5
feat: tabs support popupClassName (#35892)
MadCcc Jun 2, 2022
1bae50c
fix:border-style for inputNumber addon when rtl (#35876)
yykoypj Jun 2, 2022
9346858
chore(deps): update dependency @types/jest to v28 (#35907)
renovate[bot] Jun 6, 2022
2c1d512
chore: auto merge branchs (#35910)
github-actions[bot] Jun 6, 2022
7bd78e7
chore: auto merge branchs (#35911)
github-actions[bot] Jun 6, 2022
423ebea
ci: fix typo
xrkffgg Jun 6, 2022
c9145d7
fix: 类型“FormListFieldData”上不存在属性“fieldKey”。(#35883) (#35884)
nanianlisao Jun 6, 2022
d303889
chore: update changelog script (#35916)
xrkffgg Jun 6, 2022
ebe9c3c
docs: add typography format version
xrkffgg Jun 6, 2022
d1de6d9
fix: remove important in radio style (#35920)
MadCcc Jun 6, 2022
7bb5a7a
docs: correct types (#35919)
kungege Jun 6, 2022
b29d749
test: migrate part of Button tests (#35869)
Carrotzpc Jun 6, 2022
22c8bc4
test: migrate part of Affix tests (#35860)
zggmd Jun 6, 2022
c22fce2
docs: add changelog 4.21.0 (#35915)
xrkffgg Jun 6, 2022
4dd6fca
Feat: support 'treeExpandAction' prop for TreeSelect (#35618)
NE-SmallTown Jun 6, 2022
2d7122c
Merge remote-tracking branch 'origin/feature' into master-merge-feature
zombieJ Jun 6, 2022
d56ba70
chore: bump bundle size of babel runtime
zombieJ Jun 6, 2022
e56abdf
docs: Update 4.21.0 changelog
zombieJ Jun 6, 2022
ae6279a
chore: auto merge branches (#35922)
github-actions[bot] Jun 6, 2022
6e04120
docs: fix tree demo (#35927)
MadCcc Jun 6, 2022
1f080c2
fix: Form.Item noStyle should not be affected by parent Form.Item (#3…
MadCcc Jun 6, 2022
dfd1897
test: replace test case with test library (#35925)
poyiding Jun 7, 2022
eafe3fc
docs: clean up useless space
zombieJ Jun 7, 2022
771836c
test: refactor tree with testing lib (#35937)
zombieJ Jun 7, 2022
08a9c0b
test: move test cases to testing lib (#35909)
foryuki Jun 8, 2022
c0389d2
test: move test cases to testing lib (#35900)
foryuki Jun 8, 2022
fca5275
Merge branch 'master' into zl/v4.20.6-sync
Jun 8, 2022
d099dea
fix: menu items typings (#35790)
MasaoBlue Jun 8, 2022
c56bb2b
fix: cubic-bezier should be animation-timing-function (#35943)
MadCcc Jun 8, 2022
da93a88
feat: 1.Synchronize the update of antd 4.21.0 version. 2.Modify a par…
Jun 9, 2022
5fcc13f
fix: modify 'antd' to 'infrad' in loop-banner.md of alert
Jun 9, 2022
bfbe4cb
fix: modify line-height value to @line-height-base of descriptions co…
Jun 10, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/pr-check-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
success-review: true
success-merge: true
merge-method: 'merge'
merge-title: 'chore: auto merge branchs (#${number})'
merge-title: 'chore: auto merge branches (#${number})'
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
key: dist-${{ github.sha }}

- name: dist
run: npm run dist
run: CI=1 npm run dist
env:
NODE_OPTIONS: --max_old_space_size=4096
needs: setup
Expand Down Expand Up @@ -236,6 +236,7 @@ jobs:
matrix:
react: ['16', '17', '18']
module: ['dom', 'node', 'dist']
shard: ['1/2', '2/2']
env:
REACT: ${{ matrix.react }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -288,12 +289,11 @@ jobs:
# dom test
- name: dom test
if: ${{ matrix.module == 'dom' }}
run: npm test -- -w 1 --coverage
run: npm test -- --maxWorkers=2 --shard=${{matrix.shard}} --coverage

# > 17 only
- name: coverage
uses: codecov/codecov-action@v3
if: ${{ matrix.module == 'dom' && matrix.react == '17' }}
run: bash <(curl -s https://codecov.io/bash)

# node test
- name: node test
Expand Down Expand Up @@ -353,6 +353,7 @@ jobs:
matrix:
react: ['16', '17', '18']
module: [lib, es]
shard: ['1/2', '2/2']
env:
REACT: ${{ matrix.react }}
steps:
Expand Down Expand Up @@ -400,7 +401,7 @@ jobs:
- name: test
# lib only run in master branch not in pull request
if: ${{ github.event_name != 'pull_request' || matrix.module != 'lib' }}
run: npm test
run: npm test -- --maxWorkers=2 --shard=${{matrix.shard}}
env:
LIB_DIR: ${{ matrix.module }}
needs: compile
58 changes: 57 additions & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ timeline: true

| infrad version | antd version | update content | time |
| --- | --- | --- | --- |
| 4.20.6 | 4.20.6 | Synchronize the update of antd 4.20.6 version | 2022-05-30 |
| 4.21.0 | 4.21.0 | 1.Synchronize the update of antd 4.21.0 version<br/> 2.Modify a part of UI of table header | 2022-06-09 |
| 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 |
Expand All @@ -34,6 +34,62 @@ if you have some problem, welcome to connect `[email protected]` or `lay.z

---

## 4.21.0

`2022-06-06`

- 🔥 Add Form level control input component `disabled`. [#35210](https://github.com/ant-design/ant-design/pull/35210) [@heiyu4585](https://github.com/heiyu4585)
- 🆕 Tabs support `popupClassName` for more Dropdown. [#35892](https://github.com/ant-design/ant-design/pull/35892)
- 🆕 Table `rowSelection.onChange` support `info.type` param. [#35598](https://github.com/ant-design/ant-design/pull/35598)
- 🆕 The `copyable` prop of Typography.Paragraph supports to reset the mime type of the clipboardData by the `format`. [#35219](https://github.com/ant-design/ant-design/pull/35219) [@kanweiwei](https://github.com/kanweiwei)
- 🆕 TreeSelect support `treeExpandAction`. [#35618](https://github.com/ant-design/ant-design/pull/35618) [@NE-SmallTown](https://github.com/NE-SmallTown)
- ConfigProvider
- 🆕 ConfigProvider support config Pagination `showSizeChanger`. [#35750](https://github.com/ant-design/ant-design/pull/35750)
- 🆕 ConfigProvider support `componentDisabled` to config components `disabled` status. [#35718](https://github.com/ant-design/ant-design/pull/35718)
- 🛠 Refactor ConfigProvider removing default `renderEmpty` to resolve dist circle deps. [#35570](https://github.com/ant-design/ant-design/pull/35570)
- Collapse
- 🛠 Refactor Collapse to keep stable dom structure with header content. [#35781](https://github.com/ant-design/ant-design/pull/35781)
- 🛠 Refactor Collapse `expandIconPosition` with logical position `start` or `end` to resolve RTL style issue. [#35770](https://github.com/ant-design/ant-design/pull/35770)
- Progress
- 🆕 Progress steps support custom strokeColor for each step. [#35855](https://github.com/ant-design/ant-design/pull/35855)
- 🛠 Refactor Progress `type="circle"` and `type="dashboard"` for simpler dom structure and better rendering. [#35433](https://github.com/ant-design/ant-design/pull/35433)
- 🛠 Refactor Progress to React hooks. [#35393](https://github.com/ant-design/ant-design/pull/35393) [@shuaijiumei](https://github.com/shuaijiumei)
- 🐞 Fix Progress percent accuracy issue when near 100%. [#35433](https://github.com/ant-design/ant-design/pull/35433)
- 🐞 Fix Progress `gapDegree` displayed with wrong degree when `type="dashboard"`. [#35433](https://github.com/ant-design/ant-design/pull/35433)
- 💄 Fix Progress border radius style when `type="line"` and `strokeLinecap="butt"`. [#35822](https://github.com/ant-design/ant-design/pull/35822)
- Dropdown
- 🆕 Dropdown support `autoFocus` to focus elements in `overlay` automaticly when opened. [#35391](https://github.com/ant-design/ant-design/pull/35391)
- 🛠 Fix Dropdown nesting menu injection logic. [#35810](https://github.com/ant-design/ant-design/pull/35810)
- Card
- 🛠 Refactor Card `loading` with Skeleton. [#35525](https://github.com/ant-design/ant-design/pull/35525)
- 🛠 Refactor Card style to use flex instead of float. [#35236](https://github.com/ant-design/ant-design/pull/35236) [@miracles1919](https://github.com/miracles1919)
- 🛠 DatePicker refactored to React hooks. [#35425](https://github.com/ant-design/ant-design/pull/35425) [@heiyu4585](https://github.com/heiyu4585)
- 🛠 Rename className of Pagination `mini` mode with `ant-pagination-mini`. [#35881](https://github.com/ant-design/ant-design/pull/35881)
- 🛠 Refactor Popconfirm internal realize with Popover component. [#35676](https://github.com/ant-design/ant-design/pull/35676)
- 🛠 Change the implementation of the bottom button layout of the Modal confirm component. [#35530](https://github.com/ant-design/ant-design/pull/35530) [@foryuki](https://github.com/foryuki)
- 🐞 Fix the Wave effect does not work in React 18 strict mode. [#35889](https://github.com/ant-design/ant-design/pull/35889) [@Carrotzpc](https://github.com/Carrotzpc)
- 🐞 Fix Drawer close twice `children` will undefined. [#35853](https://github.com/ant-design/ant-design/pull/35853) [@crazyair](https://github.com/crazyair)
- Skeleton
- 💄 Remove Skeleton default `margin-top` style. [#35848](https://github.com/ant-design/ant-design/pull/35848)
- 💄 Optimize Skeleton `active` animation perfermance. [#35836](https://github.com/ant-design/ant-design/pull/35836) [@slotDumpling](https://github.com/slotDumpling)
- 💄 Remove `!important` in Radio style with `disabled`. [#35920](https://github.com/ant-design/ant-design/pull/35920)
- TypeScript
- 🤖 Fix Form.List type `FormListFieldData` missing property `fieldKey`. [#35884](https://github.com/ant-design/ant-design/pull/35884) [@nanianlisao](https://github.com/nanianlisao)
- 🌐 Localization
- 🇹🇲 Add a new locale `tk_TK`. [#35605](https://github.com/ant-design/ant-design/pull/35605)
- RTL
- 💄 Fix the wrong direction of `border` and `border-radius` for InputNumber and Input in RTL mode. [#35876](https://github.com/ant-design/ant-design/pull/35876) [@yykoypj](https://github.com/yykoypj)

## 4.20.7

`2022-05-30`

- 🐞 Fix Drawer form instance lost bug when opened. [#35706](https://github.com/ant-design/ant-design/pull/35706) [@crazyair](https://github.com/crazyair)
- 🐞 Fix Segmented options invalid space between icon and text when using the icon prop. [#35701](https://github.com/ant-design/ant-design/pull/35701)
- 💄 Optimize Popover arrow style. [#35717](https://github.com/ant-design/ant-design/pull/35717)
- TypeScript
- 🤖 Fix Card type hints problem. [#35753](https://github.com/ant-design/ant-design/pull/35753)

## 4.20.6

`2022-05-22`
Expand Down
57 changes: 57 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.21.0 | 4.21.0 | 1.同步 antd 4.21.0 版本的更新<br/>2.修改 table 表头部分 UI | 2022-06-09 |
| 4.20.6 | 4.20.6 | 同步 antd 4.20.6 版本的更新 | 2022-05-30 |
| 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 |
Expand All @@ -34,6 +35,62 @@ timeline: true

---

## 4.21.0

`2022-06-06`

- 🔥 新增 Form 级别控制输入组件 `disabled`。[#35210](https://github.com/ant-design/ant-design/pull/35210) [@heiyu4585](https://github.com/heiyu4585)
- 🆕 Tabs 组件支持 `popupClassName` 用于更多菜单。[#35892](https://github.com/ant-design/ant-design/pull/35892)
- 🆕 Table 组件 `rowSelection.onChange` 新增 `info.type` 参数。[#35598](https://github.com/ant-design/ant-design/pull/35598)
- 🆕 Typography.Paragraph 的 `copyable` 属性支持 `format` 以重置剪切板数据的 Mime Type。[#35219](https://github.com/ant-design/ant-design/pull/35219) [@kanweiwei](https://github.com/kanweiwei)
- 🆕 TreeSelect 支持 `treeExpandAction` 定义展开操作。[#35618](https://github.com/ant-design/ant-design/pull/35618) [@NE-SmallTown](https://github.com/NE-SmallTown)
- ConfigProvider
- 🆕 ConfigProvider 支持全局配置 Pagination `showSizeChanger` 属性。[#35750](https://github.com/ant-design/ant-design/pull/35750)
- 🆕 ConfigProvider 支持 `componentDisabled` 来配置组件禁用状态。[#35718](https://github.com/ant-design/ant-design/pull/35718)
- 🛠 重构 ConfigProvider 移除默认的 `renderEmpty` 方法以解决打包循环依赖的问题。[#35570](https://github.com/ant-design/ant-design/pull/35570)
- Collapse
- 🛠 重构 Collapse 标题部分以确保其稳定的 DOM 结构易于样式选择。[#35781](https://github.com/ant-design/ant-design/pull/35781)
- 🛠 重构 Collapse `expandIconPosition` 为逻辑位置 `start` 与 `end` 以解决 RTL 下的样式问题。[#35770](https://github.com/ant-design/ant-design/pull/35770)
- Progress
- 🆕 Progress 分步进度条支持单独自定义色彩。[#35855](https://github.com/ant-design/ant-design/pull/35855)
- 🛠 重构 Progress `type="circle"` 和 `type="dashboard"` 以简化 dom 结构和带来更好的渲染效果。[#35433](https://github.com/ant-design/ant-design/pull/35433)
- 🛠 重构 Progress 成 React hooks。[#35393](https://github.com/ant-design/ant-design/pull/35393) [@shuaijiumei](https://github.com/shuaijiumei)
- 🐞 修复 Progress 进度接近 100% 间距几乎消失的问题。[#35433](https://github.com/ant-design/ant-design/pull/35433)
- 🐞 修复 Progress `type="dashboard"` 的 `gapDegree` 角度不准确的问题。[#35433](https://github.com/ant-design/ant-design/pull/35433)
- 💄 修复 Progress `type="line"` 和 `strokeLinecap="butt"` 时的圆角样式。[#35822](https://github.com/ant-design/ant-design/pull/35822)
- Dropdown
- 🆕 Dropdown 支持 `autoFocus` 属性,打开时自动聚焦下拉单。[#35391](https://github.com/ant-design/ant-design/pull/35391)
- 🛠 修复 Dropdown 嵌套菜单注入逻辑。[#35810](https://github.com/ant-design/ant-design/pull/35810)
- Card
- 🛠 使用 Skeleton 重构 Card `loading` 属性。[#35525](https://github.com/ant-design/ant-design/pull/35525)
- 🛠 重构 Card 样式用 flex 代替 float。[#35236](https://github.com/ant-design/ant-design/pull/35236) [@miracles1919](https://github.com/miracles1919)
- 🛠 DatePicker 重构成 React hooks。[#35425](https://github.com/ant-design/ant-design/pull/35425) [@heiyu4585](https://github.com/heiyu4585)
- 🛠 将 Pagination `mini` 模式的 className 重命名为 `ant-pagination-mini`。[#35881](https://github.com/ant-design/ant-design/pull/35881)
- 🛠 重构 Popconfirm 内部实现为 Popover 组件。[#35676](https://github.com/ant-design/ant-design/pull/35676)
- 🛠 改变 Modal confirm 组件底部按钮布局实现方式。[#35530](https://github.com/ant-design/ant-design/pull/35530) [@foryuki](https://github.com/foryuki)
- 🐞 修复波浪效果在 React 18 严格模式不生效的问题。[#35889](https://github.com/ant-design/ant-design/pull/35889) [@Carrotzpc](https://github.com/Carrotzpc)
- 🐞 修复 Drawer 关闭 2 次后 `children` 为 undefined 的问题。[#35853](https://github.com/ant-design/ant-design/pull/35853) [@crazyair](https://github.com/crazyair)
- Skeleton
- 💄 移除 Skeleton 默认的 `margin-top` 以便在默认情况下更对称。[#35848](https://github.com/ant-design/ant-design/pull/35848)
- 💄 优化 Skeleton `active` 的动画性能。[#35836](https://github.com/ant-design/ant-design/pull/35836) [@slotDumpling](https://github.com/slotDumpling)
- 💄 移除 Radio 禁用状态时样式中的 `!important`。[#35920](https://github.com/ant-design/ant-design/pull/35920)
- TypeScript
- 🤖 修复 Form.List 类型 `FormListFieldData` 缺失属性 `fieldKey`。[#35884](https://github.com/ant-design/ant-design/pull/35884) [@nanianlisao](https://github.com/nanianlisao)
- 🌐 国际化
- 🇹🇲 添加土库曼语国际化。[#35605](https://github.com/ant-design/ant-design/pull/35605)
- RTL
- 💄 修正 Input 和 InputNumber 的 `border` 和 `border-radius` 在 RTL 模式下的方向问题。[#35876](https://github.com/ant-design/ant-design/pull/35876) [@yykoypj](https://github.com/yykoypj)

## 4.20.7

`2022-05-30`

- 🐞 修复 Drawer 打开时 form 实例为 null 的问题。[#35706](https://github.com/ant-design/ant-design/pull/35706) [@crazyair](https://github.com/crazyair)
- 🐞 修复 Segmented 组件中选项使用 icon 属性时图标与文字之间的间距失效问题。[#35701](https://github.com/ant-design/ant-design/pull/35701)
- 💄 优化 Popover 的箭头效果。[#35717](https://github.com/ant-design/ant-design/pull/35717)
- TypeScript
- 🤖 修复 Card 组件的类型提示。[#35753](https://github.com/ant-design/ant-design/pull/35753)

## 4.20.6

`2022-05-22`
Expand Down
7 changes: 4 additions & 3 deletions components/_util/wave.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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 { composeRef, supportRef } from 'rc-util/lib/ref';
import * as React from 'react';
import type { ConfigConsumerProps, CSPConfig } from '../config-provider';
import { ConfigConsumer, ConfigContext } from '../config-provider';
import raf from './raf';
import { cloneElement } from './reactNode';

let styleForPseudo: HTMLStyleElement | null;
Expand Down Expand Up @@ -55,6 +55,7 @@ export default class Wave extends React.Component<WaveProps> {
context: ConfigConsumerProps;

componentDidMount() {
this.destroyed = false;
const node = this.containerRef.current as HTMLDivElement;
if (!node || node.nodeType !== 1) {
return;
Expand Down
50 changes: 34 additions & 16 deletions components/affix/__tests__/Affix.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import type { ReactWrapper } from 'enzyme';
import { mount } from 'enzyme';
import type { AffixProps, AffixState } from '..';
import React from 'react';
import type { AffixProps, AffixState, InternalAffixClass } from '..';
import Affix from '..';
import { getObserverEntities } from '../utils';
import Button from '../../button';
import rtlTest from '../../../tests/shared/rtlTest';
import accessibilityTest from '../../../tests/shared/accessibilityTest';
import { sleep, render } from '../../../tests/utils';
import rtlTest from '../../../tests/shared/rtlTest';
import { render, sleep } from '../../../tests/utils';
import Button from '../../button';
import { getObserverEntities } from '../utils';

const events: Partial<Record<keyof HTMLElementEventMap, (ev: Partial<Event>) => void>> = {};

Expand Down Expand Up @@ -60,7 +60,6 @@ describe('Affix Render', () => {

const domMock = jest.spyOn(HTMLElement.prototype, 'getBoundingClientRect');
let affixMounterWrapper: ReactWrapper<unknown, unknown, AffixMounter>;
let affixWrapper: ReactWrapper<AffixProps, AffixState, React.Component<AffixProps, AffixState>>;

const classRect: Record<string, DOMRect> = {
container: {
Expand Down Expand Up @@ -143,15 +142,35 @@ describe('Affix Render', () => {
});

describe('updatePosition when target changed', () => {
it('function change', () => {
it('function change', async () => {
document.body.innerHTML = '<div id="mounter" />';
const container = document.querySelector('#id') as HTMLDivElement;
const getTarget = () => container;
affixWrapper = mount(<Affix target={getTarget}>{null}</Affix>);
affixWrapper.setProps({ target: () => null });
expect(affixWrapper.find('Affix').last().state().status).toBe(0);
expect(affixWrapper.find('Affix').last().state().affixStyle).toBe(undefined);
expect(affixWrapper.find('Affix').last().state().placeholderStyle).toBe(undefined);
let affixInstance: InternalAffixClass;
const { rerender } = render(
<Affix
ref={node => {
affixInstance = node as InternalAffixClass;
}}
target={getTarget}
>
{null}
</Affix>,
);
rerender(
<Affix
ref={node => {
affixInstance = node as InternalAffixClass;
}}
target={() => null}
>
{null}
</Affix>,
);
expect(affixInstance!.state.status).toBe(0);
expect(affixInstance!.state.affixStyle).toBe(undefined);
expect(affixInstance!.state.placeholderStyle).toBe(undefined);
await sleep(100);
});

it('instance change', async () => {
Expand All @@ -163,13 +182,12 @@ describe('Affix Render', () => {

const originLength = getObserverLength();
const getTarget = () => target;
affixWrapper = mount(<Affix target={getTarget}>{null}</Affix>);
const { rerender } = render(<Affix target={getTarget}>{null}</Affix>);
await sleep(100);

expect(getObserverLength()).toBe(originLength + 1);
target = null;
affixWrapper.setProps({});
affixWrapper.update();
rerender(<Affix>{null}</Affix>);
await sleep(100);
expect(getObserverLength()).toBe(originLength);
});
Expand Down
2 changes: 1 addition & 1 deletion components/affix/demo/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ title:
The simplest usage.

```tsx
import React, { useState } from 'react';
import { Affix, Button } from 'infrad';
import React, { useState } from 'react';

const App: React.FC = () => {
const [top, setTop] = useState(10);
Expand Down
2 changes: 1 addition & 1 deletion components/affix/demo/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ DEBUG
DEBUG

```tsx
import React, { useState } from 'react';
import { Affix, Button } from 'infrad';
import React, { useState } from 'react';

const App: React.FC = () => {
const [top, setTop] = useState(10);
Expand Down
2 changes: 1 addition & 1 deletion components/affix/demo/on-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ title:
Callback with affixed state.

```tsx
import React from 'react';
import { Affix, Button } from 'infrad';
import React from 'react';

const App: React.FC = () => (
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
Expand Down
2 changes: 1 addition & 1 deletion components/affix/demo/target.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ title:
Set a `target` for 'Affix', which is listen to scroll event of target element (default is `window`).

```tsx
import React, { useState } from 'react';
import { Affix, Button } from 'infrad';
import React, { useState } from 'react';

const App: React.FC = () => {
const [container, setContainer] = useState<HTMLDivElement | null>(null);
Expand Down
12 changes: 7 additions & 5 deletions components/affix/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import * as React from 'react';
import classNames from 'classnames';
import omit from 'rc-util/lib/omit';
import ResizeObserver from 'rc-resize-observer';
import omit from 'rc-util/lib/omit';
import * as React from 'react';
import type { ConfigConsumerProps } from '../config-provider';
import { ConfigContext } from '../config-provider';
import { throttleByAnimationFrameDecorator } from '../_util/throttleByAnimationFrame';

import {
addObserveTarget,
removeObserveTarget,
getTargetRect,
getFixedTop,
getFixedBottom,
getFixedTop,
getTargetRect,
removeObserveTarget,
} from './utils';

function getDefaultTarget() {
Expand Down Expand Up @@ -296,6 +296,8 @@ class Affix extends React.Component<InternalAffixProps, AffixState> {
);
}
}
// just use in test
export type InternalAffixClass = Affix;

const AffixFC = React.forwardRef<Affix, AffixProps>((props, ref) => {
const { prefixCls: customizePrefixCls } = props;
Expand Down
Loading