166 Commits

Author SHA1 Message Date
ug
3ac1fc78e7 perf(Empty/Skeleton): Reduce the size of the SVG (#56682)
* optimize(Empty): Reduce the size of the SVG.

* update

* update

* update

---------

Co-authored-by: liuqiang <qiang.liu@xinjifamily.com>
Co-authored-by: afc163 <afc163@gmail.com>
2026-01-21 23:59:13 +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
lijianan
6294ce8f7c chore: fix test CI fail (#56162)
* chore: fix test CI fail

* chore: update snap

* chore: update snap

* chore: update snap
2025-12-11 08:46:46 +08:00
lijianan
6fc67a0fdd Merge branch feature into next-merge-feature 2025-10-31 16:18:08 +08:00
lijianan
d33d8cf959 test: simplify style test case again (#55539)
* test: simplify test case

* update

* update

* update

* test: simplify style test case

* update

* update

* update

* update

* test: simplify style test case again

* update

* update

* update color to rgb
2025-10-31 15:19:47 +08:00
lijianan
352f6c6c78 test: simplify style test case (#55538)
* test: simplify test case

* update

* update

* update

* test: simplify style test case

* update

* update

* update

* update
2025-10-31 12:46:16 +08:00
二货爱吃白萝卜
4d25be58f0 refactor: Select like component support semantic structure (#55430)
* chore: basic style

* chore: style of select variant

* chore: multiple

* chore: demo update

* chore: sizing

* chore: sizing

* chore: styles

* chore: clean up

* test: fix test case

* chore: adjust demo

* chore: adjust demo opacity

* chore: clean up

* chore: fix lint

* chore: bump ver

* chore: cascader props

* chore: bump ver

* test: update snapshot

* docs: update demo

* test: fix test case

* test: auto complete test

* test: fix semantic test

* test: fix semantic test

* chore: update test

* docs: update semantic demo

* test: simplify

* chore: clean up

* chore: fix style

* chore: fix style

* chore: fix style

* chore: fix missing

* chore: fix style

* test: update snapshot

* test: update snapshot

* chore: fix compcat style

* chore: bump version

* chore: fix style

* chore: clean up

* test: update snapshot

---------

Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
2025-10-27 14:02:27 +08:00
lijianan
558bc44281 test: unified coding style (#55481) 2025-10-26 19:55:37 +08:00
遇见同学
74d2712935 test: improve single test structure (#55383) 2025-10-20 18:48:47 +08:00
Susuper
5d7c8cc811 feat(empty): Support better customization with semantic classNames/styles as function (#55007)
* feat(empty): add semantic customization support based on next branch

- Add classNames and styles props for semantic customization
- Support four semantic parts: root, image, description, footer
- Use advanced useMergeSemantic hook with type parameters
- Add SemanticClassNamesType and SemanticStylesType utility types
- Implement mergedProps pattern for conditional semantic logic
- Add comprehensive semantic demo with style-class example
- Add ConfigProvider-level test for Empty semantic customization
- Update API documentation in both English and Chinese
- Follow PR #54917 pattern for consistent semantic implementation
- Based on next branch with latest semantic infrastructure

* test: add snapshots for Empty semantic style-class demo

- Add snapshot for style-class.tsx demo in demo.test.ts.snap
- Add snapshot for style-class.tsx demo in demo-extend.test.ts.snap
- Snapshots include semantic classNames and styles verification:
  * custom-empty-root with backgroundColor, padding, borderRadius
  * custom-empty-image with filter grayscale
  * custom-empty-description with color and fontWeight
  * custom-empty-footer with marginTop
- Verify semantic customization is properly applied to DOM elements
- Complete test coverage for Empty component semantic features

* fix: improve Empty semantic implementation based on review feedback

- Add default semantic classNames for image, description, footer parts
- Update API documentation with detailed descriptions and function type support
- Follow FloatButton pattern for consistent semantic implementation
- Improve documentation clarity for classNames and styles props
- Support both object and function-based semantic customization
- Ensure proper semantic class application to DOM elements

* fix: address PR review feedback for Empty semantic implementation

- Remove ineffective React.useMemo for mergedProps, use simple object spread
- Add comprehensive function-based semantic tests in describe('semantic classNames/styles')
- Add ConfigProvider-level function-based semantic tests
- Enhance demo to showcase both object and function-based semantic customization
- Add interactive demo with Switch to demonstrate dynamic function-based styling
- Test function parameter passing and prop dependency handling
- Ensure complete test coverage for both object and function semantic patterns

Addresses gemini-code-assist bot feedback:
1. Fixed ineffective useMemo with props dependency
2. Added function-based semantic test coverage
3. Enhanced demo to show function-based capabilities

* refactor: align Empty semantic tests with FloatButton PR #54917 pattern

- Simplify semantic test cases to match FloatButton implementation
- Use more focused test structure with rerender pattern
- Add proper EmptyProps type import for type safety
- Follow exact naming convention from FloatButton tests:
  * 'should apply dynamic classNames and styles from props function'
  * 'should apply object classNames and styles'
- Remove overly complex test cases, keep essential functionality tests
- Ensure test structure matches established Ant Design patterns

Based on FloatButton semantic tests analysis from PR #54917

* docs: improve Empty semantic API documentation and remove ConfigProvider tests

- Update Chinese documentation for classNames and styles properties
- Use more concise and consistent descriptions matching Ant Design standards
- Update version from 5.23.0 to 6.0.0 for semantic API
- Add missing documentation for style-class demo in both languages
- Remove ConfigProvider-level Empty semantic tests as requested
- Keep semantic tests focused in Empty component test file only

Changes:
- components/empty/index.zh-CN.md: Improved API descriptions
- components/empty/demo/style-class.md: Added demo documentation
- components/config-provider/__tests__/style.test.tsx: Removed Empty tests

* refactor: clean up Empty semantic tests and demo

- Remove remaining Empty semantic tests from ConfigProvider test file
- Simplify style-class demo to basic implementation
- Remove demo documentation to keep it minimal
- Focus semantic tests in Empty component test file only

This ensures cleaner separation of concerns and avoids test duplication.

* fix: resolve Empty semantic classNames duplication and update documentation

* refactor: address Meet-student review feedback for Empty semantic demo

- Fix documentation: change 'buttons' to 'empty' in both Chinese and English
- Remove iframe attribute from demo documentation
- Simplify demo to show 4 different usage patterns without complex toggle logic
- Add comprehensive examples: object/function forms with external/inline definitions
- Fix TypeScript warnings and improve code clarity

* refactor: address Meet-student review feedback and optimize demo structure

- Remove version numbers from API documentation (classNames/styles)
- Simplify demo to show 4 separate examples for each semantic property
- Add comprehensive ConfigProvider tests for function-based semantic usage
- Optimize demo structure: separate objectClassNames, objectStyles, functionClassNames, functionStyles
- Each demo example focuses on single property for better clarity

* refactor(empty): Optimize the type definitions and style types in the Empty component demo.

* fix: ensure CSS-in-JS prefix classes are applied to Empty semantic elements

- Add manual prefix class application for image, description, and footer elements
- Remove emptyClassNames from useMergeSemantic to avoid duplication
- Ensure CSS-in-JS styles can properly target semantic elements
- Fix issue where custom prefixCls wouldn't work with CSS select

* test: Update snapshot

* refactor(components/empty): Remove unused merge property code

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

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

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

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

* refactor(empty): simplify style-class demo following pagination pattern

- Keep four essential objects: classNamesObject, classNamesFn, stylesObject, stylesFn
- Use same classNames across examples with sharedClassNames
- Differentiate styles based on props in stylesFn
- Reduce code from 115 to 68 lines (40% reduction)
- Add clear English comments for each object
- Update snapshots for new structure
- Follow pagination demo concise style

* test(empty): update snapshots after style-class demo refactor

- Update demo.test.ts.snap with new simplified structure
- Update demo-extend.test.ts.snap accordingly
- Snapshots now reflect the refactored demo with 4 examples
- All tests passing with updated snapshots

* refactor(empty): simplify style-class demo

- Remove classNamesObject and classNamesFn as suggested 'use style instead'
- Reduce to 2 examples as requested 'use two examples only'
- Keep Object styles and Function styles to demonstrate styles usage
- Update snapshots accordingly

---------

Signed-off-by: 遇见同学 <1875694521@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-09-30 10:23:05 +08:00
二货爱吃白萝卜
6c955c5a30 feat: ConfigProvider support unique Tooltip (#55154)
* docs: update doc

* refactor: tooltip structure

* chore: support arrow style

* chore: legacy props

* chore: part

* chore: use transition

* chore: tmp of it

* docs: update demo

* docs: update demo

* chore: code back

* chore: fix ts

* chore: fix root css var

* chore: fix loop deps

* chore: ts defs

* chore: fix ts def

* test: fix setup

* test: update snapshot

* chore: adjust ver

* chore: use new structrue

* chore: fix deps

* test: fix test

* test: update snapshot

* test: update snapshot

* test: fix test

* test: fix test

* test: update snapshot

* chore: adjust

* chore: adjust

* test: coverage

* chore: adjust style

* test: update snapshot

* update snap

---------

Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-09-29 10:15:16 +08:00
lijianan
4782d42013 chore(deps): bump @rc-component/table from 1.5.0 to 1.8.0 (#55003)
* chore(deps): bump @rc-component/table from 1.5.0 to 1.7.0

* test: update test snap

* test: update test snap

* test: update test snap

* test: update test snap

* update skip

* revert skip

* update
2025-09-15 20:38:47 +08:00
lijianan
3e54f04042 Merge branch 'next' into next-merge-feature 2025-09-12 23:40:53 +08:00
EmilyyyLiu
c46ee1fbc8 test: update snapshot after rc-menu modification (#54934)
* test: update rc-menu snap

* test: update layout snap

* test: update snap more

* test: update snap button date-picker empty

---------

Co-authored-by: 刘欢 <lh01217311@antgroup.com>
2025-09-10 11:43:21 +08:00
lijianan
20c2b89fba Merge branch feature into next-merge-feature 2025-09-08 21:30:09 +08:00
lijianan
a703957ce3 site: img should not be draggable (#54911) 2025-09-08 11:46:43 +08:00
afc163
c1a6a87285 fix: Table column align issue when scroll.x is true (#54899)
* fix: Table column align issue when scroll.x is true

* test: update snapshot

* test: update snapshot
2025-09-06 13:52:01 +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
thinkasany
998d8f008f chore: sync feature into next 2025-08-08 12:01:41 +08:00
Guo Yunhe
2cc9103149 feat(Empty): support image global config (#54502) 2025-08-08 11:01:11 +08:00
thinkasany
f1afc710c3 test: Adapting to jest v30 2025-08-07 12:01:07 +08:00
afc163
46c9c93773 test: upgrade jest to v30 (#54576) 2025-08-05 00:13:52 +08:00
二货爱吃白萝卜
2a2338aefc chore: deprecated List and bump alpha (#54182)
* chore: deprecated List and bump alpha

* docs: add deprecated mark

* chore: deprecated tag

* docs: update deprecated warning

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: coverage

---------

Co-authored-by: thinkasany <480968828@qq.com>
2025-06-27 10:50:40 +08:00
𝑾𝒖𝒙𝒉
1547514ae1 feat(Select): add onActive callback prop (#53931)
* fix: update @rc-component/select dependency version to ~1.0.5

(cherry picked from commit b45363e4c0)

# Conflicts:
#	package.json

* docs(select): update `onActive` props

(cherry picked from commit b78c436792)

* chore: update

(cherry picked from commit 3ad9e76823d211e3feadf6fd8c0e64e669b40c64)

* chore: bump

(cherry picked from commit 23672494b5d961de06487ae7ea02320fa0a41d07)

* chore: update snap

(cherry picked from commit 3258e169ef307b1c60e2924c66cc67053787c283)

* chore: update

* chore: update snap

* chore: update all snap

* chore: bump rc-select

* chore(deps): bump @rc-component/cascader to 1.3.1

* chore: update snap

* chore(deps): bump @rc-component/tree-select to 1.1.3

* chore: update snap
2025-06-03 23:39:13 +08:00
thinkasany
1f2d5838bc feat: ConfigProvider support classNames and styles for divider (#53890)
* feat: ConfigProvider support classNames and styles for divider

* save

* save

* snap

* style update

* clean

* demo update

* fix

* rerun ci

* docs: update demo

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-05-27 15:48:52 +08:00
thinkasany
fb739d0764 feat: ConfigProvider support classNames and styles for dropdown (#53272)
* feat: ConfigProvider support classNames and styles for dropdown

* save

* save

* support popup.root

* update demo

* docs: update demo

* fix

* rm root

* rm

* update snap

* update popup to root

* fix

* fix

* support subMenu

* flat

* en opt

* rm

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-04-24 10:10:33 +08:00
二货爱吃白萝卜
0df532c6fc feat: ConfigProvider support classNames and styles for Transfer (#53429)
* docs: init semantic doc

* chore: update def

* docs: update CP

* chore: more semantic

* init warning

* chore: done warning

* test: fix test logic

* test: update snapshot

* docs: update

* docs: update

* chore: clean up

* test: update snapshot

* chore: update style
2025-04-08 15:37:30 +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
Jony J
97849d969e chore(deps): add @rc-component/tooltip and remove rc-tooltip from dependencies (#52352)
* chore(deps): add @rc-component/tooltip and remove rc-tooltip from dependencies

* test: update snapshot
2025-01-13 11:47:22 +08:00
Jony J
1fe4dab6e6 chore: update rc-tooltip version to 6.4.0 in package.json (#52293)
* chore: update rc-tooltip version to 6.4.0 in package.json

* chore: trigger CI build

* test: update snapshot

* chore: trigger CI build
2025-01-08 16:42:46 +08:00
thinkasany
9fcce8ffdc feat: ConfigProvider support classNames and styles for Empty (#52208)
* feat: ConfigProvider support classNames and styles for Empty

* fix

* fix
2025-01-03 14:48:16 +08:00
afc163
8a64ec6a9e chore: merge branch 2024-11-07 16:51:58 +08:00
Jony J
08a9325182 feat: add a11y test for components demo (#51414)
* test: add accessibility test utilities

* refactor(tests): replace polling with Promise chain for axe test queue management

* test: add a11y test for components demo

* feat: add a11y test utils

* test: add a11y test for components demo

* test: add a11y test for components demo

* chore: remove unnecessary code

* feat: add polyfill for test environment

* test: add a11y test for components demo

* test: add a11y test for components demo

* chore: adjust code style
2024-11-01 11:30:11 +08:00
二货爱吃白萝卜
1c7613b27f fix: use locale of empty img title (#51368) 2024-10-24 20:48:36 +08:00
afc163
f724fcdc01 chore: upgrade rc-tree and rc-tree-select and rc-cascader (#51251) 2024-10-16 21:17:56 +08:00
Guo Yunhe
015740d1eb feat(Select): Select supports prefix prop (#51186) 2024-10-16 18:04:38 +08:00
ice
696c9dde02 fix(button): type=link error token & add prefix cls (color/variant) & specificity too high (#50962) 2024-09-24 23:52:50 +08:00
ice
badfbe3cfe feat(Button): support variant and color (#50051)
* feat(button): variant & color types

* feat: type -> color/variant

* feat: type -> color/variant

* feat: add variant filled

* test: snap

* refactor(button): rename type -> variant

* docs: add demo

* feat: add danger ghost style

* refactor: remove deprecated

* refactor: eslint

* docs: change color&variant

* test: updated snap

* docs: color-variant

* docs: add debug color&variant

* feat: global token

* refactor: remove comment

* docs: add color&variant docs

* docs: remove default

* docs: add space

* docs: code

* test: update snap

* test: fix snap

* test: btn querySelect

* feat: change filled hoverStyle

* test: fix

* feat: support grey wave

* refactor: enhance

* docs: color/variant -> v 5.21

* test: snap

* feat: add token

* test: to do

* test: fix test

* ci: rebuild

* style: remove

* style: space

* docs: add note & FQA

* feat: add componentsToken

* refactor: remove isNotGrey

* test: add case

* docs: tile button

* test: snap

* docs: site & snap

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

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>

* fix: token color & undef

* docs: site

* docs: responsive

* docs: enhance FAQ

* docs: gap middle

* test: snap

* Update components/theme/interface/maps/colors.ts

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>

* Update components/theme/interface/maps/colors.ts

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>

* Update components/theme/interface/maps/colors.ts

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>

* Update components/button/style/token.ts

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>

* Update components/button/style/token.ts

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>

* refactor: rename

* docs: prettier

* chore: eslint

* refactor: cls

* test: add solidTextColor case

* refactor: genVariantButtonStyle

* refactor: genVariantButtonStyle

* refactor: genVariantButtonStyle

* fix: rename

* docs: text

* fix: remove border

* feat: add token colorErrorBgFilledHover

* chore: add size-limit

* refactor: rename

---------

Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2024-09-03 17:39:02 +08:00
afc163
59ad48476b refactor: add boime lint and fix lint errrors (#49536)
* chore: add boime lint

* fix lint

* use files ignore

* revert change

* ignore clarity.js

* fix some errors

* fix some errors

* fix some errors

* fix some errors

* add yml file

* Update clarity.js

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

* add npm run lint:biome

* add npm run lint:biome

* fix test case

* fix ts errors

* fix ts errors

* fix lint and add .lintstagedrc

* shorten prop name

* chore: update package.json

* update biome.json

* chore: remove stylelint

* chore: useOptionalChain

* fix lint

* biome format

* prettier all code

* prettier all code

* fix site test

---------

Signed-off-by: afc163 <afc163@gmail.com>
2024-06-22 21:59:12 +08:00
二货爱吃白萝卜
9f2fb20358 chore: unique Empty text color (#49408)
* chore: unique color

* test: update snapshot
2024-06-14 11:58:52 +08:00
二货爱吃白萝卜
b62b81958b test: Fix React 18.3 findDOMNode warning (#48958)
* fix: try to fix React 18.3 warning

* chore: back of ci

* chore: fix type

* chore: fix lint

* chore: update deps

* fix: component error

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update deps

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update deps

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: bump version
2024-05-18 15:07:26 +08:00
叶枫
502dac12aa docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00
叶枫
e17cd4ae27 test: keep spaces (#47024)
* feat: snap

* feat: up snap
2024-03-22 20:49:55 +08:00
MadCcc
5f395fbed3 feat: select/cascader/tree-select support variant filled (#46549)
* feat: Select filled style

* chore: update snapshot

* feat: Cascader and TreeSelect support variant

* feat: multiple style

* fix: import

* chore: fix lint

* chore: update auto-complete docs

* fix: clearIcon bg

* chore: code clean
2023-12-21 13:39:04 +08:00
二货爱吃白萝卜
c31fc76443 fix: Dropdown with nest menu zIndex error (#45761)
* chore: fix zIndex logic

* chore: detect if needed

* docs: update bug version

* test: update snapshot

* test: update snapshot

* test: update snapshot
2023-11-09 19:07:22 +08:00
kiner-tang(文辉)
6d9db9fd99 feat: dropdown support z-index manager (#45486)
* feat: dropdown support z-index manager

* feat: update snap

* feat: optimize code
2023-10-23 06:46:08 -05:00
afc163
e587a5ff68 chore: update select snapshot (#45333) 2023-10-13 20:56:06 +08:00
lijianan
6a5e7ded43 refactor: remove Space & Grid IE compatible logic (#44620)
* refactor: remove IE compatible logic

* fix: fix

* fix: fix

* fix: fix
2023-09-05 10:17:56 +08:00
afc163
e283ebf2e3 test: update Select jest snapshot (#44140)
* chore: update snapshot

* test: fix test case of Form Select
2023-08-10 00:43:44 +08:00