Skip to content

Commit

Permalink
Synchronize the update of antd 4.22.6 version (#85)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: afc163 <[email protected]>

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

Co-authored-by: afc163 <[email protected]>

* 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 <[email protected]>

* 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

* fix: Radio.Group focus and blur should work (ant-design#36041)

* 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 <[email protected]>

* feat: Form support `setFieldValue` (ant-design#36058)

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

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

Co-authored-by: afc163 <[email protected]>

* 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 <[email protected]>

* 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] <[email protected]>

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

* 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 <[email protected]>

* 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 <[email protected]>

* Update index.less

6px

Co-authored-by: afc163 <[email protected]>

* 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)

* feat: add si_LK locale (ant-design#36149)

* දින තේරුම සකස් කිරීම

* චීන ප්‍රලේඛනය යාවත්කාල කිරීම

* ඉංග්‍රීසි ප්‍රලේඛනය යාවත්කාල කිරීම

* තවත් දත්ත ඇතුල් කිරීම

* දින දසුනට භාෂාව යෙදීම

* ප්‍රධාන දේශීයකරණ සංරචකය යෙදීම

* සැපයුම්කරු සඳහා ගොනුව යෙදීම

* කාලය තේරීමට අදාළ සංරචකය යෙදීම

* යෝජනාව ඇතුළු කෙරිණි

Co-authored-by: Amumu <[email protected]>

* නව ඇසුරුමට වෙනස් කළා

* ගොනුව යාවත්කාල කෙරිණි

Co-authored-by: Amumu <[email protected]>

* fix: fix snapshot after si_LK locale is merged (ant-design#36181)

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: MadCcc <[email protected]>

* 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)

* style: Skeleton.Button square shape style (ant-design#36123)

* refactor: Skeleton.Button square shape style

the Button's square shape style is same as Avator's that its width is equal to height,
and the old square shape become the default shape that its width is double size to height.

* fix: `ButtonShapeType` type annotation

* 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] <[email protected]>

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] <[email protected]>

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ŭ <[email protected]>

* 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 <[email protected]>

* Update components/button/button.tsx

* Update components/button/button.tsx

Co-authored-by: kejianfeng <[email protected]>
Co-authored-by: afc163 <[email protected]>

* 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

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

* test: update snapshot

* test: update snapshot

* fix: checkbox should be disabled by form (ant-design#36345)

* fix: checkbox should be disabled by form

* chore: code clean

* test: update snapshot

* chore: snapshot

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

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

* fix: wait for animation

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

* test: replace layout test case with test lib

* test: fix react 18

* test: clean up

Co-authored-by: zombiej <[email protected]>

* docs: v4.21.5 (ant-design#36353)

* docs: v4.21.5

* chore: add try time

* chore: update changelog

* chore(deps): update dependency eslint-plugin-unicorn to v43 (ant-design#36350)

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

* style: Radio focus shadow should be transparency (ant-design#36335)

* fix: ErrorList shaking (ant-design#36358)

* fix: ErrorList shaking

* fix: React 18 test case

* docs: replace lib with es (ant-design#36367)

* feat: Space support align stretch (ant-design#36310)

* feat/Space-component-support-align-stretch: support align to stretch

Signed-off-by: Chang Wei <[email protected]>

* feat/Space-component-support-align-stretch: update document of zh-CN and en-US

Signed-off-by: Chang Wei <[email protected]>

* feat/Space-component-support-align-stretch: update demo

Signed-off-by: Chang Wei <[email protected]>

* feat/Space-component-support-align-stretch: update snapshot by command `npm test -- components/space -u`

Signed-off-by: Chang Wei <[email protected]>

* fix: Table hover perf (ant-design#36383)

* fix: correct border radius when table has title (ant-design#36384)

* style: fix size of close icon on Modal header (ant-design#36309)

* fix: update default.less, set the @modal-header-close-size to @modal-header-title-line-height + 2 * @modal-header-padding-vertical to keep the close icon in the center of vertical

Signed-off-by: Chang Wei <[email protected]>

* fix: update variable.less, set the @modal-header-close-size to @modal-header-title-line-height + 2 * @modal-header-padding-vertical to keep the close icon in the center of vertical

Signed-off-by: Chang Wei <[email protected]>

* fix: update compact.less, set the @modal-header-close-size to @modal-header-title-line-height + 2 * @modal-header-padding-vertical to keep the close icon in the center of vertical

Signed-off-by: Chang Wei <[email protected]>

* Update index.en-US.md (ant-design#36400)

Fixed a typo

* docs: fix customize calendar example (ant-design#36356)

* docs: fix customize calendar example

* test: changed calendar snapshot

Co-authored-by: lico <[email protected]>

* docs(Typography): translate docs from English to Chinese (ant-design#36417)

* fix: fix table container z-index (ant-design#36420)

* fix: fix wrong color of date picker with status set (ant-design#35685)

* fix: fix wrong color of date picker with status set

* Update status.less

Co-authored-by: afc163 <[email protected]>

* feat: Update Doc (ant-design#36437)

Co-authored-by: meng.jia <[email protected]>

* docs(Typography): fix `editable.onChange` parameter (ant-design#36443)

* fix: Upload item removed should keep status className (ant-design#36439)

* fix: Upload item removed should keep status className

* add test case

* test: fix act warning

* revert act test

* test: update snapshot

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

面包屑部分, "是"应该改为"时"

* fix: breadcrumb seperators hidden when used in list (ant-design#36448)

* style: fix Skeleton active lost border-radius in Safari (ant-design#36445)

* style: fix Skeleton active lost border-radius in Safari

* perf: reduce skeleton css bundle size

* chore: fix bundle size limit

* chore: fix active typing

* docs: 4.21.6 changelog (ant-design#36455)

* feat: Add support to Skeleton, which allow deployer use custom node as prop. (ant-design#36441)

* feat: Skeleton component supports for custom node

* fix: Clear redundant code

* refactor: Remove changes in package.json

* test: Update the snapshot of Skeleton demo

* Update components/skeleton/demo/element.md

Co-authored-by: afc163 <[email protected]>

Co-authored-by: afc163 <[email protected]>

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

fix typo in useWatch.md

* docs: update index.zh-CN.md (ant-design#36471)

去掉文案描述中多的标点

* docs: moment version mismatched issue (ant-design#36473)

ant-design#36465 (comment)

* chore: bump mentions (ant-design#36479)

* fix: Select with percent width leaves unexpected height in Form (ant-design#36484)

* ci: add conch msg (ant-design#36481)

* ci: add conch msg

* Update release-helper.yml

* fix: tooltip cannot close on disabled Radio (ant-design#36483)

* fix: tooltip cannot close on disabled Radio

* test: add test

* ci: split notice (ant-design#36495)

* style: Table expandIcon style when column is fixed and ellipsis (ant-design#36496)

close ant-design#36485

* docs: simplified `Layout` component sample code (ant-design#36497)

the component example code expands to take up the entire monitor screen and is not well read

* chore: bump rc-tooltip (ant-design#36501)

* feat: add Form.Item.useStatus (ant-design#36486)

* feat: add useFormItemStatus

* chore: code clean

* docs: update example

* refactor: api change

* docs: fix typo

* docs: update docs

* docs: udpate

* chore: add warning

* test: add test case

* chore: update warning

* chore: code clean

* test: fix test case

* fix: SVG Upload Preview Error (ant-design#36402)

* Update utils.tsx

* style: unify img styling

Unify the styling  of img attribute setting.

* test: add previewImage test for svg file

Add previewImage test for SVG upload

* fix: remove charset

Remove charset in data url for text content.

* test: fix test

* fix: typo

* fix: correct patching for svg upload error

* fix: correct patching for svg upload error

* test: update test

* fix: fixed the non draggable element did not hide the draggable icon (ant-design#36511)

fix ant-design#33708

* docs: update select documentation

* refactor: move popconfirm content out (ant-design#36530)

* refactor: move popconfirm content out

* fix: lint

* test: update snapshot

* chore: update .gitignore (ant-design#36534)

* add Modal @modal-border-radius less variable (ant-design#36527)

* add Modal @modal-border-radius less variable

* fix:  add less variable

* chore(deps): update dependency eslint-plugin-markdown to v3 (ant-design#36560)

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

* fix: form disabeld support Upload (ant-design#36573)

Co-authored-by: ranrui.cwj <[email protected]>

* docs: changelog for 4.21.7 (ant-design#36572)

* docs: changelog for 4.21.7

* chore: bump version to 4.21.7

* docs: update changelog

* docs: append a new changelog

* ci: fix publish (ant-design#36580)

* fix: Form validate message shaking (ant-design#36575)

* refactor: move component out

* refactor: clean up code

* chore: stable it

* chore: back of container

* chore: adjust leave motion

* test: update snapshot

* chore: update motion logic

* fix: list start motion

* test: update snapshot

* test: update snapshot

* test: test for marginBottom

* docs: menu faq (ant-design#36604)

* docs: menu faq

* docs: patch codesandbox

* style: fix Table tree data ellipsis style problem (ant-design#36608)

close ant-design#36583

* style: fix Table extra shadow and scrollbar when all columns are fixed

Co-authored-by: weiwang <[email protected]>

* feat: Replace input-number part test with testing lib (ant-design#36080)

* feat: Replace input-number part test with testing lib

* feat: update rc-input-number version

* test: move test cases to testing lib for Collapse (ant-design#36227)

* test: move test cases to testing lib for Collapse

* chore: remove useless file

* fix: react 18 concurrent

* chore: remove useless file

* docs: tabpane add `disabled` (ant-design#36634)

close ant-design#36610

* docs: faq for internal API (ant-design#36643)

* Revert "feat: Space support align stretch (ant-design#36310)" (ant-design#36650)

This reverts commit bfa8aae.

* fix(Tree): DraggableFn params type (ant-design#36648)

* fix(Tree): DraggableFn params type

* chore: add blank line

* test: add typ test for draggable Fn

* test: add typ test for draggable Fn

Co-authored-by: tianyuan233 <[email protected]>

* fix(modal):  Modal.xxx onCancel close argument is not a function  (ant-design#36600)

* fix(modal):  fix the error of `onCancel` parameter of modal returned by `useModal`

resolve: 36581

ref: ant-design#36581 (comment)

* test(confirm): 补充 modal 测试用例

* test(modal): 添加测试用例

* Revert "fix(modal):  fix the error of `onCancel` parameter of modal returned by `useModal`"

This reverts commit e4fcb3e.

* fix(modal): fix modal onOk/onCancel method is not a valid function when there is a close parameter

closed: ant-design#36581

* chore: cancel the introduction of `noop` from third-party library

* chore: write React.ChangeEvent<E> once (ant-design#36644)

* feat: Tree/TreeSelect `switcherIcon` support more parameter in argument (ant-design#36651)

* docs: renew Select dropdownRender demo and FAQ  (ant-design#36665)

* docs: renew Select dropdownRender FAQ and demo

* chore: update snapshot

* chore: fix Select demo tsc

* chore: fix Select demo tsc

* test: move-test-cases-to-testing-lib-for-Radio (ant-design#36664)

* test: move-test-cases-to-testing-lib-for-Radio

* update toMatchSnapshot

Co-authored-by: ranrui.cwj <[email protected]>

* feat: Typography `ellipsis.tooltip` could be a object  (ant-design#36099)

* feat: add tooltipProps

* feat: doc

* feat: props

* feat: props

* feat: props

* feat: docs

* feat: review

* feat: add tooltipProps

* feat: doc

* feat: props

* feat: props

* feat: props

* feat: docs

* feat: review

* Revert "fix: Upload item removed should keep status className (ant-design#36439)" (ant-design#36682)

This reverts commit cebbe23.

* chore: resolve conflict of feature merge master

* refactor: Drawer refactor (ant-design#36672)

* chore: back part of styl

* chore: all basic

* test: part test case

* test: part test case

* test: more test case

* test: update snapshot

* test: demo test support

* test: update snapshot

* chore: adjust mock logic to inject on rc-drawer instead

* test: more snapshot

* chore: adjust pos

* chore: back of render

* test: drawer demo extends test

* chore: prefer using type-compatible-assigning over using type-assertion (ant-design#36694)

* chore: update the PULL_REQUEST_TEMPLATE (ant-design#36700)

* chore: Support deprecated version warning (ant-design#36701)

* docs: fix Menu api layout (ant-design#36697)

Co-authored-by: zhanghaoqiang <[email protected]>

* fix: Upload item removed should keep status className (ant-design#36706)

* fix: not blink of remove file

* test: test case of remove

* chore: refine getScroll internal signature and some assertion (ant-design#36695)

* chore: refine getScroll internal signature and some assertion

* fix: for mock scenario to passing tests

* docs: add changelog 4.22.0 (ant-design#36699)

* docs: add changelog 4.22.0

* docs: update package

* docs: update

* Update CHANGELOG.zh-CN.md

Co-authored-by: MadCcc <[email protected]>

* Update CHANGELOG.en-US.md

Co-authored-by: MadCcc <[email protected]>

* docs: update

* Update CHANGELOG.en-US.md

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <[email protected]>

* Update CHANGELOG.en-US.md

Co-authored-by: MadCcc <[email protected]>
Co-authored-by: afc163 <[email protected]>

* chore: 替换 bundlesize 为 size-limit (ant-design#36712)

* chore: 替换 bundlesize 为 size-limit

* 恢复 bundlesize

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

* test: relpace test case with test library

* test: fix test case

* test: replace snapshot

Co-authored-by: 二货机器人 <[email protected]>

* ci: 添加 size-limit 的 workflows (ant-design#36721)

* fix: Drawer width with ptg (ant-design#36729)

* fix: Drawer width with ptg

* test:Update snapshot

* docs: 4.22.1 changelog (ant-design#36732)

* fix: Not work in old browser (ant-design#36748)

* fix: Drawer contentWrapperStyle logic

* fix: Update style

* test: Update snapshot

* test: More test case

* chore: collapse title text auto width (ant-design#36761)

* chore: collapse title text auto width

* test: fix mock snapshot

* docs: 4.22.2 changelog (ant-design#36764)

* docs: 4.22.2 changelog

* docs: more changelog

* fix: fix row in flex layout size cal (ant-design#36770)

* docs: Form disabled version (ant-design#36760)

* docs: Form disabled version

* test: update snapshot

* fix: Form vertical with span row (ant-design#36800)

* fix: form vertical with span

* test: update snapshot

* chore(deps): update dependency size-limit to v8 (ant-design#36803)

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

* chore(deps): update dependency @size-limit/file to v8 (ant-design#36802)

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

* fix: upload list item flashes after being removed in react18 (ant-design#36801)

* Fix custom less variable being overwritten (ant-design#36805)

* docs: add changelog 4.22.3 (ant-design#36812)

* chore: clean Drawer ts def (ant-design#36823)

* docs: Add tag info (ant-design#36843)

* style(drawer): fix drawer nesting style pollution (ant-design#36845)

Co-authored-by: eason.ym <[email protected]>

* test: move test cases to testing-library for Skeleton (ant-design#36856)

* refactor: rewrite header and footer by FunctionComponent (ant-design#36851)

* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* docs: Tech TS params usage (ant-design#36865)

* fix: strong type (ant-design#36868)

* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* fix: strong type

* chore: Make `data-${string}` undefinable (ant-design#36858)

* refactor: rewrite IconDisplay & PicSearcher & Category by FunctionComponent (ant-design#36876)

* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* fix: strong type

* refactor: rewrite IconDisplay & PicSearcher & Category by FunctionComponent

* style: formatting

* Create disscustion-open-check.yml

* fix(Table): onChange `sorter` param types (ant-design#36710)

* fix(types): fixes `sorter` param types

* chore: add test case

* Update type.test.tsx

* Update type.test.tsx

* test: Replace slider part test with testing lib (ant-design#36888)

* chore: upgrade rc-mentions to v1.9.1 (ant-design#36898)

* pref: add useCallback/useMemo (ant-design#36877)

* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* fix: strong type

* refactor: rewrite IconDisplay & PicSearcher & Category by FunctionComponent

* style: formatting

* pref: add useCallback/useMemo

* style: button focus style should not stay after click (ant-design#36902)

:focus => :focus-visible

close ant-design#36896

* style: reduce some css code (ant-design#36904)

* test: move test cases to testing lib for Progress (ant-design#36826)

Co-authored-by: gaokaifei <[email protected]>

* refactor: use typescript refactor javascript (ant-design#36907)

* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* fix: strong type

* refactor: rewrite IconDisplay & PicSearcher & Category by FunctionComponent

* style: formatting

* pref: add useCallback/useMemo

* refactor: use typescript refactor javascript

* fix: remove string

* fix: fix eslint

* fix: testing act error (ant-design#36915)

* test: switch act from react-dom/test-utils to testing-library/react

* test: fix jest.runAllTimers usage with act

Co-authored-by: ian.xufeng <[email protected]>

* feat(Avatar): add `onClick` prop (ant-design#36940)

* test: change act import from utils use act wrap timer and not wrap fireEvent (ant-design#36921)

Co-authored-by: ian.xufeng <[email protected]>

* chore: disable jest/no-standalone-expect (ant-design#36942)

* docs: upgrade codesandbox to react 18 (ant-design#36951)

* docs(:sparkles:): release 4.22.4 (ant-design#36952)

* docs: update changelog date

* do'c's):add onChange props for useFormItemStatus description code (ant-design#36929)

* fix(docs):fix useFormItemStatus description code

* fix():修复CR意见

* fix: Drawer zIndex (ant-design#36958)

* docs: add changelog for ant-design#36958

* test: refactor autocomplete test with screen and userEvent (ant-design#36953)

* AutoComplete(test): refactor custom input autocomplete with userEvent and screen

* AutoComplete(test): refactor dataSource is object array with screen and userEvent

* AutoComplete(test): update file name to tsx and refactor with screen

* AutoComplete(test): option test refactor

* AutoComplete(test): className test refactor

* remove fireEvent

* ignore ts error

* disable no-console

Co-authored-by: ian.xufeng <[email protected]>

* test: replace notification part test with testing lib (ant-design#36924)

* test: replace Calendar part test with testing lib (ant-design#36927)

* test: replace message part test with testing lib (ant-design#36923)

* test: Adjust Drawer test case (ant-design#36964)

* chore: fix riddle demo (ant-design#36965)

* fix: Upload in React 18 sync problem (ant-design#36968)

* fix: sync flush

* test: test case

* test: fix deps

* chore: update release-helper workflow

* style(Select): error border exclueds pagination (ant-design#36972)

Co-authored-by: hydraZty <[email protected]>

* feat: Form add defaultValidateMessages.i18n az_AZ language ant-design#23369 (ant-design#36967)

* test: migrate part of Descriptions tests (ant-design#36970)

* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* fix: strong type

* refactor: rewrite IconDisplay & PicSearcher & Category by FunctionComponent

* style: formatting

* pref: add useCallback/useMemo

* refactor: use typescript refactor javascript

* fix: remove string

* fix: fix eslint

* test: migrate part of Descriptions tests

* test: migrate part of Descriptions tests

* test: migrate part of Descriptions tests

* fix: eslint error fix (ant-design#36976)

* chore: update image demo snapshot

* style: fix Progress tail position (ant-design#36996)

* style(Popover): remove incorrect box-shadow (ant-design#37030)

* docs: fix useWatch type error (ant-design#37013)

* chore(deps-dev): bump stylelint-config-standard from 26.0.0 to 27.0.0 (ant-design#37022)

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

---
updated-dependencies:
- dependency-name: stylelint-config-standard
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

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

* test: migrate part of Mentions tests (ant-design#36998)

* test: migrate part of Popover tests (ant-design#36997)

* docs: add 4.22.5 changelog (ant-design#37049)

* add 4.22.5 changelog

* fix

* chore: fix rtl cannot revert in Safari (ant-design#37052)

close ant-design#37035

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

* test: replace test case with test lib

* test: Update test case to make more sense

* chore: trigger ci

* test: rm firstChild

Co-authored-by: 二货机器人 <[email protected]>

* test: migrate part of TimePicker tests (ant-design#37055)

* test: migrate part of TimePicker tests

* test: test clearIcon

* test: migrate part of TimePicker tests

Co-authored-by: 二货机器人 <[email protected]>

* test: move test cases to testing-library for DropDown (ant-design#37003)

* temp

* fix: mock esmodule default for Dropdown

* test: move test cases to testing-library for DropDown

* chore: remove console

* fix: snapshot test

* refactor: jest mock improvement

* chore: post script includes current info (ant-design#37056)

* chore: release script includes current info

* chore: more issue

* feat: replace testing-lib(replace .js to .ts) (ant-design#37042)

* test: move test cases to testing-library for Grid (ant-design#37057)

* test: move test cases to testing-library for Grid

* fix: test when typeof gutter is object array in large screen

* Revert "fix(Table): onChange `sorter` param types (ant-design#36710)"

This reverts commit 9e7e32b.

* docs: update 4.0 sketch file link (ant-design#37085)

* docs: update 4.0 sketch file link

* docs: add dark theme sketh

* fix: Drawer add motion deadline (ant-design#37100)

* fix: Drawer add motion deadline

* test: Update snapshot

* test: ignore motion in snapshot render

* docs: 4.22.6 changelog (ant-design#37101)

* docs: 4.22.6

* chore: changelog version

* chore: update

* fix: Accordions are missing expand and collapse states (ant-design#37065)

* UIEN-1399 - Accordions are missing expand and collapse states

* update tests

* updated snapshots

* fix: Move @testing-library/user-event to devDependencies (ant-design#37098)

* test: add table multi-sort case (ant-design#37109)

* test: add table multi-sort case

* chore: code clean

* fix: InputNumber border-radius and handle color style (ant-design#37070)

* style: use @checkbox-border-radius (ant-design#37131)

Signed-off-by: Chang Wei <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: afc163 <[email protected]>
Co-authored-by: Yuki Zhang <[email protected]>
Co-authored-by: dingkang <[email protected]>
Co-authored-by: zombiej <[email protected]>
Co-authored-by: vagusX <[email protected]>
Co-authored-by: csr632 <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: MadCcc <[email protected]>
Co-authored-by: kalykun <[email protected]>
Co-authored-by: Humble <[email protected]>
Co-authored-by: zhang lay <[email protected]>
Co-authored-by: yykoypj <[email protected]>
Co-authored-by: C. T. Lin <[email protected]>
Co-authored-by: Jaylan <[email protected]>
Co-authored-by: JaylanChen <[email protected]>
Co-authored-by: 龙风 <[email protected]>
Co-authored-by: RainyLiao <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dennis Chen <[email protected]>
Co-authored-by: slotDumpling <[email protected]>
Co-authored-by: pfsu <[email protected]>
Co-authored-by: lijianan <[email protected]>
Co-authored-by: සයුරි | Sayuri <[email protected]>
Co-authored-by: Amumu <[email protected]>
Co-authored-by: Andrew Horn <[email protected]>
Co-authored-by: Ryan Cavanaugh <[email protected]>
Co-authored-by: Dunqing <[email protected]>
Co-authored-by: dengqing <[email protected]>
Co-authored-by: 社长长 <[email protected]>
Co-authored-by: shezhangzhang <[email protected]>
Co-authored-by: Alan Deng <[email protected]>
Co-authored-by: Tianyuan Zhang <[email protected]>
Co-authored-by: 陈帅 <[email protected]>
Co-authored-by: Aliaksiej Razumaŭ <[email protected]>
Co-authored-by: Jamki <[email protected]>
Co-authored-by: kejianfeng <[email protected]>
Co-authored-by: Chang Wei <[email protected]>
Co-authored-by: Yunwoo Ji <[email protected]>
Co-authored-by: Kirill Barsukov <[email protected]>
Co-authored-by: hsk-kr <[email protected]>
Co-authored-by: lico <[email protected]>
Co-authored-by: 舜岳 <[email protected]>
Co-authored-by: simplejason <[email protected]>
Co-authored-by: NinJa <[email protected]>
Co-authored-by: meng.jia <[email protected]>
Co-authored-by: 王小王 <[email protected]>
Co-authored-by: Leon Kattendick <[email protected]>
Co-authored-by: Dawnlck <[email protected]>
Co-authored-by: Sg <[email protected]>
Co-authored-by: bobo <[email protected]>
Co-authored-by: xrkffgg <[email protected]>
Co-authored-by: Wuxh <[email protected]>
Co-authored-by: Jon <[email protected]>
Co-authored-by: Wuxh <[email protected]>
Co-authored-by: Neil <[email protected]>
Co-authored-by: fairyland <[email protected]>
Co-authored-by: ranrui.cwj <[email protected]>
Co-authored-by: Peach <[email protected]>
Co-authored-by: dashaowang <[email protected]>
Co-authored-by: weiwang <[email protected]>
Co-authored-by: 黑雨 <[email protected]>
Co-authored-by: tianyuan233 <[email protected]>
Co-authored-by: Zheeeng <[email protected]>
Co-authored-by: 叶枫 <[email protected]>
Co-authored-by: hoho2017 <[email protected]>
Co-authored-by: zhanghaoqiang <[email protected]>
Co-authored-by: lihao <[email protected]>
Co-authored-by: zhengjitf <[email protected]>
Co-authored-by: Len <[email protected]>
Co-authored-by: yanm1ng <[email protected]>
Co-authored-by: eason.ym <[email protected]>
Co-authored-by: yifanwww <[email protected]>
Co-authored-by: 他不是牛马 <[email protected]>
Co-authored-by: JarvisArt <[email protected]>
Co-authored-by: gaokaifeis <[email protected]>
Co-authored-by: gaokaifei <[email protected]>
Co-authored-by: clean99 <[email protected]>
Co-authored-by: ian.xufeng <[email protected]>
Co-authored-by: Qiuhang817385 <[email protected]>
Co-authored-by: hydraZty <[email protected]>
Co-authored-by: hydraZty <[email protected]>
Co-authored-by: YMiemie-cy <[email protected]>
Co-authored-by: jinrui <[email protected]>
Co-authored-by: ZhiHao Li <[email protected]>
Co-authored-by: Dmitry Artamonov <[email protected]>
Co-authored-by: nuintun <[email protected]>
Co-authored-by: Haniel Cui <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 134 changed files with 6,545 additions and 1,794 deletions.
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"sandboxes": ["antd-reproduction-template-6e93z"],
"sandboxes": ["antd-reproduction-template-y9vgcf"],
"node": "14"
}
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ module.exports = {
'jest/no-done-callback': 0,
'jest/valid-title': 0,
'jest/no-conditional-expect': 0,
'jest/no-standalone-expect': 0,

'unicorn/better-regex': 2,
'unicorn/prefer-string-trim-start-end': 2,
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/disscustion-open-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Discussions

on:
discussion:
types: [created]

permissions:
contents: read

jobs:
discussion-create:
permissions:
contents: read # for visiky/dingtalk-release-notify to get latest release
runs-on: ubuntu-latest
steps:
- name: send to dingtalk
uses: visiky/dingtalk-release-notify@main
with:
DING_TALK_TOKEN: ${{ secrets.DINGDING_BOT_TOKEN }}
notify_title: '🔥 @${{ github.event.discussion.user.login }} 创建了讨论:${{ github.event.discussion.title }}'
notify_body: '### 🔥 @${{ github.event.discussion.user.login }} 创建了讨论:[${{ github.event.discussion.title }}](${{ github.event.discussion.html_url }}) <hr /> ![](https://gw.alipayobjects.com/zos/antfincdn/5Cl2G7JjF/jieping2022-03-20%252520xiawu11.06.04.png)'
notify_footer: '> 💬 欢迎前往 GitHub 进行讨论,社区可能需要你的帮助。'
at_all: false # whether to ding everybody
2 changes: 1 addition & 1 deletion .github/workflows/release-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
triger: 'tag'
changelogs: 'CHANGELOG.en-US.md, CHANGELOG.zh-CN.md'
branch: 'master'
dingding-token: ${{ secrets.DINGDING_BOT_BIGFISH_TOKEN }}
dingding-token: ${{ secrets.DINGDING_BOT_BIGFISH_TOKEN }} ${{ secrets.DINGDING_BOT_YUNFENGDIE_TOKEN }}
dingding-msg: 'CHANGELOG.zh-CN.md'
dingding-delay-minute: 10
release: false
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ timeline: true

| infrad version | antd version | update content | time |
| --- | --- | --- | --- |
| 4.22.6 | 4.22.6 | Synchronize the update of antd 4.22.6 version | 2022-08-18 |
| 4.22.3 | 4.22.3 | 1.Synchronize the update of antd 4.22.3 version<br/>2.Modified the title's font size and font weight of the PageHeader component | 2022-08-04 |
| 4.21.7 | 4.21.7 | Synchronize the update of antd 4.21.7 version | 2022-07-25 |
| 4.21.6 | 4.21.6 | Synchronize the update of antd 4.21.6 version | 2022-07-15 |
Expand Down Expand Up @@ -39,6 +40,38 @@ if you have some problem, welcome to connect `[email protected]` or `lay.z

---

## 4.22.6

`2022-08-17`

- 🐞 Revert [#36710](https://github.com/ant-design/ant-design/pull/36710) to fix Table `onChange` argument `sorter` error in multiple columns sort.
- 🐞 Fix Drawer can not close when config `opacity` on the `maskStyle`. [#37100](https://github.com/ant-design/ant-design/pull/37100)

## 4.22.5

`2022-08-15`

- 🇭🇺 Form add defaultValidateMessages.i18n az_AZ language #23369. [#36967](https://github.com/ant-design/ant-design/pull/36967) [@YMiemie-cy](https://github.com/YMiemie-cy)
- 💄 Popover remove Popover incorrect box-shadow. [#37030](https://github.com/ant-design/ant-design/pull/37030) [@jerrykingxyz](https://github.com/jerrykingxyz)
- 🐞 Fix Steps tail position bug when `labelPlacement="vertical"`. [#36996](https://github.com/ant-design/ant-design/pull/36996)
- 💄 Removed exception error border for `Pagination`. [#36972](https://github.com/ant-design/ant-design/pull/36972) [@hydraZty](https://github.com/hydraZty)
- 🐞 Fix Upload trigger mistake files status when upload multiple files at same time in React 18. [#36968](https://github.com/ant-design/ant-design/pull/36968)
- TypeScript
- 🤖 Fix type error of useWatch. [#37013](https://github.com/ant-design/ant-design/pull/37013) [@LiZhiHao97](https://github.com/LiZhiHao97)

## 4.22.4

`2022-08-08`

- 🐞 Fix Drawer `zIndex` prop not working. [#36958](https://github.com/ant-design/ant-design/pull/36958)
- 💄 Fix PageHeader focus style stay after clicking it. [#36902](https://github.com/ant-design/ant-design/pull/36902)
- 💄 Fix Drawer nesting content-wrapper style. [#36845](https://github.com/ant-design/ant-design/pull/36845) [@yanm1ng](https://github.com/yanm1ng)
- 🐞 Fix Mentions popup shift when contain scrollbar. [#36898](https://github.com/ant-design/ant-design/pull/36898) [@JarvisArt](https://github.com/JarvisArt)
- TypeScript
- 🤖 Fix Avatar `onClick` type missing. [#36940](https://github.com/ant-design/ant-design/pull/36940) [@kungege](https://github.com/kungege)
- 🤖 Fix Table `onChange` argument `sorter` type error. [#36710](https://github.com/ant-design/ant-design/pull/36710) [@kungege](https://github.com/kungege)
- 🤖 Input `data-*` should not be required. [#36858](https://github.com/ant-design/ant-design/pull/36858) [@yifanwww](https://github.com/yifanwww)

## 4.22.3

`2022-08-01`
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ timeline: true

| infrad 版本号 | 对应 antd 版本号 | 更新内容 | 时间 |
| --- | --- | --- | --- |
| 4.22.6 | 4.22.6 | 同步 antd 4.22.6 版本的更新 | 2022-08-18 |
| 4.22.3 | 4.22.3 | 1.同步 antd 4.22.3 版本的更新<br/>2.修改了 PageHeader 组件的 title 字重与字体大小 | 2022-08-04 |
| 4.21.7 | 4.21.7 | 同步 antd 4.21.7 版本的更新 | 2022-07-25 |
| 4.21.6 | 4.21.6 | 同步 antd 4.21.6 版本的更新 | 2022-07-15 |
Expand Down Expand Up @@ -40,6 +41,38 @@ timeline: true

---

## 4.22.6

`2022-08-17`

- 🐞 回滚 [#36710](https://github.com/ant-design/ant-design/pull/36710) 以修复 Table 多列排序时 `onChange``sorter` 参数错误的问题。
- 🐞 修复 Drawer 的 `maskStyle` 配置 `opacity` 样式时无法关闭的问题。[#37100](https://github.com/ant-design/ant-design/pull/37100)

## 4.22.5

`2022-08-15`

- 🇭🇺 Form `defaultValidateMessages.i18n` 增加匈牙利语。[#36967](https://github.com/ant-design/ant-design/pull/36967) [@YMiemie-cy](https://github.com/YMiemie-cy)
- 💄 移除 Popover 中无效的 `box-shadow` 样式。[#37030](https://github.com/ant-design/ant-design/pull/37030) [@jerrykingxyz](https://github.com/jerrykingxyz)
- 🐞 修复 Steps `labelPlacement="vertical"` 时连接线位置偏上的问题。[#36996](https://github.com/ant-design/ant-design/pull/36996)
- 💄 去掉 Pagination 的异常错误边框。[#36972](https://github.com/ant-design/ant-design/pull/36972) [@hydraZty](https://github.com/hydraZty)
- 🐞 修复 Upload 在 React 18 下同时上传多份文件会出现上传状态不正确的问题。[#36968](https://github.com/ant-design/ant-design/pull/36968)
- TypeScript
- 🤖 修复 useWatch 的类型错误。[#37013](https://github.com/ant-design/ant-design/pull/37013) [@LiZhiHao97](https://github.com/LiZhiHao97)

## 4.22.4

`2022-08-08`

- 🐞 修复 Drawer `zIndex` 属性失效的问题。[#36958](https://github.com/ant-design/ant-design/pull/36958)
- 💄 修复 PageHeader 返回按钮点击后依然有聚焦样式的问题。[#36902](https://github.com/ant-design/ant-design/pull/36902)
- 💄 修复抽屉 Drawer 组件嵌套时,子抽屉的样式被父抽屉影响的问题。[#36845](https://github.com/ant-design/ant-design/pull/36845) [@yanm1ng](https://github.com/yanm1ng)
- 🐞 修复 Mentions 内有滚动条时弹出层偏移的问题。[#36898](https://github.com/ant-design/ant-design/pull/36898) [@JarvisArt](https://github.com/JarvisArt)
- TypeScript
- 🤖 修复 Avatar `onClick` 属性定义丢失的问题。[#36940](https://github.com/ant-design/ant-design/pull/36940) [@kungege](https://github.com/kungege)
- 🤖 修复 Table `onChange` 参数 `sorter` 类型报错的问题。[#36710](https://github.com/ant-design/ant-design/pull/36710) [@kungege](https://github.com/kungege)
- 🤖 Input `data-*` 属性将不再是必传参数。[#36858](https://github.com/ant-design/ant-design/pull/36858) [@yifanwww](https://github.com/yifanwww)

## 4.22.3

`2022-08-01`
Expand Down
9 changes: 4 additions & 5 deletions components/alert/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from 'react';
import { act } from 'react-dom/test-utils';
import Alert from '..';
import accessibilityTest from '../../../tests/shared/accessibilityTest';
import rtlTest from '../../../tests/shared/rtlTest';
import { fireEvent, render, sleep } from '../../../tests/utils';
import { fireEvent, render, sleep, act } from '../../../tests/utils';
import Button from '../../button';
import Popconfirm from '../../popconfirm';
import Tooltip from '../../tooltip';
Expand Down Expand Up @@ -33,13 +32,13 @@ describe('Alert', () => {
/>,
);

jest.useFakeTimers();
fireEvent.click(container.querySelector('.ant-alert-close-icon')!);
act(() => {
jest.useFakeTimers();
fireEvent.click(container.querySelector('.ant-alert-close-icon')!);
jest.runAllTimers();
jest.useRealTimers();
});
expect(onClose).toHaveBeenCalled();
jest.useRealTimers();
});

describe('action of Alert', () => {
Expand Down
121 changes: 0 additions & 121 deletions components/auto-complete/__tests__/__snapshots__/index.test.js.snap

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AutoComplete rtl render component should be rendered correctly in RTL direction 1`] = `
<div
class="ant-select ant-select-rtl ant-select-auto-complete ant-select-single ant-select-show-search"
>
<div
class="ant-select-selector"
>
<span
class="ant-select-selection-search"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
aria-autocomplete="list"
aria-controls="rc_select_TEST_OR_SSR_list"
aria-haspopup="listbox"
aria-owns="rc_select_TEST_OR_SSR_list"
autocomplete="off"
class="ant-select-selection-search-input"
id="rc_select_TEST_OR_SSR"
role="combobox"
type="search"
value=""
/>
</span>
<span
class="ant-select-selection-placeholder"
/>
</div>
</div>
`;
Loading

0 comments on commit b5aa675

Please sign in to comment.