@eldrajs/ui 0.3.5 → 0.3.7

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 (69) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +182 -35
  3. package/dist/{VariantPicker-BjM-PmXb.js → VariantPicker-Cr_AkX47.js} +117 -44
  4. package/dist/componentNames.d.ts +1 -1
  5. package/dist/components/badge/StockBadge.vue.d.ts +1 -1
  6. package/dist/components/chip/Chip.vue.d.ts +2 -0
  7. package/dist/components/dialog/Dialog.vue.d.ts +2 -0
  8. package/dist/components/drawer/Drawer.vue.d.ts +4 -0
  9. package/dist/components/drawer/types.d.ts +15 -1
  10. package/dist/components/drawer/useDrawerDrag.d.ts +20 -0
  11. package/dist/components/filter-panel/FilterGroup.vue.d.ts +2 -0
  12. package/dist/components/filter-panel/FilterPanel.vue.d.ts +2 -0
  13. package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +2 -0
  14. package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +2 -0
  15. package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +2 -0
  16. package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +2 -0
  17. package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +2 -0
  18. package/dist/components/lightbox/Lightbox.vue.d.ts +2 -0
  19. package/dist/components/nav-menu/NavMenu.vue.d.ts +2 -0
  20. package/dist/components/notice/Notice.vue.d.ts +28 -0
  21. package/dist/components/notice/types.d.ts +38 -0
  22. package/dist/components/pagination/Pagination.vue.d.ts +2 -0
  23. package/dist/components/price/Price.vue.d.ts +1 -1
  24. package/dist/components/product-card/ProductCard.vue.d.ts +1 -1
  25. package/dist/components/radio/RadioGroup.vue.d.ts +4 -0
  26. package/dist/components/radio/recipes.d.ts +4 -2
  27. package/dist/components/radio/types.d.ts +8 -1
  28. package/dist/components/range-slider/RangeSlider.vue.d.ts +2 -0
  29. package/dist/components/search-bar/SearchBar.vue.d.ts +2 -0
  30. package/dist/components/search-modal/SearchModal.vue.d.ts +2 -0
  31. package/dist/components/select/MultiSelect.vue.d.ts +2 -0
  32. package/dist/components/select/Select.vue.d.ts +2 -0
  33. package/dist/components/site-form/SiteForm.vue.d.ts +2 -0
  34. package/dist/components/spinner/Spinner.vue.d.ts +4 -1
  35. package/dist/components/spinner/types.d.ts +9 -0
  36. package/dist/components/step-indicator/StepIndicator.vue.d.ts +7 -0
  37. package/dist/components/step-indicator/types.d.ts +30 -0
  38. package/dist/components/toast/Toast.vue.d.ts +2 -0
  39. package/dist/components/toast/Toaster.vue.d.ts +2 -0
  40. package/dist/components.css +231 -8
  41. package/dist/icons/paths.d.ts +8 -0
  42. package/dist/index.d.ts +6 -0
  43. package/dist/index.js +912 -315
  44. package/dist/messages/en-US.d.ts +8 -0
  45. package/dist/messages/is-IS.js +3 -1
  46. package/dist/resolver.js +3 -0
  47. package/dist/style.css +231 -8
  48. package/dist/{useMessages-B5nzZghs.js → useMessages-DOHGfip_.js} +9 -1
  49. package/dist/utilities.css +100 -0
  50. package/dist/vee-validate/FieldCheckbox.vue.d.ts +5 -1
  51. package/dist/vee-validate/FieldCheckboxGroup.vue.d.ts +5 -1
  52. package/dist/vee-validate/FieldCurrencyInput.vue.d.ts +5 -1
  53. package/dist/vee-validate/FieldInput.vue.d.ts +5 -1
  54. package/dist/vee-validate/FieldMultiSelect.vue.d.ts +5 -1
  55. package/dist/vee-validate/FieldQuantityStepper.vue.d.ts +5 -1
  56. package/dist/vee-validate/FieldRadioGroup.vue.d.ts +5 -1
  57. package/dist/vee-validate/FieldSearchBar.vue.d.ts +5 -1
  58. package/dist/vee-validate/FieldSelect.vue.d.ts +5 -1
  59. package/dist/vee-validate/FieldSwitch.vue.d.ts +5 -1
  60. package/dist/vee-validate/FieldTextarea.vue.d.ts +5 -1
  61. package/dist/vee-validate/FieldUnitInput.vue.d.ts +5 -1
  62. package/dist/vee-validate/FieldVariantPicker.vue.d.ts +5 -1
  63. package/dist/vee-validate/context.d.ts +32 -7
  64. package/dist/vee-validate/index.d.ts +8 -5
  65. package/dist/vee-validate/types.d.ts +26 -0
  66. package/dist/vee-validate/useFieldControl.d.ts +59 -10
  67. package/dist/vee-validate.js +258 -74
  68. package/dist/vue-i18n.js +1 -1
  69. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { $ as parseLocaleNumber, A as focusInvalid, At as joinIds, B as FIELD_CLEAR_BUTTON_BOX, C as topLayerDialog, Ct as FORM_LAYOUT_KEY, D as normalizeText, Dt as ELDRA_SCOPE_KEY, E as matchRange, Et as useControllableModel, F as defaultCharacterMeaning, G as createNumberFormat, H as FIELD_LIVE, I as stripMask, J as defaultUnitFormat, K as currencyFractionDigits, L as CurrencyInput_default, M as filterNumericBeforeInput, N as Input_default, O as useListbox, Ot as provideEldraScope, P as applyMask, Q as localeSeparators, R as UnitInput_default, S as useOverlay, St as ICON_STROKE_WIDTH$4, T as useFloating, Tt as mergeClass, U as FIELD_SEARCH_APPEARANCE, V as FIELD_DISABLED, W as FIELD_SIZE, X as formatNumber, Y as formatCurrency, Z as formatUnit, _ as optionCursor, _t as FIELD_KEY, a as claimShortcut, at as provideEldraUiCurrency, b as MultiSelect_default, bt as Icon_default, c as SearchResultsPanel_default, ct as useEldraUiLocale, d as INPUT, dt as tagPadding, et as useSlotPresence, f as PLAIN_BOX_ONLY, ft as CheckboxGroup_default, g as labelRecipe, gt as FieldError_default, h as dotRecipe, ht as RequiredMark_default, i as SearchBar_default, it as LOCALE_KEY, j as Switch_default, jt as useUiId, k as FormLayout_default, kt as useEldraScope, l as RadioGroup_default, lt as TAG_FILL, m as PLAIN_OPTION, mt as VisuallyHidden_default, n as Textarea_default, nt as CURRENCY_KEY, o as ownsShortcut, ot as provideEldraUiLocale, p as PLAIN_COLUMNS, pt as Checkbox_default, q as currencySymbol, r as Select_default, rt as DEFAULT_UI_LOCALE, s as releaseShortcut, st as useEldraUiCurrency, t as VariantPicker_default, tt as useHeadingTag, u as HINT, ut as TAG_SHAPE, v as radioRecipe, vt as Button_default, w as useTeleportTarget, wt as FORM_SUBMITTING_KEY, x as usePopover, xt as ICON_SIZE_CLASS, y as QuantityStepper_default, yt as Spinner_default, z as FIELD_BASE } from "./VariantPicker-BjM-PmXb.js";
2
- import { i as enUS, n as provideEldraUiMessages, r as useMessages, t as MESSAGES_KEY } from "./useMessages-B5nzZghs.js";
1
+ import { $ as parseLocaleNumber, A as focusInvalid, At as joinIds, B as FIELD_CLEAR_BUTTON_BOX, C as topLayerDialog, Ct as FORM_LAYOUT_KEY, D as normalizeText, Dt as ELDRA_SCOPE_KEY, E as matchRange, Et as useControllableModel, F as defaultCharacterMeaning, G as createNumberFormat, H as FIELD_LIVE, I as stripMask, J as defaultUnitFormat, K as currencyFractionDigits, L as CurrencyInput_default, M as filterNumericBeforeInput, N as Input_default, O as useListbox, Ot as provideEldraScope, P as applyMask, Q as localeSeparators, R as UnitInput_default, S as useOverlay, St as ICON_STROKE_WIDTH$6, T as useFloating, Tt as mergeClass, U as FIELD_SEARCH_APPEARANCE, V as FIELD_DISABLED, W as FIELD_SIZE, X as formatNumber, Y as formatCurrency, Z as formatUnit, _ as optionCursor, _t as FIELD_KEY, a as claimShortcut, at as provideEldraUiCurrency, b as MultiSelect_default, bt as Icon_default, c as SearchResultsPanel_default, ct as useEldraUiLocale, d as INPUT, dt as tagPadding, et as useSlotPresence, f as PLAIN_BOX_ONLY, ft as CheckboxGroup_default, g as labelRecipe, gt as FieldError_default, h as dotRecipe, ht as RequiredMark_default, i as SearchBar_default, it as LOCALE_KEY, j as Switch_default, jt as useUiId, k as FormLayout_default, kt as useEldraScope, l as RadioGroup_default, lt as TAG_FILL, m as PLAIN_OPTION, mt as VisuallyHidden_default, n as Textarea_default, nt as CURRENCY_KEY, o as ownsShortcut, ot as provideEldraUiLocale, p as PLAIN_COLUMNS, pt as Checkbox_default, q as currencySymbol, r as Select_default, rt as DEFAULT_UI_LOCALE, s as releaseShortcut, st as useEldraUiCurrency, t as VariantPicker_default, tt as useHeadingTag, u as HINT, ut as TAG_SHAPE, v as radioRecipe, vt as Button_default, w as useTeleportTarget, wt as FORM_SUBMITTING_KEY, x as usePopover, xt as ICON_SIZE_CLASS, y as QuantityStepper_default, yt as Spinner_default, z as FIELD_BASE } from "./VariantPicker-Cr_AkX47.js";
2
+ import { i as enUS, n as provideEldraUiMessages, r as useMessages, t as MESSAGES_KEY } from "./useMessages-DOHGfip_.js";
3
3
  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";
4
4
  import { dateTimeFormat } from "@eldrajs/sdk/format/date";
5
5
  // src/components/accordion/context.ts
6
6
  /** The key an `Accordion` provides its `AccordionContext` on. */
7
7
  var ACCORDION_KEY = Symbol("eldra-ui:accordion");
8
8
  // src/components/accordion/Accordion.vue?vue&type=script&setup=true&lang.ts
9
- var _hoisted_1$51 = ["data-eldra-slot", "data-eldra-scope"];
9
+ var _hoisted_1$53 = ["data-eldra-slot", "data-eldra-scope"];
10
10
  var rootClass$7 = "eldra:flex eldra:flex-col eldra:border-t eldra:border-border";
11
11
  // src/components/accordion/Accordion.vue
12
12
  var Accordion_default = /* @__PURE__ */ defineComponent({
@@ -44,7 +44,7 @@ var Accordion_default = /* @__PURE__ */ defineComponent({
44
44
  "data-eldra-scope": unref(eldra).scope,
45
45
  "data-part": "root",
46
46
  class: normalizeClass(rootClass$7)
47
- }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$51);
47
+ }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$53);
48
48
  };
49
49
  }
50
50
  });
@@ -239,15 +239,15 @@ function createPanelHeightAnimator(panel) {
239
239
  };
240
240
  }
241
241
  // src/components/accordion/AccordionItem.vue?vue&type=script&setup=true&lang.ts
242
- var _hoisted_1$50 = ["data-eldra-scope", "href"];
243
- var _hoisted_2$39 = { class: "eldra:min-w-0 eldra:flex-1" };
244
- var _hoisted_3$28 = [
242
+ var _hoisted_1$52 = ["data-eldra-scope", "href"];
243
+ var _hoisted_2$41 = { class: "eldra:min-w-0 eldra:flex-1" };
244
+ var _hoisted_3$30 = [
245
245
  "data-eldra-scope",
246
246
  "name",
247
247
  "open"
248
248
  ];
249
- var _hoisted_4$20 = { class: "eldra:min-w-0 eldra:flex-1" };
250
- var _hoisted_5$14 = ["data-eldra-slot"];
249
+ var _hoisted_4$22 = { class: "eldra:min-w-0 eldra:flex-1" };
250
+ var _hoisted_5$15 = ["data-eldra-slot"];
251
251
  var TRIGGER_BASE$1 = "eldra:group eldra:flex eldra:w-full eldra:items-center eldra:justify-between eldra:gap-4 eldra:min-h-14 eldra:py-4 eldra:rounded-sm eldra:text-start eldra:cursor-pointer eldra:eldra-focus";
252
252
  // src/components/accordion/AccordionItem.vue
253
253
  var AccordionItem_default = /* @__PURE__ */ defineComponent({
@@ -459,7 +459,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
459
459
  "data-part": "root",
460
460
  class: normalizeClass(rootClass.value),
461
461
  href: __props.href
462
- }, [createElementVNode("span", _hoisted_2$39, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
462
+ }, [createElementVNode("span", _hoisted_2$41, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
463
463
  "data-part": "title",
464
464
  class: normalizeClass(titleClass.value)
465
465
  }, {
@@ -469,7 +469,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
469
469
  key: 0,
470
470
  "data-part": "help",
471
471
  class: normalizeClass(helpClass.value)
472
- }, toDisplayString(__props.help), 3)) : createCommentVNode("", true)])], 10, _hoisted_1$50)) : (openBlock(), createElementBlock("details", {
472
+ }, toDisplayString(__props.help), 3)) : createCommentVNode("", true)])], 10, _hoisted_1$52)) : (openBlock(), createElementBlock("details", {
473
473
  key: 1,
474
474
  ref_key: "detailsRef",
475
475
  ref: detailsRef,
@@ -484,7 +484,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
484
484
  "data-part": "summary",
485
485
  class: normalizeClass(summaryClass.value),
486
486
  onClick: onSummaryClick
487
- }, [createElementVNode("span", _hoisted_4$20, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
487
+ }, [createElementVNode("span", _hoisted_4$22, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
488
488
  "data-part": "title",
489
489
  class: normalizeClass(titleClass.value)
490
490
  }, {
@@ -511,7 +511,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
511
511
  "data-eldra-slot": unref(eldra).slotHost("default"),
512
512
  "data-part": "panel",
513
513
  class: normalizeClass(panelClass.value)
514
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_5$14)], 42, _hoisted_3$28));
514
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_5$15)], 42, _hoisted_3$30));
515
515
  };
516
516
  }
517
517
  });
@@ -537,8 +537,8 @@ function initialsFromName(name) {
537
537
  return `${words[0].charAt(0)}${words[words.length - 1].charAt(0)}`.toUpperCase();
538
538
  }
539
539
  // src/components/avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
540
- var _hoisted_1$49 = ["data-eldra-scope"];
541
- var _hoisted_2$38 = ["src"];
540
+ var _hoisted_1$51 = ["data-eldra-scope"];
541
+ var _hoisted_2$40 = ["src"];
542
542
  // src/components/avatar/Avatar.vue
543
543
  var Avatar_default = /* @__PURE__ */ defineComponent({
544
544
  __name: "Avatar",
@@ -647,7 +647,7 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
647
647
  alt: "",
648
648
  "aria-hidden": "true",
649
649
  onError: onImageError
650
- }, null, 42, _hoisted_2$38)) : showInitials.value ? (openBlock(), createElementBlock("span", {
650
+ }, null, 42, _hoisted_2$40)) : showInitials.value ? (openBlock(), createElementBlock("span", {
651
651
  key: 1,
652
652
  "data-part": "initials",
653
653
  class: normalizeClass(initialsClass.value),
@@ -668,13 +668,13 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
668
668
  cx: "12",
669
669
  cy: "8",
670
670
  r: "3.5"
671
- }, null, -1), createElementVNode("path", { d: "M5 20c0 -4 3 -7 7 -7s7 3 7 7" }, null, -1)])], 2))], 16, _hoisted_1$49);
671
+ }, null, -1), createElementVNode("path", { d: "M5 20c0 -4 3 -7 7 -7s7 3 7 7" }, null, -1)])], 2))], 16, _hoisted_1$51);
672
672
  };
673
673
  }
674
674
  });
675
675
  // src/components/avatar/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
676
- var _hoisted_1$48 = ["data-eldra-scope", "aria-labelledby"];
677
- var _hoisted_2$37 = ["id"];
676
+ var _hoisted_1$50 = ["data-eldra-scope", "aria-labelledby"];
677
+ var _hoisted_2$39 = ["id"];
678
678
  var ITEM_SIZE = "sm";
679
679
  /** `Avatar.vue`'s own `size-8` for `sm` — needed again here so the item wrapper (which draws the
680
680
  * overlap and the ring) is exactly the avatar's own box, not a guess at its size. */
@@ -769,14 +769,14 @@ var AvatarGroup_default = /* @__PURE__ */ defineComponent({
769
769
  id: unref(srTextId),
770
770
  "data-part": "srText",
771
771
  class: normalizeClass(srTextClass.value)
772
- }, toDisplayString(groupLabel.value), 11, _hoisted_2$37)
773
- ], 8, _hoisted_1$48);
772
+ }, toDisplayString(groupLabel.value), 11, _hoisted_2$39)
773
+ ], 8, _hoisted_1$50);
774
774
  };
775
775
  }
776
776
  });
777
777
  // src/components/badge/Badge.vue?vue&type=script&setup=true&lang.ts
778
- var _hoisted_1$47 = ["data-eldra-slot"];
779
- var ICON_STROKE_WIDTH$3 = 2.25;
778
+ var _hoisted_1$49 = ["data-eldra-slot"];
779
+ var ICON_STROKE_WIDTH$5 = 2.25;
780
780
  /**
781
781
  * `variant` overrides `tone` (spec "Badge" → Properties): `sale` always reads as `accent`, `new`
782
782
  * always as `primary`, whatever `tone` was passed alongside it.
@@ -861,7 +861,7 @@ var Badge_default = /* @__PURE__ */ defineComponent({
861
861
  key: 0,
862
862
  "data-part": "icon",
863
863
  class: normalizeClass(iconClass.value),
864
- "stroke-width": ICON_STROKE_WIDTH$3,
864
+ "stroke-width": ICON_STROKE_WIDTH$5,
865
865
  "aria-hidden": "true",
866
866
  focusable: "false"
867
867
  }, null, 8, ["class"])) : createCommentVNode("", true),
@@ -869,7 +869,7 @@ var Badge_default = /* @__PURE__ */ defineComponent({
869
869
  "data-eldra-slot": unref(eldra).slotHost("default"),
870
870
  "data-part": "label",
871
871
  class: normalizeClass(labelClass.value)
872
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_1$47),
872
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_1$49),
873
873
  __props.hiddenSuffix ? (openBlock(), createElementBlock("span", {
874
874
  key: 1,
875
875
  "data-part": "hiddenSuffix",
@@ -882,8 +882,8 @@ var Badge_default = /* @__PURE__ */ defineComponent({
882
882
  }
883
883
  });
884
884
  // src/components/breadcrumb/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
885
- var _hoisted_1$46 = ["data-eldra-scope", "aria-label"];
886
- var _hoisted_2$36 = ["aria-label"];
885
+ var _hoisted_1$48 = ["data-eldra-scope", "aria-label"];
886
+ var _hoisted_2$38 = ["aria-label"];
887
887
  var rootClass$5 = "eldra:@container";
888
888
  // src/components/breadcrumb/Breadcrumb.vue
889
889
  var Breadcrumb_default = /* @__PURE__ */ defineComponent({
@@ -1231,7 +1231,7 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
1231
1231
  class: normalizeClass(ellipsisClass.value),
1232
1232
  "aria-label": unref(m).showMoreLevels(middleItems.value.length),
1233
1233
  onClick: expand
1234
- }, " … ", 10, _hoisted_2$36)], 2)) : createCommentVNode("", true),
1234
+ }, " … ", 10, _hoisted_2$38)], 2)) : createCommentVNode("", true),
1235
1235
  (openBlock(true), createElementBlock(Fragment, null, renderList(middleItems.value, (item, index) => {
1236
1236
  return openBlock(), createElementBlock("li", {
1237
1237
  key: `middle-${index}`,
@@ -1297,12 +1297,12 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
1297
1297
  key: 0,
1298
1298
  type: "application/ld+json",
1299
1299
  textContent: toDisplayString(structuredDataJson.value)
1300
- }, null, 8, ["textContent"])) : createCommentVNode("", true)], 8, _hoisted_1$46);
1300
+ }, null, 8, ["textContent"])) : createCommentVNode("", true)], 8, _hoisted_1$48);
1301
1301
  };
1302
1302
  }
1303
1303
  });
1304
1304
  // src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
1305
- var _hoisted_1$45 = [
1305
+ var _hoisted_1$47 = [
1306
1306
  "data-eldra-slot",
1307
1307
  "data-eldra-scope",
1308
1308
  "role"
@@ -1345,7 +1345,7 @@ var ButtonGroup_default = /* @__PURE__ */ defineComponent({
1345
1345
  "data-part": "root",
1346
1346
  class: normalizeClass(rootClass.value),
1347
1347
  role: __props.attached ? "group" : void 0
1348
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$45);
1348
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$47);
1349
1349
  };
1350
1350
  }
1351
1351
  });
@@ -2295,16 +2295,16 @@ function useCarousel(options) {
2295
2295
  };
2296
2296
  }
2297
2297
  // src/components/carousel/Carousel.vue?vue&type=script&setup=true&lang.ts
2298
- var _hoisted_1$44 = [
2298
+ var _hoisted_1$46 = [
2299
2299
  "data-eldra-scope",
2300
2300
  "aria-label",
2301
2301
  "aria-describedby"
2302
2302
  ];
2303
- var _hoisted_2$35 = ["id"];
2304
- var _hoisted_3$27 = ["data-eldra-slot"];
2305
- var _hoisted_4$19 = ["data-eldra-scope"];
2306
- var _hoisted_5$13 = ["disabled", "aria-label"];
2307
- var _hoisted_6$9 = ["disabled", "aria-label"];
2303
+ var _hoisted_2$37 = ["id"];
2304
+ var _hoisted_3$29 = ["data-eldra-slot"];
2305
+ var _hoisted_4$21 = ["data-eldra-scope"];
2306
+ var _hoisted_5$14 = ["disabled", "aria-label"];
2307
+ var _hoisted_6$10 = ["disabled", "aria-label"];
2308
2308
  var _hoisted_7$8 = [
2309
2309
  "data-eldra-slot",
2310
2310
  "tabindex",
@@ -2559,7 +2559,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
2559
2559
  id: unref(instructionsId),
2560
2560
  "data-part": "instructions",
2561
2561
  class: normalizeClass(instructionsClass.value)
2562
- }, toDisplayString(unref(messages).slideInstructions), 11, _hoisted_2$35)) : createCommentVNode("", true),
2562
+ }, toDisplayString(unref(messages).slideInstructions), 11, _hoisted_2$37)) : createCommentVNode("", true),
2563
2563
  __props.controls === "header" || _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
2564
2564
  key: 1,
2565
2565
  "data-eldra-slot": unref(eldra).slotHost("header"),
@@ -2595,7 +2595,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
2595
2595
  "stroke-linejoin": "round",
2596
2596
  "aria-hidden": "true",
2597
2597
  focusable: "false"
2598
- }, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_5$13),
2598
+ }, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_5$14),
2599
2599
  createElementVNode("button", {
2600
2600
  ref_key: "nextButtonRef",
2601
2601
  ref: nextButtonRef,
@@ -2615,8 +2615,8 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
2615
2615
  "stroke-linejoin": "round",
2616
2616
  "aria-hidden": "true",
2617
2617
  focusable: "false"
2618
- }, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_6$9)
2619
- ], 8, _hoisted_4$19)) : createCommentVNode("", true)], 10, _hoisted_3$27)) : createCommentVNode("", true),
2618
+ }, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_6$10)
2619
+ ], 8, _hoisted_4$21)) : createCommentVNode("", true)], 10, _hoisted_3$29)) : createCommentVNode("", true),
2620
2620
  createElementVNode("div", {
2621
2621
  ref_key: "trackRef",
2622
2622
  ref: trackRef,
@@ -2702,7 +2702,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
2702
2702
  }, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_15)
2703
2703
  ])) : (openBlock(), createElementBlock("span", _hoisted_16))
2704
2704
  ])) : createCommentVNode("", true)
2705
- ], 8, _hoisted_1$44);
2705
+ ], 8, _hoisted_1$46);
2706
2706
  };
2707
2707
  }
2708
2708
  });
@@ -2710,10 +2710,10 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
2710
2710
  /** The key a `ChipGroup` provides its `ChipGroupContext` on. */
2711
2711
  var CHIP_GROUP_KEY = Symbol("eldra-ui:chip-group");
2712
2712
  // src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
2713
- var _hoisted_1$43 = ["data-eldra-slot"];
2714
- var _hoisted_2$34 = ["data-eldra-slot"];
2715
- var _hoisted_3$26 = ["data-eldra-slot"];
2716
- var _hoisted_4$18 = ["aria-label", "disabled"];
2713
+ var _hoisted_1$45 = ["data-eldra-slot"];
2714
+ var _hoisted_2$36 = ["data-eldra-slot"];
2715
+ var _hoisted_3$28 = ["data-eldra-slot"];
2716
+ var _hoisted_4$20 = ["aria-label", "disabled"];
2717
2717
  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";
2718
2718
  var FILL_SELECTED = "eldra:bg-primary eldra:text-primary-contrast";
2719
2719
  var FILL_DISABLED = "eldra:bg-surface-strong eldra:text-muted eldra:cursor-not-allowed";
@@ -2993,7 +2993,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
2993
2993
  "name",
2994
2994
  "class",
2995
2995
  "classes"
2996
- ])])], 10, _hoisted_1$43)) : hasIcon.value ? (openBlock(), createElementBlock("span", {
2996
+ ])])], 10, _hoisted_1$45)) : hasIcon.value ? (openBlock(), createElementBlock("span", {
2997
2997
  key: 1,
2998
2998
  "data-eldra-slot": unref(eldra).slotHost("icon"),
2999
2999
  "data-part": "icon",
@@ -3002,12 +3002,12 @@ var Chip_default = /* @__PURE__ */ defineComponent({
3002
3002
  "stroke-width": ICON_STROKE_WIDTH[__props.size],
3003
3003
  "aria-hidden": "true",
3004
3004
  focusable: "false"
3005
- }, null, 8, ["stroke-width"]))])], 10, _hoisted_2$34)) : createCommentVNode("", true),
3005
+ }, null, 8, ["stroke-width"]))])], 10, _hoisted_2$36)) : createCommentVNode("", true),
3006
3006
  createElementVNode("span", {
3007
3007
  "data-eldra-slot": unref(eldra).slotHost("default"),
3008
3008
  "data-part": "label",
3009
3009
  class: normalizeClass(labelClass.value)
3010
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$26),
3010
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$28),
3011
3011
  __props.removable ? (openBlock(), createElementBlock("button", {
3012
3012
  key: 2,
3013
3013
  "data-part": "removeButton",
@@ -3027,7 +3027,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
3027
3027
  "stroke-linejoin": "round",
3028
3028
  "aria-hidden": "true",
3029
3029
  focusable: "false"
3030
- }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6l-12 12" }, null, -1), createElementVNode("path", { d: "M6 6l12 12" }, null, -1)])], 2))], 42, _hoisted_4$18)) : createCommentVNode("", true)
3030
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6l-12 12" }, null, -1), createElementVNode("path", { d: "M6 6l12 12" }, null, -1)])], 2))], 42, _hoisted_4$20)) : createCommentVNode("", true)
3031
3031
  ]),
3032
3032
  _: 3
3033
3033
  }, 40, [
@@ -3043,7 +3043,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
3043
3043
  }
3044
3044
  });
3045
3045
  // src/components/chip/ChipGroup.vue?vue&type=script&setup=true&lang.ts
3046
- var _hoisted_1$42 = [
3046
+ var _hoisted_1$44 = [
3047
3047
  "data-eldra-slot",
3048
3048
  "data-eldra-scope",
3049
3049
  "aria-label",
@@ -3105,7 +3105,7 @@ var ChipGroup_default = /* @__PURE__ */ defineComponent({
3105
3105
  "aria-label": __props.ariaLabel,
3106
3106
  "aria-disabled": __props.disabled ? "true" : void 0,
3107
3107
  class: normalizeClass(rootClass$3)
3108
- }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$42);
3108
+ }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$44);
3109
3109
  };
3110
3110
  }
3111
3111
  });
@@ -3302,12 +3302,12 @@ function zoomEntry(entry, zoom) {
3302
3302
  return `${entry.slice(0, start)}calc(${entry.slice(start)} * ${zoom})`;
3303
3303
  }
3304
3304
  // src/components/image/Image.vue?vue&type=script&setup=true&lang.ts
3305
- var _hoisted_1$41 = [
3305
+ var _hoisted_1$43 = [
3306
3306
  "src",
3307
3307
  "width",
3308
3308
  "height"
3309
3309
  ];
3310
- var _hoisted_2$33 = [
3310
+ var _hoisted_2$35 = [
3311
3311
  "src",
3312
3312
  "srcset",
3313
3313
  "sizes",
@@ -3317,12 +3317,12 @@ var _hoisted_2$33 = [
3317
3317
  "loading",
3318
3318
  "fetchpriority"
3319
3319
  ];
3320
- var _hoisted_3$25 = [
3320
+ var _hoisted_3$27 = [
3321
3321
  "role",
3322
3322
  "aria-hidden",
3323
3323
  "aria-label"
3324
3324
  ];
3325
- var _hoisted_4$17 = { "aria-hidden": "true" };
3325
+ var _hoisted_4$19 = { "aria-hidden": "true" };
3326
3326
  // src/components/image/Image.vue
3327
3327
  var Image_default = /* @__PURE__ */ defineComponent({
3328
3328
  inheritAttrs: false,
@@ -3505,7 +3505,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
3505
3505
  playsinline: "",
3506
3506
  width: __props.media.width,
3507
3507
  height: __props.media.height
3508
- }), toDisplayString(resolvedAlt.value), 17, _hoisted_1$41)) : __props.media ? (openBlock(), createElementBlock("img", mergeProps({
3508
+ }), toDisplayString(resolvedAlt.value), 17, _hoisted_1$43)) : __props.media ? (openBlock(), createElementBlock("img", mergeProps({
3509
3509
  key: 2,
3510
3510
  "data-part": "media",
3511
3511
  class: mediaClass.value,
@@ -3520,7 +3520,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
3520
3520
  loading: loadingAttr.value,
3521
3521
  decoding: "async",
3522
3522
  fetchpriority: fetchPriority.value
3523
- }), null, 16, _hoisted_2$33)) : (openBlock(), createElementBlock("div", {
3523
+ }), null, 16, _hoisted_2$35)) : (openBlock(), createElementBlock("div", {
3524
3524
  key: 3,
3525
3525
  "data-part": "placeholder",
3526
3526
  class: normalizeClass(placeholderClass.value),
@@ -3552,7 +3552,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
3552
3552
  }),
3553
3553
  createElementVNode("path", { d: "M3 17l5.5 -5.5c.83 -.83 1.67 -.83 2.5 0l7 7" }),
3554
3554
  createElementVNode("path", { d: "M14 15l1.5 -1.5c.83 -.83 1.67 -.83 2.5 0l3 3" })
3555
- ], -1)), createElementVNode("span", _hoisted_4$17, toDisplayString(unref(messages).noImage), 1)], 10, _hoisted_3$25))], 6),
3555
+ ], -1)), createElementVNode("span", _hoisted_4$19, toDisplayString(unref(messages).noImage), 1)], 10, _hoisted_3$27))], 6),
3556
3556
  hasCaption.value ? (openBlock(), createElementBlock("figcaption", {
3557
3557
  key: 1,
3558
3558
  "data-part": "caption",
@@ -3570,7 +3570,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
3570
3570
  }
3571
3571
  });
3572
3572
  // src/components/skeleton/Skeleton.vue?vue&type=script&setup=true&lang.ts
3573
- var _hoisted_1$40 = ["data-eldra-scope"];
3573
+ var _hoisted_1$42 = ["data-eldra-scope"];
3574
3574
  var TITLE_WIDTH_CLASS = "eldra:w-[60%]";
3575
3575
  // src/components/skeleton/Skeleton.vue
3576
3576
  var Skeleton_default = /* @__PURE__ */ defineComponent({
@@ -3697,7 +3697,7 @@ var Skeleton_default = /* @__PURE__ */ defineComponent({
3697
3697
  style: normalizeStyle(line.style),
3698
3698
  "aria-hidden": "true"
3699
3699
  }, null, 6);
3700
- }), 128))], 16, _hoisted_1$40);
3700
+ }), 128))], 16, _hoisted_1$42);
3701
3701
  };
3702
3702
  }
3703
3703
  });
@@ -3763,12 +3763,12 @@ var CUE_ARROW_PATHS = [
3763
3763
  "M13 6l6 6"
3764
3764
  ];
3765
3765
  // src/components/card/ContentCard.vue?vue&type=script&setup=true&lang.ts
3766
- var _hoisted_1$39 = ["data-eldra-scope", "aria-label"];
3767
- var _hoisted_2$32 = ["data-eldra-scope"];
3768
- var _hoisted_3$24 = ["data-eldra-slot"];
3769
- var _hoisted_4$16 = ["data-eldra-slot"];
3770
- var _hoisted_5$12 = ["data-eldra-slot"];
3771
- var _hoisted_6$8 = ["datetime"];
3766
+ var _hoisted_1$41 = ["data-eldra-scope", "aria-label"];
3767
+ var _hoisted_2$34 = ["data-eldra-scope"];
3768
+ var _hoisted_3$26 = ["data-eldra-slot"];
3769
+ var _hoisted_4$18 = ["data-eldra-slot"];
3770
+ var _hoisted_5$13 = ["data-eldra-slot"];
3771
+ var _hoisted_6$9 = ["datetime"];
3772
3772
  var _hoisted_7$7 = ["data-eldra-slot"];
3773
3773
  var _hoisted_8$3 = ["data-eldra-scope"];
3774
3774
  var _hoisted_9$3 = ["d"];
@@ -3956,7 +3956,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
3956
3956
  }, [createVNode(Skeleton_default, {
3957
3957
  variant: "text",
3958
3958
  lines: 3
3959
- })], 2)], 10, _hoisted_1$39)) : (openBlock(), createElementBlock("article", {
3959
+ })], 2)], 10, _hoisted_1$41)) : (openBlock(), createElementBlock("article", {
3960
3960
  key: 1,
3961
3961
  "data-eldra-ui": "",
3962
3962
  "data-eldra-scope": unref(eldra).scope,
@@ -3979,7 +3979,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
3979
3979
  "data-eldra-slot": unref(eldra).slotHost("eyebrow"),
3980
3980
  "data-part": "eyebrow",
3981
3981
  class: normalizeClass(eyebrowClass.value)
3982
- }, [renderSlot(_ctx.$slots, "eyebrow", {}, () => [createTextVNode(toDisplayString(__props.eyebrow), 1)])], 10, _hoisted_3$24)) : createCommentVNode("", true),
3982
+ }, [renderSlot(_ctx.$slots, "eyebrow", {}, () => [createTextVNode(toDisplayString(__props.eyebrow), 1)])], 10, _hoisted_3$26)) : createCommentVNode("", true),
3983
3983
  (openBlock(), createBlock(resolveDynamicComponent(unref(headingTag)), {
3984
3984
  "data-part": "title",
3985
3985
  class: normalizeClass(titleClass.value)
@@ -3999,7 +3999,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
3999
3999
  "data-eldra-slot": unref(eldra).slotHost("excerpt"),
4000
4000
  "data-part": "excerpt",
4001
4001
  class: normalizeClass(excerptClass.value)
4002
- }, [renderSlot(_ctx.$slots, "excerpt", {}, () => [createTextVNode(toDisplayString(__props.excerpt), 1)])], 10, _hoisted_4$16)) : createCommentVNode("", true),
4002
+ }, [renderSlot(_ctx.$slots, "excerpt", {}, () => [createTextVNode(toDisplayString(__props.excerpt), 1)])], 10, _hoisted_4$18)) : createCommentVNode("", true),
4003
4003
  hasMetaLine.value ? (openBlock(), createElementBlock("p", {
4004
4004
  key: 2,
4005
4005
  "data-eldra-slot": unref(eldra).slotHost("meta"),
@@ -4009,10 +4009,10 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
4009
4009
  formattedDate.value ? (openBlock(), createElementBlock("time", {
4010
4010
  key: 0,
4011
4011
  datetime: __props.date
4012
- }, toDisplayString(formattedDate.value), 9, _hoisted_6$8)) : createCommentVNode("", true),
4012
+ }, toDisplayString(formattedDate.value), 9, _hoisted_6$9)) : createCommentVNode("", true),
4013
4013
  formattedDate.value && __props.meta ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(" · ")], 64)) : createCommentVNode("", true),
4014
4014
  __props.meta ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(__props.meta), 1)], 64)) : createCommentVNode("", true)
4015
- ])], 10, _hoisted_5$12)) : createCommentVNode("", true),
4015
+ ])], 10, _hoisted_5$13)) : createCommentVNode("", true),
4016
4016
  showCue.value ? (openBlock(), createElementBlock("span", {
4017
4017
  key: 3,
4018
4018
  "data-eldra-slot": unref(eldra).slotHost("cue"),
@@ -4036,7 +4036,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
4036
4036
  d
4037
4037
  }, null, 8, _hoisted_9$3);
4038
4038
  }), 128))], 10, _hoisted_8$3))], 10, _hoisted_7$7)) : createCommentVNode("", true)
4039
- ], 2)], 10, _hoisted_2$32));
4039
+ ], 2)], 10, _hoisted_2$34));
4040
4040
  };
4041
4041
  }
4042
4042
  });
@@ -4349,16 +4349,16 @@ function useDialog(options) {
4349
4349
  };
4350
4350
  }
4351
4351
  // src/components/dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
4352
- var _hoisted_1$38 = [
4352
+ var _hoisted_1$40 = [
4353
4353
  "data-eldra-scope",
4354
4354
  "aria-labelledby",
4355
4355
  "aria-describedby"
4356
4356
  ];
4357
- var _hoisted_2$31 = ["data-eldra-slot", "id"];
4358
- var _hoisted_3$23 = ["id"];
4359
- var _hoisted_4$15 = ["aria-label"];
4360
- var _hoisted_5$11 = ["data-eldra-slot"];
4361
- var _hoisted_6$7 = ["data-eldra-scope", "id"];
4357
+ var _hoisted_2$33 = ["data-eldra-slot", "id"];
4358
+ var _hoisted_3$25 = ["id"];
4359
+ var _hoisted_4$17 = ["aria-label"];
4360
+ var _hoisted_5$12 = ["data-eldra-slot"];
4361
+ var _hoisted_6$8 = ["data-eldra-scope", "id"];
4362
4362
  var _hoisted_7$6 = ["data-eldra-slot"];
4363
4363
  // src/components/dialog/Dialog.vue
4364
4364
  var Dialog_default = /* @__PURE__ */ defineComponent({
@@ -4540,12 +4540,12 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
4540
4540
  id: unref(titleId),
4541
4541
  "data-part": "title",
4542
4542
  class: normalizeClass(titleClass.value)
4543
- }, [renderSlot(_ctx.$slots, "title")], 10, _hoisted_2$31)) : __props.title !== void 0 ? (openBlock(), createElementBlock("h2", {
4543
+ }, [renderSlot(_ctx.$slots, "title")], 10, _hoisted_2$33)) : __props.title !== void 0 ? (openBlock(), createElementBlock("h2", {
4544
4544
  key: 1,
4545
4545
  id: unref(titleId),
4546
4546
  "data-part": "title",
4547
4547
  class: normalizeClass(titleClass.value)
4548
- }, toDisplayString(__props.title), 11, _hoisted_3$23)) : createCommentVNode("", true), __props.closeButton ? (openBlock(), createElementBlock("button", {
4548
+ }, toDisplayString(__props.title), 11, _hoisted_3$25)) : createCommentVNode("", true), __props.closeButton ? (openBlock(), createElementBlock("button", {
4549
4549
  key: 2,
4550
4550
  type: "button",
4551
4551
  "data-part": "close",
@@ -4562,7 +4562,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
4562
4562
  "stroke-linejoin": "round",
4563
4563
  "aria-hidden": "true",
4564
4564
  focusable: "false"
4565
- }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$15)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
4565
+ }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$17)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
4566
4566
  createElementVNode("div", {
4567
4567
  "data-eldra-slot": unref(eldra).slotHost("default"),
4568
4568
  "data-part": "body",
@@ -4573,28 +4573,260 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
4573
4573
  id: unref(descriptionId),
4574
4574
  "data-part": "description",
4575
4575
  class: normalizeClass(descriptionClass.value)
4576
- }, toDisplayString(__props.description), 11, _hoisted_6$7)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 10, _hoisted_5$11),
4576
+ }, toDisplayString(__props.description), 11, _hoisted_6$8)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 10, _hoisted_5$12),
4577
4577
  slots.footer ? (openBlock(), createElementBlock("div", {
4578
4578
  key: 1,
4579
4579
  "data-eldra-slot": unref(eldra).slotHost("footer"),
4580
4580
  "data-part": "footer",
4581
4581
  class: normalizeClass(footerClass.value)
4582
4582
  }, [renderSlot(_ctx.$slots, "footer")], 10, _hoisted_7$6)) : createCommentVNode("", true)
4583
- ], 2)], 40, _hoisted_1$38);
4583
+ ], 2)], 40, _hoisted_1$40);
4584
4584
  };
4585
4585
  }
4586
4586
  });
4587
+ // src/components/drawer/useDrawerDrag.ts
4588
+ /**
4589
+ * Drag-to-dismiss for `Drawer`: a side drawer swiped toward its own edge, and a `mobileSheet`
4590
+ * drawer pulled down below the 48rem viewport edge. The panel follows the pointer one to one, the
4591
+ * backdrop fades with the distance (`--eldra-drawer-drag`, read by `eldra-drawer-motion`), and on
4592
+ * release the drawer closes past a third of its size or on a quick flick, else springs back.
4593
+ *
4594
+ * Nothing moves until the pointer has travelled the dead zone along the closing direction and
4595
+ * more along it than across it: 24px for a side swipe (`--eldra-drawer-swipe-threshold`), so a
4596
+ * stray mouse movement or a scroll never drags the drawer, and 4px on a sheet's handle and header,
4597
+ * which exist to be grabbed. The panel then starts from 0, not from the dead zone.
4598
+ *
4599
+ * Where a drag may start: never on a control (a button, link, field, or anything editable) or
4600
+ * inside something that scrolls sideways. A mouse or pen drags a side drawer by its header only,
4601
+ * so selecting text in the body still works; a finger may swipe it from anywhere. A sheet is
4602
+ * dragged by its handle and header, and by its body when the body is scrolled to the top and the
4603
+ * finger moves down, the way a native sheet hands a scroll over to the sheet.
4604
+ */
4605
+ var INTERACTIVE = "button, a[href], input, textarea, select, label, summary, [contenteditable]:not([contenteditable=\"false\"]), [role=\"slider\"], [role=\"button\"], [role=\"link\"], [role=\"tab\"], [role=\"option\"]";
4606
+ /** A third of the panel, or a flick at least this fast toward the edge, closes the drawer. */
4607
+ var DISMISS_FRACTION = .35;
4608
+ var FLICK_SPEED = .45;
4609
+ var SHEET_THRESHOLD = 4;
4610
+ var SIDE_THRESHOLD = 24;
4611
+ function isSheetViewport() {
4612
+ return typeof window !== "undefined" && window.matchMedia("(width < 48rem)").matches;
4613
+ }
4614
+ function scrollsSideways(target, stop) {
4615
+ for (let el = target; el && el !== stop; el = el.parentElement) {
4616
+ const style = getComputedStyle(el);
4617
+ if (/(auto|scroll)/.test(style.overflowX) && el.scrollWidth > el.clientWidth) return true;
4618
+ }
4619
+ return false;
4620
+ }
4621
+ function useDrawerDrag(options) {
4622
+ let gesture = null;
4623
+ let pointerId = null;
4624
+ let suppressClick = false;
4625
+ function thresholdFor(axis) {
4626
+ if (axis === "y") return SHEET_THRESHOLD;
4627
+ const raw = options.dialog.value ? getComputedStyle(options.dialog.value).getPropertyValue("--eldra-drawer-swipe-threshold") : "";
4628
+ const value = parseFloat(raw);
4629
+ return Number.isFinite(value) ? value : SIDE_THRESHOLD;
4630
+ }
4631
+ function begin(x, y, axis) {
4632
+ const panel = options.panel.value;
4633
+ if (!panel) return;
4634
+ const rect = panel.getBoundingClientRect();
4635
+ gesture = {
4636
+ axis,
4637
+ dir: axis === "y" || options.side() === "right" ? 1 : -1,
4638
+ threshold: thresholdFor(axis),
4639
+ startX: x,
4640
+ startY: y,
4641
+ origin: 0,
4642
+ engaged: false,
4643
+ size: axis === "x" ? rect.width : rect.height,
4644
+ position: 0,
4645
+ samples: []
4646
+ };
4647
+ }
4648
+ /** Feeds a pointer position; returns whether the drag is engaged (the panel is following). */
4649
+ function track(x, y) {
4650
+ const g = gesture;
4651
+ if (!g) return false;
4652
+ const along = (g.axis === "x" ? x - g.startX : y - g.startY) * g.dir;
4653
+ const across = Math.abs(g.axis === "x" ? y - g.startY : x - g.startX);
4654
+ if (!g.engaged) {
4655
+ if (Math.abs(along) < g.threshold && across < g.threshold) return false;
4656
+ if (along < g.threshold || across > along) {
4657
+ gesture = null;
4658
+ return false;
4659
+ }
4660
+ g.engaged = true;
4661
+ g.origin = along;
4662
+ options.dialog.value?.setAttribute("data-dragging", "");
4663
+ window.getSelection?.()?.removeAllRanges();
4664
+ }
4665
+ g.position = Math.max(along - g.origin, 0);
4666
+ const now = performance.now();
4667
+ g.samples.push({
4668
+ t: now,
4669
+ p: g.position
4670
+ });
4671
+ while (g.samples.length > 2 && now - g.samples[0].t > 100) g.samples.shift();
4672
+ paint(g);
4673
+ return true;
4674
+ }
4675
+ function paint(g) {
4676
+ const panel = options.panel.value;
4677
+ const dialog = options.dialog.value;
4678
+ if (!panel || !dialog) return;
4679
+ const offset = g.position * g.dir;
4680
+ panel.style.translate = g.axis === "x" ? `${offset}px 0` : `0 ${offset}px`;
4681
+ const progress = Math.min(Math.max(g.position / g.size, 0), 1);
4682
+ dialog.style.setProperty("--eldra-drawer-drag", progress.toFixed(4));
4683
+ }
4684
+ function release() {
4685
+ const g = gesture;
4686
+ gesture = null;
4687
+ if (!g?.engaged) return;
4688
+ suppressClick = true;
4689
+ setTimeout(() => suppressClick = false, 0);
4690
+ const first = g.samples[0];
4691
+ const last = g.samples[g.samples.length - 1];
4692
+ const velocity = !(last ? performance.now() - last.t > 80 : true) && first && last && last.t > first.t ? (last.p - first.p) / (last.t - first.t) : 0;
4693
+ const dismissed = g.position > g.size * DISMISS_FRACTION || velocity > FLICK_SPEED && g.position > 8;
4694
+ const dialog = options.dialog.value;
4695
+ const panel = options.panel.value;
4696
+ if (dialog && dismissed) {
4697
+ const remaining = Math.max(g.size - g.position, 0);
4698
+ const duration = Math.round(Math.min(Math.max(remaining / Math.max(velocity, 1.2), 140), 320));
4699
+ dialog.style.setProperty("--eldra-drawer-exit-duration", `${duration}ms`);
4700
+ dialog.style.setProperty("--eldra-drawer-from-opacity", "1");
4701
+ if (g.axis === "x") {
4702
+ dialog.style.setProperty("--eldra-drawer-axis-x", "0");
4703
+ dialog.style.setProperty("--eldra-drawer-away-x", String(g.dir));
4704
+ }
4705
+ }
4706
+ dialog?.removeAttribute("data-dragging");
4707
+ dialog?.style.removeProperty("--eldra-drawer-drag");
4708
+ if (panel) panel.style.translate = "";
4709
+ if (dismissed) options.dismiss();
4710
+ }
4711
+ /** Clears what a swipe-dismiss left on the root, so the next opening enters the usual way. */
4712
+ function reset() {
4713
+ const dialog = options.dialog.value;
4714
+ if (!dialog) return;
4715
+ for (const name of [
4716
+ "--eldra-drawer-exit-duration",
4717
+ "--eldra-drawer-from-opacity",
4718
+ "--eldra-drawer-axis-x",
4719
+ "--eldra-drawer-away-x",
4720
+ "--eldra-drawer-drag"
4721
+ ]) dialog.style.removeProperty(name);
4722
+ dialog.removeAttribute("data-dragging");
4723
+ if (options.panel.value) options.panel.value.style.translate = "";
4724
+ }
4725
+ function onPointerDown(event) {
4726
+ if (!options.enabled() || gesture || event.button !== 0 || !event.isPrimary) return;
4727
+ const panel = options.panel.value;
4728
+ const target = event.target;
4729
+ if (!panel || !target || target.closest(INTERACTIVE)) return;
4730
+ const sheet = options.sheet() && isSheetViewport();
4731
+ const grip = target.closest("[data-part=\"handle\"], [data-part=\"header\"]");
4732
+ if (sheet) {
4733
+ if (!grip) return;
4734
+ } else {
4735
+ if (event.pointerType !== "touch" && !grip) return;
4736
+ if (scrollsSideways(target, panel)) return;
4737
+ }
4738
+ begin(event.clientX, event.clientY, sheet ? "y" : "x");
4739
+ pointerId = event.pointerId;
4740
+ window.addEventListener("pointermove", onPointerMove);
4741
+ window.addEventListener("pointerup", onPointerEnd);
4742
+ window.addEventListener("pointercancel", onPointerCancel);
4743
+ }
4744
+ function onPointerMove(event) {
4745
+ if (event.pointerId !== pointerId) return;
4746
+ if (track(event.clientX, event.clientY)) event.preventDefault();
4747
+ }
4748
+ function stopPointer() {
4749
+ pointerId = null;
4750
+ window.removeEventListener("pointermove", onPointerMove);
4751
+ window.removeEventListener("pointerup", onPointerEnd);
4752
+ window.removeEventListener("pointercancel", onPointerCancel);
4753
+ }
4754
+ function onPointerEnd(event) {
4755
+ if (event.pointerId !== pointerId) return;
4756
+ stopPointer();
4757
+ release();
4758
+ }
4759
+ /** The browser took the gesture over (a scroll): put the panel back. */
4760
+ function onPointerCancel(event) {
4761
+ if (event.pointerId !== pointerId) return;
4762
+ stopPointer();
4763
+ if (gesture?.engaged) gesture.position = 0;
4764
+ release();
4765
+ }
4766
+ /** A drag that ended over the panel must not also click what it ended on. */
4767
+ function onClickCapture(event) {
4768
+ if (!suppressClick) return;
4769
+ suppressClick = false;
4770
+ event.preventDefault();
4771
+ event.stopPropagation();
4772
+ }
4773
+ let touchId = null;
4774
+ function onTouchStart(event) {
4775
+ const body = options.body.value;
4776
+ if (!options.enabled() || !options.sheet() || !isSheetViewport() || gesture || !body) return;
4777
+ const touch = event.changedTouches[0];
4778
+ const target = event.target;
4779
+ if (!touch || event.touches.length > 1 || !target || target.closest(INTERACTIVE)) return;
4780
+ if (body.scrollTop > 0) return;
4781
+ touchId = touch.identifier;
4782
+ begin(touch.clientX, touch.clientY, "y");
4783
+ }
4784
+ function onTouchMove(event) {
4785
+ if (touchId === null) return;
4786
+ const touch = [...event.changedTouches].find((t) => t.identifier === touchId);
4787
+ if (!touch) return;
4788
+ if ((options.body.value?.scrollTop ?? 0) > 0 && !gesture?.engaged) {
4789
+ touchId = null;
4790
+ gesture = null;
4791
+ return;
4792
+ }
4793
+ if (track(touch.clientX, touch.clientY)) event.preventDefault();
4794
+ else if (!gesture) touchId = null;
4795
+ }
4796
+ function onTouchEnd(event) {
4797
+ if (touchId === null) return;
4798
+ if (![...event.changedTouches].some((t) => t.identifier === touchId)) return;
4799
+ touchId = null;
4800
+ release();
4801
+ }
4802
+ onMounted(() => options.dialog.value?.addEventListener("click", onClickCapture, true));
4803
+ onBeforeUnmount(() => {
4804
+ options.dialog.value?.removeEventListener("click", onClickCapture, true);
4805
+ stopPointer();
4806
+ });
4807
+ return {
4808
+ onPointerDown,
4809
+ onTouchStart,
4810
+ onTouchMove,
4811
+ onTouchEnd,
4812
+ reset
4813
+ };
4814
+ }
4587
4815
  // src/components/drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
4588
- var _hoisted_1$37 = [
4816
+ var _hoisted_1$39 = [
4589
4817
  "data-eldra-scope",
4590
4818
  "aria-labelledby",
4591
- "aria-label"
4819
+ "aria-label",
4820
+ "data-side"
4592
4821
  ];
4593
- var _hoisted_2$30 = ["data-eldra-slot"];
4594
- var _hoisted_3$22 = ["data-eldra-scope", "id"];
4595
- var _hoisted_4$14 = ["aria-label"];
4596
- var _hoisted_5$10 = ["data-eldra-slot"];
4597
- var _hoisted_6$6 = ["data-eldra-slot"];
4822
+ var _hoisted_2$32 = ["data-eldra-slot"];
4823
+ var _hoisted_3$24 = ["data-eldra-scope", "id"];
4824
+ var _hoisted_4$16 = ["aria-label"];
4825
+ var _hoisted_5$11 = ["data-eldra-slot"];
4826
+ var _hoisted_6$7 = ["data-eldra-slot"];
4827
+ var handleBarClass = "eldra:block eldra:h-1 eldra:w-9 eldra:rounded-full eldra:bg-[var(--eldra-drawer-handle-color,var(--eldra-color-border-strong))]";
4828
+ /** `--eldra-drawer-width` from the `width` prop, left unset so the utility's own literal default
4829
+ * (28rem) applies when the prop is omitted. */
4598
4830
  var titleAreaClass = "eldra:min-w-0 eldra:flex-1";
4599
4831
  // src/components/drawer/Drawer.vue
4600
4832
  var Drawer_default = /* @__PURE__ */ defineComponent({
@@ -4609,6 +4841,14 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4609
4841
  ariaLabel: { default: void 0 },
4610
4842
  count: { default: void 0 },
4611
4843
  width: { default: void 0 },
4844
+ mobileSheet: {
4845
+ type: Boolean,
4846
+ default: false
4847
+ },
4848
+ swipe: {
4849
+ type: Boolean,
4850
+ default: true
4851
+ },
4612
4852
  messages: { default: void 0 },
4613
4853
  classes: { default: void 0 }
4614
4854
  },
@@ -4643,6 +4883,8 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4643
4883
  * every stateful component in this package uses. */
4644
4884
  const model = useControllableModel(props, emit, () => false);
4645
4885
  const dialogEl = ref(null);
4886
+ const panelEl = ref(null);
4887
+ const bodyEl = ref(null);
4646
4888
  const closeButtonEl = ref(null);
4647
4889
  const titleId = useUiId("drawer-title");
4648
4890
  const { close, isTop } = useDialog({
@@ -4660,6 +4902,18 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4660
4902
  }),
4661
4903
  onCancel: () => emit("cancel")
4662
4904
  });
4905
+ const drag = useDrawerDrag({
4906
+ dialog: dialogEl,
4907
+ panel: panelEl,
4908
+ body: bodyEl,
4909
+ side: () => props.side,
4910
+ sheet: () => props.mobileSheet,
4911
+ enabled: () => props.swipe,
4912
+ dismiss: () => close("swipe")
4913
+ });
4914
+ watch(model, (open) => {
4915
+ if (open) drag.reset();
4916
+ });
4663
4917
  /** The one place the public `close` event is emitted, for every closing route at once — see
4664
4918
  * `Dialog.vue`'s own comment on this exact pattern, including the `"programmatic"` reason a plain
4665
4919
  * external close (a parent setting `modelValue` to `false` directly) now reads. */
@@ -4691,10 +4945,11 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4691
4945
  * child panel to `side` — `justify-end`/`justify-start`, not a per-side inset, so the same panel
4692
4946
  * markup works for both without swapping which physical side it reads its position from.
4693
4947
  *
4694
- * The slide-in animation lives here, not on the panel (see `tailwind.css`'s own comment on
4695
- * `eldra-drawer-in-right`/`-left` for why): translating this full-viewport-width transparent box
4696
- * moves its panel child fully off-screen and back regardless of the panel's own width, while the
4697
- * `::backdrop` — a sibling box, not a descendant — is untouched and simply stays in place.
4948
+ * The motion is `eldra-drawer-motion` (see its comment in `utilities.css`): the panel slides a
4949
+ * short way in from its edge and fades, the backdrop fades, and closing plays the same in reverse.
4950
+ * It moves the panel, never this root, so a fixed descendant keeps the viewport as its containing
4951
+ * block. With `mobileSheet`, below 48rem the root becomes a column that sets the panel on the
4952
+ * bottom edge and `eldra-drawer-sheet` turns the slide into a rise from below.
4698
4953
  *
4699
4954
  * `hidden open:flex`, not a bare `flex` (fix, from the operator's own finding — see `Dialog`'s
4700
4955
  * own rootClass comment for the full mechanism): a bare `flex` here is exactly what left a closed
@@ -4705,8 +4960,8 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4705
4960
  const rootClass = computed(() => [
4706
4961
  "eldra:fixed eldra:inset-0 eldra:m-0 eldra:hidden eldra:open:flex eldra:h-auto eldra:max-h-none eldra:w-full eldra:max-w-none eldra:border-0 eldra:bg-transparent eldra:p-0 eldra:text-text",
4707
4962
  props.side === "left" ? "eldra:justify-start" : "eldra:justify-end",
4708
- "eldra:backdrop:bg-overlay eldra:focus:outline-none",
4709
- props.side === "left" ? "eldra:animate-eldra-drawer-in-left eldra:motion-reduce:animate-eldra-dialog-in-reduced" : "eldra:animate-eldra-drawer-in-right eldra:motion-reduce:animate-eldra-dialog-in-reduced"
4963
+ "eldra:overflow-clip eldra:backdrop:bg-overlay eldra:focus:outline-none eldra:eldra-drawer-motion",
4964
+ props.mobileSheet && "eldra:eldra-drawer-sheet eldra:max-md:flex-col eldra:max-md:justify-end"
4710
4965
  ]);
4711
4966
  /**
4712
4967
  * The visible sheet (spec "Drawer" → Sizes): full viewport height pinned to its edge, the width
@@ -4720,14 +4975,22 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4720
4975
  "eldra:flex eldra:h-full eldra:max-h-full eldra:min-w-0 eldra:flex-col eldra:bg-background eldra:text-text eldra:shadow-md",
4721
4976
  "eldra:eldra-drawer-width",
4722
4977
  props.side === "left" ? "eldra:border-r eldra:border-border eldra:max-md:border-r-0" : "eldra:border-l eldra:border-border eldra:max-md:border-l-0",
4978
+ props.mobileSheet && "eldra:max-md:h-auto eldra:max-md:eldra-drawer-sheet-height eldra:max-md:border-t eldra:max-md:rounded-t-[var(--eldra-drawer-sheet-radius,var(--eldra-radius-xl))]",
4979
+ props.swipe && (props.mobileSheet ? "eldra:md:touch-pan-y eldra:md:touch-pinch-zoom" : "eldra:touch-pan-y eldra:touch-pinch-zoom"),
4723
4980
  props.classes?.panel
4724
4981
  ]);
4725
- /** `--eldra-drawer-width` from the `width` prop, left unset so the utility's own literal default
4726
- * (28rem) applies when the prop is omitted. */
4982
+ /**
4983
+ * The sheet's grab handle: a short bar centred above the header, below 48rem only. Decorative to
4984
+ * assistive technology (the close button and `Esc` close it); its row, with the header below it,
4985
+ * is where the sheet is dragged, so neither lets the browser take the touch for a scroll.
4986
+ */
4987
+ const handleClass = computed(() => ["eldra:flex eldra:shrink-0 eldra:cursor-grab eldra:touch-none eldra:justify-center eldra:pt-2 eldra:pb-1 eldra:md:hidden", props.classes?.handle]);
4727
4988
  const panelStyle = computed(() => props.width === void 0 ? void 0 : { "--eldra-drawer-width": props.width });
4728
4989
  const headerClass = computed(() => [
4729
4990
  "eldra:flex eldra:shrink-0 eldra:items-center eldra:gap-4 eldra:border-b eldra:border-border",
4730
4991
  "eldra:eldra-drawer-header-height eldra:eldra-drawer-gutter eldra:eldra-drawer-header-top eldra:eldra-drawer-header-bottom",
4992
+ props.mobileSheet && "eldra:max-md:min-h-0 eldra:max-md:pt-1 eldra:max-md:touch-none",
4993
+ props.swipe && "eldra:select-none",
4731
4994
  props.classes?.header
4732
4995
  ]);
4733
4996
  /** A plain layout spacer, not a named part: `flex-1` so it claims every pixel the title does not
@@ -4769,12 +5032,22 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4769
5032
  class: normalizeClass(rootClass.value),
4770
5033
  "aria-labelledby": __props.title ? unref(titleId) : void 0,
4771
5034
  "aria-label": !__props.title ? __props.ariaLabel : void 0,
5035
+ "data-side": __props.side,
4772
5036
  onClose: onNativeClose
4773
5037
  }, [createElementVNode("div", {
5038
+ ref_key: "panelEl",
5039
+ ref: panelEl,
4774
5040
  "data-part": "panel",
4775
5041
  class: normalizeClass(panelClass.value),
4776
- style: normalizeStyle(panelStyle.value)
5042
+ style: normalizeStyle(panelStyle.value),
5043
+ onPointerdown: _cache[4] || (_cache[4] = (...args) => unref(drag).onPointerDown && unref(drag).onPointerDown(...args))
4777
5044
  }, [
5045
+ __props.mobileSheet ? (openBlock(), createElementBlock("div", {
5046
+ key: 0,
5047
+ "data-part": "handle",
5048
+ "aria-hidden": "true",
5049
+ class: normalizeClass(handleClass.value)
5050
+ }, [createElementVNode("span", { class: normalizeClass(handleBarClass) })], 2)) : createCommentVNode("", true),
4778
5051
  createElementVNode("div", {
4779
5052
  "data-part": "header",
4780
5053
  class: normalizeClass(headerClass.value)
@@ -4791,7 +5064,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4791
5064
  key: 0,
4792
5065
  "data-part": "count",
4793
5066
  class: normalizeClass(countClass.value)
4794
- }, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_3$22)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")], 8, _hoisted_2$30), createElementVNode("button", {
5067
+ }, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_3$24)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")], 8, _hoisted_2$32), createElementVNode("button", {
4795
5068
  ref_key: "closeButtonEl",
4796
5069
  ref: closeButtonEl,
4797
5070
  type: "button",
@@ -4799,7 +5072,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4799
5072
  class: normalizeClass(closeClass.value),
4800
5073
  "aria-label": closeLabel.value,
4801
5074
  onClick: onCloseClick
4802
- }, [..._cache[0] || (_cache[0] = [createElementVNode("svg", {
5075
+ }, [..._cache[5] || (_cache[5] = [createElementVNode("svg", {
4803
5076
  class: "eldra:size-4",
4804
5077
  viewBox: "0 0 24 24",
4805
5078
  fill: "none",
@@ -4809,24 +5082,30 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
4809
5082
  "stroke-linejoin": "round",
4810
5083
  "aria-hidden": "true",
4811
5084
  focusable: "false"
4812
- }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$14)], 2),
5085
+ }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$16)], 2),
4813
5086
  createElementVNode("div", {
5087
+ ref_key: "bodyEl",
5088
+ ref: bodyEl,
4814
5089
  "data-eldra-slot": unref(eldra).slotHost("default"),
4815
5090
  "data-part": "body",
4816
- class: normalizeClass(bodyClass.value)
4817
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_5$10),
5091
+ class: normalizeClass(bodyClass.value),
5092
+ onTouchstart: _cache[0] || (_cache[0] = (...args) => unref(drag).onTouchStart && unref(drag).onTouchStart(...args)),
5093
+ onTouchmove: _cache[1] || (_cache[1] = (...args) => unref(drag).onTouchMove && unref(drag).onTouchMove(...args)),
5094
+ onTouchend: _cache[2] || (_cache[2] = (...args) => unref(drag).onTouchEnd && unref(drag).onTouchEnd(...args)),
5095
+ onTouchcancel: _cache[3] || (_cache[3] = (...args) => unref(drag).onTouchEnd && unref(drag).onTouchEnd(...args))
5096
+ }, [renderSlot(_ctx.$slots, "default")], 42, _hoisted_5$11),
4818
5097
  unref(slots).footer ? (openBlock(), createElementBlock("div", {
4819
- key: 0,
5098
+ key: 1,
4820
5099
  "data-eldra-slot": unref(eldra).slotHost("footer"),
4821
5100
  "data-part": "footer",
4822
5101
  class: normalizeClass(footerClass.value)
4823
- }, [renderSlot(_ctx.$slots, "footer")], 10, _hoisted_6$6)) : createCommentVNode("", true)
4824
- ], 6)], 42, _hoisted_1$37);
5102
+ }, [renderSlot(_ctx.$slots, "footer")], 10, _hoisted_6$7)) : createCommentVNode("", true)
5103
+ ], 38)], 42, _hoisted_1$39);
4825
5104
  };
4826
5105
  }
4827
5106
  });
4828
5107
  // src/components/empty-state/EditorPlaceholder.vue?vue&type=script&setup=true&lang.ts
4829
- var _hoisted_1$36 = ["data-eldra-scope"];
5108
+ var _hoisted_1$38 = ["data-eldra-scope"];
4830
5109
  // src/components/empty-state/EditorPlaceholder.vue
4831
5110
  var EditorPlaceholder_default = /* @__PURE__ */ defineComponent({
4832
5111
  __name: "EditorPlaceholder",
@@ -4882,7 +5161,7 @@ var EditorPlaceholder_default = /* @__PURE__ */ defineComponent({
4882
5161
  "data-part": "help",
4883
5162
  class: normalizeClass(helpClass.value)
4884
5163
  }, toDisplayString(__props.help), 3)) : createCommentVNode("", true)
4885
- ], 10, _hoisted_1$36);
5164
+ ], 10, _hoisted_1$38);
4886
5165
  };
4887
5166
  }
4888
5167
  });
@@ -4901,11 +5180,27 @@ var ALERT_TRIANGLE_PATHS = [
4901
5180
  "M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",
4902
5181
  "M12 16h.01"
4903
5182
  ];
5183
+ /** `circle-check`: `Notice`'s `success` default (the same glyph `Toast` and `StockBadge` draw). */
5184
+ var CIRCLE_CHECK_PATHS = ["M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "M9 12l2 2l4 -4"];
5185
+ /** `info-circle`: `Notice`'s `info` default (the same glyph `Toast`'s `info` draws). */
5186
+ var INFO_CIRCLE_PATHS = [
5187
+ "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",
5188
+ "M12 9h.01",
5189
+ "M11 12h1v4h1"
5190
+ ];
5191
+ /** `alert-circle`: `Notice`'s `danger` default (the same glyph `Toast`'s `danger` draws). */
5192
+ var ALERT_CIRCLE_PATHS = [
5193
+ "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",
5194
+ "M12 8v4",
5195
+ "M12 16h.01"
5196
+ ];
5197
+ /** `check`: a completed step's mark in `StepIndicator`. */
5198
+ var CHECK_PATHS = ["M5 12l5 5l10 -10"];
4904
5199
  // src/components/empty-state/EmptyState.vue?vue&type=script&setup=true&lang.ts
4905
- var _hoisted_1$35 = ["data-eldra-scope", "role"];
4906
- var _hoisted_2$29 = ["d"];
4907
- var _hoisted_3$21 = ["data-eldra-slot"];
4908
- var ICON_STROKE_WIDTH$2 = 1.5;
5200
+ var _hoisted_1$37 = ["data-eldra-scope", "role"];
5201
+ var _hoisted_2$31 = ["d"];
5202
+ var _hoisted_3$23 = ["data-eldra-slot"];
5203
+ var ICON_STROKE_WIDTH$4 = 1.5;
4909
5204
  // src/components/empty-state/EmptyState.vue
4910
5205
  var EmptyState_default = /* @__PURE__ */ defineComponent({
4911
5206
  __name: "EmptyState",
@@ -5002,7 +5297,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
5002
5297
  }, [__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
5003
5298
  key: 0,
5004
5299
  class: "eldra:size-7",
5005
- "stroke-width": ICON_STROKE_WIDTH$2,
5300
+ "stroke-width": ICON_STROKE_WIDTH$4,
5006
5301
  "aria-hidden": "true",
5007
5302
  focusable: "false"
5008
5303
  })) : (openBlock(), createElementBlock("svg", {
@@ -5011,7 +5306,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
5011
5306
  viewBox: "0 0 24 24",
5012
5307
  fill: "none",
5013
5308
  stroke: "currentColor",
5014
- "stroke-width": ICON_STROKE_WIDTH$2,
5309
+ "stroke-width": ICON_STROKE_WIDTH$4,
5015
5310
  "stroke-linecap": "round",
5016
5311
  "stroke-linejoin": "round",
5017
5312
  "aria-hidden": "true",
@@ -5020,7 +5315,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
5020
5315
  return openBlock(), createElementBlock("path", {
5021
5316
  key: d,
5022
5317
  d
5023
- }, null, 8, _hoisted_2$29);
5318
+ }, null, 8, _hoisted_2$31);
5024
5319
  }), 128))]))], 2),
5025
5320
  (openBlock(), createBlock(resolveDynamicComponent(unref(headingTag)), {
5026
5321
  "data-part": "title",
@@ -5045,17 +5340,17 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
5045
5340
  loading: __props.retrying,
5046
5341
  label: unref(messages).tryAgain,
5047
5342
  onClick: _cache[0] || (_cache[0] = ($event) => emit("retry"))
5048
- }, null, 8, ["loading", "label"])) : createCommentVNode("", true)])], 10, _hoisted_3$21)) : createCommentVNode("", true)
5049
- ], 10, _hoisted_1$35);
5343
+ }, null, 8, ["loading", "label"])) : createCommentVNode("", true)])], 10, _hoisted_3$23)) : createCommentVNode("", true)
5344
+ ], 10, _hoisted_1$37);
5050
5345
  };
5051
5346
  }
5052
5347
  });
5053
5348
  // src/components/card/FeatureCard.vue?vue&type=script&setup=true&lang.ts
5054
- var _hoisted_1$34 = ["data-eldra-scope"];
5055
- var _hoisted_2$28 = ["data-eldra-slot"];
5056
- var _hoisted_3$20 = ["data-eldra-slot"];
5057
- var _hoisted_4$13 = ["data-eldra-scope"];
5058
- var _hoisted_5$9 = ["d"];
5349
+ var _hoisted_1$36 = ["data-eldra-scope"];
5350
+ var _hoisted_2$30 = ["data-eldra-slot"];
5351
+ var _hoisted_3$22 = ["data-eldra-slot"];
5352
+ var _hoisted_4$15 = ["data-eldra-scope"];
5353
+ var _hoisted_5$10 = ["d"];
5059
5354
  // src/components/card/FeatureCard.vue
5060
5355
  var FeatureCard_default = /* @__PURE__ */ defineComponent({
5061
5356
  __name: "FeatureCard",
@@ -5190,7 +5485,7 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
5190
5485
  "data-eldra-slot": unref(eldra).slotHost("body"),
5191
5486
  "data-part": "body",
5192
5487
  class: normalizeClass(bodyClass.value)
5193
- }, [renderSlot(_ctx.$slots, "body", {}, () => [createTextVNode(toDisplayString(__props.body), 1)])], 10, _hoisted_2$28),
5488
+ }, [renderSlot(_ctx.$slots, "body", {}, () => [createTextVNode(toDisplayString(__props.body), 1)])], 10, _hoisted_2$30),
5194
5489
  hasHref.value ? (openBlock(), createElementBlock("span", {
5195
5490
  key: 0,
5196
5491
  "data-eldra-slot": unref(eldra).slotHost("cue"),
@@ -5212,17 +5507,17 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
5212
5507
  return openBlock(), createElementBlock("path", {
5213
5508
  key: d,
5214
5509
  d
5215
- }, null, 8, _hoisted_5$9);
5216
- }), 128))], 10, _hoisted_4$13))], 10, _hoisted_3$20)) : createCommentVNode("", true)
5217
- ], 10, _hoisted_1$34);
5510
+ }, null, 8, _hoisted_5$10);
5511
+ }), 128))], 10, _hoisted_4$15))], 10, _hoisted_3$22)) : createCommentVNode("", true)
5512
+ ], 10, _hoisted_1$36);
5218
5513
  };
5219
5514
  }
5220
5515
  });
5221
5516
  // src/components/field-wrapper/FieldWrapper.vue?vue&type=script&setup=true&lang.ts
5222
- var _hoisted_1$33 = ["data-eldra-scope"];
5223
- var _hoisted_2$27 = ["data-eldra-slot"];
5224
- var _hoisted_3$19 = ["data-eldra-slot", "id"];
5225
- var _hoisted_4$12 = ["id"];
5517
+ var _hoisted_1$35 = ["data-eldra-scope"];
5518
+ var _hoisted_2$29 = ["data-eldra-slot"];
5519
+ var _hoisted_3$21 = ["data-eldra-slot", "id"];
5520
+ var _hoisted_4$14 = ["id"];
5226
5521
  var GROUP_INLINE = "eldra:grid eldra:min-w-0 eldra:flex-[1_1_14rem] eldra:content-start eldra:gap-1";
5227
5522
  var INLINE_ROW = "eldra:order-1 eldra:w-full eldra:basis-full";
5228
5523
  /**
@@ -5472,7 +5767,7 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
5472
5767
  "data-eldra-scope": unref(eldra).scope,
5473
5768
  "data-part": "optionalText",
5474
5769
  class: normalizeClass(optionalTextClass.value)
5475
- }, "(" + toDisplayString(unref(m).optional) + ")", 11, _hoisted_1$33)) : createCommentVNode("", true),
5770
+ }, "(" + toDisplayString(unref(m).optional) + ")", 11, _hoisted_1$35)) : createCommentVNode("", true),
5476
5771
  renderSlot(_ctx.$slots, "labelSuffix")
5477
5772
  ]),
5478
5773
  _: 3
@@ -5486,7 +5781,7 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
5486
5781
  "data-eldra-slot": unref(eldra).slotHost("default"),
5487
5782
  "data-part": "control",
5488
5783
  class: normalizeClass(controlClass.value)
5489
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_2$27)]),
5784
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_2$29)]),
5490
5785
  _: 3
5491
5786
  }),
5492
5787
  hasError.value ? (openBlock(), createBlock(FieldError_default, {
@@ -5512,12 +5807,12 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
5512
5807
  id: helpId.value,
5513
5808
  "data-part": "help",
5514
5809
  class: normalizeClass(helpClass.value)
5515
- }, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_3$19)) : createCommentVNode("", true), __props.counter ? (openBlock(), createElementBlock("span", {
5810
+ }, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_3$21)) : createCommentVNode("", true), __props.counter ? (openBlock(), createElementBlock("span", {
5516
5811
  key: 1,
5517
5812
  id: counterId.value,
5518
5813
  "data-part": "counter",
5519
5814
  class: normalizeClass(counterClass.value)
5520
- }, toDisplayString(counterText.value), 11, _hoisted_4$12)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)
5815
+ }, toDisplayString(counterText.value), 11, _hoisted_4$14)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)
5521
5816
  ]),
5522
5817
  _: 3
5523
5818
  }, 16, [
@@ -6087,16 +6382,16 @@ var FACET_ROW_GUTTER = "eldra:-mx-2 eldra:px-2";
6087
6382
  /** The same, at the swatch row's own tighter 0.375rem padding (spec → Sizes, Swatch row). */
6088
6383
  var FACET_SWATCH_GUTTER = "eldra:-mx-1.5 eldra:px-1.5";
6089
6384
  // src/components/filter-panel/facets/ColourFacet.vue?vue&type=script&setup=true&lang.ts
6090
- var _hoisted_1$32 = ["data-eldra-scope"];
6091
- var _hoisted_2$26 = ["data-part", "data-value"];
6092
- var _hoisted_3$18 = [
6385
+ var _hoisted_1$34 = ["data-eldra-scope"];
6386
+ var _hoisted_2$28 = ["data-part", "data-value"];
6387
+ var _hoisted_3$20 = [
6093
6388
  "value",
6094
6389
  "checked",
6095
6390
  "disabled",
6096
6391
  "aria-label",
6097
6392
  "onChange"
6098
6393
  ];
6099
- var _hoisted_4$11 = ["data-part"];
6394
+ var _hoisted_4$13 = ["data-part"];
6100
6395
  var ROWS_BASE = "eldra:grid eldra:min-w-0 eldra:grid-cols-1 eldra:gap-x-6 eldra:gap-y-0.5 eldra:@min-[26rem]:grid-cols-2";
6101
6396
  /**
6102
6397
  * Spec → Sizes, Swatch tile row: "Grid of `repeat(auto-fill, minmax(4.25rem, 1fr))`, gaps 0.75rem
@@ -6262,7 +6557,7 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
6262
6557
  disabled: disabled(value),
6263
6558
  "aria-label": nameOf(value),
6264
6559
  onChange: ($event) => emit("toggle", value.value, $event.target.checked)
6265
- }, null, 40, _hoisted_3$18),
6560
+ }, null, 40, _hoisted_3$20),
6266
6561
  createElementVNode("span", { class: normalizeClass(ringClass(value)) }, [
6267
6562
  createElementVNode("span", {
6268
6563
  "data-part": "swatch",
@@ -6304,23 +6599,23 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
6304
6599
  createElementVNode("span", {
6305
6600
  "data-part": tiles.value ? "tileLabel" : "rowLabel",
6306
6601
  class: normalizeClass(nameClass(value))
6307
- }, toDisplayString(value.label), 11, _hoisted_4$11),
6602
+ }, toDisplayString(value.label), 11, _hoisted_4$13),
6308
6603
  createElementVNode("span", {
6309
6604
  "data-part": "count",
6310
6605
  class: normalizeClass(countClass.value)
6311
6606
  }, toDisplayString(value.count), 3)
6312
- ], 10, _hoisted_2$26);
6313
- }), 128))], 10, _hoisted_1$32);
6607
+ ], 10, _hoisted_2$28);
6608
+ }), 128))], 10, _hoisted_1$34);
6314
6609
  };
6315
6610
  }
6316
6611
  });
6317
6612
  // src/components/filter-panel/facets/ListFacet.vue?vue&type=script&setup=true&lang.ts
6318
- var _hoisted_1$31 = ["data-eldra-scope"];
6319
- var _hoisted_2$25 = ["data-eldra-scope"];
6320
- var _hoisted_3$17 = ["id"];
6321
- var _hoisted_4$10 = ["data-eldra-scope"];
6322
- var _hoisted_5$8 = ["data-eldra-scope"];
6323
- var _hoisted_6$5 = ["aria-label"];
6613
+ var _hoisted_1$33 = ["data-eldra-scope"];
6614
+ var _hoisted_2$27 = ["data-eldra-scope"];
6615
+ var _hoisted_3$19 = ["id"];
6616
+ var _hoisted_4$12 = ["data-eldra-scope"];
6617
+ var _hoisted_5$9 = ["data-eldra-scope"];
6618
+ var _hoisted_6$6 = ["aria-label"];
6324
6619
  var _hoisted_7$5 = ["data-eldra-scope"];
6325
6620
  var _hoisted_8$2 = ["data-eldra-scope"];
6326
6621
  var _hoisted_9$2 = ["data-eldra-scope"];
@@ -6468,7 +6763,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
6468
6763
  "stroke-linejoin": "round",
6469
6764
  "aria-hidden": "true",
6470
6765
  focusable: "false"
6471
- }, [..._cache[2] || (_cache[2] = [createElementVNode("path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }, null, -1), createElementVNode("path", { d: "M21 21l-6 -6" }, null, -1)])], 8, _hoisted_2$25))]),
6766
+ }, [..._cache[2] || (_cache[2] = [createElementVNode("path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }, null, -1), createElementVNode("path", { d: "M21 21l-6 -6" }, null, -1)])], 8, _hoisted_2$27))]),
6472
6767
  _: 1
6473
6768
  }, 8, [
6474
6769
  "id",
@@ -6497,11 +6792,11 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
6497
6792
  default: withCtx(() => [createElementVNode("span", {
6498
6793
  "data-eldra-scope": unref(eldra).scope,
6499
6794
  class: "eldra:min-w-0"
6500
- }, toDisplayString(row.value.label), 9, _hoisted_4$10), createElementVNode("span", {
6795
+ }, toDisplayString(row.value.label), 9, _hoisted_4$12), createElementVNode("span", {
6501
6796
  "data-eldra-scope": unref(eldra).scope,
6502
6797
  "data-part": "count",
6503
6798
  class: normalizeClass(countClass.value)
6504
- }, toDisplayString(row.value.count), 11, _hoisted_5$8)]),
6799
+ }, toDisplayString(row.value.count), 11, _hoisted_5$9)]),
6505
6800
  _: 2
6506
6801
  }, 1032, [
6507
6802
  "model-value",
@@ -6548,8 +6843,8 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
6548
6843
  "classes",
6549
6844
  "onChange"
6550
6845
  ]);
6551
- }), 128))], 8, _hoisted_6$5)) : createCommentVNode("", true)], 64);
6552
- }), 128))], 10, _hoisted_3$17),
6846
+ }), 128))], 8, _hoisted_6$6)) : createCommentVNode("", true)], 64);
6847
+ }), 128))], 10, _hoisted_3$19),
6553
6848
  createElementVNode("span", {
6554
6849
  "data-part": "noMatches",
6555
6850
  role: "status",
@@ -6585,7 +6880,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
6585
6880
  "aria-expanded",
6586
6881
  "aria-controls"
6587
6882
  ])) : createCommentVNode("", true)
6588
- ], 8, _hoisted_1$31);
6883
+ ], 8, _hoisted_1$33);
6589
6884
  };
6590
6885
  }
6591
6886
  });
@@ -6744,11 +7039,11 @@ function rangeKeyTransition(key, shiftKey, thumb, value, math) {
6744
7039
  }
6745
7040
  }
6746
7041
  // src/components/range-slider/RangeSlider.vue?vue&type=script&setup=true&lang.ts
6747
- var _hoisted_1$30 = ["data-eldra-scope"];
6748
- var _hoisted_2$24 = ["id"];
6749
- var _hoisted_3$16 = ["data-eldra-slot", "aria-labelledby"];
6750
- var _hoisted_4$9 = ["data-eldra-scope"];
6751
- var _hoisted_5$7 = [
7042
+ var _hoisted_1$32 = ["data-eldra-scope"];
7043
+ var _hoisted_2$26 = ["id"];
7044
+ var _hoisted_3$18 = ["data-eldra-slot", "aria-labelledby"];
7045
+ var _hoisted_4$11 = ["data-eldra-scope"];
7046
+ var _hoisted_5$8 = [
6752
7047
  "data-thumb",
6753
7048
  "data-dragging",
6754
7049
  "aria-label",
@@ -6759,7 +7054,7 @@ var _hoisted_5$7 = [
6759
7054
  "aria-disabled",
6760
7055
  "onKeydown"
6761
7056
  ];
6762
- var _hoisted_6$4 = ["data-eldra-slot"];
7057
+ var _hoisted_6$5 = ["data-eldra-slot"];
6763
7058
  var _hoisted_7$4 = [
6764
7059
  "data-input",
6765
7060
  "inputmode",
@@ -7250,7 +7545,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
7250
7545
  id: unref(labelId),
7251
7546
  "data-part": "label",
7252
7547
  class: normalizeClass(labelClass.value)
7253
- }, toDisplayString(__props.label), 11, _hoisted_2$24)) : createCommentVNode("", true),
7548
+ }, toDisplayString(__props.label), 11, _hoisted_2$26)) : createCommentVNode("", true),
7254
7549
  createElementVNode("div", {
7255
7550
  "data-eldra-slot": unref(eldra).slotHost("track"),
7256
7551
  role: "group",
@@ -7294,8 +7589,8 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
7294
7589
  onKeydown: ($event) => onThumbKeydown($event, thumb.thumb),
7295
7590
  onKeyup: onThumbKeyup,
7296
7591
  onBlur: onThumbBlur
7297
- }, null, 46, _hoisted_5$7);
7298
- }), 128))], 42, _hoisted_4$9)], 64)) : createCommentVNode("", true)], 10, _hoisted_3$16),
7592
+ }, null, 46, _hoisted_5$8);
7593
+ }), 128))], 42, _hoisted_4$11)], 64)) : createCommentVNode("", true)], 10, _hoisted_3$18),
7299
7594
  __props.inputs ? (openBlock(), createElementBlock("div", {
7300
7595
  key: 1,
7301
7596
  "data-eldra-slot": unref(eldra).slotHost("inputs"),
@@ -7322,14 +7617,14 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
7322
7617
  onBlur: ($event) => onInputBlur(thumb.thumb),
7323
7618
  onKeydown: withKeys(withModifiers(($event) => onInputEnter(thumb.thumb), ["prevent"]), ["enter"])
7324
7619
  }, null, 42, _hoisted_7$4)], 64);
7325
- }), 128))])], 10, _hoisted_6$4)) : createCommentVNode("", true)
7326
- ], 8, _hoisted_1$30);
7620
+ }), 128))])], 10, _hoisted_6$5)) : createCommentVNode("", true)
7621
+ ], 8, _hoisted_1$32);
7327
7622
  };
7328
7623
  }
7329
7624
  });
7330
7625
  // src/components/filter-panel/Histogram.vue?vue&type=script&setup=true&lang.ts
7331
- var _hoisted_1$29 = ["data-eldra-scope"];
7332
- var _hoisted_2$23 = ["data-inside"];
7626
+ var _hoisted_1$31 = ["data-eldra-scope"];
7627
+ var _hoisted_2$25 = ["data-inside"];
7333
7628
  var ROOT_BASE$1 = "eldra:mb-1 eldra:flex eldra:h-10 eldra:w-full eldra:items-end eldra:gap-0.5";
7334
7629
  /** Spec → States, Range: "histogram bars between the thumbs `border-strong`, outside
7335
7630
  * `surface-strong`." */
@@ -7397,14 +7692,14 @@ var Histogram_default = /* @__PURE__ */ defineComponent({
7397
7692
  "data-inside": bar.inside ? "true" : "false",
7398
7693
  class: normalizeClass(barClass(bar)),
7399
7694
  style: normalizeStyle({ height: `${bar.height * 100}%` })
7400
- }, null, 14, _hoisted_2$23);
7401
- }), 128))], 10, _hoisted_1$29);
7695
+ }, null, 14, _hoisted_2$25);
7696
+ }), 128))], 10, _hoisted_1$31);
7402
7697
  };
7403
7698
  }
7404
7699
  });
7405
7700
  // src/components/filter-panel/facets/RangeFacet.vue?vue&type=script&setup=true&lang.ts
7406
- var _hoisted_1$28 = ["data-eldra-scope"];
7407
- var _hoisted_2$22 = ["data-eldra-scope"];
7701
+ var _hoisted_1$30 = ["data-eldra-scope"];
7702
+ var _hoisted_2$24 = ["data-eldra-scope"];
7408
7703
  var FIELDS_BASE = "eldra:col-span-full eldra:grid eldra:grid-cols-[1fr_auto_1fr] eldra:items-end eldra:gap-2";
7409
7704
  /** Spec → Sizes: 'Label "Min" / "Max" 0.75rem weight 500 `muted`, 0.125rem above its Input sm.' */
7410
7705
  var FIELD_LABEL = "eldra:mb-0.5 eldra:block eldra:text-filter-tile-count eldra:font-medium eldra:text-muted";
@@ -7708,7 +8003,7 @@ var RangeFacet_default = /* @__PURE__ */ defineComponent({
7708
8003
  ])]),
7709
8004
  _: 2
7710
8005
  }, 1032, ["label", "class"]))
7711
- ], 10, _hoisted_2$22)]),
8006
+ ], 10, _hoisted_2$24)]),
7712
8007
  _: 2
7713
8008
  }, [showTrack.value && __props.facet.histogram && __props.facet.histogram.length > 0 ? {
7714
8009
  name: "track",
@@ -7732,12 +8027,12 @@ var RangeFacet_default = /* @__PURE__ */ defineComponent({
7732
8027
  "min-label",
7733
8028
  "max-label",
7734
8029
  "track-visible"
7735
- ])], 10, _hoisted_1$28);
8030
+ ])], 10, _hoisted_1$30);
7736
8031
  };
7737
8032
  }
7738
8033
  });
7739
8034
  // src/components/link/Link.vue?vue&type=script&setup=true&lang.ts
7740
- var _hoisted_1$27 = ["data-eldra-slot"];
8035
+ var _hoisted_1$29 = ["data-eldra-slot"];
7741
8036
  var BASE$1 = "eldra:group eldra:eldra-focus eldra:eldra-link-radius";
7742
8037
  /** Spec "Link" → States: `text` by default, `muted` turning `text` on hover. */
7743
8038
  var SECTION$2 = "eldra:section-primary:text-primary-contrast eldra:section-accent:text-accent-contrast";
@@ -7863,7 +8158,7 @@ var Link_default = /* @__PURE__ */ defineComponent({
7863
8158
  "data-eldra-slot": unref(eldra).slotHost("default"),
7864
8159
  "data-part": "label",
7865
8160
  class: normalizeClass(labelClass.value)
7866
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$27),
8161
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$29),
7867
8162
  showArrow.value ? (openBlock(), createElementBlock("svg", {
7868
8163
  key: 0,
7869
8164
  "data-part": "arrow",
@@ -7907,9 +8202,9 @@ var Link_default = /* @__PURE__ */ defineComponent({
7907
8202
  }
7908
8203
  });
7909
8204
  // src/components/filter-panel/facets/SizeFacet.vue?vue&type=script&setup=true&lang.ts
7910
- var _hoisted_1$26 = ["data-eldra-scope"];
7911
- var _hoisted_2$21 = ["data-value"];
7912
- var _hoisted_3$15 = [
8205
+ var _hoisted_1$28 = ["data-eldra-scope"];
8206
+ var _hoisted_2$23 = ["data-value"];
8207
+ var _hoisted_3$17 = [
7913
8208
  "value",
7914
8209
  "checked",
7915
8210
  "disabled",
@@ -8037,11 +8332,11 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
8037
8332
  disabled: disabled(value),
8038
8333
  "aria-label": nameOf(value),
8039
8334
  onChange: ($event) => emit("toggle", value.value, $event.target.checked)
8040
- }, null, 40, _hoisted_3$15), createElementVNode("span", {
8335
+ }, null, 40, _hoisted_3$17), createElementVNode("span", {
8041
8336
  "data-part": "tileLabel",
8042
8337
  class: normalizeClass(tileLabelClass.value),
8043
8338
  "aria-hidden": "true"
8044
- }, toDisplayString(value.label), 3)], 10, _hoisted_2$21);
8339
+ }, toDisplayString(value.label), 3)], 10, _hoisted_2$23);
8045
8340
  }), 128))], 2)], 64);
8046
8341
  }), 128)), __props.facet.sizeGuideHref ? (openBlock(), createBlock(Link_default, {
8047
8342
  key: 0,
@@ -8051,14 +8346,14 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
8051
8346
  }, {
8052
8347
  default: withCtx(() => [createTextVNode(toDisplayString(unref(m).filterPanelSizeGuide), 1)]),
8053
8348
  _: 1
8054
- }, 8, ["href", "class"])) : createCommentVNode("", true)], 8, _hoisted_1$26);
8349
+ }, 8, ["href", "class"])) : createCommentVNode("", true)], 8, _hoisted_1$28);
8055
8350
  };
8056
8351
  }
8057
8352
  });
8058
8353
  // src/components/filter-panel/facets/ToggleFacet.vue?vue&type=script&setup=true&lang.ts
8059
- var _hoisted_1$25 = ["data-eldra-scope"];
8060
- var _hoisted_2$20 = ["data-value"];
8061
- var _hoisted_3$14 = ["data-eldra-scope"];
8354
+ var _hoisted_1$27 = ["data-eldra-scope"];
8355
+ var _hoisted_2$22 = ["data-value"];
8356
+ var _hoisted_3$16 = ["data-eldra-scope"];
8062
8357
  var VALUES_BASE = "eldra:flex eldra:min-w-0 eldra:flex-col eldra:gap-1";
8063
8358
  /**
8064
8359
  * Spec → Sizes, Switch row: "Min 2.25rem tall, space-between, 0.75rem gap."
@@ -8135,7 +8430,7 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
8135
8430
  default: withCtx(() => [createElementVNode("span", {
8136
8431
  "data-eldra-scope": unref(eldra).scope,
8137
8432
  class: normalizeClass(SWITCH_LABEL)
8138
- }, toDisplayString(value.label), 9, _hoisted_3$14)]),
8433
+ }, toDisplayString(value.label), 9, _hoisted_3$16)]),
8139
8434
  _: 2
8140
8435
  }, 1032, [
8141
8436
  "model-value",
@@ -8144,21 +8439,21 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
8144
8439
  ]), createElementVNode("span", {
8145
8440
  "data-part": "count",
8146
8441
  class: normalizeClass(countClass.value)
8147
- }, toDisplayString(value.count), 3)], 10, _hoisted_2$20);
8148
- }), 128))], 10, _hoisted_1$25);
8442
+ }, toDisplayString(value.count), 3)], 10, _hoisted_2$22);
8443
+ }), 128))], 10, _hoisted_1$27);
8149
8444
  };
8150
8445
  }
8151
8446
  });
8152
8447
  // src/components/filter-panel/FilterGroup.vue?vue&type=script&setup=true&lang.ts
8153
- var _hoisted_1$24 = ["data-eldra-scope", "data-facet"];
8154
- var _hoisted_2$19 = { class: "eldra:m-0" };
8155
- var _hoisted_3$13 = [
8448
+ var _hoisted_1$26 = ["data-eldra-scope", "data-facet"];
8449
+ var _hoisted_2$21 = { class: "eldra:m-0" };
8450
+ var _hoisted_3$15 = [
8156
8451
  "id",
8157
8452
  "aria-expanded",
8158
8453
  "aria-controls"
8159
8454
  ];
8160
- var _hoisted_4$8 = ["data-eldra-scope"];
8161
- var _hoisted_5$6 = ["data-eldra-slot", "id"];
8455
+ var _hoisted_4$10 = ["data-eldra-scope"];
8456
+ var _hoisted_5$7 = ["data-eldra-slot", "id"];
8162
8457
  var GROUP_BASE = "eldra:border-border eldra:border-b";
8163
8458
  /**
8164
8459
  * Spec → Sizes, Trigger row: "Full width, min 3rem tall, padding 0.75rem 0, gap 0.5rem,
@@ -8271,7 +8566,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
8271
8566
  "data-part": "group",
8272
8567
  "data-facet": __props.facet.id,
8273
8568
  class: normalizeClass(groupClass.value)
8274
- }, [createElementVNode("h3", _hoisted_2$19, [createElementVNode("button", {
8569
+ }, [createElementVNode("h3", _hoisted_2$21, [createElementVNode("button", {
8275
8570
  ref_key: "triggerEl",
8276
8571
  ref: triggerEl,
8277
8572
  type: "button",
@@ -8297,7 +8592,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
8297
8592
  default: withCtx(() => [createElementVNode("span", {
8298
8593
  "data-eldra-scope": unref(eldra).scope,
8299
8594
  "aria-hidden": "true"
8300
- }, toDisplayString(__props.count), 9, _hoisted_4$8)]),
8595
+ }, toDisplayString(__props.count), 9, _hoisted_4$10)]),
8301
8596
  _: 1
8302
8597
  }, 8, ["class", "hidden-suffix"])) : createCommentVNode("", true),
8303
8598
  __props.summary.length > 0 ? (openBlock(), createElementBlock("span", {
@@ -8317,7 +8612,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
8317
8612
  "aria-hidden": "true",
8318
8613
  focusable: "false"
8319
8614
  }, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M6 9l6 6l6 -6" }, null, -1)])], 2))
8320
- ], 10, _hoisted_3$13)]), withDirectives(createElementVNode("fieldset", {
8615
+ ], 10, _hoisted_3$15)]), withDirectives(createElementVNode("fieldset", {
8321
8616
  "data-eldra-slot": unref(eldra).slotHost("default"),
8322
8617
  "data-part": "body",
8323
8618
  id: __props.panelId,
@@ -8329,14 +8624,14 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
8329
8624
  }, {
8330
8625
  default: withCtx(() => [createTextVNode(toDisplayString(__props.facet.label), 1)]),
8331
8626
  _: 1
8332
- }, 8, ["class"]), renderSlot(_ctx.$slots, "default")], 42, _hoisted_5$6), [[vShow, __props.open]])], 10, _hoisted_1$24);
8627
+ }, 8, ["class"]), renderSlot(_ctx.$slots, "default")], 42, _hoisted_5$7), [[vShow, __props.open]])], 10, _hoisted_1$26);
8333
8628
  };
8334
8629
  }
8335
8630
  });
8336
8631
  // src/components/filter-panel/FilterPanel.vue?vue&type=script&setup=true&lang.ts
8337
- var _hoisted_1$23 = ["data-eldra-scope", "aria-label"];
8338
- var _hoisted_2$18 = ["aria-label"];
8339
- var _hoisted_3$12 = ["data-eldra-slot"];
8632
+ var _hoisted_1$25 = ["data-eldra-scope", "aria-label"];
8633
+ var _hoisted_2$20 = ["aria-label"];
8634
+ var _hoisted_3$14 = ["data-eldra-slot"];
8340
8635
  var ROOT_BASE = "eldra:@container eldra:min-w-0 eldra:text-control eldra:text-text";
8341
8636
  /**
8342
8637
  * The gutter the rows' own bleed needs, and it is load-bearing. The spec gives every option and
@@ -8608,7 +8903,7 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
8608
8903
  "messages",
8609
8904
  "onRemove"
8610
8905
  ])]);
8611
- }), 128))], 10, _hoisted_2$18)) : createCommentVNode("", true),
8906
+ }), 128))], 10, _hoisted_2$20)) : createCommentVNode("", true),
8612
8907
  (openBlock(true), createElementBlock(Fragment, null, renderList(drawn.value, (facet, index) => {
8613
8908
  return openBlock(), createBlock(FilterGroup_default, {
8614
8909
  key: facet.id,
@@ -8761,18 +9056,18 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
8761
9056
  }, {
8762
9057
  default: withCtx(() => [createTextVNode(toDisplayString(__props.resultCount === null ? unref(m).filterPanelShowProducts : unref(m).filterPanelShowResults(__props.resultCount)), 1)]),
8763
9058
  _: 1
8764
- })])], 10, _hoisted_3$12)) : createCommentVNode("", true)
8765
- ], 40, _hoisted_1$23);
9059
+ })])], 10, _hoisted_3$14)) : createCommentVNode("", true)
9060
+ ], 40, _hoisted_1$25);
8766
9061
  };
8767
9062
  }
8768
9063
  });
8769
9064
  // src/components/lightbox/Lightbox.vue?vue&type=script&setup=true&lang.ts
8770
- var _hoisted_1$22 = ["data-eldra-scope", "aria-label"];
8771
- var _hoisted_2$17 = { key: 1 };
8772
- var _hoisted_3$11 = ["aria-label"];
8773
- var _hoisted_4$7 = ["disabled", "aria-label"];
8774
- var _hoisted_5$5 = ["aria-label"];
8775
- var _hoisted_6$3 = ["disabled", "aria-label"];
9065
+ var _hoisted_1$24 = ["data-eldra-scope", "aria-label"];
9066
+ var _hoisted_2$19 = { key: 1 };
9067
+ var _hoisted_3$13 = ["aria-label"];
9068
+ var _hoisted_4$9 = ["disabled", "aria-label"];
9069
+ var _hoisted_5$6 = ["aria-label"];
9070
+ var _hoisted_6$4 = ["disabled", "aria-label"];
8776
9071
  var _hoisted_7$3 = [
8777
9072
  "aria-current",
8778
9073
  "aria-label",
@@ -9083,7 +9378,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9083
9378
  "data-part": "counter",
9084
9379
  "aria-hidden": "true",
9085
9380
  class: normalizeClass(counterClass.value)
9086
- }, toDisplayString(unref(m).counter(unref(carouselIndex) + 1, unref(count))), 3)) : (openBlock(), createElementBlock("span", _hoisted_2$17)), createElementVNode("button", {
9381
+ }, toDisplayString(unref(m).counter(unref(carouselIndex) + 1, unref(count))), 3)) : (openBlock(), createElementBlock("span", _hoisted_2$19)), createElementVNode("button", {
9087
9382
  ref_key: "closeButtonEl",
9088
9383
  ref: closeButtonEl,
9089
9384
  type: "button",
@@ -9101,7 +9396,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9101
9396
  "stroke-linejoin": "round",
9102
9397
  "aria-hidden": "true",
9103
9398
  focusable: "false"
9104
- }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$11)]),
9399
+ }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$13)]),
9105
9400
  createElementVNode("div", { class: normalizeClass(stageClass.value) }, [
9106
9401
  !single.value ? (openBlock(), createElementBlock("button", {
9107
9402
  key: 0,
@@ -9123,7 +9418,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9123
9418
  "stroke-linejoin": "round",
9124
9419
  "aria-hidden": "true",
9125
9420
  focusable: "false"
9126
- }, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$7)) : createCommentVNode("", true),
9421
+ }, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$9)) : createCommentVNode("", true),
9127
9422
  createElementVNode("div", {
9128
9423
  ref_key: "trackRef",
9129
9424
  ref: trackRef,
@@ -9162,7 +9457,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9162
9457
  "alt",
9163
9458
  "caption"
9164
9459
  ])) : createCommentVNode("", true)], 2);
9165
- }), 128))], 14, _hoisted_5$5),
9460
+ }), 128))], 14, _hoisted_5$6),
9166
9461
  !single.value ? (openBlock(), createElementBlock("button", {
9167
9462
  key: 1,
9168
9463
  ref_key: "nextButtonRef",
@@ -9183,7 +9478,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9183
9478
  "stroke-linejoin": "round",
9184
9479
  "aria-hidden": "true",
9185
9480
  focusable: "false"
9186
- }, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_6$3)) : createCommentVNode("", true)
9481
+ }, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_6$4)) : createCommentVNode("", true)
9187
9482
  ], 2),
9188
9483
  showThumbnails.value && unref(model) ? (openBlock(), createElementBlock("div", {
9189
9484
  key: 0,
@@ -9208,14 +9503,14 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
9208
9503
  fit: "cover"
9209
9504
  }, null, 8, ["media"])], 10, _hoisted_7$3);
9210
9505
  }), 128))], 2)) : createCommentVNode("", true)
9211
- ], 2)], 40, _hoisted_1$22);
9506
+ ], 2)], 40, _hoisted_1$24);
9212
9507
  };
9213
9508
  }
9214
9509
  });
9215
9510
  // src/components/load-more/LoadMore.vue?vue&type=script&setup=true&lang.ts
9216
- var _hoisted_1$21 = ["data-eldra-scope"];
9217
- var _hoisted_2$16 = ["id"];
9218
- var _hoisted_3$10 = ["aria-describedby", "aria-busy"];
9511
+ var _hoisted_1$23 = ["data-eldra-scope"];
9512
+ var _hoisted_2$18 = ["id"];
9513
+ var _hoisted_3$12 = ["aria-describedby", "aria-busy"];
9219
9514
  var rootClass$2 = "eldra:flex eldra:flex-col eldra:items-center eldra:gap-3";
9220
9515
  /** Spec → Sizes, "Load-more status": "0.875rem, tabular numbers" — the shared `text-body-sm` type
9221
9516
  * style is the same 0.875rem, so this needs no per-component variable of its own. Accessibility:
@@ -9277,7 +9572,7 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
9277
9572
  class: normalizeClass(statusClass.value),
9278
9573
  role: "status",
9279
9574
  "aria-live": "polite"
9280
- }, toDisplayString(unref(m).showingOf(__props.shown, __props.total, __props.noun)), 11, _hoisted_2$16),
9575
+ }, toDisplayString(unref(m).showingOf(__props.shown, __props.total, __props.noun)), 11, _hoisted_2$18),
9281
9576
  createElementVNode("div", {
9282
9577
  class: normalizeClass(meterTrackClass),
9283
9578
  "aria-hidden": "true"
@@ -9296,14 +9591,14 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
9296
9591
  }, [__props.pending ? (openBlock(), createBlock(Spinner_default, {
9297
9592
  key: 0,
9298
9593
  class: "eldra:size-4.5"
9299
- })) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_3$10)) : createCommentVNode("", true)
9300
- ], 8, _hoisted_1$21);
9594
+ })) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_3$12)) : createCommentVNode("", true)
9595
+ ], 8, _hoisted_1$23);
9301
9596
  };
9302
9597
  }
9303
9598
  });
9304
9599
  // src/components/logo-item/LogoItem.vue?vue&type=script&setup=true&lang.ts
9305
- var _hoisted_1$20 = ["data-eldra-scope", "data-part"];
9306
- var _hoisted_2$15 = [
9600
+ var _hoisted_1$22 = ["data-eldra-scope", "data-part"];
9601
+ var _hoisted_2$17 = [
9307
9602
  "src",
9308
9603
  "srcset",
9309
9604
  "sizes",
@@ -9311,7 +9606,7 @@ var _hoisted_2$15 = [
9311
9606
  "height",
9312
9607
  "alt"
9313
9608
  ];
9314
- var _hoisted_3$9 = [
9609
+ var _hoisted_3$11 = [
9315
9610
  "src",
9316
9611
  "srcset",
9317
9612
  "sizes",
@@ -9454,7 +9749,7 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
9454
9749
  alt: __props.name,
9455
9750
  loading: "lazy",
9456
9751
  decoding: "async"
9457
- }, null, 10, _hoisted_2$15)) : (openBlock(), createElementBlock("span", {
9752
+ }, null, 10, _hoisted_2$17)) : (openBlock(), createElementBlock("span", {
9458
9753
  key: 1,
9459
9754
  "data-part": "wordmark",
9460
9755
  class: normalizeClass(wordmarkClass.value)
@@ -9476,11 +9771,11 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
9476
9771
  alt: __props.name,
9477
9772
  loading: "lazy",
9478
9773
  decoding: "async"
9479
- }, null, 10, _hoisted_3$9)) : (openBlock(), createElementBlock("span", {
9774
+ }, null, 10, _hoisted_3$11)) : (openBlock(), createElementBlock("span", {
9480
9775
  key: 1,
9481
9776
  "data-part": "wordmark",
9482
9777
  class: normalizeClass(wordmarkClass.value)
9483
- }, toDisplayString(__props.name), 3))], 64))], 10, _hoisted_1$20);
9778
+ }, toDisplayString(__props.name), 3))], 64))], 10, _hoisted_1$22);
9484
9779
  };
9485
9780
  }
9486
9781
  });
@@ -9547,16 +9842,16 @@ function navLinkAttrs(link, linkAs) {
9547
9842
  return attrs;
9548
9843
  }
9549
9844
  // src/components/nav-menu/NavMenuPanel.vue?vue&type=script&setup=true&lang.ts
9550
- var _hoisted_1$19 = ["data-eldra-scope", "data-part"];
9551
- var _hoisted_2$14 = ["data-part"];
9552
- var _hoisted_3$8 = [
9845
+ var _hoisted_1$21 = ["data-eldra-scope", "data-part"];
9846
+ var _hoisted_2$16 = ["data-part"];
9847
+ var _hoisted_3$10 = [
9553
9848
  "data-eldra-slot",
9554
9849
  "id",
9555
9850
  "data-part"
9556
9851
  ];
9557
- var _hoisted_4$6 = ["data-part", "aria-labelledby"];
9558
- var _hoisted_5$4 = ["data-part"];
9559
- var _hoisted_6$2 = ["data-part"];
9852
+ var _hoisted_4$8 = ["data-part", "aria-labelledby"];
9853
+ var _hoisted_5$5 = ["data-part"];
9854
+ var _hoisted_6$3 = ["data-part"];
9560
9855
  var _hoisted_7$2 = ["data-part"];
9561
9856
  // src/components/nav-menu/NavMenuPanel.vue
9562
9857
  var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
@@ -9683,7 +9978,7 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
9683
9978
  _: 1
9684
9979
  })) : createCommentVNode("", true)]),
9685
9980
  _: 2
9686
- }, 1040, ["data-part", "class"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(group.group), 1)], 64))])], 10, _hoisted_3$8)) : createCommentVNode("", true), createElementVNode("ul", {
9981
+ }, 1040, ["data-part", "class"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(group.group), 1)], 64))])], 10, _hoisted_3$10)) : createCommentVNode("", true), createElementVNode("ul", {
9687
9982
  "data-part": part("panelList"),
9688
9983
  class: normalizeClass(panelListClass.value),
9689
9984
  "aria-labelledby": listLabel(group.group, index)
@@ -9708,7 +10003,7 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
9708
10003
  key: 0,
9709
10004
  label: link.badge,
9710
10005
  class: normalizeClass(badgeClass.value)
9711
- }, null, 8, ["label", "class"])) : createCommentVNode("", true)], 10, _hoisted_6$2), link.description ? (openBlock(), createElementBlock("span", {
10006
+ }, null, 8, ["label", "class"])) : createCommentVNode("", true)], 10, _hoisted_6$3), link.description ? (openBlock(), createElementBlock("span", {
9712
10007
  key: 0,
9713
10008
  "data-part": part("description"),
9714
10009
  class: normalizeClass(descriptionClass.value)
@@ -9721,9 +10016,9 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
9721
10016
  "data-eldra-slot",
9722
10017
  "data-part",
9723
10018
  "class"
9724
- ]))], 10, _hoisted_5$4);
9725
- }), 128))], 10, _hoisted_4$6)], 10, _hoisted_2$14);
9726
- }), 128))], 10, _hoisted_1$19)], 64);
10019
+ ]))], 10, _hoisted_5$5);
10020
+ }), 128))], 10, _hoisted_4$8)], 10, _hoisted_2$16);
10021
+ }), 128))], 10, _hoisted_1$21)], 64);
9727
10022
  };
9728
10023
  }
9729
10024
  });
@@ -9840,18 +10135,18 @@ function useNavMenuKeys(options) {
9840
10135
  };
9841
10136
  }
9842
10137
  // src/components/nav-menu/NavMenu.vue?vue&type=script&setup=true&lang.ts
9843
- var _hoisted_1$18 = ["data-eldra-scope"];
9844
- var _hoisted_2$13 = ["aria-label"];
9845
- var _hoisted_3$7 = [
10138
+ var _hoisted_1$20 = ["data-eldra-scope"];
10139
+ var _hoisted_2$15 = ["aria-label"];
10140
+ var _hoisted_3$9 = [
9846
10141
  "aria-expanded",
9847
10142
  "aria-controls",
9848
10143
  "data-current",
9849
10144
  "onClick",
9850
10145
  "onPointerenter"
9851
10146
  ];
9852
- var _hoisted_4$5 = ["data-eldra-slot"];
9853
- var _hoisted_5$3 = ["id"];
9854
- var _hoisted_6$1 = ["data-eldra-slot"];
10147
+ var _hoisted_4$7 = ["data-eldra-slot"];
10148
+ var _hoisted_5$4 = ["id"];
10149
+ var _hoisted_6$2 = ["data-eldra-slot"];
9855
10150
  var _hoisted_7$1 = [
9856
10151
  "data-eldra-slot",
9857
10152
  "aria-label",
@@ -10171,7 +10466,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
10171
10466
  "stroke-linecap": "round",
10172
10467
  "stroke-linejoin": "round",
10173
10468
  focusable: "false"
10174
- }, [createElementVNode("path", { d: "M6 9l6 6l6 -6" })], -1))])], 10, _hoisted_4$5)], 42, _hoisted_3$7), createVNode(Transition, mergeProps({ ref_for: true }, PANEL_TRANSITION, { persisted: "" }), {
10469
+ }, [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: "" }), {
10175
10470
  default: withCtx(() => [withDirectives(createElementVNode("div", {
10176
10471
  id: panelId(index),
10177
10472
  ref_for: true,
@@ -10214,7 +10509,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
10214
10509
  item,
10215
10510
  index,
10216
10511
  close: closePanel
10217
- })], 10, _hoisted_6$1)) : createCommentVNode("", true)], 2)], 10, _hoisted_5$3), [[vShow, unref(openIndex) === index]])]),
10512
+ })], 10, _hoisted_6$2)) : createCommentVNode("", true)], 2)], 10, _hoisted_5$4), [[vShow, unref(openIndex) === index]])]),
10218
10513
  _: 2
10219
10514
  }, 1040)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(item, __props.linkAs)), mergeProps({
10220
10515
  key: 1,
@@ -10227,7 +10522,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
10227
10522
  })) : createCommentVNode("", true)]),
10228
10523
  _: 2
10229
10524
  }, 1040, ["class"]))], 2);
10230
- }), 128))], 2)], 42, _hoisted_2$13)) : createCommentVNode("", true), __props.collapseBelow !== "never" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("button", {
10525
+ }), 128))], 2)], 42, _hoisted_2$15)) : createCommentVNode("", true), __props.collapseBelow !== "never" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("button", {
10231
10526
  ref_key: "toggleEl",
10232
10527
  ref: toggleEl,
10233
10528
  "data-eldra-slot": unref(eldra).slotHost("toggle"),
@@ -10380,14 +10675,165 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
10380
10675
  "messages",
10381
10676
  "class",
10382
10677
  "classes"
10383
- ])], 64)) : createCommentVNode("", true)], 40, _hoisted_1$18);
10678
+ ])], 64)) : createCommentVNode("", true)], 40, _hoisted_1$20);
10679
+ };
10680
+ }
10681
+ });
10682
+ // src/components/notice/Notice.vue?vue&type=script&setup=true&lang.ts
10683
+ var _hoisted_1$19 = [
10684
+ "data-eldra-scope",
10685
+ "data-tone",
10686
+ "role"
10687
+ ];
10688
+ var _hoisted_2$14 = ["d"];
10689
+ var _hoisted_3$8 = ["data-eldra-slot"];
10690
+ var _hoisted_4$6 = ["data-eldra-slot"];
10691
+ var ICON_STROKE_WIDTH$3 = 1.75;
10692
+ // src/components/notice/Notice.vue
10693
+ var Notice_default = /* @__PURE__ */ defineComponent({
10694
+ __name: "Notice",
10695
+ props: {
10696
+ tone: { default: "info" },
10697
+ title: { default: void 0 },
10698
+ text: { default: void 0 },
10699
+ icon: { default: void 0 },
10700
+ headingLevel: { default: void 0 },
10701
+ announce: {
10702
+ type: Boolean,
10703
+ default: true
10704
+ },
10705
+ classes: { default: void 0 }
10706
+ },
10707
+ setup(__props) {
10708
+ /**
10709
+ * An inline notice: a bordered box in the page flow holding guidance or the outcome of something
10710
+ * the visitor did, with an optional icon, title and actions. It stays where it is put and has no
10711
+ * close button — a message that comes and goes on its own is a `Toast`, and an empty or failed
10712
+ * page region is an `EmptyState`.
10713
+ *
10714
+ * Not in design spec 1 (README, "Additions beyond the spec"); its visual language is the Toast
10715
+ * section's: the same four tones, the same icons at the same 1.25rem / 1.75 stroke, the same
10716
+ * 1px `radius-md` surface — without the shadow, since it does not float.
10717
+ */
10718
+ const eldra = useEldraScope();
10719
+ const props = __props;
10720
+ const present = useSlotPresence(useSlots(), [
10721
+ "default",
10722
+ "title",
10723
+ "actions"
10724
+ ]);
10725
+ const DEFAULT_ICON_PATHS = {
10726
+ info: INFO_CIRCLE_PATHS,
10727
+ success: CIRCLE_CHECK_PATHS,
10728
+ warning: ALERT_TRIANGLE_PATHS,
10729
+ danger: ALERT_CIRCLE_PATHS
10730
+ };
10731
+ /** The stroke `Toast`, `Dialog` and `Link` draw their icons with. */
10732
+ const role = computed(() => {
10733
+ if (!props.announce) return void 0;
10734
+ return props.tone === "danger" ? "alert" : "status";
10735
+ });
10736
+ const hasIcon = computed(() => props.icon !== null);
10737
+ const hasTitle = computed(() => present.value.title || !!props.title);
10738
+ const hasText = computed(() => present.value.default || !!props.text);
10739
+ const titleTag = computed(() => props.headingLevel ? `h${props.headingLevel}` : "p");
10740
+ /**
10741
+ * `info` sits on `surface` with the hairline `border`. The three coloured tones tint both from
10742
+ * their own colour role mixed toward `background`, so a store that sets `success` restyles the
10743
+ * notice with it; the text stays `text` on every tone, and the tone's full colour is only ever on
10744
+ * the icon.
10745
+ */
10746
+ const TONE_SURFACE = {
10747
+ info: "eldra:bg-surface eldra:border-border",
10748
+ success: "eldra:bg-[color-mix(in_oklab,var(--eldra-color-success),var(--eldra-color-background)_92%)] eldra:border-[color-mix(in_oklab,var(--eldra-color-success),var(--eldra-color-background)_60%)]",
10749
+ warning: "eldra:bg-[color-mix(in_oklab,var(--eldra-color-warning),var(--eldra-color-background)_92%)] eldra:border-[color-mix(in_oklab,var(--eldra-color-warning),var(--eldra-color-background)_60%)]",
10750
+ danger: "eldra:bg-[color-mix(in_oklab,var(--eldra-color-danger),var(--eldra-color-background)_92%)] eldra:border-[color-mix(in_oklab,var(--eldra-color-danger),var(--eldra-color-background)_60%)]"
10751
+ };
10752
+ const TONE_ICON = {
10753
+ info: "eldra:text-text",
10754
+ success: "eldra:text-success",
10755
+ warning: "eldra:text-warning",
10756
+ danger: "eldra:text-danger"
10757
+ };
10758
+ const rootClass = computed(() => ["eldra:flex eldra:w-full eldra:min-w-0 eldra:items-start eldra:gap-3 eldra:rounded-md eldra:border eldra:px-4 eldra:py-3 eldra:text-text", TONE_SURFACE[props.tone]]);
10759
+ /** 1.25rem, nudged 0.125rem down so it centres on the first line of 0.875rem / 1.5 text. */
10760
+ const iconClass = computed(() => [
10761
+ "eldra:mt-0.5 eldra:flex eldra:size-5 eldra:shrink-0 eldra:items-center eldra:justify-center",
10762
+ TONE_ICON[props.tone],
10763
+ props.classes?.icon
10764
+ ]);
10765
+ const contentClass = computed(() => ["eldra:flex eldra:min-w-0 eldra:flex-1 eldra:flex-col eldra:gap-0.5", props.classes?.content]);
10766
+ const titleClass = computed(() => ["eldra:text-body-sm eldra:m-0 eldra:min-w-0 eldra:font-semibold eldra:break-words", props.classes?.title]);
10767
+ const textClass = computed(() => ["eldra:text-body-sm eldra:min-w-0 eldra:break-words", props.classes?.text]);
10768
+ const actionsClass = computed(() => ["eldra:mt-2 eldra:flex eldra:flex-wrap eldra:items-center eldra:gap-3", props.classes?.actions]);
10769
+ return (_ctx, _cache) => {
10770
+ return openBlock(), createElementBlock("div", {
10771
+ "data-eldra-ui": "",
10772
+ "data-eldra-scope": unref(eldra).scope,
10773
+ "data-part": "root",
10774
+ "data-tone": __props.tone,
10775
+ class: normalizeClass(rootClass.value),
10776
+ role: role.value
10777
+ }, [hasIcon.value ? (openBlock(), createElementBlock("span", {
10778
+ key: 0,
10779
+ "data-part": "icon",
10780
+ class: normalizeClass(iconClass.value),
10781
+ "aria-hidden": "true"
10782
+ }, [__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
10783
+ key: 0,
10784
+ class: "eldra:size-5",
10785
+ "stroke-width": ICON_STROKE_WIDTH$3,
10786
+ "aria-hidden": "true",
10787
+ focusable: "false"
10788
+ })) : (openBlock(), createElementBlock("svg", {
10789
+ key: 1,
10790
+ class: "eldra:size-5",
10791
+ viewBox: "0 0 24 24",
10792
+ fill: "none",
10793
+ stroke: "currentColor",
10794
+ "stroke-width": ICON_STROKE_WIDTH$3,
10795
+ "stroke-linecap": "round",
10796
+ "stroke-linejoin": "round",
10797
+ "aria-hidden": "true",
10798
+ focusable: "false"
10799
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(DEFAULT_ICON_PATHS[__props.tone], (d) => {
10800
+ return openBlock(), createElementBlock("path", {
10801
+ key: d,
10802
+ d
10803
+ }, null, 8, _hoisted_2$14);
10804
+ }), 128))]))], 2)) : createCommentVNode("", true), createElementVNode("div", {
10805
+ "data-part": "content",
10806
+ class: normalizeClass(contentClass.value)
10807
+ }, [
10808
+ hasTitle.value ? (openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
10809
+ key: 0,
10810
+ "data-eldra-slot": unref(eldra).slotHost("title"),
10811
+ "data-part": "title",
10812
+ class: normalizeClass(titleClass.value)
10813
+ }, {
10814
+ default: withCtx(() => [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])]),
10815
+ _: 3
10816
+ }, 8, ["data-eldra-slot", "class"])) : createCommentVNode("", true),
10817
+ hasText.value ? (openBlock(), createElementBlock("div", {
10818
+ key: 1,
10819
+ "data-eldra-slot": unref(eldra).slotHost("default"),
10820
+ "data-part": "text",
10821
+ class: normalizeClass(textClass.value)
10822
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])], 10, _hoisted_3$8)) : createCommentVNode("", true),
10823
+ unref(present).actions ? (openBlock(), createElementBlock("div", {
10824
+ key: 2,
10825
+ "data-eldra-slot": unref(eldra).slotHost("actions"),
10826
+ "data-part": "actions",
10827
+ class: normalizeClass(actionsClass.value)
10828
+ }, [renderSlot(_ctx.$slots, "actions")], 10, _hoisted_4$6)) : createCommentVNode("", true)
10829
+ ], 2)], 10, _hoisted_1$19);
10384
10830
  };
10385
10831
  }
10386
10832
  });
10387
10833
  // src/components/pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
10388
- var _hoisted_1$17 = ["data-eldra-scope", "aria-label"];
10389
- var _hoisted_2$12 = ["data-part", "aria-current"];
10390
- var _hoisted_3$6 = { key: 0 };
10834
+ var _hoisted_1$18 = ["data-eldra-scope", "aria-label"];
10835
+ var _hoisted_2$13 = ["data-part", "aria-current"];
10836
+ var _hoisted_3$7 = { key: 0 };
10391
10837
  /**
10392
10838
  * The page window (spec "Pagination" → Properties, `siblings`: "First and last always show; the
10393
10839
  * rest collapse to '…'."). Built from the *set* of pages that must show — `1`, `totalPages`, and
@@ -10643,7 +11089,7 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
10643
11089
  class: normalizeClass(node.page === __props.page ? currentDisabledClass.value : pageDisabledClass.value),
10644
11090
  "aria-current": node.page === __props.page ? "page" : void 0,
10645
11091
  "aria-disabled": "true"
10646
- }, toDisplayString(node.page), 11, _hoisted_2$12)) : (openBlock(), createBlock(resolveDynamicComponent(itemTag.value), mergeProps({
11092
+ }, toDisplayString(node.page), 11, _hoisted_2$13)) : (openBlock(), createBlock(resolveDynamicComponent(itemTag.value), mergeProps({
10647
11093
  key: 2,
10648
11094
  "data-part": node.page === __props.page ? "current" : "page",
10649
11095
  class: node.page === __props.page ? currentClass.value : pageClass.value,
@@ -10738,7 +11184,7 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
10738
11184
  _: 1
10739
11185
  }, 16, ["rel", "aria-label"])),
10740
11186
  createElementVNode("span", { class: normalizeClass(compactStatusClass) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(compactStatusParts.value, (part, index) => {
10741
- return openBlock(), createElementBlock(Fragment, { key: index }, [part.bold ? (openBlock(), createElementBlock("strong", _hoisted_3$6, toDisplayString(part.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
11187
+ 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);
10742
11188
  }), 128))]),
10743
11189
  nextDisabled.value ? (openBlock(), createElementBlock("span", {
10744
11190
  key: 2,
@@ -10775,13 +11221,13 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
10775
11221
  }, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])]),
10776
11222
  _: 1
10777
11223
  }, 16, ["rel", "aria-label"]))
10778
- ], 2)) : createCommentVNode("", true)], 8, _hoisted_1$17)) : createCommentVNode("", true);
11224
+ ], 2)) : createCommentVNode("", true)], 8, _hoisted_1$18)) : createCommentVNode("", true);
10779
11225
  };
10780
11226
  }
10781
11227
  });
10782
11228
  // src/components/popover/Popover.vue?vue&type=script&setup=true&lang.ts
10783
- var _hoisted_1$16 = ["data-eldra-scope", "data-eldra-slot"];
10784
- var _hoisted_2$11 = [
11229
+ var _hoisted_1$17 = ["data-eldra-scope", "data-eldra-slot"];
11230
+ var _hoisted_2$12 = [
10785
11231
  "data-eldra-slot",
10786
11232
  "id",
10787
11233
  "data-eldra-scope",
@@ -11147,7 +11593,7 @@ var Popover_default = /* @__PURE__ */ defineComponent({
11147
11593
  close: () => close(),
11148
11594
  open: unref(isOpen),
11149
11595
  toggle
11150
- })], 16, _hoisted_2$11)) : createCommentVNode("", true)], 8, ["to", "disabled"]))], 8, _hoisted_1$16);
11596
+ })], 16, _hoisted_2$12)) : createCommentVNode("", true)], 8, ["to", "disabled"]))], 8, _hoisted_1$17);
11151
11597
  };
11152
11598
  }
11153
11599
  });
@@ -11205,7 +11651,7 @@ function fadeInChangedValue(el) {
11205
11651
  });
11206
11652
  }
11207
11653
  // src/components/internal/ValueText.vue?vue&type=script&setup=true&lang.ts
11208
- var _hoisted_1$15 = ["data-eldra-scope"];
11654
+ var _hoisted_1$16 = ["data-eldra-scope"];
11209
11655
  // src/components/internal/ValueText.vue
11210
11656
  var ValueText_default = /* @__PURE__ */ defineComponent({
11211
11657
  name: "EldraValueText",
@@ -11271,12 +11717,12 @@ var ValueText_default = /* @__PURE__ */ defineComponent({
11271
11717
  ref_key: "spanRef",
11272
11718
  ref: spanRef,
11273
11719
  "data-eldra-scope": unref(eldra).scope
11274
- }, toDisplayString(__props.text), 9, _hoisted_1$15);
11720
+ }, toDisplayString(__props.text), 9, _hoisted_1$16);
11275
11721
  };
11276
11722
  }
11277
11723
  });
11278
11724
  // src/components/price/Price.vue?vue&type=script&setup=true&lang.ts
11279
- var _hoisted_1$14 = [
11725
+ var _hoisted_1$15 = [
11280
11726
  "data-eldra-scope",
11281
11727
  "lang",
11282
11728
  "aria-busy"
@@ -11633,7 +12079,7 @@ var Price_default = /* @__PURE__ */ defineComponent({
11633
12079
  "data-part": "srStatus",
11634
12080
  class: normalizeClass(srStatusClass.value),
11635
12081
  "aria-live": "polite"
11636
- }, toDisplayString(srStatusText.value), 3)) : createCommentVNode("", true)], 10, _hoisted_1$14);
12082
+ }, toDisplayString(srStatusText.value), 3)) : createCommentVNode("", true)], 10, _hoisted_1$15);
11637
12083
  };
11638
12084
  }
11639
12085
  });
@@ -11672,7 +12118,7 @@ function ratingStarStates(value) {
11672
12118
  });
11673
12119
  }
11674
12120
  // src/components/rating/RatingStars.vue?vue&type=script&setup=true&lang.ts
11675
- var _hoisted_1$13 = ["data-eldra-scope"];
12121
+ var _hoisted_1$14 = ["data-eldra-scope"];
11676
12122
  var SECTION_FILLED = "eldra:section-primary:text-primary-contrast eldra:section-accent:text-accent-contrast";
11677
12123
  var OUTLINE_STAR_PATH = "M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245";
11678
12124
  var FILLED_STAR_PATH = "M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z";
@@ -11756,15 +12202,15 @@ var RatingStars_default = /* @__PURE__ */ defineComponent({
11756
12202
  viewBox: "0 0 24 24",
11757
12203
  fill: "currentColor"
11758
12204
  }, [createElementVNode("path", { d: FILLED_STAR_PATH })], 2)) : createCommentVNode("", true)], 2);
11759
- }), 128))], 10, _hoisted_1$13);
12205
+ }), 128))], 10, _hoisted_1$14);
11760
12206
  };
11761
12207
  }
11762
12208
  });
11763
12209
  // src/components/rating/Rating.vue?vue&type=script&setup=true&lang.ts
11764
- var _hoisted_1$12 = ["data-eldra-slot", "data-eldra-scope"];
11765
- var _hoisted_2$10 = ["data-eldra-scope"];
11766
- var _hoisted_3$5 = ["data-eldra-scope"];
11767
- var _hoisted_4$4 = ["data-eldra-scope"];
12210
+ var _hoisted_1$13 = ["data-eldra-slot", "data-eldra-scope"];
12211
+ var _hoisted_2$11 = ["data-eldra-scope"];
12212
+ var _hoisted_3$6 = ["data-eldra-scope"];
12213
+ var _hoisted_4$5 = ["data-eldra-scope"];
11768
12214
  var SECTION = "eldra:section-primary:text-primary-contrast eldra:section-accent:text-accent-contrast";
11769
12215
  // src/components/rating/Rating.vue
11770
12216
  var Rating_default = /* @__PURE__ */ defineComponent({
@@ -11909,26 +12355,26 @@ var Rating_default = /* @__PURE__ */ defineComponent({
11909
12355
  "data-eldra-scope": unref(eldra).scope,
11910
12356
  "data-part": "empty",
11911
12357
  class: normalizeClass(emptyClass.value)
11912
- }, toDisplayString(unref(messages).noReviews), 11, _hoisted_2$10), renderSlot(_ctx.$slots, "emptyAction")], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [__props.showValue ? (openBlock(), createElementBlock("span", {
12358
+ }, toDisplayString(unref(messages).noReviews), 11, _hoisted_2$11), renderSlot(_ctx.$slots, "emptyAction")], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [__props.showValue ? (openBlock(), createElementBlock("span", {
11913
12359
  key: 0,
11914
12360
  "data-eldra-scope": unref(eldra).scope,
11915
12361
  "data-part": "value",
11916
12362
  class: normalizeClass(valueClass.value),
11917
12363
  "aria-hidden": "true"
11918
- }, toDisplayString(formattedValue.value), 11, _hoisted_3$5)) : createCommentVNode("", true), __props.showCount ? (openBlock(), createElementBlock("span", {
12364
+ }, toDisplayString(formattedValue.value), 11, _hoisted_3$6)) : createCommentVNode("", true), __props.showCount ? (openBlock(), createElementBlock("span", {
11919
12365
  key: 1,
11920
12366
  "data-eldra-scope": unref(eldra).scope,
11921
12367
  "data-part": "count",
11922
12368
  class: normalizeClass(countClass.value),
11923
12369
  "aria-hidden": "true"
11924
- }, toDisplayString(cardCountText.value), 11, _hoisted_4$4)) : createCommentVNode("", true)], 64))], 64))], 16, _hoisted_1$12);
12370
+ }, toDisplayString(cardCountText.value), 11, _hoisted_4$5)) : createCommentVNode("", true)], 64))], 64))], 16, _hoisted_1$13);
11925
12371
  };
11926
12372
  }
11927
12373
  });
11928
12374
  // src/components/badge/StockBadge.vue?vue&type=script&setup=true&lang.ts
11929
- var _hoisted_1$11 = ["data-eldra-scope", "aria-busy"];
11930
- var _hoisted_2$9 = ["d"];
11931
- var ICON_STROKE_WIDTH$1 = 2.25;
12375
+ var _hoisted_1$12 = ["data-eldra-scope", "aria-busy"];
12376
+ var _hoisted_2$10 = ["d"];
12377
+ var ICON_STROKE_WIDTH$2 = 2.25;
11932
12378
  // src/components/badge/StockBadge.vue
11933
12379
  var StockBadge_default = /* @__PURE__ */ defineComponent({
11934
12380
  __name: "StockBadge",
@@ -12044,7 +12490,7 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
12044
12490
  viewBox: "0 0 24 24",
12045
12491
  fill: "none",
12046
12492
  stroke: "currentColor",
12047
- "stroke-width": ICON_STROKE_WIDTH$1,
12493
+ "stroke-width": ICON_STROKE_WIDTH$2,
12048
12494
  "stroke-linecap": "round",
12049
12495
  "stroke-linejoin": "round",
12050
12496
  "aria-hidden": "true",
@@ -12053,7 +12499,7 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
12053
12499
  return openBlock(), createElementBlock("path", {
12054
12500
  key: d,
12055
12501
  d
12056
- }, null, 8, _hoisted_2$9);
12502
+ }, null, 8, _hoisted_2$10);
12057
12503
  }), 128))], 2)),
12058
12504
  createElementVNode("span", {
12059
12505
  "data-part": "label",
@@ -12075,14 +12521,14 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
12075
12521
  class: normalizeClass(srStatusClass.value),
12076
12522
  "aria-live": "polite"
12077
12523
  }, toDisplayString(srStatusText.value), 3)) : createCommentVNode("", true)
12078
- ], 10, _hoisted_1$11);
12524
+ ], 10, _hoisted_1$12);
12079
12525
  };
12080
12526
  }
12081
12527
  });
12082
12528
  // src/components/product-card/ProductCard.vue?vue&type=script&setup=true&lang.ts
12083
- var _hoisted_1$10 = ["data-eldra-scope", "aria-label"];
12084
- var _hoisted_2$8 = { class: "eldra:mt-3 eldra:flex eldra:flex-1 eldra:flex-col eldra:gap-1" };
12085
- var _hoisted_3$4 = ["data-eldra-scope"];
12529
+ var _hoisted_1$11 = ["data-eldra-scope", "aria-label"];
12530
+ var _hoisted_2$9 = { class: "eldra:mt-3 eldra:flex eldra:flex-1 eldra:flex-col eldra:gap-1" };
12531
+ var _hoisted_3$5 = ["data-eldra-scope"];
12086
12532
  // src/components/product-card/ProductCard.vue
12087
12533
  var ProductCard_default = /* @__PURE__ */ defineComponent({
12088
12534
  __name: "ProductCard",
@@ -12341,7 +12787,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
12341
12787
  variant: "media",
12342
12788
  ratio: __props.ratio
12343
12789
  }, null, 8, ["ratio"]),
12344
- createElementVNode("div", _hoisted_2$8, [
12790
+ createElementVNode("div", _hoisted_2$9, [
12345
12791
  createVNode(Skeleton_default, {
12346
12792
  variant: "text",
12347
12793
  width: "80%"
@@ -12359,7 +12805,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
12359
12805
  variant: "btn",
12360
12806
  class: "eldra:mt-5"
12361
12807
  })
12362
- ], 2)], 8, _hoisted_1$10)) : (openBlock(), createElementBlock("article", {
12808
+ ], 2)], 8, _hoisted_1$11)) : (openBlock(), createElementBlock("article", {
12363
12809
  key: 1,
12364
12810
  "data-eldra-ui": "",
12365
12811
  "data-eldra-scope": unref(eldra).scope,
@@ -12508,21 +12954,21 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
12508
12954
  default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).soldOut), 1)]),
12509
12955
  _: 1
12510
12956
  }, 8, ["class"])) : createCommentVNode("", true)
12511
- ], 8, _hoisted_3$4));
12957
+ ], 8, _hoisted_3$5));
12512
12958
  };
12513
12959
  }
12514
12960
  });
12515
12961
  // src/components/radio/Radio.vue?vue&type=script&setup=true&lang.ts
12516
- var _hoisted_1$9 = ["data-eldra-scope"];
12517
- var _hoisted_2$7 = [
12962
+ var _hoisted_1$10 = ["data-eldra-scope"];
12963
+ var _hoisted_2$8 = [
12518
12964
  "name",
12519
12965
  "value",
12520
12966
  "checked",
12521
12967
  "disabled",
12522
12968
  "aria-invalid"
12523
12969
  ];
12524
- var _hoisted_3$3 = ["data-eldra-slot"];
12525
- var _hoisted_4$3 = ["data-eldra-slot"];
12970
+ var _hoisted_3$4 = ["data-eldra-slot"];
12971
+ var _hoisted_4$4 = ["data-eldra-slot"];
12526
12972
  // src/components/radio/Radio.vue
12527
12973
  var Radio_default = /* @__PURE__ */ defineComponent({
12528
12974
  inheritAttrs: false,
@@ -12617,7 +13063,7 @@ var Radio_default = /* @__PURE__ */ defineComponent({
12617
13063
  disabled: __props.disabled || void 0,
12618
13064
  "aria-invalid": __props.invalid ? "true" : void 0,
12619
13065
  onChange
12620
- }), null, 16, _hoisted_2$7), createElementVNode("span", {
13066
+ }), null, 16, _hoisted_2$8), createElementVNode("span", {
12621
13067
  "aria-hidden": "true",
12622
13068
  class: normalizeClass(dotClass.value)
12623
13069
  }, null, 2)], 2),
@@ -12626,21 +13072,21 @@ var Radio_default = /* @__PURE__ */ defineComponent({
12626
13072
  "data-eldra-slot": unref(eldra).slotHost("default"),
12627
13073
  "data-part": "label",
12628
13074
  class: normalizeClass(labelClass.value)
12629
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$3)) : createCommentVNode("", true),
13075
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 10, _hoisted_3$4)) : createCommentVNode("", true),
12630
13076
  hasHint.value ? (openBlock(), createElementBlock("span", {
12631
13077
  key: 1,
12632
13078
  "data-eldra-slot": unref(eldra).slotHost("hint"),
12633
13079
  "data-part": "hint",
12634
13080
  class: normalizeClass(hintClass.value)
12635
- }, [renderSlot(_ctx.$slots, "hint", {}, () => [createTextVNode(toDisplayString(__props.hint), 1)])], 10, _hoisted_4$3)) : createCommentVNode("", true)
12636
- ], 10, _hoisted_1$9);
13081
+ }, [renderSlot(_ctx.$slots, "hint", {}, () => [createTextVNode(toDisplayString(__props.hint), 1)])], 10, _hoisted_4$4)) : createCommentVNode("", true)
13082
+ ], 10, _hoisted_1$10);
12637
13083
  };
12638
13084
  }
12639
13085
  });
12640
13086
  // src/components/search-modal/SearchModal.vue?vue&type=script&setup=true&lang.ts
12641
- var _hoisted_1$8 = ["data-eldra-scope", "aria-label"];
12642
- var _hoisted_2$6 = ["action"];
12643
- var _hoisted_3$2 = [
13087
+ var _hoisted_1$9 = ["data-eldra-scope", "aria-label"];
13088
+ var _hoisted_2$7 = ["action"];
13089
+ var _hoisted_3$3 = [
12644
13090
  "id",
12645
13091
  "value",
12646
13092
  "placeholder",
@@ -12648,8 +13094,8 @@ var _hoisted_3$2 = [
12648
13094
  "aria-controls",
12649
13095
  "aria-activedescendant"
12650
13096
  ];
12651
- var _hoisted_4$2 = ["aria-label"];
12652
- var _hoisted_5$2 = ["aria-label"];
13097
+ var _hoisted_4$3 = ["aria-label"];
13098
+ var _hoisted_5$3 = ["aria-label"];
12653
13099
  var RECENT_KEY = "eldra-ui:recent-searches";
12654
13100
  var RECENT_MAX = 5;
12655
13101
  var LOADING_DELAY_MS = 300;
@@ -13366,7 +13812,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
13366
13812
  spellcheck: "false",
13367
13813
  onInput,
13368
13814
  onKeydown
13369
- }), null, 16, _hoisted_3$2),
13815
+ }), null, 16, _hoisted_3$3),
13370
13816
  loadingShown.value ? (openBlock(), createElementBlock("span", {
13371
13817
  key: 0,
13372
13818
  "data-part": "busy",
@@ -13389,7 +13835,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
13389
13835
  "stroke-linejoin": "round",
13390
13836
  "aria-hidden": "true",
13391
13837
  focusable: "false"
13392
- }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$2)) : createCommentVNode("", true),
13838
+ }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$3)) : createCommentVNode("", true),
13393
13839
  createElementVNode("button", {
13394
13840
  "data-part": "close",
13395
13841
  type: "button",
@@ -13406,14 +13852,14 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
13406
13852
  "stroke-linejoin": "round",
13407
13853
  "aria-hidden": "true",
13408
13854
  focusable: "false"
13409
- }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_5$2),
13855
+ }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_5$3),
13410
13856
  createElementVNode("button", {
13411
13857
  "data-part": "close",
13412
13858
  type: "button",
13413
13859
  class: normalizeClass(cancelClass.value),
13414
13860
  onClick: onCloseClick
13415
13861
  }, toDisplayString(unref(m).cancel), 3)
13416
- ], 42, _hoisted_2$6),
13862
+ ], 42, _hoisted_2$7),
13417
13863
  createElementVNode("div", {
13418
13864
  "data-part": "results",
13419
13865
  class: normalizeClass(resultsClass.value)
@@ -13480,7 +13926,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
13480
13926
  default: withCtx(() => [createTextVNode(toDisplayString(announcement.value), 1)]),
13481
13927
  _: 1
13482
13928
  }, 8, ["class"])
13483
- ], 42, _hoisted_1$8);
13929
+ ], 42, _hoisted_1$9);
13484
13930
  };
13485
13931
  }
13486
13932
  });
@@ -14009,12 +14455,12 @@ function useSiteForm(options) {
14009
14455
  };
14010
14456
  }
14011
14457
  // src/components/site-form/SiteForm.vue?vue&type=script&setup=true&lang.ts
14012
- var _hoisted_1$7 = ["data-eldra-slot", "data-eldra-scope"];
14013
- var _hoisted_2$5 = ["data-eldra-scope"];
14014
- var _hoisted_3$1 = ["data-eldra-scope"];
14015
- var _hoisted_4$1 = ["data-eldra-slot", "data-eldra-scope"];
14016
- var _hoisted_5$1 = ["data-eldra-scope"];
14017
- var _hoisted_6 = ["data-eldra-scope"];
14458
+ var _hoisted_1$8 = ["data-eldra-slot", "data-eldra-scope"];
14459
+ var _hoisted_2$6 = ["data-eldra-scope"];
14460
+ var _hoisted_3$2 = ["data-eldra-scope"];
14461
+ var _hoisted_4$2 = ["data-eldra-slot", "data-eldra-scope"];
14462
+ var _hoisted_5$2 = ["data-eldra-scope"];
14463
+ var _hoisted_6$1 = ["data-eldra-scope"];
14018
14464
  var _hoisted_7 = ["data-eldra-scope"];
14019
14465
  var _hoisted_8 = ["name"];
14020
14466
  var _hoisted_9 = ["data-eldra-scope"];
@@ -14177,12 +14623,12 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
14177
14623
  "data-part": "notice",
14178
14624
  role: "status",
14179
14625
  class: normalizeClass(noticeClass.value)
14180
- }, toDisplayString(unref(m).formLoading), 11, _hoisted_2$5)], void 0, 0) : unref(status) === "failed" || !unref(form) ? renderSlot(_ctx.$slots, "failed", {}, () => [createElementVNode("p", {
14626
+ }, toDisplayString(unref(m).formLoading), 11, _hoisted_2$6)], void 0, 0) : unref(status) === "failed" || !unref(form) ? renderSlot(_ctx.$slots, "failed", {}, () => [createElementVNode("p", {
14181
14627
  "data-eldra-scope": unref(eldra).scope,
14182
14628
  "data-part": "notice",
14183
14629
  role: "alert",
14184
14630
  class: normalizeClass(noticeClass.value)
14185
- }, toDisplayString(unref(m).formLoadFailed), 11, _hoisted_3$1)], void 0, 1) : unref(success) ? (openBlock(), createElementBlock("div", {
14631
+ }, toDisplayString(unref(m).formLoadFailed), 11, _hoisted_3$2)], void 0, 1) : unref(success) ? (openBlock(), createElementBlock("div", {
14186
14632
  key: 2,
14187
14633
  ref_key: "successRoot",
14188
14634
  ref: successRoot,
@@ -14204,7 +14650,7 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
14204
14650
  key: 0,
14205
14651
  "data-part": "successMessage",
14206
14652
  class: normalizeClass(successMessageClass.value)
14207
- }, toDisplayString(successMessage.value), 3)) : createCommentVNode("", true)])], 10, _hoisted_4$1)) : (openBlock(), createBlock(FormLayout_default, {
14653
+ }, toDisplayString(successMessage.value), 3)) : createCommentVNode("", true)])], 10, _hoisted_4$2)) : (openBlock(), createBlock(FormLayout_default, {
14208
14654
  key: 3,
14209
14655
  layout: layout.value,
14210
14656
  heading: __props.heading,
@@ -14295,7 +14741,7 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
14295
14741
  }, {
14296
14742
  default: withCtx(() => [createTextVNode(toDisplayString(unref(errors)[field.id]), 1)]),
14297
14743
  _: 2
14298
- }, 1032, ["id", "classes"])) : createCommentVNode("", true)], 10, _hoisted_6)) : (openBlock(), createBlock(FieldWrapper_default, {
14744
+ }, 1032, ["id", "classes"])) : createCommentVNode("", true)], 10, _hoisted_6$1)) : (openBlock(), createBlock(FieldWrapper_default, {
14299
14745
  key: 1,
14300
14746
  id: fieldId(field.id),
14301
14747
  label: field.label,
@@ -14404,7 +14850,7 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
14404
14850
  key: index,
14405
14851
  "data-eldra-scope": unref(eldra).scope,
14406
14852
  class: "eldra:m-0"
14407
- }, toDisplayString(message), 9, _hoisted_5$1);
14853
+ }, toDisplayString(message), 9, _hoisted_5$2);
14408
14854
  }), 128))]),
14409
14855
  key: "0"
14410
14856
  } : void 0]), 1032, [
@@ -14415,7 +14861,158 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
14415
14861
  "submitting",
14416
14862
  "class",
14417
14863
  "classes"
14418
- ]))], 8, _hoisted_1$7);
14864
+ ]))], 8, _hoisted_1$8);
14865
+ };
14866
+ }
14867
+ });
14868
+ // src/components/step-indicator/StepIndicator.vue?vue&type=script&setup=true&lang.ts
14869
+ var _hoisted_1$7 = ["data-eldra-scope", "data-orientation"];
14870
+ var _hoisted_2$5 = ["data-state", "aria-current"];
14871
+ var _hoisted_3$1 = ["d"];
14872
+ var _hoisted_4$1 = {
14873
+ key: 1,
14874
+ class: "eldra:bg-primary-contrast eldra:size-2 eldra:rounded-full"
14875
+ };
14876
+ var _hoisted_5$1 = ["d"];
14877
+ var _hoisted_6 = { class: "eldra:min-w-0" };
14878
+ var ICON_STROKE_WIDTH$1 = 2.25;
14879
+ // src/components/step-indicator/StepIndicator.vue
14880
+ var StepIndicator_default = /* @__PURE__ */ defineComponent({
14881
+ __name: "StepIndicator",
14882
+ props: {
14883
+ steps: {},
14884
+ current: {},
14885
+ orientation: { default: "horizontal" },
14886
+ classes: { default: void 0 }
14887
+ },
14888
+ setup(__props) {
14889
+ /**
14890
+ * A step indicator: an ordered list showing how far something has come ("Confirmed, Packed, On its
14891
+ * way, Delivered"). It only reports — no step is a link or a button, and nothing here takes focus.
14892
+ * For steps a visitor moves between, use `Tabs`; for a trail of pages, `Breadcrumb`.
14893
+ *
14894
+ * Not in design spec 1 (README, "Additions beyond the spec"). A real `<ol>`, so the order and the
14895
+ * count are announced; the current step carries `aria-current="step"`, and the other two states are
14896
+ * said in visually hidden text after the label, so no state rests on colour or weight alone.
14897
+ */
14898
+ const eldra = useEldraScope();
14899
+ const props = __props;
14900
+ const m = useMessages();
14901
+ const vertical = computed(() => props.orientation === "vertical");
14902
+ function stateOf(index) {
14903
+ if (index < props.current) return "done";
14904
+ return index === props.current ? "current" : "upcoming";
14905
+ }
14906
+ /** What a screen reader hears after the label. The current step says it with `aria-current`. */
14907
+ function statusText(state) {
14908
+ if (state === "done") return m.value.stepCompleted;
14909
+ if (state === "upcoming") return m.value.stepNotStarted;
14910
+ }
14911
+ /** The stroke `Badge` and `StockBadge` draw their small icons with: a check this size needs it. */
14912
+ const rootClass = computed(() => ["eldra:m-0 eldra:min-w-0 eldra:list-none eldra:p-0", vertical.value ? "eldra:flex eldra:flex-col eldra:gap-3" : "eldra:grid eldra:grid-flow-col eldra:auto-cols-fr eldra:gap-2"]);
14913
+ const stepClass = computed(() => [
14914
+ "eldra:flex eldra:min-w-0",
14915
+ vertical.value ? "eldra:flex-row eldra:items-start eldra:gap-2.5" : "eldra:flex-col eldra:gap-2",
14916
+ props.classes?.step
14917
+ ]);
14918
+ /**
14919
+ * The marker. Horizontal: a 0.25rem bar across the column, `primary` up to and including the
14920
+ * current step, `border` after it. Vertical: a 1.25rem circle, filled `primary` with a check
14921
+ * (done) or a dot (current), an empty ring (upcoming). The transparent border is what a
14922
+ * forced-colours mode draws once it has removed the fill.
14923
+ */
14924
+ function markerClass(state) {
14925
+ const reached = state !== "upcoming";
14926
+ if (!vertical.value) return [
14927
+ "eldra:block eldra:h-1 eldra:w-full eldra:rounded-full eldra:border eldra:border-transparent",
14928
+ reached ? "eldra:bg-primary" : "eldra:bg-border",
14929
+ props.classes?.marker
14930
+ ];
14931
+ return [
14932
+ "eldra:mt-0.5 eldra:flex eldra:size-5 eldra:shrink-0 eldra:items-center eldra:justify-center eldra:rounded-full eldra:border-2",
14933
+ reached ? "eldra:border-primary eldra:bg-primary eldra:text-primary-contrast" : "eldra:border-border-strong eldra:bg-transparent",
14934
+ props.classes?.marker
14935
+ ];
14936
+ }
14937
+ const contentClass = computed(() => ["eldra:flex eldra:min-w-0 eldra:flex-1 eldra:flex-col", props.classes?.content]);
14938
+ function labelClass(state) {
14939
+ return [
14940
+ "eldra:text-body-sm eldra:flex eldra:min-w-0 eldra:items-start eldra:gap-1 eldra:break-words",
14941
+ state === "current" ? "eldra:font-semibold" : "eldra:font-normal",
14942
+ state === "upcoming" ? "eldra:text-muted" : "eldra:text-text",
14943
+ props.classes?.label
14944
+ ];
14945
+ }
14946
+ /** 1rem, nudged 0.125rem down toward the centre of the label's first line. */
14947
+ const labelIconClass = computed(() => ["eldra:mt-0.5 eldra:size-4 eldra:shrink-0", props.classes?.labelIcon]);
14948
+ const statusClass = computed(() => ["eldra:sr-only", props.classes?.status]);
14949
+ const descriptionClass = computed(() => ["eldra:text-caption eldra:text-muted eldra:min-w-0 eldra:break-words", props.classes?.description]);
14950
+ return (_ctx, _cache) => {
14951
+ return openBlock(), createElementBlock("ol", {
14952
+ "data-eldra-ui": "",
14953
+ "data-eldra-scope": unref(eldra).scope,
14954
+ "data-part": "root",
14955
+ "data-orientation": __props.orientation,
14956
+ class: normalizeClass(rootClass.value)
14957
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.steps, (step, index) => {
14958
+ return openBlock(), createElementBlock("li", {
14959
+ key: index,
14960
+ "data-part": "step",
14961
+ "data-state": stateOf(index),
14962
+ "aria-current": stateOf(index) === "current" ? "step" : void 0,
14963
+ class: normalizeClass(stepClass.value)
14964
+ }, [createElementVNode("span", {
14965
+ "data-part": "marker",
14966
+ class: normalizeClass(markerClass(stateOf(index))),
14967
+ "aria-hidden": "true"
14968
+ }, [vertical.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [stateOf(index) === "done" ? (openBlock(), createElementBlock("svg", {
14969
+ key: 0,
14970
+ class: "eldra:size-3.5",
14971
+ viewBox: "0 0 24 24",
14972
+ fill: "none",
14973
+ stroke: "currentColor",
14974
+ "stroke-width": ICON_STROKE_WIDTH$1,
14975
+ "stroke-linecap": "round",
14976
+ "stroke-linejoin": "round",
14977
+ focusable: "false"
14978
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(CHECK_PATHS), (d) => {
14979
+ return openBlock(), createElementBlock("path", {
14980
+ key: d,
14981
+ d
14982
+ }, null, 8, _hoisted_3$1);
14983
+ }), 128))])) : stateOf(index) === "current" ? (openBlock(), createElementBlock("span", _hoisted_4$1)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true)], 2), createElementVNode("span", {
14984
+ "data-part": "content",
14985
+ class: normalizeClass(contentClass.value)
14986
+ }, [createElementVNode("span", {
14987
+ "data-part": "label",
14988
+ class: normalizeClass(labelClass(stateOf(index)))
14989
+ }, [!vertical.value && stateOf(index) === "done" ? (openBlock(), createElementBlock("svg", {
14990
+ key: 0,
14991
+ "data-part": "labelIcon",
14992
+ class: normalizeClass(labelIconClass.value),
14993
+ viewBox: "0 0 24 24",
14994
+ fill: "none",
14995
+ stroke: "currentColor",
14996
+ "stroke-width": ICON_STROKE_WIDTH$1,
14997
+ "stroke-linecap": "round",
14998
+ "stroke-linejoin": "round",
14999
+ "aria-hidden": "true",
15000
+ focusable: "false"
15001
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(CHECK_PATHS), (d) => {
15002
+ return openBlock(), createElementBlock("path", {
15003
+ key: d,
15004
+ d
15005
+ }, null, 8, _hoisted_5$1);
15006
+ }), 128))], 2)) : createCommentVNode("", true), createElementVNode("span", _hoisted_6, [createTextVNode(toDisplayString(step.label), 1), statusText(stateOf(index)) ? (openBlock(), createElementBlock("span", {
15007
+ key: 0,
15008
+ "data-part": "status",
15009
+ class: normalizeClass(statusClass.value)
15010
+ }, " (" + toDisplayString(statusText(stateOf(index))) + ")", 3)) : createCommentVNode("", true)])], 2), step.description ? (openBlock(), createElementBlock("span", {
15011
+ key: 0,
15012
+ "data-part": "description",
15013
+ class: normalizeClass(descriptionClass.value)
15014
+ }, toDisplayString(step.description), 3)) : createCommentVNode("", true)], 2)], 10, _hoisted_2$5);
15015
+ }), 128))], 10, _hoisted_1$7);
14419
15016
  };
14420
15017
  }
14421
15018
  });
@@ -14689,7 +15286,7 @@ var TablerIcon_default = /* @__PURE__ */ defineComponent({
14689
15286
  name: { default: void 0 },
14690
15287
  size: { default: "md" },
14691
15288
  label: { default: void 0 },
14692
- strokeWidth: { default: ICON_STROKE_WIDTH$4 }
15289
+ strokeWidth: { default: ICON_STROKE_WIDTH$6 }
14693
15290
  },
14694
15291
  setup(__props) {
14695
15292
  const eldra = useEldraScope();
@@ -15800,4 +16397,4 @@ var Tooltip_default = /* @__PURE__ */ defineComponent({
15800
16397
  function mixToward(color, toward, percent) {
15801
16398
  return `color-mix(in oklab, ${color}, ${toward} ${percent}%)`;
15802
16399
  }
15803
- export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, ELDRA_SCOPE_KEY, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, Radio_default as Radio, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, SiteForm_default as SiteForm, Skeleton_default as Skeleton, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, TablerIcon_default as TablerIcon, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, prefersReducedMotion, preloadTablerIcons, provideEldraScope, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, tablerIconName, toggleValue, topLayerDialog, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSiteForm, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };
16400
+ export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, ELDRA_SCOPE_KEY, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Notice_default as Notice, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, Radio_default as Radio, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, SiteForm_default as SiteForm, Skeleton_default as Skeleton, Spinner_default as Spinner, StepIndicator_default as StepIndicator, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, TablerIcon_default as TablerIcon, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, prefersReducedMotion, preloadTablerIcons, provideEldraScope, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, tablerIconName, toggleValue, topLayerDialog, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSiteForm, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };