iryx-ui 0.28.0 → 0.29.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/dist/components/AppShell.vue.d.ts +13 -7
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +58 -48
- package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/DonutChart.vue.d.ts +9 -0
- package/dist/components/DonutChart.vue_vue_type_script_setup_true_lang.js +73 -65
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +192 -177
- package/dist/components/Select.vue.d.ts +2 -0
- package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +6 -4
- package/dist/components/Sidebar.vue.d.ts +3 -0
- package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/Stat.vue.d.ts +12 -2
- package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +16 -3
- package/dist/components/ToggleGroup.vue.d.ts +1 -1
- package/dist/components/ToggleGroup.vue_vue_type_script_setup_true_lang.js +35 -29
- package/dist/theme/app-shell.d.ts +3 -0
- package/dist/theme/app-shell.js +2 -1
- package/dist/theme/stat.d.ts +3 -0
- package/dist/theme/stat.js +2 -1
- package/package.json +2 -2
- package/theme.css +2 -2
|
@@ -13,6 +13,8 @@ export interface StatProps {
|
|
|
13
13
|
trend?: 'up' | 'down' | 'neutral';
|
|
14
14
|
/** Secondary text under the value. */
|
|
15
15
|
hint?: string;
|
|
16
|
+
/** Show the delta beside the value, or beside the hint. */
|
|
17
|
+
deltaPlacement?: 'value' | 'hint';
|
|
16
18
|
size?: 'sm' | 'md' | 'lg';
|
|
17
19
|
/**
|
|
18
20
|
* Format the delta. Defaults to a signed percentage; override for other
|
|
@@ -30,11 +32,14 @@ export interface StatProps {
|
|
|
30
32
|
delta?: string;
|
|
31
33
|
hint?: string;
|
|
32
34
|
row?: string;
|
|
35
|
+
hintRow?: string;
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
declare var __VLS_8: {}, __VLS_10: {}, __VLS_12: {
|
|
36
39
|
trend: "up" | "down" | "neutral";
|
|
37
|
-
}, __VLS_19: {
|
|
40
|
+
}, __VLS_19: {
|
|
41
|
+
trend: "up" | "down" | "neutral";
|
|
42
|
+
}, __VLS_26: {}, __VLS_28: {};
|
|
38
43
|
type __VLS_Slots = {} & {
|
|
39
44
|
label?: (props: typeof __VLS_8) => any;
|
|
40
45
|
} & {
|
|
@@ -42,11 +47,16 @@ type __VLS_Slots = {} & {
|
|
|
42
47
|
} & {
|
|
43
48
|
delta?: (props: typeof __VLS_12) => any;
|
|
44
49
|
} & {
|
|
45
|
-
|
|
50
|
+
delta?: (props: typeof __VLS_19) => any;
|
|
51
|
+
} & {
|
|
52
|
+
hint?: (props: typeof __VLS_26) => any;
|
|
53
|
+
} & {
|
|
54
|
+
hint?: (props: typeof __VLS_28) => any;
|
|
46
55
|
};
|
|
47
56
|
declare const __VLS_base: import("vue").DefineComponent<StatProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StatProps> & Readonly<{}>, {
|
|
48
57
|
unstyled: boolean;
|
|
49
58
|
as: string;
|
|
59
|
+
deltaPlacement: "value" | "hint";
|
|
50
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
61
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
62
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,6 +14,7 @@ var x = /*@__PURE__*/ u({
|
|
|
14
14
|
delta: {},
|
|
15
15
|
trend: {},
|
|
16
16
|
hint: {},
|
|
17
|
+
deltaPlacement: { default: "value" },
|
|
17
18
|
size: {},
|
|
18
19
|
formatDelta: {},
|
|
19
20
|
unstyled: {
|
|
@@ -38,7 +39,7 @@ var x = /*@__PURE__*/ u({
|
|
|
38
39
|
}), E = e(), D = r(() => x.unstyled ?? E.unstyled), O = r(() => n({
|
|
39
40
|
size: x.size,
|
|
40
41
|
trend: C.value
|
|
41
|
-
})), k = r(() => D.value ? [x.ui?.root, x.class] : O.value.root({ class: [x.ui?.root, x.class] })), A = r(() => D.value ? x.ui?.label : O.value.label({ class: x.ui?.label })), j = r(() => D.value ? x.ui?.value : O.value.value({ class: x.ui?.value })), M = r(() => D.value ? x.ui?.delta : O.value.delta({ class: x.ui?.delta })), N = r(() => D.value ? x.ui?.hint : O.value.hint({ class: x.ui?.hint })), P = r(() => D.value ? x.ui?.row : O.value.row({ class: x.ui?.row }));
|
|
42
|
+
})), k = r(() => D.value ? [x.ui?.root, x.class] : O.value.root({ class: [x.ui?.root, x.class] })), A = r(() => D.value ? x.ui?.label : O.value.label({ class: x.ui?.label })), j = r(() => D.value ? x.ui?.value : O.value.value({ class: x.ui?.value })), M = r(() => D.value ? x.ui?.delta : O.value.delta({ class: x.ui?.delta })), N = r(() => D.value ? x.ui?.hint : O.value.hint({ class: x.ui?.hint })), P = r(() => D.value ? x.ui?.row : O.value.row({ class: x.ui?.row })), F = r(() => D.value ? x.ui?.hintRow : O.value.hintRow({ class: x.ui?.hintRow })), I = r(() => T.value !== void 0);
|
|
42
43
|
return (e, n) => (f(), i(h(b), {
|
|
43
44
|
as: x.as,
|
|
44
45
|
class: d(k.value)
|
|
@@ -48,15 +49,27 @@ var x = /*@__PURE__*/ u({
|
|
|
48
49
|
key: 0,
|
|
49
50
|
class: d(A.value)
|
|
50
51
|
}, [p(e.$slots, "label", {}, () => [c(m(x.label), 1)])], 2)) : a("", !0),
|
|
51
|
-
s("span", { class: d(P.value) }, [s("span", { class: d(j.value) }, [p(e.$slots, "default", {}, () => [c(m(x.value), 1)])], 2),
|
|
52
|
+
s("span", { class: d(P.value) }, [s("span", { class: d(j.value) }, [p(e.$slots, "default", {}, () => [c(m(x.value), 1)])], 2), x.deltaPlacement === "value" && (I.value || e.$slots.delta) ? (f(), o("span", {
|
|
52
53
|
key: 0,
|
|
53
54
|
class: d(M.value)
|
|
54
55
|
}, [p(e.$slots, "delta", { trend: C.value }, () => [l(t, {
|
|
55
56
|
icon: w.value,
|
|
56
57
|
"data-icon": "inline-start"
|
|
57
58
|
}, null, 8, ["icon"]), c(" " + m(T.value), 1)])], 2)) : a("", !0)], 2),
|
|
58
|
-
x.
|
|
59
|
+
x.deltaPlacement === "hint" ? (f(), o("span", {
|
|
59
60
|
key: 1,
|
|
61
|
+
class: d(F.value)
|
|
62
|
+
}, [I.value || e.$slots.delta ? (f(), o("span", {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: d(M.value)
|
|
65
|
+
}, [p(e.$slots, "delta", { trend: C.value }, () => [l(t, {
|
|
66
|
+
icon: w.value,
|
|
67
|
+
"data-icon": "inline-start"
|
|
68
|
+
}, null, 8, ["icon"]), c(" " + m(T.value), 1)])], 2)) : a("", !0), x.hint || e.$slots.hint ? (f(), o("span", {
|
|
69
|
+
key: 1,
|
|
70
|
+
class: d(N.value)
|
|
71
|
+
}, [p(e.$slots, "hint", {}, () => [c(m(x.hint), 1)])], 2)) : a("", !0)], 2)) : x.hint || e.$slots.hint ? (f(), o("span", {
|
|
72
|
+
key: 2,
|
|
60
73
|
class: d(N.value)
|
|
61
74
|
}, [p(e.$slots, "hint", {}, () => [c(m(x.hint), 1)])], 2)) : a("", !0)
|
|
62
75
|
]),
|
|
@@ -17,7 +17,7 @@ export interface ToggleGroupProps {
|
|
|
17
17
|
items?: (ToggleGroupItemOption | string)[];
|
|
18
18
|
/**
|
|
19
19
|
* `single` behaves like a segmented control — one item on at a time, and
|
|
20
|
-
* the model is that item's value. `multiple` lets any number be on, and the
|
|
20
|
+
* the model is that item's value. Once one is on, clicking it again keeps it on. `multiple` lets any number be on, and the
|
|
21
21
|
* model is an array.
|
|
22
22
|
*/
|
|
23
23
|
type?: 'single' | 'multiple';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useIryxUiConfig as e } from "../config.js";
|
|
2
2
|
import t from "./Icon.js";
|
|
3
3
|
import { toggleGroupTheme as n, toggleTheme as r } from "../theme/toggle.js";
|
|
4
|
-
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, defineComponent as l, normalizeClass as u, openBlock as d,
|
|
5
|
-
import { ToggleGroupItem as
|
|
4
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, defineComponent as l, normalizeClass as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, watch as _, withCtx as v } from "vue";
|
|
5
|
+
import { ToggleGroupItem as y, ToggleGroupRoot as b } from "reka-ui";
|
|
6
6
|
//#region src/components/ToggleGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var x = { key: 1 }, S = /*@__PURE__*/ l({
|
|
8
8
|
__name: "ToggleGroup",
|
|
9
9
|
props: {
|
|
10
10
|
items: {},
|
|
@@ -30,37 +30,43 @@ var y = { key: 1 }, b = /*@__PURE__*/ l({
|
|
|
30
30
|
ui: {}
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:modelValue"],
|
|
33
|
-
setup(l, { emit:
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
setup(l, { emit: S }) {
|
|
34
|
+
let C = l, w = S, T = f(C.modelValue);
|
|
35
|
+
_(() => C.modelValue, (e) => T.value = e);
|
|
36
|
+
function E(e) {
|
|
37
|
+
let t = e;
|
|
38
|
+
C.type === "single" && !t || (T.value = t, w("update:modelValue", t));
|
|
39
|
+
}
|
|
40
|
+
let D = a(() => (C.items ?? []).map((e) => typeof e == "string" ? { label: e } : e)), O = (e) => e.value ?? e.label, k = e(), A = a(() => C.unstyled ?? k.unstyled), j = a(() => n({
|
|
41
|
+
variant: C.variant,
|
|
42
|
+
orientation: C.orientation,
|
|
43
|
+
block: C.block
|
|
44
|
+
})), M = a(() => A.value ? [C.ui?.root, C.class] : j.value.root({ class: [C.ui?.root, C.class] })), N = a(() => A.value ? C.ui?.item : r({
|
|
45
|
+
size: C.size,
|
|
46
|
+
square: C.iconOnly,
|
|
47
|
+
class: j.value.item({ class: C.ui?.item })
|
|
42
48
|
}));
|
|
43
|
-
return (e, n) => (d(), o(
|
|
44
|
-
type:
|
|
45
|
-
"model-value":
|
|
46
|
-
disabled:
|
|
47
|
-
orientation:
|
|
48
|
-
loop:
|
|
49
|
-
class: u(
|
|
50
|
-
"onUpdate:modelValue":
|
|
49
|
+
return (e, n) => (d(), o(g(b), {
|
|
50
|
+
type: C.type,
|
|
51
|
+
"model-value": T.value ?? (C.type === "multiple" ? [] : ""),
|
|
52
|
+
disabled: C.disabled,
|
|
53
|
+
orientation: C.orientation,
|
|
54
|
+
loop: C.loop,
|
|
55
|
+
class: u(M.value),
|
|
56
|
+
"onUpdate:modelValue": E
|
|
51
57
|
}, {
|
|
52
|
-
default:
|
|
53
|
-
key:
|
|
54
|
-
value:
|
|
58
|
+
default: v(() => [(d(!0), c(i, null, p(D.value, (n) => (d(), o(g(y), {
|
|
59
|
+
key: O(n),
|
|
60
|
+
value: O(n),
|
|
55
61
|
disabled: n.disabled,
|
|
56
|
-
"aria-label": n.ariaLabel ?? (
|
|
57
|
-
class: u(
|
|
62
|
+
"aria-label": n.ariaLabel ?? (C.iconOnly ? n.label : void 0),
|
|
63
|
+
class: u(N.value)
|
|
58
64
|
}, {
|
|
59
|
-
default:
|
|
65
|
+
default: v(() => [m(e.$slots, "item", { item: n }, () => [n.icon ? (d(), o(t, {
|
|
60
66
|
key: 0,
|
|
61
67
|
icon: n.icon,
|
|
62
|
-
"data-icon":
|
|
63
|
-
}, null, 8, ["icon", "data-icon"])) : s("", !0),
|
|
68
|
+
"data-icon": C.iconOnly ? void 0 : "inline-start"
|
|
69
|
+
}, null, 8, ["icon", "data-icon"])) : s("", !0), C.iconOnly ? s("", !0) : (d(), c("span", x, h(n.label), 1))])]),
|
|
64
70
|
_: 2
|
|
65
71
|
}, 1032, [
|
|
66
72
|
"value",
|
|
@@ -80,4 +86,4 @@ var y = { key: 1 }, b = /*@__PURE__*/ l({
|
|
|
80
86
|
}
|
|
81
87
|
});
|
|
82
88
|
//#endregion
|
|
83
|
-
export {
|
|
89
|
+
export { S as default };
|
|
@@ -33,6 +33,7 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
35
35
|
root: string;
|
|
36
|
+
topbar: string;
|
|
36
37
|
body: string;
|
|
37
38
|
sidebar: string;
|
|
38
39
|
panel: string;
|
|
@@ -79,6 +80,7 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
79
80
|
};
|
|
80
81
|
}, {
|
|
81
82
|
root: string;
|
|
83
|
+
topbar: string;
|
|
82
84
|
body: string;
|
|
83
85
|
sidebar: string;
|
|
84
86
|
panel: string;
|
|
@@ -125,6 +127,7 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
125
127
|
};
|
|
126
128
|
}, {
|
|
127
129
|
root: string;
|
|
130
|
+
topbar: string;
|
|
128
131
|
body: string;
|
|
129
132
|
sidebar: string;
|
|
130
133
|
panel: string;
|
package/dist/theme/app-shell.js
CHANGED
|
@@ -3,6 +3,7 @@ import { tv as e } from "tailwind-variants";
|
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: {
|
|
5
5
|
root: "flex w-full flex-col bg-canvas text-foreground",
|
|
6
|
+
topbar: "shrink-0",
|
|
6
7
|
body: "flex min-h-0 w-full flex-1",
|
|
7
8
|
sidebar: "shrink-0",
|
|
8
9
|
panel: "flex min-w-0 flex-1 flex-col bg-background md:m-2 md:rounded-xl md:border md:border-border md:shadow-xs",
|
|
@@ -20,7 +21,7 @@ var t = e({
|
|
|
20
21
|
main: {
|
|
21
22
|
root: "h-svh overflow-hidden",
|
|
22
23
|
panel: "min-h-0 overflow-hidden",
|
|
23
|
-
main: "min-h-0 overflow-y-auto"
|
|
24
|
+
main: "relative min-h-0 overflow-y-auto"
|
|
24
25
|
},
|
|
25
26
|
page: {
|
|
26
27
|
root: "min-h-svh",
|
package/dist/theme/stat.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
28
28
|
delta: string;
|
|
29
29
|
hint: string;
|
|
30
30
|
row: string;
|
|
31
|
+
hintRow: string;
|
|
31
32
|
}, undefined, {
|
|
32
33
|
size: {
|
|
33
34
|
sm: {
|
|
@@ -58,6 +59,7 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
58
59
|
delta: string;
|
|
59
60
|
hint: string;
|
|
60
61
|
row: string;
|
|
62
|
+
hintRow: string;
|
|
61
63
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
62
64
|
size: {
|
|
63
65
|
sm: {
|
|
@@ -88,5 +90,6 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
88
90
|
delta: string;
|
|
89
91
|
hint: string;
|
|
90
92
|
row: string;
|
|
93
|
+
hintRow: string;
|
|
91
94
|
}>>;
|
|
92
95
|
export type StatSlots = keyof ReturnType<typeof statTheme>;
|
package/dist/theme/stat.js
CHANGED
|
@@ -7,7 +7,8 @@ var t = e({
|
|
|
7
7
|
value: "font-semibold tracking-tight text-foreground tabular-nums",
|
|
8
8
|
delta: "inline-flex shrink-0 items-center gap-0.5 text-xs font-medium tabular-nums [&_svg]:size-3.5",
|
|
9
9
|
hint: "text-xs text-muted-foreground",
|
|
10
|
-
row: "flex flex-wrap items-baseline gap-x-2 gap-y-1"
|
|
10
|
+
row: "flex flex-wrap items-baseline gap-x-2 gap-y-1",
|
|
11
|
+
hintRow: "flex flex-wrap items-center gap-x-1.5 gap-y-1"
|
|
11
12
|
},
|
|
12
13
|
variants: {
|
|
13
14
|
size: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iryx-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.29.0",
|
|
5
5
|
"description": "A Vue 3 component library built on Reka UI and Tailwind CSS v4.",
|
|
6
6
|
"author": "therok1",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@hugeicons/vue": "^1.0.7",
|
|
60
60
|
"@internationalized/date": "^3.12.3",
|
|
61
61
|
"@nuxt/kit": "^4.4.8",
|
|
62
|
-
"reka-ui": "~2.
|
|
62
|
+
"reka-ui": "~2.11.0",
|
|
63
63
|
"tailwind-merge": "^3.6.0",
|
|
64
64
|
"tailwind-variants": "^3.3.1"
|
|
65
65
|
},
|
package/theme.css
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
--iryx-accent-foreground: oklch(0.205 0 0);
|
|
51
51
|
--iryx-muted: oklch(0.97 0 0);
|
|
52
52
|
--iryx-muted-foreground: oklch(0.556 0 0);
|
|
53
|
-
--iryx-border: oklch(0.
|
|
53
|
+
--iryx-border: oklch(0.94 0 0);
|
|
54
54
|
/*
|
|
55
55
|
* Fill for controls that read as recessed — the fields and the outline
|
|
56
56
|
* button. Its own token rather than `--iryx-muted`, since how raised a
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
--iryx-accent-foreground: oklch(0.985 0 0);
|
|
130
130
|
--iryx-muted: oklch(0.269 0 0);
|
|
131
131
|
--iryx-muted-foreground: oklch(0.708 0 0);
|
|
132
|
-
--iryx-border: oklch(1 0 0 /
|
|
132
|
+
--iryx-border: oklch(1 0 0 / 7%);
|
|
133
133
|
/* Lifted just off the background — `--iryx-muted` reads as a panel here. */
|
|
134
134
|
--iryx-input: oklch(0.205 0 0);
|
|
135
135
|
/* Brand primary — kept as a violet gradient. */
|