@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.
- 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
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as useControllableModel, a as claimShortcut, at as FieldError_default, bt as cx, c as SearchResultsPanel_default, ct as Button_default, d as MultiSelect_default, dt as FORM_LAYOUT_KEY, et as TAG_FILL, f as usePopover, ft as FORM_SUBMITTING_KEY, g as matchRange, gt as enUS, h as useFloating, ht as useMessages, i as SearchBar_default, it as CheckboxGroup_default, j as FIELD_CLEAR_BUTTON, k as UnitInput_default, l as RadioGroup_default, lt as Spinner_default, m as useTeleportTarget, mt as provideEldraUiMessages, n as Textarea_default, nt as TAG_SHAPE, o as ownsShortcut, ot as Checkbox_default, p as useOverlay, pt as MESSAGES_KEY, q as CURRENCY_KEY, r as Select_default, rt as tagPadding, s as releaseShortcut, st as FIELD_KEY, t as VariantPicker_default, tt as TAG_REMOVE_BUTTON, u as QuantityStepper_default, ut as Icon_default, v as useListbox, vt as joinIds, w as Input_default, x as Switch_default, xt as partClass, y as FormLayout_default, yt as useUiId, z as defaultUnitFormat } from "./VariantPicker-
|
|
2
|
-
import { Comment, Fragment, Teleport, Text, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, onUpdated, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useAttrs, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
1
|
+
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as useControllableModel, a as claimShortcut, at as FieldError_default, bt as cx, c as SearchResultsPanel_default, ct as Button_default, d as MultiSelect_default, dt as FORM_LAYOUT_KEY, et as TAG_FILL, f as usePopover, ft as FORM_SUBMITTING_KEY, g as matchRange, gt as enUS, h as useFloating, ht as useMessages, i as SearchBar_default, it as CheckboxGroup_default, j as FIELD_CLEAR_BUTTON, k as UnitInput_default, l as RadioGroup_default, lt as Spinner_default, m as useTeleportTarget, mt as provideEldraUiMessages, n as Textarea_default, nt as TAG_SHAPE, o as ownsShortcut, ot as Checkbox_default, p as useOverlay, pt as MESSAGES_KEY, q as CURRENCY_KEY, r as Select_default, rt as tagPadding, s as releaseShortcut, st as FIELD_KEY, t as VariantPicker_default, tt as TAG_REMOVE_BUTTON, u as QuantityStepper_default, ut as Icon_default, v as useListbox, vt as joinIds, w as Input_default, x as Switch_default, xt as partClass, y as FormLayout_default, yt as useUiId, z as defaultUnitFormat } from "./VariantPicker-CqDAtSju.js";
|
|
2
|
+
import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, onUpdated, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import { dateTimeFormat } from "@eldrajs/sdk/format/date";
|
|
4
4
|
//#region src/components/accordion/context.ts
|
|
5
5
|
/** The key an `Accordion` provides its `AccordionContext` on. */
|
|
@@ -37,6 +37,7 @@ var Accordion_default = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
const rootClass = computed(() => partClass(cx("flex flex-col border-t border-border"), props.classes, "root"));
|
|
38
38
|
return (_ctx, _cache) => {
|
|
39
39
|
return openBlock(), createElementBlock("div", {
|
|
40
|
+
"data-eldra-ui": "",
|
|
40
41
|
"data-part": "root",
|
|
41
42
|
class: normalizeClass(rootClass.value)
|
|
42
43
|
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
@@ -238,10 +239,10 @@ function createPanelHeightAnimator(panel) {
|
|
|
238
239
|
}
|
|
239
240
|
//#endregion
|
|
240
241
|
//#region src/components/accordion/AccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
241
|
-
var _hoisted_1$
|
|
242
|
-
var _hoisted_2$
|
|
243
|
-
var _hoisted_3$
|
|
244
|
-
var _hoisted_4$
|
|
242
|
+
var _hoisted_1$39 = ["href"];
|
|
243
|
+
var _hoisted_2$25 = { class: "min-w-0 flex-1" };
|
|
244
|
+
var _hoisted_3$15 = ["name", "open"];
|
|
245
|
+
var _hoisted_4$10 = { class: "min-w-0 flex-1" };
|
|
245
246
|
var TRIGGER_BASE$1 = "group flex w-full items-center justify-between gap-4 min-h-14 py-4 rounded-sm text-start cursor-pointer eldra-focus";
|
|
246
247
|
//#endregion
|
|
247
248
|
//#region src/components/accordion/AccordionItem.vue
|
|
@@ -444,10 +445,11 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
444
445
|
return (_ctx, _cache) => {
|
|
445
446
|
return isLinkRow.value ? (openBlock(), createElementBlock("a", {
|
|
446
447
|
key: 0,
|
|
448
|
+
"data-eldra-ui": "",
|
|
447
449
|
"data-part": "root",
|
|
448
450
|
class: normalizeClass(rootClass.value),
|
|
449
451
|
href: __props.href
|
|
450
|
-
}, [createElementVNode("span", _hoisted_2$
|
|
452
|
+
}, [createElementVNode("span", _hoisted_2$25, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
|
|
451
453
|
"data-part": "title",
|
|
452
454
|
class: normalizeClass(titleClass.value)
|
|
453
455
|
}, {
|
|
@@ -457,10 +459,11 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
457
459
|
key: 0,
|
|
458
460
|
"data-part": "help",
|
|
459
461
|
class: normalizeClass(helpClass.value)
|
|
460
|
-
}, toDisplayString(__props.help), 3)) : createCommentVNode("", true)])], 10, _hoisted_1$
|
|
462
|
+
}, toDisplayString(__props.help), 3)) : createCommentVNode("", true)])], 10, _hoisted_1$39)) : (openBlock(), createElementBlock("details", {
|
|
461
463
|
key: 1,
|
|
462
464
|
ref_key: "detailsRef",
|
|
463
465
|
ref: detailsRef,
|
|
466
|
+
"data-eldra-ui": "",
|
|
464
467
|
"data-part": "root",
|
|
465
468
|
class: normalizeClass(rootClass.value),
|
|
466
469
|
name: detailsName.value,
|
|
@@ -470,7 +473,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
470
473
|
"data-part": "summary",
|
|
471
474
|
class: normalizeClass(summaryClass.value),
|
|
472
475
|
onClick: onSummaryClick
|
|
473
|
-
}, [createElementVNode("span", _hoisted_4$
|
|
476
|
+
}, [createElementVNode("span", _hoisted_4$10, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
|
|
474
477
|
"data-part": "title",
|
|
475
478
|
class: normalizeClass(titleClass.value)
|
|
476
479
|
}, {
|
|
@@ -496,7 +499,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
496
499
|
ref: panelRef,
|
|
497
500
|
"data-part": "panel",
|
|
498
501
|
class: normalizeClass(panelClass.value)
|
|
499
|
-
}, [renderSlot(_ctx.$slots, "default")], 2)], 42, _hoisted_3$
|
|
502
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)], 42, _hoisted_3$15));
|
|
500
503
|
};
|
|
501
504
|
}
|
|
502
505
|
});
|
|
@@ -524,7 +527,7 @@ function initialsFromName(name) {
|
|
|
524
527
|
}
|
|
525
528
|
//#endregion
|
|
526
529
|
//#region src/components/avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
|
527
|
-
var _hoisted_1$
|
|
530
|
+
var _hoisted_1$38 = ["src"];
|
|
528
531
|
//#endregion
|
|
529
532
|
//#region src/components/avatar/Avatar.vue
|
|
530
533
|
var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -613,6 +616,7 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
|
613
616
|
const iconClass = computed(() => partClass(cx("text-text", ICON_SIZE_CLASS[props.size]), props.classes, "icon"));
|
|
614
617
|
return (_ctx, _cache) => {
|
|
615
618
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
619
|
+
"data-eldra-ui": "",
|
|
616
620
|
"data-part": "root",
|
|
617
621
|
class: rootClass.value
|
|
618
622
|
}, rootAria.value), [showImage.value ? (openBlock(), createElementBlock("img", {
|
|
@@ -623,7 +627,7 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
|
623
627
|
alt: "",
|
|
624
628
|
"aria-hidden": "true",
|
|
625
629
|
onError: onImageError
|
|
626
|
-
}, null, 42, _hoisted_1$
|
|
630
|
+
}, null, 42, _hoisted_1$38)) : showInitials.value ? (openBlock(), createElementBlock("span", {
|
|
627
631
|
key: 1,
|
|
628
632
|
"data-part": "initials",
|
|
629
633
|
class: normalizeClass(initialsClass.value),
|
|
@@ -650,8 +654,8 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
|
650
654
|
});
|
|
651
655
|
//#endregion
|
|
652
656
|
//#region src/components/avatar/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
653
|
-
var _hoisted_1$
|
|
654
|
-
var _hoisted_2$
|
|
657
|
+
var _hoisted_1$37 = ["aria-labelledby"];
|
|
658
|
+
var _hoisted_2$24 = ["id"];
|
|
655
659
|
var ITEM_SIZE = "sm";
|
|
656
660
|
/** `Avatar.vue`'s own `size-8` for `sm` — needed again here so the item wrapper (which draws the
|
|
657
661
|
* overlap and the ring) is exactly the avatar's own box, not a guess at its size. */
|
|
@@ -699,6 +703,7 @@ var AvatarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
699
703
|
const srTextClass = computed(() => partClass("sr-only", props.classes, "srText"));
|
|
700
704
|
return (_ctx, _cache) => {
|
|
701
705
|
return openBlock(), createElementBlock("div", {
|
|
706
|
+
"data-eldra-ui": "",
|
|
702
707
|
"data-part": "root",
|
|
703
708
|
class: normalizeClass(rootClass.value),
|
|
704
709
|
role: "group",
|
|
@@ -726,8 +731,8 @@ var AvatarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
726
731
|
id: unref(srTextId),
|
|
727
732
|
"data-part": "srText",
|
|
728
733
|
class: normalizeClass(srTextClass.value)
|
|
729
|
-
}, toDisplayString(groupLabel.value), 11, _hoisted_2$
|
|
730
|
-
], 10, _hoisted_1$
|
|
734
|
+
}, toDisplayString(groupLabel.value), 11, _hoisted_2$24)
|
|
735
|
+
], 10, _hoisted_1$37);
|
|
731
736
|
};
|
|
732
737
|
}
|
|
733
738
|
});
|
|
@@ -798,6 +803,7 @@ var Badge_default = /* @__PURE__ */ defineComponent({
|
|
|
798
803
|
const hiddenSuffixClass = computed(() => partClass("sr-only", props.classes, "hiddenSuffix"));
|
|
799
804
|
return (_ctx, _cache) => {
|
|
800
805
|
return openBlock(), createBlock(resolveDynamicComponent(__props.as ?? "span"), {
|
|
806
|
+
"data-eldra-ui": "",
|
|
801
807
|
"data-part": "root",
|
|
802
808
|
class: normalizeClass(rootClass.value)
|
|
803
809
|
}, {
|
|
@@ -827,8 +833,8 @@ var Badge_default = /* @__PURE__ */ defineComponent({
|
|
|
827
833
|
});
|
|
828
834
|
//#endregion
|
|
829
835
|
//#region src/components/breadcrumb/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
830
|
-
var _hoisted_1$
|
|
831
|
-
var _hoisted_2$
|
|
836
|
+
var _hoisted_1$36 = ["aria-label"];
|
|
837
|
+
var _hoisted_2$23 = ["aria-label"];
|
|
832
838
|
//#endregion
|
|
833
839
|
//#region src/components/breadcrumb/Breadcrumb.vue
|
|
834
840
|
var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1101,6 +1107,7 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
1101
1107
|
}));
|
|
1102
1108
|
return (_ctx, _cache) => {
|
|
1103
1109
|
return openBlock(), createElementBlock("nav", {
|
|
1110
|
+
"data-eldra-ui": "",
|
|
1104
1111
|
"data-part": "root",
|
|
1105
1112
|
"aria-label": unref(m).breadcrumbLabel,
|
|
1106
1113
|
class: normalizeClass(rootClass.value)
|
|
@@ -1159,7 +1166,7 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
1159
1166
|
class: normalizeClass(ellipsisClass.value),
|
|
1160
1167
|
"aria-label": unref(m).showMoreLevels(middleItems.value.length),
|
|
1161
1168
|
onClick: expand
|
|
1162
|
-
}, " … ", 10, _hoisted_2$
|
|
1169
|
+
}, " … ", 10, _hoisted_2$23)], 2)) : createCommentVNode("", true),
|
|
1163
1170
|
(openBlock(true), createElementBlock(Fragment, null, renderList(middleItems.value, (item, index) => {
|
|
1164
1171
|
return openBlock(), createElementBlock("li", {
|
|
1165
1172
|
key: `middle-${index}`,
|
|
@@ -1225,13 +1232,13 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
1225
1232
|
key: 0,
|
|
1226
1233
|
type: "application/ld+json",
|
|
1227
1234
|
textContent: toDisplayString(structuredDataJson.value)
|
|
1228
|
-
}, null, 8, ["textContent"])) : createCommentVNode("", true)], 10, _hoisted_1$
|
|
1235
|
+
}, null, 8, ["textContent"])) : createCommentVNode("", true)], 10, _hoisted_1$36);
|
|
1229
1236
|
};
|
|
1230
1237
|
}
|
|
1231
1238
|
});
|
|
1232
1239
|
//#endregion
|
|
1233
1240
|
//#region src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1234
|
-
var _hoisted_1$
|
|
1241
|
+
var _hoisted_1$35 = ["role"];
|
|
1235
1242
|
var BASE$2 = "@container flex items-center";
|
|
1236
1243
|
var LOOSE = "flex-wrap gap-3";
|
|
1237
1244
|
//#endregion
|
|
@@ -1267,10 +1274,11 @@ var ButtonGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
1267
1274
|
const rootClass = computed(() => partClass(cx(BASE$2, props.attached ? ATTACHED : LOOSE), props.classes, "root"));
|
|
1268
1275
|
return (_ctx, _cache) => {
|
|
1269
1276
|
return openBlock(), createElementBlock("div", {
|
|
1277
|
+
"data-eldra-ui": "",
|
|
1270
1278
|
"data-part": "root",
|
|
1271
1279
|
class: normalizeClass(rootClass.value),
|
|
1272
1280
|
role: __props.attached ? "group" : void 0
|
|
1273
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
1281
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$35);
|
|
1274
1282
|
};
|
|
1275
1283
|
}
|
|
1276
1284
|
});
|
|
@@ -2222,14 +2230,14 @@ function useCarousel(options) {
|
|
|
2222
2230
|
}
|
|
2223
2231
|
//#endregion
|
|
2224
2232
|
//#region src/components/carousel/Carousel.vue?vue&type=script&setup=true&lang.ts
|
|
2225
|
-
var _hoisted_1$
|
|
2226
|
-
var _hoisted_2$
|
|
2227
|
-
var _hoisted_3$
|
|
2233
|
+
var _hoisted_1$34 = ["aria-label", "aria-describedby"];
|
|
2234
|
+
var _hoisted_2$22 = ["id"];
|
|
2235
|
+
var _hoisted_3$14 = {
|
|
2228
2236
|
key: 0,
|
|
2229
2237
|
class: "flex shrink-0 items-center gap-2"
|
|
2230
2238
|
};
|
|
2231
|
-
var _hoisted_4$
|
|
2232
|
-
var _hoisted_5$
|
|
2239
|
+
var _hoisted_4$9 = ["disabled", "aria-label"];
|
|
2240
|
+
var _hoisted_5$6 = ["disabled", "aria-label"];
|
|
2233
2241
|
var _hoisted_6$1 = ["tabindex", "aria-label"];
|
|
2234
2242
|
var _hoisted_7$1 = {
|
|
2235
2243
|
key: 2,
|
|
@@ -2451,6 +2459,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2451
2459
|
return openBlock(), createElementBlock("section", {
|
|
2452
2460
|
ref_key: "rootRef",
|
|
2453
2461
|
ref: rootRef,
|
|
2462
|
+
"data-eldra-ui": "",
|
|
2454
2463
|
"data-part": "root",
|
|
2455
2464
|
class: normalizeClass(rootClass.value),
|
|
2456
2465
|
"aria-roledescription": "carousel",
|
|
@@ -2462,12 +2471,12 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2462
2471
|
id: unref(instructionsId),
|
|
2463
2472
|
"data-part": "instructions",
|
|
2464
2473
|
class: normalizeClass(instructionsClass.value)
|
|
2465
|
-
}, toDisplayString(unref(messages).slideInstructions), 11, _hoisted_2$
|
|
2474
|
+
}, toDisplayString(unref(messages).slideInstructions), 11, _hoisted_2$22)) : createCommentVNode("", true),
|
|
2466
2475
|
__props.controls === "header" || _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
2467
2476
|
key: 1,
|
|
2468
2477
|
"data-part": "header",
|
|
2469
2478
|
class: normalizeClass(headerClass.value)
|
|
2470
|
-
}, [renderSlot(_ctx.$slots, "header"), __props.controls === "header" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2479
|
+
}, [renderSlot(_ctx.$slots, "header"), __props.controls === "header" ? (openBlock(), createElementBlock("div", _hoisted_3$14, [
|
|
2471
2480
|
__props.counter ? (openBlock(), createElementBlock("span", {
|
|
2472
2481
|
key: 0,
|
|
2473
2482
|
"data-part": "counter",
|
|
@@ -2493,7 +2502,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2493
2502
|
"stroke-linejoin": "round",
|
|
2494
2503
|
"aria-hidden": "true",
|
|
2495
2504
|
focusable: "false"
|
|
2496
|
-
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$
|
|
2505
|
+
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$9),
|
|
2497
2506
|
createElementVNode("button", {
|
|
2498
2507
|
ref_key: "nextButtonRef",
|
|
2499
2508
|
ref: nextButtonRef,
|
|
@@ -2513,7 +2522,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2513
2522
|
"stroke-linejoin": "round",
|
|
2514
2523
|
"aria-hidden": "true",
|
|
2515
2524
|
focusable: "false"
|
|
2516
|
-
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_5$
|
|
2525
|
+
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_5$6)
|
|
2517
2526
|
])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
|
|
2518
2527
|
createElementVNode("div", {
|
|
2519
2528
|
ref_key: "trackRef",
|
|
@@ -2599,7 +2608,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2599
2608
|
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_14)
|
|
2600
2609
|
])) : (openBlock(), createElementBlock("span", _hoisted_15))
|
|
2601
2610
|
])) : createCommentVNode("", true)
|
|
2602
|
-
], 10, _hoisted_1$
|
|
2611
|
+
], 10, _hoisted_1$34);
|
|
2603
2612
|
};
|
|
2604
2613
|
}
|
|
2605
2614
|
});
|
|
@@ -2609,7 +2618,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2609
2618
|
var CHIP_GROUP_KEY = Symbol("eldra-ui:chip-group");
|
|
2610
2619
|
//#endregion
|
|
2611
2620
|
//#region src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
2612
|
-
var _hoisted_1$
|
|
2621
|
+
var _hoisted_1$33 = ["aria-label", "disabled"];
|
|
2613
2622
|
var FILL_SELECTED = "bg-primary text-primary-contrast";
|
|
2614
2623
|
var FILL_DISABLED = "bg-surface-strong text-muted cursor-not-allowed";
|
|
2615
2624
|
/** Button's own `primary` hover mix: 14% toward `background`. */
|
|
@@ -2836,6 +2845,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
|
|
|
2836
2845
|
const removeButtonClass = computed(() => partClass(cx(TAG_REMOVE_BUTTON, REMOVE_SIZE[props.size], effectiveDisabled.value && "cursor-not-allowed"), props.classes, "removeButton"));
|
|
2837
2846
|
return (_ctx, _cache) => {
|
|
2838
2847
|
return openBlock(), createBlock(resolveDynamicComponent(rootTag.value), {
|
|
2848
|
+
"data-eldra-ui": "",
|
|
2839
2849
|
"data-part": "root",
|
|
2840
2850
|
class: normalizeClass(rootClass.value),
|
|
2841
2851
|
type: isInteractiveRoot.value ? "button" : void 0,
|
|
@@ -2897,7 +2907,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
|
|
|
2897
2907
|
"stroke-linejoin": "round",
|
|
2898
2908
|
"aria-hidden": "true",
|
|
2899
2909
|
focusable: "false"
|
|
2900
|
-
}, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6l-12 12" }, null, -1), createElementVNode("path", { d: "M6 6l12 12" }, null, -1)])], 2))], 42, _hoisted_1$
|
|
2910
|
+
}, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6l-12 12" }, null, -1), createElementVNode("path", { d: "M6 6l12 12" }, null, -1)])], 2))], 42, _hoisted_1$33)) : createCommentVNode("", true)
|
|
2901
2911
|
]),
|
|
2902
2912
|
_: 3
|
|
2903
2913
|
}, 40, [
|
|
@@ -2913,7 +2923,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
|
|
|
2913
2923
|
});
|
|
2914
2924
|
//#endregion
|
|
2915
2925
|
//#region src/components/chip/ChipGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2916
|
-
var _hoisted_1$
|
|
2926
|
+
var _hoisted_1$32 = ["aria-label", "aria-disabled"];
|
|
2917
2927
|
//#endregion
|
|
2918
2928
|
//#region src/components/chip/ChipGroup.vue
|
|
2919
2929
|
var ChipGroup_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2963,12 +2973,13 @@ var ChipGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
2963
2973
|
const rootClass = computed(() => partClass(cx("flex flex-wrap gap-2"), props.classes, "root"));
|
|
2964
2974
|
return (_ctx, _cache) => {
|
|
2965
2975
|
return openBlock(), createElementBlock("div", {
|
|
2976
|
+
"data-eldra-ui": "",
|
|
2966
2977
|
"data-part": "root",
|
|
2967
2978
|
role: "group",
|
|
2968
2979
|
"aria-label": __props.ariaLabel,
|
|
2969
2980
|
"aria-disabled": __props.disabled ? "true" : void 0,
|
|
2970
2981
|
class: normalizeClass(rootClass.value)
|
|
2971
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
2982
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$32);
|
|
2972
2983
|
};
|
|
2973
2984
|
}
|
|
2974
2985
|
});
|
|
@@ -3020,6 +3031,7 @@ var Container_default = /* @__PURE__ */ defineComponent({
|
|
|
3020
3031
|
const rootClass = computed(() => partClass(cx("mx-auto w-full", WIDTH[props.width], props.width === "full" ? "" : GUTTER), props.classes, "root"));
|
|
3021
3032
|
return (_ctx, _cache) => {
|
|
3022
3033
|
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
3034
|
+
"data-eldra-ui": "",
|
|
3023
3035
|
"data-part": "root",
|
|
3024
3036
|
class: normalizeClass(rootClass.value)
|
|
3025
3037
|
}, {
|
|
@@ -3101,13 +3113,49 @@ function frameAspectRatio(ratio, media) {
|
|
|
3101
3113
|
return "auto";
|
|
3102
3114
|
}
|
|
3103
3115
|
//#endregion
|
|
3116
|
+
//#region src/utils/sizes.ts
|
|
3117
|
+
/** Multiplies every length in an `<img sizes>` list by `zoom`, keeping its media conditions. */
|
|
3118
|
+
function zoomSizes(sizes, zoom) {
|
|
3119
|
+
if (!Number.isFinite(zoom) || zoom <= 1) return sizes;
|
|
3120
|
+
return topLevelEntries(sizes).map((entry) => zoomEntry(entry.trim(), zoom)).join(", ");
|
|
3121
|
+
}
|
|
3122
|
+
function topLevelEntries(list) {
|
|
3123
|
+
const entries = [];
|
|
3124
|
+
let depth = 0;
|
|
3125
|
+
let start = 0;
|
|
3126
|
+
for (let i = 0; i < list.length; i++) {
|
|
3127
|
+
const char = list[i];
|
|
3128
|
+
if (char === "(") depth++;
|
|
3129
|
+
else if (char === ")") depth = Math.max(0, depth - 1);
|
|
3130
|
+
else if (char === "," && depth === 0) {
|
|
3131
|
+
entries.push(list.slice(start, i));
|
|
3132
|
+
start = i + 1;
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
entries.push(list.slice(start));
|
|
3136
|
+
return entries;
|
|
3137
|
+
}
|
|
3138
|
+
/** Where the entry's size value starts: its last token, or the function call it ends with. */
|
|
3139
|
+
function sizeValueStart(entry) {
|
|
3140
|
+
if (!entry.endsWith(")")) return entry.search(/[^\s()]+$/);
|
|
3141
|
+
let depth = 0;
|
|
3142
|
+
for (let i = entry.length - 1; i >= 0; i--) if (entry[i] === ")") depth++;
|
|
3143
|
+
else if (entry[i] === "(" && --depth === 0) return entry.slice(0, i).search(/[\w-]+$/);
|
|
3144
|
+
return -1;
|
|
3145
|
+
}
|
|
3146
|
+
function zoomEntry(entry, zoom) {
|
|
3147
|
+
const start = sizeValueStart(entry);
|
|
3148
|
+
if (start < 0 || /^(?:auto|0)$/i.test(entry.slice(start))) return entry;
|
|
3149
|
+
return `${entry.slice(0, start)}calc(${entry.slice(start)} * ${zoom})`;
|
|
3150
|
+
}
|
|
3151
|
+
//#endregion
|
|
3104
3152
|
//#region src/components/image/Image.vue?vue&type=script&setup=true&lang.ts
|
|
3105
|
-
var _hoisted_1$
|
|
3153
|
+
var _hoisted_1$31 = [
|
|
3106
3154
|
"src",
|
|
3107
3155
|
"width",
|
|
3108
3156
|
"height"
|
|
3109
3157
|
];
|
|
3110
|
-
var _hoisted_2$
|
|
3158
|
+
var _hoisted_2$21 = [
|
|
3111
3159
|
"src",
|
|
3112
3160
|
"srcset",
|
|
3113
3161
|
"sizes",
|
|
@@ -3117,12 +3165,12 @@ var _hoisted_2$19 = [
|
|
|
3117
3165
|
"loading",
|
|
3118
3166
|
"fetchpriority"
|
|
3119
3167
|
];
|
|
3120
|
-
var _hoisted_3$
|
|
3168
|
+
var _hoisted_3$13 = [
|
|
3121
3169
|
"role",
|
|
3122
3170
|
"aria-hidden",
|
|
3123
3171
|
"aria-label"
|
|
3124
3172
|
];
|
|
3125
|
-
var _hoisted_4$
|
|
3173
|
+
var _hoisted_4$8 = { "aria-hidden": "true" };
|
|
3126
3174
|
//#endregion
|
|
3127
3175
|
//#region src/components/image/Image.vue
|
|
3128
3176
|
var Image_default = /* @__PURE__ */ defineComponent({
|
|
@@ -3179,7 +3227,10 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3179
3227
|
if (props.decorative) return "";
|
|
3180
3228
|
return props.alt ?? props.media?.alt ?? "";
|
|
3181
3229
|
});
|
|
3182
|
-
const resolvedSizes = computed(() =>
|
|
3230
|
+
const resolvedSizes = computed(() => {
|
|
3231
|
+
const sizes = props.sizes ?? props.media?.sizes;
|
|
3232
|
+
return sizes && props.fit === "cover" ? zoomSizes(sizes, props.zoom) : sizes;
|
|
3233
|
+
});
|
|
3183
3234
|
/** Spec "Image" → Behaviour & motion: eager + high priority for the first hero image, lazy
|
|
3184
3235
|
* everywhere else. `decoding="async"` never blocks the first paint on the decode. */
|
|
3185
3236
|
const loadingAttr = computed(() => props.priority ? "eager" : "lazy");
|
|
@@ -3236,6 +3287,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3236
3287
|
const skeletonClass = computed(() => partClass(cx("eldra-skeleton h-full w-full"), props.classes, "skeleton"));
|
|
3237
3288
|
return (_ctx, _cache) => {
|
|
3238
3289
|
return openBlock(), createBlock(resolveDynamicComponent(hasCaption.value ? "figure" : "div"), {
|
|
3290
|
+
"data-eldra-ui": "",
|
|
3239
3291
|
"data-part": "root",
|
|
3240
3292
|
class: normalizeClass(rootClass.value),
|
|
3241
3293
|
style: normalizeStyle(rootStyle.value)
|
|
@@ -3260,7 +3312,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3260
3312
|
playsinline: "",
|
|
3261
3313
|
width: __props.media.width,
|
|
3262
3314
|
height: __props.media.height
|
|
3263
|
-
}), toDisplayString(resolvedAlt.value), 17, _hoisted_1$
|
|
3315
|
+
}), toDisplayString(resolvedAlt.value), 17, _hoisted_1$31)) : __props.media ? (openBlock(), createElementBlock("img", mergeProps({
|
|
3264
3316
|
key: 2,
|
|
3265
3317
|
"data-part": "media",
|
|
3266
3318
|
class: mediaClass.value,
|
|
@@ -3275,7 +3327,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3275
3327
|
loading: loadingAttr.value,
|
|
3276
3328
|
decoding: "async",
|
|
3277
3329
|
fetchpriority: fetchPriority.value
|
|
3278
|
-
}), null, 16, _hoisted_2$
|
|
3330
|
+
}), null, 16, _hoisted_2$21)) : (openBlock(), createElementBlock("div", {
|
|
3279
3331
|
key: 3,
|
|
3280
3332
|
"data-part": "placeholder",
|
|
3281
3333
|
class: normalizeClass(placeholderClass.value),
|
|
@@ -3307,7 +3359,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3307
3359
|
}),
|
|
3308
3360
|
createElementVNode("path", { d: "M3 17l5.5 -5.5c.83 -.83 1.67 -.83 2.5 0l7 7" }),
|
|
3309
3361
|
createElementVNode("path", { d: "M14 15l1.5 -1.5c.83 -.83 1.67 -.83 2.5 0l3 3" })
|
|
3310
|
-
], -1)), createElementVNode("span", _hoisted_4$
|
|
3362
|
+
], -1)), createElementVNode("span", _hoisted_4$8, toDisplayString(unref(messages).noImage), 1)], 10, _hoisted_3$13))], 6), hasCaption.value ? (openBlock(), createElementBlock("figcaption", {
|
|
3311
3363
|
key: 0,
|
|
3312
3364
|
"data-part": "caption",
|
|
3313
3365
|
class: normalizeClass(captionClass.value)
|
|
@@ -3421,6 +3473,7 @@ var Skeleton_default = /* @__PURE__ */ defineComponent({
|
|
|
3421
3473
|
})));
|
|
3422
3474
|
return (_ctx, _cache) => {
|
|
3423
3475
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
3476
|
+
"data-eldra-ui": "",
|
|
3424
3477
|
"data-part": "root",
|
|
3425
3478
|
class: rootClass.value,
|
|
3426
3479
|
style: rootStyle.value
|
|
@@ -3501,9 +3554,9 @@ var CUE_ARROW_PATHS = [
|
|
|
3501
3554
|
];
|
|
3502
3555
|
//#endregion
|
|
3503
3556
|
//#region src/components/card/ContentCard.vue?vue&type=script&setup=true&lang.ts
|
|
3504
|
-
var _hoisted_1$
|
|
3505
|
-
var _hoisted_2$
|
|
3506
|
-
var _hoisted_3$
|
|
3557
|
+
var _hoisted_1$30 = ["aria-label"];
|
|
3558
|
+
var _hoisted_2$20 = ["datetime"];
|
|
3559
|
+
var _hoisted_3$12 = ["d"];
|
|
3507
3560
|
//#endregion
|
|
3508
3561
|
//#region src/components/card/ContentCard.vue
|
|
3509
3562
|
var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
@@ -3654,6 +3707,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3654
3707
|
return (_ctx, _cache) => {
|
|
3655
3708
|
return __props.loading ? (openBlock(), createElementBlock("div", {
|
|
3656
3709
|
key: 0,
|
|
3710
|
+
"data-eldra-ui": "",
|
|
3657
3711
|
"data-part": "root",
|
|
3658
3712
|
class: normalizeClass(rootClass.value),
|
|
3659
3713
|
role: "group",
|
|
@@ -3672,8 +3726,9 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3672
3726
|
}, [createVNode(Skeleton_default, {
|
|
3673
3727
|
variant: "text",
|
|
3674
3728
|
lines: 3
|
|
3675
|
-
})], 2)], 10, _hoisted_1$
|
|
3729
|
+
})], 2)], 10, _hoisted_1$30)) : (openBlock(), createElementBlock("article", {
|
|
3676
3730
|
key: 1,
|
|
3731
|
+
"data-eldra-ui": "",
|
|
3677
3732
|
"data-part": "root",
|
|
3678
3733
|
class: normalizeClass(rootClass.value)
|
|
3679
3734
|
}, [hasImage.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -3719,7 +3774,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3719
3774
|
formattedDate.value ? (openBlock(), createElementBlock("time", {
|
|
3720
3775
|
key: 0,
|
|
3721
3776
|
datetime: __props.date
|
|
3722
|
-
}, toDisplayString(formattedDate.value), 9, _hoisted_2$
|
|
3777
|
+
}, toDisplayString(formattedDate.value), 9, _hoisted_2$20)) : createCommentVNode("", true),
|
|
3723
3778
|
formattedDate.value && __props.meta ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(" · ")], 64)) : createCommentVNode("", true),
|
|
3724
3779
|
__props.meta ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(__props.meta), 1)], 64)) : createCommentVNode("", true)
|
|
3725
3780
|
])], 2)) : createCommentVNode("", true),
|
|
@@ -3742,7 +3797,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3742
3797
|
return openBlock(), createElementBlock("path", {
|
|
3743
3798
|
key: d,
|
|
3744
3799
|
d
|
|
3745
|
-
}, null, 8, _hoisted_3$
|
|
3800
|
+
}, null, 8, _hoisted_3$12);
|
|
3746
3801
|
}), 128))], 2))], 2)) : createCommentVNode("", true)
|
|
3747
3802
|
], 2)], 2));
|
|
3748
3803
|
};
|
|
@@ -4004,10 +4059,10 @@ function useDialog(options) {
|
|
|
4004
4059
|
}
|
|
4005
4060
|
//#endregion
|
|
4006
4061
|
//#region src/components/dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
4007
|
-
var _hoisted_1$
|
|
4008
|
-
var _hoisted_2$
|
|
4009
|
-
var _hoisted_3$
|
|
4010
|
-
var _hoisted_4$
|
|
4062
|
+
var _hoisted_1$29 = ["aria-labelledby", "aria-describedby"];
|
|
4063
|
+
var _hoisted_2$19 = ["id"];
|
|
4064
|
+
var _hoisted_3$11 = ["aria-label"];
|
|
4065
|
+
var _hoisted_4$7 = ["id"];
|
|
4011
4066
|
//#endregion
|
|
4012
4067
|
//#region src/components/dialog/Dialog.vue
|
|
4013
4068
|
var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
@@ -4114,6 +4169,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4114
4169
|
return openBlock(), createElementBlock("dialog", {
|
|
4115
4170
|
ref_key: "dialogEl",
|
|
4116
4171
|
ref: dialogEl,
|
|
4172
|
+
"data-eldra-ui": "",
|
|
4117
4173
|
"data-part": "root",
|
|
4118
4174
|
class: normalizeClass(rootClass.value),
|
|
4119
4175
|
"aria-labelledby": unref(titleId),
|
|
@@ -4130,7 +4186,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4130
4186
|
id: unref(titleId),
|
|
4131
4187
|
"data-part": "title",
|
|
4132
4188
|
class: normalizeClass(titleClass.value)
|
|
4133
|
-
}, toDisplayString(__props.title), 11, _hoisted_2$
|
|
4189
|
+
}, toDisplayString(__props.title), 11, _hoisted_2$19), createElementVNode("button", {
|
|
4134
4190
|
type: "button",
|
|
4135
4191
|
"data-part": "close",
|
|
4136
4192
|
class: normalizeClass(closeClass.value),
|
|
@@ -4146,7 +4202,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4146
4202
|
"stroke-linejoin": "round",
|
|
4147
4203
|
"aria-hidden": "true",
|
|
4148
4204
|
focusable: "false"
|
|
4149
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$
|
|
4205
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$11)], 2),
|
|
4150
4206
|
createElementVNode("div", {
|
|
4151
4207
|
"data-part": "body",
|
|
4152
4208
|
class: normalizeClass(bodyClass.value)
|
|
@@ -4155,21 +4211,21 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4155
4211
|
id: unref(descriptionId),
|
|
4156
4212
|
"data-part": "description",
|
|
4157
4213
|
class: normalizeClass(descriptionClass.value)
|
|
4158
|
-
}, toDisplayString(__props.description), 11, _hoisted_4$
|
|
4214
|
+
}, toDisplayString(__props.description), 11, _hoisted_4$7)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 2),
|
|
4159
4215
|
unref(slots).footer ? (openBlock(), createElementBlock("div", {
|
|
4160
4216
|
key: 0,
|
|
4161
4217
|
"data-part": "footer",
|
|
4162
4218
|
class: normalizeClass(footerClass.value)
|
|
4163
4219
|
}, [renderSlot(_ctx.$slots, "footer")], 2)) : createCommentVNode("", true)
|
|
4164
|
-
], 2)], 42, _hoisted_1$
|
|
4220
|
+
], 2)], 42, _hoisted_1$29);
|
|
4165
4221
|
};
|
|
4166
4222
|
}
|
|
4167
4223
|
});
|
|
4168
4224
|
//#endregion
|
|
4169
4225
|
//#region src/components/drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
4170
|
-
var _hoisted_1$
|
|
4171
|
-
var _hoisted_2$
|
|
4172
|
-
var _hoisted_3$
|
|
4226
|
+
var _hoisted_1$28 = ["aria-labelledby", "aria-label"];
|
|
4227
|
+
var _hoisted_2$18 = ["id"];
|
|
4228
|
+
var _hoisted_3$10 = ["aria-label"];
|
|
4173
4229
|
var titleAreaClass = "min-w-0 flex-1";
|
|
4174
4230
|
//#endregion
|
|
4175
4231
|
//#region src/components/drawer/Drawer.vue
|
|
@@ -4313,6 +4369,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4313
4369
|
return openBlock(), createElementBlock("dialog", {
|
|
4314
4370
|
ref_key: "dialogEl",
|
|
4315
4371
|
ref: dialogEl,
|
|
4372
|
+
"data-eldra-ui": "",
|
|
4316
4373
|
"data-part": "root",
|
|
4317
4374
|
class: normalizeClass(rootClass.value),
|
|
4318
4375
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
@@ -4335,7 +4392,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4335
4392
|
key: 0,
|
|
4336
4393
|
"data-part": "count",
|
|
4337
4394
|
class: normalizeClass(countClass.value)
|
|
4338
|
-
}, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_2$
|
|
4395
|
+
}, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_2$18)) : createCommentVNode("", true)]), createElementVNode("button", {
|
|
4339
4396
|
ref_key: "closeButtonEl",
|
|
4340
4397
|
ref: closeButtonEl,
|
|
4341
4398
|
type: "button",
|
|
@@ -4353,7 +4410,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4353
4410
|
"stroke-linejoin": "round",
|
|
4354
4411
|
"aria-hidden": "true",
|
|
4355
4412
|
focusable: "false"
|
|
4356
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$
|
|
4413
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$10)], 2),
|
|
4357
4414
|
createElementVNode("div", {
|
|
4358
4415
|
"data-part": "body",
|
|
4359
4416
|
class: normalizeClass(bodyClass.value)
|
|
@@ -4363,7 +4420,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4363
4420
|
"data-part": "footer",
|
|
4364
4421
|
class: normalizeClass(footerClass.value)
|
|
4365
4422
|
}, [renderSlot(_ctx.$slots, "footer")], 2)) : createCommentVNode("", true)
|
|
4366
|
-
], 6)], 42, _hoisted_1$
|
|
4423
|
+
], 6)], 42, _hoisted_1$28);
|
|
4367
4424
|
};
|
|
4368
4425
|
}
|
|
4369
4426
|
});
|
|
@@ -4400,6 +4457,7 @@ var EditorPlaceholder_default = /* @__PURE__ */ defineComponent({
|
|
|
4400
4457
|
const helpClass = computed(() => partClass("text-body-sm text-muted", props.classes, "help"));
|
|
4401
4458
|
return (_ctx, _cache) => {
|
|
4402
4459
|
return openBlock(), createElementBlock("div", {
|
|
4460
|
+
"data-eldra-ui": "",
|
|
4403
4461
|
"data-part": "root",
|
|
4404
4462
|
class: normalizeClass(rootClass.value)
|
|
4405
4463
|
}, [
|
|
@@ -4442,8 +4500,8 @@ var ALERT_TRIANGLE_PATHS = [
|
|
|
4442
4500
|
];
|
|
4443
4501
|
//#endregion
|
|
4444
4502
|
//#region src/components/empty-state/EmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
4445
|
-
var _hoisted_1$
|
|
4446
|
-
var _hoisted_2$
|
|
4503
|
+
var _hoisted_1$27 = ["role"];
|
|
4504
|
+
var _hoisted_2$17 = ["d"];
|
|
4447
4505
|
var ICON_STROKE_WIDTH$2 = 1.5;
|
|
4448
4506
|
//#endregion
|
|
4449
4507
|
//#region src/components/empty-state/EmptyState.vue
|
|
@@ -4524,6 +4582,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
4524
4582
|
const actionsClass = computed(() => partClass("mt-2 flex flex-wrap items-center justify-center gap-3", props.classes, "actions"));
|
|
4525
4583
|
return (_ctx, _cache) => {
|
|
4526
4584
|
return openBlock(), createElementBlock("div", {
|
|
4585
|
+
"data-eldra-ui": "",
|
|
4527
4586
|
"data-part": "root",
|
|
4528
4587
|
class: normalizeClass(rootClass.value),
|
|
4529
4588
|
role: role.value
|
|
@@ -4553,7 +4612,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
4553
4612
|
return openBlock(), createElementBlock("path", {
|
|
4554
4613
|
key: d,
|
|
4555
4614
|
d
|
|
4556
|
-
}, null, 8, _hoisted_2$
|
|
4615
|
+
}, null, 8, _hoisted_2$17);
|
|
4557
4616
|
}), 128))]))], 2),
|
|
4558
4617
|
(openBlock(), createBlock(resolveDynamicComponent(unref(headingTag)), {
|
|
4559
4618
|
"data-part": "title",
|
|
@@ -4578,13 +4637,13 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
4578
4637
|
label: unref(messages).tryAgain,
|
|
4579
4638
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("retry"))
|
|
4580
4639
|
}, null, 8, ["loading", "label"])) : createCommentVNode("", true)])], 2)) : createCommentVNode("", true)
|
|
4581
|
-
], 10, _hoisted_1$
|
|
4640
|
+
], 10, _hoisted_1$27);
|
|
4582
4641
|
};
|
|
4583
4642
|
}
|
|
4584
4643
|
});
|
|
4585
4644
|
//#endregion
|
|
4586
4645
|
//#region src/components/card/FeatureCard.vue?vue&type=script&setup=true&lang.ts
|
|
4587
|
-
var _hoisted_1$
|
|
4646
|
+
var _hoisted_1$26 = ["d"];
|
|
4588
4647
|
//#endregion
|
|
4589
4648
|
//#region src/components/card/FeatureCard.vue
|
|
4590
4649
|
var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
@@ -4667,6 +4726,7 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
|
4667
4726
|
const arrowClass = CUE_ARROW_CLASS;
|
|
4668
4727
|
return (_ctx, _cache) => {
|
|
4669
4728
|
return openBlock(), createElementBlock("div", {
|
|
4729
|
+
"data-eldra-ui": "",
|
|
4670
4730
|
"data-part": "root",
|
|
4671
4731
|
class: normalizeClass(rootClass.value)
|
|
4672
4732
|
}, [
|
|
@@ -4715,7 +4775,7 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
|
4715
4775
|
return openBlock(), createElementBlock("path", {
|
|
4716
4776
|
key: d,
|
|
4717
4777
|
d
|
|
4718
|
-
}, null, 8, _hoisted_1$
|
|
4778
|
+
}, null, 8, _hoisted_1$26);
|
|
4719
4779
|
}), 128))], 2))], 2)) : createCommentVNode("", true)
|
|
4720
4780
|
], 2);
|
|
4721
4781
|
};
|
|
@@ -4723,8 +4783,8 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
|
4723
4783
|
});
|
|
4724
4784
|
//#endregion
|
|
4725
4785
|
//#region src/components/field-wrapper/FieldWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
4726
|
-
var _hoisted_1$
|
|
4727
|
-
var _hoisted_2$
|
|
4786
|
+
var _hoisted_1$25 = ["id"];
|
|
4787
|
+
var _hoisted_2$16 = ["id"];
|
|
4728
4788
|
var GROUP_INLINE = "grid min-w-0 flex-[1_1_14rem] content-start gap-1";
|
|
4729
4789
|
var INLINE_ROW = "order-1 w-full basis-full";
|
|
4730
4790
|
/**
|
|
@@ -4913,6 +4973,7 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
|
|
|
4913
4973
|
return (_ctx, _cache) => {
|
|
4914
4974
|
return openBlock(), createBlock(resolveDynamicComponent(__props.group ? "fieldset" : "div"), {
|
|
4915
4975
|
id: __props.group ? unref(controlId) : void 0,
|
|
4976
|
+
"data-eldra-ui": "",
|
|
4916
4977
|
"data-part": "root",
|
|
4917
4978
|
class: normalizeClass(rootClass.value),
|
|
4918
4979
|
tabindex: __props.group ? -1 : void 0,
|
|
@@ -4971,12 +5032,12 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
|
|
|
4971
5032
|
id: helpId.value,
|
|
4972
5033
|
"data-part": "help",
|
|
4973
5034
|
class: normalizeClass(helpClass.value)
|
|
4974
|
-
}, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_1$
|
|
5035
|
+
}, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_1$25)) : createCommentVNode("", true), __props.counter ? (openBlock(), createElementBlock("span", {
|
|
4975
5036
|
key: 1,
|
|
4976
5037
|
id: counterId.value,
|
|
4977
5038
|
"data-part": "counter",
|
|
4978
5039
|
class: normalizeClass(counterClass.value)
|
|
4979
|
-
}, toDisplayString(unref(m).counter(count.value, __props.counter.max)), 11, _hoisted_2$
|
|
5040
|
+
}, toDisplayString(unref(m).counter(count.value, __props.counter.max)), 11, _hoisted_2$16)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)
|
|
4980
5041
|
]),
|
|
4981
5042
|
_: 3
|
|
4982
5043
|
}, 8, [
|
|
@@ -5549,15 +5610,15 @@ var FACET_ROW_GUTTER = "-mx-2 px-2";
|
|
|
5549
5610
|
var FACET_SWATCH_GUTTER = "-mx-1.5 px-1.5";
|
|
5550
5611
|
//#endregion
|
|
5551
5612
|
//#region src/components/filter-panel/facets/ColourFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5552
|
-
var _hoisted_1$
|
|
5553
|
-
var _hoisted_2$
|
|
5613
|
+
var _hoisted_1$24 = ["data-part", "data-value"];
|
|
5614
|
+
var _hoisted_2$15 = [
|
|
5554
5615
|
"value",
|
|
5555
5616
|
"checked",
|
|
5556
5617
|
"disabled",
|
|
5557
5618
|
"aria-label",
|
|
5558
5619
|
"onChange"
|
|
5559
5620
|
];
|
|
5560
|
-
var _hoisted_3$
|
|
5621
|
+
var _hoisted_3$9 = ["data-part"];
|
|
5561
5622
|
var ROWS_BASE = "grid min-w-0 grid-cols-1 gap-x-6 gap-y-0.5 @min-[26rem]:grid-cols-2";
|
|
5562
5623
|
/**
|
|
5563
5624
|
* Spec → Sizes, Swatch tile row: "Grid of `repeat(auto-fill, minmax(4.25rem, 1fr))`, gaps 0.75rem
|
|
@@ -5580,7 +5641,7 @@ var ROW_DISABLED = "cursor-not-allowed";
|
|
|
5580
5641
|
* is picked. No explicit size — the shape wraps the disc inside it, which is what keeps the two
|
|
5581
5642
|
* layouts' different swatch sizes (1.5rem and 2.25rem) to one declaration each.
|
|
5582
5643
|
*/
|
|
5583
|
-
var RING_BASE = "relative inline-flex shrink-0 rounded-full p-0.5 eldra-filter-swatch-ring";
|
|
5644
|
+
var RING_BASE = "relative inline-flex shrink-0 rounded-full border-solid p-0.5 eldra-filter-swatch-ring";
|
|
5584
5645
|
var RING_REST = "border-transparent";
|
|
5585
5646
|
/** Spec → States, "Swatch, checked": "2px `background` gap + 1.5px `text` ring". */
|
|
5586
5647
|
var RING_SELECTED = "border-text";
|
|
@@ -5693,6 +5754,7 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5693
5754
|
const valuesClass = computed(() => partClass(tiles.value ? TILES_BASE$1 : ROWS_BASE, props.classes, "values"));
|
|
5694
5755
|
return (_ctx, _cache) => {
|
|
5695
5756
|
return openBlock(), createElementBlock("div", {
|
|
5757
|
+
"data-eldra-ui": "",
|
|
5696
5758
|
"data-part": "values",
|
|
5697
5759
|
class: normalizeClass(valuesClass.value)
|
|
5698
5760
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (value) => {
|
|
@@ -5710,7 +5772,7 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5710
5772
|
disabled: disabled(value),
|
|
5711
5773
|
"aria-label": nameOf(value),
|
|
5712
5774
|
onChange: ($event) => emit("toggle", value.value, $event.target.checked)
|
|
5713
|
-
}, null, 40, _hoisted_2$
|
|
5775
|
+
}, null, 40, _hoisted_2$15),
|
|
5714
5776
|
createElementVNode("span", { class: normalizeClass(ringClass(value)) }, [
|
|
5715
5777
|
createElementVNode("span", {
|
|
5716
5778
|
"data-part": "swatch",
|
|
@@ -5752,23 +5814,26 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5752
5814
|
createElementVNode("span", {
|
|
5753
5815
|
"data-part": tiles.value ? "tileLabel" : "rowLabel",
|
|
5754
5816
|
class: normalizeClass(nameClass(value))
|
|
5755
|
-
}, toDisplayString(value.label), 11, _hoisted_3$
|
|
5817
|
+
}, toDisplayString(value.label), 11, _hoisted_3$9),
|
|
5756
5818
|
createElementVNode("span", {
|
|
5757
5819
|
"data-part": "count",
|
|
5758
5820
|
class: normalizeClass(countClass.value)
|
|
5759
5821
|
}, toDisplayString(value.count), 3)
|
|
5760
|
-
], 10, _hoisted_1$
|
|
5822
|
+
], 10, _hoisted_1$24);
|
|
5761
5823
|
}), 128))], 2);
|
|
5762
5824
|
};
|
|
5763
5825
|
}
|
|
5764
5826
|
});
|
|
5765
5827
|
//#endregion
|
|
5766
5828
|
//#region src/components/filter-panel/facets/ListFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5767
|
-
var _hoisted_1$
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
var
|
|
5829
|
+
var _hoisted_1$23 = {
|
|
5830
|
+
"data-eldra-ui": "",
|
|
5831
|
+
class: "min-w-0"
|
|
5832
|
+
};
|
|
5833
|
+
var _hoisted_2$14 = ["id"];
|
|
5834
|
+
var _hoisted_3$8 = { class: "min-w-0" };
|
|
5835
|
+
var _hoisted_4$6 = ["aria-label"];
|
|
5836
|
+
var _hoisted_5$5 = { class: "min-w-0" };
|
|
5772
5837
|
var SEARCH_BASE = "mb-2 w-full";
|
|
5773
5838
|
/** Spec → Sizes, Facet search: '"No matches" line: 0.875rem `muted`, 0.5rem vertical padding.' */
|
|
5774
5839
|
var NO_MATCHES_BASE = "text-body-sm text-muted";
|
|
@@ -5879,7 +5944,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5879
5944
|
const showAllClass = computed(() => partClass(SHOW_ALL_BASE, props.classes, "showAll"));
|
|
5880
5945
|
const checkboxClass = computed(() => partClass("", props.classes, "checkbox"));
|
|
5881
5946
|
return (_ctx, _cache) => {
|
|
5882
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5947
|
+
return openBlock(), createElementBlock("div", _hoisted_1$23, [
|
|
5883
5948
|
searchable.value ? (openBlock(), createElementBlock("div", {
|
|
5884
5949
|
key: 0,
|
|
5885
5950
|
"data-part": "search",
|
|
@@ -5930,7 +5995,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5930
5995
|
},
|
|
5931
5996
|
onChange: ($event) => emit("toggle", row.value.value, $event)
|
|
5932
5997
|
}, {
|
|
5933
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_3$
|
|
5998
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_3$8, toDisplayString(row.value.label), 1), createElementVNode("span", {
|
|
5934
5999
|
"data-part": "count",
|
|
5935
6000
|
class: normalizeClass(countClass.value)
|
|
5936
6001
|
}, toDisplayString(row.value.count), 3)]),
|
|
@@ -5961,7 +6026,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5961
6026
|
},
|
|
5962
6027
|
onChange: ($event) => emit("toggle", child.value, $event)
|
|
5963
6028
|
}, {
|
|
5964
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_5$
|
|
6029
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_5$5, toDisplayString(child.label), 1), createElementVNode("span", {
|
|
5965
6030
|
"data-part": "count",
|
|
5966
6031
|
class: normalizeClass(countClass.value)
|
|
5967
6032
|
}, toDisplayString(child.count), 3)]),
|
|
@@ -5974,8 +6039,8 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5974
6039
|
"classes",
|
|
5975
6040
|
"onChange"
|
|
5976
6041
|
]);
|
|
5977
|
-
}), 128))], 8, _hoisted_4$
|
|
5978
|
-
}), 128))], 10, _hoisted_2$
|
|
6042
|
+
}), 128))], 8, _hoisted_4$6)) : createCommentVNode("", true)], 64);
|
|
6043
|
+
}), 128))], 10, _hoisted_2$14),
|
|
5979
6044
|
createElementVNode("span", {
|
|
5980
6045
|
"data-part": "noMatches",
|
|
5981
6046
|
role: "status",
|
|
@@ -6043,7 +6108,7 @@ function fractionDigits(value) {
|
|
|
6043
6108
|
function rangeStepDigits(math) {
|
|
6044
6109
|
return Math.max(fractionDigits(math.step), fractionDigits(math.min));
|
|
6045
6110
|
}
|
|
6046
|
-
function clamp(value, low, high) {
|
|
6111
|
+
function clamp$1(value, low, high) {
|
|
6047
6112
|
return Math.min(high, Math.max(low, value));
|
|
6048
6113
|
}
|
|
6049
6114
|
/**
|
|
@@ -6060,11 +6125,11 @@ function clamp(value, low, high) {
|
|
|
6060
6125
|
function snapToRangeStep(value, math) {
|
|
6061
6126
|
const { min, max, step } = math;
|
|
6062
6127
|
if (!Number.isFinite(value)) return min;
|
|
6063
|
-
const target = clamp(value, min, max);
|
|
6128
|
+
const target = clamp$1(value, min, max);
|
|
6064
6129
|
if (!(step > 0)) return target;
|
|
6065
6130
|
const steps = Math.round((target - min) / step);
|
|
6066
6131
|
const digits = rangeStepDigits(math);
|
|
6067
|
-
let nearest = clamp(Number((min + steps * step).toFixed(digits)), min, max);
|
|
6132
|
+
let nearest = clamp$1(Number((min + steps * step).toFixed(digits)), min, max);
|
|
6068
6133
|
for (const bound of [min, max]) if (Math.abs(bound - target) < Math.abs(nearest - target)) nearest = bound;
|
|
6069
6134
|
return nearest;
|
|
6070
6135
|
}
|
|
@@ -6072,7 +6137,7 @@ function snapToRangeStep(value, math) {
|
|
|
6072
6137
|
function rangeValueToPercent(value, math) {
|
|
6073
6138
|
const span = math.max - math.min;
|
|
6074
6139
|
if (!(span > 0)) return 0;
|
|
6075
|
-
return clamp((value - math.min) / span * 100, 0, 100);
|
|
6140
|
+
return clamp$1((value - math.min) / span * 100, 0, 100);
|
|
6076
6141
|
}
|
|
6077
6142
|
/**
|
|
6078
6143
|
* The value under a pointer, snapped to the grid.
|
|
@@ -6083,7 +6148,7 @@ function rangeValueToPercent(value, math) {
|
|
|
6083
6148
|
*/
|
|
6084
6149
|
function rangePositionToValue(clientX, rect, math) {
|
|
6085
6150
|
if (!(rect.width > 0)) return math.min;
|
|
6086
|
-
const ratio = clamp((clientX - rect.left) / rect.width, 0, 1);
|
|
6151
|
+
const ratio = clamp$1((clientX - rect.left) / rect.width, 0, 1);
|
|
6087
6152
|
return snapToRangeStep(math.min + ratio * (math.max - math.min), math);
|
|
6088
6153
|
}
|
|
6089
6154
|
/**
|
|
@@ -6111,7 +6176,7 @@ function rangeThumbLimits(thumb, value, math) {
|
|
|
6111
6176
|
*/
|
|
6112
6177
|
function clampRangeThumb(next, thumb, value, math) {
|
|
6113
6178
|
const { lo, hi } = rangeThumbLimits(thumb, value, math);
|
|
6114
|
-
return clamp(snapToRangeStep(next, math), lo, hi);
|
|
6179
|
+
return clamp$1(snapToRangeStep(next, math), lo, hi);
|
|
6115
6180
|
}
|
|
6116
6181
|
/**
|
|
6117
6182
|
* A `modelValue` as this control will treat it: both ends snapped into the bounds, lowest first.
|
|
@@ -6171,9 +6236,9 @@ function rangeKeyTransition(key, shiftKey, thumb, value, math) {
|
|
|
6171
6236
|
}
|
|
6172
6237
|
//#endregion
|
|
6173
6238
|
//#region src/components/range-slider/RangeSlider.vue?vue&type=script&setup=true&lang.ts
|
|
6174
|
-
var _hoisted_1$
|
|
6175
|
-
var _hoisted_2$
|
|
6176
|
-
var _hoisted_3$
|
|
6239
|
+
var _hoisted_1$22 = ["id"];
|
|
6240
|
+
var _hoisted_2$13 = ["aria-labelledby"];
|
|
6241
|
+
var _hoisted_3$7 = [
|
|
6177
6242
|
"data-thumb",
|
|
6178
6243
|
"data-dragging",
|
|
6179
6244
|
"aria-label",
|
|
@@ -6184,7 +6249,7 @@ var _hoisted_3$6 = [
|
|
|
6184
6249
|
"aria-disabled",
|
|
6185
6250
|
"onKeydown"
|
|
6186
6251
|
];
|
|
6187
|
-
var _hoisted_4$
|
|
6252
|
+
var _hoisted_4$5 = [
|
|
6188
6253
|
"data-input",
|
|
6189
6254
|
"inputmode",
|
|
6190
6255
|
"value",
|
|
@@ -6666,6 +6731,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6666
6731
|
const inputClass = computed(() => partClass(cx(INPUT_BASE, props.disabled ? FIELD_DISABLED : FIELD_LIVE), props.classes, "input"));
|
|
6667
6732
|
return (_ctx, _cache) => {
|
|
6668
6733
|
return openBlock(), createElementBlock("div", {
|
|
6734
|
+
"data-eldra-ui": "",
|
|
6669
6735
|
"data-part": "root",
|
|
6670
6736
|
class: normalizeClass(rootClass.value)
|
|
6671
6737
|
}, [
|
|
@@ -6674,7 +6740,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6674
6740
|
id: unref(labelId),
|
|
6675
6741
|
"data-part": "label",
|
|
6676
6742
|
class: normalizeClass(labelClass.value)
|
|
6677
|
-
}, toDisplayString(__props.label), 11, _hoisted_1$
|
|
6743
|
+
}, toDisplayString(__props.label), 11, _hoisted_1$22)) : createCommentVNode("", true),
|
|
6678
6744
|
createElementVNode("div", {
|
|
6679
6745
|
role: "group",
|
|
6680
6746
|
"data-part": "group",
|
|
@@ -6716,8 +6782,8 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6716
6782
|
onKeydown: ($event) => onThumbKeydown($event, thumb.thumb),
|
|
6717
6783
|
onKeyup: onThumbKeyup,
|
|
6718
6784
|
onBlur: onThumbBlur
|
|
6719
|
-
}, null, 46, _hoisted_3$
|
|
6720
|
-
}), 128))], 34)], 64)) : createCommentVNode("", true)], 10, _hoisted_2$
|
|
6785
|
+
}, null, 46, _hoisted_3$7);
|
|
6786
|
+
}), 128))], 34)], 64)) : createCommentVNode("", true)], 10, _hoisted_2$13),
|
|
6721
6787
|
__props.inputs ? (openBlock(), createElementBlock("div", {
|
|
6722
6788
|
key: 1,
|
|
6723
6789
|
"data-part": "inputs",
|
|
@@ -6742,7 +6808,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6742
6808
|
onFocus: ($event) => onInputFocus(thumb.thumb),
|
|
6743
6809
|
onBlur: ($event) => onInputBlur(thumb.thumb),
|
|
6744
6810
|
onKeydown: withKeys(withModifiers(($event) => onInputEnter(thumb.thumb), ["prevent"]), ["enter"])
|
|
6745
|
-
}, null, 42, _hoisted_4$
|
|
6811
|
+
}, null, 42, _hoisted_4$5)], 64);
|
|
6746
6812
|
}), 128))])], 2)) : createCommentVNode("", true)
|
|
6747
6813
|
], 2);
|
|
6748
6814
|
};
|
|
@@ -6750,7 +6816,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6750
6816
|
});
|
|
6751
6817
|
//#endregion
|
|
6752
6818
|
//#region src/components/filter-panel/Histogram.vue?vue&type=script&setup=true&lang.ts
|
|
6753
|
-
var _hoisted_1$
|
|
6819
|
+
var _hoisted_1$21 = ["data-inside"];
|
|
6754
6820
|
var ROOT_BASE$1 = "mb-1 flex h-10 w-full items-end gap-0.5";
|
|
6755
6821
|
/** Spec → States, Range: "histogram bars between the thumbs `border-strong`, outside
|
|
6756
6822
|
* `surface-strong`." */
|
|
@@ -6806,6 +6872,7 @@ var Histogram_default = /* @__PURE__ */ defineComponent({
|
|
|
6806
6872
|
}
|
|
6807
6873
|
return (_ctx, _cache) => {
|
|
6808
6874
|
return openBlock(), createElementBlock("div", {
|
|
6875
|
+
"data-eldra-ui": "",
|
|
6809
6876
|
"data-part": "histogram",
|
|
6810
6877
|
class: normalizeClass(rootClass.value),
|
|
6811
6878
|
"aria-hidden": "true"
|
|
@@ -6816,7 +6883,7 @@ var Histogram_default = /* @__PURE__ */ defineComponent({
|
|
|
6816
6883
|
"data-inside": bar.inside ? "true" : "false",
|
|
6817
6884
|
class: normalizeClass(barClass(bar)),
|
|
6818
6885
|
style: normalizeStyle({ height: `${bar.height * 100}%` })
|
|
6819
|
-
}, null, 14, _hoisted_1$
|
|
6886
|
+
}, null, 14, _hoisted_1$21);
|
|
6820
6887
|
}), 128))], 2);
|
|
6821
6888
|
};
|
|
6822
6889
|
}
|
|
@@ -6997,6 +7064,7 @@ var RangeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
6997
7064
|
}
|
|
6998
7065
|
return (_ctx, _cache) => {
|
|
6999
7066
|
return openBlock(), createElementBlock("div", {
|
|
7067
|
+
"data-eldra-ui": "",
|
|
7000
7068
|
"data-part": "range",
|
|
7001
7069
|
class: normalizeClass(rangeClass.value)
|
|
7002
7070
|
}, [createVNode(RangeSlider_default, {
|
|
@@ -7258,6 +7326,7 @@ var Link_default = /* @__PURE__ */ defineComponent({
|
|
|
7258
7326
|
const externalIconClass = computed(() => partClass("inline-block align-[-0.1em] ml-[0.15em] size-3.5", props.classes, "externalIcon"));
|
|
7259
7327
|
return (_ctx, _cache) => {
|
|
7260
7328
|
return openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({
|
|
7329
|
+
"data-eldra-ui": "",
|
|
7261
7330
|
"data-part": "root",
|
|
7262
7331
|
class: rootClass.value
|
|
7263
7332
|
}, rootAttrs.value), {
|
|
@@ -7310,9 +7379,12 @@ var Link_default = /* @__PURE__ */ defineComponent({
|
|
|
7310
7379
|
});
|
|
7311
7380
|
//#endregion
|
|
7312
7381
|
//#region src/components/filter-panel/facets/SizeFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7313
|
-
var _hoisted_1$
|
|
7314
|
-
|
|
7315
|
-
|
|
7382
|
+
var _hoisted_1$20 = {
|
|
7383
|
+
"data-eldra-ui": "",
|
|
7384
|
+
class: "min-w-0"
|
|
7385
|
+
};
|
|
7386
|
+
var _hoisted_2$12 = ["data-value"];
|
|
7387
|
+
var _hoisted_3$6 = [
|
|
7316
7388
|
"value",
|
|
7317
7389
|
"checked",
|
|
7318
7390
|
"disabled",
|
|
@@ -7414,7 +7486,7 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7414
7486
|
const tileLabelClass = computed(() => partClass("", props.classes, "tileLabel"));
|
|
7415
7487
|
const sizeGuideClass = computed(() => partClass(SIZE_GUIDE_BASE, props.classes, "sizeGuide"));
|
|
7416
7488
|
return (_ctx, _cache) => {
|
|
7417
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7489
|
+
return openBlock(), createElementBlock("div", _hoisted_1$20, [(openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (group, index) => {
|
|
7418
7490
|
return openBlock(), createElementBlock(Fragment, { key: group.key ?? "" }, [group.key !== void 0 ? (openBlock(), createElementBlock("p", {
|
|
7419
7491
|
key: 0,
|
|
7420
7492
|
"data-part": "subheading",
|
|
@@ -7436,11 +7508,11 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7436
7508
|
disabled: disabled(value),
|
|
7437
7509
|
"aria-label": nameOf(value),
|
|
7438
7510
|
onChange: ($event) => emit("toggle", value.value, $event.target.checked)
|
|
7439
|
-
}, null, 40, _hoisted_3$
|
|
7511
|
+
}, null, 40, _hoisted_3$6), createElementVNode("span", {
|
|
7440
7512
|
"data-part": "tileLabel",
|
|
7441
7513
|
class: normalizeClass(tileLabelClass.value),
|
|
7442
7514
|
"aria-hidden": "true"
|
|
7443
|
-
}, toDisplayString(value.label), 3)], 10, _hoisted_2$
|
|
7515
|
+
}, toDisplayString(value.label), 3)], 10, _hoisted_2$12);
|
|
7444
7516
|
}), 128))], 2)], 64);
|
|
7445
7517
|
}), 128)), __props.facet.sizeGuideHref ? (openBlock(), createBlock(Link_default, {
|
|
7446
7518
|
key: 0,
|
|
@@ -7456,7 +7528,7 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7456
7528
|
});
|
|
7457
7529
|
//#endregion
|
|
7458
7530
|
//#region src/components/filter-panel/facets/ToggleFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7459
|
-
var _hoisted_1$
|
|
7531
|
+
var _hoisted_1$19 = ["data-value"];
|
|
7460
7532
|
var VALUES_BASE = "flex min-w-0 flex-col gap-1";
|
|
7461
7533
|
/**
|
|
7462
7534
|
* Spec → Sizes, Switch row: "Min 2.25rem tall, space-between, 0.75rem gap."
|
|
@@ -7511,6 +7583,7 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7511
7583
|
const countClass = computed(() => partClass(FACET_COUNT, props.classes, "count"));
|
|
7512
7584
|
return (_ctx, _cache) => {
|
|
7513
7585
|
return openBlock(), createElementBlock("div", {
|
|
7586
|
+
"data-eldra-ui": "",
|
|
7514
7587
|
"data-part": "values",
|
|
7515
7588
|
class: normalizeClass(valuesClass.value)
|
|
7516
7589
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (value) => {
|
|
@@ -7536,22 +7609,22 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7536
7609
|
]), createElementVNode("span", {
|
|
7537
7610
|
"data-part": "count",
|
|
7538
7611
|
class: normalizeClass(countClass.value)
|
|
7539
|
-
}, toDisplayString(value.count), 3)], 10, _hoisted_1$
|
|
7612
|
+
}, toDisplayString(value.count), 3)], 10, _hoisted_1$19);
|
|
7540
7613
|
}), 128))], 2);
|
|
7541
7614
|
};
|
|
7542
7615
|
}
|
|
7543
7616
|
});
|
|
7544
7617
|
//#endregion
|
|
7545
7618
|
//#region src/components/filter-panel/FilterGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7546
|
-
var _hoisted_1$
|
|
7547
|
-
var _hoisted_2$
|
|
7548
|
-
var _hoisted_3$
|
|
7619
|
+
var _hoisted_1$18 = ["data-facet"];
|
|
7620
|
+
var _hoisted_2$11 = { class: "m-0" };
|
|
7621
|
+
var _hoisted_3$5 = [
|
|
7549
7622
|
"id",
|
|
7550
7623
|
"aria-expanded",
|
|
7551
7624
|
"aria-controls"
|
|
7552
7625
|
];
|
|
7553
|
-
var _hoisted_4$
|
|
7554
|
-
var _hoisted_5$
|
|
7626
|
+
var _hoisted_4$4 = { "aria-hidden": "true" };
|
|
7627
|
+
var _hoisted_5$4 = ["id"];
|
|
7555
7628
|
var GROUP_BASE = "border-border border-b";
|
|
7556
7629
|
/**
|
|
7557
7630
|
* Spec → Sizes, Trigger row: "Full width, min 3rem tall, padding 0.75rem 0, gap 0.5rem,
|
|
@@ -7564,11 +7637,6 @@ var GROUP_BASE = "border-border border-b";
|
|
|
7564
7637
|
var TRIGGER_BASE = "flex min-h-12 w-full cursor-pointer items-center gap-2 rounded-sm px-2 py-3 text-start eldra-focus";
|
|
7565
7638
|
/**
|
|
7566
7639
|
* Spec → Sizes, Trigger row: "0.9375rem weight 600"; → States, hover: "name underlined 1px".
|
|
7567
|
-
*
|
|
7568
|
-
* `text-filter-trigger`, not `text-control font-semibold`: `text-control`'s `font` shorthand bakes
|
|
7569
|
-
* in `--eldra-text-body-weight` (400), so a trailing `font-semibold` is order-dependent rather than
|
|
7570
|
-
* reliable (`tailwind.css`'s comment on `text-stepper-value` explains the same bug on a different
|
|
7571
|
-
* component) — it rendered the facet name at weight 400 live and in every committed baseline.
|
|
7572
7640
|
*/
|
|
7573
7641
|
var LABEL_BASE = "min-w-0 shrink-0 text-filter-trigger text-text group-hover/trigger:underline group-hover/trigger:decoration-1 group-hover/trigger:underline-offset-[0.2em]";
|
|
7574
7642
|
/**
|
|
@@ -7660,10 +7728,11 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7660
7728
|
const badgeClass = computed(() => partClass(BADGE_BASE, props.classes, "badge"));
|
|
7661
7729
|
return (_ctx, _cache) => {
|
|
7662
7730
|
return openBlock(), createElementBlock("div", {
|
|
7731
|
+
"data-eldra-ui": "",
|
|
7663
7732
|
"data-part": "group",
|
|
7664
7733
|
"data-facet": __props.facet.id,
|
|
7665
7734
|
class: normalizeClass(groupClass.value)
|
|
7666
|
-
}, [createElementVNode("h3", _hoisted_2$
|
|
7735
|
+
}, [createElementVNode("h3", _hoisted_2$11, [createElementVNode("button", {
|
|
7667
7736
|
ref_key: "triggerEl",
|
|
7668
7737
|
ref: triggerEl,
|
|
7669
7738
|
type: "button",
|
|
@@ -7686,7 +7755,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7686
7755
|
classes: { root: badgeClass.value },
|
|
7687
7756
|
"hidden-suffix": unref(m).selectedCount(__props.count)
|
|
7688
7757
|
}, {
|
|
7689
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_4$
|
|
7758
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_4$4, toDisplayString(__props.count), 1)]),
|
|
7690
7759
|
_: 1
|
|
7691
7760
|
}, 8, ["classes", "hidden-suffix"])) : createCommentVNode("", true),
|
|
7692
7761
|
__props.summary.length > 0 ? (openBlock(), createElementBlock("span", {
|
|
@@ -7706,7 +7775,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7706
7775
|
"aria-hidden": "true",
|
|
7707
7776
|
focusable: "false"
|
|
7708
7777
|
}, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M6 9l6 6l6 -6" }, null, -1)])], 2))
|
|
7709
|
-
], 10, _hoisted_3$
|
|
7778
|
+
], 10, _hoisted_3$5)]), withDirectives(createElementVNode("fieldset", {
|
|
7710
7779
|
"data-part": "body",
|
|
7711
7780
|
id: __props.panelId,
|
|
7712
7781
|
class: normalizeClass(bodyClass.value),
|
|
@@ -7717,14 +7786,14 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7717
7786
|
}, {
|
|
7718
7787
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.facet.label), 1)]),
|
|
7719
7788
|
_: 1
|
|
7720
|
-
}, 8, ["classes"]), renderSlot(_ctx.$slots, "default")], 42, _hoisted_5$
|
|
7789
|
+
}, 8, ["classes"]), renderSlot(_ctx.$slots, "default")], 42, _hoisted_5$4), [[vShow, __props.open]])], 10, _hoisted_1$18);
|
|
7721
7790
|
};
|
|
7722
7791
|
}
|
|
7723
7792
|
});
|
|
7724
7793
|
//#endregion
|
|
7725
7794
|
//#region src/components/filter-panel/FilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7726
|
-
var _hoisted_1$
|
|
7727
|
-
var _hoisted_2$
|
|
7795
|
+
var _hoisted_1$17 = ["aria-label"];
|
|
7796
|
+
var _hoisted_2$10 = ["aria-label"];
|
|
7728
7797
|
var ROOT_BASE = "@container min-w-0 text-control text-text";
|
|
7729
7798
|
/**
|
|
7730
7799
|
* The gutter the rows' own bleed needs, and it is load-bearing. The spec gives every option and
|
|
@@ -7942,6 +8011,7 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
7942
8011
|
const groupId = (facet, part) => `${idPrefix.value}-${part}-${facet.id.replaceAll(/[^\w-]/g, "-")}`;
|
|
7943
8012
|
return (_ctx, _cache) => {
|
|
7944
8013
|
return openBlock(), createElementBlock("form", {
|
|
8014
|
+
"data-eldra-ui": "",
|
|
7945
8015
|
"data-part": "root",
|
|
7946
8016
|
class: normalizeClass(rootClass.value),
|
|
7947
8017
|
"aria-label": __props.label ?? unref(m).filterPanelLabel,
|
|
@@ -7995,7 +8065,7 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
7995
8065
|
"messages",
|
|
7996
8066
|
"onRemove"
|
|
7997
8067
|
])]);
|
|
7998
|
-
}), 128))], 10, _hoisted_2$
|
|
8068
|
+
}), 128))], 10, _hoisted_2$10)) : createCommentVNode("", true),
|
|
7999
8069
|
(openBlock(true), createElementBlock(Fragment, null, renderList(drawn.value, (facet, index) => {
|
|
8000
8070
|
return openBlock(), createBlock(FilterGroup_default, {
|
|
8001
8071
|
key: facet.id,
|
|
@@ -8148,17 +8218,17 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
8148
8218
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.resultCount === null ? unref(m).filterPanelShowProducts : unref(m).filterPanelShowResults(__props.resultCount)), 1)]),
|
|
8149
8219
|
_: 1
|
|
8150
8220
|
})])], 2)) : createCommentVNode("", true)
|
|
8151
|
-
], 42, _hoisted_1$
|
|
8221
|
+
], 42, _hoisted_1$17);
|
|
8152
8222
|
};
|
|
8153
8223
|
}
|
|
8154
8224
|
});
|
|
8155
8225
|
//#endregion
|
|
8156
8226
|
//#region src/components/lightbox/Lightbox.vue?vue&type=script&setup=true&lang.ts
|
|
8157
|
-
var _hoisted_1$
|
|
8158
|
-
var _hoisted_2$
|
|
8159
|
-
var _hoisted_3$
|
|
8160
|
-
var _hoisted_4$
|
|
8161
|
-
var _hoisted_5$
|
|
8227
|
+
var _hoisted_1$16 = ["aria-label"];
|
|
8228
|
+
var _hoisted_2$9 = { key: 1 };
|
|
8229
|
+
var _hoisted_3$4 = ["aria-label"];
|
|
8230
|
+
var _hoisted_4$3 = ["disabled", "aria-label"];
|
|
8231
|
+
var _hoisted_5$3 = ["aria-label"];
|
|
8162
8232
|
var _hoisted_6 = ["disabled", "aria-label"];
|
|
8163
8233
|
var _hoisted_7 = [
|
|
8164
8234
|
"aria-current",
|
|
@@ -8416,6 +8486,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8416
8486
|
return openBlock(), createElementBlock("dialog", {
|
|
8417
8487
|
ref_key: "dialogEl",
|
|
8418
8488
|
ref: dialogEl,
|
|
8489
|
+
"data-eldra-ui": "",
|
|
8419
8490
|
"data-part": "root",
|
|
8420
8491
|
class: normalizeClass(rootClass.value),
|
|
8421
8492
|
"aria-label": __props.ariaLabel,
|
|
@@ -8431,7 +8502,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8431
8502
|
"data-part": "counter",
|
|
8432
8503
|
"aria-hidden": "true",
|
|
8433
8504
|
class: normalizeClass(counterClass.value)
|
|
8434
|
-
}, toDisplayString(unref(m).counter(unref(carouselIndex) + 1, unref(count))), 3)) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
8505
|
+
}, toDisplayString(unref(m).counter(unref(carouselIndex) + 1, unref(count))), 3)) : (openBlock(), createElementBlock("span", _hoisted_2$9)), createElementVNode("button", {
|
|
8435
8506
|
ref_key: "closeButtonEl",
|
|
8436
8507
|
ref: closeButtonEl,
|
|
8437
8508
|
type: "button",
|
|
@@ -8449,7 +8520,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8449
8520
|
"stroke-linejoin": "round",
|
|
8450
8521
|
"aria-hidden": "true",
|
|
8451
8522
|
focusable: "false"
|
|
8452
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$
|
|
8523
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$4)]),
|
|
8453
8524
|
createElementVNode("div", { class: normalizeClass(stageClass.value) }, [
|
|
8454
8525
|
!single.value ? (openBlock(), createElementBlock("button", {
|
|
8455
8526
|
key: 0,
|
|
@@ -8471,7 +8542,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8471
8542
|
"stroke-linejoin": "round",
|
|
8472
8543
|
"aria-hidden": "true",
|
|
8473
8544
|
focusable: "false"
|
|
8474
|
-
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$
|
|
8545
|
+
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$3)) : createCommentVNode("", true),
|
|
8475
8546
|
createElementVNode("div", {
|
|
8476
8547
|
ref_key: "trackRef",
|
|
8477
8548
|
ref: trackRef,
|
|
@@ -8510,7 +8581,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8510
8581
|
"alt",
|
|
8511
8582
|
"caption"
|
|
8512
8583
|
])) : createCommentVNode("", true)], 2);
|
|
8513
|
-
}), 128))], 14, _hoisted_5$
|
|
8584
|
+
}), 128))], 14, _hoisted_5$3),
|
|
8514
8585
|
!single.value ? (openBlock(), createElementBlock("button", {
|
|
8515
8586
|
key: 1,
|
|
8516
8587
|
ref_key: "nextButtonRef",
|
|
@@ -8556,14 +8627,14 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8556
8627
|
fit: "cover"
|
|
8557
8628
|
}, null, 8, ["media"])], 10, _hoisted_7);
|
|
8558
8629
|
}), 128))], 2)) : createCommentVNode("", true)
|
|
8559
|
-
], 2)], 42, _hoisted_1$
|
|
8630
|
+
], 2)], 42, _hoisted_1$16);
|
|
8560
8631
|
};
|
|
8561
8632
|
}
|
|
8562
8633
|
});
|
|
8563
8634
|
//#endregion
|
|
8564
8635
|
//#region src/components/load-more/LoadMore.vue?vue&type=script&setup=true&lang.ts
|
|
8565
|
-
var _hoisted_1$
|
|
8566
|
-
var _hoisted_2$
|
|
8636
|
+
var _hoisted_1$15 = ["id"];
|
|
8637
|
+
var _hoisted_2$8 = ["aria-describedby", "aria-busy"];
|
|
8567
8638
|
var meterTrackClass = "h-1 w-full max-w-56 overflow-hidden rounded-full bg-surface-strong";
|
|
8568
8639
|
var meterFillClass = "h-full rounded-full bg-text transition-[width] duration-base ease-out motion-reduce:transition-none";
|
|
8569
8640
|
//#endregion
|
|
@@ -8605,9 +8676,10 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
|
|
|
8605
8676
|
* the 14rem the spec gives (56 × the shared 0.25rem spacing unit), paired with `w-full` for the
|
|
8606
8677
|
* "100%" half of the `min()` on a narrower container. States: "track `surface-strong` … fill
|
|
8607
8678
|
* `text`." Accessibility: "the meter is `aria-hidden`." */
|
|
8608
|
-
const buttonClass = computed(() => partClass(cx("relative inline-flex items-center justify-center control-h gap-2 rounded-md border px-4.5", "border-border-strong bg-background text-text text-button-md
|
|
8679
|
+
const buttonClass = computed(() => partClass(cx("relative inline-flex items-center justify-center control-h gap-2 rounded-md border px-4.5", "border-border-strong bg-background text-text text-button-md cursor-pointer", "eldra-focus hover:border-text hover:bg-surface", "active:scale-[0.98] motion-reduce:active:scale-100"), props.classes, "button"));
|
|
8609
8680
|
return (_ctx, _cache) => {
|
|
8610
8681
|
return openBlock(), createElementBlock("div", {
|
|
8682
|
+
"data-eldra-ui": "",
|
|
8611
8683
|
"data-part": "root",
|
|
8612
8684
|
class: normalizeClass(rootClass.value)
|
|
8613
8685
|
}, [
|
|
@@ -8617,7 +8689,7 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
|
|
|
8617
8689
|
class: normalizeClass(statusClass.value),
|
|
8618
8690
|
role: "status",
|
|
8619
8691
|
"aria-live": "polite"
|
|
8620
|
-
}, toDisplayString(unref(m).showingOf(__props.shown, __props.total, __props.noun)), 11, _hoisted_1$
|
|
8692
|
+
}, toDisplayString(unref(m).showingOf(__props.shown, __props.total, __props.noun)), 11, _hoisted_1$15),
|
|
8621
8693
|
createElementVNode("div", {
|
|
8622
8694
|
class: normalizeClass(meterTrackClass),
|
|
8623
8695
|
"aria-hidden": "true"
|
|
@@ -8636,15 +8708,15 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
|
|
|
8636
8708
|
}, [__props.pending ? (openBlock(), createBlock(Spinner_default, {
|
|
8637
8709
|
key: 0,
|
|
8638
8710
|
class: "size-4.5"
|
|
8639
|
-
})) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_2$
|
|
8711
|
+
})) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_2$8)) : createCommentVNode("", true)
|
|
8640
8712
|
], 2);
|
|
8641
8713
|
};
|
|
8642
8714
|
}
|
|
8643
8715
|
});
|
|
8644
8716
|
//#endregion
|
|
8645
8717
|
//#region src/components/logo-item/LogoItem.vue?vue&type=script&setup=true&lang.ts
|
|
8646
|
-
var _hoisted_1$
|
|
8647
|
-
var _hoisted_2$
|
|
8718
|
+
var _hoisted_1$14 = ["data-part"];
|
|
8719
|
+
var _hoisted_2$7 = [
|
|
8648
8720
|
"src",
|
|
8649
8721
|
"srcset",
|
|
8650
8722
|
"sizes",
|
|
@@ -8652,7 +8724,7 @@ var _hoisted_2$5 = [
|
|
|
8652
8724
|
"height",
|
|
8653
8725
|
"alt"
|
|
8654
8726
|
];
|
|
8655
|
-
var _hoisted_3$
|
|
8727
|
+
var _hoisted_3$3 = [
|
|
8656
8728
|
"src",
|
|
8657
8729
|
"srcset",
|
|
8658
8730
|
"sizes",
|
|
@@ -8758,6 +8830,7 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8758
8830
|
const srTextClass = computed(() => partClass("sr-only", props.classes, "srText"));
|
|
8759
8831
|
return (_ctx, _cache) => {
|
|
8760
8832
|
return openBlock(), createElementBlock("li", {
|
|
8833
|
+
"data-eldra-ui": "",
|
|
8761
8834
|
"data-part": hasHref.value ? void 0 : "root",
|
|
8762
8835
|
class: normalizeClass(hasHref.value ? void 0 : rootClass.value)
|
|
8763
8836
|
}, [hasHref.value ? (openBlock(), createBlock(resolveDynamicComponent(cellTag.value), mergeProps({
|
|
@@ -8777,7 +8850,7 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8777
8850
|
alt: __props.name,
|
|
8778
8851
|
loading: "lazy",
|
|
8779
8852
|
decoding: "async"
|
|
8780
|
-
}, null, 10, _hoisted_2$
|
|
8853
|
+
}, null, 10, _hoisted_2$7)) : (openBlock(), createElementBlock("span", {
|
|
8781
8854
|
key: 1,
|
|
8782
8855
|
"data-part": "wordmark",
|
|
8783
8856
|
class: normalizeClass(wordmarkClass.value)
|
|
@@ -8799,11 +8872,745 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8799
8872
|
alt: __props.name,
|
|
8800
8873
|
loading: "lazy",
|
|
8801
8874
|
decoding: "async"
|
|
8802
|
-
}, null, 10, _hoisted_3$
|
|
8875
|
+
}, null, 10, _hoisted_3$3)) : (openBlock(), createElementBlock("span", {
|
|
8803
8876
|
key: 1,
|
|
8804
8877
|
"data-part": "wordmark",
|
|
8805
8878
|
class: normalizeClass(wordmarkClass.value)
|
|
8806
|
-
}, toDisplayString(__props.name), 3))], 64))], 10, _hoisted_1$
|
|
8879
|
+
}, toDisplayString(__props.name), 3))], 64))], 10, _hoisted_1$14);
|
|
8880
|
+
};
|
|
8881
|
+
}
|
|
8882
|
+
});
|
|
8883
|
+
//#endregion
|
|
8884
|
+
//#region src/components/nav-menu/navLinks.ts
|
|
8885
|
+
/** How the page the visitor is on is marked, on every kind of link the menu draws. */
|
|
8886
|
+
var CURRENT_PAGE = "aria-[current=page]:underline aria-[current=page]:decoration-2 aria-[current=page]:underline-offset-[0.2em]";
|
|
8887
|
+
/** Whether an entry has visible text to render. */
|
|
8888
|
+
function isRenderableLink(link) {
|
|
8889
|
+
return typeof link.label === "string" && link.label.trim() !== "";
|
|
8890
|
+
}
|
|
8891
|
+
/** The entries a panel draws, without the ones that have nothing to show. */
|
|
8892
|
+
function panelLinks(item) {
|
|
8893
|
+
return (item.children ?? []).filter(isRenderableLink);
|
|
8894
|
+
}
|
|
8895
|
+
/** Whether a top-level entry opens a panel rather than being a plain link. */
|
|
8896
|
+
function hasPanel(item) {
|
|
8897
|
+
return panelLinks(item).length > 0;
|
|
8898
|
+
}
|
|
8899
|
+
/** Groups entries by their `group`, keeping the order each group first appears in. */
|
|
8900
|
+
function groupLinks(links) {
|
|
8901
|
+
const groups = [];
|
|
8902
|
+
const byName = /* @__PURE__ */ new Map();
|
|
8903
|
+
for (const link of links) {
|
|
8904
|
+
const name = typeof link.group === "string" && link.group.trim() !== "" ? link.group : null;
|
|
8905
|
+
let group = byName.get(name);
|
|
8906
|
+
if (group === void 0) {
|
|
8907
|
+
group = {
|
|
8908
|
+
group: name,
|
|
8909
|
+
links: []
|
|
8910
|
+
};
|
|
8911
|
+
byName.set(name, group);
|
|
8912
|
+
groups.push(group);
|
|
8913
|
+
}
|
|
8914
|
+
group.links.push(link);
|
|
8915
|
+
}
|
|
8916
|
+
return groups;
|
|
8917
|
+
}
|
|
8918
|
+
/** The panel's layout: the item's own, else `mega` when its entries are grouped into columns. */
|
|
8919
|
+
function panelLayout(item) {
|
|
8920
|
+
if (item.layout !== void 0) return item.layout;
|
|
8921
|
+
return panelLinks(item).some((link) => typeof link.group === "string" && link.group.trim() !== "") ? "mega" : "dropdown";
|
|
8922
|
+
}
|
|
8923
|
+
/** Whether the item, or an entry in its panel, is the page the visitor is on. */
|
|
8924
|
+
function containsCurrent(item) {
|
|
8925
|
+
return item.current === true || panelLinks(item).some((link) => link.current === true);
|
|
8926
|
+
}
|
|
8927
|
+
/** Whether an entry goes somewhere; one without a destination renders as plain text. */
|
|
8928
|
+
function hasHref(link) {
|
|
8929
|
+
return typeof link.href === "string" && link.href !== "";
|
|
8930
|
+
}
|
|
8931
|
+
/** The element an entry renders as: `linkAs` (or `a`) with a destination, else `span`. */
|
|
8932
|
+
function navLinkTag(link, linkAs) {
|
|
8933
|
+
return hasHref(link) ? linkAs ?? "a" : "span";
|
|
8934
|
+
}
|
|
8935
|
+
/** An entry's link attributes; a component `linkAs` takes the destination as `to`. */
|
|
8936
|
+
function navLinkAttrs(link, linkAs) {
|
|
8937
|
+
if (!hasHref(link)) return {};
|
|
8938
|
+
const attrs = linkAs !== void 0 && typeof linkAs !== "string" ? { to: link.href } : { href: link.href };
|
|
8939
|
+
if (link.newTab === true) {
|
|
8940
|
+
attrs.target = "_blank";
|
|
8941
|
+
attrs.rel = "noopener noreferrer";
|
|
8942
|
+
}
|
|
8943
|
+
if (link.current === true) attrs["aria-current"] = "page";
|
|
8944
|
+
return attrs;
|
|
8945
|
+
}
|
|
8946
|
+
//#endregion
|
|
8947
|
+
//#region src/components/nav-menu/NavMenuPanel.vue?vue&type=script&setup=true&lang.ts
|
|
8948
|
+
var _hoisted_1$13 = ["id"];
|
|
8949
|
+
var _hoisted_2$6 = ["aria-labelledby"];
|
|
8950
|
+
//#endregion
|
|
8951
|
+
//#region src/components/nav-menu/NavMenuPanel.vue
|
|
8952
|
+
var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
8953
|
+
__name: "NavMenuPanel",
|
|
8954
|
+
props: {
|
|
8955
|
+
item: {},
|
|
8956
|
+
idPrefix: {},
|
|
8957
|
+
placement: {},
|
|
8958
|
+
variant: {},
|
|
8959
|
+
messages: {},
|
|
8960
|
+
linkAs: {},
|
|
8961
|
+
classes: {}
|
|
8962
|
+
},
|
|
8963
|
+
setup(__props) {
|
|
8964
|
+
const props = __props;
|
|
8965
|
+
const links = computed(() => panelLinks(props.item));
|
|
8966
|
+
const groups = computed(() => groupLinks(links.value));
|
|
8967
|
+
const grouped = computed(() => groups.value.some((group) => group.group !== null));
|
|
8968
|
+
const mega = computed(() => props.placement === "bar" && panelLayout(props.item) === "mega");
|
|
8969
|
+
const bar = computed(() => props.placement === "bar");
|
|
8970
|
+
/** A bar entry's colour at rest, and what a link adds on hover and as the current page. */
|
|
8971
|
+
const BAR_ENTRY = {
|
|
8972
|
+
ghost: "text-text",
|
|
8973
|
+
muted: "text-muted"
|
|
8974
|
+
};
|
|
8975
|
+
const BAR_LINK = {
|
|
8976
|
+
ghost: "hover:bg-surface",
|
|
8977
|
+
muted: "hover:text-text aria-[current=page]:text-text"
|
|
8978
|
+
};
|
|
8979
|
+
function headingId(index) {
|
|
8980
|
+
return `${props.idPrefix}-group-${index}`;
|
|
8981
|
+
}
|
|
8982
|
+
const overviewClass = computed(() => partClass(cx("flex rounded-md text-body font-semibold eldra-focus", bar.value ? cx("mb-2 px-3 py-2", BAR_ENTRY[props.variant], BAR_LINK[props.variant]) : "py-2.5 text-text", CURRENT_PAGE), props.classes, "overview"));
|
|
8983
|
+
const columnsClass = computed(() => {
|
|
8984
|
+
if (!grouped.value) return partClass("", props.classes, "columns");
|
|
8985
|
+
return partClass(bar.value ? "grid eldra-nav-menu-columns gap-6" : "flex flex-col gap-4", props.classes, "columns");
|
|
8986
|
+
});
|
|
8987
|
+
const groupClass = computed(() => partClass("flex min-w-0 flex-col", props.classes, "group"));
|
|
8988
|
+
const groupHeadingClass = computed(() => partClass(cx("pb-1 text-overline text-muted", bar.value && "px-3"), props.classes, "groupHeading"));
|
|
8989
|
+
const panelListClass = computed(() => partClass(mega.value && !grouped.value ? "grid eldra-nav-menu-columns gap-x-6 gap-y-0.5" : "flex flex-col gap-0.5", props.classes, "panelList"));
|
|
8990
|
+
const panelItemClass = computed(() => partClass("", props.classes, "panelItem"));
|
|
8991
|
+
function panelLinkClass(link) {
|
|
8992
|
+
return partClass(cx("flex flex-col gap-0.5 rounded-md", bar.value ? cx("px-3 py-2", BAR_ENTRY[props.variant]) : "py-2.5 text-text", hasHref(link) && "eldra-focus", hasHref(link) && bar.value && BAR_LINK[props.variant], CURRENT_PAGE), props.classes, "panelLink");
|
|
8993
|
+
}
|
|
8994
|
+
const panelLabelClass = computed(() => partClass("flex flex-wrap items-center gap-x-2 gap-y-1 text-body font-medium", props.classes, "panelLabel"));
|
|
8995
|
+
const descriptionClass = computed(() => partClass("text-body-sm text-muted", props.classes, "description"));
|
|
8996
|
+
const badgeClasses = computed(() => props.classes?.badge === void 0 ? void 0 : { root: props.classes.badge });
|
|
8997
|
+
return (_ctx, _cache) => {
|
|
8998
|
+
return openBlock(), createElementBlock(Fragment, null, [unref(hasHref)(__props.item) ? (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(__props.item, __props.linkAs)), mergeProps({
|
|
8999
|
+
key: 0,
|
|
9000
|
+
"data-eldra-ui": "",
|
|
9001
|
+
"data-part": "overview",
|
|
9002
|
+
class: overviewClass.value
|
|
9003
|
+
}, unref(navLinkAttrs)(__props.item, __props.linkAs)), {
|
|
9004
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.messages.navMenuOverview(__props.item.label ?? "")) + " ", 1), __props.item.newTab ? (openBlock(), createBlock(VisuallyHidden_default, { key: 0 }, {
|
|
9005
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.messages.opensInNewTab), 1)]),
|
|
9006
|
+
_: 1
|
|
9007
|
+
})) : createCommentVNode("", true)]),
|
|
9008
|
+
_: 1
|
|
9009
|
+
}, 16, ["class"])) : createCommentVNode("", true), createElementVNode("div", {
|
|
9010
|
+
"data-eldra-ui": "",
|
|
9011
|
+
"data-part": "columns",
|
|
9012
|
+
class: normalizeClass(columnsClass.value)
|
|
9013
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (group, index) => {
|
|
9014
|
+
return openBlock(), createElementBlock("div", {
|
|
9015
|
+
key: index,
|
|
9016
|
+
"data-part": "group",
|
|
9017
|
+
class: normalizeClass(groupClass.value)
|
|
9018
|
+
}, [group.group !== null ? (openBlock(), createElementBlock("span", {
|
|
9019
|
+
key: 0,
|
|
9020
|
+
id: headingId(index),
|
|
9021
|
+
"data-part": "groupHeading",
|
|
9022
|
+
class: normalizeClass(groupHeadingClass.value)
|
|
9023
|
+
}, [renderSlot(_ctx.$slots, "groupHeading", {
|
|
9024
|
+
group: group.group,
|
|
9025
|
+
links: group.links,
|
|
9026
|
+
item: __props.item
|
|
9027
|
+
}, () => [createTextVNode(toDisplayString(group.group), 1)])], 10, _hoisted_1$13)) : createCommentVNode("", true), createElementVNode("ul", {
|
|
9028
|
+
"data-part": "panelList",
|
|
9029
|
+
class: normalizeClass(panelListClass.value),
|
|
9030
|
+
"aria-labelledby": group.group !== null ? headingId(index) : void 0
|
|
9031
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(group.links, (link, at) => {
|
|
9032
|
+
return openBlock(), createElementBlock("li", {
|
|
9033
|
+
key: at,
|
|
9034
|
+
"data-part": "panelItem",
|
|
9035
|
+
class: normalizeClass(panelItemClass.value)
|
|
9036
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(link, __props.linkAs)), mergeProps({
|
|
9037
|
+
"data-part": "panelLink",
|
|
9038
|
+
class: panelLinkClass(link)
|
|
9039
|
+
}, { ref_for: true }, unref(navLinkAttrs)(link, __props.linkAs)), {
|
|
9040
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "panelItem", {
|
|
9041
|
+
link,
|
|
9042
|
+
item: __props.item
|
|
9043
|
+
}, () => [createElementVNode("span", {
|
|
9044
|
+
"data-part": "panelLabel",
|
|
9045
|
+
class: normalizeClass(panelLabelClass.value)
|
|
9046
|
+
}, [createTextVNode(toDisplayString(link.label) + " ", 1), link.badge ? (openBlock(), createBlock(Badge_default, {
|
|
9047
|
+
key: 0,
|
|
9048
|
+
label: link.badge,
|
|
9049
|
+
classes: badgeClasses.value
|
|
9050
|
+
}, null, 8, ["label", "classes"])) : createCommentVNode("", true)], 2), link.description ? (openBlock(), createElementBlock("span", {
|
|
9051
|
+
key: 0,
|
|
9052
|
+
"data-part": "description",
|
|
9053
|
+
class: normalizeClass(descriptionClass.value)
|
|
9054
|
+
}, toDisplayString(link.description), 3)) : createCommentVNode("", true)]), link.newTab && unref(hasHref)(link) ? (openBlock(), createBlock(VisuallyHidden_default, { key: 0 }, {
|
|
9055
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.messages.opensInNewTab), 1)]),
|
|
9056
|
+
_: 1
|
|
9057
|
+
})) : createCommentVNode("", true)]),
|
|
9058
|
+
_: 2
|
|
9059
|
+
}, 1040, ["class"]))], 2);
|
|
9060
|
+
}), 128))], 10, _hoisted_2$6)], 2);
|
|
9061
|
+
}), 128))], 2)], 64);
|
|
9062
|
+
};
|
|
9063
|
+
}
|
|
9064
|
+
});
|
|
9065
|
+
//#endregion
|
|
9066
|
+
//#region src/components/nav-menu/navMenuKeys.ts
|
|
9067
|
+
var PANEL_FOCUSABLE = "a[href], button:not([disabled])";
|
|
9068
|
+
var TYPING = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])";
|
|
9069
|
+
function clamp(position, length) {
|
|
9070
|
+
return Math.min(Math.max(position, 0), length - 1);
|
|
9071
|
+
}
|
|
9072
|
+
/**
|
|
9073
|
+
* The arrow keys of the APG disclosure navigation pattern, over the bar's own DOM: Left/Right and
|
|
9074
|
+
* Home/End along the bar, Down/Up into and through a panel. Clamped, never wrapping.
|
|
9075
|
+
*/
|
|
9076
|
+
function useNavMenuKeys(options) {
|
|
9077
|
+
function rows() {
|
|
9078
|
+
return Array.from(options.list.value?.children ?? []);
|
|
9079
|
+
}
|
|
9080
|
+
function topLevel() {
|
|
9081
|
+
const items = [];
|
|
9082
|
+
rows().forEach((row, position) => {
|
|
9083
|
+
const el = row.firstElementChild;
|
|
9084
|
+
if (el instanceof HTMLElement && el.matches("button, [href]")) items.push({
|
|
9085
|
+
el,
|
|
9086
|
+
index: options.indexAt(position)
|
|
9087
|
+
});
|
|
9088
|
+
});
|
|
9089
|
+
return items;
|
|
9090
|
+
}
|
|
9091
|
+
function panelLinks(index) {
|
|
9092
|
+
const panel = options.panel(index);
|
|
9093
|
+
return panel === null ? [] : Array.from(panel.querySelectorAll(PANEL_FOCUSABLE));
|
|
9094
|
+
}
|
|
9095
|
+
function focusPanelEdge(index, edge) {
|
|
9096
|
+
nextTick(() => {
|
|
9097
|
+
const links = panelLinks(index);
|
|
9098
|
+
(edge === "first" ? links[0] : links[links.length - 1])?.focus();
|
|
9099
|
+
});
|
|
9100
|
+
}
|
|
9101
|
+
function focusTopLevel(target) {
|
|
9102
|
+
if (options.openIndex.value !== null) {
|
|
9103
|
+
if (options.panel(target.index) === null) options.close();
|
|
9104
|
+
else options.open(target.index);
|
|
9105
|
+
}
|
|
9106
|
+
target.el.focus();
|
|
9107
|
+
}
|
|
9108
|
+
function travel(index, event) {
|
|
9109
|
+
const items = topLevel();
|
|
9110
|
+
if (items.length === 0) return;
|
|
9111
|
+
const position = items.findIndex((item) => item.index === index);
|
|
9112
|
+
let next;
|
|
9113
|
+
switch (event.key) {
|
|
9114
|
+
case "ArrowRight":
|
|
9115
|
+
case "ArrowLeft":
|
|
9116
|
+
if (position === -1) return;
|
|
9117
|
+
event.preventDefault();
|
|
9118
|
+
next = clamp(position + (event.key === "ArrowRight" ? 1 : -1), items.length);
|
|
9119
|
+
if (next === position) return;
|
|
9120
|
+
break;
|
|
9121
|
+
case "Home":
|
|
9122
|
+
event.preventDefault();
|
|
9123
|
+
next = 0;
|
|
9124
|
+
break;
|
|
9125
|
+
case "End":
|
|
9126
|
+
event.preventDefault();
|
|
9127
|
+
next = items.length - 1;
|
|
9128
|
+
break;
|
|
9129
|
+
default: return;
|
|
9130
|
+
}
|
|
9131
|
+
focusTopLevel(items[next]);
|
|
9132
|
+
}
|
|
9133
|
+
function onTriggerKey(index, event) {
|
|
9134
|
+
if (event.key !== "ArrowDown" && event.key !== "ArrowUp") {
|
|
9135
|
+
travel(index, event);
|
|
9136
|
+
return;
|
|
9137
|
+
}
|
|
9138
|
+
event.preventDefault();
|
|
9139
|
+
options.open(index);
|
|
9140
|
+
focusPanelEdge(index, event.key === "ArrowDown" ? "first" : "last");
|
|
9141
|
+
}
|
|
9142
|
+
function onPanelKey(index, event) {
|
|
9143
|
+
switch (event.key) {
|
|
9144
|
+
case "ArrowDown":
|
|
9145
|
+
case "ArrowUp": {
|
|
9146
|
+
event.preventDefault();
|
|
9147
|
+
const down = event.key === "ArrowDown";
|
|
9148
|
+
const links = panelLinks(index);
|
|
9149
|
+
const active = document.activeElement;
|
|
9150
|
+
const at = links.findIndex((link) => link === active || link.contains(active));
|
|
9151
|
+
if (at === -1) focusPanelEdge(index, down ? "first" : "last");
|
|
9152
|
+
else links[clamp(at + (down ? 1 : -1), links.length)]?.focus();
|
|
9153
|
+
return;
|
|
9154
|
+
}
|
|
9155
|
+
case "Home":
|
|
9156
|
+
case "End":
|
|
9157
|
+
event.preventDefault();
|
|
9158
|
+
focusPanelEdge(index, event.key === "Home" ? "first" : "last");
|
|
9159
|
+
return;
|
|
9160
|
+
default: travel(index, event);
|
|
9161
|
+
}
|
|
9162
|
+
}
|
|
9163
|
+
return (event) => {
|
|
9164
|
+
if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return;
|
|
9165
|
+
const target = event.target;
|
|
9166
|
+
if (!(target instanceof Element) || target.matches(TYPING)) return;
|
|
9167
|
+
const row = target.closest("[data-part=\"item\"]");
|
|
9168
|
+
const list = options.list.value;
|
|
9169
|
+
if (row === null || list === null || row.parentElement !== list) return;
|
|
9170
|
+
const index = options.indexAt(rows().indexOf(row));
|
|
9171
|
+
if (options.panel(index)?.contains(target) === true) onPanelKey(index, event);
|
|
9172
|
+
else if (target === row.firstElementChild) {
|
|
9173
|
+
if (target.matches("button")) onTriggerKey(index, event);
|
|
9174
|
+
else travel(index, event);
|
|
9175
|
+
}
|
|
9176
|
+
};
|
|
9177
|
+
}
|
|
9178
|
+
//#endregion
|
|
9179
|
+
//#region src/components/nav-menu/NavMenu.vue?vue&type=script&setup=true&lang.ts
|
|
9180
|
+
var _hoisted_1$12 = ["aria-label"];
|
|
9181
|
+
var _hoisted_2$5 = [
|
|
9182
|
+
"aria-expanded",
|
|
9183
|
+
"aria-controls",
|
|
9184
|
+
"data-current",
|
|
9185
|
+
"onClick",
|
|
9186
|
+
"onPointerenter"
|
|
9187
|
+
];
|
|
9188
|
+
var _hoisted_3$2 = ["id"];
|
|
9189
|
+
var _hoisted_4$2 = [
|
|
9190
|
+
"aria-label",
|
|
9191
|
+
"aria-expanded",
|
|
9192
|
+
"aria-controls"
|
|
9193
|
+
];
|
|
9194
|
+
var _hoisted_5$2 = ["aria-label"];
|
|
9195
|
+
var HOVER_INTENT_MS = 150;
|
|
9196
|
+
var HOVER_FILL = "hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]";
|
|
9197
|
+
/** A top-level entry's colours at rest, hovered, open (`aria-expanded`) and current. */
|
|
9198
|
+
var TOP_LEVEL = "inline-flex min-h-10 cursor-pointer items-center gap-1 rounded-md px-3 text-body font-medium eldra-focus";
|
|
9199
|
+
//#endregion
|
|
9200
|
+
//#region src/components/nav-menu/NavMenu.vue
|
|
9201
|
+
var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
9202
|
+
__name: "NavMenu",
|
|
9203
|
+
props: {
|
|
9204
|
+
items: {},
|
|
9205
|
+
variant: { default: "ghost" },
|
|
9206
|
+
modelValue: { default: void 0 },
|
|
9207
|
+
drawerOpen: {
|
|
9208
|
+
type: Boolean,
|
|
9209
|
+
default: void 0
|
|
9210
|
+
},
|
|
9211
|
+
ariaLabel: { default: void 0 },
|
|
9212
|
+
collapseBelow: { default: "lg" },
|
|
9213
|
+
drawerSide: { default: "left" },
|
|
9214
|
+
openOnHover: {
|
|
9215
|
+
type: Boolean,
|
|
9216
|
+
default: false
|
|
9217
|
+
},
|
|
9218
|
+
linkAs: { default: void 0 },
|
|
9219
|
+
messages: { default: void 0 },
|
|
9220
|
+
classes: { default: void 0 }
|
|
9221
|
+
},
|
|
9222
|
+
emits: ["update:modelValue", "update:drawerOpen"],
|
|
9223
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
9224
|
+
const props = __props;
|
|
9225
|
+
const emit = __emit;
|
|
9226
|
+
const slots = useSlots();
|
|
9227
|
+
const m = useMessages(() => props.messages);
|
|
9228
|
+
const openIndex = useControllableModel(props, emit, () => null);
|
|
9229
|
+
const drawerOpen = useControllableModel({ get modelValue() {
|
|
9230
|
+
return props.drawerOpen;
|
|
9231
|
+
} }, (_event, value) => emit("update:drawerOpen", value), () => false);
|
|
9232
|
+
const baseId = useUiId("nav-menu");
|
|
9233
|
+
const navLabel = computed(() => props.ariaLabel ?? m.value.navMenuLabel);
|
|
9234
|
+
const entries = computed(() => props.items.map((item, index) => ({
|
|
9235
|
+
item,
|
|
9236
|
+
index
|
|
9237
|
+
})).filter((entry) => isRenderableLink(entry.item)));
|
|
9238
|
+
function panelId(index) {
|
|
9239
|
+
return `${baseId.value}-panel-${index}`;
|
|
9240
|
+
}
|
|
9241
|
+
const drawerId = computed(() => `${baseId.value}-drawer`);
|
|
9242
|
+
const triggerEls = [];
|
|
9243
|
+
const panelEls = [];
|
|
9244
|
+
const listEl = ref(null);
|
|
9245
|
+
function elementOf(value) {
|
|
9246
|
+
return value instanceof HTMLElement ? value : null;
|
|
9247
|
+
}
|
|
9248
|
+
/** Set when a resting mouse pointer opened the panel, so leaving the menu closes it again. */
|
|
9249
|
+
let openedByHover = false;
|
|
9250
|
+
/** The last panel opened; still set while it closes, so Escape can return focus to its trigger. */
|
|
9251
|
+
let lastIndex = null;
|
|
9252
|
+
watch(openIndex, (index) => {
|
|
9253
|
+
if (index !== null) lastIndex = index;
|
|
9254
|
+
}, { immediate: true });
|
|
9255
|
+
/** How long a mouse pointer rests before a panel opens, and may stray before one closes. */
|
|
9256
|
+
let hoverOpenTimer;
|
|
9257
|
+
let hoverCloseTimer;
|
|
9258
|
+
function clearHoverTimers() {
|
|
9259
|
+
clearTimeout(hoverOpenTimer);
|
|
9260
|
+
clearTimeout(hoverCloseTimer);
|
|
9261
|
+
hoverOpenTimer = void 0;
|
|
9262
|
+
hoverCloseTimer = void 0;
|
|
9263
|
+
}
|
|
9264
|
+
function openPanel(index, byHover = false) {
|
|
9265
|
+
clearHoverTimers();
|
|
9266
|
+
openedByHover = byHover;
|
|
9267
|
+
lastIndex = index;
|
|
9268
|
+
openIndex.value = index;
|
|
9269
|
+
}
|
|
9270
|
+
function closePanel() {
|
|
9271
|
+
clearHoverTimers();
|
|
9272
|
+
openedByHover = false;
|
|
9273
|
+
if (openIndex.value !== null) openIndex.value = null;
|
|
9274
|
+
}
|
|
9275
|
+
useOverlay({
|
|
9276
|
+
open: computed(() => openIndex.value !== null),
|
|
9277
|
+
trigger: toRef(() => lastIndex === null ? null : triggerEls[lastIndex] ?? null),
|
|
9278
|
+
content: toRef(() => lastIndex === null ? null : panelEls[lastIndex] ?? null),
|
|
9279
|
+
setOpen: (next) => {
|
|
9280
|
+
if (!next) closePanel();
|
|
9281
|
+
}
|
|
9282
|
+
});
|
|
9283
|
+
function onTriggerClick(index) {
|
|
9284
|
+
if (openIndex.value !== index) {
|
|
9285
|
+
openPanel(index);
|
|
9286
|
+
return;
|
|
9287
|
+
}
|
|
9288
|
+
if (openedByHover) openedByHover = false;
|
|
9289
|
+
else closePanel();
|
|
9290
|
+
}
|
|
9291
|
+
function onTriggerPointerEnter(index, event) {
|
|
9292
|
+
if (!props.openOnHover || event.pointerType !== "mouse") return;
|
|
9293
|
+
clearTimeout(hoverOpenTimer);
|
|
9294
|
+
if (openIndex.value === index) return;
|
|
9295
|
+
hoverOpenTimer = setTimeout(() => openPanel(index, true), HOVER_INTENT_MS);
|
|
9296
|
+
}
|
|
9297
|
+
function onTriggerPointerLeave(event) {
|
|
9298
|
+
if (event.pointerType === "mouse") clearTimeout(hoverOpenTimer);
|
|
9299
|
+
}
|
|
9300
|
+
function onRootPointerEnter(event) {
|
|
9301
|
+
if (event.pointerType === "mouse") clearTimeout(hoverCloseTimer);
|
|
9302
|
+
}
|
|
9303
|
+
function onRootPointerLeave(event) {
|
|
9304
|
+
if (!props.openOnHover || event.pointerType !== "mouse") return;
|
|
9305
|
+
clearTimeout(hoverOpenTimer);
|
|
9306
|
+
if (!openedByHover) return;
|
|
9307
|
+
hoverCloseTimer = setTimeout(() => {
|
|
9308
|
+
if ((lastIndex === null ? null : panelEls[lastIndex])?.contains(document.activeElement) === true) return;
|
|
9309
|
+
if (openedByHover) closePanel();
|
|
9310
|
+
}, HOVER_INTENT_MS);
|
|
9311
|
+
}
|
|
9312
|
+
const onBarKeydown = useNavMenuKeys({
|
|
9313
|
+
list: listEl,
|
|
9314
|
+
indexAt: (position) => entries.value[position]?.index ?? -1,
|
|
9315
|
+
panel: (index) => panelEls[index] ?? null,
|
|
9316
|
+
openIndex,
|
|
9317
|
+
open: (index) => openPanel(index),
|
|
9318
|
+
close: closePanel
|
|
9319
|
+
});
|
|
9320
|
+
function onPanelClick(event) {
|
|
9321
|
+
if (event.target?.closest("a") != null) closePanel();
|
|
9322
|
+
}
|
|
9323
|
+
function closeDrawer() {
|
|
9324
|
+
if (drawerOpen.value) drawerOpen.value = false;
|
|
9325
|
+
}
|
|
9326
|
+
const toggleEl = ref(null);
|
|
9327
|
+
function closeDrawerOnWideScreen() {
|
|
9328
|
+
if (toggleEl.value && getComputedStyle(toggleEl.value).display === "none") closeDrawer();
|
|
9329
|
+
}
|
|
9330
|
+
watch(drawerOpen, (open) => {
|
|
9331
|
+
if (typeof window === "undefined") return;
|
|
9332
|
+
if (open) window.addEventListener("resize", closeDrawerOnWideScreen);
|
|
9333
|
+
else window.removeEventListener("resize", closeDrawerOnWideScreen);
|
|
9334
|
+
}, { immediate: true });
|
|
9335
|
+
onBeforeUnmount(() => {
|
|
9336
|
+
clearHoverTimers();
|
|
9337
|
+
window.removeEventListener("resize", closeDrawerOnWideScreen);
|
|
9338
|
+
});
|
|
9339
|
+
function onDrawerClick(event) {
|
|
9340
|
+
if (event.target?.closest("a") != null) closeDrawer();
|
|
9341
|
+
}
|
|
9342
|
+
/** Closes the open panel and the drawer, for a router's navigation hook. */
|
|
9343
|
+
function close() {
|
|
9344
|
+
closePanel();
|
|
9345
|
+
closeDrawer();
|
|
9346
|
+
}
|
|
9347
|
+
__expose({ close });
|
|
9348
|
+
const BAR_DISPLAY = {
|
|
9349
|
+
md: "hidden md:block",
|
|
9350
|
+
lg: "hidden lg:block",
|
|
9351
|
+
xl: "hidden xl:block",
|
|
9352
|
+
"@tablet": "hidden @tablet:block",
|
|
9353
|
+
"@content": "hidden @content:block",
|
|
9354
|
+
"@wide": "hidden @wide:block",
|
|
9355
|
+
never: "block"
|
|
9356
|
+
};
|
|
9357
|
+
const TOGGLE_DISPLAY = {
|
|
9358
|
+
md: "md:hidden",
|
|
9359
|
+
lg: "lg:hidden",
|
|
9360
|
+
xl: "xl:hidden",
|
|
9361
|
+
"@tablet": "@tablet:hidden",
|
|
9362
|
+
"@content": "@content:hidden",
|
|
9363
|
+
"@wide": "@wide:hidden",
|
|
9364
|
+
always: ""
|
|
9365
|
+
};
|
|
9366
|
+
const PANEL_TRANSITION = {
|
|
9367
|
+
enterFromClass: "",
|
|
9368
|
+
enterActiveClass: "",
|
|
9369
|
+
enterToClass: "",
|
|
9370
|
+
leaveFromClass: "",
|
|
9371
|
+
leaveActiveClass: "pointer-events-none transition-opacity duration-fast ease-in",
|
|
9372
|
+
leaveToClass: "opacity-0"
|
|
9373
|
+
};
|
|
9374
|
+
const ENTRY_VARIANT = {
|
|
9375
|
+
ghost: "text-text hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)] aria-expanded:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]",
|
|
9376
|
+
muted: "text-muted hover:text-text aria-expanded:text-text aria-[current=page]:text-text data-[current]:text-text"
|
|
9377
|
+
};
|
|
9378
|
+
const rootClass = computed(() => partClass("relative flex items-center", props.classes, "root"));
|
|
9379
|
+
const navClass = computed(() => partClass(props.collapseBelow === "always" ? "" : BAR_DISPLAY[props.collapseBelow], props.classes, "nav"));
|
|
9380
|
+
const listClass = computed(() => partClass("flex flex-wrap items-center gap-1", props.classes, "list"));
|
|
9381
|
+
function itemClass(item) {
|
|
9382
|
+
return partClass(hasPanel(item) && panelLayout(item) === "dropdown" ? "relative" : "", props.classes, "item");
|
|
9383
|
+
}
|
|
9384
|
+
const linkClass = computed(() => partClass(cx(TOP_LEVEL, ENTRY_VARIANT[props.variant], CURRENT_PAGE), props.classes, "link"));
|
|
9385
|
+
const triggerClass = computed(() => partClass(cx(TOP_LEVEL, ENTRY_VARIANT[props.variant], "data-[current]:underline data-[current]:decoration-2 data-[current]:underline-offset-[0.2em]"), props.classes, "trigger"));
|
|
9386
|
+
function triggerIconClass(open) {
|
|
9387
|
+
return partClass(cx("size-4 shrink-0 transition-[rotate] duration-fast ease-out motion-reduce:transition-none", open && "rotate-180"), props.classes, "triggerIcon");
|
|
9388
|
+
}
|
|
9389
|
+
function panelClass(item) {
|
|
9390
|
+
return partClass(cx("absolute top-full z-popover eldra-nav-menu-panel", panelLayout(item) === "mega" ? "inset-x-0" : "start-0"), props.classes, "panel");
|
|
9391
|
+
}
|
|
9392
|
+
function contentClass(item) {
|
|
9393
|
+
return partClass(cx("rounded-lg border border-border bg-background text-text shadow-md animate-eldra-popover-in", panelLayout(item) === "mega" ? "p-6" : "eldra-nav-menu-dropdown p-2"), props.classes, "content");
|
|
9394
|
+
}
|
|
9395
|
+
const footerClass = computed(() => partClass("mt-4 flex flex-wrap items-center justify-between gap-x-8 gap-y-3 border-t border-border pt-4 empty:hidden", props.classes, "footer"));
|
|
9396
|
+
const toggleClass = computed(() => partClass(cx("inline-flex size-10 max-md:size-11 shrink-0 cursor-pointer items-center justify-center", "rounded-md text-text eldra-focus", HOVER_FILL, props.collapseBelow === "never" ? "" : TOGGLE_DISPLAY[props.collapseBelow]), props.classes, "toggle"));
|
|
9397
|
+
const toggleIconClass = computed(() => partClass("size-5", props.classes, "toggleIcon"));
|
|
9398
|
+
const drawerClasses = computed(() => ({
|
|
9399
|
+
panel: props.classes?.drawer,
|
|
9400
|
+
footer: props.classes?.drawerFooter
|
|
9401
|
+
}));
|
|
9402
|
+
const drawerListClass = computed(() => partClass("flex flex-col border-t border-border", props.classes, "drawerList"));
|
|
9403
|
+
function drawerItemClass(item) {
|
|
9404
|
+
return partClass(hasPanel(item) ? "" : "border-b border-border", props.classes, "drawerItem");
|
|
9405
|
+
}
|
|
9406
|
+
const drawerLinkClass = computed(() => partClass(cx("flex min-h-14 w-full items-center rounded-sm py-4", "text-accordion-title text-text eldra-focus", CURRENT_PAGE), props.classes, "drawerLink"));
|
|
9407
|
+
const accordionClasses = computed(() => ({
|
|
9408
|
+
summary: props.classes?.drawerTrigger,
|
|
9409
|
+
panel: cx("max-w-none pb-4 text-text", props.classes?.drawerPanel)
|
|
9410
|
+
}));
|
|
9411
|
+
return (_ctx, _cache) => {
|
|
9412
|
+
return openBlock(), createElementBlock("div", {
|
|
9413
|
+
"data-eldra-ui": "",
|
|
9414
|
+
"data-part": "root",
|
|
9415
|
+
class: normalizeClass(rootClass.value),
|
|
9416
|
+
onPointerenter: onRootPointerEnter,
|
|
9417
|
+
onPointerleave: onRootPointerLeave
|
|
9418
|
+
}, [__props.collapseBelow !== "always" && entries.value.length > 0 ? (openBlock(), createElementBlock("nav", {
|
|
9419
|
+
key: 0,
|
|
9420
|
+
"data-part": "nav",
|
|
9421
|
+
class: normalizeClass(navClass.value),
|
|
9422
|
+
"aria-label": navLabel.value,
|
|
9423
|
+
onKeydown: _cache[0] || (_cache[0] = (...args) => unref(onBarKeydown) && unref(onBarKeydown)(...args))
|
|
9424
|
+
}, [createElementVNode("ul", {
|
|
9425
|
+
ref_key: "listEl",
|
|
9426
|
+
ref: listEl,
|
|
9427
|
+
"data-part": "list",
|
|
9428
|
+
class: normalizeClass(listClass.value)
|
|
9429
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(entries.value, ({ item, index }) => {
|
|
9430
|
+
return openBlock(), createElementBlock("li", {
|
|
9431
|
+
key: index,
|
|
9432
|
+
"data-part": "item",
|
|
9433
|
+
class: normalizeClass(itemClass(item))
|
|
9434
|
+
}, [unref(hasPanel)(item) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("button", {
|
|
9435
|
+
ref_for: true,
|
|
9436
|
+
ref: (el) => triggerEls[index] = elementOf(el),
|
|
9437
|
+
type: "button",
|
|
9438
|
+
"data-part": "trigger",
|
|
9439
|
+
class: normalizeClass(triggerClass.value),
|
|
9440
|
+
"aria-expanded": unref(openIndex) === index ? "true" : "false",
|
|
9441
|
+
"aria-controls": panelId(index),
|
|
9442
|
+
"data-current": unref(containsCurrent)(item) ? "" : void 0,
|
|
9443
|
+
onClick: ($event) => onTriggerClick(index),
|
|
9444
|
+
onPointerenter: ($event) => onTriggerPointerEnter(index, $event),
|
|
9445
|
+
onPointerleave: onTriggerPointerLeave
|
|
9446
|
+
}, [createElementVNode("span", null, toDisplayString(item.label), 1), (openBlock(), createElementBlock("svg", {
|
|
9447
|
+
"data-part": "triggerIcon",
|
|
9448
|
+
class: normalizeClass(triggerIconClass(unref(openIndex) === index)),
|
|
9449
|
+
viewBox: "0 0 24 24",
|
|
9450
|
+
fill: "none",
|
|
9451
|
+
stroke: "currentColor",
|
|
9452
|
+
"stroke-width": "1.75",
|
|
9453
|
+
"stroke-linecap": "round",
|
|
9454
|
+
"stroke-linejoin": "round",
|
|
9455
|
+
"aria-hidden": "true",
|
|
9456
|
+
focusable: "false"
|
|
9457
|
+
}, [..._cache[3] || (_cache[3] = [createElementVNode("path", { d: "M6 9l6 6l6 -6" }, null, -1)])], 2))], 42, _hoisted_2$5), createVNode(Transition, mergeProps({ ref_for: true }, PANEL_TRANSITION), {
|
|
9458
|
+
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
9459
|
+
id: panelId(index),
|
|
9460
|
+
ref_for: true,
|
|
9461
|
+
ref: (el) => panelEls[index] = elementOf(el),
|
|
9462
|
+
"data-part": "panel",
|
|
9463
|
+
class: normalizeClass(panelClass(item)),
|
|
9464
|
+
onClick: onPanelClick
|
|
9465
|
+
}, [createElementVNode("div", {
|
|
9466
|
+
"data-part": "content",
|
|
9467
|
+
class: normalizeClass(contentClass(item))
|
|
9468
|
+
}, [createVNode(NavMenuPanel_default, {
|
|
9469
|
+
item,
|
|
9470
|
+
"id-prefix": panelId(index),
|
|
9471
|
+
placement: "bar",
|
|
9472
|
+
variant: __props.variant,
|
|
9473
|
+
messages: unref(m),
|
|
9474
|
+
"link-as": __props.linkAs,
|
|
9475
|
+
classes: __props.classes
|
|
9476
|
+
}, createSlots({ _: 2 }, [unref(slots).panelItem ? {
|
|
9477
|
+
name: "panelItem",
|
|
9478
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "panelItem", mergeProps({ ref_for: true }, scope))]),
|
|
9479
|
+
key: "0"
|
|
9480
|
+
} : void 0, unref(slots).groupHeading ? {
|
|
9481
|
+
name: "groupHeading",
|
|
9482
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "groupHeading", mergeProps({ ref_for: true }, scope))]),
|
|
9483
|
+
key: "1"
|
|
9484
|
+
} : void 0]), 1032, [
|
|
9485
|
+
"item",
|
|
9486
|
+
"id-prefix",
|
|
9487
|
+
"variant",
|
|
9488
|
+
"messages",
|
|
9489
|
+
"link-as",
|
|
9490
|
+
"classes"
|
|
9491
|
+
]), unref(slots).panelFooter ? (openBlock(), createElementBlock("div", {
|
|
9492
|
+
key: 0,
|
|
9493
|
+
"data-part": "footer",
|
|
9494
|
+
class: normalizeClass(footerClass.value)
|
|
9495
|
+
}, [renderSlot(_ctx.$slots, "panelFooter", {
|
|
9496
|
+
item,
|
|
9497
|
+
index,
|
|
9498
|
+
close: closePanel
|
|
9499
|
+
})], 2)) : createCommentVNode("", true)], 2)], 10, _hoisted_3$2), [[vShow, unref(openIndex) === index]])]),
|
|
9500
|
+
_: 2
|
|
9501
|
+
}, 1040)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(item, __props.linkAs)), mergeProps({
|
|
9502
|
+
key: 1,
|
|
9503
|
+
"data-part": "link",
|
|
9504
|
+
class: linkClass.value
|
|
9505
|
+
}, { ref_for: true }, unref(navLinkAttrs)(item, __props.linkAs)), {
|
|
9506
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.label) + " ", 1), item.newTab && unref(hasHref)(item) ? (openBlock(), createBlock(VisuallyHidden_default, { key: 0 }, {
|
|
9507
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(m).opensInNewTab), 1)]),
|
|
9508
|
+
_: 1
|
|
9509
|
+
})) : createCommentVNode("", true)]),
|
|
9510
|
+
_: 2
|
|
9511
|
+
}, 1040, ["class"]))], 2);
|
|
9512
|
+
}), 128))], 2)], 42, _hoisted_1$12)) : createCommentVNode("", true), __props.collapseBelow !== "never" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("button", {
|
|
9513
|
+
ref_key: "toggleEl",
|
|
9514
|
+
ref: toggleEl,
|
|
9515
|
+
type: "button",
|
|
9516
|
+
"data-part": "toggle",
|
|
9517
|
+
class: normalizeClass(toggleClass.value),
|
|
9518
|
+
"aria-label": unref(m).navMenuOpen,
|
|
9519
|
+
"aria-haspopup": "dialog",
|
|
9520
|
+
"aria-expanded": unref(drawerOpen) ? "true" : "false",
|
|
9521
|
+
"aria-controls": drawerId.value,
|
|
9522
|
+
onClick: _cache[1] || (_cache[1] = ($event) => drawerOpen.value = true)
|
|
9523
|
+
}, [renderSlot(_ctx.$slots, "toggle", { open: unref(drawerOpen) }, () => [(openBlock(), createElementBlock("svg", {
|
|
9524
|
+
"data-part": "toggleIcon",
|
|
9525
|
+
class: normalizeClass(toggleIconClass.value),
|
|
9526
|
+
viewBox: "0 0 24 24",
|
|
9527
|
+
fill: "none",
|
|
9528
|
+
stroke: "currentColor",
|
|
9529
|
+
"stroke-width": "1.75",
|
|
9530
|
+
"stroke-linecap": "round",
|
|
9531
|
+
"stroke-linejoin": "round",
|
|
9532
|
+
"aria-hidden": "true",
|
|
9533
|
+
focusable: "false"
|
|
9534
|
+
}, [..._cache[4] || (_cache[4] = [
|
|
9535
|
+
createElementVNode("path", { d: "M4 6l16 0" }, null, -1),
|
|
9536
|
+
createElementVNode("path", { d: "M4 12l16 0" }, null, -1),
|
|
9537
|
+
createElementVNode("path", { d: "M4 18l16 0" }, null, -1)
|
|
9538
|
+
])], 2))])], 10, _hoisted_4$2), createVNode(Drawer_default, {
|
|
9539
|
+
id: drawerId.value,
|
|
9540
|
+
modelValue: unref(drawerOpen),
|
|
9541
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(drawerOpen) ? drawerOpen.value = $event : null),
|
|
9542
|
+
side: __props.drawerSide,
|
|
9543
|
+
"aria-label": unref(m).navMenuDrawer,
|
|
9544
|
+
messages: __props.messages,
|
|
9545
|
+
classes: drawerClasses.value
|
|
9546
|
+
}, createSlots({
|
|
9547
|
+
default: withCtx(() => [entries.value.length > 0 ? (openBlock(), createElementBlock("nav", {
|
|
9548
|
+
key: 0,
|
|
9549
|
+
"aria-label": navLabel.value,
|
|
9550
|
+
onClick: onDrawerClick
|
|
9551
|
+
}, [createElementVNode("ul", {
|
|
9552
|
+
"data-part": "drawerList",
|
|
9553
|
+
class: normalizeClass(drawerListClass.value)
|
|
9554
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(entries.value, ({ item, index }) => {
|
|
9555
|
+
return openBlock(), createElementBlock("li", {
|
|
9556
|
+
key: index,
|
|
9557
|
+
"data-part": "drawerItem",
|
|
9558
|
+
class: normalizeClass(drawerItemClass(item))
|
|
9559
|
+
}, [unref(hasPanel)(item) ? (openBlock(), createBlock(AccordionItem_default, {
|
|
9560
|
+
key: 0,
|
|
9561
|
+
title: item.label ?? "",
|
|
9562
|
+
classes: accordionClasses.value
|
|
9563
|
+
}, {
|
|
9564
|
+
default: withCtx(() => [createVNode(NavMenuPanel_default, {
|
|
9565
|
+
item,
|
|
9566
|
+
"id-prefix": `${panelId(index)}-drawer`,
|
|
9567
|
+
placement: "drawer",
|
|
9568
|
+
variant: __props.variant,
|
|
9569
|
+
messages: unref(m),
|
|
9570
|
+
"link-as": __props.linkAs,
|
|
9571
|
+
classes: __props.classes
|
|
9572
|
+
}, createSlots({ _: 2 }, [unref(slots).panelItem ? {
|
|
9573
|
+
name: "panelItem",
|
|
9574
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "panelItem", mergeProps({ ref_for: true }, scope))]),
|
|
9575
|
+
key: "0"
|
|
9576
|
+
} : void 0, unref(slots).groupHeading ? {
|
|
9577
|
+
name: "groupHeading",
|
|
9578
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "groupHeading", mergeProps({ ref_for: true }, scope))]),
|
|
9579
|
+
key: "1"
|
|
9580
|
+
} : void 0]), 1032, [
|
|
9581
|
+
"item",
|
|
9582
|
+
"id-prefix",
|
|
9583
|
+
"variant",
|
|
9584
|
+
"messages",
|
|
9585
|
+
"link-as",
|
|
9586
|
+
"classes"
|
|
9587
|
+
])]),
|
|
9588
|
+
_: 2
|
|
9589
|
+
}, 1032, ["title", "classes"])) : (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(item, __props.linkAs)), mergeProps({
|
|
9590
|
+
key: 1,
|
|
9591
|
+
"data-part": "drawerLink",
|
|
9592
|
+
class: drawerLinkClass.value
|
|
9593
|
+
}, { ref_for: true }, unref(navLinkAttrs)(item, __props.linkAs)), {
|
|
9594
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.label) + " ", 1), item.newTab && unref(hasHref)(item) ? (openBlock(), createBlock(VisuallyHidden_default, { key: 0 }, {
|
|
9595
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(m).opensInNewTab), 1)]),
|
|
9596
|
+
_: 1
|
|
9597
|
+
})) : createCommentVNode("", true)]),
|
|
9598
|
+
_: 2
|
|
9599
|
+
}, 1040, ["class"]))], 2);
|
|
9600
|
+
}), 128))], 2)], 8, _hoisted_5$2)) : createCommentVNode("", true)]),
|
|
9601
|
+
_: 2
|
|
9602
|
+
}, [unref(slots).drawerFooter ? {
|
|
9603
|
+
name: "footer",
|
|
9604
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "drawerFooter", { close: closeDrawer })]),
|
|
9605
|
+
key: "0"
|
|
9606
|
+
} : void 0]), 1032, [
|
|
9607
|
+
"id",
|
|
9608
|
+
"modelValue",
|
|
9609
|
+
"side",
|
|
9610
|
+
"aria-label",
|
|
9611
|
+
"messages",
|
|
9612
|
+
"classes"
|
|
9613
|
+
])], 64)) : createCommentVNode("", true)], 34);
|
|
8807
9614
|
};
|
|
8808
9615
|
}
|
|
8809
9616
|
});
|
|
@@ -8937,6 +9744,7 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
8937
9744
|
return (_ctx, _cache) => {
|
|
8938
9745
|
return visible.value ? (openBlock(), createElementBlock("nav", {
|
|
8939
9746
|
key: 0,
|
|
9747
|
+
"data-eldra-ui": "",
|
|
8940
9748
|
"data-part": "root",
|
|
8941
9749
|
class: normalizeClass(rootClass.value),
|
|
8942
9750
|
"aria-label": navLabel.value
|
|
@@ -9326,6 +10134,7 @@ var Popover_default = /* @__PURE__ */ defineComponent({
|
|
|
9326
10134
|
const panelClass = computed(() => partClass(cx("z-popover overflow-hidden rounded-md border border-border bg-background shadow-md", "animate-eldra-popover-in"), props.classes, "panel"));
|
|
9327
10135
|
return (_ctx, _cache) => {
|
|
9328
10136
|
return openBlock(), createElementBlock("div", {
|
|
10137
|
+
"data-eldra-ui": "",
|
|
9329
10138
|
"data-part": "root",
|
|
9330
10139
|
class: normalizeClass(rootClass.value)
|
|
9331
10140
|
}, [(openBlock(), createBlock(resolveDynamicComponent(Trigger))), (openBlock(), createBlock(Teleport, {
|
|
@@ -9336,6 +10145,7 @@ var Popover_default = /* @__PURE__ */ defineComponent({
|
|
|
9336
10145
|
id: panelId.value,
|
|
9337
10146
|
ref_key: "panelEl",
|
|
9338
10147
|
ref: panelEl,
|
|
10148
|
+
"data-eldra-ui": "",
|
|
9339
10149
|
"data-part": "panel",
|
|
9340
10150
|
"data-eldra-overlay-owner": panelId.value,
|
|
9341
10151
|
class: panelClass.value,
|
|
@@ -9438,6 +10248,7 @@ var ValueText_default = /* @__PURE__ */ defineComponent({
|
|
|
9438
10248
|
}, { flush: "post" });
|
|
9439
10249
|
return (_ctx, _cache) => {
|
|
9440
10250
|
return openBlock(), createElementBlock("span", {
|
|
10251
|
+
"data-eldra-ui": "",
|
|
9441
10252
|
ref_key: "spanRef",
|
|
9442
10253
|
ref: spanRef
|
|
9443
10254
|
}, toDisplayString(__props.text), 513);
|
|
@@ -9719,6 +10530,7 @@ var Price_default = /* @__PURE__ */ defineComponent({
|
|
|
9719
10530
|
const srStatusText = computed(() => isRevalidating.value ? messages.value.updatingPrice : "");
|
|
9720
10531
|
return (_ctx, _cache) => {
|
|
9721
10532
|
return openBlock(), createElementBlock("p", {
|
|
10533
|
+
"data-eldra-ui": "",
|
|
9722
10534
|
"data-part": "root",
|
|
9723
10535
|
class: normalizeClass(rootClass.value),
|
|
9724
10536
|
lang: __props.lang ?? void 0,
|
|
@@ -9867,6 +10679,7 @@ var RatingStars_default = /* @__PURE__ */ defineComponent({
|
|
|
9867
10679
|
* outline), an exception the design spec carves out for rating stars only. */
|
|
9868
10680
|
return (_ctx, _cache) => {
|
|
9869
10681
|
return openBlock(), createElementBlock("span", {
|
|
10682
|
+
"data-eldra-ui": "",
|
|
9870
10683
|
"data-part": "stars",
|
|
9871
10684
|
class: normalizeClass(starsClass.value),
|
|
9872
10685
|
"aria-hidden": "true"
|
|
@@ -9877,7 +10690,7 @@ var RatingStars_default = /* @__PURE__ */ defineComponent({
|
|
|
9877
10690
|
class: normalizeClass(starClass.value)
|
|
9878
10691
|
}, [state !== "full" ? (openBlock(), createElementBlock("svg", {
|
|
9879
10692
|
key: 0,
|
|
9880
|
-
class: normalizeClass(unref(cx)("text-border-strong size-full", SECTION_EMPTY)),
|
|
10693
|
+
class: normalizeClass(unref(cx)("text-border-strong block size-full", SECTION_EMPTY)),
|
|
9881
10694
|
viewBox: "0 0 24 24",
|
|
9882
10695
|
fill: "none",
|
|
9883
10696
|
stroke: "currentColor",
|
|
@@ -9886,7 +10699,7 @@ var RatingStars_default = /* @__PURE__ */ defineComponent({
|
|
|
9886
10699
|
"stroke-linejoin": "round"
|
|
9887
10700
|
}, [createElementVNode("path", { d: OUTLINE_STAR_PATH })], 2)) : createCommentVNode("", true), state !== "empty" ? (openBlock(), createElementBlock("svg", {
|
|
9888
10701
|
key: 1,
|
|
9889
|
-
class: normalizeClass(unref(cx)("text-text", SECTION_FILLED, state === "half" ? "eldra-rating-half absolute inset-0 size-full" : "size-full")),
|
|
10702
|
+
class: normalizeClass(unref(cx)("text-text block", SECTION_FILLED, state === "half" ? "eldra-rating-half absolute inset-0 size-full" : "size-full")),
|
|
9890
10703
|
viewBox: "0 0 24 24",
|
|
9891
10704
|
fill: "currentColor"
|
|
9892
10705
|
}, [createElementVNode("path", { d: FILLED_STAR_PATH })], 2)) : createCommentVNode("", true)], 2);
|
|
@@ -9976,6 +10789,7 @@ var Rating_default = /* @__PURE__ */ defineComponent({
|
|
|
9976
10789
|
const emptyClass = computed(() => partClass("text-body-sm text-muted", props.classes, "empty"));
|
|
9977
10790
|
return (_ctx, _cache) => {
|
|
9978
10791
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
10792
|
+
"data-eldra-ui": "",
|
|
9979
10793
|
"data-part": "root",
|
|
9980
10794
|
class: rootClass.value
|
|
9981
10795
|
}, !isLinked.value && !isEmpty.value ? {
|
|
@@ -10140,6 +10954,7 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
|
|
|
10140
10954
|
const srStatusText = computed(() => props.revalidating ? messages.value.updatingStock : "");
|
|
10141
10955
|
return (_ctx, _cache) => {
|
|
10142
10956
|
return openBlock(), createElementBlock("span", {
|
|
10957
|
+
"data-eldra-ui": "",
|
|
10143
10958
|
"data-part": "root",
|
|
10144
10959
|
class: normalizeClass(rootClass.value),
|
|
10145
10960
|
"aria-busy": __props.revalidating ? "true" : void 0
|
|
@@ -10427,6 +11242,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
|
10427
11242
|
return (_ctx, _cache) => {
|
|
10428
11243
|
return __props.loading ? (openBlock(), createElementBlock("div", {
|
|
10429
11244
|
key: 0,
|
|
11245
|
+
"data-eldra-ui": "",
|
|
10430
11246
|
"data-part": "root",
|
|
10431
11247
|
class: normalizeClass(rootClass.value),
|
|
10432
11248
|
role: "group",
|
|
@@ -10460,6 +11276,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
|
10460
11276
|
})
|
|
10461
11277
|
], 2)], 10, _hoisted_1$7)) : (openBlock(), createElementBlock("article", {
|
|
10462
11278
|
key: 1,
|
|
11279
|
+
"data-eldra-ui": "",
|
|
10463
11280
|
"data-part": "root",
|
|
10464
11281
|
class: normalizeClass(rootClass.value)
|
|
10465
11282
|
}, [
|
|
@@ -10627,7 +11444,7 @@ var RECENT_KEY = "eldra-ui:recent-searches";
|
|
|
10627
11444
|
var RECENT_MAX = 5;
|
|
10628
11445
|
var LOADING_DELAY_MS = 300;
|
|
10629
11446
|
var ANNOUNCE_DELAY_MS = 400;
|
|
10630
|
-
var hintKeyClass = "inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border-strong bg-background px-1 text-search-modal-kbd text-muted";
|
|
11447
|
+
var hintKeyClass = "box-border inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border-strong bg-background px-1 text-search-modal-kbd text-muted";
|
|
10631
11448
|
var hintClass = "inline-flex items-center gap-1.5";
|
|
10632
11449
|
//#endregion
|
|
10633
11450
|
//#region src/components/search-modal/SearchModal.vue
|
|
@@ -11248,6 +12065,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
11248
12065
|
return openBlock(), createElementBlock("dialog", {
|
|
11249
12066
|
ref_key: "dialogEl",
|
|
11250
12067
|
ref: dialogEl,
|
|
12068
|
+
"data-eldra-ui": "",
|
|
11251
12069
|
"data-part": "root",
|
|
11252
12070
|
class: normalizeClass(rootClass.value),
|
|
11253
12071
|
"aria-label": accessibleName.value,
|
|
@@ -11509,6 +12327,7 @@ var Section_default = /* @__PURE__ */ defineComponent({
|
|
|
11509
12327
|
const rootClass = computed(() => partClass(cx("@container", BACKGROUND[props.background], SPACING[props.spacing], inverts.value && "group/section"), props.classes, "root"));
|
|
11510
12328
|
return (_ctx, _cache) => {
|
|
11511
12329
|
return openBlock(), createBlock(resolveDynamicComponent(rootTag.value), {
|
|
12330
|
+
"data-eldra-ui": "",
|
|
11512
12331
|
"data-part": "root",
|
|
11513
12332
|
"data-section-bg": __props.background,
|
|
11514
12333
|
"data-section": inverts.value ? __props.background : void 0,
|
|
@@ -11632,6 +12451,7 @@ var Tab_default = /* @__PURE__ */ defineComponent({
|
|
|
11632
12451
|
ref: el,
|
|
11633
12452
|
type: "button",
|
|
11634
12453
|
role: "tab",
|
|
12454
|
+
"data-eldra-ui": "",
|
|
11635
12455
|
"data-part": "tab",
|
|
11636
12456
|
"aria-selected": isSelected.value ? "true" : "false",
|
|
11637
12457
|
"aria-controls": unref(context).panelId(__props.value),
|
|
@@ -11701,6 +12521,7 @@ var TabPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
11701
12521
|
ref_key: "el",
|
|
11702
12522
|
ref: el,
|
|
11703
12523
|
role: "tabpanel",
|
|
12524
|
+
"data-eldra-ui": "",
|
|
11704
12525
|
"data-part": "panel",
|
|
11705
12526
|
"aria-labelledby": unref(context).tabId(__props.value),
|
|
11706
12527
|
hidden: !isSelected.value,
|
|
@@ -11814,6 +12635,7 @@ var Tabs_default = /* @__PURE__ */ defineComponent({
|
|
|
11814
12635
|
}));
|
|
11815
12636
|
return (_ctx, _cache) => {
|
|
11816
12637
|
return openBlock(), createElementBlock("div", {
|
|
12638
|
+
"data-eldra-ui": "",
|
|
11817
12639
|
"data-part": "root",
|
|
11818
12640
|
class: normalizeClass(rootClass.value)
|
|
11819
12641
|
}, [createElementVNode("div", {
|
|
@@ -11942,6 +12764,7 @@ var Toast_default = /* @__PURE__ */ defineComponent({
|
|
|
11942
12764
|
const closeClass = computed(() => partClass(cx("-mt-1.5 -mr-1.5 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-sm", "text-text eldra-focus", "hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]", "active:scale-[0.98] active:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_89%)]"), props.classes, "close"));
|
|
11943
12765
|
return (_ctx, _cache) => {
|
|
11944
12766
|
return openBlock(), createElementBlock("div", {
|
|
12767
|
+
"data-eldra-ui": "",
|
|
11945
12768
|
"data-part": "root",
|
|
11946
12769
|
class: normalizeClass(rootClass.value),
|
|
11947
12770
|
role: __props.variant === "danger" ? "alert" : void 0,
|
|
@@ -12228,6 +13051,7 @@ var Toaster_default = /* @__PURE__ */ defineComponent({
|
|
|
12228
13051
|
const listClass = computed(() => partClass(nonDanger.value.length > 0 ? "flex w-full flex-col gap-3" : "hidden", props.classes, "list"));
|
|
12229
13052
|
return (_ctx, _cache) => {
|
|
12230
13053
|
return openBlock(), createBlock(Teleport, { to: unref(TOAST_HOST_KEY) ?? "body" }, [createElementVNode("div", {
|
|
13054
|
+
"data-eldra-ui": "",
|
|
12231
13055
|
"data-part": "root",
|
|
12232
13056
|
class: normalizeClass(rootClass.value),
|
|
12233
13057
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => hovering.value = true),
|
|
@@ -12541,6 +13365,7 @@ var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
|
12541
13365
|
return openBlock(), createElementBlock("span", {
|
|
12542
13366
|
ref_key: "rootRef",
|
|
12543
13367
|
ref: rootRef,
|
|
13368
|
+
"data-eldra-ui": "",
|
|
12544
13369
|
"data-part": "root",
|
|
12545
13370
|
class: normalizeClass(rootClass.value),
|
|
12546
13371
|
onMouseenter: onRootMouseEnter,
|
|
@@ -12558,6 +13383,7 @@ var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
|
12558
13383
|
ref_key: "bubbleRef",
|
|
12559
13384
|
ref: bubbleRef,
|
|
12560
13385
|
role: "tooltip",
|
|
13386
|
+
"data-eldra-ui": "",
|
|
12561
13387
|
"data-part": "bubble",
|
|
12562
13388
|
"data-placement": unref(resolvedPlacement),
|
|
12563
13389
|
class: normalizeClass(bubbleClass.value),
|
|
@@ -12589,4 +13415,4 @@ function mixToward(color, toward, percent) {
|
|
|
12589
13415
|
return `color-mix(in oklab, ${color}, ${toward} ${percent}%)`;
|
|
12590
13416
|
}
|
|
12591
13417
|
//#endregion
|
|
12592
|
-
export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, Skeleton_default as Skeleton, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, cx, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, partClass, prefersReducedMotion, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, toggleValue, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSlotPresence, useToast, useUiId, visibleFacetValues };
|
|
13418
|
+
export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, Skeleton_default as Skeleton, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, cx, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, partClass, prefersReducedMotion, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, toggleValue, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };
|