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

Closed
wants to merge 1,054 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1054 commits
Select commit Hold shift + click to select a range
ef6767d
fix: missed translation in ar (#49852)
ahmedsamirdev Jul 18, 2024
a134dbb
feat: `Input`、`TextArea`、`Mentions` support onClear prop (#49905)
li-jia-nan Jul 19, 2024
4a84f7e
docs: update blog ref to zhuanlan (#49960)
li-jia-nan Jul 19, 2024
f0bc8b5
chore(color-picker): improve TS type (#49949)
Wxh16144 Jul 19, 2024
def8925
feat: Select prevent long press of enter (#49963)
crazyair Jul 19, 2024
92a5973
docs: changelog for 5.19.3 (#49962)
PeachScript Jul 19, 2024
7defec2
docs: correct changelog symbol (#49970)
PeachScript Jul 19, 2024
7e74c4f
chore: merge master into feature
li-jia-nan Jul 19, 2024
f2ac3fc
chore: auto merge branches (#49981)
github-actions[bot] Jul 19, 2024
2efbdbf
fix(Descriptions): style bordered table overflow (#49946)
leefinder Jul 20, 2024
ad4e522
docs: supplement type for classnames and styles (#49984)
thinkasany Jul 20, 2024
2584ce6
chore: replace "ant" with defaultPrefixCls (#49985)
li-jia-nan Jul 20, 2024
1fce22a
docs: fix Tabs moreProps link (#49986)
afc163 Jul 20, 2024
8c30909
feat: Slider range.editable support `minCount` & `maxCount` (#49987)
zombieJ Jul 20, 2024
2194603
chore: sideEffects could be false now (#49991)
afc163 Jul 20, 2024
29490fa
ci: fix deploy failed when get empty pr id (#50001)
zombieJ Jul 22, 2024
e906a80
chore: upgrade @ant-design/icons to 5.4.0 (#49993)
afc163 Jul 22, 2024
0681d6c
chore: auto merge branches (#50005)
github-actions[bot] Jul 22, 2024
5a9a2d9
feat(tree): add switcherLoadingIcon prop (#49716)
coding-ice Jul 22, 2024
43dca48
demo: refactor form login demo (#50010)
afc163 Jul 22, 2024
823b230
ci: fix diff failed when get empty pr id (#50019)
zombieJ Jul 23, 2024
6840adb
chore: add dependencies `@ant-design/cssinjs-utils`
YumoImer Jul 23, 2024
64f26bd
refactor(theme): migrate and refactor type `GlobalToken` by `@ant-des…
YumoImer Jul 23, 2024
c057cb2
refactor(theme): migrate and refactor type `OverrideToken` by `@ant-d…
YumoImer Jul 23, 2024
1c6c625
refactor(theme): migrate and refactor type `FullToken` by `@ant-desig…
YumoImer Jul 23, 2024
8a0fc4c
Revert "fix: Form.Item input-content no horizontal alignment (#49635)…
wanpan11 Jul 23, 2024
00660bc
refactor(theme): migrate and refactor type `OverrideComponent` by `@a…
YumoImer Jul 23, 2024
a3cba98
refactor(theme): migrate and refactor type `GetDefaultToken` by `@ant…
YumoImer Jul 23, 2024
3ec77d3
refactor(theme): migrate and refactor type `GenStyleFn` by `@ant-desi…
YumoImer Jul 23, 2024
9e8a550
refactor(theme): migrate and refactor type `CSSUtil` by `@ant-design/…
YumoImer Jul 23, 2024
adbda3d
refactor(theme): migrate and refactor `genCalc` by `@ant-design/cssin…
YumoImer Jul 23, 2024
35a0297
refactor(theme): migrate and refactor `mergeToken` by `@ant-design/cs…
YumoImer Jul 23, 2024
55cfeef
docs: Update link to english Mozilla Docs in Table index.en-US.md (#5…
ptaberg Jul 23, 2024
965b68c
refactor(theme): migrate and refactor `statistic.ts` by `@ant-design/…
YumoImer Jul 23, 2024
5019af4
refactor(theme): migrate and refactor type `TokenWithCommonCls` by `@…
YumoImer Jul 23, 2024
b3ddb0e
fix(theme): `DerivativeToken` to `AliasToken`
YumoImer Jul 23, 2024
c5c58d7
refactor(theme): migrate and refactor `genStyleHooks` `genComponentSt…
YumoImer Jul 23, 2024
012dc7f
chore: update dependencies
YumoImer Jul 23, 2024
14b1f56
chore: delete unuse file and test
YumoImer Jul 23, 2024
98b17f8
fix: type error when use `@ant-design/cssinjs-utils@1.0.2`
YumoImer Jul 23, 2024
f6e9f85
docs: Update components/notification/index.*.md (#50035)
vsn4ik Jul 23, 2024
38cf5e8
docs: unify component export file as index.tsx (#50013)
vagusX Jul 23, 2024
edb1b38
refactor: add getCompUnitless for genStyleUtils
YumoImer Jul 24, 2024
b71752f
Merge branch 'master' into refactor/cssinjs-utils
YumoImer Jul 24, 2024
9f73399
docs: replace the deprecated dropdownMatchSelectWidth (#50027)
KurumiRin Jul 24, 2024
6fa9ee1
Merge pull request #50030 from ant-design/refactor/cssinjs-utils
YumoImer Jul 24, 2024
e70ed08
style: antd-picker-content set direction ltr (#50045)
Layouwen Jul 24, 2024
0208484
fix(empty): fix opacityImage token failed by unitless (#50066)
thinkasany Jul 25, 2024
902aa2e
fix: the tour component had no translations in the Belgian locales (#…
JaccoGoris Jul 25, 2024
02d331b
type: improve ts type for transfer (#50018)
thinkasany Jul 25, 2024
74cf96a
chore: fix husky (#50078)
wanpan11 Jul 25, 2024
0175a22
docs: add PDF recommendations (#50076)
afc163 Jul 25, 2024
7120673
chore: update blog (#50069)
Wxh16144 Jul 25, 2024
d5207c1
Merge branch 'master' into feature-merge-master
li-jia-nan Jul 26, 2024
ca1b0b1
chore: auto merge branches (#50087)
github-actions[bot] Jul 26, 2024
4ee1cc9
fix: Checkbox indeterminate style (#50083)
afc163 Jul 26, 2024
11b81ff
fix: Tour mobile view (#50082)
afc163 Jul 26, 2024
b80d564
chore: bump the dev-dependencies group with 1 update (#50077)
dependabot[bot] Jul 26, 2024
96094b0
site: improve color type (#50089)
thinkasany Jul 26, 2024
1fe95ec
fix: should not display overlay when the content is null/undefined (#…
LLmoskk Jul 26, 2024
4e37488
ci: current workflow job url (#50090)
vagusX Jul 26, 2024
06d69cf
site: use overlayStyle instead of popupStyle (#50095)
thinkasany Jul 26, 2024
5604fcc
chore(deps-dev): bump husky from 9.0.11 to 9.1.2 (#50092)
thinkasany Jul 26, 2024
ea9549a
refactor: rewrite Overlay of PurePanel (#50097)
li-jia-nan Jul 26, 2024
5f91755
docs: fix typos (#50096)
thinkasany Jul 26, 2024
0285380
feat(Upload): showUploadList add extra option (#50098)
guoyunhe Jul 26, 2024
65496b5
Merge pull request #50103 from ant-design/master
li-jia-nan Jul 26, 2024
cd4199e
ci: fix workflow url for Visual Regression Diff (#50105)
vagusX Jul 26, 2024
f56fee1
site: update site/demo style (#50107)
li-jia-nan Jul 27, 2024
6202187
ci: we can skip a single file uploading error when uploading a folder…
vagusX Jul 27, 2024
be3d440
fix: add missed translation in pl_PL (#50023)
ang33l Jul 28, 2024
e8fa593
site: rewrite with CSS logical properties (#50109)
li-jia-nan Jul 28, 2024
525e337
type: use DirectionType (#50117)
li-jia-nan Jul 28, 2024
836d1bb
type: code optimization (#50116)
li-jia-nan Jul 28, 2024
2e4b9cb
site: rewrite with CSS logical properties again (#50113)
li-jia-nan Jul 28, 2024
0499155
Merge branch 'master' into master-merge-feature
li-jia-nan Jul 28, 2024
aed4665
chore: auto merge branches (#50118)
github-actions[bot] Jul 28, 2024
832cffc
feat: ColorPicker support gradient color (#50050)
zombieJ Jul 29, 2024
c7d24e2
docs: add changelog 5.19.4 (#50129)
xrkffgg Jul 29, 2024
31efa5a
test: update snapshot (#50136)
zombieJ Jul 29, 2024
5cacdd1
docs: update publish date (#50142)
xrkffgg Jul 30, 2024
e43b1a2
chore: upgrade deps (#50141)
github-actions[bot] Jul 30, 2024
3456257
fix: popup align position (#50134)
zombieJ Jul 30, 2024
98b5810
ci: skip artifact check (#50150)
zombieJ Jul 30, 2024
fd6b3f1
chore: bump the dev-dependencies group with 1 update (#50133)
dependabot[bot] Jul 30, 2024
8751e0d
chore: auto merge branches (#50149)
github-actions[bot] Jul 30, 2024
6476754
docs: Update README.md reproduce link (#50151)
magicdawn Jul 30, 2024
aebc23f
enhance: color picker click (#50148)
zombieJ Jul 30, 2024
24833b5
Update README-zh_CN.md reproduce link (#50152)
magicdawn Jul 30, 2024
50f1172
fix: Tree filter node style lost (#49773)
wanpan11 Jul 30, 2024
791c27b
chore: upgrade deps (#50180)
github-actions[bot] Jul 31, 2024
bcf2f0e
fix: Improve es_ES.ts (#50179)
sergioalmela Aug 1, 2024
2a6d884
feat(spin): configProvider support indicator prop (#50183)
coding-ice Aug 1, 2024
03c5332
fix: update script for cross-platform compatibility (#50184)
DDDDD12138 Aug 1, 2024
c6289dd
fix(table):table grouping columns does not apply sorting (#50086)
Zyf665 Aug 1, 2024
d9990e3
docs: fix findDOMNode warnings (#50191)
afc163 Aug 1, 2024
249c94f
chore: auto merge branches (#50198)
github-actions[bot] Aug 2, 2024
93d04f1
chore: change to export type (#50203)
baicie Aug 2, 2024
b36f02a
docs: fix broken umi link (#50214)
gin-lsl Aug 2, 2024
6cb0040
chore: auto merge branches (#50215)
github-actions[bot] Aug 3, 2024
d9b550a
chore: auto merge branches (#50216)
github-actions[bot] Aug 3, 2024
9484dd3
docs: improve Segmented docs with SegmentedItemType (#50205)
vagusX Aug 3, 2024
4b09f30
fix: add missed translation in uk_UA (#50178)
Andrik264 Aug 3, 2024
14a9449
fix: unit for line-height for ColorPicker (#50220)
vagusX Aug 3, 2024
f4b585a
fix(color-picker): In disabled state, cursor is no-allowed (#50217)
coding-ice Aug 3, 2024
cbdbed3
test: set maxWorkers for test:visual-regression (#50219)
vagusX Aug 3, 2024
997650e
docs: v5.20.0 (#50218)
vagusX Aug 3, 2024
2e2d766
docs(Form): supplement the documentation of Form (#50223)
FanetheDivine Aug 3, 2024
1ed1814
chore: upgrade deps (#50225)
github-actions[bot] Aug 4, 2024
7fdfb29
chore(deps): update dependency @typescript-eslint/parser to v8 (#50228)
renovate[bot] Aug 4, 2024
85392db
docs: update components/_util/index.zh-CN.md (#50235)
hzyhbk Aug 5, 2024
2275919
fix(locale): spaces in default az_AZ language (#50238)
thinkasany Aug 5, 2024
2432422
docs(ColorPicker): Update line-gradient.md (#50239)
Meetacoo Aug 5, 2024
af61f44
chore: update componentCls key (#50244)
li-jia-nan Aug 5, 2024
1ace7e2
test: fix test:visual-regression when moving imgs (#50253)
vagusX Aug 5, 2024
d1151f3
docs: fix typo (#50256)
astfn Aug 5, 2024
1421ecc
chore: update componentCls key again (#50251)
li-jia-nan Aug 5, 2024
f77f5ae
ci: antd 4.x eol (#50254)
Wxh16144 Aug 5, 2024
ddcdb2a
chore: update unit value (#50258)
li-jia-nan Aug 5, 2024
5f3ab95
fix(Spin): progress bar mode in container not centered error (#50277)
Wxh16144 Aug 6, 2024
a6b064b
doc: @ctrl/tinycolor (#50280)
crazyair Aug 7, 2024
f662194
docs: fix limit demo (#50287)
zombieJ Aug 7, 2024
a711cf4
test(getScroll): When window is undef (#50266)
coding-ice Aug 7, 2024
37abf77
fix(Calendar): make Calendar locale overriding locale from ConfigProv…
Asanio06 Aug 7, 2024
c23d187
fix: ColorPicker not support compact (#50291)
zombieJ Aug 7, 2024
ef489fc
fix: fast-color compile error by upgrade color-picker (#50293)
afc163 Aug 7, 2024
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
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
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
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
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
aa60e53
fix: fix incorrect border-radius of trigger (#50408)
li-jia-nan 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
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
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
5888e6a
docs: add 5.20.2 changelogs (#50492)
chenshuai2144 Aug 19, 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
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
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
cab753c
chore: fix webpack config of dist bundle (#50575)
afc163 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
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
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
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
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.

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;
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