@base-framework/ui 1.0.235 → 1.0.237

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,6 +1,6 @@
1
1
  import { Div as n, H5 as W, P as g, I as f, Li as V, Span as i, Ul as q, Button as m, OnState as w, Label as J, Form as G, H2 as S, Header as D, Footer as P, A as H, H3 as K, Checkbox as Q, Nav as X, Input as y, UseParent as Z, Time as ee, Dialog as te } from "@base-framework/atoms";
2
2
  import { Atom as c, Component as v, Html as M, Dom as se, base as oe, Data as I, Builder as Y, Jot as $, DateTime as A } from "@base-framework/base";
3
- import { P as C, b as ne, R as le } from "./range-calendar-ClGfCsNx.js";
3
+ import { P as C, b as ne, R as le } from "./range-calendar-CMYN-04x.js";
4
4
  import { B as h, I as b } from "./buttons-Cm9etaEG.js";
5
5
  import { Icons as u } from "./icons.es.js";
6
6
  import { Timer as re, List as ae, DynamicTime as ie } from "@base-framework/organisms";
package/dist/index.es.js CHANGED
@@ -3,9 +3,9 @@ import { B as g, 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 W, U as H, W as L } 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, u as ca, M as ga, l as Ca, N as Ta, P as Da, p as ba, q as Ia, S as Sa, n as Pa, o as Ba, T as Fa, z as ka, E as Ma, m as fa, r as xa } from "./empty-state-BUAUwEQ4.js";
7
- import { A as va, b as ya, C as ha, D as Wa, a as Ha, F as La, M as Aa, P as Ra, R as wa, c as Ua, g as Ea, p as Ga } from "./range-calendar-ClGfCsNx.js";
8
- import { B as Va, p as ja, C as qa, j as Ja, D as za, m as _a, k as Ka, H as Qa, I as Xa, N as Ya, O as Za, P as $a, S as ae, n as ee, o as se, t as oe, s as te, q as re, r as ne, T as le, l as ie, U as pe, W as me, f as ue, h as de, i as ce, c as ge, d as Ce, b as Te, e as De, a as be, g as Ie } from "./signature-panel-CMGnCqcg.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, u as ca, M as ga, l as Ca, N as Ta, P as Da, p as ba, q as Ia, S as Sa, n as Pa, o as Ba, T as Fa, z as ka, E as Ma, m as fa, r as xa } from "./empty-state-Ctcag00p.js";
7
+ import { A as va, b as ya, C as ha, D as Wa, a as Ha, F as La, M as Aa, P as Ra, R as wa, c as Ua, g as Ea, p as Ga } from "./range-calendar-CMYN-04x.js";
8
+ import { B as Va, p as ja, C as qa, j as Ja, D as za, m as _a, k as Ka, H as Qa, I as Xa, N as Ya, O as Za, P as $a, S as ae, n as ee, o as se, t as oe, s as te, q as re, r as ne, T as le, l as ie, U as pe, W as me, f as ue, h as de, i as ce, c as ge, d as Ce, b as Te, e as De, a as be, g as Ie } from "./signature-panel-Bkj-9bST.js";
9
9
  import { B as Pe, I as Be, M as Fe, d as ke, e as Me, g as fe, N as xe, b as Ne, a as ve, f as ye, P as he, c as We, S as He, T as Le } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as Re, a as we, C as Ue, F as Ee, b as Ge, c as Oe, M as Ve, P as je, S as qe } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as ze, F as _e, M as Ke, a as Qe, T as Xe } from "./aside-template-McEj_Gxc.js";
@@ -1,5 +1,5 @@
1
- import { A as o, B as t, C as e, t as i, G as r, v as n, w as m, x as l, y as S, D, j as c, k as u, I as g, H as p, s as C, c as d, 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, u as M, M as k, l as x, N as v, P as E, p as N, q as R, S as h, n as L, o as U, T as j, z as q, E as z, m as G, r as H } from "./empty-state-BUAUwEQ4.js";
2
- import { A as O, P as _, g as K } from "./range-calendar-ClGfCsNx.js";
1
+ import { A as o, B as t, C as e, t as i, G as r, v as n, w as m, x as l, y as S, D, j as c, k as u, I as g, H as p, s as C, c as d, 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, u as M, M as k, l as x, N as v, P as E, p as N, q as R, S as h, n as L, o as U, T as j, z as q, E as z, m as G, r as H } from "./empty-state-Ctcag00p.js";
2
+ import { A as O, P as _, g as K } from "./range-calendar-CMYN-04x.js";
3
3
  export {
4
4
  o as Alert,
5
5
  O as Avatar,
@@ -1,5 +1,5 @@
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-CMGnCqcg.js";
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-ClGfCsNx.js";
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-Bkj-9bST.js";
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-CMYN-04x.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-Dj67Pb8l.js";
4
4
  export {
5
5
  s as BackButton,
@@ -1,12 +1,12 @@
1
- import { Div as l, Img as _, Span as H, Button as L, OnState as J, On as z } from "@base-framework/atoms";
1
+ import { Div as h, Img as _, Span as H, Button as L, OnState as J, On as z } from "@base-framework/atoms";
2
2
  import { Component as O, Data as B, Atom as j, DateTime as T } from "@base-framework/base";
3
3
  import { B as f } from "./buttons-Cm9etaEG.js";
4
4
  import { Icons as P } from "./icons.es.js";
5
5
  const U = (n, t) => {
6
- const e = n ? n.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, a = t.getBoundingClientRect(), s = 10, r = globalThis.scrollX, h = globalThis.scrollY;
7
- let i = e.left + r, d = e.bottom + h;
6
+ const e = n ? n.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, a = t.getBoundingClientRect(), s = 10, r = globalThis.scrollX, c = globalThis.scrollY;
7
+ let i = e.left + r, d = e.bottom + c;
8
8
  const g = globalThis.innerHeight - e.bottom, m = e.top;
9
- return i + a.width > globalThis.innerWidth && (i = globalThis.innerWidth - a.width - s), g < a.height && m > g ? d = e.top + h - a.height - s : g < a.height && (d = e.bottom + h - (a.height - g) - s), { x: i, y: d };
9
+ return i + a.width > globalThis.innerWidth && (i = globalThis.innerWidth - a.width - s), g < a.height && m > g ? d = e.top + c - a.height - s : g < a.height && (d = e.bottom + c - (a.height - g) - s), { x: i, y: d };
10
10
  };
11
11
  class Pt extends O {
12
12
  /**
@@ -56,7 +56,7 @@ class Pt extends O {
56
56
  */
57
57
  render() {
58
58
  const t = this.getSize();
59
- return l({
59
+ return h({
60
60
  class: `absolute inset-auto fadeIn mt-2 rounded-md p-0 shadow-lg bg-popover min-h-12 backdrop:bg-transparent text-inherit r z-30 ${t}`,
61
61
  popover: "manual",
62
62
  toggle: (e, { state: a }) => e.newState === "closed" ? a.open = !1 : null,
@@ -168,7 +168,7 @@ const q = j(({ src: n, alt: t }) => n ? _({
168
168
  default: "text-base"
169
169
  }, V = (n) => A[n] || A.default, Z = (n) => I[n] || I.default, tt = (n, t = null, e = "md") => {
170
170
  const a = G(n), s = Z(e);
171
- return l(
171
+ return h(
172
172
  {
173
173
  class: `
174
174
  flex items-center justify-center w-full h-full rounded-full
@@ -182,7 +182,7 @@ const q = j(({ src: n, alt: t }) => n ? _({
182
182
  );
183
183
  }, Tt = j(({ src: n, alt: t, fallbackText: e, watcherFallback: a, size: s }) => {
184
184
  const r = V(s);
185
- return l(
185
+ return h(
186
186
  {
187
187
  class: `relative flex items-center justify-center ${r}`
188
188
  },
@@ -191,7 +191,7 @@ const q = j(({ src: n, alt: t }) => n ? _({
191
191
  tt(e, a, s)
192
192
  ]
193
193
  );
194
- }), et = ({ currentMonth: n, currentYear: t, onSelect: e }) => l(
194
+ }), et = ({ currentMonth: n, currentYear: t, onSelect: e }) => h(
195
195
  { class: "grid grid-cols-3 gap-2" },
196
196
  T.monthNames.map(
197
197
  (a, s) => f(
@@ -215,7 +215,7 @@ const q = j(({ src: n, alt: t }) => n ? _({
215
215
  date: a,
216
216
  isToday: s,
217
217
  isOutsideMonth: r,
218
- select: h,
218
+ select: c,
219
219
  disabled: i
220
220
  } = n;
221
221
  return L(
@@ -229,18 +229,18 @@ const q = j(({ src: n, alt: t }) => n ? _({
229
229
  disabled: i || t === null,
230
230
  "aria-label": t ? `Day ${t}` : null,
231
231
  // Only call select if it's not disabled.
232
- click: () => !i && h(a)
232
+ click: () => !i && c(a)
233
233
  },
234
234
  t.toString()
235
235
  );
236
236
  }, Y = (n, t, e, a) => n === a.date && t === a.month && e === a.year, ct = (n, t, e, a = !1) => {
237
- const { year: s, month: r } = n, h = w(s, r, n.date), i = new Date(s, r, 1).getDay(), d = new Date(s, r + 1, 0).getDate(), g = new Date(s, r, 0).getDate(), m = [], C = r === 0 ? 11 : r - 1, v = r === 0 ? s - 1 : s;
237
+ const { year: s, month: r } = n, c = w(s, r, n.date), i = new Date(s, r, 1).getDay(), d = new Date(s, r + 1, 0).getDate(), g = new Date(s, r, 0).getDate(), m = [], C = r === 0 ? 11 : r - 1, v = r === 0 ? s - 1 : s;
238
238
  for (let o = i - 1; o >= 0; o--) {
239
239
  const u = g - o, p = Y(u, C, v, t), y = new Date(v, C, u) < new Date(t.year, t.month, t.date), x = a && y;
240
240
  m.push(
241
241
  N({
242
242
  day: u,
243
- currentDate: h,
243
+ currentDate: c,
244
244
  date: w(v, C, u),
245
245
  isToday: p,
246
246
  isOutsideMonth: !0,
@@ -254,7 +254,7 @@ const q = j(({ src: n, alt: t }) => n ? _({
254
254
  m.push(
255
255
  N({
256
256
  day: o,
257
- currentDate: h,
257
+ currentDate: c,
258
258
  date: w(s, r, o),
259
259
  isToday: u,
260
260
  isOutsideMonth: !1,
@@ -263,13 +263,13 @@ const q = j(({ src: n, alt: t }) => n ? _({
263
263
  })
264
264
  );
265
265
  }
266
- const b = r === 11 ? 0 : r + 1, $ = r === 11 ? s + 1 : s, c = (7 - m.length % 7) % 7;
267
- for (let o = 1; o <= c; o++) {
266
+ const b = r === 11 ? 0 : r + 1, $ = r === 11 ? s + 1 : s, l = (7 - m.length % 7) % 7;
267
+ for (let o = 1; o <= l; o++) {
268
268
  const u = Y(o, b, $, t), p = new Date($, b, o) < new Date(t.year, t.month, t.date), y = a && p;
269
269
  m.push(
270
270
  N({
271
271
  day: o,
272
- currentDate: h,
272
+ currentDate: c,
273
273
  date: w($, b, o),
274
274
  isToday: u,
275
275
  isOutsideMonth: !0,
@@ -292,28 +292,28 @@ const q = j(({ src: n, alt: t }) => n ? _({
292
292
  variant: "icon",
293
293
  icon: n === "Previous" ? P.chevron.single.left : P.chevron.single.right
294
294
  }
295
- ), lt = ({ onMonthClick: n, onYearClick: t, next: e, previous: a }) => l({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
295
+ ), lt = ({ onMonthClick: n, onYearClick: t, next: e, previous: a }) => h({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
296
296
  f({ click: n, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
297
297
  f({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
298
298
  R({ label: "Previous", click: a }),
299
299
  R({ label: "Next", click: e })
300
- ]), ht = (n) => l(
300
+ ]), ht = (n) => h(
301
301
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
302
302
  n
303
- ), ut = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(ht), dt = (n) => l({ class: "rdp w-full space-y-1" }, [
303
+ ), ut = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(ht), dt = (n) => h({ class: "rdp w-full space-y-1" }, [
304
304
  lt({
305
305
  onMonthClick: n.onMonthClick,
306
306
  onYearClick: n.onYearClick,
307
307
  next: n.next,
308
308
  previous: n.previous
309
309
  }),
310
- l({
310
+ h({
311
311
  class: "flex flex-auto flex-col w-full",
312
312
  onSet: [
313
313
  "currentDate",
314
314
  () => [
315
- l({ class: "grid grid-cols-7" }, ut()),
316
- l(
315
+ h({ class: "grid grid-cols-7" }, ut()),
316
+ h(
317
317
  { class: "grid grid-cols-7" },
318
318
  ct(
319
319
  n.current,
@@ -326,14 +326,14 @@ const q = j(({ src: n, alt: t }) => n ? _({
326
326
  ]
327
327
  })
328
328
  ]), gt = ({ currentMonth: n, currentYear: t, onSelect: e }) => {
329
- const a = t - 50, s = Array.from({ length: 101 }, (r, h) => a + h);
330
- return l(
329
+ const a = t - 50, s = Array.from({ length: 101 }, (r, c) => a + c);
330
+ return h(
331
331
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
332
332
  s.map(
333
333
  (r) => f(
334
334
  {
335
- click: (h) => {
336
- h.preventDefault(), h.stopPropagation(), e(r);
335
+ click: (c) => {
336
+ c.preventDefault(), c.stopPropagation(), e(r);
337
337
  },
338
338
  variant: r === t ? "primary" : "ghost",
339
339
  "aria-label": `Select ${r}`
@@ -452,7 +452,7 @@ class Nt extends O {
452
452
  * @returns {object}
453
453
  */
454
454
  render() {
455
- return l({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
455
+ return h({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
456
456
  J("view", (t) => {
457
457
  switch (t) {
458
458
  case "months":
@@ -508,17 +508,17 @@ const W = ({ label: n, click: t }) => f(
508
508
  variant: "icon",
509
509
  icon: n === "Previous" ? P.chevron.single.left : P.chevron.single.right
510
510
  }
511
- ), mt = ({ onMonthClick: n, onYearClick: t, next: e, previous: a }) => l({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
511
+ ), mt = ({ onMonthClick: n, onYearClick: t, next: e, previous: a }) => h({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
512
512
  f({ click: n, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
513
513
  f({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
514
514
  W({ label: "Previous", click: a }),
515
515
  W({ label: "Next", click: e })
516
- ]), ft = (n) => l({ class: "h-9 flex items-center justify-center font-medium" }, n), pt = () => l(
516
+ ]), ft = (n) => h({ class: "h-9 flex items-center justify-center font-medium" }, n), pt = () => h(
517
517
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
518
518
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(ft)
519
- ), yt = ({ day: n, iso: t, disabled: e, isStart: a, isEnd: s, isBetween: r, isOtherMonth: h, click: i }) => {
519
+ ), yt = ({ day: n, iso: t, disabled: e, isStart: a, isEnd: s, isBetween: r, isOtherMonth: c, click: i }) => {
520
520
  let d = "ghost", g = "";
521
- return a || s ? (d = "default", g = "bg-primary text-primary-foreground hover:bg-primary/90") : r && (g = "bg-accent text-accent-foreground hover:bg-accent/80"), e && (g += " opacity-50 cursor-not-allowed"), h && (g += " text-muted-foreground opacity-50"), f(
521
+ return a || s ? (d = "default", g = "bg-primary text-primary-foreground hover:bg-primary/90") : r && (g = "bg-accent text-accent-foreground hover:bg-accent/80"), e && (g += " opacity-50 cursor-not-allowed"), c && (g += " text-muted-foreground opacity-50"), f(
522
522
  {
523
523
  class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${g}`,
524
524
  variant: d,
@@ -530,9 +530,9 @@ const W = ({ label: n, click: t }) => f(
530
530
  n.toString()
531
531
  );
532
532
  }, Dt = ({ today: n, current: t, blockPriorDates: e, onDateClick: a }) => {
533
- const { start: s, end: r } = t, h = new Date(t.year, t.month, 1).getDay(), i = new Date(t.year, t.month + 1, 0).getDate(), d = [], g = t.month === 0 ? 11 : t.month - 1, m = t.month === 0 ? t.year - 1 : t.year, C = new Date(m, g + 1, 0).getDate(), v = t.month === 11 ? 0 : t.month + 1, b = t.month === 11 ? t.year + 1 : t.year;
534
- for (let c = h - 1; c >= 0; c--) {
535
- const o = C - c, u = w(m, g, o), p = new Date(m, g, o), y = new Date(n.year, n.month, n.date), x = p < y, M = e && x, S = s === u, k = r === u, X = s && r && u > s && u < r;
533
+ const { start: s, end: r } = t, c = new Date(t.year, t.month, 1).getDay(), i = new Date(t.year, t.month + 1, 0).getDate(), d = [], g = t.month === 0 ? 11 : t.month - 1, m = t.month === 0 ? t.year - 1 : t.year, C = new Date(m, g + 1, 0).getDate(), v = t.month === 11 ? 0 : t.month + 1, b = t.month === 11 ? t.year + 1 : t.year;
534
+ for (let l = c - 1; l >= 0; l--) {
535
+ const o = C - l, u = w(m, g, o), p = new Date(m, g, o), y = new Date(n.year, n.month, n.date), x = p < y, M = e && x, S = s === u, k = r === u, X = s && r && u > s && u < r;
536
536
  d.push({
537
537
  day: o,
538
538
  iso: u,
@@ -544,10 +544,10 @@ const W = ({ label: n, click: t }) => f(
544
544
  click: () => a(u)
545
545
  });
546
546
  }
547
- for (let c = 1; c <= i; c++) {
548
- const o = w(t.year, t.month, c), u = new Date(t.year, t.month, c), p = new Date(n.year, n.month, n.date), y = u < p, x = e && y, M = s === o, S = r === o, k = s && r && o > s && o < r;
547
+ for (let l = 1; l <= i; l++) {
548
+ const o = w(t.year, t.month, l), u = new Date(t.year, t.month, l), p = new Date(n.year, n.month, n.date), y = u < p, x = e && y, M = s === o, S = r === o, k = s && r && o > s && o < r;
549
549
  d.push({
550
- day: c,
550
+ day: l,
551
551
  iso: o,
552
552
  disabled: x,
553
553
  isStart: M,
@@ -560,10 +560,10 @@ const W = ({ label: n, click: t }) => f(
560
560
  });
561
561
  }
562
562
  const F = (7 - d.length % 7) % 7;
563
- for (let c = 1; c <= F; c++) {
564
- const o = w(b, v, c), u = new Date(b, v, c), p = new Date(n.year, n.month, n.date), y = u < p, x = e && y, M = s === o, S = r === o, k = s && r && o > s && o < r;
563
+ for (let l = 1; l <= F; l++) {
564
+ const o = w(b, v, l), u = new Date(b, v, l), p = new Date(n.year, n.month, n.date), y = u < p, x = e && y, M = s === o, S = r === o, k = s && r && o > s && o < r;
565
565
  d.push({
566
- day: c,
566
+ day: l,
567
567
  iso: o,
568
568
  disabled: x,
569
569
  isStart: M,
@@ -573,29 +573,29 @@ const W = ({ label: n, click: t }) => f(
573
573
  click: () => a(o)
574
574
  });
575
575
  }
576
- return l(
576
+ return h(
577
577
  { class: "grid grid-cols-7 gap-1" },
578
578
  d.map(
579
- (c, o) => yt({
580
- day: c.day,
581
- iso: c.iso,
582
- disabled: c.disabled,
583
- isStart: c.isStart,
584
- isEnd: c.isEnd,
585
- isBetween: c.isBetween,
586
- isOtherMonth: c.isOtherMonth,
587
- click: c.click
579
+ (l, o) => yt({
580
+ day: l.day,
581
+ iso: l.iso,
582
+ disabled: l.disabled,
583
+ isStart: l.isStart,
584
+ isEnd: l.isEnd,
585
+ isBetween: l.isBetween,
586
+ isOtherMonth: l.isOtherMonth,
587
+ click: l.click
588
588
  })
589
589
  )
590
590
  );
591
- }, xt = j((n, t) => l({ class: "flex flex-auto flex-col" }, [
591
+ }, xt = j((n, t) => h({ class: "flex flex-auto flex-col" }, [
592
592
  mt({
593
593
  onMonthClick: n.onMonthClick,
594
594
  onYearClick: n.onYearClick,
595
595
  next: n.next,
596
596
  previous: n.previous
597
597
  }),
598
- l({
598
+ h({
599
599
  class: "flex flex-auto flex-col w-full",
600
600
  onSet: [
601
601
  "currentDate",
@@ -610,7 +610,7 @@ const W = ({ label: n, click: t }) => f(
610
610
  ]
611
611
  ]
612
612
  })
613
- ])), wt = ({ currentMonth: n, currentYear: t, onSelect: e }) => l(
613
+ ])), wt = ({ currentMonth: n, currentYear: t, onSelect: e }) => h(
614
614
  { class: "grid grid-cols-3 gap-2" },
615
615
  T.monthNames.map(
616
616
  (a, s) => f(
@@ -624,27 +624,27 @@ const W = ({ label: n, click: t }) => f(
624
624
  a.substring(0, 3)
625
625
  )
626
626
  )
627
- ), vt = ({ start: n, end: t, selecting: e, onSelectStart: a, onSelectEnd: s }) => l({ class: "flex space-x-2 mb-4" }, [
627
+ ), vt = ({ start: n, end: t, selecting: e, onSelectStart: a, onSelectEnd: s }) => h({ class: "flex space-x-2 mb-4" }, [
628
628
  z("selecting", (r) => f({
629
629
  click: a,
630
630
  variant: r === "start" ? "primary" : "outline",
631
631
  class: "flex-1"
632
632
  }, [
633
- l({ class: "font-medium" }, E("current.start", "Start Date"))
633
+ h({ class: "font-medium" }, E("current.start", "Start Date"))
634
634
  ])),
635
635
  z("selecting", (r) => f({
636
636
  click: s,
637
637
  variant: r === "end" ? "primary" : "outline",
638
638
  class: "flex-1"
639
639
  }, [
640
- l({ class: "font-medium" }, E("current.end", "End Date"))
640
+ h({ class: "font-medium" }, E("current.end", "End Date"))
641
641
  ]))
642
642
  ]), E = (n, t) => [`[[${n}]]`, (e) => e == null ? t : bt(e)], bt = (n) => {
643
643
  const t = /* @__PURE__ */ new Date(n + "T00:00:00"), e = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
644
644
  return `${e[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
645
645
  }, Ct = ({ currentYear: n, onSelect: t }) => {
646
646
  const e = n - 50, a = Array.from({ length: 101 }, (s, r) => e + r);
647
- return l(
647
+ return h(
648
648
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
649
649
  a.map(
650
650
  (s) => f(
@@ -756,16 +756,20 @@ class Yt extends O {
756
756
  */
757
757
  render() {
758
758
  const { today: t, current: e, selecting: a } = this.data, { start: s, end: r } = e;
759
- return l({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
759
+ return h({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
760
760
  vt({
761
761
  start: s,
762
762
  end: r,
763
763
  selecting: a,
764
- onSelectStart: () => this.data.selecting = "start",
765
- onSelectEnd: () => this.data.selecting = "end"
764
+ onSelectStart: (c) => {
765
+ c.preventDefault(), c.stopPropagation(), this.data.selecting = "start";
766
+ },
767
+ onSelectEnd: (c) => {
768
+ c.preventDefault(), c.stopPropagation(), this.data.selecting = "end";
769
+ }
766
770
  }),
767
- J("view", (h) => {
768
- switch (h) {
771
+ J("view", (c) => {
772
+ switch (c) {
769
773
  case "months":
770
774
  return wt(
771
775
  {
@@ -4,7 +4,7 @@ import { B as T, I as _ } from "./buttons-Cm9etaEG.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
6
  import { C as ae, I as ie, H as ne } from "./inputs-CMjx5-IX.js";
7
- import { A as oe, P as le } from "./range-calendar-ClGfCsNx.js";
7
+ import { A as oe, P as le } from "./range-calendar-CMYN-04x.js";
8
8
  d((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.235",
3
+ "version": "1.0.237",
4
4
  "description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
5
5
  "main": "./dist/index.es.js",
6
6
  "scripts": {