@primer/react-brand 0.46.0 → 0.47.0-rc.92f76d23
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/Accordion/Accordion.d.ts +1 -1
- package/lib/ActionMenu/ActionMenu.d.ts +4 -4
- package/lib/AnchorNav/AnchorNav.d.ts +4 -4
- package/lib/Bento/Bento.d.ts +5 -5
- package/lib/Box/Box.d.ts +1 -1
- package/lib/BreakoutBanner/BreakoutBanner.d.ts +11 -86
- package/lib/Button/Button.d.ts +2 -6
- package/lib/ButtonGroup/ButtonGroup.d.ts +1 -5
- package/lib/CTABanner/CTABanner.d.ts +11 -71
- package/lib/CTAForm/CTAForm.d.ts +1 -3
- package/lib/Card/Card.d.ts +2 -2
- package/lib/Card/CardSkewEffect.d.ts +1 -1
- package/lib/ComparisonTable/ComparisonTable.d.ts +5 -15
- package/lib/ExpandableArrow/ExpandableArrow.d.ts +1 -1
- package/lib/FAQ/FAQ.d.ts +1 -1
- package/lib/FAQ/FAQGroup.d.ts +2 -2
- package/lib/Footnotes/Footnotes.d.ts +2 -2
- package/lib/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
- package/lib/Grid/Grid.d.ts +2 -2
- package/lib/Heading/Heading.d.ts +1 -1
- package/lib/IDE/IDE.d.ts +37 -36
- package/lib/Icon/Icon.d.ts +1 -1
- package/lib/Image/Image.d.ts +1 -1
- package/lib/InlineLink/InlineLink.d.ts +1 -1
- package/lib/Label/Label.d.ts +2 -1
- package/lib/Link/Link.d.ts +1 -1
- package/lib/LogoSuite/LogoSuite.d.ts +3 -17
- package/lib/LogoSuite/LogoSuite.fixtures.d.ts +1 -1
- package/lib/MinimalFooter/MinimalFooter.d.ts +3 -3
- package/lib/MonaSans/MonaSans.d.ts +1 -1
- package/lib/Pagination/Pagination.d.ts +2 -2
- package/lib/Pillar/Pillar.d.ts +7 -6
- package/lib/PricingOptions/PricingOptions.d.ts +2 -2
- package/lib/SectionIntro/SectionIntro.d.ts +8 -6
- package/lib/Stack/Stack.d.ts +1 -41
- package/lib/SubNav/SubNav.d.ts +4 -4
- package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +1 -1
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +7 -6
- package/lib/Testimonial/Testimonial.d.ts +5 -9
- package/lib/Text/Text.d.ts +1 -1
- package/lib/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/lib/Timeline/Timeline.d.ts +2 -2
- package/lib/Tooltip/Tooltip.d.ts +1 -6
- package/lib/VideoPlayer/VideoPlayer.d.ts +4 -4
- package/lib/VideoPlayer/components/CCButton/CCButton.d.ts +1 -1
- package/lib/VideoPlayer/components/Captions/Captions.d.ts +1 -1
- package/lib/VideoPlayer/components/Controls/Controls.d.ts +1 -1
- package/lib/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +1 -1
- package/lib/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +1 -1
- package/lib/VideoPlayer/components/IconControl/IconControl.d.ts +1 -1
- package/lib/VideoPlayer/components/MuteButton/MuteButton.d.ts +1 -1
- package/lib/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +1 -1
- package/lib/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +1 -1
- package/lib/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +1 -1
- package/lib/VideoPlayer/components/Range/Range.d.ts +2 -1
- package/lib/VideoPlayer/components/SeekControl/SeekControl.d.ts +1 -1
- package/lib/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +1 -1
- package/lib/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +1 -1
- package/lib/VideoPlayer/hooks/useVideo.d.ts +5 -4
- package/lib/animation/Animate/Animate.d.ts +1 -1
- package/lib/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
- package/lib/animation/TextRevealAnimation/TextRevealAnimation.d.ts +1 -1
- package/lib/component-helpers.d.ts +2 -2
- package/lib/css/main.css +67 -63
- 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/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/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/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/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/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 +1 -27
- package/lib/forms/FormControl/FormControl.d.ts +4 -4
- package/lib/forms/Radio/Radio.d.ts +1 -19
- package/lib/forms/Select/Select.d.ts +7 -20
- package/lib/forms/TextInput/TextInput.d.ts +3 -47
- package/lib/forms/Textarea/Textarea.d.ts +1 -30
- package/lib/hooks/useId.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/list/OrderedList/OrderedList.d.ts +1 -1
- package/lib/list/UnorderedList/UnorderedList.d.ts +1 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +1 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +1 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +1 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts +1 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +1 -1
- package/lib/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +1 -1
- package/lib/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +18 -1
- package/lib/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +2 -1
- package/lib/recipes/seo/Article/Article.d.ts +1 -1
- package/lib/recipes/seo/Article/ArticleToC.d.ts +1 -1
- package/lib/recipes/seo/Category/CategoryPage.d.ts +1 -1
- package/lib/river/River/River.d.ts +4 -72
- package/lib/river/RiverBreakout/RiverBreakout.d.ts +3 -8
- package/lib/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
- package/lib/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +1 -1
- package/lib/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
- package/lib/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
- package/lib/test-utils/setupTests.d.ts +1 -0
- package/package.json +26 -17
|
@@ -30,7 +30,7 @@ type AccordionContentProps = BaseProps<HTMLElement> & {
|
|
|
30
30
|
handleOpen?: (boolean: any) => void;
|
|
31
31
|
parentRef?: React.RefObject<HTMLDetailsElement>;
|
|
32
32
|
};
|
|
33
|
-
export declare function AccordionContent({ children, className, open, handleOpen, parentRef, ...rest }: AccordionContentProps): JSX.Element;
|
|
33
|
+
export declare function AccordionContent({ children, className, open, handleOpen, parentRef, ...rest }: AccordionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
/**
|
|
35
35
|
* Branded Accordion component
|
|
36
36
|
*/
|
|
@@ -120,9 +120,9 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
120
120
|
size?: ActionMenuSizes;
|
|
121
121
|
menuSide?: PositionSettings["side"];
|
|
122
122
|
} & BaseProps<HTMLDivElement>> & {
|
|
123
|
-
readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, size, menuSide, onSelect, }: ActionMenuProps) => JSX.Element;
|
|
123
|
+
readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, size, menuSide, onSelect, }: ActionMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
124
124
|
} & {
|
|
125
|
-
Button: React.ForwardRefExoticComponent<(Omit<((instance: HTMLButtonElement | null) => void) & {
|
|
125
|
+
Button: React.ForwardRefExoticComponent<(Omit<((instance: HTMLButtonElement | 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]) & {
|
|
126
126
|
children?: React.ReactNode | undefined;
|
|
127
127
|
} & {
|
|
128
128
|
id?: string;
|
|
@@ -145,8 +145,8 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
145
145
|
'data-testid'?: string;
|
|
146
146
|
size?: ActionMenuSizes;
|
|
147
147
|
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
148
|
-
Item: ({ children, className, disabled, handler, selected, type, value, ...props }: ActionMenuItemProps) => JSX.Element;
|
|
149
|
-
Overlay: React.ForwardRefExoticComponent<(Omit<((instance: HTMLUListElement | null) => void) & {
|
|
148
|
+
Item: ({ children, className, disabled, handler, selected, type, value, ...props }: ActionMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
149
|
+
Overlay: React.ForwardRefExoticComponent<(Omit<((instance: HTMLUListElement | 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]) & {
|
|
150
150
|
children?: React.ReactNode | undefined;
|
|
151
151
|
} & {
|
|
152
152
|
'aria-label': string;
|
|
@@ -19,7 +19,7 @@ export type AnchorNavProps = BaseProps<HTMLElement> & {
|
|
|
19
19
|
*/
|
|
20
20
|
hideUntilSticky?: boolean;
|
|
21
21
|
} & React.ComponentPropsWithoutRef<'nav'>;
|
|
22
|
-
declare function _AnchorNav({ children, enableDefaultBgColor, hideUntilSticky, ...rest }: AnchorNavProps): JSX.Element;
|
|
22
|
+
declare function _AnchorNav({ children, enableDefaultBgColor, hideUntilSticky, ...rest }: AnchorNavProps): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
type AnchorNavLinkIntersectionOptions = {
|
|
24
24
|
/**
|
|
25
25
|
* The area of the element that should trigger the next linked section to be highlighted.
|
|
@@ -45,15 +45,15 @@ type AnchorNavLinkProps = BaseProps<HTMLAnchorElement> & {
|
|
|
45
45
|
prefersReducedMotion?: boolean;
|
|
46
46
|
updateCurrentActiveNav?: (id: string | null) => void;
|
|
47
47
|
} & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
48
|
-
declare function _AnchorNavLink({ alignment, children, href, isActive, toggleMenuCallback, prefersReducedMotion, intersectionOptions, updateCurrentActiveNav, ...rest }: AnchorNavLinkProps): JSX.Element;
|
|
48
|
+
declare function _AnchorNavLink({ alignment, children, href, isActive, toggleMenuCallback, prefersReducedMotion, intersectionOptions, updateCurrentActiveNav, ...rest }: AnchorNavLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
type AnchorNavActionProps = {
|
|
50
50
|
/**
|
|
51
51
|
* Required path or location for the action button to link to.
|
|
52
52
|
*/
|
|
53
53
|
href: string;
|
|
54
54
|
} & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & ButtonBaseProps;
|
|
55
|
-
declare function _AnchorNavAction({ children, href, variant, size, ...rest }: AnchorNavActionProps): JSX.Element;
|
|
56
|
-
declare function _AnchorNavActionSecondary({ children, href, variant, size, ...rest }: AnchorNavActionProps): JSX.Element;
|
|
55
|
+
declare function _AnchorNavAction({ children, href, variant, size, ...rest }: AnchorNavActionProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
declare function _AnchorNavActionSecondary({ children, href, variant, size, ...rest }: AnchorNavActionProps): import("react/jsx-runtime").JSX.Element;
|
|
57
57
|
/**
|
|
58
58
|
* AnchorNav allows users to navigate to different sections of a page.
|
|
59
59
|
* @see https://primer.style/brand/components/AnchorNav
|
package/lib/Bento/Bento.d.ts
CHANGED
|
@@ -45,10 +45,10 @@ type BentoVisualProps = {
|
|
|
45
45
|
position?: string;
|
|
46
46
|
padding?: Padding | ResponsivePadding;
|
|
47
47
|
} & React.HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement>;
|
|
48
|
-
export declare const Bento: (({ className, ...rest }: BentoProps) => JSX.Element) & {
|
|
49
|
-
Item: ({ className, columnStart, columnSpan, rowStart, rowSpan, flow, colorMode, visualAsBackground, order, bgColor, children, ...rest }: BentoItemProps) => JSX.Element;
|
|
50
|
-
Visual: ({ horizontalAlign, verticalAlign, fillMedia, overflow, position, padding, className, children, ...rest }: BentoVisualProps) => JSX.Element;
|
|
51
|
-
Content: ({ children, leadingVisual: LeadingVisual, padding, verticalAlign, horizontalAlign, className, ...rest }: BentoContentProps) => JSX.Element;
|
|
52
|
-
Heading: React.ForwardRefExoticComponent<Omit<BentoHeadingProps
|
|
48
|
+
export declare const Bento: (({ className, ...rest }: BentoProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
49
|
+
Item: ({ className, columnStart, columnSpan, rowStart, rowSpan, flow, colorMode, visualAsBackground, order, bgColor, children, ...rest }: BentoItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
Visual: ({ horizontalAlign, verticalAlign, fillMedia, overflow, position, padding, className, children, ...rest }: BentoVisualProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
Content: ({ children, leadingVisual: LeadingVisual, padding, verticalAlign, horizontalAlign, className, ...rest }: BentoContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
Heading: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<BentoHeadingProps>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
53
53
|
};
|
|
54
54
|
export {};
|
package/lib/Box/Box.d.ts
CHANGED
|
@@ -77,5 +77,5 @@ type BoxProps = {
|
|
|
77
77
|
* Use Box to apply fine-grained styling to content.
|
|
78
78
|
* @see https://primer.style/brand/components/Box
|
|
79
79
|
*/
|
|
80
|
-
export declare const Box: ({ animate, children, className, "data-testid": testId, style, padding, paddingBlockStart, paddingInlineEnd, paddingBlockEnd, paddingInlineStart, margin, marginBlockStart, marginInlineEnd, marginBlockEnd, marginInlineStart, backgroundColor, borderRadius, borderWidth, borderBlockStartWidth, borderInlineEndWidth, borderBlockEndWidth, borderInlineStartWidth, borderColor, borderStyle, ...rest }: PropsWithChildren<BoxProps>) => JSX.Element;
|
|
80
|
+
export declare const Box: ({ animate, children, className, "data-testid": testId, style, padding, paddingBlockStart, paddingInlineEnd, paddingBlockEnd, paddingInlineStart, margin, marginBlockStart, marginInlineEnd, marginBlockEnd, marginInlineStart, backgroundColor, borderRadius, borderWidth, borderBlockStartWidth, borderInlineEndWidth, borderBlockEndWidth, borderInlineStartWidth, borderColor, borderStyle, ...rest }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
81
81
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { Icon } from '@primer/octicons-react';
|
|
3
3
|
import type { BaseProps } from '../component-helpers';
|
|
4
|
+
import { HeadingProps, StackProps } from '../';
|
|
4
5
|
type ResponsiveMap<T> = {
|
|
5
6
|
narrow?: T;
|
|
6
7
|
regular?: T;
|
|
@@ -39,95 +40,19 @@ export type BreakoutBannerProps = BaseProps<HTMLDivElement> & React.HTMLAttribut
|
|
|
39
40
|
*/
|
|
40
41
|
leadingVisual?: ReactElement | Icon;
|
|
41
42
|
};
|
|
43
|
+
type BreakoutBannerHeadingProps = BaseProps<HTMLHeadingElement> & {
|
|
44
|
+
children: React.ReactNode | React.ReactNode[];
|
|
45
|
+
} & HeadingProps;
|
|
46
|
+
type BreakoutBannerDescriptionProps = BaseProps<HTMLParagraphElement> & {
|
|
47
|
+
children: React.ReactNode | React.ReactNode[];
|
|
48
|
+
};
|
|
42
49
|
/**
|
|
43
50
|
* Breakout banner component
|
|
44
51
|
* {@link https://primer.style/brand/components/BreakoutBanner/ See usage examples}.
|
|
45
52
|
*/
|
|
46
|
-
export declare const BreakoutBanner: React.ForwardRefExoticComponent<Omit<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight") | {
|
|
79
|
-
narrow?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
|
|
80
|
-
regular?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
|
|
81
|
-
wide?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "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>>;
|
|
53
|
+
export declare const BreakoutBanner: React.ForwardRefExoticComponent<Omit<BreakoutBannerProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
54
|
+
Heading: React.ForwardRefExoticComponent<Omit<BreakoutBannerHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
55
|
+
Description: React.ForwardRefExoticComponent<Omit<BreakoutBannerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
56
|
+
LinkGroup: React.ForwardRefExoticComponent<Omit<Omit<StackProps, "ref"> & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
132
57
|
};
|
|
133
58
|
export {};
|
package/lib/Button/Button.d.ts
CHANGED
|
@@ -35,12 +35,8 @@ export type ButtonBaseProps = {
|
|
|
35
35
|
export type ButtonProps<C extends React.ElementType> = BaseProps<C> & {
|
|
36
36
|
as?: C;
|
|
37
37
|
} & ButtonBaseProps & React.ComponentPropsWithoutRef<C>;
|
|
38
|
-
export declare const _Button: React.ForwardRefExoticComponent<Omit<
|
|
39
|
-
|
|
40
|
-
} & ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
-
export declare const Button: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
|
|
42
|
-
as?: React.ElementType<any> | undefined;
|
|
43
|
-
} & ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>> & {
|
|
38
|
+
export declare const _Button: React.ForwardRefExoticComponent<Omit<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
39
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>> & {
|
|
44
40
|
testIds: {
|
|
45
41
|
root: string;
|
|
46
42
|
readonly leadingVisual: string;
|
|
@@ -7,9 +7,5 @@ export type ButtonGroupProps = BaseProps<HTMLDivElement> & {
|
|
|
7
7
|
buttonSize?: ButtonProps<'button' | 'a'>['size'];
|
|
8
8
|
buttonsAs?: React.ElementType;
|
|
9
9
|
};
|
|
10
|
-
export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<
|
|
11
|
-
children: PrimerBrandButtonType[] | PrimerBrandButtonType;
|
|
12
|
-
buttonSize?: ButtonProps<"button" | "a">["size"];
|
|
13
|
-
buttonsAs?: React.ElementType;
|
|
14
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
11
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BaseProps } from '../component-helpers';
|
|
3
|
+
import { HeadingProps } from '../Heading';
|
|
3
4
|
import { TextProps } from '../Text';
|
|
4
5
|
/**
|
|
5
6
|
* Design tokens
|
|
@@ -57,76 +58,15 @@ export type CTABannerProps = BaseProps<HTMLElement> & React.HTMLAttributes<HTMLE
|
|
|
57
58
|
*/
|
|
58
59
|
trailingComponent?: React.FunctionComponent;
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* A flag to remove the shadow from the banner.
|
|
71
|
-
*/
|
|
72
|
-
hasShadow?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* A flag to remove the background from the banner.
|
|
75
|
-
*/
|
|
76
|
-
hasBackground?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Optional, custom background color.
|
|
79
|
-
*/
|
|
80
|
-
backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap;
|
|
81
|
-
/**
|
|
82
|
-
* Optional, custom background image.
|
|
83
|
-
*/
|
|
84
|
-
backgroundImageSrc?: string | ResponsiveBackgroundImageSrcMap;
|
|
85
|
-
/**
|
|
86
|
-
* Optional, custom background position.
|
|
87
|
-
*/
|
|
88
|
-
backgroundImagePosition?: string | ResponsiveBackgroundImagePositionMap;
|
|
89
|
-
/**
|
|
90
|
-
* Optional, custom background size.
|
|
91
|
-
*/
|
|
92
|
-
backgroundImageSize?: string | ResponsiveBackgroundImageSizeMap;
|
|
93
|
-
/**
|
|
94
|
-
* Escape-hatch for inserting custom React components.
|
|
95
|
-
* Warning:
|
|
96
|
-
* This prop isn't advertised in our docs but remains part of the public API for edge-cases.
|
|
97
|
-
* Need to use this prop? Please check in with #primer-brand first to confirm correct usage.
|
|
98
|
-
*/
|
|
99
|
-
trailingComponent?: React.FunctionComponent;
|
|
100
|
-
}, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
101
|
-
Heading: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
|
|
102
|
-
children: React.ReactNode | React.ReactNode[];
|
|
103
|
-
} & {
|
|
104
|
-
as?: typeof import("../Heading").HeadingTags[number];
|
|
105
|
-
size?: typeof import("../Heading").HeadingSizes[number];
|
|
106
|
-
weight?: ("medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight") | {
|
|
107
|
-
narrow?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
|
|
108
|
-
regular?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
|
|
109
|
-
wide?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
|
|
110
|
-
};
|
|
111
|
-
stretch?: ("normal" | "condensed" | "expanded") | {
|
|
112
|
-
narrow?: "normal" | "condensed" | "expanded";
|
|
113
|
-
regular?: "normal" | "condensed" | "expanded";
|
|
114
|
-
wide?: "normal" | "condensed" | "expanded";
|
|
115
|
-
};
|
|
116
|
-
letterSpacing?: ("normal" | "condensed" | "none") | {
|
|
117
|
-
narrow?: "normal" | "condensed" | "none";
|
|
118
|
-
regular?: "normal" | "condensed" | "none";
|
|
119
|
-
wide?: "normal" | "condensed" | "none";
|
|
120
|
-
};
|
|
121
|
-
font?: "mona-sans" | "hubot-sans" | "monospace";
|
|
122
|
-
} & React.HTMLAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
123
|
-
Description: React.ForwardRefExoticComponent<Omit<React.HtmlHTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLParagraphElement> & {
|
|
124
|
-
variant?: TextProps["variant"];
|
|
125
|
-
}, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
126
|
-
ButtonGroup: React.ForwardRefExoticComponent<Omit<Omit<BaseProps<HTMLDivElement> & {
|
|
127
|
-
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>>;
|
|
128
|
-
buttonSize?: import("..").ButtonProps<"button" | "a">["size"];
|
|
129
|
-
buttonsAs?: React.ElementType;
|
|
130
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
type CTABannerHeadingProps = BaseProps<HTMLHeadingElement> & {
|
|
62
|
+
children: React.ReactNode | React.ReactNode[];
|
|
63
|
+
} & HeadingProps;
|
|
64
|
+
type CTABannerDescriptionProps = React.HtmlHTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLParagraphElement> & {
|
|
65
|
+
variant?: TextProps['variant'];
|
|
66
|
+
};
|
|
67
|
+
export declare const CTABanner: React.ForwardRefExoticComponent<Omit<CTABannerProps, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
68
|
+
Heading: React.ForwardRefExoticComponent<Omit<CTABannerHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
69
|
+
Description: React.ForwardRefExoticComponent<Omit<CTABannerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
70
|
+
ButtonGroup: React.ForwardRefExoticComponent<Omit<Omit<import("../ButtonGroup").ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
131
71
|
};
|
|
132
72
|
export {};
|
package/lib/CTAForm/CTAForm.d.ts
CHANGED
|
@@ -2,7 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export declare const CTAForm: React.ForwardRefExoticComponent<React.FormHTMLAttributes<HTMLFormElement> & React.RefAttributes<HTMLFormElement>> & {
|
|
3
3
|
Input: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
Confirm: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
Action: React.ForwardRefExoticComponent<Omit<Omit<
|
|
6
|
-
as?: React.ElementType<any> | undefined;
|
|
7
|
-
} & import("../").ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>, "variant" | "type">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
Action: React.ForwardRefExoticComponent<Omit<Omit<import("../").ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
6
|
};
|
package/lib/Card/Card.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export type CardProps = {
|
|
|
37
37
|
fullWidth?: boolean;
|
|
38
38
|
} & Omit<BaseProps<HTMLDivElement>, 'animate'> & Omit<React.ComponentPropsWithoutRef<'div'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> & Pick<React.ComponentPropsWithoutRef<'a'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'>;
|
|
39
39
|
type CardImageProps = ImageProps;
|
|
40
|
-
declare function CardImage({ className, ...rest }: CardImageProps): JSX.Element;
|
|
40
|
+
declare function CardImage({ className, ...rest }: CardImageProps): import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
type CardIconProps = IconProps;
|
|
42
42
|
type CardLabelProps = BaseProps<HTMLSpanElement> & {
|
|
43
43
|
children: React.ReactNode | React.ReactNode[];
|
|
@@ -58,7 +58,7 @@ type CardDescriptionProps = BaseProps<HTMLParagraphElement> & {
|
|
|
58
58
|
export declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
59
59
|
Image: typeof CardImage;
|
|
60
60
|
Label: React.ForwardRefExoticComponent<Omit<CardLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
61
|
-
Icon: ({ className, ...props }: IconProps) => JSX.Element;
|
|
61
|
+
Icon: ({ className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
62
|
Heading: React.ForwardRefExoticComponent<Omit<CardHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
63
63
|
Description: React.ForwardRefExoticComponent<Omit<CardDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
64
64
|
};
|
|
@@ -4,5 +4,5 @@ type CardSkewEffectProps = {
|
|
|
4
4
|
perspective?: number;
|
|
5
5
|
disableSkew?: boolean;
|
|
6
6
|
} & BaseProps<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>;
|
|
7
|
-
export declare const CardSkewEffect: ({ color, children, className, perspective, disableSkew, ...rest }: PropsWithChildren<CardSkewEffectProps>) => JSX.Element;
|
|
7
|
+
export declare const CardSkewEffect: ({ color, children, className, perspective, disableSkew, ...rest }: PropsWithChildren<CardSkewEffectProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -11,12 +11,7 @@ export type ComparisonTableProps<C extends React.ElementType> = BaseProps<C> & {
|
|
|
11
11
|
variant?: 'default' | 'minimal';
|
|
12
12
|
featuredColumn?: number;
|
|
13
13
|
} & React.ComponentPropsWithoutRef<C>;
|
|
14
|
-
export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<
|
|
15
|
-
as?: React.ElementType<any> | undefined;
|
|
16
|
-
heading?: string;
|
|
17
|
-
variant?: "default" | "minimal";
|
|
18
|
-
featuredColumn?: number;
|
|
19
|
-
} & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<ComparisonTableProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
15
|
type RowProps = {
|
|
21
16
|
header?: boolean;
|
|
22
17
|
};
|
|
@@ -30,14 +25,9 @@ export type FootnoteProps = BaseProps<HTMLParagraphElement>;
|
|
|
30
25
|
* They are useful for comparing products, plans, or features in marketing pages.
|
|
31
26
|
* @see https://primer.style/brand/components/ComparisonTable
|
|
32
27
|
*/
|
|
33
|
-
export declare const ComparisonTable: React.ForwardRefExoticComponent<Omit<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
featuredColumn?: number;
|
|
38
|
-
} & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
39
|
-
Row: ({ children, ...rest }: PropsWithChildren<RowProps>) => JSX.Element;
|
|
40
|
-
Cell: ({ as, children, ...props }: PropsWithChildren<CellProps>) => JSX.Element;
|
|
41
|
-
Footnote: ({ children, ...props }: PropsWithChildren<FootnoteProps>) => JSX.Element;
|
|
28
|
+
export declare const ComparisonTable: React.ForwardRefExoticComponent<Omit<ComparisonTableProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
29
|
+
Row: ({ children, ...rest }: PropsWithChildren<RowProps>) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
Cell: ({ as, children, ...props }: PropsWithChildren<CellProps>) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
Footnote: ({ children, ...props }: PropsWithChildren<FootnoteProps>) => import("react/jsx-runtime").JSX.Element;
|
|
42
32
|
};
|
|
43
33
|
export {};
|
|
@@ -5,5 +5,5 @@ type ExpandableArrowProps = {
|
|
|
5
5
|
hidden?: boolean;
|
|
6
6
|
reverse?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare function ExpandableArrow({ className, expanded, reverse, hidden, ...rest }: ExpandableArrowProps): JSX.Element;
|
|
8
|
+
export declare function ExpandableArrow({ className, expanded, reverse, hidden, ...rest }: ExpandableArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
package/lib/FAQ/FAQ.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type FAQSubheadingProps = BaseProps<HTMLHeadingElement> & {
|
|
|
18
18
|
children: React.ReactNode | React.ReactNode[];
|
|
19
19
|
as?: Exclude<HeadingProps['as'], 'h1'>;
|
|
20
20
|
} & HeadingProps;
|
|
21
|
-
declare function FAQSubheading({ children, className, as, size, weight, ...rest }: FAQSubheadingProps): JSX.Element;
|
|
21
|
+
declare function FAQSubheading({ children, className, as, size, weight, ...rest }: FAQSubheadingProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
/**
|
|
23
23
|
* FAQ component:
|
|
24
24
|
* {@link https://primer.style/brand/components/FAQ/ See usage examples}.
|
package/lib/FAQ/FAQGroup.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ import { FAQSubheadingProps } from './';
|
|
|
6
6
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css';
|
|
7
7
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css';
|
|
8
8
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css';
|
|
9
|
-
declare function _Heading({ children, className, as, ...rest }: FAQSubheadingProps): JSX.Element;
|
|
9
|
+
declare function _Heading({ children, className, as, ...rest }: FAQSubheadingProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export type FAQGroupProps = React.PropsWithChildren<{
|
|
11
11
|
id?: string;
|
|
12
12
|
defaultSelectedIndex?: number;
|
|
13
13
|
tabAttributes?: (children: ReactElement, index: number) => Record<string, unknown>;
|
|
14
14
|
}>;
|
|
15
|
-
declare function _FAQGroup({ children, id, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): JSX.Element;
|
|
15
|
+
declare function _FAQGroup({ children, id, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
/**
|
|
17
17
|
* FAQGroup component:
|
|
18
18
|
* {@link https://primer.style/brand/components/FAQ#grouped-faqs See usage examples}.
|
|
@@ -10,7 +10,7 @@ type FootnotesProps = {
|
|
|
10
10
|
as?: (typeof FootnotesTags)[number];
|
|
11
11
|
visuallyHiddenHeading?: string;
|
|
12
12
|
} & FootnotesRestrictedPolymorphism;
|
|
13
|
-
declare function Root({ as, className, children, visuallyHiddenHeading, ...rest }: FootnotesProps): JSX.Element;
|
|
13
|
+
declare function Root({ as, className, children, visuallyHiddenHeading, ...rest }: FootnotesProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare const FootnotesItemTags: readonly ["a", "p"];
|
|
15
15
|
type DefaultFootnotesItemProps = {
|
|
16
16
|
_variant?: 'disclaimer';
|
|
@@ -20,7 +20,7 @@ type CitationFootnotesItemProps = {
|
|
|
20
20
|
href?: string;
|
|
21
21
|
};
|
|
22
22
|
type FootnotesItemProps = (DefaultFootnotesItemProps | CitationFootnotesItemProps) & React.HTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLParagraphElement>;
|
|
23
|
-
declare function Item({ className, children, _variant, ...rest }: FootnotesItemProps): JSX.Element;
|
|
23
|
+
declare function Item({ className, children, _variant, ...rest }: FootnotesItemProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
/**
|
|
25
25
|
* Footnotes component
|
|
26
26
|
* {@link https://primer.style/brand/components/Footnotes/ See usage examples}.
|
|
@@ -22,4 +22,4 @@ export type FrostedGlassVFXProps = BaseProps<HTMLDivElement> & React.HTMLAttribu
|
|
|
22
22
|
* FrostedGlassVFX component
|
|
23
23
|
* {@link https://primer.style/brand/components/FrostedGlassVFX/ See usage examples}.
|
|
24
24
|
*/
|
|
25
|
-
export declare function FrostedGlassVFX({ hasBorderRadius, children, className, intensity, ...rest }: FrostedGlassVFXProps): JSX.Element;
|
|
25
|
+
export declare function FrostedGlassVFX({ hasBorderRadius, children, className, intensity, ...rest }: FrostedGlassVFXProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/Grid/Grid.d.ts
CHANGED
|
@@ -67,9 +67,9 @@ export declare const Grid: React.NamedExoticComponent<React.HTMLAttributes<"div"
|
|
|
67
67
|
} & BaseProps<HTMLDivElement> & {
|
|
68
68
|
children?: React.ReactNode | undefined;
|
|
69
69
|
}> & {
|
|
70
|
-
readonly type: ({ className, children, as, fullWidth, enableOverlay, ["data-testid"]: testId, ...rest }: PropsWithChildren<GridProps>) => JSX.Element;
|
|
70
|
+
readonly type: ({ className, children, as, fullWidth, enableOverlay, ["data-testid"]: testId, ...rest }: PropsWithChildren<GridProps>) => import("react/jsx-runtime").JSX.Element;
|
|
71
71
|
} & {
|
|
72
|
-
Column: React.MemoExoticComponent<({ children, as, span, start, className, ...rest }: PropsWithChildren<GridColumnProps>) => JSX.Element>;
|
|
72
|
+
Column: React.MemoExoticComponent<({ children, as, span, start, className, ...rest }: PropsWithChildren<GridColumnProps>) => import("react/jsx-runtime").JSX.Element>;
|
|
73
73
|
testIds: {
|
|
74
74
|
root: string;
|
|
75
75
|
};
|
package/lib/Heading/Heading.d.ts
CHANGED
|
@@ -43,5 +43,5 @@ export type HeadingProps = {
|
|
|
43
43
|
letterSpacing?: HeadingLetterSpacingVariants | ResponsiveLetterSpacingMap;
|
|
44
44
|
font?: HeadingFontVariants;
|
|
45
45
|
} & React.HTMLAttributes<HTMLHeadingElement> & BaseProps<HTMLHeadingElement>;
|
|
46
|
-
export declare const Heading: React.ForwardRefExoticComponent<Omit<HeadingProps
|
|
46
|
+
export declare const Heading: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<HeadingProps>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
47
47
|
export {};
|
package/lib/IDE/IDE.d.ts
CHANGED
|
@@ -50,6 +50,40 @@ export type IDEChatMessage = {
|
|
|
50
50
|
codeSnippet?: string;
|
|
51
51
|
highlighter?: 'hljs';
|
|
52
52
|
} & (IDEChatMessageUser | IDEChatMessageAssistant);
|
|
53
|
+
type IDEEditorProps = {
|
|
54
|
+
/**
|
|
55
|
+
* The index of the active tab.
|
|
56
|
+
*/
|
|
57
|
+
activeTab?: number;
|
|
58
|
+
/**
|
|
59
|
+
* An array of IDE editor files.
|
|
60
|
+
*/
|
|
61
|
+
files: IDEEditorFile[];
|
|
62
|
+
/**
|
|
63
|
+
* Determines whether line numbers should be shown in the editor.
|
|
64
|
+
*/
|
|
65
|
+
showLineNumbers?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Controls the size of the editor text.
|
|
68
|
+
*/
|
|
69
|
+
size?: 'small' | 'medium' | 'large';
|
|
70
|
+
/**
|
|
71
|
+
* Used for triggering animation externally.
|
|
72
|
+
*/
|
|
73
|
+
triggerAnimation?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Determines whether the replay button should be shown.
|
|
76
|
+
*/
|
|
77
|
+
showReplayButton?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Test id for the IDE.
|
|
80
|
+
*/
|
|
81
|
+
'data-testid'?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Enable user customisation of the icons used in file tabs.
|
|
84
|
+
*/
|
|
85
|
+
tabIcons?: IDEEditorTabIcon;
|
|
86
|
+
} & BaseProps<HTMLDivElement>;
|
|
53
87
|
export type IDEEditorFile = {
|
|
54
88
|
name: string;
|
|
55
89
|
/**
|
|
@@ -86,7 +120,7 @@ export declare const IDE: React.NamedExoticComponent<{
|
|
|
86
120
|
} & BaseProps<HTMLDivElement> & {
|
|
87
121
|
children?: React.ReactNode | undefined;
|
|
88
122
|
}> & {
|
|
89
|
-
readonly type: ({ children, className, "data-testid": testId, height, variant, ...rest }: PropsWithChildren<IDEProps>) => JSX.Element;
|
|
123
|
+
readonly type: ({ children, className, "data-testid": testId, height, variant, ...rest }: PropsWithChildren<IDEProps>) => import("react/jsx-runtime").JSX.Element;
|
|
90
124
|
} & {
|
|
91
125
|
testIds: {
|
|
92
126
|
root: string;
|
|
@@ -95,40 +129,7 @@ export declare const IDE: React.NamedExoticComponent<{
|
|
|
95
129
|
readonly editorContent: string;
|
|
96
130
|
readonly editorTabs: string;
|
|
97
131
|
};
|
|
98
|
-
Chat: React.MemoExoticComponent<({ "data-testid": testId, script, animationDelay, alternativeText, ...rest }: IDEChatProps) => JSX.Element>;
|
|
99
|
-
Editor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<
|
|
100
|
-
/**
|
|
101
|
-
* The index of the active tab.
|
|
102
|
-
*/
|
|
103
|
-
activeTab?: number;
|
|
104
|
-
/**
|
|
105
|
-
* An array of IDE editor files.
|
|
106
|
-
*/
|
|
107
|
-
files: IDEEditorFile[];
|
|
108
|
-
/**
|
|
109
|
-
* Determines whether line numbers should be shown in the editor.
|
|
110
|
-
*/
|
|
111
|
-
showLineNumbers?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* Controls the size of the editor text.
|
|
114
|
-
*/
|
|
115
|
-
size?: "small" | "medium" | "large";
|
|
116
|
-
/**
|
|
117
|
-
* Used for triggering animation externally.
|
|
118
|
-
*/
|
|
119
|
-
triggerAnimation?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Determines whether the replay button should be shown.
|
|
122
|
-
*/
|
|
123
|
-
showReplayButton?: boolean;
|
|
124
|
-
/**
|
|
125
|
-
* Test id for the IDE.
|
|
126
|
-
*/
|
|
127
|
-
'data-testid'?: string;
|
|
128
|
-
/**
|
|
129
|
-
* Enable user customisation of the icons used in file tabs.
|
|
130
|
-
*/
|
|
131
|
-
tabIcons?: IDEEditorTabIcon;
|
|
132
|
-
} & BaseProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
|
|
132
|
+
Chat: React.MemoExoticComponent<({ "data-testid": testId, script, animationDelay, alternativeText, ...rest }: IDEChatProps) => import("react/jsx-runtime").JSX.Element>;
|
|
133
|
+
Editor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDEEditorProps, "ref"> & React.RefAttributes<HTMLDivElement>>>;
|
|
133
134
|
};
|
|
134
135
|
export {};
|
package/lib/Icon/Icon.d.ts
CHANGED
|
@@ -19,4 +19,4 @@ export type IconProps = SVGAttributes<SVGElement> & {
|
|
|
19
19
|
hasBackground?: boolean;
|
|
20
20
|
size?: IconSize;
|
|
21
21
|
};
|
|
22
|
-
export declare const Icon: ({ icon: Octicon, className, color, hasBackground, size, ...rest }: IconProps) => JSX.Element;
|
|
22
|
+
export declare const Icon: ({ icon: Octicon, className, color, hasBackground, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
package/lib/Image/Image.d.ts
CHANGED
|
@@ -21,4 +21,4 @@ export type ImageProps = React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<H
|
|
|
21
21
|
}[];
|
|
22
22
|
srcSet?: undefined;
|
|
23
23
|
});
|
|
24
|
-
export declare const Image: ({ animate, aspectRatio, className, as, ref, alt, width, height, media, srcSet, style, borderRadius, ...rest }: ImageProps) => JSX.Element;
|
|
24
|
+
export declare const Image: ({ animate, aspectRatio, className, as, ref, alt, width, height, media, srcSet, style, borderRadius, ...rest }: ImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,4 +14,4 @@ export type InlineLinkProps = BaseProps<HTMLAnchorElement> & {
|
|
|
14
14
|
/**
|
|
15
15
|
* A HTML anchor link component that renders inline with adjacent text.
|
|
16
16
|
*/
|
|
17
|
-
export declare const InlineLink: React.ForwardRefExoticComponent<Omit<InlineLinkProps
|
|
17
|
+
export declare const InlineLink: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<InlineLinkProps>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
package/lib/Label/Label.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { BaseProps } from '../component-helpers';
|
|
|
4
4
|
* Design tokens
|
|
5
5
|
*/
|
|
6
6
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css';
|
|
7
|
+
import { Icon } from '@primer/octicons-react';
|
|
7
8
|
export declare const LabelColors: readonly ["default", "blue", "coral", "green", "gray", "indigo", "lemon", "lime", "orange", "pink", "purple", "red", "teal", "yellow", "blue-purple", "green-blue", "pink-blue", "purple-red", "red-orange"];
|
|
8
9
|
export declare const LabelSizes: readonly ["medium", "large"];
|
|
9
10
|
export declare const defaultLabelColor: "default";
|
|
@@ -12,7 +13,7 @@ export type LabelProps = BaseProps<HTMLSpanElement> & {
|
|
|
12
13
|
/**
|
|
13
14
|
* The leading visual appears before the Label content
|
|
14
15
|
*/
|
|
15
|
-
leadingVisual?: React.ReactNode;
|
|
16
|
+
leadingVisual?: React.ReactNode | Icon;
|
|
16
17
|
/**
|
|
17
18
|
* The color variations available in Label
|
|
18
19
|
*/
|