import { CSSProperties } from 'react'; /** * The one dialog header layout (ASMA-8737), shared by `StyledDialog`, `MinimizableDialog` and * `MinimizableDialogV2`. With a label: the actions row (label + actions) on top, then the title on a * row of its own across the full width. Without a label the title takes the label's place, so title * and actions share one row. Geometry from Figma `_dialog header` (DS_draft 332:64021): a 32 px actions * row, then the title. Below 744 px: 12 px vertical padding, 4 px between the rows, 28 px title lines * (88 px for one line). From 744 px: 16 px padding, no gap, 32 px title lines (96 px for one line). * The `border/separator` line is an inset shadow, not a border: Figma draws the stroke inside those * heights, a CSS border would add 1 px. * * Phone and desktop values use the `max-dialog` / `dialog` variants (the 744 px split, defined once in * the Tailwind config), never a bare mobile utility overridden from 744 px: each micro-app ships its * own `.py-3` / `.text-xl` / `.leading-7`, and a copy loaded after ui-core's stylesheet would beat it. */ export declare const DIALOG_HEADER_CLASSES = "box-border flex w-full min-w-0 max-w-full shrink-0 flex-col bg-white px-4 shadow-[inset_0_-1px_0_var(--colors-gray-200)] max-dialog:gap-1 max-dialog:py-3 dialog:py-4"; /** Figma Helper 14/20 `text-icon/body`, one line with an ellipsis. */ export declare const DIALOG_HEADER_LABEL_CLASSES = "min-w-0 flex-auto truncate text-sm font-normal leading-5 text-delta-700"; /** * Wraps the consumer content in the dialog body. * * Pinned: exactly the space under the header, so an `h-full` form or a self-scrolling view is bounded * there and scrolls on its own, as before the header moved into the body. Without this box `h-full` * resolved against the header too and the body scrolled by H on top of the consumer's scroller. * The basis is `0%`, not `0px`: in a paper without a definite height it falls back to the content. * * Not pinned: content must not stay bounded to the leftover height — a self-scrolling view or an * `h-full` form would otherwise scroll only that strip under a tall header. It takes its natural * height (percentage heights resolve to `auto`), so the body is the one scroller; a single child * still grows to fill a short dialog, keeping a form's footer at the bottom. */ export declare const dialogContentFlowClasses: (pinned: boolean) => string; /** * The scroller's inline style: scroll padding for focus, plus the same offsets as CSS variables so a * sticky child of the content can sit under a pinned header with `top-[var(--dialog-header-offset,0px)]` * (0 when the header scrolls away or is stepped aside). Always set, so a nested dialog never inherits * its parent's offset. * * The content flow is `isolate`d, so a consumer `z-index` stays below the header (z-2): a sticky bar * or a menu that is not portalled can slide under the header, never over the title. */ export declare const dialogScrollerStyle: (scrollPaddingTop: number, scrollPaddingBottom: number) => CSSProperties; /** * Label (if any) on the left, the header actions on the right, 16 px apart on a 32 px row (the height * of the small header buttons). Wraps rather than overflowing at 320 px. */ export declare const DIALOG_HEADER_ACTIONS_ROW_CLASSES = "flex min-h-8 w-full min-w-0 items-center justify-between gap-x-4 max-xs:flex-wrap max-xs:gap-y-1"; /** * The actions row when it also holds the title (no label): top-aligned so the actions stay level with * the first title line however many lines it wraps to, and never wrapped below the title. Pair the * actions group with `min-h-8` so it centres on that first line. */ export declare const DIALOG_HEADER_TITLE_ROW_CLASSES = "flex min-h-8 w-full min-w-0 items-start justify-between gap-x-4"; /** * The title's box inside that row: takes the free width and centres its first line on the 32 px row * (2 px around a 28 px line, none around a 32 px line). */ export declare const DIALOG_HEADER_ROW_TITLE_BOX_CLASSES = "min-w-0 flex-auto max-dialog:py-0.5"; /** The same box beside a 40 px (medium) Close: 6 px around a 28 px line, 4 px around a 32 px line. */ export declare const DIALOG_HEADER_ROW_TITLE_BOX_MEDIUM_CLASSES = "min-w-0 flex-auto max-dialog:py-1.5 dialog:py-1"; /** The header buttons group: 8 px between the 32 px buttons, on the 32 px actions row. */ export declare const DIALOG_HEADER_BUTTONS_CLASSES = "ml-auto flex min-h-8 items-center gap-2"; /** * Title type from Figma: Mobile/Page title 20/28 SemiBold below 744 px, Page title 24/32 SemiBold from * 744 px. Never truncated or clamped: it wraps to as many lines as it needs, breaking an over-long word * rather than scrolling sideways (WCAG 1.4.10). */ export declare const DIALOG_TITLE_CLASSES = "my-0 block min-w-0 whitespace-normal font-semibold text-delta-800 [overflow-wrap:anywhere] hyphens-auto max-dialog:text-xl max-dialog:leading-7 dialog:text-2xl dialog:leading-8";