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

Closed
wants to merge 1,011 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1011 commits
Select commit Hold shift + click to select a range
b182b13
chore(deps): add dependency `@emotion/css` (#49823)
RubuJam Jul 11, 2024
cd2dc30
fix: delay folder upload until all children files are parsed when dra…
coderz-w Jul 11, 2024
3dcf2cb
chore: auto merge branches (#49834)
github-actions[bot] Jul 11, 2024
d8b4f07
type(token): height / width support string | number (#49837)
thinkasany Jul 12, 2024
c1b8a6e
docs: update .github/PULL_REQUEST_TEMPLATE.md (#49839)
afc163 Jul 12, 2024
8a090c9
Revert "type(token): height / width support string | number" (#49836)
li-jia-nan Jul 12, 2024
e97a27d
type: fix Tree icon and switcherIcon type (#49821)
afc163 Jul 12, 2024
d063f56
Revert "type: improve tree component assert" (#49835)
li-jia-nan Jul 12, 2024
1d84cca
fix: issues in `imageTest.tsx` (#49826)
RubuJam Jul 12, 2024
3851af9
feat: support custom status render in qrcode (#49563)
kiner-tang Jul 12, 2024
85c31f1
ci: add stackblitz templates (#49841)
Wxh16144 Jul 12, 2024
53b6688
fix: fix list.item actions empty (#49842)
int64ago Jul 12, 2024
ebdbc57
chore: upgrade deps (#49851)
github-actions[bot] Jul 12, 2024
d9f70d7
chore: auto merge branches (#49850)
github-actions[bot] Jul 12, 2024
da1d8df
type: support string | number (#49810) (#49855)
thinkasany Jul 13, 2024
fc56192
chore(deps): update dependency eslint-plugin-compat to v6 (#49856)
renovate[bot] Jul 14, 2024
d540893
type: remove type assertions (#49859)
Youzi-io Jul 14, 2024
57d2cd4
fix: Add missing translations for Kannada language (kn_IN) (#49860)
neerajap-01 Jul 14, 2024
7346f92
chore(deps): update dependency glob to v11 (#49857)
renovate[bot] Jul 14, 2024
fe3378f
type: code optimization (#49864)
li-jia-nan Jul 15, 2024
7329c8a
site: fix a11y issue that <button> is nested inside <a> in homepage (…
afc163 Jul 15, 2024
a84279a
docs: fix typos (#49869)
thinkasany Jul 15, 2024
513a8ba
docs: dead anchor (#49877)
coding-ice Jul 15, 2024
97fca5b
fix: Spin ptg style (#49876)
zombieJ Jul 15, 2024
cc56db6
docs: changelog of 5.19.2 (#49878)
zombieJ Jul 15, 2024
5dd072d
refactor: Use `@ant-design/fast-color` instead (#49846)
zombieJ Jul 15, 2024
0adecd8
docs: always show the commitor (#49881)
zombieJ Jul 15, 2024
0e9de2e
chore: upgrade deps (#49672)
dependabot[bot] Jul 15, 2024
105bd19
chore: auto merge branches (#49893)
github-actions[bot] Jul 15, 2024
a9d3939
chore: code optimization (#49894)
li-jia-nan Jul 16, 2024
f1699d3
docs: dead anchor (#49897)
coding-ice Jul 16, 2024
88c629e
fix: descriptions buttom right padding style (#49895)
crazyair Jul 16, 2024
d038993
fix(Card): The cover ele support borderRadius (#49862)
coding-ice Jul 16, 2024
ca66d5c
docs(breadcrumb): add with params demo (#49902)
coding-ice Jul 16, 2024
acf73c9
fix: Dropdown menu item get wrapped at edge (#49899)
afc163 Jul 16, 2024
66c4004
fix(image): preview-footer element width adaptive (#49915)
wanpan11 Jul 17, 2024
abca9a8
fix(list): pagination's default alignment is at the end (#49925)
coding-ice Jul 17, 2024
82da7ac
site: update site style (#49938)
li-jia-nan Jul 18, 2024
ad70505
fix: Pagination token.itemBg not working (#49933)
afc163 Jul 18, 2024
290d10c
docs: fix Description colon (#49940)
crazyair Jul 18, 2024
87fb6de
chore: Update README.md (#49939)
afc163 Jul 18, 2024
21194da
feat: Slider support editable (#49923)
zombieJ Jul 18, 2024
ebc3a99
fix(table):sorter value exception (#49533)
Zyf665 Jul 18, 2024
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
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
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
114 changes: 80 additions & 34 deletions .dumi/hooks/useMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,74 @@
import React, { useMemo } from 'react';
import type { MenuProps } from 'antd';
import { 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`
margin-inline-start: ${token.marginXS}px;
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 })}>
<span>
{title}
{subtitle && <span className={styles.subtitle}>{subtitle}</span>}
</span>
{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 +77,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 +170,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 +193,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 +211,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