@code-coaching/vuetiful 0.21.4 → 0.22.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/dist/types/components/atoms/VRadio/VRadioGroup.vue.d.ts +9 -0
- package/dist/types/components/atoms/VRadio/VRadioItem.vue.d.ts +11 -1
- package/dist/types/components/molecules/VRail.vue.d.ts +0 -27
- package/dist/types/components/molecules/VRailTile.vue.d.ts +2 -15
- package/dist/vuetiful.es.mjs +52 -89
- package/dist/vuetiful.umd.js +10 -10
- package/package.json +1 -1
- package/src/components/atoms/VRadio/VRadioGroup.vue +11 -2
- package/src/components/atoms/VRadio/VRadioItem.vue +11 -3
- package/src/components/molecules/VRail.vue +14 -20
- package/src/components/molecules/VRailTile.vue +10 -44
|
@@ -27,6 +27,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
type: StringConstructor;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
|
+
unstyled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
30
34
|
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
35
|
as: {
|
|
32
36
|
type: StringConstructor;
|
|
@@ -56,6 +60,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
60
|
type: StringConstructor;
|
|
57
61
|
default: string;
|
|
58
62
|
};
|
|
63
|
+
unstyled: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
59
67
|
}>> & {
|
|
60
68
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
61
69
|
}, {
|
|
@@ -66,5 +74,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
74
|
hover: string;
|
|
67
75
|
background: string;
|
|
68
76
|
text: string;
|
|
77
|
+
unstyled: boolean;
|
|
69
78
|
}>;
|
|
70
79
|
export default _default;
|
|
@@ -3,10 +3,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
+
unstyled: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
11
|
value: {
|
|
8
12
|
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
9
13
|
required: true;
|
|
10
14
|
};
|
|
11
|
-
|
|
15
|
+
unstyled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
unstyled: boolean;
|
|
21
|
+
}>;
|
|
12
22
|
export default _default;
|
|
@@ -8,18 +8,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
type: () => CssClasses;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
regionLead: {
|
|
12
|
-
type: () => CssClasses;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
regionDefault: {
|
|
16
|
-
type: () => CssClasses;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
regionTrail: {
|
|
20
|
-
type: () => CssClasses;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
11
|
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
12
|
active: {
|
|
25
13
|
type: () => CssClasses;
|
|
@@ -29,23 +17,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
17
|
type: () => CssClasses;
|
|
30
18
|
default: string;
|
|
31
19
|
};
|
|
32
|
-
regionLead: {
|
|
33
|
-
type: () => CssClasses;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
regionDefault: {
|
|
37
|
-
type: () => CssClasses;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
regionTrail: {
|
|
41
|
-
type: () => CssClasses;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
20
|
}>>, {
|
|
45
21
|
active: string;
|
|
46
22
|
hover: string;
|
|
47
|
-
regionLead: string;
|
|
48
|
-
regionDefault: string;
|
|
49
|
-
regionTrail: string;
|
|
50
23
|
}>;
|
|
51
24
|
export default _default;
|
|
@@ -4,10 +4,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
-
tag: {
|
|
8
|
-
type: () => string;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
7
|
label: {
|
|
12
8
|
type: () => string;
|
|
13
9
|
default: string;
|
|
@@ -20,17 +16,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
16
|
type: () => CssClasses;
|
|
21
17
|
default: string;
|
|
22
18
|
};
|
|
23
|
-
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
click: () => void;
|
|
25
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
20
|
value: {
|
|
27
21
|
type: StringConstructor;
|
|
28
22
|
default: string;
|
|
29
23
|
};
|
|
30
|
-
tag: {
|
|
31
|
-
type: () => string;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
24
|
label: {
|
|
35
25
|
type: () => string;
|
|
36
26
|
default: string;
|
|
@@ -43,10 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
33
|
type: () => CssClasses;
|
|
44
34
|
default: string;
|
|
45
35
|
};
|
|
46
|
-
}
|
|
47
|
-
onClick?: (() => any) | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
tag: string;
|
|
36
|
+
}>>, {
|
|
50
37
|
value: string;
|
|
51
38
|
label: string;
|
|
52
39
|
regionIcon: string;
|
package/dist/vuetiful.es.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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,
|
|
2
|
-
const _hoisted_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, isRef, vShow, resolveComponent } from "vue";
|
|
2
|
+
const _hoisted_1$h = ["src", "alt"];
|
|
3
3
|
const _hoisted_2$9 = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "avatar-initials h-full w-full",
|
|
@@ -39,7 +39,7 @@ const _sfc_main$y = /* @__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$h)) : (openBlock(), createElementBlock("svg", _hoisted_2$9, [
|
|
43
43
|
createElementVNode("text", {
|
|
44
44
|
x: "50%",
|
|
45
45
|
y: "50%",
|
|
@@ -62,11 +62,11 @@ var _export_sfc = (sfc, props) => {
|
|
|
62
62
|
return target;
|
|
63
63
|
};
|
|
64
64
|
const _sfc_main$x = {};
|
|
65
|
-
const _hoisted_1$
|
|
65
|
+
const _hoisted_1$g = {
|
|
66
66
|
class: /* @__PURE__ */ normalizeClass(`vuetiful-badge badge`)
|
|
67
67
|
};
|
|
68
68
|
function _sfc_render$4(_ctx, _cache) {
|
|
69
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
69
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
70
70
|
renderSlot(_ctx.$slots, "default")
|
|
71
71
|
]);
|
|
72
72
|
}
|
|
@@ -122,11 +122,11 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
const _sfc_main$v = {};
|
|
125
|
-
const _hoisted_1$
|
|
125
|
+
const _hoisted_1$f = {
|
|
126
126
|
class: /* @__PURE__ */ normalizeClass(`vuetiful-chip chip`)
|
|
127
127
|
};
|
|
128
128
|
function _sfc_render$3(_ctx, _cache) {
|
|
129
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
129
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
130
130
|
renderSlot(_ctx.$slots, "default")
|
|
131
131
|
]);
|
|
132
132
|
}
|
|
@@ -46471,7 +46471,7 @@ const useHighlight = () => {
|
|
|
46471
46471
|
};
|
|
46472
46472
|
};
|
|
46473
46473
|
var githubDark = "";
|
|
46474
|
-
const _hoisted_1$
|
|
46474
|
+
const _hoisted_1$e = { class: "code-block max-w-full bg-neutral-900/90 text-sm text-white shadow rounded-container-token" };
|
|
46475
46475
|
const _hoisted_2$8 = {
|
|
46476
46476
|
class: /* @__PURE__ */ normalizeClass(`code-block-language`)
|
|
46477
46477
|
};
|
|
@@ -46534,7 +46534,7 @@ const _sfc_main$u = /* @__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$e, [
|
|
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
|
}, [
|
|
@@ -46654,7 +46654,7 @@ const _sfc_main$t = defineComponent({
|
|
|
46654
46654
|
};
|
|
46655
46655
|
}
|
|
46656
46656
|
});
|
|
46657
|
-
const _hoisted_1$
|
|
46657
|
+
const _hoisted_1$d = ["aria-checked", "title"];
|
|
46658
46658
|
const _hoisted_2$7 = ["d"];
|
|
46659
46659
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46660
46660
|
return openBlock(), createElementBlock("div", {
|
|
@@ -46683,7 +46683,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46683
46683
|
}, null, 8, _hoisted_2$7)
|
|
46684
46684
|
], 2))
|
|
46685
46685
|
], 2)
|
|
46686
|
-
], 42, _hoisted_1$
|
|
46686
|
+
], 42, _hoisted_1$d);
|
|
46687
46687
|
}
|
|
46688
46688
|
var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$2]]);
|
|
46689
46689
|
function u$2(r2, n2, ...a2) {
|
|
@@ -47836,7 +47836,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
47836
47836
|
},
|
|
47837
47837
|
hover: {
|
|
47838
47838
|
type: String,
|
|
47839
|
-
default: "hover:variant-ghost"
|
|
47839
|
+
default: "hover:variant-ghost hover:text-surface-900 dark:hover:text-surface-50"
|
|
47840
47840
|
},
|
|
47841
47841
|
background: {
|
|
47842
47842
|
type: String,
|
|
@@ -47845,6 +47845,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
47845
47845
|
text: {
|
|
47846
47846
|
type: String,
|
|
47847
47847
|
default: "text-surface-900 dark:text-surface-50"
|
|
47848
|
+
},
|
|
47849
|
+
unstyled: {
|
|
47850
|
+
type: Boolean,
|
|
47851
|
+
default: false
|
|
47848
47852
|
}
|
|
47849
47853
|
},
|
|
47850
47854
|
emits: ["update:modelValue"],
|
|
@@ -47871,7 +47875,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
47871
47875
|
as: __props.as,
|
|
47872
47876
|
disabled: __props.disabled,
|
|
47873
47877
|
by: __props.by,
|
|
47874
|
-
class: normalizeClass(`radio-group
|
|
47878
|
+
class: normalizeClass(`${__props.unstyled ? "" : `radio-group ${__props.background} ${__props.text} inline-flex gap-1 p-1 border-token border-surface-400-500-token rounded-container-token`}`),
|
|
47875
47879
|
modelValue: parentModelValue.value,
|
|
47876
47880
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => parentModelValue.value = $event)
|
|
47877
47881
|
}, {
|
|
@@ -47889,6 +47893,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
47889
47893
|
value: {
|
|
47890
47894
|
type: [String, Number, Boolean, Object],
|
|
47891
47895
|
required: true
|
|
47896
|
+
},
|
|
47897
|
+
unstyled: {
|
|
47898
|
+
type: Boolean,
|
|
47899
|
+
default: false
|
|
47892
47900
|
}
|
|
47893
47901
|
},
|
|
47894
47902
|
setup(__props) {
|
|
@@ -47899,7 +47907,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
47899
47907
|
default: withCtx(({ checked, disabled }) => [
|
|
47900
47908
|
createElementVNode("div", {
|
|
47901
47909
|
"data-test": "radio-item",
|
|
47902
|
-
class: normalizeClass(`radio-item px-4 py-1 text-center text-base rounded-token ${checked ? unref(active) : unref(hover)} ${disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`)
|
|
47910
|
+
class: normalizeClass(`radio-item ${__props.unstyled ? "" : `px-4 py-1 text-center text-base rounded-token ${checked ? unref(active) : unref(hover)} ${disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`}`)
|
|
47903
47911
|
}, [
|
|
47904
47912
|
renderSlot(_ctx.$slots, "default")
|
|
47905
47913
|
], 2)
|
|
@@ -47928,7 +47936,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
47928
47936
|
};
|
|
47929
47937
|
}
|
|
47930
47938
|
});
|
|
47931
|
-
const _hoisted_1$
|
|
47939
|
+
const _hoisted_1$c = {
|
|
47932
47940
|
key: 0,
|
|
47933
47941
|
class: "sr-only"
|
|
47934
47942
|
};
|
|
@@ -48008,7 +48016,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
48008
48016
|
createElementVNode("div", {
|
|
48009
48017
|
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}`)
|
|
48010
48018
|
}, [
|
|
48011
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
48019
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$c, [
|
|
48012
48020
|
renderSlot(_ctx.$slots, "default")
|
|
48013
48021
|
])) : createCommentVNode("", true),
|
|
48014
48022
|
createElementVNode("div", {
|
|
@@ -48206,7 +48214,7 @@ const useDarkMode = () => {
|
|
|
48206
48214
|
MODE
|
|
48207
48215
|
};
|
|
48208
48216
|
};
|
|
48209
|
-
const _hoisted_1$
|
|
48217
|
+
const _hoisted_1$b = ["aria-labelledby", "aria-describedby"];
|
|
48210
48218
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
48211
48219
|
__name: "VDrawer",
|
|
48212
48220
|
props: {
|
|
@@ -48271,7 +48279,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
48271
48279
|
"aria-describedby": unref(describedby)
|
|
48272
48280
|
}, [
|
|
48273
48281
|
renderSlot(_ctx.$slots, "default")
|
|
48274
|
-
], 10, _hoisted_1$
|
|
48282
|
+
], 10, _hoisted_1$b)) : createCommentVNode("", true)
|
|
48275
48283
|
]),
|
|
48276
48284
|
_: 3
|
|
48277
48285
|
}, 8, ["name"]),
|
|
@@ -48296,7 +48304,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
48296
48304
|
});
|
|
48297
48305
|
var VPreview_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
48298
48306
|
const _withScopeId$3 = (n2) => (pushScopeId("data-v-0d055d3d"), n2 = n2(), popScopeId(), n2);
|
|
48299
|
-
const _hoisted_1$
|
|
48307
|
+
const _hoisted_1$a = { class: "vuetiful-previewer overflow-hidden shadow-2xl shadow-surface-500/10 rounded-container-token dark:shadow-black/10" };
|
|
48300
48308
|
const _hoisted_2$6 = { class: "flex items-center gap-2" };
|
|
48301
48309
|
const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48302
48310
|
class: "icon",
|
|
@@ -48403,7 +48411,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
48403
48411
|
const swatches = ref(false);
|
|
48404
48412
|
const toggleSwatches = () => swatches.value = !swatches.value;
|
|
48405
48413
|
return (_ctx, _cache) => {
|
|
48406
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
48414
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
48407
48415
|
createElementVNode("header", {
|
|
48408
48416
|
class: normalizeClass(`vuetiful-previewer-header flex items-center justify-between gap-4 p-4 bg-surface-200-700-token ${__props.regionHeader}`)
|
|
48409
48417
|
}, [
|
|
@@ -48550,53 +48558,37 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
48550
48558
|
}
|
|
48551
48559
|
});
|
|
48552
48560
|
var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-0d055d3d"]]);
|
|
48553
|
-
const _hoisted_1$a = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
|
|
48554
48561
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
48555
48562
|
__name: "VRail",
|
|
48556
48563
|
props: {
|
|
48557
48564
|
active: {
|
|
48558
48565
|
type: String,
|
|
48559
|
-
default: "
|
|
48566
|
+
default: "variant-filled"
|
|
48560
48567
|
},
|
|
48561
48568
|
hover: {
|
|
48562
48569
|
type: String,
|
|
48563
|
-
default: "hover:
|
|
48564
|
-
},
|
|
48565
|
-
regionLead: {
|
|
48566
|
-
type: String,
|
|
48567
|
-
default: ""
|
|
48568
|
-
},
|
|
48569
|
-
regionDefault: {
|
|
48570
|
-
type: String,
|
|
48571
|
-
default: ""
|
|
48572
|
-
},
|
|
48573
|
-
regionTrail: {
|
|
48574
|
-
type: String,
|
|
48575
|
-
default: ""
|
|
48570
|
+
default: "hover:variant-ghost hover:text-surface-900 dark:hover:text-surface-50"
|
|
48576
48571
|
}
|
|
48577
48572
|
},
|
|
48578
48573
|
setup(__props) {
|
|
48579
48574
|
const props = __props;
|
|
48575
|
+
const { selectedRailTile: selectedRailTile2 } = useRail();
|
|
48580
48576
|
provide("active", props.active);
|
|
48581
48577
|
provide("hover", props.hover);
|
|
48582
48578
|
return (_ctx, _cache) => {
|
|
48583
|
-
return openBlock(),
|
|
48584
|
-
|
|
48585
|
-
|
|
48586
|
-
|
|
48587
|
-
|
|
48588
|
-
]
|
|
48589
|
-
|
|
48590
|
-
|
|
48591
|
-
|
|
48579
|
+
return openBlock(), createBlock(unref(_sfc_main$r), {
|
|
48580
|
+
unstyled: "",
|
|
48581
|
+
active: __props.active,
|
|
48582
|
+
hover: __props.hover,
|
|
48583
|
+
modelValue: unref(selectedRailTile2),
|
|
48584
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectedRailTile2) ? selectedRailTile2.value = $event : null),
|
|
48585
|
+
class: "vuetiful-rail flex h-full w-[70px] flex-col overflow-y-auto sm:w-20"
|
|
48586
|
+
}, {
|
|
48587
|
+
default: withCtx(() => [
|
|
48592
48588
|
renderSlot(_ctx.$slots, "default")
|
|
48593
|
-
]
|
|
48594
|
-
|
|
48595
|
-
|
|
48596
|
-
}, [
|
|
48597
|
-
renderSlot(_ctx.$slots, "trail")
|
|
48598
|
-
], 2)
|
|
48599
|
-
]);
|
|
48589
|
+
]),
|
|
48590
|
+
_: 3
|
|
48591
|
+
}, 8, ["active", "hover", "modelValue"]);
|
|
48600
48592
|
};
|
|
48601
48593
|
}
|
|
48602
48594
|
});
|
|
@@ -48607,10 +48599,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
48607
48599
|
type: String,
|
|
48608
48600
|
default: ""
|
|
48609
48601
|
},
|
|
48610
|
-
tag: {
|
|
48611
|
-
type: String,
|
|
48612
|
-
default: "button"
|
|
48613
|
-
},
|
|
48614
48602
|
label: {
|
|
48615
48603
|
type: String,
|
|
48616
48604
|
default: ""
|
|
@@ -48624,55 +48612,30 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
48624
48612
|
default: ""
|
|
48625
48613
|
}
|
|
48626
48614
|
},
|
|
48627
|
-
|
|
48628
|
-
setup(__props, { emit }) {
|
|
48629
|
-
const props = __props;
|
|
48630
|
-
const attrs = useAttrs();
|
|
48615
|
+
setup(__props) {
|
|
48631
48616
|
const { selectedRailTile: selectedRailTile2 } = useRail();
|
|
48632
48617
|
const active = inject("active");
|
|
48633
48618
|
const hover = inject("hover");
|
|
48634
|
-
const activate = () => {
|
|
48635
|
-
selectedRailTile2.value = props.value;
|
|
48636
|
-
emit("click");
|
|
48637
|
-
};
|
|
48638
|
-
const clickHandler = (event) => {
|
|
48639
|
-
event.preventDefault();
|
|
48640
|
-
activate();
|
|
48641
|
-
};
|
|
48642
|
-
const keydownHandler = (event) => {
|
|
48643
|
-
if (["Enter", " "].includes(event.key))
|
|
48644
|
-
event.preventDefault();
|
|
48645
|
-
if (event.key === "Enter")
|
|
48646
|
-
activate();
|
|
48647
|
-
};
|
|
48648
|
-
const keyupHandler = (event) => {
|
|
48649
|
-
if (event.key === " ") {
|
|
48650
|
-
event.preventDefault();
|
|
48651
|
-
activate();
|
|
48652
|
-
}
|
|
48653
|
-
};
|
|
48654
48619
|
return (_ctx, _cache) => {
|
|
48655
|
-
return openBlock(), createBlock(
|
|
48656
|
-
|
|
48657
|
-
|
|
48658
|
-
|
|
48659
|
-
},
|
|
48660
|
-
class: `app-rail-tile unstyled grid aspect-square w-full cursor-pointer place-content-center place-items-center space-y-1.5 ${unref(hover)} ${unref(selectedRailTile2) === __props.value ? `${unref(active)}` : ""}`
|
|
48661
|
-
}), {
|
|
48620
|
+
return openBlock(), createBlock(unref(_sfc_main$q), {
|
|
48621
|
+
value: __props.value,
|
|
48622
|
+
unstyled: "",
|
|
48623
|
+
class: normalizeClass(`vuetiful-rail-tile grid aspect-square w-full cursor-pointer place-content-center place-items-center space-y-1.5 ${unref(hover)} ${unref(selectedRailTile2) === __props.value ? `${unref(active)}` : ""}`)
|
|
48624
|
+
}, {
|
|
48662
48625
|
default: withCtx(() => [
|
|
48663
48626
|
_ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
48664
48627
|
key: 0,
|
|
48665
|
-
class: normalizeClass(`
|
|
48628
|
+
class: normalizeClass(`vuetiful-rail-tile-icon ${__props.regionIcon}`)
|
|
48666
48629
|
}, [
|
|
48667
48630
|
renderSlot(_ctx.$slots, "default")
|
|
48668
48631
|
], 2)) : createCommentVNode("", true),
|
|
48669
48632
|
__props.label ? (openBlock(), createElementBlock("div", {
|
|
48670
48633
|
key: 1,
|
|
48671
|
-
class: normalizeClass(`
|
|
48634
|
+
class: normalizeClass(`vuetiful-rail-tile-label text-center text-xs font-bold ${__props.regionLabel}`)
|
|
48672
48635
|
}, toDisplayString(__props.label), 3)) : createCommentVNode("", true)
|
|
48673
48636
|
]),
|
|
48674
48637
|
_: 3
|
|
48675
|
-
},
|
|
48638
|
+
}, 8, ["value", "class"]);
|
|
48676
48639
|
};
|
|
48677
48640
|
}
|
|
48678
48641
|
});
|