@base-framework/ui 1.0.322 → 1.0.324

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 CHANGED
@@ -1,39 +1,40 @@
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-B5hKQNZQ.js";
2
- import { B as d, I as m, L as C } from "./buttons-CHEs54Wl.js";
3
- import { C as x, F as B, V as F, a as c } from "./veil-CVCuKSvj.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-9udyzkHR.js";
1
+ import { B as e, C as t, F as o, L as r, P as n, R as p, S as u, a as I, T as i } from "./tooltip-PupzYM1r.js";
2
+ import { B as d, I as m, L as x } from "./buttons-CHEs54Wl.js";
3
+ import { C as T, F as B } from "./form-group-CJzpq9Us.js";
4
+ import { C as c, d as f, D as g, c as L, E as P, F as R, H as S, I as b, M as h, N as k, P as D, R as V, T as E, a as G, b as H, U as M, W as N } from "./inputs-9udyzkHR.js";
5
+ import { V as W, a as w } from "./veil-CqnAmj-D.js";
5
6
  export {
6
7
  e as Badge,
7
8
  d as Button,
8
- x as Card,
9
- f as Checkbox,
9
+ T as Card,
10
+ c as Checkbox,
10
11
  t as CircleGraph,
11
- L as ColorInput,
12
- P as DateInput,
13
- R as DateTimeInput,
14
- S as EmailInput,
12
+ f as ColorInput,
13
+ g as DateInput,
14
+ L as DateTimeInput,
15
+ P as EmailInput,
15
16
  o as Fieldset,
16
- b as FileInput,
17
+ R as FileInput,
17
18
  B as FormGroup,
18
- h as HiddenInput,
19
+ S as HiddenInput,
19
20
  m as Icon,
20
- k as Input,
21
- n as Legend,
22
- C as LoadingButton,
23
- D as MonthInput,
24
- V as NumberInput,
25
- E as PasswordInput,
26
- r as ProgressBar,
27
- G as Radio,
21
+ b as Input,
22
+ r as Legend,
23
+ x as LoadingButton,
24
+ h as MonthInput,
25
+ k as NumberInput,
26
+ D as PasswordInput,
27
+ n as ProgressBar,
28
+ V as Radio,
28
29
  p as RangeSlider,
29
30
  u as Select,
30
31
  I as Skeleton,
31
- H as TelInput,
32
- M as Textarea,
33
- N as TimeInput,
32
+ E as TelInput,
33
+ G as Textarea,
34
+ H as TimeInput,
34
35
  i as Tooltip,
35
- U as UrlInput,
36
- F as Veil,
37
- c as VeilJot,
38
- W as WeekInput
36
+ M as UrlInput,
37
+ W as Veil,
38
+ w as VeilJot,
39
+ N as WeekInput
39
40
  };
@@ -1,10 +1,11 @@
1
1
  import { Div as l, H5 as se, P as w, I as C, Li as W, Span as c, Ul as G, Button as b, OnState as B, Label as O, H2 as $, Form as oe, Header as L, Footer as z, A as J, H3 as ne, Checkbox as le, Input as f, Img as K, Nav as re, UseParent as Q, OnStateOpen as E, Time as ie, Dialog as ae } from "@base-framework/atoms";
2
2
  import { Atom as u, Component as k, Html as N, Dom as ce, base as ue, Data as A, Builder as X, Jot as I, Events as y, DateTime as j } from "@base-framework/base";
3
3
  import { P as F, b as de, R as he } from "./range-calendar-BMWSJTE0.js";
4
- import { C as fe, F as me, a as D } from "./veil-CVCuKSvj.js";
4
+ import { C as fe, F as me } from "./form-group-CJzpq9Us.js";
5
5
  import { B as h, I as x } from "./buttons-CHEs54Wl.js";
6
6
  import { Icons as d } from "./icons.es.js";
7
7
  import { Timer as ge, List as pe, DynamicTime as be } from "@base-framework/organisms";
8
+ import { a as D } from "./veil-CqnAmj-D.js";
8
9
  import { F as U } from "./format-DnofNaaz.js";
9
10
  const V = {
10
11
  info: {
@@ -34,7 +35,7 @@ const V = {
34
35
  }
35
36
  }, xe = (e, t) => l({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
36
37
  C({ html: e })
37
- ]), ve = (e) => se({ class: "font-semibold" }, e), ye = (e) => w({ class: "text-sm text-muted-foreground" }, e), Bt = u(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
+ ]), ve = (e) => se({ class: "font-semibold" }, e), ye = (e) => w({ class: "text-sm text-muted-foreground" }, e), Lt = u(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
39
  const { borderColor: n, bgColor: r, iconColor: i } = V[o] || V.default;
39
40
  return l({ class: `flex items-start p-4 border rounded-lg ${r} ${n}` }, [
40
41
  // Icon and content
@@ -45,7 +46,7 @@ const V = {
45
46
  ])
46
47
  ]);
47
48
  });
48
- class Lt extends k {
49
+ class At extends k {
49
50
  /**
50
51
  * This will declare the props for the compiler.
51
52
  *
@@ -104,7 +105,7 @@ const we = (e) => c({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
104
105
  ]) : null
105
106
  )
106
107
  ]);
107
- class At extends k {
108
+ class Mt extends k {
108
109
  /**
109
110
  * This will declare the props for the compiler.
110
111
  *
@@ -167,13 +168,13 @@ class At extends k {
167
168
  ]);
168
169
  }
169
170
  }
170
- const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Be = u((e, t) => O({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Le = u((e, t) => w({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Ae = u((e, t) => w({ ...e, class: "text-sm text-destructive" }, t)), Mt = u((e, t = []) => fe({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
171
+ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Be = u((e, t) => O({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Le = u((e, t) => w({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Ae = u((e, t) => w({ ...e, class: "text-sm text-destructive" }, t)), Pt = u((e, t = []) => fe({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
171
172
  e.title && $({ class: "text-lg font-semibold py-4 px-6" }, e.title),
172
173
  e.description && w({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
173
174
  ...t
174
- ])), Pt = u((e, t = []) => me({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
175
+ ])), jt = u((e, t = []) => me({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
175
176
  l({ class: "flex flex-col gap-y-6" }, t)
176
- ])), jt = u((e, t = []) => {
177
+ ])), Ot = u((e, t = []) => {
177
178
  const s = e.border ? "border-t" : "";
178
179
  return l({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
179
180
  }), Me = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", Z = (e, t, s) => e.map((o) => !o || (o.children && o.children.length > 0 && (o.children = Z(o.children, t, s)), !o.required) ? o : Me(o) ? {
@@ -193,7 +194,7 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
193
194
  ...e,
194
195
  class: "w-full"
195
196
  }, n);
196
- }), Ot = D(
197
+ }), zt = D(
197
198
  {
198
199
  /**
199
200
  * The initial state of the FormField.
@@ -236,13 +237,13 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
236
237
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
237
238
  }, ee = u(
238
239
  (e, t) => oe({ ...e, submit: (s, o) => je(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
239
- ), zt = u((e, t) => l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Et = u((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
240
+ ), Et = u((e, t) => l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Nt = u((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
240
241
  e.title && $({ class: "font-semibold" }, e.title),
241
242
  ...t
242
- ])), Nt = (e, t) => l({ class: "flex justify-between" }, [
243
+ ])), Ut = (e, t) => l({ class: "flex justify-between" }, [
243
244
  c({ class: "text-muted-foreground" }, e),
244
245
  c(t)
245
- ]), Ut = (e, t) => l({ class: "flex" }, [
246
+ ]), Vt = (e, t) => l({ class: "flex" }, [
246
247
  c({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
247
248
  c(t)
248
249
  ]), Oe = ({ title: e, description: t, back: s, icon: o, options: n = [] }) => L({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
@@ -277,7 +278,7 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
277
278
  z({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
278
279
  ])
279
280
  ])), Ee = (e) => X.render(e, app.root);
280
- class Vt extends k {
281
+ class Rt extends k {
281
282
  /**
282
283
  * This will declare the props for the compiler.
283
284
  *
@@ -578,7 +579,7 @@ class Re extends k {
578
579
  }
579
580
  }
580
581
  let He = 0;
581
- class Rt extends k {
582
+ class Ht extends k {
582
583
  /**
583
584
  * This will render the component.
584
585
  *
@@ -631,7 +632,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
631
632
  }
632
633
  const s = e === "light" ? "dark" : "light";
633
634
  t.classList.remove(s);
634
- }, Ht = I(
635
+ }, qt = I(
635
636
  {
636
637
  /**
637
638
  * This will render the component.
@@ -658,7 +659,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
658
659
  };
659
660
  }
660
661
  }
661
- ), qt = D(
662
+ ), Yt = D(
662
663
  {
663
664
  /**
664
665
  * The initial state of the Toggle.
@@ -720,9 +721,9 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
720
721
  OFFLINE: "bg-gray-500",
721
722
  BUSY: "bg-red-500",
722
723
  AWAY: "bg-yellow-500"
723
- }, Ye = (e = "") => (e = e.toUpperCase(), S[e] || S.OFFLINE), Yt = (e) => l({
724
+ }, Ye = (e = "") => (e = e.toUpperCase(), S[e] || S.OFFLINE), _t = (e) => l({
724
725
  class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Ye(e)}`
725
- }), _t = ({ propName: e = "status" } = {}) => l({
726
+ }), Wt = ({ propName: e = "status" } = {}) => l({
726
727
  class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
727
728
  onSet: [e, {
728
729
  [S.ONLINE]: T.ONLINE,
@@ -730,7 +731,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
730
731
  [S.BUSY]: T.BUSY,
731
732
  [S.AWAY]: T.AWAY
732
733
  }]
733
- }), _e = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1, Wt = I(
734
+ }), _e = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1, Gt = I(
734
735
  {
735
736
  /**
736
737
  * Get the initial state for the component.
@@ -801,7 +802,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
801
802
  ]);
802
803
  }
803
804
  }
804
- ), Gt = I(
805
+ ), Jt = I(
805
806
  {
806
807
  /**
807
808
  * Get the initial state for the component.
@@ -890,7 +891,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
890
891
  }, d.chevron.single.right), Je = (e) => l({ class: "flex items-center" }, [
891
892
  e.href ? We(e.href, e.label) : c(e.label),
892
893
  e.separator && Ge()
893
- ]), Jt = I(
894
+ ]), Kt = I(
894
895
  {
895
896
  /**
896
897
  * Set initial data
@@ -952,7 +953,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
952
953
  ]), Xe = (e, t) => Array.from({ length: e }, (s, o) => Qe({
953
954
  index: o,
954
955
  size: t
955
- })), Kt = I(
956
+ })), Qt = I(
956
957
  {
957
958
  /**
958
959
  * Defines component data (props).
@@ -1013,7 +1014,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1013
1014
  tt(e, t)
1014
1015
  ]) : null
1015
1016
  )
1016
- ]), Qt = I(
1017
+ ]), Xt = I(
1017
1018
  {
1018
1019
  /**
1019
1020
  * This will set up the data.
@@ -1142,7 +1143,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1142
1143
  max: s,
1143
1144
  type: "number",
1144
1145
  "aria-label": "Counter"
1145
- })), Xt = D(
1146
+ })), Zt = D(
1146
1147
  {
1147
1148
  /**
1148
1149
  * Initial state for the counter component.
@@ -1218,7 +1219,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1218
1219
  blockPriorDates: t
1219
1220
  })
1220
1221
  ])
1221
- ), Zt = D(
1222
+ ), es = D(
1222
1223
  {
1223
1224
  /**
1224
1225
  * The initial state of the DatePicker.
@@ -1308,7 +1309,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1308
1309
  onRangeSelect: e,
1309
1310
  blockPriorDates: t
1310
1311
  })
1311
- ])), es = D(
1312
+ ])), ts = D(
1312
1313
  {
1313
1314
  /**
1314
1315
  * The initial state of the DateRangePicker.
@@ -1356,7 +1357,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1356
1357
  ]);
1357
1358
  }
1358
1359
  }
1359
- ), ts = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => ie([
1360
+ ), ss = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => ie([
1360
1361
  new be({
1361
1362
  dateTime: e,
1362
1363
  filter: s || ((o) => {
@@ -1477,7 +1478,7 @@ function Y(e) {
1477
1478
  meridian: r
1478
1479
  });
1479
1480
  }
1480
- const ss = D(
1481
+ const os = D(
1481
1482
  {
1482
1483
  /**
1483
1484
  * The initial shallow state of the TimePicker.
@@ -1685,7 +1686,7 @@ class wt extends k {
1685
1686
  this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
1686
1687
  }
1687
1688
  }
1688
- class os extends wt {
1689
+ class ns extends wt {
1689
1690
  /**
1690
1691
  * This will declare the props for the compiler.
1691
1692
  *
@@ -1715,7 +1716,7 @@ class os extends wt {
1715
1716
  this.confirmed && this.confirmed(), this.close();
1716
1717
  }
1717
1718
  }
1718
- const ns = u((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1719
+ const ls = u((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1719
1720
  ee({ class: "flex flex-auto flex-col" }, [
1720
1721
  l({ class: "flex flex-auto flex-col gap-y-4" }, [
1721
1722
  l({ class: "flex flex-auto items-center justify-center" }, [
@@ -1732,50 +1733,50 @@ const ns = u((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1732
1733
  ])
1733
1734
  ]));
1734
1735
  export {
1735
- Bt as A,
1736
- Jt as B,
1737
- Ut as C,
1738
- Lt as D,
1739
- Zt as E,
1736
+ Lt as A,
1737
+ Kt as B,
1738
+ Vt as C,
1739
+ At as D,
1740
+ es as E,
1740
1741
  Te as F,
1741
- es as G,
1742
- ts as H,
1743
- Wt as I,
1744
- ss as J,
1745
- os as K,
1746
- Gt as L,
1747
- Vt as M,
1748
- Rt as N,
1742
+ ts as G,
1743
+ ss as H,
1744
+ Gt as I,
1745
+ os as J,
1746
+ ns as K,
1747
+ Jt as L,
1748
+ Rt as M,
1749
+ Ht as N,
1749
1750
  vt as O,
1750
1751
  nt as P,
1751
1752
  wt as Q,
1752
- ns as R,
1753
- Nt as S,
1754
- Ht as T,
1753
+ ls as R,
1754
+ Ut as S,
1755
+ qt as T,
1755
1756
  ke as a,
1756
- At as b,
1757
+ Mt as b,
1757
1758
  De as c,
1758
1759
  Be as d,
1759
1760
  Le as e,
1760
1761
  Ae as f,
1761
- Mt as g,
1762
- Pt as h,
1763
- jt as i,
1762
+ Pt as g,
1763
+ jt as h,
1764
+ Ot as i,
1764
1765
  Pe as j,
1765
- Ot as k,
1766
+ zt as k,
1766
1767
  ee as l,
1767
- zt as m,
1768
- Et as n,
1768
+ Et as m,
1769
+ Nt as n,
1769
1770
  Re as o,
1770
- qt as p,
1771
- Yt as q,
1772
- _t as r,
1771
+ Yt as p,
1772
+ _t as q,
1773
+ Wt as r,
1773
1774
  T as s,
1774
1775
  S as t,
1775
1776
  Ye as u,
1776
- Kt as v,
1777
- Qt as w,
1777
+ Qt as v,
1778
+ Xt as w,
1778
1779
  ot as x,
1779
1780
  lt as y,
1780
- Xt as z
1781
+ Zt as z
1781
1782
  };
@@ -0,0 +1,29 @@
1
+ import { Div as a, H4 as d, P as c } from "@base-framework/atoms";
2
+ import { Atom as t } from "@base-framework/base";
3
+ const n = t((e, l) => {
4
+ const r = e.margin ?? "my-5 mx-5", s = e.padding ?? "p-4";
5
+ return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), a({
6
+ ...e,
7
+ class: `rounded-lg border bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${r} ${s} ${e.class || ""}`
8
+ }, l);
9
+ }), g = t((e, l) => {
10
+ const r = e.border === !0 ? "border-t" : "";
11
+ return a({
12
+ ...e,
13
+ class: `grid grid-cols-1 gap-y-4 sm:grid-cols-[1fr_2fr] sm:gap-x-6 pt-8 ${r} ${e.class || ""}`
14
+ }, [
15
+ e.label && a({
16
+ ...e.labelProps,
17
+ class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
18
+ }, [
19
+ d({ class: "text-base" }, e.label),
20
+ e.description && c({ class: "text-sm text-muted-foreground" }, e.description)
21
+ ]),
22
+ // Controls container: grows to fill remaining space, spacing between items
23
+ a({ class: "flex flex-col gap-y-4" }, l)
24
+ ]);
25
+ });
26
+ export {
27
+ n as C,
28
+ g as F
29
+ };