Commit Graph

879 Commits

Author SHA1 Message Date
Zheeeng
b89ed86698
chore: prefer using type-compatible-assigning over using type-assertion (#36694) 2022-07-26 11:25:45 +08:00
zombiej
2b46b3e6e1 Merge remote-tracking branch 'origin/master' into feature-merge-master 2022-07-25 17:37:47 +08:00
Zheeeng
fd5d463213
chore: write React.ChangeEvent<E> once (#36644) 2022-07-23 16:37:32 +08:00
二货机器人
03ea767cad
fix: Form validate message shaking (#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
2022-07-19 16:01:31 +08:00
二货机器人
2c2c631bfd
chore: prettier components (#36171) 2022-06-22 14:57:09 +08:00
Dennis Chen
24a7da8ea8
docs(Input): add proper type for inputRef (#36135)
* docs(Input): add proper type for `inputRef`

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

Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:45:49 +08:00
龙风
1cec18e8eb
fix: component.displayName To distinguish the environment (#36126)
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:24:52 +08:00
Humble
0e6e1c047d
fix:when props.value is not undefined, can't reset value and focus (#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>
2022-06-15 14:51:30 +08:00
MadCcc
1f080c299e
fix: Form.Item noStyle should not be affected by parent Form.Item (#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
2022-06-06 23:39:00 +08:00
github-actions[bot]
2c1d5120b5
chore: auto merge branchs (#35910)
branch: merge master into feature
2022-06-06 03:37:12 +00:00
yykoypj
1bae50c6be
fix:border-style for inputNumber addon when rtl (#35876) 2022-06-02 19:36:10 +08:00
郑国庆
6e55310fca
test: replace Input part test with test lib (#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>
2022-06-02 16:28:22 +08:00
zombiej
f58efe9b32 chore: merge master 2022-05-23 14:37:16 +08:00
Bart Piotrowski
4bccb9985a
fix: Remove Grid row and cell aria roles (#35616)
close https://github.com/ant-design/ant-design/issues/35549
2022-05-19 10:05:40 +08:00
章鱼
7fd093bd0a
docs: feat components TS demo (#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
2022-05-19 09:46:26 +08:00
github-actions[bot]
91181c5b56
chore: auto merge branchs (#35572)
chore: feature merge master
2022-05-16 09:03:24 +00:00
dingkang
58df74c38e
docs: replace class component with hooks (#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
2022-05-14 16:40:42 +08:00
MadCcc
2d70027f45 Merge branch 'master' into feature-merge-master 2022-05-12 15:56:18 +08:00
Karott
338ec7dad7
perf: refactor devWarning for production code size (#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
2022-05-10 15:43:29 +08:00
MadCcc
01ebb6a563
test: update snapshot (#35452) 2022-05-09 20:25:55 +08:00
afc163
594f138760 resolve conflict between feature and master 2022-05-08 17:01:54 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
MadCcc
4184cc782c Merge branch 'master' into feature-merge-master 2022-05-07 12:24:25 +08:00
Karott Schu
d07dcd46b7
fix(<Row/>): wipe out unnecessary prop (#35409)
* fix: wipe out unnecessary prop

* wipe out unnecessary prop(`row-gap: 0px`) on <Row />

* add test case

* chore: remove unnecessary import

* chore: add  prop to Row and Col

* chore: update snapshot (Form/Grid/Card)

* chore: update snapshot

* chore: move  location
2022-05-07 11:44:48 +08:00
github-actions[bot]
25de1c4d31
chore: auto merge branchs (#35399)
chore: feature merge master
2022-05-06 05:52:21 +00:00
二货机器人
7511b9e8ac
test: replace textarea some test case with testing lib (#35398)
* test: replace textarea some test case with testing lib

* test: full process

* test: mv input test to input scope

* test: fix lint
2022-05-06 11:48:18 +08:00
黑雨
b0a652580a
feat: Form disabled (#35210)
* feat: add form disabled

* feat: add form disabled

* feat: add radio disabled

* feat: update snap

* feat: add test case
2022-04-29 20:48:10 +08:00
qyzzzz
8ca52a1dda
fix: input onSearch trigger wrongly (#34844) (#35164)
Co-authored-by: zhangqingyang@mindlinker.com <zhangqingyang@mindlinker.com>
2022-04-26 15:00:48 +08:00
zombiej
5dfa8678c0 docs: add input showCount lose focus desc. close #35080 2022-04-20 10:33:42 +08:00
afc163
12d98f9ed6
chore: update snapshot due to rc-trigger bumped (#35106) 2022-04-20 00:16:39 +08:00
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases (#35026)
* test: React StrictMode

* test: fix Spin test

* chore: wrapper enzyme

* test: fix setState

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: disable part of it

* test: fix test & add placeholder

* test: Use orign enzyme mount

Co-authored-by: zombiej <smith3816@gmail.com>
2022-04-18 21:02:11 +08:00
MadCcc
1c8e499f9c
test: migrate some test case to testing-library (#35062)
* test: migrate some test case to testing-library

* chore: code clean

* test: fix stylelint

* test: test case
2022-04-17 22:36:36 +08:00
MadCcc
e4a87750ac
test: update test cases to testing-lib (#35056) 2022-04-15 23:33:10 +08:00
afc163
0f0e2f9f43
docs: simplify demo code, #30853 (#35050) 2022-04-15 16:20:56 +08:00
二货机器人
67ccf39bd3
fix: Notification & message throw createRoot warning in React 18 (#35030)
* chore: bump notification version

* test: notification test case

* test: more test case

* test: part message test

* test: rest message test

* test: notification config test
2022-04-14 18:09:19 +08:00
maxin
3142c10b04
docs(input): use Intl.NumberFormat (#34985)
Co-authored-by: maxin <maxin@growingio.com>
2022-04-13 18:24:12 +08:00
zombiej
a0d1440050 chore: merge conflict 2022-04-11 17:41:54 +08:00
二货机器人
a67c0d28d3
fix: react 18 test fixing (#34787)
* fix: try fix

* chore: ci

* test: recover

* test: more test case

* test: more and mote

* test: btn test

* fix: react 18 compitable

* chore: more test

* test: all confirm test

* chore: tmp

* chore: test lib

* chore: tmp

* chore: tmp

* test: back of part

* test: back of menu index test

* test: more test

* test: form test

* test: rm IE11 test case

* chore: fix compatible

* chore: clean up

* chore: back of all test case

* test: ignore 18 lines

* chore: remove render test of enzyme in upload

* test: back of IE11 test case to fit 100% coverage

* chore: fix pkg deps
2022-04-06 11:07:15 +08:00
MadCcc
6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00
afc163
a73629fb85 chore: merge feature 2022-03-31 09:57:33 +08:00
MadCcc
2bff96fdd5
feat: Input.Group prevent components from getting style from Form.Item (#34764)
* feat: Input.Group provide isFormInput false

* test: update snapshot

* chore: code clean
2022-03-29 13:49:50 +08:00
二货机器人
8a3ee71006
chore: add control-radius (#34727) 2022-03-27 00:20:38 +08:00
MadCcc
0d4cc5ed33
refactor: adjust TextArea in form (#34714) 2022-03-25 19:31:42 +08:00
MadCcc
7c4e12f99e
refactor: feedbackIcon provided by form (#34712)
* refactor: feedbackIcon migration

* test: update snapshot
2022-03-25 17:48:12 +08:00
MadCcc
0de1e66ff1
refactor: move override code in form (#34694)
* refactor: move override code in form

* refactor: radio and checkbox

* chore: code clean

* test: fix lint

* test: fix lint
2022-03-24 21:54:20 +08:00
MadCcc
47282f73bf
fix: clear icon style (#34610) 2022-03-21 12:04:34 +08:00
afc163
86b045e12c test: add type test for Input 2022-03-17 14:20:14 +08:00
vagusX
fcbae92f5a
docs: update Input docs for default size in Form (#34537) 2022-03-16 17:34:07 +08:00
vagusX
4eb097cef9
fix: typos in Input.tsx (#34534) 2022-03-16 16:04:01 +08:00
MadCcc
c9b6a24978
chore: add focus warning for Input (#34475)
* chore: add focus warning for Input

* chore: code clean

* chore: remove duplicate variables
2022-03-14 15:37:02 +08:00