@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.
- package/dist/assets/styles.css +14 -6
- package/dist/js/forms/index.js +12 -14
- package/dist/js/image-rectangle-K9jmTTED.js +2607 -0
- package/dist/js/index.js +66 -68
- package/dist/js/layouts/index.js +8 -9
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +21 -20
- package/dist/js/tabs-I4n6MLAv.js +210 -0
- package/dist/js/time-picker-input-BCTs7K8s.js +1562 -0
- package/dist/js/{tooltip-D6fUigp2.js → tooltip-nZW9TUz3.js} +293 -297
- package/dist/js/{top-bar-Dx0JVXms.js → top-bar-BMw3gFYA.js} +292 -247
- package/dist/types/forms/checkbox-input/checkbox-input.d.ts +1 -1
- package/dist/types/forms/checkbox-input/types.d.ts +11 -14
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.atoms.d.ts +2 -2
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +1 -1
- package/dist/types/forms/chip-multiple-input/types.d.ts +15 -14
- package/dist/types/forms/chip-single-input/chip-single-input.atoms.d.ts +1 -1
- package/dist/types/forms/chip-single-input/chip-single-input.d.ts +1 -1
- package/dist/types/forms/chip-single-input/types.d.ts +15 -14
- package/dist/types/forms/date-single-picker-input/types.d.ts +10 -0
- package/dist/types/forms/index.d.ts +0 -2
- package/dist/types/forms/pin-field/pin-field.d.ts +2 -2
- package/dist/types/forms/pin-field/types.d.ts +16 -28
- package/dist/types/forms/select-input/index.d.ts +1 -1
- package/dist/types/forms/select-input/select-input.atoms.d.ts +16 -0
- package/dist/types/forms/select-input/select-input.d.ts +4 -7
- package/dist/types/forms/select-input/types.d.ts +32 -9
- package/dist/types/forms/selectable-multiple-input/selectable-multiple-input.d.ts +1 -1
- package/dist/types/forms/selectable-multiple-input/types.d.ts +20 -3
- package/dist/types/forms/selectable-single-input/selectable-single-input.d.ts +1 -1
- package/dist/types/forms/selectable-single-input/types.d.ts +20 -3
- package/dist/types/forms/switch-input/switch-input.atoms.d.ts +7 -8
- package/dist/types/forms/switch-input/switch-input.d.ts +5 -1
- package/dist/types/forms/switch-input/types.d.ts +10 -33
- package/dist/types/forms/text-input/text-input.d.ts +2 -2
- package/dist/types/forms/text-input/types.d.ts +0 -7
- package/dist/types/forms/textarea-input/textarea-input.d.ts +3 -3
- package/dist/types/forms/textarea-input/types.d.ts +33 -18
- package/dist/types/layouts/index.d.ts +1 -2
- package/dist/types/layouts/page-content/index.d.ts +1 -1
- package/dist/types/layouts/page-content/page-content.d.ts +5 -11
- package/dist/types/layouts/page-content/types.d.ts +29 -9
- package/dist/types/layouts/page-header/types.d.ts +13 -0
- package/dist/types/navigation/tabs/tabs.atoms.d.ts +3 -2
- package/dist/types/navigation/tabs/types.d.ts +5 -13
- package/dist/types/navigation/tabs/use-tab-indicator.d.ts +8 -8
- package/dist/types/overlays/drawer/drawer.atoms.d.ts +18 -8
- package/dist/types/overlays/drawer/drawer.d.ts +5 -5
- package/dist/types/overlays/drawer/types.d.ts +11 -15
- package/dist/types/primitive/button/button.d.ts +5 -0
- package/dist/types/primitive/button/types.d.ts +24 -11
- package/dist/types/primitive/button-anchor/button-anchor.d.ts +9 -0
- package/dist/types/primitive/button-anchor/index.d.ts +2 -0
- package/dist/types/primitive/button-anchor/types.d.ts +35 -0
- package/dist/types/primitive/button-icon/button-icon.d.ts +6 -0
- package/dist/types/primitive/button-icon/types.d.ts +21 -10
- package/dist/types/primitive/filter-chip/types.d.ts +0 -10
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/types/templates/pin-verifier-drawer/types.d.ts +0 -5
- package/dist/utils/enforce-subpath-import.js +1 -3
- package/package.json +1 -1
- package/dist/js/image-rectangle-B4nXH4Q5.js +0 -2581
- package/dist/js/tabs-BAzThVka.js +0 -291
- package/dist/js/time-picker-input-JBEgDV2V.js +0 -2049
- package/dist/types/forms/segment-multiple-input/index.d.ts +0 -2
- package/dist/types/forms/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -12
- package/dist/types/forms/segment-multiple-input/segment-multiple-input.d.ts +0 -7
- package/dist/types/forms/segment-multiple-input/types.d.ts +0 -55
- package/dist/types/forms/segment-single-input/index.d.ts +0 -2
- package/dist/types/forms/segment-single-input/segment-single-input.atoms.d.ts +0 -11
- package/dist/types/forms/segment-single-input/segment-single-input.d.ts +0 -7
- package/dist/types/forms/segment-single-input/types.d.ts +0 -55
- package/dist/types/layouts/page-layout/index.d.ts +0 -2
- package/dist/types/layouts/page-layout/page-layout.d.ts +0 -8
- 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
|
|
2
|
-
import { A as n, a as p, B as u, b as i, F as
|
|
3
|
-
import { C as
|
|
4
|
-
import { B as
|
|
5
|
-
import { A as
|
|
6
|
-
import { S as
|
|
7
|
-
import { B as
|
|
8
|
-
import { S as
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
y as Accordion,
|
|
11
|
+
z as ActionCard,
|
|
12
|
+
J as Alert,
|
|
13
|
+
K as Anchor,
|
|
14
14
|
n as AppBar,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
O as Attribute,
|
|
16
|
+
Q as AttributeList,
|
|
17
|
+
U as Avatar,
|
|
18
|
+
V as Badge,
|
|
19
19
|
p as BadgeGroup,
|
|
20
|
-
|
|
20
|
+
W as BaseImage,
|
|
21
21
|
u as BottomBar,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
G as TimePickerInput,
|
|
74
|
+
N as Tooltip,
|
|
75
|
+
m as TopBar,
|
|
76
|
+
xa as useSnackbars
|
|
79
77
|
};
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { A as
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
g as
|
|
12
|
-
P as
|
|
13
|
-
i as
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { B as e, D as r, M as t, T as s } from "../tooltip-
|
|
2
|
-
import { M as m } from "../image-rectangle-
|
|
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
|
|
2
|
-
import { S as
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
I as
|
|
17
|
-
d as
|
|
18
|
-
m as
|
|
19
|
-
b as
|
|
20
|
-
C as
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
+
};
|