iryx-ui 0.11.0 → 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 (51) hide show
  1. package/README.md +578 -498
  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/Breadcrumb.vue_vue_type_script_setup_true_lang.js +28 -28
  7. package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +14 -14
  8. package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -30
  9. package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +62 -60
  10. package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +65 -65
  11. package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +74 -74
  12. package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +34 -34
  13. package/dist/components/Drawer.js +5 -0
  14. package/dist/components/Drawer.vue.d.ts +94 -0
  15. package/dist/components/Drawer.vue_vue_type_script_setup_true_lang.js +144 -0
  16. package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +42 -42
  17. package/dist/components/FileUpload.vue_vue_type_script_setup_true_lang.js +77 -77
  18. package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -11
  19. package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +33 -33
  20. package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +68 -66
  21. package/dist/components/Pagination.vue_vue_type_script_setup_true_lang.js +37 -37
  22. package/dist/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +37 -37
  23. package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +34 -31
  24. package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +47 -45
  25. package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +27 -27
  26. package/dist/components/Stepper.vue_vue_type_script_setup_true_lang.js +38 -38
  27. package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +9 -2
  28. package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +87 -87
  29. package/dist/components/Toaster.vue_vue_type_script_setup_true_lang.js +41 -41
  30. package/dist/components/index.d.ts +1 -0
  31. package/dist/components/index.js +54 -52
  32. package/dist/composables/date.js +12 -15
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +55 -54
  35. package/dist/theme/drawer.d.ts +110 -0
  36. package/dist/theme/drawer.js +100 -0
  37. package/dist/theme/index.d.ts +1 -0
  38. package/package.json +3 -2
  39. package/theme.css +114 -0
  40. package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +0 -377
  41. 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
  42. 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
  43. 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
  44. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
  45. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
  46. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
  47. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +0 -107
  48. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
  49. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +0 -29
  50. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +0 -37
  51. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +0 -6
@@ -3,5 +3,5 @@
3
3
  * Consumed by the Vue plugin (global registration) and the Nuxt module
4
4
  * (auto-imports). Keep in sync with `src/components/index.ts`.
5
5
  */
6
- export declare const componentNames: readonly ["Alert", "App", "Badge", "BarChart", "Banner", "Breadcrumb", "Button", "ButtonGroup", "Card", "ChartLegend", "Checkbox", "Combobox", "ConfirmDialog", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "EmptyState", "FileUpload", "Form", "FormField", "Input", "Label", "LineChart", "NumberInput", "Pagination", "PasswordInput", "Progress", "RadioGroup", "Select", "Separator", "Skeleton", "Sparkline", "Stat", "Stepper", "Switch", "Table", "Tabs", "Textarea", "Toaster", "Tooltip"];
6
+ export declare const componentNames: readonly ["Alert", "App", "Badge", "BarChart", "Banner", "Breadcrumb", "Button", "ButtonGroup", "Card", "ChartLegend", "Checkbox", "Combobox", "ConfirmDialog", "DatePicker", "DateRangePicker", "Dialog", "Drawer", "DropdownMenu", "EmptyState", "FileUpload", "Form", "FormField", "Input", "Label", "LineChart", "NumberInput", "Pagination", "PasswordInput", "Progress", "RadioGroup", "Select", "Separator", "Skeleton", "Sparkline", "Stat", "Stepper", "Switch", "Table", "Tabs", "Textarea", "Toaster", "Tooltip"];
7
7
  export type ComponentName = (typeof componentNames)[number];
@@ -1,4 +1,4 @@
1
1
  //#region src/component-names.ts
2
- var e = /* @__PURE__ */ "Alert.App.Badge.BarChart.Banner.Breadcrumb.Button.ButtonGroup.Card.ChartLegend.Checkbox.Combobox.ConfirmDialog.DatePicker.DateRangePicker.Dialog.DropdownMenu.EmptyState.FileUpload.Form.FormField.Input.Label.LineChart.NumberInput.Pagination.PasswordInput.Progress.RadioGroup.Select.Separator.Skeleton.Sparkline.Stat.Stepper.Switch.Table.Tabs.Textarea.Toaster.Tooltip".split(".");
2
+ var e = /* @__PURE__ */ "Alert.App.Badge.BarChart.Banner.Breadcrumb.Button.ButtonGroup.Card.ChartLegend.Checkbox.Combobox.ConfirmDialog.DatePicker.DateRangePicker.Dialog.Drawer.DropdownMenu.EmptyState.FileUpload.Form.FormField.Input.Label.LineChart.NumberInput.Pagination.PasswordInput.Progress.RadioGroup.Select.Separator.Skeleton.Sparkline.Stat.Stepper.Switch.Table.Tabs.Textarea.Toaster.Tooltip".split(".");
3
3
  //#endregion
4
4
  export { e as componentNames };
@@ -1,13 +1,13 @@
1
- import { Alert02Icon as e, AlertCircleIcon as t, Cancel01Icon as n, CheckmarkCircle02Icon as r, InformationCircleIcon as i } 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 a } from "../config.js";
3
- import { alertTheme as o } from "../theme/alert.js";
4
- import s from "./Icon.js";
5
- import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, normalizeClass as _, openBlock as v, renderSlot as y, toDisplayString as b, unref as x, useModel as S, withCtx as C } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import { alertTheme as t } from "../theme/alert.js";
3
+ import n from "./Icon.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, mergeModels as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, withCtx as v } from "vue";
5
+ import { Alert02Icon as y, AlertCircleIcon as b, Cancel01Icon as x, CheckmarkCircle02Icon as S, InformationCircleIcon as C } from "@hugeicons/core-free-icons";
6
6
  import { Primitive as w } from "reka-ui";
7
7
  //#region src/components/Alert.vue?vue&type=script&setup=true&lang.ts
8
- var T = ["aria-label"], E = /*@__PURE__*/ h({
8
+ var T = ["aria-label"], E = /*@__PURE__*/ u({
9
9
  __name: "Alert",
10
- props: /*@__PURE__*/ g({
10
+ props: /*@__PURE__*/ d({
11
11
  as: { default: "div" },
12
12
  variant: {},
13
13
  title: {},
@@ -31,60 +31,60 @@ var T = ["aria-label"], E = /*@__PURE__*/ h({
31
31
  },
32
32
  openModifiers: {}
33
33
  }),
34
- emits: /*@__PURE__*/ g(["close"], ["update:open"]),
35
- setup(h) {
36
- let g = h, E = S(h, "open"), D = {
37
- info: i,
38
- success: r,
39
- warning: e,
40
- danger: t
41
- }, O = c(() => {
42
- if (g.icon !== !1) return g.icon ?? D[g.variant ?? "info"];
43
- }), k = c(() => g.variant === "danger" || g.variant === "warning" ? "alert" : "status"), A = a(), j = c(() => g.unstyled ?? A.unstyled), M = c(() => o({
44
- variant: g.variant,
45
- withTitle: !!g.title
46
- })), N = c(() => j.value ? [g.ui?.root, g.class] : M.value.root({ class: [g.ui?.root, g.class] })), P = c(() => j.value ? g.ui?.icon : M.value.icon({ class: g.ui?.icon })), F = c(() => j.value ? g.ui?.content : M.value.content({ class: g.ui?.content })), I = c(() => j.value ? g.ui?.title : M.value.title({ class: g.ui?.title })), L = c(() => j.value ? g.ui?.description : M.value.description({ class: g.ui?.description })), R = c(() => j.value ? g.ui?.actions : M.value.actions({ class: g.ui?.actions })), z = c(() => j.value ? g.ui?.close : M.value.close({ class: g.ui?.close }));
47
- return (e, t) => E.value ? (v(), l(x(w), {
34
+ emits: /*@__PURE__*/ d(["close"], ["update:open"]),
35
+ setup(u) {
36
+ let d = u, E = _(u, "open"), D = {
37
+ info: C,
38
+ success: S,
39
+ warning: y,
40
+ danger: b
41
+ }, O = r(() => {
42
+ if (d.icon !== !1) return d.icon ?? D[d.variant ?? "info"];
43
+ }), k = r(() => d.variant === "danger" || d.variant === "warning" ? "alert" : "status"), A = e(), j = r(() => d.unstyled ?? A.unstyled), M = r(() => t({
44
+ variant: d.variant,
45
+ withTitle: !!d.title
46
+ })), N = r(() => j.value ? [d.ui?.root, d.class] : M.value.root({ class: [d.ui?.root, d.class] })), P = r(() => j.value ? d.ui?.icon : M.value.icon({ class: d.ui?.icon })), F = r(() => j.value ? d.ui?.content : M.value.content({ class: d.ui?.content })), I = r(() => j.value ? d.ui?.title : M.value.title({ class: d.ui?.title })), L = r(() => j.value ? d.ui?.description : M.value.description({ class: d.ui?.description })), R = r(() => j.value ? d.ui?.actions : M.value.actions({ class: d.ui?.actions })), z = r(() => j.value ? d.ui?.close : M.value.close({ class: d.ui?.close }));
47
+ return (e, t) => E.value ? (p(), i(g(w), {
48
48
  key: 0,
49
- as: g.as,
49
+ as: d.as,
50
50
  role: k.value,
51
- class: _(N.value)
51
+ class: f(N.value)
52
52
  }, {
53
- default: C(() => [
54
- O.value || e.$slots.icon ? (v(), d("div", {
53
+ default: v(() => [
54
+ O.value || e.$slots.icon ? (p(), o("div", {
55
55
  key: 0,
56
- class: _(P.value)
57
- }, [y(e.$slots, "icon", {}, () => [m(s, { icon: O.value }, null, 8, ["icon"])])], 2)) : u("", !0),
58
- f("div", { class: _(F.value) }, [
59
- g.title || e.$slots.title ? (v(), d("p", {
56
+ class: f(P.value)
57
+ }, [m(e.$slots, "icon", {}, () => [l(n, { icon: O.value }, null, 8, ["icon"])])], 2)) : a("", !0),
58
+ s("div", { class: f(F.value) }, [
59
+ d.title || e.$slots.title ? (p(), o("p", {
60
60
  key: 0,
61
- class: _(I.value)
62
- }, [y(e.$slots, "title", {}, () => [p(b(g.title), 1)])], 2)) : u("", !0),
63
- g.description || e.$slots.default ? (v(), d("div", {
61
+ class: f(I.value)
62
+ }, [m(e.$slots, "title", {}, () => [c(h(d.title), 1)])], 2)) : a("", !0),
63
+ d.description || e.$slots.default ? (p(), o("div", {
64
64
  key: 1,
65
- class: _(L.value)
66
- }, [y(e.$slots, "default", {}, () => [p(b(g.description), 1)])], 2)) : u("", !0),
67
- e.$slots.actions ? (v(), d("div", {
65
+ class: f(L.value)
66
+ }, [m(e.$slots, "default", {}, () => [c(h(d.description), 1)])], 2)) : a("", !0),
67
+ e.$slots.actions ? (p(), o("div", {
68
68
  key: 2,
69
- class: _(R.value)
70
- }, [y(e.$slots, "actions")], 2)) : u("", !0)
69
+ class: f(R.value)
70
+ }, [m(e.$slots, "actions")], 2)) : a("", !0)
71
71
  ], 2),
72
- g.closable ? (v(), d("button", {
72
+ d.closable ? (p(), o("button", {
73
73
  key: 1,
74
74
  type: "button",
75
- "aria-label": g.closeLabel,
76
- class: _(z.value),
75
+ "aria-label": d.closeLabel,
76
+ class: f(z.value),
77
77
  onClick: t[0] ||= (t) => {
78
78
  E.value = !1, e.$emit("close");
79
79
  }
80
- }, [y(e.$slots, "close", {}, () => [m(s, { icon: x(n) }, null, 8, ["icon"])])], 10, T)) : u("", !0)
80
+ }, [m(e.$slots, "close", {}, () => [l(n, { icon: g(x) }, null, 8, ["icon"])])], 10, T)) : a("", !0)
81
81
  ]),
82
82
  _: 3
83
83
  }, 8, [
84
84
  "as",
85
85
  "role",
86
86
  "class"
87
- ])) : u("", !0);
87
+ ])) : a("", !0);
88
88
  }
89
89
  });
90
90
  //#endregion
@@ -1,13 +1,13 @@
1
- import { Cancel01Icon 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 { bannerTheme as r } from "../theme/banner.js";
5
- import { 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, renderSlot as h, toDisplayString as g, unref as _, useModel as v, withCtx as y } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { bannerTheme as n } from "../theme/banner.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, mergeModels as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, withCtx as v } from "vue";
5
+ import { Cancel01Icon as y } from "@hugeicons/core-free-icons";
6
6
  import { Primitive as b } from "reka-ui";
7
7
  //#region src/components/Banner.vue?vue&type=script&setup=true&lang.ts
8
- var x = ["aria-label"], S = /*@__PURE__*/ d({
8
+ var x = ["aria-label"], S = /*@__PURE__*/ u({
9
9
  __name: "Banner",
10
- props: /*@__PURE__*/ f({
10
+ props: /*@__PURE__*/ d({
11
11
  as: { default: "div" },
12
12
  variant: {},
13
13
  position: {},
@@ -35,58 +35,58 @@ var x = ["aria-label"], S = /*@__PURE__*/ d({
35
35
  },
36
36
  openModifiers: {}
37
37
  }),
38
- emits: /*@__PURE__*/ f(["close"], ["update:open"]),
39
- setup(d) {
40
- let f = d, S = v(d, "open"), C = t(), w = i(() => f.unstyled ?? C.unstyled), T = i(() => r({
41
- variant: f.variant,
42
- position: f.position,
43
- contained: f.contained ?? !1,
44
- align: f.align
45
- })), E = i(() => w.value ? [f.ui?.root, f.class] : T.value.root({ class: [f.ui?.root, f.class] }));
38
+ emits: /*@__PURE__*/ d(["close"], ["update:open"]),
39
+ setup(u) {
40
+ let d = u, S = _(u, "open"), C = e(), w = r(() => d.unstyled ?? C.unstyled), T = r(() => n({
41
+ variant: d.variant,
42
+ position: d.position,
43
+ contained: d.contained ?? !1,
44
+ align: d.align
45
+ })), E = r(() => w.value ? [d.ui?.root, d.class] : T.value.root({ class: [d.ui?.root, d.class] }));
46
46
  function D(e) {
47
- let t = f.ui?.[e];
47
+ let t = d.ui?.[e];
48
48
  return w.value ? t : T.value[e]({ class: t });
49
49
  }
50
- return (t, r) => S.value ? (m(), a(_(b), {
50
+ return (e, n) => S.value ? (p(), i(g(b), {
51
51
  key: 0,
52
- as: f.as,
52
+ as: d.as,
53
53
  role: "region",
54
- "aria-label": f.label,
55
- class: p(E.value)
54
+ "aria-label": d.label,
55
+ class: f(E.value)
56
56
  }, {
57
- default: y(() => [c("div", { class: p(D("container")) }, [
58
- f.icon || t.$slots.icon ? (m(), s("span", {
57
+ default: v(() => [s("div", { class: f(D("container")) }, [
58
+ d.icon || e.$slots.icon ? (p(), o("span", {
59
59
  key: 0,
60
- class: p(D("icon"))
61
- }, [h(t.$slots, "icon", {}, () => [u(n, { icon: f.icon }, null, 8, ["icon"])])], 2)) : o("", !0),
62
- c("p", { class: p(D("content")) }, [
63
- f.title || t.$slots.title ? (m(), s("strong", {
60
+ class: f(D("icon"))
61
+ }, [m(e.$slots, "icon", {}, () => [l(t, { icon: d.icon }, null, 8, ["icon"])])], 2)) : a("", !0),
62
+ s("p", { class: f(D("content")) }, [
63
+ d.title || e.$slots.title ? (p(), o("strong", {
64
64
  key: 0,
65
- class: p(D("title"))
66
- }, [h(t.$slots, "title", {}, () => [l(g(f.title), 1)])], 2)) : o("", !0),
67
- r[1] ||= l(" " + g(" ") + " ", -1),
68
- h(t.$slots, "default", {}, () => [l(g(f.description), 1)])
65
+ class: f(D("title"))
66
+ }, [m(e.$slots, "title", {}, () => [c(h(d.title), 1)])], 2)) : a("", !0),
67
+ n[1] ||= c(" " + h(" ") + " ", -1),
68
+ m(e.$slots, "default", {}, () => [c(h(d.description), 1)])
69
69
  ], 2),
70
- t.$slots.actions ? (m(), s("span", {
70
+ e.$slots.actions ? (p(), o("span", {
71
71
  key: 1,
72
- class: p(D("actions"))
73
- }, [h(t.$slots, "actions")], 2)) : o("", !0),
74
- f.closable ? (m(), s("button", {
72
+ class: f(D("actions"))
73
+ }, [m(e.$slots, "actions")], 2)) : a("", !0),
74
+ d.closable ? (p(), o("button", {
75
75
  key: 2,
76
76
  type: "button",
77
- "aria-label": f.closeLabel,
78
- class: p(D("close")),
79
- onClick: r[0] ||= (e) => {
80
- S.value = !1, t.$emit("close");
77
+ "aria-label": d.closeLabel,
78
+ class: f(D("close")),
79
+ onClick: n[0] ||= (t) => {
80
+ S.value = !1, e.$emit("close");
81
81
  }
82
- }, [h(t.$slots, "close", {}, () => [u(n, { icon: _(e) }, null, 8, ["icon"])])], 10, x)) : o("", !0)
82
+ }, [m(e.$slots, "close", {}, () => [l(t, { icon: g(y) }, null, 8, ["icon"])])], 10, x)) : a("", !0)
83
83
  ], 2)]),
84
84
  _: 3
85
85
  }, 8, [
86
86
  "as",
87
87
  "aria-label",
88
88
  "class"
89
- ])) : o("", !0);
89
+ ])) : a("", !0);
90
90
  }
91
91
  });
92
92
  //#endregion
@@ -1,11 +1,11 @@
1
- import { ArrowRight01Icon 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 { breadcrumbTheme as r } from "../theme/breadcrumb.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, normalizeClass as p, openBlock as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { breadcrumbTheme as n } from "../theme/breadcrumb.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, normalizeClass as f, openBlock as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
5
+ import { ArrowRight01Icon as b } from "@hugeicons/core-free-icons";
6
6
  import { Primitive as x } from "reka-ui";
7
7
  //#region src/components/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
8
- var S = /*@__PURE__*/ f({
8
+ var S = /*@__PURE__*/ d({
9
9
  __name: "Breadcrumb",
10
10
  props: {
11
11
  items: {},
@@ -17,49 +17,49 @@ var S = /*@__PURE__*/ f({
17
17
  class: {},
18
18
  ui: {}
19
19
  },
20
- setup(f) {
21
- let S = f, C = t(), w = a(() => S.unstyled ?? C.unstyled), T = a(() => S.items ?? []), E = a(() => T.value.length - 1), D = a(() => r());
20
+ setup(d) {
21
+ let S = d, C = e(), w = i(() => S.unstyled ?? C.unstyled), T = i(() => S.items ?? []), E = i(() => T.value.length - 1), D = i(() => n());
22
22
  function O(e) {
23
23
  let t = S.ui?.[e];
24
24
  return w.value ? t : D.value[e]({ class: t });
25
25
  }
26
- return (t, r) => (m(), o(y(x), {
26
+ return (e, n) => (p(), a(v(x), {
27
27
  as: "nav",
28
28
  "aria-label": S.label,
29
- class: p(w.value ? [S.ui?.root, S.class] : D.value.root({ class: [S.ui?.root, S.class] }))
29
+ class: f(w.value ? [S.ui?.root, S.class] : D.value.root({ class: [S.ui?.root, S.class] }))
30
30
  }, {
31
- default: b(() => [l("ol", { class: p(O("list")) }, [(m(!0), c(i, null, h(T.value, (r, i) => (m(), c("li", {
32
- key: i,
33
- class: p(O("item"))
34
- }, [i === E.value ? (m(), c("span", {
31
+ default: y(() => [c("ol", { class: f(O("list")) }, [(p(!0), s(r, null, m(T.value, (n, r) => (p(), s("li", {
32
+ key: r,
33
+ class: f(O("item"))
34
+ }, [r === E.value ? (p(), s("span", {
35
35
  key: 0,
36
36
  "aria-current": "page",
37
- class: p(O("current"))
38
- }, [r.icon ? (m(), o(n, {
37
+ class: f(O("current"))
38
+ }, [n.icon ? (p(), a(t, {
39
39
  key: 0,
40
- icon: r.icon
41
- }, null, 8, ["icon"])) : s("", !0), u(" " + v(r.label), 1)], 2)) : (m(), o(_(r.href ? "a" : "button"), {
40
+ icon: n.icon
41
+ }, null, 8, ["icon"])) : o("", !0), l(" " + _(n.label), 1)], 2)) : (p(), a(g(n.href ? "a" : "button"), {
42
42
  key: 1,
43
- href: r.href,
44
- type: r.href ? void 0 : "button",
45
- class: p(O("link")),
46
- onClick: (e) => r.onSelect?.()
43
+ href: n.href,
44
+ type: n.href ? void 0 : "button",
45
+ class: f(O("link")),
46
+ onClick: (e) => n.onSelect?.()
47
47
  }, {
48
- default: b(() => [r.icon ? (m(), o(n, {
48
+ default: y(() => [n.icon ? (p(), a(t, {
49
49
  key: 0,
50
- icon: r.icon
51
- }, null, 8, ["icon"])) : s("", !0), u(" " + v(r.label), 1)]),
50
+ icon: n.icon
51
+ }, null, 8, ["icon"])) : o("", !0), l(" " + _(n.label), 1)]),
52
52
  _: 2
53
53
  }, 1032, [
54
54
  "href",
55
55
  "type",
56
56
  "class",
57
57
  "onClick"
58
- ])), i === E.value ? s("", !0) : (m(), c("span", {
58
+ ])), r === E.value ? o("", !0) : (p(), s("span", {
59
59
  key: 2,
60
60
  "aria-hidden": "true",
61
- class: p(O("separator"))
62
- }, [g(t.$slots, "separator", {}, () => [d(n, { icon: y(e) }, null, 8, ["icon"])])], 2))], 2))), 128))], 2)]),
61
+ class: f(O("separator"))
62
+ }, [h(e.$slots, "separator", {}, () => [u(t, { icon: v(b) }, null, 8, ["icon"])])], 2))], 2))), 128))], 2)]),
63
63
  _: 3
64
64
  }, 8, ["aria-label", "class"]));
65
65
  }
@@ -1,12 +1,12 @@
1
- import { Loading03Icon 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 { useButtonGroup as r } from "../composables/button-group.js";
5
- import { buttonTheme as i } from "../theme/button.js";
6
- import { computed as a, createBlock as o, createCommentVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { useButtonGroup as n } from "../composables/button-group.js";
4
+ import { buttonTheme as r } from "../theme/button.js";
5
+ import { computed as i, createBlock as a, createCommentVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, unref as d, withCtx as f } from "vue";
6
+ import { Loading03Icon as p } from "@hugeicons/core-free-icons";
7
7
  import { Primitive as m } from "reka-ui";
8
8
  //#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
9
- var h = /*@__PURE__*/ c({
9
+ var h = /*@__PURE__*/ s({
10
10
  __name: "Button",
11
11
  props: {
12
12
  as: { default: "button" },
@@ -24,27 +24,27 @@ var h = /*@__PURE__*/ c({
24
24
  type: { default: "button" },
25
25
  class: {}
26
26
  },
27
- setup(c) {
28
- let h = c, g = t(), _ = a(() => h.unstyled ?? g.unstyled), v = r(), y = a(() => h.size ?? v?.size.value), b = a(() => _.value ? h.class : i({
27
+ setup(s) {
28
+ let h = s, g = e(), _ = i(() => h.unstyled ?? g.unstyled), v = n(), y = i(() => h.size ?? v?.size.value), b = i(() => _.value ? h.class : r({
29
29
  variant: h.variant,
30
30
  size: y.value,
31
31
  block: h.block,
32
32
  square: h.square,
33
33
  class: h.class
34
34
  }));
35
- return (t, r) => (u(), o(f(m), {
35
+ return (e, n) => (l(), a(d(m), {
36
36
  as: h.as,
37
37
  "as-child": h.asChild,
38
38
  type: h.as === "button" ? h.type : void 0,
39
39
  disabled: h.disabled || h.loading || void 0,
40
- class: l(b.value)
40
+ class: c(b.value)
41
41
  }, {
42
- default: p(() => [h.loading ? (u(), o(n, {
42
+ default: f(() => [h.loading ? (l(), a(t, {
43
43
  key: 0,
44
- icon: f(e),
44
+ icon: d(p),
45
45
  "data-icon": "inline-start",
46
46
  class: "animate-spin"
47
- }, null, 8, ["icon"])) : s("", !0), d(t.$slots, "default")]),
47
+ }, null, 8, ["icon"])) : o("", !0), u(e.$slots, "default")]),
48
48
  _: 3
49
49
  }, 8, [
50
50
  "as",
@@ -1,11 +1,12 @@
1
- import { MinusSignIcon 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 { checkboxTheme as i } from "../theme/checkbox.js";
5
- import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps 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 { checkboxTheme as n } from "../theme/checkbox.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, mergeProps as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
5
+ import { MinusSignIcon as v, Tick02Icon as y } from "@hugeicons/core-free-icons";
6
6
  import { CheckboxIndicator as b, CheckboxRoot as x, Label as S, useForwardPropsEmits as C, useId as w } from "reka-ui";
7
7
  //#region src/components/Checkbox.vue?vue&type=script&setup=true&lang.ts
8
- var T = ["id"], E = /*@__PURE__*/ f({
8
+ var T = ["id"], E = /*@__PURE__*/ u({
9
+ inheritAttrs: !1,
9
10
  __name: "Checkbox",
10
11
  props: {
11
12
  label: {},
@@ -30,28 +31,31 @@ var T = ["id"], E = /*@__PURE__*/ f({
30
31
  required: { type: Boolean }
31
32
  },
32
33
  emits: ["update:modelValue"],
33
- setup(f, { emit: E }) {
34
- let D = f, O = E, k = C(a(() => {
34
+ setup(u, { emit: E }) {
35
+ let D = u, O = E, k = C(r(() => {
35
36
  let { label: e, description: t, size: n, id: r, unstyled: i, class: a, ui: o, ...s } = D;
36
37
  return s;
37
- }), O), A = w(), j = a(() => D.id ?? A), M = a(() => !!(D.label || D.description)), N = n(), P = a(() => D.unstyled ?? N.unstyled), F = a(() => i({
38
+ }), O), A = w(), j = r(() => D.id ?? A), M = r(() => !!(D.label || D.description)), N = e(), P = r(() => D.unstyled ?? N.unstyled), F = r(() => n({
38
39
  size: D.size,
39
40
  withText: M.value
40
- })), I = a(() => P.value ? D.ui?.wrapper : F.value.wrapper({ class: D.ui?.wrapper })), L = a(() => P.value ? [D.ui?.root, D.class] : F.value.root({ class: [D.ui?.root, D.class] })), R = a(() => P.value ? D.ui?.indicator : F.value.indicator({ class: D.ui?.indicator })), z = a(() => P.value ? D.ui?.content : F.value.content({ class: D.ui?.content })), B = a(() => P.value ? D.ui?.label : F.value.label({ class: D.ui?.label })), V = a(() => P.value ? D.ui?.description : F.value.description({ class: D.ui?.description }));
41
- return (n, i) => M.value ? (h(), c("div", {
41
+ })), I = r(() => P.value ? D.ui?.wrapper : F.value.wrapper({ class: D.ui?.wrapper })), L = r(() => P.value ? [D.ui?.root, D.class] : F.value.root({ class: [D.ui?.root, D.class] })), R = r(() => P.value ? D.ui?.indicator : F.value.indicator({ class: D.ui?.indicator })), z = r(() => P.value ? D.ui?.content : F.value.content({ class: D.ui?.content })), B = r(() => P.value ? D.ui?.label : F.value.label({ class: D.ui?.label })), V = r(() => P.value ? D.ui?.description : F.value.description({ class: D.ui?.description }));
42
+ return (e, n) => M.value ? (p(), o("div", {
42
43
  key: 0,
43
- class: m(I.value)
44
- }, [d(v(x), p({ id: j.value }, v(k), {
44
+ class: f(I.value)
45
+ }, [l(g(x), d({ id: j.value }, {
46
+ ...g(k),
47
+ ...e.$attrs
48
+ }, {
45
49
  "aria-describedby": D.description ? `${j.value}-description` : void 0,
46
50
  class: L.value
47
51
  }), {
48
- default: y(() => [d(v(b), { class: m(R.value) }, {
49
- default: y(() => [g(n.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (h(), o(r, {
52
+ default: _(() => [l(g(b), { class: f(R.value) }, {
53
+ default: _(() => [m(e.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (p(), i(t, {
50
54
  key: 0,
51
- icon: v(e)
52
- }, null, 8, ["icon"])) : (h(), o(r, {
55
+ icon: g(v)
56
+ }, null, 8, ["icon"])) : (p(), i(t, {
53
57
  key: 1,
54
- icon: v(t)
58
+ icon: g(y)
55
59
  }, null, 8, ["icon"]))])]),
56
60
  _: 3
57
61
  }, 8, ["class"])]),
@@ -60,27 +64,30 @@ var T = ["id"], E = /*@__PURE__*/ f({
60
64
  "id",
61
65
  "aria-describedby",
62
66
  "class"
63
- ]), l("div", { class: m(z.value) }, [d(v(S), {
67
+ ]), s("div", { class: f(z.value) }, [l(g(S), {
64
68
  for: j.value,
65
- class: m(B.value)
69
+ class: f(B.value)
66
70
  }, {
67
- default: y(() => [g(n.$slots, "label", {}, () => [u(_(D.label), 1)])]),
71
+ default: _(() => [m(e.$slots, "label", {}, () => [c(h(D.label), 1)])]),
68
72
  _: 3
69
- }, 8, ["for", "class"]), D.description || n.$slots.description ? (h(), c("p", {
73
+ }, 8, ["for", "class"]), D.description || e.$slots.description ? (p(), o("p", {
70
74
  key: 0,
71
75
  id: `${j.value}-description`,
72
- class: m(V.value)
73
- }, [g(n.$slots, "description", {}, () => [u(_(D.description), 1)])], 10, T)) : s("", !0)], 2)], 2)) : (h(), o(v(x), p({
76
+ class: f(V.value)
77
+ }, [m(e.$slots, "description", {}, () => [c(h(D.description), 1)])], 10, T)) : a("", !0)], 2)], 2)) : (p(), i(g(x), d({
74
78
  key: 1,
75
79
  id: D.id
76
- }, v(k), { class: L.value }), {
77
- default: y(() => [d(v(b), { class: m(R.value) }, {
78
- default: y(() => [g(n.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (h(), o(r, {
80
+ }, {
81
+ ...g(k),
82
+ ...e.$attrs
83
+ }, { class: L.value }), {
84
+ default: _(() => [l(g(b), { class: f(R.value) }, {
85
+ default: _(() => [m(e.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (p(), i(t, {
79
86
  key: 0,
80
- icon: v(e)
81
- }, null, 8, ["icon"])) : (h(), o(r, {
87
+ icon: g(v)
88
+ }, null, 8, ["icon"])) : (p(), i(t, {
82
89
  key: 1,
83
- icon: v(t)
90
+ icon: g(y)
84
91
  }, null, 8, ["icon"]))])]),
85
92
  _: 3
86
93
  }, 8, ["class"])]),