iryx-ui 0.10.2 → 0.12.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 +593 -496
- package/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +42 -42
- package/dist/components/Banner.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/components/BarChart.vue.d.ts +13 -0
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +174 -132
- package/dist/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -30
- package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +62 -60
- package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +74 -74
- package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +34 -34
- package/dist/components/Drawer.js +5 -0
- package/dist/components/Drawer.vue.d.ts +94 -0
- package/dist/components/Drawer.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +42 -42
- package/dist/components/FileUpload.vue_vue_type_script_setup_true_lang.js +77 -77
- package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +33 -33
- package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +68 -66
- package/dist/components/Pagination.vue.d.ts +1 -1
- package/dist/components/Pagination.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +34 -31
- package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +47 -45
- package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/components/Stepper.vue_vue_type_script_setup_true_lang.js +38 -38
- package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +9 -2
- package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +87 -87
- package/dist/components/Toaster.vue_vue_type_script_setup_true_lang.js +41 -41
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +54 -52
- package/dist/composables/date.js +12 -15
- package/dist/index.d.ts +1 -0
- package/dist/index.js +55 -54
- package/dist/theme/drawer.d.ts +110 -0
- package/dist/theme/drawer.js +100 -0
- package/dist/theme/index.d.ts +1 -0
- package/package.json +3 -2
- package/theme.css +114 -0
- package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +0 -377
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/_virtual/_plugin-vue_export-helper.js +0 -8
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue.js +0 -25
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue2.js +0 -63
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +0 -107
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +0 -29
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +0 -37
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +0 -6
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { SelectContent as
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { selectTheme as n } from "../theme/select.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
5
|
+
import { ArrowDown01Icon as x, Tick02Icon as S } from "@hugeicons/core-free-icons";
|
|
6
|
+
import { SelectContent as C, SelectGroup as w, SelectIcon as T, SelectItem as E, SelectItemIndicator as D, SelectItemText as O, SelectLabel as k, SelectPortal as A, SelectRoot as j, SelectTrigger as M, SelectValue as N, SelectViewport as P, useForwardPropsEmits as F } from "reka-ui";
|
|
7
7
|
//#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var I = /*@__PURE__*/ u({
|
|
9
|
+
inheritAttrs: !1,
|
|
9
10
|
__name: "Select",
|
|
10
11
|
props: {
|
|
11
12
|
items: {},
|
|
@@ -21,6 +22,7 @@ var F = /*@__PURE__*/ f({
|
|
|
21
22
|
defaultOpen: { type: Boolean },
|
|
22
23
|
defaultValue: {},
|
|
23
24
|
modelValue: {},
|
|
25
|
+
nullableValue: {},
|
|
24
26
|
by: {},
|
|
25
27
|
dir: {},
|
|
26
28
|
multiple: { type: Boolean },
|
|
@@ -30,64 +32,64 @@ var F = /*@__PURE__*/ f({
|
|
|
30
32
|
required: { type: Boolean }
|
|
31
33
|
},
|
|
32
34
|
emits: ["update:modelValue", "update:open"],
|
|
33
|
-
setup(
|
|
34
|
-
let
|
|
35
|
-
let { items: e, placeholder: t, size: n, unstyled: r, class: i, ui: a, ...o } =
|
|
35
|
+
setup(u, { emit: I }) {
|
|
36
|
+
let L = u, R = I, z = F(i(() => {
|
|
37
|
+
let { items: e, placeholder: t, size: n, unstyled: r, class: i, ui: a, ...o } = L;
|
|
36
38
|
return o;
|
|
37
|
-
}),
|
|
38
|
-
function
|
|
39
|
+
}), R);
|
|
40
|
+
function B(e) {
|
|
39
41
|
return typeof e == "string" ? {
|
|
40
42
|
label: e,
|
|
41
43
|
value: e
|
|
42
44
|
} : e;
|
|
43
45
|
}
|
|
44
|
-
function
|
|
46
|
+
function V(e) {
|
|
45
47
|
return typeof e != "string" && "items" in e;
|
|
46
48
|
}
|
|
47
|
-
let
|
|
48
|
-
let e =
|
|
49
|
-
if (e.some(
|
|
49
|
+
let H = i(() => {
|
|
50
|
+
let e = L.items ?? [];
|
|
51
|
+
if (e.some(V)) return e.map((e) => V(e) ? {
|
|
50
52
|
label: e.label,
|
|
51
|
-
options: e.items.map(
|
|
53
|
+
options: e.items.map(B)
|
|
52
54
|
} : {
|
|
53
55
|
label: "",
|
|
54
|
-
options: [
|
|
56
|
+
options: [B(e)]
|
|
55
57
|
});
|
|
56
|
-
}),
|
|
57
|
-
return (
|
|
58
|
-
default:
|
|
59
|
-
default:
|
|
60
|
-
default:
|
|
58
|
+
}), U = i(() => (L.items ?? []).flatMap((e) => V(e) ? e.items.map(B) : [B(e)])), W = e(), G = i(() => L.unstyled ?? W.unstyled), K = i(() => n({ size: L.size })), q = i(() => G.value ? [L.ui?.trigger, L.class] : K.value.trigger({ class: [L.ui?.trigger, L.class] })), J = i(() => G.value ? L.ui?.content : K.value.content({ class: L.ui?.content })), Y = i(() => G.value ? L.ui?.viewport : K.value.viewport({ class: L.ui?.viewport })), X = i(() => G.value ? L.ui?.item : K.value.item({ class: L.ui?.item })), Z = i(() => G.value ? void 0 : K.value.itemIndicator()), Q = i(() => G.value ? L.ui?.group : K.value.group({ class: L.ui?.group })), $ = i(() => G.value ? L.ui?.groupLabel : K.value.groupLabel({ class: L.ui?.groupLabel }));
|
|
59
|
+
return (e, n) => (h(), a(y(j), m(d(y(z))), {
|
|
60
|
+
default: b(() => [l(y(M), f(e.$attrs, { class: q.value }), {
|
|
61
|
+
default: b(() => [l(y(N), { placeholder: L.placeholder }, null, 8, ["placeholder"]), l(y(T), { "as-child": "" }, {
|
|
62
|
+
default: b(() => [l(t, { icon: y(x) }, null, 8, ["icon"])]),
|
|
61
63
|
_: 1
|
|
62
64
|
})]),
|
|
63
65
|
_: 1
|
|
64
|
-
},
|
|
65
|
-
default:
|
|
66
|
-
class:
|
|
66
|
+
}, 16, ["class"]), l(y(A), null, {
|
|
67
|
+
default: b(() => [l(y(C), {
|
|
68
|
+
class: p(J.value),
|
|
67
69
|
position: "item-aligned"
|
|
68
70
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
default:
|
|
71
|
+
default: b(() => [l(y(P), { class: p(Y.value) }, {
|
|
72
|
+
default: b(() => [_(e.$slots, "default", {}, () => [H.value ? (h(!0), s(r, { key: 0 }, g(H.value, (e, n) => (h(), a(y(w), {
|
|
71
73
|
key: e.label || n,
|
|
72
|
-
class:
|
|
74
|
+
class: p(Q.value)
|
|
73
75
|
}, {
|
|
74
|
-
default:
|
|
76
|
+
default: b(() => [e.label ? (h(), a(y(k), {
|
|
75
77
|
key: 0,
|
|
76
|
-
class:
|
|
78
|
+
class: p($.value)
|
|
77
79
|
}, {
|
|
78
|
-
default:
|
|
80
|
+
default: b(() => [c(v(e.label), 1)]),
|
|
79
81
|
_: 2
|
|
80
|
-
}, 1032, ["class"])) :
|
|
82
|
+
}, 1032, ["class"])) : o("", !0), (h(!0), s(r, null, g(e.options, (e) => (h(), a(y(E), {
|
|
81
83
|
key: e.value,
|
|
82
84
|
value: e.value,
|
|
83
85
|
disabled: e.disabled,
|
|
84
|
-
class:
|
|
86
|
+
class: p(X.value)
|
|
85
87
|
}, {
|
|
86
|
-
default:
|
|
87
|
-
default:
|
|
88
|
+
default: b(() => [l(y(D), { class: p(Z.value) }, {
|
|
89
|
+
default: b(() => [l(t, { icon: y(S) }, null, 8, ["icon"])]),
|
|
88
90
|
_: 1
|
|
89
|
-
}, 8, ["class"]),
|
|
90
|
-
default:
|
|
91
|
+
}, 8, ["class"]), l(y(O), null, {
|
|
92
|
+
default: b(() => [c(v(e.label), 1)]),
|
|
91
93
|
_: 2
|
|
92
94
|
}, 1024)]),
|
|
93
95
|
_: 2
|
|
@@ -97,17 +99,17 @@ var F = /*@__PURE__*/ f({
|
|
|
97
99
|
"class"
|
|
98
100
|
]))), 128))]),
|
|
99
101
|
_: 2
|
|
100
|
-
}, 1032, ["class"]))), 128)) : (
|
|
102
|
+
}, 1032, ["class"]))), 128)) : (h(!0), s(r, { key: 1 }, g(U.value, (e) => (h(), a(y(E), {
|
|
101
103
|
key: e.value,
|
|
102
104
|
value: e.value,
|
|
103
105
|
disabled: e.disabled,
|
|
104
|
-
class:
|
|
106
|
+
class: p(X.value)
|
|
105
107
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
default:
|
|
108
|
+
default: b(() => [l(y(D), { class: p(Z.value) }, {
|
|
109
|
+
default: b(() => [l(t, { icon: y(S) }, null, 8, ["icon"])]),
|
|
108
110
|
_: 1
|
|
109
|
-
}, 8, ["class"]),
|
|
110
|
-
default:
|
|
111
|
+
}, 8, ["class"]), l(y(O), null, {
|
|
112
|
+
default: b(() => [c(v(e.label), 1)]),
|
|
111
113
|
_: 2
|
|
112
114
|
}, 1024)]),
|
|
113
115
|
_: 2
|
|
@@ -127,4 +129,4 @@ var F = /*@__PURE__*/ f({
|
|
|
127
129
|
}
|
|
128
130
|
});
|
|
129
131
|
//#endregion
|
|
130
|
-
export {
|
|
132
|
+
export { I as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { statTheme as n } from "../theme/stat.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
|
+
import { ArrowDown01Icon as _, ArrowRight01Icon as v, ArrowUp01Icon as y } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { Primitive as b } from "reka-ui";
|
|
7
7
|
//#region src/components/Stat.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var x = /*@__PURE__*/
|
|
8
|
+
var x = /*@__PURE__*/ u({
|
|
9
9
|
__name: "Stat",
|
|
10
10
|
props: {
|
|
11
11
|
as: { default: "div" },
|
|
@@ -23,37 +23,37 @@ var x = /*@__PURE__*/ p({
|
|
|
23
23
|
class: {},
|
|
24
24
|
ui: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
let x =
|
|
28
|
-
up:
|
|
29
|
-
down:
|
|
30
|
-
neutral:
|
|
31
|
-
})[S.value]), w =
|
|
26
|
+
setup(u) {
|
|
27
|
+
let x = u, S = r(() => x.trend ? x.trend : x.delta == null || x.delta === 0 ? "neutral" : x.delta > 0 ? "up" : "down"), C = r(() => ({
|
|
28
|
+
up: y,
|
|
29
|
+
down: _,
|
|
30
|
+
neutral: v
|
|
31
|
+
})[S.value]), w = r(() => {
|
|
32
32
|
if (x.delta != null) return x.formatDelta ? x.formatDelta(x.delta) : `${x.delta > 0 ? "+" : ""}${x.delta}%`;
|
|
33
|
-
}), T =
|
|
33
|
+
}), T = e(), E = r(() => x.unstyled ?? T.unstyled), D = r(() => n({
|
|
34
34
|
size: x.size,
|
|
35
35
|
trend: S.value
|
|
36
|
-
})), O =
|
|
37
|
-
return (e,
|
|
36
|
+
})), O = r(() => E.value ? [x.ui?.root, x.class] : D.value.root({ class: [x.ui?.root, x.class] })), k = r(() => E.value ? x.ui?.label : D.value.label({ class: x.ui?.label })), A = r(() => E.value ? x.ui?.value : D.value.value({ class: x.ui?.value })), j = r(() => E.value ? x.ui?.delta : D.value.delta({ class: x.ui?.delta })), M = r(() => E.value ? x.ui?.hint : D.value.hint({ class: x.ui?.hint })), N = r(() => E.value ? x.ui?.row : D.value.row({ class: x.ui?.row }));
|
|
37
|
+
return (e, n) => (f(), i(h(b), {
|
|
38
38
|
as: x.as,
|
|
39
|
-
class:
|
|
39
|
+
class: d(O.value)
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
x.label || e.$slots.label ? (
|
|
41
|
+
default: g(() => [
|
|
42
|
+
x.label || e.$slots.label ? (f(), o("span", {
|
|
43
43
|
key: 0,
|
|
44
|
-
class:
|
|
45
|
-
}, [
|
|
46
|
-
|
|
44
|
+
class: d(k.value)
|
|
45
|
+
}, [p(e.$slots, "label", {}, () => [c(m(x.label), 1)])], 2)) : a("", !0),
|
|
46
|
+
s("span", { class: d(N.value) }, [s("span", { class: d(A.value) }, [p(e.$slots, "default", {}, () => [c(m(x.value), 1)])], 2), w.value || e.$slots.delta ? (f(), o("span", {
|
|
47
47
|
key: 0,
|
|
48
|
-
class:
|
|
49
|
-
}, [
|
|
48
|
+
class: d(j.value)
|
|
49
|
+
}, [p(e.$slots, "delta", { trend: S.value }, () => [l(t, {
|
|
50
50
|
icon: C.value,
|
|
51
51
|
"data-icon": "inline-start"
|
|
52
|
-
}, null, 8, ["icon"]),
|
|
53
|
-
x.hint || e.$slots.hint ? (
|
|
52
|
+
}, null, 8, ["icon"]), c(" " + m(w.value), 1)])], 2)) : a("", !0)], 2),
|
|
53
|
+
x.hint || e.$slots.hint ? (f(), o("span", {
|
|
54
54
|
key: 1,
|
|
55
|
-
class:
|
|
56
|
-
}, [
|
|
55
|
+
class: d(M.value)
|
|
56
|
+
}, [p(e.$slots, "hint", {}, () => [c(m(x.hint), 1)])], 2)) : a("", !0)
|
|
57
57
|
]),
|
|
58
58
|
_: 3
|
|
59
59
|
}, 8, ["as", "class"]));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { stepperTheme as n } from "../theme/stepper.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, useModel as y, withCtx as b } from "vue";
|
|
5
|
+
import { Tick02Icon as x } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { StepperDescription as S, StepperIndicator as C, StepperItem as w, StepperRoot as T, StepperSeparator as E, StepperTitle as D, StepperTrigger as O } from "reka-ui";
|
|
7
7
|
//#region src/components/Stepper.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var k = /*@__PURE__*/
|
|
8
|
+
var k = /*@__PURE__*/ d({
|
|
9
9
|
__name: "Stepper",
|
|
10
|
-
props: /*@__PURE__*/
|
|
10
|
+
props: /*@__PURE__*/ f({
|
|
11
11
|
items: {},
|
|
12
12
|
orientation: {},
|
|
13
13
|
linear: {
|
|
@@ -25,51 +25,51 @@ var k = /*@__PURE__*/ f({
|
|
|
25
25
|
modelModifiers: {}
|
|
26
26
|
}),
|
|
27
27
|
emits: ["update:modelValue"],
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
28
|
+
setup(d) {
|
|
29
|
+
let f = d, k = y(d, "modelValue"), A = i(() => (f.items ?? []).map((e) => typeof e == "string" ? { title: e } : e)), j = e(), M = i(() => f.unstyled ?? j.unstyled), N = i(() => n({ orientation: f.orientation }));
|
|
30
30
|
function P(e) {
|
|
31
|
-
let t =
|
|
31
|
+
let t = f.ui?.[e];
|
|
32
32
|
return M.value ? t : N.value[e]({ class: t });
|
|
33
33
|
}
|
|
34
|
-
let F =
|
|
35
|
-
return (
|
|
34
|
+
let F = i(() => M.value ? [f.ui?.root, f.class] : N.value.root({ class: [f.ui?.root, f.class] }));
|
|
35
|
+
return (e, n) => (m(), a(v(T), {
|
|
36
36
|
modelValue: k.value,
|
|
37
|
-
"onUpdate:modelValue":
|
|
38
|
-
orientation:
|
|
39
|
-
linear:
|
|
40
|
-
class:
|
|
37
|
+
"onUpdate:modelValue": n[0] ||= (e) => k.value = e,
|
|
38
|
+
orientation: f.orientation,
|
|
39
|
+
linear: f.linear,
|
|
40
|
+
class: p(F.value)
|
|
41
41
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
key:
|
|
44
|
-
step:
|
|
45
|
-
disabled:
|
|
46
|
-
class:
|
|
42
|
+
default: b(() => [(m(!0), s(r, null, h(A.value, (n, i) => (m(), a(v(w), {
|
|
43
|
+
key: i,
|
|
44
|
+
step: i + 1,
|
|
45
|
+
disabled: n.disabled,
|
|
46
|
+
class: p(P("item"))
|
|
47
47
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
default:
|
|
50
|
-
default:
|
|
51
|
-
step:
|
|
52
|
-
item:
|
|
53
|
-
}, () => [
|
|
48
|
+
default: b(() => [u(v(O), { class: p(P("trigger")) }, {
|
|
49
|
+
default: b(() => [u(v(C), { class: p(P("indicator")) }, {
|
|
50
|
+
default: b(() => [g(e.$slots, "indicator", {
|
|
51
|
+
step: i + 1,
|
|
52
|
+
item: n
|
|
53
|
+
}, () => [i + 1 < k.value ? (m(), a(t, {
|
|
54
54
|
key: 0,
|
|
55
|
-
icon:
|
|
56
|
-
}, null, 8, ["icon"])) : (
|
|
55
|
+
icon: v(x)
|
|
56
|
+
}, null, 8, ["icon"])) : (m(), s(r, { key: 1 }, [l(_(i + 1), 1)], 64))])]),
|
|
57
57
|
_: 2
|
|
58
|
-
}, 1032, ["class"]),
|
|
59
|
-
default:
|
|
58
|
+
}, 1032, ["class"]), c("span", { class: p(P("content")) }, [u(v(D), { class: p(P("title")) }, {
|
|
59
|
+
default: b(() => [l(_(n.title), 1)]),
|
|
60
60
|
_: 2
|
|
61
|
-
}, 1032, ["class"]),
|
|
61
|
+
}, 1032, ["class"]), n.description ? (m(), a(v(S), {
|
|
62
62
|
key: 0,
|
|
63
|
-
class:
|
|
63
|
+
class: p(P("description"))
|
|
64
64
|
}, {
|
|
65
|
-
default:
|
|
65
|
+
default: b(() => [l(_(n.description), 1)]),
|
|
66
66
|
_: 2
|
|
67
|
-
}, 1032, ["class"])) :
|
|
67
|
+
}, 1032, ["class"])) : o("", !0)], 2)]),
|
|
68
68
|
_: 2
|
|
69
|
-
}, 1032, ["class"]),
|
|
69
|
+
}, 1032, ["class"]), i < A.value.length - 1 ? (m(), a(v(E), {
|
|
70
70
|
key: 0,
|
|
71
|
-
class:
|
|
72
|
-
}, null, 8, ["class"])) :
|
|
71
|
+
class: p(P("separator"))
|
|
72
|
+
}, null, 8, ["class"])) : o("", !0)]),
|
|
73
73
|
_: 2
|
|
74
74
|
}, 1032, [
|
|
75
75
|
"step",
|
|
@@ -4,6 +4,7 @@ import { computed as n, createBlock as r, createCommentVNode as i, createElement
|
|
|
4
4
|
import { Label as _, SwitchRoot as v, SwitchThumb as y, useForwardPropsEmits as b, useId as x } from "reka-ui";
|
|
5
5
|
//#region src/components/Switch.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var S = ["id"], C = /*@__PURE__*/ l({
|
|
7
|
+
inheritAttrs: !1,
|
|
7
8
|
__name: "Switch",
|
|
8
9
|
props: {
|
|
9
10
|
label: {},
|
|
@@ -35,7 +36,10 @@ var S = ["id"], C = /*@__PURE__*/ l({
|
|
|
35
36
|
return (e, t) => k.value ? (f(), a("div", {
|
|
36
37
|
key: 0,
|
|
37
38
|
class: d(N.value)
|
|
38
|
-
}, [c(h(v), u({ id: O.value },
|
|
39
|
+
}, [c(h(v), u({ id: O.value }, {
|
|
40
|
+
...h(E),
|
|
41
|
+
...e.$attrs
|
|
42
|
+
}, {
|
|
39
43
|
"aria-describedby": w.description ? `${O.value}-description` : void 0,
|
|
40
44
|
class: P.value
|
|
41
45
|
}), {
|
|
@@ -58,7 +62,10 @@ var S = ["id"], C = /*@__PURE__*/ l({
|
|
|
58
62
|
}, [p(e.$slots, "description", {}, () => [s(m(w.description), 1)])], 10, S)) : i("", !0)], 2)], 2)) : (f(), r(h(v), u({
|
|
59
63
|
key: 1,
|
|
60
64
|
id: w.id
|
|
61
|
-
},
|
|
65
|
+
}, {
|
|
66
|
+
...h(E),
|
|
67
|
+
...e.$attrs
|
|
68
|
+
}, { class: P.value }), {
|
|
62
69
|
default: g(() => [c(h(y), { class: d(F.value) }, null, 8, ["class"])]),
|
|
63
70
|
_: 1
|
|
64
71
|
}, 16, ["id", "class"]));
|