@dimasbaguspm/versaur 0.0.26 → 0.0.28
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-input-1C3Up2xF.js → bottom-sheet-input-BIbHW5ME.js} +255 -244
- package/dist/js/{bottom-sheet-CQw_O-4W.js → bottom-sheet-tOKkkgJA.js} +169 -153
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle--Sy82Ff9.js → image-rectangle-C1zMt0DR.js} +319 -199
- package/dist/js/index.js +68 -64
- package/dist/js/layouts/index.js +8 -6
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +17 -15
- package/dist/js/{tabs-CoNG51E1.js → tabs-CtPlBMP4.js} +1 -1
- package/dist/js/{tooltip-BbTHXz6h.js → tooltip-C_riAXZP.js} +16 -16
- package/dist/js/top-bar-BqLv8_hy.js +731 -0
- package/dist/types/forms/drawer-input/types.d.ts +1 -1
- 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/filter-chip-group/filter-chip-group.d.ts +27 -0
- package/dist/types/layouts/filter-chip-group/index.d.ts +2 -0
- package/dist/types/layouts/filter-chip-group/types.d.ts +32 -0
- package/dist/types/layouts/index.d.ts +2 -0
- package/dist/types/overlays/bottom-sheet/types.d.ts +4 -0
- package/dist/types/overlays/drawer/types.d.ts +5 -13
- package/dist/types/overlays/modal/types.d.ts +14 -4
- 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/filter-chip/filter-chip.d.ts +3 -0
- package/dist/types/primitive/filter-chip/index.d.ts +2 -0
- package/dist/types/primitive/filter-chip/types.d.ts +35 -0
- package/dist/types/primitive/index.d.ts +2 -0
- package/dist/utils/enforce-subpath-import.js +4 -0
- package/package.json +1 -1
- package/dist/js/top-bar-BjE0FiE8.js +0 -607
package/dist/js/index.js
CHANGED
|
@@ -1,73 +1,77 @@
|
|
|
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
|
|
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 i, F as l, e as I, P as c, c as S, d as m, S as B, T as g } from "./top-bar-BqLv8_hy.js";
|
|
3
|
+
import { B as T, C as x, b, a as h, D as C, k as f, E as P, M as k, P as M, R as A, d as D, c as F, S as L, e as R, j as w, i as G, h as j, f as v, T as y, g as E } from "./bottom-sheet-input-BIbHW5ME.js";
|
|
4
|
+
import { B as q, D as H, M as z } from "./bottom-sheet-tOKkkgJA.js";
|
|
5
|
+
import { M as K, T as O } from "./tooltip-C_riAXZP.js";
|
|
6
|
+
import { A as U, a as V, b as W, B as X, n as Y, c as Z, d as _, e as $, f as aa, C as ea, g as sa, h as ta, D as ra, F as oa, I as na, k as pa, m as ua, l as ia, N as la, T as Ia, i as ca, j as Sa } from "./image-rectangle-C1zMt0DR.js";
|
|
7
|
+
import { S as Ba } from "./snackbar-DH8jCh2V.js";
|
|
8
|
+
import { B as da, T as Ta } from "./tabs-CtPlBMP4.js";
|
|
9
|
+
import { S as ba, u as ha } from "./use-snackbars-B0MaRlg1.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
U as Alert,
|
|
12
|
+
V as Anchor,
|
|
13
13
|
n as AppBar,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
x as
|
|
31
|
-
b as
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
W as Avatar,
|
|
15
|
+
X as Badge,
|
|
16
|
+
p as BadgeGroup,
|
|
17
|
+
Y as BaseImage,
|
|
18
|
+
u as BottomBar,
|
|
19
|
+
q as BottomSheet,
|
|
20
|
+
T as BottomSheetInput,
|
|
21
|
+
Z as Brand,
|
|
22
|
+
da as Breadcrumbs,
|
|
23
|
+
_ as Button,
|
|
24
|
+
$ as ButtonFloat,
|
|
25
|
+
i as ButtonGroup,
|
|
26
|
+
aa as ButtonIcon,
|
|
27
|
+
ea as Calculator,
|
|
28
|
+
sa as Calendar,
|
|
29
|
+
ta as Card,
|
|
30
|
+
x as CheckboxInput,
|
|
31
|
+
b as ChipMultipleInput,
|
|
32
|
+
h as ChipSingleInput,
|
|
33
|
+
C as DateSinglePickerInput,
|
|
34
|
+
ra as DescriptionList,
|
|
35
|
+
H as Drawer,
|
|
34
36
|
f as DrawerInput,
|
|
35
37
|
P as EmailInput,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
oa as FilterChip,
|
|
39
|
+
l as FilterChipGroup,
|
|
40
|
+
I as FormLayout,
|
|
41
|
+
na as Icon,
|
|
42
|
+
pa as ImageCircle,
|
|
43
|
+
ua as ImageRectangle,
|
|
44
|
+
ia as ImageSquare,
|
|
41
45
|
s as LoadingIndicator,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
K as Menu,
|
|
47
|
+
z as Modal,
|
|
48
|
+
k as ModalInput,
|
|
49
|
+
la as NoResults,
|
|
50
|
+
c as PageContent,
|
|
51
|
+
S as PageHeader,
|
|
52
|
+
m as PageLayout,
|
|
53
|
+
M as PriceInput,
|
|
50
54
|
t as ProgressIndicator,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
A as RadioInput,
|
|
56
|
+
D as SearchInput,
|
|
57
|
+
F as SegmentMultipleInput,
|
|
58
|
+
L as SegmentSingleInput,
|
|
59
|
+
R as SelectInput,
|
|
60
|
+
w as SelectableMultipleInput,
|
|
61
|
+
G as SelectableSingleInput,
|
|
62
|
+
B as SideBar,
|
|
59
63
|
r as Skeleton,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
Ba as Snackbar,
|
|
65
|
+
ba as SnackbarsProvider,
|
|
66
|
+
j as SwitchInput,
|
|
67
|
+
Ia as Table,
|
|
68
|
+
Ta as Tabs,
|
|
69
|
+
ca as Text,
|
|
70
|
+
v as TextAreaInput,
|
|
71
|
+
y as TextInput,
|
|
72
|
+
Sa as Tile,
|
|
73
|
+
E as TimePickerInput,
|
|
74
|
+
O as Tooltip,
|
|
75
|
+
g as TopBar,
|
|
76
|
+
ha as useSnackbars
|
|
73
77
|
};
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { A as r, B as s,
|
|
1
|
+
import { A as r, a as e, B as s, b as t, F as p, e as B, P as u, c as d, d as g, S as P, T as i } from "../top-bar-BqLv8_hy.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppBar,
|
|
4
|
+
e as BadgeGroup,
|
|
4
5
|
s as BottomBar,
|
|
5
6
|
t as ButtonGroup,
|
|
6
|
-
|
|
7
|
-
B as
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
p as FilterChipGroup,
|
|
8
|
+
B as FormLayout,
|
|
9
|
+
u as PageContent,
|
|
10
|
+
d as PageHeader,
|
|
11
|
+
g as PageLayout,
|
|
10
12
|
P as SideBar,
|
|
11
|
-
|
|
13
|
+
i as TopBar
|
|
12
14
|
};
|
|
@@ -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-tOKkkgJA.js";
|
|
2
|
+
import { M, T as m } from "../tooltip-C_riAXZP.js";
|
|
3
3
|
export {
|
|
4
4
|
e as BottomSheet,
|
|
5
5
|
r as Drawer,
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { A as e, a as t, b as
|
|
1
|
+
import { A as e, a as t, b as r, B as o, n as l, c as n, d as c, e as i, f as g, C as m, g as B, h as I, D as u, F as C, I as d, k as p, m as A, l as T, N as b, T as f, i as h, j as x } from "../image-rectangle-C1zMt0DR.js";
|
|
2
2
|
import { S } from "../snackbar-DH8jCh2V.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Alert,
|
|
5
5
|
t as Anchor,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
r as Avatar,
|
|
7
|
+
o as Badge,
|
|
8
8
|
l as BaseImage,
|
|
9
9
|
n as Brand,
|
|
10
10
|
c as Button,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
u as
|
|
17
|
-
|
|
11
|
+
i as ButtonFloat,
|
|
12
|
+
g as ButtonIcon,
|
|
13
|
+
m as Calculator,
|
|
14
|
+
B as Calendar,
|
|
15
|
+
I as Card,
|
|
16
|
+
u as DescriptionList,
|
|
17
|
+
C as FilterChip,
|
|
18
|
+
d as Icon,
|
|
19
|
+
p as ImageCircle,
|
|
18
20
|
A as ImageRectangle,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
T as ImageSquare,
|
|
22
|
+
b as NoResults,
|
|
21
23
|
S as Snackbar,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
f as Table,
|
|
25
|
+
h as Text,
|
|
26
|
+
x as Tile
|
|
25
27
|
};
|
|
@@ -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-C1zMt0DR.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-C1zMt0DR.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
|
)
|