@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.
Files changed (33) hide show
  1. package/dist/js/{bottom-sheet-input-1C3Up2xF.js → bottom-sheet-input-BIbHW5ME.js} +255 -244
  2. package/dist/js/{bottom-sheet-CQw_O-4W.js → bottom-sheet-tOKkkgJA.js} +169 -153
  3. package/dist/js/forms/index.js +1 -1
  4. package/dist/js/{image-rectangle--Sy82Ff9.js → image-rectangle-C1zMt0DR.js} +319 -199
  5. package/dist/js/index.js +68 -64
  6. package/dist/js/layouts/index.js +8 -6
  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 +17 -15
  10. package/dist/js/{tabs-CoNG51E1.js → tabs-CtPlBMP4.js} +1 -1
  11. package/dist/js/{tooltip-BbTHXz6h.js → tooltip-C_riAXZP.js} +16 -16
  12. package/dist/js/top-bar-BqLv8_hy.js +731 -0
  13. package/dist/types/forms/drawer-input/types.d.ts +1 -1
  14. package/dist/types/layouts/badge-group/badge-group.d.ts +27 -0
  15. package/dist/types/layouts/badge-group/index.d.ts +2 -0
  16. package/dist/types/layouts/badge-group/types.d.ts +32 -0
  17. package/dist/types/layouts/filter-chip-group/filter-chip-group.d.ts +27 -0
  18. package/dist/types/layouts/filter-chip-group/index.d.ts +2 -0
  19. package/dist/types/layouts/filter-chip-group/types.d.ts +32 -0
  20. package/dist/types/layouts/index.d.ts +2 -0
  21. package/dist/types/overlays/bottom-sheet/types.d.ts +4 -0
  22. package/dist/types/overlays/drawer/types.d.ts +5 -13
  23. package/dist/types/overlays/modal/types.d.ts +14 -4
  24. package/dist/types/primitive/card/card.d.ts +24 -0
  25. package/dist/types/primitive/card/index.d.ts +2 -0
  26. package/dist/types/primitive/card/types.d.ts +39 -0
  27. package/dist/types/primitive/filter-chip/filter-chip.d.ts +3 -0
  28. package/dist/types/primitive/filter-chip/index.d.ts +2 -0
  29. package/dist/types/primitive/filter-chip/types.d.ts +35 -0
  30. package/dist/types/primitive/index.d.ts +2 -0
  31. package/dist/utils/enforce-subpath-import.js +4 -0
  32. package/package.json +1 -1
  33. 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, B as p, a as u, F as l, P as i, b as I, c, S, T as m } from "./top-bar-BjE0FiE8.js";
3
- import { B as g, C as d, b as T, a as x, D as b, k as f, E as P, M as h, P as k, R as C, d as M, c as A, S as D, e as L, j as R, i as w, h as F, f as j, T as v, g as y } from "./bottom-sheet-input-1C3Up2xF.js";
4
- import { B as N, D as q, M as G } from "./bottom-sheet-CQw_O-4W.js";
5
- import { M as z, T as J } from "./tooltip-BbTHXz6h.js";
6
- import { A as O, a as Q, b as U, B as V, m as W, c as X, d as Y, e as Z, f as _, C as $, g as aa, D as ea, I as sa, j as ta, l as ra, k as oa, N as na, T as pa, h as ua, i as la } from "./image-rectangle--Sy82Ff9.js";
7
- import { S as Ia } from "./snackbar-DH8jCh2V.js";
8
- import { B as Sa, T as ma } from "./tabs-CoNG51E1.js";
9
- import { S as ga, u as da } from "./use-snackbars-B0MaRlg1.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";
10
10
  export {
11
- O as Alert,
12
- Q as Anchor,
11
+ U as Alert,
12
+ V as Anchor,
13
13
  n as AppBar,
14
- U as Avatar,
15
- V as Badge,
16
- W as BaseImage,
17
- p as BottomBar,
18
- N as BottomSheet,
19
- g as BottomSheetInput,
20
- X as Brand,
21
- Sa as Breadcrumbs,
22
- Y as Button,
23
- Z as ButtonFloat,
24
- u as ButtonGroup,
25
- _ as ButtonIcon,
26
- $ as Calculator,
27
- aa as Calendar,
28
- d as CheckboxInput,
29
- T as ChipMultipleInput,
30
- x as ChipSingleInput,
31
- b as DateSinglePickerInput,
32
- ea as DescriptionList,
33
- q as Drawer,
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
- l as FormLayout,
37
- sa as Icon,
38
- ta as ImageCircle,
39
- ra as ImageRectangle,
40
- oa as ImageSquare,
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
- z as Menu,
43
- G as Modal,
44
- h as ModalInput,
45
- na as NoResults,
46
- i as PageContent,
47
- I as PageHeader,
48
- c as PageLayout,
49
- k as PriceInput,
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
- C as RadioInput,
52
- M as SearchInput,
53
- A as SegmentMultipleInput,
54
- D as SegmentSingleInput,
55
- L as SelectInput,
56
- R as SelectableMultipleInput,
57
- w as SelectableSingleInput,
58
- S as SideBar,
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
- Ia as Snackbar,
61
- ga as SnackbarsProvider,
62
- F as SwitchInput,
63
- pa as Table,
64
- ma as Tabs,
65
- ua as Text,
66
- j as TextAreaInput,
67
- v as TextInput,
68
- la as Tile,
69
- y as TimePickerInput,
70
- J as Tooltip,
71
- m as TopBar,
72
- da as useSnackbars
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
  };
@@ -1,12 +1,14 @@
1
- import { A as r, B as s, a as t, F as e, P as B, b as p, c as u, S as P, T as g } from "../top-bar-BjE0FiE8.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-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
- e as FormLayout,
7
- B as PageContent,
8
- p as PageHeader,
9
- u as PageLayout,
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
- g as TopBar
13
+ i as TopBar
12
14
  };
@@ -1,4 +1,4 @@
1
- import { B as s, T as b } from "../tabs-CoNG51E1.js";
1
+ import { B as s, T as b } from "../tabs-CtPlBMP4.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-CQw_O-4W.js";
2
- import { M, T as m } from "../tooltip-BbTHXz6h.js";
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 o, B as r, m as l, c as n, d as c, e as g, f as m, C as B, g as I, D as i, I as u, j as d, l as A, k as C, N as T, T as b, h as f, i as p } from "../image-rectangle--Sy82Ff9.js";
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
- o as Avatar,
7
- r as Badge,
6
+ r as Avatar,
7
+ o as Badge,
8
8
  l as BaseImage,
9
9
  n as Brand,
10
10
  c as Button,
11
- g as ButtonFloat,
12
- m as ButtonIcon,
13
- B as Calculator,
14
- I as Calendar,
15
- i as DescriptionList,
16
- u as Icon,
17
- d as ImageCircle,
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
- C as ImageSquare,
20
- T as NoResults,
21
+ T as ImageSquare,
22
+ b as NoResults,
21
23
  S as Snackbar,
22
- b as Table,
23
- f as Text,
24
- p as Tile
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--Sy82Ff9.js";
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 { h as j } from "./image-rectangle--Sy82Ff9.js";
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(s) {
27
- !e.current?.contains(s.target) && !r.current?.contains(s.target) && o();
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 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: [
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: s,
51
+ ref: i,
52
52
  "aria-haspopup": "menu",
53
53
  "aria-expanded": t,
54
- "aria-controls": i,
54
+ "aria-controls": s,
55
55
  tabIndex: 0
56
56
  }),
57
57
  /* @__PURE__ */ u.jsx(
58
58
  "div",
59
59
  {
60
- id: i,
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(), s = window.innerWidth, a = window.innerHeight, i = {
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: s - n.right
81
+ right: i - n.right
82
82
  };
83
- i.bottom > 64 ? o("bottom") : i.top > 64 ? o("top") : i.right > 128 ? o("right") : o("left");
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
- ...s
108
+ ...i
109
109
  }) => {
110
- const a = v(), [i, d] = g(!1), l = c(null), p = () => {
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
- ...s
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
- !i && "opacity-0 pointer-events-none"
136
+ !s && "opacity-0 pointer-events-none"
137
137
  ),
138
138
  role: "tooltip",
139
- "aria-hidden": !i,
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
  )