Skip to content

Commit

Permalink
Zl/v4.21.4 sync (#77)
Browse files Browse the repository at this point in the history
* fix: add missing localizations (ant-design#35430)

* Add missing localizations

* Update snapshot

* refactor: Progress type="circle" for some issues (ant-design#35433)

* refactor: Progress type="circle" for some issues

close ant-design#17706
close ant-design#35009
close ant-design#35352

* test: update progress snapshot

* docs: update linecap.md

* Update components/progress/demo/linecap.md

* test: update progress snapshot

* fix: rc-progress@~3.3.1

* fix: rc-progress@~3.3.2

* docs: add 4.20.3 changelog (ant-design#35435)

* docs: add 4.20.3 changelog

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* fix typo

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* fix typo

* fix typo

* fix typo

* fix typo

Co-authored-by: afc163 <afc163@gmail.com>

* feat: edit date-picker to hook (ant-design#35425)

* docs: update demo template (ant-design#35440)

* docs: fix typo (ant-design#35439)

* chore: fixed typo

* chore: fixed typo+1

* chore(deps-dev): bump husky from 7.0.4 to 8.0.1 (ant-design#35451)

Bumps [husky](https://github.com/typicode/husky) from 7.0.4 to 8.0.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](typicode/husky@v7.0.4...v8.0.1)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:development
  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>

* test: update snapshot (ant-design#35452)

* chore: optimze LGTM (ant-design#35443)

* chore: optimze LGTM

* chore: type

* fix: dev broken (ant-design#35453)

* chore(deps-dev): upgrade to jest 28 (ant-design#35334)

https://jestjs.io/zh-Hans/docs/upgrading-to-jest28

* fix: bad List.Item type (ant-design#35454) (ant-design#35455)

Co-authored-by: Ron Smeral <ron.smeral@merck.com>

* docs: replace class component with hooks (ant-design#35461)

* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* refactor: remove cascader displayRender warning (ant-design#35417)

* refactor: remove useless warning (ant-design#35291)

* refactor: remove useless test case

* docs: remove cascader tagRender

* perf: refactor devWarning for production code size (ant-design#35411)

* pref: better code style for production

* refactor `devWarning`

* don't use `useEffect` only wrap `devWarning`

* chore: add 'noop' to coverage

* chore: add test cases for devWarning

* chore: add test case

* chore: update test cases for devWarning

* chore: restore test script command

* fix: remove 'throw new Error'

* should not use `throw` for browser

* chore: update test case for AutoComplete

* perf: add prefix for `devWarning`

* update RegExp for UMD

* add prefix for ES and CJS

* chore: better code style

* perf:

* upgrade antd-tools

* remove `injectWarningCondition`

* rename `devWarning` to `warning`

* chore: better code style

* chore: better code style

* chore: restore hasValidName

* docs: replace class component with hooks (ant-design#35472)

* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* chore: fix LGTM

* docs: indicate that menu items require `key`s (ant-design#35474)

* docs: remove editable in table documentation

close
ant-design#35471 (comment)

* fix: tree checkbox margin in rtl mode (ant-design#35491)

* docs: Table QA about rowSelection renderCell (ant-design#35494)

* Update index.zh-CN.md

之前需要在 可选列的勾选框 中增加 Tooltip,没有在文档中找到相关的文档,通过搜索 issue,以为暂时不支持,看了源码才发现已经支持了。

所以想要完善一下文档,可以方便其他用户找到此内容。

* docs: Table QA about rowSelection renderCell

update US doc

* docs: changelog 4.20.4 (ant-design#35495)

* docs: changelog 4.20.4

* chore: emoji

* docs: replace class component with hooks (ant-design#35500)

* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* test: update snapshot

* fix(statistic): ignore the decimal part when the precision is negative (ant-design#35520)

* test: Update snapshot

* test: Update snapshot (ant-design#35529)

* refactor: Card loading (ant-design#35525)

* feat: card loading with skeleton

* test: update snapshot

* test: add style deps

* chore: import

* docs: update work with us part

* refactor: modal confirm button style (ant-design#35530)

* fix: modal rtl style

* fix: cannot use logic css

* chore: change css writing order

* test: moving to testing-library in `Segmented` (ant-design#35538)

* test(Segmented): moving to testing-library

* chore: cleanup

* fix: test

* test: use click instead of change to fire event

* Update index.test.tsx

* fix: Picker focus & blur not working (ant-design#35552)

* docs: replace class component with hooks (ant-design#35519)

* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* chore: deprecated rowSelection.onSelectNone and onSelectMultiple (ant-design#35545)

* chore: del unused package && downgrade some packages which related webpack@5 (ant-design#35551)

* docs: changelog 4.20.5 (ant-design#35560)

* chore: Update github action release helper release title

* fix: drawer close speed (ant-design#35339)

* fix: drawer close speed

* chroe: snap

* chroe: test

* chroe: test

* feat: remove file

* feat: 重新整理

* feat: forceRender

* feat: snap

* chroe: test

* chroe: test

* chroe: test

* feat: create event

* feat: diff code

* feat: forceRender

* chore: test (ant-design#35364)

* Update components/drawer/index.tsx

Co-authored-by: afc163 <afc163@gmail.com>

* feat: remove load state

* feat: test

* fix: destroyOnClose

* feat: add load

* fix: update snap

* fix: update snap

* feat: reset test

* feat: docs

* feat: test

* feat: test

Co-authored-by: afc163 <afc163@gmail.com>

* docs: fix 4.20.5 changelog typo (ant-design#35567)

* refactor: reduce empty cycling deps (ant-design#35570)

* chore: rm in root

* chore: fix ts

* test: Update snapshot

* chore: ignore part

* chore: delete extra spaces (ant-design#35582)

Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>

* docs: replace class component with hooks (ant-design#35580)

* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue

* chore: bump tools version (ant-design#35594)

* style: fix Table header border when has rowSpan (ant-design#35591)

close ant-design#35577

* docs: Update CHANGELOG.zh-CN.md (ant-design#35604)

* feat: add a new locale tk_TK (ant-design#35605)

* feat: add a new locale tk_TK

* fix: fix moment locale

* feat: table rowSelection.onChange support type (ant-design#35598)

* feat: table rowSelection onChange support method

* docs: update

* chore: rename param

* test: update

* test: update

* Update rebase.yml

* docs: Fix DatePicker throw demo

* style: anchor text is overwritten (ant-design#35612)

Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>

* docs: replace class component with hooks (ant-design#35613)

* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue

* docs(modal): replace class component with hooks

* docs: feat components TS demo (ant-design#34742)

* docs: add general components TS demo

* docs: add layout components TS demo

* docs: add navigation components TS demo

* docs: add data entry components TS demo

* chore(deps): add types for qs

* docs: add data display TS demo

* docs: add feedback components TS demo

* docs: add other components TS demo

* chore(deps): add types

* docs: unified demo code style

* docs: fix lint error

* docs: add demo TS type

* docs: fix demo TS type

* test: update snapshot

* docs: fix TS demo

* feat: update Rate character type

* docs: fix lint error

* feat: update Rate character type

* feat: update Rate character type

* fix: Remove Grid row and cell aria roles (ant-design#35616)

close ant-design#35549

* test: move test cases to `@testing/library` for Result (ant-design#35621)

* fix: incorrect position of picker popup (ant-design#35620)

Co-authored-by: yangpj17 <yangpj17@chianunicom.com>

close ant-design#35590

* feat: add-testing-lib (ant-design#35626)

* docs: Convert part demo to ts version (ant-design#35641)

* docs(badge): replace class component with hooks

* docs(button): replace class component with hooks

* docs(calendar): replace class component with hooks

* docs(card): replace class component with hooks

* docs(button): replace class component with hooks

* chore(deps): remove webpack devDependencies

* docs(cascader): replace class component with hooks

* docs(checkbox): replace class component with hooks

* docs(collapse): replace class component with hooks

* docs(comment): replace class component with hooks

* docs(descriptions): replace class component with hooks

* docs(config-provider): replace class component with hooks

* docs(date-picker): replace class component with hooks

* docs(drawer): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(dropdown): replace class component with hooks

* docs(empty): replace class component with hooks

* docs(grid): replace class component with hooks

* docs(input): replace class component with hooks

* docs(input-number): replace class component with hooks

* docs(demo): fix lint error

* docs(layout): replace class component with hooks

* docs(list): replace class component with hooks

* docs(mentions): replace class component with hooks

* docs: fix code review issue

* docs(modal): replace class component with hooks

* docs(pagination): replace class component with hooks

* docs(popconfirm): replace class component with hooks

* docs(popover): replace class component with hooks

* docs(progress): replace class component with hooks

* docs(rate): replace class component with hooks

* docs(radio): replace class component with hooks

* docs: jsx to TS demo

* test: improve Select test case (ant-design#35633)

* docs(mentions): fix debounce demo bug (ant-design#35653)

* chore(deps-dev): bump @types/react-resizable from 1.7.4 to 3.0.0 (ant-design#35658)

Bumps [@types/react-resizable](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-resizable) from 1.7.4 to 3.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-resizable)

---
updated-dependencies:
- dependency-name: "@types/react-resizable"
  dependency-type: direct:development
  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>

* test: refactor test cases of Timeline with testing library (ant-design#35654)

* test: refactor test cases of TimeLine

* fix: lint errors

* chore(deps-dev): bump react-intl from 5.25.1 to 6.0.1 (ant-design#35659)

Bumps [react-intl](https://github.com/formatjs/formatjs) from 5.25.1 to 6.0.1.
- [Release notes](https://github.com/formatjs/formatjs/releases)
- [Commits](https://github.com/formatjs/formatjs/compare/react-intl@5.25.1...react-intl@6.0.1)

---
updated-dependencies:
- dependency-name: react-intl
  dependency-type: direct:development
  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>

* chore: fix cheerio for enzyme fix (ant-design#35666)

* docs: 4.20.6 changelog (ant-design#35671)

* docs: 4.20.6 changelog

* docs: fix build

* test: Update snapshot

* refactor: align with popover (ant-design#35676)

* chore: short auto merge time

* chore: update issue check mirror (ant-design#35680)

* fix: division in less for Segmented (ant-design#35701)

* fix: division in less for Segmented

* fix: update

* chore: increase bundle size (ant-design#35709)

* docs: fix mistype (ant-design#35714)

* docs: update demo code (ant-design#35695)

* docs: update demo code

* chore: increase bundle size

* Revert "chore: increase bundle size"

This reverts commit 1c75e5a.

* fix: drawer can not ref form instance when open (ant-design#35706)

* fix: drawer can not ref form instance when open

* fix: test

* feat: div ref

* feat: test

* feat: test

* feat: test

* feat: test

* chore: lock stylelint (ant-design#35725)

* fix: Popover arrow style (ant-design#35717)

* feat: config provider support componentDisabled (ant-design#35718)

* feat: config provider support componentDisable

* test: update snapshot

* docs: update

* chore: code

* docs: componentDisabled version (ant-design#35730)

* test: Replace alert part test with testing lib (ant-design#35736)

Co-authored-by: chenkan1 <chenkan1@huya.com>

* chore(deps-dev): bump typescript from 4.6.4 to 4.7.2 (ant-design#35737)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.4 to 4.7.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.6.4...v4.7.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs(select): fix type  (ant-design#35726)

* fix: demo ts type

* mend

* Update select-users.md

* chore: move `@types/qs` from deps to devDeps (ant-design#35747)

* feat: Config provider pagination showSizeChanger (ant-design#35750)

* feat: support showSizeChanger

* test: test case

* fix: the ts wrong of card inteface (ant-design#35753)

* fix: the ts wrong of card inteface

* fix: add export cardproprs

* feat: add card type test

* docs(👍): update recommendation (ant-design#35758)

* docs: update recommendation

* Update recommendation.en-US.md

* docs: fix skeleton demo (ant-design#35760)

* refactor: Collapse replace expandIconPosition with logical position (ant-design#35770)

* refactor: change collapse to logic position

* test: Update snapshot

* chore: force trigger CI

* ci: use jest shard (ant-design#35622)

* refactor: bump rc-collapse to stable dom (ant-design#35781)

* chore: bump rc-collapse to stable dom

* chore: clean up

* test: Replace card component test with testing lib (ant-design#35751)

* test: Replace card component test with testing lib

* test: update the snapshot

* docs: add note to custom BackTop demo (ant-design#35625)

* docs: add note to custom BackTop demo

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>

* test: lock eslint-plugin-jest version for false positive

jest-community/eslint-plugin-jest#1128

* test: move test cases to @testing/library for Tabs (ant-design#35796)

* chore(deps): update dependency eslint-plugin-jest to ~26.4.0 (ant-design#35801)

* chore(deps): update dependency eslint-plugin-jest to ~26.4.0

* Update package.json

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: afc163 <afc163@gmail.com>

* test: move test cases to @testing/library for Image (ant-design#35806)

* docs: changelog for 4.20.7 (ant-design#35804)

* docs: changelog for 4.20.7

* chore: bump version to 4.20.7

* docs: update changelog

* refactor: Fix Dropdown nesting menu injection logic (ant-design#35810)

* refactor: Dependency Inversion

* test: update snapshot

* test: Update snapshot

* test: more

* fix: table dropdown logic

* fix: menu lint

* chore: upgrade to jest-image-snapshot 5.x (ant-design#35818)

* test: move test cases to @testing/library for Modal (ant-design#35785)

* test: move test cases to @testing/library for Modal

* update

* fix: test

* test: add test case for mouse position

* chore: revert

* fix: Progress type="line" strokeLinecap (ant-design#35822)

* docs: fix typo of Menu items code example (ant-design#35832)

* test: move test cases to @testing/library for Drawer (ant-design#35839)

* perf: active skeleton animated with transform (ant-design#35836)

* active skeleton animated with transform

* properties order fixed

* properties order fixed

* properties order fixed

Co-authored-by: afc163 <afc163@gmail.com>

* style: tweak Skeleton margin top style (ant-design#35848)

* docs: update FAQ titles

* test: move test cases to @testing/library for List (ant-design#35850)

* chore: bump rc-dialog & update snapshot

* fix: set jest shard to 2 (ant-design#35831)

* fix: drawer close twice children is undefined (ant-design#35853)

* fix: drawer close twice children is undefined

* fix: drawer close twice children is undefined

* chore: code

* fix: test

* test: update snapshot

* fix: remove extraneous space from rc-segmented version (ant-design#35863)

The extra spaces confuses third-party tooling

* feat: Progress steps support custom strokeColor for each step (ant-design#35855)

* feat: <Progress steps /> could accept string[] as strokeColor

close ant-design#35852
close ant-design#26858

* fix: tsx demo

* docs: add version column

* chore: stlye patch of statistic (ant-design#35874)

* chore: stlye patch of statistic

* test: Udpate snapshot

* test: replace Input part test with test lib (ant-design#35754)

* test: replace Input part test with test lib

* test: test input case

* test: update textarea case

Co-authored-by: z1399 <zhenggq@dtdream.com>
Co-authored-by: afc163 <afc163@gmail.com>

* refactor: pagination mini className (ant-design#35881)

* refactor: pagination mini cls

* test: update snapshot

* test: update snapshot

* chore: code clean

* chore: code clean

* test: update snapshot

* test: update snapshot

* refactor: Wave in React 18 StrictMode (ant-design#35889)

* feat: tabs support popupClassName (ant-design#35892)

* feat: tabs support popupClassName

* docs: update

* fix:border-style for inputNumber addon when rtl (ant-design#35876)

* chore(deps): update dependency @types/jest to v28 (ant-design#35907)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* ci: fix typo

* fix: 类型“FormListFieldData”上不存在属性“fieldKey”。(ant-design#35883) (ant-design#35884)

* fix: 类型“FormListFieldData”上不存在属性“fieldKey”。(ant-design#35883)

* add deprecated tag to fieldKey

* add changelog

* Revert "add changelog"

This reverts commit 2cc174f.

* chore: update changelog script (ant-design#35916)

* docs: add typography format version

* fix: remove important in radio style (ant-design#35920)

* fix: remove important in radio style

* chore: code clean

* docs: correct types (ant-design#35919)

* docs: correct types

* ++

Co-authored-by: afc163 <afc163@gmail.com>

* test: migrate part of Button tests (ant-design#35869)

* test: migrate part of Affix tests (ant-design#35860)

* docs: add changelog 4.21.0 (ant-design#35915)

* docs: add changelog 4.21.0

* Update CHANGELOG.en-US.md

Co-authored-by: Amumu <yoyo837@hotmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: Amumu <yoyo837@hotmail.com>

* docs: add

* Update CHANGELOG.en-US.md

* docs: fix

* docs: add

* docs: update

* docs: fix

* docs: remove 35407

Co-authored-by: Amumu <yoyo837@hotmail.com>

* Feat: support 'treeExpandAction' prop for TreeSelect (ant-design#35618)

* Feat: support 'treeExpandAction' prop for TreeSelect

* chore: bump rc-tree

* chore: fix lint

* fix: fix directory tree duplicate expandAction

* fix: fix directory tree duplicate expandAction

* fix: fix directory tree duplicate expandAction

* chore: add docs

Co-authored-by: zombiej <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>

* chore: bump bundle size of babel runtime

* docs: Update 4.21.0 changelog

* docs: fix tree demo (ant-design#35927)

* fix: Form.Item noStyle should not be affected by parent Form.Item (ant-design#35849)

* fix: Form.Item noStyle should not be affected by parent Form.Item

* test: update snapshot

* fix: status

* chore: code clean

* fix: modal and drawer

* test: fix lint

* chore: code clean

* refactor: noFormStyle

* chore: code clean

* revert: revert change in Form.Item

* chore: code clean

* test: replace test case with test library (ant-design#35925)

* test: replace test case with test library

* test: replace test case with test library

* test: update snapshots

* docs: clean up useless space

* test: refactor tree with testing lib (ant-design#35937)

* test: tree test

* test: clean up

* chore: bump rc-tree

* test: Update snapshot

* test: Update for react 18

* test: move test cases to testing lib (ant-design#35909)

* test: move test cases to testing lib (ant-design#35900)

* fix: menu items typings (ant-design#35790)

* Fix menu items typings

* add test case for menu item type checking

* fix: cubic-bezier should be animation-timing-function (ant-design#35943)

* chore: upgrade react-slick to 0.29.1 (ant-design#35959)

* chore: upgrade react-slick to 0.29.0

* Update package.json

* chore: fix code (ant-design#35949)

* Fix color generation for grey colors (ant-design#35954)

Co-authored-by: afc163 <afc163@gmail.com>

* test: move test cases to @testing/library for Typography (ant-design#35955)

* test: move test cases to @testing/library for Typography

* fix: waitFor for tooltip test

* fix: sleep to wait copy hide

* test: refactor focus test

* chore: Update it_IT.tsx (ant-design#35970)

Fix italian translation for Table.cancelSort key

* docs: Segmented API type (ant-design#35974)

* Update index.en-US.md

* Update index.zh-CN.md

* chore: fix typo

* chore: bump rc-dialog version (ant-design#35969)

* chore: bump rc-dialog version

* chore: trigger

* chore: trigger

* docs: RM peer conflict demo

* chore: bump deps version

* chore: bump ver

* chore: bump

* chore: bump

* chore: test

* chore: rm peer

* chore: clean all peer

* chor: bump rc-image

* fix: Button has no disabled style when link type (ant-design#35975)

Co-authored-by: MadCcc <1075746765@qq.com>

* fix: `DropdownProps` definition (ant-design#35990)

Co-authored-by: jhonebee <zhangjin19960908@gamil.com>
Co-authored-by: MadCcc <1075746765@qq.com>

* chore(deps-dev): bump stylelint from 14.8.3 to 14.9.0 (ant-design#35998)

Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.8.3 to 14.9.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint@14.8.3...14.9.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: update ts config (ant-design#36000)

* fix: Fixed the getContainer property in Image not reading the settings in ConfigProvider (ant-design#36002)

* fix: 35942

* test: 添加测试用例

* fix:

* fix:

* fix: missing semicolon (ant-design#36008)

* Update package.json

* docs: fix onChange description repeated twice (ant-design#36013)

* chore(deps): update dependency stylelint-config-standard to v26 (ant-design#36017)

* chore(deps): update dependency stylelint-config-standard to v26

* chore: ignore selector-not-notation rule

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: afc163 <afc163@gmail.com>

* test: move test cases to testing lib for Statistic (ant-design#36019)

Co-authored-by: afc163 <afc163@gmail.com>

* test: replace Table part test with test lib (ant-design#35989)

* test: replace Table part test with test lib

* test: replace table test with test library

* test: update snapshot

* test: replace last mount

* test: fix 18 testing

Co-authored-by: zombiej <smith3816@gmail.com>

* docs: add changelog 4.21.1 (ant-design#36022)

* docs: title is no loger supported by SubMenuType (ant-design#36037)

* docs: fix menu API table (ant-design#36043)

* docs: fix menu API table

* Update index.en-US.md

* docs: fix demos (ant-design#36040)

* docs: fix demos

* ++

* fix: fix incorrect form status with noStyle (ant-design#36054)

* fix: form status

* test: update test case

* docs: 4.21.2 (ant-design#36055)

* test: improve test cases for Statistic (ant-design#36034)

* test: move test cases to testing lib for Badge (ant-design#36033)

* fix:when props.value is not undefined, can't reset value and focus (ant-design#34728)

* fix: when props.value is not undefined, can't reset value and focus

* test: add test case

Co-authored-by: MadCcc <1075746765@qq.com>

* test: move test cases to @testing/library for Upload (ant-design#36024)

* test: move test cases to @testing/library for Upload

* refactor: use jest.fn to replace done logic

* test: sample of moving test to testing lib

* test: check for 17

* refactor: manual control timer for React18

* refactor: animateEnd for useless middle state snapshot for 'handle error'

Co-authored-by: zombiej <smith3816@gmail.com>

* fix: exporting Rule, FormListFieldData, FormListOperation from form (ant-design#34735)

* fix: exporting RefSelectProps from select (ant-design#34732)

* fix: Typescript - Tree component DirectoryTreeProps, missing Node Type (ant-design#36092)

* fix: edit DirectoryTreeProps

* test: add DirectoryTree type test

* fix: edit type

Co-authored-by: JaylanChen <JaylanChen@126.com>

* fix: Table customize filterDropdown with Menu should not block default selectable (ant-design#36098)

* fix: Table customize Menu should be selectable

* test: Add test case

* test: Update snapshow

* test: change to fakeTimer when error happens sometimes (ant-design#36102)

* docs(:sparkles:): release 4.21.3 (ant-design#36105)

* docs: add locale link in Calender (ant-design#36108)

close ant-design#36107 (comment)

* fix: exporting UploadFile from upload (ant-design#34733)

* fix: Skeleton active style in dark theme (ant-design#36116)

close ant-design#36114

* fix: Table multiple dropdown not closed (ant-design#36132)

* fix: Table dropdown can not close

* test: Test case

* test: cov

* chore: bump rc-util

* chore: reorder

* chore: bump rc-util

* chore: rm test

* chore: clean up

* fix: component.displayName To distinguish the environment (ant-design#36126)

Co-authored-by: afc163 <afc163@gmail.com>

* fix: repeat a css class in readOnly, which has been declared in rc-input-number (ant-design#36120)

Co-authored-by: afc163 <afc163@gmail.com>

* chore(deps): update dependency inquirer to v9 (ant-design#36121)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>

* chore(deps-dev): bump jsdom from 19.0.0 to 20.0.0 (ant-design#36133)

Bumps [jsdom](https://github.com/jsdom/jsdom) from 19.0.0 to 20.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](jsdom/jsdom@19.0.0...20.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-type: direct:development
  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>
Co-authored-by: afc163 <afc163@gmail.com>

* docs(Input): add proper type for `inputRef` (ant-design#36135)

* docs(Input): add proper type for `inputRef`

* docs: use `InputRef` instead of `ElementRef`

Co-authored-by: afc163 <afc163@gmail.com>

* style: enlarge draggable area for Slider handle (ant-design#36018)

* active skeleton animated with transform

* properties order fixed

* properties order fixed

* properties order fixed

* bigger dragable area for slider handle

* Update components/slider/style/index.less

Co-authored-by: afc163 <afc163@gmail.com>

* Update index.less

6px

Co-authored-by: afc163 <afc163@gmail.com>

* docs: update demo code (ant-design#36127) (ant-design#36143)

* fix: Dropdown with group menu can not close (ant-design#36148)

* test: test driven

* fix: Dropdown with Menu list group

* style: Code style optimization (ant-design#36144)

* style: code style optimization

* style: code style optimization

* style: code style optimization

* style: Remove methed of Array push (ant-design#36157)

* style: code style optimization

* style: code style optimization

* style: code style optimization

* style: code style optimization

* style: fix Button loading icon margin issue (ant-design#36168)

* style: fix Button loading icon margin issue

* test: update snapshot

* test: fix tsx demo error

* chore: prettier components (ant-design#36171)

* test: replace pagination test with test-library (ant-design#36178)

* refactor: performance optimization (ant-design#36177)

* style: code style optimization

* style: code style optimization

* style: code style optimization

* style: code style optimization

* fix: Code style optimization

* style: format

* Corrected grammar in comment in hooks.md (ant-design#36185)

* Fix breaks (ant-design#36186)

* Added type assertion so function no longer returns any/unknown

* Add type constraint since Object.keys is called on this value

* chore: fix Menu deprecated warning when item={undefined} (ant-design#36190)

* fix: type incompatibility in strict mode (ant-design#36189)

* fix: type incompatibility

* fix: type

* fix: Reset the last selection key (ant-design#34705)

* fix: reset last selection key

* reset last selection key when deselect

* fix: add test case

* fix: remove unused code

* fix: enzyme bug

* fix: update test

* styles: remove empty line

* fix: lint error

* test: migrate to testing-libary

* fix: xxx.simulate is not a function

* fix: lint error

* fix: use wrong

* fix: solved test not work

Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>

* fix: Upload listType="picture-card" select button when children is empty (ant-design#36196)

* fix: Upload listType="picture-card" select button should be hidden when children is empty

close ant-design#36183

* test: fix test case

* perf: unify regeneratorRuntime import path for bundle size (ant-design#36200)

* perf: unify regeneratorRuntime import path for bundle size

close ant-design#36198

* Update package.json

* Docs:  FAQ add explanation of null in controlled components. (ant-design#36082)

* docs: fix Chinese language grammar mistake in FAQ

* docs: FAQ add explanation of null in controlled components

* docs: update null in controlled components FAQ

* docs: update null in controlled components FAQ (add lost word)

* docs: null in controlled components FAQ optimization

* docs: FAQ add explanation of null in controlled components (English)

* docs: update faq docs

* docs: update faq docs(chinese)

* docs: optimize faq docs

* Update faq.en-US.md

* Update faq.en-US.md

* Update faq.en-US.md

* Update faq.zh-CN.md

* Update faq.en-US.md

Co-authored-by: shezhangzhang <chenkan@ChenKan-Mac.local>
Co-authored-by: MadCcc <1075746765@qq.com>

* chore: bump rc-util (ant-design#36210)

* fix: nested Table margin style (ant-design#36209)

* fix: nested Table margin style

* fix: tsx demo

* test: update snapshot

* style: fix Table expand icon align issue (ant-design#36215)

* docs: fix English FAQ title (ant-design#36222)

* docs: update valueStyle description (ant-design#36226)

close ant-design#36219

* chore: fix eslint warning and bisheng terminal log (ant-design#36220)

* chore: fix eslint warning

* chore: fix bisheng log

* Update basic.md

* docs: update Tabs demo code (ant-design#36217)

* docs:update demo code

* docs: update Tabs demo code

* docs: update Tabs demo code

* chore(deps-dev): bump @types/jest-image-snapshot from 4.3.2 to 5.1.0 (ant-design#36229)

Bumps [@types/jest-image-snapshot](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest-image-snapshot) from 4.3.2 to 5.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest-image-snapshot)

---
updated-dependencies:
- dependency-name: "@types/jest-image-snapshot"
  dependency-type: direct:development
  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>

* chore(deps): update dependency remark-cli to v11 (ant-design#36237)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: dev config (ant-design#36240)

* fix: popover arrow support custom color (ant-design#36241)

* refactor: wrap Wave with FC (ant-design#36248)

* refactor: wrap Wave with FC

* test: update test case

* docs: add 4.21.4 changelog (ant-design#36246)

* docs: add 4.21.4 changelog

* fix

* reset

* chore(deps-dev): bump cheerio from 1.0.0-rc.10 to 1.0.0-rc.12 (ant-design#36255)

Bumps [cheerio](https://github.com/cheeriojs/cheerio) from 1.0.0-rc.10 to 1.0.0-rc.12.
- [Release notes](https://github.com/cheeriojs/cheerio/releases)
- [Changelog](https://github.com/cheeriojs/cheerio/blob/main/History.md)
- [Commits](cheeriojs/cheerio@v1.0.0-rc.10...v1.0.0-rc.12)

---
updated-dependencies:
- dependency-name: cheerio
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: update Belarusian locale (ant-design#36265)

* Edited Belarusian locale:
 - Added missed entries
 - Fixed some mistakes

* test: update snapshot

Co-authored-by: Aliaksiej Razumaŭ <belarusaed@gmail.com>

* docs: update English sketch file link (ant-design#36269)

* docs: English sketch file links from communicatity

* Update resources.en-US.md

* style(Divider): replace fixed class name with variable (ant-design#36271)

* test: replace test case with test lib (ant-design#36276)

* style: fix Table shadow bug in nested situation (ant-design#36277)

close ant-design#36203

* test: Fix table empty test (ant-design#36290)

* chore: reduce css bundle size (ant-design#36307)

* fix: arrow compatibility (ant-design#36266)

* fix: arrow campatibility

* chore: code clean

* chore: rm useless style

* chore: code clean

* fix: use inset

* chore: bundlesize optimization

* chore: rm useless style

* chore: rm useless style

* fix: Fixed an error when the loading property of the Button component… (ant-design#36288)

* fix: Fixed an error when the loading property of the Button component was passed into null

* Update components/button/button.tsx

Obviously, this suggestion is more concise , thanks a lot

Co-authored-by: afc163 <afc163@gmail.com>

* Update components/button/button.tsx

* Update components/button/button.tsx

Co-authored-by: kejianfeng <kejianfeng@cvte.com>
Co-authored-by: afc163 <afc163@gmail.com>

* test: move test cases to testing lib for Spin (ant-design#36317)

* test: move test cases to testing lib for Spin

* fix: types

* fix: lint

* test: move test cases to testing lib for Switch (ant-design#36326)

* add

* test: wave

* fix: type

Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mykyta Velykanov <nikitavelykanov@gmail.com>
Co-authored-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: 黑雨 <wangning4567@163.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: Yanming Deng <cisolarix@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ron Šmeral <ron.smeral@gmail.com>
Co-authored-by: Ron Smeral <ron.smeral@merck.com>
Co-authored-by: dingkang <dingkang0458@gmail.com>
Co-authored-by: lalalazero <zzzero520@hotmail.com>
Co-authored-by: Karott <karott7@gmail.com>
Co-authored-by: Tony Wu <93302820+tonywu6@users.noreply.github.com>
Co-authored-by: miracles1919 <516571350@qq.com>
Co-authored-by: limingxin <906529775@qq.com>
Co-authored-by: ty888 <1506125048@qq.com>
Co-authored-by: zombiej <smith3816@gmail.com>
Co-authored-by: Yuki Zhang <foryuki@outlook.com>
Co-authored-by: vagusX <vagusX@users.noreply.github.com>
Co-authored-by: TrickyPi <33021497+TrickyPi@users.noreply.github.com>
Co-authored-by: 叶枫 <7971419+crazyair@users.noreply.github.com>
Co-authored-by: joson <373693643@qq.com>
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
Co-authored-by: 周晨阳 <59002875+ZZZCNY@users.noreply.github.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: 章鱼 <ryker.zy@gmail.com>
Co-authored-by: Bart Piotrowski <31428082+bartpio@users.noreply.github.com>
Co-authored-by: yykoypj <601924094@qq.com>
Co-authored-by: Zack Chang <73225408+jrr997@users.noreply.github.com>
Co-authored-by: Niyaz Akhmetov <axmet180@gmail.com>
Co-authored-by: 社长长 <ischenkan@outlook.com>
Co-authored-by: chenkan1 <chenkan1@huya.com>
Co-authored-by: zhao-huo-long <lijiuyi1995@outlook.com>
Co-authored-by: Cong Zhang <dancerphil1994@gmail.com>
Co-authored-by: Long Hao (龙濠) <45565100+LongHaoo@users.noreply.github.com>
Co-authored-by: Gabriel Haruki <gabrielharukisatoh@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Peach <scdzwyxst@gmail.com>
Co-authored-by: MrHadEnough <mrhadenough@users.noreply.github.com>
Co-authored-by: slotDumpling <67586451+slotDumpling@users.noreply.github.com>
Co-authored-by: Mehdi Salem Naraghi <momesana@gmail.com>
Co-authored-by: 郑国庆 <zhengshuai1993816@163.com>
Co-authored-by: z1399 <zhenggq@dtdream.com>
Co-authored-by: Luobo Zhang <zhang.pc3@gmail.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: chenxiang <597219320@qq.com>
Co-authored-by: 元凛 <xrkffgg@vip.qq.com>
Co-authored-by: kalykun <984757534@qq.com>
Co-authored-by: Shang Song <14830727+zggmd@users.noreply.github.com>
Co-authored-by: Heaven <18418010+NE-SmallTown@users.noreply.github.com>
Co-authored-by: MasaoBlue <16271994+MasaoBlue@users.noreply.github.com>
Co-authored-by: 龙风 <455947455@qq.com>
Co-authored-by: Christian Lechner <6638938+christian-lechner@users.noreply.github.com>
Co-authored-by: Umberto Gariggio <gariggio@gmail.com>
Co-authored-by: XIN HU <hoosin.git@gmail.com>
Co-authored-by: muxin <a2944938071@163.com>
Co-authored-by: 苯苯 <91561865+robothot@users.noreply.github.com>
Co-authored-by: jhonebee <zhangjin19960908@gamil.com>
Co-authored-by: Taisuke Hinata <hinatades@users.noreply.github.com>
Co-authored-by: csr632 <632882184@qq.com>
Co-authored-by: Humble <745653239@qq.com>
Co-authored-by: zhang lay <lay.zhang@shopee.com>
Co-authored-by: C. T. Lin <chentsulin@gmail.com>
Co-authored-by: Jaylan <JaylanChen@users.noreply.github.com>
Co-authored-by: JaylanChen <JaylanChen@126.com>
Co-authored-by: RainyLiao <90637572+RainyLiao@users.noreply.github.com>
Co-authored-by: Dennis Chen <dennisc695@icloud.com>
Co-authored-by: pfsu <wellssu0@gmail.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: Andrew Horn <arhorn@smcm.edu>
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
Co-authored-by: Dunqing <dengqing0821@gmail.com>
Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>
Co-authored-by: shezhangzhang <chenkan@ChenKan-Mac.local>
Co-authored-by: Tianyuan Zhang <tianyuan233.zhang@gmail.com>
Co-authored-by: Aliaksiej Razumaŭ <belarusaed@gmail.com>
Co-authored-by: Alan Deng <alanhaledc@gmail.com>
Co-authored-by: Jamki <13414367591@163.com>
Co-authored-by: kejianfeng <kejianfeng@cvte.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 383 changed files with 8,234 additions and 2,390 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
},
settings: {
react: {
version: '16.9',
version: 'detect',
},
polyfills: ['Promise', 'URL'],
'import/resolver': {
Expand Down
35 changes: 34 additions & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ timeline: true

| infrad version | antd version | update content | time |
| --- | --- | --- | --- |
| 4.21.3 | 4.21.4 | Synchronize the update of antd 4.21.4 version | 2022-07-04 |
| 4.21.1 | 4.21.2 | 1.Synchronize the update of antd 4.20.2 version<br/> 2.Temporarily removed QuickPicker | 2022-06-16 |
| 4.21.0 | 4.21.0 | 1.Synchronize the update of antd 4.21.0 version<br/> 2.Modify a part of UI of table header | 2022-06-09 |
| 4.21.0 | 4.21.0 | Synchronize the update of antd 4.21.0 version | 2022-06-09 |
| 4.20.4 | 4.20.4 | Synchronize the update of antd 4.20.4 version | 2022-05-13 |
| 4.20.0 | 4.20.0 | Synchronize the update of antd 4.20.0 version | 2022-04-26 |
| 4.19.5 | 4.19.5 | Synchronize the update of antd 4.19.5 version | 2022-04-07 |
Expand All @@ -35,6 +36,38 @@ if you have some problem, welcome to connect `taofeng.yang@shopee.com` or `lay.z

---

## 4.21.4

`2022-06-27`

- Table
- 🐞 Fix Table expand icon not align center. [#36215](https://github.com/ant-design/ant-design/pull/36215)
- 💄 Fix nested Table margin style. [#36209](https://github.com/ant-design/ant-design/pull/36209)
- 🐞 Fix Table filter dropdown with multiple subMenu may not closed. [#36132](https://github.com/ant-design/ant-design/pull/36132)
- 🐞 Table reset the last selection key when deselect or bulk operations. [#34705](https://github.com/ant-design/ant-design/pull/34705) [@Dunqing](https://github.com/Dunqing)
- 🐞 Fix Popover arrow color with custom `color` prop. [#36241](https://github.com/ant-design/ant-design/pull/36241) [@MadCcc](https://github.com/MadCcc)
- 🐞 Fix Upload `listType="picture-card"` select button not being hidden when children is empty. [#36196](https://github.com/ant-design/ant-design/pull/36196)
- 🐞 Fix Menu deprecated warning when `item={undefined}`. [#36190](https://github.com/ant-design/ant-design/pull/36190)
- 💄 Fix Button `loading` icon margin style lost. [#36168](https://github.com/ant-design/ant-design/pull/36168)
- 🐞 Fix Dropdown using Menu with group item can not close by click. [#36148](https://github.com/ant-design/ant-design/pull/36148)
- 💄 Enlarge dragable area for Slider handler. [#36018](https://github.com/ant-design/ant-design/pull/36018) [@slotDumpling](https://github.com/slotDumpling)
- 🐞 Fix: repeat a css class in readOnly, which has been declared in rc-input-number. [#36120](https://github.com/ant-design/ant-design/pull/36120) [@RainyLiao](https://github.com/RainyLiao)
- 💄 Fix Skeleton active background color in dark theme. [#36116](https://github.com/ant-design/ant-design/pull/36116)
- TypeScript
- 🤖 Fix type incompatibility. [#36189](https://github.com/ant-design/ant-design/pull/36189) [@Dunqing](https://github.com/Dunqing)
- 🤖 exporting `UploadFile` from `Upload`. [#34733](https://github.com/ant-design/ant-design/pull/34733) [@chentsulin](https://github.com/chentsulin)

## 4.21.3

`2022-06-17`

- 🐞 Fix Table customize `filterDropdown` with Menu should not break default `selectable`. [#36098](https://github.com/ant-design/ant-design/pull/36098)
- 🐞 Fix Input.Textarea cannot focus after click clear icon in controlled mode. [#34728](https://github.com/ant-design/ant-design/pull/34728) [@Pulset](https://github.com/Pulset)
- TypeScript
- 🤖 Tree.DirectoryTree supports generic DataNode type. [#36092](https://github.com/ant-design/ant-design/pull/36092) [@JaylanChen](https://github.com/JaylanChen)
- 🤖 Export `RefSelectProps` from `Select`. [#34732](https://github.com/ant-design/ant-design/pull/34732) [@chentsulin](https://github.com/chentsulin)
- 🤖 Export `FormRule`, `FormListFieldData`, `FormListOperation` from `Form`. [#34735](https://github.com/ant-design/ant-design/pull/34735) [@chentsulin](https://github.com/chentsulin)

## 4.21.2

`2022-06-15`
Expand Down
35 changes: 34 additions & 1 deletion CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ timeline: true

| infrad 版本号 | 对应 antd 版本号 | 更新内容 | 时间 |
| --- | --- | --- | --- |
| 4.21.3 | 4.21.4 | 同步 antd 4.21.4 版本的更新 | 2022-07-04 |
| 4.21.1 | 4.21.2 | 1.同步 antd 4.21.2 版本的更新<br/>2.暂时移除了 QuickPicker 组件 | 2022-06-16 |
| 4.21.0 | 4.21.0 | 1.同步 antd 4.21.0 版本的更新<br/>2.修改 table 表头部分 UI | 2022-06-09 |
| 4.21.0 | 4.21.0 | 同步 antd 4.21.0 版本的更新 | 2022-06-09 |
| 4.20.6 | 4.20.6 | 同步 antd 4.20.6 版本的更新 | 2022-05-30 |
| 4.20.4 | 4.20.4 | 同步 antd 4.20.4 版本的更新 | 2022-05-13 |
| 4.20.0 | 4.20.0 | 同步 antd 4.20.0 版本的更新 | 2022-04-26 |
Expand All @@ -36,6 +37,38 @@ timeline: true

---

## 4.21.4

`2022-06-27`

- Table
- 🐞 修复 Table 展开图标未居中的问题。[#36215](https://github.com/ant-design/ant-design/pull/36215)
- 💄 修复 Table 内嵌 Table 时的边距问题。[#36209](https://github.com/ant-design/ant-design/pull/36209)
- 🐞 Table 取消选择或批量操作时重置上一次选择的 key。[#34705](https://github.com/ant-design/ant-design/pull/34705) [@Dunqing](https://github.com/Dunqing)
- 🐞 修复 Table 过滤列表在某些场景下多级展开无法关闭的问题。[#36132](https://github.com/ant-design/ant-design/pull/36132)
- 🐞 修复 Upload `listType="picture-card"` 当 children 为空时上传文件按钮没有隐藏的问题。[#36196](https://github.com/ant-design/ant-design/pull/36196)
- 🐞 修复 Popover 自定义 `color` 时箭头颜色问题。[#36241](https://github.com/ant-design/ant-design/pull/36241) [@MadCcc](https://github.com/MadCcc)
- 🐞 修复 Menu `item={undefined}` 时会有废弃警告的问题。[#36190](https://github.com/ant-design/ant-design/pull/36190)
- 💄 修复 Button `loading` 图标的间距丢失的问题。[#36168](https://github.com/ant-design/ant-design/pull/36168)
- 🐞 修复 Dropdown 中 Menu 分组下的 Item 点击不会关闭的问题。[#36148](https://github.com/ant-design/ant-design/pull/36148)
- 💄 优化 Slider 拖拽手柄的可交互区域。[#36018](https://github.com/ant-design/ant-design/pull/36018) [@slotDumpling](https://github.com/slotDumpling)
- 🐞 修复重复添加 readOnly 的 css 类名,它已在 rc-input-number 中被声明了。[#36120](https://github.com/ant-design/ant-design/pull/36120) [@RainyLiao](https://github.com/RainyLiao)
- 💄 修复 Skeleton 在 `active` 时的背景色样式。[#36116](https://github.com/ant-design/ant-design/pull/36116)
- TypeScript
- 🤖 修复 TreeSelect `switcherIcon` 类型不兼容。[#36189](https://github.com/ant-design/ant-design/pull/36189) [@Dunqing](https://github.com/Dunqing)
- 🤖 从 `Upload` 导出类型 `UploadFile`[#34733](https://github.com/ant-design/ant-design/pull/34733) [@chentsulin](https://github.com/chentsulin)

## 4.21.3

`2022-06-17`

- 🐞 修复 Table 自定义 `filterDropdown` 中使用 Menu 会被修改默认 `selectable` 的问题。[#36098](https://github.com/ant-design/ant-design/pull/36098)
- 🐞 修复 Input.Textarea 受控时点击清除图标后无法聚焦的问题。[#34728](https://github.com/ant-design/ant-design/pull/34728) [@Pulset](https://github.com/Pulset)
- TypeScript
- 🤖 修复 Tree.DirectoryTree 不支持泛型的问题。[#36092](https://github.com/ant-design/ant-design/pull/36092) [@JaylanChen](https://github.com/JaylanChen)
- 🤖 从 `Select` 导出类型 `RefSelectProps`[#34732](https://github.com/ant-design/ant-design/pull/34732) [@chentsulin](https://github.com/chentsulin)
- 🤖 从 Form 导出类型 `FormRule``FormListFieldData``FormListOperation`[#34735](https://github.com/ant-design/ant-design/pull/34735) [@chentsulin](https://github.com/chentsulin)

## 4.21.2

`2022-06-15`
Expand Down
4 changes: 2 additions & 2 deletions components/_util/ActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import useState from 'rc-util/lib/hooks/useState';
import * as React from 'react';
import Button from '../button';
import type { LegacyButtonType, ButtonProps } from '../button/button';
import type { ButtonProps, LegacyButtonType } from '../button/button';
import { convertLegacyProps } from '../button/button';

export interface ActionButtonProps {
Expand Down
2 changes: 1 addition & 1 deletion components/_util/__tests__/scrollTo.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import scrollTo from '../scrollTo';
import { sleep } from '../../../tests/utils';
import scrollTo from '../scrollTo';

describe('Test ScrollTo function', () => {
let dateNowMock;
Expand Down
2 changes: 1 addition & 1 deletion components/_util/__tests__/transButton.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { mount } from 'enzyme';
import React from 'react';
import TransButton from '../transButton';

describe('transButton component', () => {
Expand Down
2 changes: 1 addition & 1 deletion components/_util/__tests__/useSyncState.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { mount } from 'enzyme';
import React from 'react';
import useSyncState from '../hooks/useSyncState';

describe('Table', () => {
Expand Down
65 changes: 5 additions & 60 deletions components/_util/__tests__/util.test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
/* eslint-disable class-methods-use-this */
import raf from 'rc-util/lib/raf';
import React from 'react';
import { mount } from 'enzyme';
import KeyCode from 'rc-util/lib/KeyCode';
import raf from 'rc-util/lib/raf';
import React from 'react';
import { sleep } from '../../../tests/utils';
import getDataOrAriaProps from '../getDataOrAriaProps';
import delayRaf from '../raf';
import { isStyleSupport } from '../styleChecker';
import {
throttleByAnimationFrame,
throttleByAnimationFrameDecorator,
} from '../throttleByAnimationFrame';
import getDataOrAriaProps from '../getDataOrAriaProps';
import Wave from '../wave';
import TransButton from '../transButton';
import { isStyleSupport } from '../styleChecker';
import { sleep } from '../../../tests/utils';

describe('Test utils function', () => {
describe('throttle', () => {
Expand Down Expand Up @@ -140,60 +139,6 @@ describe('Test utils function', () => {
});
});

describe('wave', () => {
it('bindAnimationEvent should return when node is null', () => {
const wrapper = mount(
<Wave>
<button type="button" disabled>
button
</button>
</Wave>,
)
.find(Wave)
.instance();
expect(wrapper.bindAnimationEvent()).toBe(undefined);
});

it('bindAnimationEvent.onClick should return when children is hidden', () => {
const wrapper = mount(
<Wave>
<button type="button" style={{ display: 'none' }}>
button
</button>
</Wave>,
)
.find(Wave)
.instance();
expect(wrapper.bindAnimationEvent()).toBe(undefined);
});

it('bindAnimationEvent.onClick should return when children is input', () => {
const wrapper = mount(
<Wave>
<input />
</Wave>,
)
.find(Wave)
.instance();
expect(wrapper.bindAnimationEvent()).toBe(undefined);
});

it('should not throw when click it', () => {
expect(() => {
const wrapper = mount(
<Wave>
<div />
</Wave>,
);
wrapper.simulate('click');
}).not.toThrow();
});

it('should not throw when no children', () => {
expect(() => mount(<Wave />)).not.toThrow();
});
});

describe('TransButton', () => {
it('can be focus/blur', () => {
const ref = React.createRef();
Expand Down
57 changes: 53 additions & 4 deletions components/_util/__tests__/wave.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import { mount } from 'enzyme';
import Wave from '../wave';
import ConfigProvider from '../../config-provider';
import React from 'react';
import mountTest from '../../../tests/shared/mountTest';
import { sleep } from '../../../tests/utils';
import { render, sleep } from '../../../tests/utils';
import ConfigProvider from '../../config-provider';
import Wave from '../wave';

describe('Wave component', () => {
mountTest(Wave);
Expand Down Expand Up @@ -148,4 +148,53 @@ describe('Wave component', () => {
expect(styles[0].getAttribute('nonce')).toBe('YourNonceCode');
wrapper.unmount();
});

it('bindAnimationEvent should return when node is null', () => {
const ref = React.createRef();
render(
<Wave ref={ref}>
<button type="button" disabled>
button
</button>
</Wave>,
);
expect(ref.current?.bindAnimationEvent()).toBe(undefined);
});

it('bindAnimationEvent.onClick should return when children is hidden', () => {
const ref = React.createRef();
render(
<Wave ref={ref}>
<button type="button" style={{ display: 'none' }}>
button
</button>
</Wave>,
);
expect(ref.current?.bindAnimationEvent()).toBe(undefined);
});

it('bindAnimationEvent.onClick should return when children is input', () => {
const ref = React.createRef();
render(
<Wave ref={ref}>
<input />
</Wave>,
);
expect(ref.current?.bindAnimationEvent()).toBe(undefined);
});

it('should not throw when click it', () => {
expect(() => {
const wrapper = mount(
<Wave>
<div />
</Wave>,
);
wrapper.simulate('click');
}).not.toThrow();
});

it('should not throw when no children', () => {
expect(() => mount(<Wave />)).not.toThrow();
});
});
2 changes: 1 addition & 1 deletion components/_util/motion.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CSSMotionProps, MotionEventHandler, MotionEndEventHandler } from 'rc-motion';
import type { CSSMotionProps, MotionEndEventHandler, MotionEventHandler } from 'rc-motion';
import type { MotionEvent } from 'rc-motion/lib/interface';
import { tuple } from './type';

Expand Down
2 changes: 1 addition & 1 deletion components/_util/scrollTo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import raf from 'rc-util/lib/raf';
import getScroll, { isWindow } from './getScroll';
import { easeInOutCubic } from './easings';
import getScroll, { isWindow } from './getScroll';

interface ScrollToOptions {
/** Scroll container, default as window */
Expand Down
2 changes: 1 addition & 1 deletion components/_util/transButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
* This helps accessibility reader to tread as a interactive button to operation.
*/
import * as React from 'react';
import KeyCode from 'rc-util/lib/KeyCode';
import * as React from 'react';

interface TransButtonProps extends React.HTMLAttributes<HTMLDivElement> {
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
Expand Down
9 changes: 8 additions & 1 deletion components/_util/wave.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { updateCSS } from 'rc-util/lib/Dom/dynamicCSS';
import { composeRef, supportRef } from 'rc-util/lib/ref';
import * as React from 'react';
import { forwardRef } from 'react';
import type { ConfigConsumerProps, CSPConfig } from '../config-provider';
import { ConfigConsumer, ConfigContext } from '../config-provider';
import raf from './raf';
Expand Down Expand Up @@ -31,7 +32,7 @@ export interface WaveProps {
children?: React.ReactNode;
}

export default class Wave extends React.Component<WaveProps> {
class InternalWave extends React.Component<WaveProps> {
static contextType = ConfigContext;

private instance?: {
Expand Down Expand Up @@ -226,3 +227,9 @@ export default class Wave extends React.Component<WaveProps> {
return <ConfigConsumer>{this.renderWave}</ConfigConsumer>;
}
}

const Wave = forwardRef<InternalWave, WaveProps>((props, ref) => (
<InternalWave ref={ref} {...props} />
));

export default Wave;
Loading

0 comments on commit bc97d28

Please sign in to comment.