@dimasbaguspm/versaur 0.0.9 → 0.0.11
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/README.md +24 -1
- package/dist/{calendar-DwRERSxq.js → js/calendar-De5dCVnE.js} +149 -137
- package/dist/js/enforce-subpath-import.js +131 -0
- package/dist/{feedbacks → js/feedbacks}/index.js +1 -1
- package/dist/{form-layout-COQbtyW5.js → js/form-layout-BRqZZe8s.js} +55 -55
- package/dist/{forms → js/forms}/index.js +1 -1
- package/dist/{index.js → js/index.js} +7 -7
- package/dist/{layouts → js/layouts}/index.js +1 -1
- package/dist/{menu--hEHXVZf.js → js/menu-Du409VIG.js} +15 -15
- package/dist/js/navigation/index.js +5 -0
- package/dist/{overlays → js/overlays}/index.js +1 -1
- package/dist/{primitive → js/primitive}/index.js +2 -2
- package/dist/{skeleton-DwqjRsF-.js → js/skeleton-BNZyaRjo.js} +19 -19
- package/dist/{styles.css → js/styles.css} +62 -37
- package/dist/{switch-input-DRNFMsqC.js → js/switch-input-B-pwBWbi.js} +266 -262
- package/dist/{tabs-KyFmo5cA.js → js/tabs-BbOkYchB.js} +53 -53
- package/dist/{tile-BinjKW_i.js → js/tile-6SeBYc08.js} +162 -162
- package/dist/types/primitive/anchor/anchor.d.ts +7 -0
- package/dist/types/primitive/anchor/index.d.ts +2 -0
- package/dist/types/primitive/anchor/types.d.ts +19 -0
- package/dist/{primitive → types/primitive}/icon/types.d.ts +1 -1
- package/dist/{primitive → types/primitive}/text/types.d.ts +1 -1
- package/package.json +19 -15
- package/dist/enforce-subpath-import.js +0 -106
- package/dist/navigation/index.js +0 -5
- /package/dist/{drawer-Cn7sreJG.js → js/drawer-Cn7sreJG.js} +0 -0
- /package/dist/{index-DOdDlCoL.js → js/index-DOdDlCoL.js} +0 -0
- /package/dist/{feedbacks → types/feedbacks}/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/loading-indicator.atoms.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/loading-indicator.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/types.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/progress-indicator.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/types.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/skeleton.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/calculator-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/calculator-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/checkbox-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/checkbox-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/chip-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/chip-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.docked.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.modal.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/use-date-single-picker.d.ts +0 -0
- /package/dist/{forms → types/forms}/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/radio-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/radio-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/segment-multiple-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/segment-single-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/segment-single-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/select-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/switch-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/switch-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/text-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/textarea-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/time-picker-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/time-picker-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/types.d.ts +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/app-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/app-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/bottom-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/bottom-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/form-layout.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/page-layout.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/top-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/top-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/breadcrumbs.atoms.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/breadcrumbs.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/tabs.atoms.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/tabs.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/use-tab-indicator.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/drawer.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/drawer.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/menu.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/menu.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/use-menu.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/modal.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/modal.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/use-escape-close.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/use-focus-trap.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/alert.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/alert.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/avatar.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/avatar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/badge.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/brand.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/brand.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/button.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/button-float.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/use-floating-position.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/button-icon.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/calculator.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/calculator.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/use-calculator.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/calendar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/icon/icon.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/icon/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/snackbar.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/snackbar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/table.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/table.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/text/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/text/text.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/tile.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/types.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as d, j as o, a as u } from "./index-DOdDlCoL.js";
|
|
2
|
-
import { forwardRef as f, createContext as
|
|
2
|
+
import { forwardRef as f, createContext as x, useContext as g, useState as p, useLayoutEffect as y, useRef as h } from "react";
|
|
3
3
|
const w = d(
|
|
4
|
-
"flex items-center gap-2 text-sm text-
|
|
4
|
+
"flex items-center gap-2 text-sm text-tertiary",
|
|
5
5
|
{
|
|
6
6
|
variants: {
|
|
7
7
|
separator: {
|
|
@@ -18,23 +18,23 @@ const w = d(
|
|
|
18
18
|
{
|
|
19
19
|
variants: {
|
|
20
20
|
isCurrent: {
|
|
21
|
-
true: "font-semibold text-
|
|
22
|
-
false: "
|
|
21
|
+
true: "font-semibold text-black cursor-default",
|
|
22
|
+
false: ""
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
defaultVariants: {
|
|
26
26
|
isCurrent: !1
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
), j = "mx-1 text-
|
|
29
|
+
), j = "mx-1 text-ghost-400 select-none", I = f(function({ children: t, icon: r, isCurrent: a, className: n, ...s }, i) {
|
|
30
30
|
return /* @__PURE__ */ o.jsx("li", { className: "flex items-center", children: /* @__PURE__ */ o.jsxs(
|
|
31
31
|
"a",
|
|
32
32
|
{
|
|
33
33
|
ref: i,
|
|
34
34
|
"aria-current": a ? "page" : void 0,
|
|
35
35
|
tabIndex: a ? -1 : 0,
|
|
36
|
-
className: u(T({ isCurrent: a }) +
|
|
37
|
-
...
|
|
36
|
+
className: u(T({ isCurrent: a }) + n),
|
|
37
|
+
...s,
|
|
38
38
|
children: [
|
|
39
39
|
r && /* @__PURE__ */ o.jsx("span", { className: "mr-1 inline-flex", children: r }),
|
|
40
40
|
t
|
|
@@ -46,14 +46,14 @@ function V() {
|
|
|
46
46
|
return /* @__PURE__ */ o.jsx("span", { className: j, "aria-hidden": "true", children: "/" });
|
|
47
47
|
}
|
|
48
48
|
const C = f(
|
|
49
|
-
function({ children: t, "aria-label": r = "Breadcrumb", ...a },
|
|
50
|
-
return /* @__PURE__ */ o.jsx("nav", { "aria-label": r, ...a, children: /* @__PURE__ */ o.jsx("ol", { ref:
|
|
49
|
+
function({ children: t, "aria-label": r = "Breadcrumb", ...a }, n) {
|
|
50
|
+
return /* @__PURE__ */ o.jsx("nav", { "aria-label": r, ...a, children: /* @__PURE__ */ o.jsx("ol", { ref: n, className: w(), children: t }) });
|
|
51
51
|
}
|
|
52
52
|
), O = Object.assign(C, {
|
|
53
53
|
Item: I,
|
|
54
54
|
Separator: V
|
|
55
|
-
}),
|
|
56
|
-
const e = g(
|
|
55
|
+
}), v = x(null), m = () => {
|
|
56
|
+
const e = g(v);
|
|
57
57
|
if (!e)
|
|
58
58
|
throw new Error("useTabsContext must be used within a TabsProvider");
|
|
59
59
|
return e;
|
|
@@ -83,61 +83,61 @@ const C = f(
|
|
|
83
83
|
variant: "underline",
|
|
84
84
|
color: "primary",
|
|
85
85
|
active: !0,
|
|
86
|
-
class: "text-
|
|
86
|
+
class: "text-primary border-primary"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
variant: "underline",
|
|
90
90
|
color: "primary",
|
|
91
91
|
active: !1,
|
|
92
|
-
class: "text-foreground hover:text-
|
|
92
|
+
class: "text-foreground hover:text-primary"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
variant: "underline",
|
|
96
96
|
color: "secondary",
|
|
97
97
|
active: !0,
|
|
98
|
-
class: "text-
|
|
98
|
+
class: "text-secondary border-secondary"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
variant: "underline",
|
|
102
102
|
color: "secondary",
|
|
103
103
|
active: !1,
|
|
104
|
-
class: "text-foreground hover:text-
|
|
104
|
+
class: "text-foreground hover:text-secondary"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
variant: "underline",
|
|
108
108
|
color: "tertiary",
|
|
109
109
|
active: !0,
|
|
110
|
-
class: "text-
|
|
110
|
+
class: "text-tertiary border-tertiary"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
variant: "underline",
|
|
114
114
|
color: "tertiary",
|
|
115
115
|
active: !1,
|
|
116
|
-
class: "text-foreground hover:text-
|
|
116
|
+
class: "text-foreground hover:text-tertiary"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
variant: "underline",
|
|
120
120
|
color: "ghost",
|
|
121
121
|
active: !0,
|
|
122
|
-
class: "text-
|
|
122
|
+
class: "text-ghost border-ghost"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
variant: "underline",
|
|
126
126
|
color: "ghost",
|
|
127
127
|
active: !1,
|
|
128
|
-
class: "text-foreground hover:text-
|
|
128
|
+
class: "text-foreground hover:text-ghost"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
variant: "underline",
|
|
132
132
|
color: "neutral",
|
|
133
133
|
active: !0,
|
|
134
|
-
class: "text-foreground border-
|
|
134
|
+
class: "text-foreground border-neutral"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
variant: "underline",
|
|
138
138
|
color: "neutral",
|
|
139
139
|
active: !1,
|
|
140
|
-
class: "text-foreground hover:text-
|
|
140
|
+
class: "text-foreground hover:text-neutral"
|
|
141
141
|
},
|
|
142
142
|
// Filled variant (no color, only white/transparent)
|
|
143
143
|
{
|
|
@@ -175,29 +175,29 @@ const C = f(
|
|
|
175
175
|
{
|
|
176
176
|
variants: {
|
|
177
177
|
color: {
|
|
178
|
-
primary: "bg-
|
|
179
|
-
secondary: "bg-
|
|
180
|
-
tertiary: "bg-
|
|
181
|
-
ghost: "bg-
|
|
182
|
-
neutral: "bg-
|
|
178
|
+
primary: "bg-primary",
|
|
179
|
+
secondary: "bg-secondary",
|
|
180
|
+
tertiary: "bg-tertiary",
|
|
181
|
+
ghost: "bg-ghost",
|
|
182
|
+
neutral: "bg-neutral"
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
defaultVariants: {
|
|
186
186
|
color: "primary"
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
),
|
|
189
|
+
), R = ({
|
|
190
190
|
value: e,
|
|
191
191
|
children: t,
|
|
192
192
|
className: r,
|
|
193
193
|
...a
|
|
194
194
|
}) => {
|
|
195
195
|
const {
|
|
196
|
-
activeTab:
|
|
197
|
-
setActiveTab:
|
|
196
|
+
activeTab: n,
|
|
197
|
+
setActiveTab: s,
|
|
198
198
|
color: i,
|
|
199
199
|
variant: c = "underline"
|
|
200
|
-
} =
|
|
200
|
+
} = m(), l = n === e;
|
|
201
201
|
return /* @__PURE__ */ o.jsx(
|
|
202
202
|
"button",
|
|
203
203
|
{
|
|
@@ -214,24 +214,24 @@ const C = f(
|
|
|
214
214
|
}),
|
|
215
215
|
r
|
|
216
216
|
),
|
|
217
|
-
onClick: () =>
|
|
217
|
+
onClick: () => s(e),
|
|
218
218
|
type: "button",
|
|
219
219
|
...a,
|
|
220
220
|
children: t
|
|
221
221
|
}
|
|
222
222
|
);
|
|
223
|
-
},
|
|
223
|
+
}, A = ({
|
|
224
224
|
left: e,
|
|
225
225
|
width: t,
|
|
226
226
|
className: r,
|
|
227
227
|
...a
|
|
228
228
|
}) => {
|
|
229
|
-
const { color:
|
|
229
|
+
const { color: n } = m();
|
|
230
230
|
return /* @__PURE__ */ o.jsx(
|
|
231
231
|
"div",
|
|
232
232
|
{
|
|
233
233
|
"aria-hidden": !0,
|
|
234
|
-
className: u(S({ color:
|
|
234
|
+
className: u(S({ color: n }), r),
|
|
235
235
|
style: {
|
|
236
236
|
left: e,
|
|
237
237
|
width: t,
|
|
@@ -241,19 +241,19 @@ const C = f(
|
|
|
241
241
|
}
|
|
242
242
|
);
|
|
243
243
|
};
|
|
244
|
-
function
|
|
245
|
-
const [a,
|
|
244
|
+
function E(e, t, r) {
|
|
245
|
+
const [a, n] = p({
|
|
246
246
|
left: 0,
|
|
247
247
|
width: 0
|
|
248
248
|
});
|
|
249
|
-
return
|
|
249
|
+
return y(() => {
|
|
250
250
|
if (!t.current) return;
|
|
251
|
-
const
|
|
251
|
+
const s = t.current.querySelector(
|
|
252
252
|
`#tabs-trigger-${e}`
|
|
253
253
|
);
|
|
254
|
-
if (
|
|
255
|
-
const { offsetLeft: i, offsetWidth: c } =
|
|
256
|
-
|
|
254
|
+
if (s) {
|
|
255
|
+
const { offsetLeft: i, offsetWidth: c } = s;
|
|
256
|
+
n({ left: i, width: c }), s.scrollIntoView({
|
|
257
257
|
behavior: "smooth",
|
|
258
258
|
inline: "center",
|
|
259
259
|
block: "nearest"
|
|
@@ -261,28 +261,28 @@ function A(e, t, r) {
|
|
|
261
261
|
}
|
|
262
262
|
}, [e, r, t]), a;
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const k = ({
|
|
265
265
|
value: e,
|
|
266
266
|
onValueChange: t,
|
|
267
267
|
children: r,
|
|
268
268
|
className: a,
|
|
269
|
-
color:
|
|
270
|
-
variant:
|
|
269
|
+
color: n = "primary",
|
|
270
|
+
variant: s = "underline",
|
|
271
271
|
...i
|
|
272
272
|
}) => {
|
|
273
273
|
const c = {
|
|
274
274
|
activeTab: e,
|
|
275
275
|
setActiveTab: t,
|
|
276
|
-
color:
|
|
277
|
-
variant:
|
|
278
|
-
}, l =
|
|
279
|
-
return /* @__PURE__ */ o.jsx(
|
|
276
|
+
color: n,
|
|
277
|
+
variant: s
|
|
278
|
+
}, l = h(null), b = E(e, l, r);
|
|
279
|
+
return /* @__PURE__ */ o.jsx(v.Provider, { value: c, children: /* @__PURE__ */ o.jsxs(
|
|
280
280
|
"div",
|
|
281
281
|
{
|
|
282
282
|
role: "tablist",
|
|
283
283
|
className: u(
|
|
284
284
|
N({
|
|
285
|
-
variant:
|
|
285
|
+
variant: s
|
|
286
286
|
}),
|
|
287
287
|
a
|
|
288
288
|
),
|
|
@@ -291,8 +291,8 @@ const E = ({
|
|
|
291
291
|
...i,
|
|
292
292
|
children: [
|
|
293
293
|
r,
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
s === "underline" && /* @__PURE__ */ o.jsx(
|
|
295
|
+
A,
|
|
296
296
|
{
|
|
297
297
|
left: b.left,
|
|
298
298
|
width: b.width
|
|
@@ -301,8 +301,8 @@ const E = ({
|
|
|
301
301
|
]
|
|
302
302
|
}
|
|
303
303
|
) });
|
|
304
|
-
}, P = Object.assign(
|
|
305
|
-
Trigger:
|
|
304
|
+
}, P = Object.assign(k, {
|
|
305
|
+
Trigger: R
|
|
306
306
|
});
|
|
307
307
|
export {
|
|
308
308
|
O as B,
|