prometeo-design-system 5.7.0 → 5.7.2

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.
@@ -3465,7 +3465,7 @@ const gs = (e) => {
3465
3465
  icon: /* @__PURE__ */ X.jsx(jt, {}),
3466
3466
  iconPosition: "right",
3467
3467
  type: "text",
3468
- inputMode: p?.inputMode ?? "numeric",
3468
+ inputMode: p?.inputMode ?? "none",
3469
3469
  value: ue,
3470
3470
  onChange: (h) => {
3471
3471
  if (f) {
@@ -1,4 +1,4 @@
1
- import { D as r, D as t } from "./DatePicker-CaeM0ulv.js";
1
+ import { D as r, D as t } from "./DatePicker-C6-D0TF-.js";
2
2
  export {
3
3
  r as DatePicker,
4
4
  t as default
@@ -1,86 +1,86 @@
1
- import { j as v } from "./jsx-runtime-GkKLlHH4.js";
2
- import { c as O } from "./cn-B6yFEsav.js";
3
- import { forwardRef as le, useState as z, useRef as m, useEffect as D, useCallback as l, useMemo as oe, useImperativeHandle as ue } from "react";
4
- import { createPortal as ae } from "react-dom";
5
- const U = 44, de = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", be = le((a, i) => {
6
- const { children: M, defaultOpen: S = !1, onClose: R, snapPoints: o = ["auto"], setSnap: d, snap: u, attachToParent: L = !1 } = a, [f, b] = z(u || "0%"), [F, C] = z(null), I = m(R), H = m(d), r = m(F), w = m(/* @__PURE__ */ new Set());
7
- I.current = R, r.current = F, D(() => {
8
- S && N();
9
- }, [S]), D(() => {
1
+ import { j as w } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { c as z } from "./cn-B6yFEsav.js";
3
+ import ce, { forwardRef as de, useState as A, useRef as h, useEffect as x, useCallback as i, useMemo as le, useImperativeHandle as ge } from "react";
4
+ import { createPortal as he } from "react-dom";
5
+ const X = 44, me = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ye = de((f, l) => {
6
+ const { children: R, defaultOpen: L = !1, onClose: j, snapPoints: o = ["auto"], setSnap: d, snap: a, attachToParent: F = !1 } = f, [m, u] = A(a || "0%"), [N, C] = A(null), D = h(j), H = h(d), r = h(N), b = h(/* @__PURE__ */ new Set());
7
+ D.current = j, r.current = N, x(() => {
8
+ L && E();
9
+ }, [L]), x(() => {
10
10
  H.current = d;
11
11
  }, [d]);
12
- const j = l(() => {
13
- b("0%"), I.current?.(r.current), setTimeout(() => C(null), 300);
14
- }, []), N = l((p, k) => {
15
- b(p || o[0] || "60%"), C(k ?? null);
16
- }, [o]), x = oe(() => f !== "0%", [f]);
17
- D(() => {
18
- w.current.forEach((p) => {
12
+ const T = i(() => {
13
+ u("0%"), D.current?.(r.current), setTimeout(() => C(null), 300);
14
+ }, []), E = i((p, O) => {
15
+ u(p || o[0] || "60%"), C(O ?? null);
16
+ }, [o]), M = le(() => m !== "0%", [m]);
17
+ x(() => {
18
+ b.current.forEach((p) => {
19
19
  try {
20
- p(x);
20
+ p(M);
21
21
  } catch {
22
22
  }
23
23
  });
24
- }, [x]), ue(i, () => ({
25
- open: N,
26
- close: j,
27
- isOpen: x,
28
- subscribeOpenChange: (p) => (w.current.add(p), () => {
29
- w.current.delete(p);
24
+ }, [M]), ge(l, () => ({
25
+ open: E,
26
+ close: T,
27
+ isOpen: M,
28
+ subscribeOpenChange: (p) => (b.current.add(p), () => {
29
+ b.current.delete(p);
30
30
  }),
31
31
  getContext: () => r.current
32
- }), [N, j, x]);
33
- const g = u || f;
34
- return L ? /* @__PURE__ */ v.jsx(re, { ...a, snap: g, setSnap: b, context: F, children: M }) : ae(/* @__PURE__ */ v.jsx(re, { ...a, snap: g, setSnap: b, context: F, children: M }), document.body);
35
- }), re = ({ children: a, attachToParent: i = !1, className: M, classNameContent: S, classNameFooter: R, snap: o, snapPoints: d = [0, "auto", 1], setSnap: u, hideOnClose: L = !1, unmountChildrenOnClose: f = !1, header: b, modal: F = !1, closeOnOverlayClick: C = !1, context: I, footer: H }) => {
36
- const r = m(null), w = m(null), j = m(null), N = m(null), x = m(0), g = m(null), T = m(null), p = l(() => {
32
+ }), [E, T, M]);
33
+ const $ = a || m;
34
+ return F ? /* @__PURE__ */ w.jsx(ie, { ...f, snap: $, setSnap: u, context: N, children: R }) : he(/* @__PURE__ */ w.jsx(ie, { ...f, snap: $, setSnap: u, context: N, children: R }), document.body);
35
+ }), ie = ({ children: f, attachToParent: l = !1, className: R, classNameContent: L, classNameFooter: j, snap: o, snapPoints: d = [0, "auto", 1], setSnap: a, hideOnClose: F = !1, unmountChildrenOnClose: m = !1, header: u, modal: N = !1, closeOnOverlayClick: C = !1, context: D, footer: H }) => {
36
+ const r = h(null), b = h(null), T = h(null), E = h(null), M = h(null), $ = h(0), y = h(null), p = h(null), O = i(() => {
37
37
  if (!r.current) return [];
38
- const e = i && r.current.parentElement?.offsetHeight || window.innerHeight;
38
+ const e = l && r.current.parentElement?.offsetHeight || window.innerHeight;
39
39
  return d?.map((t) => {
40
40
  if (t === "auto") {
41
- const n = x.current, h = k(), c = V(), s = G(e, n, h, c);
42
- return parseFloat(s) / 100 * e;
41
+ const n = $.current, g = G(), c = Z(), s = P(), v = _(e, n, g, c, s);
42
+ return parseFloat(v) / 100 * e;
43
43
  }
44
44
  return typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "string" && t.endsWith("px") ? parseFloat(t) : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0;
45
45
  }) || [];
46
- }, [d, i]), k = l(() => (b ? 88 : 44) + 16, [b]), A = l(() => w.current?.scrollHeight ?? 0, []), V = l(() => j.current?.scrollHeight ?? 0, []), G = l((e, t, n, h) => {
47
- const c = n + t + h, s = Math.min(100, c / e * 100);
48
- return `${Math.round(s)}%`;
49
- }, []), X = l((e, t) => {
50
- const n = p();
46
+ }, [d, l]), G = i(() => 46, []), W = i(() => b.current?.scrollHeight ?? 0, []), Z = i(() => T.current?.scrollHeight ?? 0, []), P = i(() => E.current?.scrollHeight ?? 0, []), _ = i((e, t, n, g, c) => {
47
+ const s = n + c + t + g, v = Math.min(100, s / e * 100);
48
+ return `${Math.round(v)}%`;
49
+ }, []), ee = i((e, t) => {
50
+ const n = O();
51
51
  if (n.length === 0) return e;
52
52
  if (Math.abs(t) > 0.05)
53
53
  if (t > 0) {
54
54
  const c = n.filter((s) => s < e);
55
- return c.length > 0 ? Math.max(...c) : L ? 0 : U;
55
+ return c.length > 0 ? Math.max(...c) : F ? 0 : X;
56
56
  } else {
57
57
  const c = n.filter((s) => s > e);
58
58
  if (c.length > 0)
59
59
  return Math.min(...c);
60
60
  }
61
61
  return n.reduce((c, s) => Math.abs(s - e) < Math.abs(c - e) ? s : c);
62
- }, [p]), Z = l((e) => {
63
- if (u && d) {
64
- const t = i && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= U ? "0%" : `${Math.round(e / t * 100)}%`;
65
- u(n);
62
+ }, [O]), q = i((e) => {
63
+ if (a && d) {
64
+ const t = l && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= X ? "0%" : `${Math.round(e / t * 100)}%`;
65
+ a(n);
66
66
  }
67
- }, [u, d, i]), W = l((e) => {
68
- r.current && (r.current.style.transition = de, r.current.style.height = `${e}px`, ie(e, x.current || A()));
69
- }, [u, d, i]), se = () => {
70
- w.current?.classList.remove("prometeo-scrollbar-none");
71
- }, ce = () => {
72
- w.current?.classList.add("prometeo-scrollbar-none");
73
- }, ie = (e, t) => {
74
- t > e ? se() : ce();
75
- }, P = l(() => {
76
- if (T.current && i) {
77
- const { scrollY: e } = T.current;
78
- document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), T.current = null;
67
+ }, [a, d, l]), te = i((e) => {
68
+ r.current && (r.current.style.transition = me, r.current.style.height = `${e}px`, fe(e, $.current || W()));
69
+ }, [a, d, l]), ue = () => {
70
+ b.current?.classList.remove("prometeo-scrollbar-none");
71
+ }, ae = () => {
72
+ b.current?.classList.add("prometeo-scrollbar-none");
73
+ }, fe = (e, t) => {
74
+ t > e ? ue() : ae();
75
+ }, ne = i(() => {
76
+ if (p.current && l) {
77
+ const { scrollY: e } = p.current;
78
+ document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), p.current = null;
79
79
  }
80
- }, [i]), q = l((e) => {
80
+ }, [l]), B = i((e) => {
81
81
  if (!r.current) return;
82
82
  const t = e.touches[0], n = r.current.offsetHeight;
83
- g.current = {
83
+ y.current = {
84
84
  isDragging: !1,
85
85
  startY: t.clientY,
86
86
  startHeight: n,
@@ -88,10 +88,10 @@ const U = 44, de = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", be = le((a, i)
88
88
  lastTime: Date.now(),
89
89
  velocity: 0
90
90
  };
91
- }, []), ee = l((e) => {
91
+ }, []), re = i((e) => {
92
92
  if (!r.current) return;
93
93
  const t = e, n = r.current.offsetHeight;
94
- g.current = {
94
+ y.current = {
95
95
  isDragging: !1,
96
96
  startY: t.clientY,
97
97
  startHeight: n,
@@ -99,175 +99,180 @@ const U = 44, de = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", be = le((a, i)
99
99
  lastTime: Date.now(),
100
100
  velocity: 0
101
101
  };
102
- }, []), B = l((e) => {
103
- if (!g.current || !r.current) return;
104
- const t = e.touches[0], n = g.current, h = n.startY - t.clientY, c = n.isDragging || Math.abs(h) > 5;
105
- if (!n.isDragging && c && (n.isDragging = !0, i)) {
102
+ }, []), U = i((e) => {
103
+ if (!y.current || !r.current) return;
104
+ const t = e.touches[0], n = y.current, g = n.startY - t.clientY, c = n.isDragging || Math.abs(g) > 5;
105
+ if (!n.isDragging && c && (n.isDragging = !0, l)) {
106
106
  const s = window.scrollY;
107
- T.current = { scrollY: s }, document.body.style.position = "fixed", document.body.style.top = `-${s}px`, document.body.style.width = "100%";
107
+ p.current = { scrollY: s }, document.body.style.position = "fixed", document.body.style.top = `-${s}px`, document.body.style.width = "100%";
108
108
  }
109
109
  if (c) {
110
110
  e.preventDefault();
111
- const s = Date.now(), Y = s - n.lastTime;
112
- if (Y > 0) {
113
- const Q = (t.clientY - n.lastY) / Y;
111
+ const s = Date.now(), v = s - n.lastTime;
112
+ if (v > 0) {
113
+ const Q = (t.clientY - n.lastY) / v;
114
114
  n.velocity = n.velocity * 0.8 + Q * 0.2;
115
115
  }
116
116
  n.lastY = t.clientY, n.lastTime = s;
117
- const $ = n.startHeight + h, J = i && r.current.parentElement?.offsetHeight || window.innerHeight, K = Math.max(0, Math.min($, J));
117
+ const I = n.startHeight + g, k = l && r.current.parentElement?.offsetHeight || window.innerHeight, K = Math.max(0, Math.min(I, k));
118
118
  r.current.style.transition = "none", r.current.style.height = `${K}px`;
119
119
  }
120
- }, [i]), te = l((e) => {
121
- if (!g.current || !r.current) return;
122
- const t = e, n = g.current, h = n.startY - t.clientY, c = n.isDragging || Math.abs(h) > 5;
123
- if (!n.isDragging && c && (n.isDragging = !0, i)) {
120
+ }, [l]), oe = i((e) => {
121
+ if (!y.current || !r.current) return;
122
+ const t = e, n = y.current, g = n.startY - t.clientY, c = n.isDragging || Math.abs(g) > 5;
123
+ if (!n.isDragging && c && (n.isDragging = !0, l)) {
124
124
  const s = window.scrollY;
125
- T.current = { scrollY: s }, document.body.style.position = "fixed", document.body.style.top = `-${s}px`, document.body.style.width = "100%";
125
+ p.current = { scrollY: s }, document.body.style.position = "fixed", document.body.style.top = `-${s}px`, document.body.style.width = "100%";
126
126
  }
127
127
  if (c) {
128
128
  e.preventDefault();
129
- const s = Date.now(), Y = s - n.lastTime;
130
- if (Y > 0) {
131
- const Q = (t.clientY - n.lastY) / Y;
129
+ const s = Date.now(), v = s - n.lastTime;
130
+ if (v > 0) {
131
+ const Q = (t.clientY - n.lastY) / v;
132
132
  n.velocity = n.velocity * 0.8 + Q * 0.2;
133
133
  }
134
134
  n.lastY = t.clientY, n.lastTime = s;
135
- const $ = n.startHeight + h, J = i && r.current.parentElement?.offsetHeight || window.innerHeight, K = Math.max(0, Math.min($, J));
135
+ const I = n.startHeight + g, k = l && r.current.parentElement?.offsetHeight || window.innerHeight, K = Math.max(0, Math.min(I, k));
136
136
  r.current.style.transition = "none", r.current.style.height = `${K}px`;
137
137
  }
138
- }, [i]), y = l(() => {
139
- if (!g.current || !r.current) return;
140
- const e = g.current;
138
+ }, [l]), Y = i(() => {
139
+ if (!y.current || !r.current) return;
140
+ const e = y.current;
141
141
  if (e.isDragging) {
142
- P();
143
- const t = r.current.offsetHeight, n = X(t, e.velocity);
144
- Z(n);
142
+ ne();
143
+ const t = r.current.offsetHeight, n = ee(t, e.velocity);
144
+ q(n);
145
145
  }
146
- g.current = null;
147
- }, [X, W, P]);
148
- D(() => {
149
- const e = N.current;
146
+ y.current = null;
147
+ }, [ee, q, ne]), V = i((e) => {
148
+ re(e);
149
+ const t = (g) => oe(g), n = () => {
150
+ document.removeEventListener("mousemove", t, { capture: !0 }), document.removeEventListener("mouseup", n, { capture: !0 }), Y();
151
+ };
152
+ document.addEventListener("mousemove", t, { passive: !1, capture: !0 }), document.addEventListener("mouseup", n, { capture: !0 });
153
+ }, [re, oe, Y]);
154
+ x(() => {
155
+ const e = M.current;
150
156
  if (e)
151
- return e.addEventListener("touchstart", q, { passive: !1 }), e.addEventListener("touchmove", B, { passive: !1 }), e.addEventListener("touchend", y), e.addEventListener("touchcancel", y), e.addEventListener("mousedown", ee, { passive: !1 }), e.addEventListener("mousemove", te, { passive: !1 }), e.addEventListener("mouseup", y), e.addEventListener("mouseleave", y), () => {
152
- e.removeEventListener("touchstart", q), e.removeEventListener("touchmove", B), e.removeEventListener("touchend", y), e.removeEventListener("touchcancel", y), e.removeEventListener("mousedown", ee), e.removeEventListener("mousemove", te), e.removeEventListener("mouseup", y), e.removeEventListener("mouseleave", y);
157
+ return e.addEventListener("touchstart", B, { passive: !1 }), e.addEventListener("touchmove", U, { passive: !1 }), e.addEventListener("touchend", Y), e.addEventListener("touchcancel", Y), e.addEventListener("mousedown", V, { passive: !1 }), () => {
158
+ e.removeEventListener("touchstart", B), e.removeEventListener("touchmove", U), e.removeEventListener("touchend", Y), e.removeEventListener("touchcancel", Y), e.removeEventListener("mousedown", V);
153
159
  };
154
- }, [q, B, y]);
155
- const E = oe(() => o !== "0%", [o]), [_, ne] = z(() => f ? o !== "0%" : !0);
156
- return D(() => {
157
- f && E && ne(!0);
158
- }, [E, f]), D(() => {
159
- if (!f) return;
160
+ }, [B, U, Y, V]);
161
+ const S = le(() => o !== "0%", [o]), [J, se] = A(() => m ? o !== "0%" : !0);
162
+ return x(() => {
163
+ m && S && se(!0);
164
+ }, [S, m]), x(() => {
165
+ if (!m) return;
160
166
  const e = r.current;
161
167
  if (!e) return;
162
168
  const t = (n) => {
163
- n.propertyName === "height" && !E && o === "0%" && ne(!1);
169
+ n.propertyName === "height" && !S && o === "0%" && se(!1);
164
170
  };
165
171
  return e.addEventListener("transitionend", t), () => {
166
172
  e.removeEventListener("transitionend", t);
167
173
  };
168
- }, [E, o, f]), D(() => {
174
+ }, [S, o, m]), x(() => {
169
175
  if (!r.current || !o) return;
170
- const e = i && r.current.parentElement?.offsetHeight || window.innerHeight;
176
+ const e = l && r.current.parentElement?.offsetHeight || window.innerHeight;
171
177
  if (o === "auto") {
172
- if (f && !_) return;
173
- W(e), requestAnimationFrame(() => {
178
+ if (m && !J) return;
179
+ te(e), requestAnimationFrame(() => {
174
180
  requestAnimationFrame(() => {
175
- const n = !H || j.current, h = w.current && w.current.children.length > 0;
176
- if (w.current && h && n) {
177
- const c = A();
178
- x.current = c;
179
- const s = k(), Y = V(), $ = G(e, c, s, Y);
180
- u($);
181
- } else n && u("100%");
181
+ const n = !H || T.current, g = b.current && b.current.children.length > 0;
182
+ if (b.current && g && n) {
183
+ const c = W();
184
+ $.current = c;
185
+ const s = G(), v = Z(), I = P(), k = _(e, c, s, v, I);
186
+ a(k);
187
+ } else n && a("100%");
182
188
  });
183
189
  });
184
190
  return;
185
191
  }
186
192
  let t = 0;
187
- typeof o == "string" && o.endsWith("%") ? parseFloat(o) <= 0 ? t = L ? 0 : U : t = parseFloat(o) / 100 * e : typeof o == "string" && o.endsWith("px") ? t = parseFloat(o) : typeof o == "number" && (o >= 0 && o <= 1 ? t = o * e : t = o), W(t);
188
- }, [o, i, A, k, G, u, _, H, f]), /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
189
- F && /* @__PURE__ */ v.jsx(
193
+ typeof o == "string" && o.endsWith("%") ? parseFloat(o) <= 0 ? t = F ? 0 : X : t = parseFloat(o) / 100 * e : typeof o == "string" && o.endsWith("px") ? t = parseFloat(o) : typeof o == "number" && (o >= 0 && o <= 1 ? t = o * e : t = o), te(t);
194
+ }, [o, l, W, G, _, a, J, H, m]), /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
195
+ N && /* @__PURE__ */ w.jsx(
190
196
  "div",
191
197
  {
192
- className: O(E ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
198
+ className: z(S ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
193
199
  onClick: (e) => {
194
- e.preventDefault(), e.stopPropagation(), C && Z(0);
200
+ e.preventDefault(), e.stopPropagation(), C && q(0);
195
201
  },
196
202
  "aria-hidden": "true"
197
203
  }
198
204
  ),
199
- /* @__PURE__ */ v.jsxs(
205
+ /* @__PURE__ */ w.jsxs(
200
206
  "div",
201
207
  {
202
208
  ref: r,
203
- className: O(
209
+ className: z(
204
210
  "h-0",
205
- i ? "absolute" : "fixed",
211
+ l ? "absolute" : "fixed",
206
212
  "z-60 bottom-0 w-full overflow-hidden",
207
213
  "bg-neutral-default-default",
208
214
  "border-t border-neutral-strong-default rounded-t-[12px]",
209
- E ? "" : "border-neutral-weak",
210
- M,
215
+ S ? "" : "border-neutral-weak",
216
+ R,
211
217
  "flex flex-col items-center",
212
218
  "touch-none select-none"
213
219
  ),
214
220
  children: [
215
- /* @__PURE__ */ v.jsx(
221
+ /* @__PURE__ */ w.jsx(
216
222
  "div",
217
223
  {
218
- ref: N,
219
- className: "w-full absolute top-0 h-11 flex items-center justify-center cursor-grab active:cursor-grabbing z-50 bg-inherit!",
220
- children: /* @__PURE__ */ v.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
224
+ ref: M,
225
+ className: "w-full absolute top-0 h-11 flex items-center justify-center cursor-grab active:cursor-grabbing z-50 bg-inherit! ",
226
+ children: /* @__PURE__ */ w.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
221
227
  }
222
228
  ),
223
- typeof b == "string" ? /* @__PURE__ */ v.jsx("p", { className: " prometeo-fonts-headline-small text-neutral-default-default w-full h-11 bg-inherit absolute top-11 z-50 px-4", children: b }) : b,
224
- /* @__PURE__ */ v.jsx(
229
+ typeof u == "string" ? /* @__PURE__ */ w.jsx("p", { ref: E, className: " prometeo-fonts-headline-small text-neutral-default-default w-full min-h-11 bg-inherit mt-11 z-50 px-4 text-balance", children: u }) : /* @__PURE__ */ w.jsx("div", { ref: E, className: "w-full mt-11", children: typeof u == "function" ? u(D) : ce.isValidElement(u) ? u : u && typeof u == "object" && "$$typeof" in u ? ce.createElement(u, { context: D }) : u }),
230
+ /* @__PURE__ */ w.jsx(
225
231
  "div",
226
232
  {
227
- ref: w,
228
- className: O(
233
+ ref: b,
234
+ className: z(
229
235
  "drawer-mobile-content prometeo-scrollbar-thin-weak ",
230
- E ? "drawer-mobile-content--open" : "drawer-mobile-content--closed",
236
+ S ? "drawer-mobile-content--open" : "drawer-mobile-content--closed",
231
237
  "w-full h-full",
232
- b ? "mt-22" : "mt-11",
233
- S
238
+ L
234
239
  ),
235
- children: (!f || _) && (typeof a == "function" ? a(I) : a)
240
+ children: (!m || J) && (typeof f == "function" ? f(D) : f)
236
241
  }
237
242
  ),
238
- H && /* @__PURE__ */ v.jsx("div", { ref: j, className: O(
243
+ H && /* @__PURE__ */ w.jsx("div", { ref: T, className: z(
239
244
  "w-full mt-2 flex items-center justify-center p-2",
240
245
  "border-t border-neutral-strong-default",
241
- R
242
- ), children: typeof H == "function" ? H(I) : H })
246
+ j
247
+ ), children: typeof H == "function" ? H(D) : H })
243
248
  ]
244
249
  }
245
250
  )
246
251
  ] });
247
- }, we = () => {
248
- const a = m(null), [i, M] = z(!1), S = l((d, u) => {
249
- a.current?.open(d, u);
250
- }, []), R = l(() => {
251
- a.current?.close();
252
- }, []), o = l(() => a.current?.getContext() ?? null, []);
253
- return D(() => {
254
- const d = a.current?.subscribeOpenChange;
252
+ }, He = () => {
253
+ const f = h(null), [l, R] = A(!1), L = i((d, a) => {
254
+ f.current?.open(d, a);
255
+ }, []), j = i(() => {
256
+ f.current?.close();
257
+ }, []), o = i(() => f.current?.getContext() ?? null, []);
258
+ return x(() => {
259
+ const d = f.current?.subscribeOpenChange;
255
260
  if (!d) return;
256
- const u = d((L) => {
257
- M(L);
261
+ const a = d((F) => {
262
+ R(F);
258
263
  });
259
264
  return () => {
260
- u && u();
265
+ a && a();
261
266
  };
262
- }, [a.current?.subscribeOpenChange]), {
263
- isOpen: i,
264
- open: S,
265
- close: R,
266
- drawerRef: a,
267
+ }, [f.current?.subscribeOpenChange]), {
268
+ isOpen: l,
269
+ open: L,
270
+ close: j,
271
+ drawerRef: f,
267
272
  getContext: o
268
273
  };
269
274
  };
270
275
  export {
271
- be as default,
272
- we as useDrawerMobile
276
+ ye as default,
277
+ He as useDrawerMobile
273
278
  };