Commit Graph

467 Commits

Author SHA1 Message Date
luo3house
98cf6b582e
fix(wave): validate detached dom node's wave style (#40307) 2023-01-19 11:50:12 +08:00
lijianan
28d1157d6b
type: optimization undefined type (#40241)
* type: optimization undefined type

* fix type

* fix type

* add

* revert

* revert

* revert
2023-01-16 09:55:52 +08:00
二货爱吃白萝卜
96c0c21139
chore: adjust wave pos (#40192)
* chore: adjust wave pos

* chore: patch check

* chore: update post
2023-01-12 17:52:19 +08:00
lijianan
8501adbd84
fix: add displayName (#40092)
* fix: add displayName

* rerun ci

* rerun ci
2023-01-08 21:30:41 +08:00
lijianan
130c22ab03
style: Code style optimization (#40083)
* style: Code style optimization

* add

* rename

* rename

* revert

* revert

* revert

* add
2023-01-08 15:36:50 +08:00
Peter Gassner
25ea3a7202
fix: Allow users to handle promise rejections in ActionButton's onOk callback (#40018)
* fix: Allow users to handle promise rejections in onOk callback

Components that rely on ActionButton swallow rejected promises. This makes it impossible for userland code to handle them.

* polish: Fix linting problems

* polish: Return rejected promise instead of throwing

* refact: Remove test for unhandled promise rejection

This test breaks when run in parallel by Jest. At the moment we have no way of changing the way Jest works and it prohibits us from testing for "unhandledRejection" events.

See: https://github.com/ant-design/ant-design/pull/40018#issuecomment-1373590259

* test: hack for rejection

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-01-08 00:27:33 +08:00
Wuxh
7f189d56e5
refactor: merge preset colors (#39742)
* style: remove redundant code

* feat(style): add preset colour style generation method

(cherry picked from commit 1266e42ba27accb48a6544e3eddaa4a94daef00c)

* feat: uniform preset colour generation css selector method

(cherry picked from commit 5af87e8d5ffcfd23e755946167f200c0565f8222)

* chore: merge preset colors

(cherry picked from commit 05040dfb703f60a3ea1715326748c508acbf41a6)

* chore: update

(cherry picked from commit 241b40a1361469487a6a3e8f1ad07a25d250463d)

* chore: remove Badge preset inverse colors

* chore: remove fix

删除的这部分其实一个 Bug,但是为了给 PR 减负(尽可能单一, 后面新开一个 PR 来修复这个问题

* suggestions accepted

Update components/style/presetColor.tsx

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

Co-authored-by: MadCcc <1075746765@qq.com>
2023-01-06 11:06:46 +08:00
二货爱吃白萝卜
99b32a3c37
fix: wave target position switch (#39966)
* fix: Node delay for wave pos

* test: test case update

* test: test case update

* chore: update ignore

* test: test case update

* chore: resize check for size changing

* test: coverage

* chore: save code
2023-01-03 16:08:20 +08:00
二货爱吃白萝卜
9f7b129c41
fix: Button wave follow issue (#39954)
* fix: Button wave follow issue

* test: update test case

* chore: fix lint
2023-01-02 16:34:35 +08:00
lijianan
9aec72c395
chore: remove useless tsx support (#39890)
* chore: remove useless tsx support

* add

* add

* style

* fix lint

* fix lint

* fix lint

* update locale entry

* update locale entry

* update locale entry

* delete useless style
2022-12-29 18:33:13 +08:00
lijianan
d55d39b811
type: LiteralUnion optimization (#39871) 2022-12-28 23:59:55 +08:00
lijianan
4e45276c4e
refactor[Wave]: CC => FC (#39705)
* fix

* refactor[Wave]: CC => FC

* fix lint

* fix

* fix

* fix

* add test case

* add test case

* fix test

* fix test

* test case

* add test case

* fix

* fix

* fix

* fix

* raname

* fix

* test case

* test case

* test case

* fix test

* test case

* refactor: Use React way

* test: coverage

* chore: clean up

* rerun fail ci

* fix: React 17 error

* test: fix test case

* test: fix test case

* fix borderRadius

* test: fix test case

* chore: clean up

* chore: clean up

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-12-28 23:20:22 +08:00
sea、lucky
f488cb871b
fix(antd/transfer): transfer performance optimization while dataSourc… (#39465)
* fix(antd/transfer): transfer performance optimization while dataSource is large

* fix(antd/transfer): unified function format of transKeys util file

* fix(antd/transfer): transKeys Map Structure Adjustment
2022-12-25 15:21:21 +08:00
Wuxh
951e0e2c79
fix(list): fix error reported due to incorrect paginator parameters (#39681)
* fix(list): fix pagination parameter error

* test: add case

* test: update snapshot

* chore: update case

* feat(util): add mergeProps

ref: 3c87f1c5b1/src/utils/with-default-props.tsx (L5)

* chore: replace method

* chore: rename
2022-12-24 15:05:33 +08:00
azro352
328a800132
test: add test cases for breakpoints customize (#39697)
Rename useResponsiveObserve to useResponsiveObserver. Add validation of breakpoints values and test
2022-12-22 10:11:08 +08:00
MadCcc
a5324e8204 Merge branch 'feature' into feature-merge-master 2022-12-18 14:30:52 +08:00
lijianan
120db80c25
type: Button type optimization (#39533)
* type: type optimization

* fix type

* fix type

* fix type

* update docs
2022-12-15 17:48:29 +08:00
azro352
18400fbdee
Make breakpoints use the token feature (#39105)
* Add XXXL size

* Update index.zh-CN.md

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

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

* Try to use `useToken` for building responsiveMap

* Try useResponsiveObserve

* Fix useResponsiveObserve

* Some try

* Some try

* Some try

* Remove impossible test

* Remove impossible test

* Fix token.screenXSMax

* Try to put test back as token.screenXSMax is fixed

* Remove impossible test now

* Subscribers, subuid and screen are no longer static

* reorganize def

* chore: not affect no-related file

* chore: not affect no-related file

* test: update test case

* chore: adjust memo logic

Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-12-15 14:14:07 +08:00
lijianan
12543277b7
type: remove tuple、tupleNum、ElementOf (#39478)
* type: remove tuple

* type: remove tuple

* type: remove tuple

* fix

* fix

* fix type

* fix type

* fix type

* fix type

* fix type

* Update ColorPicker.tsx

* Update components/badge/utils.tsx

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

* fix type

* fix type

* fix type

* fix

* fix

* fix type

* fix type

* fix type

* update snap

* update snap

Co-authored-by: MadCcc <1075746765@qq.com>
2022-12-13 14:57:40 +08:00
lijianan
4efa3b2896
test: console.error should nullable in Console (#39050) 2022-11-28 14:19:25 +08:00
MadCcc
5d9cb2e50d
refactor: Optimize theme export and add docs (#38902)
* refactor: Optimize theme export and add docs

* chore: fix lint

* chore: fix lint

* chore: fix lint
2022-11-23 20:22:38 +08:00
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
lijianan
52cb37f487
chore: remove throttleByAnimationFrameDecorator (#38693)
* chore: remove throttleByAnimationFrameDecorator

* fix

* fix
2022-11-19 13:45:56 +08:00
二货机器人
a33e344546 fix: lint 2022-11-13 14:43:50 +08:00
二货机器人
ac85fbec6f chore: merge master 2022-11-13 14:33:07 +08:00
lijianan
d52b8c6afb
type: type optimization (#38510) 2022-11-11 18:15:02 +08:00
lijianan
d292257e47
chore: type optimization (#38460) 2022-11-09 17:36:49 +08:00
二货机器人
d5cfd195dd chore: merge master 2022-11-07 23:32:46 +08:00
lijianan
038c9d0763
type: optimization React.useRef type (#38388) 2022-11-04 18:36:54 +08:00
lijianan
de1ab2c7f1
fix: add white color (#38291) 2022-10-31 10:55:08 +08:00
MadCcc
242b1713f5 Merge branch 'master' into next-merge-master 2022-10-26 14:56:44 +08:00
lijianan
3d33c34010
chore: use includes instead indexOf (#38139)
* chore: use includes instead indexOf

* fix: fix
2022-10-21 11:45:55 +08:00
lijianan
769cb3c79a
style: remove repeate method (#38133)
* style: remove repeate method

* fix: del break
2022-10-20 16:37:35 +08:00
MadCcc
5c72d04b10 Merge branch 'feature' into next-merge-feature 2022-10-19 17:46:21 +08:00
Zheeeng
e91d25622b
chore: signatures for tests (#37949)
* fix: signatures for tests

* fix: remove unused

* fix: test cases

* fix: test cases
2022-10-19 11:50:18 +08:00
MadCcc
7a38804f95 Merge branch 'master' into next-merge-master 2022-10-18 21:33:51 +08:00
lijianan
a2de8f7b2e
chore: add isValidElement for isFragment (#38056) 2022-10-17 16:23:45 +08:00
MadCcc
1c16888d43 Merge branch 'master' into next-merge-master 2022-10-14 15:55:31 +08:00
lijianan
71cfa31728
test: add test case (#38015) 2022-10-14 12:05:58 +08:00
MadCcc
4490d9dbdc Merge branch 'master' into next-merge-master 2022-10-14 11:35:18 +08:00
hms181231
7709970d81
test: Update util test case sleep to useFakeTimers and deprecated HTMLDocument, use Document instead (#37984)
* test: Update util test case sleep to useFakeTimers and deprecated HTMLDocument, use Document instead

* test: Update util test case sleep to useFakeTimers
2022-10-12 22:46:16 +08:00
MadCcc
eb9179464b Merge branch 'master' into next-merge-master 2022-09-22 11:47:05 +08:00
二货爱吃白萝卜
d9b6bc7539
fix: In shadow root inject style logic (#37677) 2022-09-21 17:43:07 +08:00
二货爱吃白萝卜
24d2074ca4
fix: PurePanel width measure (#37624)
* fix: PurePanel width measure

* test: Update snapshot
2022-09-19 11:37:44 +08:00
MadCcc
3515a40706
refactor: ConfigProvider theme API update (#37568)
* refactor: ConfigProvider theme support component alias

* test: fix test case

* chore: code clean

* test: fix lint

* test: fix tsx-demo
2022-09-15 21:26:04 +08:00
MadCcc
d1be33f224 Merge branch 'master' into next-merge-master 2022-09-14 10:31:17 +08:00
lijianan
1922ad3512
type: strong type (#37481) 2022-09-09 10:03:49 +08:00
MadCcc
e5e2159882 Merge branch 'feature' into master-merge-feature 2022-09-04 14:46:28 +08:00
MadCcc
0d50767aa8 Merge branch 'master' into next-merge-master 2022-08-30 13:05:50 +08:00
dependabot[bot]
7e7c47509f
chore(deps-dev): bump eslint-plugin-jest from 26.9.0 to 27.0.1 (#37291)
* chore(deps-dev): bump eslint-plugin-jest from 26.9.0 to 27.0.1

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.9.0 to 27.0.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.9.0...v27.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* chore: fix eslint errors in test files

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>
2022-08-30 10:57:13 +08:00