import { MQ, CellProps } from 'newskit'; import { ReactNode } from 'react'; export type As = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span'; export interface TitleOverrides { typographyPreset?: MQ; stylePreset?: MQ; marginBlock?: MQ; marginBlockEnd?: MQ; marginBlockStart?: MQ; marginInlineEnd?: MQ; marginInlineStart?: MQ; paddingBlock?: MQ; paddingInline?: MQ; paddingInlineEnd?: MQ; paddingInlineStart?: MQ; paddingBlockStart?: MQ; paddingBlockEnd?: MQ; as?: As; columnsProps?: CellProps; textAlign?: MQ; } export interface DescriptionOverrides { typographyPreset?: MQ; stylePreset?: MQ; marginBlockEnd?: MQ; removeLastMarginBlockEnd?: boolean; columnsProps?: CellProps; paddingBlock?: MQ; paddingInline?: MQ; textAlign?: MQ; } export interface OverlineOverrides { typographyPreset?: MQ; stylePreset?: MQ; marginBlockEnd?: MQ; marginBlock?: MQ; marginBlockStart?: MQ; marginInlineEnd?: MQ; marginInlineStart?: MQ; paddingBlock?: MQ; paddingInline?: MQ; paddingInlineEnd?: MQ; paddingInlineStart?: MQ; paddingBlockStart?: MQ; paddingBlockEnd?: MQ; } export interface InnerHTML { typographyPreset?: MQ; html: string; } export interface IntroductionProps { title?: string; titleOverrides?: TitleOverrides; description?: string | string[]; descriptionAsElement?: string | React.ReactElement | ReactNode; descriptionOverrides?: DescriptionOverrides; overline?: string; overlineOverrides?: OverlineOverrides; center?: boolean; innerHTML?: InnerHTML; makeBoldTextRegEx?: string; makeBoldTextRegExFlags?: string; id?: string; }