@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
@@ -1,4 +1,4 @@
1
- import { r as useMessages } from "./useMessages-B5nzZghs.js";
1
+ import { r as useMessages } from "./useMessages-DOHGfip_.js";
2
2
  import { Comment, Fragment, Teleport, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onBeforeUpdate, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toValue, unref, useAttrs, useId, useSlots, watch, watchPostEffect, withCtx, withModifiers } from "vue";
3
3
  import { extendTailwindMerge } from "tailwind-merge";
4
4
  import { numberFormat } from "@eldrajs/sdk/format";
@@ -232,11 +232,14 @@ var kitMerge = extendTailwindMerge({
232
232
  "eldra-radio-card-selected": ["eldra-radio-card-selected"],
233
233
  "eldra-switch-thumb-offset": ["eldra-switch-thumb-offset"],
234
234
  "eldra-dialog-fullscreen": ["eldra-dialog-fullscreen"],
235
+ "eldra-drawer-motion": ["eldra-drawer-motion"],
236
+ "eldra-drawer-sheet": ["eldra-drawer-sheet"],
235
237
  "max-h": [
236
238
  "eldra-select-panel-height",
237
239
  "eldra-search-panel-height",
238
240
  "eldra-dialog-max-height",
239
- "eldra-search-modal-max-height"
241
+ "eldra-search-modal-max-height",
242
+ "eldra-drawer-sheet-height"
240
243
  ],
241
244
  m: ["eldra-search-modal-position"],
242
245
  "max-w": [
@@ -355,7 +358,7 @@ var ICON_SIZE_CLASS = {
355
358
  xl: "eldra:size-8"
356
359
  };
357
360
  /** The spec's outline stroke weight. */
358
- var ICON_STROKE_WIDTH = 1.75;
361
+ var ICON_STROKE_WIDTH$1 = 1.75;
359
362
  // src/components/icon/Icon.vue
360
363
  var Icon_default = /* @__PURE__ */ defineComponent({
361
364
  __name: "Icon",
@@ -374,7 +377,7 @@ var Icon_default = /* @__PURE__ */ defineComponent({
374
377
  "data-eldra-scope": unref(eldra).scope,
375
378
  "data-part": "root",
376
379
  class: normalizeClass(rootClass.value),
377
- "stroke-width": unref(ICON_STROKE_WIDTH),
380
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
378
381
  "aria-hidden": __props.label === void 0 ? "true" : void 0,
379
382
  role: __props.label === void 0 ? void 0 : "img",
380
383
  "aria-label": __props.label,
@@ -391,22 +394,40 @@ var Icon_default = /* @__PURE__ */ defineComponent({
391
394
  }
392
395
  });
393
396
  // src/components/spinner/Spinner.vue?vue&type=script&setup=true&lang.ts
394
- var _hoisted_1$19 = ["data-eldra-scope"];
397
+ var _hoisted_1$19 = [
398
+ "data-eldra-scope",
399
+ "role",
400
+ "aria-label",
401
+ "aria-hidden"
402
+ ];
395
403
  // src/components/spinner/Spinner.vue
396
404
  var Spinner_default = /* @__PURE__ */ defineComponent({
405
+ inheritAttrs: false,
397
406
  __name: "Spinner",
407
+ props: { label: { default: void 0 } },
398
408
  setup(__props) {
409
+ const props = __props;
399
410
  const eldra = useEldraScope();
411
+ const attrs = useAttrs();
412
+ const forwardedAttrs = computed(() => {
413
+ const { class: _class, ...rest } = attrs;
414
+ return rest;
415
+ });
416
+ const rootClass = computed(() => mergeClass("eldra:size-4.5 eldra:animate-eldra-spin eldra:motion-reduce:animate-eldra-pulse", attrs.class));
417
+ /** `""` names nothing, so it is decorative too. */
418
+ const named = computed(() => props.label !== void 0 && props.label !== "");
400
419
  return (_ctx, _cache) => {
401
- return openBlock(), createElementBlock("svg", {
420
+ return openBlock(), createElementBlock("svg", mergeProps({
402
421
  "data-eldra-ui": "",
403
422
  "data-eldra-scope": unref(eldra).scope,
404
- class: "eldra:animate-eldra-spin eldra:motion-reduce:animate-eldra-pulse",
423
+ class: rootClass.value,
405
424
  viewBox: "0 0 18 18",
406
425
  fill: "none",
407
- "aria-hidden": "true",
426
+ role: named.value ? "img" : void 0,
427
+ "aria-label": named.value ? __props.label : void 0,
428
+ "aria-hidden": named.value ? void 0 : "true",
408
429
  focusable: "false"
409
- }, [..._cache[0] || (_cache[0] = [createElementVNode("circle", {
430
+ }, forwardedAttrs.value), [..._cache[0] || (_cache[0] = [createElementVNode("circle", {
410
431
  cx: "9",
411
432
  cy: "9",
412
433
  r: "8",
@@ -418,7 +439,7 @@ var Spinner_default = /* @__PURE__ */ defineComponent({
418
439
  stroke: "currentColor",
419
440
  "stroke-width": "2",
420
441
  "stroke-linecap": "round"
421
- }, null, -1)])], 8, _hoisted_1$19);
442
+ }, null, -1)])], 16, _hoisted_1$19);
422
443
  };
423
444
  }
424
445
  });
@@ -2197,7 +2218,7 @@ var _hoisted_4$12 = [
2197
2218
  ];
2198
2219
  var _hoisted_5$10 = ["name", "value"];
2199
2220
  var _hoisted_6$8 = ["data-eldra-slot"];
2200
- var _hoisted_7$5 = ["data-eldra-scope", "aria-label"];
2221
+ var _hoisted_7$6 = ["data-eldra-scope", "aria-label"];
2201
2222
  var _hoisted_8$4 = ["data-eldra-scope"];
2202
2223
  var VALUE_DRAG_PIXELS_PER_STEP = 8;
2203
2224
  /**
@@ -2802,7 +2823,7 @@ var UnitInput_default = /* @__PURE__ */ defineComponent({
2802
2823
  }, [renderSlot(_ctx.$slots, "leadingIcon", {}, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
2803
2824
  key: 0,
2804
2825
  class: "eldra:size-4.5 eldra:shrink-0",
2805
- "stroke-width": unref(ICON_STROKE_WIDTH),
2826
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
2806
2827
  "aria-hidden": "true",
2807
2828
  focusable: "false"
2808
2829
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$13)) : createCommentVNode("", true),
@@ -2865,7 +2886,7 @@ var UnitInput_default = /* @__PURE__ */ defineComponent({
2865
2886
  "stroke-linejoin": "round",
2866
2887
  "aria-hidden": "true",
2867
2888
  focusable: "false"
2868
- }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 42, _hoisted_7$5)) : createCommentVNode("", true),
2889
+ }, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 42, _hoisted_7$6)) : createCommentVNode("", true),
2869
2890
  showDragHandle.value ? (openBlock(), createElementBlock("button", {
2870
2891
  key: 1,
2871
2892
  ref_key: "dragHandleRef",
@@ -3396,7 +3417,7 @@ var Input_default = /* @__PURE__ */ defineComponent({
3396
3417
  }, [renderSlot(_ctx.$slots, "leadingIcon", {}, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
3397
3418
  key: 0,
3398
3419
  class: "eldra:size-4.5 eldra:shrink-0",
3399
- "stroke-width": unref(ICON_STROKE_WIDTH),
3420
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
3400
3421
  "aria-hidden": "true",
3401
3422
  focusable: "false"
3402
3423
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$12)) : createCommentVNode("", true),
@@ -3558,7 +3579,7 @@ var _hoisted_3$11 = ["data-eldra-slot"];
3558
3579
  var _hoisted_4$10 = ["data-eldra-slot"];
3559
3580
  var _hoisted_5$8 = ["data-eldra-slot"];
3560
3581
  var _hoisted_6$6 = ["data-eldra-slot", "id"];
3561
- var _hoisted_7$4 = [
3582
+ var _hoisted_7$5 = [
3562
3583
  "data-eldra-scope",
3563
3584
  "name",
3564
3585
  "checked",
@@ -3868,7 +3889,7 @@ var Switch_default = /* @__PURE__ */ defineComponent({
3868
3889
  name: __props.name,
3869
3890
  checked: unref(model),
3870
3891
  disabled: __props.disabled || void 0
3871
- }, null, 8, _hoisted_7$4)]),
3892
+ }, null, 8, _hoisted_7$5)]),
3872
3893
  _: 3
3873
3894
  });
3874
3895
  };
@@ -4348,7 +4369,7 @@ var _hoisted_5$7 = [
4348
4369
  "aria-labelledby"
4349
4370
  ];
4350
4371
  var _hoisted_6$5 = ["id"];
4351
- var _hoisted_7$3 = [
4372
+ var _hoisted_7$4 = [
4352
4373
  "data-eldra-slot",
4353
4374
  "id",
4354
4375
  "aria-selected",
@@ -4605,7 +4626,7 @@ var SelectPanel_default = /* @__PURE__ */ defineComponent({
4605
4626
  "data-eldra-scope": unref(eldra).scope,
4606
4627
  "data-part": "optionIcon",
4607
4628
  class: normalizeClass(optionIconClasses.value),
4608
- "stroke-width": unref(ICON_STROKE_WIDTH),
4629
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
4609
4630
  "aria-hidden": "true",
4610
4631
  focusable: "false"
4611
4632
  }, null, 8, [
@@ -4645,7 +4666,7 @@ var SelectPanel_default = /* @__PURE__ */ defineComponent({
4645
4666
  "aria-hidden": "true",
4646
4667
  focusable: "false"
4647
4668
  }, [..._cache[5] || (_cache[5] = [createElementVNode("path", { d: "M5 12l5 5l10 -10" }, null, -1)])], 10, _hoisted_11$3)) : createCommentVNode("", true)
4648
- ])], 42, _hoisted_7$3);
4669
+ ])], 42, _hoisted_7$4);
4649
4670
  }), 128))], 10, _hoisted_5$7);
4650
4671
  }), 128)), __props.createOption ? (openBlock(), createElementBlock("div", {
4651
4672
  key: 0,
@@ -5994,7 +6015,7 @@ var _hoisted_4$6 = [
5994
6015
  ];
5995
6016
  var _hoisted_5$5 = ["data-eldra-slot"];
5996
6017
  var _hoisted_6$4 = ["data-placeholder"];
5997
- var _hoisted_7$2 = ["data-eldra-slot"];
6018
+ var _hoisted_7$3 = ["data-eldra-slot"];
5998
6019
  var _hoisted_8$2 = {
5999
6020
  key: 0,
6000
6021
  class: "eldra:min-w-0 eldra:truncate"
@@ -6537,7 +6558,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
6537
6558
  }, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
6538
6559
  key: 0,
6539
6560
  class: "eldra:size-4.5 eldra:shrink-0",
6540
- "stroke-width": unref(ICON_STROKE_WIDTH),
6561
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
6541
6562
  "aria-hidden": "true",
6542
6563
  focusable: "false"
6543
6564
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$7)) : createCommentVNode("", true),
@@ -6613,7 +6634,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
6613
6634
  }, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
6614
6635
  key: 0,
6615
6636
  class: "eldra:size-4.5 eldra:shrink-0",
6616
- "stroke-width": unref(ICON_STROKE_WIDTH),
6637
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
6617
6638
  "aria-hidden": "true",
6618
6639
  focusable: "false"
6619
6640
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_5$5)) : createCommentVNode("", true),
@@ -6635,7 +6656,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
6635
6656
  key: 1,
6636
6657
  "data-part": "summaryMore",
6637
6658
  class: normalizeClass(summaryMoreClass.value)
6638
- }, toDisplayString(unref(m).moreSelected(moreCount.value)), 3)) : createCommentVNode("", true)])], 10, _hoisted_7$2), fitsSummary.value && unref(summaryFit).mounted.value ? (openBlock(), createElementBlock("span", {
6659
+ }, toDisplayString(unref(m).moreSelected(moreCount.value)), 3)) : createCommentVNode("", true)])], 10, _hoisted_7$3), fitsSummary.value && unref(summaryFit).mounted.value ? (openBlock(), createElementBlock("span", {
6639
6660
  key: 0,
6640
6661
  "aria-hidden": "true",
6641
6662
  inert: "",
@@ -7410,8 +7431,10 @@ function labelRecipe(card, disabled) {
7410
7431
  disabled ? "eldra:text-muted" : "eldra:text-text"
7411
7432
  ];
7412
7433
  }
7413
- /** Spec "Radio group" → Sizes: the hint is `muted` in every layout, under the label's column. */
7414
- var HINT = "eldra:text-body-sm eldra:text-muted eldra:col-start-2 eldra:min-w-0";
7434
+ /** Spec "Radio group" → Sizes: the hint is `muted` in every layout. */
7435
+ var HINT_TEXT = "eldra:text-body-sm eldra:text-muted eldra:min-w-0";
7436
+ /** The hint under the label's column: column 2, after the radio. */
7437
+ var HINT = `${HINT_TEXT} eldra:col-start-2`;
7415
7438
  // src/components/radio/RadioGroup.vue?vue&type=script&setup=true&lang.ts
7416
7439
  var _hoisted_1$5 = [
7417
7440
  "data-eldra-scope",
@@ -7430,10 +7453,11 @@ var _hoisted_2$5 = [
7430
7453
  var _hoisted_3$5 = ["data-eldra-slot"];
7431
7454
  var _hoisted_4$4 = ["data-eldra-slot"];
7432
7455
  var _hoisted_5$4 = ["data-eldra-slot"];
7433
- var _hoisted_6$3 = ["id"];
7456
+ var _hoisted_6$3 = ["data-eldra-slot"];
7457
+ var _hoisted_7$2 = ["id"];
7434
7458
  var ROOT = "eldra:grid eldra:min-w-0 eldra:content-start eldra:gap-3 eldra:rounded-none eldra:border-0 eldra:p-0";
7435
7459
  /** `FieldWrapper`'s help type: 0.8125rem / 1.45, weight 400, `muted`. */
7436
- var CARD_OPTION = "eldra:group eldra:relative eldra:grid eldra:w-full eldra:grid-cols-[auto_1fr_auto] eldra:items-start eldra:gap-x-2.5 eldra:gap-y-0.5 eldra:min-h-14 eldra:rounded-md eldra:px-4 eldra:py-3 eldra:eldra-radio-card-border eldra:eldra-transition-colors";
7460
+ var CARD_OPTION = "eldra:group eldra:relative eldra:grid eldra:w-full eldra:items-start eldra:gap-x-2.5 eldra:gap-y-0.5 eldra:min-h-14 eldra:rounded-md eldra:px-4 eldra:py-3 eldra:eldra-radio-card-border eldra:eldra-transition-colors";
7437
7461
  var CARD_UNSELECTED = "eldra:bg-background eldra:border-border-strong eldra:hover:border-text";
7438
7462
  var CARD_SELECTED = "eldra:bg-surface eldra:border-primary eldra:eldra-radio-card-selected";
7439
7463
  var CARD_INVALID = "eldra:bg-background eldra:border-danger eldra:hover:border-danger";
@@ -7447,6 +7471,15 @@ var CARD_INVALID_SELECTED = "eldra:bg-surface eldra:border-danger eldra:eldra-ra
7447
7471
  /** Spec "Radio group" → States, Disabled selected row: "as disabled" — the card draws no special
7448
7472
  * selected look once it is also disabled; only the radio inside it keeps a distinct look. */
7449
7473
  var CARD_DISABLED = "eldra:bg-background eldra:border-border eldra:border-dashed";
7474
+ var CARD_COLUMNS = "eldra:grid-cols-[auto_1fr_auto]";
7475
+ /** With a leading icon or logo: radio, leading, text, meta. */
7476
+ var CARD_COLUMNS_LEADING = "eldra:grid-cols-[auto_auto_1fr_auto]";
7477
+ /**
7478
+ * Cards only: whether this option draws the `leading` part — its own `icon`, or the group's
7479
+ * `leading` slot. A card without one keeps the three columns it always had, so a group that never
7480
+ * uses either renders exactly as before.
7481
+ */
7482
+ var ICON_STROKE_WIDTH = 1.75;
7450
7483
  // src/components/radio/RadioGroup.vue
7451
7484
  var RadioGroup_default = /* @__PURE__ */ defineComponent({
7452
7485
  __name: "RadioGroup",
@@ -7486,6 +7519,8 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7486
7519
  */
7487
7520
  const field = inject(FIELD_KEY, null);
7488
7521
  const m = useMessages();
7522
+ const slots = useSlots();
7523
+ const present = useSlotPresence(slots, ["leading"]);
7489
7524
  const errorId = useUiId("radio-group-error");
7490
7525
  const helpId = useUiId("radio-group-help");
7491
7526
  /** The shared native `name` every radio posts under. Generated when the caller gives none. */
@@ -7567,9 +7602,21 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7567
7602
  if (isSelected(option.value)) return inError.value ? CARD_INVALID_SELECTED : CARD_SELECTED;
7568
7603
  return inError.value ? CARD_INVALID : CARD_UNSELECTED;
7569
7604
  }
7605
+ /** The card's columns: radio, text, meta. */
7606
+ function hasLeading(option) {
7607
+ return props.layout === "cards" && (present.value.leading || option.icon !== void 0);
7608
+ }
7609
+ /** Whether a hint row sits under the title, for the leading part to span. */
7610
+ function hasHint(option) {
7611
+ return !!option.hint || slots.hint !== void 0;
7612
+ }
7570
7613
  function optionClass(option) {
7571
7614
  return [
7572
- props.layout === "cards" ? [CARD_OPTION, cardState(option)] : [PLAIN_OPTION, PLAIN_COLUMNS],
7615
+ props.layout === "cards" ? [
7616
+ CARD_OPTION,
7617
+ hasLeading(option) ? CARD_COLUMNS_LEADING : CARD_COLUMNS,
7618
+ cardState(option)
7619
+ ] : [PLAIN_OPTION, PLAIN_COLUMNS],
7573
7620
  optionCursor(option.disabled),
7574
7621
  props.classes?.option
7575
7622
  ];
@@ -7588,15 +7635,30 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7588
7635
  function labelClass(option) {
7589
7636
  return [labelRecipe(props.layout === "cards", option.disabled), props.classes?.label];
7590
7637
  }
7591
- const hintClass = computed(() => [HINT, props.classes?.hint]);
7638
+ /** Under the title: column 2, or column 3 when a leading part takes the second. */
7639
+ function hintClass(option) {
7640
+ return [hasLeading(option) ? `${HINT_TEXT} eldra:col-start-3` : HINT, props.classes?.hint];
7641
+ }
7592
7642
  /**
7593
- * Spec "Radio group" → Sizes, Card title / hint / meta row: "1rem 600 tabular, no wrap, pushed to
7594
- * the end" — `tabular-nums` and `whitespace-nowrap` are stock Tailwind utilities, so meta reuses
7595
- * `text-card-title` rather than a near-identical utility of its own, and `justify-self-end` in the
7596
- * grid's third column is what pushes it to the end.
7643
+ * The leading part: an icon or a logo between the radio and the text, centred against the title
7644
+ * and the hint together (it spans both rows when there is a hint). `text` so an icon follows the
7645
+ * title's colour, `muted` when the option is disabled.
7597
7646
  */
7647
+ function leadingClass(option) {
7648
+ return [
7649
+ "eldra:col-start-2 eldra:flex eldra:shrink-0 eldra:items-center eldra:justify-center eldra:self-center",
7650
+ hasHint(option) ? "eldra:row-span-2" : "eldra:row-span-1",
7651
+ option.disabled ? "eldra:text-muted" : "eldra:text-text",
7652
+ props.classes?.leading
7653
+ ];
7654
+ }
7655
+ /** The stroke `Icon` draws with. */
7598
7656
  function metaClass(option) {
7599
- return [["eldra:text-card-title eldra:col-start-3 eldra:min-w-0 eldra:justify-self-end eldra:tabular-nums eldra:whitespace-nowrap", option.disabled ? "eldra:text-muted" : "eldra:text-text"], props.classes?.meta];
7657
+ return [[
7658
+ "eldra:text-card-title eldra:min-w-0 eldra:justify-self-end eldra:tabular-nums eldra:whitespace-nowrap",
7659
+ hasLeading(option) ? "eldra:col-start-4" : "eldra:col-start-3",
7660
+ option.disabled ? "eldra:text-muted" : "eldra:text-text"
7661
+ ], props.classes?.meta];
7600
7662
  }
7601
7663
  return (_ctx, _cache) => {
7602
7664
  return openBlock(), createElementBlock("fieldset", {
@@ -7636,23 +7698,34 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7636
7698
  "aria-hidden": "true",
7637
7699
  class: normalizeClass(dotClass(option))
7638
7700
  }, null, 2)], 2),
7701
+ hasLeading(option) ? (openBlock(), createElementBlock("span", {
7702
+ key: 0,
7703
+ "data-eldra-slot": unref(eldra).slotHost("leading"),
7704
+ "data-part": "leading",
7705
+ class: normalizeClass(leadingClass(option))
7706
+ }, [renderSlot(_ctx.$slots, "leading", { option }, () => [(openBlock(), createBlock(resolveDynamicComponent(option.icon), {
7707
+ class: "eldra:size-5",
7708
+ "stroke-width": ICON_STROKE_WIDTH,
7709
+ "aria-hidden": "true",
7710
+ focusable: "false"
7711
+ }))])], 10, _hoisted_3$5)) : createCommentVNode("", true),
7639
7712
  createElementVNode("span", {
7640
7713
  "data-eldra-slot": unref(eldra).slotHost("label"),
7641
7714
  "data-part": "label",
7642
7715
  class: normalizeClass(labelClass(option))
7643
- }, [renderSlot(_ctx.$slots, "label", { option }, () => [createTextVNode(toDisplayString(option.label), 1)])], 10, _hoisted_3$5),
7716
+ }, [renderSlot(_ctx.$slots, "label", { option }, () => [createTextVNode(toDisplayString(option.label), 1)])], 10, _hoisted_4$4),
7644
7717
  option.hint || _ctx.$slots.hint ? (openBlock(), createElementBlock("span", {
7645
- key: 0,
7718
+ key: 1,
7646
7719
  "data-eldra-slot": unref(eldra).slotHost("hint"),
7647
7720
  "data-part": "hint",
7648
- class: normalizeClass(hintClass.value)
7649
- }, [renderSlot(_ctx.$slots, "hint", { option }, () => [createTextVNode(toDisplayString(option.hint), 1)])], 10, _hoisted_4$4)) : createCommentVNode("", true),
7721
+ class: normalizeClass(hintClass(option))
7722
+ }, [renderSlot(_ctx.$slots, "hint", { option }, () => [createTextVNode(toDisplayString(option.hint), 1)])], 10, _hoisted_5$4)) : createCommentVNode("", true),
7650
7723
  __props.layout === "cards" && (option.meta || _ctx.$slots.meta) ? (openBlock(), createElementBlock("span", {
7651
- key: 1,
7724
+ key: 2,
7652
7725
  "data-eldra-slot": unref(eldra).slotHost("meta"),
7653
7726
  "data-part": "meta",
7654
7727
  class: normalizeClass(metaClass(option))
7655
- }, [renderSlot(_ctx.$slots, "meta", { option }, () => [createTextVNode(toDisplayString(option.meta), 1)])], 10, _hoisted_5$4)) : createCommentVNode("", true)
7728
+ }, [renderSlot(_ctx.$slots, "meta", { option }, () => [createTextVNode(toDisplayString(option.meta), 1)])], 10, _hoisted_6$3)) : createCommentVNode("", true)
7656
7729
  ], 16);
7657
7730
  }), 128))], 2),
7658
7731
  __props.error ? (openBlock(), createBlock(FieldError_default, {
@@ -7668,7 +7741,7 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7668
7741
  id: unref(helpId),
7669
7742
  "data-part": "help",
7670
7743
  class: normalizeClass(helpClass.value)
7671
- }, toDisplayString(__props.help), 11, _hoisted_6$3)) : createCommentVNode("", true)
7744
+ }, toDisplayString(__props.help), 11, _hoisted_7$2)) : createCommentVNode("", true)
7672
7745
  ], 8, _hoisted_1$5);
7673
7746
  };
7674
7747
  }
@@ -9390,7 +9463,7 @@ var Select_default = /* @__PURE__ */ defineComponent({
9390
9463
  }, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
9391
9464
  key: 0,
9392
9465
  class: "eldra:size-4.5 eldra:shrink-0",
9393
- "stroke-width": unref(ICON_STROKE_WIDTH),
9466
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
9394
9467
  "aria-hidden": "true",
9395
9468
  focusable: "false"
9396
9469
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$2)) : createCommentVNode("", true),
@@ -9413,7 +9486,7 @@ var Select_default = /* @__PURE__ */ defineComponent({
9413
9486
  "data-eldra-scope": unref(eldra).scope,
9414
9487
  "data-part": "optionIcon",
9415
9488
  class: normalizeClass(triggerIconClass.value),
9416
- "stroke-width": unref(ICON_STROKE_WIDTH),
9489
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
9417
9490
  "aria-hidden": "true",
9418
9491
  focusable: "false"
9419
9492
  }, null, 8, [
@@ -10259,4 +10332,4 @@ var VariantPicker_default = /* @__PURE__ */ defineComponent({
10259
10332
  };
10260
10333
  }
10261
10334
  });
10262
- export { parseLocaleNumber as $, focusInvalid as A, joinIds as At, FIELD_CLEAR_BUTTON_BOX as B, topLayerDialog as C, FORM_LAYOUT_KEY as Ct, normalizeText as D, ELDRA_SCOPE_KEY as Dt, matchRange as E, useControllableModel as Et, defaultCharacterMeaning as F, createNumberFormat as G, FIELD_LIVE as H, stripMask as I, defaultUnitFormat as J, currencyFractionDigits as K, CurrencyInput_default as L, filterNumericBeforeInput as M, Input_default as N, useListbox as O, provideEldraScope as Ot, applyMask as P, localeSeparators as Q, UnitInput_default as R, useOverlay as S, ICON_STROKE_WIDTH as St, useFloating$1 as T, mergeClass as Tt, FIELD_SEARCH_APPEARANCE as U, FIELD_DISABLED as V, FIELD_SIZE as W, formatNumber as X, formatCurrency as Y, formatUnit as Z, optionCursor as _, FIELD_KEY as _t, claimShortcut as a, provideEldraUiCurrency as at, MultiSelect_default as b, Icon_default as bt, SearchResultsPanel_default as c, useEldraUiLocale as ct, INPUT as d, tagPadding as dt, useSlotPresence as et, PLAIN_BOX_ONLY as f, CheckboxGroup_default as ft, labelRecipe as g, FieldError_default as gt, dotRecipe as h, RequiredMark_default as ht, SearchBar_default as i, LOCALE_KEY as it, Switch_default as j, useUiId as jt, FormLayout_default as k, useEldraScope as kt, RadioGroup_default as l, TAG_FILL as lt, PLAIN_OPTION as m, VisuallyHidden_default as mt, Textarea_default as n, CURRENCY_KEY as nt, ownsShortcut as o, provideEldraUiLocale as ot, PLAIN_COLUMNS as p, Checkbox_default as pt, currencySymbol as q, Select_default as r, DEFAULT_UI_LOCALE as rt, releaseShortcut as s, useEldraUiCurrency as st, VariantPicker_default as t, useHeadingTag as tt, HINT as u, TAG_SHAPE as ut, radioRecipe as v, Button_default as vt, useTeleportTarget as w, FORM_SUBMITTING_KEY as wt, usePopover as x, ICON_SIZE_CLASS as xt, QuantityStepper_default as y, Spinner_default as yt, FIELD_BASE as z };
10335
+ export { parseLocaleNumber as $, focusInvalid as A, joinIds as At, FIELD_CLEAR_BUTTON_BOX as B, topLayerDialog as C, FORM_LAYOUT_KEY as Ct, normalizeText as D, ELDRA_SCOPE_KEY as Dt, matchRange as E, useControllableModel as Et, defaultCharacterMeaning as F, createNumberFormat as G, FIELD_LIVE as H, stripMask as I, defaultUnitFormat as J, currencyFractionDigits as K, CurrencyInput_default as L, filterNumericBeforeInput as M, Input_default as N, useListbox as O, provideEldraScope as Ot, applyMask as P, localeSeparators as Q, UnitInput_default as R, useOverlay as S, ICON_STROKE_WIDTH$1 as St, useFloating$1 as T, mergeClass as Tt, FIELD_SEARCH_APPEARANCE as U, FIELD_DISABLED as V, FIELD_SIZE as W, formatNumber as X, formatCurrency as Y, formatUnit as Z, optionCursor as _, FIELD_KEY as _t, claimShortcut as a, provideEldraUiCurrency as at, MultiSelect_default as b, Icon_default as bt, SearchResultsPanel_default as c, useEldraUiLocale as ct, INPUT as d, tagPadding as dt, useSlotPresence as et, PLAIN_BOX_ONLY as f, CheckboxGroup_default as ft, labelRecipe as g, FieldError_default as gt, dotRecipe as h, RequiredMark_default as ht, SearchBar_default as i, LOCALE_KEY as it, Switch_default as j, useUiId as jt, FormLayout_default as k, useEldraScope as kt, RadioGroup_default as l, TAG_FILL as lt, PLAIN_OPTION as m, VisuallyHidden_default as mt, Textarea_default as n, CURRENCY_KEY as nt, ownsShortcut as o, provideEldraUiLocale as ot, PLAIN_COLUMNS as p, Checkbox_default as pt, currencySymbol as q, Select_default as r, DEFAULT_UI_LOCALE as rt, releaseShortcut as s, useEldraUiCurrency as st, VariantPicker_default as t, useHeadingTag as tt, HINT as u, TAG_SHAPE as ut, radioRecipe as v, Button_default as vt, useTeleportTarget as w, FORM_SUBMITTING_KEY as wt, usePopover as x, ICON_SIZE_CLASS as xt, QuantityStepper_default as y, Spinner_default as yt, FIELD_BASE as z };
@@ -15,5 +15,5 @@
15
15
  * it from `@eldrajs/ui`, where it does not exist, and would pull an optional peer into a project
16
16
  * that never installed it. `src/__tests__/veeValidateIsolation.spec.ts` asserts both halves.
17
17
  */
18
- export declare const componentNames: readonly ["Accordion", "AccordionItem", "Avatar", "AvatarGroup", "Badge", "Breadcrumb", "Button", "ButtonGroup", "Carousel", "Checkbox", "CheckboxGroup", "Chip", "ChipGroup", "Container", "ContentCard", "CurrencyInput", "Dialog", "Drawer", "EditorPlaceholder", "EmptyState", "FeatureCard", "FieldWrapper", "FilterPanel", "FormLayout", "Icon", "Image", "Input", "Lightbox", "Link", "LoadMore", "LogoItem", "MultiSelect", "NavMenu", "Pagination", "Popover", "Price", "ProductCard", "QuantityStepper", "Radio", "RadioGroup", "RangeSlider", "Rating", "SearchBar", "SearchModal", "Section", "Select", "SiteForm", "Skeleton", "StockBadge", "Switch", "Tab", "TabPanel", "TablerIcon", "Tabs", "Textarea", "Toast", "Toaster", "Tooltip", "UnitInput", "VariantPicker", "VisuallyHidden"];
18
+ export declare const componentNames: readonly ["Accordion", "AccordionItem", "Avatar", "AvatarGroup", "Badge", "Breadcrumb", "Button", "ButtonGroup", "Carousel", "Checkbox", "CheckboxGroup", "Chip", "ChipGroup", "Container", "ContentCard", "CurrencyInput", "Dialog", "Drawer", "EditorPlaceholder", "EmptyState", "FeatureCard", "FieldWrapper", "FilterPanel", "FormLayout", "Icon", "Image", "Input", "Lightbox", "Link", "LoadMore", "LogoItem", "MultiSelect", "NavMenu", "Notice", "Pagination", "Popover", "Price", "ProductCard", "QuantityStepper", "Radio", "RadioGroup", "RangeSlider", "Rating", "SearchBar", "SearchModal", "Section", "Select", "SiteForm", "Skeleton", "Spinner", "StepIndicator", "StockBadge", "Switch", "Tab", "TabPanel", "TablerIcon", "Tabs", "Textarea", "Toast", "Toaster", "Tooltip", "UnitInput", "VariantPicker", "VisuallyHidden"];
19
19
  export type ComponentName = (typeof componentNames)[number];
@@ -3,8 +3,8 @@ declare const __VLS_export: import('vue').DefineComponent<StockBadgeProps, {}, {
3
3
  classes: Partial<Record<import('./types.js').StockBadgePart, string>>;
4
4
  quantity: number | null;
5
5
  message: string;
6
- revalidating: boolean;
7
6
  announce: boolean;
7
+ revalidating: boolean;
8
8
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
9
  declare const _default: typeof __VLS_export;
10
10
  export default _default;
@@ -173,6 +173,8 @@ declare const __VLS_base: import('vue').DefineComponent<ChipProps, {}, {}, {}, {
173
173
  formSuccessTitle: string;
174
174
  formPendingTitle: string;
175
175
  formPendingMessage: string;
176
+ stepCompleted: string;
177
+ stepNotStarted: string;
176
178
  }>;
177
179
  avatar: string | import('../../index.js').ImageMedia | null;
178
180
  removable: boolean;
@@ -173,6 +173,8 @@ declare const __VLS_base: import('vue').DefineComponent<DialogProps, {
173
173
  formSuccessTitle: string;
174
174
  formPendingTitle: string;
175
175
  formPendingMessage: string;
176
+ stepCompleted: string;
177
+ stepNotStarted: string;
176
178
  }>;
177
179
  description: string;
178
180
  dismissable: boolean;
@@ -175,9 +175,13 @@ declare const __VLS_base: import('vue').DefineComponent<DrawerProps, {
175
175
  formSuccessTitle: string;
176
176
  formPendingTitle: string;
177
177
  formPendingMessage: string;
178
+ stepCompleted: string;
179
+ stepNotStarted: string;
178
180
  }>;
179
181
  width: string;
180
182
  side: import('./types.js').DrawerSide;
183
+ mobileSheet: boolean;
184
+ swipe: boolean;
181
185
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
182
186
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
183
187
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import { UiMessages } from '../../composables/useMessages.js';
2
2
  /** The parts a consumer can restyle through `classes`, named as the spec's anatomy names them. */
3
- export type DrawerPart = 'panel' | 'header' | 'title' | 'count' | 'close' | 'body' | 'footer';
3
+ export type DrawerPart = 'panel' | 'handle' | 'header' | 'title' | 'count' | 'close' | 'body' | 'footer';
4
4
  /** The edge the sheet slides in from. `left` is for the mobile menu; everything else (cart,
5
5
  * filters, quick view) is `right`, the default. */
6
6
  export type DrawerSide = 'right' | 'left';
@@ -22,6 +22,20 @@ export interface DrawerProps {
22
22
  * viewport. Default `"28rem"`. Below a 48rem *viewport* the drawer covers the full screen
23
23
  * regardless of this value. */
24
24
  width?: string;
25
+ /**
26
+ * Below the 48rem viewport edge, opens as a bottom sheet instead of a full-screen panel: it
27
+ * rises from the bottom, fits its content up to the viewport less `--eldra-drawer-sheet-gap`,
28
+ * and has a grab handle; drag the handle or header down (or the body, once it is scrolled to the
29
+ * top) to close it, the backdrop fading as it goes. Wider than that it is the usual side drawer.
30
+ * Default `false`.
31
+ */
32
+ mobileSheet?: boolean;
33
+ /**
34
+ * Swipe the drawer toward its edge to close it: a side drawer sideways (a finger anywhere on
35
+ * it, a mouse or pen by its header), a `mobileSheet` down. Nothing moves until the pointer has
36
+ * gone `--eldra-drawer-swipe-threshold` (24px) toward the edge. Default `true`.
37
+ */
38
+ swipe?: boolean;
25
39
  /** Message overrides (only `close` applies here, unless a name is available — see
26
40
  * `closeDrawer`). See `useMessages`. */
27
41
  messages?: Partial<UiMessages>;
@@ -0,0 +1,20 @@
1
+ import { Ref } from 'vue';
2
+ export interface DrawerDragOptions {
3
+ dialog: Ref<HTMLDialogElement | null>;
4
+ panel: Ref<HTMLElement | null>;
5
+ body: Ref<HTMLElement | null>;
6
+ side: () => 'left' | 'right';
7
+ /** The `mobileSheet` prop; the sheet itself only exists below the 48rem viewport edge. */
8
+ sheet: () => boolean;
9
+ /** The `swipe` prop. */
10
+ enabled: () => boolean;
11
+ /** Closes the drawer; called once the panel has been let go past the dismiss point. */
12
+ dismiss: () => void;
13
+ }
14
+ export declare function useDrawerDrag(options: DrawerDragOptions): {
15
+ onPointerDown: (event: PointerEvent) => void;
16
+ onTouchStart: (event: TouchEvent) => void;
17
+ onTouchMove: (event: TouchEvent) => void;
18
+ onTouchEnd: (event: TouchEvent) => void;
19
+ reset: () => void;
20
+ };
@@ -185,6 +185,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
185
185
  formSuccessTitle: string;
186
186
  formPendingTitle: string;
187
187
  formPendingMessage: string;
188
+ stepCompleted: string;
189
+ stepNotStarted: string;
188
190
  }>;
189
191
  topRule: boolean;
190
192
  escCollapses: boolean;
@@ -206,6 +206,8 @@ declare const __VLS_base: import('vue').DefineComponent<FilterPanelProps, {
206
206
  formSuccessTitle: string;
207
207
  formPendingTitle: string;
208
208
  formPendingMessage: string;
209
+ stepCompleted: string;
210
+ stepNotStarted: string;
209
211
  }>;
210
212
  currency: string;
211
213
  idPrefix: string;
@@ -154,6 +154,8 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
154
154
  formSuccessTitle: string;
155
155
  formPendingTitle: string;
156
156
  formPendingMessage: string;
157
+ stepCompleted: string;
158
+ stepNotStarted: string;
157
159
  }>;
158
160
  dense: boolean;
159
161
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -154,6 +154,8 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
154
154
  formSuccessTitle: string;
155
155
  formPendingTitle: string;
156
156
  formPendingMessage: string;
157
+ stepCompleted: string;
158
+ stepNotStarted: string;
157
159
  }>;
158
160
  dense: boolean;
159
161
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -161,6 +161,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
161
161
  formSuccessTitle: string;
162
162
  formPendingTitle: string;
163
163
  formPendingMessage: string;
164
+ stepCompleted: string;
165
+ stepNotStarted: string;
164
166
  }>;
165
167
  currency: string;
166
168
  dense: boolean;
@@ -154,6 +154,8 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
154
154
  formSuccessTitle: string;
155
155
  formPendingTitle: string;
156
156
  formPendingMessage: string;
157
+ stepCompleted: string;
158
+ stepNotStarted: string;
157
159
  }>;
158
160
  dense: boolean;
159
161
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -154,6 +154,8 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
154
154
  formSuccessTitle: string;
155
155
  formPendingTitle: string;
156
156
  formPendingMessage: string;
157
+ stepCompleted: string;
158
+ stepNotStarted: string;
157
159
  }>;
158
160
  dense: boolean;
159
161
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -161,6 +161,8 @@ declare const __VLS_export: import('vue').DefineComponent<LightboxProps, {
161
161
  formSuccessTitle: string;
162
162
  formPendingTitle: string;
163
163
  formPendingMessage: string;
164
+ stepCompleted: string;
165
+ stepNotStarted: string;
164
166
  }>;
165
167
  thumbnails: boolean;
166
168
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -193,6 +193,8 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
193
193
  formSuccessTitle: string;
194
194
  formPendingTitle: string;
195
195
  formPendingMessage: string;
196
+ stepCompleted: string;
197
+ stepNotStarted: string;
196
198
  }>;
197
199
  drawerOpen: boolean;
198
200
  collapseBelow: NavMenuCollapse;
@@ -0,0 +1,28 @@
1
+ import { NoticeProps, NoticeTone } from './types.js';
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ title?: (props: {}) => any;
5
+ } & {
6
+ default?: (props: {}) => any;
7
+ } & {
8
+ actions?: (props: {}) => any;
9
+ };
10
+ };
11
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
12
+ declare const __VLS_base: import('vue').DefineComponent<NoticeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NoticeProps> & Readonly<{}>, {
13
+ title: string;
14
+ text: string;
15
+ headingLevel: import('../../index.js').HeadingLevel;
16
+ classes: Partial<Record<import('./types.js').NoticePart, string>>;
17
+ icon: import('../../index.js').IconComponent | null;
18
+ tone: NoticeTone;
19
+ announce: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };