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