@primer/react-brand 0.74.0 → 0.75.0-rc.96de7cef
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/RiverAccordion/index.md +49 -6
- package/docs/components/SubdomainNavBar/index.md +215 -86
- package/docs/index.md +2 -2
- package/esm/Hero/sub-components/HeroLabel.d.ts +1 -0
- package/esm/Hero/sub-components/HeroLabel.d.ts.map +1 -1
- package/esm/Hero/sub-components/HeroLabel.js +7 -6
- package/esm/Hero/sub-components/HeroLabel.js.map +1 -1
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts.map +1 -1
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +115 -63
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +155 -18
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.js +474 -298
- package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.module-WIrpYyjV.css +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js +33 -9
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +9 -0
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts.map +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js +10 -0
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js.map +1 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +8 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts.map +1 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js +52 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js.map +1 -0
- package/esm/SubdomainNavBar/useSearchResults.d.ts +24 -0
- package/esm/SubdomainNavBar/useSearchResults.d.ts.map +1 -0
- package/esm/SubdomainNavBar/useSearchResults.js +57 -0
- package/esm/SubdomainNavBar/useSearchResults.js.map +1 -0
- package/esm/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
- package/esm/SubdomainNavBar/useVisibilityObserver.d.ts.map +1 -1
- package/esm/SubdomainNavBar/useVisibilityObserver.js +60 -23
- package/esm/SubdomainNavBar/useVisibilityObserver.js.map +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.d.ts +8 -3
- package/esm/TextCursorAnimation/TextCursorAnimation.d.ts.map +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.js +53 -27
- package/esm/TextCursorAnimation/TextCursorAnimation.js.map +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.module-BS4hPR8H.css +1 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.module.js +14 -4
- package/esm/TextCursorAnimation/TextCursorAnimation.module.js.map +1 -1
- package/esm/hooks/useCursorAnimation.d.ts +8 -31
- package/esm/hooks/useCursorAnimation.d.ts.map +1 -1
- package/esm/hooks/useCursorAnimation.js +84 -36
- package/esm/hooks/useCursorAnimation.js.map +1 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-BGj0AiDW.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base-DKbXhPKv.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes-BucKYl1n.css +1 -0
- package/esm/river/RiverAccordion/RiverAccordion.d.ts +13 -4
- package/esm/river/RiverAccordion/RiverAccordion.d.ts.map +1 -1
- package/esm/river/RiverAccordion/RiverAccordion.js +35 -24
- package/esm/river/RiverAccordion/RiverAccordion.js.map +1 -1
- package/esm/river/RiverAccordion/RiverAccordion.module-Cr6Q-qkm.css +1 -0
- package/esm/river/RiverAccordion/RiverAccordion.module.js +7 -3
- package/esm/river/RiverAccordion/RiverAccordion.module.js.map +1 -1
- package/lib/Hero/sub-components/HeroLabel.d.ts +1 -0
- package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +155 -18
- package/lib/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +8 -0
- package/lib/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +7 -0
- package/lib/SubdomainNavBar/useSearchResults.d.ts +23 -0
- package/lib/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
- package/lib/TextCursorAnimation/TextCursorAnimation.d.ts +8 -3
- package/lib/css/main.css +1388 -302
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +7 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +8 -0
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +7 -3
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +4 -2
- package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +14 -0
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +10 -2
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +6 -0
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +4 -2
- 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/json/colors.json +6 -1
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +5 -0
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +4 -2
- package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +17 -0
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +14 -0
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +4 -2
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +4 -2
- 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/hooks/useCursorAnimation.d.ts +8 -31
- package/lib/index.js +1 -1
- package/lib/river/RiverAccordion/RiverAccordion.d.ts +13 -4
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.module-Rf4qEDka.css +0 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.module-BJLhwKrK.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-ehJCoExh.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes-BODdIvrY.css +0 -1
- package/esm/river/RiverAccordion/RiverAccordion.module-BTU_metB.css +0 -1
|
@@ -155,6 +155,47 @@ Use the `gridline` variant to add horizontal border lines, equal-width columns,
|
|
|
155
155
|
</RiverAccordion>
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
+
Set `hasBackground={false}` on a `RiverAccordion.Visual` to remove its background and inline start padding.
|
|
159
|
+
|
|
160
|
+
`leadingVisual` can also be set on `RiverAccordion.Heading` to add optional Octicons to the summary.
|
|
161
|
+
|
|
162
|
+
```jsx
|
|
163
|
+
<RiverAccordion variant="gridline">
|
|
164
|
+
<RiverAccordion.Item>
|
|
165
|
+
<RiverAccordion.Heading leadingVisual={<Icon icon={CopilotIcon} />}>Heading 1</RiverAccordion.Heading>
|
|
166
|
+
<RiverAccordion.Content>
|
|
167
|
+
<Text>This item removes the visual background and padding while preserving the media's aspect ratio.</Text>
|
|
168
|
+
<Link href="#">Call to action</Link>
|
|
169
|
+
</RiverAccordion.Content>
|
|
170
|
+
<RiverAccordion.Visual hasBackground={false}>
|
|
171
|
+
<img src="/images/placeholder-1.png" alt="Visual content for item 1" />
|
|
172
|
+
</RiverAccordion.Visual>
|
|
173
|
+
</RiverAccordion.Item>
|
|
174
|
+
|
|
175
|
+
<RiverAccordion.Item>
|
|
176
|
+
<RiverAccordion.Heading leadingVisual={<Icon icon={CopilotIcon} />}>Heading 2</RiverAccordion.Heading>
|
|
177
|
+
<RiverAccordion.Content>
|
|
178
|
+
<Text>The visual is displayed without a background while the accordion interaction stays the same.</Text>
|
|
179
|
+
<Link href="#">Call to action</Link>
|
|
180
|
+
</RiverAccordion.Content>
|
|
181
|
+
<RiverAccordion.Visual hasBackground={false}>
|
|
182
|
+
<img src="/images/placeholder-2.png" alt="Visual content for item 2" />
|
|
183
|
+
</RiverAccordion.Visual>
|
|
184
|
+
</RiverAccordion.Item>
|
|
185
|
+
|
|
186
|
+
<RiverAccordion.Item>
|
|
187
|
+
<RiverAccordion.Heading leadingVisual={<Icon icon={CopilotIcon} />}>Heading 3</RiverAccordion.Heading>
|
|
188
|
+
<RiverAccordion.Content>
|
|
189
|
+
<Text>Use this treatment when visuals should appear without a surrounding background panel.</Text>
|
|
190
|
+
<Link href="#">Call to action</Link>
|
|
191
|
+
</RiverAccordion.Content>
|
|
192
|
+
<RiverAccordion.Visual hasBackground={false}>
|
|
193
|
+
<img src="/images/placeholder-3.png" alt="Visual content for item 3" />
|
|
194
|
+
</RiverAccordion.Visual>
|
|
195
|
+
</RiverAccordion.Item>
|
|
196
|
+
</RiverAccordion>
|
|
197
|
+
```
|
|
198
|
+
|
|
158
199
|
## Component props
|
|
159
200
|
|
|
160
201
|
### RiverAccordion `Required`
|
|
@@ -177,9 +218,10 @@ Use the `gridline` variant to add horizontal border lines, equal-width columns,
|
|
|
177
218
|
|
|
178
219
|
### RiverAccordion.Heading `Required`
|
|
179
220
|
|
|
180
|
-
| Name
|
|
181
|
-
|
|
|
182
|
-
| `children`
|
|
221
|
+
| Name | Type | Default | Description |
|
|
222
|
+
| :-------------- | :--------------------- | :-----: | :--------------------------------------------- |
|
|
223
|
+
| `children` | `string` | | Heading text |
|
|
224
|
+
| `leadingVisual` | `ReactElement \| Icon` | | Decorative visual displayed before the heading |
|
|
183
225
|
|
|
184
226
|
`RiverAccordion.Heading` extends the [`Heading`](../../typography/Heading/index.md) component and supports all `Heading` props.
|
|
185
227
|
|
|
@@ -193,8 +235,9 @@ Use the `gridline` variant to add horizontal border lines, equal-width columns,
|
|
|
193
235
|
|
|
194
236
|
### RiverAccordion.Visual `Required`
|
|
195
237
|
|
|
196
|
-
| Name
|
|
197
|
-
|
|
|
198
|
-
| `children`
|
|
238
|
+
| Name | Type | Default | Description |
|
|
239
|
+
| :-------------- | :------------------- | :-----: | :------------------------------------------------------------- |
|
|
240
|
+
| `children` | `React.ReactElement` | | Visual content (e.g., image) |
|
|
241
|
+
| `hasBackground` | `boolean` | `true` | Displays a padded background when using the `gridline` variant |
|
|
199
242
|
|
|
200
243
|
`RiverAccordion.Visual` extends the HTML `div` element and supports all `div` props.
|
|
@@ -21,116 +21,245 @@ import {SubdomainNavBar} from '@primer/react-brand'
|
|
|
21
21
|
### Basic
|
|
22
22
|
|
|
23
23
|
```jsx
|
|
24
|
-
<
|
|
25
|
-
<SubdomainNavBar
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</SubdomainNavBar>
|
|
24
|
+
<div style={{width: '100%'}}>
|
|
25
|
+
<SubdomainNavBar title="Subdomain" fixed={false}>
|
|
26
|
+
<SubdomainNavBar.Link href="#">Collections</SubdomainNavBar.Link>
|
|
27
|
+
<SubdomainNavBar.Link href="#">Topics</SubdomainNavBar.Link>
|
|
28
|
+
<SubdomainNavBar.Link href="#">Social</SubdomainNavBar.Link>
|
|
29
|
+
<SubdomainNavBar.PrimaryAction href="#">Primary CTA</SubdomainNavBar.PrimaryAction>
|
|
30
|
+
<SubdomainNavBar.SecondaryAction href="#">Secondary CTA</SubdomainNavBar.SecondaryAction>
|
|
31
|
+
</SubdomainNavBar>
|
|
32
|
+
</div>
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
### Search
|
|
34
36
|
|
|
35
|
-
`SubdomainNavBar` offers an optional search form control
|
|
37
|
+
`SubdomainNavBar` offers an optional search form control that supports both `onSubmit` and `onChange`; use `onChange` to display inline results. The `placeholder` labels the input in the opened dialog and defaults to `Search {title}`, or `Search` when no navigation title is available.
|
|
38
|
+
|
|
39
|
+
Keyboard shortcuts are disabled by default. Pass `keyboardShortcut`, such as `keyboardShortcut="/"`, to opt into a global shortcut that opens the search dialog. For programmatic control with `openSearch()` and `closeSearch()`, see the Imperative Search API Storybook example.
|
|
36
40
|
|
|
37
41
|
```jsx filename="noinline"
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
const groupedResults = [
|
|
43
|
+
{
|
|
44
|
+
title: 'Recommended',
|
|
45
|
+
results: [
|
|
46
|
+
{
|
|
47
|
+
title: 'Getting started with GitHub',
|
|
48
|
+
description: 'Create an account and learn the basics.',
|
|
49
|
+
url: '/en/get-started',
|
|
50
|
+
date: '2026-07-01',
|
|
51
|
+
category: 'Guide',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: 'API reference',
|
|
57
|
+
results: [
|
|
58
|
+
{
|
|
59
|
+
title: 'REST API documentation',
|
|
60
|
+
description: 'Integrate with GitHub using the REST API.',
|
|
61
|
+
url: 'https://docs.github.com/en/rest',
|
|
62
|
+
date: '2026-07-01',
|
|
63
|
+
category: 'Reference',
|
|
64
|
+
isExternal: true,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
]
|
|
69
|
+
|
|
70
|
+
const SearchNav = () => {
|
|
41
71
|
const [searchTerm, setSearchTerm] = React.useState('')
|
|
42
72
|
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
title
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
73
|
+
return (
|
|
74
|
+
<div style={{width: '100%'}}>
|
|
75
|
+
<SubdomainNavBar title="GitHub Docs" fixed={false} fullWidth>
|
|
76
|
+
<SubdomainNavBar.Link href="/en/get-started">Get started</SubdomainNavBar.Link>
|
|
77
|
+
<SubdomainNavBar.Search
|
|
78
|
+
placeholder="Search GitHub Docs"
|
|
79
|
+
keyboardShortcut="/"
|
|
80
|
+
searchTerm={searchTerm}
|
|
81
|
+
searchResults={searchTerm ? groupedResults : []}
|
|
82
|
+
onChange={event => setSearchTerm(event.currentTarget.value)}
|
|
83
|
+
onSubmit={event => {
|
|
84
|
+
event.preventDefault()
|
|
85
|
+
}}
|
|
86
|
+
/>
|
|
87
|
+
</SubdomainNavBar>
|
|
88
|
+
</div>
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
render(<SearchNav />)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Search results can be a flat list or grouped by title. Do not mix both formats in the same array.
|
|
96
|
+
|
|
97
|
+
### Localized search
|
|
98
|
+
|
|
99
|
+
Use the `labels` prop to localize search text. Any labels you omit fall back to English.
|
|
100
|
+
|
|
101
|
+
```jsx filename="noinline"
|
|
102
|
+
const searchProps = {
|
|
103
|
+
searchLabel: 'Buscar',
|
|
104
|
+
closeLabel: 'Cerrar',
|
|
105
|
+
resultsLabel: 'Resultados',
|
|
106
|
+
searchResultsLabel: 'Resultados de búsqueda',
|
|
107
|
+
formatSearchWithTitle: title => `Buscar en ${title}`,
|
|
108
|
+
formatSearchTrigger: placeholder => `Abrir ${placeholder}`,
|
|
109
|
+
formatResultsHeading: searchTerm => `Resultados para «${searchTerm}»`,
|
|
110
|
+
formatResultsLabel: searchTerm => `Resultados para ${searchTerm}`,
|
|
111
|
+
formatSuggestions: count => `${count} sugerencia${count === 1 ? '' : 's'}.`,
|
|
112
|
+
placeholder: 'Buscar documentación',
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const LocalizedSearch = () => {
|
|
116
|
+
const [searchTerm, setSearchTerm] = React.useState('')
|
|
83
117
|
|
|
84
118
|
return (
|
|
85
|
-
<
|
|
86
|
-
<SubdomainNavBar
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</SubdomainNavBar>
|
|
119
|
+
<div style={{width: '100%'}}>
|
|
120
|
+
<SubdomainNavBar title="Documentación" fixed={false}>
|
|
121
|
+
<SubdomainNavBar.Search
|
|
122
|
+
{...searchProps}
|
|
123
|
+
searchTerm={searchTerm}
|
|
124
|
+
onChange={event => setSearchTerm(event.currentTarget.value)}
|
|
125
|
+
onSubmit={event => event.preventDefault()}
|
|
126
|
+
/>
|
|
127
|
+
</SubdomainNavBar>
|
|
128
|
+
</div>
|
|
96
129
|
)
|
|
97
130
|
}
|
|
98
131
|
|
|
99
|
-
render(
|
|
132
|
+
render(<LocalizedSearch />)
|
|
100
133
|
```
|
|
101
134
|
|
|
102
|
-
|
|
135
|
+
### Localized menu controls
|
|
136
|
+
|
|
137
|
+
Use `menuLabels` to localize the narrow menu control and desktop overflow menu. The narrow menu label changes when the menu opens, and any omitted value falls back to English.
|
|
138
|
+
|
|
139
|
+
```jsx filename="noinline"
|
|
140
|
+
const LocalizedMenu = () => (
|
|
141
|
+
<div style={{width: '100%'}}>
|
|
142
|
+
<SubdomainNavBar
|
|
143
|
+
title="Documentación"
|
|
144
|
+
fixed={false}
|
|
145
|
+
menuLabels={{
|
|
146
|
+
menuLabel: 'Menú',
|
|
147
|
+
closeLabel: 'Cerrar',
|
|
148
|
+
overflowMenuLabel: 'Más',
|
|
149
|
+
}}
|
|
150
|
+
>
|
|
151
|
+
<SubdomainNavBar.Link href="/es/get-started">Primeros pasos</SubdomainNavBar.Link>
|
|
152
|
+
<SubdomainNavBar.PrimaryAction href="/es/signup">Registrarse</SubdomainNavBar.PrimaryAction>
|
|
153
|
+
</SubdomainNavBar>
|
|
154
|
+
</div>
|
|
155
|
+
)
|
|
103
156
|
|
|
104
|
-
|
|
157
|
+
render(<LocalizedMenu />)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Accessibility
|
|
105
161
|
|
|
106
|
-
|
|
162
|
+
- Render `SubdomainNavBar` before other focusable page content so its skip-to-content link is the first keyboard-accessible control.
|
|
163
|
+
- Provide a concise, meaningful `title`. It labels the navigation and communicates the subdomain to assistive technologies.
|
|
164
|
+
- Set `skipToContentTargetId` to the ID of the page's active main content element. Activating the skip link moves focus to that element and clears the fixed navigation bar. When omitted, or if the explicit target is unavailable, the component targets the first rendered `main` that is not hidden from assistive technologies.
|
|
165
|
+
- When the menu opens on narrow viewports, hide the rest of the document from screen readers with `inert` or `aria-hidden="true"`. Use `onNarrowMenuToggle` to track the menu state.
|
|
166
|
+
- Localize the menu controls' visible and accessible labels with `menuLabels`.
|
|
167
|
+
- Only opt into a `keyboardShortcut` that does not conflict with browser, operating system, or application shortcuts. Always provide another visible way to open search.
|
|
168
|
+
- For search, localize its visible text, accessible labels, result headings, and live-region announcements. Supplying only some `labels` values produces a mix of localized text and English defaults.
|
|
107
169
|
|
|
108
170
|
## Component props
|
|
109
171
|
|
|
110
172
|
### SubdomainNavBar `Required`
|
|
111
173
|
|
|
112
|
-
| Name
|
|
113
|
-
|
|
|
114
|
-
| `children`
|
|
115
|
-
| `className`
|
|
116
|
-
| `id`
|
|
117
|
-
| `
|
|
118
|
-
| `
|
|
119
|
-
| `
|
|
120
|
-
| `
|
|
121
|
-
| `
|
|
174
|
+
| Name | Type | Default | Description |
|
|
175
|
+
| :---------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------- | :---------------------------------------------------------------------- |
|
|
176
|
+
| `children` | `'SubdomainNavBar.Link' \| 'SubdomainNavBar.Search' \| 'SubdomainNavBar.PrimaryAction' \| 'SubdomainNavBar.SecondaryAction' \| 'React.ReactElement'` | | Valid child nodes |
|
|
177
|
+
| `className` | `string` | | Sets a custom class on the root element |
|
|
178
|
+
| `id` | `string` | | Sets a custom ID on the root element |
|
|
179
|
+
| `style` | `React.CSSProperties` | | Forwards custom inline styles to the root element |
|
|
180
|
+
| `fixed` | `boolean` | `true` | Fixes the navigation bar to the top of the viewport |
|
|
181
|
+
| `fullWidth` | `boolean` | `false` | Allows the inner content to fill the available width |
|
|
182
|
+
| `logoHref` | `string` | `https://github.com` | Changes the URL of the GitHub logo |
|
|
183
|
+
| `title` | `string` | | Required subdomain name used visibly and by assistive technologies |
|
|
184
|
+
| `titleHref` | `string` | `/` | Links the title to the subdomain root |
|
|
185
|
+
| `menuLabels` | `Partial<SubdomainNavBarMenuLabels>` | English labels | Overrides the menu controls' visible and accessible labels |
|
|
186
|
+
| `skipToContentTargetId` | `string` | First visible `main` | ID of the element focused by the skip-to-content link |
|
|
187
|
+
| `ref` | `React.Ref<SubdomainNavBarHandle>` | | Ref to the root element with `openSearch()` and `closeSearch()` methods |
|
|
188
|
+
| `onNarrowMenuToggle` | `(isOpen: boolean) => void` | | Called with the new state when the narrow menu opens or closes |
|
|
189
|
+
|
|
190
|
+
`SubdomainNavBarProps`, `SubdomainNavBarHandle`, and `SubdomainNavBarMenuLabels` are exported from `@primer/react-brand`.
|
|
191
|
+
|
|
192
|
+
### Menu labels
|
|
193
|
+
|
|
194
|
+
| Field | Type | English default | Purpose |
|
|
195
|
+
| :------------------ | :------- | :-------------- | :----------------------------------------------------------- |
|
|
196
|
+
| `menuLabel` | `string` | `Menu` | Visible and accessible label while the narrow menu is closed |
|
|
197
|
+
| `closeLabel` | `string` | `Close` | Visible and accessible label while the narrow menu is open |
|
|
198
|
+
| `overflowMenuLabel` | `string` | `More` | Visible and accessible label for the desktop overflow menu |
|
|
199
|
+
|
|
200
|
+
### SubdomainNavBar.Search
|
|
201
|
+
|
|
202
|
+
| Name | Type | Default | Description |
|
|
203
|
+
| :----------------- | :----------------------------------------------- | :--------------- | :-------------------------------------------------------------------- |
|
|
204
|
+
| `onSubmit` | `(event: FormEvent<HTMLFormElement>) => void` | | Required search form submit handler |
|
|
205
|
+
| `onChange` | `(event: ChangeEvent<HTMLInputElement>) => void` | | Required search input change handler |
|
|
206
|
+
| `placeholder` | `string` | `Search {title}` | Text shown in the input trigger and opened search input |
|
|
207
|
+
| `shortcutLabel` | `string` | Shortcut value | Visible input-trigger hint; pass an empty string to hide it |
|
|
208
|
+
| `keyboardShortcut` | `string \| false` | | Optional global key or modifier combination that opens search |
|
|
209
|
+
| `labels` | `Partial<SubdomainNavBarSearchLabels>` | English labels | Overrides visible and accessible search text and formatting functions |
|
|
210
|
+
| `searchResults` | `SubdomainNavBarSearchResults` | | Flat or explicitly grouped results |
|
|
211
|
+
| `searchTerm` | `string` | | Current query used in result headings and accessible labels |
|
|
212
|
+
| `className` | `string` | | Sets a custom class on the search trigger container |
|
|
213
|
+
| `ref` | `React.Ref<HTMLInputElement>` | | Ref to the input inside the opened search dialog |
|
|
214
|
+
|
|
215
|
+
`SubdomainNavBarSearchProps` and `SubdomainNavBarSearchLabels` are exported from `@primer/react-brand`.
|
|
216
|
+
|
|
217
|
+
### Search labels
|
|
218
|
+
|
|
219
|
+
| Field | Type | English default | Purpose |
|
|
220
|
+
| :---------------------- | :-------------------------------- | :---------------------------- | :------------------------------------------------------- |
|
|
221
|
+
| `searchLabel` | `string` | `Search` | Accessible label for the search input |
|
|
222
|
+
| `closeLabel` | `string` | `Close` | Visible and accessible close action |
|
|
223
|
+
| `resultsLabel` | `string` | `Results` | Accessible label for an untitled result group |
|
|
224
|
+
| `searchResultsLabel` | `string` | `Search results` | Accessible label for grouped results without a query |
|
|
225
|
+
| `formatSearchWithTitle` | `(title: string) => string` | `Search ${title}` | Formats the default placeholder and dialog label |
|
|
226
|
+
| `formatSearchTrigger` | `(placeholder: string) => string` | `${placeholder} search` | Formats the responsive search trigger's accessible label |
|
|
227
|
+
| `formatResultsHeading` | `(searchTerm: string) => string` | `Results for “${searchTerm}”` | Formats the visible heading for ungrouped results |
|
|
228
|
+
| `formatResultsLabel` | `(searchTerm: string) => string` | `Results for ${searchTerm}` | Formats the accessible label for grouped results |
|
|
229
|
+
| `formatSuggestions` | `(count: number) => string` | `${count} suggestions.` | Formats the polite live-region result-count announcement |
|
|
230
|
+
|
|
231
|
+
### Search result types
|
|
232
|
+
|
|
233
|
+
`SubdomainNavBarSearchResultProps`, `SubdomainNavBarSearchResultGroupProps`, and `SubdomainNavBarSearchResults` are exported from `@primer/react-brand`.
|
|
234
|
+
|
|
235
|
+
#### `SubdomainNavBarSearchResultProps`
|
|
236
|
+
|
|
237
|
+
| Field | Type | Required | Description |
|
|
238
|
+
| :------------ | :-------- | :------: | :----------------------------------------------------------------------- |
|
|
239
|
+
| `title` | `string` | Yes | Linked result title |
|
|
240
|
+
| `description` | `string` | Yes | Result summary |
|
|
241
|
+
| `url` | `string` | Yes | Link destination |
|
|
242
|
+
| `date` | `string` | Yes | Displayed date string; format it for the user's locale before passing it |
|
|
243
|
+
| `category` | `string` | | Optional metadata displayed after the date |
|
|
244
|
+
| `group` | `string` | | Groups flat results under a shared heading |
|
|
245
|
+
| `isExternal` | `boolean` | | Shows an external-link indicator for grouped results |
|
|
246
|
+
|
|
247
|
+
#### `SubdomainNavBarSearchResultGroupProps`
|
|
248
|
+
|
|
249
|
+
| Field | Type | Required | Description |
|
|
250
|
+
| :-------- | :----------------------------------- | :------: | :-------------------------------- |
|
|
251
|
+
| `title` | `string` | Yes | Visible and accessible group name |
|
|
252
|
+
| `results` | `SubdomainNavBarSearchResultProps[]` | Yes | Results in the group |
|
|
122
253
|
|
|
123
254
|
### SubdomainNavBar.Link `Required`
|
|
124
255
|
|
|
125
|
-
`SubdomainNavBar.Link`
|
|
256
|
+
`SubdomainNavBar.Link` renders an anchor link.
|
|
126
257
|
|
|
127
|
-
| Name | Type | Default | Description
|
|
128
|
-
| :----------- | :---------------- | :-----: |
|
|
129
|
-
| `children` | `
|
|
130
|
-
| `className` | `string` | | Applies a custom class
|
|
131
|
-
| `href` | `string` | | Destination path for the anchor element
|
|
132
|
-
| `
|
|
133
|
-
| `ref` | `React.RefObject` | | Forward a Ref to the underlying DOM node |
|
|
134
|
-
| `isExternal` | `boolean` | `false` | When true, renders a external link icon after to the link |
|
|
258
|
+
| Name | Type | Default | Description |
|
|
259
|
+
| :----------- | :---------------- | :-----: | :------------------------------------------------------- |
|
|
260
|
+
| `children` | `React.ReactNode` | | Link content |
|
|
261
|
+
| `className` | `string` | | Applies a custom class |
|
|
262
|
+
| `href` | `string` | | Destination path for the anchor element |
|
|
263
|
+
| `isExternal` | `boolean` | `false` | Renders an external-link icon after the link when `true` |
|
|
135
264
|
|
|
136
|
-
Additional props
|
|
265
|
+
Additional props are passed to the wrapping `<li>` element. [See MDN for accepted list item attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attributes).
|
package/docs/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Primer Brand docs (v0.
|
|
1
|
+
# Primer Brand docs (v0.75.0-rc.96de7cef)
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@primer/react-brand@0.
|
|
3
|
+
These docs are bundled with `@primer/react-brand@0.75.0-rc.96de7cef` 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.
|
|
@@ -3,6 +3,7 @@ import type { BaseProps } from '../../component-helpers';
|
|
|
3
3
|
export type HeroLabelProps = Omit<TextProps, 'as' | 'ref' | 'animate'> & Omit<BaseProps<HTMLSpanElement>, 'animate'> & {
|
|
4
4
|
animate?: boolean;
|
|
5
5
|
animationDelay?: number;
|
|
6
|
+
initialText?: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const HeroLabel: import("react").ForwardRefExoticComponent<Omit<HeroLabelProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
9
|
//# sourceMappingURL=HeroLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroLabel.d.ts","sourceRoot":"","sources":["../../../src/Hero/sub-components/HeroLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAA;AACpC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAMtD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC,GACpE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,GAAG;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"HeroLabel.d.ts","sourceRoot":"","sources":["../../../src/Hero/sub-components/HeroLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAA;AACpC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAMtD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC,GACpE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,GAAG;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAEH,eAAO,MAAM,SAAS,yHAgCrB,CAAA"}
|
|
@@ -5,16 +5,17 @@ import r from "../Hero.module.js";
|
|
|
5
5
|
import { forwardRef as i } from "react";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Hero/sub-components/HeroLabel.tsx
|
|
8
|
-
var o = i(({ children: i, className: o, variant: s = "muted", animate: c = !1, animationDelay: l = 1e3,
|
|
9
|
-
let { variant:
|
|
8
|
+
var o = i(({ children: i, className: o, variant: s = "muted", animate: c = !1, animationDelay: l = 1e3, initialText: u, ...d }, f) => {
|
|
9
|
+
let { variant: p, enableAnimation: m } = t(), h = p === "gridline" || p === "gridline-expressive", g = m || c, _ = h && m || c;
|
|
10
10
|
return /* @__PURE__ */ a("span", {
|
|
11
|
-
ref:
|
|
11
|
+
ref: f,
|
|
12
12
|
className: e(r["Hero-label"], o),
|
|
13
|
-
...
|
|
13
|
+
...d,
|
|
14
14
|
children: /* @__PURE__ */ a(n, {
|
|
15
15
|
variant: s,
|
|
16
|
-
animate:
|
|
17
|
-
delay:
|
|
16
|
+
animate: g,
|
|
17
|
+
delay: _ ? l : 0,
|
|
18
|
+
initialText: u,
|
|
18
19
|
children: i
|
|
19
20
|
})
|
|
20
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroLabel.js","names":[],"sources":["../../../src/Hero/sub-components/HeroLabel.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\nimport {TextCursorAnimation} from '../../TextCursorAnimation'\n\nimport styles from '../Hero.module.css'\nimport {useHeroContext} from '../HeroContext'\n\nexport type HeroLabelProps = Omit<TextProps, 'as' | 'ref' | 'animate'> &\n Omit<BaseProps<HTMLSpanElement>, 'animate'> & {\n animate?: boolean\n animationDelay?: number\n }\n\nexport const HeroLabel = forwardRef<HTMLSpanElement, HeroLabelProps>(\n (\n {\n children,\n className,\n variant = 'muted',\n animate = false,\n animationDelay = 1000,\n ...rest\n }: PropsWithChildren<HeroLabelProps>,\n ref,\n ) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n const shouldAnimate = enableAnimation || animate\n const shouldHaveDelay = (isGridlineVariant && enableAnimation) || animate\n\n return (\n <span ref={ref} className={clsx(styles['Hero-label'], className)} {...rest}>\n <TextCursorAnimation
|
|
1
|
+
{"version":3,"file":"HeroLabel.js","names":[],"sources":["../../../src/Hero/sub-components/HeroLabel.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\nimport {TextCursorAnimation} from '../../TextCursorAnimation'\n\nimport styles from '../Hero.module.css'\nimport {useHeroContext} from '../HeroContext'\n\nexport type HeroLabelProps = Omit<TextProps, 'as' | 'ref' | 'animate'> &\n Omit<BaseProps<HTMLSpanElement>, 'animate'> & {\n animate?: boolean\n animationDelay?: number\n initialText?: string\n }\n\nexport const HeroLabel = forwardRef<HTMLSpanElement, HeroLabelProps>(\n (\n {\n children,\n className,\n variant = 'muted',\n animate = false,\n animationDelay = 1000,\n initialText,\n ...rest\n }: PropsWithChildren<HeroLabelProps>,\n ref,\n ) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n const shouldAnimate = enableAnimation || animate\n const shouldHaveDelay = (isGridlineVariant && enableAnimation) || animate\n\n return (\n <span ref={ref} className={clsx(styles['Hero-label'], className)} {...rest}>\n <TextCursorAnimation\n variant={variant}\n animate={shouldAnimate}\n delay={shouldHaveDelay ? animationDelay : 0}\n initialText={initialText}\n >\n {children}\n </TextCursorAnimation>\n </span>\n )\n },\n)\n"],"mappings":";;;;;;;AAgBA,IAAa,IAAY,GAErB,EACE,aACA,cACA,aAAU,SACV,aAAU,IACV,oBAAiB,KACjB,gBACA,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAa,uBAAmB,GAAgB,EAC1D,IAAoB,MAAgB,cAAc,MAAgB,uBAElE,IAAgB,KAAmB,GACnC,IAAmB,KAAqB,KAAoB;AAElE,QACE,kBAAC,QAAD;EAAW;EAAK,WAAW,EAAK,EAAO,eAAe,EAAU;EAAE,GAAI;YACpE,kBAAC,GAAD;GACW;GACT,SAAS;GACT,OAAO,IAAkB,IAAiB;GAC7B;GAEZ;GACmB,CAAA;EACjB,CAAA;EAGZ"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { BaseProps } from '../component-helpers';
|
|
3
|
-
type NavigationVisibilityObserverProps = PropsWithChildren<BaseProps<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement
|
|
3
|
+
type NavigationVisibilityObserverProps = PropsWithChildren<BaseProps<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement> & {
|
|
4
|
+
overflowMenuLabel: string;
|
|
5
|
+
}>;
|
|
4
6
|
export declare const NavigationVisbilityObserver: React.ForwardRefExoticComponent<Omit<NavigationVisibilityObserverProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
5
7
|
export {};
|
|
6
8
|
//# sourceMappingURL=NavigationVisbilityObserver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationVisbilityObserver.d.ts","sourceRoot":"","sources":["../../src/SubdomainNavBar/NavigationVisbilityObserver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"NavigationVisbilityObserver.d.ts","sourceRoot":"","sources":["../../src/SubdomainNavBar/NavigationVisbilityObserver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAuD,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAIpG,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAa9C,KAAK,iCAAiC,GAAG,iBAAiB,CACxD,SAAS,CAAC,gBAAgB,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,GAAG;IACvC,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CACJ,CAAA;AAED,eAAO,MAAM,2BAA2B,yHAmIvC,CAAA"}
|