@primer/react-brand 0.72.0-rc.44ea78b6 → 0.72.0-rc.4db5fc89
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/ButtonGroup/react.md +29 -8
- package/docs/components/Hero/react.md +82 -18
- package/docs/components/River/react.md +33 -33
- package/docs/components/RiverBreakoutTabs/index.md +3 -4
- package/docs/components/index.md +1 -1
- package/docs/getting-started/index.md +9 -3
- package/docs/index.md +3 -3
- package/esm/ActionMenu/ActionMenu.d.ts +1 -1
- package/esm/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/esm/ActionMenu/ActionMenu.js +60 -60
- package/esm/ActionMenu/ActionMenu.js.map +1 -1
- package/esm/AnchorNav/AnchorNav.js +20 -20
- package/esm/ButtonGroup/ButtonGroup.d.ts +3 -1
- package/esm/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/esm/ButtonGroup/ButtonGroup.js +24 -16
- package/esm/ButtonGroup/ButtonGroup.js.map +1 -1
- package/esm/CTABanner/CTABanner.js +6 -6
- package/esm/Card/Card.js +5 -5
- package/esm/Hero/Hero.d.ts +17 -4
- package/esm/Hero/Hero.d.ts.map +1 -1
- package/esm/Hero/Hero.js +103 -98
- package/esm/Hero/Hero.js.map +1 -1
- package/esm/Hero/Hero.module-DH253w6y.css +1 -0
- package/esm/Hero/Hero.module.js +8 -5
- package/esm/Hero/Hero.module.js.map +1 -1
- package/esm/Hero/HeroContext.d.ts +7 -5
- package/esm/Hero/HeroContext.d.ts.map +1 -1
- package/esm/Hero/HeroContext.js +3 -9
- package/esm/Hero/HeroContext.js.map +1 -1
- package/esm/Hero/sub-components/HeroButtonGroup.d.ts +5 -0
- package/esm/Hero/sub-components/HeroButtonGroup.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroButtonGroup.js +28 -0
- package/esm/Hero/sub-components/HeroButtonGroup.js.map +1 -0
- package/esm/Hero/sub-components/HeroImage.d.ts +7 -4
- package/esm/Hero/sub-components/HeroImage.d.ts.map +1 -1
- package/esm/Hero/sub-components/HeroImage.js +6 -6
- package/esm/Hero/sub-components/HeroImage.js.map +1 -1
- package/esm/Hero/sub-components/HeroVideo.d.ts +16 -4
- package/esm/Hero/sub-components/HeroVideo.d.ts.map +1 -1
- package/esm/Hero/sub-components/HeroVideo.js +15 -15
- package/esm/Hero/sub-components/HeroVideo.js.map +1 -1
- package/esm/Hero/sub-components/index.d.ts +2 -0
- package/esm/Hero/sub-components/index.d.ts.map +1 -1
- package/esm/Link/Link.js +5 -5
- package/esm/LogoSuite/LogoSuite.js +11 -11
- package/esm/MinimalFooter/MinimalFooter.js +6 -6
- package/esm/NavList/NavList.module-zvpwnkzz.css +1 -0
- package/esm/NavList/NavList.module.js +8 -8
- package/esm/NavList/NavList.module.js.map +1 -1
- package/esm/PricingOptions/PricingOptions.js +18 -18
- package/esm/SubNav/SubNav.js +30 -30
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +21 -21
- package/esm/SubdomainNavBar/SubdomainNavBar.js +83 -83
- package/esm/VideoPlayer/VideoPlayer.js +4 -4
- package/esm/forms/Checkbox/Checkbox.d.ts +1 -0
- package/esm/forms/Checkbox/Checkbox.d.ts.map +1 -1
- package/esm/forms/Checkbox/Checkbox.js +1 -0
- package/esm/forms/Checkbox/Checkbox.js.map +1 -1
- package/esm/forms/FormControl/FormControl.d.ts +1 -0
- package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
- package/esm/forms/FormControl/FormControl.js +1 -0
- package/esm/forms/FormControl/FormControl.js.map +1 -1
- package/esm/forms/Radio/Radio.d.ts +1 -0
- package/esm/forms/Radio/Radio.d.ts.map +1 -1
- package/esm/forms/Radio/Radio.js +1 -0
- package/esm/forms/Radio/Radio.js.map +1 -1
- package/esm/forms/Select/Select.d.ts +1 -0
- package/esm/forms/Select/Select.d.ts.map +1 -1
- package/esm/forms/Select/Select.js +1 -0
- package/esm/forms/Select/Select.js.map +1 -1
- package/esm/forms/TextInput/TextInput.d.ts +1 -0
- package/esm/forms/TextInput/TextInput.d.ts.map +1 -1
- package/esm/forms/TextInput/TextInput.js +1 -0
- package/esm/forms/TextInput/TextInput.js.map +1 -1
- package/esm/forms/Textarea/Textarea.d.ts +1 -0
- package/esm/forms/Textarea/Textarea.d.ts.map +1 -1
- package/esm/forms/Textarea/Textarea.js +1 -0
- package/esm/forms/Textarea/Textarea.js.map +1 -1
- package/esm/forms/index.d.ts +0 -4
- package/esm/forms/index.d.ts.map +1 -1
- package/esm/hooks/useFocusTrap.d.ts +8 -8
- package/esm/hooks/useFocusTrap.d.ts.map +1 -1
- package/esm/hooks/useFocusTrap.js +16 -16
- package/esm/hooks/useFocusTrap.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.esm.js +68 -67
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river/river-DHn1_SEa.css +1 -0
- package/esm/river/River/River.d.ts +16 -8
- package/esm/river/River/River.d.ts.map +1 -1
- package/esm/river/River/River.js +29 -13
- package/esm/river/River/River.js.map +1 -1
- package/esm/river/River/index.d.ts +2 -2
- package/esm/river/River/index.d.ts.map +1 -1
- package/esm/river/RiverAccordion/RiverAccordion.js +1 -1
- package/esm/river/RiverAccordion/RiverAccordion.module-BTU_metB.css +1 -0
- package/esm/river/RiverAccordion/RiverAccordion.module.js +1 -1
- package/esm/river/RiverAccordion/RiverAccordion.module.js.map +1 -1
- package/esm/river/RiverBreakout/RiverBreakout.d.ts +2 -1
- package/esm/river/RiverBreakout/RiverBreakout.d.ts.map +1 -1
- package/esm/river/RiverBreakout/RiverBreakout.js +8 -4
- package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -1
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +3 -2
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts.map +1 -1
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js +2 -2
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -1
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module-CB2SZhbE.css +1 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js +1 -1
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js.map +1 -1
- package/esm/river/river-shared.module-fF58cowg.css +1 -0
- package/esm/river/river-shared.module.js +8 -1
- package/esm/river/river-shared.module.js.map +1 -1
- package/lib/ActionMenu/ActionMenu.d.ts +1 -1
- package/lib/ButtonGroup/ButtonGroup.d.ts +3 -1
- package/lib/Hero/Hero.d.ts +17 -4
- package/lib/Hero/HeroContext.d.ts +7 -5
- package/lib/Hero/sub-components/HeroButtonGroup.d.ts +4 -0
- package/lib/Hero/sub-components/HeroImage.d.ts +7 -4
- package/lib/Hero/sub-components/HeroVideo.d.ts +16 -4
- package/lib/Hero/sub-components/index.d.ts +2 -0
- package/lib/css/main.css +6943 -6764
- 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/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-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 +8 -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/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/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-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 +4 -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/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/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-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 +2 -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/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/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-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 +2 -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/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/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-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 +4 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +4 -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/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/forms/Checkbox/Checkbox.d.ts +1 -0
- package/lib/forms/FormControl/FormControl.d.ts +1 -0
- package/lib/forms/Radio/Radio.d.ts +1 -0
- package/lib/forms/Select/Select.d.ts +1 -0
- package/lib/forms/TextInput/TextInput.d.ts +1 -0
- package/lib/forms/Textarea/Textarea.d.ts +1 -0
- package/lib/forms/index.d.ts +0 -4
- package/lib/hooks/useFocusTrap.d.ts +8 -8
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/river/River/River.d.ts +16 -8
- package/lib/river/River/index.d.ts +2 -2
- package/lib/river/RiverBreakout/RiverBreakout.d.ts +2 -1
- package/lib/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +3 -2
- package/llms.txt +3 -3
- package/package.json +1 -1
- package/esm/Hero/Hero.module-DqG5f0MT.css +0 -1
- package/esm/NavList/NavList.module-CZFnt8br.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river/river-QteO10lt.css +0 -1
- package/esm/river/RiverAccordion/RiverAccordion.module-nlZZH3O7.css +0 -1
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module-CH8jehnx.css +0 -1
- package/esm/river/river-shared.module-D0AV93uz.css +0 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import './NavList.module-
|
|
1
|
+
import './NavList.module-zvpwnkzz.css';var e = {
|
|
2
2
|
NavList: "Primer_Brand__NavList-module__NavList___tuR_C",
|
|
3
3
|
NavList__list: "Primer_Brand__NavList-module__NavList__list___gwquf",
|
|
4
4
|
NavList__subNav: "Primer_Brand__NavList-module__NavList__subNav___Q4xI7",
|
|
5
5
|
NavList__groupList: "Primer_Brand__NavList-module__NavList__groupList___Mtk4a",
|
|
6
6
|
"NavList__list--flat": "Primer_Brand__NavList-module__NavList__list--flat___xvRQl",
|
|
7
|
+
"NavList__item--leaf": "Primer_Brand__NavList-module__NavList__item--leaf___YFNSZ",
|
|
7
8
|
NavList__item: "Primer_Brand__NavList-module__NavList__item___HTVCC",
|
|
8
9
|
NavList__group: "Primer_Brand__NavList-module__NavList__group___Jnwkd",
|
|
9
10
|
NavList__groupTitle: "Primer_Brand__NavList-module__NavList__groupTitle___r47_e",
|
|
10
11
|
NavList__itemContent: "Primer_Brand__NavList-module__NavList__itemContent___bYaVR",
|
|
12
|
+
"NavList__item--level-2": "Primer_Brand__NavList-module__NavList__item--level-2___kXyLx",
|
|
13
|
+
"NavList__item--level-3": "Primer_Brand__NavList-module__NavList__item--level-3___Z5uiQ",
|
|
14
|
+
"NavList__item--level-4": "Primer_Brand__NavList-module__NavList__item--level-4___k3h0P",
|
|
15
|
+
"NavList__item--level-5": "Primer_Brand__NavList-module__NavList__item--level-5___4mJ4N",
|
|
16
|
+
"NavList__item--level-1": "Primer_Brand__NavList-module__NavList__item--level-1___gWx1n",
|
|
11
17
|
NavList__link: "Primer_Brand__NavList-module__NavList__link___k0zio",
|
|
12
18
|
NavList__accordionButton: "Primer_Brand__NavList-module__NavList__accordionButton___F5tOc",
|
|
13
|
-
"NavList__item--level-1": "Primer_Brand__NavList-module__NavList__item--level-1___gWx1n",
|
|
14
19
|
NavList__labelArea: "Primer_Brand__NavList-module__NavList__labelArea___c4ORu",
|
|
15
20
|
"NavList__item--has-current-descendant": "Primer_Brand__NavList-module__NavList__item--has-current-descendant___JG7dQ",
|
|
16
|
-
"NavList__item--leaf": "Primer_Brand__NavList-module__NavList__item--leaf___YFNSZ",
|
|
17
21
|
"NavList__link--disabled": "Primer_Brand__NavList-module__NavList__link--disabled___Eg304",
|
|
18
22
|
NavList__label: "Primer_Brand__NavList-module__NavList__label___ogBmt",
|
|
19
23
|
NavList__leadingVisual: "Primer_Brand__NavList-module__NavList__leadingVisual___KqRaq",
|
|
20
24
|
NavList__trailingVisual: "Primer_Brand__NavList-module__NavList__trailingVisual___BrZXI",
|
|
21
25
|
NavList__toggleIcon: "Primer_Brand__NavList-module__NavList__toggleIcon___nlJbF",
|
|
22
26
|
"NavList__subNav--expanded": "Primer_Brand__NavList-module__NavList__subNav--expanded___ap3X8",
|
|
23
|
-
"NavList__item--expanded": "Primer_Brand__NavList-module__NavList__item--expanded___pH_PL"
|
|
24
|
-
"NavList__item--level-2": "Primer_Brand__NavList-module__NavList__item--level-2___kXyLx",
|
|
25
|
-
"NavList__item--level-3": "Primer_Brand__NavList-module__NavList__item--level-3___Z5uiQ",
|
|
26
|
-
"NavList__item--level-4": "Primer_Brand__NavList-module__NavList__item--level-4___k3h0P",
|
|
27
|
-
"NavList__item--level-5": "Primer_Brand__NavList-module__NavList__item--level-5___4mJ4N"
|
|
27
|
+
"NavList__item--expanded": "Primer_Brand__NavList-module__NavList__item--expanded___pH_PL"
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
30
30
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.module.js","names":[],"sources":["../../src/NavList/NavList.module.css"],"sourcesContent":[".NavList {\n box-sizing: border-box;\n font-family: var(--brand-fontStack-sansSerif);\n color: var(--brand-color-text-default);\n padding-inline-start: var(--base-size-16);\n width: 100%;\n}\n\n.NavList__list,\n.NavList__subNav,\n.NavList__groupList {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.NavList__list {\n display: flex;\n flex-direction: column;\n gap: 0;\n}\n\n.NavList__list--flat,\n.NavList__groupList {\n --brand-NavList-alignedLabel-paddingInlineStart: var(--base-size-2);\n}\n\n.NavList__groupList {\n --brand-NavList-item-paddingInlineStart-level-2: var(--base-size-2);\n}\n\n.NavList__item,\n.NavList__group {\n position: relative;\n}\n\n.NavList__list:not(.NavList__list--flat) > :is(.NavList__item, .NavList__group) + :is(.NavList__item, .NavList__group) {\n background-image: repeating-linear-gradient(\n to right,\n var(--brand-color-border-muted) 0 var(--base-size-2),\n transparent var(--base-size-2) var(--base-size-4)\n );\n background-repeat: no-repeat;\n background-size: 100% var(--brand-borderWidth-thin);\n background-position: top left;\n}\n\n.NavList__groupTitle {\n margin: 0;\n padding: var(--base-size-24) var(--base-size-16) var(--base-size-16);\n color: var(--brand-color-text-default);\n font-size: var(--brand-text-size-200);\n font-weight: var(--brand-text-weight-500);\n line-height: var(--brand-text-lineHeight-200);\n letter-spacing: var(--brand-text-letterSpacing-200);\n}\n\n.NavList__groupList {\n display: flex;\n flex-direction: column;\n gap: 0;\n padding-block-end: var(--base-size-16);\n}\n\n.NavList__itemContent {\n display: flex;\n align-items: center;\n gap: var(--base-size-8);\n min-width: 0;\n}\n\n.NavList__link {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--base-size-8);\n flex: 1 1 auto;\n min-width: 0;\n border-radius: var(--brand-borderRadius-medium);\n padding: 0;\n color: var(--brand-color-text-muted);\n font-size: var(--brand-text-size-100);\n font-weight: var(--brand-text-weight-500);\n line-height: var(--brand-text-lineHeight-100);\n letter-spacing: var(--brand-text-letterSpacing-100);\n text-decoration: none !important; /* dotcom override */\n transition: background-color var(--brand-animation-duration-fast) var(--brand-animation-easing-default),\n color var(--brand-animation-duration-fast) var(--brand-animation-easing-default);\n}\n\n.NavList__accordionButton {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n border: 0;\n background: transparent;\n color: var(--brand-color-text-muted);\n cursor: pointer;\n font-family: inherit;\n text-align: start;\n}\n\n.NavList__link:hover {\n color: var(--brand-color-text-default);\n background-color: var(--brand-color-canvas-subtle);\n}\n\n.NavList__accordionButton:hover {\n color: var(--brand-color-text-default);\n background-color: transparent;\n}\n\n.NavList__item:not(.NavList__item--level-1) > .NavList__itemContent .NavList__accordionButton .NavList__labelArea {\n order: 2;\n min-height: var(--base-size-32);\n padding-inline-start: var(--base-size-6);\n}\n\n.NavList__item:not(.NavList__item--level-1)\n > .NavList__itemContent\n .NavList__accordionButton:not(:disabled):hover\n .NavList__labelArea {\n background-color: var(--brand-color-canvas-subtle);\n}\n\n.NavList__item--has-current-descendant > .NavList__itemContent .NavList__accordionButton:not(:disabled) {\n color: var(--brand-color-text-default);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']:not(:disabled)\n .NavList__labelArea {\n background-color: var(--brand-color-canvas-subtle);\n}\n\n:is(.NavList__link, .NavList__accordionButton):focus-visible {\n outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);\n outline-offset: var(--base-size-2);\n}\n\n.NavList__subNav :is(.NavList__link, .NavList__accordionButton):focus-visible {\n outline-offset: calc(-1 * var(--base-size-2));\n}\n\n.NavList__link[aria-current]:not([aria-current='false']) {\n color: var(--brand-color-text-default);\n background-color: var(--brand-color-canvas-subtle);\n padding-inline-start: var(--base-size-6);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) .NavList__link[aria-current]:not([aria-current='false'])::before {\n content: '';\n position: absolute;\n inset-block: var(--base-size-8);\n inset-inline-start: 0;\n width: var(--base-size-4);\n border-radius: var(--base-size-2);\n background-color: var(--brand-NavList-activeIndicator-color);\n}\n\n.NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']:not(:disabled)::before {\n content: '';\n position: absolute;\n inset-block-start: 50%;\n block-size: var(--base-size-16);\n width: var(--base-size-4);\n border-radius: var(--base-size-2);\n background-color: var(--brand-NavList-activeIndicator-color);\n transform: translateY(-50%);\n z-index: 1;\n}\n\n.NavList__item--level-1.NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']::before {\n inset-inline-start: calc(-1 * var(--base-size-8));\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']::before {\n inset-inline-start: var(--base-size-4);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false'] {\n padding-inline-start: var(--base-size-12);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']\n .NavList__labelArea {\n padding-inline-start: var(--base-size-2);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__link[aria-current]:not([aria-current='false']) {\n padding-inline-start: 0;\n}\n\n.NavList__link--disabled {\n color: var(--brand-color-text-disabled);\n pointer-events: none;\n}\n\n.NavList__accordionButton:disabled {\n color: var(--brand-color-text-disabled);\n cursor: not-allowed;\n}\n\n.NavList__label {\n min-width: 0;\n word-break: break-word;\n}\n\n.NavList__labelArea {\n display: flex;\n align-items: center;\n flex: 1 1 auto;\n gap: var(--base-size-8);\n min-width: 0;\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__leadingVisual,\n.NavList__trailingVisual {\n display: inline-flex;\n flex: none;\n color: inherit;\n}\n\n.NavList__trailingVisual {\n margin-inline-start: auto;\n margin-inline-end: var(--base-size-6);\n}\n\n.NavList__toggleIcon {\n flex: none;\n transform-origin: 50% 50%;\n transition: transform var(--brand-animation-duration-fast) var(--brand-animation-easing-glide);\n}\n\n.NavList__accordionButton[aria-expanded='true'] .NavList__toggleIcon {\n transform: rotate(-180deg);\n}\n\n.NavList__subNav {\n display: flex;\n flex-direction: column;\n gap: 0;\n margin: 0;\n max-height: 0;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n transform: translateY(calc(-1 * var(--base-size-8)));\n visibility: hidden;\n transition: max-height var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n transform var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n visibility 0s linear var(--brand-animation-duration-fast);\n}\n\n.NavList__subNav--expanded {\n max-height: var(--brand-NavList-subNav-height, none);\n opacity: 1;\n transform: translateY(0);\n visibility: visible;\n transition: max-height var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n transform var(--brand-animation-duration-fast) var(--brand-animation-easing-glide), visibility 0s linear 0s;\n}\n\n.NavList__subNav[aria-hidden='true'] .NavList__subNav {\n visibility: hidden;\n}\n\n.NavList__item--level-1 > .NavList__itemContent {\n padding: var(--base-size-24) var(--base-size-16) var(--base-size-16);\n}\n\n.NavList__item--level-1.NavList__item--expanded {\n padding-block-end: var(--base-size-16);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__link {\n order: 1;\n font-size: var(--brand-text-size-200);\n font-weight: var(--brand-text-weight-500);\n line-height: var(--brand-text-lineHeight-200);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__accordionButton {\n color: var(--brand-color-text-default);\n min-height: var(--base-size-32);\n margin-block: calc(-1 * var(--base-size-8));\n padding-inline-start: 0;\n padding-inline-end: var(--base-size-6);\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__accordionButton > * {\n position: relative;\n z-index: 1;\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__accordionButton:not(:disabled):is(:hover, :active)::after,\n.NavList__item--level-1.NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']:not(:disabled)::after {\n content: '';\n position: absolute;\n z-index: 0;\n inset-block: 0;\n inset-inline-start: 0;\n inset-inline-end: 0;\n border-radius: var(--brand-borderRadius-small);\n background-color: var(--brand-color-canvas-subtle);\n pointer-events: none;\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__toggleIcon {\n order: 2;\n margin-inline-start: auto;\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4) > .NavList__itemContent {\n padding-block: calc(var(--base-size-8) + var(--base-size-2));\n padding-inline-end: var(--base-size-16);\n}\n\n.NavList__item--level-2 > .NavList__itemContent {\n padding-inline-start: var(--brand-NavList-item-paddingInlineStart-level-2, var(--base-size-24));\n}\n\n.NavList__item--level-3 > .NavList__itemContent {\n padding-inline-start: var(--base-size-40);\n}\n\n.NavList__item--level-4 > .NavList__itemContent {\n padding-inline-start: calc(var(--base-size-48) + var(--base-size-8));\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent {\n min-height: var(--base-size-32);\n padding-block: 0;\n padding-inline: var(--base-size-16);\n}\n\n.NavList__item--leaf.NavList__item--level-2 > .NavList__itemContent {\n padding-inline-start: var(--brand-NavList-alignedLabel-paddingInlineStart, var(--base-size-24));\n}\n\n.NavList__item--leaf.NavList__item--level-3 > .NavList__itemContent {\n padding-inline-start: var(--base-size-40);\n}\n\n.NavList__item--leaf.NavList__item--level-4 > .NavList__itemContent {\n padding-inline-start: calc(var(--base-size-48) + var(--base-size-8));\n}\n\n.NavList__item--leaf.NavList__item--level-5 > .NavList__itemContent {\n padding-inline-start: calc(var(--base-size-64) + var(--base-size-8));\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__toggleIcon {\n order: 1;\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__accordionButton {\n min-height: var(--base-size-32);\n margin-block: calc(-1 * var(--base-size-8));\n padding-inline-start: var(--base-size-8);\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__toggleIcon {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: calc(-1 * var(--base-size-8));\n transform: translateY(-50%);\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='true']\n .NavList__toggleIcon {\n transform: translateY(-50%) rotate(-180deg);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']\n .NavList__toggleIcon {\n inset-inline-start: calc(-1 * var(--base-size-16));\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4, .NavList__item--level-5)\n > .NavList__itemContent\n .NavList__link {\n order: 2;\n font-size: var(--brand-text-size-100);\n line-height: var(--brand-text-lineHeight-100);\n}\n\n.NavList__list--flat > .NavList__item--leaf > .NavList__itemContent .NavList__link {\n font-size: var(--brand-text-size-200);\n line-height: var(--brand-text-lineHeight-200);\n letter-spacing: var(--brand-text-letterSpacing-200);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__link {\n min-height: var(--base-size-32);\n padding-inline-start: var(--base-size-8);\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__labelArea {\n min-height: calc(var(--base-size-32) - var(--brand-borderWidth-thin));\n margin-block-end: var(--brand-borderWidth-thin);\n padding-inline-start: var(--base-size-6);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) .NavList__link[aria-current]:not([aria-current='false']) {\n background-color: transparent;\n padding-inline-start: var(--base-size-8);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__link:hover .NavList__labelArea,\n.NavList__item--leaf:not(.NavList__item--level-1)\n .NavList__link[aria-current]:not([aria-current='false'])\n .NavList__labelArea {\n background-color: var(--brand-color-canvas-subtle);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__link:hover {\n background-color: transparent;\n padding-inline-start: var(--base-size-8);\n}\n\n[data-color-mode='dark'] .NavList {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .NavList,\n .NavList::before,\n .NavList::after,\n .NavList * {\n animation: none !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"NavList.module.js","names":[],"sources":["../../src/NavList/NavList.module.css"],"sourcesContent":[".NavList {\n --brand-NavList-label-indent-level-2: 0px;\n --brand-NavList-label-indent-level-3: var(--base-size-16);\n --brand-NavList-label-indent-level-4: var(--base-size-32);\n --brand-NavList-label-indent-level-5: var(--base-size-48);\n --brand-NavList-item-paddingInlineStart-base: var(--base-size-24);\n --brand-NavList-control-paddingInlineStart: var(--base-size-8);\n --brand-NavList-label-paddingInlineStart: var(--base-size-6);\n\n box-sizing: border-box;\n font-family: var(--brand-fontStack-sansSerif);\n color: var(--brand-color-text-default);\n padding-inline-start: var(--base-size-16);\n width: 100%;\n}\n\n.NavList__list,\n.NavList__subNav,\n.NavList__groupList {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.NavList__list {\n display: flex;\n flex-direction: column;\n gap: 0;\n}\n\n.NavList__list--flat,\n.NavList__groupList {\n --brand-NavList-item-paddingInlineStart-base: var(--base-size-2);\n}\n\n.NavList__groupList .NavList__subNav .NavList__item--leaf {\n --brand-NavList-item-paddingInlineStart-base: 0px;\n --brand-NavList-label-paddingInlineStart: var(--base-size-8);\n}\n\n.NavList__item,\n.NavList__group {\n position: relative;\n}\n\n.NavList__list:not(.NavList__list--flat) > :is(.NavList__item, .NavList__group) + :is(.NavList__item, .NavList__group) {\n background-image: repeating-linear-gradient(\n to right,\n var(--brand-color-border-muted) 0 var(--base-size-2),\n transparent var(--base-size-2) var(--base-size-4)\n );\n background-repeat: no-repeat;\n background-size: 100% var(--brand-borderWidth-thin);\n background-position: top left;\n}\n\n.NavList__groupTitle {\n margin: 0;\n padding: var(--base-size-24) var(--base-size-16) var(--base-size-16);\n color: var(--brand-color-text-default);\n font-size: var(--brand-text-size-200);\n font-weight: var(--brand-text-weight-500);\n line-height: var(--brand-text-lineHeight-200);\n letter-spacing: var(--brand-text-letterSpacing-200);\n}\n\n.NavList__groupList {\n display: flex;\n flex-direction: column;\n gap: 0;\n padding-block-end: var(--base-size-16);\n}\n\n.NavList__itemContent {\n display: flex;\n align-items: center;\n gap: var(--base-size-8);\n min-width: 0;\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4) > .NavList__itemContent {\n padding-block: calc(var(--base-size-8) + var(--base-size-2));\n padding-inline-end: var(--base-size-16);\n}\n\n.NavList__item--level-2 {\n --brand-NavList-item-label-indent: var(--brand-NavList-label-indent-level-2);\n}\n\n.NavList__item--level-3 {\n --brand-NavList-item-label-indent: var(--brand-NavList-label-indent-level-3);\n}\n\n.NavList__item--level-4 {\n --brand-NavList-item-label-indent: var(--brand-NavList-label-indent-level-4);\n}\n\n.NavList__item--level-5 {\n --brand-NavList-item-label-indent: var(--brand-NavList-label-indent-level-5);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent {\n min-height: var(--base-size-32);\n padding-block: 0;\n padding-inline-end: var(--base-size-16);\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4, .NavList__item--level-5)\n > .NavList__itemContent {\n padding-inline-start: calc(\n var(--brand-NavList-item-paddingInlineStart-base) + var(--brand-NavList-item-label-indent)\n );\n}\n\n.NavList__item:not(.NavList__item--level-1) > .NavList__itemContent :is(.NavList__link, .NavList__accordionButton) {\n padding-inline-start: var(--brand-NavList-control-paddingInlineStart);\n}\n\n.NavList__item:not(.NavList__item--level-1) > .NavList__itemContent .NavList__labelArea {\n padding-inline-start: var(--brand-NavList-label-paddingInlineStart);\n}\n\n.NavList__link {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--base-size-8);\n flex: 1 1 auto;\n min-width: 0;\n border-radius: var(--brand-borderRadius-medium);\n padding: 0;\n color: var(--brand-color-text-muted);\n font-size: var(--brand-text-size-100);\n font-weight: var(--brand-text-weight-500);\n line-height: var(--brand-text-lineHeight-100);\n letter-spacing: var(--brand-text-letterSpacing-100);\n text-decoration: none !important; /* dotcom override */\n transition: background-color var(--brand-animation-duration-fast) var(--brand-animation-easing-default),\n color var(--brand-animation-duration-fast) var(--brand-animation-easing-default);\n}\n\n.NavList__accordionButton {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n border: 0;\n background: transparent;\n color: var(--brand-color-text-muted);\n cursor: pointer;\n font-family: inherit;\n text-align: start;\n}\n\n.NavList__link:hover {\n color: var(--brand-color-text-default);\n background-color: var(--brand-color-canvas-subtle);\n}\n\n.NavList__accordionButton:hover {\n color: var(--brand-color-text-default);\n background-color: transparent;\n}\n\n.NavList__item:not(.NavList__item--level-1) > .NavList__itemContent .NavList__accordionButton .NavList__labelArea {\n order: 2;\n min-height: var(--base-size-32);\n}\n\n.NavList__item:not(.NavList__item--level-1)\n > .NavList__itemContent\n .NavList__accordionButton:not(:disabled):hover\n .NavList__labelArea {\n background-color: var(--brand-color-canvas-subtle);\n}\n\n.NavList__item--has-current-descendant > .NavList__itemContent .NavList__accordionButton:not(:disabled) {\n color: var(--brand-color-text-default);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']:not(:disabled)\n .NavList__labelArea {\n background-color: var(--brand-color-canvas-subtle);\n}\n\n:is(.NavList__link, .NavList__accordionButton):focus-visible {\n outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);\n outline-offset: var(--base-size-2);\n}\n\n.NavList__subNav :is(.NavList__link, .NavList__accordionButton):focus-visible {\n outline-offset: calc(-1 * var(--base-size-2));\n}\n\n.NavList__link[aria-current]:not([aria-current='false']) {\n color: var(--brand-color-text-default);\n background-color: var(--brand-color-canvas-subtle);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) .NavList__link[aria-current]:not([aria-current='false'])::before {\n content: '';\n position: absolute;\n inset-block: var(--base-size-8);\n inset-inline-start: 0;\n width: var(--base-size-4);\n border-radius: var(--base-size-2);\n background-color: var(--brand-NavList-activeIndicator-color);\n}\n\n.NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']:not(:disabled)::before {\n content: '';\n position: absolute;\n inset-block-start: 50%;\n block-size: var(--base-size-16);\n width: var(--base-size-4);\n border-radius: var(--base-size-2);\n background-color: var(--brand-NavList-activeIndicator-color);\n transform: translateY(-50%);\n z-index: 1;\n}\n\n.NavList__item--level-1.NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']::before {\n inset-inline-start: calc(-1 * var(--base-size-8));\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']::before {\n inset-inline-start: var(--base-size-4);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false'] {\n padding-inline-start: var(--base-size-12);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']\n .NavList__labelArea {\n padding-inline-start: var(--base-size-2);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__link[aria-current]:not([aria-current='false']) {\n padding-inline-start: 0;\n}\n\n.NavList__link--disabled {\n color: var(--brand-color-text-disabled);\n pointer-events: none;\n}\n\n.NavList__accordionButton:disabled {\n color: var(--brand-color-text-disabled);\n cursor: not-allowed;\n}\n\n.NavList__label {\n min-width: 0;\n word-break: break-word;\n}\n\n.NavList__labelArea {\n display: flex;\n align-items: center;\n flex: 1 1 auto;\n gap: var(--base-size-8);\n min-width: 0;\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__leadingVisual,\n.NavList__trailingVisual {\n display: inline-flex;\n flex: none;\n color: inherit;\n}\n\n.NavList__trailingVisual {\n margin-inline-start: auto;\n margin-inline-end: var(--base-size-6);\n}\n\n.NavList__toggleIcon {\n flex: none;\n transform-origin: 50% 50%;\n transition: transform var(--brand-animation-duration-fast) var(--brand-animation-easing-glide);\n}\n\n.NavList__accordionButton[aria-expanded='true'] .NavList__toggleIcon {\n transform: rotate(-180deg);\n}\n\n.NavList__subNav {\n display: flex;\n flex-direction: column;\n gap: 0;\n margin: 0;\n max-height: 0;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n transform: translateY(calc(-1 * var(--base-size-8)));\n visibility: hidden;\n transition: max-height var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n transform var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n visibility 0s linear var(--brand-animation-duration-fast);\n}\n\n.NavList__subNav--expanded {\n max-height: var(--brand-NavList-subNav-height, none);\n opacity: 1;\n transform: translateY(0);\n visibility: visible;\n transition: max-height var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-glide),\n transform var(--brand-animation-duration-fast) var(--brand-animation-easing-glide), visibility 0s linear 0s;\n}\n\n.NavList__subNav[aria-hidden='true'] .NavList__subNav {\n visibility: hidden;\n}\n\n.NavList__item--level-1 > .NavList__itemContent {\n padding: var(--base-size-24) var(--base-size-16) var(--base-size-16);\n}\n\n.NavList__item--level-1.NavList__item--expanded {\n padding-block-end: var(--base-size-16);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__link {\n order: 1;\n font-size: var(--brand-text-size-200);\n font-weight: var(--brand-text-weight-500);\n line-height: var(--brand-text-lineHeight-200);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__accordionButton {\n color: var(--brand-color-text-default);\n min-height: var(--base-size-32);\n margin-block: calc(-1 * var(--base-size-8));\n padding-inline-start: 0;\n padding-inline-end: var(--base-size-6);\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__accordionButton > * {\n position: relative;\n z-index: 1;\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__accordionButton:not(:disabled):is(:hover, :active)::after,\n.NavList__item--level-1.NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']:not(:disabled)::after {\n content: '';\n position: absolute;\n z-index: 0;\n inset-block: 0;\n inset-inline-start: 0;\n inset-inline-end: 0;\n border-radius: var(--brand-borderRadius-small);\n background-color: var(--brand-color-canvas-subtle);\n pointer-events: none;\n}\n\n.NavList__item--level-1 > .NavList__itemContent .NavList__toggleIcon {\n order: 2;\n margin-inline-start: auto;\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__toggleIcon {\n order: 1;\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__accordionButton {\n min-height: var(--base-size-32);\n margin-block: calc(-1 * var(--base-size-8));\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__toggleIcon {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: calc(-1 * var(--brand-NavList-control-paddingInlineStart));\n transform: translateY(-50%);\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4)\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='true']\n .NavList__toggleIcon {\n transform: translateY(-50%) rotate(-180deg);\n}\n\n.NavList__item:not(.NavList__item--level-1).NavList__item--has-current-descendant\n > .NavList__itemContent\n .NavList__accordionButton[aria-expanded='false']\n .NavList__toggleIcon {\n inset-inline-start: calc(-1 * var(--base-size-16));\n}\n\n.NavList__item:is(.NavList__item--level-2, .NavList__item--level-3, .NavList__item--level-4, .NavList__item--level-5)\n > .NavList__itemContent\n .NavList__link {\n order: 2;\n font-size: var(--brand-text-size-100);\n line-height: var(--brand-text-lineHeight-100);\n}\n\n.NavList__list--flat > .NavList__item--leaf > .NavList__itemContent .NavList__link {\n font-size: var(--brand-text-size-200);\n line-height: var(--brand-text-lineHeight-200);\n letter-spacing: var(--brand-text-letterSpacing-200);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__link {\n min-height: var(--base-size-32);\n border-radius: var(--brand-borderRadius-small);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__labelArea {\n min-height: calc(var(--base-size-32) - var(--brand-borderWidth-thin));\n margin-block-end: var(--brand-borderWidth-thin);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) .NavList__link[aria-current]:not([aria-current='false']) {\n background-color: transparent;\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__link:hover .NavList__labelArea,\n.NavList__item--leaf:not(.NavList__item--level-1)\n .NavList__link[aria-current]:not([aria-current='false'])\n .NavList__labelArea {\n background-color: var(--brand-color-canvas-subtle);\n}\n\n.NavList__item--leaf:not(.NavList__item--level-1) > .NavList__itemContent .NavList__link:hover {\n background-color: transparent;\n}\n\n[data-color-mode='dark'] .NavList {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .NavList,\n .NavList::before,\n .NavList::after,\n .NavList * {\n animation: none !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n}\n"],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { Text as t } from "../Text/Text.js";
|
|
3
3
|
import { Heading as n } from "../Heading/Heading.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Button as r } from "../Button/Button.js";
|
|
5
|
+
import { CheckIcon as i, TriangleDownIcon as a, XIcon as o } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
|
|
6
6
|
import { useWindowSize as s } from "../hooks/useWindowSize.js";
|
|
7
7
|
import { Accordion as c } from "../Accordion/Accordion.js";
|
|
8
8
|
import { UnorderedList as l } from "../list/UnorderedList/UnorderedList.js";
|
|
@@ -188,7 +188,7 @@ var v = {
|
|
|
188
188
|
children: c
|
|
189
189
|
})
|
|
190
190
|
]
|
|
191
|
-
})), k = p(({ children: t, className: n, "data-testid": r, hasDivider:
|
|
191
|
+
})), k = p(({ children: t, className: n, "data-testid": r, hasDivider: i = !0, expanded: o, accordionAs: u = "h4", ...p }, m) => {
|
|
192
192
|
let { allFeatureListsExpanded: h, updateFeatureListExpanded: y, featureListUserInteracted: b, setFeatureListUserInteracted: C } = x(), { isMedium: w, isXLarge: T, isSmall: E } = s();
|
|
193
193
|
f.useEffect(() => {
|
|
194
194
|
(o === void 0 || typeof o == "object") && C(!1);
|
|
@@ -227,7 +227,7 @@ var v = {
|
|
|
227
227
|
}, n));
|
|
228
228
|
return /* @__PURE__ */ g("div", {
|
|
229
229
|
ref: m,
|
|
230
|
-
className: e(d["PricingOptions__feature-list"],
|
|
230
|
+
className: e(d["PricingOptions__feature-list"], i && d["PricingOptions__feature-list--has-divider"], n),
|
|
231
231
|
"data-testid": r || v.featureList,
|
|
232
232
|
children: /* @__PURE__ */ _(c, {
|
|
233
233
|
className: d["PricingOptions__feature-list-accordion"],
|
|
@@ -239,7 +239,7 @@ var v = {
|
|
|
239
239
|
children: [/* @__PURE__ */ _(c.Heading, {
|
|
240
240
|
as: u,
|
|
241
241
|
className: d["PricingOptions__feature-list-accordion-heading"],
|
|
242
|
-
children: [O, /* @__PURE__ */ g(
|
|
242
|
+
children: [O, /* @__PURE__ */ g(a, { className: d["PricingOptions__feature-list-accordion-chevron"] })]
|
|
243
243
|
}), /* @__PURE__ */ g(c.Content, {
|
|
244
244
|
className: d["PricingOptions__feature-list-accordion-content"],
|
|
245
245
|
children: k
|
|
@@ -260,18 +260,18 @@ var v = {
|
|
|
260
260
|
size: "subhead-medium",
|
|
261
261
|
...a,
|
|
262
262
|
children: t
|
|
263
|
-
})), M = p(({ children: t, className: n, infoTooltip:
|
|
264
|
-
let h =
|
|
263
|
+
})), M = p(({ children: t, className: n, infoTooltip: r, leadingVisual: a, leadingVisualFill: s, variant: c = "included", "data-testid": f, ...p }, m) => {
|
|
264
|
+
let h = a ?? (c === "included" ? i : o), y = c === "included" ? "Includes" : "Does not include", b = s ?? (c === "included" ? "var(--brand-color-accent-primary)" : "var(--brand-color-text-muted)");
|
|
265
265
|
return /* @__PURE__ */ _(l.Item, {
|
|
266
|
-
className: e(d["PricingOptions__feature-list-item"], { [d["PricingOptions__feature-list-item--excluded"]]: c === "excluded" },
|
|
266
|
+
className: e(d["PricingOptions__feature-list-item"], { [d["PricingOptions__feature-list-item--excluded"]]: c === "excluded" }, r && d["PricingOptions__feature-list-item--has-info"], n),
|
|
267
267
|
"data-testid": f || v.featureListItem,
|
|
268
268
|
leadingVisual: h,
|
|
269
269
|
leadingVisualAriaLabel: y,
|
|
270
270
|
leadingVisualFill: b,
|
|
271
271
|
ref: m,
|
|
272
272
|
...p,
|
|
273
|
-
children: [t,
|
|
274
|
-
text:
|
|
273
|
+
children: [t, r && /* @__PURE__ */ g(u, {
|
|
274
|
+
text: r,
|
|
275
275
|
direction: "n",
|
|
276
276
|
children: /* @__PURE__ */ g("button", {
|
|
277
277
|
type: "button",
|
|
@@ -305,24 +305,24 @@ var v = {
|
|
|
305
305
|
className: d["PricingOptions__actions-message-content"],
|
|
306
306
|
children: t
|
|
307
307
|
})]
|
|
308
|
-
})), P = p(({ as: t, children: n, className:
|
|
308
|
+
})), P = p(({ as: t, children: n, className: i, "data-testid": a, ...o }, s) => /* @__PURE__ */ g(r, {
|
|
309
309
|
ref: s,
|
|
310
310
|
as: t,
|
|
311
|
-
"data-testid":
|
|
312
|
-
className: e(d["PricingOptions__primary-action"],
|
|
311
|
+
"data-testid": a || v.primaryAction,
|
|
312
|
+
className: e(d["PricingOptions__primary-action"], i),
|
|
313
313
|
size: "medium",
|
|
314
314
|
variant: "primary",
|
|
315
315
|
block: !0,
|
|
316
|
-
...
|
|
316
|
+
...o,
|
|
317
317
|
children: n
|
|
318
|
-
})), F = p(({ as: t, children: n, className:
|
|
318
|
+
})), F = p(({ as: t, children: n, className: i, "data-testid": a, ...o }, s) => /* @__PURE__ */ g(r, {
|
|
319
319
|
ref: s,
|
|
320
320
|
as: t,
|
|
321
|
-
className: e(d["PricingOptions__primary-action"],
|
|
322
|
-
"data-testid":
|
|
321
|
+
className: e(d["PricingOptions__primary-action"], i),
|
|
322
|
+
"data-testid": a || v.secondaryAction,
|
|
323
323
|
variant: "secondary",
|
|
324
324
|
block: !0,
|
|
325
|
-
...
|
|
325
|
+
...o,
|
|
326
326
|
children: n
|
|
327
327
|
})), I = p(({ children: t, className: n, "data-testid": r, ...i }, a) => /* @__PURE__ */ g("div", {
|
|
328
328
|
ref: a,
|
package/esm/SubNav/SubNav.js
CHANGED
|
@@ -2,12 +2,12 @@ import e from "../node_modules/clsx/dist/clsx.js";
|
|
|
2
2
|
import { useId as t } from "../hooks/useId.js";
|
|
3
3
|
import { useProvidedRefOrCreate as n } from "../hooks/useRef.js";
|
|
4
4
|
import { Text as r } from "../Text/Text.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { Button as i } from "../Button/Button.js";
|
|
6
|
+
import { ThemeProvider as a } from "../ThemeProvider/ThemeProvider.js";
|
|
7
|
+
import { useOnClickOutside as o } from "../hooks/useOnClickOutside.js";
|
|
8
|
+
import { useKeyboardEscape as s } from "../hooks/useKeyboardEscape.js";
|
|
9
|
+
import { TriangleDownIcon as c, TriangleUpIcon as l } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
|
|
10
|
+
import { useWindowSize as u } from "../hooks/useWindowSize.js";
|
|
11
11
|
import { useFocusTrap as d } from "../hooks/useFocusTrap.js";
|
|
12
12
|
import { useContainsFocus as f } from "./useContainsFocus.js";
|
|
13
13
|
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes-5gfdihUt.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/base-DIkvLW-s.css';/* empty css */
|
|
@@ -63,18 +63,18 @@ function N({ children: t }) {
|
|
|
63
63
|
})]
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
var P = y(_(({ id:
|
|
67
|
-
let O = n(x), A = m.useRef(null), j = m.useRef(null), M = m.useRef(null), P = w(null), [L, V] = T(!1), H = t(), [ee, te] = T(!1), { isLarge: U } =
|
|
66
|
+
var P = y(_(({ id: i, children: a, className: f, "data-testid": g, fullWidth: _, hasShadow: y }, x) => {
|
|
67
|
+
let O = n(x), A = m.useRef(null), j = m.useRef(null), M = m.useRef(null), P = w(null), [L, V] = T(!1), H = t(), [ee, te] = T(!1), { isLarge: U } = u();
|
|
68
68
|
d({
|
|
69
69
|
containerRef: A,
|
|
70
70
|
disabled: !L
|
|
71
71
|
});
|
|
72
|
-
let W = h.toArray(
|
|
72
|
+
let W = h.toArray(a), G = b(() => {
|
|
73
73
|
U || V(!1);
|
|
74
74
|
}, [U]), K = b(() => {
|
|
75
75
|
U || V((e) => !e);
|
|
76
76
|
}, [U]);
|
|
77
|
-
|
|
77
|
+
o(A, G), s(G), S(() => {
|
|
78
78
|
let e = j.current, t = () => {
|
|
79
79
|
if (e) {
|
|
80
80
|
let t = e.getBoundingClientRect().top;
|
|
@@ -127,7 +127,7 @@ var P = y(_(({ id: o, children: s, className: f, "data-testid": g, fullWidth: _,
|
|
|
127
127
|
as: "span",
|
|
128
128
|
size: "100",
|
|
129
129
|
children: $
|
|
130
|
-
}), E(L ?
|
|
130
|
+
}), E(L ? l : c, {
|
|
131
131
|
className: p["SubNav__overlay-toggle-icon"],
|
|
132
132
|
size: 13
|
|
133
133
|
})]
|
|
@@ -146,7 +146,7 @@ var P = y(_(({ id: o, children: s, className: f, "data-testid": g, fullWidth: _,
|
|
|
146
146
|
className: e(p.SubNav__container, Y && p["SubNav--has-sub-heading"], Y && Q && p["SubNav--subHeadingActive"], ee && p["SubNav__container--with-anchor-nav"]),
|
|
147
147
|
children: /* @__PURE__ */ E(N, { children: /* @__PURE__ */ E("nav", {
|
|
148
148
|
ref: j,
|
|
149
|
-
id:
|
|
149
|
+
id: i,
|
|
150
150
|
className: e(p.SubNav, L && p["SubNav--open"], y && p["SubNav--has-shadow"], _ && p["SubNav--full-width"], f),
|
|
151
151
|
"data-testid": g || k.root,
|
|
152
152
|
children: /* @__PURE__ */ D("div", {
|
|
@@ -195,16 +195,16 @@ var P = y(_(({ id: o, children: s, className: f, "data-testid": g, fullWidth: _,
|
|
|
195
195
|
"data-testid": k.heading || i,
|
|
196
196
|
...a,
|
|
197
197
|
children: n
|
|
198
|
-
}), L = _(({ children:
|
|
199
|
-
let v = t(), { isLarge: y } =
|
|
198
|
+
}), L = _(({ children: i, href: a, "aria-current": o, "data-testid": l, className: d, _subMenuVariant: m, variant: h, ...g }, _) => {
|
|
199
|
+
let v = t(), { isLarge: y } = u(), [x, C] = T(!1), O = n(_), A = w(null);
|
|
200
200
|
f(O, (e) => {
|
|
201
201
|
e || C(!1);
|
|
202
202
|
});
|
|
203
|
-
let j = b(() => C(!0), []), M = b(() => C(!1), []), N = b(() => C((e) => !e), []), P = !!
|
|
204
|
-
|
|
203
|
+
let j = b(() => C(!0), []), M = b(() => C(!1), []), N = b(() => C((e) => !e), []), P = !!o && o !== "false";
|
|
204
|
+
s(M), S(() => {
|
|
205
205
|
A.current && A.current.toggleAttribute("inert", y && !x);
|
|
206
206
|
}, [y, x]);
|
|
207
|
-
let [F, I] =
|
|
207
|
+
let [F, I] = i;
|
|
208
208
|
return /* @__PURE__ */ D("div", {
|
|
209
209
|
className: e(p["SubNav__link--has-sub-menu"], x && p["SubNav__link--expanded"], P && p["SubNav__link--has-active-sub-menu"]),
|
|
210
210
|
"data-testid": l || k.subMenu,
|
|
@@ -215,9 +215,9 @@ var P = y(_(({ id: o, children: s, className: f, "data-testid": g, fullWidth: _,
|
|
|
215
215
|
onBlur: () => null,
|
|
216
216
|
children: [
|
|
217
217
|
/* @__PURE__ */ E("a", {
|
|
218
|
-
href:
|
|
219
|
-
className: e(p.SubNav__link,
|
|
220
|
-
"aria-current":
|
|
218
|
+
href: a,
|
|
219
|
+
className: e(p.SubNav__link, o && p["SubNav__link--active"], d),
|
|
220
|
+
"aria-current": o,
|
|
221
221
|
...g,
|
|
222
222
|
children: /* @__PURE__ */ E(r, {
|
|
223
223
|
as: "span",
|
|
@@ -233,7 +233,7 @@ var P = y(_(({ id: o, children: s, className: f, "data-testid": g, fullWidth: _,
|
|
|
233
233
|
"aria-expanded": x ? "true" : "false",
|
|
234
234
|
"aria-controls": v,
|
|
235
235
|
"aria-label": `${F?.toString().trim()} submenu`,
|
|
236
|
-
children: /* @__PURE__ */ E(
|
|
236
|
+
children: /* @__PURE__ */ E(c, {
|
|
237
237
|
className: p["SubNav__sub-menu-icon"],
|
|
238
238
|
size: 16
|
|
239
239
|
})
|
|
@@ -288,16 +288,16 @@ var P = y(_(({ id: o, children: s, className: f, "data-testid": g, fullWidth: _,
|
|
|
288
288
|
}) });
|
|
289
289
|
});
|
|
290
290
|
function z({ children: t, className: n, variant: r = "dropdown", ...i }) {
|
|
291
|
-
let
|
|
291
|
+
let o = m.useContext(j), s = w(null), { isLarge: c } = u();
|
|
292
292
|
return S(() => {
|
|
293
293
|
let e = (e) => {
|
|
294
|
-
|
|
294
|
+
s.current && !s.current.contains(e.target) || e.target instanceof HTMLAnchorElement || e.stopPropagation();
|
|
295
295
|
};
|
|
296
296
|
return r === "anchor" && document.addEventListener("click", e, !0), () => {
|
|
297
297
|
document.removeEventListener("click", e, !0);
|
|
298
298
|
};
|
|
299
|
-
}, [r]), r === "anchor" &&
|
|
300
|
-
ref:
|
|
299
|
+
}, [r]), r === "anchor" && o?.portalRef.current ? O(/* @__PURE__ */ E("nav", {
|
|
300
|
+
ref: s,
|
|
301
301
|
className: e(p["SubNav__sub-menu"], p["SubNav__sub-menu--anchor"], n),
|
|
302
302
|
role: "navigation",
|
|
303
303
|
"aria-label": "Sub navigation",
|
|
@@ -308,8 +308,8 @@ function z({ children: t, className: n, variant: r = "dropdown", ...i }) {
|
|
|
308
308
|
e.props.onClick?.(t);
|
|
309
309
|
} }) : null)
|
|
310
310
|
})
|
|
311
|
-
}),
|
|
312
|
-
...
|
|
311
|
+
}), o.portalRef.current) : /* @__PURE__ */ E(c ? a : m.Fragment, {
|
|
312
|
+
...c ? { colorMode: "light" } : {},
|
|
313
313
|
children: /* @__PURE__ */ E("ul", {
|
|
314
314
|
className: e(p["SubNav__sub-menu"], p[`SubNav__sub-menu--${r}`], n),
|
|
315
315
|
...i,
|
|
@@ -317,15 +317,15 @@ function z({ children: t, className: n, variant: r = "dropdown", ...i }) {
|
|
|
317
317
|
})
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function B({ children: e, href: t, variant: n = "primary", size: r = "small", ...
|
|
321
|
-
return /* @__PURE__ */ E(
|
|
320
|
+
function B({ children: e, href: t, variant: n = "primary", size: r = "small", ...a }) {
|
|
321
|
+
return /* @__PURE__ */ E(i, {
|
|
322
322
|
className: p.SubNav__action,
|
|
323
323
|
as: "a",
|
|
324
324
|
href: t,
|
|
325
325
|
variant: n,
|
|
326
326
|
"data-testid": k.action,
|
|
327
327
|
size: r,
|
|
328
|
-
...
|
|
328
|
+
...a,
|
|
329
329
|
children: e
|
|
330
330
|
});
|
|
331
331
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import e from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useProvidedRefOrCreate as t } from "../hooks/useRef.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import o from "./
|
|
8
|
-
import
|
|
3
|
+
import { useOnClickOutside as n } from "../hooks/useOnClickOutside.js";
|
|
4
|
+
import { useKeyboardEscape as r } from "../hooks/useKeyboardEscape.js";
|
|
5
|
+
import { ChevronDownIcon as i } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
|
|
6
|
+
import { useWindowSize as a } from "../hooks/useWindowSize.js";
|
|
7
|
+
import { useVisibilityObserver as o } from "./useVisibilityObserver.js";
|
|
8
|
+
import s from "./SubdomainNavBar.module.js";
|
|
9
9
|
import c, { forwardRef as l, useCallback as u, useRef as d, useState as f } from "react";
|
|
10
10
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
11
|
//#region src/SubdomainNavBar/NavigationVisbilityObserver.tsx
|
|
12
|
-
var h = l(({ children: n, className:
|
|
13
|
-
let u = t(l), [d] =
|
|
12
|
+
var h = l(({ children: n, className: r, ...i }, l) => {
|
|
13
|
+
let u = t(l), [d] = o(u, n), { isMedium: f } = a(), h = Object.values(d).includes(!1);
|
|
14
14
|
return /* @__PURE__ */ m("ul", {
|
|
15
|
-
className: e(
|
|
15
|
+
className: e(s["SubdomainNavBar-primary-nav-list"], r),
|
|
16
16
|
ref: u,
|
|
17
|
-
...
|
|
17
|
+
...i,
|
|
18
18
|
children: [c.Children.map(n, (t) => {
|
|
19
19
|
if (c.isValidElement(t)) {
|
|
20
20
|
let n = t.props["data-navitemid"];
|
|
21
21
|
if (!n) return t;
|
|
22
22
|
let r = d[n];
|
|
23
|
-
return c.cloneElement(t, { className: e(t.props.className, f && r &&
|
|
23
|
+
return c.cloneElement(t, { className: e(t.props.className, f && r && s["SubdomainNavBar-primary-nav-list-item--visible"], f && r === !1 && s["SubdomainNavBar-primary-nav-list-item--invisible"]) });
|
|
24
24
|
}
|
|
25
25
|
return t;
|
|
26
26
|
}), h && /* @__PURE__ */ p(g, {
|
|
@@ -29,36 +29,36 @@ var h = l(({ children: n, className: a, ...s }, l) => {
|
|
|
29
29
|
})]
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
function g({ children: t, className:
|
|
32
|
+
function g({ children: t, className: a, visibilityMap: o }) {
|
|
33
33
|
let [l, h] = f(null), g = d(null);
|
|
34
|
-
|
|
34
|
+
n(g, () => y());
|
|
35
35
|
let _ = !!l, v = (e) => {
|
|
36
36
|
l ? y() : h(e.currentTarget);
|
|
37
37
|
}, y = u(() => {
|
|
38
38
|
h(null);
|
|
39
39
|
}, []);
|
|
40
|
-
return
|
|
41
|
-
className: e(
|
|
40
|
+
return r(y), /* @__PURE__ */ m("li", {
|
|
41
|
+
className: e(s["SubdomainNavBar-primary-nav-list-item--overflow"], a),
|
|
42
42
|
ref: g,
|
|
43
43
|
children: [/* @__PURE__ */ m("button", {
|
|
44
44
|
"aria-expanded": _ ? "true" : "false",
|
|
45
45
|
"aria-controls": "more-navigation",
|
|
46
46
|
"aria-haspopup": "true",
|
|
47
47
|
onClick: v,
|
|
48
|
-
className: e(
|
|
49
|
-
children: ["More", /* @__PURE__ */ p(
|
|
48
|
+
className: e(s["SubdomainNavBar-link"], s["SubdomainNavBar-more-link"]),
|
|
49
|
+
children: ["More", /* @__PURE__ */ p(i, {})]
|
|
50
50
|
}), /* @__PURE__ */ p("div", {
|
|
51
51
|
id: "more-navigation",
|
|
52
52
|
style: { display: _ ? "block" : "none" },
|
|
53
|
-
className: e(
|
|
53
|
+
className: e(s["SubdomainNavBar-overflow-menu"]),
|
|
54
54
|
children: /* @__PURE__ */ p("ul", {
|
|
55
|
-
className: e(
|
|
55
|
+
className: e(s["SubdomainNavBar-overflow-menu-list"]),
|
|
56
56
|
children: c.Children.map(t, (t) => {
|
|
57
57
|
if (c.isValidElement(t)) {
|
|
58
58
|
let n = t.props["data-navitemid"];
|
|
59
|
-
return !n ||
|
|
59
|
+
return !n || o[n] ? null : /* @__PURE__ */ p(c.Fragment, { children: c.cloneElement(t, {
|
|
60
60
|
onClick: y,
|
|
61
|
-
className: e(
|
|
61
|
+
className: e(s["SubdomainNavBar-overflow-menu-item"], t.props.className)
|
|
62
62
|
}) });
|
|
63
63
|
}
|
|
64
64
|
return null;
|