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 #624

Closed
wants to merge 1,242 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1242 commits
Select commit Hold shift + click to select a range
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
c2ae466
site: fix suspense fallback when toggle debug mode (#50985)
afc163 Sep 24, 2024
8537f73
fix: tr value added on filterCheckall keyword (#51000)
ytahirkose Sep 24, 2024
fa4028b
chore: fix emotion style missing in visual diff (#50995)
afc163 Sep 24, 2024
696c9dd
fix(button): type=link error token & add prefix cls (color/variant) &…
coding-ice Sep 24, 2024
512fec9
chore: upgrade deps (#51004)
github-actions[bot] Sep 24, 2024
10ad31f
docs: Update index.en-US.md (#51006)
RomaLetodiani Sep 25, 2024
b6adbd7
chore: fix duplicated action name (#50994)
afc163 Sep 25, 2024
a172d07
site: lazy load g6 (#50991)
afc163 Sep 25, 2024
9c3478e
feat: Tree add indentWidth token (#50989)
afc163 Sep 25, 2024
d85d99d
Revert "feat: Tree add indentWidth token" (#51009)
afc163 Sep 25, 2024
113d1b9
docs: release 5.21.1 (#51012)
afc163 Sep 25, 2024
ae13057
chore(deps-dev): bump the dev-dependencies group with 1 update (#51021)
dependabot[bot] Sep 26, 2024
34bc447
site: improve pronunciation (#51017)
thinkasany Sep 26, 2024
79f2b63
docs:Remove duplicate definitions of attributes icon and disabled (#5…
yxplus1116 Sep 26, 2024
75df10f
fix: Splitter.Panel style is invalid (#51032)
wanpan11 Sep 27, 2024
36573e2
fix(select): Incorrect activeBorderColor token when variant is filled…
coding-ice Sep 27, 2024
d0bcb18
chore: upgrade deps (#51056)
github-actions[bot] Sep 28, 2024
7d29609
type: Remove unused className from Tour props (#51059)
gennadiipel Sep 28, 2024
05fe556
fix: add touch listener to Splitter (#51060)
sakuraee Sep 28, 2024
bcdd10b
site: improve component change docs (#51040)
thinkasany Sep 28, 2024
f6f126b
fix: search component inconsistent height of button and input (#50926)
nathanlao Sep 28, 2024
80b6157
chore(deps): update dependency @npmcli/run-script to v9 (#51064)
renovate[bot] Sep 29, 2024
c063168
fix: Typography copyable icon not aligned (#51066)
afc163 Sep 29, 2024
cce2612
style: tweak lineWidthFocus to 3px (#51069)
afc163 Sep 29, 2024
b071cdf
fix: upgrade rc-tabs (#51072)
afc163 Sep 29, 2024
9b779b1
refactor: remove TransButton in Table/Transfer/Typography (#51068)
afc163 Sep 29, 2024
d9c778c
site: add version update date for component changedoc (#51070)
thinkasany Sep 29, 2024
fc91464
refactor: refactor components/upload/UploadList/index.tsx (#51074)
afc163 Sep 30, 2024
0f30e80
docs: update changelog for version 5.21.2 release (#51078)
chenshuai2144 Sep 30, 2024
39509d4
site: support bold for change doc (#51076)
thinkasany Sep 30, 2024
0ed8d61
docs: move change-log link to meta part (#51085)
afc163 Sep 30, 2024
bb75758
chore: update the publish date (#51086)
li-jia-nan Oct 1, 2024
6b57e3b
fix: add peerDependencies back (#51079)
chentsulin Oct 1, 2024
396d070
site: site style update (#51088)
li-jia-nan Oct 1, 2024
66222a2
chore: import rc-util from path (#51087)
afc163 Oct 2, 2024
d5ef5f3
site: audio icon is not aligned of site (#51094)
li-jia-nan Oct 2, 2024
e8b0fc4
fix(Splitter): fix the issue about Splitter had unexpected gaps in Fl…
kiner-tang Oct 2, 2024
34cf399
chore: Update webpack.config.js (#51098)
akshitbansal2005 Oct 3, 2024
1a9fd44
docs: clear description of Collapsible property of Collapse (#51102)
mshobana Oct 3, 2024
b81ae1d
docs: add codesandbox sample for findDOMNode is deprecated (#51101)
afc163 Oct 3, 2024
1a8b252
docs: fix notification import statement (#51105)
Zt448143356 Oct 3, 2024
e17d7c9
fix: fix the issue about throw a warning when Splitter nested in a hi…
kiner-tang Oct 4, 2024
1e6e8d8
docs: remove deprecated props from document (#51138)
kiner-tang Oct 7, 2024
eee46a4
fix: sorter columnkey should be null (#51114)
nathanlao Oct 7, 2024
1696613
style: Make tall dropdowns have scroll bar (#51112)
Cameron-Asdf Oct 7, 2024
e130200
chore(deps-dev): bump @inquirer/prompts from 6.0.1 to 7.0.0 in the de…
dependabot[bot] Oct 8, 2024
c55a675
chore: update slider patch to fix warning (#51150)
yoyo837 Oct 8, 2024
42a3770
site: fix display of refs (#51153)
thinkasany Oct 8, 2024
f83c588
type(slider): improve eventName type (#51156)
thinkasany Oct 8, 2024
15e1f15
fix: ColorPicker gradient slider not draggable (#51161)
zombieJ Oct 9, 2024
fd15489
docs: changelog 5.21.3 (#51147)
MadCcc Oct 9, 2024
32080be
docs: remove duplicated backticks (#51168)
lolWK Oct 9, 2024
3819726
docs: fixed the typo by changing 'three' to 'third' (#51172)
idealHyun Oct 9, 2024
9a4e554
fix: mix usage should not scroll (#51169)
zombieJ Oct 9, 2024
a3902d3
docs: fixed typo by adding 'developers' and 'they' (#51176)
rlaehd62 Oct 10, 2024
7236216
site: add version title href (#51180)
thinkasany Oct 10, 2024
f2445a8
docs: tweak demo toggle button style (#51184)
afc163 Oct 10, 2024
1df8726
site: show DocAnchor for en changedoc (#51185)
thinkasany Oct 11, 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