/** * CuiDivider Tailwind class composition — shared between the React and Vue * component libraries. Pure and framework-agnostic: maps the public Divider * API (orientation, label) to class strings built entirely from design tokens. * * The divider is plain markup with no behavior, so both libraries render the * same DOM from these strings — a wrapper, a 1px line, and (labelled, * horizontal only) a caption between two half-lines. * * The divider owns no spacing of its own. It draws a line and nothing else; * the gap around it belongs to whatever is doing the separating, which is the * only place that knows how much room the two groups need. Baking 16px into * the component meant every consumer whose layout already had a gap was * cancelling it back out. * * Figma parity notes (CUI - Components → Divider): * - line colour `border-neutral` #cbd5e1 → `--cui-border-neutral` (slate-300) * - caption `Subtitle/Small` Inter 12/1 #64748b → `--cui-text-subtitle-caption` * - the 10px caption gap has no token — it is a one-off arbitrary value */ export type DividerOrientation = "horizontal" | "vertical"; export interface DividerClassOptions { /** Direction the line runs. Defaults to `horizontal`. */ orientation?: DividerOrientation; /** Whether a caption sits between two half-lines (horizontal only). */ hasLabel?: boolean; } export interface DividerClasses { /** The layout box that wraps the line(s). */ root: string; /** The 1px rule. Rendered twice when a label is present. */ line: string; /** The caption between the two half-lines. */ label: string; } /** * Builds the class strings for one divider. * * A vertical divider is `self-stretch` so it fills the height of the flex row * it sits in; `h-full` alone would resolve against a parent with no set height * and collapse the line to nothing. */ export declare function getDividerClasses({ orientation, hasLabel, }?: DividerClassOptions): DividerClasses;