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.
- package/README.md +578 -498
- 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/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_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
|
@@ -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];
|
package/dist/component-names.js
CHANGED
|
@@ -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 {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import s from "
|
|
5
|
-
import {
|
|
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__*/
|
|
8
|
+
var T = ["aria-label"], E = /*@__PURE__*/ u({
|
|
9
9
|
__name: "Alert",
|
|
10
|
-
props: /*@__PURE__*/
|
|
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__*/
|
|
35
|
-
setup(
|
|
36
|
-
let
|
|
37
|
-
info:
|
|
38
|
-
success:
|
|
39
|
-
warning:
|
|
40
|
-
danger:
|
|
41
|
-
}, O =
|
|
42
|
-
if (
|
|
43
|
-
}), k =
|
|
44
|
-
variant:
|
|
45
|
-
withTitle: !!
|
|
46
|
-
})), N =
|
|
47
|
-
return (e, t) => E.value ? (
|
|
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:
|
|
49
|
+
as: d.as,
|
|
50
50
|
role: k.value,
|
|
51
|
-
class:
|
|
51
|
+
class: f(N.value)
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
O.value || e.$slots.icon ? (
|
|
53
|
+
default: v(() => [
|
|
54
|
+
O.value || e.$slots.icon ? (p(), o("div", {
|
|
55
55
|
key: 0,
|
|
56
|
-
class:
|
|
57
|
-
}, [
|
|
58
|
-
|
|
59
|
-
|
|
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:
|
|
62
|
-
}, [
|
|
63
|
-
|
|
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:
|
|
66
|
-
}, [
|
|
67
|
-
e.$slots.actions ? (
|
|
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:
|
|
70
|
-
}, [
|
|
69
|
+
class: f(R.value)
|
|
70
|
+
}, [m(e.$slots, "actions")], 2)) : a("", !0)
|
|
71
71
|
], 2),
|
|
72
|
-
|
|
72
|
+
d.closable ? (p(), o("button", {
|
|
73
73
|
key: 1,
|
|
74
74
|
type: "button",
|
|
75
|
-
"aria-label":
|
|
76
|
-
class:
|
|
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
|
-
}, [
|
|
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
|
-
])) :
|
|
87
|
+
])) : a("", !0);
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
//#endregion
|
|
@@ -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 { 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__*/
|
|
8
|
+
var x = ["aria-label"], S = /*@__PURE__*/ u({
|
|
9
9
|
__name: "Banner",
|
|
10
|
-
props: /*@__PURE__*/
|
|
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__*/
|
|
39
|
-
setup(
|
|
40
|
-
let
|
|
41
|
-
variant:
|
|
42
|
-
position:
|
|
43
|
-
contained:
|
|
44
|
-
align:
|
|
45
|
-
})), E =
|
|
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 =
|
|
47
|
+
let t = d.ui?.[e];
|
|
48
48
|
return w.value ? t : T.value[e]({ class: t });
|
|
49
49
|
}
|
|
50
|
-
return (
|
|
50
|
+
return (e, n) => S.value ? (p(), i(g(b), {
|
|
51
51
|
key: 0,
|
|
52
|
-
as:
|
|
52
|
+
as: d.as,
|
|
53
53
|
role: "region",
|
|
54
|
-
"aria-label":
|
|
55
|
-
class:
|
|
54
|
+
"aria-label": d.label,
|
|
55
|
+
class: f(E.value)
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
|
|
57
|
+
default: v(() => [s("div", { class: f(D("container")) }, [
|
|
58
|
+
d.icon || e.$slots.icon ? (p(), o("span", {
|
|
59
59
|
key: 0,
|
|
60
|
-
class:
|
|
61
|
-
}, [
|
|
62
|
-
|
|
63
|
-
|
|
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:
|
|
66
|
-
}, [
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
70
|
+
e.$slots.actions ? (p(), o("span", {
|
|
71
71
|
key: 1,
|
|
72
|
-
class:
|
|
73
|
-
}, [
|
|
74
|
-
|
|
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":
|
|
78
|
-
class:
|
|
79
|
-
onClick:
|
|
80
|
-
S.value = !1,
|
|
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
|
-
}, [
|
|
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
|
-
])) :
|
|
89
|
+
])) : a("", !0);
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { 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__*/
|
|
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(
|
|
21
|
-
let S =
|
|
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 (
|
|
26
|
+
return (e, n) => (p(), a(v(x), {
|
|
27
27
|
as: "nav",
|
|
28
28
|
"aria-label": S.label,
|
|
29
|
-
class:
|
|
29
|
+
class: f(w.value ? [S.ui?.root, S.class] : D.value.root({ class: [S.ui?.root, S.class] }))
|
|
30
30
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
key:
|
|
33
|
-
class:
|
|
34
|
-
}, [
|
|
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:
|
|
38
|
-
}, [
|
|
37
|
+
class: f(O("current"))
|
|
38
|
+
}, [n.icon ? (p(), a(t, {
|
|
39
39
|
key: 0,
|
|
40
|
-
icon:
|
|
41
|
-
}, null, 8, ["icon"])) :
|
|
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:
|
|
44
|
-
type:
|
|
45
|
-
class:
|
|
46
|
-
onClick: (e) =>
|
|
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:
|
|
48
|
+
default: y(() => [n.icon ? (p(), a(t, {
|
|
49
49
|
key: 0,
|
|
50
|
-
icon:
|
|
51
|
-
}, null, 8, ["icon"])) :
|
|
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
|
-
])),
|
|
58
|
+
])), r === E.value ? o("", !0) : (p(), s("span", {
|
|
59
59
|
key: 2,
|
|
60
60
|
"aria-hidden": "true",
|
|
61
|
-
class:
|
|
62
|
-
}, [
|
|
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 {
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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__*/
|
|
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(
|
|
28
|
-
let h =
|
|
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 (
|
|
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:
|
|
40
|
+
class: c(b.value)
|
|
41
41
|
}, {
|
|
42
|
-
default:
|
|
42
|
+
default: f(() => [h.loading ? (l(), a(t, {
|
|
43
43
|
key: 0,
|
|
44
|
-
icon:
|
|
44
|
+
icon: d(p),
|
|
45
45
|
"data-icon": "inline-start",
|
|
46
46
|
class: "animate-spin"
|
|
47
|
-
}, null, 8, ["icon"])) :
|
|
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 {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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__*/
|
|
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(
|
|
34
|
-
let D =
|
|
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 =
|
|
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 =
|
|
41
|
-
return (
|
|
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:
|
|
44
|
-
}, [
|
|
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:
|
|
49
|
-
default:
|
|
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
|
|
52
|
-
}, null, 8, ["icon"])) : (
|
|
55
|
+
icon: g(v)
|
|
56
|
+
}, null, 8, ["icon"])) : (p(), i(t, {
|
|
53
57
|
key: 1,
|
|
54
|
-
icon:
|
|
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
|
-
]),
|
|
67
|
+
]), s("div", { class: f(z.value) }, [l(g(S), {
|
|
64
68
|
for: j.value,
|
|
65
|
-
class:
|
|
69
|
+
class: f(B.value)
|
|
66
70
|
}, {
|
|
67
|
-
default:
|
|
71
|
+
default: _(() => [m(e.$slots, "label", {}, () => [c(h(D.label), 1)])]),
|
|
68
72
|
_: 3
|
|
69
|
-
}, 8, ["for", "class"]), D.description ||
|
|
73
|
+
}, 8, ["for", "class"]), D.description || e.$slots.description ? (p(), o("p", {
|
|
70
74
|
key: 0,
|
|
71
75
|
id: `${j.value}-description`,
|
|
72
|
-
class:
|
|
73
|
-
}, [
|
|
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
|
-
},
|
|
77
|
-
|
|
78
|
-
|
|
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
|
|
81
|
-
}, null, 8, ["icon"])) : (
|
|
87
|
+
icon: g(v)
|
|
88
|
+
}, null, 8, ["icon"])) : (p(), i(t, {
|
|
82
89
|
key: 1,
|
|
83
|
-
icon:
|
|
90
|
+
icon: g(y)
|
|
84
91
|
}, null, 8, ["icon"]))])]),
|
|
85
92
|
_: 3
|
|
86
93
|
}, 8, ["class"])]),
|