@base-framework/ui 1.2.51 → 1.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { Div as r, Button as b, On as I, Span as M, Nav as f, Ul as p, Section as y, Li as w, Canvas as U } from "@base-framework/atoms";
2
- import { Component as k, Data as A, DateTime as F, router as v, NavLink as B, base as P, Dom as W } from "@base-framework/base";
3
- import { f as $, av as O, b0 as u, a7 as Y } from "./full-page-BSJ6rkbe.js";
4
- import { Icons as S } from "./icons.es.js";
5
- import { IntervalTimer as R } from "@base-framework/organisms";
1
+ import { Div as r, Button as b, On as U, Span as $, Nav as f, Ul as p, Section as y, Li as w, Canvas as F } from "@base-framework/atoms";
2
+ import { Component as k, Data as O, DateTime as Y, router as v, NavLink as C, base as P, Dom as W } from "@base-framework/base";
3
+ import { f as N, av as A, b0 as u, a7 as R } from "./full-page-sr9FKjeC.js";
4
+ import { Icons as B } from "./icons.es.js";
5
+ import { IntervalTimer as E } from "@base-framework/organisms";
6
6
  class Pt extends k {
7
7
  /**
8
8
  * This will declare the props for the compiler.
@@ -21,31 +21,31 @@ class Pt extends k {
21
21
  return r({ class: this.class || "" }, this.children);
22
22
  }
23
23
  }
24
- const E = (s) => {
24
+ const G = (s) => {
25
25
  const t = new Date(s, 11, 31), e = new Date(s, 0, 1);
26
26
  return t.getDay() === 4 || // December 31 is a Thursday
27
27
  e.getDay() === 4;
28
- }, G = (s) => {
28
+ }, V = (s) => {
29
29
  const t = new Date(s.valueOf()), e = (t.getDay() + 6) % 7;
30
30
  t.setDate(t.getDate() - e + 3);
31
31
  const i = t.getFullYear(), n = new Date(i, 0, 4);
32
32
  n.setDate(n.getDate() - (n.getDay() + 6) % 7);
33
33
  const a = Math.ceil((t - n) / 6048e5) + 1;
34
- return a > 52 && !E(i) ? {
34
+ return a > 52 && !G(i) ? {
35
35
  weekNumber: 1,
36
36
  year: i + 1
37
37
  } : {
38
38
  weekNumber: a,
39
39
  year: i
40
40
  };
41
- }, V = (s, t, e) => {
41
+ }, X = (s, t, e) => {
42
42
  if (e === 0) return [];
43
43
  const i = new Date(s, t, 0).getDate();
44
44
  return Array.from(
45
45
  { length: e },
46
46
  (n, a) => new Date(s, t - 1, i - e + a + 1)
47
47
  );
48
- }, X = (s, t, e) => Array.from({ length: e }, (i, n) => new Date(s, t + 1, n + 1)), C = (s, t) => {
48
+ }, q = (s, t, e) => Array.from({ length: e }, (i, n) => new Date(s, t + 1, n + 1)), T = (s, t) => {
49
49
  const e = new Date(t, 0, 4), i = (e.getDay() + 6) % 7, n = new Date(e);
50
50
  n.setDate(e.getDate() - i);
51
51
  const a = new Date(n);
@@ -58,17 +58,17 @@ const E = (s) => {
58
58
  a.push(o > 0 ? h : null), (a.length === 7 || o === i) && (n.push([...a]), a = []);
59
59
  }
60
60
  return n;
61
- }, Ct = (s, t) => {
61
+ }, Tt = (s, t) => {
62
62
  const e = new Date(s, t + 1, 0).getDate(), i = [];
63
63
  let n = [];
64
64
  for (let a = 1; a <= e; a++)
65
65
  n.push(new Date(s, t, a)), n.length === 7 && (i.push(n), n = []);
66
66
  return n.length > 0 && i.push(n), i;
67
- }, q = (s, t, e) => {
67
+ }, H = (s, t, e) => {
68
68
  const i = /* @__PURE__ */ new Date();
69
69
  return i.getDate() === s && i.getMonth() === t && i.getFullYear() === e;
70
- }, H = ({ day: s, month: t, year: e, weekNumber: i, selectWeek: n }) => {
71
- const a = q(s, t, e);
70
+ }, _ = ({ day: s, month: t, year: e, weekNumber: i, selectWeek: n }) => {
71
+ const a = H(s, t, e);
72
72
  return b({
73
73
  text: s || "",
74
74
  disabled: !s,
@@ -79,19 +79,19 @@ const E = (s) => {
79
79
  `,
80
80
  click: () => n(i, e)
81
81
  });
82
- }, _ = (s, t) => {
83
- const e = new Date(s, t, 1).getDay(), i = new Date(s, t + 1, 0).getDate(), n = V(s, t, e), a = Array.from({ length: i }, (c, m) => new Date(s, t, m + 1)), o = (n.length + a.length) % 7, h = o === 0 ? 0 : 7 - o, l = X(s, t, h), d = [...n, ...a, ...l], g = [];
82
+ }, J = (s, t) => {
83
+ const e = new Date(s, t, 1).getDay(), i = new Date(s, t + 1, 0).getDate(), n = X(s, t, e), a = Array.from({ length: i }, (c, m) => new Date(s, t, m + 1)), o = (n.length + a.length) % 7, h = o === 0 ? 0 : 7 - o, l = q(s, t, h), d = [...n, ...a, ...l], g = [];
84
84
  for (let c = 0; c < d.length; c += 7) {
85
- const m = d.slice(c, c + 7), x = m.find((z) => z) || new Date(s, t, 1), { weekNumber: N, year: j } = G(x);
85
+ const m = d.slice(c, c + 7), x = m.find((I) => I) || new Date(s, t, 1), { weekNumber: j, year: z } = V(x);
86
86
  g.push({
87
- weekNumber: N,
88
- year: j,
87
+ weekNumber: j,
88
+ year: z,
89
89
  days: m
90
90
  });
91
91
  }
92
92
  return g;
93
- }, J = ({ selectWeek: s }) => I("month", (t, e, { data: i }) => {
94
- const { year: n, month: a, currentDate: o } = i, h = _(n, a);
93
+ }, K = ({ selectWeek: s }) => U("month", (t, e, { data: i }) => {
94
+ const { year: n, month: a, currentDate: o } = i, h = J(n, a);
95
95
  return r(
96
96
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
97
97
  [
@@ -102,7 +102,7 @@ const E = (s) => {
102
102
  class: "grid grid-cols-7 col-span-7 text-center text-muted-foreground items-center"
103
103
  },
104
104
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
105
- (l) => M({ class: "px-1 py-1", text: l })
105
+ (l) => $({ class: "px-1 py-1", text: l })
106
106
  )
107
107
  ),
108
108
  // Render each "week" row
@@ -128,7 +128,7 @@ const E = (s) => {
128
128
  r(
129
129
  { class: "grid grid-cols-7 col-span-7 text-center" },
130
130
  d.map(
131
- (c) => H({
131
+ (c) => _({
132
132
  year: c?.getFullYear() || null,
133
133
  month: c?.getMonth() || null,
134
134
  day: c?.getDate() || null,
@@ -141,7 +141,7 @@ const E = (s) => {
141
141
  )
142
142
  ]
143
143
  );
144
- }), T = ({ label: s, click: t }) => $(
144
+ }), M = ({ label: s, click: t }) => N(
145
145
  {
146
146
  class: `
147
147
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -152,20 +152,20 @@ const E = (s) => {
152
152
  click: t,
153
153
  "aria-label": `${s} month`,
154
154
  variant: "icon",
155
- icon: s === "Previous" ? S.chevron.single.left : S.chevron.single.right
155
+ icon: s === "Previous" ? B.chevron.single.left : B.chevron.single.right
156
156
  }
157
- ), K = ({ next: s, previous: t }) => r({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
158
- M("[[monthName]] [[year]]"),
159
- T({
157
+ ), Q = ({ next: s, previous: t }) => r({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
158
+ $("[[monthName]] [[year]]"),
159
+ M({
160
160
  label: "Previous",
161
161
  click: t
162
162
  }),
163
- T({
163
+ M({
164
164
  label: "Next",
165
165
  click: s
166
166
  })
167
167
  ]);
168
- class Tt extends k {
168
+ class Mt extends k {
169
169
  /**
170
170
  * This will declare the props for the compiler.
171
171
  *
@@ -180,8 +180,8 @@ class Tt extends k {
180
180
  * @returns {Data}
181
181
  */
182
182
  setData() {
183
- const t = /* @__PURE__ */ new Date(), e = this.selectedWeek || this.calculateCurrentWeek(t), i = C(e, t.getFullYear());
184
- return new A({
183
+ const t = /* @__PURE__ */ new Date(), e = this.selectedWeek || this.calculateCurrentWeek(t), i = T(e, t.getFullYear());
184
+ return new O({
185
185
  monthName: this.getMonthName(i.getMonth()),
186
186
  year: i.getFullYear(),
187
187
  month: i.getMonth(),
@@ -218,7 +218,7 @@ class Tt extends k {
218
218
  * @returns {string}
219
219
  */
220
220
  getMonthName(t) {
221
- return F.monthNames[t];
221
+ return Y.monthNames[t];
222
222
  }
223
223
  /**
224
224
  * Updates the calendar to show the previous month.
@@ -263,7 +263,7 @@ class Tt extends k {
263
263
  */
264
264
  selectWeek(t, e) {
265
265
  this.data.currentWeek = t;
266
- const i = C(t, e);
266
+ const i = T(t, e);
267
267
  this.setDate(i.getMonth(), i.getFullYear(), i.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(t);
268
268
  }
269
269
  /**
@@ -273,24 +273,24 @@ class Tt extends k {
273
273
  */
274
274
  render() {
275
275
  return r({ class: "week-calendar-container border rounded-md p-3" }, [
276
- K({
276
+ Q({
277
277
  next: () => this.goToNextMonth(),
278
278
  previous: () => this.goToPreviousMonth()
279
279
  }),
280
- J({
280
+ K({
281
281
  selectWeek: (t, e) => this.selectWeek(t, e)
282
282
  })
283
283
  ]);
284
284
  }
285
285
  }
286
- const Q = (s, t) => t.includes(s), Z = (s, t, e) => s.exact ? e === t : Q(t, e), tt = ({ text: s, href: t, exact: e, hidden: i }) => new B({
286
+ const D = /* @__PURE__ */ new Map(), Z = (s, t) => (D.has(s) || D.set(s, new RegExp(`${s}($|/|\\.).*`)), D.get(s).test(t)), tt = (s, t, e) => s.exact ? e === t : Z(t, e), et = ({ text: s, href: t, exact: e, hidden: i }) => new C({
287
287
  text: s,
288
288
  href: t,
289
289
  exact: e,
290
290
  dataSet: ["selected", ["state", !0, "active"]],
291
291
  class: `${i ? "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`
292
292
  });
293
- class Mt extends k {
293
+ class $t extends k {
294
294
  /**
295
295
  * This will declare the props for the compiler.
296
296
  *
@@ -303,7 +303,7 @@ class Mt extends k {
303
303
  * This will configure the links.
304
304
  */
305
305
  beforeSetup() {
306
- this.links = [];
306
+ this.links = [], this.activeLink = null;
307
307
  }
308
308
  /**
309
309
  * This will render the component.
@@ -341,24 +341,14 @@ class Mt extends k {
341
341
  * @returns {void}
342
342
  */
343
343
  updateLinks(t) {
344
- let e = !1;
345
- this.deactivateAllLinks();
346
- for (const n of this.links) {
347
- if (!n.rendered)
348
- continue;
349
- Z(n, n.getLinkPath(), t) ? (this.updateLink(n, !0), e = !0) : this.updateLink(n, !1);
350
- }
351
- const i = this?.links[0] ?? null;
352
- !e && i && this.updateLink(i, !0);
353
- }
354
- /**
355
- * This will deactivate all links.
356
- *
357
- * @returns {void}
358
- */
359
- deactivateAllLinks() {
360
- for (const t of this.links)
361
- this.updateLink(t, !1);
344
+ const e = this.links[0] ?? null;
345
+ let i = null;
346
+ for (const n of this.links)
347
+ if (n.rendered && tt(n, n.getLinkPath(), t)) {
348
+ i = n;
349
+ break;
350
+ }
351
+ i === null && e && (i = e), this.activeLink && this.activeLink !== i && this.updateLink(this.activeLink, !1), i && i !== this.activeLink && this.updateLink(i, !0), this.activeLink = i;
362
352
  }
363
353
  /**
364
354
  * This will update the link's active state.
@@ -377,7 +367,7 @@ class Mt extends k {
377
367
  * @returns {object}
378
368
  */
379
369
  addLink({ label: t, href: e, exact: i, hidden: n }) {
380
- const a = tt({ text: t, href: e, exact: i, hidden: n });
370
+ const a = et({ text: t, href: e, exact: i, hidden: n });
381
371
  return this.links.push(a), a;
382
372
  }
383
373
  /**
@@ -386,10 +376,10 @@ class Mt extends k {
386
376
  * @returns {void}
387
377
  */
388
378
  beforeDestroy() {
389
- this.links = [];
379
+ this.links = [], this.activeLink = null;
390
380
  }
391
381
  }
392
- class $t extends O {
382
+ class Nt extends A {
393
383
  /**
394
384
  * This will get the overlay type.
395
385
  *
@@ -408,7 +398,7 @@ class $t extends O {
408
398
  this.container = t, this.initialize();
409
399
  }
410
400
  }
411
- const et = (s) => w(
401
+ const st = (s) => w(
412
402
  {
413
403
  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",
414
404
  dataStateSet: ["selected", ["state", s.value, "active"]]
@@ -420,10 +410,10 @@ const et = (s) => w(
420
410
  click: (t) => s.callBack(s.value)
421
411
  }, s.label)
422
412
  ]
423
- ), st = (s, t) => et({ ...s, callBack: t }), it = (s) => f({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${s.class}` }, [
424
- p({ class: "flex flex-auto flex-row", map: [s.options, (t) => st(t, s.callBack)] })
413
+ ), it = (s, t) => st({ ...s, callBack: t }), nt = (s) => f({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${s.class}` }, [
414
+ p({ class: "flex flex-auto flex-row", map: [s.options, (t) => it(t, s.callBack)] })
425
415
  ]);
426
- class Nt extends u {
416
+ class jt extends u {
427
417
  /**
428
418
  * This will declare the props for the compiler.
429
419
  *
@@ -440,7 +430,7 @@ class Nt extends u {
440
430
  render() {
441
431
  const t = this.select.bind(this);
442
432
  return r({ class: "" }, [
443
- it({
433
+ nt({
444
434
  class: this.class,
445
435
  options: this.options,
446
436
  callBack: t
@@ -512,7 +502,7 @@ class Nt extends u {
512
502
  };
513
503
  }
514
504
  }
515
- const nt = (s) => w(
505
+ const at = (s) => w(
516
506
  {
517
507
  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",
518
508
  dataStateSet: ["selected", ["state", s.value, "active"]]
@@ -525,10 +515,10 @@ const nt = (s) => w(
525
515
  disabled: s.disabled
526
516
  }, s.label)
527
517
  ]
528
- ), at = (s, t) => nt({ ...s, callBack: t }), ot = (s) => f({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${s.class}` }, [
529
- p({ class: "flex flex-auto flex-row", map: [s.options, (t) => at(t, s.callBack)] })
518
+ ), ot = (s, t) => at({ ...s, callBack: t }), lt = (s) => f({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${s.class}` }, [
519
+ p({ class: "flex flex-auto flex-row", map: [s.options, (t) => ot(t, s.callBack)] })
530
520
  ]);
531
- class jt extends u {
521
+ class zt extends u {
532
522
  /**
533
523
  * This will declare the props for the compiler.
534
524
  *
@@ -544,7 +534,7 @@ class jt extends u {
544
534
  */
545
535
  render() {
546
536
  const t = this.select.bind(this);
547
- return ot({
537
+ return lt({
548
538
  class: this.class,
549
539
  options: this.options,
550
540
  callBack: t
@@ -571,17 +561,17 @@ class jt extends u {
571
561
  };
572
562
  }
573
563
  }
574
- const D = /* @__PURE__ */ new Map(), lt = (s, t) => (D.has(s) || D.set(s, new RegExp(`${s}($|/|\\.).*`)), D.get(s).test(t)), rt = (s, t) => {
564
+ const L = /* @__PURE__ */ new Map(), rt = (s, t) => (L.has(s) || L.set(s, new RegExp(`${s}($|/|\\.).*`)), L.get(s).test(t)), ct = (s, t) => {
575
565
  const e = s.getLinkPath();
576
- return s.exact ? t === e : lt(e, t);
577
- }, ct = ({ text: s, href: t, exact: e }) => new B({
566
+ return s.exact ? t === e : rt(e, t);
567
+ }, ht = ({ text: s, href: t, exact: e }) => new C({
578
568
  text: s,
579
569
  href: t,
580
570
  exact: e,
581
571
  dataSet: ["selected", ["state", !0, "active"]],
582
572
  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"
583
573
  });
584
- class ht extends u {
574
+ class dt extends u {
585
575
  /**
586
576
  * This will declare the props for the compiler.
587
577
  *
@@ -632,7 +622,7 @@ class ht extends u {
632
622
  const e = this.links[0];
633
623
  let i = null;
634
624
  for (const n of this.links)
635
- if (n.rendered !== !1 && rt(n, t)) {
625
+ if (n.rendered !== !1 && ct(n, t)) {
636
626
  i = n;
637
627
  break;
638
628
  }
@@ -655,7 +645,7 @@ class ht extends u {
655
645
  * @returns {object}
656
646
  */
657
647
  addLink({ label: t, href: e, exact: i }) {
658
- const n = ct({ text: t, href: e, exact: i });
648
+ const n = ht({ text: t, href: e, exact: i });
659
649
  return this.links.push(n), n;
660
650
  }
661
651
  /**
@@ -667,7 +657,7 @@ class ht extends u {
667
657
  this.links = [], this.activeLink = null;
668
658
  }
669
659
  }
670
- class zt extends u {
660
+ class It extends u {
671
661
  /**
672
662
  * This will declare the props for the compiler.
673
663
  *
@@ -683,7 +673,7 @@ class zt extends u {
683
673
  */
684
674
  render() {
685
675
  return r({ class: "tab-panel" }, [
686
- new ht({
676
+ new dt({
687
677
  class: this.class,
688
678
  options: this.options
689
679
  }),
@@ -714,7 +704,7 @@ class zt extends u {
714
704
  return e;
715
705
  }
716
706
  }
717
- const dt = (s) => w(
707
+ const ut = (s) => w(
718
708
  {
719
709
  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",
720
710
  dataStateSet: ["selected", ["state", s.value, "active"]]
@@ -726,10 +716,10 @@ const dt = (s) => w(
726
716
  click: (t) => s.callBack(s.value)
727
717
  }, s.label)
728
718
  ]
729
- ), ut = (s, t) => (s.callBack = t, dt(s)), ft = (s) => f({ class: `border-b border-border ${s.class}` }, [
730
- p({ class: "flex flex-row items-center", map: [s.options, (t) => ut(t, s.callBack)] })
719
+ ), ft = (s, t) => (s.callBack = t, ut(s)), pt = (s) => f({ class: `border-b border-border ${s.class}` }, [
720
+ p({ class: "flex flex-row items-center", map: [s.options, (t) => ft(t, s.callBack)] })
731
721
  ]);
732
- class It extends u {
722
+ class Ut extends u {
733
723
  /**
734
724
  * This will declare the props for the compiler.
735
725
  *
@@ -746,7 +736,7 @@ class It extends u {
746
736
  render() {
747
737
  const t = this.select.bind(this);
748
738
  return r({ class: "underlined-button-tab-panel flex flex-auto flex-col" }, [
749
- ft({
739
+ pt({
750
740
  class: this.class,
751
741
  options: this.options,
752
742
  callBack: t
@@ -809,7 +799,7 @@ class It extends u {
809
799
  };
810
800
  }
811
801
  }
812
- const pt = (s) => w(
802
+ const gt = (s) => w(
813
803
  {
814
804
  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",
815
805
  dataStateSet: ["selected", ["state", s.value, "active"]]
@@ -822,10 +812,10 @@ const pt = (s) => w(
822
812
  disabled: s.disabled
823
813
  }, s.label)
824
814
  ]
825
- ), gt = (s, t) => pt({ ...s, callBack: t }), mt = (s) => f({ class: `border-b border-border ${s.class}` }, [
826
- p({ class: "flex flex-row items-center", map: [s.options, (t) => gt(t, s.callBack)] })
815
+ ), mt = (s, t) => gt({ ...s, callBack: t }), vt = (s) => f({ class: `border-b border-border ${s.class}` }, [
816
+ p({ class: "flex flex-row items-center", map: [s.options, (t) => mt(t, s.callBack)] })
827
817
  ]);
828
- class Ut extends u {
818
+ class Ft extends u {
829
819
  /**
830
820
  * This will declare the props for the compiler.
831
821
  *
@@ -841,7 +831,7 @@ class Ut extends u {
841
831
  */
842
832
  render() {
843
833
  const t = this.select.bind(this);
844
- return mt({
834
+ return vt({
845
835
  class: this.class,
846
836
  options: this.options,
847
837
  callBack: t
@@ -868,17 +858,17 @@ class Ut extends u {
868
858
  };
869
859
  }
870
860
  }
871
- const L = /* @__PURE__ */ new Map(), vt = (s, t) => (L.has(s) || L.set(s, new RegExp(`${s}($|/|\\.).*`)), L.get(s).test(t)), bt = (s, t) => {
861
+ const S = /* @__PURE__ */ new Map(), bt = (s, t) => (S.has(s) || S.set(s, new RegExp(`${s}($|/|\\.).*`)), S.get(s).test(t)), kt = (s, t) => {
872
862
  const e = s.getLinkPath();
873
- return s.exact ? t === e : vt(e, t);
874
- }, kt = ({ text: s, href: t, exact: e }) => new B({
863
+ return s.exact ? t === e : bt(e, t);
864
+ }, xt = ({ text: s, href: t, exact: e }) => new C({
875
865
  text: s,
876
866
  href: t,
877
867
  exact: e,
878
868
  dataSet: ["selected", ["state", !0, "active"]],
879
869
  class: "relative inline-flex items-center justify-center whitespace-nowrap px-4 py-3 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"
880
870
  });
881
- class xt extends u {
871
+ class yt extends u {
882
872
  /**
883
873
  * This will declare the props for the compiler.
884
874
  *
@@ -930,7 +920,7 @@ class xt extends u {
930
920
  const e = this.links[0];
931
921
  let i = null;
932
922
  for (const n of this.links)
933
- if (n.rendered !== !1 && bt(n, t)) {
923
+ if (n.rendered !== !1 && kt(n, t)) {
934
924
  i = n;
935
925
  break;
936
926
  }
@@ -953,7 +943,7 @@ class xt extends u {
953
943
  * @returns {object}
954
944
  */
955
945
  addLink({ label: t, href: e, exact: i }) {
956
- const n = kt({ text: t, href: e, exact: i });
946
+ const n = xt({ text: t, href: e, exact: i });
957
947
  return this.links.push(n), n;
958
948
  }
959
949
  /**
@@ -965,7 +955,7 @@ class xt extends u {
965
955
  this.links = [], this.activeLink = null;
966
956
  }
967
957
  }
968
- class At extends u {
958
+ class Ot extends u {
969
959
  /**
970
960
  * This will declare the props for the compiler.
971
961
  *
@@ -981,7 +971,7 @@ class At extends u {
981
971
  */
982
972
  render() {
983
973
  return r({ class: "underlined-tab-panel flex flex-auto flex-col" }, [
984
- new xt({
974
+ new yt({
985
975
  class: this.class,
986
976
  options: this.options,
987
977
  scrollable: this.scrollable
@@ -1013,7 +1003,7 @@ class At extends u {
1013
1003
  return e;
1014
1004
  }
1015
1005
  }
1016
- class yt extends k {
1006
+ class wt extends k {
1017
1007
  /**
1018
1008
  * Runs before rendering, sets up defaults, a timer for drawing,
1019
1009
  * and basic canvas properties.
@@ -1023,7 +1013,7 @@ class yt extends k {
1023
1013
  onCreated() {
1024
1014
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1025
1015
  const t = 1e3 / 60;
1026
- this.timer = new R(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";
1016
+ this.timer = new E(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";
1027
1017
  }
1028
1018
  /**
1029
1019
  * Renders a <canvas> element.
@@ -1031,7 +1021,7 @@ class yt extends k {
1031
1021
  * @returns {object} Layout definition for the canvas.
1032
1022
  */
1033
1023
  render() {
1034
- return U({
1024
+ return F({
1035
1025
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1036
1026
  });
1037
1027
  }
@@ -1239,7 +1229,7 @@ class yt extends k {
1239
1229
  this.timer.stop(), this.status = "stopped";
1240
1230
  }
1241
1231
  }
1242
- class Ft extends k {
1232
+ class Yt extends k {
1243
1233
  /**
1244
1234
  * Sets up default properties for the signature panel.
1245
1235
  *
@@ -1256,19 +1246,19 @@ class Ft extends k {
1256
1246
  */
1257
1247
  render() {
1258
1248
  return r({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1259
- Y({
1249
+ R({
1260
1250
  cache: "hiddenInput",
1261
1251
  required: !0,
1262
1252
  bind: this.path + ".data"
1263
1253
  }),
1264
1254
  r({ class: "absolute top-2 right-2" }, [
1265
- $({
1255
+ N({
1266
1256
  variant: "icon",
1267
- icon: S.circleX,
1257
+ icon: B.circleX,
1268
1258
  click: this.reset.bind(this)
1269
1259
  })
1270
1260
  ]),
1271
- new yt({
1261
+ new wt({
1272
1262
  cache: "canvasLayer",
1273
1263
  margin: this.margin,
1274
1264
  targetSize: this.targetSize,
@@ -1326,26 +1316,26 @@ class Ft extends k {
1326
1316
  }
1327
1317
  }
1328
1318
  export {
1329
- Nt as B,
1330
- $t as I,
1331
- Mt as N,
1319
+ jt as B,
1320
+ Nt as I,
1321
+ $t as N,
1332
1322
  Pt as P,
1333
- Ft as S,
1334
- zt as T,
1335
- It as U,
1336
- Tt as W,
1337
- jt as a,
1338
- ht as b,
1339
- At as c,
1340
- Ut as d,
1341
- xt as e,
1342
- H as f,
1343
- J as g,
1344
- K as h,
1345
- G as i,
1323
+ Yt as S,
1324
+ It as T,
1325
+ Ut as U,
1326
+ Mt as W,
1327
+ zt as a,
1328
+ dt as b,
1329
+ Ot as c,
1330
+ Ft as d,
1331
+ yt as e,
1332
+ _ as f,
1333
+ K as g,
1334
+ Q as h,
1335
+ V as i,
1346
1336
  Wt as j,
1347
- C as k,
1348
- Ct as l,
1349
- X as m,
1350
- V as n
1337
+ T as k,
1338
+ Tt as l,
1339
+ q as m,
1340
+ X as n
1351
1341
  };
@@ -22,6 +22,7 @@ export class NavigationMenu extends Component {
22
22
  * @type {array} links - This will hold the links for the navigation.
23
23
  */
24
24
  links: any[];
25
+ activeLink: any;
25
26
  /**
26
27
  * This will render the component.
27
28
  *
@@ -35,12 +36,6 @@ export class NavigationMenu extends Component {
35
36
  * @returns {void}
36
37
  */
37
38
  updateLinks(path: string): void;
38
- /**
39
- * This will deactivate all links.
40
- *
41
- * @returns {void}
42
- */
43
- deactivateAllLinks(): void;
44
39
  /**
45
40
  * This will update the link's active state.
46
41
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.2.51",
3
+ "version": "1.2.53",
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": {