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