Commit Graph

669 Commits

Author SHA1 Message Date
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
二货机器人
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
MadCcc
c5e8efb82f
feat: Dropdown support switch options with arrow keys (#34738)
* feat: dropdown support auto-focus

* chore: code clean
2022-03-28 14:43:10 +08:00
二货机器人
a67d39cd6c
feat: Menu support items (#34559)
* docs: Update Menu cn doc

* chore: update ts def

* chore: support convert

* docs: more demo

* docs: more demo

* docs: all menu demos

* docs: dropdown demo

* docs: dropdown all demos

* docs: update demo

* test: coverage

* docs: more demo

* docs: layout demo

* docs: all demo

* chore: fix ts lint

* docs: fix doc

* docs: all docs
2022-03-18 15:20:35 +08:00
二货机器人
c50bbe64bb
chore: refactor internal menu with hooks (#34433)
* chore: refactor menu with hooks

* chore: clean up
2022-03-11 15:26:29 +08:00
afc163
34a63e6892 chore: merge feature into master 2022-02-23 17:11:11 +08:00
Di Wu
15f4452f14
fix: Invalid memoized context value in Menu (#34121) 2022-02-18 18:34:21 +08:00
MadCcc
6a7acfbf6e
feat: inputNumber support status (#34042)
* feat: inputNumber support status

* test: fix test

* feat: custom status first

* refactor: getMergedStatus pass status in params
2022-02-16 11:48:24 +08:00
MadCcc
76ad890deb Merge branch 'master' into feature-merge-master 2022-02-15 14:05:33 +08:00
David
2843bd32dd
feat: Add ability to overwrite Menu theme at Menu.SubMenu level. (#33971)
* Add theme support to Menu.SubMenu

* Tidy up docs

* Tidy up docs

* Update components/menu/index.en-US.md

* Update components/menu/index.en-US.md

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

* Add Chinese lang docs

* Extend menu theme demo to additionally demonstrate Sub-menu theming

* Add submenu theme demo

* Revert "Extend menu theme demo to additionally demonstrate Sub-menu theming"

This reverts commit 642a2b5b72.

* Add tests

* Correct typo

* Make demo vertical so absolutely positioned popover doesn't overflow

* Make demo functional component

* Update components/menu/index.en-US.md

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

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

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

* Update components/menu/demo/submenu-theme.md

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

Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2022-02-14 15:21:33 +08:00
afc163
9eed463be3
docs: more acurrate description about Menu overflowedIndicator prop (#34022)
* docs: add info about Menu overflowedIndicator prop

close #34016

* fix doc
2022-02-12 22:01:24 +08:00
afc163
fd2ebe57f7
style: improve Menu :focus-visible style (#34008)
* style: improve Menu :focus-visible style

ref #34005

* style: darken :focus-visible style
2022-02-11 13:06:06 +08:00
afc163
578aaad7f2 test: fix lint 2022-01-24 11:26:26 +08:00
zombiej
7ae451729f test: update snapshot 2021-12-27 10:58:29 +08:00
zombiej
6ed4d855b1 Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
二货机器人
f1e0c9c1d2
chore: Internal Menu interface for ProLayout usage (#33399)
* test: Update snapshot

* chore: disable tooltip

* chore: rename
2021-12-24 10:57:35 +08:00
二货机器人
2df11184f4
test: Demo check popup content (#33378)
* auto demo

* chore: update demo snapshot

* fix: trigger mock ref logic

* chore: try 2 test case

* chore: more snapshot

* chore: update snapshot

* chore: fix ts

* chore: split test

* test: Update test case

* chore: fix test order
2021-12-23 11:51:10 +08:00
afc163
b34f72b1b6
test: fix ci warnings (#33160) 2021-12-04 17:06:36 +08:00
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 (#32824)
* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0

Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases)
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-airbnb
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* chore: code style

* memoize-one

* add comment

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* improve useMemo deps

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-11-26 12:18:21 +08:00
afc163
0c66aeee15
style: fix menu link color in collapsed tooltip (#32956)
close #32950
2021-11-20 18:41:57 +08:00
dependabot[bot]
b445baa001
chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2 (#32451)
* chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2

Bumps [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier) from 8.0.2 to 9.0.2.
- [Release notes](https://github.com/prettier/stylelint-config-prettier/releases)
- [Commits](https://github.com/prettier/stylelint-config-prettier/compare/v8.0.2...v9.0.2)

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

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

* chore: autofix stylelint errors

* chore: autofix stylelint errors

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-10-13 15:38:59 +08:00
二货机器人
e13c4d4131
fix: Less Maximum call stack size exceeded error (#32063)
* chore: create additional entry

* fix: rm recv call

* chore: Add default.less as index.less

* chore: update entry

* fix: row should also translate

* chore: rename index-default to index and add index-pure instead

* fix: missing transfer customize styl
2021-09-07 16:14:20 +08:00
二货机器人
36bcaaef85
Add variable.less to support css variable (#31496)
* chore: use varaible.less

* chore: basic primary varaible

* chore: Move to variable

* chore: align active color

* chore: global fix of css variable

* chore: primary colors

* chore: button danger

* chore: btn default error color

* chore: button series

* chore: More examples

* chore: More components

* chore: Form demo

* chore: form style

* fix: Tag & Alert variable

* chore: update footer

* chore: rm tmp code

* chore: transfer

* fix: picker column active color

* chore: Adjust active bg color

* chore: table hover color

* chore: all css variables

* chore: Global using variables

* chore: Test case

* chore: Update test logic

* chore: back of default less

* chore: entry of site use proxy style

* chore: update entry

* chore: split of variables

* refactor: quick dist speed

* fix: site use variable version

* chore: Update less config

* chore: add mv script

* chore: Update repalcement script

* chore: Add inject variables

* chore: Update script

* fix: script path

* chore: Move to component instead

* chore: fix condition

* chore: update config

* chore: Update in less transform

* chore: Modify logic

* chore: change to variables

* chore: Update name

* fix: script name

* chore: do inject

* revert: back of path

* chore: 2 way of generate

* bump tools

* chore: Add auto replacement script

* chore: auto genrate less file

* chore: fix test

* test: More test case

* chore: Update limit config

* test: coverage

* docs: Update doc
2021-09-01 10:56:50 +08:00
github-actions[bot]
563ebe1982
chore: auto merge branchs (#31454)
chore: merge master into feature
2021-07-20 07:32:16 +00:00
Joshua Chen
d1dc0eba2c
docs: fix grammar and inconsistencies in en-US (#31385)
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-07-19 16:21:09 +08:00
Map1en_
c59580f215
feat: add the dashed props of menu divider (#31379)
close #31292
2021-07-19 15:42:07 +08:00
afc163
27642b23ba docs: update menu developers notes 2021-06-30 18:04:15 +08:00
afc163
a047de206e
fix: Menu item color style transtion (#31189)
close https://github.com/ant-design/ant-design/issues/31069#issuecomment-866052544
2021-06-29 19:04:37 +08:00
zombiej
e2cc3b4720 docs: Update Menu faq 2021-06-22 11:22:39 +08:00
二货机器人
2f6f6f0e6e
fix: Menu overflow indicator theme should fixed (#31043) 2021-06-18 16:06:19 +08:00
二货机器人
5583383d85
chore: Use pure import icon (#31011) 2021-06-16 20:21:15 +08:00
二货机器人
cedf59c886
fix: Menu dark mode hover style (#30907) 2021-06-08 16:15:55 +08:00
二货机器人
c78a6b2270
chore: Adjust menu style (#30883) 2021-06-07 10:43:51 +08:00
二货机器人
b837ecd950
fix: Menu overflow with horizontal should not affect by float element (#30879)
* fix: Menu horizontal layout style

* test: Update snapshot

* fix: lint
2021-06-06 17:31:59 +08:00
afc163
9f0dbf2b4d
chore: upgrade to jest 27 (#30783)
* chore: upgrade devDeps

* upgrade @ant-design/tools

* support  CSS Minification

* test: jsdom as testEnvironment

* fix setImmediate

* update snapshot

* fix test

* fix test

* fix test

* fix test
2021-06-01 10:11:24 +08:00
二货机器人
6ae00431a9
docs: rm only mark (#30751) 2021-05-28 12:04:47 +08:00
zombiej
737c172c2b test: Update snapshot 2021-05-28 11:44:16 +08:00
二货机器人
0a0fa61cb5
fix: Long text of menu ellipsis issue (#30682)
* fix: menu item long text ellipsis

* test: Update snapshot

* test: Update snapshot
2021-05-25 20:52:52 +08:00
二货机器人
c542aad9d6
fix: Menu collection error message (#30678) 2021-05-25 18:38:17 +08:00
二货机器人
feeebdc1e5
fix: Menu overflow measure style (#30672)
* fix: Menu overflow checker

* docs: Fix site style

* test: Update snapshot

* fix: dark menu hover style
2021-05-25 17:24:18 +08:00
afc163
414192436c
fix: Menu.SubMenu icon margin with other icon libs (#30642)
close #30605
2021-05-24 19:13:23 +08:00
二货机器人
47efa3e4a4
fix: Menu SubMenu (#30638)
* chore: fix level issue

* test: coverage

* chore: clean up

* chore: miss children defition
2021-05-24 17:36:18 +08:00