Commit Graph

811 Commits

Author SHA1 Message Date
MadCcc
2471bf88aa test: fix test 2022-10-11 21:33:29 +08:00
MadCcc
03a1ae427d Merge branch 'feature' into next-merge-feature 2022-10-11 20:29:55 +08:00
二货爱吃白萝卜
b7634968d7
test: Use SSR for testing demo (#37890)
* test: Use SSR for testing demo

* chore: fix lint

* test: align with react 18
2022-10-08 16:17:20 +08:00
Nikita Dmitrienko
5132acfd7e
Fix a typo (#37826) 2022-10-01 09:31:26 +08:00
lijianan
ddaead6777
fix: delete defaultprops (#37822)
* fix: delete defaultprops

* fix: delete defaultprops
2022-09-30 17:44:24 +08:00
Zheeeng
49206a53c5
chore: prefer using @internal annotation over other markups (#37816) 2022-09-30 14:26:41 +08:00
MadCcc
c61f283487
feat: switch motion (#37658)
* feat: switch motion

* chore: code clean

* feat: active text offset

* chore: update snapshot
2022-09-20 21:51:28 +08:00
MadCcc
415c22bc8c
refactor: menu theme style (#37640) 2022-09-19 22:17:26 +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
7a73035f82 chore: fix snapshot 2022-09-14 14:29:05 +08:00
MadCcc
d1be33f224 Merge branch 'master' into next-merge-master 2022-09-14 10:31:17 +08:00
黑雨
01ca7c7821
test: convert demo to testing-lib (#37381)
* test: replace testing-lib

* test: replace testing-lib

* test: replace testing-lib

* test: update snap

* test: replace testing-lib

* test: replace testing-lib

* test: update for lint

* merge: merge

* test: testing-lib

* test: replace testing-lib

* test: testing-lib

* test: testing-lib

* test: replace testing-lib

* test: replace testing-lib

* test: Replace test aria replacment logic

* test: Update snapshot

* chore: hack for id

* test: clean up

* test: clean demo

* chore: update

* test: snapshot update

* test: fix snapshot rep logic

* test: fix snapshot rep logic

* test: fix snapshot rep logic

* chore: update demo

* test: fix snapshot rep logic

* test: Update snapshot

* test: rest snapshot

* test: update snapshot

* test: Update test case

* test: config env

* chore: clean up

* chore: Use renderServer instead

* test: adjust testing logic

* test: modify test logic

* test: split ssr test

* test: skip if need skip

* chore: ignore test file covv

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-09-09 15:51:35 +08:00
MadCcc
8e328d0ae2
feat: focus outline (#37483)
* feat: focus outline

* feat: add tree focus
2022-09-09 10:53:03 +08:00
lijianan
f47535a153
test: migrate part of rtlTest tests (#37315)
* test: migrate part of rtlTest tests

* style: performance optimize

* fix: add type

* fix: fallback
2022-09-07 14:18:32 +08:00
MadCcc
d5c17a9a7c Merge branch 'master' into next-merge-master 2022-09-05 21:26:04 +08:00
MadCcc
e5e2159882 Merge branch 'feature' into master-merge-feature 2022-09-04 14:46:28 +08:00
afc163
f8b5fc3aae
style: fix Menu disabled item focus style (#37332)
close #37325
2022-08-31 19:08:23 +08:00
MadCcc
942fd0b22c test: fix lint 2022-08-30 15:35:48 +08:00
MadCcc
6206ba4637 test: fix test case 2022-08-30 14:52:21 +08:00
MadCcc
0d50767aa8 Merge branch 'master' into next-merge-master 2022-08-30 13:05:50 +08:00
lijianan
3c72aa0855
test: migrate part of Menu tests (#37274)
* test: migrate part of Menu tests

* test: migrate part of Menu tests

* test: migrate part of Menu tests

* fix: add Layout.Sider

* fix: add Layout.Sider

* fix: remove Layout.Sider

* fix: remove Layout.Sider

* fix: strong type
2022-08-30 10:06:38 +08:00
yykoypj
6b658dab76
feat: switch visible to open for Tooltip (#37241)
* feat: switch visible to open for Tooltip & Popover & Popconfirm

* fix lint

* fix: merge state

* chore: Update ts part

* test: add legacy test

* test: fix test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-26 17:17:13 +08:00
MadCcc
ec13e824be
feat: v5 shadow & colorPrimary (#37254)
* feat: v5 shadow

* chore: color lint

* test: fix test case
2022-08-26 16:05:16 +08:00
yykoypj
43d45330c5
feat: switch visible to open for Tooltip & Popover & Popconfirm (#36807)
* feat: switch visible to open for Tooltip

* feat: switch visible to open for Popover

* feat: switch visible to open for Popconfirm

* fix

* chore: resolve conflict

* test: fix test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-24 21:34:17 +08:00
Uladzimir Atroshchanka
c9fd7fb8f1
feat: Input fields in error are missing multiple ARIA attributes (#36762)
* feat: add implementation and update snapshots

* test: update snapshot

* test: update snapshots

* test: update snapshots

* test: update snapshots
2022-08-24 17:07:50 +08:00
Dalton Craven
4758d561c5
fix: export individual menu type declarations (#36681) 2022-08-23 23:40:44 +08:00
二货机器人
25e001f8b5 chore: next merge feature 2022-08-18 17:24:39 +08:00
dingkang
82ba5eac40
test: replace Menu test case with test lib (#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: 二货机器人 <smith3816@gmail.com>
2022-08-15 16:43:41 +08:00
MadCcc
de4914880e
fix: Menu horizontal border (#36947) 2022-08-08 15:57:18 +08:00
MadCcc
dbff63666a Merge branch 'master' into next-merge-master 2022-08-08 15:12:31 +08:00
clean99
1239910f66
test: change act import from utils use act wrap timer and not wrap fireEvent (#36921)
Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2022-08-08 13:31:55 +08:00
MadCcc
ec3444a407
refactor: token udpate (#36892) 2022-08-04 16:16:50 +08:00
MadCcc
f1ba08fd0c
fix: token update (#36871)
* fix: token update

* refactor: map token update
2022-08-03 20:04:58 +08:00
陈帅
dcca3d25f2
feat: add menu token and adjust style (#36777)
* fix: menu add margin token

* Update components/menu/style/index.tsx

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

* fix ci

Co-authored-by: MadCcc <1075746765@qq.com>
2022-08-01 11:19:32 +08:00
二货机器人
394aba4afe chore: merge master 2022-07-29 15:56:11 +08:00
MadCcc
d7c2f5f5d3
feat: menu theme implemented by design token (#36738)
* feat: menu theme implemented by design token

* test: fix test

* fix: lint

* fix: menu motion

* 偷偷加了几个token

Co-authored-by: 期贤 <qixian.cs@antgroup.com>
2022-07-28 20:33:10 +08:00
hoho2017
f3db1f2dab
docs: fix Menu api layout (#36697)
Co-authored-by: zhanghaoqiang <zhanghq7458@joyowo.com>
2022-07-26 14:34:21 +08:00
MadCcc
1ad0553249
refactor: token update (#36637)
* refactor: token update

* refactor: token

* chore: error color

* fix: menu danger
2022-07-21 17:00:42 +08:00
二货机器人
31eef3a956
docs: menu faq (#36604)
* docs: menu faq

* docs: patch codesandbox
2022-07-20 10:58:47 +08:00
MadCcc
357750e081
refactor: collapse motion (#36597)
* chore: v5.0.0-experimental.5

* refactor: collapse motion
2022-07-19 22:53:38 +08:00
MadCcc
cdbfe45df1
feat: generate anchor style for all components (#36460)
* test: fix lint

* chore: code clean

* doc: anchor color

* chore: style order
2022-07-11 15:35:58 +08:00
MadCcc
8e27cf986f
chore: rm component less file (#36244)
* chore: rm component less file

* refactor: less file

* refactor: rm less

* refactor: rm page-header and comment

* chore: rm less in components

* chore: update dist config

* chore: update image test

* chore: update dekko

* chore: rm lib dekko

* chore: update dist dekko

* chore: udpate bundle size

* test: update snapshot

* test: rm theme test

* test: update snapshot

* test: update snapshot

* chore: copy reset.css

* test: update image test

* chore: copy reset.css to es

* chore: update site script
2022-07-05 21:55:21 +08:00
MadCcc
8e4f1c6836
refactor: token update (#36279)
* refactor: token update

* chore: add js doc

* test: fix lint

* test: update test
2022-06-28 20:33:01 +08:00
二货机器人
de2992f96f
chore: move path (#36243)
* chore: base move

* chore: all path

* chore: fix script
2022-06-27 14:25:59 +08:00
afc163
a5fe576d48 chore: merge master to next 2022-06-24 11:32:42 +08:00
afc163
88415f45e1
chore: fix Menu deprecated warning when item={undefined} (#36190) 2022-06-23 11:25:21 +08:00
zombiej
07520b44c4 chore: fix merge conflict 2022-06-22 15:31:47 +08:00
zombiej
8749c1ae04 chore: merge master 2022-06-22 15:18:03 +08:00
二货机器人
2c2c631bfd
chore: prettier components (#36171) 2022-06-22 14:57:09 +08:00
zombiej
91245c16ad chore: merge master 2022-06-21 19:40:22 +08:00
二货机器人
9ab8cc44a3
fix: Dropdown with group menu can not close (#36148)
* test: test driven

* fix: Dropdown with Menu list group
2022-06-21 15:48:29 +08:00
二货机器人
63fc5055f9
fix: Table customize filterDropdown with Menu should not block default selectable (#36098)
* fix: Table customize Menu should be selectable

* test: Add test case

* test: Update snapshow
2022-06-17 14:37:18 +08:00
MadCcc
9dd5e9b5e9 Merge branch 'master' into next-merge-master 2022-06-16 10:46:55 +08:00
afc163
c72c70024e
docs: fix menu API table (#36043)
* docs: fix menu API table

* Update index.en-US.md
2022-06-14 11:08:16 +08:00
csr632
29565273cb
docs: title is no loger supported by SubMenuType (#36037) 2022-06-14 11:04:18 +08:00
zombiej
e0ed89418b chore: fix lint 2022-06-10 17:28:55 +08:00
zombiej
eda63041ff chore: merge master 2022-06-10 17:17:54 +08:00
MasaoBlue
d099dea28b
fix: menu items typings (#35790)
* Fix menu items typings

* add test case for menu item type checking
2022-06-08 10:25:49 +08:00
zombiej
01dbe2ff25 chore: merge master 2022-06-01 18:46:38 +08:00
afc163
6423e22f78 chore: merge feature 2022-06-01 18:28:31 +08:00
MrHadEnough
cfd25f9650
docs: fix typo of Menu items code example (#35832) 2022-05-31 21:05:53 +08:00
zombiej
099322af16 chore: resolve injection 2022-05-30 19:13:16 +08:00
zombiej
300dddebbb chore: next merge feature 2022-05-30 19:11:21 +08:00
二货机器人
99c16aa8d6
refactor: Fix Dropdown nesting menu injection logic (#35810)
* refactor: Dependency Inversion

* test: update snapshot

* test: Update snapshot

* test: more

* fix: table dropdown logic

* fix: menu lint
2022-05-30 19:06:51 +08:00
MadCcc
e9e8419b19
fix: menu inline & vertical border (#35742) 2022-05-26 01:36:39 +08:00
zombiej
f58efe9b32 chore: merge master 2022-05-23 14:37:16 +08:00
二货机器人
47d73d8e33
Refactor: Menu full token (#35650)
* chore: more style

* chore: more style

* chore: more and more

* chore: more and more

* chore: all about it

* chore: more style

* chore: more & more

* chore: more

* chore: hover style

* chore: theme of it

* move

* chore: status color

* chore: full token

* chore: update

* chore: update

* chore: force cache update

* chore: force cache back

* fix: commented
2022-05-23 10:58:30 +08:00
zombiej
cd0ace3d40 chore: merge master 2022-05-21 22:14:15 +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
MadCcc
2d70027f45 Merge branch 'master' into feature-merge-master 2022-05-12 15:56:18 +08:00
afc163
84a969e5e0 chore: sync master into next branch 2022-05-11 15:36:22 +08:00
Tony Wu
68a2f8b2ac
docs: indicate that menu items require keys (#35474) 2022-05-11 14:29:26 +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
24773d5796 test: lint 2022-05-09 22:20:07 +08:00
MadCcc
1f5e271eb6 Merge branch 'master' into next-merge-master 2022-05-09 21:26:25 +08:00
Yanming Deng
36ded1a741
docs: fix typo (#35439)
* chore: fixed typo

* chore: fixed typo+1
2022-05-09 18:09:02 +08:00
afc163
594f138760 resolve conflict between feature and master 2022-05-08 17:01:54 +08:00
MadCcc
83ed62aa0e Merge branch 'feature' into next-merge-feature 2022-05-07 15:19: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
4734f65f2f
feat: focus menu item automaticly when focusing menu (#35407)
* feat: focus menu item automaticly when focusing menu

* chore: update mentions

* test: fix test case

* chore: decrease bundle size

* chore: increase bundle size
2022-05-07 11:36:34 +08:00
zombiej
3e69660e52 chore: merge master 2022-05-01 16:32:08 +08:00
MadCcc
42525ffbdc
test: add menu focus test (#35252) 2022-04-26 18:17:55 +08:00
二货机器人
b4730281a9
refactor: Dropdown cssinjs support (#35214)
* chore: init

* chore: dropdown style

* chore: more style

* chore: icon style

* chore: more style

* chore: diff shows the cache path

* chore: motion support

* chore: more style

* feat: status

* chore: sub menu style

* chore: all dropdown style

* fix: ts

* chore: update snapshot

* Update components/dropdown/style/index.tsx

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

* chore: update style

Co-authored-by: MadCcc <1075746765@qq.com>
2022-04-25 10:54:00 +08:00
afc163
b25d5f90bd chore: merge master to next 2022-04-24 12:17:49 +08:00
afc163
0efba5f720
docs: add demo link for Menu legacy usage (#35202)
* docs: add demo links for Menu legacy usage

* Update index.en-US.md
2022-04-24 11:24:46 +08:00
zombiej
669f41502e Merge branch 'master' into next 2022-04-21 17:10:29 +08:00
afc163
255bfddc3f
docs: improve menu usage for items (#35131)
* docs: improve menu usage for items

* test: update snapshot

* docs: update menu title
2022-04-20 22:31:21 +08:00
zombiej
566632efa3 docs: Update Menu demo sample 2022-04-20 19:03:39 +08:00
二货机器人
4de07ad102
docs: Add deprecated usage (#35128) 2022-04-20 17:56:11 +08:00
黑雨
b0ad8b6d14
feat: fix menu site (#35127) 2022-04-20 17:38:13 +08:00
黑雨
87a5ddf0be
feat: cssinjs for menu (#34958)
* feat: cssinjs for menu

* feat: merge next

* feat: update for lint

* feat: update for test

* feat: update for style

* feat: update snap
2022-04-20 15:31:04 +08:00
afc163
756f06c2fe chore: sync master into next branch 2022-04-20 11:30:55 +08:00
afc163
12d98f9ed6
chore: update snapshot due to rc-trigger bumped (#35106) 2022-04-20 00:16:39 +08:00
nuintun
74b60d22b1
fix: cn menus doc (#35078) 2022-04-19 21:02:06 +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
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
zombiej
a0d1440050 chore: merge conflict 2022-04-11 17:41:54 +08:00
二货机器人
688422b490
test: back of coverage (#34964)
* test: fix coverage

* chore: bump bisheng

* chore: clean up

* chore: update deps

* chore: test coverage
2022-04-11 15:32:00 +08:00
二货机器人
5b8e4e51e9
chore: Compatible for @types/react@18 (#34937)
* chore: bump types def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: free --legacy-peer-deps

* chore: ignore peer

* chore: fix ts logic

* chore: use fork docsearch

* chore: fix demo ts
2022-04-08 22:55:42 +08:00