burne-ui 1.6.8 → 1.6.9

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 (29) hide show
  1. package/dist/components/core/Alert/alertStyles.d.ts +3 -1
  2. package/dist/components/core/Button/buttonStyles.d.ts +1 -0
  3. package/dist/components/core/Checkbox/checkboxStyles.d.ts +3 -2
  4. package/dist/components/core/ComboBox/comboBoxStyles.d.ts +2 -2
  5. package/dist/components/core/Expandable/expandableStyles.d.ts +1 -1
  6. package/dist/components/core/Input/inputStyles.d.ts +3 -11
  7. package/dist/components/core/Radio/radioStyles.d.ts +3 -2
  8. package/dist/components/core/Select/selectStyles.d.ts +2 -2
  9. package/dist/components/core/Slider/sliderStyles.d.ts +2 -1
  10. package/dist/components/core/Switch/switchStyles.d.ts +2 -2
  11. package/dist/components/core/TextArea/textAreaStyles.d.ts +2 -4
  12. package/dist/components/core/TimeField/timeFieldStyles.d.ts +3 -6
  13. package/dist/components/core/Toast/toastStyles.d.ts +4 -3
  14. package/dist/components/core/Tooltip/tooltipStyles.d.ts +10 -7
  15. package/dist/components/core/utils/fieldShellVariant.d.ts +7 -3
  16. package/dist/components/core/utils/hoverVariant.d.ts +1 -1
  17. package/dist/components/core/utils/useFieldShellHoverLift.d.ts +20 -6
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.js +7214 -7280
  20. package/dist/internal.cjs +1 -1
  21. package/dist/internal.js +1 -1
  22. package/dist/theme/themeDefaults.d.ts +1 -1
  23. package/dist/{themeRuntimeContext-CE8HsqSx.js → themeRuntimeContext-DPX6IpU8.js} +1965 -1942
  24. package/dist/themeRuntimeContext-DuLxYkX1.cjs +50 -0
  25. package/dist/tokens/config.d.ts +4 -0
  26. package/dist/tokens/index.d.ts +1 -1
  27. package/dist/ui.css +245 -92
  28. package/package.json +1 -1
  29. package/dist/themeRuntimeContext-zhfbKb8L.cjs +0 -50
@@ -1,10 +1,12 @@
1
1
  import { AlertStatus, AlertVariant } from './alertTypes';
2
2
  export declare const ALERT_VARIANT_SURFACE: Record<Exclude<AlertVariant, "gloss">, string>;
3
- export declare function alertSurfaceClass(variant: AlertVariant, status: AlertStatus): string;
3
+ /** Panel surface follows variant only; status colors the indicator (and AlertDialog mirrors this). */
4
+ export declare function alertSurfaceClass(variant: AlertVariant, _status?: AlertStatus): string;
4
5
  export declare function alertIndicatorWrapperTextClass(status: AlertStatus): string;
5
6
  export declare const ALERT_INDICATOR_BASE_CLASS = "inline-flex shrink-0 items-center justify-center";
6
7
  export declare function alertIndicatorClass(status: AlertStatus, iconSvgClass: string): string;
7
8
  /** Compound slots (`Alert.Content`, `Alert.Message`) — pass-through grid children. */
8
9
  export declare const ALERT_COMPOUND_CONTENTS_CLASS = "contents";
9
10
  export declare const ALERT_TITLE_CLASS = "font-w-mid";
11
+ export declare function alertTitleClass(status: AlertStatus): string;
10
12
  export declare const ALERT_DESCRIPTION_CLASS = "text-muted";
@@ -10,6 +10,7 @@ import { ButtonSize, ButtonStatus, ButtonVariant } from './buttonTypes';
10
10
  export declare const INTERACTIVE_VARIANT_ROOT: Record<ButtonVariant, string>;
11
11
  export declare const BUTTON_VARIANT_HAS_HOVER_SHADOW: Set<ButtonVariant>;
12
12
  export declare const BUTTON_GLOSS_STATUS: Record<ButtonStatus, string>;
13
+ /** Retarget `--color-focus-ring` for `focus-ring` (status soft tokens). */
13
14
  export declare const BUTTON_STATUS_FOCUS_OUTLINE: Record<ButtonStatus, string>;
14
15
  export declare const BUTTON_STATUS_RIPPLE: Record<ButtonStatus, string>;
15
16
  export declare const BUTTON_PRIMARY_STATUS_RIPPLE: Record<SemanticSurfaceStatus, string>;
@@ -1,8 +1,10 @@
1
+ import { CheckboxSize } from './checkboxTypes';
1
2
  export declare const CHECKBOX_SIZE_LAYOUT: Record<import('../utils/sizeLayout').ComponentSize, import('../utils/sizeLayout').OptionControlSizeLayout>;
2
3
  export declare const CHECKBOX_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
3
4
  export declare const CHECKBOX_INPUT_TRACK_OVERLAY_CLASS = "absolute inset-0 z-[2] m-0 h-full w-full cursor-pointer opacity-0";
4
5
  export declare const CHECKBOX_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center";
5
- export declare const CHECKBOX_CONTROL_TRACK_CLASS = "relative inline-flex items-center justify-center";
6
+ export declare const CHECKBOX_CONTROL_TRACK_CLASS = "relative inline-flex items-center justify-center has-focus-ring";
7
+ export declare function checkboxControlTrackClass(size: CheckboxSize): string;
6
8
  export declare const CHECKBOX_CONTENT_COMPOUND_CLASS = "min-w-0";
7
9
  export declare const CHECKBOX_CONTENT_POINTER_CLASS = "cursor-pointer";
8
10
  export declare const CHECKBOX_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0 font-w-mid";
@@ -17,7 +19,6 @@ export declare const CHECKBOX_SIMPLE_LABEL_WRAP_CLASS = "origin-center will-chan
17
19
  export declare const CHECKBOX_SIMPLE_LABEL_TEXT_CLASS = "min-w-0 font-w-mid";
18
20
  export declare const CHECKBOX_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-left";
19
21
  export declare const CHECKBOX_ROOT_DISABLED_CLASS = "cursor-not-allowed";
20
- export declare const CHECKBOX_ROOT_FOCUS_CLASS = "has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-primary";
21
22
  export declare const CHECKBOX_COMPOUND_FIELDSET_CLASS = "m-0 min-w-0 border-0 p-0";
22
23
  export declare const CHECKBOX_CONTENT_PASS_THROUGH_CLASS = "contents";
23
24
  export declare function checkboxControlCellClass(): string;
@@ -12,9 +12,9 @@ export declare const COMBOBOX_POPOVER_BODY_CLASS = "gap-0 p-base";
12
12
  export declare const COMBOBOX_LISTBOX_CLASS = "overflow-y-auto overflow-x-hidden";
13
13
  export declare const COMBOBOX_INPUT_GROUP_DISABLED_CLASS = "cursor-not-allowed opacity-55 shadow-token-base";
14
14
  export declare const COMBOBOX_INPUT_GROUP_ENABLED_CLASS = "cursor-pointer";
15
- export declare function comboBoxShellSurface({ variant, status, }: {
15
+ export declare function comboBoxShellSurface({ variant, }: {
16
16
  variant: InputVariant;
17
- status: InputStatus;
17
+ status?: InputStatus;
18
18
  }): string;
19
19
  export declare function comboBoxGroupShellClass(groupSegment?: ButtonGroupSegment): string;
20
20
  export declare function comboBoxInputGroupClass({ variant, status, disabled, groupSegment, shellHoverMotionClass, className, slotClass, }: {
@@ -4,7 +4,7 @@ export declare const EXPANDABLE_ROOT_BASE_CLASS = "rounded-mid text-left text-fo
4
4
  export declare const EXPANDABLE_ROOT_SURFACE_CLASS = "border-token bg-surface shadow-token-base";
5
5
  export declare const EXPANDABLE_ROOT_GLOSS_CLASS = "gloss-panel gloss-deep border-0";
6
6
  export declare const EXPANDABLE_GLOSS_CONTENT_CLASS = "gloss-content flex min-w-0 flex-col";
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";
7
+ export declare const EXPANDABLE_TRIGGER_BASE_CLASS = "relative w-full overflow-hidden rounded-[inherit] text-left outline-none focus-ring";
8
8
  export declare const EXPANDABLE_TRIGGER_DISABLED_CLASS = "cursor-not-allowed opacity-50";
9
9
  export declare const EXPANDABLE_TRIGGER_ENABLED_CLASS = "cursor-pointer";
10
10
  export declare const EXPANDABLE_TRIGGER_LIFT_BASE_CLASS = "relative z-[1] w-full min-w-0 origin-center will-change-transform";
@@ -1,7 +1,5 @@
1
1
  import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
2
2
  import { InputSize, InputStatus, InputVariant } from './inputTypes';
3
- export declare const INPUT_STATUS_TINT_SHELL_CLASS: Record<Exclude<InputStatus, "default">, string>;
4
- export declare const INPUT_STATUS_TINT_AFFIX_CLASS: Record<Exclude<InputStatus, "default">, string>;
5
3
  export declare const INPUT_AFFIX_SURFACE_CLASS = "bg-primary-tint";
6
4
  export declare const INPUT_SHELL_BASE_CLASS = "flex items-stretch overflow-hidden";
7
5
  export declare const INPUT_SHELL_GLOSS_CLASS = "relative";
@@ -27,22 +25,16 @@ export declare const INPUT_PASSWORD_TOGGLE_CONTROL: Record<InputSize, {
27
25
  icon: string;
28
26
  pad: string;
29
27
  }>;
30
- export declare function inputAffixSurfaceClass(status: InputStatus): string;
28
+ export declare function inputAffixSurfaceClass(_status?: InputStatus): string;
31
29
  export declare function inputAffixSlotClass({ side, status, size, slotClass, }: {
32
30
  side: "prefix" | "suffix";
33
31
  status: InputStatus;
34
32
  size: InputSize;
35
33
  slotClass?: string;
36
34
  }): string;
37
- export declare function inputShellSurfaceClass({ variant, status, statusTinted, }: {
35
+ export declare function inputShellSurfaceClass({ variant, }: {
38
36
  variant: InputVariant;
39
- status: InputStatus;
40
- statusTinted: boolean;
41
- }): string;
42
- export declare function inputFileEmptyShellSurfaceClass({ variant, status, statusTinted, }: {
43
- variant: InputVariant;
44
- status: InputStatus;
45
- statusTinted: boolean;
37
+ status?: InputStatus;
46
38
  }): string;
47
39
  export declare function inputShellRoundingClass(groupSegment: ButtonGroupSegment | null | undefined): string;
48
40
  export declare function inputShellClass({ variant, status, blocked, groupSegment, fileListEmpty, shellSurface, shellFileEmptySurface, shellHoverMotionClass, className, slotClass, }: {
@@ -1,6 +1,8 @@
1
+ import { RadioSize } from './radioTypes';
1
2
  export declare const RADIO_SIZE_LAYOUT: Record<import('../utils/sizeLayout').ComponentSize, import('../utils/sizeLayout').OptionControlSizeLayout>;
2
3
  export declare const RADIO_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
3
- export declare const RADIO_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center";
4
+ export declare const RADIO_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center has-focus-ring";
5
+ export declare function radioControlClass(size: RadioSize): string;
4
6
  export declare const RADIO_CONTROL_TRACK_CLASS = "relative inline-flex items-center justify-center";
5
7
  export declare const RADIO_CONTENT_COMPOUND_CLASS = "min-w-0";
6
8
  export declare const RADIO_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0";
@@ -15,7 +17,6 @@ export declare const RADIO_SIMPLE_LABEL_WRAP_CLASS = "origin-center will-change-
15
17
  export declare const RADIO_SIMPLE_LABEL_TEXT_CLASS = "min-w-0";
16
18
  export declare const RADIO_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-left";
17
19
  export declare const RADIO_ROOT_DISABLED_CLASS = "cursor-not-allowed";
18
- export declare const RADIO_ROOT_FOCUS_CLASS = "has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-primary";
19
20
  export declare const RADIO_CONTENT_PASS_THROUGH_CLASS = "contents";
20
21
  export declare function radioControlCellClass(): string;
21
22
  export declare function radioGridClass(secondaryLines: number, gridGap: string, className?: string): string;
@@ -13,9 +13,9 @@ export declare const SELECT_POPOVER_BODY_CLASS = "gap-0 p-base";
13
13
  export declare const SELECT_LISTBOX_CLASS = "overflow-y-auto overflow-x-hidden";
14
14
  export declare const SELECT_TRIGGER_GROUP_DISABLED_CLASS = "cursor-not-allowed opacity-55 shadow-token-base";
15
15
  export declare const SELECT_TRIGGER_GROUP_ENABLED_CLASS = "cursor-pointer";
16
- export declare function selectShellSurface({ variant, status, }: {
16
+ export declare function selectShellSurface({ variant, }: {
17
17
  variant: InputVariant;
18
- status: InputStatus;
18
+ status?: InputStatus;
19
19
  }): string;
20
20
  export declare function selectGroupShellClass(groupSegment?: ButtonGroupSegment): string;
21
21
  export declare function selectTriggerGroupClass({ variant, status, disabled, groupSegment, shellHoverMotionClass, className, slotClass, }: {
@@ -55,7 +55,8 @@ export declare function sliderTrackHitAreaClass({ isHorizontal, size, thickness,
55
55
  slotClass?: string;
56
56
  className?: string;
57
57
  }): string;
58
- export declare function sliderThumbButtonClass({ orientation, disabled, active, slotClass, className, }: {
58
+ export declare function sliderThumbButtonClass({ size, orientation, disabled, active, slotClass, className, }: {
59
+ size: SliderSize;
59
60
  orientation: SliderOrientation;
60
61
  disabled?: boolean;
61
62
  active?: boolean;
@@ -3,7 +3,8 @@ import { SWITCH_LAYOUT, SwitchSize } from './switchGeometry';
3
3
  import { SwitchLabelPosition } from './switchTypes';
4
4
  export { SWITCH_LAYOUT };
5
5
  export declare const SWITCH_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
6
- export declare const SWITCH_CONTROL_BASE_CLASS = "relative inline-flex shrink-0 items-center justify-center";
6
+ export declare const SWITCH_CONTROL_BASE_CLASS = "relative inline-flex shrink-0 items-center justify-center has-focus-ring";
7
+ export declare function switchControlClass(size: SwitchSize): string;
7
8
  export declare const SWITCH_CONTENT_COMPOUND_CLASS = "min-w-0";
8
9
  export declare const SWITCH_CONTENT_PASS_THROUGH_CLASS = "contents";
9
10
  export declare const SWITCH_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0";
@@ -17,7 +18,6 @@ export declare const SWITCH_SIMPLE_LABEL_WRAP_CLASS = "origin-center will-change
17
18
  export declare const SWITCH_SIMPLE_LABEL_TEXT_CLASS = "min-w-0 font-w-mid";
18
19
  export declare const SWITCH_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-left";
19
20
  export declare const SWITCH_ROOT_DISABLED_CLASS = "cursor-not-allowed";
20
- export declare const SWITCH_ROOT_FOCUS_CLASS = "has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-primary";
21
21
  export declare const SWITCH_ROOT_CONTROL_ONLY_CLASS = "inline-grid grid-cols-[auto] grid-rows-[auto]";
22
22
  export declare const SWITCH_TRACK_BASE_CLASS = "relative box-border inline-flex shrink-0";
23
23
  export declare const SWITCH_TRACK_GLOSS_CLASS = "gloss-indicator border-0";
@@ -1,5 +1,4 @@
1
1
  import { TextAreaSize, TextAreaStatus, TextAreaVariant } from './textAreaTypes';
2
- export declare const TEXTAREA_STATUS_TINT_SHELL_CLASS: Record<Exclude<TextAreaStatus, "default">, string>;
3
2
  export declare const TEXTAREA_MIN_H: Record<TextAreaSize, string>;
4
3
  export declare const TEXTAREA_SHELL_LAYOUT_CLASS = "flex flex-col items-stretch";
5
4
  export declare const TEXTAREA_CONTROL_BASE_CLASS = "box-border block min-h-0 w-full flex-1 resize-none overflow-auto bg-transparent font-inherit text-foreground outline-none placeholder:text-muted appearance-none [field-sizing:content] field-control-mobile-no-zoom";
@@ -11,10 +10,9 @@ export declare const TEXTAREA_RESIZE_HANDLE_BASE_CLASS = "absolute bottom-0 righ
11
10
  export declare const TEXTAREA_RESIZE_HANDLE_DISABLED_CLASS = "cursor-not-allowed opacity-45";
12
11
  export declare const TEXTAREA_RESIZE_HANDLE_ENABLED_CLASS = "cursor-ns-resize";
13
12
  export declare function textareaControlClass(size: TextAreaSize): string;
14
- export declare function textareaShellSurfaceClass({ variant, status, statusTinted, }: {
13
+ export declare function textareaShellSurfaceClass({ variant, }: {
15
14
  variant: TextAreaVariant;
16
- status: TextAreaStatus;
17
- statusTinted: boolean;
15
+ status?: TextAreaStatus;
18
16
  }): string;
19
17
  export declare function textareaShellClass({ variant, status, blocked, size, shellSurface, glossShellHoverMotionClass, standardShellHoverMotionClass, slotClass, className, }: {
20
18
  variant: TextAreaVariant;
@@ -1,6 +1,4 @@
1
1
  import { TimeFieldSize, TimeFieldStatus, TimeFieldVariant } from './timeFieldTypes';
2
- export declare const TIME_FIELD_STATUS_TINT_SHELL_CLASS: Record<Exclude<TimeFieldStatus, "default">, string>;
3
- export declare const TIME_FIELD_STATUS_TINT_AFFIX_CLASS: Record<Exclude<TimeFieldStatus, "default">, string>;
4
2
  export declare const TIME_FIELD_AFFIX_SURFACE_CLASS = "bg-primary-tint";
5
3
  export declare const TIME_FIELD_AFFIX_PREFIX_EDGE_CLASS = "border-r-token";
6
4
  export declare const TIME_FIELD_AFFIX_SUFFIX_EDGE_CLASS = "border-l-token";
@@ -19,17 +17,16 @@ export declare const TIME_FIELD_SEGMENTS_BASE_CLASS = "relative flex min-w-0 fle
19
17
  /** Flex row inside `<fieldset>` — flex on fieldset itself breaks height on resize. */
20
18
  export declare const TIME_FIELD_SHELL_INNER_CLASS = "flex min-w-0 w-full items-stretch";
21
19
  export declare const TIME_FIELD_SEGMENTS_SEGMENTED_CLASS = "gap-xsmall";
22
- export declare function timeFieldAffixSurfaceClass(status: TimeFieldStatus): string;
20
+ export declare function timeFieldAffixSurfaceClass(_status?: TimeFieldStatus): string;
23
21
  export declare function timeFieldAffixSlotClass({ side, status, size, slotClass, }: {
24
22
  side: "prefix" | "suffix";
25
23
  status: TimeFieldStatus;
26
24
  size: TimeFieldSize;
27
25
  slotClass?: string;
28
26
  }): string;
29
- export declare function timeFieldShellSurfaceClass({ variant, status, statusTinted, }: {
27
+ export declare function timeFieldShellSurfaceClass({ variant, }: {
30
28
  variant: TimeFieldVariant;
31
- status: TimeFieldStatus;
32
- statusTinted: boolean;
29
+ status?: TimeFieldStatus;
33
30
  }): string;
34
31
  export declare function timeFieldShellClass({ variant, status, disabled, compact, shellSurface, glossShellHoverMotionClass, standardShellHoverMotionClass, slotClass, className, }: {
35
32
  variant: TimeFieldVariant;
@@ -1,10 +1,12 @@
1
1
  import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
2
2
  import { LoadingColor } from '../Loading';
3
3
  import { ToastPlacement, ToastSize, ToastStatus, ToastVariant } from './toastTypes';
4
- export declare const TOAST_SURFACE_CLASS: Record<ToastStatus, string>;
4
+ /** Neutral shell for every status — accents live on the indicator icon. */
5
+ export declare const TOAST_SURFACE_CLASS = "bg-surface border-token text-foreground";
5
6
  export declare const TOAST_ICON_CLASS: Record<ToastStatus, string>;
6
7
  export declare const TOAST_COMPOUND_CONTENTS_CLASS = "contents";
7
8
  export declare const TOAST_TITLE_CLASS = "font-w-mid";
9
+ export declare function toastTitleClass(status: ToastStatus): string;
8
10
  export declare const TOAST_DESCRIPTION_CLASS = "text-muted";
9
11
  export declare const TOAST_CLOSE_BUTTON_OFFSET_CLASS = "-mx-xsmall";
10
12
  export declare const TOAST_INDICATOR_BASE_CLASS = "inline-flex shrink-0 items-center justify-center";
@@ -15,9 +17,8 @@ export declare const TOAST_STACK_ITEM_CLASS = "will-change-transform";
15
17
  export declare const TOAST_SCRIM_BASE_CLASS = "pointer-events-none absolute";
16
18
  export declare function toastPlacementClass(placement: ToastPlacement): string;
17
19
  export declare function toastLoadingColor(status: ToastStatus): LoadingColor;
18
- export declare function toastRootClass({ variant, status, size, gridSlots, slotClass, className, }: {
20
+ export declare function toastRootClass({ variant, size, gridSlots, slotClass, className, }: {
19
21
  variant: ToastVariant;
20
- status: ToastStatus;
21
22
  size?: ToastSize;
22
23
  gridSlots: MessageBannerGridSlots;
23
24
  slotClass?: string;
@@ -5,21 +5,24 @@ import { TOOLTIP_ARROW_CLASS, TOOLTIP_ARROW_SHELL_PAD } from './tooltipPosition'
5
5
  import { TooltipSize, TooltipVariant } from './tooltipTypes';
6
6
  export { TOOLTIP_ARROW_CLASS, TOOLTIP_ARROW_SHELL_PAD };
7
7
  export declare const TOOLTIP_DEFAULT_OFFSET = 8;
8
- export declare const TOOLTIP_SURFACE_CLASS: Record<SemanticStatus, string>;
8
+ /** Neutral shell by variant — status accents live on indicator + title (Alert / Toast). */
9
9
  export declare const TOOLTIP_VARIANT_SURFACE_CLASS: Record<TooltipVariant, string>;
10
10
  export declare const TOOLTIP_TEXT_LAYOUT: Record<TooltipSize, string>;
11
11
  export declare const TOOLTIP_CONTENT_VARIANT: Record<TooltipSize, TextVariant>;
12
12
  export declare const TOOLTIP_DESC_VARIANT: Record<TooltipSize, TextVariant>;
13
13
  export declare const TOOLTIP_ICON_SIZE: Record<TooltipSize, string>;
14
14
  export declare const TOOLTIP_ICON_SLOT_SVG: Record<TooltipSize, string>;
15
- export declare const TOOLTIP_ICON_TEXT_CLASS: Record<TooltipVariant, string>;
16
- export declare const TOOLTIP_STATUS_ICON_CLASS: Record<SemanticStatus, string>;
15
+ /** Status accent for indicator (and semantic SVG). Default → primary like Alert/Toast. */
16
+ export declare const TOOLTIP_STATUS_ACCENT_CLASS: Record<SemanticStatus, string>;
17
17
  export declare const TOOLTIP_GRID_GAP: Record<TooltipSize, string>;
18
18
  export declare const TOOLTIP_TRIGGER_BASE_CLASS = "inline-flex shrink-0 outline-none focus-ring";
19
19
  export declare const TOOLTIP_INDICATOR_BASE_CLASS = "inline-flex shrink-0 [&_svg]:shrink-0";
20
+ export declare const TOOLTIP_TITLE_CLASS = "font-w-mid";
20
21
  export declare const TOOLTIP_DESCRIPTION_MUTED_CLASS = "text-muted";
21
22
  export declare const TOOLTIP_ARROW_BASE_CLASS = "pointer-events-none absolute z-0 size-2 rotate-45";
22
23
  export declare const TOOLTIP_ARROW_GLOSS_CLASS = "border-0 bg-[var(--color-surface)]";
24
+ /** Arrow fill mirrors panel surface (no status tint). */
25
+ export declare const TOOLTIP_ARROW_FILL_CLASS: Record<Exclude<TooltipVariant, "gloss">, string>;
23
26
  export declare const TOOLTIP_CONTENT_BASE_CLASS = "pointer-events-none z-tooltip w-max min-w-0 overflow-visible text-left outline-none will-change-transform";
24
27
  export declare const TOOLTIP_CONTENT_INNER_CLASS = "relative overflow-visible";
25
28
  export declare const TOOLTIP_GLOSS_PANEL_BASE_CLASS = "gloss-panel gloss-deep relative z-[1] w-max min-w-0 origin-center overflow-hidden rounded-mid text-left text-foreground";
@@ -27,6 +30,8 @@ export declare const TOOLTIP_GLOSS_CONTENT_CLASS = "gloss-content";
27
30
  /** Compound slots (`Tooltip.Message`) — pass-through grid children. */
28
31
  export declare const TOOLTIP_COMPOUND_CONTENTS_CLASS = "contents";
29
32
  export declare const TOOLTIP_PANEL_BASE_CLASS = "relative z-[1] w-max min-w-0 rounded-mid text-left animate-shadow";
33
+ export declare function tooltipTitleClass(status: SemanticStatus): string;
34
+ export declare function tooltipIndicatorClass(status: SemanticStatus, slotClass?: string, className?: string): string;
30
35
  export declare function tooltipGlossShellClass({ size, slotClass, className, }: {
31
36
  size: TooltipSize;
32
37
  slotClass?: string;
@@ -37,17 +42,15 @@ export declare function tooltipGlossContentClass({ gridSlots, size, slotClass, }
37
42
  size: TooltipSize;
38
43
  slotClass?: string;
39
44
  }): string;
40
- export declare function tooltipPanelClass({ variant, status, size, gridSlots, slotClass, className, }: {
45
+ export declare function tooltipPanelClass({ variant, size, gridSlots, slotClass, className, }: {
41
46
  variant: TooltipVariant;
42
- status: SemanticStatus;
43
47
  size: TooltipSize;
44
48
  gridSlots: Parameters<typeof messageBannerGridClass>[0];
45
49
  slotClass?: string;
46
50
  className?: string;
47
51
  }): string;
48
- export declare function tooltipArrowClass({ variant, status, resolvedSide, slotClass, className, }: {
52
+ export declare function tooltipArrowClass({ variant, resolvedSide, slotClass, className, }: {
49
53
  variant: TooltipVariant;
50
- status: SemanticStatus;
51
54
  resolvedSide: keyof typeof TOOLTIP_ARROW_CLASS;
52
55
  slotClass?: string;
53
56
  className?: string;
@@ -1,12 +1,16 @@
1
1
  import { ButtonVariant } from '../Button/buttonTypes';
2
+ import { SemanticSurfaceStatus } from './semanticStatusSurface';
2
3
  /** Shared visual variants for field shells (Input, TextArea, Select, ComboBox, TimeField, SearchInput). */
3
4
  export type FieldShellVariant = "default" | "outline" | "secondary" | "gloss";
4
5
  export type FieldShellFilledVariant = Exclude<FieldShellVariant, "gloss">;
6
+ export type FieldShellStatus = "default" | SemanticSurfaceStatus;
5
7
  export declare const FIELD_SHELL_VARIANT_BG_CLASS: Record<FieldShellFilledVariant, string>;
6
8
  export declare function fieldShellHoverVariantForShell(variant: FieldShellFilledVariant): "default" | "secondary";
7
9
  export declare function fieldShellVariantFromButtonGroup(groupVariant?: ButtonVariant): FieldShellFilledVariant | "gloss";
8
- export declare function resolveFieldShellSurfaceClass({ variant, statusTinted, statusTintClass, }: {
10
+ /**
11
+ * Neutral variant surface + `border-token`.
12
+ * Status accents live on the permanent status ring (`fieldShellFocusRingClass`), not the border.
13
+ */
14
+ export declare function resolveFieldShellSurfaceClass({ variant, }: {
9
15
  variant: FieldShellVariant;
10
- statusTinted: boolean;
11
- statusTintClass: string;
12
16
  }): string;
@@ -4,7 +4,7 @@ export declare const TEXT_COLOR_TRANSITION = "text-color-transition motion-reduc
4
4
  * Hover background for interactive surfaces.
5
5
  * - `default` / `primary` / `secondary` — neutral and brand fills.
6
6
  * - `danger` … `warning` — tint on transparent/neutral background (Dropdown, ListBox).
7
- * - `danger-tint-hover` … — hover over `bg-surface-tint-*` (fields with status).
7
+ * - `danger-tint-hover` … — stronger hover over an existing `bg-surface-tint-*` surface.
8
8
  * - `danger-fill` … `warning-fill` — hover over filled status surface (Button danger, etc.).
9
9
  */
10
10
  export type HoverVariant = "default" | "primary" | "secondary" | "danger" | "warning" | "info" | "success" | "danger-tint-hover" | "success-tint-hover" | "info-tint-hover" | "warning-tint-hover" | "danger-fill" | "warning-fill" | "info-fill" | "success-fill";
@@ -1,12 +1,26 @@
1
1
  import { RefObject } from 'react';
2
- import { FieldShellFilledVariant } from './fieldShellVariant';
3
- export type FieldShellStatus = "default" | "danger" | "success" | "info" | "warning";
4
- /** Field shell hover background via `hoverVariant`; `focus-within` — focus on inner control. */
5
- export declare function fieldShellHoverClass(enabled: boolean, status?: FieldShellStatus, variant?: FieldShellFilledVariant): string;
6
- /** Shell transition: background, shadow, focus-ring (always, including disabled). */
2
+ import { FieldShellFilledVariant, FieldShellStatus } from './fieldShellVariant';
3
+ export type { FieldShellStatus };
4
+ /**
5
+ * Field shell hover background via `hoverVariant` (variant only — status is ring accent).
6
+ * `focus-within` — focus on inner control.
7
+ */
8
+ export declare function fieldShellHoverClass(enabled: boolean, _status?: FieldShellStatus, variant?: FieldShellFilledVariant): string;
9
+ /** Shell transition: background, border, shadow, focus-ring (always, including disabled). */
7
10
  export declare const FIELD_SHELL_TRANSITION_CLASS = "field-shell-transition motion-reduce:transition-none";
8
- /** Outer primary focus ring on shell `:focus-within`. */
11
+ /** Outer focus ring on shell `:focus-within` (default status — `--color-focus-ring`). */
9
12
  export declare const FIELD_SHELL_FOCUS_CLASS = "focus-within-ring";
13
+ /**
14
+ * Permanent status-colored outer ring (idle + focus). Keeps status focus-ring token on `:focus-within`
15
+ * so `focus-within-ring` is not used for non-default status.
16
+ */
17
+ export declare const FIELD_SHELL_STATUS_RING: Record<Exclude<FieldShellStatus, "default">, string>;
18
+ /**
19
+ * Focus / status ring for field shells.
20
+ * - `default` → `focus-within-ring` (keyboard / focus only)
21
+ * - status → always-visible status focus-ring token (same width/offset as focus-ring)
22
+ */
23
+ export declare function fieldShellFocusRingClass(status?: FieldShellStatus): string;
10
24
  /**
11
25
  * Hover lift and sm → md shadow for input-like field shells (`Input`, `TextArea`, `TimeField`, `ComboBox`).
12
26
  */