@dimasbaguspm/versaur 0.0.26 → 0.0.27
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-CQw_O-4W.js → bottom-sheet-DCwLmjiX.js} +20 -20
- package/dist/js/{bottom-sheet-input-1C3Up2xF.js → bottom-sheet-input-D14wjCoC.js} +2 -2
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle--Sy82Ff9.js → image-rectangle-BGLYH2Gl.js} +205 -151
- package/dist/js/index.js +65 -63
- package/dist/js/layouts/index.js +9 -8
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +16 -15
- package/dist/js/{tabs-CoNG51E1.js → tabs-C0hcpxNk.js} +1 -1
- package/dist/js/{tooltip-BbTHXz6h.js → tooltip-DlbAOUeP.js} +16 -16
- package/dist/js/top-bar-BA88ij4M.js +669 -0
- package/dist/types/layouts/badge-group/badge-group.d.ts +27 -0
- package/dist/types/layouts/badge-group/index.d.ts +2 -0
- package/dist/types/layouts/badge-group/types.d.ts +32 -0
- package/dist/types/layouts/index.d.ts +1 -0
- package/dist/types/primitive/card/card.d.ts +24 -0
- package/dist/types/primitive/card/index.d.ts +2 -0
- package/dist/types/primitive/card/types.d.ts +39 -0
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/utils/enforce-subpath-import.js +2 -0
- package/package.json +1 -1
- package/dist/js/top-bar-BjE0FiE8.js +0 -607
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c, j as n, a as d } from "./index-DOdDlCoL.js";
|
|
2
2
|
import j, { useState as x, useEffect as b, createContext as S, useContext as N, forwardRef as u, useRef as E, useCallback as M, useMemo as z } from "react";
|
|
3
3
|
import { XIcon as D } from "lucide-react";
|
|
4
|
-
import {
|
|
4
|
+
import { i as H, f as I } from "./image-rectangle-BGLYH2Gl.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
6
|
import P from "react-dom";
|
|
7
7
|
function F() {
|
|
@@ -15,13 +15,13 @@ function k() {
|
|
|
15
15
|
return typeof window < "u" && "navigator" in window && "virtualKeyboard" in navigator;
|
|
16
16
|
}
|
|
17
17
|
function L() {
|
|
18
|
-
const [e, o] = x(!1), [t, r] = x(0), [a, s] = x(0), [i, w] = x(!1), [
|
|
18
|
+
const [e, o] = x(!1), [t, r] = x(0), [a, s] = x(0), [i, w] = x(!1), [p, h] = x(!1);
|
|
19
19
|
return b(() => {
|
|
20
20
|
if (!F()) {
|
|
21
21
|
w(!1);
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
w(!0),
|
|
24
|
+
w(!0), h(k());
|
|
25
25
|
}, []), b(() => {
|
|
26
26
|
if (!i || !k())
|
|
27
27
|
return;
|
|
@@ -61,7 +61,7 @@ function L() {
|
|
|
61
61
|
height: t,
|
|
62
62
|
width: a,
|
|
63
63
|
isSupported: i,
|
|
64
|
-
usingNativeAPI:
|
|
64
|
+
usingNativeAPI: p
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
const R = S(null);
|
|
@@ -195,7 +195,7 @@ const C = ({
|
|
|
195
195
|
onClose: o,
|
|
196
196
|
size: t,
|
|
197
197
|
placement: r
|
|
198
|
-
},
|
|
198
|
+
}, p = B(e, o);
|
|
199
199
|
return /* @__PURE__ */ n.jsx(C, { container: s, children: /* @__PURE__ */ n.jsx(R.Provider, { value: w, children: /* @__PURE__ */ n.jsxs(
|
|
200
200
|
"div",
|
|
201
201
|
{
|
|
@@ -208,7 +208,7 @@ const C = ({
|
|
|
208
208
|
/* @__PURE__ */ n.jsx(
|
|
209
209
|
"div",
|
|
210
210
|
{
|
|
211
|
-
ref:
|
|
211
|
+
ref: p,
|
|
212
212
|
className: d(O({ size: t, placement: r, isOpen: e })),
|
|
213
213
|
role: "dialog",
|
|
214
214
|
tabIndex: -1,
|
|
@@ -403,8 +403,8 @@ const X = c(
|
|
|
403
403
|
size: s = "md",
|
|
404
404
|
variant: i = "default",
|
|
405
405
|
transitionType: w = "slide",
|
|
406
|
-
className:
|
|
407
|
-
...
|
|
406
|
+
className: p,
|
|
407
|
+
...h
|
|
408
408
|
}) => {
|
|
409
409
|
const f = M(() => {
|
|
410
410
|
r(!1);
|
|
@@ -446,9 +446,9 @@ const X = c(
|
|
|
446
446
|
"left-0 right-0 top-0 bottom-0",
|
|
447
447
|
t ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
448
448
|
],
|
|
449
|
-
|
|
449
|
+
p
|
|
450
450
|
),
|
|
451
|
-
...
|
|
451
|
+
...h,
|
|
452
452
|
children: t && o
|
|
453
453
|
}
|
|
454
454
|
)
|
|
@@ -521,31 +521,31 @@ const X = c(
|
|
|
521
521
|
...o
|
|
522
522
|
}
|
|
523
523
|
)
|
|
524
|
-
),
|
|
524
|
+
), pe = u(({ className: e, ...o }, t) => /* @__PURE__ */ n.jsx(
|
|
525
525
|
"div",
|
|
526
526
|
{
|
|
527
527
|
ref: t,
|
|
528
528
|
className: ue({ className: e }),
|
|
529
529
|
...o
|
|
530
530
|
}
|
|
531
|
-
)),
|
|
531
|
+
)), he = (...e) => (o) => {
|
|
532
532
|
e.forEach((t) => {
|
|
533
533
|
typeof t == "function" ? t(o) : t && "current" in t && (t.current = o);
|
|
534
534
|
});
|
|
535
535
|
}, be = u(
|
|
536
536
|
({ isOpen: e, children: o, className: t, onClose: r, container: a, ...s }, i) => {
|
|
537
537
|
const w = B(e, r), {
|
|
538
|
-
isOpen:
|
|
539
|
-
height:
|
|
538
|
+
isOpen: p,
|
|
539
|
+
height: h,
|
|
540
540
|
isSupported: f
|
|
541
|
-
} = L(), l = z(() => !e || !f || !
|
|
541
|
+
} = L(), l = z(() => !e || !f || !p ? {} : {
|
|
542
542
|
// Adjust bottom position to sit above the virtual keyboard
|
|
543
|
-
bottom: `${
|
|
543
|
+
bottom: `${h}px`,
|
|
544
544
|
// Reduce max height to account for keyboard
|
|
545
|
-
maxHeight: `calc(90dvh - ${
|
|
545
|
+
maxHeight: `calc(90dvh - ${h}px)`,
|
|
546
546
|
// Ensure smooth transition
|
|
547
547
|
transition: "bottom 0.2s ease-in-out, max-height 0.2s ease-in-out"
|
|
548
|
-
}, [e, f,
|
|
548
|
+
}, [e, f, p, h]), m = () => {
|
|
549
549
|
r?.();
|
|
550
550
|
};
|
|
551
551
|
return /* @__PURE__ */ n.jsxs(C, { container: a, children: [
|
|
@@ -560,7 +560,7 @@ const X = c(
|
|
|
560
560
|
/* @__PURE__ */ n.jsx(
|
|
561
561
|
"div",
|
|
562
562
|
{
|
|
563
|
-
ref:
|
|
563
|
+
ref: he(i, w),
|
|
564
564
|
className: d(
|
|
565
565
|
ie({
|
|
566
566
|
open: e
|
|
@@ -583,7 +583,7 @@ const X = c(
|
|
|
583
583
|
Header: me,
|
|
584
584
|
Title: fe,
|
|
585
585
|
Body: we,
|
|
586
|
-
Footer:
|
|
586
|
+
Footer: pe
|
|
587
587
|
});
|
|
588
588
|
export {
|
|
589
589
|
Se as B,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as j, j as e, a as p } from "./index-DOdDlCoL.js";
|
|
2
2
|
import x, { createContext as S, useContext as V, useRef as $, forwardRef as I, useState as O, useId as D, useEffect as X, useMemo as P } from "react";
|
|
3
3
|
import { Check as F, Calendar as Y, SearchIcon as Z, Clock as ee, Banknote as re, MailIcon as te } from "lucide-react";
|
|
4
|
-
import { I as z } from "./image-rectangle
|
|
4
|
+
import { I as z } from "./image-rectangle-BGLYH2Gl.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
import { M, D as E, B as R } from "./bottom-sheet-
|
|
6
|
+
import { M, D as E, B as R } from "./bottom-sheet-DCwLmjiX.js";
|
|
7
7
|
const oe = j("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-D14wjCoC.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BottomSheetInput,
|
|
4
4
|
n as CheckboxInput,
|