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

[pull] master from ant-design:master #608

Closed
wants to merge 1,184 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1184 commits
Select commit Hold shift + click to select a range
de7676a
chore: upgrade deps (#50294)
github-actions[bot] Aug 7, 2024
b13c19a
docs: add offcial pronunciation of antd (#50297)
afc163 Aug 8, 2024
2a877f0
chore: improve pr template (#50301)
afc163 Aug 8, 2024
3f3999c
fix: tour default zIndex (#50300)
zombieJ Aug 8, 2024
0508349
chore: retry upload add delay (#50302)
vagusX Aug 8, 2024
eda6c4d
fix: form should update
zombieJ Aug 8, 2024
6c6111a
docs: fix site css sandbox open (#50305)
zombieJ Aug 8, 2024
dd3bfae
docs: add watermark faq (#50307)
zombieJ Aug 8, 2024
426082d
chore(tree-select): improve code style by restProps (#50314)
thinkasany Aug 8, 2024
0cf4a27
fix: tree switch bg height (#50313)
zombieJ Aug 8, 2024
7ca54f8
chore: merge master into feature
li-jia-nan Aug 8, 2024
c9fcef7
chore: auto merge branches (#50317)
github-actions[bot] Aug 8, 2024
8bee926
docs: update Version of variant (#50319)
li-jia-nan Aug 8, 2024
10bff9c
chore: upgrade deps (#50321)
github-actions[bot] Aug 8, 2024
09264eb
fix: Typography ellipsis (#50315)
zombieJ Aug 9, 2024
96a0694
demo: site & demo update (#50322)
li-jia-nan Aug 9, 2024
7085ab3
type: ts definition improvement (#50324)
thinkasany Aug 9, 2024
2fba70d
docs(modal): use Record<SemanticDOM> instead of classnames/styles typ…
thinkasany Aug 9, 2024
c9fab94
demo: improve typography copyable demo (#50336)
afc163 Aug 9, 2024
33b4be4
docs(AutoComplete): add missing options in en-US document (#50340)
y-young Aug 9, 2024
4c2a2b0
feat: FloatButton support dynamic z-index (#50311)
li-jia-nan Aug 9, 2024
a87d532
chore: auto merge branches (#50341)
github-actions[bot] Aug 9, 2024
b3930bf
chore: upgrade deps (#50342)
github-actions[bot] Aug 10, 2024
f05c380
style: modify z-index value to css token (#50349)
Youzi-io Aug 10, 2024
857ee24
type(Table): TypeScript improvement (#50351)
li-jia-nan Aug 11, 2024
d6be2b2
chore(deps): update dependency cheerio to v1.0.0 (#50352)
renovate[bot] Aug 11, 2024
0c97a6f
test: speed up test workflow (#50346)
afc163 Aug 11, 2024
dab9ab6
fix(Table): style value should support CSS var (#50355)
li-jia-nan Aug 11, 2024
dd34321
chore: fix surge preview deploy not throw error (#50356)
afc163 Aug 11, 2024
429cf1b
refactoring: rewrite renderCircle with React Component (#50358)
li-jia-nan Aug 11, 2024
5aa5c3d
fix(Table): set z-index unit to false (#50357)
li-jia-nan Aug 11, 2024
ec20d45
chore: merge master into feature
li-jia-nan Aug 11, 2024
5b5d385
chore: fix surge deploy by locking version to 0.23.1 (#50359)
afc163 Aug 11, 2024
0ae6d69
chore: Update pr-open-notify.yml (#50361)
afc163 Aug 11, 2024
9334eb8
Merge branch 'master' into master-merge-feature
li-jia-nan Aug 11, 2024
e5f094a
chore: merge master into feature
li-jia-nan Aug 11, 2024
8880ea7
chore: auto merge branches (#50362)
github-actions[bot] Aug 11, 2024
e1e0c0b
docs(✨ ): release 5.20.1 (#50363)
afc163 Aug 11, 2024
b7151d7
docs: fix github url typo (#50365)
afc163 Aug 11, 2024
313b5ae
fix(site): fix lost indent of site (#50366)
li-jia-nan Aug 11, 2024
16f0189
fix(site): the img element of site should not be block (#50367)
li-jia-nan Aug 12, 2024
e188445
fix(popover): arrow. pointAtCenter misalignment error (#50260)
Wxh16144 Aug 12, 2024
3819b18
docs: turn off dumi analyze in production mode (#50373)
afc163 Aug 12, 2024
8c8958f
chore: restore surge latest version (#50375)
afc163 Aug 12, 2024
7bd9d54
fix: Select arrow disappearing when hovering it (#50382)
afc163 Aug 12, 2024
7d66a8e
type: revert Table generic with any (#50372)
crazyair Aug 13, 2024
700e0ae
chore: Add comments to token interfaces (#50386)
arvinxx Aug 13, 2024
2f64ecf
test: enable codecov bundle analysis (#50384)
afc163 Aug 13, 2024
b34d208
docs(card): use card semantic-dom instead of table (#50390)
thinkasany Aug 13, 2024
097a4a1
fix: Upload.Dragger drag-and-drop upload directory issue (#50394)
huiliangShen Aug 13, 2024
b3c01de
docs(card): remove unuesd gaps (#50393)
thinkasany Aug 13, 2024
51d6a9b
chore: Add comments to Token related interfaces (#50392)
arvinxx Aug 13, 2024
533d621
docs(form): update link (#50401)
ohhoney1 Aug 13, 2024
e229523
chore: upgrade deps (#50406)
github-actions[bot] Aug 13, 2024
96f1ec7
chore: reduce typo (#50404)
waywardmonkeys Aug 13, 2024
6372029
chore: auto merge branches (#50403)
github-actions[bot] Aug 13, 2024
aa60e53
fix: fix incorrect border-radius of trigger (#50408)
li-jia-nan Aug 14, 2024
ae516f7
chore: auto merge branches (#50409)
github-actions[bot] Aug 14, 2024
3b9a1b1
docs: update form escape (#50412)
zombieJ Aug 14, 2024
7005212
docs(list): add semantic dom (#50413)
thinkasany Aug 14, 2024
97aa299
docs: add align version (#50418)
coding-ice Aug 14, 2024
85afc8d
test: run bundle size action when push (#50415)
afc163 Aug 14, 2024
5403c69
test: codecovWebpackPlugin not running (#50423)
afc163 Aug 14, 2024
a89bd93
site: fix image width issue in markdown (#50399)
Jarryxin Aug 14, 2024
ab2d759
docs: add [keepachangelog.com] link (#50424)
afc163 Aug 15, 2024
5e50aab
docs: Update PULL_REQUEST_TEMPLATE.md (#50428)
afc163 Aug 15, 2024
879ad65
locale: add Transfer.deselectAll to ru_RU and uk_UA (#50429)
alexlag Aug 15, 2024
4f01f22
docs: fix typos (#50430)
thinkasany Aug 15, 2024
d1a0fb8
chore: reduce typo count (#50439)
waywardmonkeys Aug 15, 2024
7bcb6ca
fix(Table): fixed empty and shadow issues when virtual mode (#50416)
linxianxi Aug 16, 2024
ae44eb9
docs(carousel): improve dots description (#50446)
thinkasany Aug 16, 2024
72fda1a
docs: rm useless demo (#50449)
zombieJ Aug 16, 2024
4235d11
docs(ConfigProvider): improve component config classnames/styles (#50…
thinkasany Aug 16, 2024
bda8cb0
fix(input-number): without controls suffix style (#50450)
coding-ice Aug 16, 2024
af11acf
chore: auto merge branches (#50459)
github-actions[bot] Aug 16, 2024
7481e14
docs(typo): chose to choose (#50460)
imnabid Aug 16, 2024
8a23050
type(tag): Optimize ts types (#50427)
coding-ice Aug 16, 2024
fa3fddb
test: use bun in github action (#50466)
afc163 Aug 17, 2024
e80ef92
docs: add link of Pronunciation (#50469)
afc163 Aug 17, 2024
5561a46
chore: turn off sourcemap (#50473)
MadCcc Aug 19, 2024
a33a09e
chore: auto merge branches (#50476)
github-actions[bot] Aug 19, 2024
5888e6a
docs: add 5.20.2 changelogs (#50492)
chenshuai2144 Aug 19, 2024
c8413cc
feat: FloatButton support placement (#50407)
li-jia-nan Aug 20, 2024
78a65ef
demo: improve variant demo (#50495)
thinkasany Aug 20, 2024
0b6a2f7
refactor: use react cycle method (#50500)
zombieJ Aug 20, 2024
7edf931
fix: onComplete directly case (#50501)
zombieJ Aug 20, 2024
de5c835
docs: fix document typos (#50508)
qwangry Aug 20, 2024
dee90b2
chore: merge master into feature
li-jia-nan Aug 20, 2024
6f062a5
chore: auto merge branches (#50510)
github-actions[bot] Aug 20, 2024
53495d6
test: improve test type (#50515)
thinkasany Aug 21, 2024
b9d5933
fix: ellipsis check for over (#50514)
zombieJ Aug 21, 2024
c2c161f
demo(tree): improve type for virtual-scroll demo (#50518)
thinkasany Aug 21, 2024
b734917
style: float button body border radius unify (#50513)
Layouwen Aug 21, 2024
4bac8ef
docs: add more compatibility info about style (#50517)
afc163 Aug 21, 2024
d04f8b2
chore: export private variable.
YumoImer Aug 22, 2024
7548dd0
chore: change private variable export name
YumoImer Aug 23, 2024
714a6e1
docs: Improve english translation of Drawer documentation (#50558)
Chevindu Aug 23, 2024
acc10b4
test: remove unused code (#50560)
afc163 Aug 26, 2024
269964a
chore: enable gzip instead of brotli for size-limit (#50562)
afc163 Aug 26, 2024
d73035d
test: make a strict codecov rule (#50571)
afc163 Aug 26, 2024
be7cf7b
chore: update code comments
YumoImer Aug 26, 2024
d72255f
docs: changelog 5.20.3 (#50568)
MadCcc Aug 26, 2024
ac4b17a
Merge branch 'master' into chore/private_export
YumoImer Aug 26, 2024
4e446e1
Merge pull request #50544 from ant-design/chore/private_export
YumoImer Aug 26, 2024
6176d3c
chore: auto merge branches (#50582)
github-actions[bot] Aug 26, 2024
cab753c
chore: fix webpack config of dist bundle (#50575)
afc163 Aug 27, 2024
730a37f
feat[Collapse]: support classNames and styles (#50557)
wanpan11 Aug 27, 2024
1cd79e3
fix: Disable the Rate component within Form.Item when the form is dis…
nikzanda Aug 27, 2024
9f274a0
refactor: reimplement Typography code (#50561)
afc163 Aug 27, 2024
288a96d
chore(deps-dev): bump the dev-dependencies group with 1 update (#50597)
dependabot[bot] Aug 28, 2024
20fbb8e
chore: Rename ColorPickerProps.onChange string param (#50604)
andrewbusch7 Aug 28, 2024
2945441
chore(deps-dev): bump tsx from 4.11.2 to 4.19.0 (#50598)
dependabot[bot] Aug 28, 2024
de92a2c
style: tweak Table column header move transition (#50605)
afc163 Aug 28, 2024
8a0a0d2
style: enhance Badge motion when switch mode (#50607)
afc163 Aug 28, 2024
911ea14
Revert "chore(deps-dev): bump tsx from 4.11.2 to 4.19.0" (#50614)
li-jia-nan Aug 28, 2024
df933e9
demo(tag): improve import type DragEndEvent for dnd-kit (#50615)
thinkasany Aug 28, 2024
06738b8
chore: upgrade deps (#50631)
github-actions[bot] Aug 28, 2024
a3616a5
Revert "test: make a strict codecov rule" (#50613)
afc163 Aug 29, 2024
bfd2c06
docs: tweak document content area width (#50625)
afc163 Aug 29, 2024
b27b062
style: fix Menu item background transition style (#50624)
afc163 Aug 29, 2024
c2ee092
test: fix codecov comment (#50640)
afc163 Aug 29, 2024
16f9543
chore: auto merge branches (#50641)
github-actions[bot] Aug 29, 2024
a0a22bd
docs: update color-picker onChage Docs (#50654)
yunho1017 Aug 30, 2024
3d54838
docs: update color-picker onChage Docs (#50656)
yunho1017 Aug 30, 2024
33e9878
fix(menu): itemPaddingInline inoperative (#50663)
coding-ice Aug 30, 2024
cfc07f2
docs(button): bump from @emotion/css to antd-style (#50662)
coding-ice Aug 30, 2024
9570ae0
chore: upgrade deps (#50667)
afc163 Aug 31, 2024
612d5c0
docs: Tour gap prop (#50574)
IsKaros Aug 31, 2024
b440972
fix: add Transfer.deselectAll to tr_TR (#50672)
coding-ice Sep 1, 2024
d80b956
docs: tweak ColorPicker usage in customize theme doc (#50673)
sakuraee Sep 2, 2024
bdb2cd2
docs: changelog of 5.20.4 (#50674)
zombieJ Sep 2, 2024
89322ab
chore: add biome config (#50676)
zombieJ Sep 2, 2024
b8046fc
docs: update dingtalk group qrcode image (#50675)
afc163 Sep 2, 2024
eac5b68
feat(menu): support extra prop (#50431)
coding-ice Sep 2, 2024
b66ca04
chore: upgrade deps (#50680)
github-actions[bot] Sep 2, 2024
afabec6
docs: Update css-variables.md (#50686)
afc163 Sep 3, 2024
71533ff
fix: Typography dead loop (#50688)
zombieJ Sep 3, 2024
38e3cc6
chore(deps): update dependency puppeteer to v23 (#50354)
renovate[bot] Sep 3, 2024
badfbe3
feat(Button): support variant and color (#50051)
coding-ice Sep 3, 2024
e91244f
enhance: tree perf of large data (#50689)
zombieJ Sep 3, 2024
962b6d5
docs: bump 5.20.5 (#50701)
zombieJ Sep 3, 2024
bb14742
chore(deps): bump peter-evans/create-pull-request from 6 to 7 (#50700)
dependabot[bot] Sep 3, 2024
340cbc9
chore: bump rc-cascader (#50695)
crazyair Sep 3, 2024
d1692fb
docs: fix demo typo (#50691)
afc163 Sep 3, 2024
d19d825
fix: make eye icon in Password unclickable when Form is disabled (#50…
Jarryxin Sep 3, 2024
9748a0e
docs: add refine with antd (#49280)
necatiozmen Sep 3, 2024
389626a
chore: upgrade deps (#50705)
github-actions[bot] Sep 4, 2024
c5f4c71
docs(FloatButtonGroup): Add onClick prop (#40706)
Riyad-Arafat Sep 4, 2024
9d0e67d
chore: merge master
zombieJ Sep 4, 2024
d6d7b7f
test: update snapshot
zombieJ Sep 4, 2024
5697b04
chore: auto merge branches (#50707)
github-actions[bot] Sep 4, 2024
01da79c
Revert "fix: Dropdown menu item get wrapped at edge" (#50718)
afc163 Sep 5, 2024
ce443fe
chore: Update Wave component to use WaveComponent type (#50709)
baicie Sep 5, 2024
e7bab78
docs: fix Select labelRender doc (#50720)
DBvc Sep 6, 2024
c5c24aa
style: fix Input.Search search button radius style (#50734)
afc163 Sep 6, 2024
ba023f5
refactor: use React.useMemo manage the object of ContextProvider valu…
li-jia-nan Sep 6, 2024
89f55f2
fix: virtual table display error (#50737)
huiliangShen Sep 6, 2024
f5b0a98
chore: Update virtual-list.tsx (#50741)
afc163 Sep 6, 2024
127ccb3
enhance(badge): move out animation (#50743)
coding-ice Sep 6, 2024
33533ff
chore: auto merge branches (#50748)
github-actions[bot] Sep 7, 2024
61e365f
fix(menu): Improve collapse animation smoothness (#50751)
afc163 Sep 7, 2024
ac5bb7c
fix: Dropdown cannot wrap correctly when out of screen edge (#50752)
afc163 Sep 7, 2024
5003f05
type: narrow Collapse onChange argument to string[] (#50754)
yuanliu147 Sep 8, 2024
a870e6b
docs: Update README.md (#50764)
afc163 Sep 9, 2024
5cb88bc
docs: changelog for 5.20.6 (#50763)
PeachScript Sep 9, 2024
742ce37
feat:🔥New Component: Splitter (#50038)
wanpan11 Sep 9, 2024
9127cec
feat(List): add ref on component (#50772)
Asanio06 Sep 9, 2024
fbf8b10
docs: update button doc desc (#50770)
zombieJ Sep 9, 2024
4fffbea
fix: Sider support ConfigProvider theme (#50780)
zombieJ Sep 10, 2024
09895d9
type: extends HTMLSpanElement for BadgeProps type(#50730) (#50774)
yuanliu147 Sep 10, 2024
01d1b3d
demo: rewrite render function with React.FC (#50779)
li-jia-nan Sep 10, 2024
ef1b0e3
perf: layout add default value (#50797)
wanpan11 Sep 10, 2024
769331d
chore: upgrade deps (#50798)
github-actions[bot] Sep 11, 2024
82b05b2
refactor: ColorPicker panel free for uncontrolled (#50785)
zombieJ Sep 11, 2024
94ee36a
docs: add version badge for Table hidden demo (#50803)
afc163 Sep 11, 2024
13f338a
fix(Table): cannot check rows when checkStrictly={false} (#50746)
Jarryxin Sep 11, 2024
6dd89cd
demo: use en instead of cn (#50804)
zombieJ Sep 11, 2024
8d8bef0
docs: update cove image (#50809)
wanpan11 Sep 11, 2024
7d6e786
ci: auto remove unconfirmed label when add other labels (#50802)
thinkasany Sep 11, 2024
f091037
style: remove Pagination default font family (#50808)
afc163 Sep 11, 2024
27c5d43
fix: otp not accept type (#50811)
zombieJ Sep 11, 2024
3b8ea07
fix: Typography copyable support array children (#50813)
zombieJ Sep 11, 2024
e45146a
fix(localse): add tour translation for es_ES (#50805)
thinkasany Sep 11, 2024
380cae8
feat(Image): add `onActive` to `toolbarRender` (#50812)
madocto Sep 11, 2024
884baa1
fix: Modal a11y warning issue (#50823)
afc163 Sep 12, 2024
7bf6d60
feat: Add missing Greek translation for form and date-picker (#50825)
nathanlao Sep 12, 2024
22fb6f6
fix: invalid useApp warning (#50829)
zombieJ Sep 12, 2024
ce13565
fix: ColorPicker hex precision (#50843)
zombieJ Sep 13, 2024
b5defa9
fix: add missing arbric translation to locale (#50851)
nathanlao Sep 14, 2024
78c1fca
chore: merge master into feature
li-jia-nan Sep 14, 2024
0a75dfe
chore: merge master into feature
li-jia-nan Sep 14, 2024
412d1ba
chore: auto merge branches (#50856)
github-actions[bot] Sep 14, 2024
fa5d758
feat: CP should support Splitter className & style (#50855)
li-jia-nan Sep 14, 2024
b6edef3
fix(Upload): should support `name` prop drilling (#50652)
Wxh16144 Sep 14, 2024
b2b0d88
chore: fix size-limit (#50858)
afc163 Sep 14, 2024
7a521ab
feat(Checkbox): add onBlur and onFocus in types (#50842)
huiliangShen Sep 14, 2024
a63b9e9
ci: send Unconfirmed Issues to DingTalk (#50810)
thinkasany Sep 14, 2024
388203f
chore: disable mako outside MacOS and Linux (#50837)
yuanliu147 Sep 14, 2024
bd0f0cd
chore: upgrade deps (#50868)
github-actions[bot] Sep 14, 2024
ab72043
chore(deps): update dependency typescript to ~5.6.0 (#50871)
renovate[bot] Sep 15, 2024
fd8338e
site: rm dot of cls (#50869)
li-jia-nan Sep 15, 2024
ef11e1b
demo: update Table demo (#50866)
li-jia-nan Sep 15, 2024
be35e77
chore(deps): update dependency @codecov/webpack-plugin to v1 (#50872)
renovate[bot] Sep 15, 2024
ff69603
demo: update top-side-2.tsx (#50865)
Aimony Sep 15, 2024
3b08dea
demo: rm ts-nocheck of demo (#50878)
li-jia-nan Sep 15, 2024
eb630d3
demo: Table demo update (#50876)
li-jia-nan Sep 15, 2024
5a28186
feat(radio): add 'block' argument for Radio.Group (#50828)
yuanliu147 Sep 16, 2024
5db0ecc
chore: merge master into feature
li-jia-nan Sep 16, 2024
72c0377
chore: auto merge branches (#50883)
github-actions[bot] Sep 16, 2024
95756c2
chore: Update issue-schedule.yml (#50882)
afc163 Sep 16, 2024
91130b7
chore: upgrade deps (#50890)
github-actions[bot] Sep 17, 2024
ef10661
Revert "fix(Descriptions): style bordered table overflow" (#50891)
afc163 Sep 17, 2024
5b46765
feat: FloatButton support button htmlType (#50892)
li-jia-nan Sep 17, 2024
aa48a3c
feat: Adds ja_JP locale for shortWeekDays and shortMonths. (#50893)
harapeko Sep 17, 2024
296a9dc
fix: Typography ellipsis insufficient width (#50895)
yezhonghu0503 Sep 18, 2024
2e08118
ci(issue-schedule): update bot token (#50899)
thinkasany Sep 18, 2024
7d05bbe
chore: upgrade deps (#50896)
github-actions[bot] Sep 18, 2024
436aa9a
feat: Segmented adds vertical prop (#50708)
liangchaofei Sep 18, 2024
b5b0918
feat: Text Button tokens (#47870)
madocto Sep 18, 2024
a75c481
feat(modal): Ingested changes from rc-dialog to disable modal close b…
Ke1sy Sep 18, 2024
edfcc2d
chore: Update package.json (#50908)
afc163 Sep 18, 2024
9d5f731
chore: auto merge branches (#50906)
github-actions[bot] Sep 18, 2024
9c4d549
fix(input): Input addon text color issue (#50486)
DDDDD12138 Sep 18, 2024
863f61d
chore(deps): update dependency eslint to v9 (#50690)
renovate[bot] Sep 18, 2024
1c4025f
fix: remove Icon default fill="currentColor" (#50880)
afc163 Sep 18, 2024
0273690
chore: auto merge branches (#50910)
github-actions[bot] Sep 19, 2024
0815f26
Revert "fix: remove Icon default fill="currentColor"" (#50918)
afc163 Sep 19, 2024
fac392d
fix: Repair missing inner spacing (#50917)
yezhonghu0503 Sep 19, 2024
eaf9079
chore: auto merge branches (#50920)
github-actions[bot] Sep 19, 2024
c48fc0f
fix(SubMenu): popupStyle not working (#50922)
Wxh16144 Sep 19, 2024
8c4fbcd
feat(Checkbox): Change html element type for onFocus, onBlur (#50924)
2jordan3 Sep 19, 2024
1324b14
chore: upgrade deps (#50925)
github-actions[bot] Sep 19, 2024
9385ed0
docs: Resolve the link redirection error in the Upload (#50929)
kiner-tang Sep 20, 2024
9b7adc1
demo(form): improve layout demo (#50933)
thinkasany Sep 20, 2024
3f3d3e9
chore: upgrade deps (#50940)
github-actions[bot] Sep 20, 2024
cfa4756
chore(deps-dev): bump the dev-dependencies with 1 update (#50938)
dependabot[bot] Sep 20, 2024
a10f4c2
docs: Optimize the operation experience of the demo modal (#50943)
kiner-tang Sep 21, 2024
13530a0
docs: optimize demo style of lunar (#50944)
kiner-tang Sep 21, 2024
119eef9
chore: auto merge branches (#50945)
github-actions[bot] Sep 21, 2024
14d00df
chore: fix the Warning of Alert demo (#50946)
li-jia-nan Sep 21, 2024
0401475
fix(select): background color appears when allowClear and filled (#50…
thinkasany Sep 22, 2024
ff4989c
feat: Add some token for Select to customize hover/focus style (#50951)
kiner-tang Sep 22, 2024
aa70d29
fix(Tour): solve the Tour title will cover the close button at a cert…
kiner-tang Sep 22, 2024
36ddb02
feat: Pagination `showSizeChanger` accepts SelectProps now (#50952)
afc163 Sep 22, 2024
f08de84
chore: auto merge branches (#50953)
github-actions[bot] Sep 22, 2024
ecb099d
docs(🔥): release 5.21.0 with Splitter component and variant buttons (…
afc163 Sep 22, 2024
fdc30e7
docs: update changelog (#50959)
thinkasany Sep 23, 2024
e3063f2
docs: blog picker (#50936)
zombieJ Sep 23, 2024
96e5dfa
docs: add desc (#50967)
zombieJ Sep 23, 2024
6a48219
fix: Table in Transfer (#50974)
zombieJ Sep 23, 2024
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
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .codesandbox/ci.json

This file was deleted.

6 changes: 3 additions & 3 deletions .depslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ module.exports = {
],
modulePattern: [
{
pattern: /ConfigContext.*renderEmpty/ms,
pattern: /ConfigContext.*renderEmpty/s,
module: '../empty',
},
{
pattern: /ConfigConsumer.*renderEmpty/ms,
pattern: /ConfigConsumer.*renderEmpty/s,
module: '../empty',
},
{
pattern: /config-provider\/context.*renderEmpty/ms,
pattern: /config-provider\/context.*renderEmpty/s,
module: '../empty',
},
],
Expand Down
2 changes: 1 addition & 1 deletion .dumi/components/SemanticPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const useStyle = createStyles(({ token }, markPos: [number, number, number, numb
z-index: 999999;
box-shadow: 0 0 0 1px #fff;
pointer-events: none;
left: ${markPos[0] - MARK_BORDER_SIZE}px;
inset-inline-start: ${markPos[0] - MARK_BORDER_SIZE}px;
top: ${markPos[1] - MARK_BORDER_SIZE}px;
width: ${markPos[2] + MARK_BORDER_SIZE * 2}px;
height: ${markPos[3] + MARK_BORDER_SIZE * 2}px;
Expand Down
5 changes: 5 additions & 0 deletions .dumi/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@
background: rgba(255, 255, 255, 0.2);
border-radius: 6px;
}

html {
scrollbar-width: thin;
scrollbar-color: unset;
}
28 changes: 14 additions & 14 deletions .dumi/hooks/use.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ function use<T>(promise: PromiseLike<T>): T {
}
if (internal.status === 'rejected') {
throw internal.reason;
} else if (internal.status === 'pending') {
throw internal;
} else {
internal.status = 'pending';
internal.then(
(result) => {
internal.status = 'fulfilled';
internal.value = result;
},
(reason) => {
internal.status = 'rejected';
internal.reason = reason;
},
);
}
if (internal.status === 'pending') {
throw internal;
}
internal.status = 'pending';
internal.then(
(result) => {
internal.status = 'fulfilled';
internal.value = result;
},
(reason) => {
internal.status = 'rejected';
internal.reason = reason;
},
);
throw internal;
}

export default use;
1 change: 1 addition & 0 deletions .dumi/hooks/useFetch/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fetch from 'cross-fetch';

import use from '../use';
import FetchCache from './cache';

Expand Down
22 changes: 14 additions & 8 deletions .dumi/hooks/useLocale.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
import { useLocale as useDumiLocale } from 'dumi';

export interface LocaleMap<Key extends string> {
cn: Record<Key, string>;
en: Record<Key, string>;
export interface LocaleMap<
K extends PropertyKey = PropertyKey,
V extends string | ((...params: any[]) => string) = string,
> {
cn: Record<K, V>;
en: Record<K, V>;
}

function useLocale<Key extends string>(
localeMap?: LocaleMap<Key>,
): [Record<Key, string>, 'cn' | 'en'] {
const useLocale = <
K extends PropertyKey = PropertyKey,
V extends string | ((...params: any[]) => string) = string,
>(
localeMap?: LocaleMap<K, V>,
): [Record<K, V>, 'cn' | 'en'] => {
const { id } = useDumiLocale();
const localeType = id === 'zh-CN' ? 'cn' : 'en';
return [localeMap?.[localeType]!, localeType];
}
return [localeMap?.[localeType]!, localeType] as const;
};

export default useLocale;
3 changes: 2 additions & 1 deletion .dumi/hooks/useLocation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useLocation as useDumiLocation } from 'dumi';
import * as React from 'react';
import { useLocation as useDumiLocation } from 'dumi';

import useLocale from './useLocale';

function clearPath(path: string) {
Expand Down
115 changes: 80 additions & 35 deletions .dumi/hooks/useMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,73 @@
import React, { useMemo } from 'react';
import type { MenuProps } from 'antd';
import { Tag, version } from 'antd';
import { Space, Tag, version } from 'antd';
import { createStyles } from 'antd-style';
import classnames from 'classnames';
import { useFullSidebarData, useSidebarData } from 'dumi';

import Link from '../theme/common/Link';
import useLocation from './useLocation';

const ItemTag: React.FC<{ tag?: string; show?: boolean }> = (props) => {
const { tag, show = true } = props;
if (!show || !tag) {
return null;
function isVersionNumber(value?: string) {
return value && /^\d+\.\d+\.\d+$/.test(value);
}

const useStyle = createStyles(({ css, token }) => ({
link: css`
display: flex;
align-items: center;
justify-content: space-between;
`,
tag: css`
margin-inline-end: 0;
`,
subtitle: css`
font-weight: normal;
font-size: ${token.fontSizeSM}px;
opacity: 0.8;
`,
}));

interface MenuItemLabelProps {
before?: React.ReactNode;
after?: React.ReactNode;
link: string;
title: React.ReactNode;
subtitle?: React.ReactNode;
search?: string;
tag?: string;
className?: string;
}

const MenuItemLabelWithTag: React.FC<MenuItemLabelProps> = (props) => {
const { styles } = useStyle();
const { before, after, link, title, subtitle, search, tag, className } = props;
if (!before && !after) {
return (
<Link to={`${link}${search}`} className={classnames(className, { [styles.link]: tag })}>
<Space>
<span>{title}</span>
{subtitle && <span className={styles.subtitle}>{subtitle}</span>}
</Space>
{tag && (
<Tag
bordered={false}
className={classnames(styles.tag)}
color={isVersionNumber(tag) || tag === 'New' ? 'success' : 'processing'}
>
{tag.replace('VERSION', version)}
</Tag>
)}
</Link>
);
}
return (
<Tag
bordered={false}
color={tag === 'New' ? 'success' : 'processing'}
style={{ marginInlineStart: 'auto', marginInlineEnd: 0, marginTop: -2 }}
>
{tag.replace('VERSION', version)}
</Tag>
<Link to={`${link}${search}`} className={className}>
{before}
{title}
{subtitle && <span className={styles.subtitle}>{subtitle}</span>}
{after}
</Link>
);
};

Expand All @@ -27,7 +76,7 @@ export interface UseMenuOptions {
after?: React.ReactNode;
}

const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] => {
const useMenu = (options: UseMenuOptions = {}): readonly [MenuProps['items'], string] => {
const fullData = useFullSidebarData();
const { pathname, search } = useLocation();
const sidebarData = useSidebarData();
Expand Down Expand Up @@ -120,18 +169,15 @@ const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] =>
key: group?.title,
children: group.children?.map((item) => ({
label: (
<Link
to={`${item.link}${search}`}
style={{ display: 'flex', alignItems: 'center' }}
>
{before}
<span key="english">{item?.title}</span>
<span className="chinese" key="chinese">
{item.frontmatter?.subtitle}
</span>
<ItemTag tag={item.frontmatter?.tag} show={!before && !after} />
{after}
</Link>
<MenuItemLabelWithTag
before={before}
after={after}
link={item.link}
title={item?.title}
subtitle={item.frontmatter?.subtitle}
search={search}
tag={item.frontmatter?.tag}
/>
),
key: item.link.replace(/(-cn$)/g, ''),
})),
Expand All @@ -146,15 +192,14 @@ const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] =>
result.push(
...list.map((item) => ({
label: (
<Link
to={`${item.link}${search}`}
style={{ display: 'flex', alignItems: 'center' }}
>
{before}
{item?.title}
<ItemTag tag={item.frontmatter?.tag} show={!before && !after} />
{after}
</Link>
<MenuItemLabelWithTag
before={before}
after={after}
link={item.link}
title={item?.title}
search={search}
tag={item.frontmatter?.tag}
/>
),
key: item.link.replace(/(-cn$)/g, ''),
})),
Expand All @@ -165,7 +210,7 @@ const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] =>
);
}, [sidebarData, fullData, pathname, search, options]);

return [menuItems, pathname];
return [menuItems, pathname] as const;
};

export default useMenu;
2 changes: 1 addition & 1 deletion .dumi/hooks/useThemeAnimation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ const useThemeAnimation = () => {
.startViewTransition(async () => {
// wait for theme change end
while (colorBgElevated === animateRef.current.colorBgElevated) {
// eslint-disable-next-line no-await-in-loop
await new Promise((resolve) => {
setTimeout(resolve, 1000 / 60);
});
Expand All @@ -99,6 +98,7 @@ const useThemeAnimation = () => {
root.classList.add(isDark ? 'light' : 'dark');
})
.ready.then(() => {
// eslint-disable-next-line no-console
console.log(`Theme transition finished in ${Date.now() - time}ms`);
const clipPath = [
`circle(0px at ${x}px ${y}px)`,
Expand Down
2 changes: 1 addition & 1 deletion .dumi/loading.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// must be .js file, can't modify to be .ts file!
// eslint-disable-next-line no-restricted-exports

export { default } from './theme/common/Loading';
6 changes: 4 additions & 2 deletions .dumi/pages/404/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { HomeOutlined } from '@ant-design/icons';
import { Link, useLocation } from 'dumi';
import React, { useEffect } from 'react';
import { HomeOutlined } from '@ant-design/icons';
import { Button, Result } from 'antd';
import { useLocation } from 'dumi';

import Link from '../../theme/common/Link';
import * as utils from '../../theme/utils';

export interface NotFoundProps {
Expand Down
Loading
Loading