@eldrajs/ui 0.2.1 → 0.2.2

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.
@@ -22,171 +22,183 @@ import { autoUpdate, flip, offset, shift, size, useFloating } from "@floating-ui
22
22
  * utility that is never added here (as `eldra-link-radius` first shipped) is caught by a test
23
23
  * instead of shipping unmerged.
24
24
  */
25
- var twMerge = extendTailwindMerge({ extend: { classGroups: {
26
- "font-size": [{ text: [
27
- "display",
28
- "h1",
29
- "h2",
30
- "h3",
31
- "h4",
32
- "body-lg",
33
- "body",
34
- "body-sm",
35
- "caption",
36
- "overline",
37
- "label",
38
- "code",
39
- "button-sm",
40
- "button-md",
41
- "button-lg",
42
- "control-sm",
43
- "control",
44
- "control-lg",
45
- "control-mobile",
46
- "counter",
47
- "field-note",
48
- "card-title",
49
- "switch-label",
50
- "switch-description",
51
- "select-group",
52
- "select-option",
53
- "select-pill",
54
- "stepper-value",
55
- "stepper-value-sm",
56
- "search-meta",
57
- "search-title",
58
- "search-kbd",
59
- "variant-legend",
60
- "variant-pill",
61
- "logo-wordmark",
62
- "badge",
63
- "stock-status",
64
- "price-sm",
65
- "price-lg",
66
- "price-current",
67
- "price-secondary",
68
- "price-unit",
69
- "avatar-initials-sm",
70
- "avatar-initials-md",
71
- "avatar-initials-lg",
72
- "avatar-initials-xl",
73
- "empty-state-title",
74
- "filter-trigger",
75
- "filter-subheading",
76
- "filter-tile-count",
77
- "content-card-title",
78
- "content-card-excerpt",
79
- "dialog-title",
80
- "accordion-title",
81
- "drawer-title",
82
- "tooltip",
83
- "toast-title",
84
- "search-modal-field",
85
- "search-modal-foot",
86
- "search-modal-kbd"
87
- ] }],
88
- h: [
89
- "control-h",
90
- "control-h-sm",
91
- "control-h-lg",
92
- "eldra-range-track"
93
- ],
94
- "min-h": ["eldra-range-rail"],
95
- px: ["eldra-range-gutter", "eldra-range-gutter-thumb"],
96
- w: [
97
- "eldra-dialog-width",
98
- "eldra-dialog-width-sm",
99
- "eldra-drawer-width",
100
- "eldra-toast-width",
101
- "eldra-search-modal-width"
102
- ],
103
- size: [
104
- "eldra-avatar-icon-sm",
105
- "eldra-avatar-icon-md",
106
- "eldra-avatar-icon-lg",
107
- "eldra-avatar-icon-xl"
108
- ],
109
- "target-min": ["target-min"],
110
- "target-touch": ["target-touch"],
111
- "eldra-scrollbar-hide": ["eldra-scrollbar-hide"],
112
- "border-w": [
113
- "eldra-field-border",
114
- "eldra-checkbox-border",
115
- "eldra-checkbox-border-invalid",
116
- "eldra-radio-card-border",
117
- "eldra-switch-track-border",
118
- "eldra-variant-pill-border",
119
- "eldra-variant-swatch-ring",
120
- "eldra-variant-swatch-edge",
121
- "eldra-filter-swatch-ring",
122
- "eldra-editor-placeholder-border"
123
- ],
124
- "eldra-field-invalid": ["eldra-field-invalid"],
125
- "eldra-radio-card-selected": ["eldra-radio-card-selected"],
126
- "eldra-switch-thumb-offset": ["eldra-switch-thumb-offset"],
127
- "max-h": [
128
- "eldra-select-panel-height",
129
- "eldra-search-panel-height",
130
- "eldra-dialog-max-height",
131
- "eldra-search-modal-max-height"
132
- ],
133
- m: ["eldra-search-modal-position"],
134
- "max-w": [
135
- "eldra-select-panel-width",
136
- "max-w-narrow",
137
- "max-w-content",
138
- "max-w-wide",
139
- "eldra-container-narrow",
140
- "eldra-container-content",
141
- "eldra-container-wide"
142
- ],
143
- "eldra-select-match": ["eldra-select-match"],
144
- "eldra-select-swatch": ["eldra-select-swatch"],
145
- "eldra-select-option-active": ["eldra-select-option-active"],
146
- "eldra-select-option-selected": ["eldra-select-option-selected"],
147
- "eldra-variant-pill-selected-line": ["eldra-variant-pill-selected-line"],
148
- "eldra-focus": ["eldra-focus", "eldra-focus-inset"],
149
- "eldra-focus-always": ["eldra-focus-always", "eldra-focus-inset-always"],
150
- "eldra-focus-proxy": ["eldra-focus-proxy"],
151
- "eldra-focus-open": ["eldra-focus-open"],
152
- rounded: ["eldra-link-radius", "eldra-select-check-radius"],
153
- duration: [
154
- "duration-fast",
155
- "duration-base",
156
- "duration-slow"
157
- ],
158
- opacity: ["eldra-revalidating"],
159
- "eldra-skeleton": ["eldra-skeleton"],
160
- "eldra-rating-half": ["eldra-rating-half"],
161
- "eldra-image-placeholder-hatch": ["eldra-image-placeholder-hatch"],
162
- "eldra-tooltip-arrow": ["eldra-tooltip-arrow"],
163
- z: [
164
- "z-sticky",
165
- "z-popover",
166
- "z-drawer",
167
- "z-dialog",
168
- "z-toast"
169
- ],
170
- "eldra-accordion-chevron": ["eldra-accordion-chevron"],
171
- "eldra-accordion-panel": ["eldra-accordion-panel"],
172
- "eldra-carousel-slide": ["eldra-carousel-slide"],
173
- "eldra-carousel-track": ["eldra-carousel-track"],
174
- "eldra-carousel-dot": ["eldra-carousel-dot"],
175
- "eldra-range-thumb": ["eldra-range-thumb"],
176
- "eldra-filter-swatch-edge": ["eldra-filter-swatch-edge"],
177
- "eldra-filter-histogram-bar": ["eldra-filter-histogram-bar"],
178
- animate: [
179
- "animate-eldra-spin",
180
- "animate-eldra-pulse",
181
- "animate-eldra-popover-in",
182
- "animate-eldra-dialog-in",
183
- "animate-eldra-dialog-in-reduced",
184
- "animate-eldra-drawer-in-right",
185
- "animate-eldra-drawer-in-left",
186
- "animate-eldra-toast-in",
187
- "animate-eldra-lightbox-in"
188
- ]
189
- } } });
25
+ var twMerge = extendTailwindMerge({ extend: {
26
+ theme: {
27
+ shadow: ["float"],
28
+ container: [
29
+ "narrow",
30
+ "content",
31
+ "wide",
32
+ "tablet",
33
+ "two-col"
34
+ ]
35
+ },
36
+ classGroups: {
37
+ "font-size": [{ text: [
38
+ "display",
39
+ "h1",
40
+ "h2",
41
+ "h3",
42
+ "h4",
43
+ "body-lg",
44
+ "body",
45
+ "body-sm",
46
+ "caption",
47
+ "overline",
48
+ "label",
49
+ "code",
50
+ "button-sm",
51
+ "button-md",
52
+ "button-lg",
53
+ "control-sm",
54
+ "control",
55
+ "control-lg",
56
+ "control-mobile",
57
+ "counter",
58
+ "field-note",
59
+ "card-title",
60
+ "switch-label",
61
+ "switch-description",
62
+ "select-group",
63
+ "select-option",
64
+ "select-pill",
65
+ "stepper-value",
66
+ "stepper-value-sm",
67
+ "search-meta",
68
+ "search-title",
69
+ "search-kbd",
70
+ "variant-legend",
71
+ "variant-pill",
72
+ "logo-wordmark",
73
+ "badge",
74
+ "stock-status",
75
+ "price-sm",
76
+ "price-lg",
77
+ "price-current",
78
+ "price-secondary",
79
+ "price-unit",
80
+ "avatar-initials-sm",
81
+ "avatar-initials-md",
82
+ "avatar-initials-lg",
83
+ "avatar-initials-xl",
84
+ "empty-state-title",
85
+ "filter-trigger",
86
+ "filter-subheading",
87
+ "filter-tile-count",
88
+ "content-card-title",
89
+ "content-card-excerpt",
90
+ "dialog-title",
91
+ "accordion-title",
92
+ "drawer-title",
93
+ "tooltip",
94
+ "toast-title",
95
+ "search-modal-field",
96
+ "search-modal-foot",
97
+ "search-modal-kbd"
98
+ ] }],
99
+ h: [
100
+ "control-h",
101
+ "control-h-sm",
102
+ "control-h-lg",
103
+ "eldra-range-track"
104
+ ],
105
+ "min-h": ["eldra-range-rail"],
106
+ px: ["eldra-range-gutter", "eldra-range-gutter-thumb"],
107
+ w: [
108
+ "eldra-dialog-width",
109
+ "eldra-dialog-width-sm",
110
+ "eldra-drawer-width",
111
+ "eldra-toast-width",
112
+ "eldra-search-modal-width"
113
+ ],
114
+ size: [
115
+ "eldra-avatar-icon-sm",
116
+ "eldra-avatar-icon-md",
117
+ "eldra-avatar-icon-lg",
118
+ "eldra-avatar-icon-xl"
119
+ ],
120
+ "target-min": ["target-min"],
121
+ "target-touch": ["target-touch"],
122
+ "eldra-scrollbar-hide": ["eldra-scrollbar-hide"],
123
+ "border-w": [
124
+ "eldra-field-border",
125
+ "eldra-checkbox-border",
126
+ "eldra-checkbox-border-invalid",
127
+ "eldra-radio-card-border",
128
+ "eldra-switch-track-border",
129
+ "eldra-variant-pill-border",
130
+ "eldra-variant-swatch-ring",
131
+ "eldra-variant-swatch-edge",
132
+ "eldra-filter-swatch-ring",
133
+ "eldra-editor-placeholder-border"
134
+ ],
135
+ "eldra-field-invalid": ["eldra-field-invalid"],
136
+ "eldra-radio-card-selected": ["eldra-radio-card-selected"],
137
+ "eldra-switch-thumb-offset": ["eldra-switch-thumb-offset"],
138
+ "max-h": [
139
+ "eldra-select-panel-height",
140
+ "eldra-search-panel-height",
141
+ "eldra-dialog-max-height",
142
+ "eldra-search-modal-max-height"
143
+ ],
144
+ m: ["eldra-search-modal-position"],
145
+ "max-w": [
146
+ "eldra-select-panel-width",
147
+ "eldra-container-narrow",
148
+ "eldra-container-content",
149
+ "eldra-container-wide"
150
+ ],
151
+ "eldra-select-match": ["eldra-select-match"],
152
+ "eldra-select-swatch": ["eldra-select-swatch"],
153
+ "eldra-select-option-active": ["eldra-select-option-active"],
154
+ "eldra-select-option-selected": ["eldra-select-option-selected"],
155
+ "eldra-variant-pill-selected-line": ["eldra-variant-pill-selected-line"],
156
+ "eldra-focus": ["eldra-focus", "eldra-focus-inset"],
157
+ "eldra-focus-always": ["eldra-focus-always", "eldra-focus-inset-always"],
158
+ "eldra-focus-proxy": ["eldra-focus-proxy"],
159
+ "eldra-focus-open": ["eldra-focus-open"],
160
+ rounded: ["eldra-link-radius", "eldra-select-check-radius"],
161
+ duration: [
162
+ "duration-fast",
163
+ "duration-base",
164
+ "duration-slow"
165
+ ],
166
+ opacity: ["eldra-revalidating"],
167
+ "eldra-skeleton": ["eldra-skeleton"],
168
+ "eldra-rating-half": ["eldra-rating-half"],
169
+ "eldra-image-placeholder-hatch": ["eldra-image-placeholder-hatch"],
170
+ "eldra-tooltip-arrow": ["eldra-tooltip-arrow"],
171
+ z: [
172
+ "z-sticky",
173
+ "z-popover",
174
+ "z-drawer",
175
+ "z-dialog",
176
+ "z-toast"
177
+ ],
178
+ "eldra-accordion-chevron": ["eldra-accordion-chevron"],
179
+ "eldra-accordion-panel": ["eldra-accordion-panel"],
180
+ "eldra-carousel-slide": ["eldra-carousel-slide"],
181
+ "eldra-carousel-track": ["eldra-carousel-track"],
182
+ "eldra-carousel-dot": ["eldra-carousel-dot"],
183
+ "eldra-range-thumb": ["eldra-range-thumb"],
184
+ "eldra-filter-swatch-edge": ["eldra-filter-swatch-edge"],
185
+ "eldra-filter-histogram-bar": ["eldra-filter-histogram-bar"],
186
+ pt: ["eldra-nav-menu-panel"],
187
+ "grid-cols": ["eldra-nav-menu-columns"],
188
+ "eldra-nav-menu-dropdown": ["eldra-nav-menu-dropdown"],
189
+ animate: [
190
+ "animate-eldra-spin",
191
+ "animate-eldra-pulse",
192
+ "animate-eldra-popover-in",
193
+ "animate-eldra-dialog-in",
194
+ "animate-eldra-dialog-in-reduced",
195
+ "animate-eldra-drawer-in-right",
196
+ "animate-eldra-drawer-in-left",
197
+ "animate-eldra-toast-in",
198
+ "animate-eldra-lightbox-in"
199
+ ]
200
+ }
201
+ } });
190
202
  /**
191
203
  * Flattens one `cx` input into the class names it contributes.
192
204
  *
@@ -709,6 +721,14 @@ var enUS = {
709
721
  * hidden level rather than the spec's own three-level example.
710
722
  */
711
723
  showMoreLevels: (n) => n === 1 ? "Show 1 more level" : `Show ${n} more levels`,
724
+ /** `NavMenu`'s landmark name, the default for its `ariaLabel` prop. */
725
+ navMenuLabel: "Main",
726
+ /** `NavMenu`'s narrow-screen menu button. */
727
+ navMenuOpen: "Menu",
728
+ /** The name of the drawer `NavMenu`'s menu button opens. */
729
+ navMenuDrawer: "Menu",
730
+ /** The link to a top-level entry's own page, first in its panel. */
731
+ navMenuOverview: (label) => `${label}: overview`,
712
732
  /** `Pagination`'s `<nav>` accessible name (spec "Pagination" → Accessibility:
713
733
  * `<nav aria-label="Pagination">`), the default for its `ariaLabel` prop. */
714
734
  pagination: "Pagination",
@@ -931,6 +951,7 @@ var Icon_default = /* @__PURE__ */ defineComponent({
931
951
  const rootClass = computed(() => partClass(`${SIZE_CLASS[props.size]} shrink-0`, props.classes, "root"));
932
952
  return (_ctx, _cache) => {
933
953
  return openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
954
+ "data-eldra-ui": "",
934
955
  "data-part": "root",
935
956
  class: normalizeClass(rootClass.value),
936
957
  "stroke-width": STROKE_WIDTH,
@@ -958,6 +979,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
958
979
  //#region src/components/spinner/Spinner.vue
959
980
  var _sfc_main = {};
960
981
  var _hoisted_1$16 = {
982
+ "data-eldra-ui": "",
961
983
  class: "animate-eldra-spin motion-reduce:animate-eldra-pulse",
962
984
  viewBox: "0 0 18 18",
963
985
  fill: "none",
@@ -1261,6 +1283,7 @@ var Button_default = /* @__PURE__ */ defineComponent({
1261
1283
  const linkTabindex = computed(() => isLink.value && isDisabled.value ? "-1" : void 0);
1262
1284
  return (_ctx, _cache) => {
1263
1285
  return openBlock(), createBlock(resolveDynamicComponent(rootTag.value), mergeProps({
1286
+ "data-eldra-ui": "",
1264
1287
  "data-part": "container",
1265
1288
  class: containerClass.value,
1266
1289
  type: isLink.value ? void 0 : __props.type
@@ -1547,6 +1570,7 @@ var Checkbox_default = /* @__PURE__ */ defineComponent({
1547
1570
  }
1548
1571
  return (_ctx, _cache) => {
1549
1572
  return openBlock(), createBlock(resolveDynamicComponent(isNamedByField.value ? "span" : "label"), {
1573
+ "data-eldra-ui": "",
1550
1574
  "data-part": "root",
1551
1575
  class: normalizeClass(rootClass.value)
1552
1576
  }, {
@@ -1618,6 +1642,7 @@ var FieldError_default = /* @__PURE__ */ defineComponent({
1618
1642
  return (_ctx, _cache) => {
1619
1643
  return openBlock(), createElementBlock("p", {
1620
1644
  id: __props.id,
1645
+ "data-eldra-ui": "",
1621
1646
  "data-part": "error",
1622
1647
  class: normalizeClass(errorClass.value)
1623
1648
  }, [(openBlock(), createElementBlock("svg", {
@@ -1699,6 +1724,7 @@ var CheckboxGroup_default = /* @__PURE__ */ defineComponent({
1699
1724
  const optionsClass = computed(() => partClass(cx("flex min-w-0", props.layout === "row" ? "flex-row flex-wrap gap-x-6 gap-y-2" : "flex-col gap-2"), props.classes, "options"));
1700
1725
  return (_ctx, _cache) => {
1701
1726
  return openBlock(), createElementBlock("fieldset", {
1727
+ "data-eldra-ui": "",
1702
1728
  "data-part": "root",
1703
1729
  class: normalizeClass(rootClass.value),
1704
1730
  "aria-describedby": describedBy.value,
@@ -2985,6 +3011,7 @@ var UnitInput_default = /* @__PURE__ */ defineComponent({
2985
3011
  __expose({ formatValue });
2986
3012
  return (_ctx, _cache) => {
2987
3013
  return openBlock(), createElementBlock("div", {
3014
+ "data-eldra-ui": "",
2988
3015
  "data-part": "root",
2989
3016
  class: normalizeClass(rootClass.value)
2990
3017
  }, [showOwnLabel.value ? (openBlock(), createElementBlock("label", {
@@ -3457,6 +3484,7 @@ var Input_default = /* @__PURE__ */ defineComponent({
3457
3484
  }
3458
3485
  return (_ctx, _cache) => {
3459
3486
  return openBlock(), createElementBlock("div", {
3487
+ "data-eldra-ui": "",
3460
3488
  "data-part": "root",
3461
3489
  class: normalizeClass(rootClass.value)
3462
3490
  }, [
@@ -3629,6 +3657,7 @@ var VisuallyHidden_default = /* @__PURE__ */ defineComponent({
3629
3657
  const rootClass = computed(() => partClass(cx("sr-only", props.focusable && "focus:not-sr-only"), props.classes, "root"));
3630
3658
  return (_ctx, _cache) => {
3631
3659
  return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
3660
+ "data-eldra-ui": "",
3632
3661
  "data-part": "root",
3633
3662
  class: normalizeClass(rootClass.value)
3634
3663
  }, {
@@ -3807,6 +3836,7 @@ var Switch_default = /* @__PURE__ */ defineComponent({
3807
3836
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("button", mergeProps({
3808
3837
  type: "button",
3809
3838
  role: "switch",
3839
+ "data-eldra-ui": "",
3810
3840
  "data-part": "root"
3811
3841
  }, _ctx.$attrs, {
3812
3842
  id: unref(controlId),
@@ -3847,6 +3877,7 @@ var Switch_default = /* @__PURE__ */ defineComponent({
3847
3877
  class: normalizeClass(descriptionClass.value)
3848
3878
  }, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 10, _hoisted_2$10)) : createCommentVNode("", true)
3849
3879
  ], 16, _hoisted_1$10), createElementVNode("input", {
3880
+ "data-eldra-ui": "",
3850
3881
  type: "checkbox",
3851
3882
  hidden: "",
3852
3883
  tabindex: "-1",
@@ -4044,6 +4075,7 @@ var FormLayout_default = /* @__PURE__ */ defineComponent({
4044
4075
  }
4045
4076
  return (_ctx, _cache) => {
4046
4077
  return openBlock(), createElementBlock("form", {
4078
+ "data-eldra-ui": "",
4047
4079
  "data-part": "root",
4048
4080
  class: normalizeClass(rootClass.value),
4049
4081
  action: __props.action,
@@ -4362,6 +4394,7 @@ var SelectPanel_default = /* @__PURE__ */ defineComponent({
4362
4394
  ref_key: "root",
4363
4395
  ref: root,
4364
4396
  id: __props.panelId,
4397
+ "data-eldra-ui": "",
4365
4398
  "data-part": "panel",
4366
4399
  "data-eldra-overlay-owner": __props.panelId,
4367
4400
  class: normalizeClass(panelClasses.value),
@@ -5792,6 +5825,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
5792
5825
  const emptyText = computed(() => query.value.trim() === "" ? m.value.noResults : m.value.noMatchesFor(query.value.trim()));
5793
5826
  return (_ctx, _cache) => {
5794
5827
  return openBlock(), createElementBlock("div", {
5828
+ "data-eldra-ui": "",
5795
5829
  "data-part": "root",
5796
5830
  class: normalizeClass(rootClass.value)
5797
5831
  }, [
@@ -6366,6 +6400,7 @@ var QuantityStepper_default = /* @__PURE__ */ defineComponent({
6366
6400
  return (_ctx, _cache) => {
6367
6401
  return openBlock(), createElementBlock(Fragment, null, [
6368
6402
  createElementVNode("div", {
6403
+ "data-eldra-ui": "",
6369
6404
  "data-part": "root",
6370
6405
  class: normalizeClass(rootClass.value)
6371
6406
  }, [
@@ -6651,6 +6686,7 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
6651
6686
  }
6652
6687
  return (_ctx, _cache) => {
6653
6688
  return openBlock(), createElementBlock("fieldset", {
6689
+ "data-eldra-ui": "",
6654
6690
  "data-part": "root",
6655
6691
  class: normalizeClass(rootClass.value),
6656
6692
  "aria-describedby": describedBy.value,
@@ -6724,8 +6760,8 @@ var _hoisted_1$4 = [
6724
6760
  "data-placement",
6725
6761
  "data-view"
6726
6762
  ];
6727
- var _hoisted_2$4 = { class: "text-search-title break-words" };
6728
- var _hoisted_3$2 = { class: "text-body-sm text-muted mt-1" };
6763
+ var _hoisted_2$4 = { class: "text-search-title m-0 break-words" };
6764
+ var _hoisted_3$2 = { class: "text-body-sm text-muted mt-1 mb-0" };
6729
6765
  var _hoisted_4$2 = [
6730
6766
  "id",
6731
6767
  "aria-label",
@@ -6883,6 +6919,7 @@ var SearchResultsPanel_default = /* @__PURE__ */ defineComponent({
6883
6919
  ref_key: "root",
6884
6920
  ref: root,
6885
6921
  id: __props.panelId,
6922
+ "data-eldra-ui": "",
6886
6923
  "data-part": "panel",
6887
6924
  "data-eldra-overlay-owner": __props.panelId,
6888
6925
  class: normalizeClass(panelClass.value),
@@ -7749,6 +7786,7 @@ var SearchBar_default = /* @__PURE__ */ defineComponent({
7749
7786
  const showHint = computed(() => props.shortcut && model.value.length === 0);
7750
7787
  return (_ctx, _cache) => {
7751
7788
  return openBlock(), createElementBlock("div", {
7789
+ "data-eldra-ui": "",
7752
7790
  "data-part": "root",
7753
7791
  class: normalizeClass(rootClass.value)
7754
7792
  }, [
@@ -8257,6 +8295,7 @@ var Select_default = /* @__PURE__ */ defineComponent({
8257
8295
  const emptyText = computed(() => query.value.trim() === "" ? m.value.noResults : m.value.noMatchesFor(query.value.trim()));
8258
8296
  return (_ctx, _cache) => {
8259
8297
  return openBlock(), createElementBlock("div", {
8298
+ "data-eldra-ui": "",
8260
8299
  "data-part": "root",
8261
8300
  class: normalizeClass(rootClass.value)
8262
8301
  }, [
@@ -8665,6 +8704,7 @@ var Textarea_default = /* @__PURE__ */ defineComponent({
8665
8704
  }
8666
8705
  return (_ctx, _cache) => {
8667
8706
  return openBlock(), createElementBlock("div", {
8707
+ "data-eldra-ui": "",
8668
8708
  "data-part": "root",
8669
8709
  class: normalizeClass(rootClass.value)
8670
8710
  }, [createElementVNode("textarea", mergeProps({
@@ -8916,6 +8956,7 @@ var VariantPicker_default = /* @__PURE__ */ defineComponent({
8916
8956
  const soldOutPillLineClass = computed(() => partClass(cx("pointer-events-none absolute inset-0 size-full text-border-strong"), props.classes, "soldOutLine"));
8917
8957
  return (_ctx, _cache) => {
8918
8958
  return openBlock(), createElementBlock("fieldset", {
8959
+ "data-eldra-ui": "",
8919
8960
  "data-part": "root",
8920
8961
  class: normalizeClass(rootClass.value)
8921
8962
  }, [createElementVNode("legend", {
@@ -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", "Pagination", "Popover", "Price", "ProductCard", "QuantityStepper", "RadioGroup", "RangeSlider", "Rating", "SearchBar", "SearchModal", "Section", "Select", "Skeleton", "StockBadge", "Switch", "Tab", "TabPanel", "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", "Pagination", "Popover", "Price", "ProductCard", "QuantityStepper", "RadioGroup", "RangeSlider", "Rating", "SearchBar", "SearchModal", "Section", "Select", "Skeleton", "StockBadge", "Switch", "Tab", "TabPanel", "Tabs", "Textarea", "Toast", "Toaster", "Tooltip", "UnitInput", "VariantPicker", "VisuallyHidden"];
19
19
  export type ComponentName = (typeof componentNames)[number];
@@ -61,7 +61,7 @@ export interface ImageProps {
61
61
  x: number;
62
62
  y: number;
63
63
  };
64
- /** Static crop scale (1–2) around `focal`, applied as `transform: scale(zoom)`. Never animated —
64
+ /** Static crop scale (≥ 1) around `focal`, applied as `transform: scale(zoom)`. Never animated —
65
65
  * a static crop, not a hover effect (spec "Image" → Behaviour & motion). Defaults to `1`. */
66
66
  zoom?: number;
67
67
  /** Frame corner radius: `none` (default), `lg` (`radius-lg`) or `xl` (`radius-xl`). */
@@ -69,7 +69,7 @@ export interface ImageProps {
69
69
  /** Renders a `<figcaption>` under the frame and makes the root a `<figure>`. `null`/omitted
70
70
  * renders neither. */
71
71
  caption?: string | null;
72
- /** Responsive `sizes` for the `srcset`. Overrides `media.sizes` when both are given. */
72
+ /** Responsive `sizes` for the frame, scaled by `zoom` under `cover`. Overrides `media.sizes`. */
73
73
  sizes?: string;
74
74
  /** The first hero image: `loading="eager"` + `fetchpriority="high"`. Every other image is
75
75
  * `loading="lazy"` (the default). */
@@ -0,0 +1,58 @@
1
+ import { NavMenuCollapse, NavMenuItem, NavMenuLink, NavMenuProps, NavMenuVariant } from './types.js';
2
+ type __VLS_Slots = {
3
+ /** The inside of one panel entry; the link around it stays the menu's. */
4
+ panelItem?: (props: {
5
+ link: NavMenuLink;
6
+ item: NavMenuItem;
7
+ }) => unknown;
8
+ /** A column heading's text. */
9
+ groupHeading?: (props: {
10
+ group: string;
11
+ links: NavMenuLink[];
12
+ item: NavMenuItem;
13
+ }) => unknown;
14
+ /** Extra content at the foot of every panel. */
15
+ panelFooter?: (props: {
16
+ item: NavMenuItem;
17
+ index: number;
18
+ close: () => void;
19
+ }) => unknown;
20
+ /** The menu button's inside, replacing the icon. */
21
+ toggle?: (props: {
22
+ open: boolean;
23
+ }) => unknown;
24
+ /** The drawer's fixed footer. */
25
+ drawerFooter?: (props: {
26
+ close: () => void;
27
+ }) => unknown;
28
+ };
29
+ /** Closes the open panel and the drawer, for a router's navigation hook. */
30
+ declare function close(): void;
31
+ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
32
+ close: typeof close;
33
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ "update:modelValue": (index: number | null) => any;
35
+ "update:drawerOpen": (open: boolean) => any;
36
+ }, string, import('vue').PublicProps, Readonly<NavMenuProps> & Readonly<{
37
+ "onUpdate:modelValue"?: ((index: number | null) => any) | undefined;
38
+ "onUpdate:drawerOpen"?: ((open: boolean) => any) | undefined;
39
+ }>, {
40
+ classes: Partial<Record<import('./types.js').NavMenuPart, string>>;
41
+ modelValue: number | null;
42
+ variant: NavMenuVariant;
43
+ linkAs: string | import('vue').Component;
44
+ ariaLabel: string;
45
+ messages: Partial<import('../../index.js').UiMessages>;
46
+ drawerOpen: boolean;
47
+ collapseBelow: NavMenuCollapse;
48
+ drawerSide: import('../../index.js').DrawerSide;
49
+ openOnHover: boolean;
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
52
+ declare const _default: typeof __VLS_export;
53
+ export default _default;
54
+ type __VLS_WithSlots<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };