burne-ui 1.6.7 → 1.6.8

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.
Files changed (24) hide show
  1. package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +1 -1
  2. package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  3. package/dist/components/composite/ToggleButtonGroup/index.d.ts +1 -1
  4. package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +2 -1
  5. package/dist/components/core/Dialog/dialogTypes.d.ts +1 -1
  6. package/dist/components/core/Disclosure/disclosureStyles.d.ts +3 -3
  7. package/dist/components/core/Drawer/drawerTypes.d.ts +1 -1
  8. package/dist/components/core/Expandable/expandableStyles.d.ts +3 -7
  9. package/dist/components/core/Popover/popoverContext.d.ts +7 -0
  10. package/dist/components/core/Popover/popoverStyles.d.ts +8 -7
  11. package/dist/components/core/Slider/sliderStyles.d.ts +5 -2
  12. package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
  13. package/dist/components/core/Slider/sliderTypes.d.ts +1 -1
  14. package/dist/components/core/Text/textStyles.d.ts +7 -1
  15. package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +3 -1
  16. package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +4 -0
  17. package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +0 -1
  18. package/dist/components/core/utils/sizeLayout/collapsible.d.ts +25 -0
  19. package/dist/components/core/utils/sizeLayout/index.d.ts +2 -0
  20. package/dist/components/core/utils/sizeLayout/panel.d.ts +8 -6
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +7861 -7779
  23. package/dist/ui.css +104 -0
  24. package/package.json +1 -1
@@ -23,7 +23,7 @@ export type AlertDialogClassNames = {
23
23
  close?: string;
24
24
  };
25
25
  /** Size tokens from shared `PANEL_SIZE_LAYOUT` (AlertDialog slice). */
26
- export type AlertDialogSizePreset = Pick<PanelSizeLayout, "rounded" | "panelMax" | "maxHeight" | "headerPadding" | "bodyPadding" | "footerPadding" | "titleVariant" | "descVariant" | "descClassName" | "bodyVariant" | "iconClass" | "footerButtonSize" | "closeButtonSize"> & {
26
+ export type AlertDialogSizePreset = Pick<PanelSizeLayout, "rounded" | "panelMax" | "maxHeight" | "headerPadding" | "bodyPadding" | "footerPadding" | "titleVariant" | "titleClassName" | "descVariant" | "descClassName" | "bodyVariant" | "iconClass" | "footerButtonSize" | "closeButtonSize"> & {
27
27
  /** Alert header grid gap (`alertHeaderGap` in panel layout). */
28
28
  headerGap: string;
29
29
  };
@@ -3,7 +3,7 @@ export declare const ToggleButtonGroupRoot: import('react').ForwardRefExoticComp
3
3
  children?: import('react').ReactNode;
4
4
  type?: import('./toggleButtonGroupTypes').ToggleButtonGroupType;
5
5
  orientation?: import('./toggleButtonGroupTypes').ToggleButtonGroupOrientation;
6
- separated?: boolean;
6
+ segmented?: boolean;
7
7
  disabled?: boolean;
8
8
  size?: import('../../..').ToggleButtonSize;
9
9
  variant?: import('../../..').ToggleButtonVariant;
@@ -2,7 +2,7 @@ export declare const ToggleButtonGroup: import('react').ForwardRefExoticComponen
2
2
  children?: import('react').ReactNode;
3
3
  type?: import('./toggleButtonGroupTypes').ToggleButtonGroupType;
4
4
  orientation?: import('./toggleButtonGroupTypes').ToggleButtonGroupOrientation;
5
- separated?: boolean;
5
+ segmented?: boolean;
6
6
  disabled?: boolean;
7
7
  size?: import('../../..').ToggleButtonSize;
8
8
  variant?: import('../../..').ToggleButtonVariant;
@@ -12,7 +12,8 @@ export type ToggleButtonGroupProps = Omit<HTMLAttributes<HTMLDivElement>, "defau
12
12
  /** `multiple` — independent toggle; `single` — only one selected (radio). By default `multiple`. */
13
13
  type?: ToggleButtonGroupType;
14
14
  orientation?: ToggleButtonGroupOrientation;
15
- separated?: boolean;
15
+ /** `true` — gap between buttons (like `ButtonGroup` `segmented`), no glue. */
16
+ segmented?: boolean;
16
17
  disabled?: boolean;
17
18
  size?: ToggleButtonSize;
18
19
  variant?: ToggleButtonVariant;
@@ -5,7 +5,7 @@ import { PanelSize, PanelSizeLayout } from '../utils/sizeLayout';
5
5
  export type DialogVariant = "default" | "gloss";
6
6
  export type DialogSize = PanelSize;
7
7
  /** Size tokens from shared `PANEL_SIZE_LAYOUT` (Dialog slice). */
8
- export type DialogSizePreset = Pick<PanelSizeLayout, "rounded" | "panelMax" | "maxHeight" | "headerGap" | "headerPadding" | "bodyPadding" | "footerPadding" | "headingGap" | "titleVariant" | "descVariant" | "descClassName" | "bodyVariant" | "footerButtonSize" | "closeButtonSize">;
8
+ export type DialogSizePreset = Pick<PanelSizeLayout, "rounded" | "panelMax" | "maxHeight" | "headerGap" | "headerPadding" | "bodyPadding" | "footerPadding" | "headingGap" | "titleVariant" | "titleClassName" | "descVariant" | "descClassName" | "bodyVariant" | "footerButtonSize" | "closeButtonSize">;
9
9
  export type DialogClassNames = {
10
10
  trigger?: string;
11
11
  dialog?: string;
@@ -1,7 +1,6 @@
1
1
  import { TEXT_COLOR_TRANSITION } from '../utils/hoverVariant';
2
2
  import { DisclosureGroupContextValue, DisclosureSize, DisclosureVariant } from './disclosureTypes';
3
- export declare const DISCLOSURE_CONTENT_PAD: Record<DisclosureSize, string>;
4
- export declare const DISCLOSURE_TRIGGER_BASE_CLASS = "flex w-full select-none items-center gap-small text-left outline-none focus-ring py-base";
3
+ export declare const DISCLOSURE_TRIGGER_BASE_CLASS = "flex w-full select-none items-center gap-small text-left outline-none focus-ring";
5
4
  export declare const DISCLOSURE_TRIGGER_DISABLED_CLASS = "cursor-not-allowed opacity-48";
6
5
  export declare const DISCLOSURE_TRIGGER_ENABLED_CLASS = "cursor-pointer";
7
6
  export declare const DISCLOSURE_TRIGGER_TITLE_LIFT_CLASS = "min-w-0 flex-1 origin-center will-change-transform";
@@ -16,8 +15,9 @@ export declare const DISCLOSURE_HANDLE_GRIP_CLASS = "h-1 w-10 rounded-full bg-te
16
15
  export declare const DISCLOSURE_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep rounded-mid text-foreground";
17
16
  export declare const DISCLOSURE_GLOSS_CONTENT_CLASS = "gloss-content text-muted";
18
17
  export declare function disclosureTriggerShell(size: DisclosureSize): {
19
- padX: string;
18
+ pad: string;
20
19
  text: import('../Text').TextVariant;
20
+ titleClassName: string;
21
21
  chevron: string;
22
22
  };
23
23
  export declare function disclosureRootClass({ variant, groupedCardShell, className, slotClass, }: {
@@ -8,7 +8,7 @@ export type DrawerExtent = "default" | "mid" | "full";
8
8
  export type DrawerVariant = "default" | "gloss";
9
9
  export type DrawerSize = PanelSize;
10
10
  /** Chrome tokens from shared `PANEL_SIZE_LAYOUT` (Drawer slice). */
11
- export type DrawerSizePreset = Pick<PanelSizeLayout, "rounded" | "headerGap" | "headerPadding" | "bodyPadding" | "footerPadding" | "headingGap" | "titleVariant" | "descVariant" | "descClassName" | "bodyVariant" | "footerButtonSize" | "closeButtonSize">;
11
+ export type DrawerSizePreset = Pick<PanelSizeLayout, "rounded" | "headerGap" | "headerPadding" | "bodyPadding" | "footerPadding" | "headingGap" | "titleVariant" | "titleClassName" | "descVariant" | "descClassName" | "bodyVariant" | "footerButtonSize" | "closeButtonSize">;
12
12
  export type DrawerClassNames = {
13
13
  trigger?: string;
14
14
  dialog?: string;
@@ -1,16 +1,10 @@
1
1
  import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
2
2
  import { ExpandableSize, ExpandableVariant } from './expandableTypes';
3
- export declare const EXPANDABLE_DESCRIPTION_VARIANT: {
4
- readonly small: "small";
5
- readonly base: "small";
6
- readonly mid: "base";
7
- readonly large: "base";
8
- };
9
3
  export declare const EXPANDABLE_ROOT_BASE_CLASS = "rounded-mid text-left text-foreground";
10
4
  export declare const EXPANDABLE_ROOT_SURFACE_CLASS = "border-token bg-surface shadow-token-base";
11
5
  export declare const EXPANDABLE_ROOT_GLOSS_CLASS = "gloss-panel gloss-deep border-0";
12
6
  export declare const EXPANDABLE_GLOSS_CONTENT_CLASS = "gloss-content flex min-w-0 flex-col";
13
- export declare const EXPANDABLE_TRIGGER_BASE_CLASS = "relative w-full overflow-hidden py-base text-left outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary focus-visible:outline-offset-2";
7
+ export declare const EXPANDABLE_TRIGGER_BASE_CLASS = "relative w-full overflow-hidden text-left outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary focus-visible:outline-offset-2";
14
8
  export declare const EXPANDABLE_TRIGGER_DISABLED_CLASS = "cursor-not-allowed opacity-50";
15
9
  export declare const EXPANDABLE_TRIGGER_ENABLED_CLASS = "cursor-pointer";
16
10
  export declare const EXPANDABLE_TRIGGER_LIFT_BASE_CLASS = "relative z-[1] w-full min-w-0 origin-center will-change-transform";
@@ -53,3 +47,5 @@ export declare function expandablePanelClass({ size, className, slotClass, }: {
53
47
  export declare function expandableChevronIconClass(size: ExpandableSize): string;
54
48
  export declare function expandableTriggerChevronIconClass(size: ExpandableSize): string;
55
49
  export declare function expandableTitleVariant(size: ExpandableSize): import('../Text').TextVariant;
50
+ export declare function expandableTitleClassName(size: ExpandableSize): string;
51
+ export declare function expandableDescriptionVariant(size: ExpandableSize): import('../Text').TextVariant;
@@ -12,3 +12,10 @@ export declare function PopoverResolvedSideProvider({ value, children, }: {
12
12
  children: ReactNode;
13
13
  }): import("react/jsx-runtime").JSX.Element;
14
14
  export declare function usePopoverResolvedSide(): PopoverSide;
15
+ export declare function PopoverContentChromeProvider({ unstyled, children, }: {
16
+ unstyled: boolean;
17
+ children: ReactNode;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function usePopoverContentChrome(): {
20
+ unstyled: boolean;
21
+ };
@@ -34,8 +34,7 @@ export declare function popoverGlossPanelClass({ size, unstyled, slotClass, }: {
34
34
  unstyled: boolean;
35
35
  slotClass?: string;
36
36
  }): string;
37
- export declare function popoverGlossContentClass({ size, unstyled, contentGap, gapPropSet, slotClass, }: {
38
- size: PopoverSize;
37
+ export declare function popoverGlossContentClass({ unstyled, contentGap, gapPropSet, slotClass, }: {
39
38
  unstyled: boolean;
40
39
  contentGap: PopoverContentGap;
41
40
  gapPropSet: boolean;
@@ -55,20 +54,22 @@ export declare function popoverArrowClass({ isGloss, arrowSideClass, slotClass,
55
54
  slotClass?: string;
56
55
  className?: string;
57
56
  }): string;
58
- export declare function popoverHeaderClass({ size, slotClass, className, }: {
57
+ export declare function popoverHeaderClass({ size, unstyled, slotClass, className, }: {
59
58
  size: PopoverSize;
59
+ unstyled?: boolean;
60
60
  slotClass?: string;
61
61
  className?: string;
62
62
  }): string;
63
- export declare function popoverTitleClass({ slotClass, className, }: {
63
+ export declare function popoverTitleClass({ size, slotClass, className, }: {
64
+ size: PopoverSize;
64
65
  slotClass?: string;
65
66
  className?: string;
66
67
  }): string;
67
- export declare function popoverBodyClass({ slotClass, className, }: {
68
+ export declare function popoverBodyClass({ size, unstyled, slotClass, className, }: {
69
+ size: PopoverSize;
70
+ unstyled?: boolean;
68
71
  slotClass?: string;
69
72
  className?: string;
70
73
  }): string;
71
74
  export declare function popoverTitleVariant(size: PopoverSize): TextVariant;
72
75
  export declare function popoverDescriptionVariant(size: PopoverSize): TextVariant;
73
- /** Default content gap matches panel size step (`small`→`large`). */
74
- export declare function popoverDefaultContentGap(size: PopoverSize): PopoverContentGap;
@@ -22,11 +22,13 @@ export declare const SLIDER_TRACK_HIT_BASE_CLASS = "relative touch-none select-n
22
22
  export declare const SLIDER_TRACK_HIT_HORIZONTAL_CLASS = "w-full";
23
23
  export declare const SLIDER_TRACK_HIT_VERTICAL_CLASS = "h-48";
24
24
  export declare const SLIDER_MARK_CLASS = "pointer-events-none absolute z-[1] size-1 rounded-[var(--selection-indicator-radius-xsmall)] bg-primary/30";
25
- export declare const SLIDER_THUMB_BUTTON_BASE_CLASS = "absolute z-[2] box-border flex shrink-0 origin-center items-center justify-center m-0 appearance-none border-0 bg-transparent p-0 focus-ring";
25
+ export declare const SLIDER_THUMB_BUTTON_BASE_CLASS = "absolute box-border flex shrink-0 origin-center items-center justify-center m-0 appearance-none border-0 bg-transparent p-0 focus-ring";
26
26
  export declare const SLIDER_THUMB_BUTTON_HORIZONTAL_CLASS = "top-0 h-full w-auto -translate-x-1/2 aspect-square";
27
27
  export declare const SLIDER_THUMB_BUTTON_VERTICAL_CLASS = "left-0 w-full h-auto -translate-y-1/2 aspect-square";
28
28
  export declare const SLIDER_THUMB_BUTTON_DISABLED_CLASS = "cursor-not-allowed";
29
29
  export declare const SLIDER_THUMB_BUTTON_ENABLED_CLASS = "cursor-grab active:cursor-grabbing";
30
+ export declare const SLIDER_THUMB_BUTTON_Z_CLASS = "z-[2]";
31
+ export declare const SLIDER_THUMB_BUTTON_Z_ACTIVE_CLASS = "z-[3]";
30
32
  export declare function sliderRootClass({ orientation, slotClass, className, }: {
31
33
  orientation: SliderOrientation;
32
34
  slotClass?: string;
@@ -53,9 +55,10 @@ export declare function sliderTrackHitAreaClass({ isHorizontal, size, thickness,
53
55
  slotClass?: string;
54
56
  className?: string;
55
57
  }): string;
56
- export declare function sliderThumbButtonClass({ orientation, disabled, slotClass, className, }: {
58
+ export declare function sliderThumbButtonClass({ orientation, disabled, active, slotClass, className, }: {
57
59
  orientation: SliderOrientation;
58
60
  disabled?: boolean;
61
+ active?: boolean;
59
62
  slotClass?: string;
60
63
  className?: string;
61
64
  }): string;
@@ -18,4 +18,4 @@ export declare const SliderThumbButton: import('react').ForwardRefExoticComponen
18
18
  ariaDescribedBy?: string;
19
19
  onPointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
20
20
  onKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
21
- } & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "style" | "className" | "role" | "children" | "onKeyDown" | "onPointerDown" | "disabled"> & import('react').RefAttributes<HTMLButtonElement>>;
21
+ } & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "style" | "className" | "role" | "children" | "onKeyDown" | "onPointerDown" | "disabled" | "active"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -161,7 +161,7 @@ export type SliderThumbButtonProps = {
161
161
  ariaDescribedBy?: string;
162
162
  onPointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
163
163
  onKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
164
- } & Omit<HTMLAttributes<HTMLButtonElement>, "children" | "className" | "style" | "disabled" | "onPointerDown" | "onKeyDown" | "role" | "type">;
164
+ } & Omit<HTMLAttributes<HTMLButtonElement>, "children" | "className" | "style" | "disabled" | "onPointerDown" | "onKeyDown" | "role" | "type" | "active">;
165
165
  export type UseSliderRootStateProps = Omit<SliderProps, "className" | "classNames">;
166
166
  export type FillSpan = {
167
167
  start: number;
@@ -1,6 +1,12 @@
1
1
  import { ElementType } from 'react';
2
2
  import { TextVariant } from './textTypes';
3
- export declare const TEXT_VARIANT_CLASS: Record<TextVariant, string>;
3
+ /**
4
+ * Size + weight only. Line-height is a separate `leading-*` class so callers
5
+ * (and panel titles) can override via `cn` / twMerge without `!important`.
6
+ */
7
+ export declare const TEXT_VARIANT_FACE_CLASS: Record<TextVariant, string>;
8
+ /** Default role line-height — swapped out when `className` has another `leading-*`. */
9
+ export declare const TEXT_VARIANT_LEADING_CLASS: Record<TextVariant, string>;
4
10
  export declare const TEXT_VARIANT_DEFAULT_AS: Record<TextVariant, ElementType>;
5
11
  export declare const TEXT_FOREGROUND_CLASS = "text-foreground";
6
12
  export declare function textRootClass(variant: TextVariant, inheritColor: boolean | undefined, className?: string): string;
@@ -1,7 +1,8 @@
1
1
  import { PointerEvent } from 'react';
2
2
  import { UseToggleButtonAnimationsProps } from './toggleButtonTypes';
3
3
  /**
4
- * Interactive motion + fill: fill starts at the beginning of the squeeze release phase.
4
+ * Interactive motion + fill: fill starts at the beginning of the squeeze release phase,
5
+ * after click has confirmed the next pressed value (on and off share this timing).
5
6
  */
6
7
  export declare function useToggleButtonAnimations({ animated, disabled, variant, groupSegment, forwardedRef, pressed, onFillStart, onPointerEnter, onPointerLeave, onPointerDown, }: UseToggleButtonAnimationsProps): {
7
8
  setRefs: (node: HTMLButtonElement | null) => void;
@@ -11,4 +12,5 @@ export declare function useToggleButtonAnimations({ animated, disabled, variant,
11
12
  handlePointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
12
13
  bindFillRef: (node: HTMLElement | null) => void;
13
14
  queueFillOnClick: (next: boolean) => void;
15
+ displayPressed: boolean;
14
16
  };
@@ -7,6 +7,9 @@ export declare const SELECTION_FILL_READY_ATTR = "data-selection-fill-ready";
7
7
  * Fill for ToggleButton / CalendarInteractiveCell.
8
8
  * Do not set `style={{ transform, opacity }}` on fill — React will overwrite GSAP on parent re-render.
9
9
  * SSR: CSS hides via `[data-selection-fill]:not([data-selection-fill-ready])[data-pressed="false"]`.
10
+ *
11
+ * On and off use the same `selectionFillEase` so appear/disappear feel equally paced
12
+ * (mirroring out→in makes appear snappy and unfill sluggish).
10
13
  */
11
14
  export declare function applyToggleButtonFillInstant(fill: HTMLElement, pressed: boolean): void;
12
15
  export declare function createToggleButtonFillRefCallback(ref: RefObject<HTMLElement | null>, initialPressed: boolean): (node: HTMLElement | null) => void;
@@ -18,4 +21,5 @@ export declare function useToggleButtonFillAnimation(pressed: boolean, fillRef:
18
21
  }): {
19
22
  animateTo: (next: boolean) => void;
20
23
  bindFillRef: (node: HTMLElement | null) => void;
24
+ displayPressed: boolean;
21
25
  };
@@ -17,7 +17,6 @@ export declare function useToggleButtonRootState({ value: itemValue, groupSegmen
17
17
  animated: boolean;
18
18
  classNames: import('./toggleButtonTypes').ToggleButtonClassNames | undefined;
19
19
  roundingClass: string;
20
- buttonClass: string;
21
20
  role: "radio" | undefined;
22
21
  ariaPressed: boolean | undefined;
23
22
  ariaChecked: boolean | undefined;
@@ -0,0 +1,25 @@
1
+ import { TextVariant } from '../../Text';
2
+ import { ComponentSize } from './componentSize';
3
+ export type CollapsibleSize = ComponentSize;
4
+ /**
5
+ * Shared size grid for collapsible surfaces:
6
+ * Disclosure, Expandable (Accordion via Expandable).
7
+ *
8
+ * Paddings mirror panel header/body rhythm, but live here — not `PANEL_SIZE_LAYOUT`.
9
+ */
10
+ export type CollapsibleSizeLayout = {
11
+ /** Trigger / header row (≈ panel `headerPadding`) */
12
+ triggerPadding: string;
13
+ /** Expanded body / panel (≈ panel `bodyPadding`) */
14
+ contentPadding: string;
15
+ titleVariant: TextVariant;
16
+ /**
17
+ * Title line-box — `leading-none` so glyphs sit tight vs chevron.
18
+ * Overridable via Title / trigger title `className` (`leading-*`).
19
+ */
20
+ titleClassName: string;
21
+ descVariant: TextVariant;
22
+ };
23
+ export declare const COLLAPSIBLE_SIZE_LAYOUT: Record<CollapsibleSize, CollapsibleSizeLayout>;
24
+ export declare function resolveCollapsibleSize(size?: CollapsibleSize): CollapsibleSize;
25
+ export declare function collapsibleSizeLayout(size?: CollapsibleSize): CollapsibleSizeLayout;
@@ -6,9 +6,11 @@
6
6
  * - `option` — Checkbox, Radio, Switch, ListBox rows
7
7
  * - `banner` — Alert, Toast
8
8
  * - `panel` — Dialog, AlertDialog, Popover, Card, Drawer
9
+ * - `collapsible` — Disclosure, Expandable (Accordion)
9
10
  */
10
11
  export { type ComponentSize, COMPONENT_SIZES, resolveComponentSize, } from './componentSize';
11
12
  export { type ControlSizeLayout, CONTROL_SIZE_LAYOUT, } from './control';
12
13
  export { type OptionControlSizeLayout, OPTION_CONTROL_SIZE_LAYOUT, } from './option';
13
14
  export { type MessageBannerSize, type MessageBannerLoadingSize, type MessageBannerSizePreset, MESSAGE_BANNER_SIZE, resolveMessageBannerSize, messageBannerSizePreset, alertRootShellClass, toastViewportWidthPx, } from './banner';
14
15
  export { type PanelSize, type PanelSizeLayout, type CardSize, PANEL_SIZE_LAYOUT, CARD_SIZE_LAYOUT, resolvePanelSize, resolveCardSize, panelSizeLayout, cardSizeLayout, } from './panel';
16
+ export { type CollapsibleSize, type CollapsibleSizeLayout, COLLAPSIBLE_SIZE_LAYOUT, resolveCollapsibleSize, collapsibleSizeLayout, } from './collapsible';
@@ -16,27 +16,29 @@ export type PanelSizeLayout = {
16
16
  /** Popover max width */
17
17
  popoverMax: string;
18
18
  maxHeight: string;
19
- /** Dialog / AlertDialog / Card / Drawer header padding */
19
+ /** Dialog / AlertDialog / Card / Drawer / Popover.Header padding */
20
20
  headerPadding: string;
21
- /** Dialog / AlertDialog / Card / Drawer body padding */
21
+ /** Dialog / AlertDialog / Card / Drawer / Popover.Body padding */
22
22
  bodyPadding: string;
23
23
  /** Dialog / AlertDialog / Card / Drawer footer padding */
24
24
  footerPadding: string;
25
- /** Popover single-block content padding */
26
- contentPadding: string;
27
25
  /** Dialog header row gap (heading block | close) — not for title↔description */
28
26
  headerGap: string;
29
27
  /** AlertDialog header grid gap (indicator | title) */
30
28
  alertHeaderGap: string;
31
29
  /** Title + description stack gap */
32
30
  headingGap: string;
33
- /** Popover default content gap class */
34
- contentGap: string;
35
31
  titleVariant: TextVariant;
36
32
  /** AlertDialog title (can read larger than panel title) */
37
33
  alertTitleVariant: TextVariant;
38
34
  descVariant: TextVariant;
39
35
  bodyVariant: TextVariant;
36
+ /**
37
+ * Panel title line-box — `leading-none` so glyphs sit at the header top edge
38
+ * (not vertically centered vs Close). Overridable via Title `className`
39
+ * (`leading-relaxed`, …) — Text keeps role leading as a separate `leading-*`.
40
+ */
41
+ titleClassName: string;
40
42
  descClassName: string;
41
43
  /** AlertDialog status icon box */
42
44
  iconClass: string;