@code-coaching/vuetiful 0.18.0 → 0.19.0
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/README.md +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/all.css +41 -1
- package/dist/types/components/molecules/VAccordion/VAccordion.test.d.ts +1 -0
- package/dist/types/components/molecules/VAccordion/VAccordion.vue.d.ts +23 -0
- package/dist/types/components/molecules/VAccordion/VAccordionItem.test.d.ts +1 -0
- package/dist/types/components/molecules/VAccordion/VAccordionItem.vue.d.ts +12 -0
- package/dist/types/components/molecules/index.d.ts +3 -1
- package/dist/vuetiful.es.mjs +311 -132
- package/dist/vuetiful.umd.js +12 -12
- package/package.json +1 -1
- package/src/components/molecules/VAccordion/VAccordion.test.ts +22 -0
- package/src/components/molecules/VAccordion/VAccordion.vue +23 -0
- package/src/components/molecules/VAccordion/VAccordionItem.test.ts +85 -0
- package/src/components/molecules/VAccordion/VAccordionItem.vue +60 -0
- package/src/components/molecules/index.ts +5 -0
package/dist/vuetiful.es.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, useAttrs, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, withCtx, withDirectives, createTextVNode, onMounted, Fragment, cloneVNode, h as h$1, inject, provide, watchEffect, onUnmounted, watch, nextTick, toRaw, createCommentVNode, reactive, readonly, toRefs, createVNode, Transition, renderList, pushScopeId, popScopeId, mergeProps, vShow, resolveComponent } from "vue";
|
|
2
|
-
const _hoisted_1$
|
|
3
|
-
const _hoisted_2$
|
|
2
|
+
const _hoisted_1$d = ["src", "alt"];
|
|
3
|
+
const _hoisted_2$7 = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "avatar-initials h-full w-full",
|
|
6
6
|
viewBox: "0 0 512 512"
|
|
7
7
|
};
|
|
8
|
-
const _sfc_main$
|
|
8
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "VAvatar",
|
|
10
10
|
props: {
|
|
11
11
|
initials: { type: String, default: "" },
|
|
@@ -39,7 +39,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
src: imgSrc.value,
|
|
40
40
|
alt: __props.alt,
|
|
41
41
|
onError: _cache[0] || (_cache[0] = () => imgSrc.value = __props.fallback)
|
|
42
|
-
}, null, 40, _hoisted_1$
|
|
42
|
+
}, null, 40, _hoisted_1$d)) : (openBlock(), createElementBlock("svg", _hoisted_2$7, [
|
|
43
43
|
createElementVNode("text", {
|
|
44
44
|
x: "50%",
|
|
45
45
|
y: "50%",
|
|
@@ -61,17 +61,17 @@ var _export_sfc = (sfc, props) => {
|
|
|
61
61
|
}
|
|
62
62
|
return target;
|
|
63
63
|
};
|
|
64
|
-
const _sfc_main$
|
|
65
|
-
const _hoisted_1$
|
|
64
|
+
const _sfc_main$s = {};
|
|
65
|
+
const _hoisted_1$c = {
|
|
66
66
|
class: /* @__PURE__ */ normalizeClass(`vuetiful-badge badge`)
|
|
67
67
|
};
|
|
68
68
|
function _sfc_render$3(_ctx, _cache) {
|
|
69
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
69
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
70
70
|
renderSlot(_ctx.$slots, "default")
|
|
71
71
|
]);
|
|
72
72
|
}
|
|
73
|
-
var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74
|
-
const _sfc_main$
|
|
73
|
+
var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$3]]);
|
|
74
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
75
75
|
__name: "VButton",
|
|
76
76
|
props: {
|
|
77
77
|
icon: {
|
|
@@ -121,16 +121,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
const _sfc_main$
|
|
125
|
-
const _hoisted_1$
|
|
124
|
+
const _sfc_main$q = {};
|
|
125
|
+
const _hoisted_1$b = {
|
|
126
126
|
class: /* @__PURE__ */ normalizeClass(`vuetiful-chip chip`)
|
|
127
127
|
};
|
|
128
128
|
function _sfc_render$2(_ctx, _cache) {
|
|
129
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
129
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
130
130
|
renderSlot(_ctx.$slots, "default")
|
|
131
131
|
]);
|
|
132
132
|
}
|
|
133
|
-
var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
133
|
+
var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$2]]);
|
|
134
134
|
var deepFreezeEs6 = { exports: {} };
|
|
135
135
|
function deepFreeze(obj) {
|
|
136
136
|
if (obj instanceof Map) {
|
|
@@ -46471,12 +46471,12 @@ const useHighlight = () => {
|
|
|
46471
46471
|
};
|
|
46472
46472
|
};
|
|
46473
46473
|
var githubDark = "";
|
|
46474
|
-
const _hoisted_1$
|
|
46475
|
-
const _hoisted_2$
|
|
46474
|
+
const _hoisted_1$a = { class: "code-block max-w-full bg-neutral-900/90 text-sm text-white shadow rounded-container-token" };
|
|
46475
|
+
const _hoisted_2$6 = {
|
|
46476
46476
|
class: /* @__PURE__ */ normalizeClass(`code-block-language`)
|
|
46477
46477
|
};
|
|
46478
|
-
const _hoisted_3$
|
|
46479
|
-
const _sfc_main$
|
|
46478
|
+
const _hoisted_3$4 = ["innerHTML"];
|
|
46479
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
46480
46480
|
__name: "VCodeBlock",
|
|
46481
46481
|
props: {
|
|
46482
46482
|
language: {
|
|
@@ -46534,12 +46534,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
46534
46534
|
emit("copy");
|
|
46535
46535
|
}
|
|
46536
46536
|
return (_ctx, _cache) => {
|
|
46537
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
46537
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
46538
46538
|
createElementVNode("header", {
|
|
46539
46539
|
class: normalizeClass(`code-block-header flex items-center justify-between p-2 pb-0 pl-4 text-xs uppercase text-white/50 ${__props.headerClass}`)
|
|
46540
46540
|
}, [
|
|
46541
|
-
createElementVNode("span", _hoisted_2$
|
|
46542
|
-
withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
46541
|
+
createElementVNode("span", _hoisted_2$6, toDisplayString(languageFormatter(__props.language)), 1),
|
|
46542
|
+
withDirectives((openBlock(), createBlock(unref(_sfc_main$r), {
|
|
46543
46543
|
class: normalizeClass(`code-block-btn ${__props.buttonClass}`),
|
|
46544
46544
|
onClick: _cache[0] || (_cache[0] = ($event) => onCopyClick())
|
|
46545
46545
|
}, {
|
|
@@ -46557,13 +46557,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
46557
46557
|
createElementVNode("code", {
|
|
46558
46558
|
class: normalizeClass(`code-block-code language-${__props.language}`),
|
|
46559
46559
|
innerHTML: unref(highlight2)(props.code, props.language)
|
|
46560
|
-
}, null, 10, _hoisted_3$
|
|
46560
|
+
}, null, 10, _hoisted_3$4)
|
|
46561
46561
|
], 2)
|
|
46562
46562
|
]);
|
|
46563
46563
|
};
|
|
46564
46564
|
}
|
|
46565
46565
|
});
|
|
46566
|
-
const _sfc_main$
|
|
46566
|
+
const _sfc_main$o = defineComponent({
|
|
46567
46567
|
props: {
|
|
46568
46568
|
bgLight: {
|
|
46569
46569
|
type: String,
|
|
@@ -46654,8 +46654,8 @@ const _sfc_main$m = defineComponent({
|
|
|
46654
46654
|
};
|
|
46655
46655
|
}
|
|
46656
46656
|
});
|
|
46657
|
-
const _hoisted_1$
|
|
46658
|
-
const _hoisted_2$
|
|
46657
|
+
const _hoisted_1$9 = ["aria-checked", "title"];
|
|
46658
|
+
const _hoisted_2$5 = ["d"];
|
|
46659
46659
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46660
46660
|
return openBlock(), createElementBlock("div", {
|
|
46661
46661
|
class: normalizeClass(`lightswitch-track ${_ctx.classesTrack}`),
|
|
@@ -46680,12 +46680,12 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46680
46680
|
createElementVNode("path", {
|
|
46681
46681
|
fill: "currentColor",
|
|
46682
46682
|
d: _ctx.currentMode ? _ctx.svgPath.sun : _ctx.svgPath.moon
|
|
46683
|
-
}, null, 8, _hoisted_2$
|
|
46683
|
+
}, null, 8, _hoisted_2$5)
|
|
46684
46684
|
], 2))
|
|
46685
46685
|
], 2)
|
|
46686
|
-
], 42, _hoisted_1$
|
|
46686
|
+
], 42, _hoisted_1$9);
|
|
46687
46687
|
}
|
|
46688
|
-
var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46688
|
+
var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$1]]);
|
|
46689
46689
|
function u$2(r2, n2, ...a2) {
|
|
46690
46690
|
if (r2 in n2) {
|
|
46691
46691
|
let e2 = n2[r2];
|
|
@@ -46697,7 +46697,7 @@ function u$2(r2, n2, ...a2) {
|
|
|
46697
46697
|
var N$1 = ((o2) => (o2[o2.None = 0] = "None", o2[o2.RenderStrategy = 1] = "RenderStrategy", o2[o2.Static = 2] = "Static", o2))(N$1 || {}), S$1 = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(S$1 || {});
|
|
46698
46698
|
function H$2({ visible: r2 = true, features: t2 = 0, ourProps: e2, theirProps: o2, ...i2 }) {
|
|
46699
46699
|
var a2;
|
|
46700
|
-
let n2 = j$
|
|
46700
|
+
let n2 = j$4(o2, e2), l2 = Object.assign(i2, { props: n2 });
|
|
46701
46701
|
if (r2 || t2 & 2 && n2.static)
|
|
46702
46702
|
return y$2(l2);
|
|
46703
46703
|
if (t2 & 1) {
|
|
@@ -46723,11 +46723,11 @@ function y$2({ props: r2, attrs: t2, slots: e2, slot: o2, name: i2 }) {
|
|
|
46723
46723
|
if (a2 = b$2(a2 != null ? a2 : []), Object.keys(l2).length > 0 || Object.keys(t2).length > 0) {
|
|
46724
46724
|
let [u2, ...c2] = a2 != null ? a2 : [];
|
|
46725
46725
|
if (!v(u2) || c2.length > 0)
|
|
46726
|
-
throw new Error(['Passing props on "template"!', "", `The current component <${i2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(l2).concat(Object.keys(t2)).map((s2) => s2.trim()).filter((s2,
|
|
46726
|
+
throw new Error(['Passing props on "template"!', "", `The current component <${i2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(l2).concat(Object.keys(t2)).map((s2) => s2.trim()).filter((s2, g2, R) => R.indexOf(s2) === g2).sort((s2, g2) => s2.localeCompare(g2)).map((s2) => ` - ${s2}`).join(`
|
|
46727
46727
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((s2) => ` - ${s2}`).join(`
|
|
46728
46728
|
`)].join(`
|
|
46729
46729
|
`));
|
|
46730
|
-
let p2 = j$
|
|
46730
|
+
let p2 = j$4((h2 = u2.props) != null ? h2 : {}, l2), f2 = cloneVNode(u2, p2);
|
|
46731
46731
|
for (let s2 in p2)
|
|
46732
46732
|
s2.startsWith("on") && (f2.props || (f2.props = {}), f2.props[s2] = p2[s2]);
|
|
46733
46733
|
return f2;
|
|
@@ -46739,7 +46739,7 @@ function y$2({ props: r2, attrs: t2, slots: e2, slot: o2, name: i2 }) {
|
|
|
46739
46739
|
function b$2(r2) {
|
|
46740
46740
|
return r2.flatMap((t2) => t2.type === Fragment ? b$2(t2.children) : [t2]);
|
|
46741
46741
|
}
|
|
46742
|
-
function j$
|
|
46742
|
+
function j$4(...r2) {
|
|
46743
46743
|
if (r2.length === 0)
|
|
46744
46744
|
return {};
|
|
46745
46745
|
if (r2.length === 1)
|
|
@@ -46788,7 +46788,7 @@ function f$2(r2) {
|
|
|
46788
46788
|
throw new Error("Unexpected object: " + r2);
|
|
46789
46789
|
}
|
|
46790
46790
|
var a$2 = ((e2) => (e2[e2.First = 0] = "First", e2[e2.Previous = 1] = "Previous", e2[e2.Next = 2] = "Next", e2[e2.Last = 3] = "Last", e2[e2.Specific = 4] = "Specific", e2[e2.Nothing = 5] = "Nothing", e2))(a$2 || {});
|
|
46791
|
-
function x(r2, n2) {
|
|
46791
|
+
function x$1(r2, n2) {
|
|
46792
46792
|
let t2 = n2.resolveItems();
|
|
46793
46793
|
if (t2.length <= 0)
|
|
46794
46794
|
return null;
|
|
@@ -47082,10 +47082,96 @@ function M({ slot: t2 = ref({}), name: i2 = "Description", props: o2 = {} } = {}
|
|
|
47082
47082
|
let E = defineComponent({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${t$1()}` } }, setup(t2, { attrs: i2, slots: o2 }) {
|
|
47083
47083
|
let e2 = b();
|
|
47084
47084
|
return onMounted(() => onUnmounted(e2.register(t2.id))), () => {
|
|
47085
|
-
let { name: s2 = "Description", slot: n2 = ref({}), props: r2 = {} } = e2, { id: d2, ...l2 } = t2, c2 = { ...Object.entries(r2).reduce((f2, [a2,
|
|
47085
|
+
let { name: s2 = "Description", slot: n2 = ref({}), props: r2 = {} } = e2, { id: d2, ...l2 } = t2, c2 = { ...Object.entries(r2).reduce((f2, [a2, g2]) => Object.assign(f2, { [a2]: unref(g2) }), {}), id: d2 };
|
|
47086
47086
|
return H$2({ ourProps: c2, theirProps: l2, slot: n2.value, attrs: i2, slots: o2, name: s2 });
|
|
47087
47087
|
};
|
|
47088
47088
|
} });
|
|
47089
|
+
var j$3 = ((o2) => (o2[o2.Open = 0] = "Open", o2[o2.Closed = 1] = "Closed", o2))(j$3 || {});
|
|
47090
|
+
let x = Symbol("DisclosureContext");
|
|
47091
|
+
function g(t2) {
|
|
47092
|
+
let r2 = inject(x, null);
|
|
47093
|
+
if (r2 === null) {
|
|
47094
|
+
let o2 = new Error(`<${t2} /> is missing a parent <Disclosure /> component.`);
|
|
47095
|
+
throw Error.captureStackTrace && Error.captureStackTrace(o2, g), o2;
|
|
47096
|
+
}
|
|
47097
|
+
return r2;
|
|
47098
|
+
}
|
|
47099
|
+
let B = Symbol("DisclosurePanelContext");
|
|
47100
|
+
function $() {
|
|
47101
|
+
return inject(B, null);
|
|
47102
|
+
}
|
|
47103
|
+
let Q = defineComponent({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(t2, { slots: r2, attrs: o$12 }) {
|
|
47104
|
+
let u2 = ref(t2.defaultOpen ? 0 : 1), e2 = ref(null), i2 = ref(null), s2 = { buttonId: ref(null), panelId: ref(null), disclosureState: u2, panel: e2, button: i2, toggleDisclosure() {
|
|
47105
|
+
u2.value = u$2(u2.value, { [0]: 1, [1]: 0 });
|
|
47106
|
+
}, closeDisclosure() {
|
|
47107
|
+
u2.value !== 1 && (u2.value = 1);
|
|
47108
|
+
}, close(l2) {
|
|
47109
|
+
s2.closeDisclosure();
|
|
47110
|
+
let a2 = (() => l2 ? l2 instanceof HTMLElement ? l2 : l2.value instanceof HTMLElement ? o(l2) : o(s2.button) : o(s2.button))();
|
|
47111
|
+
a2 == null || a2.focus();
|
|
47112
|
+
} };
|
|
47113
|
+
return provide(x, s2), c$2(computed(() => u$2(u2.value, { [0]: l.Open, [1]: l.Closed }))), () => {
|
|
47114
|
+
let { defaultOpen: l2, ...a2 } = t2, c2 = { open: u2.value === 0, close: s2.close };
|
|
47115
|
+
return H$2({ theirProps: a2, ourProps: {}, slot: c2, slots: r2, attrs: o$12, name: "Disclosure" });
|
|
47116
|
+
};
|
|
47117
|
+
} }), V = defineComponent({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-disclosure-button-${t$1()}` } }, setup(t2, { attrs: r2, slots: o$2, expose: u2 }) {
|
|
47118
|
+
let e2 = g("DisclosureButton");
|
|
47119
|
+
onMounted(() => {
|
|
47120
|
+
e2.buttonId.value = t2.id;
|
|
47121
|
+
}), onUnmounted(() => {
|
|
47122
|
+
e2.buttonId.value = null;
|
|
47123
|
+
});
|
|
47124
|
+
let i2 = $(), s2 = computed(() => i2 === null ? false : i2.value === e2.panelId.value), l2 = ref(null);
|
|
47125
|
+
u2({ el: l2, $el: l2 }), s2.value || watchEffect(() => {
|
|
47126
|
+
e2.button.value = l2.value;
|
|
47127
|
+
});
|
|
47128
|
+
let a2 = b$1(computed(() => ({ as: t2.as, type: r2.type })), l2);
|
|
47129
|
+
function c2() {
|
|
47130
|
+
var n2;
|
|
47131
|
+
t2.disabled || (s2.value ? (e2.toggleDisclosure(), (n2 = o(e2.button)) == null || n2.focus()) : e2.toggleDisclosure());
|
|
47132
|
+
}
|
|
47133
|
+
function D(n2) {
|
|
47134
|
+
var S2;
|
|
47135
|
+
if (!t2.disabled)
|
|
47136
|
+
if (s2.value)
|
|
47137
|
+
switch (n2.key) {
|
|
47138
|
+
case o$1.Space:
|
|
47139
|
+
case o$1.Enter:
|
|
47140
|
+
n2.preventDefault(), n2.stopPropagation(), e2.toggleDisclosure(), (S2 = o(e2.button)) == null || S2.focus();
|
|
47141
|
+
break;
|
|
47142
|
+
}
|
|
47143
|
+
else
|
|
47144
|
+
switch (n2.key) {
|
|
47145
|
+
case o$1.Space:
|
|
47146
|
+
case o$1.Enter:
|
|
47147
|
+
n2.preventDefault(), n2.stopPropagation(), e2.toggleDisclosure();
|
|
47148
|
+
break;
|
|
47149
|
+
}
|
|
47150
|
+
}
|
|
47151
|
+
function T2(n2) {
|
|
47152
|
+
switch (n2.key) {
|
|
47153
|
+
case o$1.Space:
|
|
47154
|
+
n2.preventDefault();
|
|
47155
|
+
break;
|
|
47156
|
+
}
|
|
47157
|
+
}
|
|
47158
|
+
return () => {
|
|
47159
|
+
let n2 = { open: e2.disclosureState.value === 0 }, { id: S2, ...k2 } = t2, K2 = s2.value ? { ref: l2, type: a2.value, onClick: c2, onKeydown: D } : { id: S2, ref: l2, type: a2.value, "aria-expanded": t2.disabled ? void 0 : e2.disclosureState.value === 0, "aria-controls": o(e2.panel) ? e2.panelId.value : void 0, disabled: t2.disabled ? true : void 0, onClick: c2, onKeydown: D, onKeyup: T2 };
|
|
47160
|
+
return H$2({ ourProps: K2, theirProps: k2, slot: n2, attrs: r2, slots: o$2, name: "DisclosureButton" });
|
|
47161
|
+
};
|
|
47162
|
+
} }), X = defineComponent({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-disclosure-panel-${t$1()}` } }, setup(t2, { attrs: r2, slots: o2, expose: u2 }) {
|
|
47163
|
+
let e2 = g("DisclosurePanel");
|
|
47164
|
+
onMounted(() => {
|
|
47165
|
+
e2.panelId.value = t2.id;
|
|
47166
|
+
}), onUnmounted(() => {
|
|
47167
|
+
e2.panelId.value = null;
|
|
47168
|
+
}), u2({ el: e2.panel, $el: e2.panel }), provide(B, e2.panelId);
|
|
47169
|
+
let i2 = p$3(), s2 = computed(() => i2 !== null ? (i2.value & l.Open) === l.Open : e2.disclosureState.value === 0);
|
|
47170
|
+
return () => {
|
|
47171
|
+
let l2 = { open: e2.disclosureState.value === 0, close: e2.close }, { id: a2, ...c2 } = t2, D = { id: a2, ref: e2.panel };
|
|
47172
|
+
return H$2({ ourProps: D, theirProps: c2, slot: l2, attrs: r2, slots: o2, features: N$1.RenderStrategy | N$1.Static, visible: s2.value, name: "DisclosurePanel" });
|
|
47173
|
+
};
|
|
47174
|
+
} });
|
|
47089
47175
|
function de$1(t2, b2) {
|
|
47090
47176
|
return t2 === b2;
|
|
47091
47177
|
}
|
|
@@ -47103,7 +47189,7 @@ function j$2(t2) {
|
|
|
47103
47189
|
return b2;
|
|
47104
47190
|
}
|
|
47105
47191
|
let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], default: () => de$1 }, horizontal: { type: [Boolean], default: false }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, multiple: { type: [Boolean], default: false } }, inheritAttrs: false, setup(t2, { slots: b2, attrs: u2, emit: L }) {
|
|
47106
|
-
let e$12 = ref(1), d2 = ref(null), m2 = ref(null),
|
|
47192
|
+
let e$12 = ref(1), d2 = ref(null), m2 = ref(null), x2 = ref(null), f2 = ref([]), o$12 = ref(""), i2 = ref(null), w$1 = ref(1);
|
|
47107
47193
|
function R(a2 = (l2) => l2) {
|
|
47108
47194
|
let l2 = i2.value !== null ? f2.value[i2.value] : null, r2 = O(a2(f2.value.slice()), (S2) => o(S2.dataRef.domRef)), s2 = l2 ? r2.indexOf(l2) : null;
|
|
47109
47195
|
return s2 === -1 && (s2 = null), { options: r2, activeOptionIndex: s2 };
|
|
@@ -47114,21 +47200,21 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47114
47200
|
return (a2 == null ? void 0 : a2[r2]) === (l2 == null ? void 0 : l2[r2]);
|
|
47115
47201
|
}
|
|
47116
47202
|
return t2.by(a2, l2);
|
|
47117
|
-
}, orientation: computed(() => t2.horizontal ? "horizontal" : "vertical"), labelRef: d2, buttonRef: m2, optionsRef:
|
|
47203
|
+
}, orientation: computed(() => t2.horizontal ? "horizontal" : "vertical"), labelRef: d2, buttonRef: m2, optionsRef: x2, disabled: computed(() => t2.disabled), options: f2, searchQuery: o$12, activeOptionIndex: i2, activationTrigger: w$1, closeListbox() {
|
|
47118
47204
|
t2.disabled || e$12.value !== 1 && (e$12.value = 1, i2.value = null);
|
|
47119
47205
|
}, openListbox() {
|
|
47120
47206
|
t2.disabled || e$12.value !== 0 && (e$12.value = 0);
|
|
47121
47207
|
}, goToOption(a2, l2, r2) {
|
|
47122
47208
|
if (t2.disabled || e$12.value === 1)
|
|
47123
47209
|
return;
|
|
47124
|
-
let s2 = R(), S2 = x(a2 === a$2.Specific ? { focus: a$2.Specific, id: l2 } : { focus: a2 }, { resolveItems: () => s2.options, resolveActiveIndex: () => s2.activeOptionIndex, resolveId: (k2) => k2.id, resolveDisabled: (k2) => k2.dataRef.disabled });
|
|
47210
|
+
let s2 = R(), S2 = x$1(a2 === a$2.Specific ? { focus: a$2.Specific, id: l2 } : { focus: a2 }, { resolveItems: () => s2.options, resolveActiveIndex: () => s2.activeOptionIndex, resolveId: (k2) => k2.id, resolveDisabled: (k2) => k2.dataRef.disabled });
|
|
47125
47211
|
o$12.value = "", i2.value = S2, w$1.value = r2 != null ? r2 : 1, f2.value = s2.options;
|
|
47126
47212
|
}, search(a2) {
|
|
47127
47213
|
if (t2.disabled || e$12.value === 1)
|
|
47128
47214
|
return;
|
|
47129
47215
|
let r2 = o$12.value !== "" ? 0 : 1;
|
|
47130
47216
|
o$12.value += a2.toLowerCase();
|
|
47131
|
-
let S2 = (i2.value !== null ? f2.value.slice(i2.value + r2).concat(f2.value.slice(0, i2.value + r2)) : f2.value).find((
|
|
47217
|
+
let S2 = (i2.value !== null ? f2.value.slice(i2.value + r2).concat(f2.value.slice(0, i2.value + r2)) : f2.value).find((V2) => V2.dataRef.textValue.startsWith(o$12.value) && !V2.dataRef.disabled), k2 = S2 ? f2.value.indexOf(S2) : -1;
|
|
47132
47218
|
k2 === -1 || k2 === i2.value || (i2.value = k2, w$1.value = 1);
|
|
47133
47219
|
}, clearSearch() {
|
|
47134
47220
|
t2.disabled || e$12.value !== 1 && o$12.value !== "" && (o$12.value = "");
|
|
@@ -47147,7 +47233,7 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47147
47233
|
return s2 === -1 ? l2.push(r2) : l2.splice(s2, 1), l2;
|
|
47148
47234
|
} }));
|
|
47149
47235
|
} };
|
|
47150
|
-
y([m2,
|
|
47236
|
+
y([m2, x2], (a2, l2) => {
|
|
47151
47237
|
var r2;
|
|
47152
47238
|
n2.closeListbox(), w(l2, h.Loose) || (a2.preventDefault(), (r2 = o(m2)) == null || r2.focus());
|
|
47153
47239
|
}, computed(() => e$12.value === 0)), provide(U$1, n2), c$2(computed(() => u$2(e$12.value, { [0]: l.Open, [1]: l.Closed })));
|
|
@@ -47169,7 +47255,7 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47169
47255
|
}, { immediate: true });
|
|
47170
47256
|
}), () => {
|
|
47171
47257
|
let { name: a2, modelValue: l2, disabled: r2, form: s2, ...S2 } = t2, k2 = { open: e$12.value === 0, disabled: r2, value: y$12.value };
|
|
47172
|
-
return h$1(Fragment, [...a2 != null && y$12.value != null ? e({ [a2]: y$12.value }).map(([
|
|
47258
|
+
return h$1(Fragment, [...a2 != null && y$12.value != null ? e({ [a2]: y$12.value }).map(([V2, $2]) => h$1(f$1, K$1({ features: a$1.Hidden, key: V2, as: "input", type: "hidden", hidden: true, readOnly: true, form: s2, name: V2, value: $2 }))) : [], H$2({ ourProps: {}, theirProps: { ...u2, ...T$2(S2, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: k2, slots: b2, attrs: u2, name: "Listbox" })]);
|
|
47173
47259
|
};
|
|
47174
47260
|
} }), Ae = defineComponent({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${t$1()}` } }, setup(t2, { attrs: b2, slots: u2 }) {
|
|
47175
47261
|
let L = j$2("ListboxLabel");
|
|
@@ -47348,7 +47434,7 @@ function K({ slot: t2 = {}, name: n2 = "Label", props: i2 = {} } = {}) {
|
|
|
47348
47434
|
let T = defineComponent({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${t$1()}` } }, setup(t2, { slots: n2, attrs: i2 }) {
|
|
47349
47435
|
let e2 = d$1();
|
|
47350
47436
|
return onMounted(() => onUnmounted(e2.register(t2.id))), () => {
|
|
47351
|
-
let { name: l2 = "Label", slot: r2 = {}, props: o2 = {} } = e2, { id: p2, passive: c2, ...u2 } = t2, s2 = { ...Object.entries(o2).reduce((f2, [b2,
|
|
47437
|
+
let { name: l2 = "Label", slot: r2 = {}, props: o2 = {} } = e2, { id: p2, passive: c2, ...u2 } = t2, s2 = { ...Object.entries(o2).reduce((f2, [b2, g2]) => Object.assign(f2, { [b2]: unref(g2) }), {}), id: p2 };
|
|
47352
47438
|
return c2 && (delete s2.onClick, delete s2.htmlFor, delete u2.onClick), H$2({ ourProps: s2, theirProps: u2, slot: r2, attrs: i2, slots: n2, name: l2 });
|
|
47353
47439
|
};
|
|
47354
47440
|
} });
|
|
@@ -47489,7 +47575,7 @@ let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", prop
|
|
|
47489
47575
|
function s2() {
|
|
47490
47576
|
r2(!i2.value);
|
|
47491
47577
|
}
|
|
47492
|
-
let w2 = ref(null), u2 = t2 === null ? w2 : t2.switchRef,
|
|
47578
|
+
let w2 = ref(null), u2 = t2 === null ? w2 : t2.switchRef, g2 = b$1(computed(() => ({ as: l2.as, type: a2.type })), u2);
|
|
47493
47579
|
f2({ el: u2, $el: u2 });
|
|
47494
47580
|
function k2(e2) {
|
|
47495
47581
|
e2.preventDefault(), s2();
|
|
@@ -47517,7 +47603,7 @@ let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", prop
|
|
|
47517
47603
|
};
|
|
47518
47604
|
}, { immediate: true });
|
|
47519
47605
|
}), () => {
|
|
47520
|
-
let { id: e2, name: n2, value: L, form: D, ...R } = l2, K2 = { checked: i2.value }, x2 = { id: e2, ref: u2, role: "switch", type:
|
|
47606
|
+
let { id: e2, name: n2, value: L, form: D, ...R } = l2, K2 = { checked: i2.value }, x2 = { id: e2, ref: u2, role: "switch", type: g2.value, tabIndex: 0, "aria-checked": i2.value, "aria-labelledby": t2 == null ? void 0 : t2.labelledby.value, "aria-describedby": t2 == null ? void 0 : t2.describedby.value, onClick: k2, onKeyup: C, onKeypress: E2 };
|
|
47521
47607
|
return h$1(Fragment, [n2 != null && i2.value != null ? h$1(f$1, K$1({ features: a$1.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: i2.value, form: D, name: n2, value: L })) : null, H$2({ ourProps: x2, theirProps: { ...a2, ...T$2(R, ["modelValue", "defaultChecked"]) }, slot: K2, attrs: a2, slots: o$2, name: "Switch" })]);
|
|
47522
47608
|
};
|
|
47523
47609
|
} }), de = T, ce = E;
|
|
@@ -47567,8 +47653,8 @@ let j = Symbol("TabsSSRContext"), xe = defineComponent({ name: "TabGroup", emits
|
|
|
47567
47653
|
let p2 = e2.slice(0, t2), G = [...e2.slice(t2), ...p2].find((W) => f2.includes(W));
|
|
47568
47654
|
if (!G)
|
|
47569
47655
|
return;
|
|
47570
|
-
let
|
|
47571
|
-
|
|
47656
|
+
let B2 = (S2 = e2.indexOf(G)) != null ? S2 : r2.selectedIndex.value;
|
|
47657
|
+
B2 === -1 && (B2 = r2.selectedIndex.value), l2.value = B2, r2.tabs.value = e2, r2.panels.value = u2;
|
|
47572
47658
|
}
|
|
47573
47659
|
}
|
|
47574
47660
|
let r2 = { selectedIndex: computed(() => {
|
|
@@ -47710,7 +47796,7 @@ let j = Symbol("TabsSSRContext"), xe = defineComponent({ name: "TabGroup", emits
|
|
|
47710
47796
|
return !m2.value && a2.unmount && !a2.static ? h$1(f$1, { as: "span", ...h2 }) : H$2({ ourProps: h2, theirProps: w2, slot: r2, attrs: v2, slots: i2, features: N$1.Static | N$1.RenderStrategy, visible: m2.value, name: "TabPanel" });
|
|
47711
47797
|
};
|
|
47712
47798
|
} });
|
|
47713
|
-
const _sfc_main$
|
|
47799
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
47714
47800
|
__name: "VRadioDescription",
|
|
47715
47801
|
props: {
|
|
47716
47802
|
as: {
|
|
@@ -47729,7 +47815,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
47729
47815
|
};
|
|
47730
47816
|
}
|
|
47731
47817
|
});
|
|
47732
|
-
const _sfc_main$
|
|
47818
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
47733
47819
|
__name: "VRadioGroup",
|
|
47734
47820
|
props: {
|
|
47735
47821
|
as: {
|
|
@@ -47797,7 +47883,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
47797
47883
|
};
|
|
47798
47884
|
}
|
|
47799
47885
|
});
|
|
47800
|
-
const _sfc_main$
|
|
47886
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
47801
47887
|
__name: "VRadioItem",
|
|
47802
47888
|
props: {
|
|
47803
47889
|
value: {
|
|
@@ -47823,7 +47909,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
47823
47909
|
};
|
|
47824
47910
|
}
|
|
47825
47911
|
});
|
|
47826
|
-
const _sfc_main$
|
|
47912
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
47827
47913
|
__name: "VRadioLabel",
|
|
47828
47914
|
props: {
|
|
47829
47915
|
as: {
|
|
@@ -47842,11 +47928,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
47842
47928
|
};
|
|
47843
47929
|
}
|
|
47844
47930
|
});
|
|
47845
|
-
const _hoisted_1$
|
|
47931
|
+
const _hoisted_1$8 = {
|
|
47846
47932
|
key: 0,
|
|
47847
47933
|
class: "sr-only"
|
|
47848
47934
|
};
|
|
47849
|
-
const _sfc_main$
|
|
47935
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
47850
47936
|
__name: "VSwitch",
|
|
47851
47937
|
props: {
|
|
47852
47938
|
modelValue: {
|
|
@@ -47922,7 +48008,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
47922
48008
|
createElementVNode("div", {
|
|
47923
48009
|
class: normalizeClass(`slide-toggle-track flex transition-all duration-[150ms] border-token rounded-token ${unref(trackSize)} ${__props.disabled ? "cursor-not-allowed" : "cursor-pointer"} ${__props.switchClass}`)
|
|
47924
48010
|
}, [
|
|
47925
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
48011
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$8, [
|
|
47926
48012
|
renderSlot(_ctx.$slots, "default")
|
|
47927
48013
|
])) : createCommentVNode("", true),
|
|
47928
48014
|
createElementVNode("div", {
|
|
@@ -47935,7 +48021,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
47935
48021
|
};
|
|
47936
48022
|
}
|
|
47937
48023
|
});
|
|
47938
|
-
const _sfc_main$
|
|
48024
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
47939
48025
|
__name: "VSwitchDescription",
|
|
47940
48026
|
props: {
|
|
47941
48027
|
as: {
|
|
@@ -47954,7 +48040,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
47954
48040
|
};
|
|
47955
48041
|
}
|
|
47956
48042
|
});
|
|
47957
|
-
const _sfc_main$
|
|
48043
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
47958
48044
|
__name: "VSwitchGroup",
|
|
47959
48045
|
props: {
|
|
47960
48046
|
as: {
|
|
@@ -47973,7 +48059,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
47973
48059
|
};
|
|
47974
48060
|
}
|
|
47975
48061
|
});
|
|
47976
|
-
const _sfc_main$
|
|
48062
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
47977
48063
|
__name: "VSwitchLabel",
|
|
47978
48064
|
props: {
|
|
47979
48065
|
as: {
|
|
@@ -48118,8 +48204,8 @@ const useDarkMode = () => {
|
|
|
48118
48204
|
MODE
|
|
48119
48205
|
};
|
|
48120
48206
|
};
|
|
48121
|
-
const _hoisted_1$
|
|
48122
|
-
const _sfc_main$
|
|
48207
|
+
const _hoisted_1$7 = ["aria-labelledby", "aria-describedby"];
|
|
48208
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
48123
48209
|
__name: "VDrawer",
|
|
48124
48210
|
props: {
|
|
48125
48211
|
regionBackdrop: {
|
|
@@ -48183,7 +48269,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
48183
48269
|
"aria-describedby": unref(describedby)
|
|
48184
48270
|
}, [
|
|
48185
48271
|
renderSlot(_ctx.$slots, "default")
|
|
48186
|
-
], 10, _hoisted_1$
|
|
48272
|
+
], 10, _hoisted_1$7)) : createCommentVNode("", true)
|
|
48187
48273
|
]),
|
|
48188
48274
|
_: 3
|
|
48189
48275
|
}, 8, ["name"]),
|
|
@@ -48207,59 +48293,59 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
48207
48293
|
}
|
|
48208
48294
|
});
|
|
48209
48295
|
var VPreview_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
48210
|
-
const _withScopeId$
|
|
48211
|
-
const _hoisted_1$
|
|
48212
|
-
const _hoisted_2$
|
|
48213
|
-
const _hoisted_3$
|
|
48296
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-0d055d3d"), n2 = n2(), popScopeId(), n2);
|
|
48297
|
+
const _hoisted_1$6 = { class: "vuetiful-previewer overflow-hidden shadow-2xl shadow-surface-500/10 rounded-container-token dark:shadow-black/10" };
|
|
48298
|
+
const _hoisted_2$4 = { class: "flex items-center gap-2" };
|
|
48299
|
+
const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48214
48300
|
class: "icon",
|
|
48215
48301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48216
48302
|
viewBox: "0 0 576 512"
|
|
48217
48303
|
}, [
|
|
48218
48304
|
/* @__PURE__ */ createElementVNode("path", { d: "M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z" })
|
|
48219
48305
|
], -1));
|
|
48220
|
-
const _hoisted_4$1 = /* @__PURE__ */ _withScopeId$
|
|
48306
|
+
const _hoisted_4$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48221
48307
|
class: "icon",
|
|
48222
48308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48223
48309
|
viewBox: "0 0 640 512"
|
|
48224
48310
|
}, [
|
|
48225
48311
|
/* @__PURE__ */ createElementVNode("path", { d: "M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z" })
|
|
48226
48312
|
], -1));
|
|
48227
|
-
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$
|
|
48313
|
+
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48228
48314
|
class: "icon",
|
|
48229
48315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48230
48316
|
viewBox: "0 0 384 512"
|
|
48231
48317
|
}, [
|
|
48232
48318
|
/* @__PURE__ */ createElementVNode("path", { d: "M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM144 448c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16s-7.2-16-16-16H160c-8.8 0-16 7.2-16 16zM304 64H80V384H304V64z" })
|
|
48233
48319
|
], -1));
|
|
48234
|
-
const _hoisted_6$1 = /* @__PURE__ */ _withScopeId$
|
|
48320
|
+
const _hoisted_6$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48235
48321
|
class: "icon",
|
|
48236
48322
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48237
48323
|
viewBox: "0 0 576 512"
|
|
48238
48324
|
}, [
|
|
48239
48325
|
/* @__PURE__ */ createElementVNode("path", { d: "M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V352H64V64H512z" })
|
|
48240
48326
|
], -1));
|
|
48241
|
-
const _hoisted_7 = /* @__PURE__ */ _withScopeId$
|
|
48327
|
+
const _hoisted_7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48242
48328
|
class: "icon",
|
|
48243
48329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48244
48330
|
viewBox: "0 0 512 512"
|
|
48245
48331
|
}, [
|
|
48246
48332
|
/* @__PURE__ */ createElementVNode("path", { d: "M0 32C0 14.3 14.3 0 32 0H160c17.7 0 32 14.3 32 32V416c0 53-43 96-96 96s-96-43-96-96V32zM223.6 425.9c.3-3.3 .4-6.6 .4-9.9V154l75.4-75.4c12.5-12.5 32.8-12.5 45.3 0l90.5 90.5c12.5 12.5 12.5 32.8 0 45.3L223.6 425.9zM182.8 512l192-192H480c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32H182.8zM128 64H64v64h64V64zM64 192v64h64V192H64zM96 440a24 24 0 1 0 0-48 24 24 0 1 0 0 48z" })
|
|
48247
48333
|
], -1));
|
|
48248
|
-
const _hoisted_8 = /* @__PURE__ */ _withScopeId$
|
|
48334
|
+
const _hoisted_8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48249
48335
|
class: "icon",
|
|
48250
48336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48251
48337
|
viewBox: "0 0 512 512"
|
|
48252
48338
|
}, [
|
|
48253
48339
|
/* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z" })
|
|
48254
48340
|
], -1));
|
|
48255
|
-
const _hoisted_9 = /* @__PURE__ */ _withScopeId$
|
|
48341
|
+
const _hoisted_9 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48256
48342
|
class: "icon",
|
|
48257
48343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48258
48344
|
viewBox: "0 0 512 512"
|
|
48259
48345
|
}, [
|
|
48260
48346
|
/* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })
|
|
48261
48347
|
], -1));
|
|
48262
|
-
const _sfc_main$
|
|
48348
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
48263
48349
|
__name: "VPreview",
|
|
48264
48350
|
props: {
|
|
48265
48351
|
hideMobileToggle: {
|
|
@@ -48315,29 +48401,29 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
48315
48401
|
const swatches = ref(false);
|
|
48316
48402
|
const toggleSwatches = () => swatches.value = !swatches.value;
|
|
48317
48403
|
return (_ctx, _cache) => {
|
|
48318
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
48404
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
48319
48405
|
createElementVNode("header", {
|
|
48320
48406
|
class: normalizeClass(`vuetiful-previewer-header flex items-center justify-between gap-4 p-4 bg-surface-200-700-token ${__props.regionHeader}`)
|
|
48321
48407
|
}, [
|
|
48322
|
-
createElementVNode("div", _hoisted_2$
|
|
48323
|
-
createVNode(unref(_sfc_main$
|
|
48408
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
48409
|
+
createVNode(unref(_sfc_main$m), {
|
|
48324
48410
|
modelValue: tabView.value,
|
|
48325
48411
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tabView.value = $event)
|
|
48326
48412
|
}, {
|
|
48327
48413
|
default: withCtx(() => [
|
|
48328
|
-
createVNode(unref(_sfc_main$
|
|
48414
|
+
createVNode(unref(_sfc_main$l), {
|
|
48329
48415
|
"data-test": "radio-item-preview",
|
|
48330
48416
|
value: "preview",
|
|
48331
48417
|
title: "Preview"
|
|
48332
48418
|
}, {
|
|
48333
48419
|
default: withCtx(() => [
|
|
48334
48420
|
renderSlot(_ctx.$slots, "preview-item", {}, () => [
|
|
48335
|
-
_hoisted_3$
|
|
48421
|
+
_hoisted_3$3
|
|
48336
48422
|
], true)
|
|
48337
48423
|
]),
|
|
48338
48424
|
_: 3
|
|
48339
48425
|
}),
|
|
48340
|
-
createVNode(unref(_sfc_main$
|
|
48426
|
+
createVNode(unref(_sfc_main$l), {
|
|
48341
48427
|
"data-test": "radio-item-code",
|
|
48342
48428
|
value: "code",
|
|
48343
48429
|
title: "Code"
|
|
@@ -48352,14 +48438,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
48352
48438
|
]),
|
|
48353
48439
|
_: 3
|
|
48354
48440
|
}, 8, ["modelValue"]),
|
|
48355
|
-
!__props.hideMobileToggle && tabView.value === "preview" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
48441
|
+
!__props.hideMobileToggle && tabView.value === "preview" ? (openBlock(), createBlock(unref(_sfc_main$m), {
|
|
48356
48442
|
key: 0,
|
|
48357
48443
|
class: "hidden sm:!inline-flex",
|
|
48358
48444
|
modelValue: radioSize.value,
|
|
48359
48445
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => radioSize.value = $event)
|
|
48360
48446
|
}, {
|
|
48361
48447
|
default: withCtx(() => [
|
|
48362
|
-
createVNode(unref(_sfc_main$
|
|
48448
|
+
createVNode(unref(_sfc_main$l), {
|
|
48363
48449
|
"data-test": "radio-item-mobile",
|
|
48364
48450
|
value: "mobile"
|
|
48365
48451
|
}, {
|
|
@@ -48370,7 +48456,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
48370
48456
|
]),
|
|
48371
48457
|
_: 3
|
|
48372
48458
|
}),
|
|
48373
|
-
createVNode(unref(_sfc_main$
|
|
48459
|
+
createVNode(unref(_sfc_main$l), { value: "full" }, {
|
|
48374
48460
|
default: withCtx(() => [
|
|
48375
48461
|
renderSlot(_ctx.$slots, "desktop-item", {}, () => [
|
|
48376
48462
|
_hoisted_6$1
|
|
@@ -48382,7 +48468,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
48382
48468
|
_: 3
|
|
48383
48469
|
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
48384
48470
|
]),
|
|
48385
|
-
!__props.hideSwatches ? (openBlock(), createBlock(unref(_sfc_main$
|
|
48471
|
+
!__props.hideSwatches ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
48386
48472
|
key: 0,
|
|
48387
48473
|
"data-test": "swatch-button",
|
|
48388
48474
|
class: normalizeClass(`${swatches.value ? "variant-filled" : "variant-ghost"} px-4 py-1 border-token border-surface-400-500-token`),
|
|
@@ -48397,7 +48483,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
48397
48483
|
_: 3
|
|
48398
48484
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
48399
48485
|
], 2),
|
|
48400
|
-
swatches.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
48486
|
+
swatches.value ? (openBlock(), createBlock(unref(_sfc_main$m), {
|
|
48401
48487
|
key: 0,
|
|
48402
48488
|
"data-test": "swatches",
|
|
48403
48489
|
class: normalizeClass(`vuetiful-previewer-swatches variant-soft grid grid-cols-6 gap-2 !rounded-none p-4 sm:grid-cols-12`),
|
|
@@ -48408,7 +48494,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
48408
48494
|
}, {
|
|
48409
48495
|
default: withCtx(() => [
|
|
48410
48496
|
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.entries(backgrounds), ([key, value], index2) => {
|
|
48411
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
48497
|
+
return openBlock(), createBlock(unref(_sfc_main$l), {
|
|
48412
48498
|
value: key,
|
|
48413
48499
|
key: index2,
|
|
48414
48500
|
class: normalizeClass(`${value} flex aspect-square cursor-pointer items-center justify-center rounded ring-[1px] ring-surface-500/50`),
|
|
@@ -48461,9 +48547,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
48461
48547
|
};
|
|
48462
48548
|
}
|
|
48463
48549
|
});
|
|
48464
|
-
var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48465
|
-
const _hoisted_1$
|
|
48466
|
-
const _sfc_main$
|
|
48550
|
+
var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-0d055d3d"]]);
|
|
48551
|
+
const _hoisted_1$5 = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
|
|
48552
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
48467
48553
|
__name: "VRail",
|
|
48468
48554
|
props: {
|
|
48469
48555
|
active: {
|
|
@@ -48492,7 +48578,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
48492
48578
|
provide("active", props.active);
|
|
48493
48579
|
provide("hover", props.hover);
|
|
48494
48580
|
return (_ctx, _cache) => {
|
|
48495
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
48581
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
48496
48582
|
createElementVNode("div", {
|
|
48497
48583
|
class: normalizeClass(["v-bar-lead", __props.regionLead])
|
|
48498
48584
|
}, [
|
|
@@ -48512,7 +48598,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
48512
48598
|
};
|
|
48513
48599
|
}
|
|
48514
48600
|
});
|
|
48515
|
-
const _sfc_main$
|
|
48601
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
48516
48602
|
__name: "VRailTile",
|
|
48517
48603
|
props: {
|
|
48518
48604
|
value: {
|
|
@@ -48588,9 +48674,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
48588
48674
|
};
|
|
48589
48675
|
}
|
|
48590
48676
|
});
|
|
48591
|
-
const _hoisted_1$
|
|
48592
|
-
const _hoisted_2$
|
|
48593
|
-
const _sfc_main$
|
|
48677
|
+
const _hoisted_1$4 = { class: "vuetiful-shell flex h-full w-full flex-col overflow-hidden" };
|
|
48678
|
+
const _hoisted_2$3 = { class: "vuetiful-shell-content flex h-full w-full flex-auto overflow-hidden" };
|
|
48679
|
+
const _sfc_main$b = defineComponent({
|
|
48594
48680
|
__name: "VShell",
|
|
48595
48681
|
props: {
|
|
48596
48682
|
regionPage: { type: String, default: "" },
|
|
@@ -48605,14 +48691,14 @@ const _sfc_main$9 = defineComponent({
|
|
|
48605
48691
|
setup(__props) {
|
|
48606
48692
|
return (_ctx, _cache) => {
|
|
48607
48693
|
var _a;
|
|
48608
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
48694
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
48609
48695
|
_ctx.$slots.fixedHeader ? (openBlock(), createElementBlock("header", {
|
|
48610
48696
|
key: 0,
|
|
48611
48697
|
class: normalizeClass(`vuetiful-fixed-header ${__props.slotFixedHeader}`)
|
|
48612
48698
|
}, [
|
|
48613
48699
|
renderSlot(_ctx.$slots, "fixedHeader")
|
|
48614
48700
|
], 2)) : createCommentVNode("", true),
|
|
48615
|
-
createElementVNode("div", _hoisted_2$
|
|
48701
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
48616
48702
|
_ctx.$slots.sidebarLeft ? (openBlock(), createElementBlock("aside", {
|
|
48617
48703
|
key: 0,
|
|
48618
48704
|
class: normalizeClass(`vuetiful-sidebar-left overflow-y-auto overflow-x-hidden ${__props.slotSidebarLeft}`)
|
|
@@ -48659,23 +48745,23 @@ const _sfc_main$9 = defineComponent({
|
|
|
48659
48745
|
}
|
|
48660
48746
|
});
|
|
48661
48747
|
var VListboxButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
48662
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-85546624"), n2 = n2(), popScopeId(), n2);
|
|
48663
|
-
const _hoisted_1$
|
|
48664
|
-
const _hoisted_2$
|
|
48748
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-85546624"), n2 = n2(), popScopeId(), n2);
|
|
48749
|
+
const _hoisted_1$3 = { key: 0 };
|
|
48750
|
+
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48665
48751
|
class: "icon",
|
|
48666
48752
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48667
48753
|
viewBox: "0 0 512 512"
|
|
48668
48754
|
}, [
|
|
48669
48755
|
/* @__PURE__ */ createElementVNode("path", { d: "M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z" })
|
|
48670
48756
|
], -1));
|
|
48671
|
-
const _hoisted_3$
|
|
48757
|
+
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48672
48758
|
class: "icon",
|
|
48673
48759
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48674
48760
|
viewBox: "0 0 512 512"
|
|
48675
48761
|
}, [
|
|
48676
48762
|
/* @__PURE__ */ createElementVNode("path", { d: "M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z" })
|
|
48677
48763
|
], -1));
|
|
48678
|
-
const _sfc_main$
|
|
48764
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
48679
48765
|
__name: "VListboxButton",
|
|
48680
48766
|
props: {
|
|
48681
48767
|
as: {
|
|
@@ -48695,12 +48781,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
48695
48781
|
}, {
|
|
48696
48782
|
default: withCtx(({ open }) => [
|
|
48697
48783
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
48698
|
-
!__props.hideIcon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
48784
|
+
!__props.hideIcon ? (openBlock(), createElementBlock("span", _hoisted_1$3, [
|
|
48699
48785
|
!open ? renderSlot(_ctx.$slots, "open-icon", { key: 0 }, () => [
|
|
48700
|
-
_hoisted_2$
|
|
48786
|
+
_hoisted_2$2
|
|
48701
48787
|
], true) : createCommentVNode("", true),
|
|
48702
48788
|
open ? renderSlot(_ctx.$slots, "close-icon", { key: 1 }, () => [
|
|
48703
|
-
_hoisted_3$
|
|
48789
|
+
_hoisted_3$2
|
|
48704
48790
|
], true) : createCommentVNode("", true)
|
|
48705
48791
|
])) : createCommentVNode("", true)
|
|
48706
48792
|
]),
|
|
@@ -48709,8 +48795,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
48709
48795
|
};
|
|
48710
48796
|
}
|
|
48711
48797
|
});
|
|
48712
|
-
var VListboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48713
|
-
const _sfc_main$
|
|
48798
|
+
var VListboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-85546624"]]);
|
|
48799
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
48714
48800
|
__name: "VListboxItems",
|
|
48715
48801
|
props: {
|
|
48716
48802
|
as: {
|
|
@@ -48745,7 +48831,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
48745
48831
|
};
|
|
48746
48832
|
}
|
|
48747
48833
|
});
|
|
48748
|
-
const _sfc_main$
|
|
48834
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
48749
48835
|
__name: "VListboxLabel",
|
|
48750
48836
|
props: {
|
|
48751
48837
|
as: {
|
|
@@ -48764,7 +48850,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48764
48850
|
};
|
|
48765
48851
|
}
|
|
48766
48852
|
});
|
|
48767
|
-
const _sfc_main$
|
|
48853
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
48768
48854
|
__name: "VListbox",
|
|
48769
48855
|
props: {
|
|
48770
48856
|
by: {
|
|
@@ -48857,7 +48943,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
48857
48943
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => parentModelValue.value = $event)
|
|
48858
48944
|
}, {
|
|
48859
48945
|
default: withCtx(() => [
|
|
48860
|
-
__props.labelText ? (openBlock(), createBlock(_sfc_main$
|
|
48946
|
+
__props.labelText ? (openBlock(), createBlock(_sfc_main$8, {
|
|
48861
48947
|
key: 0,
|
|
48862
48948
|
class: normalizeClass(__props.labelClasses)
|
|
48863
48949
|
}, {
|
|
@@ -48881,7 +48967,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
48881
48967
|
"leave-to-class": "opacity-0"
|
|
48882
48968
|
}, {
|
|
48883
48969
|
default: withCtx(() => [
|
|
48884
|
-
createVNode(_sfc_main$
|
|
48970
|
+
createVNode(_sfc_main$9, { class: "absolute mt-1 min-w-full" }, {
|
|
48885
48971
|
default: withCtx(() => [
|
|
48886
48972
|
renderSlot(_ctx.$slots, "default")
|
|
48887
48973
|
]),
|
|
@@ -48896,7 +48982,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
48896
48982
|
};
|
|
48897
48983
|
}
|
|
48898
48984
|
});
|
|
48899
|
-
const _sfc_main$
|
|
48985
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
48900
48986
|
__name: "VListboxItem",
|
|
48901
48987
|
props: {
|
|
48902
48988
|
value: {
|
|
@@ -48922,7 +49008,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
48922
49008
|
};
|
|
48923
49009
|
}
|
|
48924
49010
|
});
|
|
48925
|
-
const _sfc_main$
|
|
49011
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
48926
49012
|
__name: "VTab",
|
|
48927
49013
|
props: {
|
|
48928
49014
|
disabled: {
|
|
@@ -48962,7 +49048,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
48962
49048
|
};
|
|
48963
49049
|
}
|
|
48964
49050
|
});
|
|
48965
|
-
const _sfc_main$
|
|
49051
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
48966
49052
|
__name: "VTabPanel",
|
|
48967
49053
|
setup(__props) {
|
|
48968
49054
|
return (_ctx, _cache) => {
|
|
@@ -48975,7 +49061,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48975
49061
|
};
|
|
48976
49062
|
}
|
|
48977
49063
|
});
|
|
48978
|
-
const _sfc_main$
|
|
49064
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
48979
49065
|
__name: "VTabs",
|
|
48980
49066
|
props: {
|
|
48981
49067
|
hideSeparator: {
|
|
@@ -49059,43 +49145,136 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
49059
49145
|
};
|
|
49060
49146
|
}
|
|
49061
49147
|
});
|
|
49148
|
+
const _hoisted_1$2 = { class: "vuetiful-accordion flex w-full flex-col gap-1" };
|
|
49149
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
49150
|
+
__name: "VAccordion",
|
|
49151
|
+
props: {
|
|
49152
|
+
hover: {
|
|
49153
|
+
type: String,
|
|
49154
|
+
default: "hover:variant-soft"
|
|
49155
|
+
},
|
|
49156
|
+
background: {
|
|
49157
|
+
type: String,
|
|
49158
|
+
default: "bg-surface-200-700-token"
|
|
49159
|
+
}
|
|
49160
|
+
},
|
|
49161
|
+
setup(__props) {
|
|
49162
|
+
const props = __props;
|
|
49163
|
+
provide("hover", props.hover);
|
|
49164
|
+
provide("background", props.background);
|
|
49165
|
+
return (_ctx, _cache) => {
|
|
49166
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
49167
|
+
renderSlot(_ctx.$slots, "default")
|
|
49168
|
+
]);
|
|
49169
|
+
};
|
|
49170
|
+
}
|
|
49171
|
+
});
|
|
49172
|
+
var VAccordionItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
49173
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-75f8b8b4"), n2 = n2(), popScopeId(), n2);
|
|
49174
|
+
const _hoisted_1$1 = { class: "vuetiful-accordion-title" };
|
|
49175
|
+
const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
49176
|
+
class: "icon",
|
|
49177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49178
|
+
viewBox: "0 0 448 512"
|
|
49179
|
+
}, [
|
|
49180
|
+
/* @__PURE__ */ createElementVNode("path", { d: "M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z" })
|
|
49181
|
+
], -1));
|
|
49182
|
+
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
49183
|
+
class: "icon",
|
|
49184
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49185
|
+
viewBox: "0 0 448 512"
|
|
49186
|
+
}, [
|
|
49187
|
+
/* @__PURE__ */ createElementVNode("path", { d: "M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z" })
|
|
49188
|
+
], -1));
|
|
49189
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
49190
|
+
__name: "VAccordionItem",
|
|
49191
|
+
props: {
|
|
49192
|
+
title: {
|
|
49193
|
+
type: String,
|
|
49194
|
+
required: true
|
|
49195
|
+
}
|
|
49196
|
+
},
|
|
49197
|
+
setup(__props) {
|
|
49198
|
+
const hover = inject("hover");
|
|
49199
|
+
const background = inject("background");
|
|
49200
|
+
return (_ctx, _cache) => {
|
|
49201
|
+
return openBlock(), createBlock(unref(Q), {
|
|
49202
|
+
class: "vuetiful-accordion-item",
|
|
49203
|
+
as: "div"
|
|
49204
|
+
}, {
|
|
49205
|
+
default: withCtx(({ open }) => [
|
|
49206
|
+
createVNode(unref(V), {
|
|
49207
|
+
class: normalizeClass([`${unref(background)} ${unref(hover)} ${open ? "!rounded-bl-none !rounded-br-none" : ""}`, "vuetiful-accordion-item-button w-full rounded-container-token"])
|
|
49208
|
+
}, {
|
|
49209
|
+
default: withCtx(() => [
|
|
49210
|
+
createElementVNode("div", {
|
|
49211
|
+
class: normalizeClass(["flex items-center justify-between p-4 rounded-container-token hover:cursor-pointer", `${unref(background)} ${unref(hover)} ${open ? "!rounded-bl-none !rounded-br-none" : ""}`])
|
|
49212
|
+
}, [
|
|
49213
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString(__props.title), 1),
|
|
49214
|
+
!open ? renderSlot(_ctx.$slots, "open-item", { key: 0 }, () => [
|
|
49215
|
+
_hoisted_2$1
|
|
49216
|
+
], true) : createCommentVNode("", true),
|
|
49217
|
+
open ? renderSlot(_ctx.$slots, "close-item", { key: 1 }, () => [
|
|
49218
|
+
_hoisted_3$1
|
|
49219
|
+
], true) : createCommentVNode("", true)
|
|
49220
|
+
], 2)
|
|
49221
|
+
]),
|
|
49222
|
+
_: 2
|
|
49223
|
+
}, 1032, ["class"]),
|
|
49224
|
+
createVNode(unref(X), {
|
|
49225
|
+
class: normalizeClass(["vuetiful-accordion-item-panel p-4 pt-0 rounded-container-token", `${open ? `${unref(background)} !rounded-tl-none !rounded-tr-none` : ""}`])
|
|
49226
|
+
}, {
|
|
49227
|
+
default: withCtx(() => [
|
|
49228
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
49229
|
+
]),
|
|
49230
|
+
_: 2
|
|
49231
|
+
}, 1032, ["class"])
|
|
49232
|
+
]),
|
|
49233
|
+
_: 3
|
|
49234
|
+
});
|
|
49235
|
+
};
|
|
49236
|
+
}
|
|
49237
|
+
});
|
|
49238
|
+
var VAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-75f8b8b4"]]);
|
|
49062
49239
|
var components = /* @__PURE__ */ Object.freeze({
|
|
49063
49240
|
__proto__: null,
|
|
49064
49241
|
[Symbol.toStringTag]: "Module",
|
|
49065
|
-
VAvatar: _sfc_main$
|
|
49066
|
-
VButton: _sfc_main$
|
|
49242
|
+
VAvatar: _sfc_main$t,
|
|
49243
|
+
VButton: _sfc_main$r,
|
|
49067
49244
|
VBadge,
|
|
49068
49245
|
VChip,
|
|
49069
|
-
VCodeBlock: _sfc_main$
|
|
49246
|
+
VCodeBlock: _sfc_main$p,
|
|
49070
49247
|
VLightSwitch,
|
|
49071
|
-
VRadioGroup: _sfc_main$
|
|
49072
|
-
VRadioItem: _sfc_main$
|
|
49073
|
-
VRadioLabel: _sfc_main$
|
|
49074
|
-
VRadioDescription: _sfc_main$
|
|
49075
|
-
VSwitchGroup: _sfc_main$
|
|
49076
|
-
VSwitchLabel: _sfc_main$
|
|
49077
|
-
VSwitchDescription: _sfc_main$
|
|
49078
|
-
VSwitch: _sfc_main$
|
|
49079
|
-
|
|
49080
|
-
|
|
49248
|
+
VRadioGroup: _sfc_main$m,
|
|
49249
|
+
VRadioItem: _sfc_main$l,
|
|
49250
|
+
VRadioLabel: _sfc_main$k,
|
|
49251
|
+
VRadioDescription: _sfc_main$n,
|
|
49252
|
+
VSwitchGroup: _sfc_main$h,
|
|
49253
|
+
VSwitchLabel: _sfc_main$g,
|
|
49254
|
+
VSwitchDescription: _sfc_main$i,
|
|
49255
|
+
VSwitch: _sfc_main$j,
|
|
49256
|
+
VAccordion: _sfc_main$2,
|
|
49257
|
+
VAccordionItem,
|
|
49258
|
+
VDrawer: _sfc_main$f,
|
|
49259
|
+
VListbox: _sfc_main$7,
|
|
49081
49260
|
VListboxButton,
|
|
49082
|
-
VListboxItem: _sfc_main$
|
|
49083
|
-
VListboxItems: _sfc_main$
|
|
49084
|
-
VListboxLabel: _sfc_main$
|
|
49261
|
+
VListboxItem: _sfc_main$6,
|
|
49262
|
+
VListboxItems: _sfc_main$9,
|
|
49263
|
+
VListboxLabel: _sfc_main$8,
|
|
49085
49264
|
VPreview,
|
|
49086
|
-
VRail: _sfc_main$
|
|
49087
|
-
VRailTile: _sfc_main$
|
|
49088
|
-
VShell: _sfc_main$
|
|
49089
|
-
VTab: _sfc_main$
|
|
49090
|
-
VTabPanel: _sfc_main$
|
|
49091
|
-
VTabs: _sfc_main$
|
|
49265
|
+
VRail: _sfc_main$d,
|
|
49266
|
+
VRailTile: _sfc_main$c,
|
|
49267
|
+
VShell: _sfc_main$b,
|
|
49268
|
+
VTab: _sfc_main$5,
|
|
49269
|
+
VTabPanel: _sfc_main$4,
|
|
49270
|
+
VTabs: _sfc_main$3
|
|
49092
49271
|
});
|
|
49093
49272
|
var main = "";
|
|
49094
49273
|
var tailwind = "";
|
|
49095
49274
|
const _sfc_main = defineComponent({
|
|
49096
49275
|
components: {
|
|
49097
49276
|
VLightSwitch,
|
|
49098
|
-
VButton: _sfc_main$
|
|
49277
|
+
VButton: _sfc_main$r
|
|
49099
49278
|
},
|
|
49100
49279
|
props: {
|
|
49101
49280
|
bgLight: {
|
|
@@ -49335,4 +49514,4 @@ function install(app) {
|
|
|
49335
49514
|
}
|
|
49336
49515
|
}
|
|
49337
49516
|
var index = { install };
|
|
49338
|
-
export { themeSwitcher as ThemeSwitcher, _sfc_main$
|
|
49517
|
+
export { themeSwitcher as ThemeSwitcher, _sfc_main$2 as VAccordion, VAccordionItem, _sfc_main$t as VAvatar, VBadge, _sfc_main$r as VButton, VChip, _sfc_main$p as VCodeBlock, _sfc_main$f as VDrawer, VLightSwitch, _sfc_main$7 as VListbox, VListboxButton, _sfc_main$6 as VListboxItem, _sfc_main$9 as VListboxItems, _sfc_main$8 as VListboxLabel, VPreview, _sfc_main$n as VRadioDescription, _sfc_main$m as VRadioGroup, _sfc_main$l as VRadioItem, _sfc_main$k as VRadioLabel, _sfc_main$d as VRail, _sfc_main$c as VRailTile, _sfc_main$b as VShell, _sfc_main$j as VSwitch, _sfc_main$i as VSwitchDescription, _sfc_main$h as VSwitchGroup, _sfc_main$g as VSwitchLabel, _sfc_main$5 as VTab, _sfc_main$4 as VTabPanel, _sfc_main$3 as VTabs, index as default, useDarkMode, useDrawer, useHighlight, useRail, useTheme, clipboard as vClipboard };
|