@base-framework/ui 1.0.268 → 1.0.270
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms.es.js +2 -2
- package/dist/{empty-state-D-3YYs2T.js → empty-state-qfZvAfRD.js} +43 -43
- package/dist/index.es.js +4 -4
- package/dist/{inputs-CGtqFgi8.js → inputs-DYxmO1rQ.js} +45 -45
- package/dist/molecules.es.js +1 -1
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-7O22-IGI.js → signature-panel-BXbbFwMm.js} +1 -1
- package/dist/{tooltip-05O5vIt1.js → tooltip-Cok_NM7z.js} +1 -1
- package/package.json +1 -1
package/dist/atoms.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as e, C as t, F as o, L as n, P as r, R as p, S as u, a as I, T as i } from "./tooltip-
|
|
1
|
+
import { B as e, C as t, F as o, L as n, P as r, R as p, S as u, a as I, T as i } from "./tooltip-Cok_NM7z.js";
|
|
2
2
|
import { B as d, I as m, L as C } from "./buttons-BKLL4I6r.js";
|
|
3
3
|
import { C as x, F as B, V as F, a as c } from "./veil-tVDPinrr.js";
|
|
4
|
-
import { C as f, d as L, D as P, c as R, E as S, F as b, H as h, I as k, M as D, N as V, P as E, R as G, T as H, a as M, b as N, U, W } from "./inputs-
|
|
4
|
+
import { C as f, d as L, D as P, c as R, E as S, F as b, H as h, I as k, M as D, N as V, P as E, R as G, T as H, a as M, b as N, U, W } from "./inputs-DYxmO1rQ.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Badge,
|
|
7
7
|
d as Button,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Div as n, H5 as J, P as m, I as p, Li as U, Span as
|
|
1
|
+
import { Div as n, H5 as J, P as m, I as p, Li as U, Span as a, Ul as V, Button as f, OnState as x, Label as R, H2 as v, Form as K, Header as I, Footer as A, 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
2
|
import { Atom as c, Component as C, Html as L, Dom as oe, base as ne, Data as $, Builder as Y, Jot as k, Events as le, DateTime as F } from "@base-framework/base";
|
|
3
|
-
import { P as S, b as re, R as
|
|
4
|
-
import { C as
|
|
3
|
+
import { P as S, b as re, R as ie } from "./range-calendar-DW0cMOJy.js";
|
|
4
|
+
import { C as ae, F as ce, 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 u } from "./icons.es.js";
|
|
7
7
|
import { Timer as de, List as ue, DynamicTime as he } from "@base-framework/organisms";
|
|
@@ -35,10 +35,10 @@ const M = {
|
|
|
35
35
|
}, fe = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
36
36
|
p({ html: e })
|
|
37
37
|
]), me = (e) => J({ class: "font-semibold" }, e), pe = (e) => m({ class: "text-sm text-muted-foreground" }, e), kt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
38
|
-
const { borderColor: l, bgColor: r, iconColor:
|
|
38
|
+
const { borderColor: l, bgColor: r, iconColor: i } = M[o] || M.default;
|
|
39
39
|
return n({ class: `flex items-start p-4 border rounded-lg ${r} ${l}` }, [
|
|
40
40
|
// Icon and content
|
|
41
|
-
s && fe(s,
|
|
41
|
+
s && fe(s, i),
|
|
42
42
|
n({ class: "flex flex-col" }, [
|
|
43
43
|
me(e),
|
|
44
44
|
pe(t)
|
|
@@ -69,7 +69,7 @@ class ge extends C {
|
|
|
69
69
|
oe.addClass(t, s), ne.on("animationend", t, (o) => L.removeElement(t));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const be = (e) =>
|
|
72
|
+
const be = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), xe = (e) => a({ class: "flex w-4 h-4", html: e }), we = (e) => a({ 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
|
}, [
|
|
@@ -90,7 +90,7 @@ const be = (e) => i({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
90
90
|
focus:outline-none transition duration-150 ease-in-out`,
|
|
91
91
|
click: s
|
|
92
92
|
}, [
|
|
93
|
-
e &&
|
|
93
|
+
e && a(e),
|
|
94
94
|
t && p({ html: t })
|
|
95
95
|
]), Se = ({ onSelect: e }) => n([
|
|
96
96
|
x(
|
|
@@ -167,7 +167,7 @@ class St extends C {
|
|
|
167
167
|
]);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Ie = c((e, t) => R({ ...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)), Dt = c((e, t = []) =>
|
|
170
|
+
const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Ie = c((e, t) => R({ ...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)), Dt = c((e, t = []) => ae({ class: "space-y-0", margin: "m-0", padding: "p-0" }, [
|
|
171
171
|
e.title && v({ 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
|
|
@@ -240,16 +240,16 @@ const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
240
240
|
e.title && v({ class: "font-semibold" }, e.title),
|
|
241
241
|
...t
|
|
242
242
|
])), At = (e, t) => n({ class: "flex justify-between" }, [
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
a({ class: "text-muted-foreground" }, e),
|
|
244
|
+
a(t)
|
|
245
245
|
]), Lt = (e, t) => n({ class: "flex" }, [
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
247
|
+
a(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
|
*/
|
|
252
|
-
s && h({ variant: "icon", icon: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r,
|
|
252
|
+
s && h({ variant: "icon", icon: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r, i) => i.close() }),
|
|
253
253
|
/**
|
|
254
254
|
* Icon
|
|
255
255
|
*/
|
|
@@ -618,7 +618,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
618
618
|
}
|
|
619
619
|
}, [
|
|
620
620
|
g(s),
|
|
621
|
-
|
|
621
|
+
a(t)
|
|
622
622
|
])), Ue = (e) => {
|
|
623
623
|
var o;
|
|
624
624
|
const t = document.documentElement;
|
|
@@ -700,7 +700,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
700
700
|
bind: this.bind,
|
|
701
701
|
required: this.required
|
|
702
702
|
}),
|
|
703
|
-
|
|
703
|
+
a({
|
|
704
704
|
class: "absolute h-5 w-5 bg-background rounded-full shadow-md transform transition-transform",
|
|
705
705
|
onState: ["active", { "translate-x-[22px]": !0, "translate-x-[2px]": !1 }]
|
|
706
706
|
})
|
|
@@ -809,13 +809,13 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
809
809
|
// Only set aria-current on the last item
|
|
810
810
|
class: "text-muted-foreground font-medium hover:text-foreground"
|
|
811
811
|
},
|
|
812
|
-
[
|
|
812
|
+
[a(t)]
|
|
813
813
|
), qe = () => g({
|
|
814
814
|
class: "mx-3 text-muted-foreground",
|
|
815
815
|
"aria-hidden": !0,
|
|
816
816
|
size: "xs"
|
|
817
817
|
}, u.chevron.single.right), He = (e) => n({ class: "flex items-center" }, [
|
|
818
|
-
e.href ? Re(e.href, e.label) :
|
|
818
|
+
e.href ? Re(e.href, e.label) : a(e.label),
|
|
819
819
|
e.separator && qe()
|
|
820
820
|
]), Ut = k(
|
|
821
821
|
{
|
|
@@ -866,7 +866,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
866
866
|
"3xl": "h-24 w-24",
|
|
867
867
|
default: "h-4 w-4"
|
|
868
868
|
}, Ye = (e) => E[e] || E.default, _e = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
869
|
-
|
|
869
|
+
a({
|
|
870
870
|
class: "block w-full h-full rounded-full transition-colors",
|
|
871
871
|
onSet: ["activeIndex", {
|
|
872
872
|
"bg-primary": e,
|
|
@@ -917,7 +917,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
917
917
|
click: e
|
|
918
918
|
},
|
|
919
919
|
[
|
|
920
|
-
|
|
920
|
+
a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
|
|
921
921
|
p({ html: u.chevron.upDown })
|
|
922
922
|
]
|
|
923
923
|
), Je = (e, t, s) => U({
|
|
@@ -925,8 +925,8 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
925
925
|
click: () => t(e),
|
|
926
926
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
927
927
|
}, [
|
|
928
|
-
e.icon &&
|
|
929
|
-
|
|
928
|
+
e.icon && a({ class: "mr-2 flex items-baseline" }, [g({ size: "xs" }, e.icon)]),
|
|
929
|
+
a({ class: "text-base font-normal" }, e.label)
|
|
930
930
|
]), Ke = (e, t) => n({ class: "w-full border rounded-md" }, [
|
|
931
931
|
V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Je(s, e, t)] })
|
|
932
932
|
]), Qe = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
@@ -1059,9 +1059,9 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1059
1059
|
}), et = ({ bind: e, min: t, max: s, readonly: o = !1 }) => H(({ state: l }) => w({
|
|
1060
1060
|
value: ["[[count]]", l],
|
|
1061
1061
|
bind: e,
|
|
1062
|
-
blur: (r, { state:
|
|
1062
|
+
blur: (r, { state: i }) => {
|
|
1063
1063
|
let d = parseInt(r.target.value, 10);
|
|
1064
|
-
isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)),
|
|
1064
|
+
isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)), i.count = d;
|
|
1065
1065
|
},
|
|
1066
1066
|
class: "flex flex-auto text-lg font-medium bg-input text-center border min-w-0",
|
|
1067
1067
|
readonly: o,
|
|
@@ -1113,7 +1113,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1113
1113
|
click: s
|
|
1114
1114
|
}, [
|
|
1115
1115
|
tt({ bind: e, required: t }),
|
|
1116
|
-
|
|
1116
|
+
a({
|
|
1117
1117
|
onState: ["selectedDate", (o) => o ? F.format("standard", o) : "Pick a date"]
|
|
1118
1118
|
}),
|
|
1119
1119
|
p({ html: u.calendar.days })
|
|
@@ -1186,9 +1186,9 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1186
1186
|
}, [
|
|
1187
1187
|
nt({ bind: e, required: t }),
|
|
1188
1188
|
H(({ state: o }) => [
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1189
|
+
a(P.date(["[[start]]", o], "Start Date")),
|
|
1190
|
+
a(" - "),
|
|
1191
|
+
a(P.date(["[[end]]", o], "End Date"))
|
|
1192
1192
|
]),
|
|
1193
1193
|
p({ html: u.calendar.days })
|
|
1194
1194
|
]), rt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
|
|
@@ -1199,7 +1199,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1199
1199
|
button: l.panel,
|
|
1200
1200
|
size: "xl"
|
|
1201
1201
|
}, [
|
|
1202
|
-
new
|
|
1202
|
+
new ie({
|
|
1203
1203
|
startDate: l.state.start,
|
|
1204
1204
|
endDate: l.state.end,
|
|
1205
1205
|
onRangeSelect: e,
|
|
@@ -1263,7 +1263,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1263
1263
|
})
|
|
1264
1264
|
})
|
|
1265
1265
|
]);
|
|
1266
|
-
function
|
|
1266
|
+
function it({ bind: e, required: t }) {
|
|
1267
1267
|
return w({
|
|
1268
1268
|
cache: "input",
|
|
1269
1269
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
@@ -1271,15 +1271,15 @@ function at({ bind: e, required: t }) {
|
|
|
1271
1271
|
required: t
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function at({ bind: e, required: t, toggleOpen: s }) {
|
|
1275
1275
|
return f(
|
|
1276
1276
|
{
|
|
1277
|
-
class: "relative flex items-center gap-2 w-full justify-between border bg-
|
|
1277
|
+
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",
|
|
1278
1278
|
click: s
|
|
1279
1279
|
},
|
|
1280
1280
|
[
|
|
1281
|
-
|
|
1282
|
-
|
|
1281
|
+
it({ bind: e, required: t }),
|
|
1282
|
+
a({
|
|
1283
1283
|
onState: ["selectedTime", (o) => o || "Pick a time"]
|
|
1284
1284
|
}),
|
|
1285
1285
|
p({ html: u.clock })
|
|
@@ -1290,12 +1290,12 @@ function B({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
|
|
|
1290
1290
|
return n(
|
|
1291
1291
|
{ class: "flex flex-col max-h-[200px] overflow-y-auto" },
|
|
1292
1292
|
e.map((r) => {
|
|
1293
|
-
let
|
|
1293
|
+
let i = l ? r.toString().padStart(2, "0") : r.toString();
|
|
1294
1294
|
return f({
|
|
1295
|
-
text:
|
|
1295
|
+
text: i,
|
|
1296
1296
|
class: "hover:bg-muted/50 rounded-md px-2 py-1",
|
|
1297
|
-
click: () => t({ [o]:
|
|
1298
|
-
onState: [s, o, { "bg-muted":
|
|
1297
|
+
click: () => t({ [o]: i }),
|
|
1298
|
+
onState: [s, o, { "bg-muted": i }]
|
|
1299
1299
|
});
|
|
1300
1300
|
})
|
|
1301
1301
|
);
|
|
@@ -1354,9 +1354,9 @@ function j(e) {
|
|
|
1354
1354
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
1355
1355
|
if (!s)
|
|
1356
1356
|
return { hour: null, minute: null, meridian: null };
|
|
1357
|
-
let [, o, l, , r] = s,
|
|
1358
|
-
return
|
|
1359
|
-
hour:
|
|
1357
|
+
let [, o, l, , r] = s, i = parseInt(o, 10), d = parseInt(l, 10);
|
|
1358
|
+
return i < 0 || i > 23 || d < 0 || d > 59 ? { hour: null, minute: null, meridian: null } : (r ? (r = r.toUpperCase(), r === "PM" && i < 12 ? i += 12 : r === "AM" && i === 12 && (i = 12)) : i === 0 ? (r = "AM", i = 12) : i < 12 ? r = "AM" : i === 12 ? r = "PM" : (r = "PM", i -= 12), {
|
|
1359
|
+
hour: i.toString().padStart(2, "0"),
|
|
1360
1360
|
minute: d.toString().padStart(2, "0"),
|
|
1361
1361
|
meridian: r
|
|
1362
1362
|
});
|
|
@@ -1409,7 +1409,7 @@ const Wt = y(
|
|
|
1409
1409
|
return n(
|
|
1410
1410
|
{ class: "relative w-full max-w-[320px]" },
|
|
1411
1411
|
[
|
|
1412
|
-
|
|
1412
|
+
at({
|
|
1413
1413
|
toggleOpen: e,
|
|
1414
1414
|
bind: this.bind,
|
|
1415
1415
|
required: this.required
|
|
@@ -1491,10 +1491,10 @@ class mt extends C {
|
|
|
1491
1491
|
render() {
|
|
1492
1492
|
const t = (d) => {
|
|
1493
1493
|
d.target === this.panel && this.close();
|
|
1494
|
-
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`,
|
|
1494
|
+
}, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
|
|
1495
1495
|
return ht({
|
|
1496
1496
|
class: r,
|
|
1497
|
-
title:
|
|
1497
|
+
title: i,
|
|
1498
1498
|
click: t,
|
|
1499
1499
|
icon: this.icon,
|
|
1500
1500
|
iconColor: l,
|
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as s, C as o, F as t, L as r, P as n, R as l, S as i, a as p, T as m } from "./tooltip-
|
|
1
|
+
import { B as s, C as o, F as t, L as r, P as n, R as l, S as i, a as p, T as m } from "./tooltip-Cok_NM7z.js";
|
|
2
2
|
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
|
-
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-
|
|
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-qfZvAfRD.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
|
-
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-
|
|
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-BXbbFwMm.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";
|
|
10
10
|
import { B as Oe, a as Ee, C as Ve, F as je, b as qe, c as Je, M as ze, P as Ke, S as Qe } from "./sidebar-menu-page-BtUJdw-T.js";
|
|
11
11
|
import { A as Xe, F as Ye, M as Ze, a as $e, T as as } from "./aside-template-McEj_Gxc.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Div as
|
|
2
|
-
import { Jot as
|
|
1
|
+
import { Div as u, Label as h, Checkbox as m, Span as $, OnState as p, I as x, Input as r, Textarea as k } from "@base-framework/atoms";
|
|
2
|
+
import { Jot as g, Atom as s } from "@base-framework/base";
|
|
3
3
|
import { Icons as y } from "./icons.es.js";
|
|
4
|
-
const
|
|
4
|
+
const I = "flex h-10 w-full px-3 py-2 text-sm", n = "rounded-md border border-border bg-input", o = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", a = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", l = "placeholder:text-muted-foreground", f = `${I} ${n} ${o} ${l} ${a}`, C = ({ id: e, checked: c, bind: t, required: d }) => m({
|
|
5
5
|
id: e,
|
|
6
6
|
cache: "checkbox",
|
|
7
7
|
class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
|
|
8
8
|
aria: {
|
|
9
9
|
checked: ["checked"]
|
|
10
10
|
},
|
|
11
|
-
required:
|
|
12
|
-
checked:
|
|
11
|
+
required: d,
|
|
12
|
+
checked: c,
|
|
13
13
|
bind: t
|
|
14
|
-
}),
|
|
15
|
-
|
|
14
|
+
}), v = () => $({ class: "absolute text-xs pointer-events-none" }, [
|
|
15
|
+
p(
|
|
16
16
|
"checked",
|
|
17
|
-
(e) => e ?
|
|
17
|
+
(e) => e ? x({
|
|
18
18
|
class: "w-2 h-2 pointer-events-none",
|
|
19
19
|
html: y.check
|
|
20
20
|
}) : null
|
|
21
21
|
)
|
|
22
|
-
]), w = ({ id: e, bind:
|
|
22
|
+
]), w = ({ id: e, bind: c, checked: t, required: d, clickHandler: b }) => u({
|
|
23
23
|
class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
|
|
24
24
|
rounded-md border
|
|
25
|
-
${
|
|
26
|
-
${
|
|
25
|
+
${o}
|
|
26
|
+
${a}`.trim(),
|
|
27
27
|
onState: [
|
|
28
28
|
"checked",
|
|
29
29
|
{
|
|
@@ -37,15 +37,15 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border border-bo
|
|
|
37
37
|
checked: ["checked"]
|
|
38
38
|
},
|
|
39
39
|
tabIndex: 0,
|
|
40
|
-
click:
|
|
40
|
+
click: b
|
|
41
41
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]), T = ({ id: e, label:
|
|
42
|
+
C({ bind: c, checked: t, id: e, required: d }),
|
|
43
|
+
v()
|
|
44
|
+
]), T = ({ id: e, label: c, clickHandler: t }) => h({
|
|
45
45
|
class: "text-base cursor-pointer",
|
|
46
46
|
htmlFor: e,
|
|
47
47
|
click: t
|
|
48
|
-
},
|
|
48
|
+
}, c), L = g(
|
|
49
49
|
{
|
|
50
50
|
/**
|
|
51
51
|
* This will initialize the state of the checkbox.
|
|
@@ -82,8 +82,8 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border border-bo
|
|
|
82
82
|
* @returns {object}
|
|
83
83
|
*/
|
|
84
84
|
render() {
|
|
85
|
-
const e = this.getId(),
|
|
86
|
-
return
|
|
85
|
+
const e = this.getId(), c = (t) => this.clickHandler(t);
|
|
86
|
+
return u({ class: `flex items-center space-x-2 cursor-pointer ${this.class || ""}` }, [
|
|
87
87
|
w({
|
|
88
88
|
id: e,
|
|
89
89
|
// @ts-ignore
|
|
@@ -93,10 +93,10 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border border-bo
|
|
|
93
93
|
// @ts-ignore
|
|
94
94
|
required: this.required,
|
|
95
95
|
// @ts-ignore
|
|
96
|
-
clickHandler:
|
|
96
|
+
clickHandler: c
|
|
97
97
|
}),
|
|
98
98
|
// @ts-ignore
|
|
99
|
-
this.label && T({ id: e, label: this.label, clickHandler:
|
|
99
|
+
this.label && T({ id: e, label: this.label, clickHandler: c })
|
|
100
100
|
]);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -105,12 +105,12 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border border-bo
|
|
|
105
105
|
const t = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
|
|
106
106
|
return t ? t[2] ? `(${t[1]}) ${t[2]}${t[3] ? "-" + t[3] : ""}` : t[1] || "" : e;
|
|
107
107
|
}, D = (e) => {
|
|
108
|
-
const
|
|
109
|
-
t && (
|
|
110
|
-
},
|
|
108
|
+
const c = e.target, t = H(c.value);
|
|
109
|
+
t && (c.value = t);
|
|
110
|
+
}, i = s((e) => r({
|
|
111
111
|
...e,
|
|
112
112
|
class: `${f} ${e.class || ""}`.trim()
|
|
113
|
-
})), M = s((e) =>
|
|
113
|
+
})), M = s((e) => i({
|
|
114
114
|
...e,
|
|
115
115
|
type: "tel",
|
|
116
116
|
name: e.name || "Phone",
|
|
@@ -118,68 +118,68 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border border-bo
|
|
|
118
118
|
placeholder: "(555) 555-5555",
|
|
119
119
|
pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
|
|
120
120
|
keyup: D
|
|
121
|
-
})), S = s((e) =>
|
|
121
|
+
})), S = s((e) => i({
|
|
122
122
|
...e,
|
|
123
123
|
type: "email",
|
|
124
124
|
name: e.name || "Email",
|
|
125
125
|
label: e.label || "Email",
|
|
126
126
|
placeholder: "Email address"
|
|
127
|
-
})), q = s((e) =>
|
|
127
|
+
})), q = s((e) => k({
|
|
128
128
|
...e,
|
|
129
129
|
as: "textarea",
|
|
130
|
-
class: `flex w-full h-24 px-3 py-2 text-sm
|
|
131
|
-
})), R = (e = {}) =>
|
|
130
|
+
class: `flex w-full h-24 px-3 py-2 text-sm ${n} ${o} ${l} ${a} ${e.class || ""}`.trim()
|
|
131
|
+
})), R = (e = {}) => u({ class: "flex items-center space-x-2" }, [
|
|
132
132
|
r({
|
|
133
133
|
...e,
|
|
134
134
|
type: "radio",
|
|
135
135
|
class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
|
|
136
136
|
}),
|
|
137
|
-
e.label &&
|
|
137
|
+
e.label && h({ forHTML: e.value, class: "cursor-pointer" }, e.label)
|
|
138
138
|
]), U = s((e) => r({
|
|
139
139
|
...e,
|
|
140
140
|
type: "date",
|
|
141
|
-
class:
|
|
141
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
142
142
|
})), W = s((e) => r({
|
|
143
143
|
...e,
|
|
144
144
|
type: "time",
|
|
145
|
-
class:
|
|
145
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
146
146
|
})), j = s((e) => r({
|
|
147
147
|
...e,
|
|
148
148
|
type: "datetime-local",
|
|
149
|
-
class:
|
|
149
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
150
150
|
})), z = s((e) => r({
|
|
151
151
|
...e,
|
|
152
152
|
type: "month",
|
|
153
|
-
class:
|
|
153
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
154
154
|
})), A = s((e) => r({
|
|
155
155
|
...e,
|
|
156
156
|
type: "week",
|
|
157
|
-
class:
|
|
158
|
-
})), B = s((e) =>
|
|
157
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
158
|
+
})), B = s((e) => i({
|
|
159
159
|
...e,
|
|
160
160
|
type: "number"
|
|
161
|
-
})), J = s((e) =>
|
|
161
|
+
})), J = s((e) => i({
|
|
162
162
|
...e,
|
|
163
163
|
type: "password"
|
|
164
164
|
}));
|
|
165
|
-
s((e) =>
|
|
165
|
+
s((e) => i({
|
|
166
166
|
...e,
|
|
167
167
|
type: "search"
|
|
168
168
|
}));
|
|
169
|
-
const O = s((e) =>
|
|
169
|
+
const O = s((e) => i({
|
|
170
170
|
...e,
|
|
171
171
|
type: "url"
|
|
172
|
-
})), G = s((e) =>
|
|
172
|
+
})), G = s((e) => i({
|
|
173
173
|
...e,
|
|
174
174
|
type: "hidden"
|
|
175
175
|
})), K = s((e) => r({
|
|
176
176
|
...e,
|
|
177
177
|
type: "color",
|
|
178
|
-
class:
|
|
178
|
+
class: `${n} text-foreground p-0 ${a} ${e.class || ""}`.trim()
|
|
179
179
|
}));
|
|
180
|
-
s((e) =>
|
|
180
|
+
s((e) => m({
|
|
181
181
|
...e,
|
|
182
|
-
class: `flex h-4 w-4
|
|
182
|
+
class: `flex h-4 w-4 text-foreground ${n} ${o} ${a} ${e.class || ""}`.trim()
|
|
183
183
|
}));
|
|
184
184
|
const E = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Q = s((e) => r({
|
|
185
185
|
...e,
|
|
@@ -192,7 +192,7 @@ export {
|
|
|
192
192
|
S as E,
|
|
193
193
|
Q as F,
|
|
194
194
|
G as H,
|
|
195
|
-
|
|
195
|
+
i as I,
|
|
196
196
|
z as M,
|
|
197
197
|
B as N,
|
|
198
198
|
J as P,
|
|
@@ -204,7 +204,7 @@ export {
|
|
|
204
204
|
W as b,
|
|
205
205
|
j as c,
|
|
206
206
|
K as d,
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
a as e,
|
|
208
|
+
o as f,
|
|
209
209
|
f as g
|
|
210
210
|
};
|
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-qfZvAfRD.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/dist/organisms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-
|
|
1
|
+
import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-BXbbFwMm.js";
|
|
2
2
|
import { b as F, C as U, D as G, a as R, F as j, M as q, R as w, c as z, p as A } from "./range-calendar-DW0cMOJy.js";
|
|
3
3
|
import { B as J, I as K, M as Q, d as V, e as X, g as Y, N as Z, b as _, a as $, f as aa, P as ea, c as sa, S as ta, T as oa } from "./mobile-nav-wrapper-C7RyGC5a.js";
|
|
4
4
|
export {
|
|
@@ -3,7 +3,7 @@ import { Atom as d, Component as h, Data as C, DateTime as G, router as y, NavLi
|
|
|
3
3
|
import { B as T, I as _ } from "./buttons-BKLL4I6r.js";
|
|
4
4
|
import { Icons as x } from "./icons.es.js";
|
|
5
5
|
import { TableBody as J, DataTableBody as Z, ScrollableTableBody as ee, List as te, IntervalTimer as se } from "@base-framework/organisms";
|
|
6
|
-
import { C as ae, I as ie, H as ne } from "./inputs-
|
|
6
|
+
import { C as ae, I as ie, H as ne } from "./inputs-DYxmO1rQ.js";
|
|
7
7
|
import { A as oe, P as le } from "./range-calendar-DW0cMOJy.js";
|
|
8
8
|
d((t, e) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Span as c, Legend as b, Fieldset as C, Div as l, UseParent as u, Input as x } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as s, Html as p } from "@base-framework/base";
|
|
3
3
|
import { a as d } from "./veil-tVDPinrr.js";
|
|
4
|
-
import { f as h, e as y, g as k } from "./inputs-
|
|
4
|
+
import { f as h, e as y, g as k } from "./inputs-DYxmO1rQ.js";
|
|
5
5
|
const a = {
|
|
6
6
|
gray: {
|
|
7
7
|
backgroundColor: "bg-gray-50",
|
package/package.json
CHANGED