@base-framework/ui 1.0.2028 → 1.0.2029

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.
@@ -634,7 +634,7 @@ class qe extends At {
634
634
  */
635
635
  getContainerProps() {
636
636
  const e = {};
637
- return this.swipeToClose && this.gesture && (e.gestureHandlers = this.getGestureHandlers()), e;
637
+ return this.swipeToClose && (e.gestureHandlers = this.getGestureHandlers()), e;
638
638
  }
639
639
  /**
640
640
  * Renders the drawer with gesture handlers
@@ -682,15 +682,16 @@ class qe extends At {
682
682
  /**
683
683
  * Gets gesture event handlers for modal content.
684
684
  * Returns event props to be spread onto the modal-content element.
685
+ * Handlers are bound methods that will work once gesture is initialized.
685
686
  *
686
687
  * @returns {object}
687
688
  */
688
689
  getGestureHandlers() {
689
- return !this.swipeToClose || !this.gesture || !this.gesture.isMobile() ? {} : {
690
- touchstart: (e) => this.gesture.handleTouchStart(e),
691
- touchmove: (e) => this.gesture.handleTouchMove(e),
692
- touchend: (e) => this.gesture.handleTouchEnd(e)
693
- };
690
+ return this.swipeToClose ? {
691
+ touchstart: (e) => this.gesture?.handleTouchStart(e),
692
+ touchmove: (e) => this.gesture?.handleTouchMove(e),
693
+ touchend: (e) => this.gesture?.handleTouchEnd(e)
694
+ } : {};
694
695
  }
695
696
  /**
696
697
  * Cleans up before destroy
package/dist/index.es.js CHANGED
@@ -4,7 +4,7 @@ import { C as T, F as b } from "./form-group-BB7dLJir.js";
4
4
  import { C as D, d as S, D as F, c as B, E as P, F as k, H as M, I as x, M as f, N as v, P as N, R as y, T as h, a as U, b as L, U as W, W as w } from "./inputs-9udyzkHR.js";
5
5
  import { I as R, V as A, a as G } from "./image-BB__4s0g.js";
6
6
  import { Icons as E } from "./icons.es.js";
7
- import { A as j, B as q, C as J, x as z, O as K, z as Q, E as _, G as X, H as Y, D as Z, m as $, n as aa, R as ea, Q as sa, w as oa, o as ta, c as ra, a as na, b as la, U as ia, l as pa, g as ma, i as da, h as ua, j as ga, e as Ca, k as ca, F as Ta, d as ba, f as Ia, I as Da, L as Sa, y as Fa, M as Ba, p as Pa, N as ka, P as Ma, t as xa, u as fa, S as va, r as Na, s as ya, T as ha, J as Ua, K as La, q as Wa, v as wa } from "./empty-state-BIeHWiqh.js";
7
+ import { A as j, B as q, C as J, x as z, O as K, z as Q, E as _, G as X, H as Y, D as Z, m as $, n as aa, R as ea, Q as sa, w as oa, o as ta, c as ra, a as na, b as la, U as ia, l as pa, g as ma, i as da, h as ua, j as ga, e as Ca, k as ca, F as Ta, d as ba, f as Ia, I as Da, L as Sa, y as Fa, M as Ba, p as Pa, N as ka, P as Ma, t as xa, u as fa, S as va, r as Na, s as ya, T as ha, J as Ua, K as La, q as Wa, v as wa } from "./empty-state-DJrgCPat.js";
8
8
  import { A as Ra, b as Aa, C as Ga, D as Oa, a as Ea, F as Va, M as ja, P as qa, R as Ja, c as za, g as Ka, p as Qa } from "./range-calendar-6CLMTieN.js";
9
9
  import { B as Xa, p as Ya, C as Za, j as $a, D as ae, m as ee, k as se, H as oe, I as te, N as re, O as ne, P as le, S as ie, n as pe, o as me, x as de, s as ue, q as ge, r as Ce, T as ce, t as Te, w as be, u as Ie, v as De, l as Se, U as Fe, W as Be, f as Pe, h as ke, i as Me, c as xe, d as fe, b as ve, e as Ne, a as ye, g as he } from "./signature-panel-JSfsTsVc.js";
10
10
  import { B as Le, I as We, M as we, d as He, e as Re, g as Ae, N as Ge, b as Oe, a as Ee, f as Ve, P as je, c as qe, S as Je, T as ze } from "./mobile-nav-wrapper-Dm9DinRD.js";
@@ -1,4 +1,4 @@
1
- import { A as s, B as t, C as r, x as e, O as i, z as n, E as m, G as l, H as d, D as C, m as p, n as D, R as S, Q as g, w as u, o as c, c as F, a as T, b as P, U as w, l as A, g as I, i as f, h as b, j as y, e as B, k as M, F as U, d as k, f as x, I as L, L as R, y as v, M as E, p as N, N as h, P as G, t as O, u as j, S as q, r as z, s as H, T as J, J as K, K as Q, q as _, v as V } from "./empty-state-BIeHWiqh.js";
1
+ import { A as s, B as t, C as r, x as e, O as i, z as n, E as m, G as l, H as d, D as C, m as p, n as D, R as S, Q as g, w as u, o as c, c as F, a as T, b as P, U as w, l as A, g as I, i as f, h as b, j as y, e as B, k as M, F as U, d as k, f as x, I as L, L as R, y as v, M as E, p as N, N as h, P as G, t as O, u as j, S as q, r as z, s as H, T as J, J as K, K as Q, q as _, v as V } from "./empty-state-DJrgCPat.js";
2
2
  import { A as X, P as Y, g as Z } from "./range-calendar-6CLMTieN.js";
3
3
  export {
4
4
  s as Alert,
@@ -58,6 +58,7 @@ export class Drawer extends Modal {
58
58
  /**
59
59
  * Gets gesture event handlers for modal content.
60
60
  * Returns event props to be spread onto the modal-content element.
61
+ * Handlers are bound methods that will work once gesture is initialized.
61
62
  *
62
63
  * @returns {object}
63
64
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.2028",
3
+ "version": "1.0.2029",
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": {