@dimasbaguspm/versaur 0.0.33 → 0.0.34
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/js/{bottom-sheet-B3Rt2JC5.js → bottom-sheet-DNCxKsrR.js} +133 -156
- package/dist/js/{bottom-sheet-input-DRcyjeGh.js → bottom-sheet-input-86f0OVXf.js} +2 -2
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-oPc5hFMM.js → image-rectangle-VLG1D0Cd.js} +287 -226
- package/dist/js/index.js +6 -6
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +3 -3
- package/dist/js/primitive/index.js +1 -1
- package/dist/js/{tabs-CKLbsCWq.js → tabs-DwXZsJC-.js} +1 -1
- package/dist/js/{tooltip-DNKTNCQm.js → tooltip-B_bTyMQN.js} +1 -1
- package/dist/js/{top-bar-Bg-zMaFY.js → top-bar-CW5RI_Xd.js} +1 -1
- package/dist/types/overlays/menu/use-menu.d.ts +2 -4
- package/dist/types/primitive/button-menu-icon/types.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { c as u, j as
|
|
2
|
-
import j, { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { c as u, j as a, a as l } from "./index-DOdDlCoL.js";
|
|
2
|
+
import j, { useState as x, useEffect as y, createContext as S, useContext as T, forwardRef as f, useMemo as z } from "react";
|
|
3
|
+
import { u as C, O as B, k as M, i as H } from "./image-rectangle-VLG1D0Cd.js";
|
|
4
|
+
import { XIcon as I } from "lucide-react";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
|
|
7
|
-
function P() {
|
|
6
|
+
function D() {
|
|
8
7
|
if (typeof window > "u") return !1;
|
|
9
8
|
const e = window.navigator.userAgent, o = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
10
9
|
e
|
|
11
|
-
), t = /iPad|Android(?=.*Mobile)|Tablet/i.test(e), r = "ontouchstart" in window || navigator.maxTouchPoints > 0,
|
|
12
|
-
return o || t || r &&
|
|
10
|
+
), t = /iPad|Android(?=.*Mobile)|Tablet/i.test(e), r = "ontouchstart" in window || navigator.maxTouchPoints > 0, n = window.innerWidth <= 1024;
|
|
11
|
+
return o || t || r && n;
|
|
13
12
|
}
|
|
14
13
|
function k() {
|
|
15
14
|
return typeof window < "u" && "navigator" in window && "virtualKeyboard" in navigator;
|
|
16
15
|
}
|
|
17
|
-
function
|
|
18
|
-
const [e, o] =
|
|
19
|
-
return
|
|
20
|
-
if (!
|
|
16
|
+
function E() {
|
|
17
|
+
const [e, o] = x(!1), [t, r] = x(0), [n, s] = x(0), [i, w] = x(!1), [p, h] = x(!1);
|
|
18
|
+
return y(() => {
|
|
19
|
+
if (!D()) {
|
|
21
20
|
w(!1);
|
|
22
21
|
return;
|
|
23
22
|
}
|
|
24
23
|
w(!0), h(k());
|
|
25
|
-
}, []),
|
|
24
|
+
}, []), y(() => {
|
|
26
25
|
if (!i || !k())
|
|
27
26
|
return;
|
|
28
27
|
const d = navigator.virtualKeyboard, c = () => {
|
|
29
|
-
const { boundingRect: m } = d,
|
|
30
|
-
o(
|
|
28
|
+
const { boundingRect: m } = d, b = m?.height || 0, g = m?.width || 0;
|
|
29
|
+
o(b > 0), r(b), s(g);
|
|
31
30
|
};
|
|
32
31
|
return c(), d.addEventListener("geometrychange", c), () => {
|
|
33
32
|
d.removeEventListener(
|
|
@@ -35,15 +34,15 @@ function F() {
|
|
|
35
34
|
c
|
|
36
35
|
);
|
|
37
36
|
};
|
|
38
|
-
}, [i]),
|
|
37
|
+
}, [i]), y(() => {
|
|
39
38
|
if (!i || k())
|
|
40
39
|
return;
|
|
41
40
|
const d = window.innerHeight;
|
|
42
41
|
let c;
|
|
43
42
|
const m = () => {
|
|
44
43
|
clearTimeout(c), c = setTimeout(() => {
|
|
45
|
-
const
|
|
46
|
-
o(V), r(V ?
|
|
44
|
+
const b = window.visualViewport?.height ?? window.innerHeight, g = d - b, V = g > 150;
|
|
45
|
+
o(V), r(V ? g : 0), s(V ? window.innerWidth : 0);
|
|
47
46
|
}, 100);
|
|
48
47
|
};
|
|
49
48
|
return "visualViewport" in window && window.visualViewport ? (window.visualViewport.addEventListener("resize", m), () => {
|
|
@@ -54,18 +53,18 @@ function F() {
|
|
|
54
53
|
}) : (window.addEventListener("resize", m), () => {
|
|
55
54
|
clearTimeout(c), window.removeEventListener("resize", m);
|
|
56
55
|
});
|
|
57
|
-
}, [i]),
|
|
56
|
+
}, [i]), y(() => {
|
|
58
57
|
i || (o(!1), r(0), s(0));
|
|
59
58
|
}, [i]), {
|
|
60
59
|
isOpen: e,
|
|
61
60
|
height: t,
|
|
62
|
-
width:
|
|
61
|
+
width: n,
|
|
63
62
|
isSupported: i,
|
|
64
|
-
usingNativeAPI:
|
|
63
|
+
usingNativeAPI: p
|
|
65
64
|
};
|
|
66
65
|
}
|
|
67
66
|
const N = S(null);
|
|
68
|
-
function
|
|
67
|
+
function P() {
|
|
69
68
|
const e = T(N);
|
|
70
69
|
if (!e)
|
|
71
70
|
throw new Error(
|
|
@@ -73,7 +72,7 @@ function L() {
|
|
|
73
72
|
);
|
|
74
73
|
return e;
|
|
75
74
|
}
|
|
76
|
-
const
|
|
75
|
+
const F = u(
|
|
77
76
|
"fixed inset-0 z-60 transition-opacity duration-300 bg-foreground/30 backdrop-blur-md flex items-center justify-center transition-opacity duration-200 ease-in-out",
|
|
78
77
|
{
|
|
79
78
|
variants: {
|
|
@@ -120,8 +119,8 @@ const A = u(
|
|
|
120
119
|
isOpen: !1
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
|
-
),
|
|
124
|
-
({ className: e, ...o }, t) => /* @__PURE__ */
|
|
122
|
+
), A = f(
|
|
123
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
125
124
|
"div",
|
|
126
125
|
{
|
|
127
126
|
ref: t,
|
|
@@ -129,8 +128,8 @@ const A = u(
|
|
|
129
128
|
...o
|
|
130
129
|
}
|
|
131
130
|
)
|
|
132
|
-
),
|
|
133
|
-
({ className: e, ...o }, t) => /* @__PURE__ */
|
|
131
|
+
), L = f(
|
|
132
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
134
133
|
"div",
|
|
135
134
|
{
|
|
136
135
|
ref: t,
|
|
@@ -138,14 +137,14 @@ const A = u(
|
|
|
138
137
|
...o
|
|
139
138
|
}
|
|
140
139
|
)
|
|
141
|
-
),
|
|
142
|
-
({ className: e, ...o }, t) => /* @__PURE__ */
|
|
143
|
-
),
|
|
140
|
+
), W = f(
|
|
141
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx("div", { ref: t, className: l("px-6 py-2", e), ...o })
|
|
142
|
+
), K = f(
|
|
144
143
|
(e, o) => {
|
|
145
|
-
const { isOpen: t, placement: r, onClose:
|
|
146
|
-
s ||
|
|
144
|
+
const { isOpen: t, placement: r, onClose: n, disableOverlayClickToClose: s } = P(), i = () => {
|
|
145
|
+
s || n();
|
|
147
146
|
};
|
|
148
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ a.jsx(
|
|
149
148
|
"div",
|
|
150
149
|
{
|
|
151
150
|
ref: o,
|
|
@@ -154,55 +153,33 @@ const A = u(
|
|
|
154
153
|
"aria-modal": "true",
|
|
155
154
|
onClick: i,
|
|
156
155
|
className: l(
|
|
157
|
-
|
|
156
|
+
F({ placement: r }),
|
|
158
157
|
t ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
159
158
|
),
|
|
160
159
|
...e
|
|
161
160
|
}
|
|
162
161
|
);
|
|
163
162
|
}
|
|
164
|
-
)
|
|
165
|
-
function B(e, o, t) {
|
|
166
|
-
const r = M(null);
|
|
167
|
-
return x(() => {
|
|
168
|
-
r.current && r.current.focus();
|
|
169
|
-
}, []), x(() => {
|
|
170
|
-
const a = (s) => {
|
|
171
|
-
s.key === "Escape" && e && r.current && r.current.contains(document.activeElement) && !t && o();
|
|
172
|
-
};
|
|
173
|
-
return e && (document.addEventListener("keydown", a), document.body.style.overflow = "hidden"), () => {
|
|
174
|
-
document.removeEventListener("keydown", a), document.body.style.overflow = "unset";
|
|
175
|
-
};
|
|
176
|
-
}, [e, o, t, r]), r;
|
|
177
|
-
}
|
|
178
|
-
const C = ({
|
|
179
|
-
container: e,
|
|
180
|
-
children: o
|
|
181
|
-
}) => {
|
|
182
|
-
if (typeof window > "u" || typeof document > "u")
|
|
183
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o });
|
|
184
|
-
const t = e ?? document.body;
|
|
185
|
-
return t ? I.createPortal(o, t) : /* @__PURE__ */ n.jsx(n.Fragment, { children: o });
|
|
186
|
-
}, G = ({
|
|
163
|
+
), _ = ({
|
|
187
164
|
isOpen: e,
|
|
188
165
|
onClose: o,
|
|
189
166
|
size: t = "md",
|
|
190
167
|
placement: r = "center",
|
|
191
|
-
disableOverlayClickToClose:
|
|
168
|
+
disableOverlayClickToClose: n = !1,
|
|
192
169
|
disableEscapeKeyDown: s = !1,
|
|
193
170
|
children: i,
|
|
194
171
|
container: w,
|
|
195
|
-
...
|
|
172
|
+
...p
|
|
196
173
|
}) => {
|
|
197
174
|
const h = {
|
|
198
175
|
isOpen: e,
|
|
199
176
|
onClose: o,
|
|
200
177
|
size: t,
|
|
201
178
|
placement: r,
|
|
202
|
-
disableOverlayClickToClose:
|
|
179
|
+
disableOverlayClickToClose: n,
|
|
203
180
|
disableEscapeKeyDown: s
|
|
204
|
-
}, d =
|
|
205
|
-
return /* @__PURE__ */
|
|
181
|
+
}, d = C(e, o, s);
|
|
182
|
+
return /* @__PURE__ */ a.jsx(B, { container: w, children: /* @__PURE__ */ a.jsx(N.Provider, { value: h, children: /* @__PURE__ */ a.jsxs(
|
|
206
183
|
"div",
|
|
207
184
|
{
|
|
208
185
|
className: l(
|
|
@@ -210,8 +187,8 @@ const C = ({
|
|
|
210
187
|
e && "pointer-events-auto"
|
|
211
188
|
),
|
|
212
189
|
children: [
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ a.jsx(K, {}),
|
|
191
|
+
/* @__PURE__ */ a.jsx(
|
|
215
192
|
"div",
|
|
216
193
|
{
|
|
217
194
|
ref: d,
|
|
@@ -219,19 +196,19 @@ const C = ({
|
|
|
219
196
|
role: "dialog",
|
|
220
197
|
tabIndex: -1,
|
|
221
198
|
"aria-hidden": !e,
|
|
222
|
-
...
|
|
199
|
+
...p,
|
|
223
200
|
children: i
|
|
224
201
|
}
|
|
225
202
|
)
|
|
226
203
|
]
|
|
227
204
|
}
|
|
228
205
|
) }) });
|
|
229
|
-
},
|
|
230
|
-
Header:
|
|
231
|
-
Body:
|
|
232
|
-
Footer:
|
|
206
|
+
}, ye = Object.assign(_, {
|
|
207
|
+
Header: A,
|
|
208
|
+
Body: W,
|
|
209
|
+
Footer: L
|
|
233
210
|
}), R = S(null);
|
|
234
|
-
function
|
|
211
|
+
function v() {
|
|
235
212
|
const e = T(R);
|
|
236
213
|
if (!e)
|
|
237
214
|
throw new Error(
|
|
@@ -239,7 +216,7 @@ function g() {
|
|
|
239
216
|
);
|
|
240
217
|
return e;
|
|
241
218
|
}
|
|
242
|
-
const
|
|
219
|
+
const $ = u(
|
|
243
220
|
"fixed inset-0 z-50 transition-opacity duration-300 bg-foreground/30 backdrop-blur-md",
|
|
244
221
|
{
|
|
245
222
|
variants: {
|
|
@@ -252,7 +229,7 @@ const U = u(
|
|
|
252
229
|
state: "closed"
|
|
253
230
|
}
|
|
254
231
|
}
|
|
255
|
-
),
|
|
232
|
+
), G = u(
|
|
256
233
|
"fixed z-50 shadow-xl flex flex-col max-w-full",
|
|
257
234
|
{
|
|
258
235
|
variants: {
|
|
@@ -284,7 +261,7 @@ const U = u(
|
|
|
284
261
|
transitionType: "slide"
|
|
285
262
|
}
|
|
286
263
|
}
|
|
287
|
-
),
|
|
264
|
+
), U = u(
|
|
288
265
|
"flex justify-between items-center px-6",
|
|
289
266
|
{
|
|
290
267
|
variants: {
|
|
@@ -302,7 +279,7 @@ const U = u(
|
|
|
302
279
|
tab: !1
|
|
303
280
|
}
|
|
304
281
|
}
|
|
305
|
-
),
|
|
282
|
+
), X = u("flex-1 overflow-y-auto px-6 py-4", {
|
|
306
283
|
variants: {
|
|
307
284
|
variant: {
|
|
308
285
|
default: "bg-white",
|
|
@@ -312,7 +289,7 @@ const U = u(
|
|
|
312
289
|
defaultVariants: {
|
|
313
290
|
variant: "default"
|
|
314
291
|
}
|
|
315
|
-
}),
|
|
292
|
+
}), q = u("px-6 py-4 border-t", {
|
|
316
293
|
variants: {
|
|
317
294
|
variant: {
|
|
318
295
|
default: "bg-white border-border",
|
|
@@ -322,17 +299,17 @@ const U = u(
|
|
|
322
299
|
defaultVariants: {
|
|
323
300
|
variant: "default"
|
|
324
301
|
}
|
|
325
|
-
}),
|
|
326
|
-
const { isOpen: r, disableOverlayClickToClose:
|
|
327
|
-
|
|
302
|
+
}), J = j.forwardRef(({ className: e, ...o }, t) => {
|
|
303
|
+
const { isOpen: r, disableOverlayClickToClose: n, onClose: s } = v(), i = () => {
|
|
304
|
+
n || s();
|
|
328
305
|
};
|
|
329
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ a.jsx(
|
|
330
307
|
"div",
|
|
331
308
|
{
|
|
332
309
|
ref: t,
|
|
333
310
|
onClick: i,
|
|
334
311
|
className: l(
|
|
335
|
-
|
|
312
|
+
$({
|
|
336
313
|
state: r ? "open" : "closed"
|
|
337
314
|
}),
|
|
338
315
|
e
|
|
@@ -340,15 +317,15 @@ const U = u(
|
|
|
340
317
|
...o
|
|
341
318
|
}
|
|
342
319
|
);
|
|
343
|
-
}),
|
|
344
|
-
({ children: e, className: o, hasTab: t, ...r },
|
|
345
|
-
const { variant: s } =
|
|
346
|
-
return /* @__PURE__ */
|
|
320
|
+
}), Q = j.forwardRef(
|
|
321
|
+
({ children: e, className: o, hasTab: t, ...r }, n) => {
|
|
322
|
+
const { variant: s } = v();
|
|
323
|
+
return /* @__PURE__ */ a.jsx(
|
|
347
324
|
"div",
|
|
348
325
|
{
|
|
349
|
-
ref:
|
|
326
|
+
ref: n,
|
|
350
327
|
className: l(
|
|
351
|
-
|
|
328
|
+
U({ variant: s, tab: !!t }),
|
|
352
329
|
o
|
|
353
330
|
),
|
|
354
331
|
...r,
|
|
@@ -356,60 +333,60 @@ const U = u(
|
|
|
356
333
|
}
|
|
357
334
|
);
|
|
358
335
|
}
|
|
359
|
-
),
|
|
360
|
-
const { onClose: r } =
|
|
336
|
+
), Y = f((e, o) => /* @__PURE__ */ a.jsx(M, { ...e, ref: o, as: "h3", fontSize: "lg" })), Z = f(({ onClick: e, ...o }, t) => {
|
|
337
|
+
const { onClose: r } = v(), n = (s) => {
|
|
361
338
|
r(), e?.(s);
|
|
362
339
|
};
|
|
363
|
-
return /* @__PURE__ */
|
|
364
|
-
|
|
340
|
+
return /* @__PURE__ */ a.jsx(
|
|
341
|
+
H,
|
|
365
342
|
{
|
|
366
343
|
"aria-label": "Close drawer",
|
|
367
344
|
...o,
|
|
368
|
-
onClick:
|
|
345
|
+
onClick: n,
|
|
369
346
|
variant: "ghost",
|
|
370
347
|
size: "sm",
|
|
371
|
-
as:
|
|
348
|
+
as: I,
|
|
372
349
|
ref: t
|
|
373
350
|
}
|
|
374
351
|
);
|
|
375
|
-
}),
|
|
376
|
-
({ children: e, className: o, ...t }, r) => /* @__PURE__ */
|
|
377
|
-
),
|
|
352
|
+
}), ee = f(
|
|
353
|
+
({ children: e, className: o, ...t }, r) => /* @__PURE__ */ a.jsx("div", { ref: r, className: l("[&>div]:px-6", o), ...t, children: e })
|
|
354
|
+
), te = j.forwardRef(
|
|
378
355
|
({ children: e, className: o, ...t }, r) => {
|
|
379
|
-
const { variant:
|
|
380
|
-
return /* @__PURE__ */
|
|
356
|
+
const { variant: n } = v();
|
|
357
|
+
return /* @__PURE__ */ a.jsx(
|
|
381
358
|
"div",
|
|
382
359
|
{
|
|
383
360
|
ref: r,
|
|
384
|
-
className: l(
|
|
361
|
+
className: l(X({ variant: n }), o),
|
|
385
362
|
...t,
|
|
386
363
|
children: e
|
|
387
364
|
}
|
|
388
365
|
);
|
|
389
366
|
}
|
|
390
|
-
),
|
|
367
|
+
), oe = j.forwardRef(
|
|
391
368
|
({ children: e, className: o, ...t }, r) => {
|
|
392
|
-
const { variant:
|
|
393
|
-
return /* @__PURE__ */
|
|
369
|
+
const { variant: n } = v();
|
|
370
|
+
return /* @__PURE__ */ a.jsx(
|
|
394
371
|
"div",
|
|
395
372
|
{
|
|
396
373
|
ref: r,
|
|
397
|
-
className: l(
|
|
374
|
+
className: l(q({ variant: n }), o),
|
|
398
375
|
...t,
|
|
399
376
|
children: e
|
|
400
377
|
}
|
|
401
378
|
);
|
|
402
379
|
}
|
|
403
|
-
),
|
|
380
|
+
), re = ({
|
|
404
381
|
container: e,
|
|
405
382
|
children: o,
|
|
406
383
|
isOpen: t,
|
|
407
384
|
onClose: r,
|
|
408
|
-
position:
|
|
385
|
+
position: n = "right",
|
|
409
386
|
size: s = "md",
|
|
410
387
|
variant: i = "default",
|
|
411
388
|
transitionType: w = "slide",
|
|
412
|
-
disableOverlayClickToClose:
|
|
389
|
+
disableOverlayClickToClose: p = !1,
|
|
413
390
|
disableEscapeKeyDown: h = !1,
|
|
414
391
|
className: d,
|
|
415
392
|
...c
|
|
@@ -417,14 +394,14 @@ const U = u(
|
|
|
417
394
|
const m = {
|
|
418
395
|
isOpen: t,
|
|
419
396
|
onClose: r,
|
|
420
|
-
position:
|
|
397
|
+
position: n,
|
|
421
398
|
size: s,
|
|
422
399
|
variant: i,
|
|
423
400
|
transitionType: w,
|
|
424
|
-
disableOverlayClickToClose:
|
|
401
|
+
disableOverlayClickToClose: p,
|
|
425
402
|
disableEscapeKeyDown: h
|
|
426
|
-
},
|
|
427
|
-
return /* @__PURE__ */
|
|
403
|
+
}, b = C(t, r, h);
|
|
404
|
+
return /* @__PURE__ */ a.jsx(B, { container: e, children: /* @__PURE__ */ a.jsx(R.Provider, { value: m, children: /* @__PURE__ */ a.jsxs(
|
|
428
405
|
"div",
|
|
429
406
|
{
|
|
430
407
|
className: l(
|
|
@@ -432,24 +409,24 @@ const U = u(
|
|
|
432
409
|
t && "pointer-events-auto"
|
|
433
410
|
),
|
|
434
411
|
children: [
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ a.jsx(J, {}),
|
|
413
|
+
/* @__PURE__ */ a.jsx(
|
|
437
414
|
"div",
|
|
438
415
|
{
|
|
439
|
-
ref:
|
|
416
|
+
ref: b,
|
|
440
417
|
tabIndex: -1,
|
|
441
418
|
role: t ? "dialog" : void 0,
|
|
442
419
|
"aria-modal": t ? "true" : void 0,
|
|
443
420
|
className: l(
|
|
444
|
-
|
|
445
|
-
position:
|
|
421
|
+
G({
|
|
422
|
+
position: n,
|
|
446
423
|
size: s,
|
|
447
424
|
variant: i,
|
|
448
425
|
transitionType: w
|
|
449
426
|
}),
|
|
450
427
|
w === "slide" ? [
|
|
451
|
-
!t &&
|
|
452
|
-
!t &&
|
|
428
|
+
!t && n === "left" && "-translate-x-full",
|
|
429
|
+
!t && n === "right" && "translate-x-full"
|
|
453
430
|
] : [
|
|
454
431
|
"left-0 right-0 top-0 bottom-0",
|
|
455
432
|
t ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
@@ -463,14 +440,14 @@ const U = u(
|
|
|
463
440
|
]
|
|
464
441
|
}
|
|
465
442
|
) }) });
|
|
466
|
-
},
|
|
467
|
-
Header:
|
|
468
|
-
Title:
|
|
469
|
-
CloseButton:
|
|
470
|
-
Tab:
|
|
471
|
-
Body:
|
|
472
|
-
Footer:
|
|
473
|
-
}),
|
|
443
|
+
}, je = Object.assign(re, {
|
|
444
|
+
Header: Q,
|
|
445
|
+
Title: Y,
|
|
446
|
+
CloseButton: Z,
|
|
447
|
+
Tab: ee,
|
|
448
|
+
Body: te,
|
|
449
|
+
Footer: oe
|
|
450
|
+
}), ae = u(
|
|
474
451
|
[
|
|
475
452
|
"fixed left-0 bottom-0 z-40 w-full max-h-[90dvh] bg-background rounded-t-xl shadow-lg border-t border-border rounded-lg",
|
|
476
453
|
"transition-transform duration-300 ease-in-out will-change-transform",
|
|
@@ -488,7 +465,7 @@ const U = u(
|
|
|
488
465
|
open: !1
|
|
489
466
|
}
|
|
490
467
|
}
|
|
491
|
-
),
|
|
468
|
+
), ne = u(
|
|
492
469
|
["fixed inset-0 z-40 duration-300"],
|
|
493
470
|
{
|
|
494
471
|
variants: {
|
|
@@ -501,11 +478,11 @@ const U = u(
|
|
|
501
478
|
open: !1
|
|
502
479
|
}
|
|
503
480
|
}
|
|
504
|
-
),
|
|
481
|
+
), se = u("px-4 pt-4 pb-2 flex-shrink-0"), ie = u([
|
|
505
482
|
"px-4 py-2 flex-1 overflow-y-auto",
|
|
506
483
|
"scrollbar-thin scrollbar-track-transparent scrollbar-thumb-border"
|
|
507
|
-
]),
|
|
508
|
-
return /* @__PURE__ */
|
|
484
|
+
]), le = u("px-4 pt-2 pb-4 flex-shrink-0"), de = f(function({ className: o, ...t }, r) {
|
|
485
|
+
return /* @__PURE__ */ a.jsx(
|
|
509
486
|
"h2",
|
|
510
487
|
{
|
|
511
488
|
ref: r,
|
|
@@ -513,72 +490,72 @@ const U = u(
|
|
|
513
490
|
...t
|
|
514
491
|
}
|
|
515
492
|
);
|
|
516
|
-
}),
|
|
493
|
+
}), ce = f(({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
517
494
|
"div",
|
|
518
495
|
{
|
|
519
496
|
ref: t,
|
|
520
|
-
className:
|
|
497
|
+
className: se({ className: e }),
|
|
521
498
|
...o
|
|
522
499
|
}
|
|
523
|
-
)),
|
|
524
|
-
({ className: e, ...o }, t) => /* @__PURE__ */
|
|
500
|
+
)), ue = f(
|
|
501
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
525
502
|
"div",
|
|
526
503
|
{
|
|
527
504
|
ref: t,
|
|
528
|
-
className:
|
|
505
|
+
className: ie({ className: e }),
|
|
529
506
|
...o
|
|
530
507
|
}
|
|
531
508
|
)
|
|
532
|
-
),
|
|
509
|
+
), fe = f(({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
533
510
|
"div",
|
|
534
511
|
{
|
|
535
512
|
ref: t,
|
|
536
|
-
className:
|
|
513
|
+
className: le({ className: e }),
|
|
537
514
|
...o
|
|
538
515
|
}
|
|
539
|
-
)),
|
|
516
|
+
)), me = (...e) => (o) => {
|
|
540
517
|
e.forEach((t) => {
|
|
541
518
|
typeof t == "function" ? t(o) : t && "current" in t && (t.current = o);
|
|
542
519
|
});
|
|
543
|
-
},
|
|
520
|
+
}, we = f(
|
|
544
521
|
({
|
|
545
522
|
isOpen: e,
|
|
546
523
|
children: o,
|
|
547
524
|
className: t,
|
|
548
525
|
onClose: r,
|
|
549
|
-
container:
|
|
526
|
+
container: n,
|
|
550
527
|
disableOverlayClickToClose: s = !1,
|
|
551
528
|
...i
|
|
552
529
|
}, w) => {
|
|
553
|
-
const
|
|
530
|
+
const p = C(e, r), {
|
|
554
531
|
isOpen: h,
|
|
555
532
|
height: d,
|
|
556
533
|
isSupported: c
|
|
557
|
-
} =
|
|
534
|
+
} = E(), m = z(() => !e || !c || !h ? {} : {
|
|
558
535
|
// Adjust bottom position to sit above the virtual keyboard
|
|
559
536
|
bottom: `${d}px`,
|
|
560
537
|
// Reduce max height to account for keyboard
|
|
561
538
|
maxHeight: `calc(90dvh - ${d}px)`,
|
|
562
539
|
// Ensure smooth transition
|
|
563
540
|
transition: "bottom 0.2s ease-in-out, max-height 0.2s ease-in-out"
|
|
564
|
-
}, [e, c, h, d]),
|
|
541
|
+
}, [e, c, h, d]), b = () => {
|
|
565
542
|
s || r?.();
|
|
566
543
|
};
|
|
567
|
-
return /* @__PURE__ */
|
|
568
|
-
/* @__PURE__ */
|
|
544
|
+
return /* @__PURE__ */ a.jsxs(B, { container: n, children: [
|
|
545
|
+
/* @__PURE__ */ a.jsx(
|
|
569
546
|
"div",
|
|
570
547
|
{
|
|
571
|
-
className:
|
|
548
|
+
className: ne({ open: e }),
|
|
572
549
|
"aria-hidden": "true",
|
|
573
|
-
onClick:
|
|
550
|
+
onClick: b
|
|
574
551
|
}
|
|
575
552
|
),
|
|
576
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ a.jsx(
|
|
577
554
|
"div",
|
|
578
555
|
{
|
|
579
|
-
ref:
|
|
556
|
+
ref: me(w, p),
|
|
580
557
|
className: l(
|
|
581
|
-
|
|
558
|
+
ae({
|
|
582
559
|
open: e
|
|
583
560
|
}),
|
|
584
561
|
"flex flex-col",
|
|
@@ -595,14 +572,14 @@ const U = u(
|
|
|
595
572
|
)
|
|
596
573
|
] });
|
|
597
574
|
}
|
|
598
|
-
),
|
|
599
|
-
Header:
|
|
600
|
-
Title:
|
|
601
|
-
Body:
|
|
602
|
-
Footer:
|
|
575
|
+
), Ve = Object.assign(we, {
|
|
576
|
+
Header: ce,
|
|
577
|
+
Title: de,
|
|
578
|
+
Body: ue,
|
|
579
|
+
Footer: fe
|
|
603
580
|
});
|
|
604
581
|
export {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
582
|
+
Ve as B,
|
|
583
|
+
je as D,
|
|
584
|
+
ye as M
|
|
608
585
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as w, j as e, a as m } from "./index-DOdDlCoL.js";
|
|
2
2
|
import x, { createContext as N, useContext as S, useId as E, forwardRef as j, useRef as D, useState as O, useEffect as Q, useMemo as F } from "react";
|
|
3
|
-
import { I as C } from "./image-rectangle-
|
|
3
|
+
import { I as C } from "./image-rectangle-VLG1D0Cd.js";
|
|
4
4
|
import { Calendar as U, SearchIcon as X, Clock as Y, Banknote as Z, MailIcon as ee, Check as P } from "lucide-react";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
import { M as R, D as M, B as V } from "./bottom-sheet-
|
|
6
|
+
import { M as R, D as M, B as V } from "./bottom-sheet-DNCxKsrR.js";
|
|
7
7
|
const re = w("space-y-2", {
|
|
8
8
|
variants: {
|
|
9
9
|
direction: {
|
package/dist/js/forms/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as a, C as n, b as p, a as u, D as s, k as I, E as i, M as l, P as S, R as c, d as r, c as g, S as h, e as o, j as m, i as M, h as b, f as k, T as x, g as C } from "../bottom-sheet-input-
|
|
1
|
+
import { B as a, C as n, b as p, a as u, D as s, k as I, E as i, M as l, P as S, R as c, d as r, c as g, S as h, e as o, j as m, i as M, h as b, f as k, T as x, g as C } from "../bottom-sheet-input-86f0OVXf.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BottomSheetInput,
|
|
4
4
|
n as CheckboxInput,
|