469 Commits

Author SHA1 Message Date
thinkasany
ee4220b676 chore: sync master into feature 2026-02-04 20:45:32 +08:00
lijianan
1a789f1e5b refactor(cssinjs): simplify transition style generation (#56826)
* chore: code optimization

* update
2026-02-04 14:54:08 +08:00
叶枫
7b323c5254 type: improve Alert semantic type (#56758)
* feat: introduce SemanticTypeV2 for improved type handling in Alert component

* feat: add SemanticResultTypeV2 for improved semantic handling in Alert component

* refactor(Alert): remove SemanticResultTypeV2 and simplify AlertResultType

* feat: test

* refactor: replace SemanticTypeV2 with SemanticType in Alert component
2026-01-30 18:58:01 +08:00
高艳兵
c5e5ac7c3f feat: add semantic snap (#56600)
* feat: add semantic.md generation plugin for components

* refactor: extract locales from SelectSemanticTemplate to component props

* fix: remove unuse locales

* feat: multipleProps add defaultValue

* feat: update select snap

* feat: update table snap

* feat: tour add snap

* feat: delete semantic-md plugin

* feat: add sematic snap

* refactor: replace hardcoded button clicks with configurable postRenderFn in semantic demo test

* revert: locales

* fix: maxTagCount responsive

* fix: test  maxTagCount set 1

* feat: add test:semantic script

* fix: ci add collectCoverageFrom

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
2026-01-19 22:10:33 +08:00
遇见同学
3c9bb681e7 docs: improve performance replace createStyles with createStaticStyles (#56605)
* perf: use createStaticStyles

* chore: update snap

* chore: adjust

* chore: snap
2026-01-14 17:58:47 +08:00
lijianan
364bcc74d1 type: export components SemanticName type (#56494)
* types: export components SemanticName type

* update

* update

* update

* update

* update
2026-01-08 09:25:17 +08:00
lijianan
5c52fea0bf refactor(types): derive SemanticName from semantic maps (#56389)
* refactor(types): derive SemanticName from semantic maps

* update type
2025-12-27 18:12:44 +08:00
Guo Yunhe
81e7f3fe98 feat(Alert, ConfigProvider): support global icon config (#56241)
* feat(Alert, ConfigProvider): support global icon config

* test(Form): update snapshots

* refactor(Alert): simplify icon rendering logic in IconNode component

* refactor(Alert): streamline icon rendering in IconNode component

* refactor(Alert): remove prefixCls from IconNode component for cleaner rendering

* feat(ConfigProvider): add success, info, warning, and error icon props to Anchor component documentation
2025-12-24 15:03:27 +08:00
lijianan
c3f41c19ba refactor(types): replace Record with explicit object for better DX (#56298) 2025-12-22 10:47:06 +08:00
Guo Yunhe
964e21fc62 feat(ErrorBoundary): export ErrorBoundaryProps type (#55974)w 2025-11-28 17:23:42 +08:00
github-actions[bot]
55d6950873 chore: auto merge branches (#55902)
chore: sync master into feature
2025-11-25 15:59:32 +00:00
ice
594524b4af docs: update markdown files to add section IDs for examples and FAQs across multiple components (#55882) 2025-11-25 12:16:35 +08:00
ice
ec44ee3eea docs: update close version in alert and drawer demos to 6.1.0 2025-11-24 13:57:46 +08:00
ice
c4f0f4bd57 Merge pull request #55815 from coding-ice/feat/alert_close 2025-11-24 10:17:25 +08:00
遇见同学
03acb88826 docs: update semantic structure types in component documentation (#55795) 2025-11-21 17:29:29 +08:00
lijianan
37966dbdf0 test: update test case (#55557)
* test: update test case

* Update components/alert/__tests__/semantic.test.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: lijianan <574980606@qq.com>

* update

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-11-01 17:00:26 +08:00
lijianan
2827a68ff8 test: update test case (#55546)
* test: update test

* update

* update

* update

* update

* update
2025-11-01 11:41:14 +08:00
lijianan
6cafebd87c chore: rename file name (#55485)
* TEST

* update

* update
2025-10-27 11:22:11 +08:00
lijianan
3d46fd2088 chore: revert file name (#55483)
* Revert "chore: rename isValidNode to isNonNullable (#55482)"

This reverts commit d99dd02b5b.

* update

* update

* update

* update

* update

* dangerous !!! rename !!!

* revert rename
2025-10-26 22:39:46 +08:00
lijianan
6cc19c10fc chore: merge feature into next 2025-10-26 18:20:12 +08:00
lijianan
41b5dce953 perf: try to reduce bundle size (#55478)
* refactor: reuse useForceUpdate hook

* update

* perf: try to reduce bundle size

* update
2025-10-26 17:18:36 +08:00
lijianan
7d165c5595 demo: update Alert deprecated api (#55472) 2025-10-26 15:51:20 +08:00
lijianan
319905c072 demo: update deprecated api (#55471)
* demo: up deprecated api

* update

* update

* update snap
2025-10-26 13:35:27 +08:00
thinkasany
1d0b0a440c fix: add alert missing memo deps (#55457)
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-10-25 13:25:30 +08:00
lijianan
ca1480c4f9 Merge branch feature into next-merge-feature 2025-10-22 20:15:30 +08:00
lijianan
ec44482a1b chore: unified code style (#55406) 2025-10-22 19:31:22 +08:00
ug
d792286afe docs: Update React documentation links from reactjs.org to react.dev (#55392)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: liuqiang <qiang.liu@xinjifamily.com>
2025-10-21 17:14:21 +08:00
遇见同学
74d2712935 test: improve single test structure (#55383) 2025-10-20 18:48:47 +08:00
lijianan
1670fc36cc demo: add satisfies keyword for demo (#55272)
* demo: add satisfies for demo

* update

* update

* update

* update snap

* update snap
2025-10-12 08:19:59 +08:00
遇见同学
cd170fccfb docs: improve doc description (#55243)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-10-08 23:12:07 +08:00
lijianan
d90b059b7e refactor: improve useMergeSemantic params order (#55103)
* update

* update

---------

Co-authored-by: thinkasany <480968828@qq.com>
2025-10-01 11:09:39 +08:00
thinkasany
92de6339dd chore: Unified variable naming style (#55210) 2025-10-01 10:40:34 +08:00
lijianan
19137493b4 perf: uninstall classnames, install clsx (#55164)
* refactor: uninstall classnames & install clsx

* refactor: uninstall classnames & install clsx

* test: rename test fn

* test: update snap

* update

* update

* update

* update

* update snap

* update

* update

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
2025-10-01 00:45:54 +08:00
ccc1018
38fc1dc4ab feat(alert): Support better customization with semantic classNames/styles (#55060)
* Support better customization with semantic classNames/styles

* Support better customization with semantic classNames/styles

* Support better customization with semantic classNames/styles

* Support better customization with semantic classNames/styles

* Revert "Merge branch 'next' of github.com:ccc1018/ant-design into feature/result"

This reverts commit a64cb1b935, reversing
changes made to 2343dd9463.

* Revert "Support better customization with semantic classNames/styles"

This reverts commit 7d3a4defb4.

* Revert "Support better customization with semantic classNames/styles"

This reverts commit cfe65dda2d.

* Support better customization with semantic classNames/styles

* Update components/alert/Alert.tsx

Signed-off-by: thinkasany <480968828@qq.com>

* Support better customization with semantic classNames/styles

* Support better customization with semantic classNames/styles

* feat(alert): add custom classNames and styles support

* Support better customization with semantic classNames/styles

* fix(alert): remove duplicate code blocks in documentation

- Remove duplicated style-class demo references in both zh-CN and en-US docs
- Keep single reference to style-class demo for clean documentation

* Support better customization with semantic classNames/styles

* Support better customization with semantic classNames/styles

* Delete components/index.ts

Signed-off-by: ccc1018 <82812268+ccc1018@users.noreply.github.com>

* Update components/alert/Alert.tsx

Co-authored-by: thinkasany <480968828@qq.com>
Signed-off-by: ccc1018 <82812268+ccc1018@users.noreply.github.com>

* resolve conflicts Support better customization with semantic classNames/styles

* Fix errors in the file

* Fix modify  in the file

* Update components/alert/index.zh-CN.md

Signed-off-by: 遇见同学 <1875694521@qq.com>

* Update components/alert/index.en-US.md

Signed-off-by: 遇见同学 <1875694521@qq.com>

* Fix modify  in the file

* I accidentally deleted index.ts by mistake

* fix style-class.tsx

* fix ci

* I have fixed the table formatting issue in the English documentation of the Alert component

---------

Signed-off-by: thinkasany <480968828@qq.com>
Signed-off-by: ccc1018 <82812268+ccc1018@users.noreply.github.com>
Signed-off-by: 遇见同学 <1875694521@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-09-30 12:28:55 +08:00
EmilyyyLiu
a02c1d5595 refactor: Upgrade utils and replace useMergedState (#55047)
* refactor: Upgrade utils and replace useMergedState

* Update components/color-picker/components/ColorPresets.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>

* fix: lint error useControlledState not use

* feat: change import util path

* feat: mergedSelectedKeys

* feat: Modify the import path of rc-util

* feat: Restore the 'useControlledState' modification of 'select'

---------

Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-09-25 10:57:09 +08:00
EmilyyyLiu
17919aed0e feat[Alert]: add onClose and afterClose to closable (#54735)
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
2025-08-27 19:06:06 +08:00
thinkasany
4d4b2b953a chore: update snap (#54771) 2025-08-27 17:08:24 +08:00
thinkasany
5b6cc4c987 chore: bump jest to 30.1.0 (#54759)
* chore: bump jest to 30.1.0

* update
2025-08-27 15:39:48 +08:00
二货爱吃白萝卜
f14a31b1c2 docs: Add more semantic desc of the content for llms (#54417)
* chore: add semantic desc

* chore: more desc

* chore: all styles desc

* chore: fix docs

* chore: update desc

* chore: update desc

* chore: update desc
2025-07-21 17:42:07 +08:00
thinkasany
07d90abcab chore: sync feature into next 2025-07-03 11:06:10 +08:00
lijianan
84ce358d10 site: add BehaviorPattern for en page (#54254)
* site: add BehaviorPattern for en page

* site: add BehaviorPattern for en page

* fix: fix
2025-07-02 10:52:54 +08:00
thinkasany
62bca9910e chore: remove SemanticPreview 2025-05-24 09:07:54 +08:00
EmilyyyLiu
47eb1b661e feat(Space): unify orientation attribute usage (#53669)
* feat[Space]:Unified use of orientation attribute

* feat: use useOrientation and change doc, add test

* feat: add warning

* test: update snapshots

* Update components/space/Compact.tsx

Co-authored-by: thinkasany <480968828@qq.com>
Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>

* test: reset snapshots,delete direction default value

* feat: change demo direnction->orentation

* feat: demos direction ->orientation

* feat: add vertical, and change demos , doc

* feat: change demo space -> flex

* feat: change demo space -> flex

* feat: space -> flex

* Update components/space/index.tsx

Signed-off-by: thinkasany <480968828@qq.com>

* Update components/space/Compact.tsx

Signed-off-by: thinkasany <480968828@qq.com>

* add warning toHaveBeenCalledWith

---------

Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>
Signed-off-by: thinkasany <480968828@qq.com>
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: thinkasany <480968828@qq.com>
2025-05-23 15:20:33 +08:00
thinkasany
de030bcfad chore: sync feature into next 2025-04-07 16:49:57 +08:00
afc163
3ef3434052 docs: add anchor for when-to-use section (#53318)
* docs: add anchor for when-to-use section

* Delete scripts/update-docs.js

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: afc163 <afc163@gmail.com>
2025-04-03 10:45:36 +08:00
lijianan
284fce4871 site: add componentName for SemanticPreview (#53362)
* site: add componentName for SemanticPreview

* site: add componentName for SemanticPreview

* chore: fix
2025-04-01 07:50:38 +08:00
栗嘉男
78b90a799d chore: merge feature into next 2025-03-03 03:09:55 +08:00
lijianan
d0d27ad662 demo: Alert icon update (#53016)
* chore(deps-dev): bump typescript from 5.7 to 5.8

* demo: update demo

---------

Signed-off-by: lijianan <574980606@qq.com>
2025-03-02 22:43:43 +08:00
MadCcc
1ac0bcaa60 feat: use cssVar by default (#52671)
* feat: use cssVar by default

* chore: update deps

* chore: update snapshot

* chore: update snapshot

* chore: update snapshot

* chore: test

* chore: update

* chore: update scripts

* chore: UPDATE TEST

* feat: add root

* chore: update snapshot

* chore: fix test case

* chore: fix cycle deps

* feat: rm legacy css variables configuration

* chore: update test case

* chore: update

* chore: fix test

* chore: update overrides

* chore: bump cssinjs

* chore: add test case
2025-02-24 15:35:29 +08:00
lijianan
0c5557d1c2 refactor: [v6] use rc-component/resize-observer (#52578)
* refactor: [v6] use rc-component/resize-observer

* chore: mock of ResizeObserver

* test: update snap

* fix: fix

* chore: update dep

* test: back of snapshot

* fix: fix

* chore: update deps

* chore: update

* chore: update @rc-component/motion

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-02-18 16:01:16 +08:00