@primer/react-brand 0.36.0-rc.f6b4a088 → 0.36.1-rc.1b562c90
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 +41 -41
- package/lib/BreakoutBanner/BreakoutBanner.d.ts +133 -0
- package/lib/BreakoutBanner/BreakoutBanner.visual.spec.d.ts +1 -0
- package/lib/BreakoutBanner/index.d.ts +1 -0
- package/lib/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/lib/CTABanner/CTABanner.d.ts +26 -26
- package/lib/ComparisonTable/ComparisonTable.d.ts +6 -6
- package/lib/ExpandableArrow/ExpandableArrow.d.ts +0 -1
- package/lib/FAQ/FAQ.d.ts +8 -8
- package/lib/Grid/Grid.d.ts +4 -4
- package/lib/Hero/Hero.d.ts +25 -25
- package/lib/IDE/IDE.d.ts +11 -11
- package/lib/LogoSuite/LogoSuite.d.ts +38 -38
- package/lib/MinimalFooter/MinimalFooter.d.ts +1 -1
- package/lib/Pagination/model.d.ts +0 -1
- package/lib/Section/Section.d.ts +65 -0
- package/lib/Section/Section.visual.spec.d.ts +1 -0
- package/lib/Section/index.d.ts +1 -0
- package/lib/Stack/Stack.d.ts +7 -7
- package/lib/SubNav/SubNav.d.ts +4 -4
- package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +0 -1
- package/lib/Testimonial/Testimonial.d.ts +1 -1
- package/lib/Tooltip/Tooltip.d.ts +3 -3
- package/lib/VideoPlayer/VideoPlayer.d.ts +1 -1
- package/lib/animation/useAnimation.d.ts +0 -1
- package/lib/component-helpers.d.ts +1 -1
- package/lib/css/main.css +385 -58
- 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/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/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 +27 -0
- 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/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/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/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/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 +151 -0
- 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/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/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/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 +9 -0
- 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/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/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/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 +8 -0
- 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/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/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/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 +22 -0
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +21 -0
- 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/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/forms/Checkbox/Checkbox.d.ts +6 -6
- package/lib/forms/Radio/Radio.d.ts +4 -4
- package/lib/forms/Select/Select.d.ts +4 -4
- package/lib/forms/TextInput/TextInput.d.ts +9 -9
- package/lib/forms/Textarea/Textarea.d.ts +7 -7
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/list/listContext.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +1 -2
- package/lib/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +0 -1
- package/lib/recipes/seo/Article/Article.d.ts +0 -1
- package/lib/recipes/seo/Article/useWrapLines.d.ts +0 -1
- package/lib/recipes/seo/Category/CategoryPage.d.ts +0 -1
- package/lib/river/River/River.d.ts +8 -8
- package/lib/river/RiverBreakout/RiverBreakout.d.ts +5 -5
- package/package.json +3 -2
|
@@ -5,7 +5,7 @@ import type { BaseProps } from '../component-helpers';
|
|
|
5
5
|
* Design tokens
|
|
6
6
|
*/
|
|
7
7
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css';
|
|
8
|
-
export declare const actionMenuOverlaySides:
|
|
8
|
+
export declare const actionMenuOverlaySides: PositionSettings["side"][];
|
|
9
9
|
export type ActionMenuSizes = 'small' | 'medium';
|
|
10
10
|
export type ActionMenuProps = {
|
|
11
11
|
/**
|
|
@@ -90,82 +90,82 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
90
90
|
/**
|
|
91
91
|
* Determines whether the ActionMenu is disabled
|
|
92
92
|
*/
|
|
93
|
-
disabled?: boolean
|
|
93
|
+
disabled?: boolean;
|
|
94
94
|
/**
|
|
95
95
|
* Determines whether the ActionMenu is open by default
|
|
96
96
|
*/
|
|
97
|
-
open?: boolean
|
|
97
|
+
open?: boolean;
|
|
98
98
|
/**
|
|
99
99
|
* Callback that is called when an item is selected.
|
|
100
100
|
* The value of the selected item is passed as an argument.
|
|
101
101
|
*/
|
|
102
|
-
onSelect?: (
|
|
102
|
+
onSelect?: (newValue: string) => void;
|
|
103
103
|
/**
|
|
104
104
|
* The selection variant of the ActionMenu.
|
|
105
105
|
* - `single`: Only one item can be selected at a time. Menu items as a menuitemradio.
|
|
106
106
|
* - `none`: No items can be selected. Menu items as a menuitem.
|
|
107
107
|
*/
|
|
108
|
-
selectionVariant?: "
|
|
108
|
+
selectionVariant?: "single" | "none";
|
|
109
109
|
/**
|
|
110
110
|
* Test id for the ActionMenu
|
|
111
111
|
*/
|
|
112
|
-
'data-testid'?: string
|
|
112
|
+
'data-testid'?: string;
|
|
113
113
|
/**
|
|
114
114
|
* Horizontal alignment of the menu relative to the bottom of the button
|
|
115
115
|
*/
|
|
116
|
-
menuAlignment?: "start" | "end"
|
|
116
|
+
menuAlignment?: "start" | "end";
|
|
117
117
|
/**
|
|
118
118
|
* Size configuratin of the ActionMenu
|
|
119
119
|
*/
|
|
120
|
-
size?: ActionMenuSizes
|
|
121
|
-
menuSide?:
|
|
120
|
+
size?: ActionMenuSizes;
|
|
121
|
+
menuSide?: PositionSettings["side"];
|
|
122
122
|
} & BaseProps<HTMLDivElement>> & {
|
|
123
123
|
readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, size, menuSide, onSelect, }: ActionMenuProps) => JSX.Element;
|
|
124
124
|
} & {
|
|
125
125
|
Button: React.ForwardRefExoticComponent<(Omit<((instance: HTMLButtonElement | null) => void) & {
|
|
126
|
-
children?: React.ReactNode;
|
|
126
|
+
children?: React.ReactNode | undefined;
|
|
127
127
|
} & {
|
|
128
|
-
id?: string
|
|
129
|
-
ref?: React.RefObject<HTMLButtonElement
|
|
130
|
-
className?: string
|
|
131
|
-
menuOpen?: boolean
|
|
132
|
-
disabled?: boolean
|
|
133
|
-
onClick?: (
|
|
134
|
-
'data-testid'?: string
|
|
135
|
-
size?: ActionMenuSizes
|
|
128
|
+
id?: string;
|
|
129
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
130
|
+
className?: string;
|
|
131
|
+
menuOpen?: boolean;
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
134
|
+
'data-testid'?: string;
|
|
135
|
+
size?: ActionMenuSizes;
|
|
136
136
|
}, "ref"> | Omit<React.RefObject<HTMLButtonElement> & {
|
|
137
|
-
children?: React.ReactNode;
|
|
137
|
+
children?: React.ReactNode | undefined;
|
|
138
138
|
} & {
|
|
139
|
-
id?: string
|
|
140
|
-
ref?: React.RefObject<HTMLButtonElement
|
|
141
|
-
className?: string
|
|
142
|
-
menuOpen?: boolean
|
|
143
|
-
disabled?: boolean
|
|
144
|
-
onClick?: (
|
|
145
|
-
'data-testid'?: string
|
|
146
|
-
size?: ActionMenuSizes
|
|
139
|
+
id?: string;
|
|
140
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
141
|
+
className?: string;
|
|
142
|
+
menuOpen?: boolean;
|
|
143
|
+
disabled?: boolean;
|
|
144
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
145
|
+
'data-testid'?: string;
|
|
146
|
+
size?: ActionMenuSizes;
|
|
147
147
|
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
148
148
|
Item: ({ children, className, disabled, handler, selected, type, value, ...props }: ActionMenuItemProps) => JSX.Element;
|
|
149
149
|
Overlay: React.ForwardRefExoticComponent<(Omit<((instance: HTMLUListElement | null) => void) & {
|
|
150
|
-
children?: React.ReactNode;
|
|
150
|
+
children?: React.ReactNode | undefined;
|
|
151
151
|
} & {
|
|
152
152
|
'aria-label': string;
|
|
153
|
-
id?: string
|
|
154
|
-
ref?: React.RefObject<HTMLUListElement
|
|
155
|
-
className?: string
|
|
156
|
-
'data-testid'?: string
|
|
157
|
-
menuOpen?: boolean
|
|
158
|
-
style?: React.CSSProperties
|
|
153
|
+
id?: string;
|
|
154
|
+
ref?: React.RefObject<HTMLUListElement>;
|
|
155
|
+
className?: string;
|
|
156
|
+
'data-testid'?: string;
|
|
157
|
+
menuOpen?: boolean;
|
|
158
|
+
style?: React.CSSProperties;
|
|
159
159
|
}, "ref"> | Omit<React.RefObject<HTMLUListElement> & {
|
|
160
|
-
children?: React.ReactNode;
|
|
160
|
+
children?: React.ReactNode | undefined;
|
|
161
161
|
} & {
|
|
162
162
|
'aria-label': string;
|
|
163
|
-
id?: string
|
|
164
|
-
ref?: React.RefObject<HTMLUListElement
|
|
165
|
-
className?: string
|
|
166
|
-
'data-testid'?: string
|
|
167
|
-
menuOpen?: boolean
|
|
168
|
-
style?: React.CSSProperties
|
|
163
|
+
id?: string;
|
|
164
|
+
ref?: React.RefObject<HTMLUListElement>;
|
|
165
|
+
className?: string;
|
|
166
|
+
'data-testid'?: string;
|
|
167
|
+
menuOpen?: boolean;
|
|
168
|
+
style?: React.CSSProperties;
|
|
169
169
|
}, "ref">) & React.RefAttributes<HTMLUListElement>>;
|
|
170
170
|
testIds: {
|
|
171
171
|
root: string;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { Icon } from '@primer/octicons-react';
|
|
3
|
+
import type { BaseProps } from '../component-helpers';
|
|
4
|
+
type ResponsiveMap<T> = {
|
|
5
|
+
narrow?: T;
|
|
6
|
+
regular?: T;
|
|
7
|
+
wide?: T;
|
|
8
|
+
};
|
|
9
|
+
export declare const BreakoutBannerBackgroundColors: readonly ["default", "subtle"];
|
|
10
|
+
type ResponsiveBackgroundImageSrcMap = ResponsiveMap<string | string[]>;
|
|
11
|
+
type BackgroundColors = (typeof BreakoutBannerBackgroundColors)[number] | AnyString;
|
|
12
|
+
type ResponsiveBackgroundColorMap = ResponsiveMap<BackgroundColors>;
|
|
13
|
+
type ResponsiveBackgroundImagePositionMap = ResponsiveMap<string | string[]>;
|
|
14
|
+
type ResponsiveBackgroundImageSizeMap = ResponsiveMap<string | string[]>;
|
|
15
|
+
export type BreakoutBannerProps = BaseProps<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
16
|
+
children: React.ReactNode | React.ReactNode[];
|
|
17
|
+
/**
|
|
18
|
+
* The alignment of the content within the banner
|
|
19
|
+
*/
|
|
20
|
+
align?: 'start' | 'center';
|
|
21
|
+
/**
|
|
22
|
+
* Optional, custom background color
|
|
23
|
+
*/
|
|
24
|
+
backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap;
|
|
25
|
+
/**
|
|
26
|
+
* Optional, custom background image
|
|
27
|
+
*/
|
|
28
|
+
backgroundImageSrc?: string | ResponsiveBackgroundImageSrcMap;
|
|
29
|
+
/**
|
|
30
|
+
* Optional, custom background position
|
|
31
|
+
*/
|
|
32
|
+
backgroundImagePosition?: string | ResponsiveBackgroundImagePositionMap;
|
|
33
|
+
/**
|
|
34
|
+
* Optional, custom background size
|
|
35
|
+
*/
|
|
36
|
+
backgroundImageSize?: string | ResponsiveBackgroundImageSizeMap;
|
|
37
|
+
/**
|
|
38
|
+
* An optional leading visual that appears before the heading
|
|
39
|
+
*/
|
|
40
|
+
leadingVisual?: ReactElement | Icon;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Breakout banner component
|
|
44
|
+
* {@link https://primer.style/brand/components/BreakoutBanner/ See usage examples}.
|
|
45
|
+
*/
|
|
46
|
+
export declare const BreakoutBanner: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
47
|
+
children: React.ReactNode | React.ReactNode[];
|
|
48
|
+
/**
|
|
49
|
+
* The alignment of the content within the banner
|
|
50
|
+
*/
|
|
51
|
+
align?: "start" | "center";
|
|
52
|
+
/**
|
|
53
|
+
* Optional, custom background color
|
|
54
|
+
*/
|
|
55
|
+
backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap;
|
|
56
|
+
/**
|
|
57
|
+
* Optional, custom background image
|
|
58
|
+
*/
|
|
59
|
+
backgroundImageSrc?: string | ResponsiveBackgroundImageSrcMap;
|
|
60
|
+
/**
|
|
61
|
+
* Optional, custom background position
|
|
62
|
+
*/
|
|
63
|
+
backgroundImagePosition?: string | ResponsiveBackgroundImagePositionMap;
|
|
64
|
+
/**
|
|
65
|
+
* Optional, custom background size
|
|
66
|
+
*/
|
|
67
|
+
backgroundImageSize?: string | ResponsiveBackgroundImageSizeMap;
|
|
68
|
+
/**
|
|
69
|
+
* An optional leading visual that appears before the heading
|
|
70
|
+
*/
|
|
71
|
+
leadingVisual?: ReactElement | Icon;
|
|
72
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
73
|
+
Heading: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
|
|
74
|
+
children: React.ReactNode | React.ReactNode[];
|
|
75
|
+
} & {
|
|
76
|
+
as?: typeof import("../").HeadingTags[number];
|
|
77
|
+
size?: typeof import("../").HeadingSizes[number];
|
|
78
|
+
weight?: ("medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight") | {
|
|
79
|
+
narrow?: "medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight";
|
|
80
|
+
regular?: "medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight";
|
|
81
|
+
wide?: "medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight";
|
|
82
|
+
};
|
|
83
|
+
stretch?: ("normal" | "condensed" | "expanded") | {
|
|
84
|
+
narrow?: "normal" | "condensed" | "expanded";
|
|
85
|
+
regular?: "normal" | "condensed" | "expanded";
|
|
86
|
+
wide?: "normal" | "condensed" | "expanded";
|
|
87
|
+
};
|
|
88
|
+
letterSpacing?: ("normal" | "condensed" | "none") | {
|
|
89
|
+
narrow?: "normal" | "condensed" | "none";
|
|
90
|
+
regular?: "normal" | "condensed" | "none";
|
|
91
|
+
wide?: "normal" | "condensed" | "none";
|
|
92
|
+
};
|
|
93
|
+
font?: "mona-sans" | "hubot-sans" | "monospace";
|
|
94
|
+
} & React.HTMLAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
95
|
+
Description: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLParagraphElement> & {
|
|
96
|
+
children: React.ReactNode | React.ReactNode[];
|
|
97
|
+
}, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
98
|
+
LinkGroup: React.ForwardRefExoticComponent<Omit<Omit<BaseProps<HTMLElement> & {
|
|
99
|
+
children: React.ReactNode[] | React.ReactNode;
|
|
100
|
+
direction?: ("horizontal" | "vertical") | {
|
|
101
|
+
narrow?: "horizontal" | "vertical";
|
|
102
|
+
regular?: "horizontal" | "vertical";
|
|
103
|
+
wide?: "horizontal" | "vertical";
|
|
104
|
+
};
|
|
105
|
+
gap?: ("normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128) | {
|
|
106
|
+
narrow?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
|
|
107
|
+
regular?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
|
|
108
|
+
wide?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
|
|
109
|
+
};
|
|
110
|
+
alignItems?: ("center" | "flex-end" | "flex-start") | {
|
|
111
|
+
narrow?: "center" | "flex-end" | "flex-start";
|
|
112
|
+
regular?: "center" | "flex-end" | "flex-start";
|
|
113
|
+
wide?: "center" | "flex-end" | "flex-start";
|
|
114
|
+
};
|
|
115
|
+
padding?: ("normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128) | {
|
|
116
|
+
narrow?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
|
|
117
|
+
regular?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
|
|
118
|
+
wide?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
|
|
119
|
+
};
|
|
120
|
+
justifyContent?: ("center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start") | {
|
|
121
|
+
narrow?: "center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start";
|
|
122
|
+
regular?: "center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start";
|
|
123
|
+
wide?: "center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start";
|
|
124
|
+
};
|
|
125
|
+
style?: React.CSSProperties;
|
|
126
|
+
flexWrap?: ("nowrap" | "wrap") | {
|
|
127
|
+
narrow?: "nowrap" | "wrap";
|
|
128
|
+
regular?: "nowrap" | "wrap";
|
|
129
|
+
wide?: "nowrap" | "wrap";
|
|
130
|
+
};
|
|
131
|
+
} & BaseProps<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
132
|
+
};
|
|
133
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BreakoutBanner';
|
|
@@ -9,7 +9,7 @@ export type ButtonGroupProps = BaseProps<HTMLDivElement> & {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLDivElement> & {
|
|
11
11
|
children: PrimerBrandButtonType[] | PrimerBrandButtonType;
|
|
12
|
-
buttonSize?: ButtonProps<
|
|
13
|
-
buttonsAs?: React.ElementType
|
|
12
|
+
buttonSize?: ButtonProps<"button" | "a">["size"];
|
|
13
|
+
buttonsAs?: React.ElementType;
|
|
14
14
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export {};
|
|
@@ -14,40 +14,40 @@ export type CTABannerProps = BaseProps<HTMLElement> & React.HTMLAttributes<HTMLE
|
|
|
14
14
|
};
|
|
15
15
|
export declare const CTABanner: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLElement> & React.HTMLAttributes<HTMLElement> & {
|
|
16
16
|
children: React.ReactNode | React.ReactNode[];
|
|
17
|
-
align?: "start" | "center"
|
|
18
|
-
hasBorder?: boolean
|
|
19
|
-
hasShadow?: boolean
|
|
20
|
-
hasBackground?: boolean
|
|
21
|
-
trailingComponent?: React.FunctionComponent
|
|
17
|
+
align?: "start" | "center";
|
|
18
|
+
hasBorder?: boolean;
|
|
19
|
+
hasShadow?: boolean;
|
|
20
|
+
hasBackground?: boolean;
|
|
21
|
+
trailingComponent?: React.FunctionComponent;
|
|
22
22
|
}, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
23
23
|
Heading: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
|
|
24
24
|
children: React.ReactNode | React.ReactNode[];
|
|
25
25
|
} & {
|
|
26
|
-
as?:
|
|
27
|
-
size?:
|
|
28
|
-
weight?: "
|
|
29
|
-
narrow?: "
|
|
30
|
-
regular?: "
|
|
31
|
-
wide?: "
|
|
32
|
-
}
|
|
33
|
-
stretch?: "normal" | "condensed" | "expanded" | {
|
|
34
|
-
narrow?: "normal" | "condensed" | "expanded"
|
|
35
|
-
regular?: "normal" | "condensed" | "expanded"
|
|
36
|
-
wide?: "normal" | "condensed" | "expanded"
|
|
37
|
-
}
|
|
38
|
-
letterSpacing?: "normal" | "condensed" | "none" | {
|
|
39
|
-
narrow?: "normal" | "condensed" | "none"
|
|
40
|
-
regular?: "normal" | "condensed" | "none"
|
|
41
|
-
wide?: "normal" | "condensed" | "none"
|
|
42
|
-
}
|
|
43
|
-
font?: "mona-sans" | "hubot-sans" | "monospace"
|
|
26
|
+
as?: typeof import("../Heading").HeadingTags[number];
|
|
27
|
+
size?: typeof import("../Heading").HeadingSizes[number];
|
|
28
|
+
weight?: ("medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight") | {
|
|
29
|
+
narrow?: "medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight";
|
|
30
|
+
regular?: "medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight";
|
|
31
|
+
wide?: "medium" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "light" | "extralight";
|
|
32
|
+
};
|
|
33
|
+
stretch?: ("normal" | "condensed" | "expanded") | {
|
|
34
|
+
narrow?: "normal" | "condensed" | "expanded";
|
|
35
|
+
regular?: "normal" | "condensed" | "expanded";
|
|
36
|
+
wide?: "normal" | "condensed" | "expanded";
|
|
37
|
+
};
|
|
38
|
+
letterSpacing?: ("normal" | "condensed" | "none") | {
|
|
39
|
+
narrow?: "normal" | "condensed" | "none";
|
|
40
|
+
regular?: "normal" | "condensed" | "none";
|
|
41
|
+
wide?: "normal" | "condensed" | "none";
|
|
42
|
+
};
|
|
43
|
+
font?: "mona-sans" | "hubot-sans" | "monospace";
|
|
44
44
|
} & React.HTMLAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
45
45
|
Description: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLParagraphElement> & {
|
|
46
46
|
children: React.ReactNode | React.ReactNode[];
|
|
47
47
|
}, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
48
48
|
ButtonGroup: React.ForwardRefExoticComponent<Omit<Omit<BaseProps<HTMLDivElement> & {
|
|
49
|
-
children: React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any>> | React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any
|
|
50
|
-
buttonSize?: "
|
|
51
|
-
buttonsAs?: React.ElementType
|
|
49
|
+
children: React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any>>[] | React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any>>;
|
|
50
|
+
buttonSize?: import("..").ButtonProps<"button" | "a">["size"];
|
|
51
|
+
buttonsAs?: React.ElementType;
|
|
52
52
|
}, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
53
53
|
};
|
|
@@ -13,9 +13,9 @@ export type ComparisonTableProps<C extends React.ElementType> = BaseProps<C> & {
|
|
|
13
13
|
} & React.ComponentPropsWithoutRef<C>;
|
|
14
14
|
export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
|
|
15
15
|
as?: React.ElementType<any> | undefined;
|
|
16
|
-
heading?: string
|
|
17
|
-
variant?: "default" | "minimal"
|
|
18
|
-
featuredColumn?: number
|
|
16
|
+
heading?: string;
|
|
17
|
+
variant?: "default" | "minimal";
|
|
18
|
+
featuredColumn?: number;
|
|
19
19
|
} & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
type RowProps = {
|
|
21
21
|
header?: boolean;
|
|
@@ -32,9 +32,9 @@ export type FootnoteProps = BaseProps<HTMLParagraphElement>;
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const ComparisonTable: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
|
|
34
34
|
as?: React.ElementType<any> | undefined;
|
|
35
|
-
heading?: string
|
|
36
|
-
variant?: "default" | "minimal"
|
|
37
|
-
featuredColumn?: number
|
|
35
|
+
heading?: string;
|
|
36
|
+
variant?: "default" | "minimal";
|
|
37
|
+
featuredColumn?: number;
|
|
38
38
|
} & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
39
39
|
Row: ({ children, ...rest }: PropsWithChildren<RowProps>) => JSX.Element;
|
|
40
40
|
Cell: ({ as, children, ...props }: PropsWithChildren<CellProps>) => JSX.Element;
|
package/lib/FAQ/FAQ.d.ts
CHANGED
|
@@ -28,15 +28,15 @@ export declare const FAQ: React.ForwardRefExoticComponent<Omit<FAQRootProps, "re
|
|
|
28
28
|
Heading: React.ForwardRefExoticComponent<Omit<FAQHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
29
29
|
Item: React.ForwardRefExoticComponent<Omit<import("..").AccordionRootProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
|
|
30
30
|
Question: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
|
|
31
|
-
children?: React.ReactNode;
|
|
31
|
+
children?: React.ReactNode | undefined;
|
|
32
32
|
} & {
|
|
33
|
-
className?: string
|
|
34
|
-
as?: "h2" | "h3" | "h4" | "h5" | "h6"
|
|
35
|
-
reversedToggles?: boolean
|
|
36
|
-
variant?: "default" | "emphasis"
|
|
37
|
-
open?: boolean
|
|
38
|
-
handleOpen?: (
|
|
39
|
-
parentRef?: React.RefObject<HTMLDetailsElement
|
|
33
|
+
className?: string;
|
|
34
|
+
as?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
35
|
+
reversedToggles?: boolean;
|
|
36
|
+
variant?: "default" | "emphasis";
|
|
37
|
+
open?: boolean;
|
|
38
|
+
handleOpen?: (boolean: any) => void;
|
|
39
|
+
parentRef?: React.RefObject<HTMLDetailsElement>;
|
|
40
40
|
}, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
41
41
|
Answer: typeof AccordionContent;
|
|
42
42
|
};
|
package/lib/Grid/Grid.d.ts
CHANGED
|
@@ -55,17 +55,17 @@ export declare const Grid: React.NamedExoticComponent<React.HTMLAttributes<"div"
|
|
|
55
55
|
/**
|
|
56
56
|
* Visual aid to help with alignment.
|
|
57
57
|
*/
|
|
58
|
-
enableOverlay?: boolean
|
|
58
|
+
enableOverlay?: boolean;
|
|
59
59
|
/**
|
|
60
60
|
* Fills the width of the parent container and removes the max-width.
|
|
61
61
|
*/
|
|
62
|
-
fullWidth?: boolean
|
|
62
|
+
fullWidth?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* Test id for the root element.
|
|
65
65
|
*/
|
|
66
|
-
"data-testid"?: string
|
|
66
|
+
"data-testid"?: string;
|
|
67
67
|
} & BaseProps<HTMLDivElement> & {
|
|
68
|
-
children?: React.ReactNode;
|
|
68
|
+
children?: React.ReactNode | undefined;
|
|
69
69
|
}> & {
|
|
70
70
|
readonly type: ({ className, children, as, fullWidth, enableOverlay, ["data-testid"]: testId, ...rest }: PropsWithChildren<GridProps>) => JSX.Element;
|
|
71
71
|
} & {
|
package/lib/Hero/Hero.d.ts
CHANGED
|
@@ -30,62 +30,62 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
30
30
|
Heading: React.ForwardRefExoticComponent<Omit<HeroHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
31
31
|
Description: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<HeroDescriptionProps>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
32
32
|
PrimaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
33
|
-
as?: "a" | "button"
|
|
33
|
+
as?: "a" | "button";
|
|
34
34
|
href: string;
|
|
35
35
|
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
36
|
-
as?: "a"
|
|
36
|
+
as?: "a";
|
|
37
37
|
} & {
|
|
38
|
-
children?: React.ReactNode;
|
|
38
|
+
children?: React.ReactNode | undefined;
|
|
39
39
|
}, "ref"> | Omit<{
|
|
40
|
-
as?: "a" | "button"
|
|
40
|
+
as?: "a" | "button";
|
|
41
41
|
href: string;
|
|
42
42
|
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
43
|
-
as?: "button"
|
|
43
|
+
as?: "button";
|
|
44
44
|
} & {
|
|
45
|
-
children?: React.ReactNode;
|
|
45
|
+
children?: React.ReactNode | undefined;
|
|
46
46
|
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
47
47
|
SecondaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
48
|
-
as?: "a" | "button"
|
|
48
|
+
as?: "a" | "button";
|
|
49
49
|
href: string;
|
|
50
50
|
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
51
|
-
as?: "a"
|
|
51
|
+
as?: "a";
|
|
52
52
|
} & {
|
|
53
|
-
children?: React.ReactNode;
|
|
53
|
+
children?: React.ReactNode | undefined;
|
|
54
54
|
}, "ref"> | Omit<{
|
|
55
|
-
as?: "a" | "button"
|
|
55
|
+
as?: "a" | "button";
|
|
56
56
|
href: string;
|
|
57
57
|
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
58
|
-
as?: "button"
|
|
58
|
+
as?: "button";
|
|
59
59
|
} & {
|
|
60
|
-
children?: React.ReactNode;
|
|
60
|
+
children?: React.ReactNode | undefined;
|
|
61
61
|
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
62
62
|
Image: React.ForwardRefExoticComponent<(Omit<{
|
|
63
|
-
position?: "inline-end" | "block-end"
|
|
63
|
+
position?: "inline-end" | "block-end";
|
|
64
64
|
} & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
65
65
|
src: string;
|
|
66
66
|
alt: string;
|
|
67
|
-
aspectRatio?: import("../Image").ImageAspectRatio
|
|
68
|
-
media?: string
|
|
69
|
-
borderRadius?: "
|
|
70
|
-
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet"
|
|
67
|
+
aspectRatio?: import("../Image").ImageAspectRatio;
|
|
68
|
+
media?: string;
|
|
69
|
+
borderRadius?: import("../Image").ImageBorderRadiusOptions;
|
|
70
|
+
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
71
71
|
} & {
|
|
72
|
-
as?: "img"
|
|
73
|
-
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet"
|
|
72
|
+
as?: "img";
|
|
73
|
+
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
74
74
|
}, "ref"> | Omit<{
|
|
75
|
-
position?: "inline-end" | "block-end"
|
|
75
|
+
position?: "inline-end" | "block-end";
|
|
76
76
|
} & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
77
77
|
src: string;
|
|
78
78
|
alt: string;
|
|
79
|
-
aspectRatio?: import("../Image").ImageAspectRatio
|
|
80
|
-
media?: string
|
|
81
|
-
borderRadius?: "
|
|
82
|
-
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet"
|
|
79
|
+
aspectRatio?: import("../Image").ImageAspectRatio;
|
|
80
|
+
media?: string;
|
|
81
|
+
borderRadius?: import("../Image").ImageBorderRadiusOptions;
|
|
82
|
+
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
83
83
|
} & {
|
|
84
84
|
as: "picture";
|
|
85
85
|
sources?: {
|
|
86
86
|
srcset: string;
|
|
87
87
|
media: string;
|
|
88
|
-
}[]
|
|
88
|
+
}[];
|
|
89
89
|
srcSet?: undefined;
|
|
90
90
|
}, "ref">) & React.RefAttributes<HTMLImageElement>>;
|
|
91
91
|
Label: React.ForwardRefExoticComponent<Omit<HeroLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
package/lib/IDE/IDE.d.ts
CHANGED
|
@@ -76,17 +76,17 @@ export declare const IDE: React.NamedExoticComponent<{
|
|
|
76
76
|
/**
|
|
77
77
|
* Test id for the IDE
|
|
78
78
|
*/
|
|
79
|
-
'data-testid'?: string
|
|
79
|
+
'data-testid'?: string;
|
|
80
80
|
/**
|
|
81
81
|
* The optionally configurable height of the IDE
|
|
82
82
|
*/
|
|
83
|
-
height?: number
|
|
83
|
+
height?: number;
|
|
84
84
|
/**
|
|
85
85
|
* Alternative presentation of the IDE
|
|
86
86
|
*/
|
|
87
|
-
variant?: "default" | "glass"
|
|
87
|
+
variant?: "default" | "glass";
|
|
88
88
|
} & BaseProps<HTMLDivElement> & {
|
|
89
|
-
children?: React.ReactNode;
|
|
89
|
+
children?: React.ReactNode | undefined;
|
|
90
90
|
}> & {
|
|
91
91
|
readonly type: ({ alternativeText, children, className, "data-testid": testId, height, variant, ...rest }: PropsWithChildren<IDEProps>) => JSX.Element;
|
|
92
92
|
} & {
|
|
@@ -103,7 +103,7 @@ export declare const IDE: React.NamedExoticComponent<{
|
|
|
103
103
|
/**
|
|
104
104
|
* The index of the active tab.
|
|
105
105
|
*/
|
|
106
|
-
activeTab?: number
|
|
106
|
+
activeTab?: number;
|
|
107
107
|
/**
|
|
108
108
|
* An array of IDE editor files.
|
|
109
109
|
*/
|
|
@@ -111,27 +111,27 @@ export declare const IDE: React.NamedExoticComponent<{
|
|
|
111
111
|
/**
|
|
112
112
|
* Determines whether line numbers should be shown in the editor.
|
|
113
113
|
*/
|
|
114
|
-
showLineNumbers?: boolean
|
|
114
|
+
showLineNumbers?: boolean;
|
|
115
115
|
/**
|
|
116
116
|
* Controls the size of the editor text.
|
|
117
117
|
*/
|
|
118
|
-
size?: "
|
|
118
|
+
size?: "small" | "medium" | "large";
|
|
119
119
|
/**
|
|
120
120
|
* Used for triggering animation externally.
|
|
121
121
|
*/
|
|
122
|
-
triggerAnimation?: boolean
|
|
122
|
+
triggerAnimation?: boolean;
|
|
123
123
|
/**
|
|
124
124
|
* Determines whether the replay button should be shown.
|
|
125
125
|
*/
|
|
126
|
-
showReplayButton?: boolean
|
|
126
|
+
showReplayButton?: boolean;
|
|
127
127
|
/**
|
|
128
128
|
* Test id for the IDE.
|
|
129
129
|
*/
|
|
130
|
-
'data-testid'?: string
|
|
130
|
+
'data-testid'?: string;
|
|
131
131
|
/**
|
|
132
132
|
* Enable user customisation of the icons used in file tabs.
|
|
133
133
|
*/
|
|
134
|
-
tabIcons?: IDEEditorTabIcon
|
|
134
|
+
tabIcons?: IDEEditorTabIcon;
|
|
135
135
|
} & BaseProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
|
|
136
136
|
};
|
|
137
137
|
export {};
|