@eldrajs/ui 0.3.15 → 0.3.16

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,7 @@ Release-please writes the generated notes from commit messages and does not repl
7
7
 
8
8
  ### Added
9
9
 
10
+ - **`Tabs` `size="sm"` and `fill`.** `sm` is a tab bar for a tool panel: 2.25rem tall tabs with 13px text at weight 500 (also when selected, so a label never changes width), a 0.375rem gap between an icon and its label, no gap between tabs and a 2px indicator across the whole tab; the selected text and the indicator are `--eldra-tabs-accent` (default the primary colour), the unselected text `--eldra-tabs-muted` (default `muted`) and the hover background `--eldra-tabs-hover-bg`, set on the `Tabs` to colour one tab bar without re-theming the kit. `fill` makes the tabs share the list's width equally, and a label too long for its share truncates with an ellipsis. On a keyboard-focused `sm` tab the indicator lifts so the focus ring is not covered. The variables apply to the underline variant only; `sm` pills keep the `primary` fill. Both reach every `Tab` through the context, in the `items` and the slots API, and in both variants. `md` and no `fill` render as before. New type `TabsSize`; new utility `text-tab-sm`.
10
11
  - **`--eldra-scrollbar-width`** on `<html>` while a `Dialog`, `Drawer`, `Lightbox` or `SearchModal` is open: the width of the scrollbar the scroll lock hid (`0px` when none). A `position: fixed` element that spans the window, such as a fixed site header, pads itself with it (`padding-right: var(--eldra-scrollbar-width, 0px)`) so it does not widen when a modal opens.
11
12
  - **`Lightbox` `zoom`** (default `false`) enlarges the current image to its real size: over the image the cursor is a magnifier and a zoom button shows, a click or the button zooms in, the mouse or the arrow keys pan, and a click, the button or `Esc` zooms out. An image under 1.25× its shown size offers no zoom; phones keep pinch-zoom. New part `zoomButton`; new messages `lightboxZoomIn` ("Zoom in" / "Stækka mynd") and `lightboxZoomOut` ("Zoom out" / "Minnka mynd"), also through `@eldrajs/ui/vue-i18n`.
12
13
  - **`Autocomplete`** — a free-text field with a list of suggestions under it: an `Input` (same box, sizes, states, clear button and `FieldWrapper` wiring) that is an ARIA combobox with list autocomplete. `suggestions` (`{ value, label, description?, disabled? }[]`) are supplied by the consumer for the text now in the field; `loading`, `minLength` (default `1`), `messages`, `classes`, and `Input`'s `size`, `id`, `name`, `placeholder`, `autocomplete`, `inputmode`, `leadingIcon`, `clearable`, `invalid`, `describedBy`, `required`, `readonly`, `disabled`. The value is always the text: choosing a row emits `update:modelValue` with its `label`, then `select` with the suggestion, and anything else may be typed and kept. Slots `option` (`{ suggestion, active }`) and `footer`, plus `Input`'s three. With no suggestions the panel is closed. New parts `busy`, `panel`, `listbox`, `option`, `optionLabel`, `optionDescription`, `footer`; new message `suggestions` ("Suggestions" / "Tillögur"), also through `@eldrajs/ui/vue-i18n`; new types `AutocompleteProps`, `AutocompleteSuggestion`, `AutocompletePart`, `AutocompleteOptionSlotProps`; `<EldraAutocomplete>` through the resolver.
package/README.md CHANGED
@@ -232,10 +232,10 @@ Every component supports all five of these; none hard-codes anything a store mig
232
232
  | `StepIndicator` | none — reads only the shared tokens from layer 1 |
233
233
  | `StockBadge` | `--eldra-stock-status-line` (default `1.4`) — the status line text's line ratio, no token of its own |
234
234
  | `Switch` | `--eldra-switch-radius` (default `var(--eldra-radius-full)`), `--eldra-switch-track-border-width` (default `1.5px`), `--eldra-switch-thumb-offset` (default `0.1875rem`, the thumb's rest inset from the track's start edge) |
235
- | `Tab` | none — reads only the shared tokens from layer 1, plus `VariantPicker`'s `text-variant-pill` type style (no per-component variable of its own; see that component's row) |
235
+ | `Tab` | `--eldra-tabs-accent`, `--eldra-tabs-muted` and `--eldra-tabs-hover-bg` for a `size="sm"` underline tab (see the `Tabs` row, which owns them); otherwise the shared tokens from layer 1, plus `VariantPicker`'s `text-variant-pill` type style (see that component's row) |
236
236
  | `TabPanel` | none — reads only the shared tokens from layer 1 |
237
237
  | `TablerIcon` | none — reads only the shared tokens from layer 1, the same as `Icon` |
238
- | `Tabs` | none — reads only the shared tokens from layer 1; the `eldra-scrollbar-hide` utility the tab list uses has no variable of its own. The pills list's own padding, the negative margin that cancels it and its scroll padding are all `calc(var(--eldra-focus-offset) + var(--eldra-focus-width))` — the focus ring's own reach, so raising either ring token widens the room the scrolling list keeps for a focused pill's ring instead of letting it clip (the underline variant reserves nothing: its tabs ring _inside_ their own box, per the design spec, and padding that list vertically would push its hairline off the tabs). Set a gutter through `classes.list` only if it is wider than that reach — a `px-*`/`-mx-*`/`scroll-px-*` utility of your own replaces the reservation on that axis rather than composing with it, the way `--eldra-carousel-bleed` does for the carousel |
238
+ | `Tabs` | `--eldra-tabs-accent` (default `var(--eldra-color-primary)`), `--eldra-tabs-muted` (default `var(--eldra-color-muted)`) and `--eldra-tabs-hover-bg` (default the 6% tint of the text colour) — the colours of a `size="sm"` underline tab bar only: selected text and the 2px indicator, unselected text, and the hover background. Set them on the `Tabs` (`class`) to colour a panel's tab bar without re-theming `--eldra-color-*` for every other component; `md` and pills never read them. The `eldra-scrollbar-hide` utility the tab list uses has no variable of its own. The pills list's own padding, the negative margin that cancels it and its scroll padding are all `calc(var(--eldra-focus-offset) + var(--eldra-focus-width))` — the focus ring's own reach, so raising either ring token widens the room the scrolling list keeps for a focused pill's ring instead of letting it clip (the underline variant reserves nothing: its tabs ring _inside_ their own box, per the design spec, and padding that list vertically would push its hairline off the tabs). Set a gutter through `classes.list` only if it is wider than that reach — a `px-*`/`-mx-*`/`scroll-px-*` utility of your own replaces the reservation on that axis rather than composing with it, the way `--eldra-carousel-bleed` does for the carousel |
239
239
  | `Textarea` | `--eldra-textarea-radius` (default `var(--eldra-radius-md)`), `--eldra-textarea-min-height` (set from the `minHeight` prop, default `5rem`), `--eldra-counter-line-height` (default `1.5`) |
240
240
  | `Toast` | `--eldra-toast-title-size` (default `0.9375rem`), `--eldra-toast-title-line` (default `1.4`) — the title's own size/line, sitting between two type-scale steps with no token of its own |
241
241
  | `Toaster` | `--eldra-toast-width` (default `24rem`) — the fixed region's own width, always capped at `100vw - 2rem` inside the utility itself, the same shape as `Dialog`'s own width variables |
@@ -1,4 +1,4 @@
1
- import { $ as FIELD_KEY, W as FIELD_RADIUS, Y as FIELD_TEXT, d as useEldraUiLocale, i as SelectPanel_default, nt as joinIds, p as usePopover, r as useOptionList, rt as useUiId, tt as useControllableModel, y as useListbox } from "./useOptionList-CPHHDvPF.js";
1
+ import { $ as FIELD_KEY, W as FIELD_RADIUS, Y as FIELD_TEXT, d as useEldraUiLocale, i as SelectPanel_default, nt as joinIds, p as usePopover, r as useOptionList, rt as useUiId, tt as useControllableModel, y as useListbox } from "./useOptionList-UMUMayec.js";
2
2
  import { r as useEldraScope } from "./useEldraScope-BDbGzt7R.js";
3
3
  import { i as enUS, r as useMessages } from "./useMessages-CrSnIuLt.js";
4
4
  import { t as CountryFlag_default } from "./CountryFlag-DOa8lOHp.js";
@@ -1,4 +1,4 @@
1
- import { $ as FIELD_KEY, A as ICON_STROKE_WIDTH$1, C as optionClass, D as optionSwatchClass, E as optionLabelClass, F as FIELD_CLEAR_BUTTON, G as FIELD_SEARCH_APPEARANCE, H as FIELD_PREFIX_PAD, I as FIELD_CLEAR_BUTTON_BOX, J as FIELD_SUFFIX_ROW_BASE, K as FIELD_SIZE, L as FIELD_CLEAR_SIZE, M as FIELD_ACTION_ROOM_REM, N as FIELD_BASE, O as panelClass, P as FIELD_BOX, Q as fieldState, S as listboxClass, T as optionIconClass, U as FIELD_PREFIX_ROW, V as FIELD_LIVE, W as FIELD_RADIUS, X as FIELD_TRAILING_PAD, Y as FIELD_TEXT, Z as FIELD_TRAILING_PAD_PAIR, b as TRIGGER_VALUE_CELL, d as useEldraUiLocale, et as mergeClass, f as Spinner_default, i as SelectPanel_default, j as FIELD_ACTION_PAIR_SIZE, k as ICON_SIZE_CLASS, n as matchRange, nt as joinIds, p as usePopover, q as FIELD_SUFFIX_ROW, r as useOptionList, rt as useUiId, tt as useControllableModel, w as optionHintClass, x as TRIGGER_VALUE_STACK, y as useListbox, z as FIELD_LEADING_ICON } from "./useOptionList-CPHHDvPF.js";
1
+ import { $ as FIELD_KEY, A as ICON_STROKE_WIDTH$1, C as optionClass, D as optionSwatchClass, E as optionLabelClass, F as FIELD_CLEAR_BUTTON, G as FIELD_SEARCH_APPEARANCE, H as FIELD_PREFIX_PAD, I as FIELD_CLEAR_BUTTON_BOX, J as FIELD_SUFFIX_ROW_BASE, K as FIELD_SIZE, L as FIELD_CLEAR_SIZE, M as FIELD_ACTION_ROOM_REM, N as FIELD_BASE, O as panelClass, P as FIELD_BOX, Q as fieldState, S as listboxClass, T as optionIconClass, U as FIELD_PREFIX_ROW, V as FIELD_LIVE, W as FIELD_RADIUS, X as FIELD_TRAILING_PAD, Y as FIELD_TEXT, Z as FIELD_TRAILING_PAD_PAIR, b as TRIGGER_VALUE_CELL, d as useEldraUiLocale, et as mergeClass, f as Spinner_default, i as SelectPanel_default, j as FIELD_ACTION_PAIR_SIZE, k as ICON_SIZE_CLASS, n as matchRange, nt as joinIds, p as usePopover, q as FIELD_SUFFIX_ROW, r as useOptionList, rt as useUiId, tt as useControllableModel, w as optionHintClass, x as TRIGGER_VALUE_STACK, y as useListbox, z as FIELD_LEADING_ICON } from "./useOptionList-UMUMayec.js";
2
2
  import { r as useEldraScope } from "./useEldraScope-BDbGzt7R.js";
3
3
  import { r as useMessages } from "./useMessages-CrSnIuLt.js";
4
4
  import { Comment, Fragment, Teleport, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onBeforeUpdate, onMounted, onUpdated, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toValue, unref, useAttrs, useSlots, watch, watchPostEffect, withCtx, withModifiers } from "vue";
@@ -2,6 +2,8 @@ import { TabProps } from './types.js';
2
2
  declare const __VLS_template: () => {
3
3
  __VLS_Slots: {
4
4
  default?: (props: {}) => any;
5
+ } & {
6
+ default?: (props: {}) => any;
5
7
  };
6
8
  };
7
9
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
@@ -14,6 +14,8 @@ declare const __VLS_base: import('vue').DefineComponent<TabsProps, {}, {}, {}, {
14
14
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
15
  onChange?: ((value: string) => any) | undefined;
16
16
  }>, {
17
+ fill: boolean;
18
+ size: import('./types.js').TabsSize;
17
19
  modelValue: string;
18
20
  classes: Partial<Record<import('./types.js').TabsPart, string>>;
19
21
  variant: import('./types.js').TabsVariant;
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, InjectionKey } from 'vue';
2
- import { TabsActivation, TabsVariant } from './types.js';
2
+ import { TabsActivation, TabsSize, TabsVariant } from './types.js';
3
3
  /** What a mounted `Tab` gives the `Tabs` root that owns it, so the root can move focus to it and
4
4
  * place it in the registration order without owning any of its DOM itself. */
5
5
  export interface TabsEntry {
@@ -32,6 +32,8 @@ export interface TabsContext {
32
32
  selectedValue: ComputedRef<string | undefined>;
33
33
  activation: ComputedRef<TabsActivation>;
34
34
  variant: ComputedRef<TabsVariant>;
35
+ size: ComputedRef<TabsSize>;
36
+ fill: ComputedRef<boolean>;
35
37
  isSelected: (value: string) => boolean;
36
38
  /** Selects `value` and emits `update:modelValue`/`change`. */
37
39
  select: (value: string) => void;
@@ -7,6 +7,10 @@ export type TabsPart = 'list' | 'tab' | 'indicator' | 'panel';
7
7
  /** Underline (default): a bar under the selected tab, sitting on the list's hairline. Pills: a
8
8
  * filled, fully-rounded button — the fill itself is the "indicator". */
9
9
  export type TabsVariant = 'underline' | 'pills';
10
+ /** `md` (default): the spec's 2.75rem touch-height tab. `sm`: a 2.25rem panel tab with 13px text at
11
+ * weight 500, a 0.375rem icon gap and a full-width 2px indicator, for a tab bar inside a tool
12
+ * panel (the page builder's side rail). */
13
+ export type TabsSize = 'md' | 'sm';
10
14
  /** `auto`: arrow keys select immediately. `manual`: arrow keys move focus only, `Enter`/`Space`
11
15
  * selects — use only when a panel loads slowly. */
12
16
  export type TabsActivation = 'auto' | 'manual';
@@ -33,6 +37,10 @@ export interface TabsProps {
33
37
  * information"), put on `role="tablist"` as `aria-label`. Package convention: an
34
38
  * accessible-name-only prop is named `ariaLabel`, never `label` (visible text is `title`). */
35
39
  ariaLabel: string;
40
+ /** `md` (default) or `sm`. Passed to every `Tab` through the context. */
41
+ size?: TabsSize;
42
+ /** The tabs share the list's width equally instead of taking their own. Defaults to `false`. */
43
+ fill?: boolean;
36
44
  /** `auto` (default) or `manual`. */
37
45
  activation?: TabsActivation;
38
46
  /** The tabs and their panels, 1–5 of them (spec's own guidance). Renders internally as the same
@@ -977,6 +977,10 @@
977
977
  height: 0;
978
978
  }
979
979
 
980
+ .eldra\:h-0\.5 {
981
+ height: .125rem;
982
+ }
983
+
980
984
  .eldra\:h-1 {
981
985
  height: var(--eldra-space-1);
982
986
  }
@@ -1005,6 +1009,10 @@
1005
1009
  height: var(--eldra-space-8);
1006
1010
  }
1007
1011
 
1012
+ .eldra\:h-9 {
1013
+ height: 2.25rem;
1014
+ }
1015
+
1008
1016
  .eldra\:h-10 {
1009
1017
  height: 2.5rem;
1010
1018
  }
@@ -2273,6 +2281,10 @@
2273
2281
  background-color: var(--eldra-drawer-handle-color, var(--eldra-color-border-strong));
2274
2282
  }
2275
2283
 
2284
+ .eldra\:bg-\[var\(--eldra-tabs-accent\,var\(--eldra-color-primary\)\)\] {
2285
+ background-color: var(--eldra-tabs-accent, var(--eldra-color-primary));
2286
+ }
2287
+
2276
2288
  .eldra\:bg-accent {
2277
2289
  background-color: var(--eldra-color-accent);
2278
2290
  }
@@ -3102,6 +3114,12 @@
3102
3114
  line-height: var(--eldra-field-note-line-height, 1.45);
3103
3115
  }
3104
3116
 
3117
+ .eldra\:text-tab-sm {
3118
+ font-family: var(--eldra-font-body);
3119
+ font-size: var(--eldra-text-caption-size);
3120
+ line-height: var(--eldra-control-line-height, 1.5rem);
3121
+ }
3122
+
3105
3123
  .eldra\:text-tooltip {
3106
3124
  font-family: var(--eldra-font-body);
3107
3125
  font-size: var(--eldra-text-caption-size);
@@ -3231,6 +3249,14 @@
3231
3249
  color: var(--eldra-select-tag-text, var(--eldra-color-text));
3232
3250
  }
3233
3251
 
3252
+ .eldra\:text-\[color\:var\(--eldra-tabs-accent\,var\(--eldra-color-primary\)\)\] {
3253
+ color: var(--eldra-tabs-accent, var(--eldra-color-primary));
3254
+ }
3255
+
3256
+ .eldra\:text-\[color\:var\(--eldra-tabs-muted\,var\(--eldra-color-muted\)\)\] {
3257
+ color: var(--eldra-tabs-muted, var(--eldra-color-muted));
3258
+ }
3259
+
3234
3260
  .eldra\:text-accent {
3235
3261
  color: var(--eldra-color-accent);
3236
3262
  }
@@ -3898,6 +3924,10 @@
3898
3924
  }
3899
3925
  }
3900
3926
 
3927
+ .eldra\:group-focus-visible\:bottom-\[calc\(var\(--eldra-focus-offset\)_\+_var\(--eldra-focus-width\)\)\]:is(:where(.eldra\:group):focus-visible *) {
3928
+ bottom: calc(var(--eldra-focus-offset) + var(--eldra-focus-width));
3929
+ }
3930
+
3901
3931
  .eldra\:placeholder\:text-\[color\:var\(--eldra-select-panel-muted\,var\(--eldra-color-muted\)\)\]::placeholder {
3902
3932
  color: var(--eldra-select-panel-muted, var(--eldra-color-muted));
3903
3933
  }
@@ -4106,6 +4136,16 @@
4106
4136
  }
4107
4137
  }
4108
4138
 
4139
+ .eldra\:hover\:bg-\[var\(--eldra-tabs-hover-bg\,color-mix\(in_oklab\,var\(--eldra-color-text\)\,transparent_94\%\)\)\]:hover {
4140
+ background-color: var(--eldra-tabs-hover-bg, var(--eldra-color-text));
4141
+ }
4142
+
4143
+ @supports (color: color-mix(in lab, red, red)) {
4144
+ .eldra\:hover\:bg-\[var\(--eldra-tabs-hover-bg\,color-mix\(in_oklab\,var\(--eldra-color-text\)\,transparent_94\%\)\)\]:hover {
4145
+ background-color: var(--eldra-tabs-hover-bg, color-mix(in oklab,var(--eldra-color-text),transparent 94%));
4146
+ }
4147
+ }
4148
+
4109
4149
  .eldra\:hover\:bg-primary:hover {
4110
4150
  background-color: var(--eldra-color-primary);
4111
4151
  }
package/dist/index.d.ts CHANGED
@@ -107,7 +107,7 @@ export type { SkeletonPart, SkeletonProps, SkeletonVariant } from './components/
107
107
  export type { SpinnerProps } from './components/spinner/types.js';
108
108
  export type { StepIndicatorOrientation, StepIndicatorPart, StepIndicatorProps, StepIndicatorState, StepIndicatorStep, } from './components/step-indicator/types.js';
109
109
  export type { SwitchPart, SwitchProps, SwitchSize, SwitchSlotProps, } from './components/switch/types.js';
110
- export type { TabPanelPart, TabPanelProps, TabPart, TabProps, TabsActivation, TabsItem, TabsPart, TabsProps, TabsVariant, } from './components/tabs/types.js';
110
+ export type { TabPanelPart, TabPanelProps, TabPart, TabProps, TabsActivation, TabsItem, TabsPart, TabsProps, TabsSize, TabsVariant, } from './components/tabs/types.js';
111
111
  export type { TablerIconProps } from './components/tabler-icon/types.js';
112
112
  export type { TextareaPart, TextareaProps } from './components/textarea/types.js';
113
113
  export type { ToastAction, ToastPart, ToastProps, ToastVariant, ToasterPart, ToasterPosition, ToasterProps, ToasterToast, } from './components/toast/types.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as FIELD_KEY, A as ICON_STROKE_WIDTH$6, G as FIELD_SEARCH_APPEARANCE, I as FIELD_CLEAR_BUTTON_BOX, K as FIELD_SIZE, N as FIELD_BASE, R as FIELD_DISABLED, V as FIELD_LIVE, _ as useFloating, a as CURRENCY_KEY, c as provideEldraUiCurrency, d as useEldraUiLocale, et as mergeClass, f as Spinner_default, g as useTeleportTarget, h as topLayerDialog, k as ICON_SIZE_CLASS, l as provideEldraUiLocale, m as useOverlay, n as matchRange, nt as joinIds, o as DEFAULT_UI_LOCALE, p as usePopover, rt as useUiId, s as LOCALE_KEY, tt as useControllableModel, u as useEldraUiCurrency, v as normalizeText, y as useListbox } from "./useOptionList-CPHHDvPF.js";
1
+ import { $ as FIELD_KEY, A as ICON_STROKE_WIDTH$6, G as FIELD_SEARCH_APPEARANCE, I as FIELD_CLEAR_BUTTON_BOX, K as FIELD_SIZE, N as FIELD_BASE, R as FIELD_DISABLED, V as FIELD_LIVE, _ as useFloating, a as CURRENCY_KEY, c as provideEldraUiCurrency, d as useEldraUiLocale, et as mergeClass, f as Spinner_default, g as useTeleportTarget, h as topLayerDialog, k as ICON_SIZE_CLASS, l as provideEldraUiLocale, m as useOverlay, n as matchRange, nt as joinIds, o as DEFAULT_UI_LOCALE, p as usePopover, rt as useUiId, s as LOCALE_KEY, tt as useControllableModel, u as useEldraUiCurrency, v as normalizeText, y as useListbox } from "./useOptionList-UMUMayec.js";
2
2
  import { n as provideEldraScope, r as useEldraScope, t as ELDRA_SCOPE_KEY } from "./useEldraScope-BDbGzt7R.js";
3
- import { $ as defaultCharacterMeaning, A as defaultUnitFormat, B as CheckboxGroup_default, C as Switch_default, D as createNumberFormat, E as UnitInput_default, F as parseLocaleNumber, G as Button_default, H as VisuallyHidden_default, I as useHeadingTag, J as FORM_SUBMITTING_KEY, K as Icon_default, L as TAG_FILL, M as formatNumber, N as formatUnit, O as currencyFractionDigits, P as localeSeparators, Q as applyMask, R as TAG_SHAPE, S as focusInvalid, T as CurrencyInput_default, U as RequiredMark_default, V as Checkbox_default, W as FieldError_default, X as Input_default, Y as Autocomplete_default, Z as useSlotPresence, _ as optionCursor, a as claimShortcut, b as MultiSelect_default, c as SearchResultsPanel_default, d as INPUT, et as stripMask, f as PLAIN_BOX_ONLY, g as labelRecipe, h as dotRecipe, i as SearchBar_default, j as formatCurrency, k as currencySymbol, l as RadioGroup_default, m as PLAIN_OPTION, n as Textarea_default, o as ownsShortcut, p as PLAIN_COLUMNS, q as FORM_LAYOUT_KEY, r as Select_default, s as releaseShortcut, t as VariantPicker_default, u as HINT, v as radioRecipe, w as filterNumericBeforeInput, x as FormLayout_default, y as QuantityStepper_default, z as tagPadding } from "./VariantPicker-Buz_8mHq.js";
3
+ import { $ as defaultCharacterMeaning, A as defaultUnitFormat, B as CheckboxGroup_default, C as Switch_default, D as createNumberFormat, E as UnitInput_default, F as parseLocaleNumber, G as Button_default, H as VisuallyHidden_default, I as useHeadingTag, J as FORM_SUBMITTING_KEY, K as Icon_default, L as TAG_FILL, M as formatNumber, N as formatUnit, O as currencyFractionDigits, P as localeSeparators, Q as applyMask, R as TAG_SHAPE, S as focusInvalid, T as CurrencyInput_default, U as RequiredMark_default, V as Checkbox_default, W as FieldError_default, X as Input_default, Y as Autocomplete_default, Z as useSlotPresence, _ as optionCursor, a as claimShortcut, b as MultiSelect_default, c as SearchResultsPanel_default, d as INPUT, et as stripMask, f as PLAIN_BOX_ONLY, g as labelRecipe, h as dotRecipe, i as SearchBar_default, j as formatCurrency, k as currencySymbol, l as RadioGroup_default, m as PLAIN_OPTION, n as Textarea_default, o as ownsShortcut, p as PLAIN_COLUMNS, q as FORM_LAYOUT_KEY, r as Select_default, s as releaseShortcut, t as VariantPicker_default, u as HINT, v as radioRecipe, w as filterNumericBeforeInput, x as FormLayout_default, y as QuantityStepper_default, z as tagPadding } from "./VariantPicker-CCBZXtMa.js";
4
4
  import { i as enUS, n as provideEldraUiMessages, r as useMessages, t as MESSAGES_KEY } from "./useMessages-CrSnIuLt.js";
5
5
  import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onServerPrefetch, onUnmounted, onUpdated, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, vModelText, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
6
6
  import { dateTimeFormat } from "@eldrajs/sdk/format/date";
@@ -243,7 +243,7 @@ function createPanelHeightAnimator(panel) {
243
243
  // src/components/accordion/AccordionItem.vue?vue&type=script&setup=true&lang.ts
244
244
  var _hoisted_1$52 = ["data-eldra-scope", "href"];
245
245
  var _hoisted_2$41 = { class: "eldra:min-w-0 eldra:flex-1" };
246
- var _hoisted_3$30 = [
246
+ var _hoisted_3$31 = [
247
247
  "data-eldra-scope",
248
248
  "name",
249
249
  "open"
@@ -513,7 +513,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
513
513
  "data-eldra-slot": unref(eldra).slotHost("default"),
514
514
  "data-part": "panel",
515
515
  class: normalizeClass(panelClass.value)
516
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_5$15)], 42, _hoisted_3$30));
516
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_5$15)], 42, _hoisted_3$31));
517
517
  };
518
518
  }
519
519
  });
@@ -2303,7 +2303,7 @@ var _hoisted_1$46 = [
2303
2303
  "aria-describedby"
2304
2304
  ];
2305
2305
  var _hoisted_2$37 = ["id"];
2306
- var _hoisted_3$29 = ["data-eldra-slot"];
2306
+ var _hoisted_3$30 = ["data-eldra-slot"];
2307
2307
  var _hoisted_4$21 = ["data-eldra-scope"];
2308
2308
  var _hoisted_5$14 = ["disabled", "aria-label"];
2309
2309
  var _hoisted_6$10 = ["disabled", "aria-label"];
@@ -2618,7 +2618,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
2618
2618
  "aria-hidden": "true",
2619
2619
  focusable: "false"
2620
2620
  }, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_6$10)
2621
- ], 8, _hoisted_4$21)) : createCommentVNode("", true)], 10, _hoisted_3$29)) : createCommentVNode("", true),
2621
+ ], 8, _hoisted_4$21)) : createCommentVNode("", true)], 10, _hoisted_3$30)) : createCommentVNode("", true),
2622
2622
  createElementVNode("div", {
2623
2623
  ref_key: "trackRef",
2624
2624
  ref: trackRef,
@@ -2714,7 +2714,7 @@ var CHIP_GROUP_KEY = Symbol("eldra-ui:chip-group");
2714
2714
  // src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
2715
2715
  var _hoisted_1$45 = ["data-eldra-slot"];
2716
2716
  var _hoisted_2$36 = ["data-eldra-slot"];
2717
- var _hoisted_3$28 = ["data-eldra-slot"];
2717
+ var _hoisted_3$29 = ["data-eldra-slot"];
2718
2718
  var _hoisted_4$20 = ["aria-label", "disabled"];
2719
2719
  var REMOVE_BUTTON = "eldra:inline-flex eldra:shrink-0 eldra:items-center eldra:justify-center eldra:rounded-full eldra:text-muted eldra:hover:text-text eldra:hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_89%)] eldra:eldra-focus";
2720
2720
  var FILL_SELECTED = "eldra:bg-primary eldra:text-primary-contrast";
@@ -3009,7 +3009,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
3009
3009
  "data-eldra-slot": unref(eldra).slotHost("default"),
3010
3010
  "data-part": "label",
3011
3011
  class: normalizeClass(labelClass.value)
3012
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$28),
3012
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$29),
3013
3013
  __props.removable ? (openBlock(), createElementBlock("button", {
3014
3014
  key: 2,
3015
3015
  "data-part": "removeButton",
@@ -3319,7 +3319,7 @@ var _hoisted_2$35 = [
3319
3319
  "loading",
3320
3320
  "fetchpriority"
3321
3321
  ];
3322
- var _hoisted_3$27 = [
3322
+ var _hoisted_3$28 = [
3323
3323
  "role",
3324
3324
  "aria-hidden",
3325
3325
  "aria-label"
@@ -3554,7 +3554,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
3554
3554
  }),
3555
3555
  createElementVNode("path", { d: "M3 17l5.5 -5.5c.83 -.83 1.67 -.83 2.5 0l7 7" }),
3556
3556
  createElementVNode("path", { d: "M14 15l1.5 -1.5c.83 -.83 1.67 -.83 2.5 0l3 3" })
3557
- ], -1)), createElementVNode("span", _hoisted_4$19, toDisplayString(unref(messages).noImage), 1)], 10, _hoisted_3$27))], 6),
3557
+ ], -1)), createElementVNode("span", _hoisted_4$19, toDisplayString(unref(messages).noImage), 1)], 10, _hoisted_3$28))], 6),
3558
3558
  hasCaption.value ? (openBlock(), createElementBlock("figcaption", {
3559
3559
  key: 1,
3560
3560
  "data-part": "caption",
@@ -3767,7 +3767,7 @@ var CUE_ARROW_PATHS = [
3767
3767
  // src/components/card/ContentCard.vue?vue&type=script&setup=true&lang.ts
3768
3768
  var _hoisted_1$41 = ["data-eldra-scope", "aria-label"];
3769
3769
  var _hoisted_2$34 = ["data-eldra-scope"];
3770
- var _hoisted_3$26 = ["data-eldra-slot"];
3770
+ var _hoisted_3$27 = ["data-eldra-slot"];
3771
3771
  var _hoisted_4$18 = ["data-eldra-slot"];
3772
3772
  var _hoisted_5$13 = ["data-eldra-slot"];
3773
3773
  var _hoisted_6$9 = ["datetime"];
@@ -3981,7 +3981,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
3981
3981
  "data-eldra-slot": unref(eldra).slotHost("eyebrow"),
3982
3982
  "data-part": "eyebrow",
3983
3983
  class: normalizeClass(eyebrowClass.value)
3984
- }, [renderSlot(_ctx.$slots, "eyebrow", {}, () => [createTextVNode(toDisplayString(__props.eyebrow), 1)])], 10, _hoisted_3$26)) : createCommentVNode("", true),
3984
+ }, [renderSlot(_ctx.$slots, "eyebrow", {}, () => [createTextVNode(toDisplayString(__props.eyebrow), 1)])], 10, _hoisted_3$27)) : createCommentVNode("", true),
3985
3985
  (openBlock(), createBlock(resolveDynamicComponent(unref(headingTag)), {
3986
3986
  "data-part": "title",
3987
3987
  class: normalizeClass(titleClass.value)
@@ -4406,7 +4406,7 @@ var _hoisted_1$40 = [
4406
4406
  "aria-describedby"
4407
4407
  ];
4408
4408
  var _hoisted_2$33 = ["data-eldra-slot", "id"];
4409
- var _hoisted_3$25 = ["id"];
4409
+ var _hoisted_3$26 = ["id"];
4410
4410
  var _hoisted_4$17 = ["aria-label"];
4411
4411
  var _hoisted_5$12 = ["data-eldra-slot"];
4412
4412
  var _hoisted_6$8 = ["data-eldra-scope", "id"];
@@ -4596,7 +4596,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
4596
4596
  id: unref(titleId),
4597
4597
  "data-part": "title",
4598
4598
  class: normalizeClass(titleClass.value)
4599
- }, toDisplayString(__props.title), 11, _hoisted_3$25)) : createCommentVNode("", true), __props.closeButton ? (openBlock(), createElementBlock("button", {
4599
+ }, toDisplayString(__props.title), 11, _hoisted_3$26)) : createCommentVNode("", true), __props.closeButton ? (openBlock(), createElementBlock("button", {
4600
4600
  key: 2,
4601
4601
  type: "button",
4602
4602
  "data-part": "close",
@@ -4871,7 +4871,7 @@ var _hoisted_1$39 = [
4871
4871
  "data-side"
4872
4872
  ];
4873
4873
  var _hoisted_2$32 = ["data-eldra-slot"];
4874
- var _hoisted_3$24 = ["data-eldra-scope", "id"];
4874
+ var _hoisted_3$25 = ["data-eldra-scope", "id"];
4875
4875
  var _hoisted_4$16 = ["aria-label"];
4876
4876
  var _hoisted_5$11 = ["data-eldra-slot"];
4877
4877
  var _hoisted_6$7 = ["data-eldra-slot"];
@@ -5115,7 +5115,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
5115
5115
  key: 0,
5116
5116
  "data-part": "count",
5117
5117
  class: normalizeClass(countClass.value)
5118
- }, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_3$24)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")], 8, _hoisted_2$32), createElementVNode("button", {
5118
+ }, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_3$25)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")], 8, _hoisted_2$32), createElementVNode("button", {
5119
5119
  ref_key: "closeButtonEl",
5120
5120
  ref: closeButtonEl,
5121
5121
  type: "button",
@@ -5250,7 +5250,7 @@ var CHECK_PATHS = ["M5 12l5 5l10 -10"];
5250
5250
  // src/components/empty-state/EmptyState.vue?vue&type=script&setup=true&lang.ts
5251
5251
  var _hoisted_1$37 = ["data-eldra-scope", "role"];
5252
5252
  var _hoisted_2$31 = ["d"];
5253
- var _hoisted_3$23 = ["data-eldra-slot"];
5253
+ var _hoisted_3$24 = ["data-eldra-slot"];
5254
5254
  var ICON_STROKE_WIDTH$4 = 1.5;
5255
5255
  // src/components/empty-state/EmptyState.vue
5256
5256
  var EmptyState_default = /* @__PURE__ */ defineComponent({
@@ -5391,7 +5391,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
5391
5391
  loading: __props.retrying,
5392
5392
  label: unref(messages).tryAgain,
5393
5393
  onClick: _cache[0] || (_cache[0] = ($event) => emit("retry"))
5394
- }, null, 8, ["loading", "label"])) : createCommentVNode("", true)])], 10, _hoisted_3$23)) : createCommentVNode("", true)
5394
+ }, null, 8, ["loading", "label"])) : createCommentVNode("", true)])], 10, _hoisted_3$24)) : createCommentVNode("", true)
5395
5395
  ], 10, _hoisted_1$37);
5396
5396
  };
5397
5397
  }
@@ -5399,7 +5399,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
5399
5399
  // src/components/card/FeatureCard.vue?vue&type=script&setup=true&lang.ts
5400
5400
  var _hoisted_1$36 = ["data-eldra-scope"];
5401
5401
  var _hoisted_2$30 = ["data-eldra-slot"];
5402
- var _hoisted_3$22 = ["data-eldra-slot"];
5402
+ var _hoisted_3$23 = ["data-eldra-slot"];
5403
5403
  var _hoisted_4$15 = ["data-eldra-scope"];
5404
5404
  var _hoisted_5$10 = ["d"];
5405
5405
  // src/components/card/FeatureCard.vue
@@ -5559,7 +5559,7 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
5559
5559
  key: d,
5560
5560
  d
5561
5561
  }, null, 8, _hoisted_5$10);
5562
- }), 128))], 10, _hoisted_4$15))], 10, _hoisted_3$22)) : createCommentVNode("", true)
5562
+ }), 128))], 10, _hoisted_4$15))], 10, _hoisted_3$23)) : createCommentVNode("", true)
5563
5563
  ], 10, _hoisted_1$36);
5564
5564
  };
5565
5565
  }
@@ -5567,7 +5567,7 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
5567
5567
  // src/components/field-wrapper/FieldWrapper.vue?vue&type=script&setup=true&lang.ts
5568
5568
  var _hoisted_1$35 = ["data-eldra-scope"];
5569
5569
  var _hoisted_2$29 = ["data-eldra-slot"];
5570
- var _hoisted_3$21 = ["data-eldra-slot", "id"];
5570
+ var _hoisted_3$22 = ["data-eldra-slot", "id"];
5571
5571
  var _hoisted_4$14 = ["id"];
5572
5572
  var GROUP_INLINE = "eldra:grid eldra:min-w-0 eldra:flex-[1_1_14rem] eldra:content-start eldra:gap-1";
5573
5573
  var INLINE_ROW = "eldra:order-1 eldra:w-full eldra:basis-full";
@@ -5858,7 +5858,7 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
5858
5858
  id: helpId.value,
5859
5859
  "data-part": "help",
5860
5860
  class: normalizeClass(helpClass.value)
5861
- }, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_3$21)) : createCommentVNode("", true), __props.counter ? (openBlock(), createElementBlock("span", {
5861
+ }, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_3$22)) : createCommentVNode("", true), __props.counter ? (openBlock(), createElementBlock("span", {
5862
5862
  key: 1,
5863
5863
  id: counterId.value,
5864
5864
  "data-part": "counter",
@@ -6435,7 +6435,7 @@ var FACET_SWATCH_GUTTER = "eldra:-mx-1.5 eldra:px-1.5";
6435
6435
  // src/components/filter-panel/facets/ColourFacet.vue?vue&type=script&setup=true&lang.ts
6436
6436
  var _hoisted_1$34 = ["data-eldra-scope"];
6437
6437
  var _hoisted_2$28 = ["data-part", "data-value"];
6438
- var _hoisted_3$20 = [
6438
+ var _hoisted_3$21 = [
6439
6439
  "value",
6440
6440
  "checked",
6441
6441
  "disabled",
@@ -6608,7 +6608,7 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
6608
6608
  disabled: disabled(value),
6609
6609
  "aria-label": nameOf(value),
6610
6610
  onChange: ($event) => emit("toggle", value.value, $event.target.checked)
6611
- }, null, 40, _hoisted_3$20),
6611
+ }, null, 40, _hoisted_3$21),
6612
6612
  createElementVNode("span", { class: normalizeClass(ringClass(value)) }, [
6613
6613
  createElementVNode("span", {
6614
6614
  "data-part": "swatch",
@@ -6663,7 +6663,7 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
6663
6663
  // src/components/filter-panel/facets/ListFacet.vue?vue&type=script&setup=true&lang.ts
6664
6664
  var _hoisted_1$33 = ["data-eldra-scope"];
6665
6665
  var _hoisted_2$27 = ["data-eldra-scope"];
6666
- var _hoisted_3$19 = ["id"];
6666
+ var _hoisted_3$20 = ["id"];
6667
6667
  var _hoisted_4$12 = ["data-eldra-scope"];
6668
6668
  var _hoisted_5$9 = ["data-eldra-scope"];
6669
6669
  var _hoisted_6$6 = ["aria-label"];
@@ -6895,7 +6895,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
6895
6895
  "onChange"
6896
6896
  ]);
6897
6897
  }), 128))], 8, _hoisted_6$6)) : createCommentVNode("", true)], 64);
6898
- }), 128))], 10, _hoisted_3$19),
6898
+ }), 128))], 10, _hoisted_3$20),
6899
6899
  createElementVNode("span", {
6900
6900
  "data-part": "noMatches",
6901
6901
  role: "status",
@@ -7092,7 +7092,7 @@ function rangeKeyTransition(key, shiftKey, thumb, value, math) {
7092
7092
  // src/components/range-slider/RangeSlider.vue?vue&type=script&setup=true&lang.ts
7093
7093
  var _hoisted_1$32 = ["data-eldra-scope"];
7094
7094
  var _hoisted_2$26 = ["id"];
7095
- var _hoisted_3$18 = ["data-eldra-slot", "aria-labelledby"];
7095
+ var _hoisted_3$19 = ["data-eldra-slot", "aria-labelledby"];
7096
7096
  var _hoisted_4$11 = ["data-eldra-scope"];
7097
7097
  var _hoisted_5$8 = [
7098
7098
  "data-thumb",
@@ -7641,7 +7641,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
7641
7641
  onKeyup: onThumbKeyup,
7642
7642
  onBlur: onThumbBlur
7643
7643
  }, null, 46, _hoisted_5$8);
7644
- }), 128))], 42, _hoisted_4$11)], 64)) : createCommentVNode("", true)], 10, _hoisted_3$18),
7644
+ }), 128))], 42, _hoisted_4$11)], 64)) : createCommentVNode("", true)], 10, _hoisted_3$19),
7645
7645
  __props.inputs ? (openBlock(), createElementBlock("div", {
7646
7646
  key: 1,
7647
7647
  "data-eldra-slot": unref(eldra).slotHost("inputs"),
@@ -8255,7 +8255,7 @@ var Link_default = /* @__PURE__ */ defineComponent({
8255
8255
  // src/components/filter-panel/facets/SizeFacet.vue?vue&type=script&setup=true&lang.ts
8256
8256
  var _hoisted_1$28 = ["data-eldra-scope"];
8257
8257
  var _hoisted_2$23 = ["data-value"];
8258
- var _hoisted_3$17 = [
8258
+ var _hoisted_3$18 = [
8259
8259
  "value",
8260
8260
  "checked",
8261
8261
  "disabled",
@@ -8383,7 +8383,7 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
8383
8383
  disabled: disabled(value),
8384
8384
  "aria-label": nameOf(value),
8385
8385
  onChange: ($event) => emit("toggle", value.value, $event.target.checked)
8386
- }, null, 40, _hoisted_3$17), createElementVNode("span", {
8386
+ }, null, 40, _hoisted_3$18), createElementVNode("span", {
8387
8387
  "data-part": "tileLabel",
8388
8388
  class: normalizeClass(tileLabelClass.value),
8389
8389
  "aria-hidden": "true"
@@ -8404,7 +8404,7 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
8404
8404
  // src/components/filter-panel/facets/ToggleFacet.vue?vue&type=script&setup=true&lang.ts
8405
8405
  var _hoisted_1$27 = ["data-eldra-scope"];
8406
8406
  var _hoisted_2$22 = ["data-value"];
8407
- var _hoisted_3$16 = ["data-eldra-scope"];
8407
+ var _hoisted_3$17 = ["data-eldra-scope"];
8408
8408
  var VALUES_BASE = "eldra:flex eldra:min-w-0 eldra:flex-col eldra:gap-1";
8409
8409
  /**
8410
8410
  * Spec → Sizes, Switch row: "Min 2.25rem tall, space-between, 0.75rem gap."
@@ -8481,7 +8481,7 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
8481
8481
  default: withCtx(() => [createElementVNode("span", {
8482
8482
  "data-eldra-scope": unref(eldra).scope,
8483
8483
  class: normalizeClass(SWITCH_LABEL)
8484
- }, toDisplayString(value.label), 9, _hoisted_3$16)]),
8484
+ }, toDisplayString(value.label), 9, _hoisted_3$17)]),
8485
8485
  _: 2
8486
8486
  }, 1032, [
8487
8487
  "model-value",
@@ -8498,7 +8498,7 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
8498
8498
  // src/components/filter-panel/FilterGroup.vue?vue&type=script&setup=true&lang.ts
8499
8499
  var _hoisted_1$26 = ["data-eldra-scope", "data-facet"];
8500
8500
  var _hoisted_2$21 = { class: "eldra:m-0" };
8501
- var _hoisted_3$15 = [
8501
+ var _hoisted_3$16 = [
8502
8502
  "id",
8503
8503
  "aria-expanded",
8504
8504
  "aria-controls"
@@ -8663,7 +8663,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
8663
8663
  "aria-hidden": "true",
8664
8664
  focusable: "false"
8665
8665
  }, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M6 9l6 6l6 -6" }, null, -1)])], 2))
8666
- ], 10, _hoisted_3$15)]), withDirectives(createElementVNode("fieldset", {
8666
+ ], 10, _hoisted_3$16)]), withDirectives(createElementVNode("fieldset", {
8667
8667
  "data-eldra-slot": unref(eldra).slotHost("default"),
8668
8668
  "data-part": "body",
8669
8669
  id: __props.panelId,
@@ -8682,7 +8682,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
8682
8682
  // src/components/filter-panel/FilterPanel.vue?vue&type=script&setup=true&lang.ts
8683
8683
  var _hoisted_1$25 = ["data-eldra-scope", "aria-label"];
8684
8684
  var _hoisted_2$20 = ["aria-label"];
8685
- var _hoisted_3$14 = ["data-eldra-slot"];
8685
+ var _hoisted_3$15 = ["data-eldra-slot"];
8686
8686
  var ROOT_BASE = "eldra:@container eldra:min-w-0 eldra:text-control eldra:text-text";
8687
8687
  /**
8688
8688
  * The gutter the rows' own bleed needs, and it is load-bearing. The spec gives every option and
@@ -9107,7 +9107,7 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
9107
9107
  }, {
9108
9108
  default: withCtx(() => [createTextVNode(toDisplayString(__props.resultCount === null ? unref(m).filterPanelShowProducts : unref(m).filterPanelShowResults(__props.resultCount)), 1)]),
9109
9109
  _: 1
9110
- })])], 10, _hoisted_3$14)) : createCommentVNode("", true)
9110
+ })])], 10, _hoisted_3$15)) : createCommentVNode("", true)
9111
9111
  ], 40, _hoisted_1$25);
9112
9112
  };
9113
9113
  }
@@ -9152,7 +9152,7 @@ function zoomTransform(painted, stage, scale, focus) {
9152
9152
  // src/components/lightbox/Lightbox.vue?vue&type=script&setup=true&lang.ts
9153
9153
  var _hoisted_1$24 = ["data-eldra-scope", "aria-label"];
9154
9154
  var _hoisted_2$19 = { key: 1 };
9155
- var _hoisted_3$13 = ["aria-label"];
9155
+ var _hoisted_3$14 = ["aria-label"];
9156
9156
  var _hoisted_4$9 = ["disabled", "aria-label"];
9157
9157
  var _hoisted_5$6 = ["aria-label", "data-zoomed"];
9158
9158
  var _hoisted_6$4 = ["data-zoomed"];
@@ -9746,7 +9746,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9746
9746
  "stroke-linejoin": "round",
9747
9747
  "aria-hidden": "true",
9748
9748
  focusable: "false"
9749
- }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$13)]),
9749
+ }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$14)]),
9750
9750
  createElementVNode("div", {
9751
9751
  class: normalizeClass(stageClass.value),
9752
9752
  onPointerenter: onStagePointerenter,
@@ -9885,7 +9885,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9885
9885
  // src/components/load-more/LoadMore.vue?vue&type=script&setup=true&lang.ts
9886
9886
  var _hoisted_1$23 = ["data-eldra-scope"];
9887
9887
  var _hoisted_2$18 = ["id"];
9888
- var _hoisted_3$12 = ["aria-describedby", "aria-busy"];
9888
+ var _hoisted_3$13 = ["aria-describedby", "aria-busy"];
9889
9889
  var rootClass$2 = "eldra:flex eldra:flex-col eldra:items-center eldra:gap-3";
9890
9890
  /** Spec → Sizes, "Load-more status": "0.875rem, tabular numbers" — the shared `text-body-sm` type
9891
9891
  * style is the same 0.875rem, so this needs no per-component variable of its own. Accessibility:
@@ -9966,7 +9966,7 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
9966
9966
  }, [__props.pending ? (openBlock(), createBlock(Spinner_default, {
9967
9967
  key: 0,
9968
9968
  class: "eldra:size-4.5"
9969
- })) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_3$12)) : createCommentVNode("", true)
9969
+ })) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_3$13)) : createCommentVNode("", true)
9970
9970
  ], 8, _hoisted_1$23);
9971
9971
  };
9972
9972
  }
@@ -9981,7 +9981,7 @@ var _hoisted_2$17 = [
9981
9981
  "height",
9982
9982
  "alt"
9983
9983
  ];
9984
- var _hoisted_3$11 = [
9984
+ var _hoisted_3$12 = [
9985
9985
  "src",
9986
9986
  "srcset",
9987
9987
  "sizes",
@@ -10146,7 +10146,7 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
10146
10146
  alt: __props.name,
10147
10147
  loading: "lazy",
10148
10148
  decoding: "async"
10149
- }, null, 10, _hoisted_3$11)) : (openBlock(), createElementBlock("span", {
10149
+ }, null, 10, _hoisted_3$12)) : (openBlock(), createElementBlock("span", {
10150
10150
  key: 1,
10151
10151
  "data-part": "wordmark",
10152
10152
  class: normalizeClass(wordmarkClass.value)
@@ -10219,7 +10219,7 @@ function navLinkAttrs(link, linkAs) {
10219
10219
  // src/components/nav-menu/NavMenuPanel.vue?vue&type=script&setup=true&lang.ts
10220
10220
  var _hoisted_1$21 = ["data-eldra-scope", "data-part"];
10221
10221
  var _hoisted_2$16 = ["data-part"];
10222
- var _hoisted_3$10 = [
10222
+ var _hoisted_3$11 = [
10223
10223
  "data-eldra-slot",
10224
10224
  "id",
10225
10225
  "data-part"
@@ -10353,7 +10353,7 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
10353
10353
  _: 1
10354
10354
  })) : createCommentVNode("", true)]),
10355
10355
  _: 2
10356
- }, 1040, ["data-part", "class"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(group.group), 1)], 64))])], 10, _hoisted_3$10)) : createCommentVNode("", true), createElementVNode("ul", {
10356
+ }, 1040, ["data-part", "class"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(group.group), 1)], 64))])], 10, _hoisted_3$11)) : createCommentVNode("", true), createElementVNode("ul", {
10357
10357
  "data-part": part("panelList"),
10358
10358
  class: normalizeClass(panelListClass.value),
10359
10359
  "aria-labelledby": listLabel(group.group, index)
@@ -10512,7 +10512,7 @@ function useNavMenuKeys(options) {
10512
10512
  // src/components/nav-menu/NavMenu.vue?vue&type=script&setup=true&lang.ts
10513
10513
  var _hoisted_1$20 = ["data-eldra-scope"];
10514
10514
  var _hoisted_2$15 = ["aria-label"];
10515
- var _hoisted_3$9 = [
10515
+ var _hoisted_3$10 = [
10516
10516
  "aria-expanded",
10517
10517
  "aria-controls",
10518
10518
  "data-current",
@@ -10841,7 +10841,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
10841
10841
  "stroke-linecap": "round",
10842
10842
  "stroke-linejoin": "round",
10843
10843
  focusable: "false"
10844
- }, [createElementVNode("path", { d: "M6 9l6 6l6 -6" })], -1))])], 10, _hoisted_4$7)], 42, _hoisted_3$9), createVNode(Transition, mergeProps({ ref_for: true }, PANEL_TRANSITION, { persisted: "" }), {
10844
+ }, [createElementVNode("path", { d: "M6 9l6 6l6 -6" })], -1))])], 10, _hoisted_4$7)], 42, _hoisted_3$10), createVNode(Transition, mergeProps({ ref_for: true }, PANEL_TRANSITION, { persisted: "" }), {
10845
10845
  default: withCtx(() => [withDirectives(createElementVNode("div", {
10846
10846
  id: panelId(index),
10847
10847
  ref_for: true,
@@ -11061,7 +11061,7 @@ var _hoisted_1$19 = [
11061
11061
  "role"
11062
11062
  ];
11063
11063
  var _hoisted_2$14 = ["d"];
11064
- var _hoisted_3$8 = ["data-eldra-slot"];
11064
+ var _hoisted_3$9 = ["data-eldra-slot"];
11065
11065
  var _hoisted_4$6 = ["data-eldra-slot"];
11066
11066
  var ICON_STROKE_WIDTH$3 = 1.75;
11067
11067
  // src/components/notice/Notice.vue
@@ -11194,7 +11194,7 @@ var Notice_default = /* @__PURE__ */ defineComponent({
11194
11194
  "data-eldra-slot": unref(eldra).slotHost("default"),
11195
11195
  "data-part": "text",
11196
11196
  class: normalizeClass(textClass.value)
11197
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])], 10, _hoisted_3$8)) : createCommentVNode("", true),
11197
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])], 10, _hoisted_3$9)) : createCommentVNode("", true),
11198
11198
  unref(present).actions ? (openBlock(), createElementBlock("div", {
11199
11199
  key: 2,
11200
11200
  "data-eldra-slot": unref(eldra).slotHost("actions"),
@@ -11208,7 +11208,7 @@ var Notice_default = /* @__PURE__ */ defineComponent({
11208
11208
  // src/components/pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
11209
11209
  var _hoisted_1$18 = ["data-eldra-scope", "aria-label"];
11210
11210
  var _hoisted_2$13 = ["data-part", "aria-current"];
11211
- var _hoisted_3$7 = { key: 0 };
11211
+ var _hoisted_3$8 = { key: 0 };
11212
11212
  /**
11213
11213
  * The page window (spec "Pagination" → Properties, `siblings`: "First and last always show; the
11214
11214
  * rest collapse to '…'."). Built from the *set* of pages that must show — `1`, `totalPages`, and
@@ -11559,7 +11559,7 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
11559
11559
  _: 1
11560
11560
  }, 16, ["rel", "aria-label"])),
11561
11561
  createElementVNode("span", { class: normalizeClass(compactStatusClass) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(compactStatusParts.value, (part, index) => {
11562
- return openBlock(), createElementBlock(Fragment, { key: index }, [part.bold ? (openBlock(), createElementBlock("strong", _hoisted_3$7, toDisplayString(part.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
11562
+ return openBlock(), createElementBlock(Fragment, { key: index }, [part.bold ? (openBlock(), createElementBlock("strong", _hoisted_3$8, toDisplayString(part.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
11563
11563
  }), 128))]),
11564
11564
  nextDisabled.value ? (openBlock(), createElementBlock("span", {
11565
11565
  key: 2,
@@ -12584,7 +12584,7 @@ var RatingStars_default = /* @__PURE__ */ defineComponent({
12584
12584
  // src/components/rating/Rating.vue?vue&type=script&setup=true&lang.ts
12585
12585
  var _hoisted_1$13 = ["data-eldra-slot", "data-eldra-scope"];
12586
12586
  var _hoisted_2$11 = ["data-eldra-scope"];
12587
- var _hoisted_3$6 = ["data-eldra-scope"];
12587
+ var _hoisted_3$7 = ["data-eldra-scope"];
12588
12588
  var _hoisted_4$5 = ["data-eldra-scope"];
12589
12589
  var SECTION = "eldra:section-primary:text-primary-contrast eldra:section-accent:text-accent-contrast";
12590
12590
  // src/components/rating/Rating.vue
@@ -12736,7 +12736,7 @@ var Rating_default = /* @__PURE__ */ defineComponent({
12736
12736
  "data-part": "value",
12737
12737
  class: normalizeClass(valueClass.value),
12738
12738
  "aria-hidden": "true"
12739
- }, toDisplayString(formattedValue.value), 11, _hoisted_3$6)) : createCommentVNode("", true), __props.showCount ? (openBlock(), createElementBlock("span", {
12739
+ }, toDisplayString(formattedValue.value), 11, _hoisted_3$7)) : createCommentVNode("", true), __props.showCount ? (openBlock(), createElementBlock("span", {
12740
12740
  key: 1,
12741
12741
  "data-eldra-scope": unref(eldra).scope,
12742
12742
  "data-part": "count",
@@ -12903,7 +12903,7 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
12903
12903
  // src/components/product-card/ProductCard.vue?vue&type=script&setup=true&lang.ts
12904
12904
  var _hoisted_1$11 = ["data-eldra-scope", "aria-label"];
12905
12905
  var _hoisted_2$9 = { class: "eldra:mt-3 eldra:flex eldra:flex-1 eldra:flex-col eldra:gap-1" };
12906
- var _hoisted_3$5 = ["data-eldra-scope"];
12906
+ var _hoisted_3$6 = ["data-eldra-scope"];
12907
12907
  // src/components/product-card/ProductCard.vue
12908
12908
  var ProductCard_default = /* @__PURE__ */ defineComponent({
12909
12909
  __name: "ProductCard",
@@ -13329,7 +13329,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
13329
13329
  default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).soldOut), 1)]),
13330
13330
  _: 1
13331
13331
  }, 8, ["class"])) : createCommentVNode("", true)
13332
- ], 8, _hoisted_3$5));
13332
+ ], 8, _hoisted_3$6));
13333
13333
  };
13334
13334
  }
13335
13335
  });
@@ -13342,7 +13342,7 @@ var _hoisted_2$8 = [
13342
13342
  "disabled",
13343
13343
  "aria-invalid"
13344
13344
  ];
13345
- var _hoisted_3$4 = ["data-eldra-slot"];
13345
+ var _hoisted_3$5 = ["data-eldra-slot"];
13346
13346
  var _hoisted_4$4 = ["data-eldra-slot"];
13347
13347
  // src/components/radio/Radio.vue
13348
13348
  var Radio_default = /* @__PURE__ */ defineComponent({
@@ -13447,7 +13447,7 @@ var Radio_default = /* @__PURE__ */ defineComponent({
13447
13447
  "data-eldra-slot": unref(eldra).slotHost("default"),
13448
13448
  "data-part": "label",
13449
13449
  class: normalizeClass(labelClass.value)
13450
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$4)) : createCommentVNode("", true),
13450
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$5)) : createCommentVNode("", true),
13451
13451
  hasHint.value ? (openBlock(), createElementBlock("span", {
13452
13452
  key: 1,
13453
13453
  "data-eldra-slot": unref(eldra).slotHost("hint"),
@@ -13461,7 +13461,7 @@ var Radio_default = /* @__PURE__ */ defineComponent({
13461
13461
  // src/components/search-modal/SearchModal.vue?vue&type=script&setup=true&lang.ts
13462
13462
  var _hoisted_1$9 = ["data-eldra-scope", "aria-label"];
13463
13463
  var _hoisted_2$7 = ["action"];
13464
- var _hoisted_3$3 = [
13464
+ var _hoisted_3$4 = [
13465
13465
  "id",
13466
13466
  "value",
13467
13467
  "placeholder",
@@ -14194,7 +14194,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
14194
14194
  spellcheck: "false",
14195
14195
  onInput,
14196
14196
  onKeydown
14197
- }), null, 16, _hoisted_3$3),
14197
+ }), null, 16, _hoisted_3$4),
14198
14198
  loadingShown.value ? (openBlock(), createElementBlock("span", {
14199
14199
  key: 0,
14200
14200
  "data-part": "busy",
@@ -14839,7 +14839,7 @@ function useSiteForm(options) {
14839
14839
  // src/components/site-form/SiteForm.vue?vue&type=script&setup=true&lang.ts
14840
14840
  var _hoisted_1$8 = ["data-eldra-slot", "data-eldra-scope"];
14841
14841
  var _hoisted_2$6 = ["data-eldra-scope"];
14842
- var _hoisted_3$2 = ["data-eldra-scope"];
14842
+ var _hoisted_3$3 = ["data-eldra-scope"];
14843
14843
  var _hoisted_4$2 = ["data-eldra-slot", "data-eldra-scope"];
14844
14844
  var _hoisted_5$2 = ["data-eldra-scope"];
14845
14845
  var _hoisted_6$1 = ["data-eldra-scope"];
@@ -15010,7 +15010,7 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
15010
15010
  "data-part": "notice",
15011
15011
  role: "alert",
15012
15012
  class: normalizeClass(noticeClass.value)
15013
- }, toDisplayString(unref(m).formLoadFailed), 11, _hoisted_3$2)], void 0, 1) : unref(success) ? (openBlock(), createElementBlock("div", {
15013
+ }, toDisplayString(unref(m).formLoadFailed), 11, _hoisted_3$3)], void 0, 1) : unref(success) ? (openBlock(), createElementBlock("div", {
15014
15014
  key: 2,
15015
15015
  ref_key: "successRoot",
15016
15016
  ref: successRoot,
@@ -15250,7 +15250,7 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
15250
15250
  // src/components/step-indicator/StepIndicator.vue?vue&type=script&setup=true&lang.ts
15251
15251
  var _hoisted_1$7 = ["data-eldra-scope", "data-orientation"];
15252
15252
  var _hoisted_2$5 = ["data-state", "aria-current"];
15253
- var _hoisted_3$1 = ["d"];
15253
+ var _hoisted_3$2 = ["d"];
15254
15254
  var _hoisted_4$1 = {
15255
15255
  key: 1,
15256
15256
  class: "eldra:bg-primary-contrast eldra:size-2 eldra:rounded-full"
@@ -15361,7 +15361,7 @@ var StepIndicator_default = /* @__PURE__ */ defineComponent({
15361
15361
  return openBlock(), createElementBlock("path", {
15362
15362
  key: d,
15363
15363
  d
15364
- }, null, 8, _hoisted_3$1);
15364
+ }, null, 8, _hoisted_3$2);
15365
15365
  }), 128))])) : stateOf(index) === "current" ? (openBlock(), createElementBlock("span", _hoisted_4$1)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true)], 2), createElementVNode("span", {
15366
15366
  "data-part": "content",
15367
15367
  class: normalizeClass(contentClass.value)
@@ -15411,8 +15411,30 @@ var _hoisted_1$6 = [
15411
15411
  "aria-disabled",
15412
15412
  "tabindex"
15413
15413
  ];
15414
- var _hoisted_2$4 = ["data-eldra-scope"];
15415
- var BASE = "eldra:relative eldra:inline-flex eldra:items-center eldra:justify-center eldra:whitespace-nowrap eldra:target-touch eldra:px-4 eldra:text-variant-pill";
15414
+ var _hoisted_2$4 = ["data-eldra-slot", "data-eldra-scope"];
15415
+ var _hoisted_3$1 = ["data-eldra-scope"];
15416
+ var BASE = "eldra:group eldra:relative eldra:inline-flex eldra:items-center eldra:justify-center eldra:whitespace-nowrap";
15417
+ var SIZE_MD = "eldra:target-touch eldra:px-4 eldra:text-variant-pill";
15418
+ /**
15419
+ * `size="sm"`: a tab bar inside a tool panel (the page builder's rail). 2.25rem tall, 13px text
15420
+ * (`text-tab-sm`, the caption token's size), a 0.375rem gap between an icon and its label, and no
15421
+ * weight change on selection — the colour and the indicator carry it, so the label never shifts.
15422
+ * The weight is `font-medium` in every state, see `weightClass`.
15423
+ */
15424
+ var SIZE_SM = "eldra:h-9 eldra:gap-1.5 eldra:px-3 eldra:text-tab-sm";
15425
+ /**
15426
+ * The `sm` underline tab's own colours, each a per-component variable (the `--eldra-dialog-text`
15427
+ * shape) so a panel can colour its tab bar without re-theming `--eldra-color-*` for every other
15428
+ * component: `--eldra-tabs-accent` (selected text and the indicator; default the primary colour),
15429
+ * `--eldra-tabs-muted` (unselected text; default `muted`) and `--eldra-tabs-hover-bg` (hover
15430
+ * background; default the 6% text tint `md` uses). Written out in full, never interpolated: see
15431
+ * `Tabs.vue`'s `PILLS_RING_RESERVE`.
15432
+ */
15433
+ var SM_SELECTED_TEXT = "eldra:text-[color:var(--eldra-tabs-accent,var(--eldra-color-primary))]";
15434
+ var SM_REST_TEXT = "eldra:text-[color:var(--eldra-tabs-muted,var(--eldra-color-muted))]";
15435
+ var SM_HOVER = "eldra:hover:text-text eldra:hover:bg-[var(--eldra-tabs-hover-bg,color-mix(in_oklab,var(--eldra-color-text),transparent_94%))]";
15436
+ /** `fill`: every tab takes an equal share of the list. `min-w-0` lets a long label shrink. */
15437
+ var FILL = "eldra:min-w-0 eldra:flex-1";
15416
15438
  // src/components/tabs/Tab.vue
15417
15439
  var Tab_default = /* @__PURE__ */ defineComponent({
15418
15440
  __name: "Tab",
@@ -15447,6 +15469,7 @@ var Tab_default = /* @__PURE__ */ defineComponent({
15447
15469
  onBeforeUnmount(() => unregister?.());
15448
15470
  const isSelected = computed(() => context.isSelected(props.value));
15449
15471
  const isUnderline = computed(() => context.variant.value === "underline");
15472
+ const isSmall = computed(() => context.size.value === "sm");
15450
15473
  function select() {
15451
15474
  if (props.disabled) return;
15452
15475
  context.select(props.value);
@@ -15487,11 +15510,18 @@ var Tab_default = /* @__PURE__ */ defineComponent({
15487
15510
  * comment): one size, two weights depending on state, and a `font` shorthand cannot express that,
15488
15511
  * so the weight is a separate `font-medium`/`font-semibold` utility paired with it here instead.
15489
15512
  */
15490
- const UNDERLINE = computed(() => ["eldra:rounded-t-sm eldra:eldra-focus-inset eldra:cursor-pointer", isSelected.value ? "eldra:font-semibold eldra:text-text" : ["eldra:font-medium eldra:text-muted eldra:hover:text-text", "eldra:hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]"]]);
15513
+ const selectedWeight = computed(() => isSmall.value ? "eldra:font-medium" : "eldra:font-semibold");
15514
+ /** States (spec "Tabs" → States, Underline column). Hover text on the tint stays `text`, per the
15515
+ * spec's own contrast row ("hover text on the 6% tint 15.0:1"). */
15516
+ const UNDERLINE = computed(() => ["eldra:rounded-t-sm eldra:eldra-focus-inset eldra:cursor-pointer", isSelected.value ? [selectedWeight.value, isSmall.value ? SM_SELECTED_TEXT : "eldra:text-text"] : isSmall.value ? [
15517
+ "eldra:font-medium",
15518
+ SM_REST_TEXT,
15519
+ SM_HOVER
15520
+ ] : ["eldra:font-medium eldra:text-muted eldra:hover:text-text", "eldra:hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]"]]);
15491
15521
  /** States (spec "Tabs" → States, Pills column). The selected fill carries the state on its own —
15492
15522
  * the same reading `VariantPicker`'s selected pill gives its own border, see that component's own
15493
15523
  * comment — so the border only needs a colour when unselected. */
15494
- const PILLS = computed(() => ["eldra:rounded-full eldra:border eldra:eldra-focus eldra:cursor-pointer", isSelected.value ? "eldra:border-primary eldra:bg-primary eldra:font-semibold eldra:text-primary-contrast" : ["eldra:border-border-strong eldra:font-medium eldra:text-muted eldra:hover:text-text", "eldra:hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]"]]);
15524
+ const PILLS = computed(() => ["eldra:rounded-full eldra:border eldra:eldra-focus eldra:cursor-pointer", isSelected.value ? ["eldra:border-primary eldra:bg-primary eldra:text-primary-contrast", selectedWeight.value] : ["eldra:border-border-strong eldra:font-medium eldra:text-muted eldra:hover:text-text", "eldra:hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]"]]);
15495
15525
  /**
15496
15526
  * A disabled tab (not in the spec's States table, which has no disabled row). It borrows the
15497
15527
  * package's own disabled readings rather than inventing one: unselected, `Pagination`'s disabled
@@ -15499,13 +15529,18 @@ var Tab_default = /* @__PURE__ */ defineComponent({
15499
15529
  * `Checkbox`): the selected weight is kept and the `primary` colour becomes `muted` — a `muted`
15500
15530
  * underline bar, or `Button`'s disabled fill (`surface-strong`, `muted` text) for a pill.
15501
15531
  */
15502
- const UNDERLINE_DISABLED = computed(() => ["eldra:rounded-t-sm eldra:eldra-focus-inset eldra:cursor-not-allowed", isSelected.value ? "eldra:font-semibold eldra:text-muted" : "eldra:font-medium eldra:text-muted/60"]);
15503
- const PILLS_DISABLED = computed(() => ["eldra:rounded-full eldra:border eldra:eldra-focus eldra:cursor-not-allowed", isSelected.value ? "eldra:border-transparent eldra:bg-surface-strong eldra:font-semibold eldra:text-muted" : "eldra:border-border eldra:font-medium eldra:text-muted/60"]);
15532
+ const UNDERLINE_DISABLED = computed(() => ["eldra:rounded-t-sm eldra:eldra-focus-inset eldra:cursor-not-allowed", isSelected.value ? [selectedWeight.value, "eldra:text-muted"] : "eldra:font-medium eldra:text-muted/60"]);
15533
+ const PILLS_DISABLED = computed(() => ["eldra:rounded-full eldra:border eldra:eldra-focus eldra:cursor-not-allowed", isSelected.value ? ["eldra:border-transparent eldra:bg-surface-strong eldra:text-muted", selectedWeight.value] : "eldra:border-border eldra:font-medium eldra:text-muted/60"]);
15504
15534
  const stateClass = computed(() => {
15505
15535
  if (props.disabled) return isUnderline.value ? UNDERLINE_DISABLED.value : PILLS_DISABLED.value;
15506
15536
  return isUnderline.value ? UNDERLINE.value : PILLS.value;
15507
15537
  });
15508
- const tabClass = computed(() => [BASE, stateClass.value]);
15538
+ const tabClass = computed(() => [
15539
+ BASE,
15540
+ isSmall.value ? SIZE_SM : SIZE_MD,
15541
+ context.fill.value && FILL,
15542
+ stateClass.value
15543
+ ]);
15509
15544
  /**
15510
15545
  * Spec "Tabs" → Anatomy, point 3 and → Sizes: "an underline bar … 0.1875rem tall, inset 0.5rem
15511
15546
  * from each side of the tab, sitting on the list's hairline, rounded top" and → Behaviour & motion:
@@ -15516,9 +15551,10 @@ var Tab_default = /* @__PURE__ */ defineComponent({
15516
15551
  * anatomy names.
15517
15552
  */
15518
15553
  const indicatorClass = computed(() => [
15519
- "eldra:pointer-events-none eldra:absolute eldra:inset-x-2 eldra:bottom-0 eldra:h-[0.1875rem] eldra:rounded-t-full",
15554
+ "eldra:pointer-events-none eldra:absolute eldra:bottom-0",
15555
+ isSmall.value ? "eldra:inset-x-0 eldra:h-0.5 eldra:group-focus-visible:bottom-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))]" : "eldra:inset-x-2 eldra:h-[0.1875rem] eldra:rounded-t-full",
15520
15556
  "eldra:eldra-transition-colors",
15521
- isSelected.value ? props.disabled ? "eldra:bg-muted" : "eldra:bg-primary" : "eldra:bg-transparent",
15557
+ isSelected.value ? props.disabled ? "eldra:bg-muted" : isSmall.value ? "eldra:bg-[var(--eldra-tabs-accent,var(--eldra-color-primary))]" : "eldra:bg-primary" : "eldra:bg-transparent",
15522
15558
  props.classes?.indicator
15523
15559
  ]);
15524
15560
  return (_ctx, _cache) => {
@@ -15539,13 +15575,19 @@ var Tab_default = /* @__PURE__ */ defineComponent({
15539
15575
  class: normalizeClass(tabClass.value),
15540
15576
  onClick: select,
15541
15577
  onKeydown
15542
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.title), 1)]), isUnderline.value ? (openBlock(), createElementBlock("span", {
15578
+ }, [unref(context).fill.value ? (openBlock(), createElementBlock("span", {
15543
15579
  key: 0,
15580
+ "data-eldra-slot": unref(eldra).slotHost("default"),
15581
+ "data-eldra-scope": unref(eldra).scope,
15582
+ "data-part": "label",
15583
+ class: "eldra:min-w-0 eldra:truncate"
15584
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])], 8, _hoisted_2$4)) : renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.title), 1)], void 0, 1), isUnderline.value ? (openBlock(), createElementBlock("span", {
15585
+ key: 2,
15544
15586
  "data-eldra-scope": unref(eldra).scope,
15545
15587
  "aria-hidden": "true",
15546
15588
  "data-part": "indicator",
15547
15589
  class: normalizeClass(indicatorClass.value)
15548
- }, null, 10, _hoisted_2$4)) : createCommentVNode("", true)], 42, _hoisted_1$6);
15590
+ }, null, 10, _hoisted_3$1)) : createCommentVNode("", true)], 42, _hoisted_1$6);
15549
15591
  };
15550
15592
  }
15551
15593
  });
@@ -15768,6 +15810,11 @@ var Tabs_default = /* @__PURE__ */ defineComponent({
15768
15810
  modelValue: { default: void 0 },
15769
15811
  variant: { default: "underline" },
15770
15812
  ariaLabel: {},
15813
+ size: { default: "md" },
15814
+ fill: {
15815
+ type: Boolean,
15816
+ default: false
15817
+ },
15771
15818
  activation: { default: "auto" },
15772
15819
  items: { default: void 0 },
15773
15820
  classes: { default: void 0 }
@@ -15833,6 +15880,8 @@ var Tabs_default = /* @__PURE__ */ defineComponent({
15833
15880
  selectedValue,
15834
15881
  activation: computed(() => props.activation),
15835
15882
  variant: computed(() => props.variant),
15883
+ size: computed(() => props.size),
15884
+ fill: computed(() => props.fill),
15836
15885
  isSelected,
15837
15886
  select,
15838
15887
  register,
@@ -15847,7 +15896,8 @@ var Tabs_default = /* @__PURE__ */ defineComponent({
15847
15896
  * (below) never gets a chance to engage. */
15848
15897
  const listClass = computed(() => [
15849
15898
  "eldra:flex eldra:items-center eldra:overflow-x-auto eldra:eldra-scrollbar-hide",
15850
- props.variant === "underline" ? "eldra:gap-1 eldra:border-b eldra:border-border" : ["eldra:gap-2", PILLS_RING_RESERVE],
15899
+ props.variant === "underline" ? [props.size === "sm" ? "eldra:gap-0" : "eldra:gap-1", "eldra:border-b eldra:border-border"] : ["eldra:gap-2", PILLS_RING_RESERVE],
15900
+ props.fill && "eldra:w-full",
15851
15901
  props.classes?.list
15852
15902
  ]);
15853
15903
  /** Forwarded onto every internally-rendered `Tab`/`TabPanel` in the `items` API, so a consumer's
@@ -1,7 +1,7 @@
1
- import { d as useEldraUiLocale } from "../useOptionList-CPHHDvPF.js";
1
+ import { d as useEldraUiLocale } from "../useOptionList-UMUMayec.js";
2
2
  import { r as useMessages } from "../useMessages-CrSnIuLt.js";
3
- import { a as useControlProps, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS } from "../useFieldControl-CGH6GEWM.js";
4
- import { r as phoneRule, t as PhoneInput_default } from "../PhoneInput-B5AgJJVE.js";
3
+ import { a as useControlProps, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS } from "../useFieldControl-B1JvPEeM.js";
4
+ import { r as phoneRule, t as PhoneInput_default } from "../PhoneInput-CB9p1skb.js";
5
5
  import { computed, createBlock, createSlots, defineComponent, guardReactiveProps, isRef, mergeDefaults, mergeProps, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, toRefs, unref, withCtx } from "vue";
6
6
  // src/phone/vee-validate/FieldPhoneInput.vue
7
7
  var FieldPhoneInput_default = /* @__PURE__ */ defineComponent({
package/dist/phone.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as parsePhone, c as phoneExample, i as isValidPhone, n as phoneCountryName, o as phoneCallingCode, r as phoneRule, s as phoneCountries, t as PhoneInput_default } from "./PhoneInput-B5AgJJVE.js";
1
+ import { a as parsePhone, c as phoneExample, i as isValidPhone, n as phoneCountryName, o as phoneCallingCode, r as phoneRule, s as phoneCountries, t as PhoneInput_default } from "./PhoneInput-CB9p1skb.js";
2
2
  import { n as preloadCountryFlags } from "./CountryFlag-DOa8lOHp.js";
3
3
  export { PhoneInput_default as PhoneInput, isValidPhone, parsePhone, phoneCallingCode, phoneCountries, phoneCountryName, phoneExample, phoneRule, preloadCountryFlags as preloadPhoneFlags };
package/dist/style.css CHANGED
@@ -1115,6 +1115,10 @@
1115
1115
  height: 0;
1116
1116
  }
1117
1117
 
1118
+ .eldra\:h-0\.5 {
1119
+ height: .125rem;
1120
+ }
1121
+
1118
1122
  .eldra\:h-1 {
1119
1123
  height: var(--eldra-space-1);
1120
1124
  }
@@ -1143,6 +1147,10 @@
1143
1147
  height: var(--eldra-space-8);
1144
1148
  }
1145
1149
 
1150
+ .eldra\:h-9 {
1151
+ height: 2.25rem;
1152
+ }
1153
+
1146
1154
  .eldra\:h-10 {
1147
1155
  height: 2.5rem;
1148
1156
  }
@@ -2411,6 +2419,10 @@
2411
2419
  background-color: var(--eldra-drawer-handle-color, var(--eldra-color-border-strong));
2412
2420
  }
2413
2421
 
2422
+ .eldra\:bg-\[var\(--eldra-tabs-accent\,var\(--eldra-color-primary\)\)\] {
2423
+ background-color: var(--eldra-tabs-accent, var(--eldra-color-primary));
2424
+ }
2425
+
2414
2426
  .eldra\:bg-accent {
2415
2427
  background-color: var(--eldra-color-accent);
2416
2428
  }
@@ -3240,6 +3252,12 @@
3240
3252
  line-height: var(--eldra-field-note-line-height, 1.45);
3241
3253
  }
3242
3254
 
3255
+ .eldra\:text-tab-sm {
3256
+ font-family: var(--eldra-font-body);
3257
+ font-size: var(--eldra-text-caption-size);
3258
+ line-height: var(--eldra-control-line-height, 1.5rem);
3259
+ }
3260
+
3243
3261
  .eldra\:text-tooltip {
3244
3262
  font-family: var(--eldra-font-body);
3245
3263
  font-size: var(--eldra-text-caption-size);
@@ -3369,6 +3387,14 @@
3369
3387
  color: var(--eldra-select-tag-text, var(--eldra-color-text));
3370
3388
  }
3371
3389
 
3390
+ .eldra\:text-\[color\:var\(--eldra-tabs-accent\,var\(--eldra-color-primary\)\)\] {
3391
+ color: var(--eldra-tabs-accent, var(--eldra-color-primary));
3392
+ }
3393
+
3394
+ .eldra\:text-\[color\:var\(--eldra-tabs-muted\,var\(--eldra-color-muted\)\)\] {
3395
+ color: var(--eldra-tabs-muted, var(--eldra-color-muted));
3396
+ }
3397
+
3372
3398
  .eldra\:text-accent {
3373
3399
  color: var(--eldra-color-accent);
3374
3400
  }
@@ -4036,6 +4062,10 @@
4036
4062
  }
4037
4063
  }
4038
4064
 
4065
+ .eldra\:group-focus-visible\:bottom-\[calc\(var\(--eldra-focus-offset\)_\+_var\(--eldra-focus-width\)\)\]:is(:where(.eldra\:group):focus-visible *) {
4066
+ bottom: calc(var(--eldra-focus-offset) + var(--eldra-focus-width));
4067
+ }
4068
+
4039
4069
  .eldra\:placeholder\:text-\[color\:var\(--eldra-select-panel-muted\,var\(--eldra-color-muted\)\)\]::placeholder {
4040
4070
  color: var(--eldra-select-panel-muted, var(--eldra-color-muted));
4041
4071
  }
@@ -4244,6 +4274,16 @@
4244
4274
  }
4245
4275
  }
4246
4276
 
4277
+ .eldra\:hover\:bg-\[var\(--eldra-tabs-hover-bg\,color-mix\(in_oklab\,var\(--eldra-color-text\)\,transparent_94\%\)\)\]:hover {
4278
+ background-color: var(--eldra-tabs-hover-bg, var(--eldra-color-text));
4279
+ }
4280
+
4281
+ @supports (color: color-mix(in lab, red, red)) {
4282
+ .eldra\:hover\:bg-\[var\(--eldra-tabs-hover-bg\,color-mix\(in_oklab\,var\(--eldra-color-text\)\,transparent_94\%\)\)\]:hover {
4283
+ background-color: var(--eldra-tabs-hover-bg, color-mix(in oklab,var(--eldra-color-text),transparent 94%));
4284
+ }
4285
+ }
4286
+
4247
4287
  .eldra\:hover\:bg-primary:hover {
4248
4288
  background-color: var(--eldra-color-primary);
4249
4289
  }
@@ -1,4 +1,4 @@
1
- import { $ as FIELD_KEY, rt as useUiId } from "./useOptionList-CPHHDvPF.js";
1
+ import { $ as FIELD_KEY, rt as useUiId } from "./useOptionList-UMUMayec.js";
2
2
  import { computed, inject, onMounted, onScopeDispose, shallowRef, watch } from "vue";
3
3
  import { FormContextKey, useField } from "vee-validate";
4
4
  // src/vee-validate/context.ts
@@ -122,6 +122,7 @@ var kitMerge = extendTailwindMerge({
122
122
  "search-kbd",
123
123
  "variant-legend",
124
124
  "variant-pill",
125
+ "tab-sm",
125
126
  "logo-wordmark",
126
127
  "badge",
127
128
  "stock-status",
@@ -1394,6 +1394,15 @@
1394
1394
  line-height: var(--eldra-control-line-height, 1.5rem);
1395
1395
  }
1396
1396
 
1397
+ /* The text of a `size="sm"` tab (`Tabs`): a panel tab bar's 13px label. The size is the caption
1398
+ token's, the same reuse `text-price-unit` makes; the line is the control line so the 2.25rem tab
1399
+ centres it. No weight in the shorthand: the component pairs it with `font-medium`. */
1400
+ @utility text-tab-sm {
1401
+ font-family: var(--eldra-font-body);
1402
+ font-size: var(--eldra-text-caption-size);
1403
+ line-height: var(--eldra-control-line-height, 1.5rem);
1404
+ }
1405
+
1397
1406
  /* A pill's own boundary (spec "Variant picker" → States): "1px" in every row but one. The width is
1398
1407
  a variable rather than Tailwind's `border`, the same shape as `eldra-field-border` and
1399
1408
  `eldra-checkbox-border` above: the "sold out + selected" row's own 2px line (below) is inset by
@@ -1,6 +1,6 @@
1
- import { B as CheckboxGroup_default, C as Switch_default, E as UnitInput_default, S as focusInvalid, T as CurrencyInput_default, V as Checkbox_default, X as Input_default, Y as Autocomplete_default, b as MultiSelect_default, i as SearchBar_default, l as RadioGroup_default, n as Textarea_default, r as Select_default, t as VariantPicker_default, x as FormLayout_default, y as QuantityStepper_default } from "./VariantPicker-Buz_8mHq.js";
1
+ import { B as CheckboxGroup_default, C as Switch_default, E as UnitInput_default, S as focusInvalid, T as CurrencyInput_default, V as Checkbox_default, X as Input_default, Y as Autocomplete_default, b as MultiSelect_default, i as SearchBar_default, l as RadioGroup_default, n as Textarea_default, r as Select_default, t as VariantPicker_default, x as FormLayout_default, y as QuantityStepper_default } from "./VariantPicker-CCBZXtMa.js";
2
2
  import { r as useMessages } from "./useMessages-CrSnIuLt.js";
3
- import { a as useControlProps, c as FIELD_ANCHORS_KEY, i as FIELD_VALIDATION_PROPS, l as FIELD_MESSAGES_KEY, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS, s as API_ERRORS_KEY, t as FIELD_CHOICE_VALIDATION_DEFAULTS } from "./useFieldControl-CGH6GEWM.js";
3
+ import { a as useControlProps, c as FIELD_ANCHORS_KEY, i as FIELD_VALIDATION_PROPS, l as FIELD_MESSAGES_KEY, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS, s as API_ERRORS_KEY, t as FIELD_CHOICE_VALIDATION_DEFAULTS } from "./useFieldControl-B1JvPEeM.js";
4
4
  import { r as useEldraScope } from "./useEldraScope-BDbGzt7R.js";
5
5
  import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, guardReactiveProps, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
6
6
  import { useForm } from "vee-validate";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eldrajs/ui",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Accessible Vue 3 core components for Eldra storefronts: buttons, forms, selects, cards, overlays and navigation, themed through CSS design tokens.",
5
5
  "keywords": [
6
6
  "accessible",