import type { Ref } from 'react'; import type { BaseProps, NoChildrenProp, TestIdProp } from '@pega/cosmos-react-core'; export type HeroBannerMediaAlignment = 'left' | 'right'; export type HeroBannerMediaSize = 'auto' | 'cover' | 'contain'; export type HeroBannerMediaPosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | 'top left' | 'top right' | 'bottom right' | 'bottom left'; export type HeroBannerMediaRepeat = 'no-repeat' | 'repeat' | 'repeat-x' | 'repeat-y'; export interface HeroBannerAction { /** Text of the button. */ label: string; /** Web address the button opens. Addresses that are not http(s) are not rendered as an active button. */ href: string; /** Opens the address in a new tab when true; otherwise it opens in the current tab. */ external?: boolean; } export interface HeroBannerMedia { /** Image source, rendered as a decorative background. */ src: string; /** Side of the text the media appears on. */ alignment?: HeroBannerMediaAlignment; size?: HeroBannerMediaSize; position?: HeroBannerMediaPosition; repeat?: HeroBannerMediaRepeat; } export interface HeroBannerColors { /** Solid color, gradient, or image (`url(...)`). */ background?: string; heading?: string; subheading?: string; body?: string; button?: string; /** Color with transparency. Gradients and images are ignored. */ overlay?: string; } export interface HeroBannerProps extends BaseProps, NoChildrenProp, TestIdProp { /** Heading text, rendered as a level 2 heading. */ heading?: string; /** Text under the heading. */ subheading?: string; /** Plain body text. */ body?: string; /** Primary button. */ action?: HeroBannerAction; /** Decorative media shown beside the text. */ media?: HeroBannerMedia; /** Overrides of the theme styling values. Missing or invalid values use the theme. */ colors?: HeroBannerColors; /** Whether to fill the height of the parent element. */ fitToParent?: boolean; ref?: Ref; } //# sourceMappingURL=HeroBanner.types.d.ts.map