@dimasbaguspm/versaur 0.0.27 → 0.0.29

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