@code-coaching/vuetiful 0.23.0 → 0.23.1
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/dist/types/utils/theme/theme-switcher.vue.d.ts +22 -62
- package/dist/vuetiful.es.mjs +70 -132
- package/dist/vuetiful.umd.js +7 -15
- package/package.json +1 -1
- package/src/utils/theme/theme-switcher.vue +61 -131
|
@@ -1,109 +1,69 @@
|
|
|
1
1
|
import { CssClasses } from "@/index";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
|
|
3
|
+
background: {
|
|
4
4
|
type: () => CssClasses;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
text: {
|
|
8
8
|
type: () => CssClasses;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
widthPopup: {
|
|
12
12
|
type: () => CssClasses;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
heightList: {
|
|
16
16
|
type: () => CssClasses;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
classButton: {
|
|
20
20
|
type: () => CssClasses;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
classList: {
|
|
24
24
|
type: () => CssClasses;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
classListItem: {
|
|
28
28
|
type: () => CssClasses;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
background: {
|
|
32
33
|
type: () => CssClasses;
|
|
33
34
|
default: string;
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
text: {
|
|
36
37
|
type: () => CssClasses;
|
|
37
38
|
default: string;
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
widthPopup: {
|
|
40
41
|
type: () => CssClasses;
|
|
41
42
|
default: string;
|
|
42
43
|
};
|
|
43
|
-
|
|
44
|
-
onKeyDown: (event: KeyboardEvent) => void;
|
|
45
|
-
loadTheme: (themeName: string, callback?: Function | undefined) => void;
|
|
46
|
-
currentMode: Readonly<import("vue").Ref<boolean>>;
|
|
47
|
-
classes: import("vue").ComputedRef<string>;
|
|
48
|
-
chosenTheme: Readonly<import("vue").Ref<string>>;
|
|
49
|
-
themes: Readonly<import("vue").Ref<readonly {
|
|
50
|
-
readonly name: string;
|
|
51
|
-
readonly url: string;
|
|
52
|
-
}[]>>;
|
|
53
|
-
showPopup: import("vue").Ref<boolean>;
|
|
54
|
-
listClasses: import("vue").ComputedRef<string>;
|
|
55
|
-
listItemClasses: import("vue").ComputedRef<string>;
|
|
56
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
-
bgLight: {
|
|
44
|
+
heightList: {
|
|
58
45
|
type: () => CssClasses;
|
|
59
46
|
default: string;
|
|
60
47
|
};
|
|
61
|
-
|
|
48
|
+
classButton: {
|
|
62
49
|
type: () => CssClasses;
|
|
63
50
|
default: string;
|
|
64
51
|
};
|
|
65
|
-
|
|
52
|
+
classList: {
|
|
66
53
|
type: () => CssClasses;
|
|
67
54
|
default: string;
|
|
68
55
|
};
|
|
69
|
-
|
|
70
|
-
type: () => CssClasses;
|
|
71
|
-
default: string;
|
|
72
|
-
};
|
|
73
|
-
width: {
|
|
74
|
-
type: () => CssClasses;
|
|
75
|
-
default: string;
|
|
76
|
-
};
|
|
77
|
-
height: {
|
|
78
|
-
type: () => CssClasses;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
|
-
ring: {
|
|
82
|
-
type: () => CssClasses;
|
|
83
|
-
default: string;
|
|
84
|
-
};
|
|
85
|
-
rounded: {
|
|
86
|
-
type: () => CssClasses;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
roundedContainer: {
|
|
90
|
-
type: () => CssClasses;
|
|
91
|
-
default: string;
|
|
92
|
-
};
|
|
93
|
-
buttonClasses: {
|
|
56
|
+
classListItem: {
|
|
94
57
|
type: () => CssClasses;
|
|
95
58
|
default: string;
|
|
96
59
|
};
|
|
97
60
|
}>>, {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
textOnDark: string;
|
|
106
|
-
roundedContainer: string;
|
|
107
|
-
buttonClasses: string;
|
|
61
|
+
background: string;
|
|
62
|
+
text: string;
|
|
63
|
+
classButton: string;
|
|
64
|
+
widthPopup: string;
|
|
65
|
+
heightList: string;
|
|
66
|
+
classList: string;
|
|
67
|
+
classListItem: string;
|
|
108
68
|
}>;
|
|
109
69
|
export default _default;
|
package/dist/vuetiful.es.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, readonly, reactive, renderSlot, createBlock, resolveDynamicComponent, withCtx, onMounted, Fragment, cloneVNode, h as h$1, inject, provide, watchEffect, onUnmounted, watch, nextTick, toRaw, createCommentVNode, toRefs, createVNode, Transition, renderList, createTextVNode, pushScopeId, popScopeId, isRef, withDirectives, vShow, useAttrs
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, readonly, reactive, renderSlot, createBlock, resolveDynamicComponent, withCtx, onMounted, Fragment, cloneVNode, h as h$1, inject, provide, watchEffect, onUnmounted, watch, nextTick, toRaw, createCommentVNode, toRefs, createVNode, Transition, renderList, createTextVNode, pushScopeId, popScopeId, isRef, withDirectives, vShow, useAttrs } from "vue";
|
|
2
2
|
const Variant = {
|
|
3
3
|
Filled: "filled",
|
|
4
4
|
FilledPrimary: "filled-primary",
|
|
@@ -46881,7 +46881,7 @@ const _sfc_main$u = defineComponent({
|
|
|
46881
46881
|
});
|
|
46882
46882
|
const _hoisted_1$a = ["aria-checked", "title"];
|
|
46883
46883
|
const _hoisted_2$6 = ["d"];
|
|
46884
|
-
function _sfc_render
|
|
46884
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46885
46885
|
return openBlock(), createElementBlock("div", {
|
|
46886
46886
|
class: normalizeClass(`lightswitch-track ${_ctx.classesTrack}`),
|
|
46887
46887
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onToggleHandler && _ctx.onToggleHandler(...args)),
|
|
@@ -46910,7 +46910,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46910
46910
|
], 2)
|
|
46911
46911
|
], 42, _hoisted_1$a);
|
|
46912
46912
|
}
|
|
46913
|
-
var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render
|
|
46913
|
+
var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render]]);
|
|
46914
46914
|
function u$2(r2, n2, ...a2) {
|
|
46915
46915
|
if (r2 in n2) {
|
|
46916
46916
|
let e2 = n2[r2];
|
|
@@ -48446,21 +48446,21 @@ const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ create
|
|
|
48446
48446
|
}, [
|
|
48447
48447
|
/* @__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" })
|
|
48448
48448
|
], -1));
|
|
48449
|
-
const _hoisted_4$
|
|
48449
|
+
const _hoisted_4$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48450
48450
|
class: "icon",
|
|
48451
48451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48452
48452
|
viewBox: "0 0 640 512"
|
|
48453
48453
|
}, [
|
|
48454
48454
|
/* @__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" })
|
|
48455
48455
|
], -1));
|
|
48456
|
-
const _hoisted_5$
|
|
48456
|
+
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48457
48457
|
class: "icon",
|
|
48458
48458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48459
48459
|
viewBox: "0 0 384 512"
|
|
48460
48460
|
}, [
|
|
48461
48461
|
/* @__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" })
|
|
48462
48462
|
], -1));
|
|
48463
|
-
const _hoisted_6$
|
|
48463
|
+
const _hoisted_6$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48464
48464
|
class: "icon",
|
|
48465
48465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48466
48466
|
viewBox: "0 0 576 512"
|
|
@@ -48573,7 +48573,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
48573
48573
|
}, {
|
|
48574
48574
|
default: withCtx(() => [
|
|
48575
48575
|
renderSlot(_ctx.$slots, "code-item", {}, () => [
|
|
48576
|
-
_hoisted_4$
|
|
48576
|
+
_hoisted_4$1
|
|
48577
48577
|
], true)
|
|
48578
48578
|
]),
|
|
48579
48579
|
_: 3
|
|
@@ -48594,7 +48594,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
48594
48594
|
}, {
|
|
48595
48595
|
default: withCtx(() => [
|
|
48596
48596
|
renderSlot(_ctx.$slots, "mobile-item", {}, () => [
|
|
48597
|
-
_hoisted_5$
|
|
48597
|
+
_hoisted_5$1
|
|
48598
48598
|
], true)
|
|
48599
48599
|
]),
|
|
48600
48600
|
_: 3
|
|
@@ -48602,7 +48602,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
48602
48602
|
createVNode(unref(_sfc_main$r), { value: "full" }, {
|
|
48603
48603
|
default: withCtx(() => [
|
|
48604
48604
|
renderSlot(_ctx.$slots, "desktop-item", {}, () => [
|
|
48605
|
-
_hoisted_6$
|
|
48605
|
+
_hoisted_6$1
|
|
48606
48606
|
], true)
|
|
48607
48607
|
]),
|
|
48608
48608
|
_: 3
|
|
@@ -49425,15 +49425,15 @@ const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
49425
49425
|
const _hoisted_3$1 = [
|
|
49426
49426
|
_hoisted_2$1
|
|
49427
49427
|
];
|
|
49428
|
-
const _hoisted_4
|
|
49428
|
+
const _hoisted_4 = {
|
|
49429
49429
|
key: 1,
|
|
49430
49430
|
class: "icon",
|
|
49431
49431
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49432
49432
|
viewBox: "0 0 512 512"
|
|
49433
49433
|
};
|
|
49434
|
-
const _hoisted_5
|
|
49435
|
-
const _hoisted_6
|
|
49436
|
-
_hoisted_5
|
|
49434
|
+
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__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" }, null, -1));
|
|
49435
|
+
const _hoisted_6 = [
|
|
49436
|
+
_hoisted_5
|
|
49437
49437
|
];
|
|
49438
49438
|
const _hoisted_7 = {
|
|
49439
49439
|
key: 2,
|
|
@@ -49532,7 +49532,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
49532
49532
|
_ctx.$slots.pre ? renderSlot(_ctx.$slots, "pre", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
49533
49533
|
!_ctx.$slots.pre ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
49534
49534
|
__props.type === "info" ? (openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$1)) : createCommentVNode("", true),
|
|
49535
|
-
__props.type === "success" ? (openBlock(), createElementBlock("svg", _hoisted_4
|
|
49535
|
+
__props.type === "success" ? (openBlock(), createElementBlock("svg", _hoisted_4, _hoisted_6)) : createCommentVNode("", true),
|
|
49536
49536
|
__props.type === "warning" ? (openBlock(), createElementBlock("svg", _hoisted_7, _hoisted_9)) : createCommentVNode("", true),
|
|
49537
49537
|
__props.type === "error" ? (openBlock(), createElementBlock("svg", _hoisted_10, _hoisted_12)) : createCommentVNode("", true)
|
|
49538
49538
|
], 64)) : createCommentVNode("", true)
|
|
@@ -49858,149 +49858,87 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
49858
49858
|
});
|
|
49859
49859
|
var main = "";
|
|
49860
49860
|
var tailwind = "";
|
|
49861
|
-
const
|
|
49862
|
-
|
|
49863
|
-
|
|
49864
|
-
|
|
49865
|
-
|
|
49861
|
+
const _hoisted_1 = { class: "vuetiful-theme-switcher" };
|
|
49862
|
+
const _hoisted_2 = { class: "flex items-center justify-between" };
|
|
49863
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "text-lg" }, "Mode", -1);
|
|
49864
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49865
|
+
__name: "theme-switcher",
|
|
49866
49866
|
props: {
|
|
49867
|
-
|
|
49868
|
-
type: String,
|
|
49869
|
-
default: "bg-surface-50"
|
|
49870
|
-
},
|
|
49871
|
-
bgDark: {
|
|
49872
|
-
type: String,
|
|
49873
|
-
default: "bg-surface-900"
|
|
49874
|
-
},
|
|
49875
|
-
textOnLight: {
|
|
49867
|
+
background: {
|
|
49876
49868
|
type: String,
|
|
49877
|
-
default: "
|
|
49869
|
+
default: "bg-surface-50-900-token"
|
|
49878
49870
|
},
|
|
49879
|
-
|
|
49871
|
+
text: {
|
|
49880
49872
|
type: String,
|
|
49881
|
-
default: "text-surface-50"
|
|
49873
|
+
default: "text-surface-900-50-token"
|
|
49882
49874
|
},
|
|
49883
|
-
|
|
49875
|
+
widthPopup: {
|
|
49884
49876
|
type: String,
|
|
49885
49877
|
default: "w-60"
|
|
49886
49878
|
},
|
|
49887
|
-
|
|
49879
|
+
heightList: {
|
|
49888
49880
|
type: String,
|
|
49889
49881
|
default: "max-h-64 lg:max-h-[500px]"
|
|
49890
49882
|
},
|
|
49891
|
-
|
|
49892
|
-
type: String,
|
|
49893
|
-
default: "ring-[1px] ring-surface-500/30"
|
|
49894
|
-
},
|
|
49895
|
-
rounded: {
|
|
49883
|
+
classButton: {
|
|
49896
49884
|
type: String,
|
|
49897
|
-
default: "
|
|
49885
|
+
default: ""
|
|
49898
49886
|
},
|
|
49899
|
-
|
|
49887
|
+
classList: {
|
|
49900
49888
|
type: String,
|
|
49901
|
-
default: "
|
|
49889
|
+
default: ""
|
|
49902
49890
|
},
|
|
49903
|
-
|
|
49891
|
+
classListItem: {
|
|
49904
49892
|
type: String,
|
|
49905
|
-
default: "
|
|
49893
|
+
default: ""
|
|
49906
49894
|
}
|
|
49907
49895
|
},
|
|
49908
|
-
setup(
|
|
49896
|
+
setup(__props) {
|
|
49909
49897
|
const { initializeTheme, loadTheme, themes: themes2, chosenTheme: chosenTheme2 } = useTheme();
|
|
49910
|
-
const { currentMode: currentMode2, MODE: MODE2 } = useDarkMode();
|
|
49911
49898
|
const showPopup = ref(false);
|
|
49912
49899
|
onMounted(() => {
|
|
49913
49900
|
initializeTheme();
|
|
49914
49901
|
});
|
|
49915
|
-
|
|
49916
|
-
|
|
49917
|
-
|
|
49918
|
-
|
|
49919
|
-
|
|
49920
|
-
|
|
49921
|
-
|
|
49922
|
-
|
|
49923
|
-
|
|
49924
|
-
|
|
49925
|
-
|
|
49926
|
-
|
|
49927
|
-
|
|
49928
|
-
|
|
49929
|
-
return `${cTransition}
|
|
49930
|
-
${background.value}
|
|
49931
|
-
${text.value}
|
|
49932
|
-
${props.width}
|
|
49933
|
-
${props.ring}
|
|
49934
|
-
${props.roundedContainer}`;
|
|
49935
|
-
});
|
|
49936
|
-
const listClasses = computed(() => {
|
|
49937
|
-
return `${cTransition}
|
|
49938
|
-
${props.height}`;
|
|
49939
|
-
});
|
|
49940
|
-
const listItemClasses = computed(() => {
|
|
49941
|
-
return `${cTransition}
|
|
49942
|
-
${props.ring}
|
|
49943
|
-
${props.rounded}`;
|
|
49944
|
-
});
|
|
49945
|
-
return {
|
|
49946
|
-
onKeyDown,
|
|
49947
|
-
loadTheme,
|
|
49948
|
-
currentMode: currentMode2,
|
|
49949
|
-
classes,
|
|
49950
|
-
chosenTheme: chosenTheme2,
|
|
49951
|
-
themes: themes2,
|
|
49952
|
-
showPopup,
|
|
49953
|
-
listClasses,
|
|
49954
|
-
listItemClasses
|
|
49955
|
-
};
|
|
49956
|
-
}
|
|
49957
|
-
});
|
|
49958
|
-
const _hoisted_1 = { class: "cc-theme-switcher" };
|
|
49959
|
-
const _hoisted_2 = { class: "space-y-4" };
|
|
49960
|
-
const _hoisted_3 = { class: "flex items-center justify-between" };
|
|
49961
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("h6", null, "Mode", -1);
|
|
49962
|
-
const _hoisted_5 = { class: "flex flex-col gap-4" };
|
|
49963
|
-
const _hoisted_6 = ["onClick"];
|
|
49964
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
49965
|
-
const _component_VButton = resolveComponent("VButton");
|
|
49966
|
-
const _component_v_light_switch = resolveComponent("v-light-switch");
|
|
49967
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
49968
|
-
createVNode(_component_VButton, {
|
|
49969
|
-
class: normalizeClass(`cc-theme-switcher__button ${_ctx.buttonClasses}`),
|
|
49970
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = !_ctx.showPopup)
|
|
49971
|
-
}, {
|
|
49972
|
-
default: withCtx(() => [
|
|
49973
|
-
createTextVNode(" Theme ")
|
|
49974
|
-
]),
|
|
49975
|
-
_: 1
|
|
49976
|
-
}, 8, ["class"]),
|
|
49977
|
-
_ctx.showPopup ? (openBlock(), createElementBlock("div", {
|
|
49978
|
-
key: 0,
|
|
49979
|
-
class: normalizeClass(["cc-theme-switcher__popup absolute z-10 mt-1 p-4 shadow-xl", _ctx.classes])
|
|
49980
|
-
}, [
|
|
49981
|
-
createElementVNode("div", _hoisted_2, [
|
|
49982
|
-
createElementVNode("section", _hoisted_3, [
|
|
49983
|
-
_hoisted_4,
|
|
49984
|
-
createVNode(_component_v_light_switch)
|
|
49985
|
-
]),
|
|
49986
|
-
createElementVNode("nav", {
|
|
49987
|
-
class: normalizeClass(["list-nav -m-4 overflow-y-auto p-4", _ctx.listClasses])
|
|
49902
|
+
return (_ctx, _cache) => {
|
|
49903
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
49904
|
+
createVNode(unref(_sfc_main$w), {
|
|
49905
|
+
class: normalizeClass(`vuetiful-theme-switcher__button ${__props.classButton}`),
|
|
49906
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showPopup.value = !showPopup.value)
|
|
49907
|
+
}, {
|
|
49908
|
+
default: withCtx(() => [
|
|
49909
|
+
createTextVNode(" Theme ")
|
|
49910
|
+
]),
|
|
49911
|
+
_: 1
|
|
49912
|
+
}, 8, ["class"]),
|
|
49913
|
+
showPopup.value ? (openBlock(), createElementBlock("div", {
|
|
49914
|
+
key: 0,
|
|
49915
|
+
class: normalizeClass(["vuetiful-theme-switcher__popup absolute z-10 mt-1 space-y-4 p-4 shadow-xl rounded-container-token", `${__props.background} ${__props.text} ${__props.widthPopup} ${__props.classList}`])
|
|
49988
49916
|
}, [
|
|
49989
|
-
createElementVNode("
|
|
49990
|
-
|
|
49991
|
-
|
|
49992
|
-
|
|
49917
|
+
createElementVNode("section", _hoisted_2, [
|
|
49918
|
+
_hoisted_3,
|
|
49919
|
+
createVNode(unref(VLightSwitch))
|
|
49920
|
+
]),
|
|
49921
|
+
createElementVNode("nav", {
|
|
49922
|
+
class: normalizeClass(["vuetiful-theme-switcher__popup-list -m-4 flex flex-col gap-4 overflow-y-auto p-4", `${__props.heightList} ${__props.classList}`])
|
|
49923
|
+
}, [
|
|
49924
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(themes2), (theme, index2) => {
|
|
49925
|
+
return openBlock(), createBlock(unref(_sfc_main$w), {
|
|
49926
|
+
class: normalizeClass(["vuetiful-theme-switcher__popup-list-item h-full w-full p-2 text-center capitalize hover:cursor-pointer", `${__props.classListItem} ${unref(chosenTheme2) === theme.name ? "variant-filled-surface" : ""}`]),
|
|
49993
49927
|
key: index2,
|
|
49994
|
-
onClick: ($event) =>
|
|
49995
|
-
},
|
|
49928
|
+
onClick: ($event) => unref(loadTheme)(theme.name)
|
|
49929
|
+
}, {
|
|
49930
|
+
default: withCtx(() => [
|
|
49931
|
+
createTextVNode(toDisplayString(theme.name), 1)
|
|
49932
|
+
]),
|
|
49933
|
+
_: 2
|
|
49934
|
+
}, 1032, ["class", "onClick"]);
|
|
49996
49935
|
}), 128))
|
|
49997
|
-
])
|
|
49998
|
-
], 2)
|
|
49999
|
-
])
|
|
50000
|
-
|
|
50001
|
-
|
|
50002
|
-
}
|
|
50003
|
-
var themeSwitcher = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
49936
|
+
], 2)
|
|
49937
|
+
], 2)) : createCommentVNode("", true)
|
|
49938
|
+
]);
|
|
49939
|
+
};
|
|
49940
|
+
}
|
|
49941
|
+
});
|
|
50004
49942
|
const { isBrowser } = usePlatform();
|
|
50005
49943
|
const THEMES = {
|
|
50006
49944
|
VUETIFUL: "vuetiful",
|
|
@@ -50101,4 +50039,4 @@ function install(app) {
|
|
|
50101
50039
|
}
|
|
50102
50040
|
}
|
|
50103
50041
|
var index = { install };
|
|
50104
|
-
export {
|
|
50042
|
+
export { _sfc_main as ThemeSwitcher, _sfc_main$8 as VAccordion, VAccordionItem, VAlert, _sfc_main$y as VAvatar, _sfc_main$x as VBadge, _sfc_main$w as VButton, _sfc_main$5 as VCard, _sfc_main$4 as VCardBody, _sfc_main$3 as VCardFooter, _sfc_main$2 as VCardHeader, _sfc_main$v as VChip, _sfc_main$1 as VCodeBlock, _sfc_main$l as VDrawer, VLightSwitch, _sfc_main$d as VListbox, VListboxButton, _sfc_main$c as VListboxItem, _sfc_main$f as VListboxItems, _sfc_main$e as VListboxLabel, VPreview, _sfc_main$t as VRadioDescription, _sfc_main$s as VRadioGroup, _sfc_main$r as VRadioItem, _sfc_main$q as VRadioLabel, _sfc_main$j as VRail, _sfc_main$i as VRailTile, _sfc_main$h as VShell, _sfc_main$p as VSwitch, _sfc_main$o as VSwitchDescription, _sfc_main$n as VSwitchGroup, _sfc_main$m as VSwitchLabel, _sfc_main$b as VTab, _sfc_main$a as VTabPanel, _sfc_main$9 as VTabs, index as default, useDarkMode, useDrawer, useHighlight, useRail, useSettings, useTheme, clipboard as vClipboard };
|