@primer/react-brand 0.63.0 → 0.64.0
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 +12 -7
- package/lib/Card/Card.d.ts +3 -1
- package/lib/Hero/Hero.d.ts +61 -46
- package/lib/Hero/HeroContext.d.ts +34 -0
- package/lib/Hero/sub-components/HeroDescription.d.ts +87 -0
- package/lib/Hero/sub-components/HeroEyebrow.d.ts +4 -0
- package/lib/Hero/sub-components/HeroHeading.d.ts +5 -0
- package/lib/Hero/sub-components/HeroImage.d.ts +38 -0
- package/lib/Hero/sub-components/HeroLabel.d.ts +7 -0
- package/lib/Hero/sub-components/HeroPrimaryAction.d.ts +28 -0
- package/lib/Hero/sub-components/HeroSecondaryAction.d.ts +28 -0
- package/lib/Hero/sub-components/HeroVideo.d.ts +40 -0
- package/lib/Hero/sub-components/index.d.ts +16 -0
- package/lib/TextCursorAnimation/TextCursorAnimation.d.ts +17 -0
- package/lib/TextCursorAnimation/index.d.ts +1 -0
- package/lib/animation/AnimationProvider/AnimationProvider.d.ts +3 -3
- package/lib/css/main.css +10193 -9501
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +13 -0
- package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pagination/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pillar/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pillar/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/hooks/useCursorAnimation.d.ts +37 -0
- package/lib/hooks/useReducedMotion.d.ts +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/recipes/FlexTemplate/FlexTemplate.types.d.ts +1 -3
- package/package.json +1 -1
package/lib/Box/Box.d.ts
CHANGED
|
@@ -9,11 +9,16 @@ 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] | AnyString;
|
|
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 ["thin", "thick", "thicker"];
|
|
15
|
+
export declare const BoxBorderWidthOptions: readonly ["none", "thin", "thick", "thicker"];
|
|
16
16
|
type BorderWidthOptions = (typeof BoxBorderWidthOptions)[number];
|
|
17
|
+
type ResponsiveBorderWidthMap = {
|
|
18
|
+
narrow?: BorderWidthOptions;
|
|
19
|
+
regular?: BorderWidthOptions;
|
|
20
|
+
wide?: BorderWidthOptions;
|
|
21
|
+
};
|
|
17
22
|
export declare const BoxBorderColorOptions: readonly ["default", "muted", "subtle"];
|
|
18
23
|
type BorderColorOptions = (typeof BoxBorderColorOptions)[number];
|
|
19
24
|
type BorderStyleOptions = Extract<React.CSSProperties['borderStyle'], 'solid' | 'none'>;
|
|
@@ -57,11 +62,11 @@ type BoxProps = {
|
|
|
57
62
|
marginInlineStart?: SpacingValues | ResponsiveSpacingMap;
|
|
58
63
|
backgroundColor?: BackgroundColors;
|
|
59
64
|
borderRadius?: BorderRadiusOptions;
|
|
60
|
-
borderWidth?: BorderWidthOptions;
|
|
61
|
-
borderBlockStartWidth?: BorderWidthOptions;
|
|
62
|
-
borderInlineEndWidth?: BorderWidthOptions;
|
|
63
|
-
borderBlockEndWidth?: BorderWidthOptions;
|
|
64
|
-
borderInlineStartWidth?: BorderWidthOptions;
|
|
65
|
+
borderWidth?: BorderWidthOptions | ResponsiveBorderWidthMap;
|
|
66
|
+
borderBlockStartWidth?: BorderWidthOptions | ResponsiveBorderWidthMap;
|
|
67
|
+
borderInlineEndWidth?: BorderWidthOptions | ResponsiveBorderWidthMap;
|
|
68
|
+
borderBlockEndWidth?: BorderWidthOptions | ResponsiveBorderWidthMap;
|
|
69
|
+
borderInlineStartWidth?: BorderWidthOptions | ResponsiveBorderWidthMap;
|
|
65
70
|
borderColor?: BorderColorOptions;
|
|
66
71
|
borderStyle?: BorderStyleOptions;
|
|
67
72
|
/**
|
package/lib/Card/Card.d.ts
CHANGED
|
@@ -42,7 +42,9 @@ 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 =
|
|
45
|
+
type CardImageProps = {
|
|
46
|
+
position?: 'block-start' | 'block-end';
|
|
47
|
+
} & ImageProps;
|
|
46
48
|
declare function CardImage({ className, ...rest }: CardImageProps): import("react/jsx-runtime").JSX.Element;
|
|
47
49
|
type CardIconProps = IconProps;
|
|
48
50
|
type CardLabelProps = BaseProps<HTMLSpanElement> & {
|
package/lib/Hero/Hero.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { ButtonBaseProps } from '../Button';
|
|
3
|
-
import { HeadingProps } from '../Heading';
|
|
4
|
-
import { TextSizes, TextWeightVariants, ResponsiveWeightMap } from '../Text';
|
|
5
|
-
import { LabelProps } from '../Label';
|
|
1
|
+
import React from 'react';
|
|
6
2
|
import type { BaseProps } from '../component-helpers';
|
|
3
|
+
import type { HeroAlign, HeroVariant } from './HeroContext';
|
|
7
4
|
/**
|
|
8
5
|
* Design tokens
|
|
9
6
|
*/
|
|
10
7
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/hero/base.css';
|
|
11
8
|
export type HeroProps = BaseProps<HTMLElement> & {
|
|
12
|
-
align?:
|
|
9
|
+
align?: HeroAlign;
|
|
13
10
|
imageContainerClassName?: string;
|
|
14
11
|
imageContainerStyle?: React.CSSProperties;
|
|
12
|
+
imageContainerRef?: React.RefObject<HTMLDivElement | null>;
|
|
13
|
+
imageBackgroundColor?: 'default' | 'subtle';
|
|
14
|
+
variant?: HeroVariant;
|
|
15
|
+
enableAnimation?: boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Escape-hatch for inserting custom React components.
|
|
17
18
|
* Warning:
|
|
@@ -21,25 +22,16 @@ export type HeroProps = BaseProps<HTMLElement> & {
|
|
|
21
22
|
trailingComponent?: React.FunctionComponent;
|
|
22
23
|
'data-testid'?: string;
|
|
23
24
|
};
|
|
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>;
|
|
33
25
|
export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<HeroProps>, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
34
|
-
Heading: React.ForwardRefExoticComponent<Omit<HeroHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
26
|
+
Heading: React.ForwardRefExoticComponent<Omit<import("./sub-components").HeroHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
35
27
|
Description: React.ForwardRefExoticComponent<(Omit<{
|
|
36
|
-
size?:
|
|
37
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
28
|
+
size?: typeof import("..").TextSizes[number];
|
|
29
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
38
30
|
} & BaseProps<HTMLParagraphElement> & {
|
|
39
31
|
font?: import("..").TextFontVariants;
|
|
40
|
-
size?:
|
|
32
|
+
size?: typeof import("..").TextSizes[number];
|
|
41
33
|
variant?: typeof import("..").TextVariants[number];
|
|
42
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
34
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
43
35
|
align?: "start" | "center" | "end";
|
|
44
36
|
hasAntiAliasing?: boolean;
|
|
45
37
|
} & {
|
|
@@ -49,13 +41,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
49
41
|
} & {
|
|
50
42
|
children?: React.ReactNode | undefined;
|
|
51
43
|
}, "ref"> | Omit<{
|
|
52
|
-
size?:
|
|
53
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
44
|
+
size?: typeof import("..").TextSizes[number];
|
|
45
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
54
46
|
} & BaseProps<HTMLParagraphElement> & {
|
|
55
47
|
font?: import("..").TextFontVariants;
|
|
56
|
-
size?:
|
|
48
|
+
size?: typeof import("..").TextSizes[number];
|
|
57
49
|
variant?: typeof import("..").TextVariants[number];
|
|
58
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
50
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
59
51
|
align?: "start" | "center" | "end";
|
|
60
52
|
hasAntiAliasing?: boolean;
|
|
61
53
|
} & {
|
|
@@ -65,13 +57,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
65
57
|
} & {
|
|
66
58
|
children?: React.ReactNode | undefined;
|
|
67
59
|
}, "ref"> | Omit<{
|
|
68
|
-
size?:
|
|
69
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
60
|
+
size?: typeof import("..").TextSizes[number];
|
|
61
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
70
62
|
} & BaseProps<HTMLParagraphElement> & {
|
|
71
63
|
font?: import("..").TextFontVariants;
|
|
72
|
-
size?:
|
|
64
|
+
size?: typeof import("..").TextSizes[number];
|
|
73
65
|
variant?: typeof import("..").TextVariants[number];
|
|
74
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
66
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
75
67
|
align?: "start" | "center" | "end";
|
|
76
68
|
hasAntiAliasing?: boolean;
|
|
77
69
|
} & {
|
|
@@ -81,13 +73,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
81
73
|
} & {
|
|
82
74
|
children?: React.ReactNode | undefined;
|
|
83
75
|
}, "ref"> | Omit<{
|
|
84
|
-
size?:
|
|
85
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
76
|
+
size?: typeof import("..").TextSizes[number];
|
|
77
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
86
78
|
} & BaseProps<HTMLParagraphElement> & {
|
|
87
79
|
font?: import("..").TextFontVariants;
|
|
88
|
-
size?:
|
|
80
|
+
size?: typeof import("..").TextSizes[number];
|
|
89
81
|
variant?: typeof import("..").TextVariants[number];
|
|
90
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
82
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
91
83
|
align?: "start" | "center" | "end";
|
|
92
84
|
hasAntiAliasing?: boolean;
|
|
93
85
|
} & {
|
|
@@ -97,13 +89,13 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
97
89
|
} & {
|
|
98
90
|
children?: React.ReactNode | undefined;
|
|
99
91
|
}, "ref"> | Omit<{
|
|
100
|
-
size?:
|
|
101
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
92
|
+
size?: typeof import("..").TextSizes[number];
|
|
93
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
102
94
|
} & BaseProps<HTMLParagraphElement> & {
|
|
103
95
|
font?: import("..").TextFontVariants;
|
|
104
|
-
size?:
|
|
96
|
+
size?: typeof import("..").TextSizes[number];
|
|
105
97
|
variant?: typeof import("..").TextVariants[number];
|
|
106
|
-
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
98
|
+
weight?: import("..").TextWeightVariants | import("..").ResponsiveWeightMap;
|
|
107
99
|
align?: "start" | "center" | "end";
|
|
108
100
|
hasAntiAliasing?: boolean;
|
|
109
101
|
} & {
|
|
@@ -116,14 +108,14 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
116
108
|
PrimaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
117
109
|
as?: "a" | "button";
|
|
118
110
|
href: string;
|
|
119
|
-
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
111
|
+
} & import("..").ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
120
112
|
as?: "a";
|
|
121
113
|
} & {
|
|
122
114
|
children?: React.ReactNode | undefined;
|
|
123
115
|
}, "ref"> | Omit<{
|
|
124
116
|
as?: "a" | "button";
|
|
125
117
|
href: string;
|
|
126
|
-
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
118
|
+
} & import("..").ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
127
119
|
as?: "button";
|
|
128
120
|
} & {
|
|
129
121
|
children?: React.ReactNode | undefined;
|
|
@@ -131,20 +123,21 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
131
123
|
SecondaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
132
124
|
as?: "a" | "button";
|
|
133
125
|
href: string;
|
|
134
|
-
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
126
|
+
} & import("..").ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
135
127
|
as?: "a";
|
|
136
128
|
} & {
|
|
137
129
|
children?: React.ReactNode | undefined;
|
|
138
130
|
}, "ref"> | Omit<{
|
|
139
131
|
as?: "a" | "button";
|
|
140
132
|
href: string;
|
|
141
|
-
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
133
|
+
} & import("..").ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
142
134
|
as?: "button";
|
|
143
135
|
} & {
|
|
144
136
|
children?: React.ReactNode | undefined;
|
|
145
137
|
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
146
138
|
Image: React.ForwardRefExoticComponent<(Omit<{
|
|
147
|
-
position?: "
|
|
139
|
+
position?: import("./HeroContext").HeroMediaPositions;
|
|
140
|
+
enableBorder?: boolean;
|
|
148
141
|
} & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
149
142
|
src: string;
|
|
150
143
|
alt: string;
|
|
@@ -156,7 +149,8 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
156
149
|
as?: "img";
|
|
157
150
|
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
158
151
|
}, "ref"> | Omit<{
|
|
159
|
-
position?: "
|
|
152
|
+
position?: import("./HeroContext").HeroMediaPositions;
|
|
153
|
+
enableBorder?: boolean;
|
|
160
154
|
} & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
161
155
|
src: string;
|
|
162
156
|
alt: string;
|
|
@@ -172,12 +166,33 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
|
|
|
172
166
|
}[];
|
|
173
167
|
srcSet?: undefined;
|
|
174
168
|
}, "ref">) & React.RefAttributes<HTMLImageElement>>;
|
|
175
|
-
Video: React.ForwardRefExoticComponent<Omit<
|
|
176
|
-
|
|
177
|
-
|
|
169
|
+
Video: React.ForwardRefExoticComponent<(Omit<{
|
|
170
|
+
position?: import("./HeroContext").HeroMediaPositions;
|
|
171
|
+
enableBorder?: boolean;
|
|
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>>;
|
|
178
192
|
testIds: {
|
|
179
193
|
root: string;
|
|
180
194
|
readonly video: string;
|
|
195
|
+
readonly grid: string;
|
|
196
|
+
readonly imageWrapper: string;
|
|
181
197
|
};
|
|
182
198
|
};
|
|
183
|
-
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const HeroAlignOptions: readonly ["start", "center"];
|
|
3
|
+
export type HeroAlign = (typeof HeroAlignOptions)[number];
|
|
4
|
+
export declare const HeroVariantOptions: readonly ["default", "gridline", "gridline-expressive"];
|
|
5
|
+
export type HeroVariant = (typeof HeroVariantOptions)[number];
|
|
6
|
+
export declare const heroMediaPositions: readonly ["block-end", "block-end-padded", "inline-start", "inline-end", "inline-end-padded", "inline-start-padded"];
|
|
7
|
+
export declare const heroMediaInlinePositions: ("block-end" | "block-end-padded" | "inline-start" | "inline-end" | "inline-end-padded" | "inline-start-padded")[];
|
|
8
|
+
export type HeroMediaPositions = (typeof heroMediaPositions)[number];
|
|
9
|
+
export type HeroMediaInlinePositions = (typeof heroMediaInlinePositions)[number];
|
|
10
|
+
type HeroContextType = {
|
|
11
|
+
/**
|
|
12
|
+
* The active variant of the Hero component
|
|
13
|
+
*/
|
|
14
|
+
variant: HeroVariant;
|
|
15
|
+
/**
|
|
16
|
+
* The alignment of the Hero content
|
|
17
|
+
*/
|
|
18
|
+
align: HeroAlign;
|
|
19
|
+
/**
|
|
20
|
+
* Image position within the Hero
|
|
21
|
+
*/
|
|
22
|
+
imagePosition: HeroMediaPositions;
|
|
23
|
+
/**
|
|
24
|
+
* Hero.Image is an inline media position
|
|
25
|
+
*/
|
|
26
|
+
hasInlineMedia: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether animation is enabled for the Hero
|
|
29
|
+
*/
|
|
30
|
+
enableAnimation: boolean;
|
|
31
|
+
};
|
|
32
|
+
export declare const HeroContext: React.Context<HeroContextType | undefined>;
|
|
33
|
+
export declare const useHeroContext: () => HeroContextType;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { TextSizes, TextWeightVariants, ResponsiveWeightMap, TextProps } from '../../Text';
|
|
2
|
+
import type { BaseProps } from '../../component-helpers';
|
|
3
|
+
export type HeroDescriptionProps = {
|
|
4
|
+
size?: (typeof TextSizes)[number];
|
|
5
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
6
|
+
} & BaseProps<HTMLParagraphElement> & TextProps;
|
|
7
|
+
export declare const HeroDescription: import("react").ForwardRefExoticComponent<(Omit<{
|
|
8
|
+
size?: (typeof TextSizes)[number];
|
|
9
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
10
|
+
} & BaseProps<HTMLParagraphElement> & {
|
|
11
|
+
font?: import("../..").TextFontVariants;
|
|
12
|
+
size?: (typeof TextSizes)[number];
|
|
13
|
+
variant?: typeof import("../..").TextVariants[number];
|
|
14
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
15
|
+
align?: "start" | "center" | "end";
|
|
16
|
+
hasAntiAliasing?: boolean;
|
|
17
|
+
} & {
|
|
18
|
+
as?: typeof import("../..").TextTags[number];
|
|
19
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
20
|
+
as?: "p";
|
|
21
|
+
} & {
|
|
22
|
+
children?: import("react").ReactNode | undefined;
|
|
23
|
+
}, "ref"> | Omit<{
|
|
24
|
+
size?: (typeof TextSizes)[number];
|
|
25
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
26
|
+
} & BaseProps<HTMLParagraphElement> & {
|
|
27
|
+
font?: import("../..").TextFontVariants;
|
|
28
|
+
size?: (typeof TextSizes)[number];
|
|
29
|
+
variant?: typeof import("../..").TextVariants[number];
|
|
30
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
31
|
+
align?: "start" | "center" | "end";
|
|
32
|
+
hasAntiAliasing?: boolean;
|
|
33
|
+
} & {
|
|
34
|
+
as?: typeof import("../..").TextTags[number];
|
|
35
|
+
} & import("react").HTMLAttributes<HTMLSpanElement> & BaseProps<HTMLSpanElement> & {
|
|
36
|
+
as?: "span";
|
|
37
|
+
} & {
|
|
38
|
+
children?: import("react").ReactNode | undefined;
|
|
39
|
+
}, "ref"> | Omit<{
|
|
40
|
+
size?: (typeof TextSizes)[number];
|
|
41
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
42
|
+
} & BaseProps<HTMLParagraphElement> & {
|
|
43
|
+
font?: import("../..").TextFontVariants;
|
|
44
|
+
size?: (typeof TextSizes)[number];
|
|
45
|
+
variant?: typeof import("../..").TextVariants[number];
|
|
46
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
47
|
+
align?: "start" | "center" | "end";
|
|
48
|
+
hasAntiAliasing?: boolean;
|
|
49
|
+
} & {
|
|
50
|
+
as?: typeof import("../..").TextTags[number];
|
|
51
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement> & {
|
|
52
|
+
as?: "div";
|
|
53
|
+
} & {
|
|
54
|
+
children?: import("react").ReactNode | undefined;
|
|
55
|
+
}, "ref"> | Omit<{
|
|
56
|
+
size?: (typeof TextSizes)[number];
|
|
57
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
58
|
+
} & BaseProps<HTMLParagraphElement> & {
|
|
59
|
+
font?: import("../..").TextFontVariants;
|
|
60
|
+
size?: (typeof TextSizes)[number];
|
|
61
|
+
variant?: typeof import("../..").TextVariants[number];
|
|
62
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
63
|
+
align?: "start" | "center" | "end";
|
|
64
|
+
hasAntiAliasing?: boolean;
|
|
65
|
+
} & {
|
|
66
|
+
as?: typeof import("../..").TextTags[number];
|
|
67
|
+
} & import("react").HTMLAttributes<HTMLElement> & BaseProps<HTMLElement> & {
|
|
68
|
+
as?: "strong";
|
|
69
|
+
} & {
|
|
70
|
+
children?: import("react").ReactNode | undefined;
|
|
71
|
+
}, "ref"> | Omit<{
|
|
72
|
+
size?: (typeof TextSizes)[number];
|
|
73
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
74
|
+
} & BaseProps<HTMLParagraphElement> & {
|
|
75
|
+
font?: import("../..").TextFontVariants;
|
|
76
|
+
size?: (typeof TextSizes)[number];
|
|
77
|
+
variant?: typeof import("../..").TextVariants[number];
|
|
78
|
+
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
79
|
+
align?: "start" | "center" | "end";
|
|
80
|
+
hasAntiAliasing?: boolean;
|
|
81
|
+
} & {
|
|
82
|
+
as?: typeof import("../..").TextTags[number];
|
|
83
|
+
} & import("react").HTMLAttributes<HTMLElement> & BaseProps<HTMLElement> & {
|
|
84
|
+
as?: "em";
|
|
85
|
+
} & {
|
|
86
|
+
children?: import("react").ReactNode | undefined;
|
|
87
|
+
}, "ref">) & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../component-helpers';
|
|
3
|
+
export type HeroEyebrowProps = PropsWithChildren<BaseProps<HTMLDivElement>>;
|
|
4
|
+
export declare const HeroEyebrow: React.ForwardRefExoticComponent<Omit<HeroEyebrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HeadingProps } from '../../Heading';
|
|
2
|
+
export type HeroHeadingProps = Omit<HeadingProps, 'as'> & {
|
|
3
|
+
fullWidth?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const HeroHeading: import("react").ForwardRefExoticComponent<Omit<HeroHeadingProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ImageProps } from '../../Image';
|
|
2
|
+
import type { BaseProps } from '../../component-helpers';
|
|
3
|
+
import { type HeroMediaPositions } from '../HeroContext';
|
|
4
|
+
export type HeroImageProps = {
|
|
5
|
+
position?: HeroMediaPositions;
|
|
6
|
+
enableBorder?: boolean;
|
|
7
|
+
} & ImageProps & BaseProps<HTMLImageElement>;
|
|
8
|
+
export declare const HeroImage: import("react").ForwardRefExoticComponent<(Omit<{
|
|
9
|
+
position?: HeroMediaPositions;
|
|
10
|
+
enableBorder?: boolean;
|
|
11
|
+
} & import("react").ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
12
|
+
src: string;
|
|
13
|
+
alt: string;
|
|
14
|
+
aspectRatio?: import("../..").ImageAspectRatio;
|
|
15
|
+
media?: string;
|
|
16
|
+
borderRadius?: import("../..").ImageBorderRadiusOptions;
|
|
17
|
+
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
18
|
+
} & {
|
|
19
|
+
as?: "img";
|
|
20
|
+
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
21
|
+
}, "ref"> | Omit<{
|
|
22
|
+
position?: HeroMediaPositions;
|
|
23
|
+
enableBorder?: boolean;
|
|
24
|
+
} & import("react").ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
|
|
25
|
+
src: string;
|
|
26
|
+
alt: string;
|
|
27
|
+
aspectRatio?: import("../..").ImageAspectRatio;
|
|
28
|
+
media?: string;
|
|
29
|
+
borderRadius?: import("../..").ImageBorderRadiusOptions;
|
|
30
|
+
srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet">;
|
|
31
|
+
} & {
|
|
32
|
+
as: "picture";
|
|
33
|
+
sources?: {
|
|
34
|
+
srcset: string;
|
|
35
|
+
media: string;
|
|
36
|
+
}[];
|
|
37
|
+
srcSet?: undefined;
|
|
38
|
+
}, "ref">) & import("react").RefAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextProps } from '../../Text';
|
|
2
|
+
import type { BaseProps } from '../../component-helpers';
|
|
3
|
+
export type HeroLabelProps = Omit<TextProps, 'as' | 'ref' | 'animate'> & Omit<BaseProps<HTMLSpanElement>, 'animate'> & {
|
|
4
|
+
animate?: boolean;
|
|
5
|
+
animationDelay?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const HeroLabel: import("react").ForwardRefExoticComponent<Omit<HeroLabelProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonBaseProps } from '../../Button';
|
|
3
|
+
import type { BaseProps } from '../../component-helpers';
|
|
4
|
+
type RestrictedPolymorphism = (BaseProps<HTMLAnchorElement> & {
|
|
5
|
+
as?: 'a';
|
|
6
|
+
}) | (BaseProps<HTMLButtonElement> & {
|
|
7
|
+
as?: 'button';
|
|
8
|
+
});
|
|
9
|
+
export type HeroPrimaryActionProps = {
|
|
10
|
+
as?: 'a' | 'button';
|
|
11
|
+
href: string;
|
|
12
|
+
} & ButtonBaseProps & RestrictedPolymorphism;
|
|
13
|
+
export declare const HeroPrimaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
14
|
+
as?: "a" | "button";
|
|
15
|
+
href: string;
|
|
16
|
+
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
17
|
+
as?: "a";
|
|
18
|
+
} & {
|
|
19
|
+
children?: React.ReactNode | undefined;
|
|
20
|
+
}, "ref"> | Omit<{
|
|
21
|
+
as?: "a" | "button";
|
|
22
|
+
href: string;
|
|
23
|
+
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
24
|
+
as?: "button";
|
|
25
|
+
} & {
|
|
26
|
+
children?: React.ReactNode | undefined;
|
|
27
|
+
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonBaseProps } from '../../Button';
|
|
3
|
+
import type { BaseProps } from '../../component-helpers';
|
|
4
|
+
type RestrictedPolymorphism = (BaseProps<HTMLAnchorElement> & {
|
|
5
|
+
as?: 'a';
|
|
6
|
+
}) | (BaseProps<HTMLButtonElement> & {
|
|
7
|
+
as?: 'button';
|
|
8
|
+
});
|
|
9
|
+
export type HeroSecondaryActionProps = {
|
|
10
|
+
as?: 'a' | 'button';
|
|
11
|
+
href: string;
|
|
12
|
+
} & ButtonBaseProps & RestrictedPolymorphism;
|
|
13
|
+
export declare const HeroSecondaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
14
|
+
as?: "a" | "button";
|
|
15
|
+
href: string;
|
|
16
|
+
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
17
|
+
as?: "a";
|
|
18
|
+
} & {
|
|
19
|
+
children?: React.ReactNode | undefined;
|
|
20
|
+
}, "ref"> | Omit<{
|
|
21
|
+
as?: "a" | "button";
|
|
22
|
+
href: string;
|
|
23
|
+
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
24
|
+
as?: "button";
|
|
25
|
+
} & {
|
|
26
|
+
children?: React.ReactNode | undefined;
|
|
27
|
+
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../component-helpers';
|
|
3
|
+
import type { HeroMediaPositions } from '../HeroContext';
|
|
4
|
+
type HeroVideoBaseProps = {
|
|
5
|
+
position?: HeroMediaPositions;
|
|
6
|
+
enableBorder?: boolean;
|
|
7
|
+
'data-testid'?: string;
|
|
8
|
+
} & PropsWithChildren<BaseProps<HTMLDivElement>>;
|
|
9
|
+
type PosterProps = {
|
|
10
|
+
poster?: never;
|
|
11
|
+
posterAltText?: never;
|
|
12
|
+
posterTitle?: never;
|
|
13
|
+
} | {
|
|
14
|
+
poster: string;
|
|
15
|
+
posterAltText: string;
|
|
16
|
+
posterTitle: string;
|
|
17
|
+
};
|
|
18
|
+
export type HeroVideoProps = HeroVideoBaseProps & PosterProps;
|
|
19
|
+
export declare const HeroVideo: React.ForwardRefExoticComponent<(Omit<{
|
|
20
|
+
position?: HeroMediaPositions;
|
|
21
|
+
enableBorder?: boolean;
|
|
22
|
+
'data-testid'?: string;
|
|
23
|
+
} & BaseProps<HTMLDivElement> & {
|
|
24
|
+
children?: React.ReactNode | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
poster?: never;
|
|
27
|
+
posterAltText?: never;
|
|
28
|
+
posterTitle?: never;
|
|
29
|
+
}, "ref"> | Omit<{
|
|
30
|
+
position?: HeroMediaPositions;
|
|
31
|
+
enableBorder?: boolean;
|
|
32
|
+
'data-testid'?: string;
|
|
33
|
+
} & BaseProps<HTMLDivElement> & {
|
|
34
|
+
children?: React.ReactNode | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
poster: string;
|
|
37
|
+
posterAltText: string;
|
|
38
|
+
posterTitle: string;
|
|
39
|
+
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { HeroLabel } from './HeroLabel';
|
|
2
|
+
export type { HeroLabelProps } from './HeroLabel';
|
|
3
|
+
export { HeroHeading } from './HeroHeading';
|
|
4
|
+
export type { HeroHeadingProps } from './HeroHeading';
|
|
5
|
+
export { HeroDescription } from './HeroDescription';
|
|
6
|
+
export type { HeroDescriptionProps } from './HeroDescription';
|
|
7
|
+
export { HeroImage } from './HeroImage';
|
|
8
|
+
export type { HeroImageProps } from './HeroImage';
|
|
9
|
+
export { HeroVideo } from './HeroVideo';
|
|
10
|
+
export type { HeroVideoProps } from './HeroVideo';
|
|
11
|
+
export { HeroEyebrow } from './HeroEyebrow';
|
|
12
|
+
export type { HeroEyebrowProps } from './HeroEyebrow';
|
|
13
|
+
export { HeroPrimaryAction } from './HeroPrimaryAction';
|
|
14
|
+
export type { HeroPrimaryActionProps } from './HeroPrimaryAction';
|
|
15
|
+
export { HeroSecondaryAction } from './HeroSecondaryAction';
|
|
16
|
+
export type { HeroSecondaryActionProps } from './HeroSecondaryAction';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { TextProps } from '../Text/Text';
|
|
3
|
+
export declare const testIds: {
|
|
4
|
+
root: string;
|
|
5
|
+
readonly cursor: string;
|
|
6
|
+
};
|
|
7
|
+
export type TextCursorAnimationProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to animate the text reveal with a sliding wipe animation
|
|
10
|
+
* and a cursor that transitions from grey to green.
|
|
11
|
+
*/
|
|
12
|
+
animate?: boolean;
|
|
13
|
+
['data-testid']?: string;
|
|
14
|
+
delay?: number;
|
|
15
|
+
waitForPageLoad?: boolean;
|
|
16
|
+
} & React.HTMLAttributes<HTMLSpanElement> & Omit<TextProps, 'animate' | 'as'>;
|
|
17
|
+
export declare function TextCursorAnimation({ children, className, animate, 'data-testid': testId, delay, waitForPageLoad, variant, }: PropsWithChildren<TextCursorAnimationProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextCursorAnimation';
|
|
@@ -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", "reveal-in-up"];
|
|
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' | 'immediate';
|
|
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` or `
|
|
23
|
+
* Controls the trigger method for the animation. One of `click`, `on-visible`, or `immediate`.
|
|
24
24
|
*/
|
|
25
25
|
animationTrigger?: AnimationTrigger;
|
|
26
26
|
/**
|