Commit Graph

27612 Commits

Author SHA1 Message Date
9965d96259
feat(form): improve scrollToField logic (#48211)
* feat(form): improve scrollToField logic

* docs: update form faq

* test: add unit test

* fix: boundary error

* style: update code

ref: https://github.com/ant-design/ant-design/pull/48211#discussion_r1547535631
ref: https://github.com/ant-design/ant-design/pull/48211#issuecomment-2031635922

* docs: add scrolltofield demo

* chore: update snapshot

* Update components/form/demo/validate-scroll2field.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 红 <wxh16144@qq.com>

* chore: update demo

* chore: update logic

* chore: update snapshot

* Update components/form/demo/validate-scroll-to-field.tsx

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 红 <wxh16144@qq.com>

* chore: update demo

* chore: update snap

* chore: update

* chore: update demo

* chore: update

* chore: update docs

* chore: update

* chore: update snap

* Update components/form/demo/validate-scroll-to-field.tsx

Co-authored-by: crazyair <crazyair@users.noreply.github.com>

Signed-off-by: 红 <wxh16144@qq.com>

* chore:update logic

* test: add unit test

ref: https://github.com/ant-design/ant-design/issues/28869

* chore: update demo

* test: update snap

* chore: update demo

* chore: update

* chore: update

* chore: fix TS type

* chore: update demo fix layout

* chore: update demo

---------

Signed-off-by: 红 <wxh16144@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-04-17 17:56:29 +08:00
叶枫
9b72caf77e
feat: up form (#48486) 2024-04-17 15:54:42 +08:00
Cooper
8026366676
feat: add inlineMargin token support form inline layout (#48362)
* feat: add inlineMargin token support form inline layout

* fix

* fix

---------

Co-authored-by: afc163 <afc163@gmail.com>
2024-04-17 12:09:08 +08:00
Cooper
c7f2760007
feat: add Tabs more props (#48321)
* feat: add Tabs more props

* fix

* fix

* Compatible with moreIcon

* compatible ConfigProvider with the moreIcon

* update site snap

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: afc163 <afc163@gmail.com>
2024-04-17 12:05:43 +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
dependabot[bot]
cd901207d6
chore(deps-dev): bump the dev-dependencies group with 6 updates (#48469)
* chore(deps-dev): bump the dev-dependencies group with 6 updates

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@types/react"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: inquirer
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: puppeteer
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: qs
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: remark-lint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: remark-lint-no-undefined-references
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: remark-preset-lint-recommended
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: tar
  dependency-type: direct:development
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update package.json

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

* Update package.json

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-04-15 22:34:24 +08:00
lijianan
47eb27bd8d
fix: fix steps inner style error (#48464)
* fix: fix steps style error

* fix: add unit
2024-04-15 21:44:31 +08:00
George H
9ba577f3df
fix :fix npm start when memory more than 8192 (#48462)
Co-authored-by: lijianan <574980606@qq.com>
2024-04-15 16:27:47 +08:00
afc163
9517942fac
chore: git tag after npm publish (#48454) 2024-04-15 15:53:50 +08:00
vagusX
b42ffe64f4
scripts(visual-regression): show target filename (#48444)
* scripts(visual-regression): show target filename

* feat: update

* feat: show filename

* feat: update
2024-04-15 14:40:10 +08:00
lijianan
daba39b88a
site: fix css var error of site (#48449) 2024-04-15 11:40:58 +08:00
lijianan
d1a8376e09
site: fix different font-size between jsx demo and tsx demo (#48448) 2024-04-15 10:27:51 +08:00
George H
bfa23e16a0
chore: add script to adapt os memory (#48435)
* chore: add script to adapt os memory

* update

* update

* use typescript

* fix
2024-04-15 10:23:35 +08:00
lijianan
2a23f50c1a
docs: update publish date (#48447) 2024-04-15 10:23:15 +08:00
Peach
89eba93616
docs: changelog for 5.16.2 (#48433) 2024-04-14 15:09:20 +08:00
vagusX
0072587f14
scripts: fix tar esm issue (#48442)
* Update build.ts

Signed-off-by: vagusX <vagusxl@gmail.com>

* Update build.ts

Signed-off-by: vagusX <vagusxl@gmail.com>

---------

Signed-off-by: vagusX <vagusxl@gmail.com>
2024-04-14 11:09:47 +08:00
gin-lsl
72b5263344
site: sync all code type of demos when change one of them (#48436)
* site: sync all code type of demos when change one of them

* site: remove localStorage

---------

Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: Peach <scdzwyxst@gmail.com>
2024-04-13 23:11:29 +08:00
Inshiku-Han
2f4b86881f
fix: Add Transfer localeValues in ja_JP (#48411)
Co-authored-by: afc163 <afc163@gmail.com>
2024-04-13 22:32:05 +08:00
afc163
cf12fb19d1
docs: enable toc to all docs (#48424) 2024-04-13 21:40:07 +08:00
dependabot[bot]
7f990bbc6b
chore(deps-dev): bump the dev-dependencies group with 4 updates (#48427)
* chore(deps-dev): bump the dev-dependencies group with 8 updates

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@types/react"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: puppeteer
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: remark-lint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: remark-lint-no-undefined-references
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: remark-preset-lint-recommended
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update package.json

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

* Update package.json

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

* Update package.json

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

* Update package.json

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-04-12 21:10:07 +08:00
dependabot[bot]
2c3334e0a4
chore(deps): update rc-picker requirement from ~4.3.1 to ~4.3.2 (#48428)
Updates the requirements on [rc-picker](https://github.com/react-component/picker) to permit the latest version.
- [Release notes](https://github.com/react-component/picker/releases)
- [Changelog](https://github.com/react-component/picker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/react-component/picker/compare/v4.3.1...v4.3.2)

---
updated-dependencies:
- dependency-name: rc-picker
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 20:36:14 +08:00
叶枫
1092660e0a
feat: optimize CascaderProps (#48420) 2024-04-12 17:30:32 +08:00
kiner-tang
d1df8e54cc
refactor: Use constant instead of enum to reduce package size (#48406)
* feat: optimize code

* feat: optimize code

* feat: optimize code
2024-04-12 16:28:06 +08:00
lijianan
d34ab00717
demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
Chua Kiem Fai
646b960d1a
docs: update slider tooltip props document (#48410)
Signed-off-by: Chua Kiem Fai <kievechua@gmail.com>
2024-04-12 11:49:27 +08:00
大表哥
41d4cf80c5
chore: add open with opensumi badge (#48401) 2024-04-12 11:46:53 +08:00
thinkasany
c648fd1513
docs(demo): Convert to lowercase (#48415) 2024-04-12 11:45:25 +08:00
dependabot[bot]
ead7f7d36d
chore(deps-dev): bump the dev-dependencies group with 6 updates (#48408)
* chore(deps-dev): bump the dev-dependencies group with 10 updates

---
updated-dependencies:
- dependency-name: "@codesandbox/sandpack-react"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: remark-lint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: remark-lint-no-undefined-references
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: remark-preset-lint-recommended
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: tar
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: typescript
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: webpack-bundle-analyzer
  dependency-type: direct:development
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update package.json

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

* Update package.json

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

* Update package.json

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

* Update package.json

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-04-11 22:40:48 +08:00
lijianan
a09b9dd820
feat: wrap prop support boolean (#48391)
* feat: wrap prop support boolean

* test: add test case

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* test: update

* chore: revert
2024-04-11 22:29:50 +08:00
dependabot[bot]
010ec34c70
chore(deps): update rc-select requirement from ~14.13.0 to ~14.13.1 (#48407)
Updates the requirements on [rc-select](https://github.com/react-component/select) to permit the latest version.
- [Release notes](https://github.com/react-component/select/releases)
- [Commits](https://github.com/react-component/select/compare/v14.13.0...v14.13.1)

---
updated-dependencies:
- dependency-name: rc-select
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-11 21:37:46 +08:00
lijianan
82a7d596fd
docs: update href link (#48404) 2024-04-11 17:50:53 +08:00
lijianan
6a7945d2fd
feat: Button support autoInsertSpace prop (#48348)
* feat: Button support autoInsertSpaceInButton prop

* demo: update demo

* fix: fix

* test: add test case

* docs: update docs

* chore: deprecated autoInsertSpaceInButton prop

* Update components/button/button.tsx

Co-authored-by: MadCcc <madccc@foxmail.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

* fix: fix

* Update components/button/button.tsx

Co-authored-by: MadCcc <madccc@foxmail.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

* Update components/button/button.tsx

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

* fix: fix

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <madccc@foxmail.com>
2024-04-11 15:29:10 +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
LiveTembiso
f460b48e8f
docs: Fixed typo (#48393)
Signed-off-by: LiveTembiso <livetembiso0@gmail.com>
2024-04-11 12:09:37 +08:00
dependabot[bot]
912a447c05
chore(deps): update @rc-component/trigger requirement (#48380)
Updates the requirements on [@rc-component/trigger](https://github.com/react-component/trigger) to permit the latest version.
- [Release notes](https://github.com/react-component/trigger/releases)
- [Changelog](https://github.com/react-component/trigger/blob/master/HISTORY.md)
- [Commits](https://github.com/react-component/trigger/compare/2.0.0...v2.1.1)

---
updated-dependencies:
- dependency-name: "@rc-component/trigger"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-04-10 20:30:37 +08:00
lijianan
4cba8b85d5
Merge pull request #48383 from ant-design/master
chore: merge master into feature
2024-04-10 20:30:10 +08:00
lijianan
dd6cb6c120
test: update snap (#48382) 2024-04-10 19:50:45 +08:00
二货爱吃白萝卜
ce9353153e
fix: Upload has empty space (#48370)
* fix: empty space

* chore: clean up
2024-04-10 14:51:44 +08:00
lijianan
6b3a6350c3
site: use css token (#48367) 2024-04-10 11:47:30 +08:00
lijianan
d82f65468d
chore(deps-dev): bump the dev-dependencies group with 7 updates (#48361) 2024-04-09 23:04:22 +08:00
afc163
1b159f7e5f
Revert "chore(deps-dev): bump the dev-dependencies group with 7 updates (#48357)" (#48360)
This reverts commit c5895211cb.
2024-04-09 22:07:57 +08:00
dependabot[bot]
c5895211cb
chore(deps-dev): bump the dev-dependencies group with 7 updates (#48357)
* chore(deps-dev): bump the dev-dependencies group with 8 updates

---
updated-dependencies:
- dependency-name: "@testing-library/dom"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@types/react"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  dependency-group: dev-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: react-intersection-observer
  dependency-type: direct:development
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update package.json

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-04-09 21:36:03 +08:00
lijianan
25a1849af9
demo: rm useless Tag margin-right (#48356)
* site: rm useless Tag margin-right

* chore: revert
2024-04-09 21:35:31 +08:00
二货爱吃白萝卜
089514bae9
fix: week selection not have hover style (#48355) 2024-04-09 21:34:49 +08:00
dependabot[bot]
9ffe94d11e
chore(deps): bump peaceiris/actions-gh-pages from 3 to 4 (#48359)
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 20:39:17 +08:00
dependabot[bot]
62133028fc
chore(deps): update rc-cascader requirement from ~3.24.0 to ~3.24.1 (#48358)
Updates the requirements on [rc-cascader](https://github.com/react-component/cascader) to permit the latest version.
- [Release notes](https://github.com/react-component/cascader/releases)
- [Changelog](https://github.com/react-component/cascader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/react-component/cascader/compare/v3.24.0...v3.24.1)

---
updated-dependencies:
- dependency-name: rc-cascader
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 20:36:54 +08:00
lijianan
854cdb4352
type: optimize CompoundedComponent type (#48346)
* type: optimize CompoundedComponent type

* chore: fix

* type: fix type

* chore: fix

* type: fix type

* type: add ts-ignore

* fix: fix

* chore: revert
2024-04-09 16:49:47 +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
二货爱吃白萝卜
44cd5342f7
fix: Typography dynamic of copyable & eidtable (#48350)
* fix: editable should show

* test: test driven

* fix: copyable of render
2024-04-09 12:01:46 +08:00
二货爱吃白萝卜
727aa2d030
fix: Typography copyable not sync (#48347)
* test: test driven

* fix: copy of stable
2024-04-09 11:00:52 +08:00