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