@base-framework/ui 1.0.247 → 1.0.248
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Div as n, H5 as G, P as b, I as m, Li as V, Span as
|
|
2
|
-
import { Atom as c, Component as v, Html as P, Dom as oe, base as ne, Data as $, Builder as Y, Jot as C, DateTime as A } from "@base-framework/base";
|
|
3
|
-
import { P as k, b as
|
|
1
|
+
import { Div as n, H5 as G, P as b, I as m, Li as V, Span as a, Ul as U, Button as f, OnState as x, Label as q, Form as K, H2 as D, Header as I, Footer as L, A as H, H3 as Q, Checkbox as X, Input as w, Img as Z, Nav as ee, UseParent as R, Time as te, Dialog as se } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as c, Component as v, Html as P, Dom as oe, base as ne, Data as $, Builder as Y, Jot as C, Events as le, DateTime as A } from "@base-framework/base";
|
|
3
|
+
import { P as k, b as re, R as ie } from "./range-calendar-k0B4ZWJq.js";
|
|
4
4
|
import { B as h, I as p } from "./buttons-Cm9etaEG.js";
|
|
5
5
|
import { Icons as u } from "./icons.es.js";
|
|
6
|
-
import { Timer as ae, List as
|
|
6
|
+
import { Timer as ae, List as ce, DynamicTime as de } from "@base-framework/organisms";
|
|
7
7
|
import { a as y } from "./veil-D4dRxILB.js";
|
|
8
|
-
import { F
|
|
9
|
-
const
|
|
8
|
+
import { F } from "./format-DnofNaaz.js";
|
|
9
|
+
const M = {
|
|
10
10
|
info: {
|
|
11
11
|
borderColor: "border-blue-500",
|
|
12
12
|
bgColor: "bg-muted/10",
|
|
@@ -32,20 +32,20 @@ const F = {
|
|
|
32
32
|
bgColor: "bg-muted/10",
|
|
33
33
|
iconColor: "text-muted-foreground"
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, ue = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
36
36
|
m({ html: e })
|
|
37
|
-
]),
|
|
38
|
-
const { borderColor: l, bgColor: r, iconColor:
|
|
37
|
+
]), he = (e) => G({ class: "font-semibold" }, e), fe = (e) => b({ class: "text-sm text-muted-foreground" }, e), vt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
38
|
+
const { borderColor: l, bgColor: r, iconColor: i } = M[o] || M.default;
|
|
39
39
|
return n({ class: `flex items-start p-4 border rounded-lg ${r} ${l}` }, [
|
|
40
40
|
// Icon and content
|
|
41
|
-
s &&
|
|
41
|
+
s && ue(s, i),
|
|
42
42
|
n({ class: "flex flex-col" }, [
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
he(e),
|
|
44
|
+
fe(t)
|
|
45
45
|
])
|
|
46
46
|
]);
|
|
47
47
|
});
|
|
48
|
-
class
|
|
48
|
+
class me extends v {
|
|
49
49
|
/**
|
|
50
50
|
* This will declare the props for the compiler.
|
|
51
51
|
*
|
|
@@ -69,30 +69,30 @@ class fe extends v {
|
|
|
69
69
|
oe.addClass(t, s), ne.on("animationend", t, (o) => P.removeElement(t));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const pe = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), ge = (e) => a({ class: "flex w-4 h-4", html: e }), be = (e) => a({ class: "flex-auto" }, e), xe = (e, t) => V({
|
|
73
73
|
class: "relative flex cursor-pointer hover:bg-muted/50 select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
74
74
|
click: () => t(e)
|
|
75
75
|
}, [
|
|
76
|
-
e.icon &&
|
|
77
|
-
|
|
78
|
-
e.shortcut &&
|
|
79
|
-
]),
|
|
80
|
-
e.map((s) =>
|
|
81
|
-
]),
|
|
76
|
+
e.icon && ge(e.icon),
|
|
77
|
+
be(e.label),
|
|
78
|
+
e.shortcut && pe(e.shortcut)
|
|
79
|
+
]), we = (e, t) => U({ class: "grid gap-2" }, [
|
|
80
|
+
e.map((s) => xe(s, t))
|
|
81
|
+
]), ye = (e) => n({ class: "w-full z-10" }, [
|
|
82
82
|
n({
|
|
83
83
|
class: "max-h-60 border rounded-md overflow-y-auto p-1 grid gap-2 divide-y divide-border",
|
|
84
|
-
for: ["groups", (t) =>
|
|
84
|
+
for: ["groups", (t) => we(t, e)]
|
|
85
85
|
})
|
|
86
|
-
]),
|
|
86
|
+
]), ve = ({ label: e, icon: t, toggleDropdown: s }) => f({
|
|
87
87
|
cache: "button",
|
|
88
88
|
class: `inline-flex items-center justify-between rounded-md border border-input
|
|
89
89
|
bg-background px-2 py-2 text-sm font-medium hover:bg-muted
|
|
90
90
|
focus:outline-none transition duration-150 ease-in-out`,
|
|
91
91
|
click: s
|
|
92
92
|
}, [
|
|
93
|
-
e &&
|
|
93
|
+
e && a(e),
|
|
94
94
|
t && m({ html: t })
|
|
95
|
-
]),
|
|
95
|
+
]), Ce = ({ onSelect: e }) => n([
|
|
96
96
|
x(
|
|
97
97
|
"open",
|
|
98
98
|
(t, s, o) => t ? new k({
|
|
@@ -100,11 +100,11 @@ const me = (e) => i({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
100
100
|
parent: o,
|
|
101
101
|
button: o.button
|
|
102
102
|
}, [
|
|
103
|
-
|
|
103
|
+
ye(e)
|
|
104
104
|
]) : null
|
|
105
105
|
)
|
|
106
106
|
]);
|
|
107
|
-
class
|
|
107
|
+
class Ct extends v {
|
|
108
108
|
/**
|
|
109
109
|
* This will declare the props for the compiler.
|
|
110
110
|
*
|
|
@@ -158,23 +158,23 @@ class vt extends v {
|
|
|
158
158
|
*/
|
|
159
159
|
render() {
|
|
160
160
|
return n({ class: "relative" }, [
|
|
161
|
-
|
|
161
|
+
ve({
|
|
162
162
|
label: this.label,
|
|
163
163
|
icon: this.icon,
|
|
164
164
|
toggleDropdown: this.toggleDropdown.bind(this)
|
|
165
165
|
}),
|
|
166
|
-
|
|
166
|
+
Ce({ onSelect: this.handleSelect.bind(this) })
|
|
167
167
|
]);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Se = c((e, t) => q({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), De = c((e, t) => b({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Ie = c((e, t) => b({ ...e, class: "text-sm text-destructive" }, t)), $e = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", _ = (e, t, s) => e.map((o) => (o.children && o.children.length > 0 && (o.children = _(o.children, t, s)), o.required && $e(o) ? {
|
|
171
171
|
...o,
|
|
172
172
|
aria: {
|
|
173
173
|
invalid: ["hasError"]
|
|
174
174
|
},
|
|
175
175
|
invalid: s,
|
|
176
176
|
input: t
|
|
177
|
-
} : o)),
|
|
177
|
+
} : o)), Te = c((e, t) => {
|
|
178
178
|
const l = _(t, (r) => {
|
|
179
179
|
r.target.checkValidity() && e.setError(null);
|
|
180
180
|
}, (r) => {
|
|
@@ -184,7 +184,7 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
184
184
|
...e,
|
|
185
185
|
class: "w-full"
|
|
186
186
|
}, l);
|
|
187
|
-
}),
|
|
187
|
+
}), kt = y(
|
|
188
188
|
{
|
|
189
189
|
/**
|
|
190
190
|
* The initial state of the FormField.
|
|
@@ -209,38 +209,38 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
209
209
|
this.state.error = r, this.state.hasError = !!r;
|
|
210
210
|
};
|
|
211
211
|
return n({ class: "flex flex-auto space-y-4" }, [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
ke([
|
|
213
|
+
Se({ htmlFor: t }, s),
|
|
214
|
+
Te({
|
|
215
215
|
id: t,
|
|
216
216
|
name: e,
|
|
217
217
|
value: this.state.value,
|
|
218
218
|
setError: l
|
|
219
219
|
}, this.children),
|
|
220
|
-
o &&
|
|
221
|
-
n({ onState: ["error", (r) => r &&
|
|
220
|
+
o && De({ id: this.getId("description") }, o),
|
|
221
|
+
n({ onState: ["error", (r) => r && Ie(r)] })
|
|
222
222
|
])
|
|
223
223
|
]);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
),
|
|
226
|
+
), Be = (e, t, s = null) => {
|
|
227
227
|
e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
|
|
228
228
|
}, W = c(
|
|
229
|
-
(e, t) => K({ ...e, submit: (s, o) =>
|
|
230
|
-
),
|
|
229
|
+
(e, t) => K({ ...e, submit: (s, o) => Be(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
|
|
230
|
+
), St = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Dt = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
|
|
231
231
|
e.title && D({ class: "font-semibold" }, e.title),
|
|
232
232
|
...t
|
|
233
|
-
])),
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
]),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
]),
|
|
233
|
+
])), It = (e, t) => n({ class: "flex justify-between" }, [
|
|
234
|
+
a({ class: "text-muted-foreground" }, e),
|
|
235
|
+
a(t)
|
|
236
|
+
]), $t = (e, t) => n({ class: "flex" }, [
|
|
237
|
+
a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
238
|
+
a(t)
|
|
239
|
+
]), Ae = ({ title: e, description: t, back: s, icon: o, options: l = [] }) => I({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
|
|
240
240
|
/**
|
|
241
241
|
* Back Button
|
|
242
242
|
*/
|
|
243
|
-
s && h({ variant: "icon", icon: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r,
|
|
243
|
+
s && h({ variant: "icon", icon: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r, i) => i.close() }),
|
|
244
244
|
/**
|
|
245
245
|
* Icon
|
|
246
246
|
*/
|
|
@@ -255,7 +255,7 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
255
255
|
]),
|
|
256
256
|
...l
|
|
257
257
|
])
|
|
258
|
-
]),
|
|
258
|
+
]), Le = c((e, t) => n({
|
|
259
259
|
popover: "manual",
|
|
260
260
|
class: `modal m-auto top-0 right-0 bottom-0 left-0 fixed z-20 grid w-full h-full max-h-screen gap-2 lg:border bg-background text-foreground shadow-xl break-words p-0 ${e.class}`,
|
|
261
261
|
click: (s, o) => {
|
|
@@ -263,12 +263,12 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
263
263
|
}
|
|
264
264
|
}, [
|
|
265
265
|
W({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col space-y-4", submit: (s, o) => e.onSubmit && e.onSubmit(o) }, [
|
|
266
|
-
|
|
266
|
+
Ae(e),
|
|
267
267
|
n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
|
|
268
268
|
L({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
|
|
269
269
|
])
|
|
270
|
-
])),
|
|
271
|
-
class
|
|
270
|
+
])), Pe = (e) => Y.render(e, app.root);
|
|
271
|
+
class Tt extends v {
|
|
272
272
|
/**
|
|
273
273
|
* This will declare the props for the compiler.
|
|
274
274
|
*
|
|
@@ -284,7 +284,7 @@ class $t extends v {
|
|
|
284
284
|
*/
|
|
285
285
|
render() {
|
|
286
286
|
const t = this.getMainClass(), s = this.title || "", o = this.description || null;
|
|
287
|
-
return
|
|
287
|
+
return Le(
|
|
288
288
|
{
|
|
289
289
|
class: t,
|
|
290
290
|
title: s,
|
|
@@ -399,7 +399,7 @@ class $t extends v {
|
|
|
399
399
|
* @returns {void}
|
|
400
400
|
*/
|
|
401
401
|
open() {
|
|
402
|
-
|
|
402
|
+
Pe(this), this.showModal();
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* This will destroy the modal.
|
|
@@ -454,18 +454,18 @@ const z = {
|
|
|
454
454
|
borderColor: "border",
|
|
455
455
|
iconColor: "text-muted-foreground"
|
|
456
456
|
}
|
|
457
|
-
},
|
|
457
|
+
}, Fe = (e) => I({ class: "flex justify-center" }, [
|
|
458
458
|
Q({ class: "text-lg font-bold mb-0" }, e)
|
|
459
459
|
]), Me = c(({ href: e, class: t }, s) => H({
|
|
460
460
|
class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
|
|
461
461
|
href: e,
|
|
462
462
|
role: "alert"
|
|
463
|
-
}, s)),
|
|
463
|
+
}, s)), ze = c(({ close: e, class: t }, s) => n({
|
|
464
464
|
class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
|
|
465
465
|
click: () => e(),
|
|
466
466
|
role: "alert"
|
|
467
467
|
}, s));
|
|
468
|
-
class
|
|
468
|
+
class Ne extends me {
|
|
469
469
|
/**
|
|
470
470
|
* This will declare the props for the compiler.
|
|
471
471
|
*
|
|
@@ -492,7 +492,7 @@ class ze extends fe {
|
|
|
492
492
|
return l ? Me({
|
|
493
493
|
href: l,
|
|
494
494
|
class: `${t} ${s}`
|
|
495
|
-
}, r) :
|
|
495
|
+
}, r) : ze({
|
|
496
496
|
close: this.close.bind(this),
|
|
497
497
|
class: `${t} ${s}`
|
|
498
498
|
}, r);
|
|
@@ -540,7 +540,7 @@ class ze extends fe {
|
|
|
540
540
|
this.icon && m({ class: `mr-4 ${t}`, html: this.icon }),
|
|
541
541
|
n({ class: "flex flex-auto flex-col" }, [
|
|
542
542
|
n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
|
|
543
|
-
this.title &&
|
|
543
|
+
this.title && Fe(this.title)
|
|
544
544
|
]),
|
|
545
545
|
b({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
|
|
546
546
|
(this.primary || this.secondary) && L({ class: "margin-top-24 flex align-center" }, this.getButtons())
|
|
@@ -564,8 +564,8 @@ class ze extends fe {
|
|
|
564
564
|
t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
let
|
|
568
|
-
class
|
|
567
|
+
let Ee = 0;
|
|
568
|
+
class Bt extends v {
|
|
569
569
|
/**
|
|
570
570
|
* This will render the component.
|
|
571
571
|
*
|
|
@@ -573,11 +573,11 @@ class Tt extends v {
|
|
|
573
573
|
*/
|
|
574
574
|
render() {
|
|
575
575
|
return n({ class: "notification-container pointer-events-none inset-auto bg-transparent backdrop:bg-transparent overflow-visible fixed bottom-[80px] right-0 z-50 p-5", popover: "manual" }, [
|
|
576
|
-
new
|
|
576
|
+
new ce({
|
|
577
577
|
cache: "list",
|
|
578
578
|
key: "id",
|
|
579
579
|
role: "list",
|
|
580
|
-
rowItem: (t) => new
|
|
580
|
+
rowItem: (t) => new Ne(t)
|
|
581
581
|
})
|
|
582
582
|
]);
|
|
583
583
|
}
|
|
@@ -588,7 +588,7 @@ class Tt extends v {
|
|
|
588
588
|
* @returns {void}
|
|
589
589
|
*/
|
|
590
590
|
addNotice(t = {}) {
|
|
591
|
-
t.id =
|
|
591
|
+
t.id = Ee++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
|
|
592
592
|
}
|
|
593
593
|
/**
|
|
594
594
|
* This will remove a notification.
|
|
@@ -605,12 +605,12 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
605
605
|
onState: ["method", { active: e }],
|
|
606
606
|
dataSet: ["method", ["state", e, "active"]],
|
|
607
607
|
click: (o, { state: l }) => {
|
|
608
|
-
l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"),
|
|
608
|
+
l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), je(e);
|
|
609
609
|
}
|
|
610
610
|
}, [
|
|
611
611
|
p(s),
|
|
612
|
-
|
|
613
|
-
])),
|
|
612
|
+
a(t)
|
|
613
|
+
])), je = (e) => {
|
|
614
614
|
var o;
|
|
615
615
|
const t = document.documentElement;
|
|
616
616
|
if (e === "system" && (e = (o = globalThis.matchMedia) != null && o.call(globalThis, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), N && !N("(prefers-color-scheme: " + e + ")").matches) {
|
|
@@ -619,7 +619,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
619
619
|
}
|
|
620
620
|
const s = e === "light" ? "dark" : "light";
|
|
621
621
|
t.classList.remove(s);
|
|
622
|
-
},
|
|
622
|
+
}, At = C(
|
|
623
623
|
{
|
|
624
624
|
/**
|
|
625
625
|
* This will render the component.
|
|
@@ -646,7 +646,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
),
|
|
649
|
+
), Lt = y(
|
|
650
650
|
{
|
|
651
651
|
/**
|
|
652
652
|
* The initial state of the Toggle.
|
|
@@ -691,7 +691,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
691
691
|
bind: this.bind,
|
|
692
692
|
required: this.required
|
|
693
693
|
}),
|
|
694
|
-
|
|
694
|
+
a({
|
|
695
695
|
class: "absolute h-5 w-5 bg-background rounded-full shadow-md transform transition-transform",
|
|
696
696
|
onState: ["active", { "translate-x-[22px]": !0, "translate-x-[2px]": !1 }]
|
|
697
697
|
})
|
|
@@ -708,9 +708,9 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
708
708
|
OFFLINE: "bg-gray-500",
|
|
709
709
|
BUSY: "bg-red-500",
|
|
710
710
|
AWAY: "bg-yellow-500"
|
|
711
|
-
},
|
|
712
|
-
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${
|
|
713
|
-
}),
|
|
711
|
+
}, Oe = (e = "") => (e = e.toUpperCase(), g[e] || g.OFFLINE), Pt = (e) => n({
|
|
712
|
+
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Oe(e)}`
|
|
713
|
+
}), Ft = ({ propName: e = "status" } = {}) => n({
|
|
714
714
|
class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
|
|
715
715
|
onSet: [e, {
|
|
716
716
|
[g.ONLINE]: S.ONLINE,
|
|
@@ -731,6 +731,15 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
731
731
|
loaded: !!this.src
|
|
732
732
|
};
|
|
733
733
|
},
|
|
734
|
+
/**
|
|
735
|
+
* This will open the file browse dialog.
|
|
736
|
+
*
|
|
737
|
+
* @returns {void}
|
|
738
|
+
*/
|
|
739
|
+
openFileBrowse() {
|
|
740
|
+
const e = this.input;
|
|
741
|
+
e && (e.value = "", le.trigger("click", e));
|
|
742
|
+
},
|
|
734
743
|
/**
|
|
735
744
|
* Render the component.
|
|
736
745
|
*
|
|
@@ -738,9 +747,14 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
738
747
|
*/
|
|
739
748
|
render() {
|
|
740
749
|
const e = "logo-upload", t = this.onChange || null;
|
|
741
|
-
return n({
|
|
750
|
+
return n({
|
|
751
|
+
class: "relative w-32 h-32 rounded-full border border-muted-foreground flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
|
|
752
|
+
// @ts-ignore
|
|
753
|
+
click: () => this.openFileBrowse()
|
|
754
|
+
}, [
|
|
742
755
|
w({
|
|
743
756
|
id: e,
|
|
757
|
+
cache: "input",
|
|
744
758
|
type: "file",
|
|
745
759
|
accept: "image/*",
|
|
746
760
|
class: "hidden",
|
|
@@ -767,22 +781,22 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
767
781
|
]);
|
|
768
782
|
}
|
|
769
783
|
}
|
|
770
|
-
),
|
|
784
|
+
), Ve = (e, t) => H(
|
|
771
785
|
{
|
|
772
786
|
href: e,
|
|
773
787
|
"aria-current": t === "Breadcrumb" && "page",
|
|
774
788
|
// Only set aria-current on the last item
|
|
775
789
|
class: "text-muted-foreground font-medium hover:text-foreground"
|
|
776
790
|
},
|
|
777
|
-
[
|
|
778
|
-
),
|
|
791
|
+
[a(t)]
|
|
792
|
+
), Ue = () => p({
|
|
779
793
|
class: "mx-3 text-muted-foreground",
|
|
780
794
|
"aria-hidden": !0,
|
|
781
795
|
size: "xs"
|
|
782
|
-
}, u.chevron.single.right),
|
|
783
|
-
e.href ?
|
|
784
|
-
e.separator &&
|
|
785
|
-
]),
|
|
796
|
+
}, u.chevron.single.right), qe = (e) => n({ class: "flex items-center" }, [
|
|
797
|
+
e.href ? Ve(e.href, e.label) : a(e.label),
|
|
798
|
+
e.separator && Ue()
|
|
799
|
+
]), zt = C(
|
|
786
800
|
{
|
|
787
801
|
/**
|
|
788
802
|
* Set initial data
|
|
@@ -811,7 +825,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
811
825
|
n({
|
|
812
826
|
role: "list",
|
|
813
827
|
class: "flex items-center",
|
|
814
|
-
for: ["items", (t, s) =>
|
|
828
|
+
for: ["items", (t, s) => qe({
|
|
815
829
|
href: t.href,
|
|
816
830
|
label: t.label,
|
|
817
831
|
separator: s < e
|
|
@@ -830,8 +844,8 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
830
844
|
"2xl": "h-16 w-16",
|
|
831
845
|
"3xl": "h-24 w-24",
|
|
832
846
|
default: "h-4 w-4"
|
|
833
|
-
},
|
|
834
|
-
|
|
847
|
+
}, He = (e) => E[e] || E.default, Re = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
848
|
+
a({
|
|
835
849
|
class: "block w-full h-full rounded-full transition-colors",
|
|
836
850
|
onSet: ["activeIndex", {
|
|
837
851
|
"bg-primary": e,
|
|
@@ -841,10 +855,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
841
855
|
o.activeIndex = e, l && l(e);
|
|
842
856
|
}
|
|
843
857
|
})
|
|
844
|
-
]),
|
|
858
|
+
]), Ye = (e, t) => Array.from({ length: e }, (s, o) => Re({
|
|
845
859
|
index: o,
|
|
846
860
|
size: t
|
|
847
|
-
})),
|
|
861
|
+
})), Nt = C(
|
|
848
862
|
{
|
|
849
863
|
/**
|
|
850
864
|
* Defines component data (props).
|
|
@@ -866,7 +880,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
866
880
|
* @returns {object}
|
|
867
881
|
*/
|
|
868
882
|
render() {
|
|
869
|
-
const e = this.gap || "gap-2", t =
|
|
883
|
+
const e = this.gap || "gap-2", t = He(this.size || "sm"), s = Ye(this.data.count, t);
|
|
870
884
|
return n(
|
|
871
885
|
{ class: "flex justify-center items-center py-2" },
|
|
872
886
|
[
|
|
@@ -875,26 +889,26 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
875
889
|
);
|
|
876
890
|
}
|
|
877
891
|
}
|
|
878
|
-
),
|
|
892
|
+
), _e = ({ toggleDropdown: e }) => f(
|
|
879
893
|
{
|
|
880
894
|
cache: "button",
|
|
881
895
|
class: "relative z-[2] inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-muted h-10 px-4 py-2 justify-between",
|
|
882
896
|
click: e
|
|
883
897
|
},
|
|
884
898
|
[
|
|
885
|
-
|
|
899
|
+
a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
|
|
886
900
|
m({ html: u.chevron.upDown })
|
|
887
901
|
]
|
|
888
|
-
),
|
|
902
|
+
), We = (e, t, s) => V({
|
|
889
903
|
class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
|
|
890
904
|
click: () => t(e),
|
|
891
905
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
892
906
|
}, [
|
|
893
|
-
e.icon &&
|
|
894
|
-
|
|
895
|
-
]),
|
|
896
|
-
U({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) =>
|
|
897
|
-
]),
|
|
907
|
+
e.icon && a({ class: "mr-2 flex items-baseline" }, [p({ size: "xs" }, e.icon)]),
|
|
908
|
+
a({ class: "text-base font-normal" }, e.label)
|
|
909
|
+
]), Je = (e, t) => n({ class: "w-full border rounded-md" }, [
|
|
910
|
+
U({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => We(s, e, t)] })
|
|
911
|
+
]), Ge = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
898
912
|
x(
|
|
899
913
|
"open",
|
|
900
914
|
(s, o, l) => s ? new k({
|
|
@@ -902,10 +916,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
902
916
|
parent: l,
|
|
903
917
|
button: l.button
|
|
904
918
|
}, [
|
|
905
|
-
|
|
919
|
+
Je(e, t)
|
|
906
920
|
]) : null
|
|
907
921
|
)
|
|
908
|
-
]),
|
|
922
|
+
]), Et = C(
|
|
909
923
|
{
|
|
910
924
|
/**
|
|
911
925
|
* This will set up the data.
|
|
@@ -986,8 +1000,8 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
986
1000
|
const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
|
|
987
1001
|
return n({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
|
|
988
1002
|
// @ts-ignore
|
|
989
|
-
|
|
990
|
-
|
|
1003
|
+
_e({ toggleDropdown: this.toggleDropdown.bind(this) }),
|
|
1004
|
+
Ge({
|
|
991
1005
|
// @ts-ignore
|
|
992
1006
|
state: this.state,
|
|
993
1007
|
// @ts-ignore
|
|
@@ -1013,20 +1027,20 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1013
1027
|
click: t,
|
|
1014
1028
|
icon: e,
|
|
1015
1029
|
"aria-label": s
|
|
1016
|
-
}),
|
|
1030
|
+
}), Ke = ({ click: e }) => J({
|
|
1017
1031
|
icon: u.circleMinus,
|
|
1018
1032
|
click: e,
|
|
1019
1033
|
ariaLabel: "Decrement"
|
|
1020
|
-
}),
|
|
1034
|
+
}), Qe = ({ click: e }) => J({
|
|
1021
1035
|
icon: u.circlePlus,
|
|
1022
1036
|
click: e,
|
|
1023
1037
|
ariaLabel: "Increment"
|
|
1024
|
-
}),
|
|
1038
|
+
}), Xe = ({ bind: e, min: t, max: s, readonly: o = !1 }) => R(({ state: l }) => w({
|
|
1025
1039
|
value: ["[[count]]", l],
|
|
1026
1040
|
bind: e,
|
|
1027
|
-
blur: (r, { state:
|
|
1041
|
+
blur: (r, { state: i }) => {
|
|
1028
1042
|
let d = parseInt(r.target.value, 10);
|
|
1029
|
-
isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)),
|
|
1043
|
+
isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)), i.count = d;
|
|
1030
1044
|
},
|
|
1031
1045
|
class: "flex flex-auto text-lg font-medium bg-transparent text-center border min-w-0",
|
|
1032
1046
|
readonly: o,
|
|
@@ -1034,7 +1048,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1034
1048
|
max: s,
|
|
1035
1049
|
type: "number",
|
|
1036
1050
|
"aria-label": "Counter"
|
|
1037
|
-
})),
|
|
1051
|
+
})), jt = y(
|
|
1038
1052
|
{
|
|
1039
1053
|
/**
|
|
1040
1054
|
* Initial state for the counter component.
|
|
@@ -1057,32 +1071,32 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1057
1071
|
render() {
|
|
1058
1072
|
const e = this.class ?? "";
|
|
1059
1073
|
return n({ class: `flex flex-auto items-center justify-between space-x-4 p-4 ${e}` }, [
|
|
1060
|
-
|
|
1061
|
-
|
|
1074
|
+
Ke({ click: () => this.state.decrement("count") }),
|
|
1075
|
+
Xe({
|
|
1062
1076
|
bind: this.bind,
|
|
1063
1077
|
readonly: this.readonly,
|
|
1064
1078
|
min: this.min,
|
|
1065
1079
|
max: this.max
|
|
1066
1080
|
}),
|
|
1067
|
-
|
|
1081
|
+
Qe({ click: () => this.state.increment("count") })
|
|
1068
1082
|
]);
|
|
1069
1083
|
}
|
|
1070
1084
|
}
|
|
1071
|
-
),
|
|
1085
|
+
), Ze = ({ bind: e, required: t }) => w({
|
|
1072
1086
|
cache: "input",
|
|
1073
1087
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1074
1088
|
bind: e,
|
|
1075
1089
|
required: t
|
|
1076
|
-
}),
|
|
1090
|
+
}), et = ({ bind: e, required: t, toggleOpen: s }) => f({
|
|
1077
1091
|
class: "relative flex items-center gap-2 w-full justify-between border border-input bg-background hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
1078
1092
|
click: s
|
|
1079
1093
|
}, [
|
|
1080
|
-
|
|
1081
|
-
|
|
1094
|
+
Ze({ bind: e, required: t }),
|
|
1095
|
+
a({
|
|
1082
1096
|
onState: ["selectedDate", (o) => o ? A.format("standard", o) : "Pick a date"]
|
|
1083
1097
|
}),
|
|
1084
1098
|
m({ html: u.calendar.days })
|
|
1085
|
-
]),
|
|
1099
|
+
]), tt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
|
|
1086
1100
|
"open",
|
|
1087
1101
|
(s, o, l) => s ? new k({
|
|
1088
1102
|
cache: "dropdown",
|
|
@@ -1090,13 +1104,13 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1090
1104
|
button: l.panel,
|
|
1091
1105
|
size: "fit"
|
|
1092
1106
|
}, [
|
|
1093
|
-
new
|
|
1107
|
+
new re({
|
|
1094
1108
|
selectedDate: l.state.selectedDate,
|
|
1095
1109
|
selectedCallBack: e,
|
|
1096
1110
|
blockPriorDates: t
|
|
1097
1111
|
})
|
|
1098
1112
|
]) : null
|
|
1099
|
-
),
|
|
1113
|
+
), Ot = y(
|
|
1100
1114
|
{
|
|
1101
1115
|
/**
|
|
1102
1116
|
* The initial state of the DatePicker.
|
|
@@ -1128,35 +1142,35 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1128
1142
|
this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
|
|
1129
1143
|
};
|
|
1130
1144
|
return n({ class: "relative w-full max-w-[320px]" }, [
|
|
1131
|
-
|
|
1145
|
+
et({
|
|
1132
1146
|
toggleOpen: e,
|
|
1133
1147
|
bind: this.bind,
|
|
1134
1148
|
required: this.required
|
|
1135
1149
|
}),
|
|
1136
|
-
|
|
1150
|
+
tt({
|
|
1137
1151
|
handleDateSelect: t,
|
|
1138
1152
|
blockPriorDates: this.blockPriorDates || !1
|
|
1139
1153
|
})
|
|
1140
1154
|
]);
|
|
1141
1155
|
}
|
|
1142
1156
|
}
|
|
1143
|
-
),
|
|
1157
|
+
), st = ({ bind: e, required: t }) => w({
|
|
1144
1158
|
cache: "input",
|
|
1145
1159
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1146
1160
|
bind: e,
|
|
1147
1161
|
required: t
|
|
1148
|
-
}),
|
|
1162
|
+
}), ot = ({ bind: e, required: t, toggleOpen: s }) => f({
|
|
1149
1163
|
class: "relative flex items-center gap-2 w-full justify-between border border-input bg-background hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
1150
1164
|
click: s
|
|
1151
1165
|
}, [
|
|
1152
|
-
|
|
1166
|
+
st({ bind: e, required: t }),
|
|
1153
1167
|
R(({ state: o }) => [
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1168
|
+
a(F.date(["[[start]]", o], "Start Date")),
|
|
1169
|
+
a(" - "),
|
|
1170
|
+
a(F.date(["[[end]]", o], "End Date"))
|
|
1157
1171
|
]),
|
|
1158
1172
|
m({ html: u.calendar.days })
|
|
1159
|
-
]),
|
|
1173
|
+
]), nt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
|
|
1160
1174
|
"open",
|
|
1161
1175
|
(s, o, l) => s ? new k({
|
|
1162
1176
|
cache: "dropdown",
|
|
@@ -1164,14 +1178,14 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1164
1178
|
button: l.panel,
|
|
1165
1179
|
size: "xl"
|
|
1166
1180
|
}, [
|
|
1167
|
-
new
|
|
1181
|
+
new ie({
|
|
1168
1182
|
startDate: l.state.start,
|
|
1169
1183
|
endDate: l.state.end,
|
|
1170
1184
|
onRangeSelect: e,
|
|
1171
1185
|
blockPriorDates: t
|
|
1172
1186
|
})
|
|
1173
1187
|
]) : null
|
|
1174
|
-
),
|
|
1188
|
+
), Vt = y(
|
|
1175
1189
|
{
|
|
1176
1190
|
/**
|
|
1177
1191
|
* The initial state of the DateRangePicker.
|
|
@@ -1207,20 +1221,20 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1207
1221
|
this.state.start = s, this.state.end = o, this.state.open = !1, this.input.value = `${s}-${o}`, typeof this.onChange == "function" && this.onChange({ start: s, end: o }, this.parent);
|
|
1208
1222
|
};
|
|
1209
1223
|
return n({ class: "relative w-full max-w-[320px]" }, [
|
|
1210
|
-
|
|
1224
|
+
ot({
|
|
1211
1225
|
toggleOpen: e,
|
|
1212
1226
|
bind: this.bind,
|
|
1213
1227
|
required: this.required
|
|
1214
1228
|
}),
|
|
1215
|
-
|
|
1229
|
+
nt({
|
|
1216
1230
|
handleDateSelect: t,
|
|
1217
1231
|
blockPriorDates: this.blockPriorDates || !1
|
|
1218
1232
|
})
|
|
1219
1233
|
]);
|
|
1220
1234
|
}
|
|
1221
1235
|
}
|
|
1222
|
-
),
|
|
1223
|
-
new
|
|
1236
|
+
), Ut = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => te([
|
|
1237
|
+
new de({
|
|
1224
1238
|
dateTime: e,
|
|
1225
1239
|
filter: s || ((o) => {
|
|
1226
1240
|
const l = A.getLocalTime(o, !0, !1, t);
|
|
@@ -1228,7 +1242,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1228
1242
|
})
|
|
1229
1243
|
})
|
|
1230
1244
|
]);
|
|
1231
|
-
function
|
|
1245
|
+
function lt({ bind: e, required: t }) {
|
|
1232
1246
|
return w({
|
|
1233
1247
|
cache: "input",
|
|
1234
1248
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
@@ -1236,15 +1250,15 @@ function nt({ bind: e, required: t }) {
|
|
|
1236
1250
|
required: t
|
|
1237
1251
|
});
|
|
1238
1252
|
}
|
|
1239
|
-
function
|
|
1253
|
+
function rt({ bind: e, required: t, toggleOpen: s }) {
|
|
1240
1254
|
return f(
|
|
1241
1255
|
{
|
|
1242
1256
|
class: "relative flex items-center gap-2 w-full justify-between border border-input bg-background hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
1243
1257
|
click: s
|
|
1244
1258
|
},
|
|
1245
1259
|
[
|
|
1246
|
-
|
|
1247
|
-
|
|
1260
|
+
lt({ bind: e, required: t }),
|
|
1261
|
+
a({
|
|
1248
1262
|
onState: ["selectedTime", (o) => o || "Pick a time"]
|
|
1249
1263
|
}),
|
|
1250
1264
|
m({ html: u.clock })
|
|
@@ -1255,17 +1269,17 @@ function B({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
|
|
|
1255
1269
|
return n(
|
|
1256
1270
|
{ class: "flex flex-col max-h-[200px] overflow-y-auto" },
|
|
1257
1271
|
e.map((r) => {
|
|
1258
|
-
let
|
|
1272
|
+
let i = l ? r.toString().padStart(2, "0") : r.toString();
|
|
1259
1273
|
return f({
|
|
1260
|
-
text:
|
|
1274
|
+
text: i,
|
|
1261
1275
|
class: "hover:bg-muted/50 rounded-md px-2 py-1",
|
|
1262
|
-
click: () => t({ [o]:
|
|
1263
|
-
onState: [s, o, { "bg-muted":
|
|
1276
|
+
click: () => t({ [o]: i }),
|
|
1277
|
+
onState: [s, o, { "bg-muted": i }]
|
|
1264
1278
|
});
|
|
1265
1279
|
})
|
|
1266
1280
|
);
|
|
1267
1281
|
}
|
|
1268
|
-
function
|
|
1282
|
+
function it({ handleTimeSelect: e }) {
|
|
1269
1283
|
return n(
|
|
1270
1284
|
{ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" },
|
|
1271
1285
|
[
|
|
@@ -1324,14 +1338,14 @@ function j(e) {
|
|
|
1324
1338
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
1325
1339
|
if (!s)
|
|
1326
1340
|
return { hour: null, minute: null, meridian: null };
|
|
1327
|
-
let [, o, l, , r] = s,
|
|
1328
|
-
return
|
|
1329
|
-
hour:
|
|
1341
|
+
let [, o, l, , r] = s, i = parseInt(o, 10), d = parseInt(l, 10);
|
|
1342
|
+
return i < 0 || i > 23 || d < 0 || d > 59 ? { hour: null, minute: null, meridian: null } : (r ? (r = r.toUpperCase(), r === "PM" && i < 12 ? i += 12 : r === "AM" && i === 12 && (i = 12)) : i === 0 ? (r = "AM", i = 12) : i < 12 ? r = "AM" : i === 12 ? r = "PM" : (r = "PM", i -= 12), {
|
|
1343
|
+
hour: i.toString().padStart(2, "0"),
|
|
1330
1344
|
minute: d.toString().padStart(2, "0"),
|
|
1331
1345
|
meridian: r
|
|
1332
1346
|
});
|
|
1333
1347
|
}
|
|
1334
|
-
const
|
|
1348
|
+
const qt = y(
|
|
1335
1349
|
{
|
|
1336
1350
|
/**
|
|
1337
1351
|
* The initial shallow state of the TimePicker.
|
|
@@ -1379,12 +1393,12 @@ const Ut = y(
|
|
|
1379
1393
|
return n(
|
|
1380
1394
|
{ class: "relative w-full max-w-[320px]" },
|
|
1381
1395
|
[
|
|
1382
|
-
|
|
1396
|
+
rt({
|
|
1383
1397
|
toggleOpen: e,
|
|
1384
1398
|
bind: this.bind,
|
|
1385
1399
|
required: this.required
|
|
1386
1400
|
}),
|
|
1387
|
-
|
|
1401
|
+
it({
|
|
1388
1402
|
handleTimeSelect: t
|
|
1389
1403
|
})
|
|
1390
1404
|
]
|
|
@@ -1393,9 +1407,9 @@ const Ut = y(
|
|
|
1393
1407
|
}
|
|
1394
1408
|
), at = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
|
|
1395
1409
|
p({ size: "lg" }, e)
|
|
1396
|
-
]),
|
|
1410
|
+
]), ct = ({ title: e }) => I({ class: "flex flex-auto items-center" }, [
|
|
1397
1411
|
D({ class: "text-lg font-semibold" }, e)
|
|
1398
|
-
]),
|
|
1412
|
+
]), dt = c((e, t) => se(
|
|
1399
1413
|
{
|
|
1400
1414
|
class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
|
|
1401
1415
|
rounded-lg flex flex-auto flex-col
|
|
@@ -1409,7 +1423,7 @@ const Ut = y(
|
|
|
1409
1423
|
e.icon && at(e.icon, e.iconColor),
|
|
1410
1424
|
n({ class: "flex flex-auto flex-col gap-4" }, [
|
|
1411
1425
|
n({ class: "flex flex-auto flex-col space-y-2" }, [
|
|
1412
|
-
|
|
1426
|
+
ct(e),
|
|
1413
1427
|
e.description && b({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
|
|
1414
1428
|
n({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
|
|
1415
1429
|
]),
|
|
@@ -1417,7 +1431,7 @@ const Ut = y(
|
|
|
1417
1431
|
])
|
|
1418
1432
|
])
|
|
1419
1433
|
]
|
|
1420
|
-
)),
|
|
1434
|
+
)), ut = (e) => Y.render(e, app.root), O = {
|
|
1421
1435
|
info: {
|
|
1422
1436
|
borderColor: "border-blue-500",
|
|
1423
1437
|
bgColor: "bg-muted/10",
|
|
@@ -1444,7 +1458,7 @@ const Ut = y(
|
|
|
1444
1458
|
iconColor: "text-muted-foreground"
|
|
1445
1459
|
}
|
|
1446
1460
|
};
|
|
1447
|
-
class
|
|
1461
|
+
class ht extends v {
|
|
1448
1462
|
/**
|
|
1449
1463
|
* This will declare the props for the compiler.
|
|
1450
1464
|
*
|
|
@@ -1461,10 +1475,10 @@ class ut extends v {
|
|
|
1461
1475
|
render() {
|
|
1462
1476
|
const t = (d) => {
|
|
1463
1477
|
d.target === this.panel && this.close();
|
|
1464
|
-
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`,
|
|
1465
|
-
return
|
|
1478
|
+
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
|
|
1479
|
+
return dt({
|
|
1466
1480
|
class: r,
|
|
1467
|
-
title:
|
|
1481
|
+
title: i,
|
|
1468
1482
|
click: t,
|
|
1469
1483
|
icon: this.icon,
|
|
1470
1484
|
iconColor: l,
|
|
@@ -1506,7 +1520,7 @@ class ut extends v {
|
|
|
1506
1520
|
* @returns {void}
|
|
1507
1521
|
*/
|
|
1508
1522
|
open() {
|
|
1509
|
-
|
|
1523
|
+
ut(this), this.panel.showModal(), this.state.open = !0;
|
|
1510
1524
|
}
|
|
1511
1525
|
/**
|
|
1512
1526
|
* This will close the modal.
|
|
@@ -1517,7 +1531,7 @@ class ut extends v {
|
|
|
1517
1531
|
this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
|
|
1518
1532
|
}
|
|
1519
1533
|
}
|
|
1520
|
-
class
|
|
1534
|
+
class Ht extends ht {
|
|
1521
1535
|
/**
|
|
1522
1536
|
* This will declare the props for the compiler.
|
|
1523
1537
|
*
|
|
@@ -1547,7 +1561,7 @@ class qt extends ut {
|
|
|
1547
1561
|
this.confirmed && this.confirmed(), this.close();
|
|
1548
1562
|
}
|
|
1549
1563
|
}
|
|
1550
|
-
const
|
|
1564
|
+
const Rt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
1551
1565
|
W({ class: "flex flex-auto flex-col" }, [
|
|
1552
1566
|
n({ class: "flex flex-auto flex-col space-y-4" }, [
|
|
1553
1567
|
n({ class: "flex flex-auto items-center justify-center" }, [
|
|
@@ -1564,46 +1578,46 @@ const Ht = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
|
1564
1578
|
])
|
|
1565
1579
|
]));
|
|
1566
1580
|
export {
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1581
|
+
vt as A,
|
|
1582
|
+
zt as B,
|
|
1583
|
+
$t as C,
|
|
1584
|
+
me as D,
|
|
1585
|
+
qt as E,
|
|
1586
|
+
ke as F,
|
|
1587
|
+
Ht as G,
|
|
1588
|
+
dt as H,
|
|
1589
|
+
ht as I,
|
|
1590
|
+
Rt as J,
|
|
1577
1591
|
Mt as L,
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1592
|
+
Tt as M,
|
|
1593
|
+
Bt as N,
|
|
1594
|
+
Qe as P,
|
|
1595
|
+
It as S,
|
|
1596
|
+
At as T,
|
|
1597
|
+
xe as a,
|
|
1598
|
+
Ct as b,
|
|
1599
|
+
ye as c,
|
|
1600
|
+
Se as d,
|
|
1601
|
+
De as e,
|
|
1602
|
+
Ie as f,
|
|
1603
|
+
Te as g,
|
|
1604
|
+
kt as h,
|
|
1591
1605
|
W as i,
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1606
|
+
St as j,
|
|
1607
|
+
Dt as k,
|
|
1608
|
+
Ne as l,
|
|
1609
|
+
Lt as m,
|
|
1610
|
+
Pt as n,
|
|
1611
|
+
Ft as o,
|
|
1598
1612
|
S as p,
|
|
1599
1613
|
g as q,
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1614
|
+
Oe as r,
|
|
1615
|
+
Nt as s,
|
|
1616
|
+
Et as t,
|
|
1617
|
+
Ke as u,
|
|
1618
|
+
Xe as v,
|
|
1619
|
+
jt as w,
|
|
1620
|
+
Ot as x,
|
|
1621
|
+
Vt as y,
|
|
1622
|
+
Ut as z
|
|
1609
1623
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { B as c, I as C, L as T } from "./buttons-Cm9etaEG.js";
|
|
|
3
3
|
import { C as b, d as I, D as S, c as P, E as B, F, H as k, I as M, M as f, N as x, P as N, R as v, T as y, a as h, b as L, U as W, W as H } from "./inputs-CMjx5-IX.js";
|
|
4
4
|
import { V as R, a as w } from "./veil-D4dRxILB.js";
|
|
5
5
|
import { Icons as E } from "./icons.es.js";
|
|
6
|
-
import { A as O, B as V, C as j, t as q, G as J, v as z, w as _, x as K, y as Q, D as X, j as Y, k as Z, I as $, H as aa, s as ea, c as sa, a as oa, b as ta, J as ra, i as na, g as la, e as ia, h as pa, F as ma, d as ua, f as da, L as ga, u as ca, M as Ca, l as Ta, N as Da, P as ba, p as Ia, q as Sa, S as Pa, n as Ba, o as Fa, T as ka, z as Ma, E as fa, m as xa, r as Na } from "./empty-state-
|
|
6
|
+
import { A as O, B as V, C as j, t as q, G as J, v as z, w as _, x as K, y as Q, D as X, j as Y, k as Z, I as $, H as aa, s as ea, c as sa, a as oa, b as ta, J as ra, i as na, g as la, e as ia, h as pa, F as ma, d as ua, f as da, L as ga, u as ca, M as Ca, l as Ta, N as Da, P as ba, p as Ia, q as Sa, S as Pa, n as Ba, o as Fa, T as ka, z as Ma, E as fa, m as xa, r as Na } from "./empty-state-aIT29dVl.js";
|
|
7
7
|
import { A as ya, b as ha, C as La, D as Wa, a as Ha, F as Aa, M as Ra, P as wa, R as Ua, c as Ea, g as Ga, p as Oa } from "./range-calendar-k0B4ZWJq.js";
|
|
8
8
|
import { B as ja, p as qa, C as Ja, j as za, D as _a, m as Ka, k as Qa, H as Xa, I as Ya, N as Za, O as $a, P as ae, S as ee, n as se, o as oe, t as te, s as re, q as ne, r as le, T as ie, l as pe, U as me, W as ue, f as de, h as ge, i as ce, c as Ce, d as Te, b as De, e as be, a as Ie, g as Se } from "./signature-panel-Cj_uAlDW.js";
|
|
9
9
|
import { B as Be, I as Fe, M as ke, d as Me, e as fe, g as xe, N as Ne, b as ve, a as ye, f as he, P as Le, c as We, S as He, T as Ae } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, B as t, C as e, t as r, G as i, v as n, w as m, x as l, y as S, D, j as c, k as g, I as p, H as u, s as d, c as C, a as F, b as T, J as P, i as A, g as f, e as w, h as I, F as b, d as y, f as B, L as M, u as k, M as x, l as L, N as v, P as E, p as N, q as R, S as U, n as h, o as j, T as q, z, E as G, m as H, r as J } from "./empty-state-
|
|
1
|
+
import { A as o, B as t, C as e, t as r, G as i, v as n, w as m, x as l, y as S, D, j as c, k as g, I as p, H as u, s as d, c as C, a as F, b as T, J as P, i as A, g as f, e as w, h as I, F as b, d as y, f as B, L as M, u as k, M as x, l as L, N as v, P as E, p as N, q as R, S as U, n as h, o as j, T as q, z, E as G, m as H, r as J } from "./empty-state-aIT29dVl.js";
|
|
2
2
|
import { A as _, P as K, g as Q } from "./range-calendar-k0B4ZWJq.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
package/package.json
CHANGED