iryx-ui 0.27.0 → 0.28.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/Input.vue.d.ts +1 -1
- package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +62 -61
- package/dist/components/Textarea.vue.d.ts +1 -1
- package/dist/composables/character-count.d.ts +1 -1
- package/dist/composables/character-count.js +8 -5
- package/dist/composables/sidebar.d.ts +11 -1
- package/dist/composables/sidebar.js +24 -13
- package/dist/index.js +166 -166
- package/dist/nuxt.js +3 -2
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export interface InputProps {
|
|
|
21
21
|
/** Accessible name for the clear button — override for non-English apps. */
|
|
22
22
|
clearLabel?: string;
|
|
23
23
|
/** Hard limit in characters, enforced by the browser. */
|
|
24
|
-
maxlength?: number;
|
|
24
|
+
maxlength?: number | string;
|
|
25
25
|
/**
|
|
26
26
|
* Show a character count in the trailing area — "12/50" with `maxlength`,
|
|
27
27
|
* turning red within the last tenth of the limit.
|
|
@@ -8,12 +8,12 @@ import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d
|
|
|
8
8
|
import { ArrowRight01Icon as k } from "@hugeicons/core-free-icons";
|
|
9
9
|
import { CollapsibleContent as A, CollapsibleRoot as j, CollapsibleTrigger as M, Primitive as N } from "reka-ui";
|
|
10
10
|
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var P = [
|
|
11
|
+
var P = ["data-pinned"], F = [
|
|
12
12
|
"aria-label",
|
|
13
13
|
"disabled",
|
|
14
14
|
"data-active",
|
|
15
15
|
"data-disabled"
|
|
16
|
-
],
|
|
16
|
+
], I = /*@__PURE__*/ g({
|
|
17
17
|
__name: "Sidebar",
|
|
18
18
|
props: /*@__PURE__*/ v({
|
|
19
19
|
items: {},
|
|
@@ -39,17 +39,17 @@ var P = [
|
|
|
39
39
|
}),
|
|
40
40
|
emits: ["update:collapsed"],
|
|
41
41
|
setup(g) {
|
|
42
|
-
let v = g,
|
|
42
|
+
let v = g, I = D(g, "collapsed"), L = _(r, void 0), R = l(() => I.value && L !== "drawer"), z = e(), B = l(() => v.unstyled ?? z.unstyled), V = l(() => i(v.items)), H = l(() => V.value.findIndex((e) => e.pinned)), U = l(() => s({
|
|
43
43
|
side: v.side,
|
|
44
|
-
collapsed:
|
|
45
|
-
inShell:
|
|
44
|
+
collapsed: R.value,
|
|
45
|
+
inShell: L !== void 0
|
|
46
46
|
}));
|
|
47
|
-
function
|
|
47
|
+
function W(e) {
|
|
48
48
|
let t = v.ui?.[e];
|
|
49
|
-
return
|
|
49
|
+
return B.value ? t : U.value[e]({ class: t });
|
|
50
50
|
}
|
|
51
|
-
let
|
|
52
|
-
function
|
|
51
|
+
let G = l(() => v.side === "right" ? "left" : "right"), K = x({}), q = (e, t) => `${e}:${t.label}`, J = (e) => e.href ? "a" : "button", Y = (e) => [...e.label][0], X = (e) => e.badge === void 0 ? e.label : `${e.label} (${e.badge})`;
|
|
52
|
+
function Z(e) {
|
|
53
53
|
return (e.items ?? []).map((e) => ({
|
|
54
54
|
label: e.label,
|
|
55
55
|
icon: e.icon,
|
|
@@ -58,60 +58,61 @@ var P = [
|
|
|
58
58
|
onSelect: e.onSelect
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Q(e, t) {
|
|
62
62
|
if (e.disabled) {
|
|
63
63
|
t.preventDefault();
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
e.onSelect?.();
|
|
67
67
|
}
|
|
68
|
-
let
|
|
68
|
+
let $ = (e) => e.label;
|
|
69
69
|
return (e, r) => (b(), u(E(N), {
|
|
70
70
|
as: "nav",
|
|
71
71
|
"aria-label": v.label,
|
|
72
|
-
"data-collapsed":
|
|
73
|
-
class: y(
|
|
72
|
+
"data-collapsed": R.value ? "" : void 0,
|
|
73
|
+
class: y(B.value ? [v.ui?.root, v.class] : U.value.root({ class: [v.ui?.root, v.class] }))
|
|
74
74
|
}, {
|
|
75
75
|
default: O(() => [
|
|
76
76
|
e.$slots.header ? (b(), f("div", {
|
|
77
77
|
key: 0,
|
|
78
|
-
class: y(
|
|
79
|
-
}, [C(e.$slots, "header", { collapsed:
|
|
80
|
-
p("div", { class: y(
|
|
78
|
+
class: y(W("header"))
|
|
79
|
+
}, [C(e.$slots, "header", { collapsed: R.value })], 2)) : d("", !0),
|
|
80
|
+
p("div", { class: y(W("nav")) }, [C(e.$slots, "default", { collapsed: R.value }, () => [(b(!0), f(c, null, S(V.value, (r, i) => (b(), f("div", {
|
|
81
81
|
key: r.section || i,
|
|
82
|
-
|
|
82
|
+
"data-pinned": r.pinned ? "" : void 0,
|
|
83
|
+
class: y([W("section"), i === H.value && "mt-auto"])
|
|
83
84
|
}, [r.section ? (b(), f("p", {
|
|
84
85
|
key: 0,
|
|
85
|
-
class: y(
|
|
86
|
-
}, T(r.section), 3)) : d("", !0), (b(!0), f(c, null, S(r.items, (r) => (b(), f(c, { key: r.label }, [E(n)(r) &&
|
|
86
|
+
class: y(W("sectionLabel"))
|
|
87
|
+
}, T(r.section), 3)) : d("", !0), (b(!0), f(c, null, S(r.items, (r) => (b(), f(c, { key: r.label }, [E(n)(r) && R.value ? (b(), u(a, {
|
|
87
88
|
key: 0,
|
|
88
|
-
text:
|
|
89
|
-
side:
|
|
90
|
-
unstyled:
|
|
89
|
+
text: X(r),
|
|
90
|
+
side: G.value,
|
|
91
|
+
unstyled: B.value
|
|
91
92
|
}, {
|
|
92
93
|
trigger: O(() => [h(o, {
|
|
93
|
-
items:
|
|
94
|
-
side:
|
|
95
|
-
unstyled:
|
|
94
|
+
items: Z(r),
|
|
95
|
+
side: G.value,
|
|
96
|
+
unstyled: B.value
|
|
96
97
|
}, {
|
|
97
98
|
trigger: O(() => [p("button", {
|
|
98
99
|
type: "button",
|
|
99
|
-
"aria-label":
|
|
100
|
+
"aria-label": $(r),
|
|
100
101
|
disabled: r.disabled,
|
|
101
102
|
"data-active": r.active ? "" : void 0,
|
|
102
103
|
"data-disabled": r.disabled ? "" : void 0,
|
|
103
|
-
class: y(
|
|
104
|
+
class: y(W("link"))
|
|
104
105
|
}, [C(e.$slots, "link", {
|
|
105
106
|
link: r,
|
|
106
|
-
collapsed:
|
|
107
|
+
collapsed: R.value
|
|
107
108
|
}, () => [r.icon ? (b(), u(t, {
|
|
108
109
|
key: 0,
|
|
109
110
|
icon: r.icon
|
|
110
111
|
}, null, 8, ["icon"])) : (b(), f("span", {
|
|
111
112
|
key: 1,
|
|
112
113
|
"aria-hidden": "true",
|
|
113
|
-
class: y(
|
|
114
|
-
}, T(
|
|
114
|
+
class: y(W("linkInitial"))
|
|
115
|
+
}, T(Y(r)), 3))])], 10, F)]),
|
|
115
116
|
header: O(() => [m(T(r.label), 1)]),
|
|
116
117
|
_: 2
|
|
117
118
|
}, 1032, [
|
|
@@ -126,25 +127,25 @@ var P = [
|
|
|
126
127
|
"unstyled"
|
|
127
128
|
])) : E(n)(r) ? (b(), u(E(j), {
|
|
128
129
|
key: 1,
|
|
129
|
-
open:
|
|
130
|
+
open: K.value[q(i, r)] ?? r.defaultOpen ?? !1,
|
|
130
131
|
disabled: r.disabled,
|
|
131
|
-
"onUpdate:open": (e) =>
|
|
132
|
+
"onUpdate:open": (e) => K.value[q(i, r)] = e
|
|
132
133
|
}, {
|
|
133
134
|
default: O(() => [h(E(M), {
|
|
134
|
-
"aria-label":
|
|
135
|
+
"aria-label": $(r),
|
|
135
136
|
"data-active": r.active ? "" : void 0,
|
|
136
137
|
"data-disabled": r.disabled ? "" : void 0,
|
|
137
|
-
class: y(
|
|
138
|
+
class: y(W("link"))
|
|
138
139
|
}, {
|
|
139
140
|
default: O(() => [
|
|
140
141
|
r.icon ? (b(), u(t, {
|
|
141
142
|
key: 0,
|
|
142
143
|
icon: r.icon
|
|
143
144
|
}, null, 8, ["icon"])) : d("", !0),
|
|
144
|
-
p("span", { class: y(
|
|
145
|
+
p("span", { class: y(W("linkLabel")) }, T(r.label), 3),
|
|
145
146
|
h(t, {
|
|
146
147
|
icon: E(k),
|
|
147
|
-
class: y(
|
|
148
|
+
class: y(W("groupIcon"))
|
|
148
149
|
}, null, 8, ["icon", "class"])
|
|
149
150
|
]),
|
|
150
151
|
_: 2
|
|
@@ -153,28 +154,28 @@ var P = [
|
|
|
153
154
|
"data-active",
|
|
154
155
|
"data-disabled",
|
|
155
156
|
"class"
|
|
156
|
-
]), h(E(A), { class: y(
|
|
157
|
-
default: O(() => [p("div", { class: y(
|
|
157
|
+
]), h(E(A), { class: y(W("groupContent")) }, {
|
|
158
|
+
default: O(() => [p("div", { class: y(W("groupInner")) }, [(b(!0), f(c, null, S(r.items, (e) => (b(), u(w(J(e)), {
|
|
158
159
|
key: e.label,
|
|
159
160
|
href: e.href,
|
|
160
161
|
type: e.href ? void 0 : "button",
|
|
161
|
-
"aria-label":
|
|
162
|
+
"aria-label": $(e),
|
|
162
163
|
"aria-current": e.active ? "page" : void 0,
|
|
163
164
|
"aria-disabled": e.disabled || void 0,
|
|
164
165
|
"data-active": e.active ? "" : void 0,
|
|
165
166
|
"data-disabled": e.disabled ? "" : void 0,
|
|
166
|
-
class: y(
|
|
167
|
-
onClick: (t) =>
|
|
167
|
+
class: y(W("link")),
|
|
168
|
+
onClick: (t) => Q(e, t)
|
|
168
169
|
}, {
|
|
169
170
|
default: O(() => [
|
|
170
171
|
e.icon ? (b(), u(t, {
|
|
171
172
|
key: 0,
|
|
172
173
|
icon: e.icon
|
|
173
174
|
}, null, 8, ["icon"])) : d("", !0),
|
|
174
|
-
p("span", { class: y(
|
|
175
|
+
p("span", { class: y(W("linkLabel")) }, T(e.label), 3),
|
|
175
176
|
e.badge === void 0 ? d("", !0) : (b(), f("span", {
|
|
176
177
|
key: 1,
|
|
177
|
-
class: y(
|
|
178
|
+
class: y(W("linkBadge"))
|
|
178
179
|
}, T(e.badge), 3))
|
|
179
180
|
]),
|
|
180
181
|
_: 2
|
|
@@ -198,38 +199,38 @@ var P = [
|
|
|
198
199
|
"onUpdate:open"
|
|
199
200
|
])) : (b(), u(a, {
|
|
200
201
|
key: 2,
|
|
201
|
-
text:
|
|
202
|
-
side:
|
|
203
|
-
disabled: !
|
|
204
|
-
unstyled:
|
|
202
|
+
text: X(r),
|
|
203
|
+
side: G.value,
|
|
204
|
+
disabled: !R.value,
|
|
205
|
+
unstyled: B.value
|
|
205
206
|
}, {
|
|
206
|
-
trigger: O(() => [(b(), u(w(
|
|
207
|
+
trigger: O(() => [(b(), u(w(J(r)), {
|
|
207
208
|
href: r.href,
|
|
208
209
|
type: r.href ? void 0 : "button",
|
|
209
|
-
"aria-label":
|
|
210
|
+
"aria-label": $(r),
|
|
210
211
|
"aria-current": r.active ? "page" : void 0,
|
|
211
212
|
"aria-disabled": r.disabled || void 0,
|
|
212
213
|
"data-active": r.active ? "" : void 0,
|
|
213
214
|
"data-disabled": r.disabled ? "" : void 0,
|
|
214
|
-
class: y(
|
|
215
|
-
onClick: (e) =>
|
|
215
|
+
class: y(W("link")),
|
|
216
|
+
onClick: (e) => Q(r, e)
|
|
216
217
|
}, {
|
|
217
218
|
default: O(() => [C(e.$slots, "link", {
|
|
218
219
|
link: r,
|
|
219
|
-
collapsed:
|
|
220
|
+
collapsed: R.value
|
|
220
221
|
}, () => [
|
|
221
222
|
r.icon ? (b(), u(t, {
|
|
222
223
|
key: 0,
|
|
223
224
|
icon: r.icon
|
|
224
|
-
}, null, 8, ["icon"])) :
|
|
225
|
+
}, null, 8, ["icon"])) : R.value ? (b(), f("span", {
|
|
225
226
|
key: 1,
|
|
226
227
|
"aria-hidden": "true",
|
|
227
|
-
class: y(
|
|
228
|
-
}, T(
|
|
229
|
-
p("span", { class: y(
|
|
228
|
+
class: y(W("linkInitial"))
|
|
229
|
+
}, T(Y(r)), 3)) : d("", !0),
|
|
230
|
+
p("span", { class: y(W("linkLabel")) }, T(r.label), 3),
|
|
230
231
|
r.badge === void 0 ? d("", !0) : (b(), f("span", {
|
|
231
232
|
key: 2,
|
|
232
|
-
class: y(
|
|
233
|
+
class: y(W("linkBadge"))
|
|
233
234
|
}, T(r.badge), 3))
|
|
234
235
|
])]),
|
|
235
236
|
_: 2
|
|
@@ -250,11 +251,11 @@ var P = [
|
|
|
250
251
|
"side",
|
|
251
252
|
"disabled",
|
|
252
253
|
"unstyled"
|
|
253
|
-
]))], 64))), 128))],
|
|
254
|
+
]))], 64))), 128))], 10, P))), 128))])], 2),
|
|
254
255
|
e.$slots.footer ? (b(), f("div", {
|
|
255
256
|
key: 1,
|
|
256
|
-
class: y(
|
|
257
|
-
}, [C(e.$slots, "footer", { collapsed:
|
|
257
|
+
class: y(W("footer"))
|
|
258
|
+
}, [C(e.$slots, "footer", { collapsed: R.value })], 2)) : d("", !0)
|
|
258
259
|
]),
|
|
259
260
|
_: 3
|
|
260
261
|
}, 8, [
|
|
@@ -265,4 +266,4 @@ var P = [
|
|
|
265
266
|
}
|
|
266
267
|
});
|
|
267
268
|
//#endregion
|
|
268
|
-
export {
|
|
269
|
+
export { I as default };
|
|
@@ -20,7 +20,7 @@ export interface TextareaProps {
|
|
|
20
20
|
/** Mark the field as invalid — styles the border and ring red. */
|
|
21
21
|
invalid?: boolean;
|
|
22
22
|
/** Hard limit in characters, enforced by the browser. */
|
|
23
|
-
maxlength?: number;
|
|
23
|
+
maxlength?: number | string;
|
|
24
24
|
/**
|
|
25
25
|
* Show a character count under the field — "120/500" with `maxlength`,
|
|
26
26
|
* turning red within the last tenth of the limit.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function defaultCountLabel(remaining: number): string;
|
|
2
|
-
export declare function useCharacterCount(value: () => string | number | null | undefined,
|
|
2
|
+
export declare function useCharacterCount(value: () => string | number | null | undefined, maxRaw: () => number | string | undefined): {
|
|
3
3
|
remaining: import("vue").ComputedRef<number | undefined>;
|
|
4
4
|
nearLimit: import("vue").ComputedRef<boolean>;
|
|
5
5
|
text: import("vue").ComputedRef<string>;
|
|
@@ -4,14 +4,17 @@ function t(e) {
|
|
|
4
4
|
return `${e} ${e === 1 ? "character" : "characters"} left`;
|
|
5
5
|
}
|
|
6
6
|
function n(t, n) {
|
|
7
|
-
let r =
|
|
7
|
+
let r = () => {
|
|
8
8
|
let e = n();
|
|
9
|
-
return e == null ? void 0 : e
|
|
9
|
+
return e == null || e === "" ? void 0 : Number(e);
|
|
10
|
+
}, i = e(() => String(t() ?? "").length), a = e(() => {
|
|
11
|
+
let e = r();
|
|
12
|
+
return e == null ? void 0 : e - i.value;
|
|
10
13
|
});
|
|
11
14
|
return {
|
|
12
|
-
remaining:
|
|
13
|
-
nearLimit: e(() =>
|
|
14
|
-
text: e(() =>
|
|
15
|
+
remaining: a,
|
|
16
|
+
nearLimit: e(() => a.value != null && a.value <= Math.ceil(r() * .1)),
|
|
17
|
+
text: e(() => r() == null ? `${i.value}` : `${i.value}/${r()}`)
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InjectionKey } from 'vue';
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
2
|
import type { IconLike } from './icon';
|
|
3
3
|
export interface SidebarLink {
|
|
4
4
|
label: string;
|
|
@@ -28,6 +28,8 @@ export interface SidebarLink {
|
|
|
28
28
|
export interface SidebarSection {
|
|
29
29
|
section: string;
|
|
30
30
|
items: SidebarLink[];
|
|
31
|
+
/** Push to the bottom of the column, above the footer. Pass `section: ''` for no heading. */
|
|
32
|
+
pinned?: boolean;
|
|
31
33
|
}
|
|
32
34
|
export type SidebarItems = (SidebarLink | SidebarSection)[];
|
|
33
35
|
/** Provided by `IAppShell` around each copy of its sidebar slot. */
|
|
@@ -36,3 +38,11 @@ export declare function isSidebarSection(item: SidebarLink | SidebarSection): it
|
|
|
36
38
|
/** Normalise to sections, so the template has a single path to render. */
|
|
37
39
|
export declare function toSidebarSections(items: SidebarItems | undefined): SidebarSection[];
|
|
38
40
|
export declare function isSidebarGroup(link: SidebarLink): boolean;
|
|
41
|
+
export declare const sidebarCollapsedCookie = "iryx-ui-sidebar-collapsed";
|
|
42
|
+
/**
|
|
43
|
+
* Provide a ref read from the request cookie so the server renders the sidebar
|
|
44
|
+
* the way the user left it. The Nuxt module does this for you.
|
|
45
|
+
*/
|
|
46
|
+
export declare const sidebarCollapsedKey: InjectionKey<Ref<boolean>>;
|
|
47
|
+
/** Collapsed state remembered in a cookie. Bind it with `v-model:collapsed`. */
|
|
48
|
+
export declare function useSidebarCollapsed(): Ref<boolean>;
|
|
@@ -1,24 +1,35 @@
|
|
|
1
|
+
import { inject as e, ref as t, watch as n } from "vue";
|
|
1
2
|
//#region src/composables/sidebar.ts
|
|
2
|
-
var
|
|
3
|
-
function
|
|
3
|
+
var r = Symbol.for("iryx-ui:sidebar-placement");
|
|
4
|
+
function i(e) {
|
|
4
5
|
return typeof e.section == "string";
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
-
let
|
|
8
|
-
for (let
|
|
9
|
-
if (
|
|
10
|
-
|
|
7
|
+
function a(e) {
|
|
8
|
+
let t = [], n;
|
|
9
|
+
for (let r of e ?? []) {
|
|
10
|
+
if (i(r)) {
|
|
11
|
+
t.push(r), n = void 0;
|
|
11
12
|
continue;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
n || (n = [], t.push({
|
|
14
15
|
section: "",
|
|
15
|
-
items:
|
|
16
|
-
})),
|
|
16
|
+
items: n
|
|
17
|
+
})), n.push(r);
|
|
17
18
|
}
|
|
18
|
-
return
|
|
19
|
+
return [...t.filter((e) => !e.pinned), ...t.filter((e) => e.pinned)];
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function o(e) {
|
|
21
22
|
return Array.isArray(e.items) && e.items.length > 0;
|
|
22
23
|
}
|
|
24
|
+
var s = "iryx-ui-sidebar-collapsed", c = Symbol.for("iryx-ui:sidebar-collapsed");
|
|
25
|
+
function l() {
|
|
26
|
+
let r = e(c, null);
|
|
27
|
+
if (r) return r;
|
|
28
|
+
if (typeof document > "u") return t(!1);
|
|
29
|
+
let i = t(document.cookie.match(RegExp(`(?:^|; )${s}=([^;]*)`))?.[1] === "true");
|
|
30
|
+
return n(i, (e) => {
|
|
31
|
+
document.cookie = `${s}=${e}; path=/; max-age=31536000; samesite=lax`;
|
|
32
|
+
}), i;
|
|
33
|
+
}
|
|
23
34
|
//#endregion
|
|
24
|
-
export {
|
|
35
|
+
export { o as isSidebarGroup, i as isSidebarSection, s as sidebarCollapsedCookie, c as sidebarCollapsedKey, r as sidebarPlacementKey, a as toSidebarSections, l as useSidebarCollapsed };
|
package/dist/index.js
CHANGED
|
@@ -10,169 +10,169 @@ import { initAppearance as u, useAppearance as d } from "./composables/appearanc
|
|
|
10
10
|
import { applyTheme as f, clearTheme as p, themes as m } from "./theme/presets.js";
|
|
11
11
|
import h from "./components/App.js";
|
|
12
12
|
import { useElementSize as g } from "./composables/element-size.js";
|
|
13
|
-
import { isSidebarGroup as _, isSidebarSection as v,
|
|
14
|
-
import { appShellTheme as
|
|
15
|
-
import { drawerTheme as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { authProvidersTheme as
|
|
20
|
-
import { buttonGroupContextKey as
|
|
21
|
-
import { buttonTheme as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { avatarGroupTheme as
|
|
25
|
-
import
|
|
26
|
-
import { tooltipTheme as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { badgeTheme as
|
|
30
|
-
import
|
|
31
|
-
import { bannerTheme as
|
|
32
|
-
import
|
|
33
|
-
import { extent as
|
|
34
|
-
import { AXIS_GAP as
|
|
35
|
-
import { REVEAL_DURATION as
|
|
36
|
-
import { barChartTheme as
|
|
37
|
-
import { chartLegendTheme as
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import { breadcrumbTheme as
|
|
41
|
-
import { dropdownMenuTheme as
|
|
42
|
-
import { isSeparator as
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import { buttonGroupTheme as
|
|
46
|
-
import
|
|
47
|
-
import { CalendarDate as
|
|
48
|
-
import { calendarTheme as
|
|
49
|
-
import
|
|
50
|
-
import { cardTheme as
|
|
51
|
-
import
|
|
52
|
-
import { scrollFadeMask as
|
|
53
|
-
import
|
|
54
|
-
import { formContextKey as
|
|
55
|
-
import { checkboxTheme as
|
|
56
|
-
import
|
|
57
|
-
import { codeTheme as
|
|
58
|
-
import
|
|
59
|
-
import { collapsibleTheme as
|
|
60
|
-
import
|
|
61
|
-
import { fieldBase as
|
|
62
|
-
import { colorPickerTheme as
|
|
63
|
-
import
|
|
64
|
-
import { comboboxTheme as
|
|
65
|
-
import
|
|
66
|
-
import { isApplePlatform as
|
|
67
|
-
import { commandHaystack as
|
|
68
|
-
import { commandPaletteTheme as
|
|
69
|
-
import { kbdTheme as
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import { resolveConfirm as
|
|
73
|
-
import { dialogTheme as
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import { confirmPopoverTheme as
|
|
77
|
-
import { popoverTheme as
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import { containerTheme as
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import { dateFieldTheme as
|
|
84
|
-
import
|
|
85
|
-
import { datePickerTheme as
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import { descriptionListTheme as
|
|
89
|
-
import
|
|
90
|
-
import { donutChartTheme as
|
|
91
|
-
import
|
|
92
|
-
import { editableTheme as
|
|
93
|
-
import
|
|
94
|
-
import { emptyStateTheme as
|
|
95
|
-
import
|
|
96
|
-
import { fileUploadTheme as
|
|
97
|
-
import { progressTheme as
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import { labelTheme as
|
|
102
|
-
import
|
|
103
|
-
import
|
|
104
|
-
import { hoverCardTheme as
|
|
105
|
-
import
|
|
106
|
-
import
|
|
107
|
-
import { lineChartTheme as
|
|
108
|
-
import
|
|
109
|
-
import { menubarTheme as
|
|
110
|
-
import
|
|
111
|
-
import { isNavigationGroup as
|
|
112
|
-
import { navigationMenuTheme as
|
|
113
|
-
import
|
|
114
|
-
import { addDecimals as
|
|
115
|
-
import { numberInputTheme as
|
|
116
|
-
import
|
|
117
|
-
import { pageHeaderTheme as
|
|
118
|
-
import
|
|
119
|
-
import { paginationTheme as
|
|
120
|
-
import
|
|
121
|
-
import { passwordInputTheme as
|
|
122
|
-
import
|
|
123
|
-
import { pinInputTheme as
|
|
124
|
-
import
|
|
125
|
-
import { radioGroupTheme as
|
|
126
|
-
import
|
|
127
|
-
import
|
|
128
|
-
import { scrollAreaTheme as
|
|
129
|
-
import
|
|
130
|
-
import { scrollFadeTheme as
|
|
131
|
-
import
|
|
132
|
-
import { selectTheme as
|
|
133
|
-
import
|
|
134
|
-
import { separatorTheme as
|
|
135
|
-
import
|
|
136
|
-
import { sidebarTheme as
|
|
137
|
-
import
|
|
138
|
-
import { hasInk as
|
|
139
|
-
import { signaturePadTheme as
|
|
140
|
-
import
|
|
141
|
-
import { skeletonTheme as
|
|
142
|
-
import
|
|
143
|
-
import { sliderTheme as
|
|
144
|
-
import
|
|
145
|
-
import { sparklineTheme as
|
|
146
|
-
import
|
|
147
|
-
import { splitterTheme as
|
|
148
|
-
import
|
|
149
|
-
import { statTheme as
|
|
150
|
-
import
|
|
151
|
-
import { stepperTheme as
|
|
152
|
-
import
|
|
153
|
-
import { switchTheme as
|
|
154
|
-
import
|
|
155
|
-
import { getRowValue as
|
|
156
|
-
import { tableTheme as
|
|
157
|
-
import
|
|
158
|
-
import { tabsTheme as
|
|
159
|
-
import
|
|
160
|
-
import { tagsInputTheme as
|
|
161
|
-
import
|
|
162
|
-
import
|
|
163
|
-
import { timeFieldTheme as
|
|
164
|
-
import
|
|
165
|
-
import { timelineTheme as
|
|
166
|
-
import
|
|
167
|
-
import { useToast as
|
|
168
|
-
import { toastTheme as
|
|
169
|
-
import
|
|
170
|
-
import { toggleGroupTheme as
|
|
171
|
-
import
|
|
172
|
-
import
|
|
173
|
-
import { toolbarTheme as
|
|
174
|
-
import
|
|
175
|
-
import { treeTheme as
|
|
176
|
-
import
|
|
177
|
-
import { IryxUi as
|
|
178
|
-
export {
|
|
13
|
+
import { isSidebarGroup as _, isSidebarSection as v, sidebarCollapsedCookie as y, sidebarCollapsedKey as b, sidebarPlacementKey as x, toSidebarSections as S, useSidebarCollapsed as C } from "./composables/sidebar.js";
|
|
14
|
+
import { appShellTheme as w } from "./theme/app-shell.js";
|
|
15
|
+
import { drawerTheme as T } from "./theme/drawer.js";
|
|
16
|
+
import E from "./components/Drawer.js";
|
|
17
|
+
import D from "./components/AppShell.js";
|
|
18
|
+
import O from "./components/AspectRatio.js";
|
|
19
|
+
import { authProvidersTheme as k } from "./theme/auth-providers.js";
|
|
20
|
+
import { buttonGroupContextKey as A, useButtonGroup as j } from "./composables/button-group.js";
|
|
21
|
+
import { buttonTheme as M } from "./theme/button.js";
|
|
22
|
+
import N from "./components/Button.js";
|
|
23
|
+
import P from "./components/AuthProviders.js";
|
|
24
|
+
import { avatarGroupTheme as F, avatarTheme as I } from "./theme/avatar.js";
|
|
25
|
+
import L from "./components/Avatar.js";
|
|
26
|
+
import { tooltipTheme as R } from "./theme/tooltip.js";
|
|
27
|
+
import z from "./components/Tooltip.js";
|
|
28
|
+
import B from "./components/AvatarGroup.js";
|
|
29
|
+
import { badgeTheme as V } from "./theme/badge.js";
|
|
30
|
+
import H from "./components/Badge.js";
|
|
31
|
+
import { bannerTheme as U } from "./theme/banner.js";
|
|
32
|
+
import W from "./components/Banner.js";
|
|
33
|
+
import { extent as G, finiteValues as K, linearScale as q, niceTicks as J } from "./composables/scale.js";
|
|
34
|
+
import { AXIS_GAP as Y, CATEGORY_HEIGHT as X, CHAR_WIDTH as Z, SERIES_SLOTS as Q, TOP_PAD as $, cartesianLayout as ee, clampTooltip as te, seriesColor as ne, slotOf as re, tooltipHalfWidth as ie, warnOnSlotOverflow as ae } from "./composables/cartesian.js";
|
|
35
|
+
import { REVEAL_DURATION as oe, useChartAnimation as se, useChartProgress as ce, useChartReveal as le } from "./composables/chart-reveal.js";
|
|
36
|
+
import { barChartTheme as ue } from "./theme/bar-chart.js";
|
|
37
|
+
import { chartLegendTheme as de } from "./theme/chart-legend.js";
|
|
38
|
+
import fe from "./components/ChartLegend.js";
|
|
39
|
+
import pe from "./components/BarChart.js";
|
|
40
|
+
import { breadcrumbTheme as me } from "./theme/breadcrumb.js";
|
|
41
|
+
import { dropdownMenuTheme as he } from "./theme/dropdown-menu.js";
|
|
42
|
+
import { isSeparator as ge, isSubmenu as _e } from "./composables/dropdown-menu.js";
|
|
43
|
+
import ve from "./components/DropdownMenu.js";
|
|
44
|
+
import ye from "./components/Breadcrumb.js";
|
|
45
|
+
import { buttonGroupTheme as be } from "./theme/button-group.js";
|
|
46
|
+
import xe from "./components/ButtonGroup.js";
|
|
47
|
+
import { CalendarDate as Se, Time as Ce, commonDateRangePresets as we, formatIsoDate as Te, isoToday as Ee, toCalendarDate as De, toIsoDate as Oe, toIsoTime as ke, toTime as Ae } from "./composables/date.js";
|
|
48
|
+
import { calendarTheme as je } from "./theme/calendar.js";
|
|
49
|
+
import Me from "./components/Calendar.js";
|
|
50
|
+
import { cardTheme as Ne } from "./theme/card.js";
|
|
51
|
+
import Pe from "./components/Card.js";
|
|
52
|
+
import { scrollFadeMask as Fe, useScrollEdges as Ie } from "./composables/scroll-fade.js";
|
|
53
|
+
import Le from "./components/Carousel.js";
|
|
54
|
+
import { formContextKey as Re, formFieldContextKey as ze, getByPath as Be, isStandardSchema as Ve, issuePath as He, useForm as Ue, useFormField as We } from "./composables/form.js";
|
|
55
|
+
import { checkboxTheme as Ge } from "./theme/checkbox.js";
|
|
56
|
+
import Ke from "./components/Checkbox.js";
|
|
57
|
+
import { codeTheme as qe } from "./theme/code.js";
|
|
58
|
+
import Je from "./components/Code.js";
|
|
59
|
+
import { collapsibleTheme as Ye } from "./theme/collapsible.js";
|
|
60
|
+
import Xe from "./components/Collapsible.js";
|
|
61
|
+
import { fieldBase as Ze, inputTheme as Qe, textareaCountTheme as $e, textareaTheme as et } from "./theme/input.js";
|
|
62
|
+
import { colorPickerTheme as tt } from "./theme/color-picker.js";
|
|
63
|
+
import nt from "./components/ColorPicker.js";
|
|
64
|
+
import { comboboxTheme as rt } from "./theme/combobox.js";
|
|
65
|
+
import it from "./components/Combobox.js";
|
|
66
|
+
import { isApplePlatform as at, parseHotkey as ot, useApplePlatform as st } from "./composables/kbd.js";
|
|
67
|
+
import { commandHaystack as ct, commandId as lt, isCommandGroup as ut, matchesHotkey as dt, pushRecent as ft, toCommandGroups as pt } from "./composables/command-palette.js";
|
|
68
|
+
import { commandPaletteTheme as mt } from "./theme/command-palette.js";
|
|
69
|
+
import { kbdTheme as ht } from "./theme/kbd.js";
|
|
70
|
+
import gt from "./components/Kbd.js";
|
|
71
|
+
import _t from "./components/CommandPalette.js";
|
|
72
|
+
import { resolveConfirm as vt, useConfirm as yt, useConfirmState as bt } from "./composables/confirm.js";
|
|
73
|
+
import { dialogTheme as xt } from "./theme/dialog.js";
|
|
74
|
+
import St from "./components/Dialog.js";
|
|
75
|
+
import Ct from "./components/ConfirmDialog.js";
|
|
76
|
+
import { confirmPopoverTheme as wt } from "./theme/confirm-popover.js";
|
|
77
|
+
import { popoverTheme as Tt } from "./theme/popover.js";
|
|
78
|
+
import Et from "./components/Popover.js";
|
|
79
|
+
import Dt from "./components/ConfirmPopover.js";
|
|
80
|
+
import { containerTheme as Ot } from "./theme/container.js";
|
|
81
|
+
import kt from "./components/Container.js";
|
|
82
|
+
import At from "./components/ContextMenu.js";
|
|
83
|
+
import { dateFieldTheme as jt } from "./theme/date-field.js";
|
|
84
|
+
import Mt from "./components/DateField.js";
|
|
85
|
+
import { datePickerTheme as Nt } from "./theme/date-picker.js";
|
|
86
|
+
import Pt from "./components/DatePicker.js";
|
|
87
|
+
import Ft from "./components/DateRangePicker.js";
|
|
88
|
+
import { descriptionListTheme as It } from "./theme/description-list.js";
|
|
89
|
+
import Lt from "./components/DescriptionList.js";
|
|
90
|
+
import { donutChartTheme as Rt } from "./theme/donut-chart.js";
|
|
91
|
+
import zt from "./components/DonutChart.js";
|
|
92
|
+
import { editableTheme as Bt } from "./theme/editable.js";
|
|
93
|
+
import Vt from "./components/Editable.js";
|
|
94
|
+
import { emptyStateTheme as Ht } from "./theme/empty-state.js";
|
|
95
|
+
import Ut from "./components/EmptyState.js";
|
|
96
|
+
import { fileUploadTheme as Wt } from "./theme/file-upload.js";
|
|
97
|
+
import { progressTheme as Gt } from "./theme/progress.js";
|
|
98
|
+
import Kt from "./components/Progress.js";
|
|
99
|
+
import qt from "./components/FileUpload.js";
|
|
100
|
+
import Jt from "./components/Form.js";
|
|
101
|
+
import { labelTheme as Yt } from "./theme/label.js";
|
|
102
|
+
import Xt from "./components/Label.js";
|
|
103
|
+
import Zt from "./components/FormField.js";
|
|
104
|
+
import { hoverCardTheme as Qt } from "./theme/hover-card.js";
|
|
105
|
+
import $t from "./components/HoverCard.js";
|
|
106
|
+
import en from "./components/Input.js";
|
|
107
|
+
import { lineChartTheme as tn } from "./theme/line-chart.js";
|
|
108
|
+
import nn from "./components/LineChart.js";
|
|
109
|
+
import { menubarTheme as rn } from "./theme/menubar.js";
|
|
110
|
+
import an from "./components/Menubar.js";
|
|
111
|
+
import { isNavigationGroup as on } from "./composables/navigation-menu.js";
|
|
112
|
+
import { navigationMenuTheme as sn } from "./theme/navigation-menu.js";
|
|
113
|
+
import cn from "./components/NavigationMenu.js";
|
|
114
|
+
import { addDecimals as ln, clampDecimal as un, compareDecimals as dn, formatDecimal as fn, formatForLocale as pn, isDecimal as mn, localeSeparators as hn, parseDecimal as gn, parseFromLocale as _n, roundDecimal as vn, toEditable as yn } from "./composables/decimal.js";
|
|
115
|
+
import { numberInputTheme as bn } from "./theme/number-input.js";
|
|
116
|
+
import xn from "./components/NumberInput.js";
|
|
117
|
+
import { pageHeaderTheme as Sn } from "./theme/page-header.js";
|
|
118
|
+
import Cn from "./components/PageHeader.js";
|
|
119
|
+
import { paginationTheme as wn } from "./theme/pagination.js";
|
|
120
|
+
import Tn from "./components/Pagination.js";
|
|
121
|
+
import { passwordInputTheme as En } from "./theme/password-input.js";
|
|
122
|
+
import Dn from "./components/PasswordInput.js";
|
|
123
|
+
import { pinInputTheme as On } from "./theme/pin-input.js";
|
|
124
|
+
import kn from "./components/PinInput.js";
|
|
125
|
+
import { radioGroupTheme as An } from "./theme/radio-group.js";
|
|
126
|
+
import jn from "./components/RadioGroup.js";
|
|
127
|
+
import Mn from "./components/Rating.js";
|
|
128
|
+
import { scrollAreaTheme as Nn } from "./theme/scroll-area.js";
|
|
129
|
+
import Pn from "./components/ScrollArea.js";
|
|
130
|
+
import { scrollFadeTheme as Fn } from "./theme/scroll-fade.js";
|
|
131
|
+
import In from "./components/ScrollFade.js";
|
|
132
|
+
import { selectTheme as Ln } from "./theme/select.js";
|
|
133
|
+
import Rn from "./components/Select.js";
|
|
134
|
+
import { separatorTheme as zn } from "./theme/separator.js";
|
|
135
|
+
import Bn from "./components/Separator.js";
|
|
136
|
+
import { sidebarTheme as Vn } from "./theme/sidebar.js";
|
|
137
|
+
import Hn from "./components/Sidebar.js";
|
|
138
|
+
import { hasInk as Un, strokeWidth as Wn } from "./composables/signature.js";
|
|
139
|
+
import { signaturePadTheme as Gn } from "./theme/signature-pad.js";
|
|
140
|
+
import Kn from "./components/SignaturePad.js";
|
|
141
|
+
import { skeletonTheme as qn } from "./theme/skeleton.js";
|
|
142
|
+
import Jn from "./components/Skeleton.js";
|
|
143
|
+
import { sliderTheme as Yn } from "./theme/slider.js";
|
|
144
|
+
import Xn from "./components/Slider.js";
|
|
145
|
+
import { sparklineTheme as Zn } from "./theme/sparkline.js";
|
|
146
|
+
import Qn from "./components/Sparkline.js";
|
|
147
|
+
import { splitterTheme as $n } from "./theme/splitter.js";
|
|
148
|
+
import er from "./components/Splitter.js";
|
|
149
|
+
import { statTheme as tr } from "./theme/stat.js";
|
|
150
|
+
import nr from "./components/Stat.js";
|
|
151
|
+
import { stepperTheme as rr } from "./theme/stepper.js";
|
|
152
|
+
import ir from "./components/Stepper.js";
|
|
153
|
+
import { switchTheme as ar } from "./theme/switch.js";
|
|
154
|
+
import or from "./components/Switch.js";
|
|
155
|
+
import { getRowValue as sr, useDataTable as cr } from "./composables/data-table.js";
|
|
156
|
+
import { tableTheme as lr } from "./theme/table.js";
|
|
157
|
+
import ur from "./components/Table.js";
|
|
158
|
+
import { tabsTheme as dr } from "./theme/tabs.js";
|
|
159
|
+
import fr from "./components/Tabs.js";
|
|
160
|
+
import { tagsInputTheme as pr } from "./theme/tags-input.js";
|
|
161
|
+
import mr from "./components/TagsInput.js";
|
|
162
|
+
import hr from "./components/Textarea.js";
|
|
163
|
+
import { timeFieldTheme as gr } from "./theme/time-field.js";
|
|
164
|
+
import _r from "./components/TimeField.js";
|
|
165
|
+
import { timelineTheme as vr } from "./theme/timeline.js";
|
|
166
|
+
import yr from "./components/Timeline.js";
|
|
167
|
+
import { useToast as br, useToastState as xr } from "./composables/toast.js";
|
|
168
|
+
import { toastTheme as Sr } from "./theme/toast.js";
|
|
169
|
+
import Cr from "./components/Toaster.js";
|
|
170
|
+
import { toggleGroupTheme as wr, toggleTheme as Tr } from "./theme/toggle.js";
|
|
171
|
+
import Er from "./components/Toggle.js";
|
|
172
|
+
import Dr from "./components/ToggleGroup.js";
|
|
173
|
+
import { toolbarTheme as Or } from "./theme/toolbar.js";
|
|
174
|
+
import kr from "./components/Toolbar.js";
|
|
175
|
+
import { treeTheme as Ar } from "./theme/tree.js";
|
|
176
|
+
import jr from "./components/Tree.js";
|
|
177
|
+
import { IryxUi as Mr, createIryxUi as Nr } from "./plugin.js";
|
|
178
|
+
export { Y as AXIS_GAP, s as Accordion, l as Alert, h as App, D as AppShell, O as AspectRatio, P as AuthProviders, L as Avatar, B as AvatarGroup, H as Badge, W as Banner, pe as BarChart, ye as Breadcrumb, N as Button, xe as ButtonGroup, X as CATEGORY_HEIGHT, Z as CHAR_WIDTH, Me as Calendar, Se as CalendarDate, Pe as Card, Le as Carousel, fe as ChartLegend, Ke as Checkbox, Je as Code, Xe as Collapsible, nt as ColorPicker, it as Combobox, _t as CommandPalette, Ct as ConfirmDialog, Dt as ConfirmPopover, kt as Container, At as ContextMenu, Mt as DateField, Pt as DatePicker, Ft as DateRangePicker, Lt as DescriptionList, St as Dialog, zt as DonutChart, E as Drawer, ve as DropdownMenu, Vt as Editable, Ut as EmptyState, qt as FileUpload, Jt as Form, Zt as FormField, $t as HoverCard, o as Icon, en as Input, Mr as IryxUi, gt as Kbd, Xt as Label, nn as LineChart, an as Menubar, cn as NavigationMenu, xn as NumberInput, Cn as PageHeader, Tn as Pagination, Dn as PasswordInput, kn as PinInput, Et as Popover, Kt as Progress, oe as REVEAL_DURATION, jn as RadioGroup, Mn as Rating, Q as SERIES_SLOTS, Pn as ScrollArea, In as ScrollFade, Rn as Select, Bn as Separator, Hn as Sidebar, Kn as SignaturePad, Jn as Skeleton, Xn as Slider, Qn as Sparkline, er as Splitter, nr as Stat, ir as Stepper, or as Switch, $ as TOP_PAD, ur as Table, fr as Tabs, mr as TagsInput, hr as Textarea, Ce as Time, _r as TimeField, yr as Timeline, Cr as Toaster, Er as Toggle, Dr as ToggleGroup, kr as Toolbar, z as Tooltip, jr as Tree, i as accordionTheme, ln as addDecimals, c as alertTheme, w as appShellTheme, f as applyTheme, k as authProvidersTheme, F as avatarGroupTheme, I as avatarTheme, V as badgeTheme, U as bannerTheme, ue as barChartTheme, me as breadcrumbTheme, A as buttonGroupContextKey, be as buttonGroupTheme, M as buttonTheme, je as calendarTheme, Ne as cardTheme, ee as cartesianLayout, de as chartLegendTheme, Ge as checkboxTheme, un as clampDecimal, te as clampTooltip, p as clearTheme, qe as codeTheme, Ye as collapsibleTheme, tt as colorPickerTheme, rt as comboboxTheme, ct as commandHaystack, lt as commandId, mt as commandPaletteTheme, we as commonDateRangePresets, dn as compareDecimals, e as componentNames, wt as confirmPopoverTheme, Ot as containerTheme, Nr as createIryxUi, jt as dateFieldTheme, Nt as datePickerTheme, t as defaultConfig, It as descriptionListTheme, xt as dialogTheme, Rt as donutChartTheme, T as drawerTheme, he as dropdownMenuTheme, Bt as editableTheme, Ht as emptyStateTheme, G as extent, Ze as fieldBase, Wt as fileUploadTheme, K as finiteValues, Re as formContextKey, ze as formFieldContextKey, fn as formatDecimal, pn as formatForLocale, Te as formatIsoDate, Be as getByPath, sr as getRowValue, Un as hasInk, Qt as hoverCardTheme, u as initAppearance, Qe as inputTheme, n as iryxUiConfigKey, at as isApplePlatform, ut as isCommandGroup, mn as isDecimal, a as isIconArray, on as isNavigationGroup, ge as isSeparator, _ as isSidebarGroup, v as isSidebarSection, Ve as isStandardSchema, _e as isSubmenu, Ee as isoToday, He as issuePath, ht as kbdTheme, Yt as labelTheme, tn as lineChartTheme, q as linearScale, hn as localeSeparators, dt as matchesHotkey, rn as menubarTheme, sn as navigationMenuTheme, J as niceTicks, bn as numberInputTheme, Sn as pageHeaderTheme, wn as paginationTheme, gn as parseDecimal, _n as parseFromLocale, ot as parseHotkey, En as passwordInputTheme, On as pinInputTheme, Tt as popoverTheme, Gt as progressTheme, ft as pushRecent, An as radioGroupTheme, vt as resolveConfirm, vn as roundDecimal, Nn as scrollAreaTheme, Fe as scrollFadeMask, Fn as scrollFadeTheme, Ln as selectTheme, zn as separatorTheme, ne as seriesColor, y as sidebarCollapsedCookie, b as sidebarCollapsedKey, x as sidebarPlacementKey, Vn as sidebarTheme, Gn as signaturePadTheme, qn as skeletonTheme, Yn as sliderTheme, re as slotOf, Zn as sparklineTheme, $n as splitterTheme, tr as statTheme, rr as stepperTheme, Wn as strokeWidth, ar as switchTheme, lr as tableTheme, dr as tabsTheme, pr as tagsInputTheme, $e as textareaCountTheme, et as textareaTheme, m as themes, gr as timeFieldTheme, vr as timelineTheme, De as toCalendarDate, pt as toCommandGroups, yn as toEditable, Oe as toIsoDate, ke as toIsoTime, S as toSidebarSections, Ae as toTime, Sr as toastTheme, wr as toggleGroupTheme, Tr as toggleTheme, Or as toolbarTheme, ie as tooltipHalfWidth, R as tooltipTheme, Ar as treeTheme, d as useAppearance, st as useApplePlatform, j as useButtonGroup, se as useChartAnimation, ce as useChartProgress, le as useChartReveal, yt as useConfirm, bt as useConfirmState, cr as useDataTable, g as useElementSize, Ue as useForm, We as useFormField, r as useIryxUiConfig, Ie as useScrollEdges, C as useSidebarCollapsed, br as useToast, xr as useToastState, ae as warnOnSlotOverflow };
|
package/dist/nuxt.js
CHANGED
|
@@ -26,11 +26,12 @@ var a = i({
|
|
|
26
26
|
r({
|
|
27
27
|
filename: "iryx-ui.config.mjs",
|
|
28
28
|
getContents: () => `
|
|
29
|
-
import { applyTheme, initAppearance, iryxUiConfigKey } from 'iryx-ui'
|
|
30
|
-
import { defineNuxtPlugin } from '#app'
|
|
29
|
+
import { applyTheme, initAppearance, iryxUiConfigKey, sidebarCollapsedCookie, sidebarCollapsedKey } from 'iryx-ui'
|
|
30
|
+
import { defineNuxtPlugin, useCookie } from '#app'
|
|
31
31
|
|
|
32
32
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
33
33
|
nuxtApp.vueApp.provide(iryxUiConfigKey, ${JSON.stringify({ unstyled: i.unstyled })})
|
|
34
|
+
nuxtApp.vueApp.provide(sidebarCollapsedKey, useCookie(sidebarCollapsedCookie, { default: () => false, maxAge: 31536000, sameSite: 'lax' }))
|
|
34
35
|
if (import.meta.client) {
|
|
35
36
|
${i.theme ? `applyTheme(${JSON.stringify(i.theme)})` : ""}
|
|
36
37
|
${i.appearance ? `initAppearance(${JSON.stringify(i.appearance)})` : ""}
|