@eldrajs/ui 0.3.6 → 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 (66) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +153 -16
  3. package/dist/{VariantPicker-BB-2Cj32.js → VariantPicker-Cr_AkX47.js} +113 -43
  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 +2 -0
  9. package/dist/components/filter-panel/FilterGroup.vue.d.ts +2 -0
  10. package/dist/components/filter-panel/FilterPanel.vue.d.ts +2 -0
  11. package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +2 -0
  12. package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +2 -0
  13. package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +2 -0
  14. package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +2 -0
  15. package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +2 -0
  16. package/dist/components/lightbox/Lightbox.vue.d.ts +2 -0
  17. package/dist/components/nav-menu/NavMenu.vue.d.ts +2 -0
  18. package/dist/components/notice/Notice.vue.d.ts +28 -0
  19. package/dist/components/notice/types.d.ts +38 -0
  20. package/dist/components/pagination/Pagination.vue.d.ts +2 -0
  21. package/dist/components/price/Price.vue.d.ts +1 -1
  22. package/dist/components/product-card/ProductCard.vue.d.ts +1 -1
  23. package/dist/components/radio/RadioGroup.vue.d.ts +4 -0
  24. package/dist/components/radio/recipes.d.ts +4 -2
  25. package/dist/components/radio/types.d.ts +8 -1
  26. package/dist/components/range-slider/RangeSlider.vue.d.ts +2 -0
  27. package/dist/components/search-bar/SearchBar.vue.d.ts +2 -0
  28. package/dist/components/search-modal/SearchModal.vue.d.ts +2 -0
  29. package/dist/components/select/MultiSelect.vue.d.ts +2 -0
  30. package/dist/components/select/Select.vue.d.ts +2 -0
  31. package/dist/components/site-form/SiteForm.vue.d.ts +2 -0
  32. package/dist/components/spinner/Spinner.vue.d.ts +4 -1
  33. package/dist/components/spinner/types.d.ts +9 -0
  34. package/dist/components/step-indicator/StepIndicator.vue.d.ts +7 -0
  35. package/dist/components/step-indicator/types.d.ts +30 -0
  36. package/dist/components/toast/Toast.vue.d.ts +2 -0
  37. package/dist/components/toast/Toaster.vue.d.ts +2 -0
  38. package/dist/components.css +89 -0
  39. package/dist/icons/paths.d.ts +8 -0
  40. package/dist/index.d.ts +6 -0
  41. package/dist/index.js +620 -302
  42. package/dist/messages/en-US.d.ts +8 -0
  43. package/dist/messages/is-IS.js +3 -1
  44. package/dist/resolver.js +3 -0
  45. package/dist/style.css +89 -0
  46. package/dist/{useMessages-B5nzZghs.js → useMessages-DOHGfip_.js} +9 -1
  47. package/dist/vee-validate/FieldCheckbox.vue.d.ts +5 -1
  48. package/dist/vee-validate/FieldCheckboxGroup.vue.d.ts +5 -1
  49. package/dist/vee-validate/FieldCurrencyInput.vue.d.ts +5 -1
  50. package/dist/vee-validate/FieldInput.vue.d.ts +5 -1
  51. package/dist/vee-validate/FieldMultiSelect.vue.d.ts +5 -1
  52. package/dist/vee-validate/FieldQuantityStepper.vue.d.ts +5 -1
  53. package/dist/vee-validate/FieldRadioGroup.vue.d.ts +5 -1
  54. package/dist/vee-validate/FieldSearchBar.vue.d.ts +5 -1
  55. package/dist/vee-validate/FieldSelect.vue.d.ts +5 -1
  56. package/dist/vee-validate/FieldSwitch.vue.d.ts +5 -1
  57. package/dist/vee-validate/FieldTextarea.vue.d.ts +5 -1
  58. package/dist/vee-validate/FieldUnitInput.vue.d.ts +5 -1
  59. package/dist/vee-validate/FieldVariantPicker.vue.d.ts +5 -1
  60. package/dist/vee-validate/context.d.ts +32 -7
  61. package/dist/vee-validate/index.d.ts +8 -5
  62. package/dist/vee-validate/types.d.ts +26 -0
  63. package/dist/vee-validate/useFieldControl.d.ts +59 -10
  64. package/dist/vee-validate.js +258 -74
  65. package/dist/vue-i18n.js +1 -1
  66. 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";
@@ -358,7 +358,7 @@ var ICON_SIZE_CLASS = {
358
358
  xl: "eldra:size-8"
359
359
  };
360
360
  /** The spec's outline stroke weight. */
361
- var ICON_STROKE_WIDTH = 1.75;
361
+ var ICON_STROKE_WIDTH$1 = 1.75;
362
362
  // src/components/icon/Icon.vue
363
363
  var Icon_default = /* @__PURE__ */ defineComponent({
364
364
  __name: "Icon",
@@ -377,7 +377,7 @@ var Icon_default = /* @__PURE__ */ defineComponent({
377
377
  "data-eldra-scope": unref(eldra).scope,
378
378
  "data-part": "root",
379
379
  class: normalizeClass(rootClass.value),
380
- "stroke-width": unref(ICON_STROKE_WIDTH),
380
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
381
381
  "aria-hidden": __props.label === void 0 ? "true" : void 0,
382
382
  role: __props.label === void 0 ? void 0 : "img",
383
383
  "aria-label": __props.label,
@@ -394,22 +394,40 @@ var Icon_default = /* @__PURE__ */ defineComponent({
394
394
  }
395
395
  });
396
396
  // src/components/spinner/Spinner.vue?vue&type=script&setup=true&lang.ts
397
- 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
+ ];
398
403
  // src/components/spinner/Spinner.vue
399
404
  var Spinner_default = /* @__PURE__ */ defineComponent({
405
+ inheritAttrs: false,
400
406
  __name: "Spinner",
407
+ props: { label: { default: void 0 } },
401
408
  setup(__props) {
409
+ const props = __props;
402
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 !== "");
403
419
  return (_ctx, _cache) => {
404
- return openBlock(), createElementBlock("svg", {
420
+ return openBlock(), createElementBlock("svg", mergeProps({
405
421
  "data-eldra-ui": "",
406
422
  "data-eldra-scope": unref(eldra).scope,
407
- class: "eldra:animate-eldra-spin eldra:motion-reduce:animate-eldra-pulse",
423
+ class: rootClass.value,
408
424
  viewBox: "0 0 18 18",
409
425
  fill: "none",
410
- "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",
411
429
  focusable: "false"
412
- }, [..._cache[0] || (_cache[0] = [createElementVNode("circle", {
430
+ }, forwardedAttrs.value), [..._cache[0] || (_cache[0] = [createElementVNode("circle", {
413
431
  cx: "9",
414
432
  cy: "9",
415
433
  r: "8",
@@ -421,7 +439,7 @@ var Spinner_default = /* @__PURE__ */ defineComponent({
421
439
  stroke: "currentColor",
422
440
  "stroke-width": "2",
423
441
  "stroke-linecap": "round"
424
- }, null, -1)])], 8, _hoisted_1$19);
442
+ }, null, -1)])], 16, _hoisted_1$19);
425
443
  };
426
444
  }
427
445
  });
@@ -2200,7 +2218,7 @@ var _hoisted_4$12 = [
2200
2218
  ];
2201
2219
  var _hoisted_5$10 = ["name", "value"];
2202
2220
  var _hoisted_6$8 = ["data-eldra-slot"];
2203
- var _hoisted_7$5 = ["data-eldra-scope", "aria-label"];
2221
+ var _hoisted_7$6 = ["data-eldra-scope", "aria-label"];
2204
2222
  var _hoisted_8$4 = ["data-eldra-scope"];
2205
2223
  var VALUE_DRAG_PIXELS_PER_STEP = 8;
2206
2224
  /**
@@ -2805,7 +2823,7 @@ var UnitInput_default = /* @__PURE__ */ defineComponent({
2805
2823
  }, [renderSlot(_ctx.$slots, "leadingIcon", {}, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
2806
2824
  key: 0,
2807
2825
  class: "eldra:size-4.5 eldra:shrink-0",
2808
- "stroke-width": unref(ICON_STROKE_WIDTH),
2826
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
2809
2827
  "aria-hidden": "true",
2810
2828
  focusable: "false"
2811
2829
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$13)) : createCommentVNode("", true),
@@ -2868,7 +2886,7 @@ var UnitInput_default = /* @__PURE__ */ defineComponent({
2868
2886
  "stroke-linejoin": "round",
2869
2887
  "aria-hidden": "true",
2870
2888
  focusable: "false"
2871
- }, [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),
2872
2890
  showDragHandle.value ? (openBlock(), createElementBlock("button", {
2873
2891
  key: 1,
2874
2892
  ref_key: "dragHandleRef",
@@ -3399,7 +3417,7 @@ var Input_default = /* @__PURE__ */ defineComponent({
3399
3417
  }, [renderSlot(_ctx.$slots, "leadingIcon", {}, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
3400
3418
  key: 0,
3401
3419
  class: "eldra:size-4.5 eldra:shrink-0",
3402
- "stroke-width": unref(ICON_STROKE_WIDTH),
3420
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
3403
3421
  "aria-hidden": "true",
3404
3422
  focusable: "false"
3405
3423
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$12)) : createCommentVNode("", true),
@@ -3561,7 +3579,7 @@ var _hoisted_3$11 = ["data-eldra-slot"];
3561
3579
  var _hoisted_4$10 = ["data-eldra-slot"];
3562
3580
  var _hoisted_5$8 = ["data-eldra-slot"];
3563
3581
  var _hoisted_6$6 = ["data-eldra-slot", "id"];
3564
- var _hoisted_7$4 = [
3582
+ var _hoisted_7$5 = [
3565
3583
  "data-eldra-scope",
3566
3584
  "name",
3567
3585
  "checked",
@@ -3871,7 +3889,7 @@ var Switch_default = /* @__PURE__ */ defineComponent({
3871
3889
  name: __props.name,
3872
3890
  checked: unref(model),
3873
3891
  disabled: __props.disabled || void 0
3874
- }, null, 8, _hoisted_7$4)]),
3892
+ }, null, 8, _hoisted_7$5)]),
3875
3893
  _: 3
3876
3894
  });
3877
3895
  };
@@ -4351,7 +4369,7 @@ var _hoisted_5$7 = [
4351
4369
  "aria-labelledby"
4352
4370
  ];
4353
4371
  var _hoisted_6$5 = ["id"];
4354
- var _hoisted_7$3 = [
4372
+ var _hoisted_7$4 = [
4355
4373
  "data-eldra-slot",
4356
4374
  "id",
4357
4375
  "aria-selected",
@@ -4608,7 +4626,7 @@ var SelectPanel_default = /* @__PURE__ */ defineComponent({
4608
4626
  "data-eldra-scope": unref(eldra).scope,
4609
4627
  "data-part": "optionIcon",
4610
4628
  class: normalizeClass(optionIconClasses.value),
4611
- "stroke-width": unref(ICON_STROKE_WIDTH),
4629
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
4612
4630
  "aria-hidden": "true",
4613
4631
  focusable: "false"
4614
4632
  }, null, 8, [
@@ -4648,7 +4666,7 @@ var SelectPanel_default = /* @__PURE__ */ defineComponent({
4648
4666
  "aria-hidden": "true",
4649
4667
  focusable: "false"
4650
4668
  }, [..._cache[5] || (_cache[5] = [createElementVNode("path", { d: "M5 12l5 5l10 -10" }, null, -1)])], 10, _hoisted_11$3)) : createCommentVNode("", true)
4651
- ])], 42, _hoisted_7$3);
4669
+ ])], 42, _hoisted_7$4);
4652
4670
  }), 128))], 10, _hoisted_5$7);
4653
4671
  }), 128)), __props.createOption ? (openBlock(), createElementBlock("div", {
4654
4672
  key: 0,
@@ -5997,7 +6015,7 @@ var _hoisted_4$6 = [
5997
6015
  ];
5998
6016
  var _hoisted_5$5 = ["data-eldra-slot"];
5999
6017
  var _hoisted_6$4 = ["data-placeholder"];
6000
- var _hoisted_7$2 = ["data-eldra-slot"];
6018
+ var _hoisted_7$3 = ["data-eldra-slot"];
6001
6019
  var _hoisted_8$2 = {
6002
6020
  key: 0,
6003
6021
  class: "eldra:min-w-0 eldra:truncate"
@@ -6540,7 +6558,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
6540
6558
  }, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
6541
6559
  key: 0,
6542
6560
  class: "eldra:size-4.5 eldra:shrink-0",
6543
- "stroke-width": unref(ICON_STROKE_WIDTH),
6561
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
6544
6562
  "aria-hidden": "true",
6545
6563
  focusable: "false"
6546
6564
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$7)) : createCommentVNode("", true),
@@ -6616,7 +6634,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
6616
6634
  }, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
6617
6635
  key: 0,
6618
6636
  class: "eldra:size-4.5 eldra:shrink-0",
6619
- "stroke-width": unref(ICON_STROKE_WIDTH),
6637
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
6620
6638
  "aria-hidden": "true",
6621
6639
  focusable: "false"
6622
6640
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_5$5)) : createCommentVNode("", true),
@@ -6638,7 +6656,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
6638
6656
  key: 1,
6639
6657
  "data-part": "summaryMore",
6640
6658
  class: normalizeClass(summaryMoreClass.value)
6641
- }, 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", {
6642
6660
  key: 0,
6643
6661
  "aria-hidden": "true",
6644
6662
  inert: "",
@@ -7413,8 +7431,10 @@ function labelRecipe(card, disabled) {
7413
7431
  disabled ? "eldra:text-muted" : "eldra:text-text"
7414
7432
  ];
7415
7433
  }
7416
- /** Spec "Radio group" → Sizes: the hint is `muted` in every layout, under the label's column. */
7417
- 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`;
7418
7438
  // src/components/radio/RadioGroup.vue?vue&type=script&setup=true&lang.ts
7419
7439
  var _hoisted_1$5 = [
7420
7440
  "data-eldra-scope",
@@ -7433,10 +7453,11 @@ var _hoisted_2$5 = [
7433
7453
  var _hoisted_3$5 = ["data-eldra-slot"];
7434
7454
  var _hoisted_4$4 = ["data-eldra-slot"];
7435
7455
  var _hoisted_5$4 = ["data-eldra-slot"];
7436
- var _hoisted_6$3 = ["id"];
7456
+ var _hoisted_6$3 = ["data-eldra-slot"];
7457
+ var _hoisted_7$2 = ["id"];
7437
7458
  var ROOT = "eldra:grid eldra:min-w-0 eldra:content-start eldra:gap-3 eldra:rounded-none eldra:border-0 eldra:p-0";
7438
7459
  /** `FieldWrapper`'s help type: 0.8125rem / 1.45, weight 400, `muted`. */
7439
- 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";
7440
7461
  var CARD_UNSELECTED = "eldra:bg-background eldra:border-border-strong eldra:hover:border-text";
7441
7462
  var CARD_SELECTED = "eldra:bg-surface eldra:border-primary eldra:eldra-radio-card-selected";
7442
7463
  var CARD_INVALID = "eldra:bg-background eldra:border-danger eldra:hover:border-danger";
@@ -7450,6 +7471,15 @@ var CARD_INVALID_SELECTED = "eldra:bg-surface eldra:border-danger eldra:eldra-ra
7450
7471
  /** Spec "Radio group" → States, Disabled selected row: "as disabled" — the card draws no special
7451
7472
  * selected look once it is also disabled; only the radio inside it keeps a distinct look. */
7452
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;
7453
7483
  // src/components/radio/RadioGroup.vue
7454
7484
  var RadioGroup_default = /* @__PURE__ */ defineComponent({
7455
7485
  __name: "RadioGroup",
@@ -7489,6 +7519,8 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7489
7519
  */
7490
7520
  const field = inject(FIELD_KEY, null);
7491
7521
  const m = useMessages();
7522
+ const slots = useSlots();
7523
+ const present = useSlotPresence(slots, ["leading"]);
7492
7524
  const errorId = useUiId("radio-group-error");
7493
7525
  const helpId = useUiId("radio-group-help");
7494
7526
  /** The shared native `name` every radio posts under. Generated when the caller gives none. */
@@ -7570,9 +7602,21 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7570
7602
  if (isSelected(option.value)) return inError.value ? CARD_INVALID_SELECTED : CARD_SELECTED;
7571
7603
  return inError.value ? CARD_INVALID : CARD_UNSELECTED;
7572
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
+ }
7573
7613
  function optionClass(option) {
7574
7614
  return [
7575
- 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],
7576
7620
  optionCursor(option.disabled),
7577
7621
  props.classes?.option
7578
7622
  ];
@@ -7591,15 +7635,30 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7591
7635
  function labelClass(option) {
7592
7636
  return [labelRecipe(props.layout === "cards", option.disabled), props.classes?.label];
7593
7637
  }
7594
- 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
+ }
7595
7642
  /**
7596
- * Spec "Radio group" → Sizes, Card title / hint / meta row: "1rem 600 tabular, no wrap, pushed to
7597
- * the end" — `tabular-nums` and `whitespace-nowrap` are stock Tailwind utilities, so meta reuses
7598
- * `text-card-title` rather than a near-identical utility of its own, and `justify-self-end` in the
7599
- * 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.
7600
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. */
7601
7656
  function metaClass(option) {
7602
- 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];
7603
7662
  }
7604
7663
  return (_ctx, _cache) => {
7605
7664
  return openBlock(), createElementBlock("fieldset", {
@@ -7639,23 +7698,34 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7639
7698
  "aria-hidden": "true",
7640
7699
  class: normalizeClass(dotClass(option))
7641
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),
7642
7712
  createElementVNode("span", {
7643
7713
  "data-eldra-slot": unref(eldra).slotHost("label"),
7644
7714
  "data-part": "label",
7645
7715
  class: normalizeClass(labelClass(option))
7646
- }, [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),
7647
7717
  option.hint || _ctx.$slots.hint ? (openBlock(), createElementBlock("span", {
7648
- key: 0,
7718
+ key: 1,
7649
7719
  "data-eldra-slot": unref(eldra).slotHost("hint"),
7650
7720
  "data-part": "hint",
7651
- class: normalizeClass(hintClass.value)
7652
- }, [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),
7653
7723
  __props.layout === "cards" && (option.meta || _ctx.$slots.meta) ? (openBlock(), createElementBlock("span", {
7654
- key: 1,
7724
+ key: 2,
7655
7725
  "data-eldra-slot": unref(eldra).slotHost("meta"),
7656
7726
  "data-part": "meta",
7657
7727
  class: normalizeClass(metaClass(option))
7658
- }, [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)
7659
7729
  ], 16);
7660
7730
  }), 128))], 2),
7661
7731
  __props.error ? (openBlock(), createBlock(FieldError_default, {
@@ -7671,7 +7741,7 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
7671
7741
  id: unref(helpId),
7672
7742
  "data-part": "help",
7673
7743
  class: normalizeClass(helpClass.value)
7674
- }, toDisplayString(__props.help), 11, _hoisted_6$3)) : createCommentVNode("", true)
7744
+ }, toDisplayString(__props.help), 11, _hoisted_7$2)) : createCommentVNode("", true)
7675
7745
  ], 8, _hoisted_1$5);
7676
7746
  };
7677
7747
  }
@@ -9393,7 +9463,7 @@ var Select_default = /* @__PURE__ */ defineComponent({
9393
9463
  }, () => [__props.leadingIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leadingIcon), {
9394
9464
  key: 0,
9395
9465
  class: "eldra:size-4.5 eldra:shrink-0",
9396
- "stroke-width": unref(ICON_STROKE_WIDTH),
9466
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
9397
9467
  "aria-hidden": "true",
9398
9468
  focusable: "false"
9399
9469
  }, null, 8, ["stroke-width"])) : createCommentVNode("", true)])], 10, _hoisted_3$2)) : createCommentVNode("", true),
@@ -9416,7 +9486,7 @@ var Select_default = /* @__PURE__ */ defineComponent({
9416
9486
  "data-eldra-scope": unref(eldra).scope,
9417
9487
  "data-part": "optionIcon",
9418
9488
  class: normalizeClass(triggerIconClass.value),
9419
- "stroke-width": unref(ICON_STROKE_WIDTH),
9489
+ "stroke-width": unref(ICON_STROKE_WIDTH$1),
9420
9490
  "aria-hidden": "true",
9421
9491
  focusable: "false"
9422
9492
  }, null, 8, [
@@ -10262,4 +10332,4 @@ var VariantPicker_default = /* @__PURE__ */ defineComponent({
10262
10332
  };
10263
10333
  }
10264
10334
  });
10265
- 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,6 +175,8 @@ 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;
@@ -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
+ };
@@ -0,0 +1,38 @@
1
+ import { HeadingLevel } from '../../composables/useHeadingTag.js';
2
+ import { IconComponent } from '../icon/types.js';
3
+ /**
4
+ * What kind of news the notice is. `info` (the default) is neutral guidance; `success`, `warning`
5
+ * and `danger` each bring their own colour and default icon. The same four names `Toast`'s
6
+ * `variant` takes.
7
+ */
8
+ export type NoticeTone = 'info' | 'success' | 'warning' | 'danger';
9
+ /** The parts a consumer can restyle through `classes`. The root is styled with `class`. */
10
+ export type NoticePart = 'icon' | 'content' | 'title' | 'text' | 'actions';
11
+ export interface NoticeProps {
12
+ /** Colour, default icon and live-region role. Also on the root as `data-tone`. */
13
+ tone?: NoticeTone;
14
+ /** An optional heading line. The `title` slot overrides it. */
15
+ title?: string;
16
+ /** The message. The default slot overrides it, for a body with links or more than one paragraph. */
17
+ text?: string;
18
+ /**
19
+ * The leading icon, decorative (`aria-hidden`). Left out, the tone's own icon is drawn
20
+ * (`info-circle`, `circle-check`, `alert-triangle`, `alert-circle`); `null` draws none. A
21
+ * `success`, `warning` or `danger` notice should keep one, so colour is never the only signal.
22
+ */
23
+ icon?: IconComponent | null;
24
+ /**
25
+ * Renders the title as a heading of this level instead of a `<p>`, for a notice that opens a
26
+ * part of the page ("Thank you for your order"). Left out, the title is not a heading.
27
+ */
28
+ headingLevel?: HeadingLevel;
29
+ /**
30
+ * Whether the notice is a live region: `role="status"` (polite) for `info`, `success` and
31
+ * `warning`, `role="alert"` (assertive) for `danger`. `true` by default, so a notice that
32
+ * appears after the page has loaded is announced. Set it to `false` for a notice inside an
33
+ * element that is already a live region, or one that is plain page content from the start.
34
+ */
35
+ announce?: boolean;
36
+ /** Per-part classes, appended to the part's own (they win by cascade layer). */
37
+ classes?: Partial<Record<NoticePart, string>>;
38
+ }
@@ -157,6 +157,8 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
157
157
  formSuccessTitle: string;
158
158
  formPendingTitle: string;
159
159
  formPendingMessage: string;
160
+ stepCompleted: string;
161
+ stepNotStarted: string;
160
162
  }>;
161
163
  compact: boolean;
162
164
  siblings: number;
@@ -8,6 +8,7 @@ declare const __VLS_export: import('vue').DefineComponent<PriceProps, {}, {}, {}
8
8
  locale: string;
9
9
  currency: string;
10
10
  narrowSymbol: boolean;
11
+ announce: boolean;
11
12
  compareAt: number | null;
12
13
  unitPrice: {
13
14
  amount: number;
@@ -19,7 +20,6 @@ declare const __VLS_export: import('vue').DefineComponent<PriceProps, {}, {}, {}
19
20
  from: string;
20
21
  }>;
21
22
  revalidating: boolean;
22
- announce: boolean;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -12,8 +12,8 @@ declare const __VLS_export: import('vue').DefineComponent<ProductCardProps, {},
12
12
  locale: string;
13
13
  ratio: import('./types.js').ProductCardRatio;
14
14
  currency: string;
15
- revalidating: boolean;
16
15
  announce: boolean;
16
+ revalidating: boolean;
17
17
  showVendor: boolean;
18
18
  showRating: boolean;
19
19
  showSwatches: boolean;