spicykatsu 0.3.0 → 0.4.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/lib/SpicyAccordion/SpicyAccordion.js +11 -11
- package/dist/lib/SpicyAlert/SpicyAlert.js +17 -17
- package/dist/lib/SpicyBtn/SpicyBtn.js +14 -14
- package/dist/lib/SpicyCarousel/SpicyCarousel.js +13 -13
- package/dist/lib/SpicyDialog/SpicyDialog.js +3 -4
- package/dist/lib/SpicyDivider/SpicyDivider.js +1 -1
- package/dist/lib/SpicyDropdown/SpicyDropdown.js +11 -11
- package/dist/lib/SpicyFileInput/SpicyFileInput.js +16 -16
- package/dist/lib/SpicyModal/SpicyModal.js +10 -10
- package/dist/lib/SpicyProgress/SpicyProgress.js +17 -17
- package/dist/lib/SpicySheet/SpicySheet.js +3 -4
- package/dist/lib/SpicySlider/SpicySlider.js +12 -12
- package/dist/lib/SpicyTabs/SpicyTabs.js +10 -10
- package/dist/lib/SpicyTextArea/SpicyTextArea.js +7 -7
- package/dist/lib/SpicyTextField/SpicyTextField.js +12 -12
- package/dist/lib/SpicyToggle/SpicyToggle.js +8 -8
- package/dist/lib/SpicyTooltip/SpicyTooltip.js +11 -11
- package/dist/lib/SpicyTree/SpicyTree.css +1 -1
- package/dist/lib/SpicyTree/SpicyTree.js +13 -13
- package/dist/spicykatsu.es.js +78 -57
- package/package.json +52 -52
- package/dist/lib/main/main.js +0 -4
- package/dist/lib/ripple/ripple.js +0 -4
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ app.use(SpicyKatsu, {
|
|
|
68
68
|
|
|
69
69
|
| Directive | Description |
|
|
70
70
|
|-----------|-------------|
|
|
71
|
-
| `v-spicyDrag` | Makes any element draggable (mouse + touch). Accepts `{ axis: 'x'
|
|
71
|
+
| `v-spicyDrag` | Makes any element draggable (mouse + touch). Accepts `{ axis: 'x' | 'y' }` |
|
|
72
72
|
| `v-spicyRipple` | Adds a Material-style ripple on click/touch |
|
|
73
73
|
|
|
74
74
|
## Dev / Playground
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Fragment as e, Transition as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, renderList as u, renderSlot as d, toDisplayString as f, vShow as p, withCtx as m, withDirectives as h } from "vue";
|
|
2
|
-
//#region src/components/SpicyAccordion.
|
|
3
|
-
var g = { class: "spicyAccordion" },
|
|
2
|
+
//#region src/components/SpicyAccordion/SpicyAccordion.css?inline
|
|
3
|
+
var g = ".spicyAccordion{border:1px solid var(--skBorderColor,#ddd);border-radius:4px;overflow:hidden}.spicyAccordionItem{border-bottom:1px solid var(--skBorderColor,#ddd)}.spicyAccordionItem:last-child{border-bottom:none}.spicyAccordionHeader{background-color:var(--skBgSecondaryColor,#f5f5f5);color:var(--skTextColor,#333);text-align:left;cursor:pointer;border:none;justify-content:space-between;align-items:center;width:100%;padding:10px;transition:background-color .2s;display:flex}.spicyAccordionHeader.open{background-color:var(--skBgColor,#e0e0e0)}.spicyAccordionHeader.open .accordionArrow{transform:rotate(180deg)}.spicyAccordionContent{background-color:var(--skBgColor,#fff);color:var(--skTextColor,#333);padding:10px}.accordionToggle{align-items:center;transition:transform .2s;display:flex}.accordionArrow{width:20px;height:20px;transition:transform .2s}.fade-enter-active,.fade-leave-active{transition:opacity .2s}.fade-enter-from,.fade-leave-to{opacity:0}", _ = { class: "spicyAccordion" }, v = ["onClick", "aria-expanded"], y = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "accordionIcon",
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
-
},
|
|
8
|
+
}, b = ["d"], x = { class: "spicyAccordionContent" }, S = /* @__PURE__ */ o({
|
|
9
9
|
__name: "SpicyAccordion",
|
|
10
10
|
props: {
|
|
11
11
|
sections: {},
|
|
@@ -16,14 +16,14 @@ var g = { class: "spicyAccordion" }, _ = ["onClick", "aria-expanded"], v = {
|
|
|
16
16
|
defaultOpen: {}
|
|
17
17
|
},
|
|
18
18
|
setup(o) {
|
|
19
|
-
let
|
|
20
|
-
if (
|
|
19
|
+
let g = o, S = l(g.defaultOpen || []), C = (e) => {
|
|
20
|
+
if (g.singleOpen) S.value = S.value.includes(e) ? [] : [e];
|
|
21
21
|
else {
|
|
22
22
|
let t = S.value.indexOf(e);
|
|
23
23
|
t === -1 ? S.value.push(e) : S.value.splice(t, 1);
|
|
24
24
|
}
|
|
25
25
|
}, w = (e) => S.value.includes(e);
|
|
26
|
-
return (l,
|
|
26
|
+
return (l, g) => (c(), r("div", _, [(c(!0), r(e, null, u(o.sections, (e, o) => (c(), r("div", {
|
|
27
27
|
key: o,
|
|
28
28
|
class: "spicyAccordionItem"
|
|
29
29
|
}, [i("button", {
|
|
@@ -32,16 +32,16 @@ var g = { class: "spicyAccordion" }, _ = ["onClick", "aria-expanded"], v = {
|
|
|
32
32
|
"aria-expanded": w(o)
|
|
33
33
|
}, [
|
|
34
34
|
i("span", null, f(e.title), 1),
|
|
35
|
-
e.icon ? (c(), r("svg",
|
|
36
|
-
|
|
35
|
+
e.icon ? (c(), r("svg", y, [i("path", { d: e.icon }, null, 8, b)])) : n("", !0),
|
|
36
|
+
g[0] ||= i("span", { class: "accordionToggle" }, [i("svg", {
|
|
37
37
|
class: "accordionArrow",
|
|
38
38
|
viewBox: "0 0 24 24"
|
|
39
39
|
}, [i("path", { d: "M7 10l5 5 5-5H7z" })])], -1)
|
|
40
|
-
], 10,
|
|
41
|
-
default: m(() => [h(i("div",
|
|
40
|
+
], 10, v), a(t, { name: "fade" }, {
|
|
41
|
+
default: m(() => [h(i("div", x, [d(l.$slots, `section-${o}`)], 512), [[p, w(o)]])]),
|
|
42
42
|
_: 2
|
|
43
43
|
}, 1024)]))), 128))]));
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
//#endregion
|
|
47
|
-
export {
|
|
47
|
+
export { g as n, S as t };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Transition as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, onBeforeUnmount as s, openBlock as c, ref as l, renderSlot as u, toDisplayString as d, watch as f, withCtx as p, withKeys as m } from "vue";
|
|
2
|
-
//#region src/components/SpicyAlert.
|
|
3
|
-
var h = ["aria-label"],
|
|
2
|
+
//#region src/components/SpicyAlert/SpicyAlert.css?inline
|
|
3
|
+
var h = ".spicyAlert{align-items:center;gap:10px;padding:12px;display:flex}.spicyAlert.info{color:#333;background-color:#e0e0e0}.spicyAlert.success{color:#155724;background-color:#a3ffb7}.spicyAlert.warning{color:#856404;background-color:#ffecaf}.spicyAlert.error{color:#911f2a;background-color:#ffbdc2}.spicyAlert.spicyAlertRound{border-radius:8px}.spicyAlertIcon{width:24px;height:24px}.spicyAlertContainer{flex-direction:column;display:flex}.spicyAlertCloseBtn{cursor:pointer;background:0 0;border:none;width:20px;height:20px;margin-left:auto}.spicyAlertCloseBtn svg{width:20px;height:20px}.fade-enter-active,.fade-leave-active{transition:opacity .35s}.fade-enter-from,.fade-leave-to{opacity:0}", g = ["aria-label"], _ = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "spicyAlertIcon"
|
|
6
|
-
},
|
|
6
|
+
}, v = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "spicyAlertIcon",
|
|
9
9
|
viewBox: "0 0 24 24",
|
|
10
10
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
},
|
|
11
|
+
}, y = ["d"], b = { class: "spicyAlertContainer" }, x = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "spicyAlertTitle"
|
|
14
|
-
},
|
|
14
|
+
}, S = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "spicyAlertText"
|
|
17
|
-
},
|
|
17
|
+
}, C = {
|
|
18
18
|
key: 0,
|
|
19
19
|
viewBox: "0 0 24 24",
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
-
},
|
|
21
|
+
}, w = ["d"], T = { key: 1 }, E = /* @__PURE__ */ a({
|
|
22
22
|
__name: "SpicyAlert",
|
|
23
23
|
props: {
|
|
24
24
|
variant: { default: "info" },
|
|
@@ -42,7 +42,7 @@ var h = ["aria-label"], g = {
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
setup(a) {
|
|
45
|
-
let
|
|
45
|
+
let h = a, E = l(!0), D = null, O = l(h.autoClose), k = null, A = () => {
|
|
46
46
|
E.value = !1;
|
|
47
47
|
}, j = () => {
|
|
48
48
|
O.value > 0 && (k = Date.now(), D = setTimeout(() => {
|
|
@@ -58,7 +58,7 @@ var h = ["aria-label"], g = {
|
|
|
58
58
|
}, P = () => {
|
|
59
59
|
j();
|
|
60
60
|
};
|
|
61
|
-
return f(() =>
|
|
61
|
+
return f(() => h.autoClose, (e) => {
|
|
62
62
|
O.value = e, M(), j();
|
|
63
63
|
}), s(() => {
|
|
64
64
|
M();
|
|
@@ -73,27 +73,27 @@ var h = ["aria-label"], g = {
|
|
|
73
73
|
onMouseenter: N,
|
|
74
74
|
onMouseleave: P
|
|
75
75
|
}, [
|
|
76
|
-
a.iconOnly && a.icon ? (c(), r("span",
|
|
77
|
-
a.mdi ? (c(), r("svg",
|
|
76
|
+
a.iconOnly && a.icon ? (c(), r("span", _, d(a.icon), 1)) : n("", !0),
|
|
77
|
+
a.mdi ? (c(), r("svg", v, [i("path", {
|
|
78
78
|
fill: "currentColor",
|
|
79
79
|
class: "spicyAlertMDI",
|
|
80
80
|
d: a.mdi
|
|
81
|
-
}, null, 8,
|
|
82
|
-
i("div",
|
|
81
|
+
}, null, 8, y)])) : n("", !0),
|
|
82
|
+
i("div", b, [a.title ? (c(), r("span", x, d(a.title), 1)) : n("", !0), !a.iconOnly && a.text ? (c(), r("span", S, d(a.text), 1)) : n("", !0)]),
|
|
83
83
|
a.closable ? (c(), r("button", {
|
|
84
84
|
key: 2,
|
|
85
85
|
class: "spicyAlertCloseBtn",
|
|
86
86
|
onClick: A,
|
|
87
87
|
"aria-label": "Close alert"
|
|
88
|
-
}, [a.closeIcon ? (c(), r("svg",
|
|
88
|
+
}, [a.closeIcon ? (c(), r("svg", C, [i("path", {
|
|
89
89
|
fill: "#000",
|
|
90
90
|
d: a.closeIcon
|
|
91
|
-
}, null, 8,
|
|
91
|
+
}, null, 8, w)])) : (c(), r("span", T, "X"))])) : n("", !0),
|
|
92
92
|
a.text ? n("", !0) : u(s.$slots, "default", { key: 3 })
|
|
93
|
-
], 42,
|
|
93
|
+
], 42, g)) : n("", !0)]),
|
|
94
94
|
_: 3
|
|
95
95
|
}));
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
//#endregion
|
|
99
|
-
export {
|
|
99
|
+
export { h as n, E as t };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, renderSlot as c, resolveDirective as l, toDisplayString as u, withDirectives as d } from "vue";
|
|
2
|
-
//#region src/components/SpicyBtn.
|
|
3
|
-
var f = [
|
|
2
|
+
//#region src/components/SpicyBtn/SpicyBtn.css?inline
|
|
3
|
+
var f = ".spicyBtn{text-align:center;cursor:pointer;color:var(--skTextColor,#ddd);background-color:var(--skBgColor,#28292a);font-size:var(--skFontSize,16px);font-weight:var(--skFontWeight,500);-webkit-user-select:none;user-select:none;border:none;border-radius:4px;justify-content:center;align-items:center;gap:4px;padding:8px 16px;display:flex}.spicyBtn.outlined{border:2px solid var(--skBorderColor,#515353);background-color:#0000}.spicyBtn.disabled{opacity:.3;cursor:not-allowed;pointer-events:none}.spicyBtn:hover:not(.disabled){background-color:var(--hoverColor,grey)}.spicyBtn:focus-visible{outline:2px solid var(--skTextColor,#ddd);outline-offset:2px}.spicyBtn.isRound{border-radius:50px;padding:12px}.spicyBtn.large{font-size:calc(var(--skFontSize,16px) * 1.2);padding:12px 24px}.spicyBtn.large.isRound{padding:16px}.spicyBtn.large .spicyBtnIcon{width:32px;height:32px}.spicyBtn.small{font-size:calc(var(--skFontSize,16px) * .85);padding:4px 12px}.spicyBtn.small.isRound{padding:8px}.spicyBtn.small .spicyBtnIcon{width:18px;height:18px}.spicyBtn .spicyBtnIcon{justify-content:center;align-items:center;width:22px;height:22px;display:flex}", p = [
|
|
4
4
|
"disabled",
|
|
5
5
|
"aria-label",
|
|
6
6
|
"aria-disabled",
|
|
7
7
|
"tabindex"
|
|
8
|
-
],
|
|
8
|
+
], m = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "spicyBtnIcon",
|
|
11
11
|
viewBox: "0 0 24 24",
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
-
},
|
|
13
|
+
}, h = ["d"], g = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "spicyBtnIcon"
|
|
16
|
-
},
|
|
16
|
+
}, _ = {
|
|
17
17
|
key: 2,
|
|
18
18
|
class: "spicyBtnText"
|
|
19
|
-
},
|
|
19
|
+
}, v = /* @__PURE__ */ i({
|
|
20
20
|
__name: "SpicyBtn",
|
|
21
21
|
props: {
|
|
22
22
|
variant: { default: "filled" },
|
|
@@ -37,8 +37,8 @@ var f = [
|
|
|
37
37
|
ariaLabel: {}
|
|
38
38
|
},
|
|
39
39
|
emits: ["click"],
|
|
40
|
-
setup(i, { emit:
|
|
41
|
-
let v =
|
|
40
|
+
setup(i, { emit: f }) {
|
|
41
|
+
let v = f, y = (e) => {
|
|
42
42
|
b.disabled || v("click", e);
|
|
43
43
|
}, b = i, x = e(() => b.ariaLabel || b.text || "Button"), S = e(() => ({
|
|
44
44
|
"--skFontSize": typeof b.fontSize == "number" ? `${b.fontSize}px` : b.fontSize,
|
|
@@ -54,7 +54,7 @@ var f = [
|
|
|
54
54
|
isRound: C.value,
|
|
55
55
|
[b.size]: b.size !== "default"
|
|
56
56
|
}));
|
|
57
|
-
return (e,
|
|
57
|
+
return (e, f) => {
|
|
58
58
|
let v = l("spicyRipple");
|
|
59
59
|
return d((s(), n("button", {
|
|
60
60
|
class: a(w.value),
|
|
@@ -66,16 +66,16 @@ var f = [
|
|
|
66
66
|
"aria-disabled": i.disabled,
|
|
67
67
|
tabindex: i.disabled ? -1 : 0
|
|
68
68
|
}, [
|
|
69
|
-
i.mdi ? (s(), n("svg",
|
|
69
|
+
i.mdi ? (s(), n("svg", m, [r("path", {
|
|
70
70
|
fill: "currentColor",
|
|
71
71
|
class: "spicyBtnMDI",
|
|
72
72
|
d: i.mdi
|
|
73
|
-
}, null, 8,
|
|
74
|
-
i.text ? (s(), n("span",
|
|
73
|
+
}, null, 8, h)])) : i.icon ? (s(), n("span", g, u(i.icon), 1)) : t("", !0),
|
|
74
|
+
i.text ? (s(), n("span", _, u(i.text), 1)) : t("", !0),
|
|
75
75
|
c(e.$slots, "default")
|
|
76
|
-
], 14,
|
|
76
|
+
], 14, p)), [[v]]);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
//#endregion
|
|
81
|
-
export {
|
|
81
|
+
export { f as n, v as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Fragment as e, Transition as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, withCtx as _ } from "vue";
|
|
2
|
-
//#region src/components/SpicyCarousel.
|
|
3
|
-
var v = ["aria-label"],
|
|
2
|
+
//#region src/components/SpicyCarousel/SpicyCarousel.css?inline
|
|
3
|
+
var v = ".spicyCarouselWrapper{width:var(--width,580px);height:var(--height,360px);justify-content:center;align-items:center;padding:30px;display:flex;position:relative}.spicyCarouselWrapper .spicyCarouselTitle{width:var(--width,580px);color:#ccc;background-color:#0009;height:30px;font-size:18px;font-weight:700;position:absolute;top:0}.spicyCarouselWrapper .spicyCarouselContainer{border-radius:var(--borderRadius);background-color:#0009;width:100%;height:100%;position:relative;overflow:hidden}.spicyCarouselWrapper .spicyCarouselSlide{background-position:50%;background-repeat:no-repeat;background-size:cover;width:100%;height:100%;transition:opacity .3s;position:absolute;top:0;left:0}.spicyCarouselWrapper .spicyCarouselTextOverlay{color:#ccc;text-shadow:2px 2px 4px #00000080;background-color:#000000bf;border-radius:4px;padding:10px;font-size:18px;font-weight:700;position:absolute;bottom:10px;left:10px}.spicyCarouselWrapper .spicyCarouselTextOverlay.fullScreen{text-align:center;background-color:#0000004d;justify-content:center;align-items:center;display:flex;inset:0}.spicyCarouselWrapper .spicyCarouselNavControls{pointer-events:none;justify-content:space-between;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.spicyCarouselWrapper .spicyCarouselNavControls .spicyCarouselPrevBtn,.spicyCarouselWrapper .spicyCarouselNavControls .spicyCarouselNextBtn{color:#ccc;cursor:pointer;pointer-events:auto;z-index:2;background:#0009;border:none;justify-content:center;align-items:center;width:30px;height:100%;font-size:24px;transition:transform .3s;display:flex}:is(.spicyCarouselWrapper .spicyCarouselNavControls .spicyCarouselPrevBtn,.spicyCarouselWrapper .spicyCarouselNavControls .spicyCarouselNextBtn):hover{background:var(--skPrimaryColor)}.spicyCarouselWrapper .spicyCarouselNavControls .spicyCarouselPrevBtn{border-radius:6px 0 0 6px}.spicyCarouselWrapper .spicyCarouselNavControls .spicyCarouselNextBtn{border-radius:0 6px 6px 0}.spicyCarouselWrapper .spicyCarouselPagination{height:30px;width:var(--width,580px);z-index:2;pointer-events:auto;background:#0009;justify-content:center;align-items:center;gap:8px;display:flex;position:absolute;bottom:0;left:50%;transform:translate(-50%)}.spicyCarouselWrapper .spicyCarouselPagination .spicyCarouselPageBtn{color:#fff;cursor:pointer;background:#00b7ff80;border:none;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;transition:transform .3s;display:flex}.spicyCarouselWrapper .spicyCarouselPagination .spicyCarouselPageBtn.active{background:var(--activeColor,var(--skPrimaryColor))}.spicyCarouselWrapper .spicyCarouselPagination .spicyCarouselPageBtn:hover{background:var(--skPrimaryColor)}.spicyCarouselWrapper .pointCursor{cursor:pointer}.spicyCarouselWrapper .slide-enter-active,.spicyCarouselWrapper .slide-leave-active{transition:opacity .3s}.spicyCarouselWrapper .slide-enter-from,.spicyCarouselWrapper .slide-leave-to{opacity:0}", y = ["aria-label"], b = { class: "spicyCarouselInfoText" }, x = { class: "spicyCarouselTitle" }, S = { key: 0 }, C = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "spicyCarouselNavControls"
|
|
6
|
-
},
|
|
6
|
+
}, w = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "spicyCarouselPagination"
|
|
9
|
-
},
|
|
9
|
+
}, T = ["onClick"], E = { class: "spicyCarouselPage" }, D = /* @__PURE__ */ s({
|
|
10
10
|
__name: "SpicyCarousel",
|
|
11
11
|
props: {
|
|
12
12
|
autoplay: {
|
|
@@ -42,7 +42,7 @@ var v = ["aria-label"], y = { class: "spicyCarouselInfoText" }, b = { class: "sp
|
|
|
42
42
|
paginationLimit: { default: 10 }
|
|
43
43
|
},
|
|
44
44
|
setup(s) {
|
|
45
|
-
let
|
|
45
|
+
let v, D, O = !1, k = s, A = n(() => ({
|
|
46
46
|
"--width": k.width,
|
|
47
47
|
"--height": k.height,
|
|
48
48
|
"--activeColor": k.activeColor
|
|
@@ -61,10 +61,10 @@ var v = ["aria-label"], y = { class: "spicyCarouselInfoText" }, b = { class: "sp
|
|
|
61
61
|
}, U = () => {
|
|
62
62
|
k.enableImageClick && H();
|
|
63
63
|
}, W = (e) => {
|
|
64
|
-
|
|
64
|
+
v = e.touches[0].clientX, D = e.touches[0].clientY, O = !1;
|
|
65
65
|
}, G = (e) => {
|
|
66
66
|
if (!O) {
|
|
67
|
-
let t = e.touches[0].clientX -
|
|
67
|
+
let t = e.touches[0].clientX - v, n = e.touches[0].clientY - D;
|
|
68
68
|
Math.abs(t) > Math.abs(n) && (t > 40 ? (L(), O = !0) : t < -40 && (R(), O = !0));
|
|
69
69
|
}
|
|
70
70
|
}, K = n(() => {
|
|
@@ -98,24 +98,24 @@ var v = ["aria-label"], y = { class: "spicyCarouselInfoText" }, b = { class: "sp
|
|
|
98
98
|
key: 0,
|
|
99
99
|
class: c(["spicyCarouselTextOverlay", { fullScreen: N.value }]),
|
|
100
100
|
"aria-label": s.slides[P.value].text
|
|
101
|
-
}, [a("span",
|
|
101
|
+
}, [a("span", b, g(s.slides[P.value].text), 1)], 10, y)) : r("", !0), h(n.$slots, "default")], 6))]),
|
|
102
102
|
_: 3
|
|
103
103
|
})], 32),
|
|
104
|
-
a("div",
|
|
105
|
-
s.showNavigation ? (f(), i("div",
|
|
104
|
+
a("div", x, [M.value ? (f(), i("h2", S, g(F.value.title), 1)) : r("", !0)]),
|
|
105
|
+
s.showNavigation ? (f(), i("div", C, [a("button", {
|
|
106
106
|
class: "spicyCarouselPrevBtn",
|
|
107
107
|
onClick: L
|
|
108
108
|
}, [...u[0] ||= [a("span", { class: "spicyCarouselPrevBtnIcon" }, "<", -1)]]), a("button", {
|
|
109
109
|
class: "spicyCarouselNextBtn",
|
|
110
110
|
onClick: R
|
|
111
111
|
}, [...u[1] ||= [a("span", { class: "spicyCarouselNextBtnIcon" }, ">", -1)]])])) : r("", !0),
|
|
112
|
-
s.showPagination ? (f(), i("div",
|
|
112
|
+
s.showPagination ? (f(), i("div", w, [(f(!0), i(e, null, m(K.value, (e) => (f(), i("button", {
|
|
113
113
|
key: e,
|
|
114
114
|
onClick: (t) => z(e),
|
|
115
115
|
class: c(["spicyCarouselPageBtn", { active: e === P.value }])
|
|
116
|
-
}, [a("span",
|
|
116
|
+
}, [a("span", E, g(e + 1), 1)], 10, T))), 128))])) : r("", !0)
|
|
117
117
|
], 4));
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
//#endregion
|
|
121
|
-
export {
|
|
121
|
+
export { v as n, D as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Teleport as e, Transition as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeStyle as c, openBlock as l, renderSlot as u, watch as d, withCtx as f, withModifiers as p } from "vue";
|
|
2
|
-
//#
|
|
3
|
-
|
|
4
|
-
var m = /* @__PURE__ */ s({
|
|
2
|
+
//#region src/components/SpicyDialog/SpicyDialog.css?inline
|
|
3
|
+
var m = ".spicyDialogOverlay{z-index:2000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.spicyDialog{border-radius:8px;width:100%;padding:16px}.dialog-fade-enter-active,.dialog-fade-leave-active{transition:opacity .3s}.dialog-fade-enter-from,.dialog-fade-leave-to{opacity:0}", h = /* @__PURE__ */ s({
|
|
5
4
|
__name: "SpicyDialog",
|
|
6
5
|
props: {
|
|
7
6
|
modelValue: Boolean,
|
|
@@ -42,4 +41,4 @@ var m = /* @__PURE__ */ s({
|
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
//#endregion
|
|
45
|
-
export { m as t };
|
|
44
|
+
export { m as n, h as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as e, createElementBlock as t, defineComponent as n, normalizeClass as r, normalizeStyle as i, openBlock as a, renderSlot as o } from "vue";
|
|
2
|
-
//#region src/components/SpicyDivider.vue?vue&type=script&setup=true&lang.ts
|
|
2
|
+
//#region src/components/SpicyDivider/SpicyDivider.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var s = ["aria-orientation"], c = /* @__PURE__ */ n({
|
|
4
4
|
__name: "SpicyDivider",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Transition as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, renderSlot as m, toDisplayString as h, withCtx as g, withModifiers as _ } from "vue";
|
|
2
|
-
//#region src/components/SpicyDropdown.
|
|
3
|
-
var v = ["aria-expanded"],
|
|
2
|
+
//#region src/components/SpicyDropdown/SpicyDropdown.css?inline
|
|
3
|
+
var v = ".spicyDropdown{display:inline-block;position:relative}.spicyDropdownButton{background-color:var(--skBgColor);color:#fff;cursor:pointer;border:none;align-items:center;padding:10px 16px;font-size:16px;display:flex}.spicyDropdownButton .arrow{margin-left:8px;transition:transform .3s}.spicyDropdownButton .arrow.open{transform:rotate(180deg)}.dropdownIcon{margin-right:8px}.spicyDropdownMenu{z-index:1;background-color:#fff;border-radius:4px;padding:10px;position:absolute;top:100%;box-shadow:0 4px 8px #0000001a}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter-from,.fade-leave-to{opacity:0}", y = ["aria-expanded"], b = ["width", "height"], x = ["d"], S = ["width", "height"], C = /* @__PURE__ */ s({
|
|
4
4
|
__name: "SpicyDropdown",
|
|
5
5
|
props: {
|
|
6
6
|
label: {},
|
|
@@ -10,16 +10,16 @@ var v = ["aria-expanded"], y = ["width", "height"], b = ["d"], x = ["width", "he
|
|
|
10
10
|
iconSize: { default: "24px" }
|
|
11
11
|
},
|
|
12
12
|
setup(s) {
|
|
13
|
-
let
|
|
13
|
+
let v = s, C = p(!1), w = p(null), T = () => {
|
|
14
14
|
C.value = !C.value;
|
|
15
15
|
}, E = (e) => {
|
|
16
16
|
w.value && !w.value.contains(e.target) && (C.value = !1);
|
|
17
17
|
};
|
|
18
18
|
u(() => document.addEventListener("click", E)), d(() => document.removeEventListener("click", E));
|
|
19
|
-
let D = t(() =>
|
|
20
|
-
width:
|
|
21
|
-
[
|
|
22
|
-
textAlign:
|
|
19
|
+
let D = t(() => v.icon || ""), O = t(() => ({
|
|
20
|
+
width: v.width,
|
|
21
|
+
[v.align === "right" ? "right" : "left"]: 0,
|
|
22
|
+
textAlign: v.align
|
|
23
23
|
}));
|
|
24
24
|
return (t, u) => (f(), r("div", {
|
|
25
25
|
ref_key: "dropdownRef",
|
|
@@ -38,7 +38,7 @@ var v = ["aria-expanded"], y = ["width", "height"], b = ["d"], x = ["width", "he
|
|
|
38
38
|
height: s.iconSize,
|
|
39
39
|
viewBox: "0 0 24 24",
|
|
40
40
|
class: "dropdownIcon"
|
|
41
|
-
}, [i("path", { d: D.value }, null, 8,
|
|
41
|
+
}, [i("path", { d: D.value }, null, 8, x)], 8, b)) : n("", !0),
|
|
42
42
|
a(" " + h(s.label) + " ", 1),
|
|
43
43
|
D.value ? n("", !0) : (f(), r("svg", {
|
|
44
44
|
key: 1,
|
|
@@ -46,8 +46,8 @@ var v = ["aria-expanded"], y = ["width", "height"], b = ["d"], x = ["width", "he
|
|
|
46
46
|
height: s.iconSize,
|
|
47
47
|
viewBox: "0 0 24 24",
|
|
48
48
|
class: c(["arrow", { open: C.value }])
|
|
49
|
-
}, [...u[1] ||= [i("path", { d: "M7 10l5 5 5-5H7z" }, null, -1)]], 10,
|
|
50
|
-
], 8,
|
|
49
|
+
}, [...u[1] ||= [i("path", { d: "M7 10l5 5 5-5H7z" }, null, -1)]], 10, S))
|
|
50
|
+
], 8, y), o(e, { name: "fade" }, {
|
|
51
51
|
default: g(() => [C.value ? (f(), r("div", {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "spicyDropdownMenu",
|
|
@@ -60,4 +60,4 @@ var v = ["aria-expanded"], y = ["width", "height"], b = ["d"], x = ["width", "he
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
//#endregion
|
|
63
|
-
export {
|
|
63
|
+
export { v as n, C as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Fragment as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, ref as s, renderList as c, renderSlot as l, toDisplayString as u, withModifiers as d } from "vue";
|
|
2
|
-
//#region src/components/SpicyFileInput.
|
|
3
|
-
var f = ["aria-label"],
|
|
2
|
+
//#region src/components/SpicyFileInput/SpicyFileInput.css?inline
|
|
3
|
+
var f = ".spicyFileInputWrapper{cursor:pointer;border-width:2px;border-radius:8px;flex-direction:column;max-width:100%;display:flex;position:relative}.spicyFileInputWrapper.isDragging{border-color:var(--skPrimaryColor);background-color:#0000000d}.spicyFileInputWrapper.disabled{pointer-events:none;opacity:.3;cursor:not-allowed}.spicyFileInputWrapper.hasError{border-color:red}.spicyFileInputWrapper.solid{border-style:solid}.spicyFileInputWrapper.dashed{border-style:dashed}.spicyFileInputWrapper.plain{border-style:none}.spicyFileInputLabel{color:var(--skTextColor,#ddd);-webkit-user-select:none;user-select:none;cursor:pointer;margin:8px;padding:8px;font-size:16px}.spicyFileInput{display:none}.spicyFilePreviewItem{color:var(--skTextColor);border:1px solid var(--skBorderColor);border-radius:4px;justify-content:space-between;align-items:center;margin:8px;padding:8px;display:flex;position:relative}.spicyFilePreviewItem:hover{border-color:var(--skPrimaryColor)}.spicyFilePreviewItem span{white-space:nowrap;text-overflow:ellipsis;max-width:90%;overflow:hidden}.removeButton{cursor:pointer;color:red;background:0 0;border:none;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.removeButtonMDI{width:24px;height:24px}.clearAllButton{cursor:pointer;color:var(--skPrimaryColor);background:0 0;border:none;margin-top:8px;font-size:16px}.spicyFileInputError{color:red;margin-top:8px;font-size:12px}", p = ["aria-label"], m = [
|
|
4
4
|
"multiple",
|
|
5
5
|
"accept",
|
|
6
6
|
"disabled"
|
|
7
|
-
],
|
|
7
|
+
], h = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "spicyFilePreview"
|
|
10
|
-
},
|
|
10
|
+
}, g = { class: "spicyFilePreviewName" }, _ = ["onClick"], v = ["onClick"], y = ["d"], b = {
|
|
11
11
|
key: 3,
|
|
12
12
|
class: "spicyFileInputError"
|
|
13
|
-
},
|
|
13
|
+
}, x = /* @__PURE__ */ i({
|
|
14
14
|
__name: "SpicyFileInput",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: { default: () => [] },
|
|
@@ -37,8 +37,8 @@ var f = ["aria-label"], p = [
|
|
|
37
37
|
"change",
|
|
38
38
|
"error"
|
|
39
39
|
],
|
|
40
|
-
setup(i, { emit:
|
|
41
|
-
let x =
|
|
40
|
+
setup(i, { emit: f }) {
|
|
41
|
+
let x = f, S = i, C = s(S.modelValue), w = s(null), T = s(!1), E = (e) => {
|
|
42
42
|
let t = e.target;
|
|
43
43
|
t.files && (C.value = Array.from(t.files), x("update:modelValue", C.value), x("change", C.value));
|
|
44
44
|
}, D = () => {
|
|
@@ -61,7 +61,7 @@ var f = ["aria-label"], p = [
|
|
|
61
61
|
T.value = !1;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
return (s,
|
|
64
|
+
return (s, f) => (o(), n("div", {
|
|
65
65
|
class: a(["spicyFileInputWrapper", [{
|
|
66
66
|
hasError: i.error,
|
|
67
67
|
isDragging: T.value,
|
|
@@ -77,7 +77,7 @@ var f = ["aria-label"], p = [
|
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "spicyFileInputLabel",
|
|
79
79
|
"aria-label": i.label
|
|
80
|
-
}, u(i.label), 9,
|
|
80
|
+
}, u(i.label), 9, p)) : t("", !0),
|
|
81
81
|
r("input", {
|
|
82
82
|
type: "file",
|
|
83
83
|
multiple: i.multiple,
|
|
@@ -87,18 +87,18 @@ var f = ["aria-label"], p = [
|
|
|
87
87
|
ref_key: "fileInput",
|
|
88
88
|
ref: w,
|
|
89
89
|
disabled: i.disabled
|
|
90
|
-
}, null, 40,
|
|
91
|
-
C.value.length ? (o(), n("div",
|
|
90
|
+
}, null, 40, m),
|
|
91
|
+
C.value.length ? (o(), n("div", h, [(o(!0), n(e, null, c(C.value, (e, a) => (o(), n("div", {
|
|
92
92
|
key: a,
|
|
93
93
|
class: "spicyFilePreviewItem"
|
|
94
94
|
}, [
|
|
95
|
-
r("span",
|
|
95
|
+
r("span", g, u(e.name), 1),
|
|
96
96
|
i.clearable && !i.mdi && !i.disabled ? (o(), n("button", {
|
|
97
97
|
key: 0,
|
|
98
98
|
class: "removeButton",
|
|
99
99
|
onClick: d((e) => O(a), ["stop"]),
|
|
100
100
|
"aria-label": "Remove"
|
|
101
|
-
}, " X ", 8,
|
|
101
|
+
}, " X ", 8, _)) : t("", !0),
|
|
102
102
|
i.clearable && i.mdi && !i.disabled ? (o(), n("svg", {
|
|
103
103
|
key: 1,
|
|
104
104
|
class: "removeButtonMDI",
|
|
@@ -109,7 +109,7 @@ var f = ["aria-label"], p = [
|
|
|
109
109
|
}, [r("path", {
|
|
110
110
|
fill: "red",
|
|
111
111
|
d: i.mdi
|
|
112
|
-
}, null, 8,
|
|
112
|
+
}, null, 8, y)], 8, v)) : t("", !0)
|
|
113
113
|
]))), 128))])) : t("", !0),
|
|
114
114
|
i.clearable && C.value.length > 1 && !i.disabled ? (o(), n("button", {
|
|
115
115
|
key: 2,
|
|
@@ -118,9 +118,9 @@ var f = ["aria-label"], p = [
|
|
|
118
118
|
"aria-label": "Clear All"
|
|
119
119
|
}, " Clear All ")) : t("", !0),
|
|
120
120
|
l(s.$slots, "default"),
|
|
121
|
-
i.error ? (o(), n("span",
|
|
121
|
+
i.error ? (o(), n("span", b, u(i.error), 1)) : t("", !0)
|
|
122
122
|
], 34));
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
//#endregion
|
|
126
|
-
export {
|
|
126
|
+
export { f as n, x as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeStyle as s, onBeforeUnmount as c, openBlock as l, renderList as u, renderSlot as d, toDisplayString as f, watch as p } from "vue";
|
|
2
|
-
//#region src/components/SpicyModal.
|
|
3
|
-
var m = ["aria-labelledby"],
|
|
2
|
+
//#region src/components/SpicyModal/SpicyModal.css?inline
|
|
3
|
+
var m = ".spicyModalOverlay{z-index:1000;background-color:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.spicyModal{border-radius:var(--skBorderRadius);background-color:var(--skBgColor);z-index:1001;padding:20px;font-size:15px;transition:transform .3s ease-out;box-shadow:0 0 6px 2px #0003}.spicyModalHeader{text-align:center;font-size:20px;font-weight:700}.spicyModalActions{text-align:right;margin-top:20px}.spicyModalActionBtn{color:var(--skTextColor,#ddd);cursor:pointer;background-color:#0000;border:none}.spicyModalActionBtn:hover{text-decoration:underline}", h = ["aria-labelledby"], g = { class: "spicyModalHeader" }, _ = {
|
|
4
4
|
key: 0,
|
|
5
5
|
id: "spicyModalTitle"
|
|
6
|
-
},
|
|
6
|
+
}, v = { class: "spicyModalActions" }, y = ["onClick"], b = /* @__PURE__ */ o({
|
|
7
7
|
__name: "SpicyModal",
|
|
8
8
|
props: {
|
|
9
9
|
width: { default: "400px" },
|
|
@@ -31,8 +31,8 @@ var m = ["aria-labelledby"], h = { class: "spicyModalHeader" }, g = {
|
|
|
31
31
|
"close",
|
|
32
32
|
"action-clicked"
|
|
33
33
|
],
|
|
34
|
-
setup(o, { emit:
|
|
35
|
-
let b = o, x =
|
|
34
|
+
setup(o, { emit: m }) {
|
|
35
|
+
let b = o, x = m, S = t(() => ({
|
|
36
36
|
"--width": b.width,
|
|
37
37
|
"--height": b.height,
|
|
38
38
|
"--skBorderRadius": b.borderRadius,
|
|
@@ -67,7 +67,7 @@ var m = ["aria-labelledby"], h = { class: "spicyModalHeader" }, g = {
|
|
|
67
67
|
class: "spicyModal",
|
|
68
68
|
style: s({ ...S.value })
|
|
69
69
|
}, [
|
|
70
|
-
i("header",
|
|
70
|
+
i("header", g, [o.modalTitle ? (l(), r("span", _, [d(t.$slots, "spicyModalHeader", {
|
|
71
71
|
title: o.modalTitle,
|
|
72
72
|
ariaLabel: o.modalTitle
|
|
73
73
|
}, () => [a(f(o.modalTitle), 1)])])) : d(t.$slots, "spicyModalHeader", {
|
|
@@ -76,7 +76,7 @@ var m = ["aria-labelledby"], h = { class: "spicyModalHeader" }, g = {
|
|
|
76
76
|
ariaLabel: o.modalTitle
|
|
77
77
|
})]),
|
|
78
78
|
d(t.$slots, "default"),
|
|
79
|
-
i("div",
|
|
79
|
+
i("div", v, [
|
|
80
80
|
d(t.$slots, "spicyModalActions"),
|
|
81
81
|
o.actions.length === 0 && o.closeBtn ? (l(), r("button", {
|
|
82
82
|
key: 0,
|
|
@@ -87,10 +87,10 @@ var m = ["aria-labelledby"], h = { class: "spicyModalHeader" }, g = {
|
|
|
87
87
|
key: e.label,
|
|
88
88
|
class: "spicyModalExtraBtn spicyModalActionBtn",
|
|
89
89
|
onClick: (t) => w(e)
|
|
90
|
-
}, f(e.label), 9,
|
|
90
|
+
}, f(e.label), 9, y))), 128))
|
|
91
91
|
])
|
|
92
|
-
], 4)], 8,
|
|
92
|
+
], 4)], 8, h)) : n("", !0);
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
//#endregion
|
|
96
|
-
export {
|
|
96
|
+
export { m as n, b as t };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeStyle as o, openBlock as s, renderSlot as c, toDisplayString as l } from "vue";
|
|
2
|
-
//#region src/components/SpicyProgress.
|
|
3
|
-
var u = {
|
|
2
|
+
//#region src/components/SpicyProgress/SpicyProgress.css?inline
|
|
3
|
+
var u = ".spicyProgress{background-color:#e0e0e0;border-radius:8px;width:100%;position:relative;overflow:hidden}.spicyProgressBar{transition:width .4s}.spicyProgressLabel{color:#fff;font-size:12px;position:absolute;top:0;right:10px}.spicyProgressCircular{justify-content:center;align-items:center;display:flex;position:relative}.spicyCircularSvg{background-color:#00000080;border-radius:50%;transform:rotate(-90deg)}.spicyCircularTrack{fill:none;stroke:#e0e0e0}.spicyCircularProgress{fill:none;transition:stroke-dashoffset .4s}.spicyCircularLabel{font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}", d = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "spicyProgress"
|
|
6
|
-
},
|
|
6
|
+
}, f = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "spicyProgressLabel"
|
|
9
|
-
},
|
|
9
|
+
}, p = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "spicyProgressCircular"
|
|
12
|
-
},
|
|
12
|
+
}, m = ["width", "height"], h = [
|
|
13
13
|
"stroke-width",
|
|
14
14
|
"r",
|
|
15
15
|
"cx",
|
|
16
16
|
"cy"
|
|
17
|
-
],
|
|
17
|
+
], g = [
|
|
18
18
|
"stroke",
|
|
19
19
|
"stroke-width",
|
|
20
20
|
"r",
|
|
21
21
|
"cx",
|
|
22
22
|
"cy"
|
|
23
|
-
],
|
|
23
|
+
], _ = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "spicyCircularLabel"
|
|
26
|
-
},
|
|
26
|
+
}, v = /* @__PURE__ */ a({
|
|
27
27
|
__name: "SpicyProgress",
|
|
28
28
|
props: {
|
|
29
29
|
value: {},
|
|
@@ -39,19 +39,19 @@ var u = {
|
|
|
39
39
|
size: { default: 100 }
|
|
40
40
|
},
|
|
41
41
|
setup(a) {
|
|
42
|
-
let
|
|
42
|
+
let u = a, v = t(() => Math.round(u.value / u.max * 100)), y = t(() => u.type === "linear"), b = t(() => ({
|
|
43
43
|
width: `${v.value}%`,
|
|
44
|
-
backgroundColor:
|
|
45
|
-
height:
|
|
46
|
-
})), x = t(() =>
|
|
44
|
+
backgroundColor: u.color,
|
|
45
|
+
height: u.height
|
|
46
|
+
})), x = t(() => u.size / 2), S = t(() => (u.size - u.strokeWidth) / 2), C = t(() => 2 * Math.PI * S.value), w = t(() => ({
|
|
47
47
|
strokeDasharray: `${C.value} ${C.value}`,
|
|
48
48
|
strokeDashoffset: `${C.value - v.value / 100 * C.value}`,
|
|
49
49
|
transition: "stroke-dashoffset 400ms ease"
|
|
50
50
|
}));
|
|
51
|
-
return (t,
|
|
51
|
+
return (t, u) => (s(), r(e, null, [y.value ? (s(), r("div", d, [i("div", {
|
|
52
52
|
class: "spicyProgressBar",
|
|
53
53
|
style: o(b.value)
|
|
54
|
-
}, null, 4), a.showLabel ? (s(), r("div",
|
|
54
|
+
}, null, 4), a.showLabel ? (s(), r("div", f, l(v.value) + "%", 1)) : n("", !0)])) : (s(), r("div", p, [(s(), r("svg", {
|
|
55
55
|
class: "spicyCircularSvg",
|
|
56
56
|
width: a.size,
|
|
57
57
|
height: a.size
|
|
@@ -61,7 +61,7 @@ var u = {
|
|
|
61
61
|
r: S.value,
|
|
62
62
|
cx: x.value,
|
|
63
63
|
cy: x.value
|
|
64
|
-
}, null, 8,
|
|
64
|
+
}, null, 8, h), i("circle", {
|
|
65
65
|
class: "spicyCircularProgress",
|
|
66
66
|
stroke: a.color,
|
|
67
67
|
"stroke-width": a.strokeWidth,
|
|
@@ -69,8 +69,8 @@ var u = {
|
|
|
69
69
|
cx: x.value,
|
|
70
70
|
cy: x.value,
|
|
71
71
|
style: o(w.value)
|
|
72
|
-
}, null, 12,
|
|
72
|
+
}, null, 12, g)], 8, m)), a.showLabel ? (s(), r("div", _, l(v.value) + "%", 1)) : n("", !0)])), c(t.$slots, "default")], 64));
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
//#endregion
|
|
76
|
-
export {
|
|
76
|
+
export { u as n, v as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { computed as e, createElementBlock as t, defineComponent as n, normalizeClass as r, normalizeStyle as i, openBlock as a, renderSlot as o } from "vue";
|
|
2
|
-
//#
|
|
3
|
-
|
|
4
|
-
var s = /* @__PURE__ */ n({
|
|
2
|
+
//#region src/components/SpicySheet/SpicySheet.css?inline
|
|
3
|
+
var s = ".spicySheet.isRound{border-radius:8px}.spicySheet.flex{flex-direction:column;display:flex}", c = /* @__PURE__ */ n({
|
|
5
4
|
__name: "SpicySheet",
|
|
6
5
|
props: {
|
|
7
6
|
isRound: {
|
|
@@ -30,4 +29,4 @@ var s = /* @__PURE__ */ n({
|
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
31
|
//#endregion
|
|
33
|
-
export { s as t };
|
|
32
|
+
export { s as n, c as t };
|