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

Closed
wants to merge 7,760 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
7760 commits
Select commit Hold shift + click to select a range
5cee2b6
chore: bump form to fix list preserve (#51796)
zombieJ Nov 29, 2024
d9f37fe
fix: fix clearFilters paramter ts type error (#51754)
fubd Nov 29, 2024
ab1cb36
docs(collapse): fix wrong jump link
coding-ice Nov 29, 2024
b47c010
Merge pull request #51827 from coding-ice/docs/link
coding-ice Nov 29, 2024
670677d
chore: upload site assets when deploy site (#51433)
Wxh16144 Nov 29, 2024
a42b9a2
feat: Card add bodyPaddingSM/headerPaddingSM/bodyPadding/headerPaddin…
thinkasany Nov 29, 2024
4bf79a8
fix(Select): clear icon position (#51649)
dislido Nov 29, 2024
e1d8587
fix(Table): improve the order of merging inline styles in table heade…
Wxh16144 Nov 29, 2024
f48280a
chore: lock nwsapi@2.2.13 (#51837)
thinkasany Nov 29, 2024
a7d1202
chore: upgrade deps (#51838)
github-actions[bot] Nov 29, 2024
5c943ca
chore(deps): bump dawidd6/action-download-artifact from 6 to 7 (#51835)
dependabot[bot] Nov 30, 2024
1f3277e
type: update Segmented options type of site (#51847)
li-jia-nan Dec 1, 2024
94ef22a
chore(deps): bump softprops/action-gh-release from 2.0.8 to 2.1.0 (#5…
dependabot[bot] Dec 1, 2024
b194658
Merge branch master into feature-merge-master
li-jia-nan Dec 1, 2024
31472f8
chore: auto merge branches (#51849)
github-actions[bot] Dec 1, 2024
ea15c1f
feat(collapse): add a11y test for demo and improve focus style (#51836)
aojunhao123 Dec 2, 2024
4f3faa3
docs: changelog for 5.22.3 (#51854)
PeachScript Dec 2, 2024
e7afced
feat(mentions): add onPopupScroll (#51858)
OysterD3 Dec 2, 2024
4dbb007
docs(shared): Improve shared API docs (#51857)
Wxh16144 Dec 2, 2024
cbfe7fb
refactor: inline-style to cssinjs (#51843)
li-jia-nan Dec 2, 2024
aeed111
ci: fix website deploy fail (#51869)
Wxh16144 Dec 3, 2024
7556be8
ci(website-deploy): improve upload timing (#51870)
Wxh16144 Dec 3, 2024
859c4a8
docs: fix deprecated doc error (#51873)
thinkasany Dec 3, 2024
f94261d
chore: fix ci (#51876)
zombieJ Dec 3, 2024
0e9ac35
fix: input work with Upload (#51874)
zombieJ Dec 3, 2024
cd10dc0
fix: use collapsedIconSize to calculate paddingInline for collapsed m…
Gnomeek Dec 4, 2024
db55118
fix: useResetIconStyle is being called repeatedly
YumoImer Dec 4, 2024
1c41f64
fixed typo: added space between "movement,shape" (#51899)
akshar-dave Dec 4, 2024
d4d6492
site: fix some eslint error (#51901)
li-jia-nan Dec 4, 2024
d2b311f
fix: Tooltip min width to resolve arrow pos (#51904)
zombieJ Dec 5, 2024
2ba2801
Merge branch 'master' into fix/duplicate-style-tags
YumoImer Dec 5, 2024
a3320dd
fix(transfer): transfer operation button should be disabled when all …
WwwHhhYran Dec 5, 2024
8a82e55
refactor: fixed the issue of icon styles being duplicated.
YumoImer Dec 5, 2024
f930195
refactor: use defaultIconPrefixCls instead of string
YumoImer Dec 5, 2024
6ee4ea5
chore: reverted unnecessary changes.
YumoImer Dec 5, 2024
41cc696
Merge branch 'master' into fix/duplicate-style-tags
YumoImer Dec 5, 2024
381eceb
chore: upgrade deps (#51913)
github-actions[bot] Dec 5, 2024
d65e996
chore(deps-dev): bump the dev-dependencies group with 2 updates (#51908)
dependabot[bot] Dec 5, 2024
093c6c2
docs: add target properties to all external url link (#51917)
CoderSerio Dec 6, 2024
cc67ee2
chore: fix eslint warning and errors (#51920)
afc163 Dec 6, 2024
506c13b
site: fix site btn style error (#51915)
li-jia-nan Dec 6, 2024
cb25346
site: enable prefetch for dumi Link (#51921)
afc163 Dec 6, 2024
74729a6
Merge branch 'master' into fix/duplicate-style-tags
YumoImer Dec 6, 2024
807cca1
chore: fix circular dependency
YumoImer Dec 6, 2024
2a5408d
chore: fix link button style and preload behavior (#51922)
afc163 Dec 6, 2024
924025f
Merge branch 'master' into fix/duplicate-style-tags
YumoImer Dec 6, 2024
eb28df8
chore: fix circular dependency
YumoImer Dec 6, 2024
2aa4440
test: use regex check Self-contained .anticon style
YumoImer Dec 6, 2024
f7fbfc8
fix(transfer): background overflow when last item on current page is …
ayangweb Dec 6, 2024
0c76dd7
chore: upgrade deps (#51931)
github-actions[bot] Dec 6, 2024
036a480
chore: merge master into feature
li-jia-nan Dec 6, 2024
6973bf2
chore: auto merge branches (#51932)
github-actions[bot] Dec 6, 2024
a5dc406
fix(layout): enhance Sider zero-width-trigger selector specificity (#…
aojunhao123 Dec 8, 2024
0f20012
chore: update antd contributors list (#51930)
li-jia-nan Dec 8, 2024
40207c8
fix(tabs): adjust nav add button style for correct size (#51935)
aojunhao123 Dec 8, 2024
49940c2
Merge pull request #51897 from ant-design/fix/duplicate-style-tags
YumoImer Dec 9, 2024
6b98f84
feat(Button): support color from Antd's colors (#51550)
OysterD3 Dec 9, 2024
1b1ffb9
feat(segmented): add missing focus style for a11y (#51934)
aojunhao123 Dec 9, 2024
c2efea0
docs: add changelog 5.22.4 (#51956)
xrkffgg Dec 9, 2024
91878f8
refactor: update ref logic (#51952)
zombieJ Dec 10, 2024
9b4400b
chore: upgrade deps (#51959)
github-actions[bot] Dec 10, 2024
846dc9b
fix: Pagination select props order (#51962)
zombieJ Dec 11, 2024
9ffd78a
chore: auto merge branches (#51973)
github-actions[bot] Dec 11, 2024
808bd83
feat(i18n): expand Korean translations in ko_KR.ts (#51983)
DevLeti Dec 11, 2024
093380d
chore: upgrade deps (#51987)
github-actions[bot] Dec 11, 2024
020176f
♻️ chore: format code (use `npm run format`) (#51978)
Wxh16144 Dec 12, 2024
b50a78c
fix: Form setFieldValue not reset validation (#51993)
zombieJ Dec 12, 2024
2d0bf54
chore: upgrade deps (#51996)
github-actions[bot] Dec 13, 2024
245f53b
docs: Improve description of table column render (#52010)
showier-drastic Dec 14, 2024
05b9c25
docs: fix description of render in last commit (#52012)
showier-drastic Dec 14, 2024
9618e9e
chore: merge master into feature
li-jia-nan Dec 14, 2024
cd346d9
chore: auto merge branches (#52014)
github-actions[bot] Dec 14, 2024
115a416
docs: fix website sider border missing (#51925)
afc163 Dec 14, 2024
88bf8bc
chore: rm useless template strings (#51943)
li-jia-nan Dec 14, 2024
48f85d6
ci: fix formatting (#51971)
Wxh16144 Dec 14, 2024
615723a
fix(select): prevent label overflow (#52011)
OysterD3 Dec 14, 2024
17d741c
fix: Apply max width to confirm modal so that children's width will n…
quan060798 Dec 14, 2024
034aa49
type: export CheckboxChangeEvent from 'antd' (#52008)
SpecLad Dec 14, 2024
5c582fc
chore(Button): str type (#51521)
OweQian Dec 14, 2024
fbb11f0
fix(dropdown): support ReactNode type value (#50174)
coding-ice Dec 14, 2024
a9fa9df
chore: rm useless token.calc (#52015)
li-jia-nan Dec 14, 2024
c30a255
chore(deps): bump softprops/action-gh-release from 2.1.0 to 2.2.0 (#5…
dependabot[bot] Dec 14, 2024
397f45e
docs(✨): release 5.22.5 (#52016)
afc163 Dec 14, 2024
5da9dde
ci: auto unassign (#52013)
aojunhao123 Dec 14, 2024
d468a45
chore(deps): update dependency is-ci to v4 (#52019)
renovate[bot] Dec 15, 2024
93ec292
chore(import): ensure code convention compliance by importing React (…
Sunjae95 Dec 15, 2024
cbec703
ci: change auto-unassign to inactivity reminder (#52023)
aojunhao123 Dec 15, 2024
7db7d52
fix(button): ensure solid default button text remains visible on hove…
DDDDD12138 Dec 17, 2024
ee2e137
chore(deps): bump actions/github-script from 6 to 7 (#52029)
dependabot[bot] Dec 17, 2024
45eeee6
feat: Add unstable api for React 19 compitable (#51979)
zombieJ Dec 18, 2024
4a35418
chore: adjust img diff ci
zombieJ Dec 19, 2024
4fcf3da
fix: demos suspence block (#52051)
Jinbao1001 Dec 19, 2024
bc28f57
chore: Improve visual regression screenshot warning (#52053)
Wxh16144 Dec 19, 2024
d20a074
chore: auto merge branches (#52047)
github-actions[bot] Dec 19, 2024
890a86b
fix: Button with loading motion (#52059)
zombieJ Dec 19, 2024
518c57d
feat(tabs): add focus style for keyboard operation (#52002)
aojunhao123 Dec 19, 2024
fadd4ec
chore: upgrade deps (#52066)
github-actions[bot] Dec 19, 2024
d56dbd9
fix: The splitter collapsible icon is obscured (#52065)
wanpan11 Dec 20, 2024
5645194
demo: tweak Button demos gap (#52071)
afc163 Dec 20, 2024
f96dacd
feat: Calendar support showWeek prop (#52072)
afc163 Dec 20, 2024
3ff6bfd
chore(deps): update dependency jest-puppeteer to v11 (#52084)
renovate[bot] Dec 22, 2024
55b5aa6
docs: Slight wording fix to match correct HN name ("Hacker News") (#5…
et0and Dec 23, 2024
02792b8
feat: update input.search type (#52077) (#52083)
Kaikiat1126 Dec 23, 2024
dfc20ac
feat: add default name generation for RadioGroup component better a11…
aojunhao123 Dec 23, 2024
103c2bd
docs: improve demo card suspense fallback style (#52096)
afc163 Dec 23, 2024
bc17268
feat(segmented): enhance name prop behavior and adjust focus style (#…
aojunhao123 Dec 23, 2024
6a0eda0
fix(Button): align buttons with and without icons consistently (#52070)
afc163 Dec 23, 2024
fb65341
docs: add 5.22.6 changlog (#52087)
chenshuai2144 Dec 23, 2024
e034a33
chore: merge master to feature
afc163 Dec 23, 2024
a4f0ea3
chore: auto merge branches (#52103)
github-actions[bot] Dec 23, 2024
3d5443b
fix(collapse): enhance focus styles and border radius for collapse it…
aojunhao123 Dec 23, 2024
a80e252
refactor(Watermark): change useState to useRef (#52089)
bubucuo Dec 23, 2024
d810450
feat(DatePicker): upgrade rc-picker to 4.9.0 to require OK confirmati…
Zyf665 Dec 24, 2024
1114fb2
fix: reactRender is not a function in React 19 (#52105)
afc163 Dec 24, 2024
ce87c61
feat: ConfigProvider support tooltip (#51872)
thinkasany Dec 24, 2024
295a4c7
chore(deps): update dependency typedoc to ^0.27.0 (#51845)
renovate[bot] Dec 24, 2024
7b04758
chore(deps): update dependency tsx to v4.19.2 (#52108)
renovate[bot] Dec 24, 2024
4985db9
chore(deps): update dependency eslint-plugin-react-hooks to v5.2.0 (#…
renovate[bot] Dec 24, 2024
ff52bbc
chore(deps): update dependency chalk to v5 (#52109)
renovate[bot] Dec 24, 2024
f8115d3
docs: Update for React 19 compatible info (#52111)
zombieJ Dec 24, 2024
1bb7229
chore: merge master into feature
li-jia-nan Dec 25, 2024
42f9789
feat: ConfigProvider support popover (#52110)
thinkasany Dec 25, 2024
6c5289a
chore: auto merge branches (#52118)
github-actions[bot] Dec 25, 2024
ca1ab9b
feat: TreeSelect support maxCount (#51759)
aojunhao123 Dec 25, 2024
8b15b0f
feat: ConfigProvider support popconfirm (#52126)
thinkasany Dec 25, 2024
e3e8ce7
chore: workflow update with next branch
zombieJ Dec 25, 2024
ad07285
chore: CI support next branch with v6 (#52128)
zombieJ Dec 25, 2024
28796e4
chore: fix eslint warning for react 19 (#52133)
afc163 Dec 25, 2024
21a47ae
chore(deps): update rc-checkbox to version 3.5.0 (#52136)
aojunhao123 Dec 25, 2024
4cfde37
refactor(menu): replace component interface with type (#51715)
msyavuz Dec 26, 2024
a47eb17
docs: fix suspense fallback trigger by RiddleButton (#52138)
afc163 Dec 26, 2024
cfa0b19
docs: fix spelling of modal (#52140)
deletenothing Dec 26, 2024
fd31d30
fix: Button icon align issue again (#52132)
afc163 Dec 26, 2024
6b20275
feat:transfer开启showSearch漏出input相关配置 (#52125)
EmilyyyLiu Dec 26, 2024
370ccc7
fix: resolved merge conflicts
thinkasany Dec 27, 2024
677622b
test: update snap for Input.search type
thinkasany Dec 27, 2024
1d267d9
docs: changelog 5.22.7 (#52149)
MadCcc Dec 27, 2024
e5f0452
chore: auto merge branches (#52146)
github-actions[bot] Dec 27, 2024
03e3a41
type: export Calendar CalendarMode type, update docs (#52160)
Kaikiat1126 Dec 30, 2024
39d9c1c
chore: replace TinyColor with FastColor across the codebase (#52157)
aojunhao123 Dec 30, 2024
70d01a1
chore: bump rc-tree-select (#52164)
afc163 Dec 30, 2024
513f227
demo: disable auto adjust placement in DatePicker design panel (#52113)
afc163 Dec 30, 2024
993d514
fix: warning of check of rspack (#52168)
zombieJ Dec 30, 2024
9370268
docs: update Semantic Dom level for Input (#52174)
thinkasany Dec 30, 2024
976d21d
fix: reset style when use custom Element (#52170)
li-jia-nan Dec 30, 2024
ca7bd27
chore: auto merge branches (#52177)
github-actions[bot] Dec 30, 2024
e6e13fa
chore: bump rc-table (#52176)
afc163 Dec 30, 2024
c1b7604
chore: TypeScript optimization (#52143)
li-jia-nan Dec 30, 2024
b5af1f5
Merge branch master into master-merge-feature
li-jia-nan Dec 31, 2024
650d2da
chore: auto merge branches (#52181)
github-actions[bot] Dec 31, 2024
ab3b6ab
feat: Menu add token `subMenuItemSelectedColor` (#52182)
afc163 Dec 31, 2024
393aab9
fix(slider): tipFormatter should not crash with undefined value (#52184)
thinkasany Dec 31, 2024
af4e774
chore(deps): bump deps (#52180)
li-jia-nan Dec 31, 2024
3c1f56c
chore: replace @ctrl/tinycolor with @ant-design/fast-color (#52190)
aojunhao123 Dec 31, 2024
8164b9e
chore: upgrade deps (#52197)
github-actions[bot] Dec 31, 2024
2a21f7b
feat:[Tree] selected background color is gray when the node is disabl…
EmilyyyLiu Jan 2, 2025
0745996
feat: ConfigProvider support `classNames` and `styles` for Descriptio…
thinkasany Jan 2, 2025
aa1b6a9
feat: ConfigProvider support classNames and styles for slider (#52185)
thinkasany Jan 2, 2025
bb38ef5
type: up React.MutableRefObject to React.Ref (#52205)
li-jia-nan Jan 2, 2025
0175ea0
docs(form): add form label related FAQ (#52153)
Wxh16144 Jan 2, 2025
b202873
refactor: rewrite TreeNode CC => FC (#52209)
li-jia-nan Jan 2, 2025
bc03cca
chore: lock react-intl@7.0.4 (#52218)
thinkasany Jan 3, 2025
34d8bfb
fix: conflict
thinkasany Jan 3, 2025
5163516
test: update snap
thinkasany Jan 3, 2025
32bc7fd
chore: auto merge branches (#52219)
github-actions[bot] Jan 3, 2025
9fcce8f
feat: ConfigProvider support classNames and styles for Empty (#52208)
thinkasany Jan 3, 2025
bcc802d
docs: improve semantic list for Card (#52221)
thinkasany Jan 3, 2025
6139162
test: fix test case (#52224)
zombieJ Jan 3, 2025
e9fb0bd
chore: auto merge branches (#52223)
github-actions[bot] Jan 3, 2025
0386b9b
chore: code optimization (#52228)
li-jia-nan Jan 3, 2025
ae6a034
fix(Menu): extra fontSize and vertical align (#52217)
guoyunhe Jan 3, 2025
46a8eff
fix: resolve the style not taking effect error (#52210)
Wxh16144 Jan 3, 2025
46eca8d
chore: bump rc-virtual-list (#52238)
yoyo837 Jan 4, 2025
968820a
type: update any type to Record (#52240)
li-jia-nan Jan 5, 2025
b7295d7
docs: use styles.body replace bodyStyle (#52245)
thinkasany Jan 6, 2025
8dc2636
fix: use styles replace labelStyle/contentStyle for Description (#52251)
thinkasany Jan 6, 2025
645554b
docs: changelog of 5.23.0 (#52256)
zombieJ Jan 6, 2025
475258f
chore: opt check npm versions
zombieJ Jan 6, 2025
eede859
chore: fix website deploy action (#52260)
Wxh16144 Jan 6, 2025
ea105fc
chore: add local visual regression testing (#52236)
Wxh16144 Jan 7, 2025
8b99ad6
docs: repair img display for change doc (#52273)
thinkasany Jan 7, 2025
8408880
fix(Splitter): try recover history size when collapsed (#52222)
jjlstruggle Jan 7, 2025
9974e8c
docs: Replace open in tab code (#52277)
jin19980928 Jan 7, 2025
3ee1fec
chore: upgrade [rc-tree] to [~5.13.0],upgrade [rc-cascader] to [~3.33…
EmilyyyLiu Jan 7, 2025
6696500
chore: upgrade deps (#52287)
github-actions[bot] Jan 8, 2025
280d788
chore: bump lint-staged from 15.2.10 to 15.3.0 (#52294)
thinkasany Jan 8, 2025
00eb0e3
chore: move trace to async (#52300)
zombieJ Jan 8, 2025
7d38057
chore: fix CP not working on single Layout.Sider (#52302)
zombieJ Jan 8, 2025
ba415fc
fix: Button color boxShadow missing (#52304)
zombieJ Jan 8, 2025
94f57ee
docs: correct screen width => window width (#52306)
xiehuiqi220 Jan 8, 2025
4d96645
docs(button): update Flex gap from 'middle' to 'small' in color-varia…
coding-ice Jan 8, 2025
92d8088
chore: upgrade deps (#52316)
github-actions[bot] Jan 8, 2025
c27582e
chore(deps): update dependency nwsapi to v2.2.16 (#51844)
renovate[bot] Jan 9, 2025
72bed18
ci: bump jsdom (#52332)
zombieJ Jan 9, 2025
b3ff807
fix: typos (#52339)
thinkasany Jan 10, 2025
5216ad8
fix: when tree data table work with pagination and checkStrictly fals…
LeeSSHH Jan 10, 2025
e8cf2ac
fix: DatePicker prev/next buttons should be hidden when value is null…
afc163 Jan 10, 2025
95cbb41
chore(deps-dev): bump puppeteer in the dev-dependencies group (#52350)
dependabot[bot] Jan 10, 2025
88687bb
docs: typo (#52357)
wanpan11 Jan 10, 2025
bd0d445
style: tweak icon-only button font-size to align icon and text (#52353)
afc163 Jan 12, 2025
fb8e932
docs: update year (#52362)
li-jia-nan Jan 12, 2025
da61fb8
site: add react-scan (#52355)
afc163 Jan 12, 2025
374bf8f
site: update site script to React 19 (#52363)
li-jia-nan Jan 12, 2025
666d019
chore: upgrade deps (#52375)
github-actions[bot] Jan 13, 2025
a771c25
fix(layout/collapse): icon direction in rtl mode (#52374)
aojunhao123 Jan 13, 2025
6fbe989
test: update snapshot (#52377)
zombieJ Jan 13, 2025
4219a51
Feat:CodeBlockJs-v1.0.1 (#52330)
jin19980928 Jan 13, 2025
90f6af0
site: changedoc support commit url (#52380)
thinkasany Jan 13, 2025
7b8f3f0
chore: improve changedoc (#52383)
thinkasany Jan 13, 2025
50254b1
docs: changelog for 5.23.1 (#52384)
PeachScript Jan 13, 2025
1ccda5f
chore(deps-dev): bump react-highlight-words from 0.20.0 to 0.21.0 (#5…
dependabot[bot] Jan 13, 2025
8734fdf
docs: resolve missing component tokens (#52406)
coding-ice Jan 15, 2025
35f8f89
fix(menu): disabled MenuItem with link should prevent click and show …
aojunhao123 Jan 15, 2025
af63c66
site: change doc support display contributor (#52409)
thinkasany Jan 15, 2025
1138f29
docs(Layout): use sticky instead of fixed (#52411)
guoyunhe Jan 15, 2025
65328c3
docs: improve placement description (#52425)
thinkasany Jan 16, 2025
5199b5c
chore: update contributors.json (#52426)
thinkasany Jan 16, 2025
377cc21
fix: fix input clear icon padding (#52407)
ustcfury Jan 16, 2025
e707210
fix: last child should not appear margin (#52433)
li-jia-nan Jan 16, 2025
357dd53
chore(workflow): avoid duplicate reminders for inactive issues (#52446)
aojunhao123 Jan 17, 2025
88d81e5
fix(descriptions): correct calculation of last item's span in useRow …
anyuxuan Jan 17, 2025
39a9cd8
fix: collapse first row of virtual table, scrollTop should be 0 (#52447)
LeeSSHH Jan 17, 2025
3809585
demo: update Radio demo (#52422)
li-jia-nan Jan 17, 2025
25e14fd
chore: upgrade deps (#52464)
github-actions[bot] Jan 17, 2025
2840158
docs: update disabled explain (#52467)
li-jia-nan Jan 18, 2025
3639d94
docs: fix color (#52459)
Wxh16144 Jan 18, 2025
60613ba
refactor: try to reduce the bundle size (#52475)
li-jia-nan Jan 19, 2025
00fdcf8
docs: add React Gesture (#52486)
li-jia-nan Jan 20, 2025
57bcc68
type: replace any type with React.ComponentType (#52480)
li-jia-nan Jan 20, 2025
0106647
fix: Layout zero width trigger missing style (#52477)
afc163 Jan 20, 2025
3ea2b8c
site: fix react duplicated key in DumiDemoGrid (#52488)
afc163 Jan 20, 2025
bc21d43
docs: imporove contributors fallback style (#52491)
afc163 Jan 20, 2025
5f9bbb8
chore: Update README.md (#52493)
afc163 Jan 20, 2025
f50a8e6
chore: remove warning of cssinjs in Space.Compact (#52489)
afc163 Jan 20, 2025
0d51109
fix(input): border-radius issue with `addonAfter` in compact mode (#5…
DDDDD12138 Jan 20, 2025
b2beee5
docs: fix demo suspense (#52495)
afc163 Jan 20, 2025
9a21923
docs(tour): update prop types for target and placement in documentati…
coding-ice Jan 20, 2025
89bac66
docs: add changelog 5.23.2 (#52497)
xrkffgg Jan 20, 2025
1d9358f
docs: update v5-for-19.en-US.md (#52503)
davidtakeiteasy Jan 20, 2025
8ed7e50
fix: notification blinks when it appears under App (#52499)
afc163 Jan 21, 2025
d8b8659
docs: update v5-patch-for-react-19 install (#52504)
li-jia-nan Jan 21, 2025
b0308b6
chore(deps-dev): bump react-scan from 0.0.54 to 0.1.0 (#52500)
dependabot[bot] Jan 21, 2025
3284536
fix: default cssvarkey only picked when component themeconfig && pare…
zhuzhuaicoding Jan 21, 2025
7c563bd
docs: improve root translation for semantic (#52509)
thinkasany Jan 21, 2025
f19c385
refactor(theme): move default theme into separate file (#49419)
guoyunhe Jan 21, 2025
f615424
fix: fix loading.icon error when loading === null (#52508)
li-jia-nan Jan 21, 2025
fd31ca3
Revert "fix: default cssvarkey only picked when component themeconfig…
afc163 Jan 21, 2025
3dad73f
fix: make closeIcon in useNotification work (#52494) (#52516)
typenoob Jan 21, 2025
287d042
fix(splitter): correct collapse behavior in RTL mode (#52501)
aojunhao123 Jan 21, 2025
9f66652
chore: rename constants to uppercase (#52523)
thinkasany Jan 21, 2025
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
183 changes: 12 additions & 171 deletions .antd-tools.config.js
Original file line number Diff line number Diff line change
@@ -1,195 +1,36 @@
const fs = require('fs');
const path = require('path');
const defaultVars = require('./scripts/default-vars');
const darkVars = require('./scripts/dark-vars');
const compactVars = require('./scripts/compact-vars');

function generateThemeFileContent(theme) {
return `const { ${theme}ThemeSingle } = require('./theme');\nconst defaultTheme = require('./default-theme');\n
module.exports = {
...defaultTheme,
...${theme}ThemeSingle
}`;
}
const restCssPath = path.join(process.cwd(), 'components', 'style', 'reset.css');
const tokenStatisticPath = path.join(process.cwd(), 'components', 'version', 'token.json');
const tokenMetaPath = path.join(process.cwd(), 'components', 'version', 'token-meta.json');

// We need compile additional content for antd user
function finalizeCompile() {
if (fs.existsSync(path.join(__dirname, './lib'))) {
// Build a entry less file to dist/antd.less
const componentsPath = path.join(process.cwd(), 'components');
let componentsLessContent = '';
// Build components in one file: lib/style/components.less
fs.readdir(componentsPath, (err, files) => {
files.forEach(file => {
if (fs.existsSync(path.join(componentsPath, file, 'style', 'index.less'))) {
componentsLessContent += `@import "../${path.posix.join(
file,
'style',
'index-pure.less',
)}";\n`;
}
});
fs.writeFileSync(
path.join(process.cwd(), 'lib', 'style', 'components.less'),
componentsLessContent,
);
});
if (fs.existsSync(path.join(__dirname, './es'))) {
fs.copyFileSync(restCssPath, path.join(process.cwd(), 'es', 'style', 'reset.css'));
fs.copyFileSync(tokenStatisticPath, path.join(process.cwd(), 'es', 'version', 'token.json'));
fs.copyFileSync(tokenMetaPath, path.join(process.cwd(), 'es', 'version', 'token-meta.json'));
}
}

function buildThemeFile(theme, vars) {
// Build less entry file: dist/antd.${theme}.less
if (theme !== 'default') {
fs.writeFileSync(
path.join(process.cwd(), 'dist', `antd.${theme}.less`),
`@import "../lib/style/${theme}.less";\n@import "../lib/style/components.less";`,
);
// eslint-disable-next-line no-console
console.log(`Built a entry less file to dist/antd.${theme}.less`);
} else {
fs.writeFileSync(
path.join(process.cwd(), 'dist', `default-theme.js`),
`module.exports = ${JSON.stringify(vars, null, 2)};\n`,
);
return;
if (fs.existsSync(path.join(__dirname, './lib'))) {
fs.copyFileSync(restCssPath, path.join(process.cwd(), 'lib', 'style', 'reset.css'));
fs.copyFileSync(tokenStatisticPath, path.join(process.cwd(), 'lib', 'version', 'token.json'));
fs.copyFileSync(tokenMetaPath, path.join(process.cwd(), 'lib', 'version', 'token-meta.json'));
}

// Build ${theme}.js: dist/${theme}-theme.js, for less-loader

fs.writeFileSync(
path.join(process.cwd(), 'dist', `theme.js`),
`const ${theme}ThemeSingle = ${JSON.stringify(vars, null, 2)};\n`,
{
flag: 'a',
},
);

fs.writeFileSync(
path.join(process.cwd(), 'dist', `${theme}-theme.js`),
generateThemeFileContent(theme),
);

// eslint-disable-next-line no-console
console.log(`Built a ${theme} theme js file to dist/${theme}-theme.js`);
}

function finalizeDist() {
if (fs.existsSync(path.join(__dirname, './dist'))) {
// Build less entry file: dist/antd.less
fs.writeFileSync(
path.join(process.cwd(), 'dist', 'antd.less'),
'@import "../lib/style/default.less";\n@import "../lib/style/components.less";',
);
// eslint-disable-next-line no-console
fs.writeFileSync(
path.join(process.cwd(), 'dist', 'theme.js'),
`const defaultTheme = require('./default-theme.js');\n`,
);
// eslint-disable-next-line no-console
console.log('Built a entry less file to dist/antd.less');
buildThemeFile('default', defaultVars);
buildThemeFile('dark', darkVars);
buildThemeFile('compact', compactVars);
buildThemeFile('variable', {});
fs.writeFileSync(
path.join(process.cwd(), 'dist', `theme.js`),
`
function getThemeVariables(options = {}) {
let themeVar = {
'hack': \`true;@import "\${require.resolve('antd/lib/style/color/colorPalette.less')}";\`,
...defaultTheme
};
if(options.dark) {
themeVar = {
...themeVar,
...darkThemeSingle
}
}
if(options.compact){
themeVar = {
...themeVar,
...compactThemeSingle
}
fs.copyFileSync(restCssPath, path.join(process.cwd(), 'dist', 'reset.css'));
}
return themeVar;
}

module.exports = {
darkThemeSingle,
compactThemeSingle,
getThemeVariables
}`,
{
flag: 'a',
},
);
}
}

function isComponentStyleEntry(file) {
return file.path.match(/style(\/|\\)index\.tsx/);
}

function needTransformStyle(content) {
return content.includes('../../style/index.less') || content.includes('./index.less');
}

module.exports = {
compile: {
includeLessFile: [/(\/|\\)components(\/|\\)style(\/|\\)default.less$/],
transformTSFile(file) {
if (isComponentStyleEntry(file)) {
let content = file.contents.toString();

if (needTransformStyle(content)) {
const cloneFile = file.clone();

// Origin
content = content.replace('../../style/index.less', '../../style/default.less');
cloneFile.contents = Buffer.from(content);

return cloneFile;
}
}
},
transformFile(file) {
if (isComponentStyleEntry(file)) {
const indexLessFilePath = file.path.replace('index.tsx', 'index.less');

if (fs.existsSync(indexLessFilePath)) {
// We put origin `index.less` file to `index-pure.less`
const pureFile = file.clone();
pureFile.contents = Buffer.from(fs.readFileSync(indexLessFilePath, 'utf8'));
pureFile.path = pureFile.path.replace('index.tsx', 'index-pure.less');

// Rewrite `index.less` file with `root-entry-name`
const indexLessFile = file.clone();
indexLessFile.contents = Buffer.from(
[
// Inject variable
'@root-entry-name: default;',
// Point to origin file
"@import './index-pure.less';",
].join('\n\n'),
);
indexLessFile.path = indexLessFile.path.replace('index.tsx', 'index.less');

return [indexLessFile, pureFile];
}
}

return [];
},
lessConfig: {
modifyVars: {
'root-entry-name': 'default',
},
},
finalize: finalizeCompile,
},
dist: {
finalize: finalizeDist,
},
generateThemeFileContent,
bail: true,
};
4 changes: 0 additions & 4 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
Loading
Loading