@base-framework/ui 1.0.248 → 1.0.249
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 G, P as b, I as m, Li as V, Span as
|
|
2
|
-
import { Atom as c, Component as
|
|
3
|
-
import { P as k, b as re, R as
|
|
1
|
+
import { Div as n, H5 as G, P as b, I as m, Li as V, Span as i, 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 y, 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 ae } 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
|
|
7
|
-
import { a as
|
|
6
|
+
import { Timer as ie, List as ce, DynamicTime as de } from "@base-framework/organisms";
|
|
7
|
+
import { a as v } from "./veil-D4dRxILB.js";
|
|
8
8
|
import { F } from "./format-DnofNaaz.js";
|
|
9
9
|
const M = {
|
|
10
10
|
info: {
|
|
@@ -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
|
-
]), he = (e) => G({ class: "font-semibold" }, e), fe = (e) => b({ class: "text-sm text-muted-foreground" }, e),
|
|
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), yt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
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 && ue(s,
|
|
41
|
+
s && ue(s, a),
|
|
42
42
|
n({ class: "flex flex-col" }, [
|
|
43
43
|
he(e),
|
|
44
44
|
fe(t)
|
|
45
45
|
])
|
|
46
46
|
]);
|
|
47
47
|
});
|
|
48
|
-
class me extends
|
|
48
|
+
class me extends y {
|
|
49
49
|
/**
|
|
50
50
|
* This will declare the props for the compiler.
|
|
51
51
|
*
|
|
@@ -69,7 +69,7 @@ class me extends v {
|
|
|
69
69
|
oe.addClass(t, s), ne.on("animationend", t, (o) => P.removeElement(t));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const pe = (e) =>
|
|
72
|
+
const pe = (e) => i({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), ge = (e) => i({ class: "flex w-4 h-4", html: e }), be = (e) => i({ 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
|
}, [
|
|
@@ -78,19 +78,19 @@ const pe = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
78
78
|
e.shortcut && pe(e.shortcut)
|
|
79
79
|
]), we = (e, t) => U({ class: "grid gap-2" }, [
|
|
80
80
|
e.map((s) => xe(s, t))
|
|
81
|
-
]),
|
|
81
|
+
]), ve = (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
84
|
for: ["groups", (t) => we(t, e)]
|
|
85
85
|
})
|
|
86
|
-
]),
|
|
86
|
+
]), ye = ({ 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 && i(e),
|
|
94
94
|
t && m({ html: t })
|
|
95
95
|
]), Ce = ({ onSelect: e }) => n([
|
|
96
96
|
x(
|
|
@@ -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
|
+
ve(e)
|
|
104
104
|
]) : null
|
|
105
105
|
)
|
|
106
106
|
]);
|
|
107
|
-
class Ct extends
|
|
107
|
+
class Ct extends y {
|
|
108
108
|
/**
|
|
109
109
|
* This will declare the props for the compiler.
|
|
110
110
|
*
|
|
@@ -158,7 +158,7 @@ class Ct extends v {
|
|
|
158
158
|
*/
|
|
159
159
|
render() {
|
|
160
160
|
return n({ class: "relative" }, [
|
|
161
|
-
|
|
161
|
+
ye({
|
|
162
162
|
label: this.label,
|
|
163
163
|
icon: this.icon,
|
|
164
164
|
toggleDropdown: this.toggleDropdown.bind(this)
|
|
@@ -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
|
-
}), kt =
|
|
187
|
+
}), kt = v(
|
|
188
188
|
{
|
|
189
189
|
/**
|
|
190
190
|
* The initial state of the FormField.
|
|
@@ -231,16 +231,16 @@ const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
231
231
|
e.title && D({ class: "font-semibold" }, e.title),
|
|
232
232
|
...t
|
|
233
233
|
])), It = (e, t) => n({ class: "flex justify-between" }, [
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
i({ class: "text-muted-foreground" }, e),
|
|
235
|
+
i(t)
|
|
236
236
|
]), $t = (e, t) => n({ class: "flex" }, [
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
i({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
238
|
+
i(t)
|
|
239
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, a) => a.close() }),
|
|
244
244
|
/**
|
|
245
245
|
* Icon
|
|
246
246
|
*/
|
|
@@ -268,7 +268,7 @@ const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, 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
270
|
])), Pe = (e) => Y.render(e, app.root);
|
|
271
|
-
class Tt extends
|
|
271
|
+
class Tt extends y {
|
|
272
272
|
/**
|
|
273
273
|
* This will declare the props for the compiler.
|
|
274
274
|
*
|
|
@@ -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.
|
|
@@ -565,7 +565,7 @@ class Ne extends me {
|
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
let Ee = 0;
|
|
568
|
-
class Bt extends
|
|
568
|
+
class Bt extends y {
|
|
569
569
|
/**
|
|
570
570
|
* This will render the component.
|
|
571
571
|
*
|
|
@@ -609,7 +609,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
609
609
|
}
|
|
610
610
|
}, [
|
|
611
611
|
p(s),
|
|
612
|
-
|
|
612
|
+
i(t)
|
|
613
613
|
])), je = (e) => {
|
|
614
614
|
var o;
|
|
615
615
|
const t = document.documentElement;
|
|
@@ -646,7 +646,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
), Lt =
|
|
649
|
+
), Lt = v(
|
|
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
|
+
i({
|
|
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
|
})
|
|
@@ -738,7 +738,9 @@ 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 = "", le.trigger("click", e
|
|
741
|
+
e && (e.value = "", le.trigger("click", e, {
|
|
742
|
+
bubbles: !1
|
|
743
|
+
}));
|
|
742
744
|
},
|
|
743
745
|
/**
|
|
744
746
|
* Render the component.
|
|
@@ -748,9 +750,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
748
750
|
render() {
|
|
749
751
|
const e = "logo-upload", t = this.onChange || null;
|
|
750
752
|
return n({
|
|
751
|
-
class: "relative w-32 h-32 rounded-full border
|
|
752
|
-
|
|
753
|
-
|
|
753
|
+
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",
|
|
754
|
+
click: (s) => {
|
|
755
|
+
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
756
|
+
}
|
|
754
757
|
}, [
|
|
755
758
|
w({
|
|
756
759
|
id: e,
|
|
@@ -788,13 +791,13 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
788
791
|
// Only set aria-current on the last item
|
|
789
792
|
class: "text-muted-foreground font-medium hover:text-foreground"
|
|
790
793
|
},
|
|
791
|
-
[
|
|
794
|
+
[i(t)]
|
|
792
795
|
), Ue = () => p({
|
|
793
796
|
class: "mx-3 text-muted-foreground",
|
|
794
797
|
"aria-hidden": !0,
|
|
795
798
|
size: "xs"
|
|
796
799
|
}, u.chevron.single.right), qe = (e) => n({ class: "flex items-center" }, [
|
|
797
|
-
e.href ? Ve(e.href, e.label) :
|
|
800
|
+
e.href ? Ve(e.href, e.label) : i(e.label),
|
|
798
801
|
e.separator && Ue()
|
|
799
802
|
]), zt = C(
|
|
800
803
|
{
|
|
@@ -845,7 +848,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
845
848
|
"3xl": "h-24 w-24",
|
|
846
849
|
default: "h-4 w-4"
|
|
847
850
|
}, He = (e) => E[e] || E.default, Re = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
848
|
-
|
|
851
|
+
i({
|
|
849
852
|
class: "block w-full h-full rounded-full transition-colors",
|
|
850
853
|
onSet: ["activeIndex", {
|
|
851
854
|
"bg-primary": e,
|
|
@@ -896,7 +899,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
896
899
|
click: e
|
|
897
900
|
},
|
|
898
901
|
[
|
|
899
|
-
|
|
902
|
+
i({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
|
|
900
903
|
m({ html: u.chevron.upDown })
|
|
901
904
|
]
|
|
902
905
|
), We = (e, t, s) => V({
|
|
@@ -904,8 +907,8 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
904
907
|
click: () => t(e),
|
|
905
908
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
906
909
|
}, [
|
|
907
|
-
e.icon &&
|
|
908
|
-
|
|
910
|
+
e.icon && i({ class: "mr-2 flex items-baseline" }, [p({ size: "xs" }, e.icon)]),
|
|
911
|
+
i({ class: "text-base font-normal" }, e.label)
|
|
909
912
|
]), Je = (e, t) => n({ class: "w-full border rounded-md" }, [
|
|
910
913
|
U({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => We(s, e, t)] })
|
|
911
914
|
]), Ge = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
@@ -1038,9 +1041,9 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1038
1041
|
}), Xe = ({ bind: e, min: t, max: s, readonly: o = !1 }) => R(({ state: l }) => w({
|
|
1039
1042
|
value: ["[[count]]", l],
|
|
1040
1043
|
bind: e,
|
|
1041
|
-
blur: (r, { state:
|
|
1044
|
+
blur: (r, { state: a }) => {
|
|
1042
1045
|
let d = parseInt(r.target.value, 10);
|
|
1043
|
-
isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)),
|
|
1046
|
+
isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)), a.count = d;
|
|
1044
1047
|
},
|
|
1045
1048
|
class: "flex flex-auto text-lg font-medium bg-transparent text-center border min-w-0",
|
|
1046
1049
|
readonly: o,
|
|
@@ -1048,7 +1051,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1048
1051
|
max: s,
|
|
1049
1052
|
type: "number",
|
|
1050
1053
|
"aria-label": "Counter"
|
|
1051
|
-
})), jt =
|
|
1054
|
+
})), jt = v(
|
|
1052
1055
|
{
|
|
1053
1056
|
/**
|
|
1054
1057
|
* Initial state for the counter component.
|
|
@@ -1092,7 +1095,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1092
1095
|
click: s
|
|
1093
1096
|
}, [
|
|
1094
1097
|
Ze({ bind: e, required: t }),
|
|
1095
|
-
|
|
1098
|
+
i({
|
|
1096
1099
|
onState: ["selectedDate", (o) => o ? A.format("standard", o) : "Pick a date"]
|
|
1097
1100
|
}),
|
|
1098
1101
|
m({ html: u.calendar.days })
|
|
@@ -1110,7 +1113,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1110
1113
|
blockPriorDates: t
|
|
1111
1114
|
})
|
|
1112
1115
|
]) : null
|
|
1113
|
-
), Ot =
|
|
1116
|
+
), Ot = v(
|
|
1114
1117
|
{
|
|
1115
1118
|
/**
|
|
1116
1119
|
* The initial state of the DatePicker.
|
|
@@ -1165,9 +1168,9 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1165
1168
|
}, [
|
|
1166
1169
|
st({ bind: e, required: t }),
|
|
1167
1170
|
R(({ state: o }) => [
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
+
i(F.date(["[[start]]", o], "Start Date")),
|
|
1172
|
+
i(" - "),
|
|
1173
|
+
i(F.date(["[[end]]", o], "End Date"))
|
|
1171
1174
|
]),
|
|
1172
1175
|
m({ html: u.calendar.days })
|
|
1173
1176
|
]), nt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
|
|
@@ -1178,14 +1181,14 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1178
1181
|
button: l.panel,
|
|
1179
1182
|
size: "xl"
|
|
1180
1183
|
}, [
|
|
1181
|
-
new
|
|
1184
|
+
new ae({
|
|
1182
1185
|
startDate: l.state.start,
|
|
1183
1186
|
endDate: l.state.end,
|
|
1184
1187
|
onRangeSelect: e,
|
|
1185
1188
|
blockPriorDates: t
|
|
1186
1189
|
})
|
|
1187
1190
|
]) : null
|
|
1188
|
-
), Vt =
|
|
1191
|
+
), Vt = v(
|
|
1189
1192
|
{
|
|
1190
1193
|
/**
|
|
1191
1194
|
* The initial state of the DateRangePicker.
|
|
@@ -1258,7 +1261,7 @@ function rt({ bind: e, required: t, toggleOpen: s }) {
|
|
|
1258
1261
|
},
|
|
1259
1262
|
[
|
|
1260
1263
|
lt({ bind: e, required: t }),
|
|
1261
|
-
|
|
1264
|
+
i({
|
|
1262
1265
|
onState: ["selectedTime", (o) => o || "Pick a time"]
|
|
1263
1266
|
}),
|
|
1264
1267
|
m({ html: u.clock })
|
|
@@ -1269,17 +1272,17 @@ function B({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
|
|
|
1269
1272
|
return n(
|
|
1270
1273
|
{ class: "flex flex-col max-h-[200px] overflow-y-auto" },
|
|
1271
1274
|
e.map((r) => {
|
|
1272
|
-
let
|
|
1275
|
+
let a = l ? r.toString().padStart(2, "0") : r.toString();
|
|
1273
1276
|
return f({
|
|
1274
|
-
text:
|
|
1277
|
+
text: a,
|
|
1275
1278
|
class: "hover:bg-muted/50 rounded-md px-2 py-1",
|
|
1276
|
-
click: () => t({ [o]:
|
|
1277
|
-
onState: [s, o, { "bg-muted":
|
|
1279
|
+
click: () => t({ [o]: a }),
|
|
1280
|
+
onState: [s, o, { "bg-muted": a }]
|
|
1278
1281
|
});
|
|
1279
1282
|
})
|
|
1280
1283
|
);
|
|
1281
1284
|
}
|
|
1282
|
-
function
|
|
1285
|
+
function at({ handleTimeSelect: e }) {
|
|
1283
1286
|
return n(
|
|
1284
1287
|
{ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" },
|
|
1285
1288
|
[
|
|
@@ -1338,14 +1341,14 @@ function j(e) {
|
|
|
1338
1341
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
1339
1342
|
if (!s)
|
|
1340
1343
|
return { hour: null, minute: null, meridian: null };
|
|
1341
|
-
let [, o, l, , r] = s,
|
|
1342
|
-
return
|
|
1343
|
-
hour:
|
|
1344
|
+
let [, o, l, , r] = s, a = parseInt(o, 10), d = parseInt(l, 10);
|
|
1345
|
+
return a < 0 || a > 23 || d < 0 || d > 59 ? { hour: null, minute: null, meridian: null } : (r ? (r = r.toUpperCase(), r === "PM" && a < 12 ? a += 12 : r === "AM" && a === 12 && (a = 12)) : a === 0 ? (r = "AM", a = 12) : a < 12 ? r = "AM" : a === 12 ? r = "PM" : (r = "PM", a -= 12), {
|
|
1346
|
+
hour: a.toString().padStart(2, "0"),
|
|
1344
1347
|
minute: d.toString().padStart(2, "0"),
|
|
1345
1348
|
meridian: r
|
|
1346
1349
|
});
|
|
1347
1350
|
}
|
|
1348
|
-
const qt =
|
|
1351
|
+
const qt = v(
|
|
1349
1352
|
{
|
|
1350
1353
|
/**
|
|
1351
1354
|
* The initial shallow state of the TimePicker.
|
|
@@ -1398,14 +1401,14 @@ const qt = y(
|
|
|
1398
1401
|
bind: this.bind,
|
|
1399
1402
|
required: this.required
|
|
1400
1403
|
}),
|
|
1401
|
-
|
|
1404
|
+
at({
|
|
1402
1405
|
handleTimeSelect: t
|
|
1403
1406
|
})
|
|
1404
1407
|
]
|
|
1405
1408
|
);
|
|
1406
1409
|
}
|
|
1407
1410
|
}
|
|
1408
|
-
),
|
|
1411
|
+
), it = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
|
|
1409
1412
|
p({ size: "lg" }, e)
|
|
1410
1413
|
]), ct = ({ title: e }) => I({ class: "flex flex-auto items-center" }, [
|
|
1411
1414
|
D({ class: "text-lg font-semibold" }, e)
|
|
@@ -1420,7 +1423,7 @@ const qt = y(
|
|
|
1420
1423
|
[
|
|
1421
1424
|
n({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
|
|
1422
1425
|
// Icon and content
|
|
1423
|
-
e.icon &&
|
|
1426
|
+
e.icon && it(e.icon, e.iconColor),
|
|
1424
1427
|
n({ class: "flex flex-auto flex-col gap-4" }, [
|
|
1425
1428
|
n({ class: "flex flex-auto flex-col space-y-2" }, [
|
|
1426
1429
|
ct(e),
|
|
@@ -1458,7 +1461,7 @@ const qt = y(
|
|
|
1458
1461
|
iconColor: "text-muted-foreground"
|
|
1459
1462
|
}
|
|
1460
1463
|
};
|
|
1461
|
-
class ht extends
|
|
1464
|
+
class ht extends y {
|
|
1462
1465
|
/**
|
|
1463
1466
|
* This will declare the props for the compiler.
|
|
1464
1467
|
*
|
|
@@ -1475,10 +1478,10 @@ class ht extends v {
|
|
|
1475
1478
|
render() {
|
|
1476
1479
|
const t = (d) => {
|
|
1477
1480
|
d.target === this.panel && this.close();
|
|
1478
|
-
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`,
|
|
1481
|
+
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, a = this.title || "Dialog Title";
|
|
1479
1482
|
return dt({
|
|
1480
1483
|
class: r,
|
|
1481
|
-
title:
|
|
1484
|
+
title: a,
|
|
1482
1485
|
click: t,
|
|
1483
1486
|
icon: this.icon,
|
|
1484
1487
|
iconColor: l,
|
|
@@ -1578,7 +1581,7 @@ const Rt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
|
1578
1581
|
])
|
|
1579
1582
|
]));
|
|
1580
1583
|
export {
|
|
1581
|
-
|
|
1584
|
+
yt as A,
|
|
1582
1585
|
zt as B,
|
|
1583
1586
|
$t as C,
|
|
1584
1587
|
me as D,
|
|
@@ -1596,7 +1599,7 @@ export {
|
|
|
1596
1599
|
At as T,
|
|
1597
1600
|
xe as a,
|
|
1598
1601
|
Ct as b,
|
|
1599
|
-
|
|
1602
|
+
ve as c,
|
|
1600
1603
|
Se as d,
|
|
1601
1604
|
De as e,
|
|
1602
1605
|
Ie as f,
|
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-Dct3Y9SD.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-Dct3Y9SD.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