@primer/react-brand 0.59.2-rc.a1e5c66f → 0.60.0-rc.838d1aed
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/lib/ActionMenu/ActionMenu.d.ts +5 -64
- package/lib/AnchorNav/useExpandedMenu.d.ts +1 -1
- package/lib/ButtonGroup/ButtonGroup.d.ts +2 -3
- package/lib/ComparisonTable/ComparisonTable.d.ts +2 -2
- package/lib/FAQ/FAQGroup.d.ts +2 -2
- package/lib/Grid/Grid.d.ts +1 -0
- package/lib/IDE/IDE.d.ts +2 -2
- package/lib/Pillar/Pillar.d.ts +5 -3
- package/lib/SubNav/SubNav.d.ts +2 -6
- package/lib/SubNav/useContainsFocus.d.ts +1 -1
- package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +5 -5
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +4 -3
- package/lib/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
- package/lib/Tabs/Tabs.d.ts +2 -2
- package/lib/Tooltip/Tooltip.d.ts +1 -1
- package/lib/VideoPlayer/hooks/useVideo.d.ts +1 -1
- package/lib/VideoPlayer/hooks/useVideoKeypressHandlers.d.ts +1 -1
- package/lib/VideoPlayer/hooks/useVideoResizeObserver.d.ts +1 -1
- package/lib/animation/Animate/Animate.d.ts +1 -1
- package/lib/animation/TextRevealAnimation/TextRevealAnimation.d.ts +2 -2
- package/lib/animation/TextRevealAnimation/useTextRevealAnimationLines.d.ts +3 -2
- package/lib/css/main.css +65 -65
- 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/breadcrumbs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pagination/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pillar/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/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/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pillar/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/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/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pillar/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/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/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pillar/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/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/tooltip/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/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/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/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/useAnchoredPosition.d.ts +4 -4
- package/lib/hooks/useFocusTrap.d.ts +4 -4
- package/lib/hooks/useOnClickOutside.d.ts +1 -1
- package/lib/hooks/useResizeObserver.d.ts +1 -1
- package/lib/hooks/useTabs.d.ts +2 -2
- package/lib/index.js +1 -2
- package/lib/utils/isFragmentElement.d.ts +4 -0
- package/package.json +7 -5
- package/lib/Accordion/Accordion.visual.spec.d.ts +0 -1
- package/lib/ActionMenu/ActionMenu.visual.spec.d.ts +0 -1
- package/lib/AnchorNav/AnchorNav.visual.spec.d.ts +0 -1
- package/lib/Avatar/Avatar.visual.spec.d.ts +0 -1
- package/lib/Bento/Bento.visual.spec.d.ts +0 -1
- package/lib/Box/Box.visual.spec.d.ts +0 -1
- package/lib/Breadcrumbs/Breadcrumbs.visual.spec.d.ts +0 -1
- package/lib/BreakoutBanner/BreakoutBanner.visual.spec.d.ts +0 -1
- package/lib/Button/Button.visual.spec.d.ts +0 -1
- package/lib/ButtonGroup/ButtonGroup.visual.spec.d.ts +0 -1
- package/lib/CTABanner/CTABanner.visual.spec.d.ts +0 -1
- package/lib/CTAForm/CTAForm.visual.spec.d.ts +0 -1
- package/lib/Card/Card.visual.spec.d.ts +0 -1
- package/lib/ComparisonTable/ComparisonTable.visual.spec.d.ts +0 -1
- package/lib/ExpandableArrow/ExpandableArrow.visual.spec.d.ts +0 -1
- package/lib/EyebrowBanner/EyebrowBanner.visual.spec.d.ts +0 -1
- package/lib/FAQ/FAQ.visual.spec.d.ts +0 -1
- package/lib/Footnotes/Footnotes.visual.spec.d.ts +0 -1
- package/lib/Grid/Grid.visual.spec.d.ts +0 -1
- package/lib/Heading/Heading.visual.spec.d.ts +0 -1
- package/lib/Hero/Hero.visual.spec.d.ts +0 -1
- package/lib/IDE/IDE.visual.spec.d.ts +0 -1
- package/lib/Icon/Icon.visual.spec.d.ts +0 -1
- package/lib/Image/Image.visual.spec.d.ts +0 -1
- package/lib/InlineLink/InlineLink.visual.spec.d.ts +0 -1
- package/lib/Label/Label.visual.spec.d.ts +0 -1
- package/lib/Link/Link.visual.spec.d.ts +0 -1
- package/lib/LogoSuite/LogoSuite.visual.spec.d.ts +0 -1
- package/lib/MinimalFooter/MinimalFooter.visual.spec.d.ts +0 -1
- package/lib/MonaSans/MonaSans.visual.spec.d.ts +0 -1
- package/lib/Pagination/Pagination.visual.spec.d.ts +0 -1
- package/lib/Pillar/Pillar.visual.spec.d.ts +0 -1
- package/lib/PricingOptions/PricingOptions.visual.spec.d.ts +0 -1
- package/lib/Prose/Prose.visual.spec.d.ts +0 -1
- package/lib/Section/Section.visual.spec.d.ts +0 -1
- package/lib/SectionIntro/SectionIntro.visual.spec.d.ts +0 -1
- package/lib/SectionIntroStacked/SectionIntroStacked.visual.spec.d.ts +0 -1
- package/lib/Stack/Stack.visual.spec.d.ts +0 -1
- package/lib/Statistic/Statistic.visual.spec.d.ts +0 -1
- package/lib/SubNav/SubNav.visual.spec.d.ts +0 -1
- package/lib/SubdomainNavBar/SubdomainNavBar.visual.spec.d.ts +0 -1
- package/lib/Tabs/Tabs.visual.spec.d.ts +0 -1
- package/lib/Testimonial/Testimonial.visual.spec.d.ts +0 -1
- package/lib/Text/Text.visual.spec.d.ts +0 -1
- package/lib/ThemeProvider/ThemeProvider.visual.spec.d.ts +0 -1
- package/lib/ThemeProvider/useTheme.test.d.ts +0 -1
- package/lib/Timeline/Timeline.visual.spec.d.ts +0 -1
- package/lib/Tooltip/Tooltip.visual.spec.d.ts +0 -1
- package/lib/VideoPlayer/VideoPlayer.visual.spec.d.ts +0 -1
- package/lib/animation/TextRevealAnimation/TextRevealAnimation.visual.spec.d.ts +0 -1
- package/lib/animation/animation.visual.spec.d.ts +0 -1
- package/lib/animation/useAnimation.test.d.ts +0 -1
- package/lib/forms/Checkbox/Checkbox.visual.spec.d.ts +0 -1
- package/lib/forms/CheckboxGroup/CheckboxGroup.visual.spec.d.ts +0 -1
- package/lib/forms/FormControl/FormControl.visual.spec.d.ts +0 -1
- package/lib/forms/Radio/Radio.visual.spec.d.ts +0 -1
- package/lib/forms/RadioGroup/RadioGroup.visual.spec.d.ts +0 -1
- package/lib/forms/Select/Select.visual.spec.d.ts +0 -1
- package/lib/forms/TextInput/TextInput.visual.spec.d.ts +0 -1
- package/lib/forms/Textarea/Textarea.visual.spec.d.ts +0 -1
- package/lib/forms/forms.visual.spec.d.ts +0 -1
- package/lib/index.js.LICENSE.txt +0 -8
- package/lib/list/OrderedList/OrderedList.visual.spec.d.ts +0 -1
- package/lib/list/UnorderedList/UnorderedList.visual.spec.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.visual.spec.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.visual.spec.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.visual.spec.d.ts +0 -1
- package/lib/recipes/FlexTemplate/FlexSection/FlexSection.visual.spec.d.ts +0 -1
- package/lib/recipes/FlexTemplate/FlexTemplate.visual.spec.d.ts +0 -1
- package/lib/recipes/FlexTemplate/examples/examples.visual.spec.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/CategoryPage/CategoryPage.visual.spec.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/SolutionPage/Industry/Industry.visual.spec.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/SolutionPage/Size/Size.visual.spec.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/SolutionPage/UseCase/UseCase.visual.spec.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.visual.spec.d.ts +0 -1
- package/lib/recipes/seo/Article/Article.visual.spec.d.ts +0 -1
- package/lib/recipes/seo/Category/Category.visual.spec.d.ts +0 -1
- package/lib/river/River/River.visual.spec.d.ts +0 -1
- package/lib/river/RiverAccordion/RiverAccordion.visual.spec.d.ts +0 -1
- package/lib/river/RiverBreakout/RiverBreakout.visual.spec.d.ts +0 -1
- package/lib/river/RiverStoryScroll/RiverStoryScroll.visual.spec.d.ts +0 -1
- package/lib/test-utils/fixtures/data.d.ts +0 -1
- package/lib/test-utils/mocks/match-media-mock.d.ts +0 -0
- package/lib/test-utils/mocks/popover-polyfill.d.ts +0 -0
- package/lib/test-utils/setupTests.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren,
|
|
1
|
+
import React, { PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
import { ButtonProps } from '../';
|
|
3
3
|
import { type Icon } from '@primer/octicons-react';
|
|
4
4
|
import { type PositionSettings } from '@primer/behaviors';
|
|
@@ -62,15 +62,10 @@ type ActionMenuContextType = {
|
|
|
62
62
|
};
|
|
63
63
|
export declare const useActionMenuContext: () => ActionMenuContextType;
|
|
64
64
|
export declare const ActionMenuProvider: React.FC<ActionMenuProps>;
|
|
65
|
-
type ActionMenuButtonProps = PropsWithChildren<
|
|
66
|
-
id?: string;
|
|
65
|
+
type ActionMenuButtonProps = PropsWithChildren<BaseProps<HTMLButtonElement> & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, 'id' | 'disabled' | 'onClick'>> & {
|
|
67
66
|
as?: ButtonProps<'a'>['as'];
|
|
68
67
|
href?: ButtonProps<'a'>['href'];
|
|
69
|
-
ref?: React.RefObject<HTMLButtonElement>;
|
|
70
|
-
className?: string;
|
|
71
68
|
menuOpen?: boolean;
|
|
72
|
-
disabled?: boolean;
|
|
73
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
74
69
|
'data-testid'?: string;
|
|
75
70
|
size?: ActionMenuSizes;
|
|
76
71
|
_mode?: ActionMenuButtonModes;
|
|
@@ -92,11 +87,9 @@ type ActionMenuItemDefaultProps = ActionMenuItemBaseProps & {
|
|
|
92
87
|
value?: string;
|
|
93
88
|
selected?: boolean;
|
|
94
89
|
} & Omit<React.HTMLProps<HTMLLIElement>, keyof ActionMenuItemBaseProps | 'as'>;
|
|
95
|
-
type ActionMenuOverlayProps = PropsWithChildren<
|
|
90
|
+
type ActionMenuOverlayProps = PropsWithChildren<BaseProps<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement>> & {
|
|
96
91
|
'aria-label': string;
|
|
97
92
|
id?: string;
|
|
98
|
-
ref?: React.RefObject<HTMLUListElement>;
|
|
99
|
-
className?: string;
|
|
100
93
|
'data-testid'?: string;
|
|
101
94
|
menuOpen?: boolean;
|
|
102
95
|
style?: React.CSSProperties;
|
|
@@ -151,61 +144,9 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
151
144
|
} & BaseProps<HTMLDivElement>> & {
|
|
152
145
|
readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, size, menuSide, onSelect, mode, }: ActionMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
153
146
|
} & {
|
|
154
|
-
Button: React.ForwardRefExoticComponent<
|
|
155
|
-
children?: React.ReactNode | undefined;
|
|
156
|
-
} & {
|
|
157
|
-
id?: string;
|
|
158
|
-
as?: ButtonProps<"a">["as"];
|
|
159
|
-
href?: ButtonProps<"a">["href"];
|
|
160
|
-
ref?: React.RefObject<HTMLButtonElement>;
|
|
161
|
-
className?: string;
|
|
162
|
-
menuOpen?: boolean;
|
|
163
|
-
disabled?: boolean;
|
|
164
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
165
|
-
'data-testid'?: string;
|
|
166
|
-
size?: ActionMenuSizes;
|
|
167
|
-
_mode?: ActionMenuButtonModes;
|
|
168
|
-
variant?: ButtonProps<"a">["variant"];
|
|
169
|
-
leadingVisual?: ButtonProps<"a">["leadingVisual"];
|
|
170
|
-
}, "ref"> | Omit<React.RefObject<HTMLButtonElement> & {
|
|
171
|
-
children?: React.ReactNode | undefined;
|
|
172
|
-
} & {
|
|
173
|
-
id?: string;
|
|
174
|
-
as?: ButtonProps<"a">["as"];
|
|
175
|
-
href?: ButtonProps<"a">["href"];
|
|
176
|
-
ref?: React.RefObject<HTMLButtonElement>;
|
|
177
|
-
className?: string;
|
|
178
|
-
menuOpen?: boolean;
|
|
179
|
-
disabled?: boolean;
|
|
180
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
181
|
-
'data-testid'?: string;
|
|
182
|
-
size?: ActionMenuSizes;
|
|
183
|
-
_mode?: ActionMenuButtonModes;
|
|
184
|
-
variant?: ButtonProps<"a">["variant"];
|
|
185
|
-
leadingVisual?: ButtonProps<"a">["leadingVisual"];
|
|
186
|
-
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
147
|
+
Button: React.ForwardRefExoticComponent<Omit<ActionMenuButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
187
148
|
Item: ({ as, children, className, disabled, handler, selected, type, value, onClick, onKeyDown, leadingVisual: LeadingVisual, ...props }: ActionMenuItemAnchorProps | ActionMenuItemDefaultProps) => import("react/jsx-runtime").JSX.Element;
|
|
188
|
-
Overlay: React.ForwardRefExoticComponent<
|
|
189
|
-
children?: React.ReactNode | undefined;
|
|
190
|
-
} & {
|
|
191
|
-
'aria-label': string;
|
|
192
|
-
id?: string;
|
|
193
|
-
ref?: React.RefObject<HTMLUListElement>;
|
|
194
|
-
className?: string;
|
|
195
|
-
'data-testid'?: string;
|
|
196
|
-
menuOpen?: boolean;
|
|
197
|
-
style?: React.CSSProperties;
|
|
198
|
-
}, "ref"> | Omit<React.RefObject<HTMLUListElement> & {
|
|
199
|
-
children?: React.ReactNode | undefined;
|
|
200
|
-
} & {
|
|
201
|
-
'aria-label': string;
|
|
202
|
-
id?: string;
|
|
203
|
-
ref?: React.RefObject<HTMLUListElement>;
|
|
204
|
-
className?: string;
|
|
205
|
-
'data-testid'?: string;
|
|
206
|
-
menuOpen?: boolean;
|
|
207
|
-
style?: React.CSSProperties;
|
|
208
|
-
}, "ref">) & React.RefAttributes<HTMLUListElement>>;
|
|
149
|
+
Overlay: React.ForwardRefExoticComponent<Omit<ActionMenuOverlayProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
209
150
|
testIds: {
|
|
210
151
|
root: string;
|
|
211
152
|
readonly button: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const useExpandedMenu: (open: boolean, linkContainerRef: React.RefObject<HTMLElement>, innerContainerRef: React.RefObject<HTMLElement>, isNarrow: boolean, closeMenuCallback: () => void) => void;
|
|
2
|
+
export declare const useExpandedMenu: (open: boolean, linkContainerRef: React.RefObject<HTMLElement | null>, innerContainerRef: React.RefObject<HTMLElement | null>, isNarrow: boolean, closeMenuCallback: () => void) => void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BaseProps } from '../component-helpers';
|
|
3
3
|
import { ButtonProps } from '../Button';
|
|
4
|
-
type PrimerBrandButtonType = React.ReactElement<ButtonProps<React.ElementType<'button' | 'a'>>>;
|
|
4
|
+
export type PrimerBrandButtonType = React.ReactElement<ButtonProps<React.ElementType<'button' | 'a'>>>;
|
|
5
5
|
export type ButtonGroupProps = BaseProps<HTMLDivElement> & {
|
|
6
6
|
children: PrimerBrandButtonType[] | PrimerBrandButtonType;
|
|
7
7
|
buttonSize?: ButtonProps<'button' | 'a'>['size'];
|
|
8
|
-
buttonsAs?:
|
|
8
|
+
buttonsAs?: 'button' | 'a';
|
|
9
9
|
};
|
|
10
10
|
export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export {};
|
|
@@ -12,10 +12,10 @@ export type ComparisonTableProps<C extends React.ElementType> = BaseProps<C> & {
|
|
|
12
12
|
featuredColumn?: number;
|
|
13
13
|
} & React.ComponentPropsWithoutRef<C>;
|
|
14
14
|
export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<ComparisonTableProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
type RowProps = {
|
|
15
|
+
type RowProps = React.HTMLAttributes<HTMLTableRowElement> & {
|
|
16
16
|
header?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export type CellProps = BaseProps<HTMLTableCellElement> & {
|
|
18
|
+
export type CellProps = BaseProps<HTMLTableCellElement> & React.HTMLAttributes<HTMLTableCellElement> & {
|
|
19
19
|
as?: 'td' | 'th';
|
|
20
20
|
};
|
|
21
21
|
export type FootnoteProps = BaseProps<HTMLParagraphElement>;
|
package/lib/FAQ/FAQGroup.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FAQSubheadingProps } from './';
|
|
3
3
|
/**
|
|
4
4
|
* Design tokens
|
|
@@ -10,7 +10,7 @@ declare function HeadingBase({ children, className, as, ...rest }: FAQSubheading
|
|
|
10
10
|
export type FAQGroupProps = React.PropsWithChildren<{
|
|
11
11
|
id?: string;
|
|
12
12
|
defaultSelectedIndex?: number;
|
|
13
|
-
tabAttributes?: (children:
|
|
13
|
+
tabAttributes?: (children: React.ReactNode, index: number) => Record<string, unknown>;
|
|
14
14
|
}>;
|
|
15
15
|
declare function FAQGroupBase({ children, id, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
/**
|
package/lib/Grid/Grid.d.ts
CHANGED
package/lib/IDE/IDE.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ export declare const IDE: React.NamedExoticComponent<{
|
|
|
147
147
|
readonly editorContent: string;
|
|
148
148
|
readonly editorTabs: string;
|
|
149
149
|
};
|
|
150
|
-
Chat: React.
|
|
151
|
-
Editor: React.
|
|
150
|
+
Chat: React.NamedExoticComponent<Omit<IDEChatProps, "ref"> & React.RefAttributes<IDEChatHandle>>;
|
|
151
|
+
Editor: React.NamedExoticComponent<Omit<IDEEditorProps, "ref"> & React.RefAttributes<IDEEditorHandle>>;
|
|
152
152
|
};
|
|
153
153
|
export {};
|
package/lib/Pillar/Pillar.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren, type JSX } from 'react';
|
|
2
2
|
import { HeadingProps, type ImageProps, LinkProps } from '..';
|
|
3
3
|
import type { BaseProps } from '../component-helpers';
|
|
4
4
|
/**
|
|
5
5
|
* Design tokens
|
|
6
6
|
*/
|
|
7
7
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css';
|
|
8
|
-
import type { Icon as IconProps } from '@primer/octicons-react';
|
|
9
8
|
export declare const PillarIconColors: readonly ["default", "blue", "coral", "green", "gray", "indigo", "lemon", "lime", "orange", "pink", "purple", "red", "teal", "yellow"];
|
|
10
9
|
export declare const defaultPillarIconColor: "default";
|
|
11
10
|
export type PillarProps<C extends keyof JSX.IntrinsicElements = 'div'> = React.HTMLAttributes<C> & {
|
|
@@ -24,8 +23,11 @@ export type PillarProps<C extends keyof JSX.IntrinsicElements = 'div'> = React.H
|
|
|
24
23
|
} & (C extends 'article' ? PropsWithChildren<BaseProps<HTMLElement>> : PropsWithChildren<BaseProps<HTMLDivElement>>);
|
|
25
24
|
type PillarImageProps = ImageProps;
|
|
26
25
|
declare function PillarImage({ className, ...rest }: PillarImageProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
type IconComponent = React.ComponentType<{
|
|
27
|
+
size?: number;
|
|
28
|
+
}>;
|
|
27
29
|
type PillarIconProps = BaseProps<HTMLSpanElement> & {
|
|
28
|
-
icon: React.ReactNode |
|
|
30
|
+
icon: React.ReactNode | IconComponent;
|
|
29
31
|
color?: (typeof PillarIconColors)[number];
|
|
30
32
|
};
|
|
31
33
|
declare function PillarIcon({ icon: Icon, className, color, ...rest }: PillarIconProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/SubNav/SubNav.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/compone
|
|
|
9
9
|
export declare const SubNavSubMenuVariants: readonly ["dropdown", "anchor"];
|
|
10
10
|
type SubMenuVariants = (typeof SubNavSubMenuVariants)[number];
|
|
11
11
|
type SubNavContextType = {
|
|
12
|
-
portalRef: RefObject<HTMLDivElement>;
|
|
12
|
+
portalRef: RefObject<HTMLDivElement | null>;
|
|
13
13
|
};
|
|
14
14
|
export declare const useSubNavContext: () => SubNavContextType;
|
|
15
15
|
export type SubNavProps = {
|
|
@@ -58,11 +58,7 @@ declare function ActionBase({ children, href, variant, size, ...rest }: SubNavAc
|
|
|
58
58
|
* Use SubNav to display a secondary navigation beneath a primary header.
|
|
59
59
|
* @see https://primer.style/brand/components/SubNav
|
|
60
60
|
*/
|
|
61
|
-
export declare const SubNav: React.NamedExoticComponent<Omit<
|
|
62
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
63
|
-
}> & {
|
|
64
|
-
readonly type: React.ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
-
} & {
|
|
61
|
+
export declare const SubNav: React.NamedExoticComponent<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
66
62
|
Heading: ({ href, children, className, "data-testid": testID, ...props }: HeadingBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
63
|
SubHeading: ({ href, children, className, "data-testid": testID, ...props }: SubHeadingBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
64
|
Link: React.ForwardRefExoticComponent<Omit<LinkBaseProps, "ref"> & React.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
@@ -6,4 +6,4 @@ import { type RefObject } from 'react';
|
|
|
6
6
|
* @type T The type of the container element.
|
|
7
7
|
* @returns The ref to be applied to the container element.
|
|
8
8
|
*/
|
|
9
|
-
export declare const useContainsFocus: <T extends HTMLElement>(containerRef?: RefObject<T>, onFocusChange?: (isFocussed: boolean) => void) => void;
|
|
9
|
+
export declare const useContainsFocus: <T extends HTMLElement>(containerRef?: RefObject<T | null>, onFocusChange?: (isFocussed: boolean) => void) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { BaseProps } from '../component-helpers';
|
|
3
|
+
type NavigationVisibilityObserverProps = PropsWithChildren<BaseProps<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement>>;
|
|
4
|
+
export declare const NavigationVisbilityObserver: React.ForwardRefExoticComponent<Omit<NavigationVisibilityObserverProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
5
|
+
export {};
|
|
@@ -8,7 +8,7 @@ export type SubdomainNavBarProps = {
|
|
|
8
8
|
* Valid child elements are `SubdomainNavBar.Link`, `SubdomainNavBar.PrimaryAction`,
|
|
9
9
|
* `SubdomainNavBar.SecondaryAction` and `SubdomainNavBar.Search`
|
|
10
10
|
*/
|
|
11
|
-
children?: React.ReactNode | React.ReactElement<
|
|
11
|
+
children?: React.ReactNode | React.ReactElement<SubdomainNavBarLinkProps> | React.ReactElement<SearchProps> | React.ReactElement<CTAActionProps>;
|
|
12
12
|
/**
|
|
13
13
|
* Forward a custom HTML class attribute
|
|
14
14
|
*/
|
|
@@ -39,11 +39,12 @@ export type SubdomainNavBarProps = {
|
|
|
39
39
|
onNarrowMenuToggle?: (isOpen: boolean) => void;
|
|
40
40
|
};
|
|
41
41
|
declare function Root({ children, className, fixed, fullWidth, logoHref, title, titleHref, onNarrowMenuToggle, ...rest }: SubdomainNavBarProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
type
|
|
42
|
+
export type SubdomainNavBarLinkProps = {
|
|
43
43
|
href: string;
|
|
44
44
|
isExternal?: boolean;
|
|
45
|
+
'data-navitemid'?: string;
|
|
45
46
|
} & React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
|
|
46
|
-
declare function Link({ href, className, children, isExternal, ...rest }: PropsWithChildren<
|
|
47
|
+
declare function Link({ href, className, children, isExternal, ...rest }: PropsWithChildren<SubdomainNavBarLinkProps>): import("react/jsx-runtime").JSX.Element;
|
|
47
48
|
export type SubdomainNavBarSearchResultProps = {
|
|
48
49
|
title: string;
|
|
49
50
|
description: string;
|
|
@@ -2,4 +2,4 @@ import { RefObject } from 'react';
|
|
|
2
2
|
export type VisibilityMap = {
|
|
3
3
|
[key: string]: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare function useVisibilityObserver(navigationRef: RefObject<HTMLUListElement>, children: any): VisibilityMap[];
|
|
5
|
+
export declare function useVisibilityObserver(navigationRef: RefObject<HTMLUListElement | null>, children: any): VisibilityMap[];
|
package/lib/Tabs/Tabs.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export type TabsItemProps = {
|
|
|
56
56
|
children: ReactNode;
|
|
57
57
|
className?: string;
|
|
58
58
|
isActive?: boolean;
|
|
59
|
-
variant?: 'default' | 'accent';
|
|
59
|
+
variant?: 'default' | 'accent' | 'underline';
|
|
60
60
|
/**
|
|
61
61
|
* ⚠️ WARNING: Setting a custom id will override the automatically generated ARIA attributes
|
|
62
62
|
* (aria-controls, aria-labelledby). You will need to manually implement proper accessibility
|
|
@@ -161,7 +161,7 @@ export declare const Tabs: React.ForwardRefExoticComponent<(Omit<{
|
|
|
161
161
|
children: ReactNode;
|
|
162
162
|
className?: string;
|
|
163
163
|
isActive?: boolean;
|
|
164
|
-
variant?: "default" | "accent";
|
|
164
|
+
variant?: "default" | "accent" | "underline";
|
|
165
165
|
/**
|
|
166
166
|
* ⚠️ WARNING: Setting a custom id will override the automatically generated ARIA attributes
|
|
167
167
|
* (aria-controls, aria-labelledby). You will need to manually implement proper accessibility
|
package/lib/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type TriggerPropsType = {
|
|
|
16
16
|
onFocus?: React.FocusEventHandler;
|
|
17
17
|
onMouseEnter?: React.MouseEventHandler;
|
|
18
18
|
onMouseLeave?: React.MouseEventHandler;
|
|
19
|
-
ref?: React.RefObject<HTMLElement>;
|
|
19
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
20
20
|
};
|
|
21
21
|
export declare const TooltipContext: React.Context<{
|
|
22
22
|
tooltipId?: string;
|
|
@@ -26,7 +26,7 @@ export type UseVideoContext = VideoState & {
|
|
|
26
26
|
toggleFullScreen: () => void;
|
|
27
27
|
setDuration: (duration: number) => void;
|
|
28
28
|
isFullScreen: boolean;
|
|
29
|
-
fullscreenRef: RefObject<HTMLDivElement>;
|
|
29
|
+
fullscreenRef: RefObject<HTMLDivElement | null>;
|
|
30
30
|
};
|
|
31
31
|
export declare const VideoContext: React.Context<UseVideoContext | null>;
|
|
32
32
|
export declare const useVideo: () => UseVideoContext;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
2
|
export type KeypressHandler = [KeyboardEvent['key'], (e: KeyboardEvent) => void];
|
|
3
|
-
export declare const useVideoKeypressHandlers: (videoWrapperRef: RefObject<HTMLElement>) => void;
|
|
3
|
+
export declare const useVideoKeypressHandlers: (videoWrapperRef: RefObject<HTMLElement | null>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren, type JSX } from 'react';
|
|
2
2
|
import type { BaseProps } from '../../component-helpers';
|
|
3
3
|
export type BoxProps<T extends keyof JSX.IntrinsicElements = 'div'> = React.HTMLAttributes<T> & {
|
|
4
4
|
as?: T | 'div' | 'span' | 'section';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '../../component-helpers';
|
|
3
3
|
export type TextRevealAnimationProps = BaseProps<HTMLSpanElement> & Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> & {
|
|
4
|
-
children:
|
|
4
|
+
children: string;
|
|
5
5
|
};
|
|
6
|
-
export declare
|
|
6
|
+
export declare const TextRevealAnimation: React.ForwardRefExoticComponent<Omit<TextRevealAnimationProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export declare const useTextRevealAnimationLines: (text?: string, providedRef?: RefObject<HTMLElement | null>) => {
|
|
3
|
+
ref: RefObject<HTMLElement | null>;
|
|
3
4
|
lines: string[] | undefined;
|
|
4
5
|
};
|