@dimasbaguspm/versaur 0.0.28 → 0.0.30
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-tOKkkgJA.js → bottom-sheet-DUcwK0Yd.js} +1 -1
- package/dist/js/{bottom-sheet-input-BIbHW5ME.js → bottom-sheet-input-Bzx0ecmU.js} +629 -722
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-C1zMt0DR.js → image-rectangle-BMEGIW-6.js} +354 -256
- package/dist/js/index.js +43 -41
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +25 -23
- package/dist/js/{tabs-CtPlBMP4.js → tabs-CIWr5hdb.js} +1 -1
- package/dist/js/{tooltip-C_riAXZP.js → tooltip-IazSAgsg.js} +16 -16
- package/dist/js/{top-bar-BqLv8_hy.js → top-bar-BdmaTpTp.js} +179 -166
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +2 -3
- package/dist/types/forms/chip-multiple-input/types.d.ts +1 -21
- package/dist/types/forms/chip-single-input/chip-single-input.d.ts +2 -3
- package/dist/types/forms/chip-single-input/types.d.ts +1 -9
- package/dist/types/layouts/page-header/page-header.atoms.d.ts +2 -1
- package/dist/types/layouts/page-header/page-header.d.ts +4 -0
- package/dist/types/layouts/page-header/types.d.ts +6 -0
- package/dist/types/primitive/attribute/attribute.d.ts +10 -0
- package/dist/types/primitive/attribute/index.d.ts +2 -0
- package/dist/types/primitive/attribute/types.d.ts +14 -0
- package/dist/types/primitive/attribute-list/attribute.atoms.d.ts +5 -0
- package/dist/types/primitive/attribute-list/attribute.d.ts +4 -0
- package/dist/types/primitive/attribute-list/index.d.ts +2 -0
- package/dist/types/primitive/attribute-list/types.d.ts +24 -0
- package/dist/types/primitive/card/card.d.ts +1 -1
- package/dist/types/primitive/card/types.d.ts +7 -2
- package/dist/types/primitive/index.d.ts +2 -0
- package/dist/utils/enforce-subpath-import.js +2 -0
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -1,58 +1,60 @@
|
|
|
1
|
-
import { L 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-
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as q, D as H, M as z } from "./bottom-sheet-
|
|
5
|
-
import { M as K, T as O } from "./tooltip-
|
|
6
|
-
import { A as U, a as V, b as W,
|
|
7
|
-
import { S as
|
|
8
|
-
import { B as
|
|
9
|
-
import { S as
|
|
1
|
+
import { L as t, P as s, S as r } from "./skeleton-BNZyaRjo.js";
|
|
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-BdmaTpTp.js";
|
|
3
|
+
import { B as b, C as T, b as x, a as h, D as C, k as f, E as P, M as k, P as A, R as M, 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-Bzx0ecmU.js";
|
|
4
|
+
import { B as q, D as H, M as z } from "./bottom-sheet-DUcwK0Yd.js";
|
|
5
|
+
import { M as K, T as O } from "./tooltip-IazSAgsg.js";
|
|
6
|
+
import { A as U, a as V, b as W, c as X, d as Y, B as Z, p as _, e as $, f as aa, g as ea, h as ta, C as sa, i as ra, j as oa, D as na, F as pa, I as ua, m as ia, o as la, n as Ia, N as ca, T as Sa, k as ma, l as Ba } from "./image-rectangle-BMEGIW-6.js";
|
|
7
|
+
import { S as da } from "./snackbar-DH8jCh2V.js";
|
|
8
|
+
import { B as Ta, T as xa } from "./tabs-CIWr5hdb.js";
|
|
9
|
+
import { S as Ca, u as fa } from "./use-snackbars-B0MaRlg1.js";
|
|
10
10
|
export {
|
|
11
11
|
U as Alert,
|
|
12
12
|
V as Anchor,
|
|
13
13
|
n as AppBar,
|
|
14
|
-
W as
|
|
15
|
-
X as
|
|
14
|
+
W as Attribute,
|
|
15
|
+
X as AttributeList,
|
|
16
|
+
Y as Avatar,
|
|
17
|
+
Z as Badge,
|
|
16
18
|
p as BadgeGroup,
|
|
17
|
-
|
|
19
|
+
_ as BaseImage,
|
|
18
20
|
u as BottomBar,
|
|
19
21
|
q as BottomSheet,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
b as BottomSheetInput,
|
|
23
|
+
$ as Brand,
|
|
24
|
+
Ta as Breadcrumbs,
|
|
25
|
+
aa as Button,
|
|
26
|
+
ea as ButtonFloat,
|
|
25
27
|
i as ButtonGroup,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
ta as ButtonIcon,
|
|
29
|
+
sa as Calculator,
|
|
30
|
+
ra as Calendar,
|
|
31
|
+
oa as Card,
|
|
32
|
+
T as CheckboxInput,
|
|
33
|
+
x as ChipMultipleInput,
|
|
32
34
|
h as ChipSingleInput,
|
|
33
35
|
C as DateSinglePickerInput,
|
|
34
|
-
|
|
36
|
+
na as DescriptionList,
|
|
35
37
|
H as Drawer,
|
|
36
38
|
f as DrawerInput,
|
|
37
39
|
P as EmailInput,
|
|
38
|
-
|
|
40
|
+
pa as FilterChip,
|
|
39
41
|
l as FilterChipGroup,
|
|
40
42
|
I as FormLayout,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
ua as Icon,
|
|
44
|
+
ia as ImageCircle,
|
|
45
|
+
la as ImageRectangle,
|
|
46
|
+
Ia as ImageSquare,
|
|
47
|
+
t as LoadingIndicator,
|
|
46
48
|
K as Menu,
|
|
47
49
|
z as Modal,
|
|
48
50
|
k as ModalInput,
|
|
49
|
-
|
|
51
|
+
ca as NoResults,
|
|
50
52
|
c as PageContent,
|
|
51
53
|
S as PageHeader,
|
|
52
54
|
m as PageLayout,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
A as PriceInput,
|
|
56
|
+
s as ProgressIndicator,
|
|
57
|
+
M as RadioInput,
|
|
56
58
|
D as SearchInput,
|
|
57
59
|
F as SegmentMultipleInput,
|
|
58
60
|
L as SegmentSingleInput,
|
|
@@ -61,17 +63,17 @@ export {
|
|
|
61
63
|
G as SelectableSingleInput,
|
|
62
64
|
B as SideBar,
|
|
63
65
|
r as Skeleton,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
da as Snackbar,
|
|
67
|
+
Ca as SnackbarsProvider,
|
|
66
68
|
j as SwitchInput,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
Sa as Table,
|
|
70
|
+
xa as Tabs,
|
|
71
|
+
ma as Text,
|
|
70
72
|
v as TextAreaInput,
|
|
71
73
|
y as TextInput,
|
|
72
|
-
|
|
74
|
+
Ba as Tile,
|
|
73
75
|
E as TimePickerInput,
|
|
74
76
|
O as Tooltip,
|
|
75
77
|
g as TopBar,
|
|
76
|
-
|
|
78
|
+
fa as useSnackbars
|
|
77
79
|
};
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-BdmaTpTp.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppBar,
|
|
4
4
|
e as BadgeGroup,
|
|
@@ -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-DUcwK0Yd.js";
|
|
2
|
+
import { M, T as m } from "../tooltip-IazSAgsg.js";
|
|
3
3
|
export {
|
|
4
4
|
e as BottomSheet,
|
|
5
5
|
r as Drawer,
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { S } from "../snackbar-DH8jCh2V.js";
|
|
1
|
+
import { A as t, a as e, b as r, c as o, d as l, B as n, p as i, e as c, f as u, g, h as m, C as B, i as I, j as A, D as C, F as b, I as d, m as p, o as T, n as f, N as h, T as x, k as F, l as S } from "../image-rectangle-BMEGIW-6.js";
|
|
2
|
+
import { S as D } from "../snackbar-DH8jCh2V.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
r as
|
|
7
|
-
o as
|
|
8
|
-
l as
|
|
9
|
-
n as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
t as Alert,
|
|
5
|
+
e as Anchor,
|
|
6
|
+
r as Attribute,
|
|
7
|
+
o as AttributeList,
|
|
8
|
+
l as Avatar,
|
|
9
|
+
n as Badge,
|
|
10
|
+
i as BaseImage,
|
|
11
|
+
c as Brand,
|
|
12
|
+
u as Button,
|
|
13
|
+
g as ButtonFloat,
|
|
14
|
+
m as ButtonIcon,
|
|
15
|
+
B as Calculator,
|
|
16
|
+
I as Calendar,
|
|
17
|
+
A as Card,
|
|
18
|
+
C as DescriptionList,
|
|
19
|
+
b as FilterChip,
|
|
18
20
|
d as Icon,
|
|
19
21
|
p as ImageCircle,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
T as ImageRectangle,
|
|
23
|
+
f as ImageSquare,
|
|
24
|
+
h as NoResults,
|
|
25
|
+
D as Snackbar,
|
|
26
|
+
x as Table,
|
|
27
|
+
F as Text,
|
|
28
|
+
S as Tile
|
|
27
29
|
};
|
|
@@ -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-BMEGIW-6.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 { k as j } from "./image-rectangle-BMEGIW-6.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(s) {
|
|
27
|
+
!e.current?.contains(s.target) && !r.current?.contains(s.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 s = c(null), a = c(null), i = v();
|
|
48
|
+
return E(t, a, s, 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: s,
|
|
52
52
|
"aria-haspopup": "menu",
|
|
53
53
|
"aria-expanded": t,
|
|
54
|
-
"aria-controls":
|
|
54
|
+
"aria-controls": i,
|
|
55
55
|
tabIndex: 0
|
|
56
56
|
}),
|
|
57
57
|
/* @__PURE__ */ u.jsx(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
id:
|
|
60
|
+
id: i,
|
|
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(), s = window.innerWidth, a = window.innerHeight, i = {
|
|
78
78
|
top: n.top,
|
|
79
79
|
bottom: a - n.bottom,
|
|
80
80
|
left: n.left,
|
|
81
|
-
right:
|
|
81
|
+
right: s - n.right
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
i.bottom > 64 ? o("bottom") : i.top > 64 ? o("top") : i.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
|
+
...s
|
|
109
109
|
}) => {
|
|
110
|
-
const a = v(), [
|
|
110
|
+
const a = v(), [i, 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
|
+
...s
|
|
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
|
+
!i && "opacity-0 pointer-events-none"
|
|
137
137
|
),
|
|
138
138
|
role: "tooltip",
|
|
139
|
-
"aria-hidden": !
|
|
139
|
+
"aria-hidden": !i,
|
|
140
140
|
children: /* @__PURE__ */ u.jsx(j, { as: "p", fontSize: "xs", fontWeight: "normal", color: "black", children: e })
|
|
141
141
|
}
|
|
142
142
|
)
|