@primer/react-brand 0.81.0-rc.b64e5144 → 0.81.1-rc.019987d3
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/AnchorNav/index.md +14 -3
- package/docs/components/BreakoutBanner/react.md +1 -1
- package/docs/components/MinimalFooter/index.md +51 -41
- package/docs/components/PricingOptions/index.md +11 -9
- package/docs/components/Prose/index.md +1 -1
- package/docs/components/River/react.md +4 -7
- package/docs/components/Tabs/index.md +1 -1
- package/docs/components/Testimonial/react.md +2 -2
- package/docs/forms/ToggleSwitch/index.md +53 -19
- package/docs/index.md +2 -2
- package/esm/LogoSuite/LogoSuite.d.ts.map +1 -1
- package/esm/LogoSuite/LogoSuite.js +18 -24
- package/esm/LogoSuite/LogoSuite.js.map +1 -1
- package/esm/LogoSuite/LogoSuite.module-DtBWIKUL.css +1 -0
- package/esm/LogoSuite/LogoSuite.module.js +1 -2
- package/esm/LogoSuite/LogoSuite.module.js.map +1 -1
- package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
- package/esm/forms/FormControl/FormControl.js +8 -8
- package/esm/forms/FormControl/FormControl.js.map +1 -1
- package/esm/forms/FormControl/FormControl.module-B7McDwHm.css +1 -0
- package/esm/forms/FormControl/FormControl.module.js +5 -4
- package/esm/forms/FormControl/FormControl.module.js.map +1 -1
- package/esm/forms/ToggleSwitch/ToggleSwitch.d.ts +10 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/esm/forms/ToggleSwitch/ToggleSwitch.js +101 -52
- package/esm/forms/ToggleSwitch/ToggleSwitch.js.map +1 -1
- package/esm/forms/ToggleSwitch/ToggleSwitch.module-PKy9cLy8.css +1 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.module.js +7 -1
- package/esm/forms/ToggleSwitch/ToggleSwitch.module.js.map +1 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes-QUNsZVCZ.css +1 -0
- package/lib/css/main.css +196 -97
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon-button/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon-button/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/spinner/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/spinner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/spinner/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial-group/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes.css +12 -12
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors.css +4 -4
- package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/button/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/carousel-pagination/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon-button/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/spinner/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/spinner/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial-group/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tiles/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/colors.js +8 -8
- package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/button/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/carousel-pagination/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon-button/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/spinner/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/spinner/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial-group/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tiles/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/toggle-switch/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/toggle-switch/colors.js +4 -4
- 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/json/colors.json +3 -3
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/button/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/carousel-pagination/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/feature-comparison-table/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon-button/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon-button/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/spinner/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/spinner/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial-group/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tiles/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/colors.scss +4 -4
- package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/button/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/button/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tiles/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tiles/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.js +4 -4
- 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/ToggleSwitch/ToggleSwitch.d.ts +10 -0
- package/lib/index.js +1 -1
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/esm/LogoSuite/LogoSuite.module-BUJyNoZs.css +0 -1
- package/esm/forms/FormControl/FormControl.module-NDvIk_Aq.css +0 -1
- package/esm/forms/ToggleSwitch/ToggleSwitch.module-C_gXnHNW.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes-Byi9AmE8.css +0 -1
|
@@ -21,7 +21,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
21
21
|
### Basic
|
|
22
22
|
|
|
23
23
|
```jsx
|
|
24
|
-
<div style={{position: 'relative', overflowX: 'scroll', width: '100%'}}>
|
|
24
|
+
<div style={{position: 'relative', overflowX: 'scroll', width: '100%', contain: 'layout'}}>
|
|
25
25
|
<AnchorNav>
|
|
26
26
|
<AnchorNav.Link href="#basic-section1">Section one</AnchorNav.Link>
|
|
27
27
|
<AnchorNav.Link href="#basic-section2">Section two</AnchorNav.Link>
|
|
@@ -35,6 +35,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
35
35
|
style={{
|
|
36
36
|
padding: '100px 2rem',
|
|
37
37
|
backgroundColor: 'var(--base-color-scale-lemon-0)',
|
|
38
|
+
color: 'var(--base-color-scale-black-0)',
|
|
38
39
|
}}
|
|
39
40
|
>
|
|
40
41
|
Section 1
|
|
@@ -44,6 +45,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
44
45
|
style={{
|
|
45
46
|
padding: '100px 2rem',
|
|
46
47
|
backgroundColor: 'var(--base-color-scale-yellow-0)',
|
|
48
|
+
color: 'var(--base-color-scale-black-0)',
|
|
47
49
|
}}
|
|
48
50
|
>
|
|
49
51
|
Section 2
|
|
@@ -53,6 +55,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
53
55
|
style={{
|
|
54
56
|
padding: '100px 2rem',
|
|
55
57
|
backgroundColor: 'var(--base-color-scale-lime-0)',
|
|
58
|
+
color: 'var(--base-color-scale-black-0)',
|
|
56
59
|
}}
|
|
57
60
|
>
|
|
58
61
|
Section 3
|
|
@@ -62,6 +65,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
62
65
|
style={{
|
|
63
66
|
padding: '100px 2rem',
|
|
64
67
|
backgroundColor: 'var(--base-color-scale-green-0)',
|
|
68
|
+
color: 'var(--base-color-scale-black-0)',
|
|
65
69
|
}}
|
|
66
70
|
>
|
|
67
71
|
Section 4
|
|
@@ -71,6 +75,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
71
75
|
style={{
|
|
72
76
|
padding: '100px 2rem',
|
|
73
77
|
backgroundColor: 'var(--base-color-scale-teal-0)',
|
|
78
|
+
color: 'var(--base-color-scale-black-0)',
|
|
74
79
|
}}
|
|
75
80
|
>
|
|
76
81
|
Section 5
|
|
@@ -83,7 +88,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
83
88
|
`AnchorNav` can also feature secondary actions. When two actions are present, the first will be presented as the `primary` variant.
|
|
84
89
|
|
|
85
90
|
```jsx
|
|
86
|
-
<div style={{position: 'relative', overflowX: 'scroll', width: '100%'}}>
|
|
91
|
+
<div style={{position: 'relative', overflowX: 'scroll', width: '100%', contain: 'layout'}}>
|
|
87
92
|
<AnchorNav>
|
|
88
93
|
<AnchorNav.Link href="#fewer-links-section1">Section one</AnchorNav.Link>
|
|
89
94
|
<AnchorNav.Link href="#fewer-links-section2">Section two</AnchorNav.Link>
|
|
@@ -96,6 +101,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
96
101
|
style={{
|
|
97
102
|
padding: '100px 2rem',
|
|
98
103
|
backgroundColor: 'var(--base-color-scale-lemon-0)',
|
|
104
|
+
color: 'var(--base-color-scale-black-0)',
|
|
99
105
|
}}
|
|
100
106
|
>
|
|
101
107
|
Section 1
|
|
@@ -105,6 +111,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
105
111
|
style={{
|
|
106
112
|
padding: '100px 2rem',
|
|
107
113
|
backgroundColor: 'var(--base-color-scale-yellow-0)',
|
|
114
|
+
color: 'var(--base-color-scale-black-0)',
|
|
108
115
|
}}
|
|
109
116
|
>
|
|
110
117
|
Section 2
|
|
@@ -114,6 +121,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
114
121
|
style={{
|
|
115
122
|
padding: '100px 2rem',
|
|
116
123
|
backgroundColor: 'var(--base-color-scale-lime-0)',
|
|
124
|
+
color: 'var(--base-color-scale-black-0)',
|
|
117
125
|
}}
|
|
118
126
|
>
|
|
119
127
|
Section 3
|
|
@@ -126,7 +134,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
126
134
|
`AnchorNav` implementations with fewer than `5` links, will automatically align links to the `start`.
|
|
127
135
|
|
|
128
136
|
```jsx
|
|
129
|
-
<div style={{position: 'relative', overflowX: 'scroll', width: '100%'}}>
|
|
137
|
+
<div style={{position: 'relative', overflowX: 'scroll', width: '100%', contain: 'layout'}}>
|
|
130
138
|
<AnchorNav>
|
|
131
139
|
<AnchorNav.Link href="#fewer-links-section1">Section one</AnchorNav.Link>
|
|
132
140
|
<AnchorNav.Link href="#fewer-links-section2">Section two</AnchorNav.Link>
|
|
@@ -138,6 +146,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
138
146
|
style={{
|
|
139
147
|
padding: '100px 2rem',
|
|
140
148
|
backgroundColor: 'var(--base-color-scale-lemon-0)',
|
|
149
|
+
color: 'var(--base-color-scale-black-0)',
|
|
141
150
|
}}
|
|
142
151
|
>
|
|
143
152
|
Section 1
|
|
@@ -147,6 +156,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
147
156
|
style={{
|
|
148
157
|
padding: '100px 2rem',
|
|
149
158
|
backgroundColor: 'var(--base-color-scale-yellow-0)',
|
|
159
|
+
color: 'var(--base-color-scale-black-0)',
|
|
150
160
|
}}
|
|
151
161
|
>
|
|
152
162
|
Section 2
|
|
@@ -156,6 +166,7 @@ import {AnchorNav} from '@primer/react-brand'
|
|
|
156
166
|
style={{
|
|
157
167
|
padding: '100px 2rem',
|
|
158
168
|
backgroundColor: 'var(--base-color-scale-lime-0)',
|
|
169
|
+
color: 'var(--base-color-scale-black-0)',
|
|
159
170
|
}}
|
|
160
171
|
>
|
|
161
172
|
Section 3
|
|
@@ -116,7 +116,7 @@ The content alignment can be changed using the `align` prop on the root `Breakou
|
|
|
116
116
|
### Optional background color
|
|
117
117
|
|
|
118
118
|
```jsx
|
|
119
|
-
<BreakoutBanner backgroundColor="var(--
|
|
119
|
+
<BreakoutBanner backgroundColor="var(--brand-color-success-subtle)">
|
|
120
120
|
<BreakoutBanner.Heading>Where the most ambitious teams build great things</BreakoutBanner.Heading>
|
|
121
121
|
<BreakoutBanner.Description>
|
|
122
122
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
|
|
@@ -17,7 +17,9 @@ import {MinimalFooter} from '@primer/react-brand'
|
|
|
17
17
|
### Default
|
|
18
18
|
|
|
19
19
|
```jsx
|
|
20
|
-
<
|
|
20
|
+
<div style={{width: '100%'}}>
|
|
21
|
+
<MinimalFooter />
|
|
22
|
+
</div>
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
### Footer links
|
|
@@ -25,35 +27,39 @@ import {MinimalFooter} from '@primer/react-brand'
|
|
|
25
27
|
Use up to five `MinimalFooter.Link` children. Links can render as anchors or buttons.
|
|
26
28
|
|
|
27
29
|
```jsx
|
|
28
|
-
<
|
|
29
|
-
<MinimalFooter
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</MinimalFooter>
|
|
30
|
+
<div style={{width: '100%'}}>
|
|
31
|
+
<MinimalFooter>
|
|
32
|
+
<MinimalFooter.Link href="https://github.com/organizations/enterprise_plan">Try GitHub for free</MinimalFooter.Link>
|
|
33
|
+
<MinimalFooter.Link href="https://github.com/enterprise">Enterprise</MinimalFooter.Link>
|
|
34
|
+
<MinimalFooter.Link href="https://github.com/enterprise/contact">Email us</MinimalFooter.Link>
|
|
35
|
+
</MinimalFooter>
|
|
36
|
+
</div>
|
|
33
37
|
```
|
|
34
38
|
|
|
35
39
|
### Footnotes
|
|
36
40
|
|
|
37
41
|
```jsx
|
|
38
|
-
<
|
|
39
|
-
<MinimalFooter
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</MinimalFooter>
|
|
42
|
+
<div style={{width: '100%'}}>
|
|
43
|
+
<MinimalFooter>
|
|
44
|
+
<MinimalFooter.Footnotes>
|
|
45
|
+
<Text>
|
|
46
|
+
<sup>1</sup>By signing up, GitHub may use your information to personalize and measure the effectiveness of
|
|
47
|
+
enterprise business ads, including those you see off of GitHub, promotional communications or marketing you
|
|
48
|
+
receive related to the Enterprise Marketing Pages. We will send you relevant emails and promotional information
|
|
49
|
+
based on your GitHub profile and any additional information provided in the sign-up form. If you change your
|
|
50
|
+
mind, you can unsubscribe at any time (an unsubscribe link is provided in every email). For more information on
|
|
51
|
+
how GitHub uses your personal information, please see the{' '}
|
|
52
|
+
<InlineLink
|
|
53
|
+
href="https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement"
|
|
54
|
+
target="_blank"
|
|
55
|
+
>
|
|
56
|
+
GitHub Privacy Statement
|
|
57
|
+
</InlineLink>
|
|
58
|
+
.
|
|
59
|
+
</Text>
|
|
60
|
+
</MinimalFooter.Footnotes>
|
|
61
|
+
</MinimalFooter>
|
|
62
|
+
</div>
|
|
57
63
|
```
|
|
58
64
|
|
|
59
65
|
### Footer social links
|
|
@@ -61,7 +67,7 @@ Use up to five `MinimalFooter.Link` children. Links can render as anchors or but
|
|
|
61
67
|
`MinimalFooter` will render all supported social links by default. Social links can be removed however, by passing `socialLinks={false}`. Alternatively, pass an array of valid social links to filter and reorder the default list.
|
|
62
68
|
|
|
63
69
|
```jsx
|
|
64
|
-
<Stack>
|
|
70
|
+
<Stack style={{width: '100%'}}>
|
|
65
71
|
Hide all social links:
|
|
66
72
|
<MinimalFooter socialLinks={false} />
|
|
67
73
|
<br />
|
|
@@ -75,18 +81,20 @@ Use up to five `MinimalFooter.Link` children. Links can render as anchors or but
|
|
|
75
81
|
Use `centerComponent` for an exceptional page-specific control or status indicator between the top and bottom sections.
|
|
76
82
|
|
|
77
83
|
```jsx
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
<div style={{width: '100%'}}>
|
|
85
|
+
<MinimalFooter
|
|
86
|
+
centerComponent={
|
|
87
|
+
<Stack direction="horizontal" gap="condensed" padding="none">
|
|
88
|
+
<Text size="200" variant="muted">
|
|
89
|
+
Status:
|
|
90
|
+
</Text>
|
|
91
|
+
<InlineLink href="https://www.githubstatus.com" size="200">
|
|
92
|
+
All systems operational
|
|
93
|
+
</InlineLink>
|
|
94
|
+
</Stack>
|
|
95
|
+
}
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
90
98
|
```
|
|
91
99
|
|
|
92
100
|
### Back to top
|
|
@@ -96,9 +104,11 @@ Use `MinimalFooter.BackToTop` to opt into a control in the top row that scrolls
|
|
|
96
104
|
After keyboard activation, focus moves to the first `<main>` element, falling back to `<body>` or `<html>` when a main landmark is unavailable. Use `focusTargetId` to identify a different semantic top-of-page destination.
|
|
97
105
|
|
|
98
106
|
```jsx
|
|
99
|
-
<
|
|
100
|
-
<MinimalFooter
|
|
101
|
-
</MinimalFooter>
|
|
107
|
+
<div style={{width: '100%'}}>
|
|
108
|
+
<MinimalFooter socialLinks={false}>
|
|
109
|
+
<MinimalFooter.BackToTop>Back to top</MinimalFooter.BackToTop>
|
|
110
|
+
</MinimalFooter>
|
|
111
|
+
</div>
|
|
102
112
|
```
|
|
103
113
|
|
|
104
114
|
## Component props
|
|
@@ -392,15 +392,17 @@ automatically generated label:
|
|
|
392
392
|
```jsx
|
|
393
393
|
function FeatureWithCustomContent({customContent}) {
|
|
394
394
|
return (
|
|
395
|
-
<PricingOptions.
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
395
|
+
<PricingOptions.FeatureList>
|
|
396
|
+
<PricingOptions.FeatureListItem
|
|
397
|
+
infoTooltip="Interact with Copilot using natural language."
|
|
398
|
+
infoTooltipAriaLabel="More information about Chat in IDE and Mobile"
|
|
399
|
+
>
|
|
400
|
+
<>
|
|
401
|
+
Chat in IDE and Mobile
|
|
402
|
+
{customContent ? <Text>Custom footnote</Text> : null}
|
|
403
|
+
</>
|
|
404
|
+
</PricingOptions.FeatureListItem>
|
|
405
|
+
</PricingOptions.FeatureList>
|
|
404
406
|
)
|
|
405
407
|
}
|
|
406
408
|
```
|
|
@@ -48,7 +48,7 @@ import {Prose} from '@primer/react-brand'
|
|
|
48
48
|
<h4>Heading level 4</h4>
|
|
49
49
|
<p>
|
|
50
50
|
Secure code as you write it. Automatically review every change to your codebase and identify vulnerabilities
|
|
51
|
-
before they reach production. <a href="
|
|
51
|
+
before they reach production. <a href="https://github.com/security/advanced-security/code-security">Learn more about GitHub Code Security.</a>
|
|
52
52
|
</p>
|
|
53
53
|
<h5>Heading level 5</h5>
|
|
54
54
|
<ol>
|
|
@@ -9,7 +9,7 @@ storybook: '/brand/storybook/?path=/story/components-river--default'
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
|
-
import {River, RiverBreakout} from '@primer/react-brand'
|
|
12
|
+
import {MinimalVideoPlayer, River, RiverBreakout} from '@primer/react-brand'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Examples
|
|
@@ -150,11 +150,8 @@ The `gridline` variant adds lateral padding and applies a full-bleed visual back
|
|
|
150
150
|
```jsx
|
|
151
151
|
<River style={{width: '100%'}} imageTextRatio="60:40">
|
|
152
152
|
<River.Visual hasShadow={false}>
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
playsInline
|
|
156
|
-
autoPlay
|
|
157
|
-
muted
|
|
153
|
+
<MinimalVideoPlayer
|
|
154
|
+
title="Break issues into actionable tasks"
|
|
158
155
|
poster="https://github.githubassets.com/images/modules/site/issues/issue-tasks-progress-placeholder.png"
|
|
159
156
|
>
|
|
160
157
|
<source
|
|
@@ -165,7 +162,7 @@ The `gridline` variant adds lateral padding and applies a full-bleed visual back
|
|
|
165
162
|
type="video/mp4; codecs=avc1.4D401E,mp4a.40.2"
|
|
166
163
|
src="https://github.githubassets.com/images/modules/site/issues/issue-tasks-progress.h264.mp4"
|
|
167
164
|
/>
|
|
168
|
-
</
|
|
165
|
+
</MinimalVideoPlayer>
|
|
169
166
|
</River.Visual>
|
|
170
167
|
<River.Content>
|
|
171
168
|
<Heading>Break issues into actionable tasks</Heading>
|
|
@@ -32,7 +32,7 @@ import {Testimonial} from '@primer/react-brand'
|
|
|
32
32
|
For an alternative visual appearance and layout, without altering semantic meaning.
|
|
33
33
|
|
|
34
34
|
```jsx
|
|
35
|
-
<Stack direction=
|
|
35
|
+
<Stack direction={{narrow: 'vertical', regular: 'horizontal'}} gap="spacious" padding="none">
|
|
36
36
|
<Testimonial variant="default">
|
|
37
37
|
<Testimonial.Quote>
|
|
38
38
|
GitHub helps us ensure that we have our security controls baked into our pipelines all the way from the first line
|
|
@@ -90,7 +90,7 @@ Use `size` to alternate the text size. Available options are `small` (default) a
|
|
|
90
90
|
Use `Stack` to help position multiple, adjacent Testimonials alongside one another.
|
|
91
91
|
|
|
92
92
|
```jsx
|
|
93
|
-
<Stack direction=
|
|
93
|
+
<Stack direction={{narrow: 'vertical', regular: 'horizontal'}} gap="spacious" padding="spacious">
|
|
94
94
|
<Testimonial>
|
|
95
95
|
<Testimonial.Quote>
|
|
96
96
|
GitHub helps us ensure that we have our security controls baked into our pipelines all the way from the first line
|
|
@@ -64,6 +64,29 @@ render(Example)
|
|
|
64
64
|
</Stack>
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
### Status label
|
|
68
|
+
|
|
69
|
+
Enable `hasStatusLabel` when space permits to make the current state easier to understand. The text appears before the track by default. Use `statusLabelPosition` to move it after the track, and `labels` to localize or reword it. The status text increases the control width.
|
|
70
|
+
|
|
71
|
+
Custom status text supplements the setting label; it does not replace it. The switch exposes its state as on or off to assistive technology, so the setting label must make sense with on and off. For example, use "Make repository public" rather than "Repository visibility" with "Public" and "Private" status text.
|
|
72
|
+
|
|
73
|
+
```jsx
|
|
74
|
+
<Stack>
|
|
75
|
+
<FormControl>
|
|
76
|
+
<FormControl.Label>Status label at end</FormControl.Label>
|
|
77
|
+
<ToggleSwitch hasStatusLabel statusLabelPosition="end" defaultChecked />
|
|
78
|
+
</FormControl>
|
|
79
|
+
<FormControl>
|
|
80
|
+
<FormControl.Label>Custom status labels</FormControl.Label>
|
|
81
|
+
<ToggleSwitch hasStatusLabel labels={{on: 'Enabled', off: 'Disabled'}} />
|
|
82
|
+
</FormControl>
|
|
83
|
+
<FormControl>
|
|
84
|
+
<FormControl.Label>Without status label</FormControl.Label>
|
|
85
|
+
<ToggleSwitch />
|
|
86
|
+
</FormControl>
|
|
87
|
+
</Stack>
|
|
88
|
+
```
|
|
89
|
+
|
|
67
90
|
### Disabled
|
|
68
91
|
|
|
69
92
|
```jsx
|
|
@@ -99,27 +122,38 @@ render(Example)
|
|
|
99
122
|
</Stack>
|
|
100
123
|
```
|
|
101
124
|
|
|
125
|
+
## Accessibility
|
|
126
|
+
|
|
127
|
+
`ToggleSwitch` exposes its state with `role="switch"` and `aria-checked`. Give it a descriptive setting label with `FormControl.Label` or `aria-labelledby`. The label describes the setting; status text does not replace it or change the switch's accessible name. The thumb position also communicates state, beyond color.
|
|
128
|
+
|
|
129
|
+
Enable `hasStatusLabel` when space permits. The visible On/Off text is part of the switch's click target and stays visible in both sizes, light and dark modes, and forced-colors mode. Default On/Off text is hidden from assistive technology because `aria-checked` already exposes the state. With `hasStatusLabel`, custom `labels.on` and `labels.off` text becomes the accessible description. Immediate activation changes politely announce custom text; later controlled updates change the description without an announcement. Translated labels can repeat the state. Both labels reserve the same width to prevent layout shifts. In narrow containers, `FormControl` places the setting label above the switch so longer labels can wrap without horizontal scrolling.
|
|
130
|
+
|
|
131
|
+
The default track border and enabled thumb each meet 3:1 contrast against adjacent colors in light and dark modes. ToggleSwitch uses existing Brand palette colors. Recheck contrast if you override its colors or place it on a custom background.
|
|
132
|
+
|
|
102
133
|
## Component Props
|
|
103
134
|
|
|
104
|
-
| Name
|
|
105
|
-
|
|
|
106
|
-
| `checked`
|
|
107
|
-
| `defaultChecked`
|
|
108
|
-
| `onChange`
|
|
109
|
-
| `onClick`
|
|
110
|
-
| `disabled`
|
|
111
|
-
| `loading`
|
|
112
|
-
| `size`
|
|
113
|
-
| `loadingLabel`
|
|
114
|
-
| `loadingLabelDelay`
|
|
115
|
-
| `spinnerPosition`
|
|
116
|
-
| `
|
|
117
|
-
| `
|
|
118
|
-
| `
|
|
119
|
-
| `aria-
|
|
120
|
-
| `
|
|
121
|
-
| `
|
|
122
|
-
| `
|
|
135
|
+
| Name | Type | Default | Description |
|
|
136
|
+
| --------------------- | -------------------------------------------- | ------------ | ------------------------------------------------------------------------------------- |
|
|
137
|
+
| `checked` | `boolean` | | Controlled on/off value. |
|
|
138
|
+
| `defaultChecked` | `boolean` | `false` | Initial uncontrolled value. |
|
|
139
|
+
| `onChange` | `(checked: boolean) => void` | | Called once per accepted activation with the next value. |
|
|
140
|
+
| `onClick` | `React.MouseEventHandler<HTMLButtonElement>` | | Activation callback receiving the button event. |
|
|
141
|
+
| `disabled` | `boolean` | `false` | Blocks activation while retaining keyboard focusability. |
|
|
142
|
+
| `loading` | `boolean` | `false` | Displays pending feedback and exposes `aria-busy` without blocking interaction. |
|
|
143
|
+
| `size` | `'small' \| 'medium'` | `'medium'` | Alternative sizes. |
|
|
144
|
+
| `loadingLabel` | `string` | `'Loading'` | Localized loading announcement. |
|
|
145
|
+
| `loadingLabelDelay` | `number` | `2000` | Announcement delay in milliseconds. |
|
|
146
|
+
| `spinnerPosition` | `'start' \| 'end'` | `'end'` | Indicator placement beside the switch when no visible FormControl label is available. |
|
|
147
|
+
| `hasStatusLabel` | `boolean` | `false` | Shows visible On/Off status text beside the track. |
|
|
148
|
+
| `statusLabelPosition` | `'start' \| 'end'` | `'start'` | Status text placement relative to the track. |
|
|
149
|
+
| `labels` | `{on?: string; off?: string}` | `On` / `Off` | Visible status text for each state. Custom text describes the switch when shown. |
|
|
150
|
+
| `aria-label` | `string` | | Explicit accessible name matching equivalent visible labeling. |
|
|
151
|
+
| `aria-labelledby` | `string` | | IDs of visible labeling elements. |
|
|
152
|
+
| `aria-describedby` | `string` | | Description IDs, combined with status, FormControl, and loading descriptions. |
|
|
153
|
+
| `aria-invalid` | React ARIA attribute | | Validation state of the switch button. |
|
|
154
|
+
| `ref` | `React.Ref<HTMLButtonElement>` | | Ref for the focusable button. |
|
|
155
|
+
| `className` | `string` | | Class applied to the component wrapper. |
|
|
156
|
+
| `data-testid` | `string` | | Test ID applied to the component wrapper. |
|
|
123
157
|
|
|
124
158
|
Other standard button attributes, including `aria-controls`, `tabIndex`, keyboard handlers, and `style`, apply to the switch button.
|
|
125
159
|
|
package/docs/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Primer Brand docs (v0.81.
|
|
1
|
+
# Primer Brand docs (v0.81.1-rc.019987d3)
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@primer/react-brand@0.81.
|
|
3
|
+
These docs are bundled with `@primer/react-brand@0.81.1-rc.019987d3` and match your installed version.
|
|
4
4
|
|
|
5
5
|
New here? Start with [Getting started](getting-started/index.md) for installation, global
|
|
6
6
|
stylesheet and font setup. Component directories are named after their import (e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoSuite.d.ts","sourceRoot":"","sources":["../../src/LogoSuite/LogoSuite.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAkE,MAAM,OAAO,CAAA;AAGpH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAU,YAAY,EAA2B,SAAS,EAAe,MAAM,KAAK,CAAA;AAG3F;;GAEG;AACH,OAAO,6GAA6G,CAAA;AACpH,OAAO,gGAAgG,CAAA;AAYvG,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;IACtC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,qBAAqB,CAAA;CACzD,GAAG,SAAS,CAAC,cAAc,CAAC,GAC3B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AA4EtC,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,kBAAkB,CAAC,GAC/D,YAAY,GAAG;IACb;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAiCH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,oBAAoB,CAAC,GACrE,SAAS,GAAG;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC9C,CAAA;AAgDH,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG;IAC9D;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;KACd,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GACjE,SAAS,CAAC,iBAAiB,CAAC,CAAA;CAC/B,CAAA;
|
|
1
|
+
{"version":3,"file":"LogoSuite.d.ts","sourceRoot":"","sources":["../../src/LogoSuite/LogoSuite.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAkE,MAAM,OAAO,CAAA;AAGpH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAU,YAAY,EAA2B,SAAS,EAAe,MAAM,KAAK,CAAA;AAG3F;;GAEG;AACH,OAAO,6GAA6G,CAAA;AACpH,OAAO,gGAAgG,CAAA;AAYvG,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;IACtC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,qBAAqB,CAAA;CACzD,GAAG,SAAS,CAAC,cAAc,CAAC,GAC3B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AA4EtC,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,kBAAkB,CAAC,GAC/D,YAAY,GAAG;IACb;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAiCH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,oBAAoB,CAAC,GACrE,SAAS,GAAG;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC9C,CAAA;AAgDH,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG;IAC9D;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;KACd,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GACjE,SAAS,CAAC,iBAAiB,CAAC,CAAA;CAC/B,CAAA;AAyID;;;GAGG;AACH,eAAO,MAAM,SAAS,iFAvUnB,iBAAiB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;kBA4GtB,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE;;;;;;;;;;;;;kBAAnC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE;;;;;;;;;;;;;kBAAnC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE;;;;;;;;;;;;;kBAAnC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE;;;;;;;;;;;;;kBAAnC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE;;;;;;;CAgO/C,CAAA"}
|
|
@@ -67,27 +67,23 @@ var y = {
|
|
|
67
67
|
"aria-label": e ? "Pause animation" : "Play animation",
|
|
68
68
|
children: _(e ? s : c, {})
|
|
69
69
|
});
|
|
70
|
-
}, w = d(({ className: t, children: r, gap: i = "default", marquee: a = !1, marqueeSpeed: s = "normal", variant: c = "muted", takeoverButton: d, ...
|
|
71
|
-
let
|
|
70
|
+
}, w = d(({ className: t, children: r, gap: i = "default", marquee: a = !1, marqueeSpeed: s = "normal", variant: c = "muted", takeoverButton: d, ...f }, m) => {
|
|
71
|
+
let g = n(), [b, x] = h(() => a && !g && s !== "idle");
|
|
72
72
|
p(() => {
|
|
73
|
-
|
|
73
|
+
x(a && !g && s !== "idle");
|
|
74
74
|
}, [
|
|
75
75
|
a,
|
|
76
|
-
|
|
76
|
+
g,
|
|
77
77
|
s
|
|
78
78
|
]), a && d && (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test") && console.warn("LogoSuite.Logobar: `takeoverButton` cant be used with `marquee` prop due to accessibility risks. Set `marquee={false}` to use the takeover feature.");
|
|
79
|
-
let
|
|
79
|
+
let S = (e) => {
|
|
80
80
|
let t = u.Children.toArray(e);
|
|
81
|
-
return t.length > 0 && t.every((e) => u.isValidElement(e) ? e.type === "a" || e.type === u.Fragment &&
|
|
82
|
-
},
|
|
83
|
-
ref:
|
|
84
|
-
className: e(l.LogoSuite__logobar, l[`LogoSuite__logobar--variant-${c}`], l[`LogoSuite__logobar--gap-${i}`],
|
|
85
|
-
...
|
|
86
|
-
},
|
|
87
|
-
O(!0);
|
|
88
|
-
}, []), A = f((e) => {
|
|
89
|
-
e.currentTarget.contains(e.relatedTarget) || O(!1);
|
|
90
|
-
}, []), j = () => {
|
|
81
|
+
return t.length > 0 && t.every((e) => u.isValidElement(e) ? e.type === "a" || e.type === u.Fragment && S(e.props.children) : !1);
|
|
82
|
+
}, w = S(r), T = (e) => u.Children.map(e, (e) => u.isValidElement(e) ? e.type === u.Fragment ? u.cloneElement(e, { children: T(e.props.children) }) : u.cloneElement(e, { tabIndex: -1 }) : e), E = {
|
|
83
|
+
ref: m,
|
|
84
|
+
className: e(l.LogoSuite__logobar, l[`LogoSuite__logobar--variant-${c}`], l[`LogoSuite__logobar--gap-${i}`], w && l["LogoSuite__logobar--has-linked-logos"], t),
|
|
85
|
+
...f
|
|
86
|
+
}, D = () => {
|
|
91
87
|
if (!d) return null;
|
|
92
88
|
let { className: t, label: n, ref: r, ...i } = d;
|
|
93
89
|
return /* @__PURE__ */ _("div", {
|
|
@@ -102,27 +98,25 @@ var y = {
|
|
|
102
98
|
});
|
|
103
99
|
};
|
|
104
100
|
if (a) {
|
|
105
|
-
let { className: t, ...n } = E, i = !
|
|
101
|
+
let { className: t, ...n } = E, i = !b || g;
|
|
106
102
|
return /* @__PURE__ */ v("div", {
|
|
107
103
|
...n,
|
|
108
104
|
className: e(l["LogoSuite__logobar--has-marquee"], t, i && l["LogoSuite__logobar--paused"]),
|
|
109
105
|
children: [/* @__PURE__ */ v("div", {
|
|
110
|
-
className:
|
|
111
|
-
onFocus: k,
|
|
112
|
-
onBlur: A,
|
|
106
|
+
className: l["LogoSuite__logobar-marquee"],
|
|
113
107
|
children: [/* @__PURE__ */ _("div", {
|
|
114
108
|
className: e(l["LogoSuite__logobar-marqueeGroup"], l[`LogoSuite__logobar-marqueeGroup--speed-${s}`]),
|
|
115
109
|
"data-testid": y.marqueeGroup,
|
|
116
110
|
children: r
|
|
117
111
|
}), /* @__PURE__ */ _("div", {
|
|
118
|
-
inert: !0,
|
|
119
112
|
"aria-hidden": "true",
|
|
113
|
+
onPointerDown: (e) => e.preventDefault(),
|
|
120
114
|
className: e(l["LogoSuite__logobar-marqueeGroup"], l[`LogoSuite__logobar-marqueeGroup--speed-${s}`]),
|
|
121
|
-
children: r
|
|
115
|
+
children: T(r)
|
|
122
116
|
})]
|
|
123
117
|
}), /* @__PURE__ */ _(C, {
|
|
124
|
-
onPlayPause:
|
|
125
|
-
isPlaying:
|
|
118
|
+
onPlayPause: x,
|
|
119
|
+
isPlaying: b
|
|
126
120
|
})]
|
|
127
121
|
});
|
|
128
122
|
}
|
|
@@ -131,7 +125,7 @@ var y = {
|
|
|
131
125
|
return /* @__PURE__ */ v("div", {
|
|
132
126
|
...n,
|
|
133
127
|
className: e(t, l["LogoSuite__logobar--has-takeover"]),
|
|
134
|
-
children: [r,
|
|
128
|
+
children: [r, D()]
|
|
135
129
|
});
|
|
136
130
|
}
|
|
137
131
|
return /* @__PURE__ */ _("div", {
|