@dimasbaguspm/versaur 0.0.56 → 0.0.57
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/js/index.js +2 -2
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/{tabs-I4n6MLAv.js → tabs-CmfJNCe6.js} +55 -47
- package/dist/js/{top-bar-Dqje-W3G.js → top-bar-Do2JqSqe.js} +133 -112
- package/dist/types/layouts/badge-group/types.d.ts +5 -0
- package/dist/types/layouts/button-group/types.d.ts +5 -0
- package/dist/types/layouts/filter-chip-group/types.d.ts +5 -0
- package/dist/types/navigation/tabs/types.d.ts +4 -0
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { L as e, P as t, S as r } from "./skeleton-BNZyaRjo.js";
|
|
2
|
-
import { A as n, a as u, B as p, b as i, F as c, e as l, c as I, P as B, d, S, T as m } from "./top-bar-
|
|
2
|
+
import { A as n, a as u, B as p, b as i, F as c, e as l, c as I, P as B, d, S, T as m } from "./top-bar-Do2JqSqe.js";
|
|
3
3
|
import { C as T, b, a as x, D as A, E as h, P, c as C, R as f, S as k, d as M, f as F, e as L, g as D, i as H, T as R, h as G, j } from "./time-picker-input-BgbyllDK.js";
|
|
4
4
|
import { B as v, D as w, M as E, T as N } from "./tooltip-nZW9TUz3.js";
|
|
5
5
|
import { A as z, a as J, b as K, c as O, d as Q, e as U, f as V, B as W, s as X, g as Y, h as Z, i as _, l as $, j as aa, k as sa, C as ea, F as ta, H as ra, m as oa, I as na, p as ua, r as pa, q as ia, M as ca, N as la, T as Ia, n as Ba, o as da } from "./image-rectangle-K9jmTTED.js";
|
|
6
6
|
import { S as ma } from "./snackbar-DH8jCh2V.js";
|
|
7
|
-
import { B as Ta, T as ba } from "./tabs-
|
|
7
|
+
import { B as Ta, T as ba } from "./tabs-CmfJNCe6.js";
|
|
8
8
|
import { S as Aa, u as ha } from "./use-snackbars-Cou8L41F.js";
|
|
9
9
|
export {
|
|
10
10
|
z as Accordion,
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-Do2JqSqe.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppBar,
|
|
4
4
|
e as BadgeGroup,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as d, j as t, a as f } from "./index-DOdDlCoL.js";
|
|
2
2
|
import { forwardRef as m, createContext as p, useContext as h, useState as g, useLayoutEffect as j, useRef as T } from "react";
|
|
3
3
|
import { I as w } from "./image-rectangle-K9jmTTED.js";
|
|
4
4
|
import "./snackbar-DH8jCh2V.js";
|
|
5
5
|
import { ChevronRight as y } from "lucide-react";
|
|
6
|
-
const I =
|
|
6
|
+
const I = d(
|
|
7
7
|
"flex items-center gap-2 text-sm text-gray-500"
|
|
8
|
-
), C =
|
|
8
|
+
), C = d(
|
|
9
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, ...
|
|
10
|
+
), N = m(function({ children: s, icon: n, isCurrent: a, className: r, ...o }, i) {
|
|
11
11
|
return /* @__PURE__ */ t.jsx("li", { className: "flex items-center", children: /* @__PURE__ */ t.jsxs(
|
|
12
12
|
"a",
|
|
13
13
|
{
|
|
14
|
-
ref:
|
|
14
|
+
ref: i,
|
|
15
15
|
"aria-current": a ? "page" : void 0,
|
|
16
16
|
tabIndex: a ? -1 : 0,
|
|
17
|
-
className:
|
|
18
|
-
...
|
|
17
|
+
className: f(C(), r),
|
|
18
|
+
...o,
|
|
19
19
|
children: [
|
|
20
20
|
n && /* @__PURE__ */ t.jsx("span", { className: "mr-1 inline-flex", children: n }),
|
|
21
21
|
s
|
|
@@ -30,20 +30,20 @@ const R = m(
|
|
|
30
30
|
function({ children: s, "aria-label": n = "Breadcrumb", ...a }, r) {
|
|
31
31
|
return /* @__PURE__ */ t.jsx("nav", { "aria-label": n, ...a, children: /* @__PURE__ */ t.jsx("ol", { ref: r, className: I(), children: s }) });
|
|
32
32
|
}
|
|
33
|
-
),
|
|
33
|
+
), D = Object.assign(R, {
|
|
34
34
|
Item: N,
|
|
35
35
|
Separator: B
|
|
36
|
-
}),
|
|
37
|
-
const e = h(
|
|
36
|
+
}), x = p(null), S = () => {
|
|
37
|
+
const e = h(x);
|
|
38
38
|
if (!e)
|
|
39
39
|
throw new Error("useTabsContext must be used within a TabsProvider");
|
|
40
40
|
return e;
|
|
41
|
-
}, E =
|
|
41
|
+
}, E = d(
|
|
42
42
|
[
|
|
43
|
-
"
|
|
43
|
+
"flex items-center justify-center",
|
|
44
44
|
"px-4 py-2",
|
|
45
45
|
"text-sm font-normal",
|
|
46
|
-
"text-foreground",
|
|
46
|
+
"text-foreground text-center",
|
|
47
47
|
"transition-all duration-200",
|
|
48
48
|
"border-b-2 border-transparent",
|
|
49
49
|
"select-none",
|
|
@@ -63,20 +63,25 @@ const R = m(
|
|
|
63
63
|
active: {
|
|
64
64
|
true: "text-primary font-medium",
|
|
65
65
|
false: "hover:text-primary"
|
|
66
|
+
},
|
|
67
|
+
fullWidth: {
|
|
68
|
+
true: "flex-1 w-full",
|
|
69
|
+
false: ""
|
|
66
70
|
}
|
|
67
71
|
},
|
|
68
72
|
defaultVariants: {
|
|
69
|
-
active: !1
|
|
73
|
+
active: !1,
|
|
74
|
+
fullWidth: !1
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
|
-
), L =
|
|
77
|
+
), L = d([
|
|
73
78
|
"flex flex-row w-full",
|
|
74
79
|
"border-b border-border",
|
|
75
80
|
"overflow-x-auto overflow-y-visible",
|
|
76
81
|
"whitespace-nowrap",
|
|
77
82
|
// Ensure focus rings with offset are not cropped (2px ring + 2px offset = 4px needed)
|
|
78
83
|
"py-1"
|
|
79
|
-
]), V =
|
|
84
|
+
]), V = d([
|
|
80
85
|
"absolute bottom-0",
|
|
81
86
|
"h-0.5 rounded",
|
|
82
87
|
"bg-primary",
|
|
@@ -89,10 +94,10 @@ const R = m(
|
|
|
89
94
|
onClick: a,
|
|
90
95
|
...r
|
|
91
96
|
}) => {
|
|
92
|
-
const { activeTab:
|
|
93
|
-
u.preventDefault(),
|
|
97
|
+
const { activeTab: o, setActiveTab: i, fullWidth: l } = S(), c = o === e, b = (u) => {
|
|
98
|
+
u.preventDefault(), i(e), a?.(u);
|
|
94
99
|
};
|
|
95
|
-
return /* @__PURE__ */ t.jsx("li", { role: "presentation", children: /* @__PURE__ */ t.jsx(
|
|
100
|
+
return /* @__PURE__ */ t.jsx("li", { role: "presentation", className: l ? "flex-1" : void 0, children: /* @__PURE__ */ t.jsx(
|
|
96
101
|
"a",
|
|
97
102
|
{
|
|
98
103
|
role: "tab",
|
|
@@ -101,13 +106,14 @@ const R = m(
|
|
|
101
106
|
"aria-controls": `tabs-content-${e}`,
|
|
102
107
|
"aria-current": c ? "page" : void 0,
|
|
103
108
|
href: `#${e}`,
|
|
104
|
-
className:
|
|
109
|
+
className: f(
|
|
105
110
|
E({
|
|
106
|
-
active: c
|
|
111
|
+
active: c,
|
|
112
|
+
fullWidth: l
|
|
107
113
|
}),
|
|
108
114
|
n
|
|
109
115
|
),
|
|
110
|
-
onClick:
|
|
116
|
+
onClick: b,
|
|
111
117
|
...r,
|
|
112
118
|
children: s
|
|
113
119
|
}
|
|
@@ -121,7 +127,7 @@ const R = m(
|
|
|
121
127
|
"div",
|
|
122
128
|
{
|
|
123
129
|
"aria-hidden": "true",
|
|
124
|
-
className:
|
|
130
|
+
className: f(V(), n),
|
|
125
131
|
style: {
|
|
126
132
|
left: e,
|
|
127
133
|
width: s
|
|
@@ -129,7 +135,7 @@ const R = m(
|
|
|
129
135
|
...a
|
|
130
136
|
}
|
|
131
137
|
);
|
|
132
|
-
function
|
|
138
|
+
function W(e, s) {
|
|
133
139
|
const [n, a] = g({
|
|
134
140
|
left: 0,
|
|
135
141
|
width: 0
|
|
@@ -137,57 +143,59 @@ function $(e, s) {
|
|
|
137
143
|
return j(() => {
|
|
138
144
|
const r = s.current;
|
|
139
145
|
if (!r) return;
|
|
140
|
-
const
|
|
146
|
+
const o = r.querySelector(
|
|
141
147
|
`a#tabs-trigger-${e}`
|
|
142
148
|
);
|
|
143
|
-
if (!i) return;
|
|
144
|
-
const o = i.parentElement;
|
|
145
149
|
if (!o) return;
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
const i = o.parentElement;
|
|
151
|
+
if (!i) return;
|
|
152
|
+
const l = () => {
|
|
153
|
+
const u = i.offsetLeft - r.scrollLeft, v = i.offsetWidth;
|
|
154
|
+
a({ left: u, width: v });
|
|
149
155
|
};
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
|
|
156
|
+
l();
|
|
157
|
+
const c = () => {
|
|
158
|
+
l();
|
|
153
159
|
};
|
|
154
|
-
r.addEventListener("scroll",
|
|
155
|
-
const
|
|
156
|
-
|
|
160
|
+
r.addEventListener("scroll", c, { passive: !0 });
|
|
161
|
+
const b = requestAnimationFrame(() => {
|
|
162
|
+
o.scrollIntoView({
|
|
157
163
|
behavior: "smooth",
|
|
158
164
|
inline: "center",
|
|
159
165
|
block: "nearest"
|
|
160
166
|
});
|
|
161
167
|
});
|
|
162
168
|
return () => {
|
|
163
|
-
cancelAnimationFrame(
|
|
169
|
+
cancelAnimationFrame(b), r.removeEventListener("scroll", c);
|
|
164
170
|
};
|
|
165
171
|
}, [e, s]), n;
|
|
166
172
|
}
|
|
167
|
-
const
|
|
173
|
+
const $ = ({
|
|
168
174
|
value: e,
|
|
169
175
|
onValueChange: s,
|
|
170
176
|
children: n,
|
|
171
177
|
className: a,
|
|
172
|
-
|
|
178
|
+
fullWidth: r = !1,
|
|
179
|
+
...o
|
|
173
180
|
}) => {
|
|
174
181
|
const i = {
|
|
175
182
|
activeTab: e,
|
|
176
|
-
setActiveTab: s
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
setActiveTab: s,
|
|
184
|
+
fullWidth: r
|
|
185
|
+
}, l = T(null), c = W(e, l);
|
|
186
|
+
return /* @__PURE__ */ t.jsx(x.Provider, { value: i, children: /* @__PURE__ */ t.jsx(
|
|
179
187
|
"nav",
|
|
180
188
|
{
|
|
181
|
-
className:
|
|
189
|
+
className: f("relative w-full", a),
|
|
182
190
|
"aria-label": "Tabs",
|
|
183
|
-
...
|
|
191
|
+
...o,
|
|
184
192
|
children: /* @__PURE__ */ t.jsxs("div", { className: "relative overflow-hidden", children: [
|
|
185
193
|
/* @__PURE__ */ t.jsx(
|
|
186
194
|
"ul",
|
|
187
195
|
{
|
|
188
196
|
role: "tablist",
|
|
189
197
|
className: L(),
|
|
190
|
-
ref:
|
|
198
|
+
ref: l,
|
|
191
199
|
children: n
|
|
192
200
|
}
|
|
193
201
|
),
|
|
@@ -201,10 +209,10 @@ const q = ({
|
|
|
201
209
|
] })
|
|
202
210
|
}
|
|
203
211
|
) });
|
|
204
|
-
}, G = Object.assign(
|
|
212
|
+
}, G = Object.assign($, {
|
|
205
213
|
Trigger: A
|
|
206
214
|
});
|
|
207
215
|
export {
|
|
208
|
-
|
|
216
|
+
D as B,
|
|
209
217
|
G as T
|
|
210
218
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import * as
|
|
1
|
+
import { c as l, j as t, a as i } from "./index-DOdDlCoL.js";
|
|
2
|
+
import * as b from "react";
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
|
-
import { n as
|
|
4
|
+
import { n as x } from "./image-rectangle-K9jmTTED.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
6
|
import { L as y } from "./skeleton-BNZyaRjo.js";
|
|
7
|
-
const w =
|
|
7
|
+
const w = l(
|
|
8
8
|
"w-full flex flex-wrap items-center pt-3 mb-3 gap-2 bg-white [&>[data-versaur-appbar-bottom]]:basis-full [&>[data-versaur-appbar-bottom]]:w-full [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-leading]]:pl-4 [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-trailing]]:pr-4 [&:not(:has([data-versaur-appbar-bottom]))]:px-4",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -20,7 +20,7 @@ const w = i(
|
|
|
20
20
|
variant: "primary"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
), B =
|
|
23
|
+
), B = l(
|
|
24
24
|
"flex flex-col justify-center min-w-0 flex-grow",
|
|
25
25
|
{
|
|
26
26
|
variants: {
|
|
@@ -40,7 +40,7 @@ const w = i(
|
|
|
40
40
|
{
|
|
41
41
|
ref: e,
|
|
42
42
|
"data-versaur-appbar-bottom": !0,
|
|
43
|
-
className:
|
|
43
|
+
className: i("w-full flex items-center min-h-[2.5rem] mt-2", a),
|
|
44
44
|
children: s
|
|
45
45
|
}
|
|
46
46
|
)
|
|
@@ -49,13 +49,13 @@ const w = i(
|
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
ref: e,
|
|
52
|
-
className:
|
|
52
|
+
className: i("flex items-center", a),
|
|
53
53
|
"data-versaur-appbar-leading": !0,
|
|
54
54
|
children: s
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
), z = o(({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
|
|
58
|
-
|
|
58
|
+
x,
|
|
59
59
|
{
|
|
60
60
|
...a,
|
|
61
61
|
as: "h1",
|
|
@@ -67,7 +67,7 @@ const w = i(
|
|
|
67
67
|
children: s
|
|
68
68
|
}
|
|
69
69
|
)), S = o(({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
|
|
70
|
-
|
|
70
|
+
x,
|
|
71
71
|
{
|
|
72
72
|
...a,
|
|
73
73
|
ref: e,
|
|
@@ -84,7 +84,7 @@ const w = i(
|
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
86
86
|
ref: e,
|
|
87
|
-
className:
|
|
87
|
+
className: i("flex items-center justify-end gap-2", a),
|
|
88
88
|
"data-versaur-appbar-trailing": !0,
|
|
89
89
|
children: s
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ const w = i(
|
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
96
|
ref: r,
|
|
97
|
-
className:
|
|
97
|
+
className: i(B({ placement: e }), a),
|
|
98
98
|
children: s
|
|
99
99
|
}
|
|
100
100
|
)
|
|
@@ -105,7 +105,7 @@ const w = i(
|
|
|
105
105
|
}) => /* @__PURE__ */ t.jsx(
|
|
106
106
|
"header",
|
|
107
107
|
{
|
|
108
|
-
className:
|
|
108
|
+
className: i(w({ variant: e }), a),
|
|
109
109
|
role: "banner",
|
|
110
110
|
children: s
|
|
111
111
|
}
|
|
@@ -116,7 +116,7 @@ const w = i(
|
|
|
116
116
|
Trailing: T,
|
|
117
117
|
Center: C,
|
|
118
118
|
Bottom: N
|
|
119
|
-
}), L =
|
|
119
|
+
}), L = l(
|
|
120
120
|
"sticky bottom-0 w-full flex justify-around items-center bg-white border-t border-border shadow-xs z-40 safe-bottom gap-4 select-none px-8",
|
|
121
121
|
{
|
|
122
122
|
variants: {
|
|
@@ -138,7 +138,7 @@ const w = i(
|
|
|
138
138
|
size: "md"
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
), A =
|
|
141
|
+
), A = l(
|
|
142
142
|
"flex flex-col items-center justify-center gap-1",
|
|
143
143
|
{
|
|
144
144
|
variants: {
|
|
@@ -165,10 +165,10 @@ const w = i(
|
|
|
165
165
|
className: n,
|
|
166
166
|
children: c,
|
|
167
167
|
...d
|
|
168
|
-
},
|
|
168
|
+
}, u) => /* @__PURE__ */ t.jsxs(
|
|
169
169
|
s,
|
|
170
170
|
{
|
|
171
|
-
ref:
|
|
171
|
+
ref: u,
|
|
172
172
|
"aria-current": r ? "page" : void 0,
|
|
173
173
|
className: A({ active: r, className: n, as: s }),
|
|
174
174
|
...d,
|
|
@@ -196,7 +196,7 @@ const w = i(
|
|
|
196
196
|
}
|
|
197
197
|
), Aa = Object.assign(I, {
|
|
198
198
|
Item: P
|
|
199
|
-
}), R =
|
|
199
|
+
}), R = l("flex items-center", {
|
|
200
200
|
variants: {
|
|
201
201
|
orientation: {
|
|
202
202
|
horizontal: "flex-row",
|
|
@@ -220,13 +220,18 @@ const w = i(
|
|
|
220
220
|
fluid: {
|
|
221
221
|
true: "[&>*]:flex-1",
|
|
222
222
|
false: ""
|
|
223
|
+
},
|
|
224
|
+
overlay: {
|
|
225
|
+
true: "flex-nowrap overflow-x-auto",
|
|
226
|
+
false: "flex-wrap"
|
|
223
227
|
}
|
|
224
228
|
},
|
|
225
229
|
defaultVariants: {
|
|
226
230
|
orientation: "horizontal",
|
|
227
231
|
alignment: "start",
|
|
228
232
|
gap: "md",
|
|
229
|
-
fluid: !1
|
|
233
|
+
fluid: !1,
|
|
234
|
+
overlay: !1
|
|
230
235
|
}
|
|
231
236
|
}), Pa = o(
|
|
232
237
|
function({
|
|
@@ -236,30 +241,32 @@ const w = i(
|
|
|
236
241
|
alignment: n = "start",
|
|
237
242
|
gap: c = "md",
|
|
238
243
|
fluid: d = !1,
|
|
239
|
-
hasMargin:
|
|
240
|
-
|
|
241
|
-
|
|
244
|
+
hasMargin: u,
|
|
245
|
+
overlay: p = !1,
|
|
246
|
+
...m
|
|
247
|
+
}, f) {
|
|
242
248
|
return /* @__PURE__ */ t.jsx(
|
|
243
249
|
"div",
|
|
244
250
|
{
|
|
245
|
-
ref:
|
|
246
|
-
className:
|
|
251
|
+
ref: f,
|
|
252
|
+
className: i(
|
|
247
253
|
R({
|
|
248
254
|
orientation: r,
|
|
249
255
|
alignment: n,
|
|
250
256
|
gap: c,
|
|
251
|
-
fluid: d
|
|
257
|
+
fluid: d,
|
|
258
|
+
overlay: p
|
|
252
259
|
}),
|
|
253
|
-
|
|
260
|
+
u && "mb-4",
|
|
254
261
|
a
|
|
255
262
|
),
|
|
256
263
|
role: "group",
|
|
257
|
-
...
|
|
264
|
+
...m,
|
|
258
265
|
children: e
|
|
259
266
|
}
|
|
260
267
|
);
|
|
261
268
|
}
|
|
262
|
-
), G =
|
|
269
|
+
), G = l("flex items-center", {
|
|
263
270
|
variants: {
|
|
264
271
|
orientation: {
|
|
265
272
|
horizontal: "flex-row",
|
|
@@ -283,13 +290,18 @@ const w = i(
|
|
|
283
290
|
fluid: {
|
|
284
291
|
true: "[&>*]:flex-1",
|
|
285
292
|
false: ""
|
|
293
|
+
},
|
|
294
|
+
overlay: {
|
|
295
|
+
true: "flex-nowrap overflow-x-auto",
|
|
296
|
+
false: "flex-wrap"
|
|
286
297
|
}
|
|
287
298
|
},
|
|
288
299
|
defaultVariants: {
|
|
289
300
|
orientation: "horizontal",
|
|
290
301
|
alignment: "start",
|
|
291
302
|
gap: "md",
|
|
292
|
-
fluid: !1
|
|
303
|
+
fluid: !1,
|
|
304
|
+
overlay: !1
|
|
293
305
|
}
|
|
294
306
|
}), Ia = o(
|
|
295
307
|
function({
|
|
@@ -299,30 +311,32 @@ const w = i(
|
|
|
299
311
|
alignment: n = "start",
|
|
300
312
|
gap: c = "md",
|
|
301
313
|
fluid: d = !1,
|
|
302
|
-
hasMargin:
|
|
303
|
-
|
|
304
|
-
|
|
314
|
+
hasMargin: u,
|
|
315
|
+
overlay: p = !1,
|
|
316
|
+
...m
|
|
317
|
+
}, f) {
|
|
305
318
|
return /* @__PURE__ */ t.jsx(
|
|
306
319
|
"div",
|
|
307
320
|
{
|
|
308
|
-
ref:
|
|
309
|
-
className:
|
|
321
|
+
ref: f,
|
|
322
|
+
className: i(
|
|
310
323
|
G({
|
|
311
324
|
orientation: r,
|
|
312
325
|
alignment: n,
|
|
313
326
|
gap: c,
|
|
314
|
-
fluid: d
|
|
327
|
+
fluid: d,
|
|
328
|
+
overlay: p
|
|
315
329
|
}),
|
|
316
|
-
|
|
330
|
+
u && "mb-4",
|
|
317
331
|
a
|
|
318
332
|
),
|
|
319
333
|
role: "group",
|
|
320
|
-
...
|
|
334
|
+
...m,
|
|
321
335
|
children: e
|
|
322
336
|
}
|
|
323
337
|
);
|
|
324
338
|
}
|
|
325
|
-
), k =
|
|
339
|
+
), k = l("flex items-center", {
|
|
326
340
|
variants: {
|
|
327
341
|
orientation: {
|
|
328
342
|
horizontal: "flex-row",
|
|
@@ -346,13 +360,18 @@ const w = i(
|
|
|
346
360
|
fluid: {
|
|
347
361
|
true: "[&>*]:flex-1",
|
|
348
362
|
false: ""
|
|
363
|
+
},
|
|
364
|
+
overlay: {
|
|
365
|
+
true: "flex-nowrap overflow-x-auto",
|
|
366
|
+
false: "flex-wrap"
|
|
349
367
|
}
|
|
350
368
|
},
|
|
351
369
|
defaultVariants: {
|
|
352
370
|
orientation: "horizontal",
|
|
353
371
|
alignment: "start",
|
|
354
372
|
gap: "md",
|
|
355
|
-
fluid: !1
|
|
373
|
+
fluid: !1,
|
|
374
|
+
overlay: !1
|
|
356
375
|
}
|
|
357
376
|
}), Ra = o(
|
|
358
377
|
function({
|
|
@@ -362,30 +381,32 @@ const w = i(
|
|
|
362
381
|
alignment: n = "start",
|
|
363
382
|
gap: c = "md",
|
|
364
383
|
fluid: d = !1,
|
|
365
|
-
hasMargin:
|
|
366
|
-
|
|
367
|
-
|
|
384
|
+
hasMargin: u,
|
|
385
|
+
overlay: p = !1,
|
|
386
|
+
...m
|
|
387
|
+
}, f) {
|
|
368
388
|
return /* @__PURE__ */ t.jsx(
|
|
369
389
|
"div",
|
|
370
390
|
{
|
|
371
|
-
ref:
|
|
372
|
-
className:
|
|
391
|
+
ref: f,
|
|
392
|
+
className: i(
|
|
373
393
|
k({
|
|
374
394
|
orientation: r,
|
|
375
395
|
alignment: n,
|
|
376
396
|
gap: c,
|
|
377
|
-
fluid: d
|
|
397
|
+
fluid: d,
|
|
398
|
+
overlay: p
|
|
378
399
|
}),
|
|
379
|
-
|
|
400
|
+
u && "mb-4",
|
|
380
401
|
a
|
|
381
402
|
),
|
|
382
403
|
role: "group",
|
|
383
|
-
...
|
|
404
|
+
...m,
|
|
384
405
|
children: e
|
|
385
406
|
}
|
|
386
407
|
);
|
|
387
408
|
}
|
|
388
|
-
), F =
|
|
409
|
+
), F = l("w-full mb-4", {
|
|
389
410
|
variants: {
|
|
390
411
|
backgroundColor: {
|
|
391
412
|
white: "bg-white",
|
|
@@ -395,7 +416,7 @@ const w = i(
|
|
|
395
416
|
defaultVariants: {
|
|
396
417
|
backgroundColor: "white"
|
|
397
418
|
}
|
|
398
|
-
}), O =
|
|
419
|
+
}), O = l("w-full mx-auto pt-4 md:pt-10", {
|
|
399
420
|
variants: {
|
|
400
421
|
size: {
|
|
401
422
|
fluid: "max-w-full px-0",
|
|
@@ -406,20 +427,20 @@ const w = i(
|
|
|
406
427
|
defaultVariants: {
|
|
407
428
|
size: "fluid"
|
|
408
429
|
}
|
|
409
|
-
}), W =
|
|
430
|
+
}), W = l(
|
|
410
431
|
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 mb-4"
|
|
411
|
-
), M =
|
|
432
|
+
), M = l("mb-4"), E = l(
|
|
412
433
|
"flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
|
|
413
|
-
), $ =
|
|
434
|
+
), $ = l("flex items-center gap-2 flex-wrap"), q = l(
|
|
414
435
|
"hidden md:flex flex-col sm:flex-row gap-2 sm:gap-3 w-full w-auto sm:ml-auto sm:shrink-0 [&>*]:w-full sm:[&>*]:w-auto"
|
|
415
|
-
), D =
|
|
436
|
+
), D = l("md:hidden"), J = l(
|
|
416
437
|
"w-full flex items-center py-0 overflow-x-auto"
|
|
417
438
|
), K = o(
|
|
418
439
|
({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
419
440
|
"div",
|
|
420
441
|
{
|
|
421
442
|
ref: r,
|
|
422
|
-
className:
|
|
443
|
+
className: i(W(), a),
|
|
423
444
|
"data-versaur-page-header-top": !0,
|
|
424
445
|
...e,
|
|
425
446
|
children: s
|
|
@@ -429,7 +450,7 @@ const w = i(
|
|
|
429
450
|
"div",
|
|
430
451
|
{
|
|
431
452
|
ref: r,
|
|
432
|
-
className:
|
|
453
|
+
className: i(M(), a),
|
|
433
454
|
"data-versaur-page-header-breadcrumbs": !0,
|
|
434
455
|
...e,
|
|
435
456
|
children: s
|
|
@@ -438,13 +459,13 @@ const w = i(
|
|
|
438
459
|
"div",
|
|
439
460
|
{
|
|
440
461
|
ref: r,
|
|
441
|
-
className:
|
|
462
|
+
className: i(E(), a),
|
|
442
463
|
"data-versaur-page-header-content": !0,
|
|
443
464
|
...e,
|
|
444
465
|
children: s
|
|
445
466
|
}
|
|
446
467
|
)), X = o((s, a) => /* @__PURE__ */ t.jsx(
|
|
447
|
-
|
|
468
|
+
x,
|
|
448
469
|
{
|
|
449
470
|
...s,
|
|
450
471
|
as: "h1",
|
|
@@ -454,21 +475,21 @@ const w = i(
|
|
|
454
475
|
ref: a
|
|
455
476
|
}
|
|
456
477
|
)), Y = o(({ className: s, ...a }, e) => /* @__PURE__ */ t.jsx(
|
|
457
|
-
|
|
478
|
+
x,
|
|
458
479
|
{
|
|
459
480
|
as: "p",
|
|
460
481
|
fontSize: "sm",
|
|
461
482
|
fontWeight: "normal",
|
|
462
483
|
clamp: 2,
|
|
463
484
|
ref: e,
|
|
464
|
-
className:
|
|
485
|
+
className: i("mb-2 sm:clamp-3", s),
|
|
465
486
|
...a
|
|
466
487
|
}
|
|
467
488
|
)), Z = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
468
489
|
"div",
|
|
469
490
|
{
|
|
470
491
|
ref: r,
|
|
471
|
-
className:
|
|
492
|
+
className: i($(), a),
|
|
472
493
|
"data-versaur-page-header-badges": !0,
|
|
473
494
|
...e,
|
|
474
495
|
children: s
|
|
@@ -477,7 +498,7 @@ const w = i(
|
|
|
477
498
|
"div",
|
|
478
499
|
{
|
|
479
500
|
ref: r,
|
|
480
|
-
className:
|
|
501
|
+
className: i(q(), a),
|
|
481
502
|
"data-versaur-page-header-actions": !0,
|
|
482
503
|
...e,
|
|
483
504
|
children: s
|
|
@@ -486,7 +507,7 @@ const w = i(
|
|
|
486
507
|
"div",
|
|
487
508
|
{
|
|
488
509
|
ref: r,
|
|
489
|
-
className:
|
|
510
|
+
className: i(D(), a),
|
|
490
511
|
"data-versaur-page-header-mobile-actions": !0,
|
|
491
512
|
...e,
|
|
492
513
|
children: s
|
|
@@ -495,7 +516,7 @@ const w = i(
|
|
|
495
516
|
"div",
|
|
496
517
|
{
|
|
497
518
|
ref: r,
|
|
498
|
-
className:
|
|
519
|
+
className: i(J(), a),
|
|
499
520
|
"data-versaur-page-header-bottom": !0,
|
|
500
521
|
...e,
|
|
501
522
|
children: s
|
|
@@ -509,40 +530,40 @@ const w = i(
|
|
|
509
530
|
title: n,
|
|
510
531
|
subtitle: c,
|
|
511
532
|
breadcrumbs: d,
|
|
512
|
-
badges:
|
|
533
|
+
badges: u,
|
|
513
534
|
actions: p,
|
|
514
|
-
mobileActions:
|
|
515
|
-
tabs:
|
|
535
|
+
mobileActions: m,
|
|
536
|
+
tabs: f,
|
|
516
537
|
...g
|
|
517
538
|
}, h) => {
|
|
518
|
-
const j =
|
|
539
|
+
const j = f;
|
|
519
540
|
return /* @__PURE__ */ t.jsx(
|
|
520
541
|
"header",
|
|
521
542
|
{
|
|
522
543
|
ref: h,
|
|
523
|
-
className:
|
|
544
|
+
className: i(F({ backgroundColor: r })),
|
|
524
545
|
role: "banner",
|
|
525
546
|
...g,
|
|
526
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
547
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: i(O({ size: e }), a), children: [
|
|
527
548
|
d && /* @__PURE__ */ t.jsx(Q, { children: d }),
|
|
528
549
|
/* @__PURE__ */ t.jsxs(K, { children: [
|
|
529
550
|
/* @__PURE__ */ t.jsxs(U, { children: [
|
|
530
551
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
531
552
|
/* @__PURE__ */ t.jsx(X, { children: n }),
|
|
532
|
-
|
|
553
|
+
m && /* @__PURE__ */ t.jsx(aa, { children: m })
|
|
533
554
|
] }),
|
|
534
555
|
c && /* @__PURE__ */ t.jsx(Y, { children: c }),
|
|
535
|
-
|
|
556
|
+
u && /* @__PURE__ */ t.jsx(Z, { children: u })
|
|
536
557
|
] }),
|
|
537
558
|
p && /* @__PURE__ */ t.jsx(_, { children: p })
|
|
538
559
|
] }),
|
|
539
|
-
j && /* @__PURE__ */ t.jsx(ea, { children:
|
|
560
|
+
j && /* @__PURE__ */ t.jsx(ea, { children: f }),
|
|
540
561
|
s
|
|
541
562
|
] })
|
|
542
563
|
}
|
|
543
564
|
);
|
|
544
565
|
}
|
|
545
|
-
), Ga = ta, sa =
|
|
566
|
+
), Ga = ta, sa = l("w-full", {
|
|
546
567
|
variants: {
|
|
547
568
|
backgroundColor: {
|
|
548
569
|
white: "bg-white",
|
|
@@ -552,7 +573,7 @@ const w = i(
|
|
|
552
573
|
defaultVariants: {
|
|
553
574
|
backgroundColor: "white"
|
|
554
575
|
}
|
|
555
|
-
}), ra =
|
|
576
|
+
}), ra = l("w-full mx-auto relative", {
|
|
556
577
|
variants: {
|
|
557
578
|
size: {
|
|
558
579
|
fluid: "max-w-full px-0",
|
|
@@ -570,7 +591,7 @@ const w = i(
|
|
|
570
591
|
size: "fluid",
|
|
571
592
|
template: "single-column"
|
|
572
593
|
}
|
|
573
|
-
}), ka =
|
|
594
|
+
}), ka = b.forwardRef(
|
|
574
595
|
function({
|
|
575
596
|
size: a = "fluid",
|
|
576
597
|
template: e = "single-column",
|
|
@@ -578,17 +599,17 @@ const w = i(
|
|
|
578
599
|
className: n,
|
|
579
600
|
children: c,
|
|
580
601
|
...d
|
|
581
|
-
},
|
|
602
|
+
}, u) {
|
|
582
603
|
return /* @__PURE__ */ t.jsx(
|
|
583
604
|
"div",
|
|
584
605
|
{
|
|
585
|
-
ref:
|
|
586
|
-
className:
|
|
606
|
+
ref: u,
|
|
607
|
+
className: i(sa({ backgroundColor: r })),
|
|
587
608
|
...d,
|
|
588
609
|
children: /* @__PURE__ */ t.jsx(
|
|
589
610
|
"div",
|
|
590
611
|
{
|
|
591
|
-
className:
|
|
612
|
+
className: i(
|
|
592
613
|
ra({ size: a, template: e }),
|
|
593
614
|
n
|
|
594
615
|
),
|
|
@@ -598,7 +619,7 @@ const w = i(
|
|
|
598
619
|
}
|
|
599
620
|
);
|
|
600
621
|
}
|
|
601
|
-
), na =
|
|
622
|
+
), na = l(
|
|
602
623
|
[
|
|
603
624
|
// Base styles: flex container that centers content
|
|
604
625
|
"flex",
|
|
@@ -634,12 +655,12 @@ const w = i(
|
|
|
634
655
|
fullscreen: !1
|
|
635
656
|
}
|
|
636
657
|
}
|
|
637
|
-
), oa =
|
|
658
|
+
), oa = l([
|
|
638
659
|
"text-foreground-light",
|
|
639
660
|
"text-sm",
|
|
640
661
|
"text-center",
|
|
641
662
|
"max-w-xs"
|
|
642
|
-
]), Fa =
|
|
663
|
+
]), Fa = b.forwardRef(
|
|
643
664
|
function({
|
|
644
665
|
type: a = "bar",
|
|
645
666
|
size: e = "sm",
|
|
@@ -647,17 +668,17 @@ const w = i(
|
|
|
647
668
|
ariaLabel: n = "Loading page",
|
|
648
669
|
message: c,
|
|
649
670
|
fullscreen: d = !1,
|
|
650
|
-
minimal:
|
|
671
|
+
minimal: u = !1,
|
|
651
672
|
className: p,
|
|
652
|
-
children:
|
|
653
|
-
...
|
|
673
|
+
children: m,
|
|
674
|
+
...f
|
|
654
675
|
}, g) {
|
|
655
676
|
return /* @__PURE__ */ t.jsxs(
|
|
656
677
|
"div",
|
|
657
678
|
{
|
|
658
679
|
ref: g,
|
|
659
|
-
className:
|
|
660
|
-
...
|
|
680
|
+
className: i(na({ minimal: u, fullscreen: d }), p),
|
|
681
|
+
...f,
|
|
661
682
|
children: [
|
|
662
683
|
/* @__PURE__ */ t.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ t.jsx(
|
|
663
684
|
y,
|
|
@@ -669,12 +690,12 @@ const w = i(
|
|
|
669
690
|
}
|
|
670
691
|
) }),
|
|
671
692
|
c && /* @__PURE__ */ t.jsx("p", { className: oa(), "aria-live": "polite", children: c }),
|
|
672
|
-
|
|
693
|
+
m
|
|
673
694
|
]
|
|
674
695
|
}
|
|
675
696
|
);
|
|
676
697
|
}
|
|
677
|
-
),
|
|
698
|
+
), la = l("grid w-full gap-4 grid-cols-12"), ia = l("", {
|
|
678
699
|
variants: {
|
|
679
700
|
span: {
|
|
680
701
|
1: "col-span-1",
|
|
@@ -700,7 +721,7 @@ const w = i(
|
|
|
700
721
|
"div",
|
|
701
722
|
{
|
|
702
723
|
ref: n,
|
|
703
|
-
className:
|
|
724
|
+
className: i(la(), a),
|
|
704
725
|
...r,
|
|
705
726
|
children: e
|
|
706
727
|
}
|
|
@@ -713,8 +734,8 @@ const w = i(
|
|
|
713
734
|
"div",
|
|
714
735
|
{
|
|
715
736
|
ref: c,
|
|
716
|
-
className:
|
|
717
|
-
|
|
737
|
+
className: i(
|
|
738
|
+
ia({ span: `${d}` }),
|
|
718
739
|
e
|
|
719
740
|
),
|
|
720
741
|
...n,
|
|
@@ -724,7 +745,7 @@ const w = i(
|
|
|
724
745
|
}
|
|
725
746
|
), Oa = Object.assign(ca, {
|
|
726
747
|
Column: da
|
|
727
|
-
}),
|
|
748
|
+
}), v = l(
|
|
728
749
|
"flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
|
|
729
750
|
{
|
|
730
751
|
variants: {
|
|
@@ -742,53 +763,53 @@ const w = i(
|
|
|
742
763
|
disabled: !1
|
|
743
764
|
}
|
|
744
765
|
}
|
|
745
|
-
),
|
|
766
|
+
), ua = o(
|
|
746
767
|
(s, a) => {
|
|
747
|
-
const { icon: e, children: r, href: n, onClick: c, active: d, ...
|
|
768
|
+
const { icon: e, children: r, href: n, onClick: c, active: d, ...u } = s;
|
|
748
769
|
if (typeof n == "string") {
|
|
749
|
-
const
|
|
770
|
+
const m = u;
|
|
750
771
|
return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
|
|
751
772
|
"a",
|
|
752
773
|
{
|
|
753
774
|
ref: a,
|
|
754
775
|
href: n,
|
|
755
|
-
className:
|
|
776
|
+
className: v({
|
|
756
777
|
disabled: !!s["aria-disabled"],
|
|
757
778
|
active: d
|
|
758
779
|
}),
|
|
759
|
-
...
|
|
780
|
+
...m,
|
|
760
781
|
children: [
|
|
761
782
|
e,
|
|
762
|
-
/* @__PURE__ */ t.jsx(
|
|
783
|
+
/* @__PURE__ */ t.jsx(x, { as: "span", color: "inherit", fontSize: "sm", children: r })
|
|
763
784
|
]
|
|
764
785
|
}
|
|
765
786
|
) });
|
|
766
787
|
} else {
|
|
767
|
-
const
|
|
788
|
+
const m = u;
|
|
768
789
|
return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
|
|
769
790
|
"button",
|
|
770
791
|
{
|
|
771
792
|
ref: a,
|
|
772
793
|
type: "button",
|
|
773
794
|
onClick: c,
|
|
774
|
-
className:
|
|
775
|
-
|
|
795
|
+
className: i(
|
|
796
|
+
v({ disabled: !!m.disabled, active: d }),
|
|
776
797
|
"w-full text-left"
|
|
777
798
|
),
|
|
778
|
-
...
|
|
799
|
+
...m,
|
|
779
800
|
children: [
|
|
780
801
|
e,
|
|
781
|
-
/* @__PURE__ */ t.jsx(
|
|
802
|
+
/* @__PURE__ */ t.jsx(x, { as: "span", color: "inherit", fontSize: "sm", children: r })
|
|
782
803
|
]
|
|
783
804
|
}
|
|
784
805
|
) });
|
|
785
806
|
}
|
|
786
807
|
}
|
|
787
|
-
),
|
|
808
|
+
), ma = o(
|
|
788
809
|
function({ children: a, label: e, ...r }, n) {
|
|
789
810
|
return /* @__PURE__ */ t.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...r, children: [
|
|
790
811
|
/* @__PURE__ */ t.jsx(
|
|
791
|
-
|
|
812
|
+
x,
|
|
792
813
|
{
|
|
793
814
|
as: "h2",
|
|
794
815
|
fontSize: "xs",
|
|
@@ -813,15 +834,15 @@ const w = i(
|
|
|
813
834
|
}
|
|
814
835
|
)
|
|
815
836
|
), Wa = Object.assign(pa, {
|
|
816
|
-
Item:
|
|
817
|
-
Group:
|
|
818
|
-
}), fa =
|
|
837
|
+
Item: ua,
|
|
838
|
+
Group: ma
|
|
839
|
+
}), fa = l(
|
|
819
840
|
"w-full flex items-center px-6 py-4 border-b border-border shadow-xs bg-white",
|
|
820
841
|
{
|
|
821
842
|
variants: {},
|
|
822
843
|
defaultVariants: {}
|
|
823
844
|
}
|
|
824
|
-
), xa =
|
|
845
|
+
), xa = l("flex items-center gap-3 min-w-0 flex-1"), ga = l("flex items-center gap-2 ml-auto"), va = l(
|
|
825
846
|
"px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
|
|
826
847
|
{
|
|
827
848
|
variants: {
|
|
@@ -834,9 +855,9 @@ const w = i(
|
|
|
834
855
|
active: !1
|
|
835
856
|
}
|
|
836
857
|
}
|
|
837
|
-
),
|
|
858
|
+
), ba = l("flex items-center gap-2 ml-4"), ha = l("flex items-center gap-2 mr-4"), ja = o(
|
|
838
859
|
function({ children: a, className: e, ...r }, n) {
|
|
839
|
-
return /* @__PURE__ */ t.jsx("nav", { ref: n, className:
|
|
860
|
+
return /* @__PURE__ */ t.jsx("nav", { ref: n, className: ba({ className: e }), ...r, children: a });
|
|
840
861
|
}
|
|
841
862
|
), ya = o(
|
|
842
863
|
function({ children: a, className: e, ...r }, n) {
|
|
@@ -856,7 +877,7 @@ const w = i(
|
|
|
856
877
|
"div",
|
|
857
878
|
{
|
|
858
879
|
ref: c,
|
|
859
|
-
className:
|
|
880
|
+
className: va({ active: r, className: e }),
|
|
860
881
|
"aria-current": r ? "page" : void 0,
|
|
861
882
|
...n,
|
|
862
883
|
children: a
|
|
@@ -7,6 +7,8 @@ export interface TabsContextValue {
|
|
|
7
7
|
activeTab: string;
|
|
8
8
|
/** Set active tab */
|
|
9
9
|
setActiveTab: (tab: string) => void;
|
|
10
|
+
/** Whether tab triggers should fill available width */
|
|
11
|
+
fullWidth?: boolean;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* TabsRootProps: Props for Tabs root (rendered as nav element)
|
|
@@ -18,6 +20,8 @@ export interface TabsRootProps extends HTMLAttributes<HTMLElement> {
|
|
|
18
20
|
onValueChange: (tab: string) => void;
|
|
19
21
|
/** Children: Tabs.Trigger */
|
|
20
22
|
children: ReactNode;
|
|
23
|
+
/** Whether tab triggers should fill available width equally */
|
|
24
|
+
fullWidth?: boolean;
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
27
|
* TabsTriggerProps: Individual tab link (rendered as li > a)
|