@primer/react-brand 0.80.1 → 0.80.2-rc.93619886
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/index.md +2 -2
- package/esm/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/esm/ActionMenu/ActionMenu.js +195 -188
- package/esm/ActionMenu/ActionMenu.js.map +1 -1
- package/esm/ComparisonTable/ComparisonTable.d.ts.map +1 -1
- package/esm/ComparisonTable/ComparisonTable.js +2 -2
- package/esm/ComparisonTable/ComparisonTable.js.map +1 -1
- package/esm/ComparisonTable/ComparisonTable.module-BeNq6ZNV.css +1 -0
- package/esm/ComparisonTable/ComparisonTable.module.js +3 -1
- package/esm/ComparisonTable/ComparisonTable.module.js.map +1 -1
- package/esm/MediaPlaylist/{MediaPlaylist.module-BddC0boN.css → MediaPlaylist.module-C4Y3VORG.css} +1 -1
- package/esm/MediaPlaylist/MediaPlaylist.module.js +1 -1
- package/esm/MediaPlaylist/MediaPlaylist.module.js.map +1 -1
- package/esm/MinimalFooter/MinimalFooter.module-DzY1SyHQ.css +1 -0
- package/esm/MinimalFooter/MinimalFooter.module.js +1 -1
- package/esm/MinimalFooter/MinimalFooter.module.js.map +1 -1
- package/lib/css/main.css +87 -86
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon-button/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon-button/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/spinner/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/spinner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/spinner/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial-group/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/button/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/carousel-pagination/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon-button/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/spinner/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/spinner/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial-group/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tiles/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/button/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/carousel-pagination/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon-button/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/spinner/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/spinner/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial-group/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tiles/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/toggle-switch/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/toggle-switch/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/button/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/carousel-pagination/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/feature-comparison-table/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon-button/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon-button/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/spinner/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/spinner/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial-group/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tiles/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/button/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/button/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tiles/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tiles/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.js +1 -1
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/esm/ComparisonTable/ComparisonTable.module-CUq68rV0.css +0 -1
- package/esm/MinimalFooter/MinimalFooter.module-BKn_6UZK.css +0 -1
package/docs/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Primer Brand docs (v0.80.
|
|
1
|
+
# Primer Brand docs (v0.80.2-rc.93619886)
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@primer/react-brand@0.80.
|
|
3
|
+
These docs are bundled with `@primer/react-brand@0.80.2-rc.93619886` and match your installed version.
|
|
4
4
|
|
|
5
5
|
New here? Start with [Getting started](getting-started/index.md) for installation, global
|
|
6
6
|
stylesheet and font setup. Component directories are named after their import (e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/ActionMenu/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAQZ,iBAAiB,EAGjB,YAAY,
|
|
1
|
+
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/ActionMenu/ActionMenu.tsx"],"names":[],"mappings":"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"}
|
|
@@ -2,22 +2,23 @@ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
|
2
2
|
import { useId as t } from "../hooks/useId.js";
|
|
3
3
|
import { Text as n } from "../Text/Text.js";
|
|
4
4
|
import { Button as r } from "../Button/Button.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
5
|
+
import { Tooltip as i } from "../Tooltip/Tooltip.js";
|
|
6
|
+
import { IconButton as a } from "../IconButton/IconButton.js";
|
|
7
|
+
import { ThemeProvider as o } from "../ThemeProvider/ThemeProvider.js";
|
|
8
|
+
import { useTheme as s } from "../ThemeProvider/useTheme.js";
|
|
9
|
+
import { useAnchoredPosition as c } from "../hooks/useAnchoredPosition.js";
|
|
10
|
+
import { useOnClickOutside as l } from "../hooks/useOnClickOutside.js";
|
|
11
|
+
import { useKeyboardEscape as u } from "../hooks/useKeyboardEscape.js";
|
|
12
|
+
import { ActionMenuButtonModes as d, ActionMenuProvider as f, ActionMenuSizes as p, useActionMenuContext as m } from "./ActionMenuContext.js";
|
|
13
|
+
import { CheckIcon as h } from "../node_modules/@primer/octicons-react/dist/icons/CheckIcon.js";
|
|
14
|
+
import { ChevronDownIcon as g } from "../node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js";
|
|
14
15
|
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes-CyS5r4GY.css';/* empty css */
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { Fragment as
|
|
18
|
-
import { FocusKeys as
|
|
16
|
+
import _ from "./ActionMenu.module.js";
|
|
17
|
+
import v, { Children as y, cloneElement as b, forwardRef as x, isValidElement as S, memo as C, useCallback as w, useEffect as T, useImperativeHandle as E, useMemo as D, useRef as O, useState as k } from "react";
|
|
18
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
19
|
+
import { FocusKeys as N, focusZone as P } from "@primer/behaviors";
|
|
19
20
|
//#region src/ActionMenu/ActionMenu.tsx
|
|
20
|
-
var
|
|
21
|
+
var F = {
|
|
21
22
|
root: "ActionMenu",
|
|
22
23
|
get button() {
|
|
23
24
|
return `${this.root}-button`;
|
|
@@ -31,7 +32,7 @@ var N = {
|
|
|
31
32
|
get item() {
|
|
32
33
|
return `${this.root}-list-item`;
|
|
33
34
|
}
|
|
34
|
-
},
|
|
35
|
+
}, I = [
|
|
35
36
|
"inside-top",
|
|
36
37
|
"inside-bottom",
|
|
37
38
|
"inside-left",
|
|
@@ -41,27 +42,27 @@ var N = {
|
|
|
41
42
|
"outside-bottom",
|
|
42
43
|
"outside-left",
|
|
43
44
|
"outside-right"
|
|
44
|
-
],
|
|
45
|
-
let [
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
], L = C(({ id: n, children: r, "data-testid": i, disabled: a, open: o = !1, selectionVariant: s = "none", menuAlignment: d = "end", size: p = "medium", menuSide: m, onSelect: h, mode: g = "default" }) => {
|
|
46
|
+
let [v, x] = k(o), C = O(null), E = O(null), D = t(n);
|
|
47
|
+
l(C, () => x(!1), E), u(w(() => {
|
|
48
|
+
x(!1);
|
|
48
49
|
}, []));
|
|
49
|
-
let
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
h && h(e),
|
|
53
|
-
}, [h,
|
|
54
|
-
|
|
50
|
+
let A = w(() => {
|
|
51
|
+
x(!v);
|
|
52
|
+
}, [v]), I = w((e) => {
|
|
53
|
+
h && h(e), A();
|
|
54
|
+
}, [h, A]), L = w((e) => {
|
|
55
|
+
I(e), A(), E.current?.focus();
|
|
55
56
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
I,
|
|
58
|
+
A,
|
|
59
|
+
E
|
|
59
60
|
]);
|
|
60
|
-
|
|
61
|
-
if (
|
|
62
|
-
let e =
|
|
63
|
-
|
|
64
|
-
bindKeys:
|
|
61
|
+
T(() => {
|
|
62
|
+
if (v && C.current) {
|
|
63
|
+
let e = C.current, t = g === "split-button", n = t ? (e) => e.tagName === "A" : void 0;
|
|
64
|
+
P(C.current, {
|
|
65
|
+
bindKeys: N.ArrowVertical,
|
|
65
66
|
focusableElementFilter: n,
|
|
66
67
|
focusInStrategy: t ? "first" : void 0
|
|
67
68
|
}), e.addEventListener("keydown", (e) => {
|
|
@@ -69,12 +70,12 @@ var N = {
|
|
|
69
70
|
let t = e.target, n = t.tagName === "A" ? t.closest("li") : t;
|
|
70
71
|
if (!n || n.getAttribute("aria-disabled") === "true") return;
|
|
71
72
|
let r = n.getAttribute("data-value");
|
|
72
|
-
r && (
|
|
73
|
-
|
|
73
|
+
r && (I(r), x(!1), setTimeout(() => {
|
|
74
|
+
E.current?.focus();
|
|
74
75
|
}, 10));
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
|
-
let r = t ? "a" : "li", i =
|
|
78
|
+
let r = t ? "a" : "li", i = C.current.querySelector(r);
|
|
78
79
|
i && setTimeout(() => {
|
|
79
80
|
i.focus();
|
|
80
81
|
}, 10);
|
|
@@ -86,136 +87,142 @@ var N = {
|
|
|
86
87
|
let t = e;
|
|
87
88
|
t.key === "ArrowUp" && (t.preventDefault(), a.focus());
|
|
88
89
|
}), e.addEventListener("keydown", (e) => {
|
|
89
|
-
e.key === "Escape" &&
|
|
90
|
+
e.key === "Escape" && E.current?.focus();
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
93
|
}, [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
v,
|
|
95
|
+
C,
|
|
96
|
+
g,
|
|
97
|
+
L,
|
|
98
|
+
A,
|
|
99
|
+
I
|
|
99
100
|
]);
|
|
100
|
-
let { position:
|
|
101
|
-
floatingElementRef:
|
|
102
|
-
anchorElementRef:
|
|
103
|
-
align:
|
|
101
|
+
let { position: B } = c({
|
|
102
|
+
floatingElementRef: C,
|
|
103
|
+
anchorElementRef: E,
|
|
104
|
+
align: d,
|
|
104
105
|
allowOutOfBounds: !0,
|
|
105
106
|
side: m
|
|
106
|
-
}, [
|
|
107
|
-
ref:
|
|
108
|
-
className: e(n.props.className,
|
|
109
|
-
menuOpen:
|
|
107
|
+
}, [v]), V = y.toArray(r), U = V.find((e) => S(e) && e.type === H)?.props["aria-label"], { Button: W, Overlay: G } = V.reduce((t, n) => (S(n) && n.type === R ? t.Button = b(n, {
|
|
108
|
+
ref: E,
|
|
109
|
+
className: e(n.props.className, _[`ActionMenu__button--${g}`], v),
|
|
110
|
+
menuOpen: v,
|
|
110
111
|
disabled: a,
|
|
111
|
-
id: `${
|
|
112
|
+
id: `${D}-button`,
|
|
112
113
|
size: p
|
|
113
|
-
}) :
|
|
114
|
-
ref:
|
|
115
|
-
className: e(n.props.className,
|
|
116
|
-
menuOpen:
|
|
114
|
+
}) : S(n) && n.type === z ? t.Button = b(n, {
|
|
115
|
+
ref: E,
|
|
116
|
+
className: e(n.props.className, g === "split-button" && _["ActionMenu__button--split-button"]),
|
|
117
|
+
menuOpen: v,
|
|
117
118
|
disabled: a,
|
|
118
|
-
id: `${
|
|
119
|
+
id: `${D}-button`,
|
|
119
120
|
size: p
|
|
120
|
-
}) :
|
|
121
|
-
ref:
|
|
122
|
-
className: e(
|
|
121
|
+
}) : S(n) && n.type === H && (t.Overlay = b(n, {
|
|
122
|
+
ref: C,
|
|
123
|
+
className: e(_.ActionMenu__menu, B && _["ActionMenu__menu--visible"], B && _[`ActionMenu__menu--pos-${B.anchorSide}`], _[`ActionMenu__menu--${p}`], g === "split-button" && "ActionMenu__menu--split"),
|
|
123
124
|
style: {
|
|
124
|
-
top: `${
|
|
125
|
-
left: `${
|
|
125
|
+
top: `${B?.top ?? 0}px`,
|
|
126
|
+
left: `${B?.left ?? 0}px`
|
|
126
127
|
},
|
|
127
|
-
id: `${
|
|
128
|
-
children:
|
|
129
|
-
handler:
|
|
130
|
-
type:
|
|
128
|
+
id: `${D}-menu`,
|
|
129
|
+
children: y.map(n.props.children, (e) => S(e) ? b(e, {
|
|
130
|
+
handler: L,
|
|
131
|
+
type: g === "split-button" ? "link" : s
|
|
131
132
|
}) : e)
|
|
132
133
|
})), t), {});
|
|
133
|
-
return /* @__PURE__ */
|
|
134
|
+
return /* @__PURE__ */ j(f, {
|
|
134
135
|
size: p,
|
|
135
|
-
mode:
|
|
136
|
+
mode: g,
|
|
136
137
|
menuLabel: U,
|
|
137
|
-
onMenuToggle:
|
|
138
|
-
children: /* @__PURE__ */
|
|
139
|
-
id:
|
|
140
|
-
className: e(
|
|
141
|
-
"data-testid": i ||
|
|
142
|
-
children: [W,
|
|
138
|
+
onMenuToggle: A,
|
|
139
|
+
children: /* @__PURE__ */ M("div", {
|
|
140
|
+
id: D,
|
|
141
|
+
className: e(_.ActionMenu, a && _["ActionMenu--disabled"]),
|
|
142
|
+
"data-testid": i || F.root,
|
|
143
|
+
children: [W, v ? G : null]
|
|
143
144
|
})
|
|
144
145
|
});
|
|
145
|
-
}),
|
|
146
|
-
let { menuLabel:
|
|
147
|
-
|
|
146
|
+
}), R = x(({ as: t, href: n, id: a, children: o, className: s, "data-testid": c, disabled: l, menuOpen: u, size: d, onClick: f, leadingVisual: p, variant: h, ...v }, y) => {
|
|
147
|
+
let { menuLabel: b, mode: x, onMenuToggle: S } = m(), C = O(null);
|
|
148
|
+
E(x === "split-button" && !l ? y : null, () => C.current, []);
|
|
149
|
+
let T = w((e) => {
|
|
150
|
+
if (l) {
|
|
148
151
|
e.preventDefault();
|
|
149
152
|
return;
|
|
150
153
|
}
|
|
151
|
-
|
|
154
|
+
f?.(e), e.defaultPrevented || S?.();
|
|
152
155
|
}, [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
]),
|
|
157
|
-
if (
|
|
156
|
+
l,
|
|
157
|
+
f,
|
|
158
|
+
S
|
|
159
|
+
]), D = w((e) => {
|
|
160
|
+
if (l) {
|
|
158
161
|
e.preventDefault();
|
|
159
162
|
return;
|
|
160
163
|
}
|
|
161
|
-
|
|
162
|
-
}, [
|
|
163
|
-
if (
|
|
164
|
-
let
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
f?.(e);
|
|
165
|
+
}, [l, f]);
|
|
166
|
+
if (x === "split-button") {
|
|
167
|
+
let f = h ?? "primary", m = /* @__PURE__ */ j(r, {
|
|
168
|
+
ref: l ? y : void 0,
|
|
169
|
+
id: a,
|
|
170
|
+
as: "button",
|
|
171
|
+
className: e(_["ActionMenu__innerButton--split-button"], _["ActionMenu__innerButton--split-button-menu"]),
|
|
172
|
+
variant: f,
|
|
173
|
+
"aria-haspopup": "true",
|
|
174
|
+
"aria-label": b,
|
|
175
|
+
size: d,
|
|
176
|
+
"aria-expanded": u ? "true" : "false",
|
|
177
|
+
onClick: S,
|
|
178
|
+
disabled: l,
|
|
179
|
+
children: /* @__PURE__ */ j(g, { className: _["ActionMenu__inner-button-dropdown-icon"] })
|
|
180
|
+
});
|
|
181
|
+
return /* @__PURE__ */ M("div", {
|
|
182
|
+
className: e(_.ActionMenu__button, _[`ActionMenu__button--${d}`], s),
|
|
183
|
+
children: [/* @__PURE__ */ j(r, {
|
|
168
184
|
as: t,
|
|
169
185
|
href: n,
|
|
170
|
-
className: e(
|
|
171
|
-
variant:
|
|
172
|
-
"aria-disabled":
|
|
173
|
-
"data-testid":
|
|
174
|
-
size:
|
|
175
|
-
leadingVisual:
|
|
176
|
-
onClick:
|
|
177
|
-
...
|
|
178
|
-
children: /* @__PURE__ */
|
|
179
|
-
className:
|
|
180
|
-
children:
|
|
186
|
+
className: e(_["ActionMenu__innerButton--split-button"], _["ActionMenu__innerButton--split-button-primary"], _[`ActionMenu__innerButton--${f}`], _[`ActionMenu__innerButton--${d}`], l && _["ActionMenu__innerButton--disabled"]),
|
|
187
|
+
variant: f,
|
|
188
|
+
"aria-disabled": l,
|
|
189
|
+
"data-testid": c || F.button,
|
|
190
|
+
size: d,
|
|
191
|
+
leadingVisual: p,
|
|
192
|
+
onClick: D,
|
|
193
|
+
...v,
|
|
194
|
+
children: /* @__PURE__ */ j("span", {
|
|
195
|
+
className: _["ActionMenu__button-text"],
|
|
196
|
+
children: o
|
|
181
197
|
})
|
|
182
|
-
}), /* @__PURE__ */
|
|
183
|
-
ref:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
className: e(g["ActionMenu__innerButton--split-button"], g["ActionMenu__innerButton--split-button-menu"]),
|
|
187
|
-
variant: d,
|
|
188
|
-
"aria-haspopup": "true",
|
|
189
|
-
"aria-label": y,
|
|
190
|
-
size: u,
|
|
191
|
-
"aria-expanded": l ? "true" : "false",
|
|
192
|
-
onClick: x,
|
|
193
|
-
disabled: c,
|
|
194
|
-
children: /* @__PURE__ */ k(h, { className: g["ActionMenu__inner-button-dropdown-icon"] })
|
|
198
|
+
}), l ? m : /* @__PURE__ */ j(i, {
|
|
199
|
+
ref: C,
|
|
200
|
+
text: b,
|
|
201
|
+
children: m
|
|
195
202
|
})]
|
|
196
203
|
});
|
|
197
204
|
}
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
-
ref:
|
|
200
|
-
id:
|
|
201
|
-
className: e(
|
|
205
|
+
return /* @__PURE__ */ j(r, {
|
|
206
|
+
ref: y,
|
|
207
|
+
id: a,
|
|
208
|
+
className: e(_.ActionMenu__button, _[`ActionMenu__button--${d}`], s),
|
|
202
209
|
"aria-haspopup": "true",
|
|
203
|
-
"aria-expanded":
|
|
204
|
-
disabled:
|
|
205
|
-
"data-testid":
|
|
206
|
-
size:
|
|
207
|
-
variant:
|
|
208
|
-
leadingVisual:
|
|
209
|
-
trailingVisual: /* @__PURE__ */
|
|
210
|
-
onClick:
|
|
211
|
-
...
|
|
212
|
-
children: /* @__PURE__ */
|
|
213
|
-
className:
|
|
214
|
-
children:
|
|
210
|
+
"aria-expanded": u ? "true" : "false",
|
|
211
|
+
disabled: l,
|
|
212
|
+
"data-testid": c || F.button,
|
|
213
|
+
size: d,
|
|
214
|
+
variant: h,
|
|
215
|
+
leadingVisual: p,
|
|
216
|
+
trailingVisual: /* @__PURE__ */ j(g, {}),
|
|
217
|
+
onClick: T,
|
|
218
|
+
...v,
|
|
219
|
+
children: /* @__PURE__ */ j("span", {
|
|
220
|
+
className: _["ActionMenu__button-text"],
|
|
221
|
+
children: o
|
|
215
222
|
})
|
|
216
223
|
});
|
|
217
|
-
}),
|
|
218
|
-
let { menuLabel: v, mode: y, onMenuToggle: b } =
|
|
224
|
+
}), z = x(({ as: t, id: n, icon: r, className: i, "aria-label": o, "data-testid": s, disabled: c, menuOpen: l, size: u, variant: d, onClick: f, ...p }, h) => {
|
|
225
|
+
let { menuLabel: v, mode: y, onMenuToggle: b } = m(), x = w((e) => {
|
|
219
226
|
if (c) {
|
|
220
227
|
e.preventDefault();
|
|
221
228
|
return;
|
|
@@ -225,7 +232,7 @@ var N = {
|
|
|
225
232
|
c,
|
|
226
233
|
f,
|
|
227
234
|
b
|
|
228
|
-
]), S =
|
|
235
|
+
]), S = w((e) => {
|
|
229
236
|
if (c) {
|
|
230
237
|
e.preventDefault();
|
|
231
238
|
return;
|
|
@@ -234,25 +241,25 @@ var N = {
|
|
|
234
241
|
}, [c, f]);
|
|
235
242
|
if (y === "split-button") {
|
|
236
243
|
let f = d ?? "primary";
|
|
237
|
-
return /* @__PURE__ */
|
|
238
|
-
className: e(
|
|
239
|
-
children: [/* @__PURE__ */
|
|
240
|
-
...
|
|
244
|
+
return /* @__PURE__ */ M("div", {
|
|
245
|
+
className: e(_.ActionMenu__button, _[`ActionMenu__button--${u}`], i),
|
|
246
|
+
children: [/* @__PURE__ */ j(a, {
|
|
247
|
+
...p,
|
|
241
248
|
as: t,
|
|
242
249
|
icon: r,
|
|
243
250
|
"aria-label": o,
|
|
244
|
-
className: e(
|
|
251
|
+
className: e(_["ActionMenu__innerButton--split-button"], _["ActionMenu__innerButton--split-button-primary"], _[`ActionMenu__innerButton--${f}`], _[`ActionMenu__innerButton--${u}`], c && _["ActionMenu__innerButton--disabled"]),
|
|
245
252
|
variant: f,
|
|
246
253
|
"aria-disabled": c,
|
|
247
|
-
"data-testid": s ||
|
|
254
|
+
"data-testid": s || F.button,
|
|
248
255
|
size: u,
|
|
249
256
|
onClick: S
|
|
250
|
-
}), /* @__PURE__ */
|
|
251
|
-
ref:
|
|
257
|
+
}), /* @__PURE__ */ j(a, {
|
|
258
|
+
ref: h,
|
|
252
259
|
id: n,
|
|
253
|
-
icon:
|
|
260
|
+
icon: g,
|
|
254
261
|
"aria-label": v,
|
|
255
|
-
className: e(
|
|
262
|
+
className: e(_["ActionMenu__innerButton--split-button"], _["ActionMenu__innerButton--split-button-menu"]),
|
|
256
263
|
variant: f,
|
|
257
264
|
"aria-haspopup": "menu",
|
|
258
265
|
size: u,
|
|
@@ -262,73 +269,73 @@ var N = {
|
|
|
262
269
|
})]
|
|
263
270
|
});
|
|
264
271
|
}
|
|
265
|
-
return /* @__PURE__ */
|
|
266
|
-
...
|
|
267
|
-
ref:
|
|
272
|
+
return /* @__PURE__ */ j(a, {
|
|
273
|
+
...p,
|
|
274
|
+
ref: h,
|
|
268
275
|
as: t,
|
|
269
276
|
id: n,
|
|
270
277
|
icon: r,
|
|
271
278
|
"aria-label": o,
|
|
272
|
-
className:
|
|
279
|
+
className: i,
|
|
273
280
|
"aria-haspopup": "menu",
|
|
274
281
|
"aria-expanded": l ? "true" : "false",
|
|
275
282
|
disabled: c,
|
|
276
|
-
"data-testid": s ||
|
|
283
|
+
"data-testid": s || F.button,
|
|
277
284
|
size: u,
|
|
278
285
|
variant: d,
|
|
279
286
|
onClick: x
|
|
280
287
|
});
|
|
281
|
-
}),
|
|
288
|
+
}), B = {
|
|
282
289
|
none: "menuitem",
|
|
283
290
|
single: "menuitemradio",
|
|
284
291
|
link: "menuitem"
|
|
285
|
-
},
|
|
286
|
-
let { size:
|
|
292
|
+
}, V = ({ as: t, children: r, className: i, disabled: a, handler: o, selected: s, type: c, value: l, onClick: u, onKeyDown: d, leadingVisual: f, ...p }) => {
|
|
293
|
+
let { size: g } = m(), y = w((e) => {
|
|
287
294
|
u?.(e), a || o?.(String(l));
|
|
288
295
|
}, [
|
|
289
296
|
o,
|
|
290
297
|
l,
|
|
291
298
|
a,
|
|
292
299
|
u
|
|
293
|
-
]), b =
|
|
300
|
+
]), b = w((e) => {
|
|
294
301
|
d?.(e), !a && e.key === "Enter" && o?.(String(l));
|
|
295
302
|
}, [
|
|
296
303
|
o,
|
|
297
304
|
l,
|
|
298
305
|
a,
|
|
299
306
|
d
|
|
300
|
-
]), x =
|
|
301
|
-
className: e(
|
|
302
|
-
role:
|
|
307
|
+
]), x = D(() => ({
|
|
308
|
+
className: e(_.ActionMenu__item, c === "single" && _[`ActionMenu__item--selection-type-${c}`], g && _[`ActionMenu__item--${g}`], i),
|
|
309
|
+
role: B[c || "single"],
|
|
303
310
|
"aria-disabled": a,
|
|
304
311
|
tabIndex: -1,
|
|
305
312
|
"data-value": l,
|
|
306
|
-
...
|
|
313
|
+
...p
|
|
307
314
|
}), [
|
|
308
|
-
|
|
315
|
+
p,
|
|
309
316
|
c,
|
|
310
|
-
|
|
317
|
+
g,
|
|
311
318
|
i,
|
|
312
319
|
a,
|
|
313
320
|
l
|
|
314
|
-
]), S =
|
|
315
|
-
|
|
321
|
+
]), S = D(() => /* @__PURE__ */ M(A, { children: [
|
|
322
|
+
v.isValidElement(f) ? v.cloneElement(f, {
|
|
316
323
|
width: f.props.width || 20,
|
|
317
324
|
height: f.props.width || 20
|
|
318
325
|
}) : null,
|
|
319
|
-
c === "single" && /* @__PURE__ */
|
|
320
|
-
className:
|
|
321
|
-
children: s && /* @__PURE__ */
|
|
322
|
-
className: e(
|
|
326
|
+
c === "single" && /* @__PURE__ */ j("span", {
|
|
327
|
+
className: _["ActionMenu__item-leadingVisual"],
|
|
328
|
+
children: s && /* @__PURE__ */ j(h, {
|
|
329
|
+
className: e(_["ActionMenu__item-icon"], a && _["ActionMenu__item-icon--disabled"]),
|
|
323
330
|
size: 16
|
|
324
331
|
})
|
|
325
332
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
className:
|
|
328
|
-
children: /* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ j("span", {
|
|
334
|
+
className: _["ActionMenu__item-text"],
|
|
335
|
+
children: /* @__PURE__ */ j(n, {
|
|
329
336
|
variant: a ? "muted" : "default",
|
|
330
|
-
size:
|
|
331
|
-
className: e(a &&
|
|
337
|
+
size: g === "medium" ? "200" : "100",
|
|
338
|
+
className: e(a && _["ActionMenu__item-content--disabled"]),
|
|
332
339
|
children: r
|
|
333
340
|
})
|
|
334
341
|
})
|
|
@@ -337,20 +344,20 @@ var N = {
|
|
|
337
344
|
r,
|
|
338
345
|
s,
|
|
339
346
|
a,
|
|
340
|
-
|
|
347
|
+
g,
|
|
341
348
|
c
|
|
342
349
|
]);
|
|
343
|
-
return t === "a" ? /* @__PURE__ */
|
|
350
|
+
return t === "a" ? /* @__PURE__ */ j("li", {
|
|
344
351
|
role: "menuitem",
|
|
345
352
|
...x,
|
|
346
353
|
onClick: u,
|
|
347
354
|
onKeyDown: d,
|
|
348
|
-
children: /* @__PURE__ */
|
|
349
|
-
className: e(
|
|
350
|
-
href:
|
|
355
|
+
children: /* @__PURE__ */ j("a", {
|
|
356
|
+
className: e(_["ActionMenu__item-anchor"], a && _["ActionMenu__item--disabled"]),
|
|
357
|
+
href: p.href,
|
|
351
358
|
children: S
|
|
352
359
|
})
|
|
353
|
-
}) : /* @__PURE__ */
|
|
360
|
+
}) : /* @__PURE__ */ j("li", {
|
|
354
361
|
role: "menuitem",
|
|
355
362
|
...x,
|
|
356
363
|
"aria-checked": c === "none" ? void 0 : s ? "true" : "false",
|
|
@@ -358,27 +365,27 @@ var N = {
|
|
|
358
365
|
onKeyDown: b,
|
|
359
366
|
children: S
|
|
360
367
|
});
|
|
361
|
-
},
|
|
362
|
-
let { originalColorMode: l, colorMode: u } =
|
|
363
|
-
return /* @__PURE__ */
|
|
368
|
+
}, H = x(({ children: t, className: n, "data-testid": r, menuOpen: i, ...a }, c) => {
|
|
369
|
+
let { originalColorMode: l, colorMode: u } = s();
|
|
370
|
+
return /* @__PURE__ */ j(o, {
|
|
364
371
|
colorMode: n?.includes("ActionMenu__menu--split") ? "light" : l ?? u,
|
|
365
|
-
children: /* @__PURE__ */
|
|
372
|
+
children: /* @__PURE__ */ j("ul", {
|
|
366
373
|
ref: c,
|
|
367
374
|
className: e(n),
|
|
368
375
|
role: "menu",
|
|
369
|
-
"data-testid": r ||
|
|
370
|
-
...
|
|
376
|
+
"data-testid": r || F.list,
|
|
377
|
+
...a,
|
|
371
378
|
children: t
|
|
372
379
|
})
|
|
373
380
|
});
|
|
374
|
-
}),
|
|
375
|
-
Button:
|
|
376
|
-
IconButton:
|
|
377
|
-
Item:
|
|
378
|
-
Overlay:
|
|
379
|
-
testIds:
|
|
381
|
+
}), U = Object.assign(L, {
|
|
382
|
+
Button: R,
|
|
383
|
+
IconButton: z,
|
|
384
|
+
Item: V,
|
|
385
|
+
Overlay: H,
|
|
386
|
+
testIds: F
|
|
380
387
|
});
|
|
381
388
|
//#endregion
|
|
382
|
-
export {
|
|
389
|
+
export { U as ActionMenu, d as ActionMenuButtonModes, f as ActionMenuProvider, p as ActionMenuSizes, I as actionMenuOverlaySides, m as useActionMenuContext };
|
|
383
390
|
|
|
384
391
|
//# sourceMappingURL=ActionMenu.js.map
|