36 Commits

Author SHA1 Message Date
renovate[bot]
a28f8aa863 chore(deps): update dependency @types/react to v19.2.9 (#56819)
* chore(deps): update dependency @types/react to v19.2.10

* improve type

* update

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
2026-02-01 10:26:09 +08:00
lijianan
c3f41c19ba refactor(types): replace Record with explicit object for better DX (#56298) 2025-12-22 10:47:06 +08:00
aojunhao123
8434193ab5 fix: prevent OTP from allowing input to skip over empty slots (#56001)
* fix: prevent OTP from allowing input to skip over empty slots

* adjust focus logic

* chore: adjust

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-12-01 17:17:26 +08:00
lijianan
6cc19c10fc chore: merge feature into next 2025-10-26 18:20:12 +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
sheng zhang
cc0f555db9 feat(input-otp_textarea_search): Support better customization with semantic classNames/styles as function (#55109)
* feat: textarea组件语义化改造

* feat: input.search语义化改造

* feat: input.otp语义化改造

* feat: input.search语义化改造修改-自定义antd的Button不受search语义化参数影响

* feat: input下语义化demo补充

* feat: input下语义化demo的snapshot更新

* fix: otp语义化文档修复

* fix: 单测修正

* fix: type add

* fix: docs_fixed

* Update components/input/__tests__/Search.test.tsx

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

* dosc update block

* update demo

* update snap

* adjust demo

* Refactor import statements in TextArea component

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

* Update components/input/__tests__/otp.test.tsx

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

* Refactor imports in Search.tsx for clarity

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

---------

Signed-off-by: 遇见同学 <1875694521@qq.com>
Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-09-28 11:33:41 +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
thinkasany
dbe6140226 chore: sync feature into next 2025-09-06 14:47:29 +08:00
ug
4d295e20db fix(Input.OTP): Continuous deletion is not allowed. (#54850)
Co-authored-by: liuqiang <qiang.liu@xinjifamily.com>
2025-09-04 09:43:54 +08:00
aojunhao123
bff829f763 feat: input support semantic dom (#53958)
* update

* update

* feat: input support completely semantic dom

* add test

* fix test

* update

* chore: add jest types to tsconfig

* update snapshot

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

---------

Co-authored-by: thinkasany <480968828@qq.com>
2025-06-03 16:28:09 +08:00
yoyo837
3e4d5ab433 chore: Merge branch 'feature' into next-merge-feature 2025-04-23 11:29:04 +08:00
Rajan Konar
9499cd3095 fix: Input OTP breaks with type number and mask (#53550) 2025-04-21 18:08:05 +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
github-actions[bot]
b078ee2c88 chore: auto merge branches (#52906)
chore: merge master into next
2025-02-20 19:17:13 +00:00
Herb
444f579eb1 perf(OTP): useState initializer function called only once (#52878)
Co-authored-by: thinkasany <480968828@qq.com>
2025-02-19 14:52:54 +08:00
lijianan
c3777d2cfa refactor: rewrite renderSeparator to FC (#52841)
* refactor: rewrite renderSeparator to FC

* refactor: rewrite renderSeparator to FC

* refactor: rewrite renderSeparator to FC

* fix: fix
2025-02-19 09:19:23 +08:00
thinkasany
185258f2b7 chore: sync master into next 2025-02-15 10:52:14 +08:00
afc163
90c148a491 fix: Input.Group and Input.OTP cssvar is missing (#52799) 2025-02-14 15:31:21 +08:00
thinkasany
bd2e46996d chore: sync feature into next 2025-02-10 21:17:12 +08:00
Haceral
a8856dfb5b feat: input.otp add separator api (#52668)
* feature(component): Input.OPT added separator api

* test: add tests for OTP component separator rendering cases

* refactor: apply code review suggestions
2025-02-08 15:54:26 +08:00
lijianan
ab0e07e25d refactor: [v6] use rc-component (#52337)
* refactor: use @rc-component

* chore: adjust compile

* test: fix logic

* chore: back of reset

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-01-10 14:14:31 +08:00
𝑾𝒖𝒙𝒉
020176f2b5 ♻️ chore: format code (use npm run format) (#51978)
* chore: update formatter rule

* ♻️ chore: format code (use `npm run format`)
2024-12-12 10:22:30 +08:00
Salim Abubakar
f459efef43 fix: prevent OTP input focus from advancing when previous input is empty (#51664)
Co-authored-by: Salim Abubakar <salimabubakar@Salims-MacBook-Air.local>
2024-11-18 10:18:05 +08:00
二货爱吃白萝卜
c17eb8153a chore: prevent z (#51609) 2024-11-13 15:55:19 +08:00
chenshuai2144
453d1d4968 feat: 更新 Image 组件以支持 rootClassName 属性,增强 OTP 组件以支持 inputMode,更新表格文档中的 React 规范链接,升级 trigger 组件版本 2024-11-10 21:25:14 +08:00
alan-rudzinski
a1cbc5a3a0 fix: Propagate inputMode to individual Cells in Input.OTP #51239 (#51271) 2024-11-08 22:43:58 +08:00
Jony J
34c28a6ac1 feat(input-otp): add onInput api for otp (#51289)
* feat(input-otp): add onInput api for otp

* feat(input-otp): add test case

* fix: test case error

* docs: add release  version

* docs: add release  version

* docs: update en-US document release version

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

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: Jony J <82765353+aojunhao123@users.noreply.github.com>

* docs: update docs

* feat: modify onInput parameter type

* test: fix test case

* docs: update docs

* docs: update docs

---------

Signed-off-by: Jony J <82765353+aojunhao123@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-10-28 18:53:14 +08:00
afc163
66222a296b chore: import rc-util from path (#51087) 2024-10-02 10:43:35 +08:00
二货爱吃白萝卜
27c5d43bee fix: otp not accept type (#50811) 2024-09-11 15:32:23 +08:00
MadCcc
010f82bd1a feat: ConfigProvider support variant (#49535)
* feat: ConfigProvider support variant

* docs: add docs for variant

* feat: support config all components variant

* chore: fix lint

* chore: add test

* test: add test
2024-06-21 17:47:09 +08:00
lijianan
8a4a83ace7 Merge pull request #48471 from ant-design/master
chore: merge master into feature
2024-04-16 10:17:57 +08:00
二货爱吃白萝卜
4216003c1b fix: OTP with controlled of '' not working (#48399)
* test: test driven

* fix: controlled logic
2024-04-11 15:24:18 +08:00
lijianan
53cbceb7db feat: Input.OTP support mask prop (#48257)
* feat: Input.OTP support mask prop

* fix: fix

* fix: fix

* test: add test case

* test: add test case

* chore: fix

* chore: update

* chore: remove

* chore: rename useOTPSingleValue

* fix: fix

* fix: fix

* chore: rm 3 lib

* chore: add 3 lib

* fix: fix

* fix: fix

* test: fix test case

* test: fix test case

* fix: fix

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
2024-04-09 14:47:58 +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
二货爱吃白萝卜
100fa29bef feat: Input.OTP component support (#48076)
* chore: basic control

* chore: input instad

* docs: update demo

* chore: adjust operation interactive

* chore: lock selection

* chore: fix patch logic

* chore: merge logic

* chore: patch autoFocus

* test: update snapshot

* test: add test case

* test: coverage

* chore: update size limit

* docs: update docs

* test: fix test case

* chore: update comment

* refactor: change to length

* chore: blur all

* chore: size limit
2024-03-28 14:05:58 +08:00