@dimasbaguspm/versaur 0.0.48 → 0.0.50

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 (76) hide show
  1. package/dist/assets/styles.css +14 -6
  2. package/dist/js/forms/index.js +12 -14
  3. package/dist/js/image-rectangle-K9jmTTED.js +2607 -0
  4. package/dist/js/index.js +66 -68
  5. package/dist/js/layouts/index.js +8 -9
  6. package/dist/js/navigation/index.js +1 -1
  7. package/dist/js/overlays/index.js +2 -2
  8. package/dist/js/primitive/index.js +21 -20
  9. package/dist/js/tabs-I4n6MLAv.js +210 -0
  10. package/dist/js/time-picker-input-BCTs7K8s.js +1562 -0
  11. package/dist/js/{tooltip-D6fUigp2.js → tooltip-nZW9TUz3.js} +293 -297
  12. package/dist/js/{top-bar-Dx0JVXms.js → top-bar-BMw3gFYA.js} +292 -247
  13. package/dist/types/forms/checkbox-input/checkbox-input.d.ts +1 -1
  14. package/dist/types/forms/checkbox-input/types.d.ts +11 -14
  15. package/dist/types/forms/chip-multiple-input/chip-multiple-input.atoms.d.ts +2 -2
  16. package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +1 -1
  17. package/dist/types/forms/chip-multiple-input/types.d.ts +15 -14
  18. package/dist/types/forms/chip-single-input/chip-single-input.atoms.d.ts +1 -1
  19. package/dist/types/forms/chip-single-input/chip-single-input.d.ts +1 -1
  20. package/dist/types/forms/chip-single-input/types.d.ts +15 -14
  21. package/dist/types/forms/date-single-picker-input/types.d.ts +10 -0
  22. package/dist/types/forms/index.d.ts +0 -2
  23. package/dist/types/forms/pin-field/pin-field.d.ts +2 -2
  24. package/dist/types/forms/pin-field/types.d.ts +16 -28
  25. package/dist/types/forms/select-input/index.d.ts +1 -1
  26. package/dist/types/forms/select-input/select-input.atoms.d.ts +16 -0
  27. package/dist/types/forms/select-input/select-input.d.ts +4 -7
  28. package/dist/types/forms/select-input/types.d.ts +32 -9
  29. package/dist/types/forms/selectable-multiple-input/selectable-multiple-input.d.ts +1 -1
  30. package/dist/types/forms/selectable-multiple-input/types.d.ts +20 -3
  31. package/dist/types/forms/selectable-single-input/selectable-single-input.d.ts +1 -1
  32. package/dist/types/forms/selectable-single-input/types.d.ts +20 -3
  33. package/dist/types/forms/switch-input/switch-input.atoms.d.ts +7 -8
  34. package/dist/types/forms/switch-input/switch-input.d.ts +5 -1
  35. package/dist/types/forms/switch-input/types.d.ts +10 -33
  36. package/dist/types/forms/text-input/text-input.d.ts +2 -2
  37. package/dist/types/forms/text-input/types.d.ts +0 -7
  38. package/dist/types/forms/textarea-input/textarea-input.d.ts +3 -3
  39. package/dist/types/forms/textarea-input/types.d.ts +33 -18
  40. package/dist/types/layouts/index.d.ts +1 -2
  41. package/dist/types/layouts/page-content/index.d.ts +1 -1
  42. package/dist/types/layouts/page-content/page-content.d.ts +5 -11
  43. package/dist/types/layouts/page-content/types.d.ts +29 -9
  44. package/dist/types/layouts/page-header/types.d.ts +13 -0
  45. package/dist/types/navigation/tabs/tabs.atoms.d.ts +3 -2
  46. package/dist/types/navigation/tabs/types.d.ts +5 -13
  47. package/dist/types/navigation/tabs/use-tab-indicator.d.ts +8 -8
  48. package/dist/types/overlays/drawer/drawer.atoms.d.ts +18 -8
  49. package/dist/types/overlays/drawer/drawer.d.ts +5 -5
  50. package/dist/types/overlays/drawer/types.d.ts +11 -15
  51. package/dist/types/primitive/button/button.d.ts +5 -0
  52. package/dist/types/primitive/button/types.d.ts +24 -11
  53. package/dist/types/primitive/button-anchor/button-anchor.d.ts +9 -0
  54. package/dist/types/primitive/button-anchor/index.d.ts +2 -0
  55. package/dist/types/primitive/button-anchor/types.d.ts +35 -0
  56. package/dist/types/primitive/button-icon/button-icon.d.ts +6 -0
  57. package/dist/types/primitive/button-icon/types.d.ts +21 -10
  58. package/dist/types/primitive/filter-chip/types.d.ts +0 -10
  59. package/dist/types/primitive/index.d.ts +1 -0
  60. package/dist/types/templates/pin-verifier-drawer/types.d.ts +0 -5
  61. package/dist/utils/enforce-subpath-import.js +1 -3
  62. package/package.json +1 -1
  63. package/dist/js/image-rectangle-B4nXH4Q5.js +0 -2581
  64. package/dist/js/tabs-BAzThVka.js +0 -291
  65. package/dist/js/time-picker-input-JBEgDV2V.js +0 -2049
  66. package/dist/types/forms/segment-multiple-input/index.d.ts +0 -2
  67. package/dist/types/forms/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -12
  68. package/dist/types/forms/segment-multiple-input/segment-multiple-input.d.ts +0 -7
  69. package/dist/types/forms/segment-multiple-input/types.d.ts +0 -55
  70. package/dist/types/forms/segment-single-input/index.d.ts +0 -2
  71. package/dist/types/forms/segment-single-input/segment-single-input.atoms.d.ts +0 -11
  72. package/dist/types/forms/segment-single-input/segment-single-input.d.ts +0 -7
  73. package/dist/types/forms/segment-single-input/types.d.ts +0 -55
  74. package/dist/types/layouts/page-layout/index.d.ts +0 -2
  75. package/dist/types/layouts/page-layout/page-layout.d.ts +0 -8
  76. package/dist/types/layouts/page-layout/types.d.ts +0 -20
package/dist/js/index.js CHANGED
@@ -1,79 +1,77 @@
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, f as c, P as I, c as S, d as g, e as d, S as m, T as B } from "./top-bar-Dx0JVXms.js";
3
- import { C as T, b as P, a as x, D as f, E as h, P as A, c as C, R as k, S as M, e as F, d as L, f as D, h as H, g as R, i as G, j, T as q, k as v } from "./time-picker-input-JBEgDV2V.js";
4
- import { B as y, D as E, M as N, T as z } from "./tooltip-D6fUigp2.js";
5
- import { A as K, a as O, b as Q, c as U, d as V, e as W, f as X, B as Y, r as Z, g as _, h as $, k as aa, i as ea, j as sa, C as ta, F as ra, H as oa, l as na, I as pa, o as ua, q as ia, p as la, M as ca, N as Ia, T as Sa, m as ga, n as da } from "./image-rectangle-B4nXH4Q5.js";
6
- import { S as Ba } from "./snackbar-DH8jCh2V.js";
7
- import { B as Ta, T as Pa } from "./tabs-BAzThVka.js";
8
- import { S as fa, u as ha } from "./use-snackbars-Cou8L41F.js";
1
+ import { L as e, 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 c, e as l, c as I, P as d, d as B, S, T as m } from "./top-bar-BMw3gFYA.js";
3
+ import { C as b, b as T, a as h, D as x, E as A, P, c as C, R as f, S as k, d as M, f as F, e as L, g as D, h as H, T as R, i as G } from "./time-picker-input-BCTs7K8s.js";
4
+ import { B as v, D as w, M as E, T as N } from "./tooltip-nZW9TUz3.js";
5
+ import { A as y, a as z, b as J, c as K, d as O, e as Q, f as U, B as V, s as W, g as X, h as Y, i as Z, l as _, j as $, k as aa, C as sa, F as ea, H as ta, m as ra, I as oa, p as na, r as pa, q as ua, M as ia, N as ca, T as la, n as Ia, o as da } from "./image-rectangle-K9jmTTED.js";
6
+ import { S as Sa } from "./snackbar-DH8jCh2V.js";
7
+ import { B as ga, T as ba } from "./tabs-I4n6MLAv.js";
8
+ import { S as ha, u as xa } from "./use-snackbars-Cou8L41F.js";
9
9
  export {
10
- K as Accordion,
11
- O as ActionCard,
12
- Q as Alert,
13
- U as Anchor,
10
+ y as Accordion,
11
+ z as ActionCard,
12
+ J as Alert,
13
+ K as Anchor,
14
14
  n as AppBar,
15
- V as Attribute,
16
- W as AttributeList,
17
- X as Avatar,
18
- Y as Badge,
15
+ O as Attribute,
16
+ Q as AttributeList,
17
+ U as Avatar,
18
+ V as Badge,
19
19
  p as BadgeGroup,
20
- Z as BaseImage,
20
+ W as BaseImage,
21
21
  u as BottomBar,
22
- y as BottomSheet,
23
- _ as Brand,
24
- Ta as Breadcrumbs,
25
- $ as Button,
22
+ v as BottomSheet,
23
+ X as Brand,
24
+ ga as Breadcrumbs,
25
+ Y as Button,
26
+ Z as ButtonAnchor,
26
27
  i as ButtonGroup,
27
- aa as ButtonIcon,
28
- ea as ButtonMenu,
29
- sa as ButtonMenuIcon,
30
- ta as Card,
31
- T as CheckboxInput,
32
- P as ChipMultipleInput,
33
- x as ChipSingleInput,
34
- f as DateSinglePickerInput,
35
- E as Drawer,
36
- h as EmailInput,
37
- ra as FilterChip,
38
- l as FilterChipGroup,
39
- c as FormLayout,
40
- oa as Heading,
41
- na as Hr,
42
- pa as Icon,
43
- ua as ImageCircle,
44
- ia as ImageRectangle,
45
- la as ImageSquare,
46
- s as LoadingIndicator,
47
- ca as Menu,
48
- N as Modal,
49
- Ia as NoResults,
28
+ _ as ButtonIcon,
29
+ $ as ButtonMenu,
30
+ aa as ButtonMenuIcon,
31
+ sa as Card,
32
+ b as CheckboxInput,
33
+ T as ChipMultipleInput,
34
+ h as ChipSingleInput,
35
+ x as DateSinglePickerInput,
36
+ w as Drawer,
37
+ A as EmailInput,
38
+ ea as FilterChip,
39
+ c as FilterChipGroup,
40
+ l as FormLayout,
41
+ ta as Heading,
42
+ ra as Hr,
43
+ oa as Icon,
44
+ na as ImageCircle,
45
+ pa as ImageRectangle,
46
+ ua as ImageSquare,
47
+ e as LoadingIndicator,
48
+ ia as Menu,
49
+ E as Modal,
50
+ ca as NoResults,
50
51
  I as PageContent,
51
- S as PageHeader,
52
- g as PageLayout,
53
- d as PageLoader,
54
- A as PinField,
52
+ d as PageHeader,
53
+ B as PageLoader,
54
+ P as PinField,
55
55
  C as PriceInput,
56
56
  t as ProgressIndicator,
57
- k as RadioInput,
58
- M as SearchInput,
59
- F as SegmentMultipleInput,
60
- L as SegmentSingleInput,
61
- D as SelectInput,
62
- H as SelectableMultipleInput,
63
- R as SelectableSingleInput,
64
- m as SideBar,
57
+ f as RadioInput,
58
+ k as SearchInput,
59
+ M as SelectInput,
60
+ F as SelectableMultipleInput,
61
+ L as SelectableSingleInput,
62
+ S as SideBar,
65
63
  r as Skeleton,
66
- Ba as Snackbar,
67
- fa as SnackbarsProvider,
68
- G as SwitchInput,
69
- Sa as Table,
70
- Pa as Tabs,
71
- ga as Text,
72
- j as TextAreaInput,
73
- q as TextInput,
64
+ Sa as Snackbar,
65
+ ha as SnackbarsProvider,
66
+ D as SwitchInput,
67
+ la as Table,
68
+ ba as Tabs,
69
+ Ia as Text,
70
+ H as TextAreaInput,
71
+ R as TextInput,
74
72
  da as Tile,
75
- v as TimePickerInput,
76
- z as Tooltip,
77
- B as TopBar,
78
- ha as useSnackbars
73
+ G as TimePickerInput,
74
+ N as Tooltip,
75
+ m as TopBar,
76
+ xa as useSnackbars
79
77
  };
@@ -1,15 +1,14 @@
1
- import { A as e, a as r, B as s, b as t, F as p, f as B, P as u, c as d, d as g, e as P, S as i, T as m } from "../top-bar-Dx0JVXms.js";
1
+ import { A as r, a as e, B as s, b as t, F as p, e as B, c as d, P as u, d as g, S as P, T as i } from "../top-bar-BMw3gFYA.js";
2
2
  export {
3
- e as AppBar,
4
- r as BadgeGroup,
3
+ r as AppBar,
4
+ e as BadgeGroup,
5
5
  s as BottomBar,
6
6
  t as ButtonGroup,
7
7
  p as FilterChipGroup,
8
8
  B as FormLayout,
9
- u as PageContent,
10
- d as PageHeader,
11
- g as PageLayout,
12
- P as PageLoader,
13
- i as SideBar,
14
- m as TopBar
9
+ d as PageContent,
10
+ u as PageHeader,
11
+ g as PageLoader,
12
+ P as SideBar,
13
+ i as TopBar
15
14
  };
@@ -1,4 +1,4 @@
1
- import { B as s, T as b } from "../tabs-BAzThVka.js";
1
+ import { B as s, T as b } from "../tabs-I4n6MLAv.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, T as s } from "../tooltip-D6fUigp2.js";
2
- import { M as m } from "../image-rectangle-B4nXH4Q5.js";
1
+ import { B as e, D as r, M as t, T as s } from "../tooltip-nZW9TUz3.js";
2
+ import { M as m } from "../image-rectangle-K9jmTTED.js";
3
3
  export {
4
4
  e as BottomSheet,
5
5
  r as Drawer,
@@ -1,31 +1,32 @@
1
- import { A as e, a as t, b as r, c as n, d as o, e as c, f as i, B as u, r as g, g as l, h as A, k as B, i as I, j as d, C as m, F as b, H as C, l as p, I as T, o as f, q as h, p as x, N as H, T as S, m as k, n as q } from "../image-rectangle-B4nXH4Q5.js";
2
- import { S as M } from "../snackbar-DH8jCh2V.js";
1
+ import { A as t, a as e, b as r, c as n, d as o, e as c, f as i, B as u, s as A, g as B, h as g, i as l, l as I, j as d, k as m, C as b, F as C, H as h, m as p, I as T, p as f, r as x, q as H, N as S, T as k, n as q, o as F } from "../image-rectangle-K9jmTTED.js";
2
+ import { S as N } from "../snackbar-DH8jCh2V.js";
3
3
  export {
4
- e as Accordion,
5
- t as ActionCard,
4
+ t as Accordion,
5
+ e as ActionCard,
6
6
  r as Alert,
7
7
  n as Anchor,
8
8
  o as Attribute,
9
9
  c as AttributeList,
10
10
  i as Avatar,
11
11
  u as Badge,
12
- g as BaseImage,
13
- l as Brand,
14
- A as Button,
15
- B as ButtonIcon,
16
- I as ButtonMenu,
17
- d as ButtonMenuIcon,
18
- m as Card,
19
- b as FilterChip,
20
- C as Heading,
12
+ A as BaseImage,
13
+ B as Brand,
14
+ g as Button,
15
+ l as ButtonAnchor,
16
+ I as ButtonIcon,
17
+ d as ButtonMenu,
18
+ m as ButtonMenuIcon,
19
+ b as Card,
20
+ C as FilterChip,
21
+ h as Heading,
21
22
  p as Hr,
22
23
  T as Icon,
23
24
  f as ImageCircle,
24
- h as ImageRectangle,
25
- x as ImageSquare,
26
- H as NoResults,
27
- M as Snackbar,
28
- S as Table,
29
- k as Text,
30
- q as Tile
25
+ x as ImageRectangle,
26
+ H as ImageSquare,
27
+ S as NoResults,
28
+ N as Snackbar,
29
+ k as Table,
30
+ q as Text,
31
+ F as Tile
31
32
  };
@@ -0,0 +1,210 @@
1
+ import { c as l, j as t, a as b } from "./index-DOdDlCoL.js";
2
+ import { forwardRef as m, createContext as p, useContext as h, useState as g, useLayoutEffect as j, useRef as T } from "react";
3
+ import { I as w } from "./image-rectangle-K9jmTTED.js";
4
+ import "./snackbar-DH8jCh2V.js";
5
+ import { ChevronRight as y } from "lucide-react";
6
+ const I = l(
7
+ "flex items-center gap-2 text-sm text-gray-500"
8
+ ), C = l(
9
+ "inline-flex items-center gap-1 transition-colors hover:underline cursor-pointer"
10
+ ), N = m(function({ children: s, icon: n, isCurrent: a, className: r, ...i }, o) {
11
+ return /* @__PURE__ */ t.jsx("li", { className: "flex items-center", children: /* @__PURE__ */ t.jsxs(
12
+ "a",
13
+ {
14
+ ref: o,
15
+ "aria-current": a ? "page" : void 0,
16
+ tabIndex: a ? -1 : 0,
17
+ className: b(C(), r),
18
+ ...i,
19
+ children: [
20
+ n && /* @__PURE__ */ t.jsx("span", { className: "mr-1 inline-flex", children: n }),
21
+ s
22
+ ]
23
+ }
24
+ ) });
25
+ });
26
+ function B() {
27
+ return /* @__PURE__ */ t.jsx(w, { as: y, size: "xs", color: "inherit" });
28
+ }
29
+ const R = m(
30
+ function({ children: s, "aria-label": n = "Breadcrumb", ...a }, r) {
31
+ return /* @__PURE__ */ t.jsx("nav", { "aria-label": n, ...a, children: /* @__PURE__ */ t.jsx("ol", { ref: r, className: I(), children: s }) });
32
+ }
33
+ ), W = Object.assign(R, {
34
+ Item: N,
35
+ Separator: B
36
+ }), f = p(null), S = () => {
37
+ const e = h(f);
38
+ if (!e)
39
+ throw new Error("useTabsContext must be used within a TabsProvider");
40
+ return e;
41
+ }, E = l(
42
+ [
43
+ "inline-flex items-center justify-center",
44
+ "px-4 py-2",
45
+ "text-sm font-normal",
46
+ "text-foreground",
47
+ "transition-all duration-200",
48
+ "border-b-2 border-transparent",
49
+ "select-none",
50
+ "cursor-pointer",
51
+ // Focus styles with proper visibility (no cropping)
52
+ "focus-visible:outline-none",
53
+ "focus-visible:ring-2",
54
+ "focus-visible:ring-primary",
55
+ "focus-visible:ring-offset-2",
56
+ "focus-visible:z-10",
57
+ // Disabled state
58
+ "disabled:opacity-50",
59
+ "disabled:pointer-events-none"
60
+ ],
61
+ {
62
+ variants: {
63
+ active: {
64
+ true: "text-primary font-medium",
65
+ false: "hover:text-primary"
66
+ }
67
+ },
68
+ defaultVariants: {
69
+ active: !1
70
+ }
71
+ }
72
+ ), L = l([
73
+ "flex flex-row w-full",
74
+ "border-b border-border",
75
+ "overflow-x-auto overflow-y-visible",
76
+ "whitespace-nowrap",
77
+ // Ensure focus rings with offset are not cropped (2px ring + 2px offset = 4px needed)
78
+ "py-1"
79
+ ]), V = l([
80
+ "absolute bottom-0",
81
+ "h-0.5 rounded",
82
+ "bg-primary",
83
+ "transition-all duration-300",
84
+ "pointer-events-none"
85
+ ]), A = ({
86
+ value: e,
87
+ children: s,
88
+ className: n,
89
+ onClick: a,
90
+ ...r
91
+ }) => {
92
+ const { activeTab: i, setActiveTab: o } = S(), c = i === e, d = (u) => {
93
+ u.preventDefault(), o(e), a?.(u);
94
+ };
95
+ return /* @__PURE__ */ t.jsx("li", { role: "presentation", children: /* @__PURE__ */ t.jsx(
96
+ "a",
97
+ {
98
+ role: "tab",
99
+ id: `tabs-trigger-${e}`,
100
+ "aria-selected": c,
101
+ "aria-controls": `tabs-content-${e}`,
102
+ "aria-current": c ? "page" : void 0,
103
+ href: `#${e}`,
104
+ className: b(
105
+ E({
106
+ active: c
107
+ }),
108
+ n
109
+ ),
110
+ onClick: d,
111
+ ...r,
112
+ children: s
113
+ }
114
+ ) });
115
+ }, k = ({
116
+ left: e,
117
+ width: s,
118
+ className: n,
119
+ ...a
120
+ }) => /* @__PURE__ */ t.jsx(
121
+ "div",
122
+ {
123
+ "aria-hidden": "true",
124
+ className: b(V(), n),
125
+ style: {
126
+ left: e,
127
+ width: s
128
+ },
129
+ ...a
130
+ }
131
+ );
132
+ function $(e, s) {
133
+ const [n, a] = g({
134
+ left: 0,
135
+ width: 0
136
+ });
137
+ return j(() => {
138
+ const r = s.current;
139
+ if (!r) return;
140
+ const i = r.querySelector(
141
+ `a#tabs-trigger-${e}`
142
+ );
143
+ if (!i) return;
144
+ const o = i.parentElement;
145
+ if (!o) return;
146
+ const c = () => {
147
+ const x = o.offsetLeft - r.scrollLeft, v = o.offsetWidth;
148
+ a({ left: x, width: v });
149
+ };
150
+ c();
151
+ const d = () => {
152
+ c();
153
+ };
154
+ r.addEventListener("scroll", d, { passive: !0 });
155
+ const u = requestAnimationFrame(() => {
156
+ i.scrollIntoView({
157
+ behavior: "smooth",
158
+ inline: "center",
159
+ block: "nearest"
160
+ });
161
+ });
162
+ return () => {
163
+ cancelAnimationFrame(u), r.removeEventListener("scroll", d);
164
+ };
165
+ }, [e, s]), n;
166
+ }
167
+ const q = ({
168
+ value: e,
169
+ onValueChange: s,
170
+ children: n,
171
+ className: a,
172
+ ...r
173
+ }) => {
174
+ const i = {
175
+ activeTab: e,
176
+ setActiveTab: s
177
+ }, o = T(null), c = $(e, o);
178
+ return /* @__PURE__ */ t.jsx(f.Provider, { value: i, children: /* @__PURE__ */ t.jsx(
179
+ "nav",
180
+ {
181
+ className: b("relative w-full", a),
182
+ "aria-label": "Tabs",
183
+ ...r,
184
+ children: /* @__PURE__ */ t.jsxs("div", { className: "relative overflow-hidden", children: [
185
+ /* @__PURE__ */ t.jsx(
186
+ "ul",
187
+ {
188
+ role: "tablist",
189
+ className: L(),
190
+ ref: o,
191
+ children: n
192
+ }
193
+ ),
194
+ /* @__PURE__ */ t.jsx(
195
+ k,
196
+ {
197
+ left: c.left,
198
+ width: c.width
199
+ }
200
+ )
201
+ ] })
202
+ }
203
+ ) });
204
+ }, G = Object.assign(q, {
205
+ Trigger: A
206
+ });
207
+ export {
208
+ W as B,
209
+ G as T
210
+ };