@base-framework/ui 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/atoms.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-BycfNakY.js";
1
+ import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-BfjS2tiN.js";
2
2
  import { B as m, I as T, L as c } from "./buttons-CVEwmPAi.js";
3
- import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-C1dvFQuB.js";
3
+ import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-CzHSmZKP.js";
4
4
  import { V as W, a as w } from "./veil-DSQdR6CM.js";
5
5
  export {
6
6
  e as Badge,
@@ -163,10 +163,10 @@ const H = k(({ src: e, alt: t }) => e ? I({
163
163
  return i(
164
164
  {
165
165
  class: `
166
- flex items-center justify-center w-full h-full rounded-full
167
- bg-muted text-muted-foreground font-medium
168
- ${o}
169
- `
166
+ flex items-center justify-center w-full h-full rounded-full
167
+ bg-muted text-muted-foreground font-medium
168
+ ${o}
169
+ `
170
170
  },
171
171
  [
172
172
  t ? X(t) : M(s)
@@ -263,11 +263,11 @@ const H = k(({ src: e, alt: t }) => e ? I({
263
263
  ), $ = ({ label: e, click: t }) => A(
264
264
  {
265
265
  class: `
266
- inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
267
- opacity-50 hover:opacity-100 text-muted-foreground absolute
268
- ${e === "Previous" ? "left-1" : "right-1"}
269
- focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
270
- `,
266
+ inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
267
+ opacity-50 hover:opacity-100 text-muted-foreground absolute
268
+ ${e === "Previous" ? "left-1" : "right-1"}
269
+ focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
270
+ `,
271
271
  click: t,
272
272
  "aria-label": `${e} month`,
273
273
  variant: "icon",
@@ -309,10 +309,10 @@ const H = k(({ src: e, alt: t }) => e ? I({
309
309
  ]);
310
310
  class ut extends N {
311
311
  /**
312
- * This will declare the props for the compiler.
313
- *
314
- * @returns {void}
315
- */
312
+ * This will declare the props for the compiler.
313
+ *
314
+ * @returns {void}
315
+ */
316
316
  declareProps() {
317
317
  this.selectedDate = null, this.selectedCallBack = null, this.blockPriorDates = !1;
318
318
  }
@@ -1,6 +1,6 @@
1
1
  import { Div as n, I as f, H5 as _, P as b, Li as O, Span as a, Ul as V, Button as h, OnState as v, Label as R, Form as W, H2 as B, Footer as $, Header as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, Time as Q, Dialog as X } from "@base-framework/atoms";
2
2
  import { Atom as c, Component as p, Html as L, Dom as Z, base as ee, Data as k, Builder as q, Jot as S, DateTime as A } from "@base-framework/base";
3
- import { P as D, b as te } from "./calendar-cfaISqs6.js";
3
+ import { P as D, b as te } from "./calendar-CYExSMEO.js";
4
4
  import { B as u, I as x } from "./buttons-CVEwmPAi.js";
5
5
  import { Icons as d } from "./icons.es.js";
6
6
  import { a as w } from "./veil-DSQdR6CM.js";
@@ -46,10 +46,10 @@ const P = {
46
46
  });
47
47
  class ae extends p {
48
48
  /**
49
- * This will declare the props for the compiler.
50
- *
51
- * @returns {void}
52
- */
49
+ * This will declare the props for the compiler.
50
+ *
51
+ * @returns {void}
52
+ */
53
53
  declareProps() {
54
54
  this.removingClass = "";
55
55
  }
@@ -85,8 +85,8 @@ const ce = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
85
85
  ]), ge = ({ label: e, icon: t, toggleDropdown: s }) => h({
86
86
  cache: "button",
87
87
  class: `inline-flex items-center justify-between rounded-md border border-input
88
- bg-background px-2 py-2 text-sm font-medium hover:bg-muted
89
- focus:outline-none transition duration-150 ease-in-out`,
88
+ bg-background px-2 py-2 text-sm font-medium hover:bg-muted
89
+ focus:outline-none transition duration-150 ease-in-out`,
90
90
  click: s
91
91
  }, [
92
92
  e && a(e),
@@ -105,10 +105,10 @@ const ce = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
105
105
  ]);
106
106
  class mt extends p {
107
107
  /**
108
- * This will declare the props for the compiler.
109
- *
110
- * @returns {void}
111
- */
108
+ * This will declare the props for the compiler.
109
+ *
110
+ * @returns {void}
111
+ */
112
112
  declareProps() {
113
113
  this.label = null, this.icon = null, this.onSelect = null, this.groups = [];
114
114
  }
@@ -298,10 +298,10 @@ class xt extends p {
298
298
  );
299
299
  }
300
300
  /**
301
- * This will setup the states.
302
- *
303
- * @returns {object}
304
- */
301
+ * This will setup the states.
302
+ *
303
+ * @returns {object}
304
+ */
305
305
  setupStates() {
306
306
  return {
307
307
  open: {
@@ -321,10 +321,10 @@ class xt extends p {
321
321
  return [];
322
322
  }
323
323
  /**
324
- * This will get the buttons for the modal.
325
- *
326
- * @returns {array}
327
- */
324
+ * This will get the buttons for the modal.
325
+ *
326
+ * @returns {array}
327
+ */
328
328
  getButtons() {
329
329
  return [
330
330
  u({ variant: "outline", click: () => this.destroy() }, "Cancel"),
@@ -332,11 +332,11 @@ class xt extends p {
332
332
  ];
333
333
  }
334
334
  /**
335
- * This will check if the click was outside the component.
336
- *
337
- * @param {object} element
338
- * @returns {boolean}
339
- */
335
+ * This will check if the click was outside the component.
336
+ *
337
+ * @param {object} element
338
+ * @returns {boolean}
339
+ */
340
340
  isOutsideClick(t) {
341
341
  return !this.panel.contains(t);
342
342
  }
@@ -379,10 +379,10 @@ class xt extends p {
379
379
  return this.getSizeClass() + " " + this.getTypeClass();
380
380
  }
381
381
  /**
382
- * This will override the set up to use the app shell.
383
- *
384
- * @param {object} container
385
- */
382
+ * This will override the set up to use the app shell.
383
+ *
384
+ * @param {object} container
385
+ */
386
386
  setContainer(t) {
387
387
  this.container = app.root;
388
388
  }
@@ -452,10 +452,10 @@ const z = {
452
452
  }, s));
453
453
  class Me extends ae {
454
454
  /**
455
- * This will declare the props for the compiler.
456
- *
457
- * @returns {void}
458
- */
455
+ * This will declare the props for the compiler.
456
+ *
457
+ * @returns {void}
458
+ */
459
459
  declareProps() {
460
460
  this.removingClass = "pullRight", this.secondaryAction = null, this.primaryAction = null, this.primary = !1, this.secondary = !1, this.title = null, this.description = null, this.icon = null, this.onClick = null;
461
461
  }
@@ -1227,8 +1227,8 @@ const $t = w(
1227
1227
  ]), st = c((e, t) => X(
1228
1228
  {
1229
1229
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
1230
- rounded-lg flex flex-auto flex-col
1231
- bottom-4 top-auto inset-auto m-auto md:bottom-0 md:top-0 left-0 right-0 ${e.class}`,
1230
+ rounded-lg flex flex-auto flex-col
1231
+ bottom-4 top-auto inset-auto m-auto md:bottom-0 md:top-0 left-0 right-0 ${e.class}`,
1232
1232
  click: e.click,
1233
1233
  aria: { expanded: ["open"] }
1234
1234
  },
@@ -1275,10 +1275,10 @@ const $t = w(
1275
1275
  };
1276
1276
  class nt extends p {
1277
1277
  /**
1278
- * This will declare the props for the compiler.
1279
- *
1280
- * @returns {void}
1281
- */
1278
+ * This will declare the props for the compiler.
1279
+ *
1280
+ * @returns {void}
1281
+ */
1282
1282
  declareProps() {
1283
1283
  this.title = null, this.description = null, this.type = "", this.icon = null, this.onClose = null, this.hideFooter = !1, this.buttons = null;
1284
1284
  }
@@ -1322,10 +1322,10 @@ class nt extends p {
1322
1322
  };
1323
1323
  }
1324
1324
  /**
1325
- * This will get the modal class.
1326
- *
1327
- * @returns {string}
1328
- */
1325
+ * This will get the modal class.
1326
+ *
1327
+ * @returns {string}
1328
+ */
1329
1329
  getMainClass() {
1330
1330
  return "";
1331
1331
  }
@@ -1348,18 +1348,18 @@ class nt extends p {
1348
1348
  }
1349
1349
  class Mt extends nt {
1350
1350
  /**
1351
- * This will declare the props for the compiler.
1352
- *
1353
- * @returns {void}
1354
- */
1351
+ * This will declare the props for the compiler.
1352
+ *
1353
+ * @returns {void}
1354
+ */
1355
1355
  declareProps() {
1356
1356
  this.confirmTextLabel = null, this.confirmed = null;
1357
1357
  }
1358
1358
  /**
1359
- * This will get the buttons for the modal.
1360
- *
1361
- * @returns {array}
1362
- */
1359
+ * This will get the buttons for the modal.
1360
+ *
1361
+ * @returns {array}
1362
+ */
1363
1363
  getButtons() {
1364
1364
  const t = this.confirmTextLabel || "Confirm";
1365
1365
  return [
package/dist/icons.es.js CHANGED
@@ -640,7 +640,7 @@ const o = {
640
640
  </svg>`,
641
641
  companies: {
642
642
  gitHub: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" class="size-6">
643
- <path d="M12 2C6.48 2 2 6.48 2 12c0 4.42 2.87 8.16 6.84 9.49.5.09.66-.22.66-.49 0-.24-.01-.87-.01-1.71-2.78.61-3.37-1.34-3.37-1.34-.45-1.16-1.1-1.47-1.1-1.47-.9-.61.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.89 1.53 2.34 1.09 2.91.83.09-.65.35-1.09.64-1.34-2.22-.25-4.55-1.11-4.55-4.93 0-1.09.39-1.98 1.02-2.68-.1-.25-.45-1.27.1-2.64 0 0 .84-.27 2.75 1.02A9.6 9.6 0 0 1 12 6.8c.85.004 1.71.11 2.5.33 1.9-1.3 2.75-1.02 2.75-1.02.56 1.37.21 2.39.11 2.64.63.7 1.02 1.59 1.02 2.68 0 3.83-2.34 4.68-4.57 4.92.36.31.68.91.68 1.84 0 1.33-.01 2.41-.01 2.74 0 .27.16.59.67.49C19.14 20.16 22 16.42 22 12c0-5.52-4.48-10-10-10z"/>
643
+ <path d="M12 2C6.48 2 2 6.48 2 12c0 4.42 2.87 8.16 6.84 9.49.5.09.66-.22.66-.49 0-.24-.01-.87-.01-1.71-2.78.61-3.37-1.34-3.37-1.34-.45-1.16-1.1-1.47-1.1-1.47-.9-.61.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.89 1.53 2.34 1.09 2.91.83.09-.65.35-1.09.64-1.34-2.22-.25-4.55-1.11-4.55-4.93 0-1.09.39-1.98 1.02-2.68-.1-.25-.45-1.27.1-2.64 0 0 .84-.27 2.75 1.02A9.6 9.6 0 0 1 12 6.8c.85.004 1.71.11 2.5.33 1.9-1.3 2.75-1.02 2.75-1.02.56 1.37.21 2.39.11 2.64.63.7 1.02 1.59 1.02 2.68 0 3.83-2.34 4.68-4.57 4.92.36.31.68.91.68 1.84 0 1.33-.01 2.41-.01 2.74 0 .27.16.59.67.49C19.14 20.16 22 16.42 22 12c0-5.52-4.48-10-10-10z"/>
644
644
  </svg>`,
645
645
  apple: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" class="size-6">
646
646
  <path d="M16.36 1.43c.55-.65.96-1.53.86-2.43-.83.04-1.83.52-2.42 1.18-.53.6-.99 1.52-.87 2.39.95.08 1.88-.5 2.43-1.14zM20.36 13.2c-.14-.13-2.68-1.36-2.68-4.06 0-2.59 2.08-3.69 2.18-3.76-.69-1.02-1.8-1.68-3.04-1.7-1.31-.01-2.56.77-3.21.77-.69 0-1.78-.75-2.92-.73-1.5.02-2.91.89-3.69 2.26-1.56 2.7-.4 6.67 1.11 8.85.72 1.08 1.58 2.3 2.72 2.25.89-.04 1.23-.57 2.3-.57 1.06 0 1.37.57 2.27.55 1.08-.02 1.75-1.1 2.44-2.19.75-1.16 1.06-2.28 1.08-2.33-.03-.01-2.32-.91-2.38-3.23z"/>
package/dist/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-BycfNakY.js";
1
+ import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-BfjS2tiN.js";
2
2
  import { B as g, I as C, L as T } from "./buttons-CVEwmPAi.js";
3
- import { C as D, d as I, D as S, c as b, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-C1dvFQuB.js";
3
+ import { C as D, d as I, D as S, c as b, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-CzHSmZKP.js";
4
4
  import { V as w, a as U } from "./veil-DSQdR6CM.js";
5
5
  import { Icons as R } from "./icons.es.js";
6
- import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-BR9Nfflx.js";
7
- import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-cfaISqs6.js";
8
- import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-SQtHILAM.js";
9
- import { B as Cs, I as Ts, M as cs, d as Ds, e as Is, g as Ss, N as bs, b as Bs, a as Ps, f as Fs, P as Ms, c as ks, S as Ns, T as vs } from "./mobile-nav-wrapper-DyNFnla-.js";
10
- import { B as xs, a as hs, C as ys, F as Ws, b as Ls, c as As, M as Hs, P as ws, S as Us } from "./sidebar-menu-page-lAu74WTl.js";
6
+ import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-WhNImSlG.js";
7
+ import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-CYExSMEO.js";
8
+ import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-dqDinVVp.js";
9
+ import { B as Cs, I as Ts, M as cs, d as Ds, e as Is, g as Ss, N as bs, b as Bs, a as Ps, f as Fs, P as Ms, c as ks, S as Ns, T as vs } from "./mobile-nav-wrapper-BE_hr65B.js";
10
+ import { B as xs, a as hs, C as ys, F as Ws, b as Ls, c as As, M as Hs, P as ws, S as Us } from "./sidebar-menu-page-nCAVFk3R.js";
11
11
  import { A as Rs, F as Es, M as Gs, a as Vs, T as js } from "./aside-template-McEj_Gxc.js";
12
12
  import { B as zs } from "./bside-template-Du2m3rsE.js";
13
13
  export {
@@ -1,7 +1,6 @@
1
1
  import { Div as l, Label as d, Checkbox as u, Span as g, OnState as p, I as x, Input as r, Textarea as k } from "@base-framework/atoms";
2
- import { Icons as y } from "./icons.es.js";
3
- import { a as $ } from "./veil-DSQdR6CM.js";
4
- import { Atom as t } from "@base-framework/base";
2
+ import { Jot as y, Atom as t } from "@base-framework/base";
3
+ import { Icons as $ } from "./icons.es.js";
5
4
  const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-input bg-background", n = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", i = "disabled:cursor-not-allowed disabled:opacity-50", f = "placeholder:text-muted-foreground", h = `${v} ${b} ${n} ${f} ${i}`, I = ({ id: e, checked: o, bind: s, required: a }) => u({
6
5
  id: e,
7
6
  cache: "checkbox",
@@ -17,7 +16,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
17
16
  "checked",
18
17
  (e) => e ? x({
19
18
  class: "w-2 h-2 pointer-events-none",
20
- html: y.check
19
+ html: $.check
21
20
  }) : null
22
21
  )
23
22
  ]), w = ({ id: e, bind: o, checked: s, required: a, clickHandler: m }) => l({
@@ -46,7 +45,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
46
45
  class: "text-base cursor-pointer",
47
46
  htmlFor: e,
48
47
  click: s
49
- }, o), F = $(
48
+ }, o), q = y(
50
49
  {
51
50
  /**
52
51
  * This will initialize the state of the checkbox.
@@ -55,6 +54,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
55
54
  */
56
55
  state() {
57
56
  return {
57
+ // @ts-ignore
58
58
  checked: this.checked ?? !1
59
59
  };
60
60
  },
@@ -86,11 +86,16 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
86
86
  return l({ class: `flex items-center space-x-2 cursor-pointer ${this.class || ""}` }, [
87
87
  w({
88
88
  id: e,
89
+ // @ts-ignore
89
90
  bind: this.bind,
91
+ // @ts-ignore
90
92
  checked: this.state.checked,
93
+ // @ts-ignore
91
94
  required: this.required,
95
+ // @ts-ignore
92
96
  clickHandler: (o) => this.clickHandler(o)
93
97
  }),
98
+ // @ts-ignore
94
99
  this.label && H({ id: e, label: this.label, clickHandler: () => this.clickHandler() })
95
100
  ]);
96
101
  }
@@ -105,7 +110,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
105
110
  }, c = t((e) => r({
106
111
  ...e,
107
112
  class: `${h} ${e.class || ""}`.trim()
108
- })), L = t((e) => c({
113
+ })), F = t((e) => c({
109
114
  ...e,
110
115
  type: "tel",
111
116
  name: e.name || "Phone",
@@ -114,50 +119,50 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
114
119
  required: !0,
115
120
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
116
121
  keyup: E
117
- })), M = t((e) => c({
122
+ })), L = t((e) => c({
118
123
  ...e,
119
124
  type: "email",
120
125
  name: e.name || "Email",
121
126
  label: e.label || "Email",
122
127
  placeholder: "Email address"
123
- })), R = t((e) => k({
128
+ })), M = t((e) => k({
124
129
  ...e,
125
130
  as: "textarea",
126
131
  class: `flex w-full h-24 px-3 py-2 text-sm rounded-md border border-input bg-background ${n} ${f} ${i} ${e.class || ""}`.trim()
127
- })), U = (e = {}) => l({ class: "flex items-center space-x-2" }, [
132
+ })), R = (e = {}) => l({ class: "flex items-center space-x-2" }, [
128
133
  r({
129
134
  ...e,
130
135
  type: "radio",
131
136
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
132
137
  }),
133
138
  e.label && d({ forHTML: e.value, class: "cursor-pointer" }, e.label)
134
- ]), W = t((e) => r({
139
+ ]), U = t((e) => r({
135
140
  ...e,
136
141
  type: "date",
137
142
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
138
- })), j = t((e) => r({
143
+ })), W = t((e) => r({
139
144
  ...e,
140
145
  type: "time",
141
146
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
142
- })), z = t((e) => r({
147
+ })), j = t((e) => r({
143
148
  ...e,
144
149
  type: "datetime-local",
145
150
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
146
- })), A = t((e) => r({
151
+ })), z = t((e) => r({
147
152
  ...e,
148
153
  type: "month",
149
154
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
150
- })), B = t((e) => r({
155
+ })), A = t((e) => r({
151
156
  ...e,
152
157
  type: "week",
153
158
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
154
- })), J = t((e) => c({
159
+ })), B = t((e) => c({
155
160
  ...e,
156
161
  type: "number"
157
- })), O = t((e) => c({
162
+ })), J = t((e) => c({
158
163
  ...e,
159
164
  type: "password"
160
- })), V = t((e) => c({
165
+ })), O = t((e) => c({
161
166
  ...e,
162
167
  type: "search"
163
168
  })), G = t((e) => c({
@@ -175,29 +180,29 @@ t((e) => u({
175
180
  ...e,
176
181
  class: `flex h-4 w-4 rounded-md border border-input bg-background text-foreground ${n} ${i} ${e.class || ""}`.trim()
177
182
  }));
178
- const D = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", X = t((e) => r({
183
+ const D = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", V = t((e) => r({
179
184
  ...e,
180
185
  type: "file",
181
186
  class: `${h} ${D} ${e.class || ""}`.trim()
182
187
  }));
183
188
  export {
184
- F as C,
185
- W as D,
186
- M as E,
187
- X as F,
189
+ q as C,
190
+ U as D,
191
+ L as E,
192
+ V as F,
188
193
  K as H,
189
194
  c as I,
190
- A as M,
191
- J as N,
192
- O as P,
193
- U as R,
194
- V as S,
195
- L as T,
195
+ z as M,
196
+ B as N,
197
+ J as P,
198
+ R,
199
+ O as S,
200
+ F as T,
196
201
  G as U,
197
- B as W,
198
- R as a,
199
- j as b,
200
- z as c,
202
+ A as W,
203
+ M as a,
204
+ W as b,
205
+ j as c,
201
206
  Q as d,
202
207
  i as e,
203
208
  n as f,
@@ -372,25 +372,25 @@ const F = ({ title: s, options: e, class: t = "", mobileBorder: a = !1, sticky:
372
372
  s.title && T(s.title)
373
373
  ]), G = () => l({
374
374
  class: `
375
- absolute inset-0 bg-black/40 z-[-1] fadeIn
376
- transition-opacity duration-200
377
- `,
375
+ absolute inset-0 bg-black/40 z-[-1] fadeIn
376
+ transition-opacity duration-200
377
+ `,
378
378
  click: (s, { state: e }) => e.open = !1
379
379
  });
380
380
  class W extends n {
381
381
  /**
382
- * This will declare the props for the compiler.
383
- *
384
- * @returns {void}
385
- */
382
+ * This will declare the props for the compiler.
383
+ *
384
+ * @returns {void}
385
+ */
386
386
  declareProps() {
387
387
  this.title = "";
388
388
  }
389
389
  /**
390
- * This will render the modal component.
391
- *
392
- * @returns {object}
393
- */
390
+ * This will render the modal component.
391
+ *
392
+ * @returns {object}
393
+ */
394
394
  render() {
395
395
  return l({
396
396
  class: "fixed inset-0 z-50",
@@ -400,8 +400,8 @@ class W extends n {
400
400
  // Popover Content
401
401
  l({
402
402
  class: `
403
- absolute popIn w-auto p-0 bg-popover m-auto shadow-lg rounded-md top-0 bottom-0 left-2 right-2 max-h-[85vh] text-inherit block
404
- `,
403
+ absolute popIn w-auto p-0 bg-popover m-auto shadow-lg rounded-md top-0 bottom-0 left-2 right-2 max-h-[85vh] text-inherit block
404
+ `,
405
405
  dataSet: ["open", ["expanded", !0, "true"]]
406
406
  }, [
407
407
  l({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
@@ -435,10 +435,10 @@ class W extends n {
435
435
  document.documentElement.style.overflowY = "hidden";
436
436
  }
437
437
  /**
438
- * This will override the set up to use the body.
439
- *
440
- * @param {object} container
441
- */
438
+ * This will override the set up to use the body.
439
+ *
440
+ * @param {object} container
441
+ */
442
442
  setContainer(e) {
443
443
  this.container = app.root;
444
444
  }
@@ -1,5 +1,5 @@
1
- import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-BR9Nfflx.js";
2
- import { A as O, P as R, g as _ } from "./calendar-cfaISqs6.js";
1
+ import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-WhNImSlG.js";
2
+ import { A as O, P as R, g as _ } from "./calendar-CYExSMEO.js";
3
3
  export {
4
4
  o as Alert,
5
5
  O as Avatar,
@@ -1,6 +1,6 @@
1
- import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-SQtHILAM.js";
2
- import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-cfaISqs6.js";
3
- import { B as z, I as A, M as E, d as J, e as K, g as Q, N as R, b as V, a as X, f as Y, P as Z, c as _, S as $, T as aa } from "./mobile-nav-wrapper-DyNFnla-.js";
1
+ import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-dqDinVVp.js";
2
+ import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-CYExSMEO.js";
3
+ import { B as z, I as A, M as E, d as J, e as K, g as Q, N as R, b as V, a as X, f as Y, P as Z, c as _, S as $, T as aa } from "./mobile-nav-wrapper-BE_hr65B.js";
4
4
  export {
5
5
  s as BackButton,
6
6
  z as Backdrop,
package/dist/pages.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-lAu74WTl.js";
1
+ import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-nCAVFk3R.js";
2
2
  export {
3
3
  s as BasicPage,
4
4
  P as BlankPage,
@@ -1,13 +1,13 @@
1
1
  import { Div as t, Header as c, H1 as d, P as o } from "@base-framework/atoms";
2
2
  import { F as l, A as x } from "./aside-template-McEj_Gxc.js";
3
3
  import { Component as h, Atom as i } from "@base-framework/base";
4
- import { c as u, e as p } from "./mobile-nav-wrapper-DyNFnla-.js";
4
+ import { c as u, e as p } from "./mobile-nav-wrapper-BE_hr65B.js";
5
5
  class n extends h {
6
6
  /**
7
- * This will declare the props for the compiler.
8
- *
9
- * @returns {void}
10
- */
7
+ * This will declare the props for the compiler.
8
+ *
9
+ * @returns {void}
10
+ */
11
11
  declareProps() {
12
12
  this.class = "";
13
13
  }
@@ -3,8 +3,8 @@ import { Atom as u, Component as g, Data as L, DateTime as K, Jot as R, router a
3
3
  import { B as C, I as z } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as w } from "./icons.es.js";
5
5
  import { TableBody as _, List as G, IntervalTimer as V } from "@base-framework/organisms";
6
- import { C as J, I as Z, H as ee } from "./inputs-C1dvFQuB.js";
7
- import { A as te, P as se } from "./calendar-cfaISqs6.js";
6
+ import { C as J, I as Z, H as ee } from "./inputs-CzHSmZKP.js";
7
+ import { A as te, P as se } from "./calendar-CYExSMEO.js";
8
8
  u((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
@@ -86,10 +86,10 @@ const ne = (t) => {
86
86
  text: t || "",
87
87
  disabled: !t,
88
88
  class: `
89
- px-2 py-1 text-center rounded-md
90
- ${i ? "bg-accent text-accent-foreground" : ""}
91
- hover:bg-primary hover:text-primary-foreground
92
- `,
89
+ px-2 py-1 text-center rounded-md
90
+ ${i ? "bg-accent text-accent-foreground" : ""}
91
+ hover:bg-primary hover:text-primary-foreground
92
+ `,
93
93
  click: () => a(n, s)
94
94
  });
95
95
  }, ce = (t, e) => {
@@ -159,11 +159,11 @@ const ne = (t) => {
159
159
  }), W = ({ label: t, click: e }) => C(
160
160
  {
161
161
  class: `
162
- inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
163
- opacity-50 hover:opacity-100 text-muted-foreground absolute
164
- ${t === "Previous" ? "left-1" : "right-1"}
165
- focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
166
- `,
162
+ inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
163
+ opacity-50 hover:opacity-100 text-muted-foreground absolute
164
+ ${t === "Previous" ? "left-1" : "right-1"}
165
+ focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
166
+ `,
167
167
  click: e,
168
168
  "aria-label": `${t} month`,
169
169
  variant: "icon",
@@ -182,10 +182,10 @@ const ne = (t) => {
182
182
  ]);
183
183
  class Ze extends g {
184
184
  /**
185
- * This will declare the props for the compiler.
186
- *
187
- * @returns {void}
188
- */
185
+ * This will declare the props for the compiler.
186
+ *
187
+ * @returns {void}
188
+ */
189
189
  declareProps() {
190
190
  this.selectedDate = null, this.selectedWeek = null, this.selectedCallBack = null;
191
191
  }
@@ -519,10 +519,10 @@ const ue = (t, e) => {
519
519
  });
520
520
  class st extends g {
521
521
  /**
522
- * This will declare the props for the compiler.
523
- *
524
- * @returns {void}
525
- */
522
+ * This will declare the props for the compiler.
523
+ *
524
+ * @returns {void}
525
+ */
526
526
  declareProps() {
527
527
  this.options = [], this.class = "";
528
528
  }
@@ -635,10 +635,10 @@ const nt = u((t) => {
635
635
  });
636
636
  class N extends g {
637
637
  /**
638
- * This will declare the props for the compiler.
639
- *
640
- * @returns {void}
641
- */
638
+ * This will declare the props for the compiler.
639
+ *
640
+ * @returns {void}
641
+ */
642
642
  declareProps() {
643
643
  this.class = "";
644
644
  }
@@ -669,11 +669,11 @@ class N extends g {
669
669
  return "overlay fixed top-[0px] left-0 bottom-0 right-0 flex-col bg-background z-20 lg:z-10 flex flex-auto lg:left-[64px] lg:top-0 overflow-y-auto will-change-contents " + (this.class || "");
670
670
  }
671
671
  /**
672
- * This will setup and render the component.
673
- *
674
- * @param {object} container
675
- * @returns {void}
676
- */
672
+ * This will setup and render the component.
673
+ *
674
+ * @param {object} container
675
+ * @returns {void}
676
+ */
677
677
  setContainer(e) {
678
678
  this.container = app.root;
679
679
  }
@@ -761,11 +761,11 @@ class at extends N {
761
761
  return "flex flex-auto flex-col bg-background flex will-change-contents " + (this.class || "");
762
762
  }
763
763
  /**
764
- * This will setup and render the component.
765
- *
766
- * @param {object} container
767
- * @returns {void}
768
- */
764
+ * This will setup and render the component.
765
+ *
766
+ * @param {object} container
767
+ * @returns {void}
768
+ */
769
769
  setup(e) {
770
770
  this.container = e, this.initialize();
771
771
  }
@@ -833,11 +833,11 @@ class it extends N {
833
833
  return "overlay relative inline top-[0px] left-0 bottom-0 right-0 flex-col bg-background z-20 lg:left-[64px] lg:top-0 will-change-contents " + (this.class || "");
834
834
  }
835
835
  /**
836
- * This will setup and render the component.
837
- *
838
- * @param {object} container
839
- * @returns {void}
840
- */
836
+ * This will setup and render the component.
837
+ *
838
+ * @param {object} container
839
+ * @returns {void}
840
+ */
841
841
  setup(e) {
842
842
  this.container = e, this.initialize();
843
843
  }
@@ -957,8 +957,8 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
957
957
  this.state.searchQuery = e.label, this.state.open = !1, typeof this.onSelect == "function" && this.onSelect(e);
958
958
  },
959
959
  /**
960
- * Toggles the dropdown open state.
961
- */
960
+ * Toggles the dropdown open state.
961
+ */
962
962
  toggleDropdown() {
963
963
  this.state.toggle("open"), this.state.open && this.setSelectedIndexByQuery();
964
964
  },
@@ -1019,10 +1019,10 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
1019
1019
  ]);
1020
1020
  class lt extends g {
1021
1021
  /**
1022
- * This will declare the props for the compiler.
1023
- *
1024
- * @returns {void}
1025
- */
1022
+ * This will declare the props for the compiler.
1023
+ *
1024
+ * @returns {void}
1025
+ */
1026
1026
  declareProps() {
1027
1027
  this.options = [], this.class = "", this.callBack = null;
1028
1028
  }
@@ -1123,10 +1123,10 @@ const ze = (t) => D(
1123
1123
  ]);
1124
1124
  class rt extends g {
1125
1125
  /**
1126
- * This will declare the props for the compiler.
1127
- *
1128
- * @returns {void}
1129
- */
1126
+ * This will declare the props for the compiler.
1127
+ *
1128
+ * @returns {void}
1129
+ */
1130
1130
  declareProps() {
1131
1131
  this.options = [], this.class = "", this.onSelect = null;
1132
1132
  }
@@ -1232,10 +1232,10 @@ class Ye extends g {
1232
1232
  s !== !0 && n && this.updateLink(n, !0);
1233
1233
  }
1234
1234
  /**
1235
- * This will deactivate all links.
1236
- *
1237
- * @returns {void}
1238
- */
1235
+ * This will deactivate all links.
1236
+ *
1237
+ * @returns {void}
1238
+ */
1239
1239
  deactivateAllLinks() {
1240
1240
  for (const e of this.links)
1241
1241
  this.updateLink(e, !1);
@@ -1,7 +1,7 @@
1
1
  import { Span as c, Div as l, Legend as b, Fieldset as f, Input as x } from "@base-framework/atoms";
2
2
  import { Atom as s, Html as C } from "@base-framework/base";
3
3
  import { a as u } from "./veil-DSQdR6CM.js";
4
- import { f as p, e as h, g as y } from "./inputs-C1dvFQuB.js";
4
+ import { f as p, e as h, g as y } from "./inputs-CzHSmZKP.js";
5
5
  const a = {
6
6
  gray: {
7
7
  backgroundColor: "bg-gray-50",
@@ -181,43 +181,43 @@ const a = {
181
181
  }
182
182
  })), v = (t) => !t || isNaN(t) ? null : t, i = (t, r) => {
183
183
  const e = t, o = 16, n = 2 * Math.PI * o, d = e / 100 * n, m = `
184
- <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
185
- <!-- Background Circle -->
186
- <circle
187
- cx="18"
188
- cy="18"
189
- r="${o}"
190
- fill="none"
191
- stroke="currentColor"
192
- stroke-width="4"
193
- class="bg-muted"
194
- stroke-opacity="0.2"
195
- />
196
- <!-- Progress Circle -->
197
- <circle
198
- cx="18"
199
- cy="18"
200
- r="${o}"
201
- fill="none"
202
- stroke="currentColor"
203
- stroke-width="4"
204
- class="stroke-primary"
205
- stroke-dasharray="${n}"
206
- stroke-dashoffset="${n - d}"
207
- stroke-linecap="round"
208
- class="${r}"
209
- />
210
- <!-- Percentage Text -->
211
- <text
212
- x="18"
213
- y="20"
214
- class="text-[0.25em] font-medium fill-primary"
215
- text-anchor="middle"
216
- dominant-baseline="middle">
217
- ${e}%
218
- </text>
219
- </svg>
220
- `;
184
+ <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
185
+ <!-- Background Circle -->
186
+ <circle
187
+ cx="18"
188
+ cy="18"
189
+ r="${o}"
190
+ fill="none"
191
+ stroke="currentColor"
192
+ stroke-width="4"
193
+ class="bg-muted"
194
+ stroke-opacity="0.2"
195
+ />
196
+ <!-- Progress Circle -->
197
+ <circle
198
+ cx="18"
199
+ cy="18"
200
+ r="${o}"
201
+ fill="none"
202
+ stroke="currentColor"
203
+ stroke-width="4"
204
+ class="stroke-primary"
205
+ stroke-dasharray="${n}"
206
+ stroke-dashoffset="${n - d}"
207
+ stroke-linecap="round"
208
+ class="${r}"
209
+ />
210
+ <!-- Percentage Text -->
211
+ <text
212
+ x="18"
213
+ y="20"
214
+ class="text-[0.25em] font-medium fill-primary"
215
+ text-anchor="middle"
216
+ dominant-baseline="middle">
217
+ ${e}%
218
+ </text>
219
+ </svg>
220
+ `;
221
221
  return l({
222
222
  class: "circle-graph text-inherit",
223
223
  html: m
@@ -304,9 +304,9 @@ const a = {
304
304
  // Tooltip box
305
305
  c({
306
306
  class: `
307
- absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
308
- group-hover:opacity-100 transition-opacity duration-200 ${o} pointer-events-none
309
- `
307
+ absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
308
+ group-hover:opacity-100 transition-opacity duration-200 ${o} pointer-events-none
309
+ `
310
310
  }, r)
311
311
  ]);
312
312
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
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": {