@base-framework/ui 1.0.306 → 1.0.308

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 { C as F, d as B, D as P, c as k, E as M, F as v, H as x, I as N, M as f,
5
5
  import { Icons as G } from "./icons.es.js";
6
6
  import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as ia, i as la, h as pa, j as da, e as ua, k as ma, F as ga, d as Ca, f as ca, L as Ta, x as ba, M as Da, o as Ia, N as Sa, P as Fa, s as Ba, t as Pa, S as ka, q as Ma, r as va, T as xa, H as Na, I as fa, p as ya, u as ha } from "./empty-state-vu_Mhyk4.js";
7
7
  import { A as Ua, b as Wa, C as Ha, D as wa, a as Aa, F as Ra, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-CnBylqhu.js";
8
- import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, x as ie, s as le, q as pe, r as de, T as ue, t as me, w as ge, u as Ce, v as ce, l as Te, U as be, W as De, f as Ie, h as Se, i as Fe, c as Be, d as Pe, b as ke, e as Me, a as ve, g as xe } from "./signature-panel-fsF3hz3L.js";
8
+ import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, x as ie, s as le, q as pe, r as de, T as ue, t as me, w as ge, u as Ce, v as ce, l as Te, U as be, W as De, f as Ie, h as Se, i as Fe, c as Be, d as Pe, b as ke, e as Me, a as ve, g as xe } from "./signature-panel-CEQCcUUN.js";
9
9
  import { B as fe, I as ye, M as he, d as Le, e as Ue, g as We, N as He, b as we, a as Ae, f as Re, P as Ge, c as Oe, S as Ee, T as Ve } from "./mobile-nav-wrapper-CWqhZ0qz.js";
10
10
  import { B as qe, a as Je, C as ze, F as Ke, b as Qe, c as _e, M as Xe, P as Ye, S as Ze } from "./sidebar-menu-page-UmKsAvjb.js";
11
11
  import { A as as, F as es, M as ss, a as os, T as ts } from "./aside-template-sUm-F2f0.js";
@@ -1,4 +1,4 @@
1
- import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-fsF3hz3L.js";
1
+ import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-CEQCcUUN.js";
2
2
  import { b as R, C as j, D as q, a as z, F as A, M as E, R as J, c as K, p as Q } from "./range-calendar-CnBylqhu.js";
3
3
  import { B as X, I as Y, M as Z, d as _, e as $, g as aa, N as ea, b as sa, a as na, f as ta, P as oa, c as ra, S as la, T as ia } from "./mobile-nav-wrapper-CWqhZ0qz.js";
4
4
  export {
@@ -1,16 +1,16 @@
1
- import { Button as k, Div as o, On as S, Span as I, Th as z, UseParent as F, I as E, Thead as G, Tr as Q, Table as L, P as y, Li as w, Time as X, Nav as m, Ul as g, Section as C, Canvas as q } from "@base-framework/atoms";
2
- import { Atom as h, Component as c, Data as B, DateTime as K, router as x, NavLink as T, DataTracker as N, Jot as V, base as R, Dom as W } from "@base-framework/base";
3
- import { B as M, I as _ } from "./buttons-CHEs54Wl.js";
1
+ import { Button as w, Div as o, On as S, Span as C, Th as N, UseParent as E, I as Q, Thead as G, Tr as X, Table as I, P as x, Li as y, Time as q, Nav as m, Ul as g, Section as L, Canvas as K } from "@base-framework/atoms";
2
+ import { Atom as h, Component as c, Data as B, DateTime as V, router as k, NavLink as T, DataTracker as U, Jot as _, base as R, Dom as O } from "@base-framework/base";
3
+ import { B as M, I as J } from "./buttons-CHEs54Wl.js";
4
4
  import { Icons as D } from "./icons.es.js";
5
- import { TableBody as J, DataTableBody as Z, ScrollableTableBody as ee, List as te, IntervalTimer as se } from "@base-framework/organisms";
6
- import { C as ae, I as ie, H as ne } from "./inputs-9udyzkHR.js";
7
- import { A as oe, P as le } from "./range-calendar-CnBylqhu.js";
5
+ import { TableBody as Z, DataTableBody as ee, ScrollableTableBody as te, List as se, IntervalTimer as ae } from "@base-framework/organisms";
6
+ import { C as ie, I as ne, H as oe } from "./inputs-9udyzkHR.js";
7
+ import { A as le, P as re } from "./range-calendar-CnBylqhu.js";
8
8
  h((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
11
11
  children: e
12
12
  }));
13
- h(({ value: t, label: e }) => k({
13
+ h(({ value: t, label: e }) => w({
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: t }],
16
16
  dataSet: ["performance", ["state", t, "active"]],
@@ -34,31 +34,31 @@ class ft extends c {
34
34
  return o({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
- const re = (t) => {
37
+ const ce = (t) => {
38
38
  const e = new Date(t, 11, 31), s = new Date(t, 0, 1);
39
39
  return e.getDay() === 4 || // December 31 is a Thursday
40
40
  s.getDay() === 4;
41
- }, ce = (t) => {
41
+ }, de = (t) => {
42
42
  const e = new Date(t.valueOf()), s = (e.getDay() + 6) % 7;
43
43
  e.setDate(e.getDate() - s + 3);
44
44
  const a = e.getFullYear(), i = new Date(a, 0, 4);
45
45
  i.setDate(i.getDate() - (i.getDay() + 6) % 7);
46
46
  const n = Math.ceil((e - i) / 6048e5) + 1;
47
- return n > 52 && !re(a) ? {
47
+ return n > 52 && !ce(a) ? {
48
48
  weekNumber: 1,
49
49
  year: a + 1
50
50
  } : {
51
51
  weekNumber: n,
52
52
  year: a
53
53
  };
54
- }, de = (t, e, s) => {
54
+ }, he = (t, e, s) => {
55
55
  if (s === 0) return [];
56
56
  const a = new Date(t, e, 0).getDate();
57
57
  return Array.from(
58
58
  { length: s },
59
59
  (i, n) => new Date(t, e - 1, a - s + n + 1)
60
60
  );
61
- }, he = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), O = (t, e) => {
61
+ }, ue = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), W = (t, e) => {
62
62
  const s = new Date(e, 0, 4), a = (s.getDay() + 6) % 7, i = new Date(s);
63
63
  i.setDate(s.getDate() - a);
64
64
  const n = new Date(i);
@@ -77,12 +77,12 @@ const re = (t) => {
77
77
  for (let n = 1; n <= s; n++)
78
78
  i.push(new Date(t, e, n)), i.length === 7 && (a.push(i), i = []);
79
79
  return i.length > 0 && a.push(i), a;
80
- }, ue = (t, e, s) => {
80
+ }, fe = (t, e, s) => {
81
81
  const a = /* @__PURE__ */ new Date();
82
82
  return a.getDate() === t && a.getMonth() === e && a.getFullYear() === s;
83
- }, fe = ({ day: t, month: e, year: s, weekNumber: a, selectWeek: i }) => {
84
- const n = ue(t, e, s);
85
- return k({
83
+ }, ge = ({ day: t, month: e, year: s, weekNumber: a, selectWeek: i }) => {
84
+ const n = fe(t, e, s);
85
+ return w({
86
86
  text: t || "",
87
87
  disabled: !t,
88
88
  class: `
@@ -92,19 +92,19 @@ const re = (t) => {
92
92
  `,
93
93
  click: () => i(a, s)
94
94
  });
95
- }, ge = (t, e) => {
96
- const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = de(t, e, s), n = Array.from({ length: a }, (u, b) => new Date(t, e, b + 1)), l = (i.length + n.length) % 7, d = l === 0 ? 0 : 7 - l, r = he(t, e, d), f = [...i, ...n, ...r], p = [];
95
+ }, me = (t, e) => {
96
+ const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = he(t, e, s), n = Array.from({ length: a }, (u, b) => new Date(t, e, b + 1)), l = (i.length + n.length) % 7, d = l === 0 ? 0 : 7 - l, r = ue(t, e, d), f = [...i, ...n, ...r], p = [];
97
97
  for (let u = 0; u < f.length; u += 7) {
98
- const b = f.slice(u, u + 7), v = b.find((Y) => Y) || new Date(t, e, 1), { weekNumber: A, year: H } = ce(v);
98
+ const b = f.slice(u, u + 7), v = b.find((F) => F) || new Date(t, e, 1), { weekNumber: H, year: Y } = de(v);
99
99
  p.push({
100
- weekNumber: A,
101
- year: H,
100
+ weekNumber: H,
101
+ year: Y,
102
102
  days: b
103
103
  });
104
104
  }
105
105
  return p;
106
- }, me = ({ selectWeek: t }) => S("month", (e, s, { data: a }) => {
107
- const { year: i, month: n, currentDate: l } = a, d = ge(i, n);
106
+ }, pe = ({ selectWeek: t }) => S("month", (e, s, { data: a }) => {
107
+ const { year: i, month: n, currentDate: l } = a, d = me(i, n);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -115,7 +115,7 @@ const re = (t) => {
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
- (r) => I({ class: "px-1 py-1", text: r })
118
+ (r) => C({ class: "px-1 py-1", text: r })
119
119
  )
120
120
  ),
121
121
  // Render each "week" row
@@ -141,7 +141,7 @@ const re = (t) => {
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
143
  f.map(
144
- (u) => fe({
144
+ (u) => ge({
145
145
  year: u?.getFullYear() || null,
146
146
  month: u?.getMonth() || null,
147
147
  day: u?.getDate() || null,
@@ -167,8 +167,8 @@ const re = (t) => {
167
167
  variant: "icon",
168
168
  icon: t === "Previous" ? D.chevron.single.left : D.chevron.single.right
169
169
  }
170
- ), pe = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
- I("[[monthName]] [[year]]"),
170
+ ), be = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
+ C("[[monthName]] [[year]]"),
172
172
  $({
173
173
  label: "Previous",
174
174
  click: e
@@ -193,7 +193,7 @@ class pt extends c {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = O(s, e.getFullYear());
196
+ const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = W(s, e.getFullYear());
197
197
  return new B({
198
198
  monthName: this.getMonthName(a.getMonth()),
199
199
  year: a.getFullYear(),
@@ -231,7 +231,7 @@ class pt extends c {
231
231
  * @returns {string}
232
232
  */
233
233
  getMonthName(e) {
234
- return K.monthNames[e];
234
+ return V.monthNames[e];
235
235
  }
236
236
  /**
237
237
  * Updates the calendar to show the previous month.
@@ -276,7 +276,7 @@ class pt extends c {
276
276
  */
277
277
  selectWeek(e, s) {
278
278
  this.data.currentWeek = e;
279
- const a = O(e, s);
279
+ const a = W(e, s);
280
280
  this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(e);
281
281
  }
282
282
  /**
@@ -286,38 +286,38 @@ class pt extends c {
286
286
  */
287
287
  render() {
288
288
  return o({ class: "week-calendar-container border rounded-md p-3" }, [
289
- pe({
289
+ be({
290
290
  next: () => this.goToNextMonth(),
291
291
  previous: () => this.goToPreviousMonth()
292
292
  }),
293
- me({
293
+ pe({
294
294
  selectWeek: (e, s) => this.selectWeek(e, s)
295
295
  })
296
296
  ]);
297
297
  }
298
298
  }
299
- const be = (t, e) => {
299
+ const ke = (t, e) => {
300
300
  const s = t.toggleAllSelectedRows();
301
301
  e.state.checked = !s;
302
- }, xe = (t) => z({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
- F((e) => new ae({ class: "mr-2", onChange: (s, a) => be(e, a) }))
304
- ]), ke = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
302
+ }, we = (t) => N({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
+ E((e) => new ie({ class: "mr-2", onChange: (s, a) => ke(e, a) }))
304
+ ]), ye = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
305
305
  const l = t || "justify-start";
306
- return z({
306
+ return N({
307
307
  class: `cursor-pointer py-3 px-4 text-base ${n || ""}`,
308
308
  click: e && (() => i(s))
309
309
  }, [
310
310
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
311
- I(a),
312
- e && E({ class: "ml-2", html: D.arrows.upDown })
311
+ C(a),
312
+ e && Q({ class: "ml-2", html: D.arrows.upDown })
313
313
  ])
314
314
  ]);
315
315
  }, P = (t) => G([
316
- Q({
316
+ X({
317
317
  class: "text-muted-foreground border-b",
318
318
  map: [
319
319
  t.headers,
320
- (e) => e.label === "checkbox" ? xe({ toggle: t.toggle }) : ke({
320
+ (e) => e.label === "checkbox" ? we({ toggle: t.toggle }) : ye({
321
321
  align: e.align,
322
322
  sortable: e.sortable,
323
323
  key: e.key,
@@ -326,7 +326,7 @@ const be = (t, e) => {
326
326
  })
327
327
  ]
328
328
  })
329
- ]), we = ({ key: t, rows: e, selectRow: s, rowItem: a, emptyState: i, skeleton: n, columnCount: l }) => new J({
329
+ ]), xe = ({ key: t, rows: e, selectRow: s, rowItem: a, emptyState: i, skeleton: n, columnCount: l }) => new Z({
330
330
  cache: "list",
331
331
  key: t,
332
332
  items: e,
@@ -336,7 +336,7 @@ const be = (t, e) => {
336
336
  skeleton: n,
337
337
  columnCount: l
338
338
  });
339
- class U extends c {
339
+ class j extends c {
340
340
  /**
341
341
  * Initializes component data.
342
342
  *
@@ -417,12 +417,12 @@ class U extends c {
417
417
  return o({ class: "w-full flex flex-auto flex-col" }, [
418
418
  S("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
419
419
  o({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
420
- L({ class: "w-full" }, [
420
+ I({ class: "w-full" }, [
421
421
  // @ts-ignore
422
422
  this.headers && P({ headers: this.headers, sort: (a) => this.sortRows(a) }),
423
423
  // @ts-ignore
424
424
  this.customHeader ?? null,
425
- we({
425
+ xe({
426
426
  // @ts-ignore
427
427
  key: this.key,
428
428
  // @ts-ignore
@@ -501,7 +501,7 @@ class U extends c {
501
501
  this.data.selectedRows = [];
502
502
  }
503
503
  }
504
- const ye = (t) => new Z({
504
+ const ve = (t) => new ee({
505
505
  cache: "list",
506
506
  loadMoreItems: t.loadMoreItems,
507
507
  offset: t.offset,
@@ -514,7 +514,7 @@ const ye = (t) => new Z({
514
514
  skeleton: t.skeleton,
515
515
  columnCount: t.columnCount
516
516
  });
517
- class ve extends U {
517
+ class De extends j {
518
518
  /**
519
519
  * Renders the DataTable component.
520
520
  *
@@ -525,12 +525,12 @@ class ve extends U {
525
525
  return o({ class: "w-full flex flex-auto flex-col" }, [
526
526
  S("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
527
527
  o({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
528
- L({ class: "w-full" }, [
528
+ I({ class: "w-full" }, [
529
529
  // @ts-ignore
530
530
  this.headers && P({ headers: this.headers, sort: (a) => this.sortRows(a) }),
531
531
  // @ts-ignore
532
532
  this.customHeader ?? null,
533
- ye({
533
+ ve({
534
534
  // @ts-ignore
535
535
  loadMoreItems: this.loadMoreItems,
536
536
  // @ts-ignore
@@ -566,7 +566,7 @@ class ve extends U {
566
566
  this.list.refresh();
567
567
  }
568
568
  }
569
- const bt = h((t) => new ve(
569
+ const bt = h((t) => new De(
570
570
  {
571
571
  cache: t.cache ?? "list",
572
572
  tableData: t.data,
@@ -583,7 +583,7 @@ const bt = h((t) => new ve(
583
583
  emptyState: t.emptyState,
584
584
  skeleton: t.skeleton
585
585
  }
586
- )), De = (t) => new ee({
586
+ )), Se = (t) => new te({
587
587
  cache: "list",
588
588
  scrollContainer: t.scrollContainer,
589
589
  loadMoreItems: t.loadMoreItems,
@@ -597,7 +597,7 @@ const bt = h((t) => new ve(
597
597
  skeleton: t.skeleton,
598
598
  columnCount: t.columnCount
599
599
  });
600
- class Se extends U {
600
+ class Ce extends j {
601
601
  /**
602
602
  * Renders the DataTable component.
603
603
  *
@@ -608,12 +608,12 @@ class Se extends U {
608
608
  return o({ class: "w-full flex flex-auto flex-col" }, [
609
609
  S("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
610
610
  o({ class: `w-full rounded-md ${e} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
611
- L({ class: "w-full" }, [
611
+ I({ class: "w-full" }, [
612
612
  // @ts-ignore
613
613
  this.headers && P({ headers: this.headers, sort: (a) => this.sortRows(a) }),
614
614
  // @ts-ignore
615
615
  this.customHeader ?? null,
616
- De({
616
+ Se({
617
617
  // @ts-ignore
618
618
  scrollContainer: this.scrollContainer,
619
619
  // @ts-ignore
@@ -651,7 +651,7 @@ class Se extends U {
651
651
  this.list.refresh();
652
652
  }
653
653
  }
654
- const xt = h((t) => new Se(
654
+ const kt = h((t) => new Ce(
655
655
  {
656
656
  cache: t.cache ?? "list",
657
657
  tableData: t.data,
@@ -669,45 +669,45 @@ const xt = h((t) => new Se(
669
669
  emptyState: t.emptyState,
670
670
  skeleton: t.skeleton
671
671
  }
672
- )), Ie = h(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
673
- y({ class: "text-base font-semibold leading-6 m-0" }, t),
674
- y({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
675
- ])), Ce = () => o({ class: "flex items-center gap-x-1.5" }, [
672
+ )), Le = h(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
673
+ x({ class: "text-base font-semibold leading-6 m-0" }, t),
674
+ x({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
675
+ ])), Ie = () => o({ class: "flex items-center gap-x-1.5" }, [
676
676
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
677
677
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
678
678
  ]),
679
- y({ class: "text-xs leading-5 text-gray-500" }, "Online")
680
- ]), Le = (t) => y({ class: "text-xs leading-5 text-muted-foreground" }, [
681
- I("Last seen "),
682
- X({ datetime: t }, "3h ago")
683
- ]), Be = (t, e) => t === "online" ? Ce() : Le(e), Te = h(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
684
- y({ class: "text-sm leading-6 m-0" }, t),
685
- Be(s, e)
686
- ])), Me = (t) => t.split(" ").map((s) => s[0]).join(""), Pe = h((t) => w({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
679
+ x({ class: "text-xs leading-5 text-gray-500" }, "Online")
680
+ ]), Be = (t) => x({ class: "text-xs leading-5 text-muted-foreground" }, [
681
+ C("Last seen "),
682
+ q({ datetime: t }, "3h ago")
683
+ ]), Te = (t, e) => t === "online" ? Ie() : Be(e), Me = h(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
684
+ x({ class: "text-sm leading-6 m-0" }, t),
685
+ Te(s, e)
686
+ ])), Pe = (t) => t.split(" ").map((s) => s[0]).join(""), Re = h((t) => y({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
687
687
  o({ class: "flex min-w-0 gap-x-4" }, [
688
- oe({ src: t.image, alt: t.name, fallbackText: Me(t.name) }),
689
- Ie({ name: t.name, email: t.email })
688
+ le({ src: t.image, alt: t.name, fallbackText: Pe(t.name) }),
689
+ Le({ name: t.name, email: t.email })
690
690
  ]),
691
- Te({
691
+ Me({
692
692
  role: t.role,
693
693
  lastSeen: t.lastSeen,
694
694
  status: t.status
695
695
  })
696
- ])), kt = h((t) => new te({
696
+ ])), wt = h((t) => new se({
697
697
  cache: "list",
698
698
  key: "name",
699
699
  items: t.users,
700
700
  role: "list",
701
701
  class: "divide-y divide-border",
702
- rowItem: Pe
703
- })), Re = (t, e) => e.includes(t), We = (t, e, s) => t.exact ? s === e : Re(e, s), Oe = ({ text: t, href: e, exact: s, hidden: a }) => new T({
702
+ rowItem: Re
703
+ })), Oe = (t, e) => e.includes(t), We = (t, e, s) => t.exact ? s === e : Oe(e, s), $e = ({ text: t, href: e, exact: s, hidden: a }) => new T({
704
704
  text: t,
705
705
  href: e,
706
706
  exact: s,
707
707
  dataSet: ["selected", ["state", !0, "active"]],
708
708
  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`
709
709
  });
710
- class wt extends c {
710
+ class yt extends c {
711
711
  /**
712
712
  * This will declare the props for the compiler.
713
713
  *
@@ -735,7 +735,7 @@ class wt extends c {
735
735
  class: "flex gap-x-4",
736
736
  map: [this.options, (e) => this.addLink(e)],
737
737
  watch: {
738
- value: ["[[path]]", x.data],
738
+ value: ["[[path]]", k.data],
739
739
  callBack: this.updateLinks.bind(this)
740
740
  }
741
741
  })
@@ -748,7 +748,7 @@ class wt extends c {
748
748
  * @returns {void}
749
749
  */
750
750
  afterSetup() {
751
- const e = x.data.path;
751
+ const e = k.data.path;
752
752
  this.updateLinks(e);
753
753
  }
754
754
  /**
@@ -793,7 +793,7 @@ class wt extends c {
793
793
  * @returns {object}
794
794
  */
795
795
  addLink({ label: e, href: s, exact: a, hidden: i }) {
796
- const n = Oe({ text: e, href: s, exact: a, hidden: i });
796
+ const n = $e({ text: e, href: s, exact: a, hidden: i });
797
797
  return this.links.push(n), n;
798
798
  }
799
799
  /**
@@ -805,13 +805,13 @@ class wt extends c {
805
805
  this.links = [];
806
806
  }
807
807
  }
808
- const yt = h((t) => {
808
+ const xt = h((t) => {
809
809
  const e = t.margin || "m-4 ml-0";
810
810
  return t.allowHistory = t.allowHistory === !0, o({ class: `flex-none ${e}` }, [
811
811
  M({ variant: "back", class: "ghost", ...t })
812
812
  ]);
813
813
  });
814
- class j extends c {
814
+ class A extends c {
815
815
  /**
816
816
  * This will declare the props for the compiler.
817
817
  *
@@ -898,13 +898,13 @@ class j extends c {
898
898
  return this.children;
899
899
  }
900
900
  }
901
- N.addType("dockableOverlay", (t) => {
901
+ U.addType("dockableOverlay", (t) => {
902
902
  if (!t)
903
903
  return;
904
904
  const e = t.component;
905
905
  e && e.rendered === !0 && e.state.docked === !1 && e.destroy();
906
906
  });
907
- class vt extends j {
907
+ class vt extends A {
908
908
  /**
909
909
  * This will stop presistence.
910
910
  *
@@ -970,7 +970,7 @@ class vt extends j {
970
970
  * @returns {void}
971
971
  */
972
972
  afterSetup() {
973
- N.add(
973
+ U.add(
974
974
  this.container,
975
975
  "dockableOverlay",
976
976
  {
@@ -1013,7 +1013,7 @@ class vt extends j {
1013
1013
  document.documentElement.style.overflowY = "auto";
1014
1014
  }
1015
1015
  }
1016
- class Dt extends j {
1016
+ class Dt extends A {
1017
1017
  /**
1018
1018
  * This will get the overlay type.
1019
1019
  *
@@ -1032,7 +1032,7 @@ class Dt extends j {
1032
1032
  this.container = e, this.initialize();
1033
1033
  }
1034
1034
  }
1035
- const $e = h(({ index: t, click: e, state: s }, a) => w({
1035
+ const ze = h(({ index: t, click: e, state: s }, a) => y({
1036
1036
  class: "p-2 cursor-pointer hover:bg-muted/50",
1037
1037
  onState: [
1038
1038
  [s, "selectedIndex", {
@@ -1041,11 +1041,11 @@ const $e = h(({ index: t, click: e, state: s }, a) => w({
1041
1041
  }]
1042
1042
  ],
1043
1043
  click: () => e(t)
1044
- }, a)), ze = h(({ selectOption: t, state: e }) => g({
1044
+ }, a)), Ne = h(({ selectOption: t, state: e }) => g({
1045
1045
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
1046
- for: ["filteredOptions", (s, a) => $e({ index: a, click: t, state: e }, s.label)]
1047
- })), Ne = h((t) => o({ class: "relative flex items-center" }, [
1048
- ie({
1046
+ for: ["filteredOptions", (s, a) => ze({ index: a, click: t, state: e }, s.label)]
1047
+ })), Ue = h((t) => o({ class: "relative flex items-center" }, [
1048
+ ne({
1049
1049
  cache: "input",
1050
1050
  class: t.class ?? "",
1051
1051
  placeholder: t.placeholder ?? "Search...",
@@ -1061,22 +1061,22 @@ const $e = h(({ index: t, click: e, state: s }, a) => w({
1061
1061
  ]
1062
1062
  }),
1063
1063
  t.icon && o({ class: "absolute flex right-0 mr-2" }, [
1064
- _(t.icon)
1064
+ J(t.icon)
1065
1065
  ])
1066
- ])), Ue = (t) => o({
1066
+ ])), je = (t) => o({
1067
1067
  class: "relative flex fle-auto flex-col",
1068
1068
  onState: ["open", (e, s, a) => {
1069
1069
  if (e)
1070
- return new le({
1070
+ return new re({
1071
1071
  cache: "dropdown",
1072
1072
  parent: a,
1073
1073
  button: a.input,
1074
1074
  size: "xl"
1075
1075
  }, [
1076
- ze(t)
1076
+ Ne(t)
1077
1077
  ]);
1078
1078
  }]
1079
- }), St = V(
1079
+ }), St = _(
1080
1080
  {
1081
1081
  /**
1082
1082
  * This will set up the data object.
@@ -1173,7 +1173,7 @@ const $e = h(({ index: t, click: e, state: s }, a) => w({
1173
1173
  */
1174
1174
  render() {
1175
1175
  return o({ class: "relative w-full max-w-md" }, [
1176
- Ne({
1176
+ Ue({
1177
1177
  // @ts-ignore
1178
1178
  state: this.state,
1179
1179
  // @ts-ignore
@@ -1185,7 +1185,7 @@ const $e = h(({ index: t, click: e, state: s }, a) => w({
1185
1185
  // @ts-ignore
1186
1186
  handleKeyDown: this.handleKeyDown.bind(this)
1187
1187
  }),
1188
- Ue({
1188
+ je({
1189
1189
  // @ts-ignore
1190
1190
  state: this.state,
1191
1191
  // @ts-ignore
@@ -1196,22 +1196,22 @@ const $e = h(({ index: t, click: e, state: s }, a) => w({
1196
1196
  ]);
1197
1197
  }
1198
1198
  }
1199
- ), je = (t) => w(
1199
+ ), Ae = (t) => y(
1200
1200
  {
1201
1201
  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",
1202
1202
  dataSet: ["selected", ["state", t.value, "active"]]
1203
1203
  },
1204
1204
  [
1205
- k({
1205
+ w({
1206
1206
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md",
1207
1207
  onSet: ["selected", { selected: t.value }],
1208
1208
  click: (e) => t.callBack(t.value)
1209
1209
  }, t.label)
1210
1210
  ]
1211
- ), Ae = (t, e) => (t.callBack = e, je(t)), He = (t) => m({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1212
- g({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ae(e, t.callBack)] })
1211
+ ), He = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => m({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1212
+ g({ class: "flex flex-auto flex-row", map: [t.options, (e) => He(e, t.callBack)] })
1213
1213
  ]);
1214
- class It extends c {
1214
+ class Ct extends c {
1215
1215
  /**
1216
1216
  * This will declare the props for the compiler.
1217
1217
  *
@@ -1228,12 +1228,12 @@ class It extends c {
1228
1228
  render() {
1229
1229
  const e = this.select.bind(this);
1230
1230
  return o({ class: "" }, [
1231
- He({
1231
+ Ye({
1232
1232
  class: this.class,
1233
1233
  options: this.options,
1234
1234
  callBack: e
1235
1235
  }),
1236
- C({
1236
+ L({
1237
1237
  class: "tab-content",
1238
1238
  onState: ["selected", this.updateContent.bind(this)]
1239
1239
  })
@@ -1298,23 +1298,23 @@ class It extends c {
1298
1298
  };
1299
1299
  }
1300
1300
  }
1301
- const Ye = (t) => w(
1301
+ const Fe = (t) => y(
1302
1302
  {
1303
1303
  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",
1304
1304
  dataSet: ["selected", ["state", t.value, "active"]]
1305
1305
  },
1306
1306
  [
1307
- k({
1307
+ w({
1308
1308
  class: "flex flex-auto justify-center items-center px-3 py-1.5 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",
1309
1309
  onSet: ["selected", { selected: t.value }],
1310
1310
  click: (e) => t.callBack(t.value),
1311
1311
  disabled: t.disabled
1312
1312
  }, t.label)
1313
1313
  ]
1314
- ), Fe = (t, e) => (t.callBack = e, Ye(t)), Ee = (t) => m({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1315
- g({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1314
+ ), Ee = (t, e) => (t.callBack = e, Fe(t)), Qe = (t) => m({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1315
+ g({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ee(e, t.callBack)] })
1316
1316
  ]);
1317
- class Ct extends c {
1317
+ class Lt extends c {
1318
1318
  /**
1319
1319
  * This will declare the props for the compiler.
1320
1320
  *
@@ -1330,7 +1330,7 @@ class Ct extends c {
1330
1330
  */
1331
1331
  render() {
1332
1332
  const e = this.select.bind(this);
1333
- return Ee({
1333
+ return Qe({
1334
1334
  class: this.class,
1335
1335
  options: this.options,
1336
1336
  callBack: e
@@ -1356,17 +1356,17 @@ class Ct extends c {
1356
1356
  };
1357
1357
  }
1358
1358
  }
1359
- const Ge = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Qe = (t, e) => {
1359
+ const Ge = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Xe = (t, e) => {
1360
1360
  const s = t.getLinkPath();
1361
1361
  return t.exact ? e === s : Ge(s, e);
1362
- }, Xe = ({ text: t, href: e, exact: s }) => new T({
1362
+ }, qe = ({ text: t, href: e, exact: s }) => new T({
1363
1363
  text: t,
1364
1364
  href: e,
1365
1365
  exact: s,
1366
1366
  dataSet: ["selected", ["state", !0, "active"]],
1367
1367
  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"
1368
1368
  });
1369
- class qe extends c {
1369
+ class Ke extends c {
1370
1370
  /**
1371
1371
  * This will declare the props for the compiler.
1372
1372
  *
@@ -1392,7 +1392,7 @@ class qe extends c {
1392
1392
  class: "flex flex-auto flex-row",
1393
1393
  map: [this.options, (e) => this.addLink(e)],
1394
1394
  watch: {
1395
- value: ["[[path]]", x.data],
1395
+ value: ["[[path]]", k.data],
1396
1396
  callBack: this.updateLinks.bind(this)
1397
1397
  }
1398
1398
  })
@@ -1404,7 +1404,7 @@ class qe extends c {
1404
1404
  * @returns {void}
1405
1405
  */
1406
1406
  afterSetup() {
1407
- const e = x.data.path;
1407
+ const e = k.data.path;
1408
1408
  this.updateLinks(e);
1409
1409
  }
1410
1410
  /**
@@ -1417,7 +1417,7 @@ class qe extends c {
1417
1417
  let s = !1, a = this.links[0];
1418
1418
  this.deactivateAllLinks();
1419
1419
  for (const i of this.links)
1420
- if (i.rendered !== !1 && (s = Qe(i, e), s === !0)) {
1420
+ if (i.rendered !== !1 && (s = Xe(i, e), s === !0)) {
1421
1421
  this.updateLink(i, !0);
1422
1422
  break;
1423
1423
  }
@@ -1449,7 +1449,7 @@ class qe extends c {
1449
1449
  * @returns {object}
1450
1450
  */
1451
1451
  addLink({ label: e, href: s, exact: a }) {
1452
- const i = Xe({ text: e, href: s, exact: a });
1452
+ const i = qe({ text: e, href: s, exact: a });
1453
1453
  return this.links.push(i), i;
1454
1454
  }
1455
1455
  /**
@@ -1461,7 +1461,7 @@ class qe extends c {
1461
1461
  this.links = [];
1462
1462
  }
1463
1463
  }
1464
- class Lt extends c {
1464
+ class It extends c {
1465
1465
  /**
1466
1466
  * This will declare the props for the compiler.
1467
1467
  *
@@ -1477,11 +1477,11 @@ class Lt extends c {
1477
1477
  */
1478
1478
  render() {
1479
1479
  return o({ class: "tab-panel" }, [
1480
- new qe({
1480
+ new Ke({
1481
1481
  class: this.class,
1482
1482
  options: this.options
1483
1483
  }),
1484
- C({
1484
+ L({
1485
1485
  class: "tab-content",
1486
1486
  switch: this.addGroup()
1487
1487
  })
@@ -1507,20 +1507,20 @@ class Lt extends c {
1507
1507
  return s;
1508
1508
  }
1509
1509
  }
1510
- const Ke = (t) => w(
1510
+ const Ve = (t) => y(
1511
1511
  {
1512
1512
  class: "relative inline-flex items-center justify-center whitespace-nowrap text-sm font-medium text-muted-foreground transition-colors hover:text-foreground 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]:text-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary after:transition-all after:duration-200 after:scale-x-0 data-[state=active]:after:scale-x-100",
1513
1513
  dataSet: ["selected", ["state", t.value, "active"]]
1514
1514
  },
1515
1515
  [
1516
- k({
1516
+ w({
1517
1517
  class: "flex flex-auto justify-center items-center px-4 py-3",
1518
1518
  onSet: ["selected", { selected: t.value }],
1519
1519
  click: (e) => t.callBack(t.value)
1520
1520
  }, t.label)
1521
1521
  ]
1522
- ), Ve = (t, e) => (t.callBack = e, Ke(t)), _e = (t) => m({ class: `border-b border-border ${t.class}` }, [
1523
- g({ class: "flex flex-row items-center", map: [t.options, (e) => Ve(e, t.callBack)] })
1522
+ ), _e = (t, e) => (t.callBack = e, Ve(t)), Je = (t) => m({ class: `border-b border-border ${t.class}` }, [
1523
+ g({ class: "flex flex-row items-center", map: [t.options, (e) => _e(e, t.callBack)] })
1524
1524
  ]);
1525
1525
  class Bt extends c {
1526
1526
  /**
@@ -1539,37 +1539,24 @@ class Bt extends c {
1539
1539
  render() {
1540
1540
  const e = this.select.bind(this);
1541
1541
  return o({ class: "underlined-button-tab-panel" }, [
1542
- _e({
1542
+ Je({
1543
1543
  class: this.class,
1544
1544
  options: this.options,
1545
1545
  callBack: e
1546
1546
  }),
1547
- C({
1547
+ L({
1548
1548
  class: "tab-content pt-6",
1549
- switch: this.addGroup()
1549
+ onState: ["selected", this.updateContent.bind(this)]
1550
1550
  })
1551
1551
  ]);
1552
1552
  }
1553
1553
  /**
1554
- * This will set up the component.
1555
- *
1556
- * @returns {void}
1557
- */
1558
- beforeSetup() {
1559
- this.selectedIndex = 0, this.setSelectedIndex();
1560
- }
1561
- /**
1562
- * This will set the selected index.
1554
+ * This will get the first value.
1563
1555
  *
1564
- * @returns {void}
1556
+ * @returns {*}
1565
1557
  */
1566
- setSelectedIndex() {
1567
- const e = this.options;
1568
- for (let s = 0, a = e.length; s < a; s++)
1569
- if (e[s].selected === !0) {
1570
- this.selectedIndex = s;
1571
- break;
1572
- }
1558
+ getFirstValue() {
1559
+ return this.options[0]?.value;
1573
1560
  }
1574
1561
  /**
1575
1562
  * This will select an option.
@@ -1578,57 +1565,56 @@ class Bt extends c {
1578
1565
  * @returns {void}
1579
1566
  */
1580
1567
  select(e) {
1581
- this.setSelected(e), this.onSelect && this.onSelect(e, this.selectedIndex);
1568
+ this.state.selected = e;
1582
1569
  }
1583
1570
  /**
1584
- * This will set the selected option.
1571
+ * This will update the content.
1585
1572
  *
1586
1573
  * @param {*} value
1587
- * @returns {void}
1574
+ * @returns {object}
1588
1575
  */
1589
- setSelected(e) {
1576
+ updateContent(e) {
1590
1577
  const s = this.options;
1591
- for (let a = 0, i = s.length; a < i; a++)
1592
- if (s[a].value === e) {
1593
- this.selectedIndex = a;
1594
- break;
1595
- }
1578
+ if (!s || s.length < 1)
1579
+ return;
1580
+ const a = s[0];
1581
+ for (const i of s)
1582
+ if (i.value === e)
1583
+ return i.component;
1584
+ return a.component;
1596
1585
  }
1597
1586
  /**
1598
- * This will add the group.
1587
+ * This will setup the states.
1599
1588
  *
1600
- * @returns {array}
1589
+ * @returns {object}
1601
1590
  */
1602
- addGroup() {
1603
- let e;
1604
- const s = [], a = this.options;
1605
- for (let i = 0, n = a.length; i < n; i++)
1606
- e = a[i], s.push(
1607
- {
1608
- uri: e.value,
1609
- component: e.component,
1610
- title: e.title || null,
1611
- persist: !0
1591
+ setupStates() {
1592
+ const e = this.onSelect, s = typeof e;
1593
+ return {
1594
+ selected: {
1595
+ state: this.getFirstValue(),
1596
+ callBack(a) {
1597
+ s === "function" && e(a);
1612
1598
  }
1613
- );
1614
- return s;
1599
+ }
1600
+ };
1615
1601
  }
1616
1602
  }
1617
- const Je = (t) => w(
1603
+ const Ze = (t) => y(
1618
1604
  {
1619
1605
  class: "relative inline-flex items-center justify-center whitespace-nowrap text-sm font-medium text-muted-foreground transition-colors hover:text-foreground 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]:text-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary after:transition-all after:duration-200 after:scale-x-0 data-[state=active]:after:scale-x-100",
1620
1606
  dataSet: ["selected", ["state", t.value, "active"]]
1621
1607
  },
1622
1608
  [
1623
- k({
1609
+ w({
1624
1610
  class: "flex flex-auto justify-center items-center px-4 py-3 disabled:opacity-50 disabled:cursor-not-allowed",
1625
1611
  onSet: ["selected", { selected: t.value }],
1626
1612
  click: (e) => t.callBack(t.value),
1627
1613
  disabled: t.disabled
1628
1614
  }, t.label)
1629
1615
  ]
1630
- ), Ze = (t, e) => (t.callBack = e, Je(t)), et = (t) => m({ class: `border-b border-border ${t.class}` }, [
1631
- g({ class: "flex flex-row items-center", map: [t.options, (e) => Ze(e, t.callBack)] })
1616
+ ), et = (t, e) => (t.callBack = e, Ze(t)), tt = (t) => m({ class: `border-b border-border ${t.class}` }, [
1617
+ g({ class: "flex flex-row items-center", map: [t.options, (e) => et(e, t.callBack)] })
1632
1618
  ]);
1633
1619
  class Tt extends c {
1634
1620
  /**
@@ -1646,33 +1632,12 @@ class Tt extends c {
1646
1632
  */
1647
1633
  render() {
1648
1634
  const e = this.select.bind(this);
1649
- return et({
1635
+ return tt({
1650
1636
  class: this.class,
1651
1637
  options: this.options,
1652
1638
  callBack: e
1653
1639
  });
1654
1640
  }
1655
- /**
1656
- * This will set up the component.
1657
- *
1658
- * @returns {void}
1659
- */
1660
- beforeSetup() {
1661
- this.selectedIndex = 0, this.setSelectedIndex();
1662
- }
1663
- /**
1664
- * This will set the selected index.
1665
- *
1666
- * @returns {void}
1667
- */
1668
- setSelectedIndex() {
1669
- const e = this.options;
1670
- for (let s = 0, a = e.length; s < a; s++)
1671
- if (e[s].selected === !0) {
1672
- this.selectedIndex = s;
1673
- break;
1674
- }
1675
- }
1676
1641
  /**
1677
1642
  * This will select an option.
1678
1643
  *
@@ -1680,26 +1645,22 @@ class Tt extends c {
1680
1645
  * @returns {void}
1681
1646
  */
1682
1647
  select(e) {
1683
- this.setSelected(e), this.onSelect && this.onSelect(e, this.selectedIndex);
1648
+ this.state.selected = e, typeof this.onSelect == "function" && this.onSelect(e, this.parent);
1684
1649
  }
1685
1650
  /**
1686
- * This will set the selected option.
1651
+ * This will setup the states.
1687
1652
  *
1688
- * @param {*} value
1689
- * @returns {void}
1653
+ * @returns {object}
1690
1654
  */
1691
- setSelected(e) {
1692
- const s = this.options;
1693
- for (let a = 0, i = s.length; a < i; a++)
1694
- if (s[a].value === e) {
1695
- this.selectedIndex = a;
1696
- break;
1697
- }
1655
+ setupStates() {
1656
+ return {
1657
+ selected: this.options[0]?.value || null
1658
+ };
1698
1659
  }
1699
1660
  }
1700
- const tt = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), st = (t, e) => {
1661
+ const z = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), st = (t, e) => {
1701
1662
  const s = t.getLinkPath();
1702
- return t.exact ? e === s : tt(s, e);
1663
+ return console.log(s, e === s, t.exact, z(s, e)), t.exact ? e === s : z(s, e);
1703
1664
  }, at = ({ text: t, href: e, exact: s }) => new T({
1704
1665
  text: t,
1705
1666
  href: e,
@@ -1733,7 +1694,7 @@ class it extends c {
1733
1694
  class: "flex flex-row items-center",
1734
1695
  map: [this.options, (e) => this.addLink(e)],
1735
1696
  watch: {
1736
- value: ["[[path]]", x.data],
1697
+ value: ["[[path]]", k.data],
1737
1698
  callBack: this.updateLinks.bind(this)
1738
1699
  }
1739
1700
  })
@@ -1745,7 +1706,7 @@ class it extends c {
1745
1706
  * @returns {void}
1746
1707
  */
1747
1708
  afterSetup() {
1748
- const e = x.data.path;
1709
+ const e = k.data.path;
1749
1710
  this.updateLinks(e);
1750
1711
  }
1751
1712
  /**
@@ -1756,7 +1717,7 @@ class it extends c {
1756
1717
  */
1757
1718
  updateLinks(e) {
1758
1719
  let s = !1, a = this.links[0];
1759
- this.deactivateAllLinks();
1720
+ this.deactivateAllLinks(), console.log(e);
1760
1721
  for (const i of this.links)
1761
1722
  if (i.rendered !== !1 && (s = st(i, e), s === !0)) {
1762
1723
  this.updateLink(i, !0);
@@ -1822,7 +1783,7 @@ class Mt extends c {
1822
1783
  class: this.class,
1823
1784
  options: this.options
1824
1785
  }),
1825
- C({
1786
+ L({
1826
1787
  class: "tab-content pt-6",
1827
1788
  switch: this.addGroup()
1828
1789
  })
@@ -1858,7 +1819,7 @@ class nt extends c {
1858
1819
  onCreated() {
1859
1820
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1860
1821
  const e = 1e3 / 60;
1861
- this.timer = new se(e, 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";
1822
+ this.timer = new ae(e, 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";
1862
1823
  }
1863
1824
  /**
1864
1825
  * Renders a <canvas> element.
@@ -1866,7 +1827,7 @@ class nt extends c {
1866
1827
  * @returns {object} Layout definition for the canvas.
1867
1828
  */
1868
1829
  render() {
1869
- return q({
1830
+ return K({
1870
1831
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1871
1832
  });
1872
1833
  }
@@ -1984,7 +1945,7 @@ class nt extends c {
1984
1945
  * @returns {void}
1985
1946
  */
1986
1947
  noScaleResize() {
1987
- const e = W.getSize(container);
1948
+ const e = O.getSize(container);
1988
1949
  this.width = canvas.width = e.width, this.height = canvas.height = e.height;
1989
1950
  }
1990
1951
  /**
@@ -1994,7 +1955,7 @@ class nt extends c {
1994
1955
  * @returns {void}
1995
1956
  */
1996
1957
  scale() {
1997
- const e = this.canvas, s = this.container, a = W.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1958
+ const e = this.canvas, s = this.container, a = O.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1998
1959
  let d = n + "px", r = l + "px";
1999
1960
  if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
2000
1961
  const f = a.width, p = a.height, u = f / n, b = p / l, v = Math.min(u, b);
@@ -2091,7 +2052,7 @@ class Pt extends c {
2091
2052
  */
2092
2053
  render() {
2093
2054
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
2094
- ne({
2055
+ oe({
2095
2056
  cache: "hiddenInput",
2096
2057
  required: !0,
2097
2058
  bind: this.path + ".data"
@@ -2153,37 +2114,37 @@ class Pt extends c {
2153
2114
  }
2154
2115
  }
2155
2116
  export {
2156
- yt as B,
2157
- xe as C,
2158
- we as D,
2159
- ke as H,
2117
+ xt as B,
2118
+ we as C,
2119
+ xe as D,
2120
+ ye as H,
2160
2121
  Dt as I,
2161
- wt as N,
2162
- j as O,
2122
+ yt as N,
2123
+ A as O,
2163
2124
  ft as P,
2164
- xt as S,
2125
+ kt as S,
2165
2126
  P as T,
2166
- Pe as U,
2127
+ Re as U,
2167
2128
  pt as W,
2168
- he as a,
2169
- O as b,
2170
- ce as c,
2129
+ ue as a,
2130
+ W as b,
2131
+ de as c,
2171
2132
  gt as d,
2172
2133
  mt as e,
2173
- fe as f,
2174
- de as g,
2175
- me as h,
2176
- pe as i,
2177
- U as j,
2134
+ ge as f,
2135
+ he as g,
2136
+ pe as h,
2137
+ be as i,
2138
+ j,
2178
2139
  bt as k,
2179
- kt as l,
2140
+ wt as l,
2180
2141
  vt as m,
2181
2142
  St as n,
2182
- Ne as o,
2183
- It as p,
2184
- Ct as q,
2185
- qe as r,
2186
- Lt as s,
2143
+ Ue as o,
2144
+ Ct as p,
2145
+ Lt as q,
2146
+ Ke as r,
2147
+ It as s,
2187
2148
  Bt as t,
2188
2149
  Tt as u,
2189
2150
  it as v,
@@ -29,13 +29,12 @@ export class UnderlinedButtonTab extends Component {
29
29
  * @returns {object}
30
30
  */
31
31
  render(): object;
32
- selectedIndex: number;
33
32
  /**
34
- * This will set the selected index.
33
+ * This will get the first value.
35
34
  *
36
- * @returns {void}
35
+ * @returns {*}
37
36
  */
38
- setSelectedIndex(): void;
37
+ getFirstValue(): any;
39
38
  /**
40
39
  * This will select an option.
41
40
  *
@@ -44,18 +43,18 @@ export class UnderlinedButtonTab extends Component {
44
43
  */
45
44
  select(value: any): void;
46
45
  /**
47
- * This will set the selected option.
46
+ * This will update the content.
48
47
  *
49
48
  * @param {*} value
50
- * @returns {void}
49
+ * @returns {object}
51
50
  */
52
- setSelected(value: any): void;
51
+ updateContent(value: any): object;
53
52
  /**
54
- * This will add the group.
53
+ * This will setup the states.
55
54
  *
56
- * @returns {array}
55
+ * @returns {object}
57
56
  */
58
- addGroup(): any[];
57
+ setupStates(): object;
59
58
  }
60
59
  export default UnderlinedButtonTab;
61
60
  import { Component } from "@base-framework/base";
@@ -30,13 +30,6 @@ export class UnderlinedTabGroup extends Component {
30
30
  * @returns {object}
31
31
  */
32
32
  render(): object;
33
- selectedIndex: number;
34
- /**
35
- * This will set the selected index.
36
- *
37
- * @returns {void}
38
- */
39
- setSelectedIndex(): void;
40
33
  /**
41
34
  * This will select an option.
42
35
  *
@@ -45,12 +38,11 @@ export class UnderlinedTabGroup extends Component {
45
38
  */
46
39
  select(value: any): void;
47
40
  /**
48
- * This will set the selected option.
41
+ * This will setup the states.
49
42
  *
50
- * @param {*} value
51
- * @returns {void}
43
+ * @returns {object}
52
44
  */
53
- setSelected(value: any): void;
45
+ setupStates(): object;
54
46
  }
55
47
  export default UnderlinedTabGroup;
56
48
  import { Component } from '@base-framework/base';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.306",
3
+ "version": "1.0.308",
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": {