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
|
@@ -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
|
|
@@ -21,6 +21,16 @@ export interface BarChartProps {
|
|
|
21
21
|
* or numerous category names are the case to turn the chart for.
|
|
22
22
|
*/
|
|
23
23
|
orientation?: 'vertical' | 'horizontal';
|
|
24
|
+
/**
|
|
25
|
+
* Stack the series into one bar per category instead of grouping them
|
|
26
|
+
* side by side.
|
|
27
|
+
*
|
|
28
|
+
* Stacking answers "what makes up the total"; grouping answers "how do these
|
|
29
|
+
* compare". Only the bottom segment shares a baseline, so every segment
|
|
30
|
+
* above it is hard to compare across categories — reach for grouped bars
|
|
31
|
+
* when the comparison matters more than the total.
|
|
32
|
+
*/
|
|
33
|
+
stacked?: boolean;
|
|
24
34
|
/** Rendered height in px. Width always fills the container. */
|
|
25
35
|
height?: number;
|
|
26
36
|
/** Target tick count. The axis lands on round numbers, so this is a hint. */
|
|
@@ -29,6 +39,8 @@ export interface BarChartProps {
|
|
|
29
39
|
axis?: boolean;
|
|
30
40
|
/** Drop the legend. Only honoured for a single series — see below. */
|
|
31
41
|
legend?: boolean;
|
|
42
|
+
/** Word for the stacked tooltip's sum — override for non-English apps. */
|
|
43
|
+
totalLabel?: string;
|
|
32
44
|
/** Locale and options for every number shown — ticks and tooltip alike. */
|
|
33
45
|
locale?: string;
|
|
34
46
|
format?: Intl.NumberFormatOptions;
|
|
@@ -84,6 +96,7 @@ declare const __VLS_base: import("vue").DefineComponent<BarChartProps, {}, {}, {
|
|
|
84
96
|
height: number;
|
|
85
97
|
ticks: number;
|
|
86
98
|
axis: boolean;
|
|
99
|
+
totalLabel: string;
|
|
87
100
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
88
101
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
89
102
|
declare const _default: typeof __VLS_export;
|