@primer/react-brand 0.0.0-20260203145136 → 0.0.0-20260204134628
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/Box/Box.d.ts +7 -12
- package/lib/Card/Card.d.ts +1 -3
- package/lib/EyebrowText/EyebrowText.d.ts +14 -0
- package/lib/EyebrowText/index.d.ts +1 -0
- package/lib/Hero/Hero.d.ts +46 -61
- package/lib/animation/AnimationProvider/AnimationProvider.d.ts +3 -3
- package/lib/css/main.css +9633 -10132
- 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 +9 -6
- package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +11 -3
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +5 -3
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pillar/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +5 -3
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +10 -2
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +11 -3
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/recipes/FlexTemplate/FlexTemplate.types.d.ts +3 -1
- package/lib/river/River/River.d.ts +26 -0
- package/package.json +1 -1
- package/lib/Hero/HeroContext.d.ts +0 -34
- package/lib/Hero/sub-components/HeroDescription.d.ts +0 -87
- package/lib/Hero/sub-components/HeroEyebrow.d.ts +0 -4
- package/lib/Hero/sub-components/HeroHeading.d.ts +0 -5
- package/lib/Hero/sub-components/HeroImage.d.ts +0 -38
- package/lib/Hero/sub-components/HeroLabel.d.ts +0 -7
- package/lib/Hero/sub-components/HeroPrimaryAction.d.ts +0 -28
- package/lib/Hero/sub-components/HeroSecondaryAction.d.ts +0 -28
- package/lib/Hero/sub-components/HeroVideo.d.ts +0 -40
- package/lib/Hero/sub-components/index.d.ts +0 -16
- package/lib/TextCursorAnimation/TextCursorAnimation.d.ts +0 -17
- package/lib/TextCursorAnimation/index.d.ts +0 -1
- package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +0 -13
- package/lib/hooks/useCursorAnimation.d.ts +0 -37
- package/lib/hooks/useReducedMotion.d.ts +0 -5
package/lib/Box/Box.d.ts
CHANGED
|
@@ -9,16 +9,11 @@ type ResponsiveSpacingMap = {
|
|
|
9
9
|
wide?: SpacingValues;
|
|
10
10
|
};
|
|
11
11
|
export declare const BoxBackgroundColors: readonly ["default", "inset", "subtle", "overlay"];
|
|
12
|
-
type BackgroundColors = (typeof BoxBackgroundColors)[number]
|
|
12
|
+
type BackgroundColors = (typeof BoxBackgroundColors)[number];
|
|
13
13
|
export declare const BoxBorderRadiusOptions: readonly ["small", "medium", "large", "xlarge", "full"];
|
|
14
14
|
type BorderRadiusOptions = (typeof BoxBorderRadiusOptions)[number];
|
|
15
|
-
export declare const BoxBorderWidthOptions: readonly ["
|
|
15
|
+
export declare const BoxBorderWidthOptions: readonly ["thin", "thick", "thicker"];
|
|
16
16
|
type BorderWidthOptions = (typeof BoxBorderWidthOptions)[number];
|
|
17
|
-
type ResponsiveBorderWidthMap = {
|
|
18
|
-
narrow?: BorderWidthOptions;
|
|
19
|
-
regular?: BorderWidthOptions;
|
|
20
|
-
wide?: BorderWidthOptions;
|
|
21
|
-
};
|
|
22
17
|
export declare const BoxBorderColorOptions: readonly ["default", "muted", "subtle"];
|
|
23
18
|
type BorderColorOptions = (typeof BoxBorderColorOptions)[number];
|
|
24
19
|
type BorderStyleOptions = Extract<React.CSSProperties['borderStyle'], 'solid' | 'none'>;
|
|
@@ -62,11 +57,11 @@ type BoxProps = {
|
|
|
62
57
|
marginInlineStart?: SpacingValues | ResponsiveSpacingMap;
|
|
63
58
|
backgroundColor?: BackgroundColors;
|
|
64
59
|
borderRadius?: BorderRadiusOptions;
|
|
65
|
-
borderWidth?: BorderWidthOptions
|
|
66
|
-
borderBlockStartWidth?: BorderWidthOptions
|
|
67
|
-
borderInlineEndWidth?: BorderWidthOptions
|
|
68
|
-
borderBlockEndWidth?: BorderWidthOptions
|
|
69
|
-
borderInlineStartWidth?: BorderWidthOptions
|
|
60
|
+
borderWidth?: BorderWidthOptions;
|
|
61
|
+
borderBlockStartWidth?: BorderWidthOptions;
|
|
62
|
+
borderInlineEndWidth?: BorderWidthOptions;
|
|
63
|
+
borderBlockEndWidth?: BorderWidthOptions;
|
|
64
|
+
borderInlineStartWidth?: BorderWidthOptions;
|
|
70
65
|
borderColor?: BorderColorOptions;
|
|
71
66
|
borderStyle?: BorderStyleOptions;
|
|
72
67
|
/**
|
package/lib/Card/Card.d.ts
CHANGED
|
@@ -42,9 +42,7 @@ export type CardProps = {
|
|
|
42
42
|
*/
|
|
43
43
|
align?: 'start' | 'center';
|
|
44
44
|
} & Omit<BaseProps<HTMLDivElement>, 'animate'> & Omit<React.ComponentPropsWithoutRef<'div'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> & Pick<React.ComponentPropsWithoutRef<'a'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'>;
|
|
45
|
-
type CardImageProps =
|
|
46
|
-
position?: 'block-start' | 'block-end';
|
|
47
|
-
} & ImageProps;
|
|
45
|
+
type CardImageProps = ImageProps;
|
|
48
46
|
declare function CardImage({ className, ...rest }: CardImageProps): import("react/jsx-runtime").JSX.Element;
|
|
49
47
|
type CardIconProps = IconProps;
|
|
50
48
|
type CardLabelProps = BaseProps<HTMLSpanElement> & {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BaseProps } from '../component-helpers';
|
|
3
|
+
export type EyebrowTextProps = BaseProps<HTMLSpanElement> & {
|
|
4
|
+
['data-testid']?: string;
|
|
5
|
+
} & React.ComponentPropsWithoutRef<'span'>;
|
|
6
|
+
/**
|
|
7
|
+
* EyebrowText is a simple uppercase, muted text label typically used above headings.
|
|
8
|
+
* @see https://primer.style/brand/components/EyebrowText
|
|
9
|
+
*/
|
|
10
|
+
export declare const EyebrowText: React.ForwardRefExoticComponent<Omit<EyebrowTextProps, "ref"> & React.RefAttributes<HTMLSpanElement>> & {
|
|
11
|
+
testIds: {
|
|
12
|
+
root: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EyebrowText';
|
package/lib/Hero/Hero.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
import { HeadingProps } from '../Heading';
|
|
4
|
+
import { TextSizes, TextWeightVariants, ResponsiveWeightMap } from '../Text';
|
|
5
|
+
import { LabelProps } from '../Label';
|
|
2
6
|
import type { BaseProps } from '../component-helpers';
|
|
3
|
-
import type { HeroAlign, HeroVariant } from './HeroContext';
|
|
4
7
|
/**
|
|
5
8
|
* Design tokens
|
|
6
9
|
*/
|
|
7
10
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/hero/base.css';
|
|
8
11
|
export type HeroProps = BaseProps<HTMLElement> & {
|
|
9
|
-
align?:
|
|
12
|
+
align?: 'start' | 'center';
|
|
10
13
|
imageContainerClassName?: string;
|
|
11
14
|
imageContainerStyle?: React.CSSProperties;
|
|
12
|
-
imageContainerRef?: React.RefObject<HTMLDivElement | null>;
|
|
13
|
-
imageBackgroundColor?: 'default' | 'subtle';
|
|
14
|
-
variant?: HeroVariant;
|
|
15
|
-
enableAnimation?: boolean;
|
|
16
15
|
/**
|
|
17
16
|
* Escape-hatch for inserting custom React components.
|
|
18
17
|
* Warning:
|
|
@@ -22,16 +21,25 @@ export type HeroProps = BaseProps<HTMLElement> & {
|
|
|
22
21
|
trailingComponent?: React.FunctionComponent;
|
|
23
22
|
'data-testid'?: string;
|
|
24
23
|
};
|
|
24
|
+
type HeroHeadingProps = Omit<HeadingProps, 'as'> & {
|
|
25
|
+
fullWidth?: boolean;
|
|
26
|
+
};
|
|
27
|
+
type HeroVideoProps = {
|
|
28
|
+
position?: 'inline-end' | 'block-end';
|
|
29
|
+
'data-testid'?: string;
|
|
30
|
+
} & PropsWithChildren<BaseProps<HTMLDivElement>>;
|
|
31
|
+
type HeroEyebrowProps = PropsWithChildren<BaseProps<HTMLDivElement>>;
|
|
32
|
+
type HeroLabelProps = LabelProps & BaseProps<HTMLSpanElement>;
|
|
25
33
|
export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<HeroProps>, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
26
|
-
Heading: React.ForwardRefExoticComponent<Omit<
|
|
34
|
+
Heading: React.ForwardRefExoticComponent<Omit<HeroHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
27
35
|
Description: React.ForwardRefExoticComponent<(Omit<{
|
|
28
|
-
size?: typeof
|
|
29
|
-
weight?:
|
|
36
|
+
size?: (typeof TextSizes)[number];
|
|
37
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
30
38
|
} & BaseProps<HTMLParagraphElement> & {
|
|
31
39
|
font?: import("..").TextFontVariants;
|
|
32
|
-
size?: typeof
|
|
40
|
+
size?: (typeof TextSizes)[number];
|
|
33
41
|
variant?: typeof import("..").TextVariants[number];
|
|
34
|
-
weight?:
|
|
42
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
35
43
|
align?: "start" | "center" | "end";
|
|
36
44
|
hasAntiAliasing?: boolean;
|
|
37
45
|
} & {
|
|
@@ -41,13 +49,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
41
49
|
} & {
|
|
42
50
|
children?: React.ReactNode | undefined;
|
|
43
51
|
}, "ref"> | Omit<{
|
|
44
|
-
size?: typeof
|
|
45
|
-
weight?:
|
|
52
|
+
size?: (typeof TextSizes)[number];
|
|
53
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
46
54
|
} & BaseProps<HTMLParagraphElement> & {
|
|
47
55
|
font?: import("..").TextFontVariants;
|
|
48
|
-
size?: typeof
|
|
56
|
+
size?: (typeof TextSizes)[number];
|
|
49
57
|
variant?: typeof import("..").TextVariants[number];
|
|
50
|
-
weight?:
|
|
58
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
51
59
|
align?: "start" | "center" | "end";
|
|
52
60
|
hasAntiAliasing?: boolean;
|
|
53
61
|
} & {
|
|
@@ -57,13 +65,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
57
65
|
} & {
|
|
58
66
|
children?: React.ReactNode | undefined;
|
|
59
67
|
}, "ref"> | Omit<{
|
|
60
|
-
size?: typeof
|
|
61
|
-
weight?:
|
|
68
|
+
size?: (typeof TextSizes)[number];
|
|
69
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
62
70
|
} & BaseProps<HTMLParagraphElement> & {
|
|
63
71
|
font?: import("..").TextFontVariants;
|
|
64
|
-
size?: typeof
|
|
72
|
+
size?: (typeof TextSizes)[number];
|
|
65
73
|
variant?: typeof import("..").TextVariants[number];
|
|
66
|
-
weight?:
|
|
74
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
67
75
|
align?: "start" | "center" | "end";
|
|
68
76
|
hasAntiAliasing?: boolean;
|
|
69
77
|
} & {
|
|
@@ -73,13 +81,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
73
81
|
} & {
|
|
74
82
|
children?: React.ReactNode | undefined;
|
|
75
83
|
}, "ref"> | Omit<{
|
|
76
|
-
size?: typeof
|
|
77
|
-
weight?:
|
|
84
|
+
size?: (typeof TextSizes)[number];
|
|
85
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
78
86
|
} & BaseProps<HTMLParagraphElement> & {
|
|
79
87
|
font?: import("..").TextFontVariants;
|
|
80
|
-
size?: typeof
|
|
88
|
+
size?: (typeof TextSizes)[number];
|
|
81
89
|
variant?: typeof import("..").TextVariants[number];
|
|
82
|
-
weight?:
|
|
90
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
83
91
|
align?: "start" | "center" | "end";
|
|
84
92
|
hasAntiAliasing?: boolean;
|
|
85
93
|
} & {
|
|
@@ -89,13 +97,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
89
97
|
} & {
|
|
90
98
|
children?: React.ReactNode | undefined;
|
|
91
99
|
}, "ref"> | Omit<{
|
|
92
|
-
size?: typeof
|
|
93
|
-
weight?:
|
|
100
|
+
size?: (typeof TextSizes)[number];
|
|
101
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
94
102
|
} & BaseProps<HTMLParagraphElement> & {
|
|
95
103
|
font?: import("..").TextFontVariants;
|
|
96
|
-
size?: typeof
|
|
104
|
+
size?: (typeof TextSizes)[number];
|
|
97
105
|
variant?: typeof import("..").TextVariants[number];
|
|
98
|
-
weight?:
|
|
106
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
99
107
|
align?: "start" | "center" | "end";
|
|
100
108
|
hasAntiAliasing?: boolean;
|
|
101
109
|
} & {
|
|
@@ -108,14 +116,14 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
108
116
|
PrimaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
109
117
|
as?: "a" | "button";
|
|
110
118
|
href: string;
|
|
111
|
-
} &
|
|
119
|
+
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
112
120
|
as?: "a";
|
|
113
121
|
} & {
|
|
114
122
|
children?: React.ReactNode | undefined;
|
|
115
123
|
}, "ref"> | Omit<{
|
|
116
124
|
as?: "a" | "button";
|
|
117
125
|
href: string;
|
|
118
|
-
} &
|
|
126
|
+
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
119
127
|
as?: "button";
|
|
120
128
|
} & {
|
|
121
129
|
children?: React.ReactNode | undefined;
|
|
@@ -123,21 +131,20 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
123
131
|
SecondaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
124
132
|
as?: "a" | "button";
|
|
125
133
|
href: string;
|
|
126
|
-
} &
|
|
134
|
+
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
127
135
|
as?: "a";
|
|
128
136
|
} & {
|
|
129
137
|
children?: React.ReactNode | undefined;
|
|
130
138
|
}, "ref"> | Omit<{
|
|
131
139
|
as?: "a" | "button";
|
|
132
140
|
href: string;
|
|
133
|
-
} &
|
|
141
|
+
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
134
142
|
as?: "button";
|
|
135
143
|
} & {
|
|
136
144
|
children?: React.ReactNode | undefined;
|
|
137
145
|
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
138
146
|
Image: React.ForwardRefExoticComponent<(Omit<{
|
|
139
|
-
position?:
|
|
140
|
-
enableBorder?: boolean;
|
|
147
|
+
position?: "inline-end" | "block-end";
|
|
141
148
|
} & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
142
149
|
src: string;
|
|
143
150
|
alt: string;
|
|
@@ -149,8 +156,7 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
149
156
|
as?: "img";
|
|
150
157
|
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
151
158
|
}, "ref"> | Omit<{
|
|
152
|
-
position?:
|
|
153
|
-
enableBorder?: boolean;
|
|
159
|
+
position?: "inline-end" | "block-end";
|
|
154
160
|
} & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
155
161
|
src: string;
|
|
156
162
|
alt: string;
|
|
@@ -166,33 +172,12 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
166
172
|
}[];
|
|
167
173
|
srcSet?: undefined;
|
|
168
174
|
}, "ref">) & React.RefAttributes<HTMLImageElement>>;
|
|
169
|
-
Video: React.ForwardRefExoticComponent<
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
'data-testid'?: string;
|
|
173
|
-
} & BaseProps<HTMLDivElement> & {
|
|
174
|
-
children?: React.ReactNode | undefined;
|
|
175
|
-
} & {
|
|
176
|
-
poster?: never;
|
|
177
|
-
posterAltText?: never;
|
|
178
|
-
posterTitle?: never;
|
|
179
|
-
}, "ref"> | Omit<{
|
|
180
|
-
position?: import("./HeroContext").HeroMediaPositions;
|
|
181
|
-
enableBorder?: boolean;
|
|
182
|
-
'data-testid'?: string;
|
|
183
|
-
} & BaseProps<HTMLDivElement> & {
|
|
184
|
-
children?: React.ReactNode | undefined;
|
|
185
|
-
} & {
|
|
186
|
-
poster: string;
|
|
187
|
-
posterAltText: string;
|
|
188
|
-
posterTitle: string;
|
|
189
|
-
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
190
|
-
Label: React.ForwardRefExoticComponent<Omit<import("./sub-components").HeroLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
191
|
-
Eyebrow: React.ForwardRefExoticComponent<Omit<import("./sub-components").HeroEyebrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
175
|
+
Video: React.ForwardRefExoticComponent<Omit<HeroVideoProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
176
|
+
Label: React.ForwardRefExoticComponent<Omit<HeroLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
177
|
+
Eyebrow: React.ForwardRefExoticComponent<Omit<HeroEyebrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
192
178
|
testIds: {
|
|
193
179
|
root: string;
|
|
194
180
|
readonly video: string;
|
|
195
|
-
readonly grid: string;
|
|
196
|
-
readonly imageWrapper: string;
|
|
197
181
|
};
|
|
198
182
|
};
|
|
183
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren } from 'react';
|
|
|
3
3
|
* Design tokens
|
|
4
4
|
*/
|
|
5
5
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/animation/base.css';
|
|
6
|
-
export declare const AnimationVariants: readonly ["fade-in", "fade-out", "slide-in-up", "slide-in-down", "slide-in-left", "slide-in-right", "scale-in-up", "scale-in-down", "scale-in", "fill-in-top", "scale-in-right", "scale-in-left", "fill-in-right"
|
|
6
|
+
export declare const AnimationVariants: readonly ["fade-in", "fade-out", "slide-in-up", "slide-in-down", "slide-in-left", "slide-in-right", "scale-in-up", "scale-in-down", "scale-in", "fill-in-top", "scale-in-right", "scale-in-left", "fill-in-right"];
|
|
7
7
|
type Variant = (typeof AnimationVariants)[number];
|
|
8
8
|
type VariantAdvanced = {
|
|
9
9
|
variant: Variant;
|
|
@@ -12,7 +12,7 @@ type VariantAdvanced = {
|
|
|
12
12
|
ease?: string;
|
|
13
13
|
};
|
|
14
14
|
export type AnimateProps = Variant | VariantAdvanced;
|
|
15
|
-
type AnimationTrigger = 'click' | 'on-visible'
|
|
15
|
+
type AnimationTrigger = 'click' | 'on-visible';
|
|
16
16
|
type IntersectionVisibilityeOptions = 'bottom-of-screen' | 'middle-of-screen' | 'about-to-leave' | number;
|
|
17
17
|
type AnimationProviderProps = {
|
|
18
18
|
/**
|
|
@@ -20,7 +20,7 @@ type AnimationProviderProps = {
|
|
|
20
20
|
*/
|
|
21
21
|
disableAnimations?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* Controls the trigger method for the animation. One of `click
|
|
23
|
+
* Controls the trigger method for the animation. One of `click` or `on-visible`.
|
|
24
24
|
*/
|
|
25
25
|
animationTrigger?: AnimationTrigger;
|
|
26
26
|
/**
|