Commit Graph

1218 Commits

Author SHA1 Message Date
Jony J
b3af097e8c
refactor: semantic dom structure (#53695)
* refactor: semantic dom structure

* fix: ci
2025-04-29 11:46:11 +08:00
thinkasany
2542d2424e chore: sync master into feature 2025-04-28 09:50:45 +08:00
afc163
b79998872a
docs: randomuser.me => mocky.io (#53676)
* docs: move mock api from randomuser.me to mocky.io

* update

* update

* update

* test: update snapshot
2025-04-28 09:47:01 +08:00
kiner-tang(星河)
5236fa8d26
feat: Optimized closable component's aria props (#53410)
* feat: Optimized closable component's aria props

* Update components/_util/hooks/useClosable.tsx

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: kiner-tang(星河) <1127031143@qq.com>

* feat: opt code

* feat: opt code

* feat: opt code

* feat: opt code

* feat: opt code

* feat: opt code

* feat: opt code

* feat: opt code

* chore: add a11y def

* chore: update a11y ts

* chore: clean up

* chore: clean up

* docs: update demo

---------

Signed-off-by: kiner-tang(星河) <1127031143@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-04-24 18:36:18 +08:00
EmilyyyLiu
e28247bf0c
enhance: keep show clearIcon when in mobile view (#53576)
* feat: The clearIcon  of the Select component remain displayed when hover=none device

* chore: tmp of mobile test

* test: support mobile snapshot

* test: adjust logic

* chore: force trigger

* chore: rm is mobile config

* chore: update enable check

* chore: clean up

* chore: force trigger

* chore: debug for query

* chore: trigger info

* test: force disable mobile style

---------

Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-04-24 14:21:02 +08:00
github-actions[bot]
8975c87f9a
chore: auto merge branches (#53571)
chore: sync master into feature
2025-04-21 02:21:32 +00:00
诸岳
482548f052
fix(icon): custom colorIcon should work for component icon (#53511) 2025-04-16 23:02:44 +08:00
github-actions[bot]
ab1164a03b
chore: auto merge branches (#53470)
chore: sync master into feature
2025-04-11 03:13:29 +00:00
thinkasany
529f539a0f
docs: use warning to replace info for deprecated info (#53443) 2025-04-08 17:44:14 +08:00
lijianan
d034ac7583 chore: merge master into feature 2025-04-03 14:52:00 +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
Jony J
3147356b4a
feat(auto-complete): popup supports Semantic DOM and retire some api (#53257)
* feat(auto-complete): popup supports Semantic DOM and retire some api

* refactor(auto-complete, select): deprecate `onDropdownVisibleChange` in favor of `onOpenChange` and update related tests

* refactor: adjust semantic demo logic

* docs: update api description

* docs: update doc

* docs: add space

* docs: update

* chore: update semantic demo logic

* feat: add CP support

* feat: add CP support for tree-select and update doc

* docs: update Select and TreeSelect common props in configuration documentation

* Update components/config-provider/index.zh-CN.md

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Signed-off-by: Jony J <1844749591@qq.com>

* feat: add root support

* docs: update doc

* chore: bump cascader version

---------

Signed-off-by: Jony J <1844749591@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-04-02 11:45:53 +08:00
lijianan
fcbe7c9399
site: add componentName for SemanticPreview (#53360) 2025-04-01 07:38:14 +08:00
github-actions[bot]
3d70185b93
chore: auto merge branches (#53332)
chore: sync master into feature
2025-03-28 10:51:29 +00:00
𝑾𝒖𝒙𝒉
91d6095b88
docs(theme): cover dumi-theme (#53320)
* docs(theme): cover dumi-theme

* chore: update
2025-03-28 15:01:17 +08:00
github-actions[bot]
103f82b6db
chore: auto merge branches (#53249)
chore: sync master into feature
2025-03-22 06:34:57 +00:00
𝑾𝒖𝒙𝒉
828f512747
fix: improve CSS cheker & fix lint errors (#53236)
* chore: add csslint

* chore: update

* chore: update

* fix css lint

* fix css lint

* fix css lint

* fix csslint

* fix css lint

* fix css lint

* fix css lint

* fix css lint

* fix css lint appearance

https://developer.mozilla.org/zh-CN/docs/Web/CSS/appearance

* fix csslint conic-gradient

* chore: fix lint tree-select

* chore: update logic

* Revert "fix css lint"

This reverts commit 094f58adbb.

* Revert "fix css lint"

This reverts commit 50da87be3a.

* chore: fix css

* chore: update

* chore: rm redundant

* chore: revert change

* chore: update

* chore: update
2025-03-22 03:09:03 +00:00
Jony J
33fa456979
feat(select): popup supports Semantic DOM and retire some api (#53243)
* feat(select):popup support Semantic DOM and retire some api

* chore: adjust logic

* chore: adjust semantic preview demo

* style: set popup zIndex for better visibility
2025-03-21 22:01:18 +08:00
lijianan
b9e3b95408
demo: rm qs, rm fetch-jsonp (#53015)
* demo: rm qs, rm fetch-jsonp

* fix: fix
2025-03-03 10:24:45 +08:00
Wangye
e7f558c500
docs: fix handleChange params types (#53009) 2025-02-28 19:47:41 +08:00
Wanpan
8491b939a3
refactor: Input allowClear btn set tabIndex to -1 (#52977) 2025-02-26 19:02:33 +08:00
Jony J
4137ea7c59
fix(AutoComplete): add missing style to ensure alignment (#52819)
* fix(Select): remove unnecessary selection search input height style

* style: adjust fontSize in AutoComplete

* style(select): remove unused line height calculations

* test: update snapshot

* style(select): add fontSize to selection search input

* Update components/auto-complete/index.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Jony J <1844749591@qq.com>

---------

Signed-off-by: Jony J <1844749591@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2025-02-26 11:23:48 +08:00
lijianan
a5e7c4e849
refactor: use Array.from() instead new Array() (#52792)
* refactor: use Array.from() instead new Array()

* chore: fix

* chore: fix
2025-02-14 10:16:15 +08:00
二货爱吃白萝卜
5381fabec4
refactor: hooks of context (#52575)
Some checks are pending
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
2025-01-25 17:30:56 +08:00
lijianan
69b473f3f7
fix: fix cssinjs unit (#52554) 2025-01-24 00:10:33 +08:00
lijianan
f3fd3649e7
demo: update variant demo (#52547) 2025-01-23 22:50:56 +08:00
ustcfury
fd4abbf628
add underlined variant (#52546)
Some checks are pending
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
* feat: add variant underlined in Input&&InputNumber&&Mentions

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix: fix eslint

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix: remove commented code

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix: update underlined style

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix:fix eslint problem

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* feat: add Select variant underlined

to #51379

* feat: add underlined demo

to #51379

* feat: update snapshots

to #51379

* feat: update doc

to #51379

---------

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>
Co-authored-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>
2025-01-23 15:16:12 +08:00
Guo Yunhe
d7512d5190
feat: add label classname for Checkbox & Radio (#52322)
Co-authored-by: thinkasany <480968828@qq.com>
2025-01-13 15:02:51 +08:00
栗嘉男
ae16de3386 chore: merge master into feature 2025-01-10 03:08:15 +08:00
renovate[bot]
c27582ec13
chore(deps): update dependency nwsapi to v2.2.16 (#51844)
* chore(deps): update dependency nwsapi to v2.2.16

* refactor: selected item radius style code

* fix

* Apply suggestions from code review

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

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix role in select

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2025-01-09 13:48:54 +08:00
Jony J
1fe4dab6e6
chore: update rc-tooltip version to 6.4.0 in package.json (#52293)
Some checks failed
Publish Any Commit / build (push) Has been cancelled
🔀 Sync mirror to Gitee / mirror (push) Has been cancelled
✅ test / lint (push) Has been cancelled
✅ test / test-react-legacy (16, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (16, 2/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 2/2) (push) Has been cancelled
✅ test / test-node (push) Has been cancelled
✅ test / test-react-latest (dom, 1/2) (push) Has been cancelled
✅ test / test-react-latest (dom, 2/2) (push) Has been cancelled
✅ test / build (push) Has been cancelled
✅ test / test lib/es module (es, 1/2) (push) Has been cancelled
✅ test / test lib/es module (es, 2/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 1/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 2/2) (push) Has been cancelled
👁️ Visual Regression Persist Start / test image (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 2/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Has been cancelled
✅ test / test-coverage (push) Has been cancelled
* 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
EmilyyyLiu
3ee1fec047
chore: upgrade [rc-tree] to [~5.13.0],upgrade [rc-cascader] to [~3.33… (#52274)
Some checks are pending
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
* chore: upgrade [rc-tree] to [~5.13.0],upgrade [rc-cascader] to [~3.33.0],upgrade [ rc-tree-select] to [~5.27.0]

* chore:升级版本后更新快照

---------

Co-authored-by: 刘欢 <lh01217311@antgroup.com>
2025-01-07 17:00:47 +08:00
lijianan
af4e7741e8
chore(deps): bump deps (#52180)
* chore(deps): bump deps

* fix: revert

* chore: update rc-input-number

* Update package.json

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: lijianan <574980606@qq.com>

* test: update snap

* fix: update rc-mentions

* fix: update snap

* fix: update rc-textarea

* fix: fix

* chore: rerun cicd

* fix: fix

* fix: update snap

* fix: update rc-tree-select

* fix: update rc-cascader

* fix: update snap

* fix: update snap

* fix: fix button style

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-12-31 22:56:24 +08:00
github-actions[bot]
ca7bd277e6
chore: auto merge branches (#52177)
Some checks are pending
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
chore: sync master to feature
2024-12-30 09:43:28 +00:00
afc163
513f22784d
demo: disable auto adjust placement in DatePicker design panel (#52113)
* demo: disable auto adjust placement in DatePicker design panel

* demo: disable auto adjust placement in DatePicker design panel

* demo: disable auto adjust placement in DatePicker design panel

* demo: disable auto adjust placement in DatePicker design panel

* fix

---------

Co-authored-by: lijianan <574980606@qq.com>
2024-12-30 13:19:56 +08:00
thinkasany
8b15b0fbad
feat: ConfigProvider support popconfirm (#52126)
Some checks are pending
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
* feat: ConfigProvider support popcomfirm

* replace api
2024-12-25 15:29:30 +08:00
Jony J
ca1ab9bf47
feat: TreeSelect support maxCount (#51759)
* feat: TreeSelect support maxCount

* Update components/tree-select/index.zh-CN.md

Co-authored-by: thinkasany <480968828@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* chore: bump tree & tree-select version for supporting maxCount

* test: update snapshot

* chore: bump rc-cascader version to 3.31.0

* :wqhe commit message for your changes. Lines starting

* rerun ci

* rerun ci

* docs: update doc

* docs: improve demo

* fix: add demo

* docs: add demo

* chore: trigger CI build

---------

Signed-off-by: lijianan <574980606@qq.com>
Signed-off-by: Jony J <1844749591@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
2024-12-25 14:39:50 +08:00
Jony J
dfc20acd0c
feat: add default name generation for RadioGroup component better a11y (#52076)
* feat: add default name generation for RadioGroup component better a11y

* feat(radio): implement useStableId hook for consistent ID generation in RadioGroup

* test: update snapshot

* chore: remove unused demo code snippet from form documentation

* test: enhance demo testing by adding ignoreAttributes option for snapshot matching

* fix(tests): correct logic for skipping tests and enhance snapshot matching for demo tests

* Revert "test: enhance demo testing by adding ignoreAttributes option for snapshot matching"

* test: mock useId for stable ID generation in snapshot tests

* chore: trigger CI build

* docs(radio): update name property description to clarify fallback behavior for RadioGroup

* Update index.zh-CN.md

Signed-off-by: Jony J <1844749591@qq.com>

---------

Signed-off-by: Jony J <1844749591@qq.com>
2024-12-23 10:55:45 +08:00
Oyster Lee
615723a5fd
fix(select): prevent label overflow (#52011) 2024-12-14 22:52:05 +08:00
DisLido
4bf79a8474
fix(Select): clear icon position (#51649)
* fix(Select): clear icon position

Fix `.ant-select-has-feedback .ant-select-clear` position when `validateStatus` is empty

Signed-off-by: DisLido <dislido@foxmail.com>

* fix lint; add test case

---------

Signed-off-by: DisLido <dislido@foxmail.com>
2024-11-29 15:54:10 +08:00
二货爱吃白萝卜
af7bce752a
fix: Select align issue (#51694)
* fix: item align logic

* fix: placeholder style

* test: update snapshot

* fix: single align

* chore: add demo

* test: update snapshot

* fix: color

* fix: style

* fix: line height

* fix: borderless pos

* chore: base of prefix offset
2024-11-20 11:54:49 +08:00
thinkasany
f6bbacf09f
docs: show suffix demo (#51666) 2024-11-18 10:26:47 +08:00
Guo Yunhe
3aee945ed9
fix(Select): text overflow in tag mode (#51605) 2024-11-13 14:57:11 +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
36573e2302
fix(select): Incorrect activeBorderColor token when variant is filled (#51054) 2024-09-27 18:49:49 +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