@eldrajs/ui 0.2.0 → 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.
- package/CHANGELOG.md +6 -0
- package/README.md +114 -3
- package/dist/{VariantPicker-CKw8hmxt.js → VariantPicker-CqDAtSju.js} +208 -167
- package/dist/componentNames.d.ts +1 -1
- package/dist/components/image/types.d.ts +2 -2
- package/dist/components/nav-menu/NavMenu.vue.d.ts +58 -0
- package/dist/components/nav-menu/NavMenuPanel.vue.d.ts +32 -0
- package/dist/components/nav-menu/navLinks.d.ts +27 -0
- package/dist/components/nav-menu/navMenuKeys.d.ts +17 -0
- package/dist/components/nav-menu/types.d.ts +62 -0
- package/dist/components.css +5468 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +984 -158
- package/dist/messages/en-US.d.ts +8 -0
- package/dist/messages/is-IS.js +4 -0
- package/dist/resolver.js +1 -0
- package/dist/style.css +552 -205
- package/dist/tailwind.css +221 -117
- package/dist/utils/sizes.d.ts +2 -0
- package/dist/vee-validate.js +1 -1
- package/package.json +3 -2
|
@@ -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: {
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"eldra-
|
|
106
|
-
"eldra-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"eldra-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"eldra-
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"max-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
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", {
|
package/dist/componentNames.d.ts
CHANGED
|
@@ -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
|
|
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 `
|
|
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
|
+
};
|