@base-framework/ui 1.0.248 → 1.0.250
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,11 +1,11 @@
|
|
|
1
|
-
import { Div as n, H5 as G, P as b, I as m, Li as
|
|
2
|
-
import { Atom as c, Component as
|
|
3
|
-
import { P as k, b as
|
|
1
|
+
import { Div as n, H5 as G, P as b, I as m, Li as U, Span as a, Ul as V, Button as f, OnState as x, Label as R, Form as K, H2 as D, Header as I, Footer as L, A as q, H3 as Q, Checkbox as X, Input as w, Img as Z, Nav as ee, UseParent as H, Time as te, Dialog as se } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as c, Component as y, Html as F, 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 le, R as re } from "./range-calendar-k0B4ZWJq.js";
|
|
4
4
|
import { B as h, I as p } from "./buttons-Cm9etaEG.js";
|
|
5
|
-
import { Icons as
|
|
6
|
-
import { Timer as
|
|
7
|
-
import { a as
|
|
8
|
-
import { F } from "./format-DnofNaaz.js";
|
|
5
|
+
import { Icons as d } from "./icons.es.js";
|
|
6
|
+
import { Timer as ie, List as ae, DynamicTime as ce } from "@base-framework/organisms";
|
|
7
|
+
import { a as v } from "./veil-D4dRxILB.js";
|
|
8
|
+
import { F as P } from "./format-DnofNaaz.js";
|
|
9
9
|
const M = {
|
|
10
10
|
info: {
|
|
11
11
|
borderColor: "border-blue-500",
|
|
@@ -34,18 +34,18 @@ const M = {
|
|
|
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
|
-
]),
|
|
37
|
+
]), de = (e) => G({ class: "font-semibold" }, e), he = (e) => b({ class: "text-sm text-muted-foreground" }, e), vt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
38
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
41
|
s && ue(s, i),
|
|
42
42
|
n({ class: "flex flex-col" }, [
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
de(e),
|
|
44
|
+
he(t)
|
|
45
45
|
])
|
|
46
46
|
]);
|
|
47
47
|
});
|
|
48
|
-
class
|
|
48
|
+
class fe extends y {
|
|
49
49
|
/**
|
|
50
50
|
* This will declare the props for the compiler.
|
|
51
51
|
*
|
|
@@ -63,25 +63,25 @@ class me extends v {
|
|
|
63
63
|
this.prepareDestroy(), this.removeContext();
|
|
64
64
|
const t = this.panel, s = this.removingClass;
|
|
65
65
|
if (!s) {
|
|
66
|
-
|
|
66
|
+
F.removeElement(t);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
oe.addClass(t, s), ne.on("animationend", t, (o) =>
|
|
69
|
+
oe.addClass(t, s), ne.on("animationend", t, (o) => F.removeElement(t));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const me = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), pe = (e) => a({ class: "flex w-4 h-4", html: e }), ge = (e) => a({ class: "flex-auto" }, e), be = (e, t) => U({
|
|
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 && pe(e.icon),
|
|
77
|
+
ge(e.label),
|
|
78
|
+
e.shortcut && me(e.shortcut)
|
|
79
|
+
]), xe = (e, t) => V({ class: "grid gap-2" }, [
|
|
80
|
+
e.map((s) => be(s, t))
|
|
81
|
+
]), we = (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) => xe(t, e)]
|
|
85
85
|
})
|
|
86
86
|
]), ve = ({ label: e, icon: t, toggleDropdown: s }) => f({
|
|
87
87
|
cache: "button",
|
|
@@ -92,7 +92,7 @@ const pe = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
92
92
|
}, [
|
|
93
93
|
e && a(e),
|
|
94
94
|
t && m({ html: t })
|
|
95
|
-
]),
|
|
95
|
+
]), ye = ({ onSelect: e }) => n([
|
|
96
96
|
x(
|
|
97
97
|
"open",
|
|
98
98
|
(t, s, o) => t ? new k({
|
|
@@ -100,11 +100,11 @@ const pe = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
100
100
|
parent: o,
|
|
101
101
|
button: o.button
|
|
102
102
|
}, [
|
|
103
|
-
|
|
103
|
+
we(e)
|
|
104
104
|
]) : null
|
|
105
105
|
)
|
|
106
106
|
]);
|
|
107
|
-
class
|
|
107
|
+
class yt extends y {
|
|
108
108
|
/**
|
|
109
109
|
* This will declare the props for the compiler.
|
|
110
110
|
*
|
|
@@ -163,18 +163,18 @@ class Ct extends v {
|
|
|
163
163
|
icon: this.icon,
|
|
164
164
|
toggleDropdown: this.toggleDropdown.bind(this)
|
|
165
165
|
}),
|
|
166
|
-
|
|
166
|
+
ye({ onSelect: this.handleSelect.bind(this) })
|
|
167
167
|
]);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), ke = c((e, t) => R({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Se = c((e, t) => b({ ...e, class: "text-sm text-muted-foreground italic" }, t)), De = c((e, t) => b({ ...e, class: "text-sm text-destructive" }, t)), Ie = (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 && Ie(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)), $e = 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 ke = 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
|
+
}), Ct = v(
|
|
188
188
|
{
|
|
189
189
|
/**
|
|
190
190
|
* The initial state of the FormField.
|
|
@@ -209,38 +209,38 @@ const ke = 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
|
+
Ce([
|
|
213
|
+
ke({ htmlFor: t }, s),
|
|
214
|
+
$e({
|
|
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 && Se({ id: this.getId("description") }, o),
|
|
221
|
+
n({ onState: ["error", (r) => r && De(r)] })
|
|
222
222
|
])
|
|
223
223
|
]);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
),
|
|
226
|
+
), Te = (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) => Te(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
|
|
230
|
+
), kt = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), St = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
|
|
231
231
|
e.title && D({ class: "font-semibold" }, e.title),
|
|
232
232
|
...t
|
|
233
|
-
])),
|
|
233
|
+
])), Dt = (e, t) => n({ class: "flex justify-between" }, [
|
|
234
234
|
a({ class: "text-muted-foreground" }, e),
|
|
235
235
|
a(t)
|
|
236
|
-
]),
|
|
236
|
+
]), It = (e, t) => n({ class: "flex" }, [
|
|
237
237
|
a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
238
238
|
a(t)
|
|
239
|
-
]),
|
|
239
|
+
]), Be = ({ 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:
|
|
243
|
+
s && h({ variant: "icon", icon: d.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 ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
255
255
|
]),
|
|
256
256
|
...l
|
|
257
257
|
])
|
|
258
|
-
]),
|
|
258
|
+
]), Ae = 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 ke = 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
|
+
Be(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
|
+
])), Le = (e) => Y.render(e, app.root);
|
|
271
|
+
class $t extends y {
|
|
272
272
|
/**
|
|
273
273
|
* This will declare the props for the compiler.
|
|
274
274
|
*
|
|
@@ -284,7 +284,7 @@ class Tt extends v {
|
|
|
284
284
|
*/
|
|
285
285
|
render() {
|
|
286
286
|
const t = this.getMainClass(), s = this.title || "", o = this.description || null;
|
|
287
|
-
return
|
|
287
|
+
return Ae(
|
|
288
288
|
{
|
|
289
289
|
class: t,
|
|
290
290
|
title: s,
|
|
@@ -399,7 +399,7 @@ class Tt extends v {
|
|
|
399
399
|
* @returns {void}
|
|
400
400
|
*/
|
|
401
401
|
open() {
|
|
402
|
-
|
|
402
|
+
Le(this), this.showModal();
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* This will destroy the modal.
|
|
@@ -456,16 +456,16 @@ const z = {
|
|
|
456
456
|
}
|
|
457
457
|
}, Fe = (e) => I({ class: "flex justify-center" }, [
|
|
458
458
|
Q({ class: "text-lg font-bold mb-0" }, e)
|
|
459
|
-
]),
|
|
459
|
+
]), Pe = c(({ href: e, class: t }, s) => q({
|
|
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)), Me = 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 ze extends fe {
|
|
469
469
|
/**
|
|
470
470
|
* This will declare the props for the compiler.
|
|
471
471
|
*
|
|
@@ -489,10 +489,10 @@ class Ne extends me {
|
|
|
489
489
|
*/
|
|
490
490
|
render() {
|
|
491
491
|
const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), l = this.href || null, r = this.getChildren(o);
|
|
492
|
-
return l ?
|
|
492
|
+
return l ? Pe({
|
|
493
493
|
href: l,
|
|
494
494
|
class: `${t} ${s}`
|
|
495
|
-
}, r) :
|
|
495
|
+
}, r) : Me({
|
|
496
496
|
close: this.close.bind(this),
|
|
497
497
|
class: `${t} ${s}`
|
|
498
498
|
}, r);
|
|
@@ -504,7 +504,7 @@ class Ne extends me {
|
|
|
504
504
|
*/
|
|
505
505
|
afterSetup() {
|
|
506
506
|
const t = this.duration;
|
|
507
|
-
t !== "infinite" && (this.timer = new
|
|
507
|
+
t !== "infinite" && (this.timer = new ie(t, this.close.bind(this)), this.timer.start());
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* This will get the style properties based on the notification type.
|
|
@@ -549,7 +549,7 @@ class Ne extends me {
|
|
|
549
549
|
h({
|
|
550
550
|
class: "absolute top-[12px] right-[12px]",
|
|
551
551
|
variant: "icon",
|
|
552
|
-
icon:
|
|
552
|
+
icon: d.x,
|
|
553
553
|
click: this.close.bind(this)
|
|
554
554
|
})
|
|
555
555
|
];
|
|
@@ -564,8 +564,8 @@ class Ne extends me {
|
|
|
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 Ne = 0;
|
|
568
|
+
class Tt extends y {
|
|
569
569
|
/**
|
|
570
570
|
* This will render the component.
|
|
571
571
|
*
|
|
@@ -573,11 +573,11 @@ class Bt 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 ae({
|
|
577
577
|
cache: "list",
|
|
578
578
|
key: "id",
|
|
579
579
|
role: "list",
|
|
580
|
-
rowItem: (t) => new
|
|
580
|
+
rowItem: (t) => new ze(t)
|
|
581
581
|
})
|
|
582
582
|
]);
|
|
583
583
|
}
|
|
@@ -588,7 +588,7 @@ class Bt extends v {
|
|
|
588
588
|
* @returns {void}
|
|
589
589
|
*/
|
|
590
590
|
addNotice(t = {}) {
|
|
591
|
-
t.id =
|
|
591
|
+
t.id = Ne++, 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"), Ee(e);
|
|
609
609
|
}
|
|
610
610
|
}, [
|
|
611
611
|
p(s),
|
|
612
612
|
a(t)
|
|
613
|
-
])),
|
|
613
|
+
])), Ee = (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
|
+
}, Bt = C(
|
|
623
623
|
{
|
|
624
624
|
/**
|
|
625
625
|
* This will render the component.
|
|
@@ -629,9 +629,9 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
629
629
|
render() {
|
|
630
630
|
return n({ class: "flex flex-auto flex-col" }, [
|
|
631
631
|
n({ class: "grid grid-cols-3 gap-4" }, [
|
|
632
|
-
T({ label: "System", value: "system", icon:
|
|
633
|
-
T({ label: "Light", value: "light", icon:
|
|
634
|
-
T({ label: "Dark", value: "dark", icon:
|
|
632
|
+
T({ label: "System", value: "system", icon: d.adjustments.horizontal }),
|
|
633
|
+
T({ label: "Light", value: "light", icon: d.sun }),
|
|
634
|
+
T({ label: "Dark", value: "dark", icon: d.moon })
|
|
635
635
|
])
|
|
636
636
|
]);
|
|
637
637
|
},
|
|
@@ -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
|
+
), At = v(
|
|
650
650
|
{
|
|
651
651
|
/**
|
|
652
652
|
* The initial state of the Toggle.
|
|
@@ -708,8 +708,8 @@ 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 ${
|
|
711
|
+
}, je = (e = "") => (e = e.toUpperCase(), g[e] || g.OFFLINE), Lt = (e) => n({
|
|
712
|
+
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${je(e)}`
|
|
713
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, {
|
|
@@ -718,7 +718,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
718
718
|
[g.BUSY]: S.BUSY,
|
|
719
719
|
[g.AWAY]: S.AWAY
|
|
720
720
|
}]
|
|
721
|
-
}),
|
|
721
|
+
}), Pt = C(
|
|
722
722
|
{
|
|
723
723
|
/**
|
|
724
724
|
* Get the initial state for the component.
|
|
@@ -738,7 +738,16 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
738
738
|
*/
|
|
739
739
|
openFileBrowse() {
|
|
740
740
|
const e = this.input;
|
|
741
|
-
e && (e.value = "",
|
|
741
|
+
e && (e.value = "", e.click());
|
|
742
|
+
},
|
|
743
|
+
/**
|
|
744
|
+
* Get the URL for the uploaded file.
|
|
745
|
+
*
|
|
746
|
+
* @param {File} file - The file to get the URL for.
|
|
747
|
+
* @returns {string} The object URL for the file.
|
|
748
|
+
*/
|
|
749
|
+
getFileUrl(e) {
|
|
750
|
+
return this.url && URL.revokeObjectURL(this.url), this.url = URL.createObjectURL(e);
|
|
742
751
|
},
|
|
743
752
|
/**
|
|
744
753
|
* Render the component.
|
|
@@ -748,9 +757,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
748
757
|
render() {
|
|
749
758
|
const e = "logo-upload", t = this.onChange || null;
|
|
750
759
|
return n({
|
|
751
|
-
class: "relative w-32 h-32 rounded-full border
|
|
752
|
-
|
|
753
|
-
|
|
760
|
+
class: "relative w-32 h-32 rounded-full border flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
|
|
761
|
+
click: (s) => {
|
|
762
|
+
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
763
|
+
}
|
|
754
764
|
}, [
|
|
755
765
|
w({
|
|
756
766
|
id: e,
|
|
@@ -761,7 +771,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
761
771
|
change: (s) => {
|
|
762
772
|
var l;
|
|
763
773
|
const o = (l = s.target.files) == null ? void 0 : l[0];
|
|
764
|
-
o && t && (t(o, this.parent), this.src =
|
|
774
|
+
o && t && (this.state.loaded = !1, t(o, this.parent), this.src = getFileUrl(o), this.state.loaded = !0);
|
|
765
775
|
}
|
|
766
776
|
}),
|
|
767
777
|
x(
|
|
@@ -770,18 +780,18 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
770
780
|
// @ts-ignore
|
|
771
781
|
src: this.src,
|
|
772
782
|
class: "absolute inset-0 w-full h-full object-cover rounded-full pointer-events-none"
|
|
773
|
-
}) :
|
|
783
|
+
}) : R({
|
|
774
784
|
htmlFor: e,
|
|
775
785
|
class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground pointer-events-none group-hover:text-primary"
|
|
776
786
|
}, [
|
|
777
|
-
p(
|
|
787
|
+
p(d.upload),
|
|
778
788
|
n("Upload logo")
|
|
779
789
|
])
|
|
780
790
|
)
|
|
781
791
|
]);
|
|
782
792
|
}
|
|
783
793
|
}
|
|
784
|
-
),
|
|
794
|
+
), Oe = (e, t) => q(
|
|
785
795
|
{
|
|
786
796
|
href: e,
|
|
787
797
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -793,10 +803,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
793
803
|
class: "mx-3 text-muted-foreground",
|
|
794
804
|
"aria-hidden": !0,
|
|
795
805
|
size: "xs"
|
|
796
|
-
},
|
|
797
|
-
e.href ?
|
|
806
|
+
}, d.chevron.single.right), Ve = (e) => n({ class: "flex items-center" }, [
|
|
807
|
+
e.href ? Oe(e.href, e.label) : a(e.label),
|
|
798
808
|
e.separator && Ue()
|
|
799
|
-
]),
|
|
809
|
+
]), Mt = C(
|
|
800
810
|
{
|
|
801
811
|
/**
|
|
802
812
|
* Set initial data
|
|
@@ -825,7 +835,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
825
835
|
n({
|
|
826
836
|
role: "list",
|
|
827
837
|
class: "flex items-center",
|
|
828
|
-
for: ["items", (t, s) =>
|
|
838
|
+
for: ["items", (t, s) => Ve({
|
|
829
839
|
href: t.href,
|
|
830
840
|
label: t.label,
|
|
831
841
|
separator: s < e
|
|
@@ -844,7 +854,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
844
854
|
"2xl": "h-16 w-16",
|
|
845
855
|
"3xl": "h-24 w-24",
|
|
846
856
|
default: "h-4 w-4"
|
|
847
|
-
},
|
|
857
|
+
}, Re = (e) => E[e] || E.default, qe = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
848
858
|
a({
|
|
849
859
|
class: "block w-full h-full rounded-full transition-colors",
|
|
850
860
|
onSet: ["activeIndex", {
|
|
@@ -855,10 +865,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
855
865
|
o.activeIndex = e, l && l(e);
|
|
856
866
|
}
|
|
857
867
|
})
|
|
858
|
-
]),
|
|
868
|
+
]), He = (e, t) => Array.from({ length: e }, (s, o) => qe({
|
|
859
869
|
index: o,
|
|
860
870
|
size: t
|
|
861
|
-
})),
|
|
871
|
+
})), zt = C(
|
|
862
872
|
{
|
|
863
873
|
/**
|
|
864
874
|
* Defines component data (props).
|
|
@@ -880,7 +890,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
880
890
|
* @returns {object}
|
|
881
891
|
*/
|
|
882
892
|
render() {
|
|
883
|
-
const e = this.gap || "gap-2", t =
|
|
893
|
+
const e = this.gap || "gap-2", t = Re(this.size || "sm"), s = He(this.data.count, t);
|
|
884
894
|
return n(
|
|
885
895
|
{ class: "flex justify-center items-center py-2" },
|
|
886
896
|
[
|
|
@@ -889,7 +899,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
889
899
|
);
|
|
890
900
|
}
|
|
891
901
|
}
|
|
892
|
-
),
|
|
902
|
+
), Ye = ({ toggleDropdown: e }) => f(
|
|
893
903
|
{
|
|
894
904
|
cache: "button",
|
|
895
905
|
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",
|
|
@@ -897,18 +907,18 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
897
907
|
},
|
|
898
908
|
[
|
|
899
909
|
a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
|
|
900
|
-
m({ html:
|
|
910
|
+
m({ html: d.chevron.upDown })
|
|
901
911
|
]
|
|
902
|
-
),
|
|
912
|
+
), _e = (e, t, s) => U({
|
|
903
913
|
class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
|
|
904
914
|
click: () => t(e),
|
|
905
915
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
906
916
|
}, [
|
|
907
917
|
e.icon && a({ class: "mr-2 flex items-baseline" }, [p({ size: "xs" }, e.icon)]),
|
|
908
918
|
a({ class: "text-base font-normal" }, e.label)
|
|
909
|
-
]),
|
|
910
|
-
|
|
911
|
-
]),
|
|
919
|
+
]), We = (e, t) => n({ class: "w-full border rounded-md" }, [
|
|
920
|
+
V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => _e(s, e, t)] })
|
|
921
|
+
]), Je = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
912
922
|
x(
|
|
913
923
|
"open",
|
|
914
924
|
(s, o, l) => s ? new k({
|
|
@@ -916,10 +926,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
916
926
|
parent: l,
|
|
917
927
|
button: l.button
|
|
918
928
|
}, [
|
|
919
|
-
|
|
929
|
+
We(e, t)
|
|
920
930
|
]) : null
|
|
921
931
|
)
|
|
922
|
-
]),
|
|
932
|
+
]), Nt = C(
|
|
923
933
|
{
|
|
924
934
|
/**
|
|
925
935
|
* This will set up the data.
|
|
@@ -1000,8 +1010,8 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1000
1010
|
const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
|
|
1001
1011
|
return n({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
|
|
1002
1012
|
// @ts-ignore
|
|
1003
|
-
|
|
1004
|
-
|
|
1013
|
+
Ye({ toggleDropdown: this.toggleDropdown.bind(this) }),
|
|
1014
|
+
Je({
|
|
1005
1015
|
// @ts-ignore
|
|
1006
1016
|
state: this.state,
|
|
1007
1017
|
// @ts-ignore
|
|
@@ -1027,20 +1037,20 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1027
1037
|
click: t,
|
|
1028
1038
|
icon: e,
|
|
1029
1039
|
"aria-label": s
|
|
1030
|
-
}),
|
|
1031
|
-
icon:
|
|
1040
|
+
}), Ge = ({ click: e }) => J({
|
|
1041
|
+
icon: d.circleMinus,
|
|
1032
1042
|
click: e,
|
|
1033
1043
|
ariaLabel: "Decrement"
|
|
1034
|
-
}),
|
|
1035
|
-
icon:
|
|
1044
|
+
}), Ke = ({ click: e }) => J({
|
|
1045
|
+
icon: d.circlePlus,
|
|
1036
1046
|
click: e,
|
|
1037
1047
|
ariaLabel: "Increment"
|
|
1038
|
-
}),
|
|
1048
|
+
}), Qe = ({ bind: e, min: t, max: s, readonly: o = !1 }) => H(({ state: l }) => w({
|
|
1039
1049
|
value: ["[[count]]", l],
|
|
1040
1050
|
bind: e,
|
|
1041
1051
|
blur: (r, { state: i }) => {
|
|
1042
|
-
let
|
|
1043
|
-
isNaN(
|
|
1052
|
+
let u = parseInt(r.target.value, 10);
|
|
1053
|
+
isNaN(u) && (u = t ?? 0), t !== void 0 && (u = Math.max(u, t)), s !== void 0 && (u = Math.min(u, s)), i.count = u;
|
|
1044
1054
|
},
|
|
1045
1055
|
class: "flex flex-auto text-lg font-medium bg-transparent text-center border min-w-0",
|
|
1046
1056
|
readonly: o,
|
|
@@ -1048,7 +1058,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1048
1058
|
max: s,
|
|
1049
1059
|
type: "number",
|
|
1050
1060
|
"aria-label": "Counter"
|
|
1051
|
-
})),
|
|
1061
|
+
})), Et = v(
|
|
1052
1062
|
{
|
|
1053
1063
|
/**
|
|
1054
1064
|
* Initial state for the counter component.
|
|
@@ -1071,32 +1081,32 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1071
1081
|
render() {
|
|
1072
1082
|
const e = this.class ?? "";
|
|
1073
1083
|
return n({ class: `flex flex-auto items-center justify-between space-x-4 p-4 ${e}` }, [
|
|
1074
|
-
|
|
1075
|
-
|
|
1084
|
+
Ge({ click: () => this.state.decrement("count") }),
|
|
1085
|
+
Qe({
|
|
1076
1086
|
bind: this.bind,
|
|
1077
1087
|
readonly: this.readonly,
|
|
1078
1088
|
min: this.min,
|
|
1079
1089
|
max: this.max
|
|
1080
1090
|
}),
|
|
1081
|
-
|
|
1091
|
+
Ke({ click: () => this.state.increment("count") })
|
|
1082
1092
|
]);
|
|
1083
1093
|
}
|
|
1084
1094
|
}
|
|
1085
|
-
),
|
|
1095
|
+
), Xe = ({ bind: e, required: t }) => w({
|
|
1086
1096
|
cache: "input",
|
|
1087
1097
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1088
1098
|
bind: e,
|
|
1089
1099
|
required: t
|
|
1090
|
-
}),
|
|
1100
|
+
}), Ze = ({ bind: e, required: t, toggleOpen: s }) => f({
|
|
1091
1101
|
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",
|
|
1092
1102
|
click: s
|
|
1093
1103
|
}, [
|
|
1094
|
-
|
|
1104
|
+
Xe({ bind: e, required: t }),
|
|
1095
1105
|
a({
|
|
1096
1106
|
onState: ["selectedDate", (o) => o ? A.format("standard", o) : "Pick a date"]
|
|
1097
1107
|
}),
|
|
1098
|
-
m({ html:
|
|
1099
|
-
]),
|
|
1108
|
+
m({ html: d.calendar.days })
|
|
1109
|
+
]), et = ({ handleDateSelect: e, blockPriorDates: t }) => x(
|
|
1100
1110
|
"open",
|
|
1101
1111
|
(s, o, l) => s ? new k({
|
|
1102
1112
|
cache: "dropdown",
|
|
@@ -1104,13 +1114,13 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1104
1114
|
button: l.panel,
|
|
1105
1115
|
size: "fit"
|
|
1106
1116
|
}, [
|
|
1107
|
-
new
|
|
1117
|
+
new le({
|
|
1108
1118
|
selectedDate: l.state.selectedDate,
|
|
1109
1119
|
selectedCallBack: e,
|
|
1110
1120
|
blockPriorDates: t
|
|
1111
1121
|
})
|
|
1112
1122
|
]) : null
|
|
1113
|
-
),
|
|
1123
|
+
), jt = v(
|
|
1114
1124
|
{
|
|
1115
1125
|
/**
|
|
1116
1126
|
* The initial state of the DatePicker.
|
|
@@ -1142,35 +1152,35 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1142
1152
|
this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
|
|
1143
1153
|
};
|
|
1144
1154
|
return n({ class: "relative w-full max-w-[320px]" }, [
|
|
1145
|
-
|
|
1155
|
+
Ze({
|
|
1146
1156
|
toggleOpen: e,
|
|
1147
1157
|
bind: this.bind,
|
|
1148
1158
|
required: this.required
|
|
1149
1159
|
}),
|
|
1150
|
-
|
|
1160
|
+
et({
|
|
1151
1161
|
handleDateSelect: t,
|
|
1152
1162
|
blockPriorDates: this.blockPriorDates || !1
|
|
1153
1163
|
})
|
|
1154
1164
|
]);
|
|
1155
1165
|
}
|
|
1156
1166
|
}
|
|
1157
|
-
),
|
|
1167
|
+
), tt = ({ bind: e, required: t }) => w({
|
|
1158
1168
|
cache: "input",
|
|
1159
1169
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1160
1170
|
bind: e,
|
|
1161
1171
|
required: t
|
|
1162
|
-
}),
|
|
1172
|
+
}), st = ({ bind: e, required: t, toggleOpen: s }) => f({
|
|
1163
1173
|
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",
|
|
1164
1174
|
click: s
|
|
1165
1175
|
}, [
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
a(
|
|
1176
|
+
tt({ bind: e, required: t }),
|
|
1177
|
+
H(({ state: o }) => [
|
|
1178
|
+
a(P.date(["[[start]]", o], "Start Date")),
|
|
1169
1179
|
a(" - "),
|
|
1170
|
-
a(
|
|
1180
|
+
a(P.date(["[[end]]", o], "End Date"))
|
|
1171
1181
|
]),
|
|
1172
|
-
m({ html:
|
|
1173
|
-
]),
|
|
1182
|
+
m({ html: d.calendar.days })
|
|
1183
|
+
]), ot = ({ handleDateSelect: e, blockPriorDates: t }) => x(
|
|
1174
1184
|
"open",
|
|
1175
1185
|
(s, o, l) => s ? new k({
|
|
1176
1186
|
cache: "dropdown",
|
|
@@ -1178,14 +1188,14 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1178
1188
|
button: l.panel,
|
|
1179
1189
|
size: "xl"
|
|
1180
1190
|
}, [
|
|
1181
|
-
new
|
|
1191
|
+
new re({
|
|
1182
1192
|
startDate: l.state.start,
|
|
1183
1193
|
endDate: l.state.end,
|
|
1184
1194
|
onRangeSelect: e,
|
|
1185
1195
|
blockPriorDates: t
|
|
1186
1196
|
})
|
|
1187
1197
|
]) : null
|
|
1188
|
-
),
|
|
1198
|
+
), Ot = v(
|
|
1189
1199
|
{
|
|
1190
1200
|
/**
|
|
1191
1201
|
* The initial state of the DateRangePicker.
|
|
@@ -1221,12 +1231,12 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1221
1231
|
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);
|
|
1222
1232
|
};
|
|
1223
1233
|
return n({ class: "relative w-full max-w-[320px]" }, [
|
|
1224
|
-
|
|
1234
|
+
st({
|
|
1225
1235
|
toggleOpen: e,
|
|
1226
1236
|
bind: this.bind,
|
|
1227
1237
|
required: this.required
|
|
1228
1238
|
}),
|
|
1229
|
-
|
|
1239
|
+
ot({
|
|
1230
1240
|
handleDateSelect: t,
|
|
1231
1241
|
blockPriorDates: this.blockPriorDates || !1
|
|
1232
1242
|
})
|
|
@@ -1234,7 +1244,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1234
1244
|
}
|
|
1235
1245
|
}
|
|
1236
1246
|
), Ut = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => te([
|
|
1237
|
-
new
|
|
1247
|
+
new ce({
|
|
1238
1248
|
dateTime: e,
|
|
1239
1249
|
filter: s || ((o) => {
|
|
1240
1250
|
const l = A.getLocalTime(o, !0, !1, t);
|
|
@@ -1242,7 +1252,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1242
1252
|
})
|
|
1243
1253
|
})
|
|
1244
1254
|
]);
|
|
1245
|
-
function
|
|
1255
|
+
function nt({ bind: e, required: t }) {
|
|
1246
1256
|
return w({
|
|
1247
1257
|
cache: "input",
|
|
1248
1258
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
@@ -1250,18 +1260,18 @@ function lt({ bind: e, required: t }) {
|
|
|
1250
1260
|
required: t
|
|
1251
1261
|
});
|
|
1252
1262
|
}
|
|
1253
|
-
function
|
|
1263
|
+
function lt({ bind: e, required: t, toggleOpen: s }) {
|
|
1254
1264
|
return f(
|
|
1255
1265
|
{
|
|
1256
1266
|
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",
|
|
1257
1267
|
click: s
|
|
1258
1268
|
},
|
|
1259
1269
|
[
|
|
1260
|
-
|
|
1270
|
+
nt({ bind: e, required: t }),
|
|
1261
1271
|
a({
|
|
1262
1272
|
onState: ["selectedTime", (o) => o || "Pick a time"]
|
|
1263
1273
|
}),
|
|
1264
|
-
m({ html:
|
|
1274
|
+
m({ html: d.clock })
|
|
1265
1275
|
]
|
|
1266
1276
|
);
|
|
1267
1277
|
}
|
|
@@ -1279,7 +1289,7 @@ function B({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
|
|
|
1279
1289
|
})
|
|
1280
1290
|
);
|
|
1281
1291
|
}
|
|
1282
|
-
function
|
|
1292
|
+
function rt({ handleTimeSelect: e }) {
|
|
1283
1293
|
return n(
|
|
1284
1294
|
{ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" },
|
|
1285
1295
|
[
|
|
@@ -1338,14 +1348,14 @@ function j(e) {
|
|
|
1338
1348
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
1339
1349
|
if (!s)
|
|
1340
1350
|
return { hour: null, minute: null, meridian: null };
|
|
1341
|
-
let [, o, l, , r] = s, i = parseInt(o, 10),
|
|
1342
|
-
return i < 0 || i > 23 ||
|
|
1351
|
+
let [, o, l, , r] = s, i = parseInt(o, 10), u = parseInt(l, 10);
|
|
1352
|
+
return i < 0 || i > 23 || u < 0 || u > 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
1353
|
hour: i.toString().padStart(2, "0"),
|
|
1344
|
-
minute:
|
|
1354
|
+
minute: u.toString().padStart(2, "0"),
|
|
1345
1355
|
meridian: r
|
|
1346
1356
|
});
|
|
1347
1357
|
}
|
|
1348
|
-
const
|
|
1358
|
+
const Vt = v(
|
|
1349
1359
|
{
|
|
1350
1360
|
/**
|
|
1351
1361
|
* The initial shallow state of the TimePicker.
|
|
@@ -1393,23 +1403,23 @@ const qt = y(
|
|
|
1393
1403
|
return n(
|
|
1394
1404
|
{ class: "relative w-full max-w-[320px]" },
|
|
1395
1405
|
[
|
|
1396
|
-
|
|
1406
|
+
lt({
|
|
1397
1407
|
toggleOpen: e,
|
|
1398
1408
|
bind: this.bind,
|
|
1399
1409
|
required: this.required
|
|
1400
1410
|
}),
|
|
1401
|
-
|
|
1411
|
+
rt({
|
|
1402
1412
|
handleTimeSelect: t
|
|
1403
1413
|
})
|
|
1404
1414
|
]
|
|
1405
1415
|
);
|
|
1406
1416
|
}
|
|
1407
1417
|
}
|
|
1408
|
-
),
|
|
1418
|
+
), it = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
|
|
1409
1419
|
p({ size: "lg" }, e)
|
|
1410
|
-
]),
|
|
1420
|
+
]), at = ({ title: e }) => I({ class: "flex flex-auto items-center" }, [
|
|
1411
1421
|
D({ class: "text-lg font-semibold" }, e)
|
|
1412
|
-
]),
|
|
1422
|
+
]), ct = c((e, t) => se(
|
|
1413
1423
|
{
|
|
1414
1424
|
class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
|
|
1415
1425
|
rounded-lg flex flex-auto flex-col
|
|
@@ -1420,10 +1430,10 @@ const qt = y(
|
|
|
1420
1430
|
[
|
|
1421
1431
|
n({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
|
|
1422
1432
|
// Icon and content
|
|
1423
|
-
e.icon &&
|
|
1433
|
+
e.icon && it(e.icon, e.iconColor),
|
|
1424
1434
|
n({ class: "flex flex-auto flex-col gap-4" }, [
|
|
1425
1435
|
n({ class: "flex flex-auto flex-col space-y-2" }, [
|
|
1426
|
-
|
|
1436
|
+
at(e),
|
|
1427
1437
|
e.description && b({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
|
|
1428
1438
|
n({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
|
|
1429
1439
|
]),
|
|
@@ -1458,7 +1468,7 @@ const qt = y(
|
|
|
1458
1468
|
iconColor: "text-muted-foreground"
|
|
1459
1469
|
}
|
|
1460
1470
|
};
|
|
1461
|
-
class
|
|
1471
|
+
class dt extends y {
|
|
1462
1472
|
/**
|
|
1463
1473
|
* This will declare the props for the compiler.
|
|
1464
1474
|
*
|
|
@@ -1473,10 +1483,10 @@ class ht extends v {
|
|
|
1473
1483
|
* @returns {object}
|
|
1474
1484
|
*/
|
|
1475
1485
|
render() {
|
|
1476
|
-
const t = (
|
|
1477
|
-
|
|
1486
|
+
const t = (u) => {
|
|
1487
|
+
u.target === this.panel && this.close();
|
|
1478
1488
|
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
|
|
1479
|
-
return
|
|
1489
|
+
return ct({
|
|
1480
1490
|
class: r,
|
|
1481
1491
|
title: i,
|
|
1482
1492
|
click: t,
|
|
@@ -1531,7 +1541,7 @@ class ht extends v {
|
|
|
1531
1541
|
this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
|
|
1532
1542
|
}
|
|
1533
1543
|
}
|
|
1534
|
-
class
|
|
1544
|
+
class Rt extends dt {
|
|
1535
1545
|
/**
|
|
1536
1546
|
* This will declare the props for the compiler.
|
|
1537
1547
|
*
|
|
@@ -1561,7 +1571,7 @@ class Ht extends ht {
|
|
|
1561
1571
|
this.confirmed && this.confirmed(), this.close();
|
|
1562
1572
|
}
|
|
1563
1573
|
}
|
|
1564
|
-
const
|
|
1574
|
+
const qt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
1565
1575
|
W({ class: "flex flex-auto flex-col" }, [
|
|
1566
1576
|
n({ class: "flex flex-auto flex-col space-y-4" }, [
|
|
1567
1577
|
n({ class: "flex flex-auto items-center justify-center" }, [
|
|
@@ -1579,45 +1589,45 @@ const Rt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
|
1579
1589
|
]));
|
|
1580
1590
|
export {
|
|
1581
1591
|
vt as A,
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1592
|
+
Mt as B,
|
|
1593
|
+
It as C,
|
|
1594
|
+
fe as D,
|
|
1595
|
+
Vt as E,
|
|
1596
|
+
Ce as F,
|
|
1597
|
+
Rt as G,
|
|
1598
|
+
ct as H,
|
|
1599
|
+
dt as I,
|
|
1600
|
+
qt as J,
|
|
1601
|
+
Pt as L,
|
|
1602
|
+
$t as M,
|
|
1603
|
+
Tt as N,
|
|
1604
|
+
Ke as P,
|
|
1605
|
+
Dt as S,
|
|
1606
|
+
Bt as T,
|
|
1607
|
+
be as a,
|
|
1608
|
+
yt as b,
|
|
1609
|
+
we as c,
|
|
1610
|
+
ke as d,
|
|
1611
|
+
Se as e,
|
|
1612
|
+
De as f,
|
|
1613
|
+
$e as g,
|
|
1614
|
+
Ct as h,
|
|
1605
1615
|
W as i,
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1616
|
+
kt as j,
|
|
1617
|
+
St as k,
|
|
1618
|
+
ze as l,
|
|
1619
|
+
At as m,
|
|
1620
|
+
Lt as n,
|
|
1611
1621
|
Ft as o,
|
|
1612
1622
|
S as p,
|
|
1613
1623
|
g as q,
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1624
|
+
je as r,
|
|
1625
|
+
zt as s,
|
|
1626
|
+
Nt as t,
|
|
1627
|
+
Ge as u,
|
|
1628
|
+
Qe as v,
|
|
1629
|
+
Et as w,
|
|
1630
|
+
jt as x,
|
|
1631
|
+
Ot as y,
|
|
1622
1632
|
Ut as z
|
|
1623
1633
|
};
|
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-UV-TcmJq.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-UV-TcmJq.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