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.
Files changed (54) hide show
  1. package/README.md +593 -496
  2. package/dist/component-names.d.ts +1 -1
  3. package/dist/component-names.js +1 -1
  4. package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +42 -42
  5. package/dist/components/Banner.vue_vue_type_script_setup_true_lang.js +40 -40
  6. package/dist/components/BarChart.vue.d.ts +13 -0
  7. package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +174 -132
  8. package/dist/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +28 -28
  9. package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +14 -14
  10. package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -30
  11. package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +62 -60
  12. package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +65 -65
  13. package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +74 -74
  14. package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +34 -34
  15. package/dist/components/Drawer.js +5 -0
  16. package/dist/components/Drawer.vue.d.ts +94 -0
  17. package/dist/components/Drawer.vue_vue_type_script_setup_true_lang.js +144 -0
  18. package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +42 -42
  19. package/dist/components/FileUpload.vue_vue_type_script_setup_true_lang.js +77 -77
  20. package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -11
  21. package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +33 -33
  22. package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +68 -66
  23. package/dist/components/Pagination.vue.d.ts +1 -1
  24. package/dist/components/Pagination.vue_vue_type_script_setup_true_lang.js +37 -37
  25. package/dist/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +37 -37
  26. package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +34 -31
  27. package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +47 -45
  28. package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +27 -27
  29. package/dist/components/Stepper.vue_vue_type_script_setup_true_lang.js +38 -38
  30. package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +9 -2
  31. package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +87 -87
  32. package/dist/components/Toaster.vue_vue_type_script_setup_true_lang.js +41 -41
  33. package/dist/components/index.d.ts +1 -0
  34. package/dist/components/index.js +54 -52
  35. package/dist/composables/date.js +12 -15
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.js +55 -54
  38. package/dist/theme/drawer.d.ts +110 -0
  39. package/dist/theme/drawer.js +100 -0
  40. package/dist/theme/index.d.ts +1 -0
  41. package/package.json +3 -2
  42. package/theme.css +114 -0
  43. package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +0 -377
  44. 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
  45. 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
  46. 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
  47. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
  48. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
  49. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
  50. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +0 -107
  51. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
  52. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +0 -29
  53. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +0 -37
  54. 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 { ArrowDown01Icon as e, Tick02Icon as t } from "../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
- import { useIryxUiConfig as n } from "../config.js";
3
- import r from "./Icon.js";
4
- import { selectTheme as i } from "../theme/select.js";
5
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, normalizeClass as m, normalizeProps as h, openBlock as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
6
- import { SelectContent as S, SelectGroup as C, SelectIcon as w, SelectItem as T, SelectItemIndicator as E, SelectItemText as D, SelectLabel as O, SelectPortal as k, SelectRoot as A, SelectTrigger as j, SelectValue as M, SelectViewport as N, useForwardPropsEmits as P } from "reka-ui";
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 F = /*@__PURE__*/ f({
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(f, { emit: F }) {
34
- let I = f, L = F, R = P(o(() => {
35
- let { items: e, placeholder: t, size: n, unstyled: r, class: i, ui: a, ...o } = I;
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
- }), L);
38
- function z(e) {
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 B(e) {
46
+ function V(e) {
45
47
  return typeof e != "string" && "items" in e;
46
48
  }
47
- let V = o(() => {
48
- let e = I.items ?? [];
49
- if (e.some(B)) return e.map((e) => B(e) ? {
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(z)
53
+ options: e.items.map(B)
52
54
  } : {
53
55
  label: "",
54
- options: [z(e)]
56
+ options: [B(e)]
55
57
  });
56
- }), H = o(() => (I.items ?? []).flatMap((e) => B(e) ? e.items.map(z) : [z(e)])), U = n(), W = o(() => I.unstyled ?? U.unstyled), G = o(() => i({ size: I.size })), K = o(() => W.value ? [I.ui?.trigger, I.class] : G.value.trigger({ class: [I.ui?.trigger, I.class] })), q = o(() => W.value ? I.ui?.content : G.value.content({ class: I.ui?.content })), J = o(() => W.value ? I.ui?.viewport : G.value.viewport({ class: I.ui?.viewport })), Y = o(() => W.value ? I.ui?.item : G.value.item({ class: I.ui?.item })), X = o(() => W.value ? void 0 : G.value.itemIndicator()), Z = o(() => W.value ? I.ui?.group : G.value.group({ class: I.ui?.group })), Q = o(() => W.value ? I.ui?.groupLabel : G.value.groupLabel({ class: I.ui?.groupLabel }));
57
- return (n, i) => (g(), s(b(A), h(p(b(R))), {
58
- default: x(() => [d(b(j), { class: m(K.value) }, {
59
- default: x(() => [d(b(M), { placeholder: I.placeholder }, null, 8, ["placeholder"]), d(b(w), { "as-child": "" }, {
60
- default: x(() => [d(r, { icon: b(e) }, null, 8, ["icon"])]),
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
- }, 8, ["class"]), d(b(k), null, {
65
- default: x(() => [d(b(S), {
66
- class: m(q.value),
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: x(() => [d(b(N), { class: m(J.value) }, {
70
- default: x(() => [v(n.$slots, "default", {}, () => [V.value ? (g(!0), l(a, { key: 0 }, _(V.value, (e, n) => (g(), s(b(C), {
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: m(Z.value)
74
+ class: p(Q.value)
73
75
  }, {
74
- default: x(() => [e.label ? (g(), s(b(O), {
76
+ default: b(() => [e.label ? (h(), a(y(k), {
75
77
  key: 0,
76
- class: m(Q.value)
78
+ class: p($.value)
77
79
  }, {
78
- default: x(() => [u(y(e.label), 1)]),
80
+ default: b(() => [c(v(e.label), 1)]),
79
81
  _: 2
80
- }, 1032, ["class"])) : c("", !0), (g(!0), l(a, null, _(e.options, (e) => (g(), s(b(T), {
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: m(Y.value)
86
+ class: p(X.value)
85
87
  }, {
86
- default: x(() => [d(b(E), { class: m(X.value) }, {
87
- default: x(() => [d(r, { icon: b(t) }, null, 8, ["icon"])]),
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"]), d(b(D), null, {
90
- default: x(() => [u(y(e.label), 1)]),
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)) : (g(!0), l(a, { key: 1 }, _(H.value, (e) => (g(), s(b(T), {
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: m(Y.value)
106
+ class: p(X.value)
105
107
  }, {
106
- default: x(() => [d(b(E), { class: m(X.value) }, {
107
- default: x(() => [d(r, { icon: b(t) }, null, 8, ["icon"])]),
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"]), d(b(D), null, {
110
- default: x(() => [u(y(e.label), 1)]),
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 { F as default };
132
+ export { I as default };
@@ -1,11 +1,11 @@
1
- import { ArrowDown01Icon as e, ArrowRight01Icon as t, ArrowUp01Icon as n } from "../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
- import { useIryxUiConfig as r } from "../config.js";
3
- import i from "./Icon.js";
4
- import { statTheme as a } from "../theme/stat.js";
5
- import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
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__*/ p({
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(p) {
27
- let x = p, S = o(() => x.trend ? x.trend : x.delta == null || x.delta === 0 ? "neutral" : x.delta > 0 ? "up" : "down"), C = o(() => ({
28
- up: n,
29
- down: e,
30
- neutral: t
31
- })[S.value]), w = o(() => {
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 = r(), E = o(() => x.unstyled ?? T.unstyled), D = o(() => a({
33
+ }), T = e(), E = r(() => x.unstyled ?? T.unstyled), D = r(() => n({
34
34
  size: x.size,
35
35
  trend: S.value
36
- })), O = o(() => E.value ? [x.ui?.root, x.class] : D.value.root({ class: [x.ui?.root, x.class] })), k = o(() => E.value ? x.ui?.label : D.value.label({ class: x.ui?.label })), A = o(() => E.value ? x.ui?.value : D.value.value({ class: x.ui?.value })), j = o(() => E.value ? x.ui?.delta : D.value.delta({ class: x.ui?.delta })), M = o(() => E.value ? x.ui?.hint : D.value.hint({ class: x.ui?.hint })), N = o(() => E.value ? x.ui?.row : D.value.row({ class: x.ui?.row }));
37
- return (e, t) => (h(), s(v(b), {
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: m(O.value)
39
+ class: d(O.value)
40
40
  }, {
41
- default: y(() => [
42
- x.label || e.$slots.label ? (h(), l("span", {
41
+ default: g(() => [
42
+ x.label || e.$slots.label ? (f(), o("span", {
43
43
  key: 0,
44
- class: m(k.value)
45
- }, [g(e.$slots, "label", {}, () => [d(_(x.label), 1)])], 2)) : c("", !0),
46
- u("span", { class: m(N.value) }, [u("span", { class: m(A.value) }, [g(e.$slots, "default", {}, () => [d(_(x.value), 1)])], 2), w.value || e.$slots.delta ? (h(), l("span", {
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: m(j.value)
49
- }, [g(e.$slots, "delta", { trend: S.value }, () => [f(i, {
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"]), d(" " + _(w.value), 1)])], 2)) : c("", !0)], 2),
53
- x.hint || e.$slots.hint ? (h(), l("span", {
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: m(M.value)
56
- }, [g(e.$slots, "hint", {}, () => [d(_(x.hint), 1)])], 2)) : c("", !0)
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 { Tick02Icon as e } from "../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
- import { useIryxUiConfig as t } from "../config.js";
3
- import n from "./Icon.js";
4
- import { stepperTheme as r } from "../theme/stepper.js";
5
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeModels as p, normalizeClass as m, openBlock as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useModel as b, withCtx as x } from "vue";
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__*/ f({
8
+ var k = /*@__PURE__*/ d({
9
9
  __name: "Stepper",
10
- props: /*@__PURE__*/ p({
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(f) {
29
- let p = f, k = b(f, "modelValue"), A = a(() => (p.items ?? []).map((e) => typeof e == "string" ? { title: e } : e)), j = t(), M = a(() => p.unstyled ?? j.unstyled), N = a(() => r({ orientation: p.orientation }));
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 = p.ui?.[e];
31
+ let t = f.ui?.[e];
32
32
  return M.value ? t : N.value[e]({ class: t });
33
33
  }
34
- let F = a(() => M.value ? [p.ui?.root, p.class] : N.value.root({ class: [p.ui?.root, p.class] }));
35
- return (t, r) => (h(), o(y(T), {
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": r[0] ||= (e) => k.value = e,
38
- orientation: p.orientation,
39
- linear: p.linear,
40
- class: m(F.value)
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: x(() => [(h(!0), c(i, null, g(A.value, (r, a) => (h(), o(y(w), {
43
- key: a,
44
- step: a + 1,
45
- disabled: r.disabled,
46
- class: m(P("item"))
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: x(() => [d(y(O), { class: m(P("trigger")) }, {
49
- default: x(() => [d(y(C), { class: m(P("indicator")) }, {
50
- default: x(() => [_(t.$slots, "indicator", {
51
- step: a + 1,
52
- item: r
53
- }, () => [a + 1 < k.value ? (h(), o(n, {
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: y(e)
56
- }, null, 8, ["icon"])) : (h(), c(i, { key: 1 }, [u(v(a + 1), 1)], 64))])]),
55
+ icon: v(x)
56
+ }, null, 8, ["icon"])) : (m(), s(r, { key: 1 }, [l(_(i + 1), 1)], 64))])]),
57
57
  _: 2
58
- }, 1032, ["class"]), l("span", { class: m(P("content")) }, [d(y(D), { class: m(P("title")) }, {
59
- default: x(() => [u(v(r.title), 1)]),
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"]), r.description ? (h(), o(y(S), {
61
+ }, 1032, ["class"]), n.description ? (m(), a(v(S), {
62
62
  key: 0,
63
- class: m(P("description"))
63
+ class: p(P("description"))
64
64
  }, {
65
- default: x(() => [u(v(r.description), 1)]),
65
+ default: b(() => [l(_(n.description), 1)]),
66
66
  _: 2
67
- }, 1032, ["class"])) : s("", !0)], 2)]),
67
+ }, 1032, ["class"])) : o("", !0)], 2)]),
68
68
  _: 2
69
- }, 1032, ["class"]), a < A.value.length - 1 ? (h(), o(y(E), {
69
+ }, 1032, ["class"]), i < A.value.length - 1 ? (m(), a(v(E), {
70
70
  key: 0,
71
- class: m(P("separator"))
72
- }, null, 8, ["class"])) : s("", !0)]),
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 }, h(E), {
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
- }, h(E), { class: P.value }), {
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"]));