@primer/react-brand 0.75.1 → 0.76.0-rc.16d4997d
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/components/SubdomainNavBar/index.md +28 -1
- package/docs/index.md +2 -2
- package/esm/Accordion/Accordion.d.ts.map +1 -1
- package/esm/Accordion/Accordion.js +1 -3
- package/esm/Accordion/Accordion.js.map +1 -1
- package/esm/Accordion/{Accordion.module-COckontb.css → Accordion.module-B-iFuyHy.css} +1 -1
- package/esm/Accordion/Accordion.module.js +1 -1
- package/esm/Accordion/Accordion.module.js.map +1 -1
- package/esm/Button/Button.module-9oHHqqnx.css +1 -0
- package/esm/Button/Button.module.js +1 -1
- package/esm/Button/Button.module.js.map +1 -1
- package/esm/IDE/IDE.module-CDu-F0lH.css +1 -0
- package/esm/IDE/IDE.module.js +1 -1
- package/esm/IDE/IDE.module.js.map +1 -1
- package/esm/MinimalFooter/{MinimalFooter.module-CGtOtT5r.css → MinimalFooter.module-BKn_6UZK.css} +1 -1
- package/esm/MinimalFooter/MinimalFooter.module.js +1 -1
- package/esm/MinimalFooter/MinimalFooter.module.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +9 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.js +320 -319
- package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.module-DLlWpwNa.css +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js +7 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -1
- package/esm/VideoPlayer/VideoPlayer.module-Cb7UilXP.css +1 -0
- package/esm/VideoPlayer/VideoPlayer.module.js +1 -1
- package/esm/VideoPlayer/VideoPlayer.module.js.map +1 -1
- package/esm/css/{reset-CSgu34_f.css → reset-CbGp2YkS.css} +1 -1
- package/esm/css/stylesheets.js +1 -1
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +9 -0
- package/lib/css/main.css +204 -87
- 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Button/Button.module-Byz3R1qi.css +0 -1
- package/esm/IDE/IDE.module-CFxIRObF.css +0 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.module-WIrpYyjV.css +0 -1
- package/esm/VideoPlayer/VideoPlayer.module-BpVcE2WB.css +0 -1
|
@@ -6,26 +6,26 @@ import { useKeyboardEscape as i } from "../hooks/useKeyboardEscape.js";
|
|
|
6
6
|
import { ArrowUpRightIcon as a } from "../node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js";
|
|
7
7
|
import { ChevronLeftIcon as o } from "../node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js";
|
|
8
8
|
import { LinkExternalIcon as s } from "../node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js";
|
|
9
|
-
import { MarkGithubIcon as
|
|
10
|
-
import { SearchIcon as
|
|
11
|
-
import { useWindowSize as
|
|
12
|
-
import
|
|
13
|
-
import { SubdomainNavBarLinkContext as
|
|
14
|
-
import { NavigationVisbilityObserver as
|
|
15
|
-
import { useFocusTrap as
|
|
9
|
+
import { MarkGithubIcon as c } from "../node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js";
|
|
10
|
+
import { SearchIcon as l } from "../node_modules/@primer/octicons-react/dist/icons/SearchIcon.js";
|
|
11
|
+
import { useWindowSize as u } from "../hooks/useWindowSize.js";
|
|
12
|
+
import d from "./SubdomainNavBar.module.js";
|
|
13
|
+
import { SubdomainNavBarLinkContext as ee, useSubdomainNavBarLinkContext as te } from "./SubdomainNavBarLinkContext.js";
|
|
14
|
+
import { NavigationVisbilityObserver as ne } from "./NavigationVisbilityObserver.js";
|
|
15
|
+
import { useFocusTrap as re } from "../hooks/useFocusTrap.js";
|
|
16
16
|
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-BGj0AiDW.css';/* empty css */
|
|
17
|
-
import { useSearchKeyboardShortcut as
|
|
18
|
-
import { useSearchResults as
|
|
17
|
+
import { useSearchKeyboardShortcut as ie } from "./useSearchKeyboardShortcut.js";
|
|
18
|
+
import { useSearchResults as f } from "./useSearchResults.js";
|
|
19
19
|
import { TextInput as ae } from "../forms/TextInput/TextInput.js";
|
|
20
|
-
import { FormControl as
|
|
21
|
-
import
|
|
22
|
-
import { Fragment as
|
|
20
|
+
import { FormControl as oe } from "../forms/FormControl/FormControl.js";
|
|
21
|
+
import p, { forwardRef as m, useCallback as h, useEffect as g, useImperativeHandle as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
22
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
23
23
|
//#region src/SubdomainNavBar/SubdomainNavBar.tsx
|
|
24
|
-
var
|
|
24
|
+
var w = {
|
|
25
25
|
menuLabel: "Menu",
|
|
26
26
|
closeLabel: "Close",
|
|
27
27
|
overflowMenuLabel: "More"
|
|
28
|
-
},
|
|
28
|
+
}, T = p.createContext("small"), E = {
|
|
29
29
|
root: "SubdomainNavBar",
|
|
30
30
|
get innerContainer() {
|
|
31
31
|
return `${this.root}-inner-container`;
|
|
@@ -40,7 +40,7 @@ var T = {
|
|
|
40
40
|
return `${this.root}-search-live-region`;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
function
|
|
43
|
+
function D(e) {
|
|
44
44
|
if (e.closest("[hidden], [inert], [aria-hidden=\"true\"]")) return !1;
|
|
45
45
|
for (let t = e; t; t = t.parentElement) {
|
|
46
46
|
let e = window.getComputedStyle(t);
|
|
@@ -48,250 +48,248 @@ function O(e) {
|
|
|
48
48
|
}
|
|
49
49
|
return !0;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
let [
|
|
53
|
-
...
|
|
54
|
-
...
|
|
55
|
-
},
|
|
56
|
-
fe(Math.max(0,
|
|
57
|
-
}, []),
|
|
58
|
-
|
|
59
|
-
}, [
|
|
60
|
-
if (!
|
|
61
|
-
|
|
51
|
+
var O = m(function({ children: a, className: s, fixed: l = !0, fullWidth: te = !1, variant: f = "default", logoHref: ae = "https://github.com", style: oe, title: m, titleHref: O = "/", leadingComponent: A, trailingComponent: P, onNarrowMenuToggle: F, menuLabels: I, skipToContentTargetId: L, ...se }, ce) {
|
|
52
|
+
let [R, le] = b(!0), [ue, z] = b(!1), [de, fe] = b(0), { isMedium: pe, isLarge: B } = u(), [me, he] = b(!1), [ge, V] = b(), H = y(null), _e = y(null), ve = t(), ye = `${ve}-main`, be = t(), U = {
|
|
53
|
+
...w,
|
|
54
|
+
...I
|
|
55
|
+
}, xe = f === "featured", W = h(() => {
|
|
56
|
+
fe(Math.max(0, H.current?.getBoundingClientRect().top ?? 0));
|
|
57
|
+
}, []), G = h(() => {
|
|
58
|
+
R || (le(!0), F?.(!1));
|
|
59
|
+
}, [R, F]), Se = () => {
|
|
60
|
+
if (!R) {
|
|
61
|
+
G();
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
let e = Array.from(document.querySelectorAll("main")).find(
|
|
64
|
+
z(!1), W(), le(!1), F?.(!0);
|
|
65
|
+
}, Ce = y(null), we = h(() => {
|
|
66
|
+
let e = Array.from(document.querySelectorAll("main")).find(D);
|
|
67
67
|
return e ? (e.id ||= document.getElementById("start-of-content") ? ye : "start-of-content", e) : _e.current;
|
|
68
|
-
}, [ye]),
|
|
69
|
-
if (
|
|
70
|
-
let e = document.getElementById(
|
|
71
|
-
if (e &&
|
|
68
|
+
}, [ye]), K = h(() => {
|
|
69
|
+
if (L) {
|
|
70
|
+
let e = document.getElementById(L);
|
|
71
|
+
if (e && D(e)) return e;
|
|
72
72
|
}
|
|
73
|
-
return
|
|
74
|
-
}, [
|
|
73
|
+
return we();
|
|
74
|
+
}, [we, L]), Te = h(() => {
|
|
75
75
|
he(!0);
|
|
76
|
-
let e =
|
|
77
|
-
e &&
|
|
78
|
-
}, [
|
|
76
|
+
let e = K();
|
|
77
|
+
e && V(e.id);
|
|
78
|
+
}, [K]), Ee = h((e) => {
|
|
79
79
|
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
80
|
-
let t =
|
|
81
|
-
if (n && console.warn(`SubdomainNavBar could not find the skip-to-content target "${
|
|
80
|
+
let t = L ? document.getElementById(L) : null, n = L && (!t || !D(t)), r = K();
|
|
81
|
+
if (n && console.warn(`SubdomainNavBar could not find the skip-to-content target "${L}". Falling back to the page's main content.`), !r) return;
|
|
82
82
|
let i = `#${encodeURIComponent(r.id)}`;
|
|
83
|
-
e.currentTarget.setAttribute("href", i),
|
|
83
|
+
e.currentTarget.setAttribute("href", i), V(r.id);
|
|
84
84
|
let a = r.tabIndex < 0 && !r.hasAttribute("tabindex");
|
|
85
85
|
a && (r.tabIndex = -1);
|
|
86
86
|
let o = r.style.scrollMarginBlockStart;
|
|
87
|
-
if (
|
|
88
|
-
let e =
|
|
87
|
+
if (l) {
|
|
88
|
+
let e = H.current?.getBoundingClientRect().height ?? 0;
|
|
89
89
|
r.style.scrollMarginBlockStart = `${e}px`;
|
|
90
90
|
}
|
|
91
91
|
r.addEventListener("blur", () => {
|
|
92
92
|
a && r.removeAttribute("tabindex"), r.style.scrollMarginBlockStart = o;
|
|
93
93
|
}, { once: !0 }), r.focus({ preventScroll: !0 });
|
|
94
94
|
}, [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
l,
|
|
96
|
+
K,
|
|
97
|
+
L
|
|
98
98
|
]);
|
|
99
|
-
|
|
100
|
-
let e =
|
|
101
|
-
e &&
|
|
102
|
-
}, [
|
|
103
|
-
containerRef:
|
|
99
|
+
g(() => {
|
|
100
|
+
let e = K();
|
|
101
|
+
e && V(e.id);
|
|
102
|
+
}, [K]), re({
|
|
103
|
+
containerRef: Ce,
|
|
104
104
|
restoreFocusOnCleanUp: !0,
|
|
105
|
-
disabled:
|
|
106
|
-
}), i(
|
|
107
|
-
|
|
108
|
-
}, [
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
let e = new ResizeObserver(
|
|
105
|
+
disabled: R
|
|
106
|
+
}), i(G), g(() => {
|
|
107
|
+
B && G();
|
|
108
|
+
}, [G, B]), g(() => {
|
|
109
|
+
if (R || B) return;
|
|
110
|
+
W();
|
|
111
|
+
let e = new ResizeObserver(W), t = H.current;
|
|
112
112
|
return t && e.observe(t), e.observe(document.documentElement), () => e.disconnect();
|
|
113
113
|
}, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
]),
|
|
118
|
-
if (
|
|
114
|
+
B,
|
|
115
|
+
R,
|
|
116
|
+
W
|
|
117
|
+
]), g(() => {
|
|
118
|
+
if (R) return;
|
|
119
119
|
let e = document.body.style.overflow;
|
|
120
120
|
return document.body.style.overflow = "hidden", () => {
|
|
121
121
|
document.body.style.overflow = e;
|
|
122
122
|
};
|
|
123
|
-
}, [
|
|
124
|
-
let
|
|
123
|
+
}, [R]);
|
|
124
|
+
let De = h(() => he(!1), []), q = v(() => p.Children.toArray(a).filter((e) => p.isValidElement(e) && typeof e.type != "string" && e.type === k), []).length > 0, Oe = v(() => p.Children.toArray(a).map((e, t) => p.isValidElement(e) && e.type === k ? p.cloneElement(e, {
|
|
125
125
|
href: e.props.href,
|
|
126
126
|
children: e.props.children,
|
|
127
127
|
style: { "--animation-order": t }
|
|
128
|
-
}) : null).filter(Boolean), [a]), J =
|
|
129
|
-
e.props.onClick?.(t), t.defaultPrevented ||
|
|
130
|
-
} })), [J,
|
|
131
|
-
|
|
132
|
-
}, [
|
|
133
|
-
|
|
128
|
+
}) : null).filter(Boolean), [a]), J = v(() => p.Children.toArray(a).filter((e) => p.isValidElement(e) && (e.type === M || e.type === N)), [a]), ke = v(() => J.map((e) => p.cloneElement(e, { onClick: (t) => {
|
|
129
|
+
e.props.onClick?.(t), t.defaultPrevented || G();
|
|
130
|
+
} })), [J, G]), Y = J.length > 0, Ae = v(() => p.Children.toArray(a).find((e) => p.isValidElement(e) && e.type === j), [a]), je = !!Ae, X = h(() => {
|
|
131
|
+
je && (G(), z(!0));
|
|
132
|
+
}, [G, je]), Z = h(() => z(!1), []);
|
|
133
|
+
_(ce, () => H.current ? Object.assign(H.current, {
|
|
134
134
|
openSearch: X,
|
|
135
135
|
closeSearch: Z
|
|
136
136
|
}) : {
|
|
137
137
|
openSearch: X,
|
|
138
138
|
closeSearch: Z
|
|
139
|
-
}, [Z, X]),
|
|
139
|
+
}, [Z, X]), ie({
|
|
140
140
|
disabled: ue,
|
|
141
|
-
keyboardShortcut:
|
|
141
|
+
keyboardShortcut: Ae?.props.keyboardShortcut,
|
|
142
142
|
onTrigger: X
|
|
143
143
|
});
|
|
144
|
-
let Q =
|
|
145
|
-
...
|
|
144
|
+
let Q = A != null, $ = P != null, Me = q || Y || Q || $, Ne = {
|
|
145
|
+
...oe,
|
|
146
146
|
"--SubdomainNavBar-menu-offset-block-start": `${de}px`
|
|
147
147
|
};
|
|
148
|
-
return /* @__PURE__ */
|
|
149
|
-
className: e(
|
|
150
|
-
children: [/* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
149
|
+
className: e(d["SubdomainNavBar-outer-container"], l && d["SubdomainNavBar-outer-container--fixed"]),
|
|
150
|
+
children: [/* @__PURE__ */ S(r, {
|
|
151
151
|
as: "a",
|
|
152
|
-
href: `#${ge ||
|
|
152
|
+
href: `#${ge || L || ve}`,
|
|
153
153
|
variant: "primary",
|
|
154
154
|
size: "small",
|
|
155
|
-
className: e(
|
|
156
|
-
onFocus:
|
|
157
|
-
onBlur:
|
|
158
|
-
onClick:
|
|
155
|
+
className: e(d["SubdomainNavBar-skip-to-content"], !me && "visually-hidden"),
|
|
156
|
+
onFocus: Te,
|
|
157
|
+
onBlur: De,
|
|
158
|
+
onClick: Ee,
|
|
159
159
|
children: "Skip to content"
|
|
160
|
-
}), /* @__PURE__ */
|
|
161
|
-
ref:
|
|
162
|
-
className: e(
|
|
163
|
-
"data-testid":
|
|
164
|
-
style:
|
|
160
|
+
}), /* @__PURE__ */ C("header", {
|
|
161
|
+
ref: H,
|
|
162
|
+
className: e(d.SubdomainNavBar, d[`SubdomainNavBar--variant-${f}`], m && d["SubdomainNavBar--has-title"], q && d["SubdomainNavBar--has-primary-nav"], s),
|
|
163
|
+
"data-testid": E.root,
|
|
164
|
+
style: Ne,
|
|
165
165
|
...se,
|
|
166
|
-
children: [/* @__PURE__ */
|
|
167
|
-
ref:
|
|
168
|
-
className: e(
|
|
169
|
-
"data-testid":
|
|
166
|
+
children: [/* @__PURE__ */ C("div", {
|
|
167
|
+
ref: Ce,
|
|
168
|
+
className: e(d["SubdomainNavBar-inner-container"], ue && d["SubdomainNavBar-inner-container--search-open"], !te && d["SubdomainNavBar-inner-container--centered"]),
|
|
169
|
+
"data-testid": E.innerContainer,
|
|
170
170
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ S("nav", {
|
|
172
172
|
"aria-label": "Header logo and title",
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
173
|
+
className: d["SubdomainNavBar-title-navigation"],
|
|
174
|
+
children: /* @__PURE__ */ C("ol", {
|
|
175
|
+
className: d["SubdomainNavBar-title-area"],
|
|
176
|
+
children: [/* @__PURE__ */ S("li", { children: /* @__PURE__ */ C("a", {
|
|
177
|
+
href: ae,
|
|
178
|
+
"aria-label": "GitHub Home",
|
|
179
|
+
className: d["SubdomainNavBar-logo-mark"],
|
|
180
|
+
children: [/* @__PURE__ */ S("span", {
|
|
181
|
+
className: d["SubdomainNavBar-back-arrow"],
|
|
182
|
+
children: /* @__PURE__ */ S(o, {
|
|
182
183
|
fill: "currentColor",
|
|
183
184
|
size: 24
|
|
184
185
|
})
|
|
185
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ S(c, {
|
|
186
187
|
fill: "currentColor",
|
|
187
188
|
size: 24
|
|
188
189
|
})]
|
|
189
|
-
}) }),
|
|
190
|
-
href:
|
|
191
|
-
"aria-label": `${
|
|
192
|
-
className:
|
|
193
|
-
children: /* @__PURE__ */
|
|
190
|
+
}) }), m && /* @__PURE__ */ S("li", { children: /* @__PURE__ */ S("a", {
|
|
191
|
+
href: O,
|
|
192
|
+
"aria-label": `${m} home`,
|
|
193
|
+
className: d["SubdomainNavBar-title"],
|
|
194
|
+
children: /* @__PURE__ */ C(n, {
|
|
194
195
|
size: "400",
|
|
196
|
+
variant: "muted",
|
|
195
197
|
weight: "medium",
|
|
196
|
-
children: [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
className: u["SubdomainNavBar-title-label"],
|
|
204
|
-
children: p
|
|
205
|
-
})
|
|
206
|
-
]
|
|
198
|
+
children: [xe && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("span", {
|
|
199
|
+
className: d["SubdomainNavBar-title-prefix"],
|
|
200
|
+
children: "GitHub"
|
|
201
|
+
}), " "] }), /* @__PURE__ */ S("span", {
|
|
202
|
+
className: d["SubdomainNavBar-title-label"],
|
|
203
|
+
children: m
|
|
204
|
+
})]
|
|
207
205
|
})
|
|
208
|
-
}) })
|
|
206
|
+
}) })]
|
|
209
207
|
})
|
|
210
208
|
}),
|
|
211
|
-
|
|
209
|
+
q && /* @__PURE__ */ S("nav", {
|
|
212
210
|
id: "menu-navigation",
|
|
213
|
-
"aria-label":
|
|
214
|
-
className:
|
|
215
|
-
"data-testid":
|
|
216
|
-
children: /* @__PURE__ */
|
|
217
|
-
className:
|
|
218
|
-
overflowMenuLabel:
|
|
219
|
-
children:
|
|
211
|
+
"aria-label": m,
|
|
212
|
+
className: d["SubdomainNavBar-primary-nav"],
|
|
213
|
+
"data-testid": E.menuLinks,
|
|
214
|
+
children: /* @__PURE__ */ S(ne, {
|
|
215
|
+
className: d["SubdomainNavBar-primary-nav-list--invisible"],
|
|
216
|
+
overflowMenuLabel: U.overflowMenuLabel,
|
|
217
|
+
children: Oe
|
|
220
218
|
})
|
|
221
219
|
}),
|
|
222
|
-
|
|
223
|
-
className:
|
|
224
|
-
children:
|
|
220
|
+
B && Q && /* @__PURE__ */ S("div", {
|
|
221
|
+
className: d["SubdomainNavBar-leading-component"],
|
|
222
|
+
children: A
|
|
225
223
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
className: e(
|
|
224
|
+
/* @__PURE__ */ C("div", {
|
|
225
|
+
className: e(d["SubdomainNavBar-secondary-nav"]),
|
|
228
226
|
children: [
|
|
229
|
-
|
|
227
|
+
p.Children.toArray(a).map((t) => p.isValidElement(t) && t.type === j ? p.cloneElement(t, {
|
|
230
228
|
active: ue,
|
|
231
|
-
className: e(t.props.className,
|
|
229
|
+
className: e(t.props.className, B && (Y || $) && d["SubdomainNavBar-search-trigger--has-trailing-item"]),
|
|
232
230
|
onSearchOpen: X,
|
|
233
231
|
onSearchClose: Z,
|
|
234
|
-
title:
|
|
232
|
+
title: m
|
|
235
233
|
}) : null).filter(Boolean),
|
|
236
|
-
|
|
237
|
-
"aria-expanded": !
|
|
238
|
-
"aria-label":
|
|
234
|
+
Me && /* @__PURE__ */ C("button", {
|
|
235
|
+
"aria-expanded": !R,
|
|
236
|
+
"aria-label": R ? U.menuLabel : U.closeLabel,
|
|
239
237
|
"aria-controls": be,
|
|
240
|
-
className: e(
|
|
241
|
-
"data-testid":
|
|
242
|
-
onClick:
|
|
243
|
-
children: [/* @__PURE__ */
|
|
244
|
-
className:
|
|
238
|
+
className: e(d["SubdomainNavBar-menu-button"], d["SubdomainNavBar-mobile-menu-button"], !R && d["SubdomainNavBar-menu-button--close"]),
|
|
239
|
+
"data-testid": E.menuButton,
|
|
240
|
+
onClick: Se,
|
|
241
|
+
children: [/* @__PURE__ */ C("span", {
|
|
242
|
+
className: d["SubdomainNavBar-menu-button-icon"],
|
|
245
243
|
"aria-hidden": "true",
|
|
246
244
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ S("span", { className: d["SubdomainNavBar-menu-button-bar"] }),
|
|
246
|
+
/* @__PURE__ */ S("span", { className: d["SubdomainNavBar-menu-button-bar"] }),
|
|
247
|
+
/* @__PURE__ */ S("span", { className: d["SubdomainNavBar-menu-button-bar"] })
|
|
250
248
|
]
|
|
251
|
-
}), /* @__PURE__ */
|
|
252
|
-
className:
|
|
253
|
-
children:
|
|
249
|
+
}), /* @__PURE__ */ S("span", {
|
|
250
|
+
className: d["SubdomainNavBar-menu-button-label"],
|
|
251
|
+
children: R ? U.menuLabel : U.closeLabel
|
|
254
252
|
})]
|
|
255
253
|
}),
|
|
256
|
-
|
|
257
|
-
className:
|
|
258
|
-
children:
|
|
254
|
+
B && $ && /* @__PURE__ */ S("div", {
|
|
255
|
+
className: d["SubdomainNavBar-trailing-component"],
|
|
256
|
+
children: P
|
|
259
257
|
}),
|
|
260
|
-
|
|
261
|
-
className: e(
|
|
262
|
-
children: /* @__PURE__ */
|
|
263
|
-
className:
|
|
258
|
+
B && Y && /* @__PURE__ */ S("div", {
|
|
259
|
+
className: e(d["SubdomainNavBar-button-area"], d["SubdomainNavBar-button-area--visible"], $ && d["SubdomainNavBar-button-area--has-leading-item"]),
|
|
260
|
+
children: /* @__PURE__ */ S("div", {
|
|
261
|
+
className: d["SubdomainNavBar-button-area-inner"],
|
|
264
262
|
children: J
|
|
265
263
|
})
|
|
266
264
|
}),
|
|
267
|
-
!
|
|
265
|
+
!B && /* @__PURE__ */ C("div", {
|
|
268
266
|
id: be,
|
|
269
|
-
className: e(
|
|
270
|
-
children: [!
|
|
271
|
-
className:
|
|
272
|
-
children:
|
|
273
|
-
}),
|
|
274
|
-
value: { onLinkClick:
|
|
275
|
-
children: pe ? /* @__PURE__ */
|
|
276
|
-
className:
|
|
277
|
-
children:
|
|
278
|
-
}) : /* @__PURE__ */
|
|
279
|
-
className: e(
|
|
280
|
-
overflowMenuLabel:
|
|
281
|
-
children:
|
|
267
|
+
className: e(d["SubdomainNavBar-menu-wrapper"], R && d["SubdomainNavBar-menu-wrapper--close"]),
|
|
268
|
+
children: [!R && /* @__PURE__ */ C("div", { children: [Q && /* @__PURE__ */ S("div", {
|
|
269
|
+
className: d["SubdomainNavBar-leading-component"],
|
|
270
|
+
children: A
|
|
271
|
+
}), q && /* @__PURE__ */ S(ee.Provider, {
|
|
272
|
+
value: { onLinkClick: G },
|
|
273
|
+
children: pe ? /* @__PURE__ */ S("ul", {
|
|
274
|
+
className: d["SubdomainNavBar-primary-nav-list--visible"],
|
|
275
|
+
children: Oe
|
|
276
|
+
}) : /* @__PURE__ */ S(ne, {
|
|
277
|
+
className: e(d["SubdomainNavBar-primary-nav-list--visible"]),
|
|
278
|
+
overflowMenuLabel: U.overflowMenuLabel,
|
|
279
|
+
children: Oe
|
|
282
280
|
})
|
|
283
|
-
})] }), !
|
|
284
|
-
className: e(
|
|
285
|
-
children: [$ && /* @__PURE__ */
|
|
286
|
-
className:
|
|
287
|
-
children:
|
|
288
|
-
}), Y && /* @__PURE__ */
|
|
289
|
-
className: e(
|
|
290
|
-
children: /* @__PURE__ */
|
|
291
|
-
className:
|
|
292
|
-
children: /* @__PURE__ */
|
|
281
|
+
})] }), !R && (Y || $) && /* @__PURE__ */ C("div", {
|
|
282
|
+
className: e(d["SubdomainNavBar-menu-wrapper-footer"], (q || Q) && d["SubdomainNavBar-menu-wrapper-footer--has-leading-item"]),
|
|
283
|
+
children: [$ && /* @__PURE__ */ S("div", {
|
|
284
|
+
className: d["SubdomainNavBar-trailing-component"],
|
|
285
|
+
children: P
|
|
286
|
+
}), Y && /* @__PURE__ */ S("div", {
|
|
287
|
+
className: e(d["SubdomainNavBar-button-area"], d["SubdomainNavBar-button-area--visible"]),
|
|
288
|
+
children: /* @__PURE__ */ S("div", {
|
|
289
|
+
className: d["SubdomainNavBar-button-area-inner"],
|
|
290
|
+
children: /* @__PURE__ */ S(T.Provider, {
|
|
293
291
|
value: pe ? "small" : "medium",
|
|
294
|
-
children:
|
|
292
|
+
children: ke
|
|
295
293
|
})
|
|
296
294
|
})
|
|
297
295
|
})]
|
|
@@ -300,36 +298,36 @@ var k = h(function({ children: a, className: s, fixed: c = !0, fullWidth: f = !1
|
|
|
300
298
|
]
|
|
301
299
|
})
|
|
302
300
|
]
|
|
303
|
-
}), !
|
|
304
|
-
className:
|
|
301
|
+
}), !B && !R && /* @__PURE__ */ S("div", {
|
|
302
|
+
className: d["SubdomainNavBar-menu-backdrop"],
|
|
305
303
|
"aria-hidden": "true"
|
|
306
304
|
})]
|
|
307
305
|
})]
|
|
308
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ S("div", {
|
|
309
307
|
ref: _e,
|
|
310
308
|
id: ve,
|
|
311
309
|
tabIndex: -1
|
|
312
310
|
})] });
|
|
313
311
|
});
|
|
314
|
-
function
|
|
315
|
-
let { isOverflowed:
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
...
|
|
318
|
-
"aria-hidden":
|
|
319
|
-
className: e(
|
|
320
|
-
tabIndex:
|
|
321
|
-
children: /* @__PURE__ */
|
|
312
|
+
function k({ href: t, className: n, children: r, isExternal: i, "aria-current": a, "aria-hidden": o, tabIndex: c, ...l }) {
|
|
313
|
+
let { isOverflowed: u, onLinkClick: ee } = te();
|
|
314
|
+
return /* @__PURE__ */ S("li", {
|
|
315
|
+
...l,
|
|
316
|
+
"aria-hidden": u ? !0 : o,
|
|
317
|
+
className: e(d["SubdomainNavBar-primary-nav-list-item"], n),
|
|
318
|
+
tabIndex: u ? -1 : c,
|
|
319
|
+
children: /* @__PURE__ */ S("a", {
|
|
322
320
|
href: t,
|
|
323
321
|
"aria-current": a,
|
|
324
|
-
className:
|
|
325
|
-
onClick:
|
|
326
|
-
tabIndex:
|
|
327
|
-
children: /* @__PURE__ */
|
|
328
|
-
className:
|
|
329
|
-
children: [/* @__PURE__ */
|
|
330
|
-
className:
|
|
322
|
+
className: d["SubdomainNavBar-link"],
|
|
323
|
+
onClick: ee,
|
|
324
|
+
tabIndex: u ? -1 : void 0,
|
|
325
|
+
children: /* @__PURE__ */ C("span", {
|
|
326
|
+
className: d["SubdomainNavBar-link-content"],
|
|
327
|
+
children: [/* @__PURE__ */ S("span", {
|
|
328
|
+
className: d["SubdomainNavBar-link-text"],
|
|
331
329
|
children: r
|
|
332
|
-
}), i && /* @__PURE__ */
|
|
330
|
+
}), i && /* @__PURE__ */ S(s, {
|
|
333
331
|
size: 16,
|
|
334
332
|
"aria-label": "External link"
|
|
335
333
|
})]
|
|
@@ -337,7 +335,7 @@ function A({ href: t, className: n, children: r, isExternal: i, "aria-current":
|
|
|
337
335
|
})
|
|
338
336
|
});
|
|
339
337
|
}
|
|
340
|
-
var
|
|
338
|
+
var A = {
|
|
341
339
|
searchLabel: "Search",
|
|
342
340
|
closeLabel: "Close",
|
|
343
341
|
resultsLabel: "Results",
|
|
@@ -347,33 +345,33 @@ var j = {
|
|
|
347
345
|
formatResultsHeading: (e) => `Results for “${e}”`,
|
|
348
346
|
formatResultsLabel: (e) => `Results for ${e}`,
|
|
349
347
|
formatSuggestions: (e) => `${e} suggestions.`
|
|
350
|
-
},
|
|
351
|
-
let
|
|
352
|
-
...
|
|
353
|
-
...
|
|
354
|
-
},
|
|
355
|
-
dialogRef:
|
|
348
|
+
}, j = m(({ active: t, className: r, title: i, searchResults: o, searchTerm: s, onSearchOpen: c, onSearchClose: u, onSubmit: ee, onChange: te, placeholder: ne, shortcutLabel: re, keyboardShortcut: ie, labels: p }, m) => {
|
|
349
|
+
let _ = y(null), v = y(null), b = {
|
|
350
|
+
...A,
|
|
351
|
+
...p
|
|
352
|
+
}, w = ne ?? (i ? b.formatSearchWithTitle(i) : b.searchLabel), T = i ? b.formatSearchWithTitle(i) : b.searchLabel, D = re ?? (ie || ""), { activeDescendant: O, handleSearchResultKeyDown: k, hasGroupedSearchResults: j, hasSearchResults: M, normalizedSearchResultGroups: N, resetActiveDescendant: P, searchResultsLength: F } = f({
|
|
353
|
+
dialogRef: _,
|
|
356
354
|
searchResults: o
|
|
357
|
-
}), I =
|
|
358
|
-
|
|
359
|
-
}, [
|
|
360
|
-
if (
|
|
361
|
-
|
|
355
|
+
}), I = h(() => {
|
|
356
|
+
u?.(), P();
|
|
357
|
+
}, [u, P]), L = h((e) => {
|
|
358
|
+
if (v.current = e, typeof m == "function") {
|
|
359
|
+
m(e);
|
|
362
360
|
return;
|
|
363
361
|
}
|
|
364
|
-
|
|
365
|
-
}, [
|
|
366
|
-
|
|
367
|
-
let e =
|
|
362
|
+
m && (m.current = e);
|
|
363
|
+
}, [m]);
|
|
364
|
+
g(() => {
|
|
365
|
+
let e = _.current;
|
|
368
366
|
if (e) {
|
|
369
367
|
if (t) {
|
|
370
|
-
e.open || (typeof e.showModal == "function" ? e.showModal() : e.setAttribute("open", "")),
|
|
368
|
+
e.open || (typeof e.showModal == "function" ? e.showModal() : e.setAttribute("open", "")), v.current?.focus();
|
|
371
369
|
return;
|
|
372
370
|
}
|
|
373
371
|
e.open && (typeof e.close == "function" ? e.close() : e.removeAttribute("open"));
|
|
374
372
|
}
|
|
375
|
-
}, [t,
|
|
376
|
-
let e =
|
|
373
|
+
}, [t, v]), g(() => {
|
|
374
|
+
let e = _.current;
|
|
377
375
|
if (!e) return;
|
|
378
376
|
let t = (t) => {
|
|
379
377
|
if (t.target !== e) return;
|
|
@@ -382,194 +380,197 @@ var j = {
|
|
|
382
380
|
};
|
|
383
381
|
return e.addEventListener("click", t), () => e.removeEventListener("click", t);
|
|
384
382
|
}, [I]);
|
|
385
|
-
let
|
|
383
|
+
let se = h((e) => {
|
|
386
384
|
e.preventDefault(), I();
|
|
387
|
-
}, [I]),
|
|
388
|
-
className:
|
|
385
|
+
}, [I]), ce = ({ result: e, index: t }) => /* @__PURE__ */ C("li", {
|
|
386
|
+
className: d["SubdomainNavBar-search-result-item"],
|
|
389
387
|
role: "presentation",
|
|
390
388
|
children: [
|
|
391
|
-
/* @__PURE__ */
|
|
392
|
-
className:
|
|
393
|
-
children: /* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ S("div", {
|
|
390
|
+
className: d["SubdomainNavBar-search-result-item-container"],
|
|
391
|
+
children: /* @__PURE__ */ C("a", {
|
|
394
392
|
id: `subdomainnavbar-search-result-${t}`,
|
|
395
393
|
href: e.url,
|
|
396
394
|
role: "option",
|
|
397
|
-
"aria-selected": t ===
|
|
398
|
-
children: [/* @__PURE__ */
|
|
395
|
+
"aria-selected": t === O,
|
|
396
|
+
children: [/* @__PURE__ */ S("span", { children: e.title }), j && e.isExternal && /* @__PURE__ */ S(a, {
|
|
399
397
|
size: 20,
|
|
400
398
|
"aria-hidden": "true"
|
|
401
399
|
})]
|
|
402
400
|
})
|
|
403
401
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ S(n, {
|
|
405
403
|
as: "p",
|
|
406
404
|
size: "200",
|
|
407
405
|
id: `subdomainnavbar-search-result-item-desc${t}`,
|
|
408
|
-
className:
|
|
406
|
+
className: d["SubdomainNavBar-search-result-item-desc"],
|
|
409
407
|
children: e.description
|
|
410
408
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
className:
|
|
413
|
-
children: [/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ C("div", {
|
|
410
|
+
className: d["SubdomainNavBar-search-result-item-meta"],
|
|
411
|
+
children: [/* @__PURE__ */ S(n, {
|
|
414
412
|
size: "100",
|
|
415
|
-
className:
|
|
413
|
+
className: d["SubdomainNavBar-search-result-item-desc"],
|
|
416
414
|
children: e.date
|
|
417
|
-
}), e.category && /* @__PURE__ */
|
|
415
|
+
}), e.category && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C(n, {
|
|
418
416
|
size: "100",
|
|
419
|
-
className:
|
|
417
|
+
className: d["SubdomainNavBar-search-result-item-desc"],
|
|
420
418
|
children: [
|
|
421
419
|
" ",
|
|
422
420
|
"•",
|
|
423
421
|
" "
|
|
424
422
|
]
|
|
425
|
-
}), /* @__PURE__ */
|
|
423
|
+
}), /* @__PURE__ */ S(n, {
|
|
426
424
|
size: "100",
|
|
427
|
-
className:
|
|
425
|
+
className: d["SubdomainNavBar-search-result-item-desc"],
|
|
428
426
|
children: e.category
|
|
429
427
|
})] })]
|
|
430
428
|
})
|
|
431
429
|
]
|
|
432
430
|
}, `${e.title}-${t}`);
|
|
433
|
-
return /* @__PURE__ */
|
|
434
|
-
className: e(
|
|
435
|
-
children: /* @__PURE__ */
|
|
436
|
-
"aria-label":
|
|
437
|
-
className:
|
|
438
|
-
onClick:
|
|
431
|
+
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
432
|
+
className: e(d["SubdomainNavBar-search-trigger"], r),
|
|
433
|
+
children: /* @__PURE__ */ C("button", {
|
|
434
|
+
"aria-label": b.formatSearchTrigger(w),
|
|
435
|
+
className: d["SubdomainNavBar-search-input-button"],
|
|
436
|
+
onClick: c,
|
|
439
437
|
"data-testid": "toggle-search",
|
|
440
438
|
type: "button",
|
|
441
|
-
children: [/* @__PURE__ */
|
|
442
|
-
className:
|
|
443
|
-
children: [/* @__PURE__ */
|
|
439
|
+
children: [/* @__PURE__ */ C("span", {
|
|
440
|
+
className: d["SubdomainNavBar-search-input-button-placeholder"],
|
|
441
|
+
children: [/* @__PURE__ */ S(l, {
|
|
444
442
|
"aria-hidden": "true",
|
|
445
443
|
size: 16
|
|
446
|
-
}), /* @__PURE__ */
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
444
|
+
}), /* @__PURE__ */ S("span", {
|
|
445
|
+
className: d["SubdomainNavBar-search-input-button-placeholder-text"],
|
|
446
|
+
children: w
|
|
447
|
+
})]
|
|
448
|
+
}), D && /* @__PURE__ */ S("span", {
|
|
449
|
+
className: d["SubdomainNavBar-search-input-button-shortcut"],
|
|
450
|
+
children: D
|
|
450
451
|
})]
|
|
451
452
|
})
|
|
452
|
-
}), /* @__PURE__ */
|
|
453
|
-
ref:
|
|
454
|
-
"aria-label":
|
|
455
|
-
className: e(
|
|
456
|
-
onCancel:
|
|
457
|
-
children: t && /* @__PURE__ */
|
|
458
|
-
className: e(
|
|
459
|
-
children: /* @__PURE__ */
|
|
460
|
-
className:
|
|
461
|
-
children: [/* @__PURE__ */
|
|
462
|
-
className: e(
|
|
463
|
-
onSubmit:
|
|
453
|
+
}), /* @__PURE__ */ S("dialog", {
|
|
454
|
+
ref: _,
|
|
455
|
+
"aria-label": T,
|
|
456
|
+
className: e(d["SubdomainNavBar-search-dialog"], M && d["SubdomainNavBar-search-dialog--has-results"]),
|
|
457
|
+
onCancel: se,
|
|
458
|
+
children: t && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
459
|
+
className: e(d["SubdomainNavBar-search-dialog-control-area"]),
|
|
460
|
+
children: /* @__PURE__ */ C("div", {
|
|
461
|
+
className: d["SubdomainNavBar-search-input-area"],
|
|
462
|
+
children: [/* @__PURE__ */ S("form", {
|
|
463
|
+
className: e(d["SubdomainNavBar-search-form"]),
|
|
464
|
+
onSubmit: ee,
|
|
464
465
|
role: "search",
|
|
465
|
-
children: /* @__PURE__ */
|
|
466
|
+
children: /* @__PURE__ */ C(oe, {
|
|
466
467
|
fullWidth: !0,
|
|
467
468
|
size: "medium",
|
|
468
|
-
children: [/* @__PURE__ */
|
|
469
|
+
children: [/* @__PURE__ */ S(oe.Label, {
|
|
469
470
|
visuallyHidden: !0,
|
|
470
|
-
children:
|
|
471
|
-
}), /* @__PURE__ */
|
|
472
|
-
ref:
|
|
473
|
-
className: e(
|
|
471
|
+
children: b.searchLabel
|
|
472
|
+
}), /* @__PURE__ */ S(ae, {
|
|
473
|
+
ref: L,
|
|
474
|
+
className: e(d["SubdomainNavBar-search-text-input"]),
|
|
474
475
|
name: "search",
|
|
475
476
|
role: "combobox",
|
|
476
477
|
autoComplete: "off",
|
|
477
478
|
"aria-autocomplete": "list",
|
|
478
|
-
"aria-expanded":
|
|
479
|
+
"aria-expanded": M,
|
|
479
480
|
"aria-controls": "listbox-search-results",
|
|
480
|
-
placeholder:
|
|
481
|
-
onChange:
|
|
481
|
+
placeholder: w,
|
|
482
|
+
onChange: te,
|
|
482
483
|
defaultValue: s,
|
|
483
484
|
invisible: !0,
|
|
484
|
-
leadingVisual: /* @__PURE__ */
|
|
485
|
-
"aria-activedescendant":
|
|
486
|
-
onKeyDown:
|
|
485
|
+
leadingVisual: /* @__PURE__ */ S(l, { size: 16 }),
|
|
486
|
+
"aria-activedescendant": O === -1 ? void 0 : `subdomainnavbar-search-result-${O}`,
|
|
487
|
+
onKeyDown: k
|
|
487
488
|
})]
|
|
488
489
|
})
|
|
489
|
-
}), /* @__PURE__ */
|
|
490
|
-
"aria-label":
|
|
491
|
-
className:
|
|
490
|
+
}), /* @__PURE__ */ S("button", {
|
|
491
|
+
"aria-label": b.closeLabel,
|
|
492
|
+
className: d["SubdomainNavBar-search-close-button"],
|
|
492
493
|
onClick: I,
|
|
493
494
|
type: "button",
|
|
494
|
-
children:
|
|
495
|
+
children: b.closeLabel
|
|
495
496
|
})]
|
|
496
497
|
})
|
|
497
|
-
}), /* @__PURE__ */
|
|
498
|
+
}), /* @__PURE__ */ C("div", {
|
|
498
499
|
id: "listbox-search-results",
|
|
499
|
-
className: e(
|
|
500
|
-
children: [
|
|
501
|
-
className: e(
|
|
502
|
-
children: [!
|
|
500
|
+
className: e(d["SubdomainNavBar-search-results-area"], M && d["SubdomainNavBar-search-results-area--visible"]),
|
|
501
|
+
children: [M && /* @__PURE__ */ C("div", {
|
|
502
|
+
className: e(d["SubdomainNavBar-search-results-container"]),
|
|
503
|
+
children: [!j && /* @__PURE__ */ S(n, {
|
|
503
504
|
id: "subdomainnavbar-search-results-heading",
|
|
504
|
-
className:
|
|
505
|
-
children:
|
|
506
|
-
}), /* @__PURE__ */
|
|
505
|
+
className: d["SubdomainNavBar-search-results-heading"],
|
|
506
|
+
children: b.formatResultsHeading(s ?? "")
|
|
507
|
+
}), /* @__PURE__ */ S("ul", {
|
|
507
508
|
role: "listbox",
|
|
508
509
|
tabIndex: 0,
|
|
509
|
-
"aria-labelledby":
|
|
510
|
-
"aria-label":
|
|
511
|
-
className: e(
|
|
512
|
-
children:
|
|
510
|
+
"aria-labelledby": j ? void 0 : "subdomainnavbar-search-results-heading",
|
|
511
|
+
"aria-label": j ? s ? b.formatResultsLabel(s) : b.searchResultsLabel : void 0,
|
|
512
|
+
className: e(d["SubdomainNavBar-search-results"]),
|
|
513
|
+
children: j ? N.map((e, t) => {
|
|
513
514
|
let r = `subdomainnavbar-search-result-group-${t}`;
|
|
514
|
-
return /* @__PURE__ */
|
|
515
|
-
className:
|
|
515
|
+
return /* @__PURE__ */ C("li", {
|
|
516
|
+
className: d["SubdomainNavBar-search-result-group"],
|
|
516
517
|
role: "presentation",
|
|
517
|
-
children: [e.title && /* @__PURE__ */
|
|
518
|
+
children: [e.title && /* @__PURE__ */ S(n, {
|
|
518
519
|
id: r,
|
|
519
|
-
className:
|
|
520
|
+
className: d["SubdomainNavBar-search-result-group-heading"],
|
|
520
521
|
children: e.title
|
|
521
|
-
}), /* @__PURE__ */
|
|
522
|
-
className:
|
|
522
|
+
}), /* @__PURE__ */ S("ul", {
|
|
523
|
+
className: d["SubdomainNavBar-search-result-group-list"],
|
|
523
524
|
role: "group",
|
|
524
525
|
"aria-labelledby": e.title ? r : void 0,
|
|
525
|
-
"aria-label": e.title ? void 0 :
|
|
526
|
-
children: e.results.map(
|
|
526
|
+
"aria-label": e.title ? void 0 : b.resultsLabel,
|
|
527
|
+
children: e.results.map(ce)
|
|
527
528
|
})]
|
|
528
529
|
}, e.title ?? `ungrouped-${t}`);
|
|
529
|
-
}) :
|
|
530
|
+
}) : N.flatMap((e) => e.results.map(ce))
|
|
530
531
|
})]
|
|
531
|
-
}), /* @__PURE__ */
|
|
532
|
+
}), /* @__PURE__ */ C("div", {
|
|
532
533
|
"aria-live": "polite",
|
|
533
534
|
"aria-atomic": "true",
|
|
534
|
-
"data-testid":
|
|
535
|
+
"data-testid": E.liveRegion,
|
|
535
536
|
className: "visually-hidden",
|
|
536
|
-
children: [
|
|
537
|
+
children: [b.formatSuggestions(F), /* @__PURE__ */ S("span", { children: "\xA0" })]
|
|
537
538
|
})]
|
|
538
539
|
})] })
|
|
539
540
|
})] });
|
|
540
541
|
});
|
|
541
|
-
|
|
542
|
-
function
|
|
543
|
-
let a =
|
|
544
|
-
return /* @__PURE__ */
|
|
542
|
+
O.displayName = "SubdomainNavBar";
|
|
543
|
+
function M({ children: t, href: n, ...i }) {
|
|
544
|
+
let a = p.useContext(T);
|
|
545
|
+
return /* @__PURE__ */ S(r, {
|
|
545
546
|
as: "a",
|
|
546
547
|
href: n,
|
|
547
|
-
className: e(
|
|
548
|
+
className: e(d["SubdomainNavBar-cta-button"]),
|
|
548
549
|
variant: "primary",
|
|
549
550
|
size: a,
|
|
550
551
|
...i,
|
|
551
552
|
children: t
|
|
552
553
|
});
|
|
553
554
|
}
|
|
554
|
-
function
|
|
555
|
-
let a =
|
|
556
|
-
return /* @__PURE__ */
|
|
555
|
+
function N({ children: t, href: n, ...i }) {
|
|
556
|
+
let a = p.useContext(T);
|
|
557
|
+
return /* @__PURE__ */ S(r, {
|
|
557
558
|
as: "a",
|
|
558
559
|
href: n,
|
|
559
|
-
className: e(
|
|
560
|
+
className: e(d["SubdomainNavBar-cta-button"], d["SubdomainNavBar-cta-button--secondary"]),
|
|
560
561
|
size: a,
|
|
561
562
|
...i,
|
|
562
563
|
children: t
|
|
563
564
|
});
|
|
564
565
|
}
|
|
565
|
-
var
|
|
566
|
-
Link:
|
|
567
|
-
Search:
|
|
568
|
-
PrimaryAction:
|
|
569
|
-
SecondaryAction:
|
|
570
|
-
testIds:
|
|
566
|
+
var P = Object.assign(O, {
|
|
567
|
+
Link: k,
|
|
568
|
+
Search: j,
|
|
569
|
+
PrimaryAction: M,
|
|
570
|
+
SecondaryAction: N,
|
|
571
|
+
testIds: E
|
|
571
572
|
});
|
|
572
573
|
//#endregion
|
|
573
|
-
export {
|
|
574
|
+
export { P as SubdomainNavBar };
|
|
574
575
|
|
|
575
576
|
//# sourceMappingURL=SubdomainNavBar.js.map
|