Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkbox implem to Menu #16888

Merged
merged 86 commits into from
Feb 12, 2021

Conversation

ling1726
Copy link
Member

@ling1726 ling1726 commented Feb 9, 2021

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ yarn change

Description of changes

Add checkbox implem to Menu, need to solve the following issues in following PRs:

  • Autocontrolling (uncontrolled pattern)
  • ContextSelector pattern to reduce potential rerenders

Focus areas to test

(optional)

version "7.10.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.10.4.tgz#a6724f1a6b8d2f6ea5236dbfe58c7d7ea9c5eb99"
integrity sha512-UpTN5yUJr9b4EX2CnGNWIvER7Ab83ibv0pcvvHc4UOdrBI5jb8bj+32cCwPX6xu0mt2daFNjYhoi+X7beH0RSw==
"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.10.4", "@babel/runtime@^7.12.5", "@babel/runtime@^7.3.1", "@babel/runtime@^7.3.4", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deduplicated @babel/* entries

@@ -4353,6 +4378,13 @@
dependencies:
"@types/react" "*"

"@types/react-test-renderer@>=16.9.0":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entries for @types/react-test-renderer cannot be deduplicated, oops

@ling1726 ling1726 linked an issue Feb 12, 2021 that may be closed by this pull request
25 tasks
@ling1726 ling1726 closed this Feb 12, 2021
@ling1726 ling1726 reopened this Feb 12, 2021
@layershifter layershifter merged commit a4fdbcd into microsoft:master Feb 12, 2021
@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

joshualamusga1 pushed a commit to joshualamusga1/fluentui that referenced this pull request Feb 25, 2021
* Auto-generate react-menu

* use correct react-menu version

* Update packages/react-menu/package.json

Co-authored-by: Oleksandr Fediashov <[email protected]>

* update files

* remove unnecessary

* modified codeowners

* update codeowners

* modify codeowners

* Change files

* add react-hooks dep

* revert unnecessary files

* fix deps

* remove unnecessary comments

* type ref

* use state for selectors

* add mising type

* remove cast

* remove readme

* remove default div

* remove default div

* fix story type

* follow package structure

* add export

* remove placeholder

* revert package.json

* type refs

* Change files

* fix deps

* move conformance to devdep

* update api

* fixes to types

* remove coment

* fix imports

* update api

* update API

* fix types

* fix conformance tests

* fix exports

* add checkbox and tests

* add snapshots

* use resolution for pretty-format

* add checkbox story

* fix types

* add comment

* use storybook decorator

* remove imports, fix types

* make checkmark mandatory for checkbox

* make value/item naming more consistent

* move checked to selectable state

* Change files

* update codeowner for react-menu

* hide checkmark instead of not rendering

* add testing-library/hooks

* revert codeowners

* correct tsdoc

* fix imports

* add icons to checkboxes, fix hover/focus styles

* downgrade testing library and resolove testing-library/dom instead

* add checkbox implem

* update md

* use styling hooks

* add comment

* add events

* use separate events for keyboard/click

* remove e.persist

* Update packages/react-menu/src/components/MenuItemRadio/MenuItemRadio.test.tsx

Co-authored-by: Oleksandr Fediashov <[email protected]>

* fix tests

* fix tests

* fix test

* add required props for conformance test

* ignore confirmance types for now

* update snapshots

* fix change file

* deduplicate @babel/* entires

Co-authored-by: Oleksandr Fediashov <[email protected]>
Co-authored-by: Elizabeth Craig <[email protected]>
Co-authored-by: Oleksandr Fediashov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu Convergence
7 participants