558 Commits

Author SHA1 Message Date
lijianan
1a789f1e5b refactor(cssinjs): simplify transition style generation (#56826)
* chore: code optimization

* update
2026-02-04 14:54:08 +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
github-actions[bot]
2ff9d89b15 chore: auto merge branches (#56408)
chore: sync master into feature
2025-12-29 12:53:43 +00:00
遇见同学
ec0bdd2984 type: improve type (#56401) 2025-12-28 20:14:57 +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
lijianan
c3f41c19ba refactor(types): replace Record with explicit object for better DX (#56298) 2025-12-22 10:47:06 +08:00
Wanpan
683033afde fix: notification wrong background color when cssVar is false (#56169) 2025-12-12 11:14:24 +08:00
afc163
b2f0595c6f type: make title property optional in notification (#56027)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-03 16:01:56 +08: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
遇见同学
03acb88826 docs: update semantic structure types in component documentation (#55795) 2025-11-21 17:29:29 +08:00
lijianan
f3a03f2372 fix: add missing dependency (#55782)
* chore: up size-limit

* chore: up size-limit

* update deps
2025-11-21 11:12:02 +08:00
lijianan
ae462125cf Merge branch feature into next-merge-feature 2025-11-21 03:05:35 +08:00
Yueming Gao
b4168a0f29 fix(notification): prevent colorful background when CSS variables are disabled (#55785)
* fix(notification): prevent colorful background when CSS variables are disabled

This fix conditionally applies type-specific background colors (success, error, info, warning) only when the color values exist. This prevents the notification component from showing unexpected colorful backgrounds when CSS variables are disabled (cssVar: false).

Fixes #55765

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor(notification): use reduce pattern for type-specific backgrounds

Refactor the conditional background color application to use Object.entries
and reduce pattern, making the code more maintainable and DRY. This approach
makes it easier to add new notification types in the future.

Co-authored-by: gemini-code-assist[bot] <gemini-code-assist[bot]@users.noreply.github.com>

* Refactor notification styles for background colors

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: gemini-code-assist[bot] <gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2025-11-21 02:09:49 +08:00
Guo Yunhe
a92a3fb5b8 feat(InputNumber): spinner mode (#55592)
* feat(InputNumber): spinner mode

* feat(InputNumber): spinner mode

* docs: re-order

* docs: semantic support action

* chore: adjust focus util

* chore: update

* test: update snapshot

* chore: fix style

* docs: style

* chore: fix style

* feat: warning style

* chore: fix demo

* chore: clean up

* test: fix test case

* chore: fix test ts

* test: all

* test: update snapshot

* chore: coverage

* chore: adjust style

---------

Co-authored-by: 遇见同学 <1875694521@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-11-17 11:42:34 +08:00
遇见同学
4df740e22e fix(textarea): resize is invalid in styles.textarea (#55579)
* fix(textarea): resize is invalid in styles.textarea

* chore: bump @rc-component/input@1.1.0

* chore: bump @rc-component/input-number@1.4.1

* update snap

* chore: bump @rc-component/input-number@1.5.0

* fix(textarea): resize is invalid in styles.textarea

* chore: bump @rc-component/input@1.1.0

* chore: bump @rc-component/input-number@1.4.1

* update snap

* chore: bump @rc-component/input-number@1.5.0

* chore: bump @rc-component/mentions@1.4.0
2025-11-04 11:53:38 +08:00
Wanpan
89154110dd fix: Optimize the definition of the duration type (#55580) 2025-11-03 19:11:45 +08:00
lijianan
6fc67a0fdd Merge branch feature into next-merge-feature 2025-10-31 16:18:08 +08:00
lijianan
ec658c9842 test: simplify test case (#55537)
* test: simplify test case

* update

* update

* update
2025-10-31 11:42:54 +08:00
lijianan
6cc19c10fc chore: merge feature into next 2025-10-26 18:20:12 +08:00
github-actions[bot]
8a81accfaf chore: auto merge branches (#55479)
chore: merge master into feature
2025-10-26 09:47:24 +00: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
01c0321b17 chore: remove unstable api for React 19 compitable (#55274)
* chore: remove unstable api for React 19 compitable

* update

* update

* update

* update antd-token-previewer

* update

* update

---------

Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-10-13 23:14:52 +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
03ce2b26aa refactor(type): use SemanticClassNamesType & SemanticStylesType (#55240) 2025-10-08 10:40:12 +08:00
thinkasany
e0b59e166f chore: turn on perfectionist/sort-named-imports (#55215)
* chore: turn on perfectionist/sort-named-imports

* turn on perfectionist/sort-named-exports
2025-10-01 21:19: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
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
遇见同学
4afd480fba feat(color-picker): Support better customization with semantic classNames/styles as function (#54962)
* feat(color-picker): Support better customization with semantic classNames/styles as function

* update demo

* update demo

---------

Co-authored-by: thinkasany <480968828@qq.com>
2025-10-01 00:25:52 +08:00
thinkasany
8a436833a8 refactor: semantic of message and notification (#55199)
* refactor: semantic of message and notification

* fix

* fix

* improve
2025-09-30 22:49:14 +08:00
GinWU
2bb5d83273 feat(notification): Support better customization with semantic classNames/styles as function (#55021)
* feat(notification): add semantic DOM style support

feat(notification): add semantic DOM style support

* fix(notification): update type imports for style class demo

* feat(notification): refactor semantic merging utilities

* feat(notification): add resolved types for semantic styles

* feat(notification): simplify style and classNames merging

* test(notification): add semantic styles and classNames tests

* feat(notification): enhance style and classNames merging

* test(notification): update semantic styles test cases

* test(notification): update color format in semantic tests

* test(notification): update types in semantic tests

* test(notification): optimize async test cases

* fix(util): update useMemo dependencies in semantic hooks

* revert: reset notification implementation to next branch

* feat(notification): add semantic styles and classNames types

* feat(notification): enhance semantic styles and classNames types

* fix(notification): update props merging in styles and classNames

* fix(notification): correct style prop merging and typo

* fix(notification): enhance style and classNames resolution

* fix(notification): rename resolved to merged in styles and classNames

* fix(notification): improve classNames and styles merging order

* fix(notification): enhance PurePanel types and props merging

* test(notification): add style-class demo snapshots

* feat(notification): Support better customization with semantic classNames/styles

* Update components/notification/demo/style-class.md

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

* Update components/notification/demo/style-class.md

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

* refactor(notification): optimize import statements for useMergeSemantic

* refactor(notification): update PurePanel types and props

* refactor(notification): simplify style-class demo with antd-style

* test(notification): update style-class demo snapshots

* Update components/notification/demo/style-class.md

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

* Update components/notification/demo/style-class.md

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

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

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

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

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

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

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

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

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

* Update components/notification/demo/style-class.md

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

* Update components/notification/demo/style-class.md

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

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

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

* test(notification): Update import type for NotificationArgsProps

* chore: adjust code style

---------

Signed-off-by: 遇见同学 <1875694521@qq.com>
Signed-off-by: thinkasany <480968828@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-30 15:44:07 +08:00
thinkasany
588f4a3518 chore: sync feature into next 2025-09-28 13:30:33 +08:00
thinkasany
b16183b209 Merge remote-tracking branch 'origin/master' into feature-merge-master 2025-09-28 12:15:04 +08:00
thinkasany
8a7e15460c chore: turn on ts/method-signature-style (#55167) 2025-09-28 10:15:00 +08:00
thinkasany
60ac885f53 chore(biome): lint fix 2025-09-25 20:52:22 +08:00
thinkasany
48c5ed40f2 feat: add component token support for notification background colors (#54802)
Co-authored-by: afc163 <afc163@gmail.com>
fix: notification wrong bg (#54800)
2025-08-29 14:14:16 +08:00
afc163
74475eafe3 fix: notification wrong bg (#54800) 2025-08-29 11:20:17 +08:00
afc163
178d43a25f feat: add component token support for notification background colors (#54776) 2025-08-28 23:04:19 +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
EmilyyyLiu
c3233625b3 fix: Low coverage caused by closable (#54657)
* fix: Low coverage caused by closable

* fix: notification coverage

* Update components/notification/__tests__/index.test.tsx

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

* fix: null

* fix: PurePanel closable

---------

Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: thinkasany <480968828@qq.com>
2025-08-12 14:38:12 +08:00
EmilyyyLiu
ff3cc3b269 feat[Notification]: Add onClose into closable (#54645)
* feat: Add onClose into closable

* docs: update site snap

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>

* fix: Exclude disable from Closable

* feat: Adjust code style

* refactor: mergedClosable

---------

Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-11 17:52:05 +08:00
thinkasany
f1afc710c3 test: Adapting to jest v30 2025-08-07 12:01:07 +08:00
thinkasany
a0bfadec78 chore: sync feature into next 2025-08-07 10:28:26 +08:00
thinkasany
e1ccde5478 refactor: semantic of notification (#54595)
* refactor: semantic of notification

* fix
2025-08-05 14:06:53 +08:00
afc163
46c9c93773 test: upgrade jest to v30 (#54576) 2025-08-05 00:13:52 +08:00
github-actions[bot]
20e9718c0a chore: auto merge branches (#54524)
chore: merge feature into next
2025-07-29 17:58:36 +00:00
lijianan
3d6eaabc26 chore: fix ci biome lint error (#54521) 2025-07-30 00:19:02 +08:00