@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
package/dist/js/index.js
CHANGED
|
@@ -1,73 +1,75 @@
|
|
|
1
1
|
import { L as s, P as t, S as r } from "./skeleton-BNZyaRjo.js";
|
|
2
|
-
import { A as n,
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as N, D as q, M as
|
|
5
|
-
import { M as
|
|
6
|
-
import { A as
|
|
7
|
-
import { S as
|
|
8
|
-
import { B as
|
|
9
|
-
import { S as
|
|
2
|
+
import { A as n, a as p, B as u, b as l, F as i, P as I, c, d as S, S as m, T as B } from "./top-bar-BA88ij4M.js";
|
|
3
|
+
import { B as d, C as T, b as x, a as b, D as f, k as P, E as h, M as C, P as k, R as M, d as A, c as D, S as L, e as R, j as w, i as F, h as j, f as v, T as y, g as E } from "./bottom-sheet-input-D14wjCoC.js";
|
|
4
|
+
import { B as N, D as q, M as H } from "./bottom-sheet-DCwLmjiX.js";
|
|
5
|
+
import { M as J, T as K } from "./tooltip-DlbAOUeP.js";
|
|
6
|
+
import { A as Q, a as U, b as V, B as W, n as X, c as Y, d as Z, e as _, f as $, C as aa, g as ea, h as sa, D as ta, I as ra, k as oa, m as na, l as pa, N as ua, T as la, i as ia, j as Ia } from "./image-rectangle-BGLYH2Gl.js";
|
|
7
|
+
import { S as Sa } from "./snackbar-DH8jCh2V.js";
|
|
8
|
+
import { B as Ba, T as ga } from "./tabs-C0hcpxNk.js";
|
|
9
|
+
import { S as Ta, u as xa } from "./use-snackbars-B0MaRlg1.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Q as Alert,
|
|
12
|
+
U as Anchor,
|
|
13
13
|
n as AppBar,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
V as Avatar,
|
|
15
|
+
W as Badge,
|
|
16
|
+
p as BadgeGroup,
|
|
17
|
+
X as BaseImage,
|
|
18
|
+
u as BottomBar,
|
|
18
19
|
N as BottomSheet,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
T as
|
|
30
|
-
x as
|
|
31
|
-
b as
|
|
32
|
-
|
|
20
|
+
d as BottomSheetInput,
|
|
21
|
+
Y as Brand,
|
|
22
|
+
Ba as Breadcrumbs,
|
|
23
|
+
Z as Button,
|
|
24
|
+
_ as ButtonFloat,
|
|
25
|
+
l as ButtonGroup,
|
|
26
|
+
$ as ButtonIcon,
|
|
27
|
+
aa as Calculator,
|
|
28
|
+
ea as Calendar,
|
|
29
|
+
sa as Card,
|
|
30
|
+
T as CheckboxInput,
|
|
31
|
+
x as ChipMultipleInput,
|
|
32
|
+
b as ChipSingleInput,
|
|
33
|
+
f as DateSinglePickerInput,
|
|
34
|
+
ta as DescriptionList,
|
|
33
35
|
q as Drawer,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
P as DrawerInput,
|
|
37
|
+
h as EmailInput,
|
|
38
|
+
i as FormLayout,
|
|
39
|
+
ra as Icon,
|
|
40
|
+
oa as ImageCircle,
|
|
41
|
+
na as ImageRectangle,
|
|
42
|
+
pa as ImageSquare,
|
|
41
43
|
s as LoadingIndicator,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
J as Menu,
|
|
45
|
+
H as Modal,
|
|
46
|
+
C as ModalInput,
|
|
47
|
+
ua as NoResults,
|
|
48
|
+
I as PageContent,
|
|
49
|
+
c as PageHeader,
|
|
50
|
+
S as PageLayout,
|
|
49
51
|
k as PriceInput,
|
|
50
52
|
t as ProgressIndicator,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
M as RadioInput,
|
|
54
|
+
A as SearchInput,
|
|
55
|
+
D as SegmentMultipleInput,
|
|
56
|
+
L as SegmentSingleInput,
|
|
57
|
+
R as SelectInput,
|
|
58
|
+
w as SelectableMultipleInput,
|
|
59
|
+
F as SelectableSingleInput,
|
|
60
|
+
m as SideBar,
|
|
59
61
|
r as Skeleton,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
Sa as Snackbar,
|
|
63
|
+
Ta as SnackbarsProvider,
|
|
64
|
+
j as SwitchInput,
|
|
65
|
+
la as Table,
|
|
66
|
+
ga as Tabs,
|
|
67
|
+
ia as Text,
|
|
68
|
+
v as TextAreaInput,
|
|
69
|
+
y as TextInput,
|
|
70
|
+
Ia as Tile,
|
|
71
|
+
E as TimePickerInput,
|
|
72
|
+
K as Tooltip,
|
|
73
|
+
B as TopBar,
|
|
74
|
+
xa as useSnackbars
|
|
73
75
|
};
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { A as r,
|
|
1
|
+
import { A as r, a as s, B as e, b as t, F as B, P as p, c as u, d, S as g, T as P } from "../top-bar-BA88ij4M.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppBar,
|
|
4
|
-
s as
|
|
4
|
+
s as BadgeGroup,
|
|
5
|
+
e as BottomBar,
|
|
5
6
|
t as ButtonGroup,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
B as FormLayout,
|
|
8
|
+
p as PageContent,
|
|
9
|
+
u as PageHeader,
|
|
10
|
+
d as PageLayout,
|
|
11
|
+
g as SideBar,
|
|
12
|
+
P as TopBar
|
|
12
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e, D as r, M as t } from "../bottom-sheet-
|
|
2
|
-
import { M, T as m } from "../tooltip-
|
|
1
|
+
import { B as e, D as r, M as t } from "../bottom-sheet-DCwLmjiX.js";
|
|
2
|
+
import { M, T as m } from "../tooltip-DlbAOUeP.js";
|
|
3
3
|
export {
|
|
4
4
|
e as BottomSheet,
|
|
5
5
|
r as Drawer,
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { A as e, a as t, b as
|
|
2
|
-
import { S } from "../snackbar-DH8jCh2V.js";
|
|
1
|
+
import { A as e, a as t, b as r, B as o, n, c as l, d as c, e as g, f as m, C as B, g as I, h as i, D as u, I as d, k as C, m as A, l as T, N as b, T as f, i as p, j as x } from "../image-rectangle-BGLYH2Gl.js";
|
|
2
|
+
import { S as h } from "../snackbar-DH8jCh2V.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Alert,
|
|
5
5
|
t as Anchor,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
r as Avatar,
|
|
7
|
+
o as Badge,
|
|
8
|
+
n as BaseImage,
|
|
9
|
+
l as Brand,
|
|
10
10
|
c as Button,
|
|
11
11
|
g as ButtonFloat,
|
|
12
12
|
m as ButtonIcon,
|
|
13
13
|
B as Calculator,
|
|
14
14
|
I as Calendar,
|
|
15
|
-
i as
|
|
16
|
-
u as
|
|
17
|
-
d as
|
|
15
|
+
i as Card,
|
|
16
|
+
u as DescriptionList,
|
|
17
|
+
d as Icon,
|
|
18
|
+
C as ImageCircle,
|
|
18
19
|
A as ImageRectangle,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
T as ImageSquare,
|
|
21
|
+
b as NoResults,
|
|
22
|
+
h as Snackbar,
|
|
23
|
+
f as Table,
|
|
24
|
+
p as Text,
|
|
25
|
+
x as Tile
|
|
25
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as d, j as s, a as u } from "./index-DOdDlCoL.js";
|
|
2
2
|
import { forwardRef as f, createContext as x, useContext as g, useState as p, useLayoutEffect as y, useRef as h } from "react";
|
|
3
|
-
import { I as w } from "./image-rectangle
|
|
3
|
+
import { I as w } from "./image-rectangle-BGLYH2Gl.js";
|
|
4
4
|
import "./snackbar-DH8jCh2V.js";
|
|
5
5
|
import { ChevronRight as T } from "lucide-react";
|
|
6
6
|
const j = d(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as h, j as u, a as b } from "./index-DOdDlCoL.js";
|
|
2
2
|
import { useEffect as m, useRef as c, useId as v, cloneElement as x, useState as g } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { i as j } from "./image-rectangle-BGLYH2Gl.js";
|
|
4
4
|
const I = h(
|
|
5
5
|
"absolute z-30 min-w-40 bg-background rounded-lg border border-border transition-all duration-200 ease-out will-change-transform",
|
|
6
6
|
{
|
|
@@ -23,8 +23,8 @@ const I = h(
|
|
|
23
23
|
function E(t, e, r, o) {
|
|
24
24
|
m(() => {
|
|
25
25
|
if (!t) return;
|
|
26
|
-
function n(
|
|
27
|
-
!e.current?.contains(
|
|
26
|
+
function n(i) {
|
|
27
|
+
!e.current?.contains(i.target) && !r.current?.contains(i.target) && o();
|
|
28
28
|
}
|
|
29
29
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
30
30
|
}, [t, o, e, r]);
|
|
@@ -44,20 +44,20 @@ const F = ({
|
|
|
44
44
|
content: o,
|
|
45
45
|
children: n
|
|
46
46
|
}) => {
|
|
47
|
-
const
|
|
48
|
-
return E(t, a,
|
|
47
|
+
const i = c(null), a = c(null), s = v();
|
|
48
|
+
return E(t, a, i, e), M(t, a), /* @__PURE__ */ u.jsxs("div", { className: "relative w-fit", children: [
|
|
49
49
|
x(n, {
|
|
50
50
|
// @ts-expect-error: ref is valid for button or forwardRef components
|
|
51
|
-
ref:
|
|
51
|
+
ref: i,
|
|
52
52
|
"aria-haspopup": "menu",
|
|
53
53
|
"aria-expanded": t,
|
|
54
|
-
"aria-controls":
|
|
54
|
+
"aria-controls": s,
|
|
55
55
|
tabIndex: 0
|
|
56
56
|
}),
|
|
57
57
|
/* @__PURE__ */ u.jsx(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
id:
|
|
60
|
+
id: s,
|
|
61
61
|
ref: a,
|
|
62
62
|
className: b(I({ size: r, open: t })),
|
|
63
63
|
role: "menu",
|
|
@@ -74,13 +74,13 @@ function z(t = "auto") {
|
|
|
74
74
|
o(t === "auto" ? "bottom" : t);
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const n = e.current.getBoundingClientRect(),
|
|
77
|
+
const n = e.current.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight, s = {
|
|
78
78
|
top: n.top,
|
|
79
79
|
bottom: a - n.bottom,
|
|
80
80
|
left: n.left,
|
|
81
|
-
right:
|
|
81
|
+
right: i - n.right
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
s.bottom > 64 ? o("bottom") : s.top > 64 ? o("top") : s.right > 128 ? o("right") : o("left");
|
|
84
84
|
}, [t, e]), { position: r, ref: e };
|
|
85
85
|
}
|
|
86
86
|
const P = h(
|
|
@@ -105,9 +105,9 @@ const P = h(
|
|
|
105
105
|
position: r = "auto",
|
|
106
106
|
popoverClassName: o,
|
|
107
107
|
delay: n,
|
|
108
|
-
...
|
|
108
|
+
...i
|
|
109
109
|
}) => {
|
|
110
|
-
const a = v(), [
|
|
110
|
+
const a = v(), [s, d] = g(!1), l = c(null), p = () => {
|
|
111
111
|
n ? l.current = setTimeout(() => d(!0), n) : d(!0);
|
|
112
112
|
}, f = () => {
|
|
113
113
|
l.current && clearTimeout(l.current), d(!1);
|
|
@@ -122,7 +122,7 @@ const P = h(
|
|
|
122
122
|
onFocus: p,
|
|
123
123
|
onMouseLeave: f,
|
|
124
124
|
onBlur: f,
|
|
125
|
-
...
|
|
125
|
+
...i
|
|
126
126
|
}, { ref: y, position: T } = z(r);
|
|
127
127
|
return /* @__PURE__ */ u.jsxs("div", { className: "relative w-fit", ref: y, children: [
|
|
128
128
|
x(t, w),
|
|
@@ -133,10 +133,10 @@ const P = h(
|
|
|
133
133
|
className: b(
|
|
134
134
|
P({ position: T }),
|
|
135
135
|
o,
|
|
136
|
-
!
|
|
136
|
+
!s && "opacity-0 pointer-events-none"
|
|
137
137
|
),
|
|
138
138
|
role: "tooltip",
|
|
139
|
-
"aria-hidden": !
|
|
139
|
+
"aria-hidden": !s,
|
|
140
140
|
children: /* @__PURE__ */ u.jsx(j, { as: "p", fontSize: "xs", fontWeight: "normal", color: "black", children: e })
|
|
141
141
|
}
|
|
142
142
|
)
|