@base-framework/ui 1.0.172 → 1.0.174

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.
@@ -400,6 +400,14 @@ class yt extends p {
400
400
  open() {
401
401
  $e(this), this.showModal();
402
402
  }
403
+ /**
404
+ * This will destroy the modal.
405
+ *
406
+ * @returns {void}
407
+ */
408
+ close() {
409
+ this.destroy();
410
+ }
403
411
  /**
404
412
  * This will show the modal.
405
413
  *
@@ -668,7 +676,7 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
668
676
  class: "relative inline-flex h-6 w-11 min-w-11 items-center rounded-full bg-muted transition-colors focus:outline-none",
669
677
  onState: ["active", { "bg-primary": !0, "bg-muted": !1 }],
670
678
  click: (t, { state: s }) => {
671
- s.toggle("active"), this.checkbox.checked = s.active;
679
+ s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
672
680
  }
673
681
  }, [
674
682
  J({
package/dist/index.es.js CHANGED
@@ -3,9 +3,9 @@ import { B as g, I as T, L as c } from "./buttons-Cm9etaEG.js";
3
3
  import { C as D, d as b, D as S, c as I, 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 y, a as h, b as W, U as H, W as L } from "./inputs-Dmu4Z-7-.js";
4
4
  import { V as w, a as U } from "./veil-D4dRxILB.js";
5
5
  import { Icons as O } from "./icons.es.js";
6
- import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ta, P as ca, p as Ca, q as Da, S as ba, n as Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-uvsQJos7.js";
6
+ import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ta, P as ca, p as Ca, q as Da, S as ba, n as Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-RwpuUtXL.js";
7
7
  import { A as va, b as fa, C as xa, D as ya, a as ha, F as Wa, M as Ha, P as La, c as Aa, g as wa, p as Ua } from "./calendar-DQXME-2u.js";
8
- import { B as Oa, o as Ea, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-BMKPAG1c.js";
8
+ import { B as Oa, o as Ea, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-Trl07yzf.js";
9
9
  import { B as Ds, I as bs, M as Ss, d as Is, e as Bs, g as Ps, N as Fs, b as Ms, a as ks, f as Ns, P as vs, c as fs, S as xs, T as ys } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as Ws, a as Hs, C as Ls, F as As, b as ws, c as Us, M as Rs, P as Os, S as Es } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as Vs, F as js, M as qs, a as zs, T as Js } from "./aside-template-McEj_Gxc.js";
@@ -1,4 +1,4 @@
1
- import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-uvsQJos7.js";
1
+ import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-RwpuUtXL.js";
2
2
  import { A as H, P as O, g as _ } from "./calendar-DQXME-2u.js";
3
3
  export {
4
4
  o as Alert,
@@ -1,4 +1,4 @@
1
- import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-BMKPAG1c.js";
1
+ import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-Trl07yzf.js";
2
2
  import { b as O, C as F, D as U, a as G, F as j, M as q, c as w, p as z } from "./calendar-DQXME-2u.js";
3
3
  import { B as E, I as J, M as K, d as Q, e as R, g as V, N as X, b as Y, a as Z, f as _, P as $, c as aa, S as ea, T as sa } from "./mobile-nav-wrapper-Dj67Pb8l.js";
4
4
  export {
@@ -805,7 +805,7 @@ class j extends h {
805
805
  * @returns {string}
806
806
  */
807
807
  getClassName() {
808
- 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 || "");
808
+ return "overlay absolute 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-visible will-change-contents " + (this.class || "");
809
809
  }
810
810
  /**
811
811
  * This will setup and render the component.
@@ -1009,12 +1009,16 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
1009
1009
  ie({
1010
1010
  cache: "input",
1011
1011
  placeholder: t.placeholder ?? "Search...",
1012
- bind: [t.state, "searchQuery"],
1012
+ bind: t.bind || [t.state, "searchQuery"],
1013
1013
  keyup: (e, s) => {
1014
- s.state.open = !0, typeof t.filterOptions == "function" && t.filterOptions(), s.dropdown.updatePosition();
1014
+ s.state && (s.state.open = !1), typeof t.filterOptions == "function" && t.filterOptions(), s.dropdown && s.dropdown.updatePosition(), t.keyup && t.keyup(e, s);
1015
1015
  },
1016
- pointerup: (e, s) => s.toggleDropdown(),
1017
- keydown: (e) => typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
1016
+ pointerup: (e, s) => {
1017
+ typeof s.toggleDropdown == "function" && s.toggleDropdown();
1018
+ },
1019
+ keydown: (e) => [
1020
+ typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
1021
+ ]
1018
1022
  }),
1019
1023
  t.icon && o({ class: "absolute right-0 mr-2" }, [
1020
1024
  _(t.icon)
@@ -113,6 +113,12 @@ export class Modal extends Component {
113
113
  * @returns {void}
114
114
  */
115
115
  open(): void;
116
+ /**
117
+ * This will destroy the modal.
118
+ *
119
+ * @returns {void}
120
+ */
121
+ close(): void;
116
122
  /**
117
123
  * This will show the modal.
118
124
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.172",
3
+ "version": "1.0.174",
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": {