@base-framework/ui 1.0.229 → 1.0.230

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/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { V as w, a as R } from "./veil-D4dRxILB.js";
5
5
  import { Icons as E } from "./icons.es.js";
6
6
  import { A as O, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as ea, a as sa, b as oa, I as ta, i as ra, g as na, e as la, h as ia, F as pa, d as ua, f as ma, u as da, M as ca, l as ga, N as Ca, P as Ta, p as ba, q as Da, S as Ia, n as Sa, o as Ba, T as Pa, y as Fa, z as Ma, m as ka, r as Na } from "./empty-state-2O1fITpG.js";
7
7
  import { A as va, b as xa, C as ya, D as ha, a as Wa, F as Ha, M as La, P as Aa, c as wa, g as Ra, p as Ua } from "./calendar-Bn55oWBo.js";
8
- import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-B1BZiFct.js";
8
+ import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-D0PGwcZN.js";
9
9
  import { B as Se, I as Be, M as Pe, d as Fe, e as Me, g as ke, N as Ne, b as fe, a as ve, f as xe, P as ye, c as he, S as We, T as He } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as Ae, a as we, C as Re, F as Ue, b as Ee, c as Ge, M as Oe, P as Ve, S as je } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as ze, F as Je, M as _e, a as Ke, T as Qe } from "./aside-template-McEj_Gxc.js";
@@ -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, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-B1BZiFct.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, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-D0PGwcZN.js";
2
2
  import { b as U, C as G, D as R, a as j, F as q, M as w, c as z, p as A } from "./calendar-Bn55oWBo.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 {
@@ -1,22 +1,22 @@
1
- import { Button as S, Div as o, On as w, Span as C, OnState as K, Th as F, UseParent as G, I as J, Thead as _, Tr as V, Table as P, P as x, Li as I, Time as Z, Nav as M, Ul as k, Section as H, Canvas as tt } from "@base-framework/atoms";
2
- import { Atom as f, Component as g, Data as L, DateTime as $, router as D, NavLink as U, DataTracker as E, Jot as et, base as O, Dom as N } from "@base-framework/base";
3
- import { B as m, I as st } from "./buttons-Cm9etaEG.js";
4
- import { Icons as b } from "./icons.es.js";
5
- import { F as at, p as v, A as nt, P as it } from "./calendar-Bn55oWBo.js";
6
- import { TableBody as ot, DataTableBody as lt, ScrollableTableBody as rt, List as ct, IntervalTimer as dt } from "@base-framework/organisms";
7
- import { C as ht, I as ut, H as ft } from "./inputs-CMjx5-IX.js";
8
- f((e, t) => ({
1
+ import { Button as P, Div as o, On as k, Span as $, OnState as at, Th as J, UseParent as nt, I as it, Thead as ot, Tr as lt, Table as A, P as T, Li as W, Time as rt, Nav as N, Ul as B, Section as _, Canvas as ct } from "@base-framework/atoms";
2
+ import { Atom as g, Component as m, Data as j, DateTime as F, router as O, NavLink as V, DataTracker as Z, Jot as dt, base as U, Dom as Q } from "@base-framework/base";
3
+ import { B as p, I as ht } from "./buttons-Cm9etaEG.js";
4
+ import { Icons as v } from "./icons.es.js";
5
+ import { F as Y, p as R, A as ut, P as ft } from "./calendar-Bn55oWBo.js";
6
+ import { TableBody as gt, DataTableBody as mt, ScrollableTableBody as pt, List as yt, IntervalTimer as wt } from "@base-framework/organisms";
7
+ import { C as bt, I as xt, H as kt } from "./inputs-CMjx5-IX.js";
8
+ g((e, t) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...e,
11
11
  children: t
12
12
  }));
13
- f(({ value: e, label: t }) => S({
13
+ g(({ value: e, label: t }) => P({
14
14
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-md px-8 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
15
15
  onState: ["performance", { active: e }],
16
16
  dataSet: ["performance", ["state", e, "active"]],
17
17
  click: (s, { state: a }) => a.performance = e
18
18
  }, t));
19
- class be extends g {
19
+ class Me extends m {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -34,36 +34,36 @@ class be extends g {
34
34
  return o({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
- const gt = (e) => {
37
+ const vt = (e) => {
38
38
  const t = new Date(e, 11, 31), s = new Date(e, 0, 1);
39
39
  return t.getDay() === 4 || // December 31 is a Thursday
40
40
  s.getDay() === 4;
41
- }, mt = (e) => {
41
+ }, Dt = (e) => {
42
42
  const t = new Date(e.valueOf()), s = (t.getDay() + 6) % 7;
43
43
  t.setDate(t.getDate() - s + 3);
44
44
  const a = t.getFullYear(), n = new Date(a, 0, 4);
45
45
  n.setDate(n.getDate() - (n.getDay() + 6) % 7);
46
46
  const i = Math.ceil((t - n) / 6048e5) + 1;
47
- return i > 52 && !gt(a) ? {
47
+ return i > 52 && !vt(a) ? {
48
48
  weekNumber: 1,
49
49
  year: a + 1
50
50
  } : {
51
51
  weekNumber: i,
52
52
  year: a
53
53
  };
54
- }, pt = (e, t, s) => {
54
+ }, St = (e, t, s) => {
55
55
  if (s === 0) return [];
56
56
  const a = new Date(e, t, 0).getDate();
57
57
  return Array.from(
58
58
  { length: s },
59
59
  (n, i) => new Date(e, t - 1, a - s + i + 1)
60
60
  );
61
- }, yt = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), z = (e, t) => {
61
+ }, Ct = (e, t, s) => Array.from({ length: s }, (a, n) => new Date(e, t + 1, n + 1)), X = (e, t) => {
62
62
  const s = new Date(t, 0, 4), a = (s.getDay() + 6) % 7, n = new Date(s);
63
63
  n.setDate(s.getDate() - a);
64
64
  const i = new Date(n);
65
65
  return i.setDate(n.getDate() + (e - 1) * 7), i;
66
- }, xe = (e, t) => {
66
+ }, Le = (e, t) => {
67
67
  const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = [];
68
68
  let i = [];
69
69
  for (let l = 1 - s; l <= a; l++) {
@@ -71,18 +71,18 @@ const gt = (e) => {
71
71
  i.push(l > 0 ? r : null), (i.length === 7 || l === a) && (n.push([...i]), i = []);
72
72
  }
73
73
  return n;
74
- }, ke = (e, t) => {
74
+ }, Te = (e, t) => {
75
75
  const s = new Date(e, t + 1, 0).getDate(), a = [];
76
76
  let n = [];
77
77
  for (let i = 1; i <= s; i++)
78
78
  n.push(new Date(e, t, i)), n.length === 7 && (a.push(n), n = []);
79
79
  return n.length > 0 && a.push(n), a;
80
- }, wt = (e, t, s) => {
80
+ }, It = (e, t, s) => {
81
81
  const a = /* @__PURE__ */ new Date();
82
82
  return a.getDate() === e && a.getMonth() === t && a.getFullYear() === s;
83
- }, bt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
84
- const i = wt(e, t, s);
85
- return S({
83
+ }, Mt = ({ day: e, month: t, year: s, weekNumber: a, selectWeek: n }) => {
84
+ const i = It(e, t, s);
85
+ return P({
86
86
  text: e || "",
87
87
  disabled: !e,
88
88
  class: `
@@ -92,19 +92,19 @@ const gt = (e) => {
92
92
  `,
93
93
  click: () => n(a, s)
94
94
  });
95
- }, xt = (e, t) => {
96
- const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = pt(e, t, s), i = Array.from({ length: a }, (h, p) => new Date(e, t, p + 1)), l = (n.length + i.length) % 7, r = l === 0 ? 0 : 7 - l, c = yt(e, t, r), d = [...n, ...i, ...c], u = [];
97
- for (let h = 0; h < d.length; h += 7) {
98
- const p = d.slice(h, h + 7), y = p.find((R) => R) || new Date(e, t, 1), { weekNumber: T, year: B } = mt(y);
99
- u.push({
100
- weekNumber: T,
101
- year: B,
102
- days: p
95
+ }, Lt = (e, t) => {
96
+ const s = new Date(e, t, 1).getDay(), a = new Date(e, t + 1, 0).getDate(), n = St(e, t, s), i = Array.from({ length: a }, (u, b) => new Date(e, t, b + 1)), l = (n.length + i.length) % 7, r = l === 0 ? 0 : 7 - l, c = Ct(e, t, r), h = [...n, ...i, ...c], y = [];
97
+ for (let u = 0; u < h.length; u += 7) {
98
+ const b = h.slice(u, u + 7), x = b.find((d) => d) || new Date(e, t, 1), { weekNumber: E, year: z } = Dt(x);
99
+ y.push({
100
+ weekNumber: E,
101
+ year: z,
102
+ days: b
103
103
  });
104
104
  }
105
- return u;
106
- }, kt = ({ selectWeek: e }) => w("month", (t, s, { data: a }) => {
107
- const { year: n, month: i, currentDate: l } = a, r = xt(n, i);
105
+ return y;
106
+ }, Tt = ({ selectWeek: e }) => k("month", (t, s, { data: a }) => {
107
+ const { year: n, month: i, currentDate: l } = a, r = Lt(n, i);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -115,12 +115,12 @@ const gt = (e) => {
115
115
  class: "grid grid-cols-7 col-span-7 text-center text-muted-foreground items-center"
116
116
  },
117
117
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
118
- (c) => C({ class: "px-1 py-1", text: c })
118
+ (c) => $({ class: "px-1 py-1", text: c })
119
119
  )
120
120
  ),
121
121
  // Render each "week" row
122
122
  ...r.map(
123
- ({ weekNumber: c, days: d, year: u }) => o({
123
+ ({ weekNumber: c, days: h, year: y }) => o({
124
124
  class: "grid grid-cols-8 col-span-8 items-center ring-primary rounded-sm px-1",
125
125
  onSet: ["currentWeek", {
126
126
  ring: c
@@ -129,7 +129,7 @@ const gt = (e) => {
129
129
  // Left column: ISO week number
130
130
  o({
131
131
  class: "font-medium text-center col-span-1 rounded-sm cursor-pointer",
132
- click: () => e(c, u),
132
+ click: () => e(c, y),
133
133
  // If you have a 'currentWeek' state, you can highlight it with 'onSet'
134
134
  onSet: ["currentWeek", {
135
135
  "text-primary-foreground": c,
@@ -140,11 +140,11 @@ const gt = (e) => {
140
140
  // The 7 cells for each day in the row
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
- d.map(
144
- (h) => bt({
145
- year: (h == null ? void 0 : h.getFullYear()) || null,
146
- month: (h == null ? void 0 : h.getMonth()) || null,
147
- day: (h == null ? void 0 : h.getDate()) || null,
143
+ h.map(
144
+ (u) => Mt({
145
+ year: (u == null ? void 0 : u.getFullYear()) || null,
146
+ month: (u == null ? void 0 : u.getMonth()) || null,
147
+ day: (u == null ? void 0 : u.getDate()) || null,
148
148
  weekNumber: c,
149
149
  selectWeek: e
150
150
  })
@@ -154,7 +154,7 @@ const gt = (e) => {
154
154
  )
155
155
  ]
156
156
  );
157
- }), Y = ({ label: e, click: t }) => m(
157
+ }), q = ({ label: e, click: t }) => p(
158
158
  {
159
159
  class: `
160
160
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -165,20 +165,20 @@ const gt = (e) => {
165
165
  click: t,
166
166
  "aria-label": `${e} month`,
167
167
  variant: "icon",
168
- icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
168
+ icon: e === "Previous" ? v.chevron.single.left : v.chevron.single.right
169
169
  }
170
- ), vt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
- C("[[monthName]] [[year]]"),
172
- Y({
170
+ ), Bt = ({ next: e, previous: t }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
+ $("[[monthName]] [[year]]"),
172
+ q({
173
173
  label: "Previous",
174
174
  click: t
175
175
  }),
176
- Y({
176
+ q({
177
177
  label: "Next",
178
178
  click: e
179
179
  })
180
180
  ]);
181
- class ve extends g {
181
+ class Be extends m {
182
182
  /**
183
183
  * This will declare the props for the compiler.
184
184
  *
@@ -193,8 +193,8 @@ class ve extends g {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a = z(s, t.getFullYear());
197
- return new L({
196
+ const t = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(t), a = X(s, t.getFullYear());
197
+ return new j({
198
198
  monthName: this.getMonthName(a.getMonth()),
199
199
  year: a.getFullYear(),
200
200
  month: a.getMonth(),
@@ -231,7 +231,7 @@ class ve extends g {
231
231
  * @returns {string}
232
232
  */
233
233
  getMonthName(t) {
234
- return $.monthNames[t];
234
+ return F.monthNames[t];
235
235
  }
236
236
  /**
237
237
  * Updates the calendar to show the previous month.
@@ -276,7 +276,7 @@ class ve extends g {
276
276
  */
277
277
  selectWeek(t, s) {
278
278
  this.data.currentWeek = t;
279
- const a = z(t, s);
279
+ const a = X(t, s);
280
280
  this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(t);
281
281
  }
282
282
  /**
@@ -286,17 +286,17 @@ class ve extends g {
286
286
  */
287
287
  render() {
288
288
  return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
289
- vt({
289
+ Bt({
290
290
  next: () => this.goToNextMonth(),
291
291
  previous: () => this.goToPreviousMonth()
292
292
  }),
293
- kt({
293
+ Tt({
294
294
  selectWeek: (t, s) => this.selectWeek(t, s)
295
295
  })
296
296
  ]);
297
297
  }
298
298
  }
299
- const j = ({ label: e, click: t }) => m(
299
+ const K = ({ label: e, click: t }) => p(
300
300
  {
301
301
  class: `
302
302
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -307,61 +307,88 @@ const j = ({ label: e, click: t }) => m(
307
307
  click: t,
308
308
  "aria-label": `${e} month`,
309
309
  variant: "icon",
310
- icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
311
- }
312
- ), Dt = ({ onMonthClick: e, onYearClick: t, next: s, previous: a }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
313
- m({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
314
- m({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
315
- j({ label: "Previous", click: a }),
316
- j({ label: "Next", click: s })
317
- ]), St = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Ct = () => o(
310
+ icon: e === "Previous" ? v.chevron.single.left : v.chevron.single.right
311
+ }
312
+ ), Rt = ({ onMonthClick: e, onYearClick: t, next: s, previous: a }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
313
+ p({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
314
+ p({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
315
+ K({ label: "Previous", click: a }),
316
+ K({ label: "Next", click: s })
317
+ ]), Ot = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Pt = () => o(
318
318
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
319
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(St)
320
- ), It = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, click: l }) => {
321
- let r = "ghost", c = "";
322
- return a || n ? (r = "default", c = "bg-primary text-primary-foreground hover:bg-primary/90") : i && (c = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (c += " opacity-50 cursor-not-allowed"), m(
319
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Ot)
320
+ ), $t = ({ day: e, iso: t, disabled: s, isStart: a, isEnd: n, isBetween: i, isOtherMonth: l, click: r }) => {
321
+ let c = "ghost", h = "";
322
+ return a || n ? (c = "default", h = "bg-primary text-primary-foreground hover:bg-primary/90") : i && (h = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (h += " opacity-50 cursor-not-allowed"), l && (h += " text-muted-foreground opacity-50"), p(
323
323
  {
324
- class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${c}`,
325
- variant: r,
324
+ class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${h}`,
325
+ variant: c,
326
326
  disabled: s,
327
327
  click: () => {
328
- s || l();
328
+ s || r();
329
329
  }
330
330
  },
331
331
  e.toString()
332
332
  );
333
- }, Mt = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
334
- const { start: n, end: i } = t, l = new Date(t.year, t.month, 1).getDay(), r = new Date(t.year, t.month + 1, 0).getDate(), c = [];
335
- for (let d = 0; d < l; d++)
336
- c.push(null);
333
+ }, Wt = ({ today: e, current: t, blockPriorDates: s, onDateClick: a }) => {
334
+ const { start: n, end: i } = t, l = new Date(t.year, t.month, 1).getDay(), r = new Date(t.year, t.month + 1, 0).getDate(), c = [], h = t.month === 0 ? 11 : t.month - 1, y = t.month === 0 ? t.year - 1 : t.year, u = new Date(y, h + 1, 0).getDate(), b = t.month === 11 ? 0 : t.month + 1, x = t.month === 11 ? t.year + 1 : t.year;
335
+ for (let d = l - 1; d >= 0; d--) {
336
+ const f = u - d, w = Y(y, h, f), D = new Date(y, h, f), S = new Date(e.year, e.month, e.date), C = D < S, I = s && C, M = n === w, L = i === w, st = n && i && w > n && w < i;
337
+ c.push({
338
+ day: f,
339
+ iso: w,
340
+ disabled: I,
341
+ isStart: M,
342
+ isEnd: L,
343
+ isBetween: st,
344
+ isOtherMonth: !0,
345
+ click: () => a(w)
346
+ });
347
+ }
337
348
  for (let d = 1; d <= r; d++) {
338
- const u = at(t.year, t.month, d), h = new Date(t.year, t.month, d), p = new Date(e.year, e.month, e.date), y = h < p, T = s && y, B = n === u, R = i === u, q = n && i && u > n && u < i;
349
+ const f = Y(t.year, t.month, d), w = new Date(t.year, t.month, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f, L = n && i && f > n && f < i;
350
+ c.push({
351
+ day: d,
352
+ iso: f,
353
+ disabled: C,
354
+ isStart: I,
355
+ isEnd: M,
356
+ isBetween: L,
357
+ isOtherMonth: !1,
358
+ click: () => a(f)
359
+ });
360
+ }
361
+ const z = 42 - c.length;
362
+ for (let d = 1; d <= z; d++) {
363
+ const f = Y(x, b, d), w = new Date(x, b, d), D = new Date(e.year, e.month, e.date), S = w < D, C = s && S, I = n === f, M = i === f, L = n && i && f > n && f < i;
339
364
  c.push({
340
365
  day: d,
341
- iso: u,
342
- disabled: T,
343
- isStart: B,
344
- isEnd: R,
345
- isBetween: q,
346
- click: () => a(u)
366
+ iso: f,
367
+ disabled: C,
368
+ isStart: I,
369
+ isEnd: M,
370
+ isBetween: L,
371
+ isOtherMonth: !0,
372
+ click: () => a(f)
347
373
  });
348
374
  }
349
375
  return o(
350
376
  { class: "grid grid-cols-7 gap-1" },
351
377
  c.map(
352
- (d, u) => d ? It({
378
+ (d, f) => $t({
353
379
  day: d.day,
354
380
  iso: d.iso,
355
381
  disabled: d.disabled,
356
382
  isStart: d.isStart,
357
383
  isEnd: d.isEnd,
358
384
  isBetween: d.isBetween,
385
+ isOtherMonth: d.isOtherMonth,
359
386
  click: d.click
360
- }) : o({ class: "h-9" })
387
+ })
361
388
  )
362
389
  );
363
- }, Lt = f((e, t) => o({ class: "flex flex-auto flex-col" }, [
364
- Dt({
390
+ }, Nt = g((e, t) => o({ class: "flex flex-auto flex-col" }, [
391
+ Rt({
365
392
  onMonthClick: e.onMonthClick,
366
393
  onYearClick: e.onYearClick,
367
394
  next: e.next,
@@ -372,8 +399,8 @@ const j = ({ label: e, click: t }) => m(
372
399
  onSet: [
373
400
  "currentDate",
374
401
  () => [
375
- Ct(),
376
- Mt({
402
+ Pt(),
403
+ Wt({
377
404
  today: e.today,
378
405
  current: e.current,
379
406
  blockPriorDates: e.blockPriorDates,
@@ -382,10 +409,10 @@ const j = ({ label: e, click: t }) => m(
382
409
  ]
383
410
  ]
384
411
  })
385
- ])), Tt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
412
+ ])), jt = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
386
413
  { class: "grid grid-cols-3 gap-2" },
387
- $.monthNames.map(
388
- (a, n) => m(
414
+ F.monthNames.map(
415
+ (a, n) => p(
389
416
  {
390
417
  click: (i) => {
391
418
  i.preventDefault(), i.stopPropagation(), s(n);
@@ -396,30 +423,30 @@ const j = ({ label: e, click: t }) => m(
396
423
  a.substring(0, 3)
397
424
  )
398
425
  )
399
- ), Bt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
400
- w("selecting", (i) => m({
426
+ ), zt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
427
+ k("selecting", (i) => p({
401
428
  click: a,
402
429
  variant: i === "start" ? "primary" : "outline",
403
430
  class: "flex-1"
404
431
  }, [
405
- o({ class: "font-medium" }, A("current.start", "Start Date"))
432
+ o({ class: "font-medium" }, G("current.start", "Start Date"))
406
433
  ])),
407
- w("selecting", (i) => m({
434
+ k("selecting", (i) => p({
408
435
  click: n,
409
436
  variant: i === "end" ? "primary" : "outline",
410
437
  class: "flex-1"
411
438
  }, [
412
- o({ class: "font-medium" }, A("current.end", "End Date"))
439
+ o({ class: "font-medium" }, G("current.end", "End Date"))
413
440
  ]))
414
- ]), A = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Rt(s)], Rt = (e) => {
441
+ ]), G = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Yt(s)], Yt = (e) => {
415
442
  const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
416
443
  return `${s[t.getDay()]}, ${t.getDate()} ${a[t.getMonth()]}`;
417
- }, Pt = ({ currentYear: e, onSelect: t }) => {
444
+ }, At = ({ currentYear: e, onSelect: t }) => {
418
445
  const s = e - 50, a = Array.from({ length: 101 }, (n, i) => s + i);
419
446
  return o(
420
447
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
421
448
  a.map(
422
- (n) => m(
449
+ (n) => p(
423
450
  {
424
451
  click: (i) => {
425
452
  i.preventDefault(), i.stopPropagation(), t(n);
@@ -432,7 +459,7 @@ const j = ({ label: e, click: t }) => m(
432
459
  )
433
460
  );
434
461
  };
435
- class De extends g {
462
+ class Re extends m {
436
463
  /**
437
464
  * Declare compiler props.
438
465
  *
@@ -448,14 +475,14 @@ class De extends g {
448
475
  */
449
476
  setData() {
450
477
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, a = s.getMonth(), n = s.getFullYear();
451
- return new L({
478
+ return new j({
452
479
  today: {
453
480
  date: t.getDate(),
454
481
  month: t.getMonth(),
455
482
  year: t.getFullYear()
456
483
  },
457
484
  monthName: this.getMonthName(a),
458
- currentData: `${s.getFullYear()}-${v(s.getMonth() + 1)}-${v(s.getDate())}`,
485
+ currentData: `${s.getFullYear()}-${R(s.getMonth() + 1)}-${R(s.getDate())}`,
459
486
  current: {
460
487
  date: t.getDate(),
461
488
  month: a,
@@ -473,7 +500,7 @@ class De extends g {
473
500
  * @returns {string}
474
501
  */
475
502
  getMonthName(t) {
476
- return $.monthNames[t];
503
+ return F.monthNames[t];
477
504
  }
478
505
  /**
479
506
  * Initialize component state.
@@ -519,7 +546,7 @@ class De extends g {
519
546
  */
520
547
  setCurrent({ month: t, year: s, date: a = null }) {
521
548
  const n = this.data.current;
522
- n.month = (t + 12) % 12, n.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), a !== null && (n.date = a), this.data.monthName = this.getMonthName(n.month), this.data.currentDate = `${s}-${v(t + 1)}-${v(n.date)}`;
549
+ n.month = (t + 12) % 12, n.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), a !== null && (n.date = a), this.data.monthName = this.getMonthName(n.month), this.data.currentDate = `${s}-${R(t + 1)}-${R(n.date)}`;
523
550
  }
524
551
  /**
525
552
  * Render the range calendar.
@@ -529,17 +556,17 @@ class De extends g {
529
556
  render() {
530
557
  const { today: t, current: s, selecting: a } = this.data, { start: n, end: i } = s;
531
558
  return o({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm" }, [
532
- Bt({
559
+ zt({
533
560
  start: n,
534
561
  end: i,
535
562
  selecting: a,
536
563
  onSelectStart: () => this.data.selecting = "start",
537
564
  onSelectEnd: () => this.data.selecting = "end"
538
565
  }),
539
- K("view", (l) => {
566
+ at("view", (l) => {
540
567
  switch (l) {
541
568
  case "months":
542
- return Tt(
569
+ return jt(
543
570
  {
544
571
  currentMonth: s.month,
545
572
  currentYear: s.year,
@@ -549,7 +576,7 @@ class De extends g {
549
576
  }
550
577
  );
551
578
  case "years":
552
- return Pt(
579
+ return At(
553
580
  {
554
581
  currentYear: s.year,
555
582
  onSelect: (r) => {
@@ -558,7 +585,7 @@ class De extends g {
558
585
  }
559
586
  );
560
587
  default:
561
- return Lt({
588
+ return Nt({
562
589
  monthName: this.data.monthName,
563
590
  year: s.year,
564
591
  today: t,
@@ -581,28 +608,28 @@ class De extends g {
581
608
  ]);
582
609
  }
583
610
  }
584
- const $t = (e, t) => {
611
+ const Ft = (e, t) => {
585
612
  const s = e.toggleAllSelectedRows();
586
613
  t.state.checked = !s;
587
- }, Wt = (e) => F({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
588
- G((t) => new ht({ class: "mr-2", onChange: (s, a) => $t(t, a) }))
589
- ]), Ot = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
614
+ }, Ht = (e) => J({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
615
+ nt((t) => new bt({ class: "mr-2", onChange: (s, a) => Ft(t, a) }))
616
+ ]), Et = ({ align: e, sortable: t, key: s, label: a, sort: n, class: i }) => {
590
617
  const l = e || "justify-start";
591
- return F({
618
+ return J({
592
619
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
593
620
  click: t && (() => n(s))
594
621
  }, [
595
622
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
596
- C(a),
597
- t && J({ class: "ml-2", html: b.arrows.upDown })
623
+ $(a),
624
+ t && it({ class: "ml-2", html: v.arrows.upDown })
598
625
  ])
599
626
  ]);
600
- }, W = (e) => _([
601
- V({
627
+ }, H = (e) => ot([
628
+ lt({
602
629
  class: "text-muted-foreground border-b",
603
630
  map: [
604
631
  e.headers,
605
- (t) => t.label === "checkbox" ? Wt({ toggle: e.toggle }) : Ot({
632
+ (t) => t.label === "checkbox" ? Ht({ toggle: e.toggle }) : Et({
606
633
  align: t.align,
607
634
  sortable: t.sortable,
608
635
  key: t.key,
@@ -611,7 +638,7 @@ const $t = (e, t) => {
611
638
  })
612
639
  ]
613
640
  })
614
- ]), Nt = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new ot({
641
+ ]), Ut = ({ key: e, rows: t, selectRow: s, rowItem: a, emptyState: n }) => new gt({
615
642
  cache: "list",
616
643
  key: e,
617
644
  items: t,
@@ -619,7 +646,7 @@ const $t = (e, t) => {
619
646
  class: "divide-y divide-border",
620
647
  emptyState: n
621
648
  });
622
- class Q extends g {
649
+ class tt extends m {
623
650
  /**
624
651
  * Initializes component data.
625
652
  *
@@ -627,7 +654,7 @@ class Q extends g {
627
654
  */
628
655
  setData() {
629
656
  let t = this.rows && this.rows.length > 0;
630
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new L({
657
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new j({
631
658
  selectedRows: [],
632
659
  // @ts-ignore
633
660
  hasItems: t,
@@ -690,14 +717,14 @@ class Q extends g {
690
717
  render() {
691
718
  const t = this.rows, s = this.border !== !1 ? "border" : "";
692
719
  return o({ class: "w-full flex flex-auto flex-col" }, [
693
- w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
720
+ k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
694
721
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
695
- P({ class: "w-full" }, [
722
+ A({ class: "w-full" }, [
696
723
  // @ts-ignore
697
- this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
724
+ this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
698
725
  // @ts-ignore
699
726
  this.customHeader ?? null,
700
- Nt({
727
+ Ut({
701
728
  // @ts-ignore
702
729
  key: this.key,
703
730
  rows: t,
@@ -772,7 +799,7 @@ class Q extends g {
772
799
  this.data.selectedRows = [];
773
800
  }
774
801
  }
775
- const zt = (e) => new lt({
802
+ const Qt = (e) => new mt({
776
803
  cache: "list",
777
804
  loadMoreItems: e.loadMoreItems,
778
805
  offset: e.offset,
@@ -783,7 +810,7 @@ const zt = (e) => new lt({
783
810
  rowItem: (t) => e.rowItem(t, e.selectRow),
784
811
  class: "divide-y divide-border"
785
812
  });
786
- class Yt extends Q {
813
+ class Xt extends tt {
787
814
  /**
788
815
  * Renders the DataTable component.
789
816
  *
@@ -792,14 +819,14 @@ class Yt extends Q {
792
819
  render() {
793
820
  const t = this.rows, s = this.border !== !1 ? "border" : "";
794
821
  return o({ class: "w-full flex flex-auto flex-col" }, [
795
- w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
822
+ k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
796
823
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
797
- P({ class: "w-full" }, [
824
+ A({ class: "w-full" }, [
798
825
  // @ts-ignore
799
- this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
826
+ this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
800
827
  // @ts-ignore
801
828
  this.customHeader ?? null,
802
- zt({
829
+ Qt({
803
830
  // @ts-ignore
804
831
  loadMoreItems: this.loadMoreItems,
805
832
  // @ts-ignore
@@ -831,7 +858,7 @@ class Yt extends Q {
831
858
  this.list.refresh();
832
859
  }
833
860
  }
834
- const Se = f((e) => new Yt(
861
+ const Oe = g((e) => new Xt(
835
862
  {
836
863
  cache: e.cache ?? "list",
837
864
  tableData: e.data,
@@ -847,7 +874,7 @@ const Se = f((e) => new Yt(
847
874
  border: e.border,
848
875
  emptyState: e.emptyState
849
876
  }
850
- )), jt = (e) => new rt({
877
+ )), qt = (e) => new pt({
851
878
  cache: "list",
852
879
  scrollContainer: e.scrollContainer,
853
880
  loadMoreItems: e.loadMoreItems,
@@ -859,7 +886,7 @@ const Se = f((e) => new Yt(
859
886
  rowItem: (t) => e.rowItem(t, e.selectRow),
860
887
  class: "divide-y divide-border"
861
888
  });
862
- class At extends Q {
889
+ class Kt extends tt {
863
890
  /**
864
891
  * Renders the DataTable component.
865
892
  *
@@ -868,14 +895,14 @@ class At extends Q {
868
895
  render() {
869
896
  const t = this.rows, s = this.border !== !1 ? "border" : "";
870
897
  return o({ class: "w-full flex flex-auto flex-col" }, [
871
- w("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
898
+ k("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
872
899
  o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
873
- P({ class: "w-full" }, [
900
+ A({ class: "w-full" }, [
874
901
  // @ts-ignore
875
- this.headers && W({ headers: this.headers, sort: (a) => this.sortRows(a) }),
902
+ this.headers && H({ headers: this.headers, sort: (a) => this.sortRows(a) }),
876
903
  // @ts-ignore
877
904
  this.customHeader ?? null,
878
- jt({
905
+ qt({
879
906
  // @ts-ignore
880
907
  scrollContainer: this.scrollContainer,
881
908
  // @ts-ignore
@@ -909,7 +936,7 @@ class At extends Q {
909
936
  this.list.refresh();
910
937
  }
911
938
  }
912
- const Ce = f((e) => new At(
939
+ const Pe = g((e) => new Kt(
913
940
  {
914
941
  cache: e.cache ?? "list",
915
942
  tableData: e.data,
@@ -926,45 +953,45 @@ const Ce = f((e) => new At(
926
953
  border: e.border,
927
954
  emptyState: e.emptyState
928
955
  }
929
- )), Ft = f(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
930
- x({ class: "text-base font-semibold leading-6 m-0" }, e),
931
- x({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
932
- ])), Ht = () => o({ class: "flex items-center gap-x-1.5" }, [
956
+ )), Gt = g(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
957
+ T({ class: "text-base font-semibold leading-6 m-0" }, e),
958
+ T({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
959
+ ])), Jt = () => o({ class: "flex items-center gap-x-1.5" }, [
933
960
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
934
961
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
935
962
  ]),
936
- x({ class: "text-xs leading-5 text-gray-500" }, "Online")
937
- ]), Ut = (e) => x({ class: "text-xs leading-5 text-muted-foreground" }, [
938
- C("Last seen "),
939
- Z({ datetime: e }, "3h ago")
940
- ]), Et = (e, t) => e === "online" ? Ht() : Ut(t), Qt = f(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
941
- x({ class: "text-sm leading-6 m-0" }, e),
942
- Et(s, t)
943
- ])), Xt = (e) => e.split(" ").map((s) => s[0]).join(""), qt = f((e) => I({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
963
+ T({ class: "text-xs leading-5 text-gray-500" }, "Online")
964
+ ]), _t = (e) => T({ class: "text-xs leading-5 text-muted-foreground" }, [
965
+ $("Last seen "),
966
+ rt({ datetime: e }, "3h ago")
967
+ ]), Vt = (e, t) => e === "online" ? Jt() : _t(t), Zt = g(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
968
+ T({ class: "text-sm leading-6 m-0" }, e),
969
+ Vt(s, t)
970
+ ])), te = (e) => e.split(" ").map((s) => s[0]).join(""), ee = g((e) => W({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
944
971
  o({ class: "flex min-w-0 gap-x-4" }, [
945
- nt({ src: e.image, alt: e.name, fallbackText: Xt(e.name) }),
946
- Ft({ name: e.name, email: e.email })
972
+ ut({ src: e.image, alt: e.name, fallbackText: te(e.name) }),
973
+ Gt({ name: e.name, email: e.email })
947
974
  ]),
948
- Qt({
975
+ Zt({
949
976
  role: e.role,
950
977
  lastSeen: e.lastSeen,
951
978
  status: e.status
952
979
  })
953
- ])), Ie = f((e) => new ct({
980
+ ])), $e = g((e) => new yt({
954
981
  cache: "list",
955
982
  key: "name",
956
983
  items: e.users,
957
984
  role: "list",
958
985
  class: "divide-y divide-border",
959
- rowItem: qt
960
- })), Kt = (e, t) => t.includes(e), Gt = (e, t, s) => e.exact ? s === t : Kt(t, s), Jt = ({ text: e, href: t, exact: s, hidden: a }) => new U({
986
+ rowItem: ee
987
+ })), se = (e, t) => t.includes(e), ae = (e, t, s) => e.exact ? s === t : se(t, s), ne = ({ text: e, href: t, exact: s, hidden: a }) => new V({
961
988
  text: e,
962
989
  href: t,
963
990
  exact: s,
964
991
  dataSet: ["selected", ["state", !0, "active"]],
965
992
  class: `${a ? "hidden" : "inline-flex"} items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background hover:bg-primary hover:text-primary-foreground disabled:opacity-50 disabled:pointer-events-none data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm`
966
993
  });
967
- class Me extends g {
994
+ class We extends m {
968
995
  /**
969
996
  * This will declare the props for the compiler.
970
997
  *
@@ -985,14 +1012,14 @@ class Me extends g {
985
1012
  * @returns {object}
986
1013
  */
987
1014
  render() {
988
- return M(
1015
+ return N(
989
1016
  { class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
990
1017
  [
991
- k({
1018
+ B({
992
1019
  class: "flex space-x-4",
993
1020
  map: [this.options, (t) => this.addLink(t)],
994
1021
  watch: {
995
- value: ["[[path]]", D.data],
1022
+ value: ["[[path]]", O.data],
996
1023
  callBack: this.updateLinks.bind(this)
997
1024
  }
998
1025
  })
@@ -1005,7 +1032,7 @@ class Me extends g {
1005
1032
  * @returns {void}
1006
1033
  */
1007
1034
  afterSetup() {
1008
- const t = D.data.path;
1035
+ const t = O.data.path;
1009
1036
  this.updateLinks(t);
1010
1037
  }
1011
1038
  /**
@@ -1020,7 +1047,7 @@ class Me extends g {
1020
1047
  for (const a of this.links) {
1021
1048
  if (!a.rendered)
1022
1049
  continue;
1023
- Gt(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
1050
+ ae(a, a.getLinkPath(), t) ? (this.updateLink(a, !0), s = !0) : this.updateLink(a, !1);
1024
1051
  }
1025
1052
  !s && this.links[0] && this.updateLink(this.links[0], !0);
1026
1053
  }
@@ -1050,7 +1077,7 @@ class Me extends g {
1050
1077
  * @returns {object}
1051
1078
  */
1052
1079
  addLink({ label: t, href: s, exact: a, hidden: n }) {
1053
- const i = Jt({ text: t, href: s, exact: a, hidden: n });
1080
+ const i = ne({ text: t, href: s, exact: a, hidden: n });
1054
1081
  return this.links.push(i), i;
1055
1082
  }
1056
1083
  /**
@@ -1062,13 +1089,13 @@ class Me extends g {
1062
1089
  this.links = [];
1063
1090
  }
1064
1091
  }
1065
- const Le = f((e) => {
1092
+ const Ne = g((e) => {
1066
1093
  const t = e.margin || "m-4 ml-0";
1067
1094
  return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
1068
- m({ variant: "back", class: "ghost", ...e })
1095
+ p({ variant: "back", class: "ghost", ...e })
1069
1096
  ]);
1070
1097
  });
1071
- class X extends g {
1098
+ class et extends m {
1072
1099
  /**
1073
1100
  * This will declare the props for the compiler.
1074
1101
  *
@@ -1155,13 +1182,13 @@ class X extends g {
1155
1182
  return this.children;
1156
1183
  }
1157
1184
  }
1158
- E.addType("dockableOverlay", (e) => {
1185
+ Z.addType("dockableOverlay", (e) => {
1159
1186
  if (!e)
1160
1187
  return;
1161
1188
  const t = e.component;
1162
1189
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
1163
1190
  });
1164
- class Te extends X {
1191
+ class je extends et {
1165
1192
  /**
1166
1193
  * This will stop presistence.
1167
1194
  *
@@ -1227,7 +1254,7 @@ class Te extends X {
1227
1254
  * @returns {void}
1228
1255
  */
1229
1256
  afterSetup() {
1230
- E.add(
1257
+ Z.add(
1231
1258
  this.container,
1232
1259
  "dockableOverlay",
1233
1260
  {
@@ -1270,7 +1297,7 @@ class Te extends X {
1270
1297
  document.documentElement.style.overflowY = "auto";
1271
1298
  }
1272
1299
  }
1273
- class Be extends X {
1300
+ class ze extends et {
1274
1301
  /**
1275
1302
  * This will get the overlay type.
1276
1303
  *
@@ -1289,7 +1316,7 @@ class Be extends X {
1289
1316
  this.container = t, this.initialize();
1290
1317
  }
1291
1318
  }
1292
- const _t = f(({ index: e, click: t, state: s }, a) => I({
1319
+ const ie = g(({ index: e, click: t, state: s }, a) => W({
1293
1320
  class: "p-2 cursor-pointer hover:bg-muted/50",
1294
1321
  onState: [
1295
1322
  [s, "selectedIndex", {
@@ -1298,11 +1325,11 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1298
1325
  }]
1299
1326
  ],
1300
1327
  click: () => t(e)
1301
- }, a)), Vt = f(({ selectOption: e, state: t }) => k({
1328
+ }, a)), oe = g(({ selectOption: e, state: t }) => B({
1302
1329
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
1303
- for: ["filteredOptions", (s, a) => _t({ index: a, click: e, state: t }, s.label)]
1304
- })), Zt = f((e) => o({ class: "relative flex items-center" }, [
1305
- ut({
1330
+ for: ["filteredOptions", (s, a) => ie({ index: a, click: e, state: t }, s.label)]
1331
+ })), le = g((e) => o({ class: "relative flex items-center" }, [
1332
+ xt({
1306
1333
  cache: "input",
1307
1334
  class: e.class ?? "",
1308
1335
  placeholder: e.placeholder ?? "Search...",
@@ -1318,22 +1345,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1318
1345
  ]
1319
1346
  }),
1320
1347
  e.icon && o({ class: "absolute flex right-0 mr-2" }, [
1321
- st(e.icon)
1348
+ ht(e.icon)
1322
1349
  ])
1323
- ])), te = (e) => o({
1350
+ ])), re = (e) => o({
1324
1351
  class: "relative flex fle-auto flex-col",
1325
1352
  onState: ["open", (t, s, a) => {
1326
1353
  if (t)
1327
- return new it({
1354
+ return new ft({
1328
1355
  cache: "dropdown",
1329
1356
  parent: a,
1330
1357
  button: a.input,
1331
1358
  size: "xl"
1332
1359
  }, [
1333
- Vt(e)
1360
+ oe(e)
1334
1361
  ]);
1335
1362
  }]
1336
- }), Re = et(
1363
+ }), Ye = dt(
1337
1364
  {
1338
1365
  /**
1339
1366
  * This will set up the data object.
@@ -1342,7 +1369,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1342
1369
  */
1343
1370
  setData() {
1344
1371
  const e = this.options || [];
1345
- return new L({
1372
+ return new j({
1346
1373
  options: e,
1347
1374
  filteredOptions: e
1348
1375
  });
@@ -1430,7 +1457,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1430
1457
  */
1431
1458
  render() {
1432
1459
  return o({ class: "relative w-full max-w-md" }, [
1433
- Zt({
1460
+ le({
1434
1461
  // @ts-ignore
1435
1462
  state: this.state,
1436
1463
  // @ts-ignore
@@ -1442,7 +1469,7 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1442
1469
  // @ts-ignore
1443
1470
  handleKeyDown: this.handleKeyDown.bind(this)
1444
1471
  }),
1445
- te({
1472
+ re({
1446
1473
  // @ts-ignore
1447
1474
  state: this.state,
1448
1475
  // @ts-ignore
@@ -1453,22 +1480,22 @@ const _t = f(({ index: e, click: t, state: s }, a) => I({
1453
1480
  ]);
1454
1481
  }
1455
1482
  }
1456
- ), ee = (e) => I(
1483
+ ), ce = (e) => W(
1457
1484
  {
1458
1485
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
1459
1486
  dataSet: ["selected", ["state", e.value, "active"]]
1460
1487
  },
1461
1488
  [
1462
- S({
1489
+ P({
1463
1490
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
1464
1491
  onSet: ["selected", { selected: e.value }],
1465
1492
  click: (t) => e.callBack(e.value)
1466
1493
  }, e.label)
1467
1494
  ]
1468
- ), se = (e, t) => (e.callBack = t, ee(e)), ae = (e) => M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1469
- k({ class: "flex flex-auto flex-row", map: [e.options, (t) => se(t, e.callBack)] })
1495
+ ), de = (e, t) => (e.callBack = t, ce(e)), he = (e) => N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1496
+ B({ class: "flex flex-auto flex-row", map: [e.options, (t) => de(t, e.callBack)] })
1470
1497
  ]);
1471
- class Pe extends g {
1498
+ class Ae extends m {
1472
1499
  /**
1473
1500
  * This will declare the props for the compiler.
1474
1501
  *
@@ -1485,12 +1512,12 @@ class Pe extends g {
1485
1512
  render() {
1486
1513
  const t = this.select.bind(this);
1487
1514
  return o({ class: "" }, [
1488
- ae({
1515
+ he({
1489
1516
  class: this.class,
1490
1517
  options: this.options,
1491
1518
  callBack: t
1492
1519
  }),
1493
- H({
1520
+ _({
1494
1521
  class: "tab-content",
1495
1522
  onState: ["selected", this.updateContent.bind(this)]
1496
1523
  })
@@ -1556,23 +1583,23 @@ class Pe extends g {
1556
1583
  };
1557
1584
  }
1558
1585
  }
1559
- const ne = (e) => I(
1586
+ const ue = (e) => W(
1560
1587
  {
1561
1588
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
1562
1589
  dataSet: ["selected", ["state", e.value, "active"]]
1563
1590
  },
1564
1591
  [
1565
- S({
1592
+ P({
1566
1593
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
1567
1594
  onSet: ["selected", { selected: e.value }],
1568
1595
  click: (t) => e.callBack(e.value),
1569
1596
  disabled: e.disabled
1570
1597
  }, e.label)
1571
1598
  ]
1572
- ), ie = (e, t) => (e.callBack = t, ne(e)), oe = (e) => M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1573
- k({ class: "flex flex-auto flex-row", map: [e.options, (t) => ie(t, e.callBack)] })
1599
+ ), fe = (e, t) => (e.callBack = t, ue(e)), ge = (e) => N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${e.class}` }, [
1600
+ B({ class: "flex flex-auto flex-row", map: [e.options, (t) => fe(t, e.callBack)] })
1574
1601
  ]);
1575
- class $e extends g {
1602
+ class Fe extends m {
1576
1603
  /**
1577
1604
  * This will declare the props for the compiler.
1578
1605
  *
@@ -1588,7 +1615,7 @@ class $e extends g {
1588
1615
  */
1589
1616
  render() {
1590
1617
  const t = this.select.bind(this);
1591
- return oe({
1618
+ return ge({
1592
1619
  class: this.class,
1593
1620
  options: this.options,
1594
1621
  callBack: t
@@ -1615,17 +1642,17 @@ class $e extends g {
1615
1642
  };
1616
1643
  }
1617
1644
  }
1618
- const le = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), re = (e, t) => {
1645
+ const me = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), pe = (e, t) => {
1619
1646
  const s = e.getLinkPath();
1620
- return e.exact ? t === s : le(s, t);
1621
- }, ce = ({ text: e, href: t, exact: s }) => new U({
1647
+ return e.exact ? t === s : me(s, t);
1648
+ }, ye = ({ text: e, href: t, exact: s }) => new V({
1622
1649
  text: e,
1623
1650
  href: t,
1624
1651
  exact: s,
1625
1652
  dataSet: ["selected", ["state", !0, "active"]],
1626
1653
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm"
1627
1654
  });
1628
- class de extends g {
1655
+ class we extends m {
1629
1656
  /**
1630
1657
  * This will declare the props for the compiler.
1631
1658
  *
@@ -1646,12 +1673,12 @@ class de extends g {
1646
1673
  * @returns {object}
1647
1674
  */
1648
1675
  render() {
1649
- return M({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1650
- k({
1676
+ return N({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1677
+ B({
1651
1678
  class: "flex flex-auto flex-row",
1652
1679
  map: [this.options, (t) => this.addLink(t)],
1653
1680
  watch: {
1654
- value: ["[[path]]", D.data],
1681
+ value: ["[[path]]", O.data],
1655
1682
  callBack: this.updateLinks.bind(this)
1656
1683
  }
1657
1684
  })
@@ -1663,7 +1690,7 @@ class de extends g {
1663
1690
  * @returns {void}
1664
1691
  */
1665
1692
  afterSetup() {
1666
- const t = D.data.path;
1693
+ const t = O.data.path;
1667
1694
  this.updateLinks(t);
1668
1695
  }
1669
1696
  /**
@@ -1676,7 +1703,7 @@ class de extends g {
1676
1703
  let s = !1, a = this.links[0];
1677
1704
  this.deactivateAllLinks();
1678
1705
  for (const n of this.links)
1679
- if (n.rendered !== !1 && (s = re(n, t), s === !0)) {
1706
+ if (n.rendered !== !1 && (s = pe(n, t), s === !0)) {
1680
1707
  this.updateLink(n, !0);
1681
1708
  break;
1682
1709
  }
@@ -1708,7 +1735,7 @@ class de extends g {
1708
1735
  * @returns {object}
1709
1736
  */
1710
1737
  addLink({ label: t, href: s, exact: a }) {
1711
- const n = ce({ text: t, href: s, exact: a });
1738
+ const n = ye({ text: t, href: s, exact: a });
1712
1739
  return this.links.push(n), n;
1713
1740
  }
1714
1741
  /**
@@ -1720,7 +1747,7 @@ class de extends g {
1720
1747
  this.links = [];
1721
1748
  }
1722
1749
  }
1723
- class We extends g {
1750
+ class He extends m {
1724
1751
  /**
1725
1752
  * This will declare the props for the compiler.
1726
1753
  *
@@ -1736,11 +1763,11 @@ class We extends g {
1736
1763
  */
1737
1764
  render() {
1738
1765
  return o({ class: "tab-panel" }, [
1739
- new de({
1766
+ new we({
1740
1767
  class: this.class,
1741
1768
  options: this.options
1742
1769
  }),
1743
- H({
1770
+ _({
1744
1771
  class: "tab-content",
1745
1772
  switch: this.addGroup()
1746
1773
  })
@@ -1766,7 +1793,7 @@ class We extends g {
1766
1793
  return s;
1767
1794
  }
1768
1795
  }
1769
- class he extends g {
1796
+ class be extends m {
1770
1797
  /**
1771
1798
  * Runs before rendering, sets up defaults, a timer for drawing,
1772
1799
  * and basic canvas properties.
@@ -1776,7 +1803,7 @@ class he extends g {
1776
1803
  onCreated() {
1777
1804
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1778
1805
  const t = 1e3 / 60;
1779
- this.timer = new dt(t, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1806
+ this.timer = new wt(t, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1780
1807
  }
1781
1808
  /**
1782
1809
  * Renders a <canvas> element.
@@ -1784,7 +1811,7 @@ class he extends g {
1784
1811
  * @returns {object} Layout definition for the canvas.
1785
1812
  */
1786
1813
  render() {
1787
- return tt({
1814
+ return ct({
1788
1815
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1789
1816
  });
1790
1817
  }
@@ -1833,8 +1860,8 @@ class he extends g {
1833
1860
  let s, a;
1834
1861
  const n = this.canvas, i = n.width / parseInt(n.style.width), l = n.getBoundingClientRect();
1835
1862
  if (t.touches && t.touches.length) {
1836
- const d = t.touches[0];
1837
- s = d.clientX, a = d.clientY;
1863
+ const h = t.touches[0];
1864
+ s = h.clientX, a = h.clientY;
1838
1865
  } else
1839
1866
  s = t.x || t.clientX, a = t.y || t.clientY;
1840
1867
  const r = parseInt((s - l.left) * i), c = parseInt((a - l.top) * i);
@@ -1881,8 +1908,8 @@ class he extends g {
1881
1908
  const { canvas: t, ctx: s } = this, a = t.toDataURL();
1882
1909
  if (this.scale(), this.setupBackground(s), a !== "data:,") {
1883
1910
  const n = new globalThis.Image();
1884
- O.on("load", n, function i() {
1885
- s.drawImage(n, 0, 0), O.off("load", n, i);
1911
+ U.on("load", n, function i() {
1912
+ s.drawImage(n, 0, 0), U.off("load", n, i);
1886
1913
  }), n.src = a;
1887
1914
  }
1888
1915
  this.draw();
@@ -1902,7 +1929,7 @@ class he extends g {
1902
1929
  * @returns {void}
1903
1930
  */
1904
1931
  noScaleResize() {
1905
- const t = N.getSize(container);
1932
+ const t = Q.getSize(container);
1906
1933
  this.width = canvas.width = t.width, this.height = canvas.height = t.height;
1907
1934
  }
1908
1935
  /**
@@ -1912,11 +1939,11 @@ class he extends g {
1912
1939
  * @returns {void}
1913
1940
  */
1914
1941
  scale() {
1915
- const t = this.canvas, s = this.container, a = N.getSize(s), n = this.targetSize, i = n.width, l = n.height;
1942
+ const t = this.canvas, s = this.container, a = Q.getSize(s), n = this.targetSize, i = n.width, l = n.height;
1916
1943
  let r = i + "px", c = l + "px";
1917
1944
  if (this.width = t.width = i, this.height = t.height = l, a.width !== 0 && a.height !== 0) {
1918
- const d = a.width, u = a.height, h = d / i, p = u / l, y = Math.min(h, p);
1919
- r = i * y + "px", c = l * y + "px";
1945
+ const h = a.width, y = a.height, u = h / i, b = y / l, x = Math.min(u, b);
1946
+ r = i * x + "px", c = l * x + "px";
1920
1947
  }
1921
1948
  t.style.width = r, t.style.height = c;
1922
1949
  }
@@ -1992,7 +2019,7 @@ class he extends g {
1992
2019
  this.timer.stop(), this.status = "stopped";
1993
2020
  }
1994
2021
  }
1995
- class Oe extends g {
2022
+ class Ee extends m {
1996
2023
  /**
1997
2024
  * Sets up default properties for the signature panel.
1998
2025
  *
@@ -2009,19 +2036,19 @@ class Oe extends g {
2009
2036
  */
2010
2037
  render() {
2011
2038
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
2012
- ft({
2039
+ kt({
2013
2040
  cache: "hiddenInput",
2014
2041
  required: !0,
2015
2042
  bind: this.path + ".data"
2016
2043
  }),
2017
2044
  o({ class: "absolute top-2 right-2" }, [
2018
- m({
2045
+ p({
2019
2046
  variant: "icon",
2020
- icon: b.circleX,
2047
+ icon: v.circleX,
2021
2048
  click: this.reset.bind(this)
2022
2049
  })
2023
2050
  ]),
2024
- new he({
2051
+ new be({
2025
2052
  cache: "canvasLayer",
2026
2053
  margin: this.margin,
2027
2054
  targetSize: this.targetSize,
@@ -2071,37 +2098,37 @@ class Oe extends g {
2071
2098
  }
2072
2099
  }
2073
2100
  export {
2074
- Le as B,
2075
- Wt as C,
2076
- Nt as D,
2077
- Ot as H,
2078
- Be as I,
2079
- Me as N,
2080
- X as O,
2081
- be as P,
2082
- De as R,
2083
- Ce as S,
2084
- W as T,
2085
- qt as U,
2086
- ve as W,
2087
- yt as a,
2088
- z as b,
2089
- mt as c,
2090
- xe as d,
2091
- ke as e,
2092
- bt as f,
2093
- pt as g,
2094
- kt as h,
2095
- vt as i,
2096
- Q as j,
2097
- Se as k,
2098
- Ie as l,
2099
- Te as m,
2100
- Re as n,
2101
- Zt as o,
2102
- Pe as p,
2103
- $e as q,
2104
- de as r,
2105
- We as s,
2106
- Oe as t
2101
+ Ne as B,
2102
+ Ht as C,
2103
+ Ut as D,
2104
+ Et as H,
2105
+ ze as I,
2106
+ We as N,
2107
+ et as O,
2108
+ Me as P,
2109
+ Re as R,
2110
+ Pe as S,
2111
+ H as T,
2112
+ ee as U,
2113
+ Be as W,
2114
+ Ct as a,
2115
+ X as b,
2116
+ Dt as c,
2117
+ Le as d,
2118
+ Te as e,
2119
+ Mt as f,
2120
+ St as g,
2121
+ Tt as h,
2122
+ Bt as i,
2123
+ tt as j,
2124
+ Oe as k,
2125
+ $e as l,
2126
+ je as m,
2127
+ Ye as n,
2128
+ le as o,
2129
+ Ae as p,
2130
+ Fe as q,
2131
+ we as r,
2132
+ He as s,
2133
+ Ee as t
2107
2134
  };
@@ -1,9 +1,10 @@
1
- export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween, click }: {
1
+ export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween, isOtherMonth, click }: {
2
2
  day: number;
3
3
  iso: string;
4
4
  disabled: boolean;
5
5
  isStart: boolean;
6
6
  isEnd: boolean;
7
7
  isBetween: boolean;
8
+ isOtherMonth: boolean;
8
9
  click: Function;
9
10
  }): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.229",
3
+ "version": "1.0.230",
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": {