@dimasbaguspm/versaur 0.0.32 → 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-DJgcgmgw.js → bottom-sheet-DNCxKsrR.js} +130 -139
- package/dist/js/{bottom-sheet-input-lRqhqp7I.js → bottom-sheet-input-86f0OVXf.js} +2 -2
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-BS6j3xEC.js → image-rectangle-VLG1D0Cd.js} +328 -197
- 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-80jJFJ7W.js → tabs-DwXZsJC-.js} +1 -1
- package/dist/js/{tooltip-J7r2xoUk.js → tooltip-B_bTyMQN.js} +1 -1
- package/dist/js/{top-bar-DJNgsR7X.js → top-bar-CW5RI_Xd.js} +1 -1
- package/dist/types/overlays/menu/types.d.ts +5 -0
- package/dist/types/overlays/menu/use-menu.d.ts +13 -0
- package/dist/types/primitive/button-menu-icon/types.d.ts +12 -1
- package/package.json +1 -1
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { c as u, j as
|
|
2
|
-
import j, { useState as x, useEffect as y, createContext as S, useContext as T, forwardRef as f, useMemo as
|
|
3
|
-
import { u as C, k as
|
|
4
|
-
import { XIcon as
|
|
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),
|
|
12
|
-
return o || t ||
|
|
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
16
|
function E() {
|
|
18
|
-
const [e, o] = x(!1), [t,
|
|
17
|
+
const [e, o] = x(!1), [t, r] = x(0), [n, s] = x(0), [i, w] = x(!1), [p, h] = x(!1);
|
|
19
18
|
return y(() => {
|
|
20
|
-
if (!
|
|
19
|
+
if (!D()) {
|
|
21
20
|
w(!1);
|
|
22
21
|
return;
|
|
23
22
|
}
|
|
24
|
-
w(!0),
|
|
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(
|
|
@@ -42,8 +41,8 @@ function E() {
|
|
|
42
41
|
let c;
|
|
43
42
|
const m = () => {
|
|
44
43
|
clearTimeout(c), c = setTimeout(() => {
|
|
45
|
-
const
|
|
46
|
-
o(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), () => {
|
|
@@ -55,17 +54,17 @@ function E() {
|
|
|
55
54
|
clearTimeout(c), window.removeEventListener("resize", m);
|
|
56
55
|
});
|
|
57
56
|
}, [i]), y(() => {
|
|
58
|
-
i || (o(!1),
|
|
57
|
+
i || (o(!1), r(0), s(0));
|
|
59
58
|
}, [i]), {
|
|
60
59
|
isOpen: e,
|
|
61
60
|
height: t,
|
|
62
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 F() {
|
|
|
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: {
|
|
@@ -86,7 +85,7 @@ const O = u(
|
|
|
86
85
|
placement: "center"
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
|
-
),
|
|
88
|
+
), O = u(
|
|
90
89
|
[
|
|
91
90
|
"absolute z-61 bg-white rounded-lg shadow-xl",
|
|
92
91
|
"flex flex-col",
|
|
@@ -120,8 +119,8 @@ const O = 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 O = 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 O = u(
|
|
|
138
137
|
...o
|
|
139
138
|
}
|
|
140
139
|
)
|
|
140
|
+
), W = f(
|
|
141
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx("div", { ref: t, className: l("px-6 py-2", e), ...o })
|
|
141
142
|
), K = f(
|
|
142
|
-
({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx("div", { ref: t, className: l("px-6 py-2", e), ...o })
|
|
143
|
-
), _ = f(
|
|
144
143
|
(e, o) => {
|
|
145
|
-
const { isOpen: t, placement:
|
|
144
|
+
const { isOpen: t, placement: r, onClose: n, disableOverlayClickToClose: s } = P(), i = () => {
|
|
146
145
|
s || n();
|
|
147
146
|
};
|
|
148
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ a.jsx(
|
|
149
148
|
"div",
|
|
150
149
|
{
|
|
151
150
|
ref: o,
|
|
@@ -154,41 +153,33 @@ const O = 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
|
-
container: e,
|
|
166
|
-
children: o
|
|
167
|
-
}) => {
|
|
168
|
-
if (typeof window > "u" || typeof document > "u")
|
|
169
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: o });
|
|
170
|
-
const t = e ?? document.body;
|
|
171
|
-
return t ? I.createPortal(o, t) : /* @__PURE__ */ r.jsx(r.Fragment, { children: o });
|
|
172
|
-
}, $ = ({
|
|
163
|
+
), _ = ({
|
|
173
164
|
isOpen: e,
|
|
174
165
|
onClose: o,
|
|
175
166
|
size: t = "md",
|
|
176
|
-
placement:
|
|
167
|
+
placement: r = "center",
|
|
177
168
|
disableOverlayClickToClose: n = !1,
|
|
178
169
|
disableEscapeKeyDown: s = !1,
|
|
179
170
|
children: i,
|
|
180
171
|
container: w,
|
|
181
|
-
...
|
|
172
|
+
...p
|
|
182
173
|
}) => {
|
|
183
|
-
const
|
|
174
|
+
const h = {
|
|
184
175
|
isOpen: e,
|
|
185
176
|
onClose: o,
|
|
186
177
|
size: t,
|
|
187
|
-
placement:
|
|
178
|
+
placement: r,
|
|
188
179
|
disableOverlayClickToClose: n,
|
|
189
180
|
disableEscapeKeyDown: s
|
|
190
181
|
}, d = C(e, o, s);
|
|
191
|
-
return /* @__PURE__ */
|
|
182
|
+
return /* @__PURE__ */ a.jsx(B, { container: w, children: /* @__PURE__ */ a.jsx(N.Provider, { value: h, children: /* @__PURE__ */ a.jsxs(
|
|
192
183
|
"div",
|
|
193
184
|
{
|
|
194
185
|
className: l(
|
|
@@ -196,26 +187,26 @@ const O = u(
|
|
|
196
187
|
e && "pointer-events-auto"
|
|
197
188
|
),
|
|
198
189
|
children: [
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ a.jsx(K, {}),
|
|
191
|
+
/* @__PURE__ */ a.jsx(
|
|
201
192
|
"div",
|
|
202
193
|
{
|
|
203
194
|
ref: d,
|
|
204
|
-
className: l(
|
|
195
|
+
className: l(O({ size: t, placement: r, isOpen: e })),
|
|
205
196
|
role: "dialog",
|
|
206
197
|
tabIndex: -1,
|
|
207
198
|
"aria-hidden": !e,
|
|
208
|
-
...
|
|
199
|
+
...p,
|
|
209
200
|
children: i
|
|
210
201
|
}
|
|
211
202
|
)
|
|
212
203
|
]
|
|
213
204
|
}
|
|
214
205
|
) }) });
|
|
215
|
-
},
|
|
216
|
-
Header:
|
|
217
|
-
Body:
|
|
218
|
-
Footer:
|
|
206
|
+
}, ye = Object.assign(_, {
|
|
207
|
+
Header: A,
|
|
208
|
+
Body: W,
|
|
209
|
+
Footer: L
|
|
219
210
|
}), R = S(null);
|
|
220
211
|
function v() {
|
|
221
212
|
const e = T(R);
|
|
@@ -225,7 +216,7 @@ function v() {
|
|
|
225
216
|
);
|
|
226
217
|
return e;
|
|
227
218
|
}
|
|
228
|
-
const
|
|
219
|
+
const $ = u(
|
|
229
220
|
"fixed inset-0 z-50 transition-opacity duration-300 bg-foreground/30 backdrop-blur-md",
|
|
230
221
|
{
|
|
231
222
|
variants: {
|
|
@@ -238,7 +229,7 @@ const G = u(
|
|
|
238
229
|
state: "closed"
|
|
239
230
|
}
|
|
240
231
|
}
|
|
241
|
-
),
|
|
232
|
+
), G = u(
|
|
242
233
|
"fixed z-50 shadow-xl flex flex-col max-w-full",
|
|
243
234
|
{
|
|
244
235
|
variants: {
|
|
@@ -270,7 +261,7 @@ const G = u(
|
|
|
270
261
|
transitionType: "slide"
|
|
271
262
|
}
|
|
272
263
|
}
|
|
273
|
-
),
|
|
264
|
+
), U = u(
|
|
274
265
|
"flex justify-between items-center px-6",
|
|
275
266
|
{
|
|
276
267
|
variants: {
|
|
@@ -288,7 +279,7 @@ const G = u(
|
|
|
288
279
|
tab: !1
|
|
289
280
|
}
|
|
290
281
|
}
|
|
291
|
-
),
|
|
282
|
+
), X = u("flex-1 overflow-y-auto px-6 py-4", {
|
|
292
283
|
variants: {
|
|
293
284
|
variant: {
|
|
294
285
|
default: "bg-white",
|
|
@@ -298,7 +289,7 @@ const G = u(
|
|
|
298
289
|
defaultVariants: {
|
|
299
290
|
variant: "default"
|
|
300
291
|
}
|
|
301
|
-
}),
|
|
292
|
+
}), q = u("px-6 py-4 border-t", {
|
|
302
293
|
variants: {
|
|
303
294
|
variant: {
|
|
304
295
|
default: "bg-white border-border",
|
|
@@ -308,45 +299,45 @@ const G = u(
|
|
|
308
299
|
defaultVariants: {
|
|
309
300
|
variant: "default"
|
|
310
301
|
}
|
|
311
|
-
}),
|
|
312
|
-
const { isOpen:
|
|
302
|
+
}), J = j.forwardRef(({ className: e, ...o }, t) => {
|
|
303
|
+
const { isOpen: r, disableOverlayClickToClose: n, onClose: s } = v(), i = () => {
|
|
313
304
|
n || s();
|
|
314
305
|
};
|
|
315
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ a.jsx(
|
|
316
307
|
"div",
|
|
317
308
|
{
|
|
318
309
|
ref: t,
|
|
319
310
|
onClick: i,
|
|
320
311
|
className: l(
|
|
321
|
-
|
|
322
|
-
state:
|
|
312
|
+
$({
|
|
313
|
+
state: r ? "open" : "closed"
|
|
323
314
|
}),
|
|
324
315
|
e
|
|
325
316
|
),
|
|
326
317
|
...o
|
|
327
318
|
}
|
|
328
319
|
);
|
|
329
|
-
}),
|
|
330
|
-
({ children: e, className: o, hasTab: t, ...
|
|
320
|
+
}), Q = j.forwardRef(
|
|
321
|
+
({ children: e, className: o, hasTab: t, ...r }, n) => {
|
|
331
322
|
const { variant: s } = v();
|
|
332
|
-
return /* @__PURE__ */
|
|
323
|
+
return /* @__PURE__ */ a.jsx(
|
|
333
324
|
"div",
|
|
334
325
|
{
|
|
335
326
|
ref: n,
|
|
336
327
|
className: l(
|
|
337
|
-
|
|
328
|
+
U({ variant: s, tab: !!t }),
|
|
338
329
|
o
|
|
339
330
|
),
|
|
340
|
-
...
|
|
331
|
+
...r,
|
|
341
332
|
children: e
|
|
342
333
|
}
|
|
343
334
|
);
|
|
344
335
|
}
|
|
345
|
-
),
|
|
346
|
-
const { onClose:
|
|
347
|
-
|
|
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) => {
|
|
338
|
+
r(), e?.(s);
|
|
348
339
|
};
|
|
349
|
-
return /* @__PURE__ */
|
|
340
|
+
return /* @__PURE__ */ a.jsx(
|
|
350
341
|
H,
|
|
351
342
|
{
|
|
352
343
|
"aria-label": "Close drawer",
|
|
@@ -354,63 +345,63 @@ const G = u(
|
|
|
354
345
|
onClick: n,
|
|
355
346
|
variant: "ghost",
|
|
356
347
|
size: "sm",
|
|
357
|
-
as:
|
|
348
|
+
as: I,
|
|
358
349
|
ref: t
|
|
359
350
|
}
|
|
360
351
|
);
|
|
361
|
-
}),
|
|
362
|
-
({ children: e, className: o, ...t },
|
|
363
|
-
),
|
|
364
|
-
({ children: e, className: o, ...t },
|
|
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(
|
|
355
|
+
({ children: e, className: o, ...t }, r) => {
|
|
365
356
|
const { variant: n } = v();
|
|
366
|
-
return /* @__PURE__ */
|
|
357
|
+
return /* @__PURE__ */ a.jsx(
|
|
367
358
|
"div",
|
|
368
359
|
{
|
|
369
|
-
ref:
|
|
370
|
-
className: l(
|
|
360
|
+
ref: r,
|
|
361
|
+
className: l(X({ variant: n }), o),
|
|
371
362
|
...t,
|
|
372
363
|
children: e
|
|
373
364
|
}
|
|
374
365
|
);
|
|
375
366
|
}
|
|
376
|
-
),
|
|
377
|
-
({ children: e, className: o, ...t },
|
|
367
|
+
), oe = j.forwardRef(
|
|
368
|
+
({ children: e, className: o, ...t }, r) => {
|
|
378
369
|
const { variant: n } = v();
|
|
379
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ a.jsx(
|
|
380
371
|
"div",
|
|
381
372
|
{
|
|
382
|
-
ref:
|
|
383
|
-
className: l(
|
|
373
|
+
ref: r,
|
|
374
|
+
className: l(q({ variant: n }), o),
|
|
384
375
|
...t,
|
|
385
376
|
children: e
|
|
386
377
|
}
|
|
387
378
|
);
|
|
388
379
|
}
|
|
389
|
-
),
|
|
380
|
+
), re = ({
|
|
390
381
|
container: e,
|
|
391
382
|
children: o,
|
|
392
383
|
isOpen: t,
|
|
393
|
-
onClose:
|
|
384
|
+
onClose: r,
|
|
394
385
|
position: n = "right",
|
|
395
386
|
size: s = "md",
|
|
396
387
|
variant: i = "default",
|
|
397
388
|
transitionType: w = "slide",
|
|
398
|
-
disableOverlayClickToClose:
|
|
399
|
-
disableEscapeKeyDown:
|
|
389
|
+
disableOverlayClickToClose: p = !1,
|
|
390
|
+
disableEscapeKeyDown: h = !1,
|
|
400
391
|
className: d,
|
|
401
392
|
...c
|
|
402
393
|
}) => {
|
|
403
394
|
const m = {
|
|
404
395
|
isOpen: t,
|
|
405
|
-
onClose:
|
|
396
|
+
onClose: r,
|
|
406
397
|
position: n,
|
|
407
398
|
size: s,
|
|
408
399
|
variant: i,
|
|
409
400
|
transitionType: w,
|
|
410
|
-
disableOverlayClickToClose:
|
|
411
|
-
disableEscapeKeyDown:
|
|
412
|
-
},
|
|
413
|
-
return /* @__PURE__ */
|
|
401
|
+
disableOverlayClickToClose: p,
|
|
402
|
+
disableEscapeKeyDown: h
|
|
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(
|
|
414
405
|
"div",
|
|
415
406
|
{
|
|
416
407
|
className: l(
|
|
@@ -418,16 +409,16 @@ const G = u(
|
|
|
418
409
|
t && "pointer-events-auto"
|
|
419
410
|
),
|
|
420
411
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ a.jsx(J, {}),
|
|
413
|
+
/* @__PURE__ */ a.jsx(
|
|
423
414
|
"div",
|
|
424
415
|
{
|
|
425
|
-
ref:
|
|
416
|
+
ref: b,
|
|
426
417
|
tabIndex: -1,
|
|
427
418
|
role: t ? "dialog" : void 0,
|
|
428
419
|
"aria-modal": t ? "true" : void 0,
|
|
429
420
|
className: l(
|
|
430
|
-
|
|
421
|
+
G({
|
|
431
422
|
position: n,
|
|
432
423
|
size: s,
|
|
433
424
|
variant: i,
|
|
@@ -449,14 +440,14 @@ const G = u(
|
|
|
449
440
|
]
|
|
450
441
|
}
|
|
451
442
|
) }) });
|
|
452
|
-
},
|
|
453
|
-
Header:
|
|
454
|
-
Title:
|
|
455
|
-
CloseButton:
|
|
456
|
-
Tab:
|
|
457
|
-
Body:
|
|
458
|
-
Footer:
|
|
459
|
-
}),
|
|
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(
|
|
460
451
|
[
|
|
461
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",
|
|
462
453
|
"transition-transform duration-300 ease-in-out will-change-transform",
|
|
@@ -474,7 +465,7 @@ const G = u(
|
|
|
474
465
|
open: !1
|
|
475
466
|
}
|
|
476
467
|
}
|
|
477
|
-
),
|
|
468
|
+
), ne = u(
|
|
478
469
|
["fixed inset-0 z-40 duration-300"],
|
|
479
470
|
{
|
|
480
471
|
variants: {
|
|
@@ -487,84 +478,84 @@ const G = u(
|
|
|
487
478
|
open: !1
|
|
488
479
|
}
|
|
489
480
|
}
|
|
490
|
-
),
|
|
481
|
+
), se = u("px-4 pt-4 pb-2 flex-shrink-0"), ie = u([
|
|
491
482
|
"px-4 py-2 flex-1 overflow-y-auto",
|
|
492
483
|
"scrollbar-thin scrollbar-track-transparent scrollbar-thumb-border"
|
|
493
|
-
]),
|
|
494
|
-
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(
|
|
495
486
|
"h2",
|
|
496
487
|
{
|
|
497
|
-
ref:
|
|
488
|
+
ref: r,
|
|
498
489
|
className: ["text-lg font-semibold text-foreground", o].filter(Boolean).join(" "),
|
|
499
490
|
...t
|
|
500
491
|
}
|
|
501
492
|
);
|
|
502
|
-
}),
|
|
493
|
+
}), ce = f(({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
503
494
|
"div",
|
|
504
495
|
{
|
|
505
496
|
ref: t,
|
|
506
|
-
className:
|
|
497
|
+
className: se({ className: e }),
|
|
507
498
|
...o
|
|
508
499
|
}
|
|
509
|
-
)),
|
|
510
|
-
({ className: e, ...o }, t) => /* @__PURE__ */
|
|
500
|
+
)), ue = f(
|
|
501
|
+
({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
511
502
|
"div",
|
|
512
503
|
{
|
|
513
504
|
ref: t,
|
|
514
|
-
className:
|
|
505
|
+
className: ie({ className: e }),
|
|
515
506
|
...o
|
|
516
507
|
}
|
|
517
508
|
)
|
|
518
|
-
),
|
|
509
|
+
), fe = f(({ className: e, ...o }, t) => /* @__PURE__ */ a.jsx(
|
|
519
510
|
"div",
|
|
520
511
|
{
|
|
521
512
|
ref: t,
|
|
522
|
-
className:
|
|
513
|
+
className: le({ className: e }),
|
|
523
514
|
...o
|
|
524
515
|
}
|
|
525
|
-
)),
|
|
516
|
+
)), me = (...e) => (o) => {
|
|
526
517
|
e.forEach((t) => {
|
|
527
518
|
typeof t == "function" ? t(o) : t && "current" in t && (t.current = o);
|
|
528
519
|
});
|
|
529
|
-
},
|
|
520
|
+
}, we = f(
|
|
530
521
|
({
|
|
531
522
|
isOpen: e,
|
|
532
523
|
children: o,
|
|
533
524
|
className: t,
|
|
534
|
-
onClose:
|
|
525
|
+
onClose: r,
|
|
535
526
|
container: n,
|
|
536
527
|
disableOverlayClickToClose: s = !1,
|
|
537
528
|
...i
|
|
538
529
|
}, w) => {
|
|
539
|
-
const
|
|
540
|
-
isOpen:
|
|
530
|
+
const p = C(e, r), {
|
|
531
|
+
isOpen: h,
|
|
541
532
|
height: d,
|
|
542
533
|
isSupported: c
|
|
543
|
-
} = E(), m =
|
|
534
|
+
} = E(), m = z(() => !e || !c || !h ? {} : {
|
|
544
535
|
// Adjust bottom position to sit above the virtual keyboard
|
|
545
536
|
bottom: `${d}px`,
|
|
546
537
|
// Reduce max height to account for keyboard
|
|
547
538
|
maxHeight: `calc(90dvh - ${d}px)`,
|
|
548
539
|
// Ensure smooth transition
|
|
549
540
|
transition: "bottom 0.2s ease-in-out, max-height 0.2s ease-in-out"
|
|
550
|
-
}, [e, c,
|
|
551
|
-
s ||
|
|
541
|
+
}, [e, c, h, d]), b = () => {
|
|
542
|
+
s || r?.();
|
|
552
543
|
};
|
|
553
|
-
return /* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
544
|
+
return /* @__PURE__ */ a.jsxs(B, { container: n, children: [
|
|
545
|
+
/* @__PURE__ */ a.jsx(
|
|
555
546
|
"div",
|
|
556
547
|
{
|
|
557
|
-
className:
|
|
548
|
+
className: ne({ open: e }),
|
|
558
549
|
"aria-hidden": "true",
|
|
559
|
-
onClick:
|
|
550
|
+
onClick: b
|
|
560
551
|
}
|
|
561
552
|
),
|
|
562
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ a.jsx(
|
|
563
554
|
"div",
|
|
564
555
|
{
|
|
565
|
-
ref:
|
|
556
|
+
ref: me(w, p),
|
|
566
557
|
className: l(
|
|
567
|
-
|
|
558
|
+
ae({
|
|
568
559
|
open: e
|
|
569
560
|
}),
|
|
570
561
|
"flex flex-col",
|
|
@@ -581,14 +572,14 @@ const G = u(
|
|
|
581
572
|
)
|
|
582
573
|
] });
|
|
583
574
|
}
|
|
584
|
-
),
|
|
585
|
-
Header:
|
|
586
|
-
Title:
|
|
587
|
-
Body:
|
|
588
|
-
Footer:
|
|
575
|
+
), Ve = Object.assign(we, {
|
|
576
|
+
Header: ce,
|
|
577
|
+
Title: de,
|
|
578
|
+
Body: ue,
|
|
579
|
+
Footer: fe
|
|
589
580
|
});
|
|
590
581
|
export {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
582
|
+
Ve as B,
|
|
583
|
+
je as D,
|
|
584
|
+
ye as M
|
|
594
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,
|