RAC: Submenu support (#5648)
* initialize RAC submenu
* use cached children
* cleanup
* use one useRenderProps
* types
* cleanup
* fix trigger ref
* typescript
* add chevron style to submenu trigger
* types
* cleanup
* pass submenu ref
* add submenu story to menu story file
* fix nested case
* cleanup
* add nested story
* fix trigger attribute
* add tests
* update jsdoc
* add docs
* update storybook styles
* fix docs types
* cleanup tests
* move imports in docs closer to example
* typescript
* add example to homepage
* close all submenus if underlay is clicked
* revert autoformatting from headwind
* add to small example, fix imports and labels
* render via portal
* add render props and data attributes
* add || undefined
* add many items example
* add keys for storybook
* imrove styles on docs page
* improve homepage styles
* move chevron into item wrapper
* ts lint
* lint
* story style update
* style isSubmenuOpen states
* add dynamic example to dcs
* don't allow submenu trigger to be a link
* clarify submenutrigger children order in types
* use proper hover state from useHover
* update tests
* update docs to clarify children
* remove top -5 offset
* add disabled submenu example
* fix iOS VO submenu closing issue
* add Select story with many items
* move docs chevron styles from inline to CSS snippet
* export SubmenuTrigger directly without forwardRef
* update render props
* fix indentation
* add has-submenu to tailwind plugin
* remove offset
* fix homepage example styles
* fix docs example dark mode style
* focus trigger on escape
* add test for focus menu trigger after submenu closes via escape
* add alpha tag to docs
* add JSDoc
* fix restoring focus to menu trigger after nested submenu closed via Esc key
* lint
* Render popover outside menu item div
fixes hover event handling (events bubble through portals)
* support a custom delay prop in hook and RAC
* remove from homepage and tailwind starter for now
* revert auto-formatting
---------
Co-authored-by: Devon Govett <devongovett@gmail.com>
Co-authored-by: Daniel Lu <dl1644@gmail.com>