@base-framework/ui 1.0.283 → 1.0.285
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,10 +1,10 @@
|
|
|
1
|
-
import { Div as n, H5 as J, P as m, I as p, Li as U, Span as i, Ul as R, Button as f, OnState as
|
|
2
|
-
import { Atom as c, Component as
|
|
3
|
-
import { P as S, b as
|
|
4
|
-
import { C as
|
|
1
|
+
import { Div as n, H5 as J, P as m, I as p, Li as U, Span as i, Ul as R, Button as f, OnState as v, Label as V, H2 as C, Form as K, Header as I, Footer as A, A as q, H3 as Q, Checkbox as X, Input as x, Img as Z, Nav as ee, UseParent as H, IfState as te, Time as se, Dialog as oe } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as c, Component as w, Html as L, Dom as ne, base as le, Data as $, Builder as Y, Jot as k, Events as re, DateTime as F } from "@base-framework/base";
|
|
3
|
+
import { P as S, b as ae, R as ie } from "./range-calendar-DW0cMOJy.js";
|
|
4
|
+
import { C as ce, F as ue, a as y } from "./veil-tVDPinrr.js";
|
|
5
5
|
import { B as h, I as g } from "./buttons-BKLL4I6r.js";
|
|
6
6
|
import { Icons as d } from "./icons.es.js";
|
|
7
|
-
import { Timer as
|
|
7
|
+
import { Timer as de, List as he, DynamicTime as fe } from "@base-framework/organisms";
|
|
8
8
|
import { F as P } from "./format-DnofNaaz.js";
|
|
9
9
|
const M = {
|
|
10
10
|
info: {
|
|
@@ -32,20 +32,20 @@ const M = {
|
|
|
32
32
|
bgColor: "bg-muted/10",
|
|
33
33
|
iconColor: "text-muted-foreground"
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, me = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
36
36
|
p({ html: e })
|
|
37
|
-
]),
|
|
37
|
+
]), pe = (e) => J({ class: "font-semibold" }, e), ge = (e) => m({ class: "text-sm text-muted-foreground" }, e), kt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
38
38
|
const { borderColor: l, bgColor: r, iconColor: a } = 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 && me(s, a),
|
|
42
42
|
n({ class: "flex flex-col" }, [
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
pe(e),
|
|
44
|
+
ge(t)
|
|
45
45
|
])
|
|
46
46
|
]);
|
|
47
47
|
});
|
|
48
|
-
class
|
|
48
|
+
class St extends w {
|
|
49
49
|
/**
|
|
50
50
|
* This will declare the props for the compiler.
|
|
51
51
|
*
|
|
@@ -66,24 +66,24 @@ class kt extends y {
|
|
|
66
66
|
L.removeElement(t);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
ne.addClass(t, s), le.on("animationend", t, (o) => L.removeElement(t));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const be = (e) => i({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), xe = (e) => i({ class: "flex w-4 h-4", html: e }), we = (e) => i({ class: "flex-auto" }, e), ye = (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 && xe(e.icon),
|
|
77
|
+
we(e.label),
|
|
78
|
+
e.shortcut && be(e.shortcut)
|
|
79
|
+
]), ve = (e, t) => R({ class: "grid gap-2" }, [
|
|
80
|
+
e.map((s) => ye(s, t))
|
|
81
|
+
]), Ce = (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) => ve(t, e)]
|
|
85
85
|
})
|
|
86
|
-
]),
|
|
86
|
+
]), ke = ({ label: e, icon: t, toggleDropdown: s }) => f({
|
|
87
87
|
cache: "button",
|
|
88
88
|
class: `inline-flex items-center justify-between rounded-md border
|
|
89
89
|
px-2 py-2 text-sm font-medium hover:bg-muted
|
|
@@ -92,19 +92,19 @@ const ge = (e) => i({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
92
92
|
}, [
|
|
93
93
|
e && i(e),
|
|
94
94
|
t && p({ html: t })
|
|
95
|
-
]),
|
|
96
|
-
|
|
95
|
+
]), Se = ({ onSelect: e }) => n([
|
|
96
|
+
v(
|
|
97
97
|
"open",
|
|
98
98
|
(t, s, o) => t ? new S({
|
|
99
99
|
cache: "dropdown",
|
|
100
100
|
parent: o,
|
|
101
101
|
button: o.button
|
|
102
102
|
}, [
|
|
103
|
-
|
|
103
|
+
Ce(e)
|
|
104
104
|
]) : null
|
|
105
105
|
)
|
|
106
106
|
]);
|
|
107
|
-
class
|
|
107
|
+
class Dt extends w {
|
|
108
108
|
/**
|
|
109
109
|
* This will declare the props for the compiler.
|
|
110
110
|
*
|
|
@@ -158,32 +158,32 @@ class St extends y {
|
|
|
158
158
|
*/
|
|
159
159
|
render() {
|
|
160
160
|
return n({ class: "relative" }, [
|
|
161
|
-
|
|
161
|
+
ke({
|
|
162
162
|
label: this.label,
|
|
163
163
|
icon: this.icon,
|
|
164
164
|
toggleDropdown: this.toggleDropdown.bind(this)
|
|
165
165
|
}),
|
|
166
|
-
|
|
166
|
+
Se({ onSelect: this.handleSelect.bind(this) })
|
|
167
167
|
]);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Ie = c((e, t) => V({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), $e = c((e, t) => m({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Te = c((e, t) => m({ ...e, class: "text-sm text-destructive" }, t)), It = c((e, t = []) => ce({ class: "space-y-0", margin: "m-0", padding: "p-0" }, [
|
|
171
171
|
e.title && C({ class: "text-lg font-semibold py-4 px-6" }, e.title),
|
|
172
172
|
e.description && m({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
|
|
173
173
|
...t
|
|
174
|
-
])),
|
|
174
|
+
])), $t = c((e, t = []) => ue({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
|
|
175
175
|
n({ class: "flex flex-col space-y-6" }, t)
|
|
176
|
-
])),
|
|
176
|
+
])), Tt = c((e, t = []) => {
|
|
177
177
|
const s = e.border ? "border-t" : "";
|
|
178
178
|
return n({ ...e, class: `flex flex-col pb-4 px-6 space-y-4 ${s} ${e.class || ""}` }, t);
|
|
179
|
-
}),
|
|
179
|
+
}), Be = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", _ = (e, t, s) => e.map((o) => !o || (o.children && o.children.length > 0 && (o.children = _(o.children, t, s)), !o.required) ? o : Be(o) ? {
|
|
180
180
|
...o,
|
|
181
181
|
aria: {
|
|
182
182
|
invalid: ["hasError"]
|
|
183
183
|
},
|
|
184
184
|
invalid: s,
|
|
185
185
|
input: t
|
|
186
|
-
} : o),
|
|
186
|
+
} : o), Fe = c((e, t) => {
|
|
187
187
|
const l = _(t, (r) => {
|
|
188
188
|
r.target.checkValidity() && e.setError(null);
|
|
189
189
|
}, (r) => {
|
|
@@ -193,7 +193,7 @@ const Se = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
193
193
|
...e,
|
|
194
194
|
class: "w-full"
|
|
195
195
|
}, l);
|
|
196
|
-
}),
|
|
196
|
+
}), Bt = y(
|
|
197
197
|
{
|
|
198
198
|
/**
|
|
199
199
|
* The initial state of the FormField.
|
|
@@ -218,34 +218,34 @@ const Se = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
218
218
|
this.state.error = r, this.state.hasError = !!r;
|
|
219
219
|
};
|
|
220
220
|
return n({ class: "flex flex-auto space-y-4" }, [
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
De([
|
|
222
|
+
Ie({ htmlFor: t }, s),
|
|
223
|
+
Fe({
|
|
224
224
|
id: t,
|
|
225
225
|
name: e,
|
|
226
226
|
value: this.state.value,
|
|
227
227
|
setError: l
|
|
228
228
|
}, this.children),
|
|
229
|
-
o &&
|
|
230
|
-
n({ onState: ["error", (r) => r &&
|
|
229
|
+
o && $e({ id: this.getId("description") }, o),
|
|
230
|
+
n({ onState: ["error", (r) => r && Te(r)] })
|
|
231
231
|
])
|
|
232
232
|
]);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
),
|
|
235
|
+
), Ae = (e, t, s = null) => {
|
|
236
236
|
e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
|
|
237
237
|
}, W = c(
|
|
238
|
-
(e, t) => K({ ...e, submit: (s, o) =>
|
|
239
|
-
),
|
|
238
|
+
(e, t) => K({ ...e, submit: (s, o) => Ae(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
|
|
239
|
+
), Ft = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), At = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
|
|
240
240
|
e.title && C({ class: "font-semibold" }, e.title),
|
|
241
241
|
...t
|
|
242
|
-
])),
|
|
242
|
+
])), Lt = (e, t) => n({ class: "flex justify-between" }, [
|
|
243
243
|
i({ class: "text-muted-foreground" }, e),
|
|
244
244
|
i(t)
|
|
245
|
-
]),
|
|
245
|
+
]), Pt = (e, t) => n({ class: "flex" }, [
|
|
246
246
|
i({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
247
247
|
i(t)
|
|
248
|
-
]),
|
|
248
|
+
]), Le = ({ 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" }, [
|
|
249
249
|
/**
|
|
250
250
|
* Back Button
|
|
251
251
|
*/
|
|
@@ -264,7 +264,7 @@ const Se = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
264
264
|
]),
|
|
265
265
|
...l
|
|
266
266
|
])
|
|
267
|
-
]),
|
|
267
|
+
]), Pe = c((e, t) => n({
|
|
268
268
|
popover: "manual",
|
|
269
269
|
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}`,
|
|
270
270
|
click: (s, o) => {
|
|
@@ -272,12 +272,12 @@ const Se = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
272
272
|
}
|
|
273
273
|
}, [
|
|
274
274
|
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) }, [
|
|
275
|
-
|
|
275
|
+
Le(e),
|
|
276
276
|
n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
|
|
277
277
|
A({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
|
|
278
278
|
])
|
|
279
|
-
])),
|
|
280
|
-
class
|
|
279
|
+
])), Me = (e) => Y.render(e, app.root);
|
|
280
|
+
class Mt extends w {
|
|
281
281
|
/**
|
|
282
282
|
* This will declare the props for the compiler.
|
|
283
283
|
*
|
|
@@ -293,7 +293,7 @@ class Pt extends y {
|
|
|
293
293
|
*/
|
|
294
294
|
render() {
|
|
295
295
|
const t = this.getMainClass(), s = this.title || "", o = this.description || null;
|
|
296
|
-
return
|
|
296
|
+
return Pe(
|
|
297
297
|
{
|
|
298
298
|
class: t,
|
|
299
299
|
title: s,
|
|
@@ -408,7 +408,7 @@ class Pt extends y {
|
|
|
408
408
|
* @returns {void}
|
|
409
409
|
*/
|
|
410
410
|
open() {
|
|
411
|
-
|
|
411
|
+
Me(this), this.showModal();
|
|
412
412
|
}
|
|
413
413
|
/**
|
|
414
414
|
* This will destroy the modal.
|
|
@@ -463,22 +463,22 @@ const N = {
|
|
|
463
463
|
borderColor: "border",
|
|
464
464
|
iconColor: "text-muted-foreground"
|
|
465
465
|
}
|
|
466
|
-
},
|
|
466
|
+
}, Ne = (e) => I({ class: "flex justify-center" }, [
|
|
467
467
|
Q({ class: "text-lg font-bold mb-0" }, e)
|
|
468
|
-
]),
|
|
468
|
+
]), ze = c(({ href: e, class: t }, s) => q({
|
|
469
469
|
class: `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}`,
|
|
470
470
|
href: e,
|
|
471
471
|
animateIn: "pullRightIn",
|
|
472
472
|
animateOut: "pullRight",
|
|
473
473
|
role: "alert"
|
|
474
|
-
}, s)),
|
|
474
|
+
}, s)), Ee = c(({ close: e, class: t }, s) => n({
|
|
475
475
|
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}`,
|
|
476
476
|
click: () => e(),
|
|
477
477
|
animateIn: "pullRightIn",
|
|
478
478
|
animateOut: "pullRight",
|
|
479
479
|
role: "alert"
|
|
480
480
|
}, s));
|
|
481
|
-
class
|
|
481
|
+
class je extends w {
|
|
482
482
|
/**
|
|
483
483
|
* This will declare the props for the compiler.
|
|
484
484
|
*
|
|
@@ -502,10 +502,10 @@ class Ee extends y {
|
|
|
502
502
|
*/
|
|
503
503
|
render() {
|
|
504
504
|
const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), l = this.href || null, r = this.getChildren(o);
|
|
505
|
-
return l ?
|
|
505
|
+
return l ? ze({
|
|
506
506
|
href: l,
|
|
507
507
|
class: `${t} ${s}`
|
|
508
|
-
}, r) :
|
|
508
|
+
}, r) : Ee({
|
|
509
509
|
close: this.close.bind(this),
|
|
510
510
|
class: `${t} ${s}`
|
|
511
511
|
}, r);
|
|
@@ -517,7 +517,7 @@ class Ee extends y {
|
|
|
517
517
|
*/
|
|
518
518
|
afterSetup() {
|
|
519
519
|
const t = this.duration;
|
|
520
|
-
t !== "infinite" && (this.timer = new
|
|
520
|
+
t !== "infinite" && (this.timer = new de(t, this.close.bind(this)), this.timer.start());
|
|
521
521
|
}
|
|
522
522
|
/**
|
|
523
523
|
* This will get the style properties based on the notification type.
|
|
@@ -553,7 +553,7 @@ class Ee extends y {
|
|
|
553
553
|
this.icon && p({ class: `mr-4 ${t}`, html: this.icon }),
|
|
554
554
|
n({ class: "flex flex-auto flex-col" }, [
|
|
555
555
|
n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
|
|
556
|
-
this.title &&
|
|
556
|
+
this.title && Ne(this.title)
|
|
557
557
|
]),
|
|
558
558
|
m({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
|
|
559
559
|
(this.primary || this.secondary) && A({ class: "margin-top-24 flex align-center" }, this.getButtons())
|
|
@@ -577,8 +577,8 @@ class Ee extends y {
|
|
|
577
577
|
t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
let
|
|
581
|
-
class
|
|
580
|
+
let Oe = 0;
|
|
581
|
+
class Nt extends w {
|
|
582
582
|
/**
|
|
583
583
|
* This will render the component.
|
|
584
584
|
*
|
|
@@ -586,11 +586,11 @@ class Mt extends y {
|
|
|
586
586
|
*/
|
|
587
587
|
render() {
|
|
588
588
|
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" }, [
|
|
589
|
-
new
|
|
589
|
+
new he({
|
|
590
590
|
cache: "list",
|
|
591
591
|
key: "id",
|
|
592
592
|
role: "list",
|
|
593
|
-
rowItem: (t) => new
|
|
593
|
+
rowItem: (t) => new je(t)
|
|
594
594
|
})
|
|
595
595
|
]);
|
|
596
596
|
}
|
|
@@ -601,7 +601,7 @@ class Mt extends y {
|
|
|
601
601
|
* @returns {void}
|
|
602
602
|
*/
|
|
603
603
|
addNotice(t = {}) {
|
|
604
|
-
t.id =
|
|
604
|
+
t.id = Oe++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
|
|
605
605
|
}
|
|
606
606
|
/**
|
|
607
607
|
* This will remove a notification.
|
|
@@ -618,12 +618,12 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
618
618
|
onState: ["method", { active: e }],
|
|
619
619
|
dataSet: ["method", ["state", e, "active"]],
|
|
620
620
|
click: (o, { state: l }) => {
|
|
621
|
-
l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"),
|
|
621
|
+
l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ue(e);
|
|
622
622
|
}
|
|
623
623
|
}, [
|
|
624
624
|
g(s),
|
|
625
625
|
i(t)
|
|
626
|
-
])),
|
|
626
|
+
])), Ue = (e) => {
|
|
627
627
|
var o;
|
|
628
628
|
const t = document.documentElement;
|
|
629
629
|
if (e === "system" && (e = (o = globalThis.matchMedia) != null && o.call(globalThis, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), z && !z("(prefers-color-scheme: " + e + ")").matches) {
|
|
@@ -632,7 +632,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
632
632
|
}
|
|
633
633
|
const s = e === "light" ? "dark" : "light";
|
|
634
634
|
t.classList.remove(s);
|
|
635
|
-
},
|
|
635
|
+
}, zt = k(
|
|
636
636
|
{
|
|
637
637
|
/**
|
|
638
638
|
* This will render the component.
|
|
@@ -659,7 +659,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
),
|
|
662
|
+
), Et = y(
|
|
663
663
|
{
|
|
664
664
|
/**
|
|
665
665
|
* The initial state of the Toggle.
|
|
@@ -721,9 +721,9 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
721
721
|
OFFLINE: "bg-gray-500",
|
|
722
722
|
BUSY: "bg-red-500",
|
|
723
723
|
AWAY: "bg-yellow-500"
|
|
724
|
-
},
|
|
725
|
-
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${
|
|
726
|
-
}),
|
|
724
|
+
}, Re = (e = "") => (e = e.toUpperCase(), b[e] || b.OFFLINE), jt = (e) => n({
|
|
725
|
+
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Re(e)}`
|
|
726
|
+
}), Ot = ({ propName: e = "status" } = {}) => n({
|
|
727
727
|
class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
|
|
728
728
|
onSet: [e, {
|
|
729
729
|
[b.ONLINE]: D.ONLINE,
|
|
@@ -731,7 +731,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
731
731
|
[b.BUSY]: D.BUSY,
|
|
732
732
|
[b.AWAY]: D.AWAY
|
|
733
733
|
}]
|
|
734
|
-
}),
|
|
734
|
+
}), Ut = k(
|
|
735
735
|
{
|
|
736
736
|
/**
|
|
737
737
|
* Get the initial state for the component.
|
|
@@ -751,7 +751,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
751
751
|
*/
|
|
752
752
|
openFileBrowse() {
|
|
753
753
|
const e = this.input;
|
|
754
|
-
e && (e.value = "",
|
|
754
|
+
e && (e.value = "", re.trigger("click", e));
|
|
755
755
|
},
|
|
756
756
|
/**
|
|
757
757
|
* Get the URL for the uploaded file.
|
|
@@ -770,7 +770,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
770
770
|
render() {
|
|
771
771
|
const e = "logo-upload", t = this.onChange || null;
|
|
772
772
|
return n({ class: "flex-none items-center" }, [
|
|
773
|
-
|
|
773
|
+
x({
|
|
774
774
|
id: e,
|
|
775
775
|
cache: "input",
|
|
776
776
|
type: "file",
|
|
@@ -788,7 +788,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
788
788
|
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
789
789
|
}
|
|
790
790
|
}, [
|
|
791
|
-
|
|
791
|
+
v(
|
|
792
792
|
"loaded",
|
|
793
793
|
(s) => s ? Z({
|
|
794
794
|
// @ts-ignore
|
|
@@ -806,7 +806,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
806
806
|
]);
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
),
|
|
809
|
+
), Ve = (e, t) => q(
|
|
810
810
|
{
|
|
811
811
|
href: e,
|
|
812
812
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -814,14 +814,14 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
814
814
|
class: "text-muted-foreground font-medium hover:text-foreground"
|
|
815
815
|
},
|
|
816
816
|
[i(t)]
|
|
817
|
-
),
|
|
817
|
+
), qe = () => g({
|
|
818
818
|
class: "mx-3 text-muted-foreground",
|
|
819
819
|
"aria-hidden": !0,
|
|
820
820
|
size: "xs"
|
|
821
|
-
}, d.chevron.single.right),
|
|
822
|
-
e.href ?
|
|
823
|
-
e.separator &&
|
|
824
|
-
]),
|
|
821
|
+
}, d.chevron.single.right), He = (e) => n({ class: "flex items-center" }, [
|
|
822
|
+
e.href ? Ve(e.href, e.label) : i(e.label),
|
|
823
|
+
e.separator && qe()
|
|
824
|
+
]), Rt = k(
|
|
825
825
|
{
|
|
826
826
|
/**
|
|
827
827
|
* Set initial data
|
|
@@ -850,7 +850,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
850
850
|
n({
|
|
851
851
|
role: "list",
|
|
852
852
|
class: "flex items-center",
|
|
853
|
-
for: ["items", (t, s) =>
|
|
853
|
+
for: ["items", (t, s) => He({
|
|
854
854
|
href: t.href,
|
|
855
855
|
label: t.label,
|
|
856
856
|
separator: s < e
|
|
@@ -869,7 +869,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
869
869
|
"2xl": "h-16 w-16",
|
|
870
870
|
"3xl": "h-24 w-24",
|
|
871
871
|
default: "h-4 w-4"
|
|
872
|
-
},
|
|
872
|
+
}, Ye = (e) => E[e] || E.default, _e = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
873
873
|
i({
|
|
874
874
|
class: "block w-full h-full rounded-full transition-colors",
|
|
875
875
|
onSet: ["activeIndex", {
|
|
@@ -880,10 +880,10 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
880
880
|
o.activeIndex = e, l && l(e);
|
|
881
881
|
}
|
|
882
882
|
})
|
|
883
|
-
]),
|
|
883
|
+
]), We = (e, t) => Array.from({ length: e }, (s, o) => _e({
|
|
884
884
|
index: o,
|
|
885
885
|
size: t
|
|
886
|
-
})),
|
|
886
|
+
})), Vt = k(
|
|
887
887
|
{
|
|
888
888
|
/**
|
|
889
889
|
* Defines component data (props).
|
|
@@ -905,7 +905,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
905
905
|
* @returns {object}
|
|
906
906
|
*/
|
|
907
907
|
render() {
|
|
908
|
-
const e = this.gap || "gap-2", t =
|
|
908
|
+
const e = this.gap || "gap-2", t = Ye(this.size || "sm"), s = We(this.data.count, t);
|
|
909
909
|
return n(
|
|
910
910
|
{ class: "flex justify-center items-center py-2" },
|
|
911
911
|
[
|
|
@@ -914,7 +914,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
914
914
|
);
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
),
|
|
917
|
+
), Ge = ({ toggleDropdown: e }) => f(
|
|
918
918
|
{
|
|
919
919
|
cache: "button",
|
|
920
920
|
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 bg-input hover:bg-muted h-10 px-4 py-2 justify-between",
|
|
@@ -924,27 +924,27 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
924
924
|
i({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
|
|
925
925
|
p({ html: d.chevron.upDown })
|
|
926
926
|
]
|
|
927
|
-
),
|
|
927
|
+
), Je = (e, t, s) => U({
|
|
928
928
|
class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
|
|
929
929
|
click: () => t(e),
|
|
930
930
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
931
931
|
}, [
|
|
932
932
|
e.icon && i({ class: "mr-2 flex items-baseline" }, [g({ size: "xs" }, e.icon)]),
|
|
933
933
|
i({ class: "text-base font-normal" }, e.label)
|
|
934
|
-
]),
|
|
935
|
-
R({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) =>
|
|
936
|
-
]),
|
|
937
|
-
|
|
934
|
+
]), Ke = (e, t) => n({ class: "w-full border rounded-md" }, [
|
|
935
|
+
R({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Je(s, e, t)] })
|
|
936
|
+
]), Qe = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
937
|
+
v(
|
|
938
938
|
"open",
|
|
939
939
|
(s, o, l) => s ? new S({
|
|
940
940
|
cache: "dropdown",
|
|
941
941
|
parent: l,
|
|
942
942
|
button: l.button
|
|
943
943
|
}, [
|
|
944
|
-
|
|
944
|
+
Ke(e, t)
|
|
945
945
|
]) : null
|
|
946
946
|
)
|
|
947
|
-
]),
|
|
947
|
+
]), qt = k(
|
|
948
948
|
{
|
|
949
949
|
/**
|
|
950
950
|
* This will set up the data.
|
|
@@ -1025,8 +1025,8 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1025
1025
|
const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
|
|
1026
1026
|
return n({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
|
|
1027
1027
|
// @ts-ignore
|
|
1028
|
-
|
|
1029
|
-
|
|
1028
|
+
Ge({ toggleDropdown: this.toggleDropdown.bind(this) }),
|
|
1029
|
+
Qe({
|
|
1030
1030
|
// @ts-ignore
|
|
1031
1031
|
state: this.state,
|
|
1032
1032
|
// @ts-ignore
|
|
@@ -1034,7 +1034,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1034
1034
|
}),
|
|
1035
1035
|
// Hidden required input for form validation
|
|
1036
1036
|
// @ts-ignore
|
|
1037
|
-
this.required &&
|
|
1037
|
+
this.required && x({
|
|
1038
1038
|
class: "opacity-0 absolute top-0 left-0 z-[1]",
|
|
1039
1039
|
type: "text",
|
|
1040
1040
|
// @ts-ignore
|
|
@@ -1052,15 +1052,15 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1052
1052
|
click: t,
|
|
1053
1053
|
icon: e,
|
|
1054
1054
|
"aria-label": s
|
|
1055
|
-
}),
|
|
1055
|
+
}), Xe = ({ click: e }) => G({
|
|
1056
1056
|
icon: d.circleMinus,
|
|
1057
1057
|
click: e,
|
|
1058
1058
|
ariaLabel: "Decrement"
|
|
1059
|
-
}),
|
|
1059
|
+
}), Ze = ({ click: e }) => G({
|
|
1060
1060
|
icon: d.circlePlus,
|
|
1061
1061
|
click: e,
|
|
1062
1062
|
ariaLabel: "Increment"
|
|
1063
|
-
}),
|
|
1063
|
+
}), et = ({ bind: e, min: t, max: s, readonly: o = !1 }) => H(({ state: l }) => x({
|
|
1064
1064
|
value: ["[[count]]", l],
|
|
1065
1065
|
bind: e,
|
|
1066
1066
|
blur: (r, { state: a }) => {
|
|
@@ -1073,7 +1073,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1073
1073
|
max: s,
|
|
1074
1074
|
type: "number",
|
|
1075
1075
|
"aria-label": "Counter"
|
|
1076
|
-
})),
|
|
1076
|
+
})), Ht = y(
|
|
1077
1077
|
{
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Initial state for the counter component.
|
|
@@ -1096,46 +1096,47 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1096
1096
|
render() {
|
|
1097
1097
|
const e = this.class ?? "";
|
|
1098
1098
|
return n({ class: `flex flex-auto items-center justify-between space-x-4 p-4 ${e}` }, [
|
|
1099
|
-
|
|
1100
|
-
|
|
1099
|
+
Xe({ click: () => this.state.decrement("count") }),
|
|
1100
|
+
et({
|
|
1101
1101
|
bind: this.bind,
|
|
1102
1102
|
readonly: this.readonly,
|
|
1103
1103
|
min: this.min,
|
|
1104
1104
|
max: this.max
|
|
1105
1105
|
}),
|
|
1106
|
-
|
|
1106
|
+
Ze({ click: () => this.state.increment("count") })
|
|
1107
1107
|
]);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
),
|
|
1110
|
+
), tt = ({ bind: e, required: t }) => x({
|
|
1111
1111
|
cache: "input",
|
|
1112
1112
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1113
1113
|
bind: e,
|
|
1114
1114
|
required: t
|
|
1115
|
-
}),
|
|
1115
|
+
}), st = ({ bind: e, required: t, toggleOpen: s }) => f({
|
|
1116
1116
|
class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
1117
1117
|
click: s
|
|
1118
1118
|
}, [
|
|
1119
|
-
|
|
1119
|
+
tt({ bind: e, required: t }),
|
|
1120
1120
|
i({
|
|
1121
1121
|
onState: ["selectedDate", (o) => o ? F.format("standard", o) : "Pick a date"]
|
|
1122
1122
|
}),
|
|
1123
1123
|
p({ html: d.calendar.days })
|
|
1124
|
-
]),
|
|
1124
|
+
]), ot = ({ handleDateSelect: e, blockPriorDates: t }) => te(
|
|
1125
1125
|
"open",
|
|
1126
|
-
|
|
1126
|
+
!0,
|
|
1127
|
+
(s, o, l) => new S({
|
|
1127
1128
|
cache: "dropdown",
|
|
1128
1129
|
parent: l,
|
|
1129
1130
|
button: l.panel,
|
|
1130
1131
|
size: "fit"
|
|
1131
1132
|
}, [
|
|
1132
|
-
new
|
|
1133
|
+
new ae({
|
|
1133
1134
|
selectedDate: l.state.selectedDate,
|
|
1134
1135
|
selectedCallBack: e,
|
|
1135
1136
|
blockPriorDates: t
|
|
1136
1137
|
})
|
|
1137
|
-
])
|
|
1138
|
-
),
|
|
1138
|
+
])
|
|
1139
|
+
), Yt = y(
|
|
1139
1140
|
{
|
|
1140
1141
|
/**
|
|
1141
1142
|
* The initial state of the DatePicker.
|
|
@@ -1164,38 +1165,38 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1164
1165
|
*/
|
|
1165
1166
|
render() {
|
|
1166
1167
|
const e = (s, { state: o }) => o.toggle("open"), t = (s) => {
|
|
1167
|
-
this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
|
|
1168
|
+
console.log(this, this.data), this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
|
|
1168
1169
|
};
|
|
1169
1170
|
return n({ class: "relative w-full max-w-[320px]" }, [
|
|
1170
|
-
|
|
1171
|
+
st({
|
|
1171
1172
|
toggleOpen: e,
|
|
1172
1173
|
bind: this.bind,
|
|
1173
1174
|
required: this.required
|
|
1174
1175
|
}),
|
|
1175
|
-
|
|
1176
|
+
ot({
|
|
1176
1177
|
handleDateSelect: t,
|
|
1177
1178
|
blockPriorDates: this.blockPriorDates || !1
|
|
1178
1179
|
})
|
|
1179
1180
|
]);
|
|
1180
1181
|
}
|
|
1181
1182
|
}
|
|
1182
|
-
),
|
|
1183
|
+
), nt = ({ bind: e, required: t }) => x({
|
|
1183
1184
|
cache: "input",
|
|
1184
1185
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1185
1186
|
bind: e,
|
|
1186
1187
|
required: t
|
|
1187
|
-
}),
|
|
1188
|
+
}), lt = ({ bind: e, required: t, toggleOpen: s }) => f({
|
|
1188
1189
|
class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
1189
1190
|
click: s
|
|
1190
1191
|
}, [
|
|
1191
|
-
|
|
1192
|
+
nt({ bind: e, required: t }),
|
|
1192
1193
|
H(({ state: o }) => [
|
|
1193
1194
|
i(P.date(["[[start]]", o], "Start Date")),
|
|
1194
1195
|
i(" - "),
|
|
1195
1196
|
i(P.date(["[[end]]", o], "End Date"))
|
|
1196
1197
|
]),
|
|
1197
1198
|
p({ html: d.calendar.days })
|
|
1198
|
-
]),
|
|
1199
|
+
]), rt = ({ handleDateSelect: e, blockPriorDates: t }) => v(
|
|
1199
1200
|
"open",
|
|
1200
1201
|
(s, o, l) => s ? new S({
|
|
1201
1202
|
cache: "dropdown",
|
|
@@ -1203,14 +1204,14 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1203
1204
|
button: l.panel,
|
|
1204
1205
|
size: "xl"
|
|
1205
1206
|
}, [
|
|
1206
|
-
new
|
|
1207
|
+
new ie({
|
|
1207
1208
|
startDate: l.state.start,
|
|
1208
1209
|
endDate: l.state.end,
|
|
1209
1210
|
onRangeSelect: e,
|
|
1210
1211
|
blockPriorDates: t
|
|
1211
1212
|
})
|
|
1212
1213
|
]) : null
|
|
1213
|
-
),
|
|
1214
|
+
), _t = y(
|
|
1214
1215
|
{
|
|
1215
1216
|
/**
|
|
1216
1217
|
* The initial state of the DateRangePicker.
|
|
@@ -1246,20 +1247,20 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1246
1247
|
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);
|
|
1247
1248
|
};
|
|
1248
1249
|
return n({ class: "relative w-full max-w-[320px]" }, [
|
|
1249
|
-
|
|
1250
|
+
lt({
|
|
1250
1251
|
toggleOpen: e,
|
|
1251
1252
|
bind: this.bind,
|
|
1252
1253
|
required: this.required
|
|
1253
1254
|
}),
|
|
1254
|
-
|
|
1255
|
+
rt({
|
|
1255
1256
|
handleDateSelect: t,
|
|
1256
1257
|
blockPriorDates: this.blockPriorDates || !1
|
|
1257
1258
|
})
|
|
1258
1259
|
]);
|
|
1259
1260
|
}
|
|
1260
1261
|
}
|
|
1261
|
-
),
|
|
1262
|
-
new
|
|
1262
|
+
), Wt = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => se([
|
|
1263
|
+
new fe({
|
|
1263
1264
|
dateTime: e,
|
|
1264
1265
|
filter: s || ((o) => {
|
|
1265
1266
|
const l = F.getLocalTime(o, !0, !1, t);
|
|
@@ -1267,22 +1268,22 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1267
1268
|
})
|
|
1268
1269
|
})
|
|
1269
1270
|
]);
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1271
|
+
function at({ bind: e, required: t }) {
|
|
1272
|
+
return x({
|
|
1272
1273
|
cache: "input",
|
|
1273
1274
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1274
1275
|
bind: e,
|
|
1275
1276
|
required: t
|
|
1276
1277
|
});
|
|
1277
1278
|
}
|
|
1278
|
-
function
|
|
1279
|
+
function it({ bind: e, required: t, toggleOpen: s }) {
|
|
1279
1280
|
return f(
|
|
1280
1281
|
{
|
|
1281
1282
|
class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
1282
1283
|
click: s
|
|
1283
1284
|
},
|
|
1284
1285
|
[
|
|
1285
|
-
|
|
1286
|
+
at({ bind: e, required: t }),
|
|
1286
1287
|
i({
|
|
1287
1288
|
onState: ["selectedTime", (o) => o || "Pick a time"]
|
|
1288
1289
|
}),
|
|
@@ -1304,8 +1305,8 @@ function B({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
|
|
|
1304
1305
|
})
|
|
1305
1306
|
);
|
|
1306
1307
|
}
|
|
1307
|
-
function
|
|
1308
|
-
return
|
|
1308
|
+
function ct({ handleTimeSelect: e }) {
|
|
1309
|
+
return v(
|
|
1309
1310
|
"open",
|
|
1310
1311
|
(t, s, o) => t ? new S(
|
|
1311
1312
|
{
|
|
@@ -1365,7 +1366,7 @@ function j(e) {
|
|
|
1365
1366
|
meridian: r
|
|
1366
1367
|
});
|
|
1367
1368
|
}
|
|
1368
|
-
const
|
|
1369
|
+
const Gt = y(
|
|
1369
1370
|
{
|
|
1370
1371
|
/**
|
|
1371
1372
|
* The initial shallow state of the TimePicker.
|
|
@@ -1413,23 +1414,23 @@ const Wt = v(
|
|
|
1413
1414
|
return n(
|
|
1414
1415
|
{ class: "relative w-full max-w-[320px]" },
|
|
1415
1416
|
[
|
|
1416
|
-
|
|
1417
|
+
it({
|
|
1417
1418
|
toggleOpen: e,
|
|
1418
1419
|
bind: this.bind,
|
|
1419
1420
|
required: this.required
|
|
1420
1421
|
}),
|
|
1421
|
-
|
|
1422
|
+
ct({
|
|
1422
1423
|
handleTimeSelect: t
|
|
1423
1424
|
})
|
|
1424
1425
|
]
|
|
1425
1426
|
);
|
|
1426
1427
|
}
|
|
1427
1428
|
}
|
|
1428
|
-
),
|
|
1429
|
+
), ut = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
|
|
1429
1430
|
g({ size: "lg" }, e)
|
|
1430
|
-
]),
|
|
1431
|
+
]), dt = ({ title: e }) => I({ class: "flex flex-auto items-center" }, [
|
|
1431
1432
|
C({ class: "text-lg font-semibold" }, e)
|
|
1432
|
-
]),
|
|
1433
|
+
]), ht = c((e, t) => oe(
|
|
1433
1434
|
{
|
|
1434
1435
|
class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
|
|
1435
1436
|
rounded-lg flex flex-auto flex-col
|
|
@@ -1440,10 +1441,10 @@ const Wt = v(
|
|
|
1440
1441
|
[
|
|
1441
1442
|
n({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
|
|
1442
1443
|
// Icon and content
|
|
1443
|
-
e.icon &&
|
|
1444
|
+
e.icon && ut(e.icon, e.iconColor),
|
|
1444
1445
|
n({ class: "flex flex-auto flex-col gap-4" }, [
|
|
1445
1446
|
n({ class: "flex flex-auto flex-col space-y-2" }, [
|
|
1446
|
-
|
|
1447
|
+
dt(e),
|
|
1447
1448
|
e.description && m({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
|
|
1448
1449
|
n({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
|
|
1449
1450
|
]),
|
|
@@ -1451,7 +1452,7 @@ const Wt = v(
|
|
|
1451
1452
|
])
|
|
1452
1453
|
])
|
|
1453
1454
|
]
|
|
1454
|
-
)),
|
|
1455
|
+
)), ft = (e) => Y.render(e, app.root), O = {
|
|
1455
1456
|
info: {
|
|
1456
1457
|
borderColor: "border-blue-500",
|
|
1457
1458
|
bgColor: "bg-muted/10",
|
|
@@ -1478,7 +1479,7 @@ const Wt = v(
|
|
|
1478
1479
|
iconColor: "text-muted-foreground"
|
|
1479
1480
|
}
|
|
1480
1481
|
};
|
|
1481
|
-
class
|
|
1482
|
+
class mt extends w {
|
|
1482
1483
|
/**
|
|
1483
1484
|
* This will declare the props for the compiler.
|
|
1484
1485
|
*
|
|
@@ -1496,7 +1497,7 @@ class ft extends y {
|
|
|
1496
1497
|
const t = (u) => {
|
|
1497
1498
|
u.target === this.panel && this.close();
|
|
1498
1499
|
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, a = this.title || "Dialog Title";
|
|
1499
|
-
return
|
|
1500
|
+
return ht({
|
|
1500
1501
|
class: r,
|
|
1501
1502
|
title: a,
|
|
1502
1503
|
click: t,
|
|
@@ -1540,7 +1541,7 @@ class ft extends y {
|
|
|
1540
1541
|
* @returns {void}
|
|
1541
1542
|
*/
|
|
1542
1543
|
open() {
|
|
1543
|
-
|
|
1544
|
+
ft(this), this.panel.showModal(), this.state.open = !0;
|
|
1544
1545
|
}
|
|
1545
1546
|
/**
|
|
1546
1547
|
* This will close the modal.
|
|
@@ -1551,7 +1552,7 @@ class ft extends y {
|
|
|
1551
1552
|
this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
|
|
1552
1553
|
}
|
|
1553
1554
|
}
|
|
1554
|
-
class
|
|
1555
|
+
class Jt extends mt {
|
|
1555
1556
|
/**
|
|
1556
1557
|
* This will declare the props for the compiler.
|
|
1557
1558
|
*
|
|
@@ -1581,7 +1582,7 @@ class Gt extends ft {
|
|
|
1581
1582
|
this.confirmed && this.confirmed(), this.close();
|
|
1582
1583
|
}
|
|
1583
1584
|
}
|
|
1584
|
-
const
|
|
1585
|
+
const Kt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
1585
1586
|
W({ class: "flex flex-auto flex-col" }, [
|
|
1586
1587
|
n({ class: "flex flex-auto flex-col space-y-4" }, [
|
|
1587
1588
|
n({ class: "flex flex-auto items-center justify-center" }, [
|
|
@@ -1598,49 +1599,49 @@ const Jt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
|
1598
1599
|
])
|
|
1599
1600
|
]));
|
|
1600
1601
|
export {
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1602
|
+
kt as A,
|
|
1603
|
+
Rt as B,
|
|
1604
|
+
Pt as C,
|
|
1605
|
+
St as D,
|
|
1606
|
+
Yt as E,
|
|
1607
|
+
De as F,
|
|
1608
|
+
_t as G,
|
|
1609
|
+
Wt as H,
|
|
1610
|
+
Gt as I,
|
|
1611
|
+
Jt as J,
|
|
1612
|
+
ht as K,
|
|
1613
|
+
Ut as L,
|
|
1614
|
+
Mt as M,
|
|
1615
|
+
Nt as N,
|
|
1616
|
+
mt as O,
|
|
1617
|
+
Ze as P,
|
|
1618
|
+
Kt as Q,
|
|
1619
|
+
Lt as S,
|
|
1620
|
+
zt as T,
|
|
1621
|
+
ye as a,
|
|
1622
|
+
Dt as b,
|
|
1623
|
+
Ce as c,
|
|
1624
|
+
Ie as d,
|
|
1625
|
+
$e as e,
|
|
1626
|
+
Te as f,
|
|
1627
|
+
It as g,
|
|
1628
|
+
$t as h,
|
|
1629
|
+
Tt as i,
|
|
1630
|
+
Fe as j,
|
|
1631
|
+
Bt as k,
|
|
1631
1632
|
W as l,
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1633
|
+
Ft as m,
|
|
1634
|
+
At as n,
|
|
1635
|
+
je as o,
|
|
1636
|
+
Et as p,
|
|
1637
|
+
jt as q,
|
|
1638
|
+
Ot as r,
|
|
1638
1639
|
D as s,
|
|
1639
1640
|
b as t,
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1641
|
+
Re as u,
|
|
1642
|
+
Vt as v,
|
|
1643
|
+
qt as w,
|
|
1644
|
+
Xe as x,
|
|
1645
|
+
et as y,
|
|
1646
|
+
Ht as z
|
|
1646
1647
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { B as d, I as g, L as C } from "./buttons-BKLL4I6r.js";
|
|
|
3
3
|
import { C as T, F as D, V as I, a as b } from "./veil-tVDPinrr.js";
|
|
4
4
|
import { C as F, d as P, D as B, c as k, E as M, F as f, H as x, I as N, M as v, N as y, P as h, R as L, T as W, a as H, b as A, U as R, W as w } from "./inputs-DYxmO1rQ.js";
|
|
5
5
|
import { Icons as G } from "./icons.es.js";
|
|
6
|
-
import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as ba, N as Sa, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-
|
|
6
|
+
import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as ba, N as Sa, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-BcVcVLhU.js";
|
|
7
7
|
import { A as Wa, b as Ha, C as Aa, D as Ra, a as wa, F as Ua, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-DW0cMOJy.js";
|
|
8
8
|
import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as be, b as Se, e as Fe, a as Pe, g as Be } from "./signature-panel-BEO99NlI.js";
|
|
9
9
|
import { B as Me, I as fe, M as xe, d as Ne, e as ve, g as ye, N as he, b as Le, a as We, f as He, P as Ae, c as Re, S as we, T as Ue } from "./mobile-nav-wrapper-C7RyGC5a.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-
|
|
1
|
+
import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-BcVcVLhU.js";
|
|
2
2
|
import { A as V, P as W, g as X } from "./range-calendar-DW0cMOJy.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
package/package.json
CHANGED