@dimasbaguspm/versaur 0.0.4 → 0.0.6
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/components/badge/badge.stories.d.ts +4 -0
- package/dist/components/badge/helpers.d.ts +1 -0
- package/dist/components/badge/types.d.ts +7 -0
- package/dist/components/text-input/types.d.ts +1 -1
- package/dist/components/textarea-input/types.d.ts +1 -1
- package/dist/index.js +1260 -1240
- package/dist/styles.css +16 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { ChevronLeft as
|
|
1
|
+
import * as yt from "react";
|
|
2
|
+
import I, { forwardRef as E, useState as H, useEffect as J, useCallback as ke, createContext as ee, useContext as te, useRef as ce, useId as Ee, useLayoutEffect as kt } from "react";
|
|
3
|
+
import { ChevronLeft as jt, ChevronRight as Nt, Check as Ct, X as zt } from "lucide-react";
|
|
4
4
|
var ve = { exports: {} }, be = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -12,26 +12,26 @@ var ve = { exports: {} }, be = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Me;
|
|
15
|
-
function
|
|
15
|
+
function It() {
|
|
16
16
|
if (Me) return be;
|
|
17
17
|
Me = 1;
|
|
18
|
-
var e = Symbol.for("react.transitional.element"),
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
if (a !== void 0 && (
|
|
18
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
19
|
+
function r(o, s, a) {
|
|
20
|
+
var l = null;
|
|
21
|
+
if (a !== void 0 && (l = "" + a), s.key !== void 0 && (l = "" + s.key), "key" in s) {
|
|
22
22
|
a = {};
|
|
23
|
-
for (var
|
|
24
|
-
|
|
23
|
+
for (var i in s)
|
|
24
|
+
i !== "key" && (a[i] = s[i]);
|
|
25
25
|
} else a = s;
|
|
26
26
|
return s = a.ref, {
|
|
27
27
|
$$typeof: e,
|
|
28
28
|
type: o,
|
|
29
|
-
key:
|
|
29
|
+
key: l,
|
|
30
30
|
ref: s !== void 0 ? s : null,
|
|
31
31
|
props: a
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return be.Fragment =
|
|
34
|
+
return be.Fragment = t, be.jsx = r, be.jsxs = r, be;
|
|
35
35
|
}
|
|
36
36
|
var me = {};
|
|
37
37
|
/**
|
|
@@ -44,7 +44,7 @@ var me = {};
|
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
46
|
var Pe;
|
|
47
|
-
function
|
|
47
|
+
function St() {
|
|
48
48
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
49
|
function e(u) {
|
|
50
50
|
if (u == null) return null;
|
|
@@ -76,37 +76,37 @@ function zr() {
|
|
|
76
76
|
case A:
|
|
77
77
|
return (u._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case M:
|
|
79
|
-
var
|
|
80
|
-
return u = u.displayName, u || (u =
|
|
81
|
-
case
|
|
82
|
-
return
|
|
79
|
+
var z = u.render;
|
|
80
|
+
return u = u.displayName, u || (u = z.displayName || z.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
81
|
+
case Y:
|
|
82
|
+
return z = u.displayName || null, z !== null ? z : e(u.type) || "Memo";
|
|
83
83
|
case j:
|
|
84
|
-
|
|
84
|
+
z = u._payload, u = u._init;
|
|
85
85
|
try {
|
|
86
|
-
return e(u(
|
|
86
|
+
return e(u(z));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function t(u) {
|
|
93
93
|
return "" + u;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function r(u) {
|
|
96
96
|
try {
|
|
97
|
-
|
|
98
|
-
var
|
|
97
|
+
t(u);
|
|
98
|
+
var z = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
z = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var T =
|
|
102
|
+
if (z) {
|
|
103
|
+
z = console;
|
|
104
|
+
var T = z.error, V = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
105
105
|
return T.call(
|
|
106
|
-
|
|
106
|
+
z,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
108
|
V
|
|
109
|
-
),
|
|
109
|
+
), t(u);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function o(u) {
|
|
@@ -114,8 +114,8 @@ function zr() {
|
|
|
114
114
|
if (typeof u == "object" && u !== null && u.$$typeof === j)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var z = e(u);
|
|
118
|
+
return z ? "<" + z + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
@@ -127,18 +127,18 @@ function zr() {
|
|
|
127
127
|
function a() {
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
if (
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
130
|
+
function l(u) {
|
|
131
|
+
if (re.call(u, "key")) {
|
|
132
|
+
var z = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
133
|
+
if (z && z.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return u.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function i(u, z) {
|
|
138
138
|
function T() {
|
|
139
139
|
X || (X = !0, console.error(
|
|
140
140
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
|
-
|
|
141
|
+
z
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
144
|
T.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
@@ -152,11 +152,11 @@ function zr() {
|
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
154
154
|
}
|
|
155
|
-
function d(u,
|
|
155
|
+
function d(u, z, T, V, P, $, ae, O) {
|
|
156
156
|
return T = $.ref, u = {
|
|
157
157
|
$$typeof: m,
|
|
158
158
|
type: u,
|
|
159
|
-
key:
|
|
159
|
+
key: z,
|
|
160
160
|
props: $,
|
|
161
161
|
_owner: P
|
|
162
162
|
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(u, "ref", {
|
|
@@ -184,8 +184,8 @@ function zr() {
|
|
|
184
184
|
value: O
|
|
185
185
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
186
186
|
}
|
|
187
|
-
function f(u,
|
|
188
|
-
var B =
|
|
187
|
+
function f(u, z, T, V, P, $, ae, O) {
|
|
188
|
+
var B = z.children;
|
|
189
189
|
if (B !== void 0)
|
|
190
190
|
if (V)
|
|
191
191
|
if (xe(B)) {
|
|
@@ -197,12 +197,12 @@ function zr() {
|
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
199
|
else g(B);
|
|
200
|
-
if (
|
|
200
|
+
if (re.call(z, "key")) {
|
|
201
201
|
B = e(u);
|
|
202
|
-
var
|
|
202
|
+
var q = Object.keys(z).filter(function(fe) {
|
|
203
203
|
return fe !== "key";
|
|
204
204
|
});
|
|
205
|
-
V = 0 <
|
|
205
|
+
V = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", ge[B + V] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
@@ -211,16 +211,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
212
|
V,
|
|
213
213
|
B,
|
|
214
|
-
|
|
214
|
+
q,
|
|
215
215
|
B
|
|
216
216
|
), ge[B + V] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (B = null, T !== void 0 && (
|
|
218
|
+
if (B = null, T !== void 0 && (r(T), B = "" + T), l(z) && (r(z.key), B = "" + z.key), "key" in z) {
|
|
219
219
|
T = {};
|
|
220
|
-
for (var Z in
|
|
221
|
-
Z !== "key" && (T[Z] =
|
|
222
|
-
} else T =
|
|
223
|
-
return B &&
|
|
220
|
+
for (var Z in z)
|
|
221
|
+
Z !== "key" && (T[Z] = z[Z]);
|
|
222
|
+
} else T = z;
|
|
223
|
+
return B && i(
|
|
224
224
|
T,
|
|
225
225
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
226
226
|
), d(
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function g(u) {
|
|
238
238
|
typeof u == "object" && u !== null && u.$$typeof === m && u._store && (u._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var b =
|
|
240
|
+
var b = I, m = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), N = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), _ = Symbol.for("react.client.reference"), ne = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, xe = Array.isArray, oe = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
b = {
|
|
@@ -245,130 +245,130 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return u();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var X, W = {},
|
|
248
|
+
var X, W = {}, U = b["react-stack-bottom-frame"].bind(
|
|
249
249
|
b,
|
|
250
250
|
a
|
|
251
251
|
)(), k = oe(o(a)), ge = {};
|
|
252
|
-
me.Fragment = w, me.jsx = function(u,
|
|
252
|
+
me.Fragment = w, me.jsx = function(u, z, T, V, P) {
|
|
253
253
|
var $ = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return f(
|
|
255
255
|
u,
|
|
256
|
-
|
|
256
|
+
z,
|
|
257
257
|
T,
|
|
258
258
|
!1,
|
|
259
259
|
V,
|
|
260
260
|
P,
|
|
261
|
-
$ ? Error("react-stack-top-frame") :
|
|
261
|
+
$ ? Error("react-stack-top-frame") : U,
|
|
262
262
|
$ ? oe(o(u)) : k
|
|
263
263
|
);
|
|
264
|
-
}, me.jsxs = function(u,
|
|
264
|
+
}, me.jsxs = function(u, z, T, V, P) {
|
|
265
265
|
var $ = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return f(
|
|
267
267
|
u,
|
|
268
|
-
|
|
268
|
+
z,
|
|
269
269
|
T,
|
|
270
270
|
!0,
|
|
271
271
|
V,
|
|
272
272
|
P,
|
|
273
|
-
$ ? Error("react-stack-top-frame") :
|
|
273
|
+
$ ? Error("react-stack-top-frame") : U,
|
|
274
274
|
$ ? oe(o(u)) : k
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), me;
|
|
278
278
|
}
|
|
279
279
|
var Oe;
|
|
280
|
-
function
|
|
281
|
-
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports =
|
|
280
|
+
function Rt() {
|
|
281
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports = It() : ve.exports = St()), ve.exports;
|
|
282
282
|
}
|
|
283
|
-
var n =
|
|
284
|
-
function
|
|
285
|
-
var
|
|
283
|
+
var n = Rt();
|
|
284
|
+
function Ye(e) {
|
|
285
|
+
var t, r, o = "";
|
|
286
286
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
287
287
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
288
288
|
var s = e.length;
|
|
289
|
-
for (
|
|
290
|
-
} else for (
|
|
289
|
+
for (t = 0; t < s; t++) e[t] && (r = Ye(e[t])) && (o && (o += " "), o += r);
|
|
290
|
+
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
291
291
|
return o;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
for (var e,
|
|
293
|
+
function qe() {
|
|
294
|
+
for (var e, t, r = 0, o = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = Ye(e)) && (o && (o += " "), o += t);
|
|
295
295
|
return o;
|
|
296
296
|
}
|
|
297
|
-
const Te = "-",
|
|
298
|
-
const
|
|
299
|
-
conflictingClassGroups:
|
|
297
|
+
const Te = "-", Vt = (e) => {
|
|
298
|
+
const t = Tt(e), {
|
|
299
|
+
conflictingClassGroups: r,
|
|
300
300
|
conflictingClassGroupModifiers: o
|
|
301
301
|
} = e;
|
|
302
302
|
return {
|
|
303
|
-
getClassGroupId: (
|
|
304
|
-
const
|
|
305
|
-
return
|
|
303
|
+
getClassGroupId: (l) => {
|
|
304
|
+
const i = l.split(Te);
|
|
305
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Ue(i, t) || Et(l);
|
|
306
306
|
},
|
|
307
|
-
getConflictingClassGroupIds: (
|
|
308
|
-
const c =
|
|
309
|
-
return
|
|
307
|
+
getConflictingClassGroupIds: (l, i) => {
|
|
308
|
+
const c = r[l] || [];
|
|
309
|
+
return i && o[l] ? [...c, ...o[l]] : c;
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
|
-
},
|
|
312
|
+
}, Ue = (e, t) => {
|
|
313
313
|
if (e.length === 0)
|
|
314
|
-
return
|
|
315
|
-
const
|
|
314
|
+
return t.classGroupId;
|
|
315
|
+
const r = e[0], o = t.nextPart.get(r), s = o ? Ue(e.slice(1), o) : void 0;
|
|
316
316
|
if (s)
|
|
317
317
|
return s;
|
|
318
|
-
if (
|
|
318
|
+
if (t.validators.length === 0)
|
|
319
319
|
return;
|
|
320
320
|
const a = e.join(Te);
|
|
321
|
-
return
|
|
322
|
-
validator:
|
|
323
|
-
}) =>
|
|
324
|
-
}, Be = /^\[(.+)\]$/,
|
|
321
|
+
return t.validators.find(({
|
|
322
|
+
validator: l
|
|
323
|
+
}) => l(a))?.classGroupId;
|
|
324
|
+
}, Be = /^\[(.+)\]$/, Et = (e) => {
|
|
325
325
|
if (Be.test(e)) {
|
|
326
|
-
const
|
|
327
|
-
if (
|
|
328
|
-
return "arbitrary.." +
|
|
326
|
+
const t = Be.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
327
|
+
if (r)
|
|
328
|
+
return "arbitrary.." + r;
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, Tt = (e) => {
|
|
331
331
|
const {
|
|
332
|
-
theme:
|
|
333
|
-
classGroups:
|
|
332
|
+
theme: t,
|
|
333
|
+
classGroups: r
|
|
334
334
|
} = e, o = {
|
|
335
335
|
nextPart: /* @__PURE__ */ new Map(),
|
|
336
336
|
validators: []
|
|
337
337
|
};
|
|
338
|
-
for (const s in
|
|
339
|
-
Se(
|
|
338
|
+
for (const s in r)
|
|
339
|
+
Se(r[s], o, s, t);
|
|
340
340
|
return o;
|
|
341
|
-
}, Se = (e,
|
|
341
|
+
}, Se = (e, t, r, o) => {
|
|
342
342
|
e.forEach((s) => {
|
|
343
343
|
if (typeof s == "string") {
|
|
344
|
-
const a = s === "" ?
|
|
345
|
-
a.classGroupId =
|
|
344
|
+
const a = s === "" ? t : De(t, s);
|
|
345
|
+
a.classGroupId = r;
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
348
|
if (typeof s == "function") {
|
|
349
|
-
if (
|
|
350
|
-
Se(s(o),
|
|
349
|
+
if (At(s)) {
|
|
350
|
+
Se(s(o), t, r, o);
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
t.validators.push({
|
|
354
354
|
validator: s,
|
|
355
|
-
classGroupId:
|
|
355
|
+
classGroupId: r
|
|
356
356
|
});
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
Object.entries(s).forEach(([a,
|
|
360
|
-
Se(
|
|
359
|
+
Object.entries(s).forEach(([a, l]) => {
|
|
360
|
+
Se(l, De(t, a), r, o);
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
}, De = (e,
|
|
364
|
-
let
|
|
365
|
-
return
|
|
366
|
-
|
|
363
|
+
}, De = (e, t) => {
|
|
364
|
+
let r = e;
|
|
365
|
+
return t.split(Te).forEach((o) => {
|
|
366
|
+
r.nextPart.has(o) || r.nextPart.set(o, {
|
|
367
367
|
nextPart: /* @__PURE__ */ new Map(),
|
|
368
368
|
validators: []
|
|
369
|
-
}),
|
|
370
|
-
}),
|
|
371
|
-
},
|
|
369
|
+
}), r = r.nextPart.get(o);
|
|
370
|
+
}), r;
|
|
371
|
+
}, At = (e) => e.isThemeGetter, Mt = (e) => {
|
|
372
372
|
if (e < 1)
|
|
373
373
|
return {
|
|
374
374
|
get: () => {
|
|
@@ -376,35 +376,35 @@ const Te = "-", Rr = (e) => {
|
|
|
376
376
|
set: () => {
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
let
|
|
380
|
-
const s = (a,
|
|
381
|
-
|
|
379
|
+
let t = 0, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
380
|
+
const s = (a, l) => {
|
|
381
|
+
r.set(a, l), t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ new Map());
|
|
382
382
|
};
|
|
383
383
|
return {
|
|
384
384
|
get(a) {
|
|
385
|
-
let
|
|
386
|
-
if (
|
|
387
|
-
return
|
|
388
|
-
if ((
|
|
389
|
-
return s(a,
|
|
385
|
+
let l = r.get(a);
|
|
386
|
+
if (l !== void 0)
|
|
387
|
+
return l;
|
|
388
|
+
if ((l = o.get(a)) !== void 0)
|
|
389
|
+
return s(a, l), l;
|
|
390
390
|
},
|
|
391
|
-
set(a,
|
|
392
|
-
|
|
391
|
+
set(a, l) {
|
|
392
|
+
r.has(a) ? r.set(a, l) : s(a, l);
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
-
}, Re = "!", Ve = ":",
|
|
395
|
+
}, Re = "!", Ve = ":", Pt = Ve.length, Ot = (e) => {
|
|
396
396
|
const {
|
|
397
|
-
prefix:
|
|
398
|
-
experimentalParseClassName:
|
|
397
|
+
prefix: t,
|
|
398
|
+
experimentalParseClassName: r
|
|
399
399
|
} = e;
|
|
400
400
|
let o = (s) => {
|
|
401
401
|
const a = [];
|
|
402
|
-
let
|
|
402
|
+
let l = 0, i = 0, c = 0, d;
|
|
403
403
|
for (let v = 0; v < s.length; v++) {
|
|
404
404
|
let w = s[v];
|
|
405
|
-
if (
|
|
405
|
+
if (l === 0 && i === 0) {
|
|
406
406
|
if (w === Ve) {
|
|
407
|
-
a.push(s.slice(c, v)), c = v +
|
|
407
|
+
a.push(s.slice(c, v)), c = v + Pt;
|
|
408
408
|
continue;
|
|
409
409
|
}
|
|
410
410
|
if (w === "/") {
|
|
@@ -412,9 +412,9 @@ const Te = "-", Rr = (e) => {
|
|
|
412
412
|
continue;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
w === "[" ?
|
|
415
|
+
w === "[" ? l++ : w === "]" ? l-- : w === "(" ? i++ : w === ")" && i--;
|
|
416
416
|
}
|
|
417
|
-
const f = a.length === 0 ? s : s.substring(c), g =
|
|
417
|
+
const f = a.length === 0 ? s : s.substring(c), g = Bt(f), b = g !== f, m = d && d > c ? d - c : void 0;
|
|
418
418
|
return {
|
|
419
419
|
modifiers: a,
|
|
420
420
|
hasImportantModifier: b,
|
|
@@ -422,56 +422,56 @@ const Te = "-", Rr = (e) => {
|
|
|
422
422
|
maybePostfixModifierPosition: m
|
|
423
423
|
};
|
|
424
424
|
};
|
|
425
|
-
if (
|
|
426
|
-
const s =
|
|
427
|
-
o = (
|
|
425
|
+
if (t) {
|
|
426
|
+
const s = t + Ve, a = o;
|
|
427
|
+
o = (l) => l.startsWith(s) ? a(l.substring(s.length)) : {
|
|
428
428
|
isExternal: !0,
|
|
429
429
|
modifiers: [],
|
|
430
430
|
hasImportantModifier: !1,
|
|
431
|
-
baseClassName:
|
|
431
|
+
baseClassName: l,
|
|
432
432
|
maybePostfixModifierPosition: void 0
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
if (
|
|
435
|
+
if (r) {
|
|
436
436
|
const s = o;
|
|
437
|
-
o = (a) =>
|
|
437
|
+
o = (a) => r({
|
|
438
438
|
className: a,
|
|
439
439
|
parseClassName: s
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
return o;
|
|
443
|
-
},
|
|
444
|
-
const
|
|
443
|
+
}, Bt = (e) => e.endsWith(Re) ? e.substring(0, e.length - 1) : e.startsWith(Re) ? e.substring(1) : e, Dt = (e) => {
|
|
444
|
+
const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
|
|
445
445
|
return (o) => {
|
|
446
446
|
if (o.length <= 1)
|
|
447
447
|
return o;
|
|
448
448
|
const s = [];
|
|
449
449
|
let a = [];
|
|
450
|
-
return o.forEach((
|
|
451
|
-
|
|
450
|
+
return o.forEach((l) => {
|
|
451
|
+
l[0] === "[" || t[l] ? (s.push(...a.sort(), l), a = []) : a.push(l);
|
|
452
452
|
}), s.push(...a.sort()), s;
|
|
453
453
|
};
|
|
454
|
-
},
|
|
455
|
-
cache:
|
|
456
|
-
parseClassName:
|
|
457
|
-
sortModifiers:
|
|
458
|
-
...
|
|
459
|
-
}),
|
|
454
|
+
}, _t = (e) => ({
|
|
455
|
+
cache: Mt(e.cacheSize),
|
|
456
|
+
parseClassName: Ot(e),
|
|
457
|
+
sortModifiers: Dt(e),
|
|
458
|
+
...Vt(e)
|
|
459
|
+
}), Ft = /\s+/, Lt = (e, t) => {
|
|
460
460
|
const {
|
|
461
|
-
parseClassName:
|
|
461
|
+
parseClassName: r,
|
|
462
462
|
getClassGroupId: o,
|
|
463
463
|
getConflictingClassGroupIds: s,
|
|
464
464
|
sortModifiers: a
|
|
465
|
-
} =
|
|
465
|
+
} = t, l = [], i = e.trim().split(Ft);
|
|
466
466
|
let c = "";
|
|
467
|
-
for (let d =
|
|
468
|
-
const f =
|
|
467
|
+
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
468
|
+
const f = i[d], {
|
|
469
469
|
isExternal: g,
|
|
470
470
|
modifiers: b,
|
|
471
471
|
hasImportantModifier: m,
|
|
472
472
|
baseClassName: v,
|
|
473
473
|
maybePostfixModifierPosition: w
|
|
474
|
-
} =
|
|
474
|
+
} = r(f);
|
|
475
475
|
if (g) {
|
|
476
476
|
c = f + (c.length > 0 ? " " + c : c);
|
|
477
477
|
continue;
|
|
@@ -489,65 +489,65 @@ const Te = "-", Rr = (e) => {
|
|
|
489
489
|
C = !1;
|
|
490
490
|
}
|
|
491
491
|
const A = a(b).join(":"), N = m ? A + Re : A, M = N + R;
|
|
492
|
-
if (
|
|
492
|
+
if (l.includes(M))
|
|
493
493
|
continue;
|
|
494
|
-
|
|
494
|
+
l.push(M);
|
|
495
495
|
const F = s(R, C);
|
|
496
496
|
for (let L = 0; L < F.length; ++L) {
|
|
497
|
-
const
|
|
498
|
-
|
|
497
|
+
const Y = F[L];
|
|
498
|
+
l.push(N + Y);
|
|
499
499
|
}
|
|
500
500
|
c = f + (c.length > 0 ? " " + c : c);
|
|
501
501
|
}
|
|
502
502
|
return c;
|
|
503
503
|
};
|
|
504
|
-
function
|
|
505
|
-
let e = 0,
|
|
504
|
+
function $t() {
|
|
505
|
+
let e = 0, t, r, o = "";
|
|
506
506
|
for (; e < arguments.length; )
|
|
507
|
-
(
|
|
507
|
+
(t = arguments[e++]) && (r = He(t)) && (o && (o += " "), o += r);
|
|
508
508
|
return o;
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const He = (e) => {
|
|
511
511
|
if (typeof e == "string")
|
|
512
512
|
return e;
|
|
513
|
-
let
|
|
513
|
+
let t, r = "";
|
|
514
514
|
for (let o = 0; o < e.length; o++)
|
|
515
|
-
e[o] && (
|
|
516
|
-
return
|
|
515
|
+
e[o] && (t = He(e[o])) && (r && (r += " "), r += t);
|
|
516
|
+
return r;
|
|
517
517
|
};
|
|
518
|
-
function
|
|
519
|
-
let
|
|
520
|
-
function i(c) {
|
|
521
|
-
const d = r.reduce((f, g) => g(f), e());
|
|
522
|
-
return t = Dr(d), o = t.cache.get, s = t.cache.set, a = l, l(c);
|
|
523
|
-
}
|
|
518
|
+
function Gt(e, ...t) {
|
|
519
|
+
let r, o, s, a = l;
|
|
524
520
|
function l(c) {
|
|
521
|
+
const d = t.reduce((f, g) => g(f), e());
|
|
522
|
+
return r = _t(d), o = r.cache.get, s = r.cache.set, a = i, i(c);
|
|
523
|
+
}
|
|
524
|
+
function i(c) {
|
|
525
525
|
const d = o(c);
|
|
526
526
|
if (d)
|
|
527
527
|
return d;
|
|
528
|
-
const f =
|
|
528
|
+
const f = Lt(c, r);
|
|
529
529
|
return s(c, f), f;
|
|
530
530
|
}
|
|
531
531
|
return function() {
|
|
532
|
-
return a(
|
|
532
|
+
return a($t.apply(null, arguments));
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
535
|
const D = (e) => {
|
|
536
|
-
const
|
|
537
|
-
return
|
|
538
|
-
},
|
|
536
|
+
const t = (r) => r[e] || [];
|
|
537
|
+
return t.isThemeGetter = !0, t;
|
|
538
|
+
}, Je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wt = /^\d+\/\d+$/, Yt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ut = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ht = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ie = (e) => Wt.test(e), S = (e) => !!e && !Number.isNaN(Number(e)), Q = (e) => !!e && Number.isInteger(Number(e)), Ne = (e) => e.endsWith("%") && S(e.slice(0, -1)), K = (e) => Yt.test(e), Xt = () => !0, Kt = (e) => (
|
|
539
539
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
540
540
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
541
541
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
542
|
-
|
|
543
|
-
),
|
|
544
|
-
const o = He.exec(e);
|
|
545
|
-
return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
|
|
546
|
-
}, ue = (e, r, t = !1) => {
|
|
542
|
+
qt.test(e) && !Ut.test(e)
|
|
543
|
+
), Ke = () => !1, Zt = (e) => Ht.test(e), Qt = (e) => Jt.test(e), er = (e) => !h(e) && !x(e), tr = (e) => de(e, et, Ke), h = (e) => Je.test(e), se = (e) => de(e, tt, Kt), Ce = (e) => de(e, ar, S), _e = (e) => de(e, Ze, Ke), rr = (e) => de(e, Qe, Qt), we = (e) => de(e, rt, Zt), x = (e) => Xe.test(e), he = (e) => ue(e, tt), or = (e) => ue(e, ir), Fe = (e) => ue(e, Ze), sr = (e) => ue(e, et), nr = (e) => ue(e, Qe), ye = (e) => ue(e, rt, !0), de = (e, t, r) => {
|
|
547
544
|
const o = Je.exec(e);
|
|
548
|
-
return o ? o[1] ?
|
|
549
|
-
},
|
|
550
|
-
const
|
|
545
|
+
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
546
|
+
}, ue = (e, t, r = !1) => {
|
|
547
|
+
const o = Xe.exec(e);
|
|
548
|
+
return o ? o[1] ? t(o[1]) : r : !1;
|
|
549
|
+
}, Ze = (e) => e === "position" || e === "percentage", Qe = (e) => e === "image" || e === "url", et = (e) => e === "length" || e === "size" || e === "bg-size", tt = (e) => e === "length", ar = (e) => e === "number", ir = (e) => e === "family-name", rt = (e) => e === "shadow", lr = () => {
|
|
550
|
+
const e = D("color"), t = D("font"), r = D("text"), o = D("font-weight"), s = D("tracking"), a = D("leading"), l = D("breakpoint"), i = D("container"), c = D("spacing"), d = D("radius"), f = D("shadow"), g = D("inset-shadow"), b = D("text-shadow"), m = D("drop-shadow"), v = D("blur"), w = D("perspective"), C = D("aspect"), R = D("ease"), A = D("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
|
|
551
551
|
"center",
|
|
552
552
|
"top",
|
|
553
553
|
"bottom",
|
|
@@ -565,13 +565,13 @@ const D = (e) => {
|
|
|
565
565
|
"bottom-left",
|
|
566
566
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
567
567
|
"left-bottom"
|
|
568
|
-
], F = () => [...M(), x, h], L = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
568
|
+
], F = () => [...M(), x, h], L = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", "contain", "none"], j = () => [x, h, c], G = () => [ie, "full", "auto", ...j()], _ = () => [Q, "none", "subgrid", x, h], ne = () => ["auto", {
|
|
569
569
|
span: ["full", Q, x, h]
|
|
570
|
-
}, Q, x, h],
|
|
570
|
+
}, Q, x, h], re = () => [Q, "auto", x, h], xe = () => ["auto", "min", "max", "fr", x, h], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], X = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...j()], U = () => [ie, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...j()], k = () => [e, x, h], ge = () => [...M(), Fe, _e, {
|
|
571
571
|
position: [x, h]
|
|
572
572
|
}], u = () => ["no-repeat", {
|
|
573
573
|
repeat: ["", "x", "y", "space", "round"]
|
|
574
|
-
}],
|
|
574
|
+
}], z = () => ["auto", "cover", "contain", sr, tr, {
|
|
575
575
|
size: [x, h]
|
|
576
576
|
}], T = () => [Ne, he, se], V = () => [
|
|
577
577
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -588,7 +588,7 @@ const D = (e) => {
|
|
|
588
588
|
v,
|
|
589
589
|
x,
|
|
590
590
|
h
|
|
591
|
-
],
|
|
591
|
+
], q = () => ["none", S, x, h], Z = () => ["none", S, x, h], fe = () => [S, x, h], pe = () => [ie, "full", ...j()];
|
|
592
592
|
return {
|
|
593
593
|
cacheSize: 500,
|
|
594
594
|
theme: {
|
|
@@ -596,11 +596,11 @@ const D = (e) => {
|
|
|
596
596
|
aspect: ["video"],
|
|
597
597
|
blur: [K],
|
|
598
598
|
breakpoint: [K],
|
|
599
|
-
color: [
|
|
599
|
+
color: [Xt],
|
|
600
600
|
container: [K],
|
|
601
601
|
"drop-shadow": [K],
|
|
602
602
|
ease: ["in", "out", "in-out"],
|
|
603
|
-
font: [
|
|
603
|
+
font: [er],
|
|
604
604
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
605
605
|
"inset-shadow": [K],
|
|
606
606
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -634,7 +634,7 @@ const D = (e) => {
|
|
|
634
634
|
* @see https://tailwindcss.com/docs/columns
|
|
635
635
|
*/
|
|
636
636
|
columns: [{
|
|
637
|
-
columns: [S, h, x,
|
|
637
|
+
columns: [S, h, x, i]
|
|
638
638
|
}],
|
|
639
639
|
/**
|
|
640
640
|
* Break After
|
|
@@ -740,21 +740,21 @@ const D = (e) => {
|
|
|
740
740
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
741
741
|
*/
|
|
742
742
|
overscroll: [{
|
|
743
|
-
overscroll:
|
|
743
|
+
overscroll: Y()
|
|
744
744
|
}],
|
|
745
745
|
/**
|
|
746
746
|
* Overscroll Behavior X
|
|
747
747
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
748
748
|
*/
|
|
749
749
|
"overscroll-x": [{
|
|
750
|
-
"overscroll-x":
|
|
750
|
+
"overscroll-x": Y()
|
|
751
751
|
}],
|
|
752
752
|
/**
|
|
753
753
|
* Overscroll Behavior Y
|
|
754
754
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
755
755
|
*/
|
|
756
756
|
"overscroll-y": [{
|
|
757
|
-
"overscroll-y":
|
|
757
|
+
"overscroll-y": Y()
|
|
758
758
|
}],
|
|
759
759
|
/**
|
|
760
760
|
* Position
|
|
@@ -844,7 +844,7 @@ const D = (e) => {
|
|
|
844
844
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
845
845
|
*/
|
|
846
846
|
basis: [{
|
|
847
|
-
basis: [ie, "full", "auto",
|
|
847
|
+
basis: [ie, "full", "auto", i, ...j()]
|
|
848
848
|
}],
|
|
849
849
|
/**
|
|
850
850
|
* Flex Direction
|
|
@@ -907,14 +907,14 @@ const D = (e) => {
|
|
|
907
907
|
* @see https://tailwindcss.com/docs/grid-column
|
|
908
908
|
*/
|
|
909
909
|
"col-start": [{
|
|
910
|
-
"col-start":
|
|
910
|
+
"col-start": re()
|
|
911
911
|
}],
|
|
912
912
|
/**
|
|
913
913
|
* Grid Column End
|
|
914
914
|
* @see https://tailwindcss.com/docs/grid-column
|
|
915
915
|
*/
|
|
916
916
|
"col-end": [{
|
|
917
|
-
"col-end":
|
|
917
|
+
"col-end": re()
|
|
918
918
|
}],
|
|
919
919
|
/**
|
|
920
920
|
* Grid Template Rows
|
|
@@ -935,14 +935,14 @@ const D = (e) => {
|
|
|
935
935
|
* @see https://tailwindcss.com/docs/grid-row
|
|
936
936
|
*/
|
|
937
937
|
"row-start": [{
|
|
938
|
-
"row-start":
|
|
938
|
+
"row-start": re()
|
|
939
939
|
}],
|
|
940
940
|
/**
|
|
941
941
|
* Grid Row End
|
|
942
942
|
* @see https://tailwindcss.com/docs/grid-row
|
|
943
943
|
*/
|
|
944
944
|
"row-end": [{
|
|
945
|
-
"row-end":
|
|
945
|
+
"row-end": re()
|
|
946
946
|
}],
|
|
947
947
|
/**
|
|
948
948
|
* Grid Auto Flow
|
|
@@ -1212,14 +1212,14 @@ const D = (e) => {
|
|
|
1212
1212
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1213
1213
|
*/
|
|
1214
1214
|
size: [{
|
|
1215
|
-
size:
|
|
1215
|
+
size: U()
|
|
1216
1216
|
}],
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Width
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/width
|
|
1220
1220
|
*/
|
|
1221
1221
|
w: [{
|
|
1222
|
-
w: [
|
|
1222
|
+
w: [i, "screen", ...U()]
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Min-Width
|
|
@@ -1227,11 +1227,11 @@ const D = (e) => {
|
|
|
1227
1227
|
*/
|
|
1228
1228
|
"min-w": [{
|
|
1229
1229
|
"min-w": [
|
|
1230
|
-
|
|
1230
|
+
i,
|
|
1231
1231
|
"screen",
|
|
1232
1232
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1233
1233
|
"none",
|
|
1234
|
-
...
|
|
1234
|
+
...U()
|
|
1235
1235
|
]
|
|
1236
1236
|
}],
|
|
1237
1237
|
/**
|
|
@@ -1240,16 +1240,16 @@ const D = (e) => {
|
|
|
1240
1240
|
*/
|
|
1241
1241
|
"max-w": [{
|
|
1242
1242
|
"max-w": [
|
|
1243
|
-
|
|
1243
|
+
i,
|
|
1244
1244
|
"screen",
|
|
1245
1245
|
"none",
|
|
1246
1246
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1247
1247
|
"prose",
|
|
1248
1248
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1249
1249
|
{
|
|
1250
|
-
screen: [
|
|
1250
|
+
screen: [l]
|
|
1251
1251
|
},
|
|
1252
|
-
...
|
|
1252
|
+
...U()
|
|
1253
1253
|
]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
@@ -1257,21 +1257,21 @@ const D = (e) => {
|
|
|
1257
1257
|
* @see https://tailwindcss.com/docs/height
|
|
1258
1258
|
*/
|
|
1259
1259
|
h: [{
|
|
1260
|
-
h: ["screen", "lh", ...
|
|
1260
|
+
h: ["screen", "lh", ...U()]
|
|
1261
1261
|
}],
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Min-Height
|
|
1264
1264
|
* @see https://tailwindcss.com/docs/min-height
|
|
1265
1265
|
*/
|
|
1266
1266
|
"min-h": [{
|
|
1267
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1267
|
+
"min-h": ["screen", "lh", "none", ...U()]
|
|
1268
1268
|
}],
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Max-Height
|
|
1271
1271
|
* @see https://tailwindcss.com/docs/max-height
|
|
1272
1272
|
*/
|
|
1273
1273
|
"max-h": [{
|
|
1274
|
-
"max-h": ["screen", "lh", ...
|
|
1274
|
+
"max-h": ["screen", "lh", ...U()]
|
|
1275
1275
|
}],
|
|
1276
1276
|
// ------------------
|
|
1277
1277
|
// --- Typography ---
|
|
@@ -1281,7 +1281,7 @@ const D = (e) => {
|
|
|
1281
1281
|
* @see https://tailwindcss.com/docs/font-size
|
|
1282
1282
|
*/
|
|
1283
1283
|
"font-size": [{
|
|
1284
|
-
text: ["base",
|
|
1284
|
+
text: ["base", r, he, se]
|
|
1285
1285
|
}],
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Font Smoothing
|
|
@@ -1312,7 +1312,7 @@ const D = (e) => {
|
|
|
1312
1312
|
* @see https://tailwindcss.com/docs/font-family
|
|
1313
1313
|
*/
|
|
1314
1314
|
"font-family": [{
|
|
1315
|
-
font: [
|
|
1315
|
+
font: [or, h, t]
|
|
1316
1316
|
}],
|
|
1317
1317
|
/**
|
|
1318
1318
|
* Font Variant Numeric
|
|
@@ -1554,7 +1554,7 @@ const D = (e) => {
|
|
|
1554
1554
|
* @see https://tailwindcss.com/docs/background-size
|
|
1555
1555
|
*/
|
|
1556
1556
|
"bg-size": [{
|
|
1557
|
-
bg:
|
|
1557
|
+
bg: z()
|
|
1558
1558
|
}],
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Background Image
|
|
@@ -1567,7 +1567,7 @@ const D = (e) => {
|
|
|
1567
1567
|
}, Q, x, h],
|
|
1568
1568
|
radial: ["", x, h],
|
|
1569
1569
|
conic: [Q, x, h]
|
|
1570
|
-
},
|
|
1570
|
+
}, nr, rr]
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Background Color
|
|
@@ -2231,7 +2231,7 @@ const D = (e) => {
|
|
|
2231
2231
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2232
2232
|
*/
|
|
2233
2233
|
"mask-size": [{
|
|
2234
|
-
mask:
|
|
2234
|
+
mask: z()
|
|
2235
2235
|
}],
|
|
2236
2236
|
/**
|
|
2237
2237
|
* Mask Type
|
|
@@ -2535,28 +2535,28 @@ const D = (e) => {
|
|
|
2535
2535
|
* @see https://tailwindcss.com/docs/rotate
|
|
2536
2536
|
*/
|
|
2537
2537
|
rotate: [{
|
|
2538
|
-
rotate:
|
|
2538
|
+
rotate: q()
|
|
2539
2539
|
}],
|
|
2540
2540
|
/**
|
|
2541
2541
|
* Rotate X
|
|
2542
2542
|
* @see https://tailwindcss.com/docs/rotate
|
|
2543
2543
|
*/
|
|
2544
2544
|
"rotate-x": [{
|
|
2545
|
-
"rotate-x":
|
|
2545
|
+
"rotate-x": q()
|
|
2546
2546
|
}],
|
|
2547
2547
|
/**
|
|
2548
2548
|
* Rotate Y
|
|
2549
2549
|
* @see https://tailwindcss.com/docs/rotate
|
|
2550
2550
|
*/
|
|
2551
2551
|
"rotate-y": [{
|
|
2552
|
-
"rotate-y":
|
|
2552
|
+
"rotate-y": q()
|
|
2553
2553
|
}],
|
|
2554
2554
|
/**
|
|
2555
2555
|
* Rotate Z
|
|
2556
2556
|
* @see https://tailwindcss.com/docs/rotate
|
|
2557
2557
|
*/
|
|
2558
2558
|
"rotate-z": [{
|
|
2559
|
-
"rotate-z":
|
|
2559
|
+
"rotate-z": q()
|
|
2560
2560
|
}],
|
|
2561
2561
|
/**
|
|
2562
2562
|
* Scale
|
|
@@ -3016,31 +3016,31 @@ const D = (e) => {
|
|
|
3016
3016
|
},
|
|
3017
3017
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3018
3018
|
};
|
|
3019
|
-
},
|
|
3019
|
+
}, cr = /* @__PURE__ */ Gt(lr);
|
|
3020
3020
|
function p(...e) {
|
|
3021
|
-
return
|
|
3021
|
+
return cr(qe(e));
|
|
3022
3022
|
}
|
|
3023
|
-
const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e =
|
|
3023
|
+
const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = qe, y = (e, t) => (r) => {
|
|
3024
3024
|
var o;
|
|
3025
|
-
if (
|
|
3026
|
-
const { variants: s, defaultVariants: a } =
|
|
3027
|
-
const f =
|
|
3025
|
+
if (t?.variants == null) return $e(e, r?.class, r?.className);
|
|
3026
|
+
const { variants: s, defaultVariants: a } = t, l = Object.keys(s).map((d) => {
|
|
3027
|
+
const f = r?.[d], g = a?.[d];
|
|
3028
3028
|
if (f === null) return null;
|
|
3029
3029
|
const b = Le(f) || Le(g);
|
|
3030
3030
|
return s[d][b];
|
|
3031
|
-
}),
|
|
3031
|
+
}), i = r && Object.entries(r).reduce((d, f) => {
|
|
3032
3032
|
let [g, b] = f;
|
|
3033
3033
|
return b === void 0 || (d[g] = b), d;
|
|
3034
|
-
}, {}), c =
|
|
3034
|
+
}, {}), c = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, f) => {
|
|
3035
3035
|
let { class: g, className: b, ...m } = f;
|
|
3036
3036
|
return Object.entries(m).every((v) => {
|
|
3037
3037
|
let [w, C] = v;
|
|
3038
3038
|
return Array.isArray(C) ? C.includes({
|
|
3039
3039
|
...a,
|
|
3040
|
-
...
|
|
3040
|
+
...i
|
|
3041
3041
|
}[w]) : {
|
|
3042
3042
|
...a,
|
|
3043
|
-
...
|
|
3043
|
+
...i
|
|
3044
3044
|
}[w] === C;
|
|
3045
3045
|
}) ? [
|
|
3046
3046
|
...d,
|
|
@@ -3048,9 +3048,9 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3048
3048
|
b
|
|
3049
3049
|
] : d;
|
|
3050
3050
|
}, []);
|
|
3051
|
-
return $e(e,
|
|
3052
|
-
},
|
|
3053
|
-
"relative flex items-center gap-
|
|
3051
|
+
return $e(e, l, c, r?.class, r?.className);
|
|
3052
|
+
}, dr = y(
|
|
3053
|
+
"relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
|
|
3054
3054
|
{
|
|
3055
3055
|
variants: {
|
|
3056
3056
|
variant: {
|
|
@@ -3076,47 +3076,47 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3076
3076
|
{
|
|
3077
3077
|
variant: "default",
|
|
3078
3078
|
color: "primary",
|
|
3079
|
-
class: "bg-coral
|
|
3079
|
+
class: "bg-coral-soft text-coral border border-coral"
|
|
3080
3080
|
},
|
|
3081
3081
|
{
|
|
3082
3082
|
variant: "default",
|
|
3083
3083
|
color: "secondary",
|
|
3084
|
-
class: "bg-sage
|
|
3084
|
+
class: "bg-sage-soft text-sage border border-sage"
|
|
3085
3085
|
},
|
|
3086
3086
|
{
|
|
3087
3087
|
variant: "default",
|
|
3088
3088
|
color: "tertiary",
|
|
3089
|
-
class: "bg-mist
|
|
3089
|
+
class: "bg-mist-soft text-mist border border-mist"
|
|
3090
3090
|
},
|
|
3091
3091
|
{
|
|
3092
3092
|
variant: "default",
|
|
3093
3093
|
color: "ghost",
|
|
3094
|
-
class: "bg-slate
|
|
3094
|
+
class: "bg-slate-soft text-slate border border-slate"
|
|
3095
3095
|
},
|
|
3096
3096
|
{
|
|
3097
3097
|
variant: "default",
|
|
3098
3098
|
color: "neutral",
|
|
3099
|
-
class: "bg-
|
|
3099
|
+
class: "bg-border/50 text-foreground border border-border"
|
|
3100
3100
|
},
|
|
3101
3101
|
{
|
|
3102
3102
|
variant: "default",
|
|
3103
3103
|
color: "success",
|
|
3104
|
-
class: "bg-success
|
|
3104
|
+
class: "bg-success-soft text-success border border-success"
|
|
3105
3105
|
},
|
|
3106
3106
|
{
|
|
3107
3107
|
variant: "default",
|
|
3108
3108
|
color: "info",
|
|
3109
|
-
class: "bg-info
|
|
3109
|
+
class: "bg-info-soft text-info border border-info"
|
|
3110
3110
|
},
|
|
3111
3111
|
{
|
|
3112
3112
|
variant: "default",
|
|
3113
3113
|
color: "warning",
|
|
3114
|
-
class: "bg-warning
|
|
3114
|
+
class: "bg-warning-soft text-warning border border-warning"
|
|
3115
3115
|
},
|
|
3116
3116
|
{
|
|
3117
3117
|
variant: "default",
|
|
3118
3118
|
color: "danger",
|
|
3119
|
-
class: "bg-danger
|
|
3119
|
+
class: "bg-danger-soft text-danger border border-danger"
|
|
3120
3120
|
},
|
|
3121
3121
|
// Outline variant styles
|
|
3122
3122
|
{
|
|
@@ -3170,7 +3170,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3170
3170
|
color: "neutral"
|
|
3171
3171
|
}
|
|
3172
3172
|
}
|
|
3173
|
-
),
|
|
3173
|
+
), ur = y(
|
|
3174
3174
|
"flex-shrink-0 flex justify-center items-center ",
|
|
3175
3175
|
{
|
|
3176
3176
|
variants: {
|
|
@@ -3184,32 +3184,32 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3184
3184
|
size: "md"
|
|
3185
3185
|
}
|
|
3186
3186
|
}
|
|
3187
|
-
),
|
|
3188
|
-
({ className: e, children:
|
|
3189
|
-
),
|
|
3187
|
+
), ot = E(
|
|
3188
|
+
({ className: e, children: t, ...r }, o) => /* @__PURE__ */ n.jsx("div", { ref: o, className: p(ur(), e), ...r, children: t })
|
|
3189
|
+
), gr = E(
|
|
3190
3190
|
({
|
|
3191
3191
|
variant: e = "default",
|
|
3192
|
-
color:
|
|
3193
|
-
icon:
|
|
3192
|
+
color: t = "neutral",
|
|
3193
|
+
icon: r,
|
|
3194
3194
|
className: o,
|
|
3195
3195
|
children: s,
|
|
3196
3196
|
...a
|
|
3197
|
-
},
|
|
3197
|
+
}, l) => /* @__PURE__ */ n.jsxs(
|
|
3198
3198
|
"div",
|
|
3199
3199
|
{
|
|
3200
|
-
ref:
|
|
3200
|
+
ref: l,
|
|
3201
3201
|
role: "alert",
|
|
3202
|
-
className: p(
|
|
3202
|
+
className: p(dr({ variant: e, color: t }), o),
|
|
3203
3203
|
...a,
|
|
3204
3204
|
children: [
|
|
3205
|
-
|
|
3205
|
+
r && /* @__PURE__ */ n.jsx(ot, { children: r }),
|
|
3206
3206
|
/* @__PURE__ */ n.jsx("div", { className: "flex-1", children: s })
|
|
3207
3207
|
]
|
|
3208
3208
|
}
|
|
3209
3209
|
)
|
|
3210
|
-
),
|
|
3211
|
-
Icon:
|
|
3212
|
-
}),
|
|
3210
|
+
), Ds = Object.assign(gr, {
|
|
3211
|
+
Icon: ot
|
|
3212
|
+
}), fr = y(
|
|
3213
3213
|
"w-full flex items-center px-4 py-3 gap-2 bg-white",
|
|
3214
3214
|
{
|
|
3215
3215
|
variants: {
|
|
@@ -3225,7 +3225,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3225
3225
|
variant: "primary"
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
|
-
),
|
|
3228
|
+
), br = y(
|
|
3229
3229
|
"flex flex-col justify-center w-full min-w-0 ",
|
|
3230
3230
|
{
|
|
3231
3231
|
variants: {
|
|
@@ -3239,83 +3239,83 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3239
3239
|
placement: "start"
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
|
-
),
|
|
3243
|
-
({ children: e, className:
|
|
3244
|
-
),
|
|
3245
|
-
({ children: e, className:
|
|
3242
|
+
), mr = E(
|
|
3243
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx("div", { ref: r, className: p("flex items-center", t), children: e })
|
|
3244
|
+
), hr = E(
|
|
3245
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx(
|
|
3246
3246
|
"div",
|
|
3247
3247
|
{
|
|
3248
|
-
ref:
|
|
3249
|
-
className: p("font-semibold text-lg truncate min-w-0",
|
|
3248
|
+
ref: r,
|
|
3249
|
+
className: p("font-semibold text-lg truncate min-w-0", t),
|
|
3250
3250
|
children: e
|
|
3251
3251
|
}
|
|
3252
3252
|
)
|
|
3253
|
-
),
|
|
3254
|
-
({ children: e, className:
|
|
3253
|
+
), xr = E(
|
|
3254
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx(
|
|
3255
3255
|
"div",
|
|
3256
3256
|
{
|
|
3257
|
-
ref:
|
|
3258
|
-
className: p("text-xs text-slate-400 truncate min-w-0",
|
|
3257
|
+
ref: r,
|
|
3258
|
+
className: p("text-xs text-slate-400 truncate min-w-0", t),
|
|
3259
3259
|
children: e
|
|
3260
3260
|
}
|
|
3261
3261
|
)
|
|
3262
|
-
),
|
|
3263
|
-
({ children: e, className:
|
|
3262
|
+
), pr = E(
|
|
3263
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx(
|
|
3264
3264
|
"div",
|
|
3265
3265
|
{
|
|
3266
|
-
ref:
|
|
3267
|
-
className: p("flex items-center flex-grow justify-end gap-2",
|
|
3266
|
+
ref: r,
|
|
3267
|
+
className: p("flex items-center flex-grow justify-end gap-2", t),
|
|
3268
3268
|
children: e
|
|
3269
3269
|
}
|
|
3270
3270
|
)
|
|
3271
|
-
),
|
|
3272
|
-
({ children: e, className:
|
|
3271
|
+
), vr = E(
|
|
3272
|
+
({ children: e, className: t, placement: r }, o) => /* @__PURE__ */ n.jsx(
|
|
3273
3273
|
"div",
|
|
3274
3274
|
{
|
|
3275
3275
|
ref: o,
|
|
3276
|
-
className: p(
|
|
3276
|
+
className: p(br({ placement: r }), t),
|
|
3277
3277
|
children: e
|
|
3278
3278
|
}
|
|
3279
3279
|
)
|
|
3280
|
-
),
|
|
3280
|
+
), wr = ({
|
|
3281
3281
|
children: e,
|
|
3282
|
-
className:
|
|
3283
|
-
variant:
|
|
3282
|
+
className: t,
|
|
3283
|
+
variant: r = "primary"
|
|
3284
3284
|
}) => /* @__PURE__ */ n.jsx(
|
|
3285
3285
|
"header",
|
|
3286
3286
|
{
|
|
3287
|
-
className: p(
|
|
3287
|
+
className: p(fr({ variant: r }), t),
|
|
3288
3288
|
role: "banner",
|
|
3289
3289
|
children: e
|
|
3290
3290
|
}
|
|
3291
|
-
),
|
|
3292
|
-
Leading:
|
|
3293
|
-
Headline:
|
|
3294
|
-
Subtitle:
|
|
3295
|
-
Trailing:
|
|
3296
|
-
Center:
|
|
3297
|
-
}),
|
|
3291
|
+
), _s = Object.assign(wr, {
|
|
3292
|
+
Leading: mr,
|
|
3293
|
+
Headline: hr,
|
|
3294
|
+
Subtitle: xr,
|
|
3295
|
+
Trailing: pr,
|
|
3296
|
+
Center: vr
|
|
3297
|
+
}), yr = y(
|
|
3298
3298
|
"inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
|
|
3299
3299
|
{
|
|
3300
3300
|
variants: {
|
|
3301
3301
|
variant: {
|
|
3302
3302
|
// Core variants using Versaur color system
|
|
3303
|
-
primary: "bg-coral text-
|
|
3304
|
-
secondary: "bg-sage text-
|
|
3305
|
-
tertiary: "bg-mist text-
|
|
3306
|
-
ghost: "bg-slate text-
|
|
3307
|
-
neutral: "bg-neutral text-foreground border border-border",
|
|
3303
|
+
primary: "bg-coral-soft text-coral",
|
|
3304
|
+
secondary: "bg-sage-soft text-sage",
|
|
3305
|
+
tertiary: "bg-mist-soft text-mist",
|
|
3306
|
+
ghost: "bg-slate-soft text-slate",
|
|
3307
|
+
neutral: "bg-neutral-soft text-foreground border border-border",
|
|
3308
3308
|
// Semantic variants
|
|
3309
|
-
success: "bg-success text-
|
|
3310
|
-
info: "bg-info text-
|
|
3311
|
-
warning: "bg-warning text-
|
|
3312
|
-
danger: "bg-danger text-
|
|
3309
|
+
success: "bg-success-soft text-success",
|
|
3310
|
+
info: "bg-info-soft text-info",
|
|
3311
|
+
warning: "bg-warning-soft text-warning",
|
|
3312
|
+
danger: "bg-danger-soft text-danger"
|
|
3313
3313
|
},
|
|
3314
3314
|
size: {
|
|
3315
3315
|
xs: "h-6 w-6 text-xs",
|
|
3316
|
-
sm: "h-8 w-8 text-
|
|
3317
|
-
md: "h-10 w-10 text-
|
|
3318
|
-
lg: "h-12 w-12 text-
|
|
3316
|
+
sm: "h-8 w-8 text-xs",
|
|
3317
|
+
md: "h-10 w-10 text-sm",
|
|
3318
|
+
lg: "h-12 w-12 text-base",
|
|
3319
3319
|
xl: "h-16 w-16 text-xl"
|
|
3320
3320
|
},
|
|
3321
3321
|
shape: {
|
|
@@ -3330,56 +3330,56 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3330
3330
|
shape: "circle"
|
|
3331
3331
|
}
|
|
3332
3332
|
}
|
|
3333
|
-
),
|
|
3333
|
+
), kr = y(
|
|
3334
3334
|
"absolute inset-0 h-full w-full object-cover"
|
|
3335
|
-
),
|
|
3335
|
+
), jr = E(
|
|
3336
3336
|
({
|
|
3337
3337
|
variant: e = "primary",
|
|
3338
|
-
size:
|
|
3339
|
-
shape:
|
|
3338
|
+
size: t = "md",
|
|
3339
|
+
shape: r = "circle",
|
|
3340
3340
|
className: o,
|
|
3341
3341
|
children: s,
|
|
3342
3342
|
...a
|
|
3343
|
-
},
|
|
3343
|
+
}, l) => /* @__PURE__ */ n.jsx(
|
|
3344
3344
|
"div",
|
|
3345
3345
|
{
|
|
3346
|
-
ref:
|
|
3347
|
-
className: p(
|
|
3346
|
+
ref: l,
|
|
3347
|
+
className: p(yr({ variant: e, size: t, shape: r }), o),
|
|
3348
3348
|
...a,
|
|
3349
3349
|
children: s
|
|
3350
3350
|
}
|
|
3351
3351
|
)
|
|
3352
|
-
),
|
|
3353
|
-
({ src: e, alt:
|
|
3354
|
-
const [
|
|
3355
|
-
|
|
3356
|
-
|
|
3352
|
+
), Nr = E(
|
|
3353
|
+
({ src: e, alt: t, className: r, onError: o, ...s }, a) => {
|
|
3354
|
+
const [l, i] = H(!1);
|
|
3355
|
+
J(() => {
|
|
3356
|
+
i(!1);
|
|
3357
3357
|
}, [e]);
|
|
3358
3358
|
const c = ke(
|
|
3359
3359
|
(d) => {
|
|
3360
|
-
|
|
3360
|
+
i(!0), o?.(d);
|
|
3361
3361
|
},
|
|
3362
3362
|
[o]
|
|
3363
3363
|
);
|
|
3364
|
-
return
|
|
3364
|
+
return l ? null : /* @__PURE__ */ n.jsx(
|
|
3365
3365
|
"img",
|
|
3366
3366
|
{
|
|
3367
3367
|
ref: a,
|
|
3368
3368
|
src: e,
|
|
3369
|
-
alt:
|
|
3370
|
-
className: p(
|
|
3369
|
+
alt: t,
|
|
3370
|
+
className: p(kr(), r),
|
|
3371
3371
|
onError: c,
|
|
3372
3372
|
...s
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
3375
|
}
|
|
3376
|
-
),
|
|
3376
|
+
), Fs = Object.assign(jr, {
|
|
3377
3377
|
/**
|
|
3378
3378
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
3379
3379
|
*/
|
|
3380
|
-
Image:
|
|
3381
|
-
}),
|
|
3382
|
-
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none
|
|
3380
|
+
Image: Nr
|
|
3381
|
+
}), Cr = y(
|
|
3382
|
+
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
|
|
3383
3383
|
{
|
|
3384
3384
|
variants: {
|
|
3385
3385
|
variant: {
|
|
@@ -3403,6 +3403,11 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3403
3403
|
rounded: "rounded-full",
|
|
3404
3404
|
square: "rounded-md"
|
|
3405
3405
|
},
|
|
3406
|
+
size: {
|
|
3407
|
+
sm: "text-xs px-1 py-0.25 h-3",
|
|
3408
|
+
md: "text-xs px-1.5 py-0.5 h-4",
|
|
3409
|
+
lg: "text-sm px-2 py-1 h-6"
|
|
3410
|
+
},
|
|
3406
3411
|
iconOnly: {
|
|
3407
3412
|
true: "",
|
|
3408
3413
|
false: ""
|
|
@@ -3413,22 +3418,22 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3413
3418
|
{
|
|
3414
3419
|
variant: "default",
|
|
3415
3420
|
color: "primary",
|
|
3416
|
-
className: "bg-coral
|
|
3421
|
+
className: "bg-coral-soft text-coral"
|
|
3417
3422
|
},
|
|
3418
3423
|
{
|
|
3419
3424
|
variant: "default",
|
|
3420
3425
|
color: "secondary",
|
|
3421
|
-
className: "bg-sage
|
|
3426
|
+
className: "bg-sage-soft text-sage"
|
|
3422
3427
|
},
|
|
3423
3428
|
{
|
|
3424
3429
|
variant: "default",
|
|
3425
3430
|
color: "tertiary",
|
|
3426
|
-
className: "bg-mist
|
|
3431
|
+
className: "bg-mist-soft text-mist"
|
|
3427
3432
|
},
|
|
3428
3433
|
{
|
|
3429
3434
|
variant: "default",
|
|
3430
3435
|
color: "ghost",
|
|
3431
|
-
className: "bg-slate
|
|
3436
|
+
className: "bg-slate-soft text-slate"
|
|
3432
3437
|
},
|
|
3433
3438
|
{
|
|
3434
3439
|
variant: "default",
|
|
@@ -3438,22 +3443,22 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3438
3443
|
{
|
|
3439
3444
|
variant: "default",
|
|
3440
3445
|
color: "success",
|
|
3441
|
-
className: "bg-success
|
|
3446
|
+
className: "bg-success-soft text-success"
|
|
3442
3447
|
},
|
|
3443
3448
|
{
|
|
3444
3449
|
variant: "default",
|
|
3445
3450
|
color: "info",
|
|
3446
|
-
className: "bg-info
|
|
3451
|
+
className: "bg-info-soft text-info"
|
|
3447
3452
|
},
|
|
3448
3453
|
{
|
|
3449
3454
|
variant: "default",
|
|
3450
3455
|
color: "warning",
|
|
3451
|
-
className: "bg-warning
|
|
3456
|
+
className: "bg-warning-soft text-warning"
|
|
3452
3457
|
},
|
|
3453
3458
|
{
|
|
3454
3459
|
variant: "default",
|
|
3455
3460
|
color: "danger",
|
|
3456
|
-
className: "bg-danger
|
|
3461
|
+
className: "bg-danger-soft text-danger"
|
|
3457
3462
|
},
|
|
3458
3463
|
// Outline variant color combinations
|
|
3459
3464
|
{
|
|
@@ -3504,60 +3509,74 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3504
3509
|
// Icon-only size adjustments
|
|
3505
3510
|
{
|
|
3506
3511
|
iconOnly: !0,
|
|
3512
|
+
size: "sm",
|
|
3507
3513
|
className: "px-1 py-1 w-5 h-5"
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
iconOnly: !0,
|
|
3517
|
+
size: "md",
|
|
3518
|
+
className: "px-1.5 py-1.5 w-6 h-6"
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
iconOnly: !0,
|
|
3522
|
+
size: "lg",
|
|
3523
|
+
className: "px-2 py-2 w-7 h-7"
|
|
3508
3524
|
}
|
|
3509
3525
|
],
|
|
3510
3526
|
defaultVariants: {
|
|
3511
3527
|
variant: "default",
|
|
3512
3528
|
color: "primary",
|
|
3513
3529
|
shape: "square",
|
|
3530
|
+
size: "md",
|
|
3514
3531
|
iconOnly: !1
|
|
3515
3532
|
}
|
|
3516
3533
|
}
|
|
3517
|
-
),
|
|
3534
|
+
), zr = E(
|
|
3518
3535
|
({
|
|
3519
3536
|
variant: e = "default",
|
|
3520
|
-
shape:
|
|
3521
|
-
color:
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3537
|
+
shape: t = "square",
|
|
3538
|
+
color: r = "primary",
|
|
3539
|
+
size: o = "md",
|
|
3540
|
+
iconLeft: s,
|
|
3541
|
+
iconRight: a,
|
|
3542
|
+
className: l,
|
|
3525
3543
|
children: i,
|
|
3526
|
-
...
|
|
3527
|
-
},
|
|
3528
|
-
const
|
|
3544
|
+
...c
|
|
3545
|
+
}, d) => {
|
|
3546
|
+
const b = !(i != null && i !== "") && !!(s || a);
|
|
3529
3547
|
return /* @__PURE__ */ n.jsx(
|
|
3530
3548
|
"span",
|
|
3531
3549
|
{
|
|
3532
|
-
ref:
|
|
3550
|
+
ref: d,
|
|
3533
3551
|
className: p(
|
|
3534
|
-
|
|
3552
|
+
Cr({
|
|
3535
3553
|
variant: e,
|
|
3536
|
-
color:
|
|
3537
|
-
shape:
|
|
3538
|
-
|
|
3554
|
+
color: r,
|
|
3555
|
+
shape: t,
|
|
3556
|
+
size: o,
|
|
3557
|
+
iconOnly: b
|
|
3539
3558
|
}),
|
|
3540
|
-
|
|
3559
|
+
l
|
|
3541
3560
|
),
|
|
3542
|
-
...
|
|
3543
|
-
children:
|
|
3561
|
+
...c,
|
|
3562
|
+
children: b ? (
|
|
3544
3563
|
// Icon-only mode: display only the icon
|
|
3545
|
-
|
|
3564
|
+
s || a
|
|
3546
3565
|
) : (
|
|
3547
3566
|
// Normal mode: display icon(s) and text
|
|
3548
3567
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3549
|
-
|
|
3568
|
+
s,
|
|
3550
3569
|
i,
|
|
3551
|
-
|
|
3570
|
+
a
|
|
3552
3571
|
] })
|
|
3553
3572
|
)
|
|
3554
3573
|
}
|
|
3555
3574
|
);
|
|
3556
3575
|
}
|
|
3557
3576
|
);
|
|
3558
|
-
|
|
3559
|
-
const
|
|
3560
|
-
"sticky bottom-0 left-0 w-full flex justify-between items-center bg-white border-t border-
|
|
3577
|
+
zr.displayName = "Badge";
|
|
3578
|
+
const Ir = y(
|
|
3579
|
+
"sticky bottom-0 left-0 w-full flex justify-between items-center bg-white border-t border-border shadow-xs z-40 safe-bottom px-8 py-1",
|
|
3561
3580
|
{
|
|
3562
3581
|
variants: {
|
|
3563
3582
|
variant: {
|
|
@@ -3578,8 +3597,8 @@ const It = y(
|
|
|
3578
3597
|
size: "md"
|
|
3579
3598
|
}
|
|
3580
3599
|
}
|
|
3581
|
-
),
|
|
3582
|
-
"flex flex-col items-center justify-center gap-1 px-2 py-1
|
|
3600
|
+
), Sr = y(
|
|
3601
|
+
"flex flex-col items-center justify-center gap-1 px-2 py-1",
|
|
3583
3602
|
{
|
|
3584
3603
|
variants: {
|
|
3585
3604
|
active: {
|
|
@@ -3591,24 +3610,24 @@ const It = y(
|
|
|
3591
3610
|
active: !1
|
|
3592
3611
|
}
|
|
3593
3612
|
}
|
|
3594
|
-
),
|
|
3595
|
-
({ icon: e, label:
|
|
3613
|
+
), Rr = E(
|
|
3614
|
+
({ icon: e, label: t, active: r = !1, className: o, ...s }, a) => /* @__PURE__ */ n.jsxs(
|
|
3596
3615
|
"div",
|
|
3597
3616
|
{
|
|
3598
3617
|
ref: a,
|
|
3599
|
-
"aria-current":
|
|
3600
|
-
className:
|
|
3618
|
+
"aria-current": r ? "page" : void 0,
|
|
3619
|
+
className: Sr({ active: r, className: o }),
|
|
3601
3620
|
...s,
|
|
3602
3621
|
children: [
|
|
3603
3622
|
e,
|
|
3604
|
-
|
|
3623
|
+
t && /* @__PURE__ */ n.jsx("span", { className: "text-xs mt-0.5", children: t })
|
|
3605
3624
|
]
|
|
3606
3625
|
}
|
|
3607
3626
|
)
|
|
3608
|
-
),
|
|
3627
|
+
), Vr = ({
|
|
3609
3628
|
children: e,
|
|
3610
|
-
variant:
|
|
3611
|
-
size:
|
|
3629
|
+
variant: t = "primary",
|
|
3630
|
+
size: r = "md",
|
|
3612
3631
|
className: o,
|
|
3613
3632
|
...s
|
|
3614
3633
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -3616,13 +3635,13 @@ const It = y(
|
|
|
3616
3635
|
{
|
|
3617
3636
|
role: "navigation",
|
|
3618
3637
|
"aria-label": "Bottom navigation",
|
|
3619
|
-
className:
|
|
3638
|
+
className: Ir({ variant: t, size: r, className: o }),
|
|
3620
3639
|
...s,
|
|
3621
3640
|
children: e
|
|
3622
3641
|
}
|
|
3623
|
-
),
|
|
3624
|
-
Item:
|
|
3625
|
-
}),
|
|
3642
|
+
), Ls = Object.assign(Vr, {
|
|
3643
|
+
Item: Rr
|
|
3644
|
+
}), Er = y(
|
|
3626
3645
|
"flex items-center gap-2 text-sm text-slate-700 dark:text-slate-200",
|
|
3627
3646
|
{
|
|
3628
3647
|
variants: {
|
|
@@ -3635,7 +3654,7 @@ const It = y(
|
|
|
3635
3654
|
separator: "default"
|
|
3636
3655
|
}
|
|
3637
3656
|
}
|
|
3638
|
-
),
|
|
3657
|
+
), Tr = y(
|
|
3639
3658
|
"inline-flex items-center gap-1 transition-colors",
|
|
3640
3659
|
{
|
|
3641
3660
|
variants: {
|
|
@@ -3648,70 +3667,70 @@ const It = y(
|
|
|
3648
3667
|
isCurrent: !1
|
|
3649
3668
|
}
|
|
3650
3669
|
}
|
|
3651
|
-
),
|
|
3670
|
+
), Ar = "mx-1 text-slate-400 dark:text-slate-500 select-none", Mr = E(function({ children: t, icon: r, isCurrent: o, className: s, ...a }, l) {
|
|
3652
3671
|
return /* @__PURE__ */ n.jsx("li", { className: "flex items-center", children: /* @__PURE__ */ n.jsxs(
|
|
3653
3672
|
"a",
|
|
3654
3673
|
{
|
|
3655
|
-
ref:
|
|
3674
|
+
ref: l,
|
|
3656
3675
|
"aria-current": o ? "page" : void 0,
|
|
3657
3676
|
tabIndex: o ? -1 : 0,
|
|
3658
|
-
className: p(
|
|
3677
|
+
className: p(Tr({ isCurrent: o }) + s),
|
|
3659
3678
|
...a,
|
|
3660
3679
|
children: [
|
|
3661
|
-
|
|
3662
|
-
|
|
3680
|
+
r && /* @__PURE__ */ n.jsx("span", { className: "mr-1 inline-flex", children: r }),
|
|
3681
|
+
t
|
|
3663
3682
|
]
|
|
3664
3683
|
}
|
|
3665
3684
|
) });
|
|
3666
3685
|
});
|
|
3667
|
-
function
|
|
3668
|
-
return /* @__PURE__ */ n.jsx("span", { className:
|
|
3686
|
+
function Pr() {
|
|
3687
|
+
return /* @__PURE__ */ n.jsx("span", { className: Ar, "aria-hidden": "true", children: "/" });
|
|
3669
3688
|
}
|
|
3670
|
-
const
|
|
3671
|
-
function({ children:
|
|
3672
|
-
return /* @__PURE__ */ n.jsx("nav", { "aria-label":
|
|
3689
|
+
const Or = E(
|
|
3690
|
+
function({ children: t, "aria-label": r = "Breadcrumb", ...o }, s) {
|
|
3691
|
+
return /* @__PURE__ */ n.jsx("nav", { "aria-label": r, ...o, children: /* @__PURE__ */ n.jsx("ol", { ref: s, className: Er(), children: t }) });
|
|
3673
3692
|
}
|
|
3674
|
-
),
|
|
3675
|
-
Item:
|
|
3676
|
-
Separator:
|
|
3677
|
-
}),
|
|
3693
|
+
), $s = Object.assign(Or, {
|
|
3694
|
+
Item: Mr,
|
|
3695
|
+
Separator: Pr
|
|
3696
|
+
}), Br = y(
|
|
3678
3697
|
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none",
|
|
3679
3698
|
{
|
|
3680
3699
|
variants: {
|
|
3681
3700
|
variant: {
|
|
3682
3701
|
// Core variants using Versaur color system
|
|
3683
|
-
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral
|
|
3684
|
-
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage
|
|
3685
|
-
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist
|
|
3686
|
-
ghost: "bg-transparent text-foreground hover:bg-slate
|
|
3687
|
-
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground
|
|
3702
|
+
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3703
|
+
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3704
|
+
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3705
|
+
ghost: "bg-transparent text-foreground hover:bg-slate-soft focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3706
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-soft focus-visible:ring-offset-white shadow-sm",
|
|
3688
3707
|
// Outline variants
|
|
3689
|
-
"primary-outline": "border border-coral text-coral bg-transparent hover:bg-coral hover:text-white focus-visible:ring-coral
|
|
3690
|
-
"secondary-outline": "border border-sage text-sage bg-transparent hover:bg-sage hover:text-white focus-visible:ring-sage
|
|
3691
|
-
"tertiary-outline": "border border-mist text-mist bg-transparent hover:bg-mist hover:text-white focus-visible:ring-mist
|
|
3692
|
-
"ghost-outline": "border border-slate text-slate bg-transparent hover:bg-slate hover:text-white focus-visible:ring-slate
|
|
3693
|
-
"neutral-outline": "border border-neutral text-foreground bg-transparent hover:bg-neutral hover:text-foreground focus-visible:ring-foreground
|
|
3708
|
+
"primary-outline": "border border-coral text-coral bg-transparent hover:bg-coral hover:text-white focus-visible:ring-coral-soft focus-visible:ring-offset-white transition-all",
|
|
3709
|
+
"secondary-outline": "border border-sage text-sage bg-transparent hover:bg-sage hover:text-white focus-visible:ring-sage-soft focus-visible:ring-offset-white transition-all",
|
|
3710
|
+
"tertiary-outline": "border border-mist text-mist bg-transparent hover:bg-mist hover:text-white focus-visible:ring-mist-soft focus-visible:ring-offset-white transition-all",
|
|
3711
|
+
"ghost-outline": "border border-slate text-slate bg-transparent hover:bg-slate hover:text-white focus-visible:ring-slate-soft focus-visible:ring-offset-white transition-all",
|
|
3712
|
+
"neutral-outline": "border border-neutral text-foreground bg-transparent hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-soft focus-visible:ring-offset-white transition-all",
|
|
3694
3713
|
// Ghost variants (subtle)
|
|
3695
|
-
"primary-ghost": "text-coral bg-transparent hover:bg-coral
|
|
3696
|
-
"secondary-ghost": "text-sage bg-transparent hover:bg-sage
|
|
3697
|
-
"tertiary-ghost": "text-mist bg-transparent hover:bg-mist
|
|
3698
|
-
"neutral-ghost": "text-foreground bg-transparent hover:bg-neutral/70 focus-visible:ring-foreground
|
|
3714
|
+
"primary-ghost": "text-coral bg-transparent hover:bg-coral-soft focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3715
|
+
"secondary-ghost": "text-sage bg-transparent hover:bg-sage-soft focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3716
|
+
"tertiary-ghost": "text-mist bg-transparent hover:bg-mist-soft focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3717
|
+
"neutral-ghost": "text-foreground bg-transparent hover:bg-neutral/70 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3699
3718
|
// Semantic variants
|
|
3700
|
-
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success
|
|
3701
|
-
"success-outline": "border border-success text-success bg-transparent hover:bg-success hover:text-white focus-visible:ring-success
|
|
3702
|
-
"success-ghost": "text-success bg-transparent hover:bg-success
|
|
3703
|
-
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info
|
|
3704
|
-
"info-outline": "border border-info text-info bg-transparent hover:bg-info hover:text-white focus-visible:ring-info
|
|
3705
|
-
"info-ghost": "text-info bg-transparent hover:bg-info
|
|
3706
|
-
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning
|
|
3707
|
-
"warning-outline": "border border-warning text-warning bg-transparent hover:bg-warning hover:text-white focus-visible:ring-warning
|
|
3708
|
-
"warning-ghost": "text-warning bg-transparent hover:bg-warning
|
|
3709
|
-
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3710
|
-
"danger-outline": "border border-danger text-danger bg-transparent hover:bg-danger hover:text-white focus-visible:ring-danger
|
|
3711
|
-
"danger-ghost": "text-danger bg-transparent hover:bg-danger
|
|
3719
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3720
|
+
"success-outline": "border border-success text-success bg-transparent hover:bg-success hover:text-white focus-visible:ring-success-soft focus-visible:ring-offset-white transition-all",
|
|
3721
|
+
"success-ghost": "text-success bg-transparent hover:bg-success-soft focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3722
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3723
|
+
"info-outline": "border border-info text-info bg-transparent hover:bg-info hover:text-white focus-visible:ring-info-soft focus-visible:ring-offset-white transition-all",
|
|
3724
|
+
"info-ghost": "text-info bg-transparent hover:bg-info-soft focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3725
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3726
|
+
"warning-outline": "border border-warning text-warning bg-transparent hover:bg-warning hover:text-white focus-visible:ring-warning-soft focus-visible:ring-offset-white transition-all",
|
|
3727
|
+
"warning-ghost": "text-warning bg-transparent hover:bg-warning-soft focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3728
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3729
|
+
"danger-outline": "border border-danger text-danger bg-transparent hover:bg-danger hover:text-white focus-visible:ring-danger-soft focus-visible:ring-offset-white transition-all",
|
|
3730
|
+
"danger-ghost": "text-danger bg-transparent hover:bg-danger-soft focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3712
3731
|
// Utility variants
|
|
3713
|
-
outline: "border border-border text-foreground bg-transparent hover:bg-accent
|
|
3714
|
-
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3732
|
+
outline: "border border-border text-foreground bg-transparent hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white transition-all",
|
|
3733
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
3715
3734
|
},
|
|
3716
3735
|
size: {
|
|
3717
3736
|
sm: "h-8 px-3 text-sm min-w-[2.25rem]",
|
|
@@ -3724,35 +3743,35 @@ const Pt = E(
|
|
|
3724
3743
|
size: "md"
|
|
3725
3744
|
}
|
|
3726
3745
|
}
|
|
3727
|
-
), Ge =
|
|
3746
|
+
), Ge = I.forwardRef(
|
|
3728
3747
|
function({
|
|
3729
|
-
className:
|
|
3730
|
-
variant:
|
|
3748
|
+
className: t,
|
|
3749
|
+
variant: r = "primary",
|
|
3731
3750
|
size: o = "md",
|
|
3732
3751
|
disabled: s = !1,
|
|
3733
3752
|
type: a = "button",
|
|
3734
|
-
children:
|
|
3735
|
-
...
|
|
3753
|
+
children: l,
|
|
3754
|
+
...i
|
|
3736
3755
|
}, c) {
|
|
3737
3756
|
return /* @__PURE__ */ n.jsx(
|
|
3738
3757
|
"button",
|
|
3739
3758
|
{
|
|
3740
3759
|
ref: c,
|
|
3741
3760
|
type: a,
|
|
3742
|
-
className: p(
|
|
3761
|
+
className: p(Br({ variant: r, size: o }), t),
|
|
3743
3762
|
disabled: s,
|
|
3744
3763
|
"aria-disabled": s,
|
|
3745
3764
|
inert: s ? !0 : void 0,
|
|
3746
|
-
...
|
|
3747
|
-
children:
|
|
3765
|
+
...i,
|
|
3766
|
+
children: l
|
|
3748
3767
|
}
|
|
3749
3768
|
);
|
|
3750
3769
|
}
|
|
3751
3770
|
);
|
|
3752
|
-
function
|
|
3753
|
-
const
|
|
3754
|
-
if (
|
|
3755
|
-
switch (
|
|
3771
|
+
function Dr(e = "primary") {
|
|
3772
|
+
const t = e.split("-");
|
|
3773
|
+
if (t.length === 1)
|
|
3774
|
+
switch (t[0]) {
|
|
3756
3775
|
case "ghost":
|
|
3757
3776
|
case "neutral":
|
|
3758
3777
|
case "outline":
|
|
@@ -3760,7 +3779,7 @@ function Bt(e = "primary") {
|
|
|
3760
3779
|
default:
|
|
3761
3780
|
return "neutral";
|
|
3762
3781
|
}
|
|
3763
|
-
switch (
|
|
3782
|
+
switch (t[0]) {
|
|
3764
3783
|
case "primary":
|
|
3765
3784
|
return "primary";
|
|
3766
3785
|
case "secondary":
|
|
@@ -3783,44 +3802,44 @@ function Bt(e = "primary") {
|
|
|
3783
3802
|
return "neutral";
|
|
3784
3803
|
}
|
|
3785
3804
|
}
|
|
3786
|
-
const
|
|
3805
|
+
const _r = y(
|
|
3787
3806
|
"inline-flex items-center justify-center font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none",
|
|
3788
3807
|
{
|
|
3789
3808
|
variants: {
|
|
3790
3809
|
variant: {
|
|
3791
3810
|
// Core variants using Versaur color system
|
|
3792
|
-
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral
|
|
3793
|
-
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage
|
|
3794
|
-
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist
|
|
3795
|
-
ghost: "bg-transparent text-foreground hover:bg-slate
|
|
3796
|
-
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground
|
|
3811
|
+
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3812
|
+
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3813
|
+
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3814
|
+
ghost: "bg-transparent text-foreground hover:bg-slate-soft focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3815
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-soft focus-visible:ring-offset-white shadow-sm",
|
|
3797
3816
|
// Outline variants
|
|
3798
|
-
"primary-outline": "border border-coral text-coral bg-transparent hover:bg-coral hover:text-white focus-visible:ring-coral
|
|
3799
|
-
"secondary-outline": "border border-sage text-sage bg-transparent hover:bg-sage hover:text-white focus-visible:ring-sage
|
|
3800
|
-
"tertiary-outline": "border border-mist text-mist bg-transparent hover:bg-mist hover:text-white focus-visible:ring-mist
|
|
3801
|
-
"ghost-outline": "border border-slate text-slate bg-transparent hover:bg-slate hover:text-white focus-visible:ring-slate
|
|
3802
|
-
"neutral-outline": "border border-neutral text-foreground bg-transparent hover:bg-neutral hover:text-foreground focus-visible:ring-foreground
|
|
3817
|
+
"primary-outline": "border border-coral text-coral bg-transparent hover:bg-coral hover:text-white focus-visible:ring-coral-soft focus-visible:ring-offset-white transition-all",
|
|
3818
|
+
"secondary-outline": "border border-sage text-sage bg-transparent hover:bg-sage hover:text-white focus-visible:ring-sage-soft focus-visible:ring-offset-white transition-all",
|
|
3819
|
+
"tertiary-outline": "border border-mist text-mist bg-transparent hover:bg-mist hover:text-white focus-visible:ring-mist-soft focus-visible:ring-offset-white transition-all",
|
|
3820
|
+
"ghost-outline": "border border-slate text-slate bg-transparent hover:bg-slate hover:text-white focus-visible:ring-slate-soft focus-visible:ring-offset-white transition-all",
|
|
3821
|
+
"neutral-outline": "border border-neutral text-foreground bg-transparent hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-soft focus-visible:ring-offset-white transition-all",
|
|
3803
3822
|
// Ghost variants (subtle)
|
|
3804
|
-
"primary-ghost": "text-coral bg-transparent hover:bg-coral
|
|
3805
|
-
"secondary-ghost": "text-sage bg-transparent hover:bg-sage
|
|
3806
|
-
"tertiary-ghost": "text-mist bg-transparent hover:bg-mist
|
|
3807
|
-
"neutral-ghost": "text-foreground bg-transparent hover:bg-neutral/70 focus-visible:ring-foreground
|
|
3823
|
+
"primary-ghost": "text-coral bg-transparent hover:bg-coral-soft focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3824
|
+
"secondary-ghost": "text-sage bg-transparent hover:bg-sage-soft focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3825
|
+
"tertiary-ghost": "text-mist bg-transparent hover:bg-mist-soft focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3826
|
+
"neutral-ghost": "text-foreground bg-transparent hover:bg-neutral/70 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3808
3827
|
// Semantic variants
|
|
3809
|
-
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success
|
|
3810
|
-
"success-outline": "border border-success text-success bg-transparent hover:bg-success hover:text-white focus-visible:ring-success
|
|
3811
|
-
"success-ghost": "text-success bg-transparent hover:bg-success
|
|
3812
|
-
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info
|
|
3813
|
-
"info-outline": "border border-info text-info bg-transparent hover:bg-info hover:text-white focus-visible:ring-info
|
|
3814
|
-
"info-ghost": "text-info bg-transparent hover:bg-info
|
|
3815
|
-
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning
|
|
3816
|
-
"warning-outline": "border border-warning text-warning bg-transparent hover:bg-warning hover:text-white focus-visible:ring-warning
|
|
3817
|
-
"warning-ghost": "text-warning bg-transparent hover:bg-warning
|
|
3818
|
-
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3819
|
-
"danger-outline": "border border-danger text-danger bg-transparent hover:bg-danger hover:text-white focus-visible:ring-danger
|
|
3820
|
-
"danger-ghost": "text-danger bg-transparent hover:bg-danger
|
|
3828
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3829
|
+
"success-outline": "border border-success text-success bg-transparent hover:bg-success hover:text-white focus-visible:ring-success-soft focus-visible:ring-offset-white transition-all",
|
|
3830
|
+
"success-ghost": "text-success bg-transparent hover:bg-success-soft focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3831
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3832
|
+
"info-outline": "border border-info text-info bg-transparent hover:bg-info hover:text-white focus-visible:ring-info-soft focus-visible:ring-offset-white transition-all",
|
|
3833
|
+
"info-ghost": "text-info bg-transparent hover:bg-info-soft focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3834
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3835
|
+
"warning-outline": "border border-warning text-warning bg-transparent hover:bg-warning hover:text-white focus-visible:ring-warning-soft focus-visible:ring-offset-white transition-all",
|
|
3836
|
+
"warning-ghost": "text-warning bg-transparent hover:bg-warning-soft focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3837
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3838
|
+
"danger-outline": "border border-danger text-danger bg-transparent hover:bg-danger hover:text-white focus-visible:ring-danger-soft focus-visible:ring-offset-white transition-all",
|
|
3839
|
+
"danger-ghost": "text-danger bg-transparent hover:bg-danger-soft focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3821
3840
|
// Utility variants
|
|
3822
|
-
outline: "border border-border text-foreground bg-transparent hover:bg-accent
|
|
3823
|
-
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3841
|
+
outline: "border border-border text-foreground bg-transparent hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white transition-all",
|
|
3842
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
3824
3843
|
},
|
|
3825
3844
|
size: {
|
|
3826
3845
|
xs: "h-6 w-6",
|
|
@@ -3841,7 +3860,7 @@ const Dt = y(
|
|
|
3841
3860
|
shape: "rounded"
|
|
3842
3861
|
}
|
|
3843
3862
|
}
|
|
3844
|
-
),
|
|
3863
|
+
), Fr = y("inline-flex items-center justify-center", {
|
|
3845
3864
|
variants: {
|
|
3846
3865
|
size: {
|
|
3847
3866
|
xs: "w-3 h-3",
|
|
@@ -3866,24 +3885,24 @@ const Dt = y(
|
|
|
3866
3885
|
size: "md",
|
|
3867
3886
|
color: "primary"
|
|
3868
3887
|
}
|
|
3869
|
-
}),
|
|
3888
|
+
}), Lr = I.forwardRef(function({ as: t, color: r = "primary", size: o = "md", className: s, ...a }, l) {
|
|
3870
3889
|
return /* @__PURE__ */ n.jsx(
|
|
3871
|
-
|
|
3890
|
+
t,
|
|
3872
3891
|
{
|
|
3873
|
-
ref:
|
|
3874
|
-
className:
|
|
3892
|
+
ref: l,
|
|
3893
|
+
className: Fr({ color: r, size: o, className: s }),
|
|
3875
3894
|
...a
|
|
3876
3895
|
}
|
|
3877
3896
|
);
|
|
3878
|
-
}), le =
|
|
3897
|
+
}), le = I.forwardRef(
|
|
3879
3898
|
function({
|
|
3880
|
-
className:
|
|
3881
|
-
variant:
|
|
3899
|
+
className: t,
|
|
3900
|
+
variant: r = "primary",
|
|
3882
3901
|
size: o = "md",
|
|
3883
3902
|
shape: s = "rounded",
|
|
3884
3903
|
disabled: a = !1,
|
|
3885
|
-
as:
|
|
3886
|
-
"aria-label":
|
|
3904
|
+
as: l,
|
|
3905
|
+
"aria-label": i,
|
|
3887
3906
|
...c
|
|
3888
3907
|
}, d) {
|
|
3889
3908
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -3892,30 +3911,30 @@ const Dt = y(
|
|
|
3892
3911
|
ref: d,
|
|
3893
3912
|
type: "button",
|
|
3894
3913
|
className: p(
|
|
3895
|
-
|
|
3896
|
-
variant:
|
|
3914
|
+
_r({
|
|
3915
|
+
variant: r,
|
|
3897
3916
|
size: o,
|
|
3898
3917
|
shape: s
|
|
3899
3918
|
}),
|
|
3900
|
-
|
|
3919
|
+
t
|
|
3901
3920
|
),
|
|
3902
3921
|
disabled: a,
|
|
3903
3922
|
"aria-disabled": a,
|
|
3904
|
-
"aria-label":
|
|
3923
|
+
"aria-label": i,
|
|
3905
3924
|
inert: a ? !0 : void 0,
|
|
3906
3925
|
...c,
|
|
3907
3926
|
children: /* @__PURE__ */ n.jsx(
|
|
3908
|
-
|
|
3927
|
+
Lr,
|
|
3909
3928
|
{
|
|
3910
|
-
as:
|
|
3929
|
+
as: l,
|
|
3911
3930
|
size: o,
|
|
3912
|
-
color:
|
|
3931
|
+
color: Dr(r)
|
|
3913
3932
|
}
|
|
3914
3933
|
)
|
|
3915
3934
|
}
|
|
3916
3935
|
);
|
|
3917
3936
|
}
|
|
3918
|
-
),
|
|
3937
|
+
), $r = y(
|
|
3919
3938
|
[
|
|
3920
3939
|
"inline-flex items-center justify-center gap-2",
|
|
3921
3940
|
"rounded-lg",
|
|
@@ -3941,34 +3960,34 @@ const Dt = y(
|
|
|
3941
3960
|
{
|
|
3942
3961
|
variants: {
|
|
3943
3962
|
variant: {
|
|
3944
|
-
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral
|
|
3945
|
-
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage
|
|
3946
|
-
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist
|
|
3947
|
-
ghost: "bg-transparent text-foreground hover:bg-slate
|
|
3948
|
-
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground
|
|
3949
|
-
"primary-outline": "border border-coral text-coral bg-transparent hover:bg-coral hover:text-white focus-visible:ring-coral
|
|
3950
|
-
"secondary-outline": "border border-sage text-sage bg-transparent hover:bg-sage hover:text-white focus-visible:ring-sage
|
|
3951
|
-
"tertiary-outline": "border border-mist text-mist bg-transparent hover:bg-mist hover:text-white focus-visible:ring-mist
|
|
3952
|
-
"ghost-outline": "border border-slate text-slate bg-transparent hover:bg-slate hover:text-white focus-visible:ring-slate
|
|
3953
|
-
"neutral-outline": "border border-neutral text-foreground bg-transparent hover:bg-neutral hover:text-foreground focus-visible:ring-foreground
|
|
3954
|
-
"primary-ghost": "text-coral bg-transparent hover:bg-coral
|
|
3955
|
-
"secondary-ghost": "text-sage bg-transparent hover:bg-sage
|
|
3956
|
-
"tertiary-ghost": "text-mist bg-transparent hover:bg-mist
|
|
3957
|
-
"neutral-ghost": "text-foreground bg-transparent hover:bg-neutral/70 focus-visible:ring-foreground
|
|
3958
|
-
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success
|
|
3959
|
-
"success-outline": "border border-success text-success bg-transparent hover:bg-success hover:text-white focus-visible:ring-success
|
|
3960
|
-
"success-ghost": "text-success bg-transparent hover:bg-success
|
|
3961
|
-
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info
|
|
3962
|
-
"info-outline": "border border-info text-info bg-transparent hover:bg-info hover:text-white focus-visible:ring-info
|
|
3963
|
-
"info-ghost": "text-info bg-transparent hover:bg-info
|
|
3964
|
-
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning
|
|
3965
|
-
"warning-outline": "border border-warning text-warning bg-transparent hover:bg-warning hover:text-white focus-visible:ring-warning
|
|
3966
|
-
"warning-ghost": "text-warning bg-transparent hover:bg-warning
|
|
3967
|
-
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3968
|
-
"danger-outline": "border border-danger text-danger bg-transparent hover:bg-danger hover:text-white focus-visible:ring-danger
|
|
3969
|
-
"danger-ghost": "text-danger bg-transparent hover:bg-danger
|
|
3970
|
-
outline: "border border-border text-foreground bg-transparent hover:bg-accent
|
|
3971
|
-
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3963
|
+
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3964
|
+
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3965
|
+
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3966
|
+
ghost: "bg-transparent text-foreground hover:bg-slate-soft focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3967
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3968
|
+
"primary-outline": "border border-coral text-coral bg-transparent hover:bg-coral hover:text-white focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3969
|
+
"secondary-outline": "border border-sage text-sage bg-transparent hover:bg-sage hover:text-white focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3970
|
+
"tertiary-outline": "border border-mist text-mist bg-transparent hover:bg-mist hover:text-white focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3971
|
+
"ghost-outline": "border border-slate text-slate bg-transparent hover:bg-slate hover:text-white focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3972
|
+
"neutral-outline": "border border-neutral text-foreground bg-transparent hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3973
|
+
"primary-ghost": "text-coral bg-transparent hover:bg-coral-soft focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3974
|
+
"secondary-ghost": "text-sage bg-transparent hover:bg-sage-soft focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3975
|
+
"tertiary-ghost": "text-mist bg-transparent hover:bg-mist-soft focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3976
|
+
"neutral-ghost": "text-foreground bg-transparent hover:bg-neutral/70 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3977
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3978
|
+
"success-outline": "border border-success text-success bg-transparent hover:bg-success hover:text-white focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3979
|
+
"success-ghost": "text-success bg-transparent hover:bg-success-soft focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3980
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3981
|
+
"info-outline": "border border-info text-info bg-transparent hover:bg-info hover:text-white focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3982
|
+
"info-ghost": "text-info bg-transparent hover:bg-info-soft focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3983
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3984
|
+
"warning-outline": "border border-warning text-warning bg-transparent hover:bg-warning hover:text-white focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3985
|
+
"warning-ghost": "text-warning bg-transparent hover:bg-warning-soft focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3986
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3987
|
+
"danger-outline": "border border-danger text-danger bg-transparent hover:bg-danger hover:text-white focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3988
|
+
"danger-ghost": "text-danger bg-transparent hover:bg-danger-soft focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3989
|
+
outline: "border border-border text-foreground bg-transparent hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white",
|
|
3990
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white"
|
|
3972
3991
|
},
|
|
3973
3992
|
size: {
|
|
3974
3993
|
sm: "h-12 w-12 min-w-12 min-h-12 text-base",
|
|
@@ -3981,102 +4000,220 @@ const Dt = y(
|
|
|
3981
4000
|
size: "md"
|
|
3982
4001
|
}
|
|
3983
4002
|
}
|
|
3984
|
-
),
|
|
4003
|
+
), Gs = E(
|
|
3985
4004
|
function({
|
|
3986
|
-
className:
|
|
3987
|
-
variant:
|
|
4005
|
+
className: t,
|
|
4006
|
+
variant: r = "primary",
|
|
3988
4007
|
size: o = "md",
|
|
3989
4008
|
side: s = "right",
|
|
3990
4009
|
offset: a = "1rem",
|
|
3991
|
-
style:
|
|
3992
|
-
...
|
|
4010
|
+
style: l,
|
|
4011
|
+
...i
|
|
3993
4012
|
}, c) {
|
|
3994
4013
|
const d = s === "right" ? "fixed bottom-4 right-4" : "fixed bottom-4 left-4", f = {
|
|
3995
|
-
...
|
|
4014
|
+
...l || {},
|
|
3996
4015
|
bottom: a,
|
|
3997
4016
|
position: "fixed",
|
|
3998
4017
|
zIndex: 50
|
|
3999
|
-
}, [g, b] =
|
|
4000
|
-
return
|
|
4018
|
+
}, [g, b] = H(!1);
|
|
4019
|
+
return J(() => {
|
|
4001
4020
|
b(!0);
|
|
4002
4021
|
}, []), /* @__PURE__ */ n.jsx(
|
|
4003
4022
|
"button",
|
|
4004
4023
|
{
|
|
4005
4024
|
ref: c,
|
|
4006
|
-
type:
|
|
4025
|
+
type: i.type || "button",
|
|
4007
4026
|
className: p(
|
|
4008
|
-
|
|
4027
|
+
$r({ variant: r, size: o }),
|
|
4009
4028
|
d,
|
|
4010
4029
|
g && "animate-fab-in",
|
|
4011
|
-
|
|
4030
|
+
t
|
|
4012
4031
|
),
|
|
4013
4032
|
style: f,
|
|
4014
|
-
...
|
|
4033
|
+
...i
|
|
4015
4034
|
}
|
|
4016
4035
|
);
|
|
4017
4036
|
}
|
|
4018
|
-
),
|
|
4037
|
+
), Gr = y("", {
|
|
4038
|
+
variants: {
|
|
4039
|
+
color: {
|
|
4040
|
+
primary: "text-primary",
|
|
4041
|
+
secondary: "text-secondary",
|
|
4042
|
+
tertiary: "text-tertiary",
|
|
4043
|
+
ghost: "text-ghost",
|
|
4044
|
+
neutral: "text-ghost",
|
|
4045
|
+
success: "text-success",
|
|
4046
|
+
info: "text-info",
|
|
4047
|
+
warning: "text-warning",
|
|
4048
|
+
danger: "text-danger"
|
|
4049
|
+
},
|
|
4050
|
+
hasUnderline: {
|
|
4051
|
+
true: "underline",
|
|
4052
|
+
false: ""
|
|
4053
|
+
},
|
|
4054
|
+
isCapitalize: {
|
|
4055
|
+
true: "capitalize",
|
|
4056
|
+
false: ""
|
|
4057
|
+
},
|
|
4058
|
+
align: {
|
|
4059
|
+
left: "text-left",
|
|
4060
|
+
center: "text-center",
|
|
4061
|
+
right: "text-right",
|
|
4062
|
+
justify: "text-justify"
|
|
4063
|
+
},
|
|
4064
|
+
italic: {
|
|
4065
|
+
true: "italic",
|
|
4066
|
+
false: ""
|
|
4067
|
+
},
|
|
4068
|
+
clamp: {
|
|
4069
|
+
1: "line-clamp-1",
|
|
4070
|
+
2: "line-clamp-2",
|
|
4071
|
+
3: "line-clamp-3",
|
|
4072
|
+
4: "line-clamp-4",
|
|
4073
|
+
5: "line-clamp-5",
|
|
4074
|
+
none: ""
|
|
4075
|
+
},
|
|
4076
|
+
ellipsis: {
|
|
4077
|
+
true: "truncate",
|
|
4078
|
+
false: ""
|
|
4079
|
+
},
|
|
4080
|
+
as: {
|
|
4081
|
+
h1: "font-bold text-4xl leading-loose",
|
|
4082
|
+
h2: "font-semibold text-3xl leading-relaxed",
|
|
4083
|
+
h3: "font-medium text-2xl leading-relaxed",
|
|
4084
|
+
h4: "font-bold text-xl leading-normal",
|
|
4085
|
+
h5: "font-semibold text-lg leading-normal",
|
|
4086
|
+
h6: "font-medium text-base leading-normal",
|
|
4087
|
+
p: "font-normal text-base leading-normal",
|
|
4088
|
+
span: "font-normal text-base leading-normal",
|
|
4089
|
+
label: "font-normal text-xs leading-normal"
|
|
4090
|
+
}
|
|
4091
|
+
},
|
|
4092
|
+
defaultVariants: {
|
|
4093
|
+
color: "neutral",
|
|
4094
|
+
hasUnderline: !1,
|
|
4095
|
+
isCapitalize: !1,
|
|
4096
|
+
align: "left",
|
|
4097
|
+
italic: !1,
|
|
4098
|
+
clamp: "none",
|
|
4099
|
+
ellipsis: !1,
|
|
4100
|
+
as: "span"
|
|
4101
|
+
}
|
|
4102
|
+
}), We = E(
|
|
4103
|
+
({
|
|
4104
|
+
as: e = "span",
|
|
4105
|
+
color: t = "ghost",
|
|
4106
|
+
hasUnderline: r = !1,
|
|
4107
|
+
isCapitalize: o = !1,
|
|
4108
|
+
align: s = "left",
|
|
4109
|
+
italic: a = !1,
|
|
4110
|
+
clamp: l = "none",
|
|
4111
|
+
ellipsis: i = !1,
|
|
4112
|
+
fontSize: c,
|
|
4113
|
+
fontWeight: d,
|
|
4114
|
+
className: f,
|
|
4115
|
+
children: g,
|
|
4116
|
+
...b
|
|
4117
|
+
}, m) => {
|
|
4118
|
+
const w = [
|
|
4119
|
+
"h1",
|
|
4120
|
+
"h2",
|
|
4121
|
+
"h3",
|
|
4122
|
+
"h4",
|
|
4123
|
+
"h5",
|
|
4124
|
+
"h6",
|
|
4125
|
+
"p",
|
|
4126
|
+
"span",
|
|
4127
|
+
"label"
|
|
4128
|
+
].includes(e) ? e : "span", C = c ? `text-${c}` : "", R = d ? `font-${d}` : "";
|
|
4129
|
+
return /* @__PURE__ */ n.jsx(
|
|
4130
|
+
e,
|
|
4131
|
+
{
|
|
4132
|
+
ref: m,
|
|
4133
|
+
className: p(
|
|
4134
|
+
Gr({
|
|
4135
|
+
color: t,
|
|
4136
|
+
hasUnderline: r,
|
|
4137
|
+
isCapitalize: o,
|
|
4138
|
+
align: s,
|
|
4139
|
+
italic: a,
|
|
4140
|
+
clamp: l,
|
|
4141
|
+
ellipsis: i,
|
|
4142
|
+
// @ts-expect-error - `as` is not a valid variant
|
|
4143
|
+
as: w
|
|
4144
|
+
}),
|
|
4145
|
+
C,
|
|
4146
|
+
R,
|
|
4147
|
+
f
|
|
4148
|
+
),
|
|
4149
|
+
...b,
|
|
4150
|
+
children: g
|
|
4151
|
+
}
|
|
4152
|
+
);
|
|
4153
|
+
}
|
|
4154
|
+
), Wr = ({
|
|
4019
4155
|
value: e,
|
|
4020
|
-
onChange:
|
|
4021
|
-
className:
|
|
4156
|
+
onChange: t,
|
|
4157
|
+
className: r,
|
|
4022
4158
|
...o
|
|
4023
4159
|
}) => {
|
|
4024
|
-
const s = /* @__PURE__ */ new Date(), [a,
|
|
4025
|
-
/* @__PURE__ */ n.jsx(
|
|
4160
|
+
const s = /* @__PURE__ */ new Date(), [a, l] = H(s.getMonth()), [i, c] = H(s.getFullYear()), d = (v, w) => new Date(v, w + 1, 0).getDate(), f = (v, w) => new Date(v, w, 1).getDay(), g = () => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between px-4 pt-4 pb-2", children: [
|
|
4161
|
+
/* @__PURE__ */ n.jsx(We, { fontSize: "base", fontWeight: "semibold", children: e ? e.toLocaleDateString(void 0, {
|
|
4026
4162
|
year: "numeric",
|
|
4027
|
-
month: "long"
|
|
4028
|
-
|
|
4029
|
-
}) : `${l} ${new Date(l, a).toLocaleString(void 0, { month: "long" })}` }),
|
|
4163
|
+
month: "long"
|
|
4164
|
+
}) : `${i} ${new Date(i, a).toLocaleString(void 0, { month: "long" })}` }),
|
|
4030
4165
|
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
|
|
4031
4166
|
/* @__PURE__ */ n.jsx(
|
|
4032
4167
|
le,
|
|
4033
4168
|
{
|
|
4034
|
-
as:
|
|
4169
|
+
as: jt,
|
|
4035
4170
|
variant: "ghost",
|
|
4036
4171
|
size: "sm",
|
|
4037
4172
|
"aria-label": "Previous month",
|
|
4038
4173
|
onClick: () => {
|
|
4039
|
-
const v = a === 0 ? 11 : a - 1, w = a === 0 ?
|
|
4040
|
-
|
|
4174
|
+
const v = a === 0 ? 11 : a - 1, w = a === 0 ? i - 1 : i;
|
|
4175
|
+
l(v), c(w), t?.(new Date(w, v, 1));
|
|
4041
4176
|
}
|
|
4042
4177
|
}
|
|
4043
4178
|
),
|
|
4044
4179
|
/* @__PURE__ */ n.jsx(
|
|
4045
4180
|
le,
|
|
4046
4181
|
{
|
|
4047
|
-
as:
|
|
4182
|
+
as: Nt,
|
|
4048
4183
|
variant: "ghost",
|
|
4049
4184
|
size: "sm",
|
|
4050
4185
|
"aria-label": "Next month",
|
|
4051
4186
|
onClick: () => {
|
|
4052
|
-
const v = a === 11 ? 0 : a + 1, w = a === 11 ?
|
|
4053
|
-
|
|
4187
|
+
const v = a === 11 ? 0 : a + 1, w = a === 11 ? i + 1 : i;
|
|
4188
|
+
l(v), c(w), t?.(new Date(w, v, 1));
|
|
4054
4189
|
}
|
|
4055
4190
|
}
|
|
4056
4191
|
)
|
|
4057
4192
|
] })
|
|
4058
|
-
] }), b = () => /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-7 px-4 text-
|
|
4059
|
-
const v = [], w = f(
|
|
4060
|
-
for (let N = 0; N < w; N++)
|
|
4193
|
+
] }), b = () => /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-7 px-4 text-slate-500 mb-1", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((v) => /* @__PURE__ */ n.jsx(We, { fontSize: "xs", color: "ghost", align: "center", children: v }, v)) }), m = () => {
|
|
4194
|
+
const v = [], w = f(i, a), C = d(i, a), R = d(i, a - 1 < 0 ? 11 : a - 1);
|
|
4195
|
+
for (let N = 0; N < w; N++) {
|
|
4196
|
+
const M = R - w + N + 1;
|
|
4061
4197
|
v.push(
|
|
4062
4198
|
/* @__PURE__ */ n.jsx(
|
|
4063
4199
|
le,
|
|
4064
4200
|
{
|
|
4065
|
-
as: () =>
|
|
4201
|
+
as: () => M,
|
|
4066
4202
|
size: "sm",
|
|
4067
4203
|
"aria-label": "Previous month day",
|
|
4068
4204
|
variant: "ghost",
|
|
4069
4205
|
className: "text-slate-300",
|
|
4070
4206
|
onClick: () => {
|
|
4071
|
-
const
|
|
4072
|
-
|
|
4207
|
+
const F = a === 0 ? 11 : a - 1, L = a === 0 ? i - 1 : i, Y = R - w + N + 1;
|
|
4208
|
+
t?.(new Date(L, F, Y)), l(F), c(L);
|
|
4073
4209
|
}
|
|
4074
4210
|
},
|
|
4075
4211
|
"prev-" + N
|
|
4076
4212
|
)
|
|
4077
4213
|
);
|
|
4214
|
+
}
|
|
4078
4215
|
for (let N = 1; N <= C; N++) {
|
|
4079
|
-
const M = e && e.getFullYear() ===
|
|
4216
|
+
const M = e && e.getFullYear() === i && e.getMonth() === a && e.getDate() === N;
|
|
4080
4217
|
v.push(
|
|
4081
4218
|
/* @__PURE__ */ n.jsx(
|
|
4082
4219
|
le,
|
|
@@ -4084,9 +4221,9 @@ const Dt = y(
|
|
|
4084
4221
|
as: () => N,
|
|
4085
4222
|
variant: M ? "primary" : "ghost",
|
|
4086
4223
|
size: "sm",
|
|
4087
|
-
"aria-label": `Select ${
|
|
4224
|
+
"aria-label": `Select ${i}-${a + 1}-${N}`,
|
|
4088
4225
|
"aria-current": M ? "date" : void 0,
|
|
4089
|
-
onClick: () =>
|
|
4226
|
+
onClick: () => t?.(new Date(i, a, N))
|
|
4090
4227
|
},
|
|
4091
4228
|
N
|
|
4092
4229
|
)
|
|
@@ -4104,8 +4241,8 @@ const Dt = y(
|
|
|
4104
4241
|
variant: "ghost",
|
|
4105
4242
|
className: "text-slate-300",
|
|
4106
4243
|
onClick: () => {
|
|
4107
|
-
const M = a === 11 ? 0 : a + 1, F = a === 11 ?
|
|
4108
|
-
|
|
4244
|
+
const M = a === 11 ? 0 : a + 1, F = a === 11 ? i + 1 : i, L = N + 1;
|
|
4245
|
+
t?.(new Date(F, M, L)), l(M), c(F);
|
|
4109
4246
|
}
|
|
4110
4247
|
},
|
|
4111
4248
|
"next-" + N
|
|
@@ -4113,12 +4250,12 @@ const Dt = y(
|
|
|
4113
4250
|
);
|
|
4114
4251
|
return /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-7 gap-2 px-4 pb-4", children: v });
|
|
4115
4252
|
};
|
|
4116
|
-
return /* @__PURE__ */ n.jsxs("div", { className: p("select-none",
|
|
4253
|
+
return /* @__PURE__ */ n.jsxs("div", { className: p("select-none", r), ...o, children: [
|
|
4117
4254
|
g(),
|
|
4118
4255
|
b(),
|
|
4119
4256
|
m()
|
|
4120
4257
|
] });
|
|
4121
|
-
},
|
|
4258
|
+
}, st = Object.assign(Wr, {}), Yr = y("space-y-2", {
|
|
4122
4259
|
variants: {
|
|
4123
4260
|
direction: {
|
|
4124
4261
|
vertical: "space-y-2 space-x-0",
|
|
@@ -4128,7 +4265,7 @@ const Dt = y(
|
|
|
4128
4265
|
defaultVariants: {
|
|
4129
4266
|
direction: "vertical"
|
|
4130
4267
|
}
|
|
4131
|
-
}),
|
|
4268
|
+
}), qr = y(
|
|
4132
4269
|
"relative h-4 w-4 rounded border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
|
|
4133
4270
|
{
|
|
4134
4271
|
variants: {
|
|
@@ -4166,7 +4303,7 @@ const Dt = y(
|
|
|
4166
4303
|
size: "md"
|
|
4167
4304
|
}
|
|
4168
4305
|
}
|
|
4169
|
-
),
|
|
4306
|
+
), Ur = y(
|
|
4170
4307
|
"text-foreground cursor-pointer select-none",
|
|
4171
4308
|
{
|
|
4172
4309
|
variants: {
|
|
@@ -4185,36 +4322,36 @@ const Dt = y(
|
|
|
4185
4322
|
disabled: !1
|
|
4186
4323
|
}
|
|
4187
4324
|
}
|
|
4188
|
-
),
|
|
4189
|
-
const e =
|
|
4325
|
+
), nt = ee(null), Hr = () => {
|
|
4326
|
+
const e = te(nt);
|
|
4190
4327
|
if (!e)
|
|
4191
4328
|
throw new Error("CheckboxOption must be used within CheckboxInput");
|
|
4192
4329
|
return e;
|
|
4193
|
-
},
|
|
4194
|
-
const
|
|
4330
|
+
}, at = I.forwardRef(({ children: e, description: t, className: r, disabled: o, id: s, ...a }, l) => {
|
|
4331
|
+
const i = Hr(), c = I.useId(), d = s || c, f = o || i.disabled, g = i.error ? "danger" : i.variant || "primary";
|
|
4195
4332
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4196
4333
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
4197
4334
|
"input",
|
|
4198
4335
|
{
|
|
4199
|
-
ref:
|
|
4336
|
+
ref: l,
|
|
4200
4337
|
type: "checkbox",
|
|
4201
4338
|
id: d,
|
|
4202
4339
|
disabled: f,
|
|
4203
4340
|
className: p(
|
|
4204
|
-
|
|
4341
|
+
qr({
|
|
4205
4342
|
variant: g,
|
|
4206
|
-
size:
|
|
4343
|
+
size: i.size
|
|
4207
4344
|
}),
|
|
4208
4345
|
// Custom checkmark styling using ::after - centered positioning with size variants
|
|
4209
4346
|
'after:content-[""] after:absolute after:left-1/2 after:top-[45%] after:-translate-x-1/2 after:-translate-y-1/2 after:border-b-2 after:border-r-2 after:border-white after:rotate-45 after:opacity-0 after:transition-opacity after:duration-200',
|
|
4210
4347
|
// Size-specific checkmark dimensions
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4348
|
+
i.size === "sm" && "after:w-[3px] after:h-[6px]",
|
|
4349
|
+
i.size === "md" && "after:w-[4px] after:h-[8px]",
|
|
4350
|
+
i.size === "lg" && "after:w-[6px] after:h-[10px]",
|
|
4214
4351
|
"checked:after:opacity-100",
|
|
4215
4352
|
// Outline variants use colored checkmark
|
|
4216
4353
|
g?.includes("outline") && "checked:after:border-current",
|
|
4217
|
-
|
|
4354
|
+
r
|
|
4218
4355
|
),
|
|
4219
4356
|
...a
|
|
4220
4357
|
}
|
|
@@ -4224,68 +4361,68 @@ const Dt = y(
|
|
|
4224
4361
|
"label",
|
|
4225
4362
|
{
|
|
4226
4363
|
htmlFor: d,
|
|
4227
|
-
className:
|
|
4228
|
-
size:
|
|
4364
|
+
className: Ur({
|
|
4365
|
+
size: i.size,
|
|
4229
4366
|
disabled: f
|
|
4230
4367
|
}),
|
|
4231
4368
|
children: e
|
|
4232
4369
|
}
|
|
4233
4370
|
),
|
|
4234
|
-
|
|
4371
|
+
t && /* @__PURE__ */ n.jsx(
|
|
4235
4372
|
"div",
|
|
4236
4373
|
{
|
|
4237
4374
|
className: p(
|
|
4238
4375
|
"text-gray-600 mt-1",
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4376
|
+
i.size === "sm" && "text-xs",
|
|
4377
|
+
i.size === "md" && "text-xs",
|
|
4378
|
+
i.size === "lg" && "text-sm",
|
|
4242
4379
|
f && "opacity-50"
|
|
4243
4380
|
),
|
|
4244
|
-
children:
|
|
4381
|
+
children: t
|
|
4245
4382
|
}
|
|
4246
4383
|
)
|
|
4247
4384
|
] })
|
|
4248
4385
|
] });
|
|
4249
4386
|
});
|
|
4250
|
-
|
|
4251
|
-
const
|
|
4387
|
+
at.displayName = "CheckboxOption";
|
|
4388
|
+
const it = I.forwardRef(
|
|
4252
4389
|
({
|
|
4253
4390
|
variant: e = "primary",
|
|
4254
|
-
size:
|
|
4255
|
-
label:
|
|
4391
|
+
size: t = "md",
|
|
4392
|
+
label: r,
|
|
4256
4393
|
helperText: o,
|
|
4257
4394
|
error: s,
|
|
4258
4395
|
direction: a = "vertical",
|
|
4259
|
-
className:
|
|
4260
|
-
disabled:
|
|
4396
|
+
className: l,
|
|
4397
|
+
disabled: i,
|
|
4261
4398
|
children: c,
|
|
4262
4399
|
...d
|
|
4263
4400
|
}, f) => {
|
|
4264
4401
|
const g = !!s, b = {
|
|
4265
4402
|
variant: e,
|
|
4266
|
-
size:
|
|
4267
|
-
disabled:
|
|
4403
|
+
size: t,
|
|
4404
|
+
disabled: i,
|
|
4268
4405
|
error: g
|
|
4269
4406
|
};
|
|
4270
|
-
return /* @__PURE__ */ n.jsx(
|
|
4271
|
-
|
|
4272
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
4407
|
+
return /* @__PURE__ */ n.jsx(nt.Provider, { value: b, children: /* @__PURE__ */ n.jsxs("div", { ref: f, className: p("w-full", l), ...d, children: [
|
|
4408
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
4409
|
+
/* @__PURE__ */ n.jsx("div", { className: Yr({ direction: a }), children: c }),
|
|
4273
4410
|
g && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
4274
4411
|
!g && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
4275
4412
|
] }) });
|
|
4276
4413
|
}
|
|
4277
4414
|
);
|
|
4278
|
-
|
|
4279
|
-
const
|
|
4280
|
-
Option:
|
|
4281
|
-
}),
|
|
4415
|
+
it.displayName = "CheckboxInput";
|
|
4416
|
+
const Ws = Object.assign(it, {
|
|
4417
|
+
Option: at
|
|
4418
|
+
}), lt = ee(
|
|
4282
4419
|
null
|
|
4283
|
-
),
|
|
4284
|
-
const e =
|
|
4420
|
+
), Jr = () => {
|
|
4421
|
+
const e = te(lt);
|
|
4285
4422
|
if (!e)
|
|
4286
4423
|
throw new Error("useChipInputContext must be used within ChipInputContext");
|
|
4287
4424
|
return e;
|
|
4288
|
-
},
|
|
4425
|
+
}, Xr = y(
|
|
4289
4426
|
"inline-flex items-center px-2 py-1 text-xs bg-neutral rounded-full font-medium transition-colors duration-200 cursor-pointer border border-slate-100",
|
|
4290
4427
|
{
|
|
4291
4428
|
variants: {
|
|
@@ -4364,12 +4501,12 @@ const Gs = Object.assign(ar, {
|
|
|
4364
4501
|
selected: !1
|
|
4365
4502
|
}
|
|
4366
4503
|
}
|
|
4367
|
-
),
|
|
4368
|
-
const
|
|
4504
|
+
), ct = I.forwardRef(({ children: e, className: t, disabled: r, id: o, value: s, ...a }, l) => {
|
|
4505
|
+
const i = Jr(), c = I.useId(), d = o || c, f = r || i.disabled, g = i.error ? "danger" : i.variant || "primary", b = i.value?.includes(s) ?? !1, m = (v) => {
|
|
4369
4506
|
if (!f) {
|
|
4370
|
-
const w =
|
|
4507
|
+
const w = i.value || [];
|
|
4371
4508
|
let C;
|
|
4372
|
-
b ? C = w.filter((R) => R !== s) : C = [...w, s],
|
|
4509
|
+
b ? C = w.filter((R) => R !== s) : C = [...w, s], i.onChange?.(C);
|
|
4373
4510
|
}
|
|
4374
4511
|
a.onChange?.(v);
|
|
4375
4512
|
};
|
|
@@ -4377,10 +4514,10 @@ const Gs = Object.assign(ar, {
|
|
|
4377
4514
|
/* @__PURE__ */ n.jsx(
|
|
4378
4515
|
"input",
|
|
4379
4516
|
{
|
|
4380
|
-
ref:
|
|
4517
|
+
ref: l,
|
|
4381
4518
|
type: "checkbox",
|
|
4382
4519
|
id: d,
|
|
4383
|
-
name: `${
|
|
4520
|
+
name: `${i.name}[]`,
|
|
4384
4521
|
value: s,
|
|
4385
4522
|
checked: b,
|
|
4386
4523
|
disabled: f,
|
|
@@ -4395,12 +4532,12 @@ const Gs = Object.assign(ar, {
|
|
|
4395
4532
|
htmlFor: d,
|
|
4396
4533
|
"data-selected": b,
|
|
4397
4534
|
className: p(
|
|
4398
|
-
|
|
4535
|
+
Xr({
|
|
4399
4536
|
variant: g,
|
|
4400
4537
|
selected: b
|
|
4401
4538
|
}),
|
|
4402
4539
|
f && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
4403
|
-
|
|
4540
|
+
t
|
|
4404
4541
|
),
|
|
4405
4542
|
children: /* @__PURE__ */ n.jsxs("span", { className: "flex items-center", children: [
|
|
4406
4543
|
/* @__PURE__ */ n.jsx(
|
|
@@ -4413,7 +4550,7 @@ const Gs = Object.assign(ar, {
|
|
|
4413
4550
|
),
|
|
4414
4551
|
"aria-hidden": "true",
|
|
4415
4552
|
children: b && /* @__PURE__ */ n.jsx(
|
|
4416
|
-
|
|
4553
|
+
Ct,
|
|
4417
4554
|
{
|
|
4418
4555
|
size: 16,
|
|
4419
4556
|
className: g === "primary" ? "text-coral" : g === "secondary" ? "text-sage" : g === "tertiary" ? "text-mist" : g === "ghost" ? "text-slate" : g === "success" ? "text-success" : g === "info" ? "text-info" : g === "warning" ? "text-warning" : g === "danger" ? "text-danger" : "text-coral"
|
|
@@ -4427,17 +4564,17 @@ const Gs = Object.assign(ar, {
|
|
|
4427
4564
|
)
|
|
4428
4565
|
] });
|
|
4429
4566
|
});
|
|
4430
|
-
|
|
4431
|
-
const
|
|
4567
|
+
ct.displayName = "ChipOption";
|
|
4568
|
+
const Kr = I.forwardRef(
|
|
4432
4569
|
({
|
|
4433
4570
|
variant: e = "primary",
|
|
4434
|
-
label:
|
|
4435
|
-
helperText:
|
|
4571
|
+
label: t,
|
|
4572
|
+
helperText: r,
|
|
4436
4573
|
error: o,
|
|
4437
4574
|
className: s,
|
|
4438
4575
|
disabled: a,
|
|
4439
|
-
name:
|
|
4440
|
-
value:
|
|
4576
|
+
name: l,
|
|
4577
|
+
value: i = [],
|
|
4441
4578
|
onChange: c,
|
|
4442
4579
|
children: d,
|
|
4443
4580
|
...f
|
|
@@ -4446,52 +4583,52 @@ const Jt = z.forwardRef(
|
|
|
4446
4583
|
variant: e,
|
|
4447
4584
|
disabled: a,
|
|
4448
4585
|
error: b,
|
|
4449
|
-
name:
|
|
4450
|
-
value:
|
|
4586
|
+
name: l,
|
|
4587
|
+
value: i,
|
|
4451
4588
|
onChange: c
|
|
4452
4589
|
};
|
|
4453
|
-
return /* @__PURE__ */ n.jsx(
|
|
4454
|
-
|
|
4590
|
+
return /* @__PURE__ */ n.jsx(lt.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full", s), ...f, children: [
|
|
4591
|
+
t && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: t }),
|
|
4455
4592
|
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: d }),
|
|
4456
4593
|
b && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: o }),
|
|
4457
|
-
!b &&
|
|
4594
|
+
!b && r && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: r })
|
|
4458
4595
|
] }) });
|
|
4459
4596
|
}
|
|
4460
|
-
),
|
|
4461
|
-
Option:
|
|
4462
|
-
}),
|
|
4463
|
-
({ className: e, ...
|
|
4597
|
+
), Ys = Object.assign(Kr, {
|
|
4598
|
+
Option: ct
|
|
4599
|
+
}), Zr = E(
|
|
4600
|
+
({ className: e, ...t }, r) => /* @__PURE__ */ n.jsx(
|
|
4464
4601
|
"div",
|
|
4465
4602
|
{
|
|
4466
|
-
ref:
|
|
4603
|
+
ref: r,
|
|
4467
4604
|
className: p("px-6 pt-6 pb-2 text-lg font-semibold", e),
|
|
4468
|
-
...
|
|
4605
|
+
...t
|
|
4469
4606
|
}
|
|
4470
4607
|
)
|
|
4471
|
-
),
|
|
4472
|
-
({ className: e, ...
|
|
4608
|
+
), Qr = E(
|
|
4609
|
+
({ className: e, ...t }, r) => /* @__PURE__ */ n.jsx(
|
|
4473
4610
|
"div",
|
|
4474
4611
|
{
|
|
4475
|
-
ref:
|
|
4612
|
+
ref: r,
|
|
4476
4613
|
className: p("px-6 py-4 flex justify-end gap-2", e),
|
|
4477
|
-
...
|
|
4614
|
+
...t
|
|
4478
4615
|
}
|
|
4479
4616
|
)
|
|
4480
|
-
),
|
|
4481
|
-
({ className: e, ...
|
|
4482
|
-
),
|
|
4483
|
-
({ onOverlayClick: e, ...
|
|
4617
|
+
), eo = E(
|
|
4618
|
+
({ className: e, ...t }, r) => /* @__PURE__ */ n.jsx("div", { ref: r, className: p("px-6 py-2", e), ...t })
|
|
4619
|
+
), to = E(
|
|
4620
|
+
({ onOverlayClick: e, ...t }, r) => /* @__PURE__ */ n.jsx(
|
|
4484
4621
|
"div",
|
|
4485
4622
|
{
|
|
4486
|
-
ref:
|
|
4623
|
+
ref: r,
|
|
4487
4624
|
role: "presentation",
|
|
4488
4625
|
tabIndex: -1,
|
|
4489
4626
|
"aria-modal": "true",
|
|
4490
4627
|
onClick: e,
|
|
4491
|
-
...
|
|
4628
|
+
...t
|
|
4492
4629
|
}
|
|
4493
4630
|
)
|
|
4494
|
-
),
|
|
4631
|
+
), ro = y(
|
|
4495
4632
|
"fixed inset-0 z-51 transition-opacity duration-300 bg-black/30 backdrop-blur-md flex items-center justify-center transition-opacity duration-200 ease-in-out",
|
|
4496
4633
|
{
|
|
4497
4634
|
variants: {
|
|
@@ -4504,7 +4641,7 @@ const Jt = z.forwardRef(
|
|
|
4504
4641
|
placement: "center"
|
|
4505
4642
|
}
|
|
4506
4643
|
}
|
|
4507
|
-
),
|
|
4644
|
+
), oo = y(
|
|
4508
4645
|
[
|
|
4509
4646
|
"bg-white rounded-lg shadow-xl relative",
|
|
4510
4647
|
"flex flex-col",
|
|
@@ -4533,63 +4670,63 @@ const Jt = z.forwardRef(
|
|
|
4533
4670
|
}
|
|
4534
4671
|
}
|
|
4535
4672
|
);
|
|
4536
|
-
function
|
|
4537
|
-
|
|
4538
|
-
if (
|
|
4539
|
-
const
|
|
4673
|
+
function so(e, t) {
|
|
4674
|
+
J(() => {
|
|
4675
|
+
if (t && e.current) {
|
|
4676
|
+
const r = e.current.querySelectorAll(
|
|
4540
4677
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
4541
4678
|
);
|
|
4542
|
-
|
|
4679
|
+
r.length && r[0].focus();
|
|
4543
4680
|
}
|
|
4544
|
-
}, [
|
|
4681
|
+
}, [t, e]);
|
|
4545
4682
|
}
|
|
4546
|
-
function
|
|
4547
|
-
|
|
4683
|
+
function no(e, t) {
|
|
4684
|
+
J(() => {
|
|
4548
4685
|
if (!e) return;
|
|
4549
|
-
const
|
|
4550
|
-
o.key === "Escape" &&
|
|
4686
|
+
const r = (o) => {
|
|
4687
|
+
o.key === "Escape" && t();
|
|
4551
4688
|
};
|
|
4552
|
-
return document.addEventListener("keydown",
|
|
4553
|
-
}, [e,
|
|
4689
|
+
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
4690
|
+
}, [e, t]);
|
|
4554
4691
|
}
|
|
4555
|
-
const
|
|
4692
|
+
const ao = 200, io = ({
|
|
4556
4693
|
isOpen: e,
|
|
4557
|
-
onOpenChange:
|
|
4558
|
-
size:
|
|
4694
|
+
onOpenChange: t,
|
|
4695
|
+
size: r = "md",
|
|
4559
4696
|
placement: o = "center",
|
|
4560
4697
|
children: s,
|
|
4561
4698
|
disableOverlayClose: a,
|
|
4562
|
-
disableEscClose:
|
|
4563
|
-
...
|
|
4699
|
+
disableEscClose: l,
|
|
4700
|
+
...i
|
|
4564
4701
|
}) => {
|
|
4565
|
-
const c = ce(null), d = ce(null), [f, g] =
|
|
4566
|
-
return
|
|
4702
|
+
const c = ce(null), d = ce(null), [f, g] = H(e), [b, m] = H(!1);
|
|
4703
|
+
return J(() => {
|
|
4567
4704
|
if (e)
|
|
4568
4705
|
g(!0), m(!1), c.current = document.activeElement;
|
|
4569
4706
|
else if (f) {
|
|
4570
4707
|
m(!0);
|
|
4571
4708
|
const v = setTimeout(() => {
|
|
4572
4709
|
g(!1), m(!1), c.current && c.current.focus();
|
|
4573
|
-
},
|
|
4710
|
+
}, ao);
|
|
4574
4711
|
return () => clearTimeout(v);
|
|
4575
4712
|
}
|
|
4576
|
-
}, [e]),
|
|
4577
|
-
|
|
4578
|
-
}),
|
|
4579
|
-
|
|
4713
|
+
}, [e]), no(e && !l, () => {
|
|
4714
|
+
t && t(!1);
|
|
4715
|
+
}), so(d, e), /* @__PURE__ */ n.jsx(
|
|
4716
|
+
to,
|
|
4580
4717
|
{
|
|
4581
4718
|
ref: d,
|
|
4582
|
-
className: `${
|
|
4719
|
+
className: `${ro({ placement: o })} transition-opacity duration-200 ease-in-out ` + (e && !b ? "opacity-100" : "opacity-0 pointer-events-none"),
|
|
4583
4720
|
onOverlayClick: (v) => {
|
|
4584
|
-
v.target === d.current && !a &&
|
|
4721
|
+
v.target === d.current && !a && t && t(!1);
|
|
4585
4722
|
},
|
|
4586
4723
|
placement: o,
|
|
4587
4724
|
children: /* @__PURE__ */ n.jsx(
|
|
4588
4725
|
"div",
|
|
4589
4726
|
{
|
|
4590
|
-
className: `${
|
|
4727
|
+
className: `${oo({ size: r, placement: o })} transition-all duration-200 ease-in-out ` + (e && !b ? "opacity-100 scale-100" : "opacity-0 scale-95 pointer-events-none"),
|
|
4591
4728
|
role: "dialog",
|
|
4592
|
-
...
|
|
4729
|
+
...i,
|
|
4593
4730
|
tabIndex: 0,
|
|
4594
4731
|
"aria-hidden": !e,
|
|
4595
4732
|
children: s
|
|
@@ -4597,11 +4734,11 @@ const so = 200, no = ({
|
|
|
4597
4734
|
)
|
|
4598
4735
|
}
|
|
4599
4736
|
);
|
|
4600
|
-
},
|
|
4601
|
-
Header:
|
|
4602
|
-
Body:
|
|
4603
|
-
Footer:
|
|
4604
|
-
}),
|
|
4737
|
+
}, ze = Object.assign(io, {
|
|
4738
|
+
Header: Zr,
|
|
4739
|
+
Body: eo,
|
|
4740
|
+
Footer: Qr
|
|
4741
|
+
}), dt = y(
|
|
4605
4742
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
|
|
4606
4743
|
{
|
|
4607
4744
|
variants: {
|
|
@@ -4633,32 +4770,32 @@ const so = 200, no = ({
|
|
|
4633
4770
|
variant: "primary"
|
|
4634
4771
|
}
|
|
4635
4772
|
}
|
|
4636
|
-
),
|
|
4773
|
+
), lo = dt, ut = I.forwardRef(
|
|
4637
4774
|
({
|
|
4638
4775
|
leftContent: e,
|
|
4639
|
-
rightContent:
|
|
4640
|
-
hasError:
|
|
4776
|
+
rightContent: t,
|
|
4777
|
+
hasError: r,
|
|
4641
4778
|
variant: o = "primary",
|
|
4642
4779
|
value: s,
|
|
4643
4780
|
placeholder: a = "Select date",
|
|
4644
|
-
formatDate:
|
|
4645
|
-
className:
|
|
4781
|
+
formatDate: l,
|
|
4782
|
+
className: i,
|
|
4646
4783
|
...c
|
|
4647
4784
|
}, d) => /* @__PURE__ */ n.jsxs(
|
|
4648
4785
|
"button",
|
|
4649
4786
|
{
|
|
4650
4787
|
ref: d,
|
|
4651
4788
|
type: "button",
|
|
4652
|
-
"aria-invalid":
|
|
4789
|
+
"aria-invalid": r,
|
|
4653
4790
|
className: p(
|
|
4654
|
-
|
|
4655
|
-
variant:
|
|
4791
|
+
lo({
|
|
4792
|
+
variant: r ? "danger" : o
|
|
4656
4793
|
}),
|
|
4657
4794
|
e ? "pl-9" : "pl-3",
|
|
4658
|
-
|
|
4795
|
+
t ? "pr-9" : "pr-3",
|
|
4659
4796
|
"h-10 flex items-center justify-between cursor-pointer w-full relative",
|
|
4660
4797
|
"text-left",
|
|
4661
|
-
|
|
4798
|
+
i
|
|
4662
4799
|
),
|
|
4663
4800
|
...c,
|
|
4664
4801
|
children: [
|
|
@@ -4676,30 +4813,30 @@ const so = 200, no = ({
|
|
|
4676
4813
|
className: p(
|
|
4677
4814
|
"flex-1",
|
|
4678
4815
|
e ? "ml-2" : "",
|
|
4679
|
-
|
|
4816
|
+
t ? "mr-2" : ""
|
|
4680
4817
|
),
|
|
4681
|
-
children:
|
|
4818
|
+
children: l ? l(s) : a
|
|
4682
4819
|
}
|
|
4683
4820
|
),
|
|
4684
|
-
|
|
4821
|
+
t && /* @__PURE__ */ n.jsx(
|
|
4685
4822
|
"span",
|
|
4686
4823
|
{
|
|
4687
4824
|
className: "absolute right-2.5 top-0 bottom-0 pointer-events-none text-gray-500 flex items-center justify-center w-5",
|
|
4688
4825
|
"data-testid": "right-content",
|
|
4689
|
-
children:
|
|
4826
|
+
children: t
|
|
4690
4827
|
}
|
|
4691
4828
|
)
|
|
4692
4829
|
]
|
|
4693
4830
|
}
|
|
4694
4831
|
)
|
|
4695
4832
|
);
|
|
4696
|
-
|
|
4697
|
-
const
|
|
4698
|
-
const e =
|
|
4833
|
+
ut.displayName = "DateSinglePickerTrigger";
|
|
4834
|
+
const gt = ee(null), Ae = () => {
|
|
4835
|
+
const e = te(gt);
|
|
4699
4836
|
if (!e)
|
|
4700
4837
|
throw new Error("useMenuContext must be used within a Menu component");
|
|
4701
4838
|
return e;
|
|
4702
|
-
},
|
|
4839
|
+
}, co = y(
|
|
4703
4840
|
// Modern, clean, accessible base style
|
|
4704
4841
|
"z-50 min-w-40 bg-neutral-50 text-black rounded-lg shadow-md border border-transparent",
|
|
4705
4842
|
{
|
|
@@ -4718,7 +4855,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4718
4855
|
size: "md"
|
|
4719
4856
|
}
|
|
4720
4857
|
}
|
|
4721
|
-
),
|
|
4858
|
+
), uo = y(
|
|
4722
4859
|
"w-full text-left px-4 rounded-md cursor-pointer transition-colors duration-150 font-medium select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coral/70 hover:bg-slate-100 active:bg-slate-200 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4723
4860
|
{
|
|
4724
4861
|
variants: {
|
|
@@ -4736,30 +4873,30 @@ const ur = ee(null), Ae = () => {
|
|
|
4736
4873
|
size: "md"
|
|
4737
4874
|
}
|
|
4738
4875
|
}
|
|
4739
|
-
),
|
|
4740
|
-
({ children: e, ...
|
|
4876
|
+
), go = E(
|
|
4877
|
+
({ children: e, ...t }, r) => {
|
|
4741
4878
|
const { open: o, triggerRef: s } = Ae();
|
|
4742
4879
|
return /* @__PURE__ */ n.jsx(
|
|
4743
4880
|
"button",
|
|
4744
4881
|
{
|
|
4745
4882
|
ref: (a) => {
|
|
4746
|
-
s.current = a, typeof
|
|
4883
|
+
s.current = a, typeof r == "function" ? r(a) : r && (r.current = a);
|
|
4747
4884
|
},
|
|
4748
4885
|
"aria-haspopup": "menu",
|
|
4749
4886
|
"aria-expanded": o,
|
|
4750
4887
|
"aria-controls": "menu-content",
|
|
4751
4888
|
type: "button",
|
|
4752
|
-
...
|
|
4889
|
+
...t,
|
|
4753
4890
|
children: e
|
|
4754
4891
|
}
|
|
4755
4892
|
);
|
|
4756
4893
|
}
|
|
4757
|
-
),
|
|
4758
|
-
({ children: e, className:
|
|
4759
|
-
const { open: s, contentRef: a, triggerRef:
|
|
4894
|
+
), fo = E(
|
|
4895
|
+
({ children: e, className: t, ...r }, o) => {
|
|
4896
|
+
const { open: s, contentRef: a, triggerRef: l, size: i } = Ae(), c = Ee();
|
|
4760
4897
|
let d = 0, f = 0;
|
|
4761
|
-
if (
|
|
4762
|
-
const g =
|
|
4898
|
+
if (l.current) {
|
|
4899
|
+
const g = l.current.getBoundingClientRect();
|
|
4763
4900
|
d = g.bottom + window.scrollY + 4, f = g.left + window.scrollX;
|
|
4764
4901
|
}
|
|
4765
4902
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -4773,25 +4910,25 @@ const ur = ee(null), Ae = () => {
|
|
|
4773
4910
|
tabIndex: -1,
|
|
4774
4911
|
"aria-hidden": !s,
|
|
4775
4912
|
className: p(
|
|
4776
|
-
|
|
4777
|
-
size:
|
|
4913
|
+
co({
|
|
4914
|
+
size: i
|
|
4778
4915
|
}),
|
|
4779
4916
|
"absolute z-50 transition-opacity duration-150 ease-out",
|
|
4780
4917
|
s ? "opacity-100" : "opacity-0",
|
|
4781
|
-
|
|
4918
|
+
t
|
|
4782
4919
|
),
|
|
4783
4920
|
style: {
|
|
4784
|
-
minWidth:
|
|
4921
|
+
minWidth: l.current?.offsetWidth,
|
|
4785
4922
|
top: d,
|
|
4786
4923
|
left: f
|
|
4787
4924
|
},
|
|
4788
|
-
...
|
|
4925
|
+
...r,
|
|
4789
4926
|
children: s && e
|
|
4790
4927
|
}
|
|
4791
4928
|
);
|
|
4792
4929
|
}
|
|
4793
|
-
),
|
|
4794
|
-
({ children: e, disabled:
|
|
4930
|
+
), bo = E(
|
|
4931
|
+
({ children: e, disabled: t, className: r, ...o }, s) => {
|
|
4795
4932
|
const { size: a } = Ae();
|
|
4796
4933
|
return /* @__PURE__ */ n.jsx(
|
|
4797
4934
|
"button",
|
|
@@ -4799,13 +4936,13 @@ const ur = ee(null), Ae = () => {
|
|
|
4799
4936
|
ref: s,
|
|
4800
4937
|
role: "menuitem",
|
|
4801
4938
|
tabIndex: 0,
|
|
4802
|
-
disabled:
|
|
4803
|
-
"aria-disabled":
|
|
4939
|
+
disabled: t,
|
|
4940
|
+
"aria-disabled": t,
|
|
4804
4941
|
className: p(
|
|
4805
|
-
|
|
4942
|
+
uo({
|
|
4806
4943
|
size: a
|
|
4807
4944
|
}),
|
|
4808
|
-
|
|
4945
|
+
r
|
|
4809
4946
|
),
|
|
4810
4947
|
...o,
|
|
4811
4948
|
children: e
|
|
@@ -4813,94 +4950,94 @@ const ur = ee(null), Ae = () => {
|
|
|
4813
4950
|
);
|
|
4814
4951
|
}
|
|
4815
4952
|
);
|
|
4816
|
-
function
|
|
4817
|
-
|
|
4953
|
+
function mo(e, t, r, o) {
|
|
4954
|
+
J(() => {
|
|
4818
4955
|
if (!e) return;
|
|
4819
4956
|
function s(a) {
|
|
4820
|
-
!
|
|
4957
|
+
!t.current?.contains(a.target) && !r.current?.contains(a.target) && o();
|
|
4821
4958
|
}
|
|
4822
4959
|
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
4823
|
-
}, [e, o,
|
|
4960
|
+
}, [e, o, t, r]);
|
|
4824
4961
|
}
|
|
4825
|
-
function
|
|
4826
|
-
|
|
4827
|
-
if (e &&
|
|
4828
|
-
const
|
|
4829
|
-
|
|
4962
|
+
function ho(e, t) {
|
|
4963
|
+
J(() => {
|
|
4964
|
+
if (e && t.current) {
|
|
4965
|
+
const r = t.current.querySelectorAll('[role="menuitem"]');
|
|
4966
|
+
r.length && r[0].focus();
|
|
4830
4967
|
}
|
|
4831
|
-
}, [e,
|
|
4968
|
+
}, [e, t]);
|
|
4832
4969
|
}
|
|
4833
|
-
function
|
|
4834
|
-
|
|
4835
|
-
if (!e || !
|
|
4836
|
-
const s =
|
|
4837
|
-
function a(
|
|
4838
|
-
const
|
|
4970
|
+
function xo(e, t, r, o) {
|
|
4971
|
+
J(() => {
|
|
4972
|
+
if (!e || !t.current) return;
|
|
4973
|
+
const s = t.current;
|
|
4974
|
+
function a(l) {
|
|
4975
|
+
const i = Array.from(
|
|
4839
4976
|
s.querySelectorAll('[role="menuitem"]')
|
|
4840
|
-
), c = document.activeElement, d =
|
|
4841
|
-
|
|
4977
|
+
), c = document.activeElement, d = i.indexOf(c);
|
|
4978
|
+
l.key === "ArrowDown" ? (l.preventDefault(), i.length && i[(d + 1) % i.length].focus()) : l.key === "ArrowUp" ? (l.preventDefault(), i.length && i[(d - 1 + i.length) % i.length].focus()) : l.key === "Home" ? (l.preventDefault(), i.length && i[0].focus()) : l.key === "End" ? (l.preventDefault(), i.length && i[i.length - 1].focus()) : l.key === "Escape" && (l.preventDefault(), o(), r.current?.focus());
|
|
4842
4979
|
}
|
|
4843
4980
|
return s.addEventListener("keydown", a), () => s.removeEventListener("keydown", a);
|
|
4844
|
-
}, [e, o,
|
|
4981
|
+
}, [e, o, t, r]);
|
|
4845
4982
|
}
|
|
4846
|
-
const
|
|
4983
|
+
const po = ({
|
|
4847
4984
|
children: e,
|
|
4848
|
-
isOpen:
|
|
4849
|
-
onOutsideClick:
|
|
4985
|
+
isOpen: t,
|
|
4986
|
+
onOutsideClick: r,
|
|
4850
4987
|
size: o = "md"
|
|
4851
4988
|
}) => {
|
|
4852
4989
|
const s = ce(null), a = ce(null);
|
|
4853
|
-
return
|
|
4854
|
-
|
|
4990
|
+
return mo(t, a, s, r), ho(t, a), xo(t, a, s, r), /* @__PURE__ */ n.jsx(
|
|
4991
|
+
gt.Provider,
|
|
4855
4992
|
{
|
|
4856
|
-
value: { open:
|
|
4993
|
+
value: { open: t, triggerRef: s, contentRef: a, size: o },
|
|
4857
4994
|
children: e
|
|
4858
4995
|
}
|
|
4859
4996
|
);
|
|
4860
|
-
},
|
|
4861
|
-
Trigger:
|
|
4862
|
-
Content:
|
|
4863
|
-
Item:
|
|
4864
|
-
}),
|
|
4997
|
+
}, Ie = Object.assign(po, {
|
|
4998
|
+
Trigger: go,
|
|
4999
|
+
Content: fo,
|
|
5000
|
+
Item: bo
|
|
5001
|
+
}), vo = ({
|
|
4865
5002
|
open: e,
|
|
4866
|
-
value:
|
|
4867
|
-
onChange:
|
|
5003
|
+
value: t,
|
|
5004
|
+
onChange: r,
|
|
4868
5005
|
handleMenuClose: o
|
|
4869
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
4870
|
-
/* @__PURE__ */ n.jsx(
|
|
4871
|
-
/* @__PURE__ */ n.jsx(
|
|
4872
|
-
] }),
|
|
5006
|
+
}) => /* @__PURE__ */ n.jsxs(Ie, { isOpen: e, onOutsideClick: o, children: [
|
|
5007
|
+
/* @__PURE__ */ n.jsx(Ie.Trigger, { className: "absolute top-[90%] left-0", children: /* @__PURE__ */ n.jsx("span", { "aria-hidden": "true" }) }),
|
|
5008
|
+
/* @__PURE__ */ n.jsx(Ie.Content, { className: "drop-shadow-lg rounded-lg bg-white border border-neutral", children: /* @__PURE__ */ n.jsx(st, { value: t, onChange: r }) })
|
|
5009
|
+
] }), wo = ({
|
|
4873
5010
|
open: e,
|
|
4874
|
-
setOpen:
|
|
4875
|
-
value:
|
|
5011
|
+
setOpen: t,
|
|
5012
|
+
value: r,
|
|
4876
5013
|
onChange: o,
|
|
4877
5014
|
label: s,
|
|
4878
5015
|
buttonRef: a
|
|
4879
5016
|
}) => {
|
|
4880
|
-
const [
|
|
4881
|
-
|
|
5017
|
+
const [l, i] = H(
|
|
5018
|
+
r
|
|
4882
5019
|
);
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
}, [
|
|
5020
|
+
J(() => {
|
|
5021
|
+
i(r);
|
|
5022
|
+
}, [r, e]);
|
|
4886
5023
|
const c = () => {
|
|
4887
|
-
|
|
5024
|
+
t(!1), i(r), a.current?.focus();
|
|
4888
5025
|
}, d = () => {
|
|
4889
|
-
|
|
5026
|
+
l && (o(l), t(!1), a.current?.focus());
|
|
4890
5027
|
};
|
|
4891
5028
|
return /* @__PURE__ */ n.jsxs(
|
|
4892
|
-
|
|
5029
|
+
ze,
|
|
4893
5030
|
{
|
|
4894
5031
|
isOpen: e,
|
|
4895
|
-
onOpenChange:
|
|
5032
|
+
onOpenChange: t,
|
|
4896
5033
|
placement: "top",
|
|
4897
5034
|
size: "md",
|
|
4898
5035
|
"aria-label": s ? String(s) : "Select date",
|
|
4899
5036
|
disableOverlayClose: !1,
|
|
4900
5037
|
disableEscClose: !1,
|
|
4901
5038
|
children: [
|
|
4902
|
-
/* @__PURE__ */ n.jsx(
|
|
4903
|
-
/* @__PURE__ */ n.jsxs(
|
|
5039
|
+
/* @__PURE__ */ n.jsx(ze.Body, { className: "px-2", children: /* @__PURE__ */ n.jsx(st, { value: l, onChange: i }) }),
|
|
5040
|
+
/* @__PURE__ */ n.jsxs(ze.Footer, { className: "px-6", children: [
|
|
4904
5041
|
/* @__PURE__ */ n.jsx(
|
|
4905
5042
|
Ge,
|
|
4906
5043
|
{
|
|
@@ -4917,7 +5054,7 @@ const ho = ({
|
|
|
4917
5054
|
onClick: d,
|
|
4918
5055
|
variant: "primary",
|
|
4919
5056
|
type: "button",
|
|
4920
|
-
disabled: !
|
|
5057
|
+
disabled: !l,
|
|
4921
5058
|
size: "sm",
|
|
4922
5059
|
children: "Confirm"
|
|
4923
5060
|
}
|
|
@@ -4927,41 +5064,41 @@ const ho = ({
|
|
|
4927
5064
|
}
|
|
4928
5065
|
);
|
|
4929
5066
|
};
|
|
4930
|
-
function
|
|
4931
|
-
const [
|
|
5067
|
+
function yo({ id: e }) {
|
|
5068
|
+
const [t, r] = H(!1), o = Ee(), s = e || o, a = ce(null), l = ke(
|
|
4932
5069
|
(c) => {
|
|
4933
|
-
(c.key === "ArrowDown" || c.key === "Enter" || c.key === " ") &&
|
|
5070
|
+
(c.key === "ArrowDown" || c.key === "Enter" || c.key === " ") && r(!0);
|
|
4934
5071
|
},
|
|
4935
5072
|
[]
|
|
4936
|
-
),
|
|
4937
|
-
|
|
5073
|
+
), i = ke(() => {
|
|
5074
|
+
r(!1), a.current?.focus();
|
|
4938
5075
|
}, []);
|
|
4939
5076
|
return {
|
|
4940
|
-
open:
|
|
4941
|
-
setOpen:
|
|
5077
|
+
open: t,
|
|
5078
|
+
setOpen: r,
|
|
4942
5079
|
inputId: s,
|
|
4943
5080
|
buttonRef: a,
|
|
4944
|
-
handleKeyDown:
|
|
4945
|
-
handleMenuClose:
|
|
5081
|
+
handleKeyDown: l,
|
|
5082
|
+
handleMenuClose: i
|
|
4946
5083
|
};
|
|
4947
5084
|
}
|
|
4948
|
-
const
|
|
5085
|
+
const qs = I.forwardRef(
|
|
4949
5086
|
({
|
|
4950
5087
|
value: e,
|
|
4951
|
-
onChange:
|
|
4952
|
-
label:
|
|
5088
|
+
onChange: t,
|
|
5089
|
+
label: r,
|
|
4953
5090
|
leftContent: o,
|
|
4954
5091
|
rightContent: s,
|
|
4955
5092
|
helperText: a,
|
|
4956
|
-
error:
|
|
4957
|
-
variant:
|
|
5093
|
+
error: l,
|
|
5094
|
+
variant: i = "primary",
|
|
4958
5095
|
disabled: c,
|
|
4959
5096
|
placeholder: d = "Select date",
|
|
4960
5097
|
id: f,
|
|
4961
5098
|
type: g = "docked",
|
|
4962
5099
|
...b
|
|
4963
5100
|
}, m) => {
|
|
4964
|
-
if (e === void 0 || typeof
|
|
5101
|
+
if (e === void 0 || typeof t != "function")
|
|
4965
5102
|
throw new Error(
|
|
4966
5103
|
"DateSinglePickerInput is a controlled component: value and onChange are required."
|
|
4967
5104
|
);
|
|
@@ -4972,25 +5109,25 @@ const Ys = z.forwardRef(
|
|
|
4972
5109
|
buttonRef: R,
|
|
4973
5110
|
handleKeyDown: A,
|
|
4974
5111
|
handleMenuClose: N
|
|
4975
|
-
} =
|
|
5112
|
+
} = yo({ id: f }), M = !!l, F = (_) => _ ? _.toLocaleDateString(void 0, {
|
|
4976
5113
|
year: "numeric",
|
|
4977
5114
|
month: "short",
|
|
4978
5115
|
day: "numeric"
|
|
4979
|
-
}) : typeof d == "string" ? d : "Select date", L = (_) => typeof b.formatDate == "function" ? b.formatDate(_) : F(_),
|
|
4980
|
-
|
|
5116
|
+
}) : typeof d == "string" ? d : "Select date", L = (_) => typeof b.formatDate == "function" ? b.formatDate(_) : F(_), Y = () => w((_) => !_), j = A, G = (_) => {
|
|
5117
|
+
t?.(_), R.current?.focus();
|
|
4981
5118
|
};
|
|
4982
5119
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative w-full", children: [
|
|
4983
5120
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
4984
|
-
|
|
5121
|
+
r && /* @__PURE__ */ n.jsx(
|
|
4985
5122
|
"label",
|
|
4986
5123
|
{
|
|
4987
5124
|
htmlFor: C,
|
|
4988
5125
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
4989
|
-
children:
|
|
5126
|
+
children: r
|
|
4990
5127
|
}
|
|
4991
5128
|
),
|
|
4992
5129
|
/* @__PURE__ */ n.jsx(
|
|
4993
|
-
|
|
5130
|
+
ut,
|
|
4994
5131
|
{
|
|
4995
5132
|
ref: (_) => {
|
|
4996
5133
|
R.current = _, typeof m == "function" ? m(_) : m && (m.current = _);
|
|
@@ -5005,21 +5142,21 @@ const Ys = z.forwardRef(
|
|
|
5005
5142
|
leftContent: o,
|
|
5006
5143
|
rightContent: s,
|
|
5007
5144
|
hasError: M,
|
|
5008
|
-
variant:
|
|
5145
|
+
variant: i,
|
|
5009
5146
|
value: e,
|
|
5010
5147
|
placeholder: typeof d == "string" ? d : "Select date",
|
|
5011
5148
|
formatDate: L,
|
|
5012
|
-
onClick:
|
|
5149
|
+
onClick: Y,
|
|
5013
5150
|
onKeyDown: j,
|
|
5014
5151
|
tabIndex: 0,
|
|
5015
5152
|
...b
|
|
5016
5153
|
}
|
|
5017
5154
|
),
|
|
5018
|
-
M && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children:
|
|
5155
|
+
M && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: l }),
|
|
5019
5156
|
a && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-muted-foreground", children: a })
|
|
5020
5157
|
] }),
|
|
5021
5158
|
g === "docked" ? /* @__PURE__ */ n.jsx(
|
|
5022
|
-
|
|
5159
|
+
vo,
|
|
5023
5160
|
{
|
|
5024
5161
|
open: v,
|
|
5025
5162
|
value: e,
|
|
@@ -5028,28 +5165,28 @@ const Ys = z.forwardRef(
|
|
|
5028
5165
|
handleMenuClose: N
|
|
5029
5166
|
}
|
|
5030
5167
|
) : /* @__PURE__ */ n.jsx(
|
|
5031
|
-
|
|
5168
|
+
wo,
|
|
5032
5169
|
{
|
|
5033
5170
|
open: v,
|
|
5034
5171
|
setOpen: w,
|
|
5035
5172
|
value: e,
|
|
5036
5173
|
onChange: G,
|
|
5037
|
-
label: typeof
|
|
5174
|
+
label: typeof r == "string" ? r : void 0,
|
|
5038
5175
|
buttonRef: R
|
|
5039
5176
|
}
|
|
5040
5177
|
)
|
|
5041
5178
|
] });
|
|
5042
5179
|
}
|
|
5043
|
-
),
|
|
5180
|
+
), ft = ee(null);
|
|
5044
5181
|
function je() {
|
|
5045
|
-
const e =
|
|
5182
|
+
const e = te(ft);
|
|
5046
5183
|
if (!e)
|
|
5047
5184
|
throw new Error(
|
|
5048
5185
|
"Drawer components must be used within a DrawerRoot component"
|
|
5049
5186
|
);
|
|
5050
5187
|
return e;
|
|
5051
5188
|
}
|
|
5052
|
-
const
|
|
5189
|
+
const ko = y(
|
|
5053
5190
|
"fixed inset-0 z-50 transition-opacity duration-300 bg-black/30 backdrop-blur-md",
|
|
5054
5191
|
{
|
|
5055
5192
|
variants: {
|
|
@@ -5062,7 +5199,7 @@ const wo = y(
|
|
|
5062
5199
|
state: "closed"
|
|
5063
5200
|
}
|
|
5064
5201
|
}
|
|
5065
|
-
),
|
|
5202
|
+
), jo = y(
|
|
5066
5203
|
"fixed z-50 shadow-xl transition-transform duration-300 ease-in-out flex flex-col",
|
|
5067
5204
|
{
|
|
5068
5205
|
variants: {
|
|
@@ -5089,7 +5226,7 @@ const wo = y(
|
|
|
5089
5226
|
variant: "default"
|
|
5090
5227
|
}
|
|
5091
5228
|
}
|
|
5092
|
-
),
|
|
5229
|
+
), No = y("flex-shrink-0 px-6 py-4 border-b", {
|
|
5093
5230
|
variants: {
|
|
5094
5231
|
variant: {
|
|
5095
5232
|
default: "bg-white border-gray-200",
|
|
@@ -5099,7 +5236,7 @@ const wo = y(
|
|
|
5099
5236
|
defaultVariants: {
|
|
5100
5237
|
variant: "default"
|
|
5101
5238
|
}
|
|
5102
|
-
}),
|
|
5239
|
+
}), Co = y("flex-1 overflow-y-auto px-6 py-4", {
|
|
5103
5240
|
variants: {
|
|
5104
5241
|
variant: {
|
|
5105
5242
|
default: "bg-white",
|
|
@@ -5109,7 +5246,7 @@ const wo = y(
|
|
|
5109
5246
|
defaultVariants: {
|
|
5110
5247
|
variant: "default"
|
|
5111
5248
|
}
|
|
5112
|
-
}),
|
|
5249
|
+
}), zo = y("flex-shrink-0 px-6 py-4 border-t", {
|
|
5113
5250
|
variants: {
|
|
5114
5251
|
variant: {
|
|
5115
5252
|
default: "bg-white border-gray-200",
|
|
@@ -5124,129 +5261,129 @@ const wo = y(
|
|
|
5124
5261
|
variant: "default",
|
|
5125
5262
|
responsiveFlex: !0
|
|
5126
5263
|
}
|
|
5127
|
-
}),
|
|
5264
|
+
}), Io = I.forwardRef(({ className: e, ...t }, r) => {
|
|
5128
5265
|
const { isOpen: o, onClose: s } = je(), a = () => {
|
|
5129
5266
|
s();
|
|
5130
5267
|
};
|
|
5131
5268
|
return /* @__PURE__ */ n.jsx(
|
|
5132
5269
|
"div",
|
|
5133
5270
|
{
|
|
5134
|
-
ref:
|
|
5271
|
+
ref: r,
|
|
5135
5272
|
onClick: a,
|
|
5136
5273
|
className: p(
|
|
5137
|
-
|
|
5274
|
+
ko({
|
|
5138
5275
|
state: o ? "open" : "closed"
|
|
5139
5276
|
}),
|
|
5140
5277
|
e
|
|
5141
5278
|
),
|
|
5142
|
-
...
|
|
5279
|
+
...t
|
|
5143
5280
|
}
|
|
5144
5281
|
);
|
|
5145
|
-
}),
|
|
5146
|
-
({ children: e, className:
|
|
5282
|
+
}), So = I.forwardRef(
|
|
5283
|
+
({ children: e, className: t, ...r }, o) => {
|
|
5147
5284
|
const { variant: s } = je();
|
|
5148
5285
|
return /* @__PURE__ */ n.jsx(
|
|
5149
5286
|
"div",
|
|
5150
5287
|
{
|
|
5151
5288
|
ref: o,
|
|
5152
|
-
className: p(
|
|
5153
|
-
...
|
|
5289
|
+
className: p(No({ variant: s }), t),
|
|
5290
|
+
...r,
|
|
5154
5291
|
children: e
|
|
5155
5292
|
}
|
|
5156
5293
|
);
|
|
5157
5294
|
}
|
|
5158
|
-
),
|
|
5159
|
-
({ children: e, className:
|
|
5295
|
+
), Ro = I.forwardRef(
|
|
5296
|
+
({ children: e, className: t, ...r }, o) => {
|
|
5160
5297
|
const { variant: s } = je();
|
|
5161
5298
|
return /* @__PURE__ */ n.jsx(
|
|
5162
5299
|
"div",
|
|
5163
5300
|
{
|
|
5164
5301
|
ref: o,
|
|
5165
|
-
className: p(
|
|
5166
|
-
...
|
|
5302
|
+
className: p(Co({ variant: s }), t),
|
|
5303
|
+
...r,
|
|
5167
5304
|
children: e
|
|
5168
5305
|
}
|
|
5169
5306
|
);
|
|
5170
5307
|
}
|
|
5171
|
-
),
|
|
5172
|
-
({ children: e, className:
|
|
5308
|
+
), Vo = I.forwardRef(
|
|
5309
|
+
({ children: e, className: t, responsiveFlex: r = !0, ...o }, s) => {
|
|
5173
5310
|
const { variant: a } = je();
|
|
5174
5311
|
return /* @__PURE__ */ n.jsx(
|
|
5175
5312
|
"div",
|
|
5176
5313
|
{
|
|
5177
5314
|
ref: s,
|
|
5178
5315
|
className: p(
|
|
5179
|
-
|
|
5180
|
-
|
|
5316
|
+
zo({ variant: a, responsiveFlex: r }),
|
|
5317
|
+
t
|
|
5181
5318
|
),
|
|
5182
5319
|
...o,
|
|
5183
5320
|
children: e
|
|
5184
5321
|
}
|
|
5185
5322
|
);
|
|
5186
5323
|
}
|
|
5187
|
-
),
|
|
5324
|
+
), Eo = ({
|
|
5188
5325
|
children: e,
|
|
5189
|
-
isOpen:
|
|
5190
|
-
onClose:
|
|
5326
|
+
isOpen: t,
|
|
5327
|
+
onClose: r,
|
|
5191
5328
|
position: o = "right",
|
|
5192
5329
|
size: s = "md",
|
|
5193
5330
|
variant: a = "default",
|
|
5194
|
-
className:
|
|
5195
|
-
...
|
|
5331
|
+
className: l,
|
|
5332
|
+
...i
|
|
5196
5333
|
}) => {
|
|
5197
5334
|
const c = ke(() => {
|
|
5198
|
-
|
|
5199
|
-
}, [
|
|
5200
|
-
isOpen:
|
|
5335
|
+
r(!1);
|
|
5336
|
+
}, [r]), d = {
|
|
5337
|
+
isOpen: t,
|
|
5201
5338
|
onClose: c,
|
|
5202
5339
|
position: o,
|
|
5203
5340
|
size: s,
|
|
5204
5341
|
variant: a
|
|
5205
5342
|
};
|
|
5206
|
-
return
|
|
5343
|
+
return J(() => {
|
|
5207
5344
|
const f = (g) => {
|
|
5208
|
-
g.key === "Escape" &&
|
|
5345
|
+
g.key === "Escape" && t && c();
|
|
5209
5346
|
};
|
|
5210
|
-
return
|
|
5347
|
+
return t && (document.addEventListener("keydown", f), document.body.style.overflow = "hidden"), () => {
|
|
5211
5348
|
document.removeEventListener("keydown", f), document.body.style.overflow = "unset";
|
|
5212
5349
|
};
|
|
5213
|
-
}, [
|
|
5350
|
+
}, [t, c]), /* @__PURE__ */ n.jsx(ft.Provider, { value: d, children: /* @__PURE__ */ n.jsxs(
|
|
5214
5351
|
"div",
|
|
5215
5352
|
{
|
|
5216
5353
|
className: p(
|
|
5217
5354
|
"fixed z-50 inset-0 pointer-events-none",
|
|
5218
|
-
|
|
5355
|
+
t && "pointer-events-auto"
|
|
5219
5356
|
),
|
|
5220
5357
|
children: [
|
|
5221
|
-
/* @__PURE__ */ n.jsx(
|
|
5358
|
+
/* @__PURE__ */ n.jsx(Io, {}),
|
|
5222
5359
|
/* @__PURE__ */ n.jsx(
|
|
5223
5360
|
"div",
|
|
5224
5361
|
{
|
|
5225
|
-
role:
|
|
5226
|
-
"aria-modal":
|
|
5362
|
+
role: t ? "dialog" : void 0,
|
|
5363
|
+
"aria-modal": t ? "true" : void 0,
|
|
5227
5364
|
className: p(
|
|
5228
|
-
|
|
5365
|
+
jo({
|
|
5229
5366
|
position: o,
|
|
5230
5367
|
size: s,
|
|
5231
5368
|
variant: a
|
|
5232
5369
|
}),
|
|
5233
5370
|
// Apply closed transform when not open
|
|
5234
|
-
!
|
|
5235
|
-
!
|
|
5236
|
-
|
|
5371
|
+
!t && o === "left" && "-translate-x-full",
|
|
5372
|
+
!t && o === "right" && "translate-x-full",
|
|
5373
|
+
l
|
|
5237
5374
|
),
|
|
5238
|
-
...
|
|
5239
|
-
children:
|
|
5375
|
+
...i,
|
|
5376
|
+
children: t && e
|
|
5240
5377
|
}
|
|
5241
5378
|
)
|
|
5242
5379
|
]
|
|
5243
5380
|
}
|
|
5244
5381
|
) });
|
|
5245
|
-
},
|
|
5246
|
-
Header:
|
|
5247
|
-
Body:
|
|
5248
|
-
Footer:
|
|
5249
|
-
}),
|
|
5382
|
+
}, Us = Object.assign(Eo, {
|
|
5383
|
+
Header: So,
|
|
5384
|
+
Body: Ro,
|
|
5385
|
+
Footer: Vo
|
|
5386
|
+
}), To = y("space-y-2", {
|
|
5250
5387
|
variants: {
|
|
5251
5388
|
direction: {
|
|
5252
5389
|
vertical: "space-y-2 space-x-0",
|
|
@@ -5256,7 +5393,7 @@ const wo = y(
|
|
|
5256
5393
|
defaultVariants: {
|
|
5257
5394
|
direction: "vertical"
|
|
5258
5395
|
}
|
|
5259
|
-
}),
|
|
5396
|
+
}), Ao = y(
|
|
5260
5397
|
"relative h-4 w-4 rounded-full border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
|
|
5261
5398
|
{
|
|
5262
5399
|
variants: {
|
|
@@ -5294,7 +5431,7 @@ const wo = y(
|
|
|
5294
5431
|
size: "md"
|
|
5295
5432
|
}
|
|
5296
5433
|
}
|
|
5297
|
-
),
|
|
5434
|
+
), Mo = y(
|
|
5298
5435
|
"text-foreground cursor-pointer select-none",
|
|
5299
5436
|
{
|
|
5300
5437
|
variants: {
|
|
@@ -5313,30 +5450,30 @@ const wo = y(
|
|
|
5313
5450
|
disabled: !1
|
|
5314
5451
|
}
|
|
5315
5452
|
}
|
|
5316
|
-
),
|
|
5453
|
+
), bt = ee(
|
|
5317
5454
|
null
|
|
5318
|
-
),
|
|
5319
|
-
const e =
|
|
5455
|
+
), Po = () => {
|
|
5456
|
+
const e = te(bt);
|
|
5320
5457
|
if (!e)
|
|
5321
5458
|
throw new Error(
|
|
5322
5459
|
"useRadioInputContext must be used within RadioInputContext"
|
|
5323
5460
|
);
|
|
5324
5461
|
return e;
|
|
5325
|
-
},
|
|
5326
|
-
({ children: e, description:
|
|
5327
|
-
const c =
|
|
5462
|
+
}, Oo = I.forwardRef(
|
|
5463
|
+
({ children: e, description: t, className: r, disabled: o, id: s, value: a, ...l }, i) => {
|
|
5464
|
+
const c = Po(), d = I.useId(), f = s || d, g = o || c.disabled, b = c.error ? "danger" : c.variant || "primary";
|
|
5328
5465
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5329
5466
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
5330
5467
|
"input",
|
|
5331
5468
|
{
|
|
5332
|
-
ref:
|
|
5469
|
+
ref: i,
|
|
5333
5470
|
type: "radio",
|
|
5334
5471
|
id: f,
|
|
5335
5472
|
name: c.name,
|
|
5336
5473
|
value: a,
|
|
5337
5474
|
disabled: g,
|
|
5338
5475
|
className: p(
|
|
5339
|
-
|
|
5476
|
+
Ao({
|
|
5340
5477
|
variant: b,
|
|
5341
5478
|
size: c.size
|
|
5342
5479
|
}),
|
|
@@ -5349,9 +5486,9 @@ const wo = y(
|
|
|
5349
5486
|
"checked:before:opacity-100",
|
|
5350
5487
|
// Outline variants use colored radio dot
|
|
5351
5488
|
b?.includes("outline") && "checked:before:bg-current",
|
|
5352
|
-
|
|
5489
|
+
r
|
|
5353
5490
|
),
|
|
5354
|
-
...
|
|
5491
|
+
...l
|
|
5355
5492
|
}
|
|
5356
5493
|
) }),
|
|
5357
5494
|
/* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
|
|
@@ -5359,14 +5496,14 @@ const wo = y(
|
|
|
5359
5496
|
"label",
|
|
5360
5497
|
{
|
|
5361
5498
|
htmlFor: f,
|
|
5362
|
-
className:
|
|
5499
|
+
className: Mo({
|
|
5363
5500
|
size: c.size,
|
|
5364
5501
|
disabled: g
|
|
5365
5502
|
}),
|
|
5366
5503
|
children: e
|
|
5367
5504
|
}
|
|
5368
5505
|
),
|
|
5369
|
-
|
|
5506
|
+
t && /* @__PURE__ */ n.jsx(
|
|
5370
5507
|
"div",
|
|
5371
5508
|
{
|
|
5372
5509
|
className: p(
|
|
@@ -5376,43 +5513,43 @@ const wo = y(
|
|
|
5376
5513
|
c.size === "lg" && "text-sm",
|
|
5377
5514
|
g && "opacity-50"
|
|
5378
5515
|
),
|
|
5379
|
-
children:
|
|
5516
|
+
children: t
|
|
5380
5517
|
}
|
|
5381
5518
|
)
|
|
5382
5519
|
] })
|
|
5383
5520
|
] });
|
|
5384
5521
|
}
|
|
5385
|
-
),
|
|
5522
|
+
), Bo = I.forwardRef(
|
|
5386
5523
|
({
|
|
5387
5524
|
variant: e = "primary",
|
|
5388
|
-
size:
|
|
5389
|
-
label:
|
|
5525
|
+
size: t = "md",
|
|
5526
|
+
label: r,
|
|
5390
5527
|
helperText: o,
|
|
5391
5528
|
error: s,
|
|
5392
5529
|
direction: a = "vertical",
|
|
5393
|
-
className:
|
|
5394
|
-
disabled:
|
|
5530
|
+
className: l,
|
|
5531
|
+
disabled: i,
|
|
5395
5532
|
name: c,
|
|
5396
5533
|
children: d,
|
|
5397
5534
|
...f
|
|
5398
5535
|
}, g) => {
|
|
5399
5536
|
const b = !!s, m = {
|
|
5400
5537
|
variant: e,
|
|
5401
|
-
size:
|
|
5402
|
-
disabled:
|
|
5538
|
+
size: t,
|
|
5539
|
+
disabled: i,
|
|
5403
5540
|
error: b,
|
|
5404
5541
|
name: c
|
|
5405
5542
|
};
|
|
5406
|
-
return /* @__PURE__ */ n.jsx(
|
|
5407
|
-
|
|
5408
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
5543
|
+
return /* @__PURE__ */ n.jsx(bt.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full", l), ...f, children: [
|
|
5544
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
5545
|
+
/* @__PURE__ */ n.jsx("div", { className: To({ direction: a }), children: d }),
|
|
5409
5546
|
b && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
5410
5547
|
!b && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5411
5548
|
] }) });
|
|
5412
5549
|
}
|
|
5413
|
-
),
|
|
5414
|
-
Option:
|
|
5415
|
-
}),
|
|
5550
|
+
), Hs = Object.assign(Bo, {
|
|
5551
|
+
Option: Oo
|
|
5552
|
+
}), Do = y(
|
|
5416
5553
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5417
5554
|
{
|
|
5418
5555
|
variants: {
|
|
@@ -5455,7 +5592,7 @@ const wo = y(
|
|
|
5455
5592
|
error: !1
|
|
5456
5593
|
}
|
|
5457
5594
|
}
|
|
5458
|
-
),
|
|
5595
|
+
), _o = y(
|
|
5459
5596
|
"relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1",
|
|
5460
5597
|
{
|
|
5461
5598
|
variants: {
|
|
@@ -5500,8 +5637,8 @@ const wo = y(
|
|
|
5500
5637
|
rounded: "middle"
|
|
5501
5638
|
}
|
|
5502
5639
|
}
|
|
5503
|
-
),
|
|
5504
|
-
const
|
|
5640
|
+
), Fo = (e) => {
|
|
5641
|
+
const t = {
|
|
5505
5642
|
// Core variants - override hover text color changes
|
|
5506
5643
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
5507
5644
|
secondary: "bg-sage text-white shadow-sm hover:text-white",
|
|
@@ -5524,28 +5661,28 @@ const wo = y(
|
|
|
5524
5661
|
danger: "bg-danger text-white shadow-sm hover:text-white",
|
|
5525
5662
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5526
5663
|
};
|
|
5527
|
-
return
|
|
5528
|
-
},
|
|
5529
|
-
const e =
|
|
5664
|
+
return t[e || "primary"] || t.primary;
|
|
5665
|
+
}, mt = ee(null), Lo = () => {
|
|
5666
|
+
const e = te(mt);
|
|
5530
5667
|
if (!e)
|
|
5531
5668
|
throw new Error(
|
|
5532
5669
|
"useSegmentSingleInputContext must be used within SegmentSingleInputContext"
|
|
5533
5670
|
);
|
|
5534
5671
|
return e;
|
|
5535
|
-
},
|
|
5536
|
-
({ children: e, className:
|
|
5537
|
-
const c =
|
|
5672
|
+
}, ht = I.forwardRef(
|
|
5673
|
+
({ children: e, className: t, disabled: r, id: o, value: s, position: a = "middle", ...l }, i) => {
|
|
5674
|
+
const c = Lo(), d = I.useId(), f = o || d, g = r || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value === s, v = (w) => {
|
|
5538
5675
|
if (!g) {
|
|
5539
5676
|
const C = c.value === s ? null : s;
|
|
5540
5677
|
c.onChange?.(C);
|
|
5541
5678
|
}
|
|
5542
|
-
|
|
5679
|
+
l.onChange?.(w);
|
|
5543
5680
|
};
|
|
5544
5681
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5545
5682
|
/* @__PURE__ */ n.jsx(
|
|
5546
5683
|
"input",
|
|
5547
5684
|
{
|
|
5548
|
-
ref:
|
|
5685
|
+
ref: i,
|
|
5549
5686
|
type: "radio",
|
|
5550
5687
|
id: f,
|
|
5551
5688
|
name: c.name,
|
|
@@ -5554,7 +5691,7 @@ const wo = y(
|
|
|
5554
5691
|
disabled: g,
|
|
5555
5692
|
onChange: v,
|
|
5556
5693
|
className: "sr-only",
|
|
5557
|
-
...
|
|
5694
|
+
...l
|
|
5558
5695
|
}
|
|
5559
5696
|
),
|
|
5560
5697
|
/* @__PURE__ */ n.jsx(
|
|
@@ -5562,17 +5699,17 @@ const wo = y(
|
|
|
5562
5699
|
{
|
|
5563
5700
|
htmlFor: f,
|
|
5564
5701
|
className: p(
|
|
5565
|
-
|
|
5702
|
+
_o({
|
|
5566
5703
|
variant: b,
|
|
5567
5704
|
size: c.size,
|
|
5568
5705
|
rounded: a
|
|
5569
5706
|
}),
|
|
5570
5707
|
// Apply selected state styling
|
|
5571
|
-
m &&
|
|
5708
|
+
m && Fo(b),
|
|
5572
5709
|
m && "relative z-10",
|
|
5573
5710
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5574
5711
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
5575
|
-
|
|
5712
|
+
t
|
|
5576
5713
|
),
|
|
5577
5714
|
children: e
|
|
5578
5715
|
}
|
|
@@ -5580,17 +5717,17 @@ const wo = y(
|
|
|
5580
5717
|
] });
|
|
5581
5718
|
}
|
|
5582
5719
|
);
|
|
5583
|
-
|
|
5584
|
-
const
|
|
5720
|
+
ht.displayName = "SegmentOption";
|
|
5721
|
+
const $o = I.forwardRef(
|
|
5585
5722
|
({
|
|
5586
5723
|
variant: e = "primary",
|
|
5587
|
-
size:
|
|
5588
|
-
label:
|
|
5724
|
+
size: t = "md",
|
|
5725
|
+
label: r,
|
|
5589
5726
|
helperText: o,
|
|
5590
5727
|
error: s,
|
|
5591
5728
|
className: a,
|
|
5592
|
-
disabled:
|
|
5593
|
-
name:
|
|
5729
|
+
disabled: l,
|
|
5730
|
+
name: i,
|
|
5594
5731
|
value: c,
|
|
5595
5732
|
onChange: d,
|
|
5596
5733
|
children: f,
|
|
@@ -5598,30 +5735,30 @@ const Fo = z.forwardRef(
|
|
|
5598
5735
|
}, b) => {
|
|
5599
5736
|
const m = !!s, v = {
|
|
5600
5737
|
variant: e,
|
|
5601
|
-
size:
|
|
5602
|
-
disabled:
|
|
5738
|
+
size: t,
|
|
5739
|
+
disabled: l,
|
|
5603
5740
|
error: m,
|
|
5604
|
-
name:
|
|
5741
|
+
name: i,
|
|
5605
5742
|
value: c,
|
|
5606
5743
|
onChange: d
|
|
5607
|
-
}, w =
|
|
5608
|
-
if (
|
|
5744
|
+
}, w = I.Children.toArray(f), C = w.map((R, A) => {
|
|
5745
|
+
if (I.isValidElement(R)) {
|
|
5609
5746
|
let N;
|
|
5610
|
-
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle",
|
|
5747
|
+
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle", I.cloneElement(
|
|
5611
5748
|
R,
|
|
5612
5749
|
{ position: N }
|
|
5613
5750
|
);
|
|
5614
5751
|
}
|
|
5615
5752
|
return R;
|
|
5616
5753
|
});
|
|
5617
|
-
return /* @__PURE__ */ n.jsx(
|
|
5618
|
-
|
|
5754
|
+
return /* @__PURE__ */ n.jsx(mt.Provider, { value: v, children: /* @__PURE__ */ n.jsxs("div", { ref: b, className: p("w-full", a), ...g, children: [
|
|
5755
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
5619
5756
|
/* @__PURE__ */ n.jsx(
|
|
5620
5757
|
"div",
|
|
5621
5758
|
{
|
|
5622
|
-
className:
|
|
5759
|
+
className: Do({
|
|
5623
5760
|
variant: m ? "danger" : e,
|
|
5624
|
-
size:
|
|
5761
|
+
size: t,
|
|
5625
5762
|
error: m
|
|
5626
5763
|
}),
|
|
5627
5764
|
children: C
|
|
@@ -5631,9 +5768,9 @@ const Fo = z.forwardRef(
|
|
|
5631
5768
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5632
5769
|
] }) });
|
|
5633
5770
|
}
|
|
5634
|
-
),
|
|
5635
|
-
Option:
|
|
5636
|
-
}),
|
|
5771
|
+
), Js = Object.assign($o, {
|
|
5772
|
+
Option: ht
|
|
5773
|
+
}), Go = y(
|
|
5637
5774
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5638
5775
|
{
|
|
5639
5776
|
variants: {
|
|
@@ -5676,7 +5813,7 @@ const Fo = z.forwardRef(
|
|
|
5676
5813
|
error: !1
|
|
5677
5814
|
}
|
|
5678
5815
|
}
|
|
5679
|
-
),
|
|
5816
|
+
), Wo = y(
|
|
5680
5817
|
"relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1",
|
|
5681
5818
|
{
|
|
5682
5819
|
variants: {
|
|
@@ -5721,8 +5858,8 @@ const Fo = z.forwardRef(
|
|
|
5721
5858
|
rounded: "middle"
|
|
5722
5859
|
}
|
|
5723
5860
|
}
|
|
5724
|
-
),
|
|
5725
|
-
const
|
|
5861
|
+
), Yo = (e) => {
|
|
5862
|
+
const t = {
|
|
5726
5863
|
// Core variants - override hover text color changes
|
|
5727
5864
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
5728
5865
|
secondary: "bg-sage text-white shadow-sm hover:text-white",
|
|
@@ -5745,29 +5882,29 @@ const Fo = z.forwardRef(
|
|
|
5745
5882
|
danger: "bg-danger text-white shadow-sm hover:text-white",
|
|
5746
5883
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5747
5884
|
};
|
|
5748
|
-
return
|
|
5749
|
-
},
|
|
5750
|
-
const e =
|
|
5885
|
+
return t[e || "primary"] || t.primary;
|
|
5886
|
+
}, xt = ee(null), qo = () => {
|
|
5887
|
+
const e = te(xt);
|
|
5751
5888
|
if (!e)
|
|
5752
5889
|
throw new Error(
|
|
5753
5890
|
"useSegmentMultipleInputContext must be used within SegmentMultipleInputContext"
|
|
5754
5891
|
);
|
|
5755
5892
|
return e;
|
|
5756
|
-
},
|
|
5757
|
-
({ children: e, className:
|
|
5758
|
-
const c =
|
|
5893
|
+
}, pt = I.forwardRef(
|
|
5894
|
+
({ children: e, className: t, disabled: r, id: o, value: s, position: a = "middle", ...l }, i) => {
|
|
5895
|
+
const c = qo(), d = I.useId(), f = o || d, g = r || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value?.includes(s) ?? !1, v = (w) => {
|
|
5759
5896
|
if (!g) {
|
|
5760
5897
|
const C = c.value || [];
|
|
5761
5898
|
let R;
|
|
5762
5899
|
m ? R = C.filter((A) => A !== s) : R = [...C, s], c.onChange?.(R);
|
|
5763
5900
|
}
|
|
5764
|
-
|
|
5901
|
+
l.onChange?.(w);
|
|
5765
5902
|
};
|
|
5766
5903
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5767
5904
|
/* @__PURE__ */ n.jsx(
|
|
5768
5905
|
"input",
|
|
5769
5906
|
{
|
|
5770
|
-
ref:
|
|
5907
|
+
ref: i,
|
|
5771
5908
|
type: "checkbox",
|
|
5772
5909
|
id: f,
|
|
5773
5910
|
name: `${c.name}[]`,
|
|
@@ -5776,7 +5913,7 @@ const Fo = z.forwardRef(
|
|
|
5776
5913
|
disabled: g,
|
|
5777
5914
|
onChange: v,
|
|
5778
5915
|
className: "sr-only",
|
|
5779
|
-
...
|
|
5916
|
+
...l
|
|
5780
5917
|
}
|
|
5781
5918
|
),
|
|
5782
5919
|
/* @__PURE__ */ n.jsx(
|
|
@@ -5784,17 +5921,17 @@ const Fo = z.forwardRef(
|
|
|
5784
5921
|
{
|
|
5785
5922
|
htmlFor: f,
|
|
5786
5923
|
className: p(
|
|
5787
|
-
|
|
5924
|
+
Wo({
|
|
5788
5925
|
variant: b,
|
|
5789
5926
|
size: c.size,
|
|
5790
5927
|
rounded: a
|
|
5791
5928
|
}),
|
|
5792
5929
|
// Apply selected state styling
|
|
5793
|
-
m &&
|
|
5930
|
+
m && Yo(b),
|
|
5794
5931
|
m && "relative z-10",
|
|
5795
5932
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5796
5933
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
5797
|
-
|
|
5934
|
+
t
|
|
5798
5935
|
),
|
|
5799
5936
|
children: e
|
|
5800
5937
|
}
|
|
@@ -5802,17 +5939,17 @@ const Fo = z.forwardRef(
|
|
|
5802
5939
|
] });
|
|
5803
5940
|
}
|
|
5804
5941
|
);
|
|
5805
|
-
|
|
5806
|
-
const
|
|
5942
|
+
pt.displayName = "SegmentOption";
|
|
5943
|
+
const Uo = I.forwardRef(
|
|
5807
5944
|
({
|
|
5808
5945
|
variant: e = "primary",
|
|
5809
|
-
size:
|
|
5810
|
-
label:
|
|
5946
|
+
size: t = "md",
|
|
5947
|
+
label: r,
|
|
5811
5948
|
helperText: o,
|
|
5812
5949
|
error: s,
|
|
5813
5950
|
className: a,
|
|
5814
|
-
disabled:
|
|
5815
|
-
name:
|
|
5951
|
+
disabled: l,
|
|
5952
|
+
name: i,
|
|
5816
5953
|
value: c = [],
|
|
5817
5954
|
onChange: d,
|
|
5818
5955
|
children: f,
|
|
@@ -5820,30 +5957,30 @@ const Yo = z.forwardRef(
|
|
|
5820
5957
|
}, b) => {
|
|
5821
5958
|
const m = !!s, v = {
|
|
5822
5959
|
variant: e,
|
|
5823
|
-
size:
|
|
5824
|
-
disabled:
|
|
5960
|
+
size: t,
|
|
5961
|
+
disabled: l,
|
|
5825
5962
|
error: m,
|
|
5826
|
-
name:
|
|
5963
|
+
name: i,
|
|
5827
5964
|
value: c,
|
|
5828
5965
|
onChange: d
|
|
5829
|
-
}, w =
|
|
5830
|
-
if (
|
|
5966
|
+
}, w = I.Children.toArray(f), C = w.map((R, A) => {
|
|
5967
|
+
if (I.isValidElement(R)) {
|
|
5831
5968
|
let N;
|
|
5832
|
-
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle",
|
|
5969
|
+
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle", I.cloneElement(
|
|
5833
5970
|
R,
|
|
5834
5971
|
{ position: N }
|
|
5835
5972
|
);
|
|
5836
5973
|
}
|
|
5837
5974
|
return R;
|
|
5838
5975
|
});
|
|
5839
|
-
return /* @__PURE__ */ n.jsx(
|
|
5840
|
-
|
|
5976
|
+
return /* @__PURE__ */ n.jsx(xt.Provider, { value: v, children: /* @__PURE__ */ n.jsxs("div", { ref: b, className: p("w-full", a), ...g, children: [
|
|
5977
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
5841
5978
|
/* @__PURE__ */ n.jsx(
|
|
5842
5979
|
"div",
|
|
5843
5980
|
{
|
|
5844
|
-
className:
|
|
5981
|
+
className: Go({
|
|
5845
5982
|
variant: m ? "danger" : e,
|
|
5846
|
-
size:
|
|
5983
|
+
size: t,
|
|
5847
5984
|
error: m
|
|
5848
5985
|
}),
|
|
5849
5986
|
children: C
|
|
@@ -5853,9 +5990,9 @@ const Yo = z.forwardRef(
|
|
|
5853
5990
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5854
5991
|
] }) });
|
|
5855
5992
|
}
|
|
5856
|
-
),
|
|
5857
|
-
Option:
|
|
5858
|
-
}),
|
|
5993
|
+
), Xs = Object.assign(Uo, {
|
|
5994
|
+
Option: pt
|
|
5995
|
+
}), Ho = y(
|
|
5859
5996
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50 appearance-none bg-no-repeat bg-right pr-10",
|
|
5860
5997
|
{
|
|
5861
5998
|
variants: {
|
|
@@ -5887,27 +6024,27 @@ const Yo = z.forwardRef(
|
|
|
5887
6024
|
variant: "primary"
|
|
5888
6025
|
}
|
|
5889
6026
|
}
|
|
5890
|
-
),
|
|
6027
|
+
), Jo = I.forwardRef(
|
|
5891
6028
|
({
|
|
5892
6029
|
variant: e = "primary",
|
|
5893
|
-
label:
|
|
5894
|
-
helperText:
|
|
6030
|
+
label: t,
|
|
6031
|
+
helperText: r,
|
|
5895
6032
|
error: o,
|
|
5896
6033
|
className: s,
|
|
5897
6034
|
disabled: a,
|
|
5898
|
-
id:
|
|
5899
|
-
placeholder:
|
|
6035
|
+
id: l,
|
|
6036
|
+
placeholder: i,
|
|
5900
6037
|
children: c,
|
|
5901
6038
|
...d
|
|
5902
6039
|
}, f) => {
|
|
5903
|
-
const g =
|
|
6040
|
+
const g = I.useId(), b = l || g, m = !!o;
|
|
5904
6041
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
5905
6042
|
/* @__PURE__ */ n.jsx(
|
|
5906
6043
|
"label",
|
|
5907
6044
|
{
|
|
5908
6045
|
htmlFor: b,
|
|
5909
6046
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
5910
|
-
children:
|
|
6047
|
+
children: t
|
|
5911
6048
|
}
|
|
5912
6049
|
),
|
|
5913
6050
|
/* @__PURE__ */ n.jsxs("div", { className: p("relative w-full", s), children: [
|
|
@@ -5920,14 +6057,14 @@ const Yo = z.forwardRef(
|
|
|
5920
6057
|
"aria-disabled": a,
|
|
5921
6058
|
disabled: a,
|
|
5922
6059
|
className: p(
|
|
5923
|
-
|
|
6060
|
+
Ho({
|
|
5924
6061
|
variant: m ? "danger" : e
|
|
5925
6062
|
}),
|
|
5926
6063
|
"h-10 pl-3"
|
|
5927
6064
|
),
|
|
5928
6065
|
...d,
|
|
5929
6066
|
children: [
|
|
5930
|
-
|
|
6067
|
+
i && /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, hidden: !0, children: i }),
|
|
5931
6068
|
c
|
|
5932
6069
|
]
|
|
5933
6070
|
}
|
|
@@ -5952,12 +6089,12 @@ const Yo = z.forwardRef(
|
|
|
5952
6089
|
) })
|
|
5953
6090
|
] }),
|
|
5954
6091
|
m && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: o }),
|
|
5955
|
-
!m &&
|
|
6092
|
+
!m && r && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-gray-600", children: r })
|
|
5956
6093
|
] });
|
|
5957
6094
|
}
|
|
5958
6095
|
);
|
|
5959
|
-
|
|
5960
|
-
const
|
|
6096
|
+
Jo.displayName = "SelectInput";
|
|
6097
|
+
const Xo = y(
|
|
5961
6098
|
"flex items-center gap-2 px-4 py-2 rounded-sm w-fit max-w-sm relative bg-white shadow-sm",
|
|
5962
6099
|
{
|
|
5963
6100
|
variants: {
|
|
@@ -5973,7 +6110,7 @@ const Ho = y(
|
|
|
5973
6110
|
}
|
|
5974
6111
|
}
|
|
5975
6112
|
);
|
|
5976
|
-
function
|
|
6113
|
+
function Ko(e) {
|
|
5977
6114
|
switch (e) {
|
|
5978
6115
|
case "info":
|
|
5979
6116
|
return "info-ghost";
|
|
@@ -5986,53 +6123,53 @@ function Jo(e) {
|
|
|
5986
6123
|
return "success-ghost";
|
|
5987
6124
|
}
|
|
5988
6125
|
}
|
|
5989
|
-
const
|
|
6126
|
+
const Zo = ({
|
|
5990
6127
|
children: e,
|
|
5991
|
-
...
|
|
6128
|
+
...t
|
|
5992
6129
|
}) => /* @__PURE__ */ n.jsx(
|
|
5993
6130
|
"span",
|
|
5994
6131
|
{
|
|
5995
6132
|
className: "flex-1 truncate text-base font-medium",
|
|
5996
6133
|
"data-testid": "snackbar-text",
|
|
5997
|
-
...
|
|
6134
|
+
...t,
|
|
5998
6135
|
children: e
|
|
5999
6136
|
}
|
|
6000
|
-
),
|
|
6137
|
+
), Qo = ({
|
|
6001
6138
|
children: e,
|
|
6002
|
-
...
|
|
6003
|
-
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...
|
|
6004
|
-
({ children: e, action:
|
|
6139
|
+
...t
|
|
6140
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...t, children: e }), Ks = E(
|
|
6141
|
+
({ children: e, action: t, onClose: r, color: o, className: s, ...a }, l) => /* @__PURE__ */ n.jsxs(
|
|
6005
6142
|
"div",
|
|
6006
6143
|
{
|
|
6007
|
-
ref:
|
|
6144
|
+
ref: l,
|
|
6008
6145
|
role: "status",
|
|
6009
6146
|
"aria-live": "polite",
|
|
6010
|
-
className: p(
|
|
6147
|
+
className: p(Xo({ color: o }), s),
|
|
6011
6148
|
...a,
|
|
6012
6149
|
children: [
|
|
6013
|
-
/* @__PURE__ */ n.jsx(
|
|
6014
|
-
|
|
6150
|
+
/* @__PURE__ */ n.jsx(Zo, { children: e }),
|
|
6151
|
+
t && /* @__PURE__ */ n.jsx(Qo, { children: t }),
|
|
6015
6152
|
/* @__PURE__ */ n.jsx(
|
|
6016
6153
|
le,
|
|
6017
6154
|
{
|
|
6018
|
-
as:
|
|
6019
|
-
variant:
|
|
6155
|
+
as: zt,
|
|
6156
|
+
variant: Ko(o),
|
|
6020
6157
|
size: "sm",
|
|
6021
6158
|
shape: "rounded",
|
|
6022
6159
|
"aria-label": "Close",
|
|
6023
|
-
onClick:
|
|
6160
|
+
onClick: r,
|
|
6024
6161
|
className: "ml-2"
|
|
6025
6162
|
}
|
|
6026
6163
|
)
|
|
6027
6164
|
]
|
|
6028
6165
|
}
|
|
6029
6166
|
)
|
|
6030
|
-
),
|
|
6031
|
-
const e =
|
|
6167
|
+
), vt = ee(null), wt = () => {
|
|
6168
|
+
const e = te(vt);
|
|
6032
6169
|
if (!e)
|
|
6033
6170
|
throw new Error("useTabsContext must be used within a TabsProvider");
|
|
6034
6171
|
return e;
|
|
6035
|
-
},
|
|
6172
|
+
}, es = y(
|
|
6036
6173
|
"inline-flex items-center justify-center transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none select-none px-4 py-2 text-base bg-transparent relative border-b-2 border-transparent",
|
|
6037
6174
|
{
|
|
6038
6175
|
variants: {
|
|
@@ -6110,13 +6247,13 @@ const Xo = ({
|
|
|
6110
6247
|
color: "primary"
|
|
6111
6248
|
}
|
|
6112
6249
|
}
|
|
6113
|
-
),
|
|
6250
|
+
), ts = y(
|
|
6114
6251
|
"flex flex-row w-full border-b border-neutral overflow-x-auto whitespace-nowrap",
|
|
6115
6252
|
{
|
|
6116
6253
|
variants: {},
|
|
6117
6254
|
defaultVariants: {}
|
|
6118
6255
|
}
|
|
6119
|
-
),
|
|
6256
|
+
), rs = y(
|
|
6120
6257
|
"absolute bottom-0 h-0.5 rounded transition-all duration-300",
|
|
6121
6258
|
{
|
|
6122
6259
|
variants: {
|
|
@@ -6132,100 +6269,100 @@ const Xo = ({
|
|
|
6132
6269
|
color: "primary"
|
|
6133
6270
|
}
|
|
6134
6271
|
}
|
|
6135
|
-
),
|
|
6272
|
+
), os = ({
|
|
6136
6273
|
value: e,
|
|
6137
|
-
children:
|
|
6138
|
-
className:
|
|
6274
|
+
children: t,
|
|
6275
|
+
className: r,
|
|
6139
6276
|
...o
|
|
6140
6277
|
}) => {
|
|
6141
|
-
const { activeTab: s, setActiveTab: a, color:
|
|
6278
|
+
const { activeTab: s, setActiveTab: a, color: l } = wt(), i = s === e;
|
|
6142
6279
|
return /* @__PURE__ */ n.jsx(
|
|
6143
6280
|
"button",
|
|
6144
6281
|
{
|
|
6145
6282
|
role: "tab",
|
|
6146
6283
|
id: `tabs-trigger-${e}`,
|
|
6147
|
-
"aria-selected":
|
|
6284
|
+
"aria-selected": i,
|
|
6148
6285
|
"aria-controls": `tabs-content-${e}`,
|
|
6149
|
-
tabIndex:
|
|
6286
|
+
tabIndex: i ? 0 : -1,
|
|
6150
6287
|
className: p(
|
|
6151
|
-
|
|
6152
|
-
active:
|
|
6153
|
-
color:
|
|
6288
|
+
es({
|
|
6289
|
+
active: i,
|
|
6290
|
+
color: l
|
|
6154
6291
|
}),
|
|
6155
|
-
|
|
6292
|
+
r
|
|
6156
6293
|
),
|
|
6157
6294
|
onClick: () => a(e),
|
|
6158
6295
|
type: "button",
|
|
6159
6296
|
...o,
|
|
6160
|
-
children:
|
|
6297
|
+
children: t
|
|
6161
6298
|
}
|
|
6162
6299
|
);
|
|
6163
|
-
},
|
|
6300
|
+
}, ss = ({
|
|
6164
6301
|
left: e,
|
|
6165
|
-
width:
|
|
6166
|
-
className:
|
|
6302
|
+
width: t,
|
|
6303
|
+
className: r,
|
|
6167
6304
|
...o
|
|
6168
6305
|
}) => {
|
|
6169
|
-
const { color: s } =
|
|
6306
|
+
const { color: s } = wt();
|
|
6170
6307
|
return /* @__PURE__ */ n.jsx(
|
|
6171
6308
|
"div",
|
|
6172
6309
|
{
|
|
6173
6310
|
"aria-hidden": !0,
|
|
6174
|
-
className: p(
|
|
6311
|
+
className: p(rs({ color: s }), r),
|
|
6175
6312
|
style: {
|
|
6176
6313
|
left: e,
|
|
6177
|
-
width:
|
|
6314
|
+
width: t,
|
|
6178
6315
|
pointerEvents: "none"
|
|
6179
6316
|
},
|
|
6180
6317
|
...o
|
|
6181
6318
|
}
|
|
6182
6319
|
);
|
|
6183
6320
|
};
|
|
6184
|
-
function
|
|
6185
|
-
const [o, s] =
|
|
6321
|
+
function ns(e, t, r) {
|
|
6322
|
+
const [o, s] = H({
|
|
6186
6323
|
left: 0,
|
|
6187
6324
|
width: 0
|
|
6188
6325
|
});
|
|
6189
|
-
return
|
|
6190
|
-
if (!
|
|
6191
|
-
const a =
|
|
6326
|
+
return kt(() => {
|
|
6327
|
+
if (!t.current) return;
|
|
6328
|
+
const a = t.current.querySelector(
|
|
6192
6329
|
`#tabs-trigger-${e}`
|
|
6193
6330
|
);
|
|
6194
6331
|
if (a) {
|
|
6195
|
-
const { offsetLeft:
|
|
6196
|
-
s({ left:
|
|
6332
|
+
const { offsetLeft: l, offsetWidth: i } = a;
|
|
6333
|
+
s({ left: l, width: i }), a.scrollIntoView({
|
|
6197
6334
|
behavior: "smooth",
|
|
6198
6335
|
inline: "center",
|
|
6199
6336
|
block: "nearest"
|
|
6200
6337
|
});
|
|
6201
6338
|
}
|
|
6202
|
-
}, [e,
|
|
6339
|
+
}, [e, r, t]), o;
|
|
6203
6340
|
}
|
|
6204
|
-
const
|
|
6341
|
+
const as = ({
|
|
6205
6342
|
value: e,
|
|
6206
|
-
onValueChange:
|
|
6207
|
-
children:
|
|
6343
|
+
onValueChange: t,
|
|
6344
|
+
children: r,
|
|
6208
6345
|
className: o,
|
|
6209
6346
|
color: s = "primary",
|
|
6210
6347
|
...a
|
|
6211
6348
|
}) => {
|
|
6212
|
-
const
|
|
6349
|
+
const l = {
|
|
6213
6350
|
activeTab: e,
|
|
6214
|
-
setActiveTab:
|
|
6351
|
+
setActiveTab: t,
|
|
6215
6352
|
color: s
|
|
6216
|
-
},
|
|
6217
|
-
return /* @__PURE__ */ n.jsx(
|
|
6353
|
+
}, i = ce(null), c = ns(e, i, r);
|
|
6354
|
+
return /* @__PURE__ */ n.jsx(vt.Provider, { value: l, children: /* @__PURE__ */ n.jsxs(
|
|
6218
6355
|
"div",
|
|
6219
6356
|
{
|
|
6220
6357
|
role: "tablist",
|
|
6221
|
-
className: p(
|
|
6222
|
-
ref:
|
|
6358
|
+
className: p(ts(), o),
|
|
6359
|
+
ref: i,
|
|
6223
6360
|
style: { position: "relative" },
|
|
6224
6361
|
...a,
|
|
6225
6362
|
children: [
|
|
6226
|
-
|
|
6363
|
+
r,
|
|
6227
6364
|
/* @__PURE__ */ n.jsx(
|
|
6228
|
-
|
|
6365
|
+
ss,
|
|
6229
6366
|
{
|
|
6230
6367
|
left: c.left,
|
|
6231
6368
|
width: c.width
|
|
@@ -6234,155 +6371,38 @@ const ss = ({
|
|
|
6234
6371
|
]
|
|
6235
6372
|
}
|
|
6236
6373
|
) });
|
|
6237
|
-
},
|
|
6238
|
-
Trigger:
|
|
6239
|
-
}),
|
|
6240
|
-
variants: {
|
|
6241
|
-
color: {
|
|
6242
|
-
primary: "text-primary",
|
|
6243
|
-
secondary: "text-secondary",
|
|
6244
|
-
tertiary: "text-tertiary",
|
|
6245
|
-
ghost: "text-ghost",
|
|
6246
|
-
neutral: "text-ghost",
|
|
6247
|
-
success: "text-success",
|
|
6248
|
-
info: "text-info",
|
|
6249
|
-
warning: "text-warning",
|
|
6250
|
-
danger: "text-danger"
|
|
6251
|
-
},
|
|
6252
|
-
hasUnderline: {
|
|
6253
|
-
true: "underline",
|
|
6254
|
-
false: ""
|
|
6255
|
-
},
|
|
6256
|
-
isCapitalize: {
|
|
6257
|
-
true: "capitalize",
|
|
6258
|
-
false: ""
|
|
6259
|
-
},
|
|
6260
|
-
align: {
|
|
6261
|
-
left: "text-left",
|
|
6262
|
-
center: "text-center",
|
|
6263
|
-
right: "text-right",
|
|
6264
|
-
justify: "text-justify"
|
|
6265
|
-
},
|
|
6266
|
-
italic: {
|
|
6267
|
-
true: "italic",
|
|
6268
|
-
false: ""
|
|
6269
|
-
},
|
|
6270
|
-
clamp: {
|
|
6271
|
-
1: "line-clamp-1",
|
|
6272
|
-
2: "line-clamp-2",
|
|
6273
|
-
3: "line-clamp-3",
|
|
6274
|
-
4: "line-clamp-4",
|
|
6275
|
-
5: "line-clamp-5",
|
|
6276
|
-
none: ""
|
|
6277
|
-
},
|
|
6278
|
-
ellipsis: {
|
|
6279
|
-
true: "truncate",
|
|
6280
|
-
false: ""
|
|
6281
|
-
},
|
|
6282
|
-
as: {
|
|
6283
|
-
h1: "font-bold text-4xl leading-loose",
|
|
6284
|
-
h2: "font-semibold text-3xl leading-relaxed",
|
|
6285
|
-
h3: "font-medium text-2xl leading-relaxed",
|
|
6286
|
-
h4: "font-bold text-xl leading-normal",
|
|
6287
|
-
h5: "font-semibold text-lg leading-normal",
|
|
6288
|
-
h6: "font-medium text-base leading-normal",
|
|
6289
|
-
p: "font-normal text-base leading-normal",
|
|
6290
|
-
span: "font-normal text-base leading-normal",
|
|
6291
|
-
label: "font-normal text-xs leading-normal"
|
|
6292
|
-
}
|
|
6293
|
-
},
|
|
6294
|
-
defaultVariants: {
|
|
6295
|
-
color: "neutral",
|
|
6296
|
-
hasUnderline: !1,
|
|
6297
|
-
isCapitalize: !1,
|
|
6298
|
-
align: "left",
|
|
6299
|
-
italic: !1,
|
|
6300
|
-
clamp: "none",
|
|
6301
|
-
ellipsis: !1,
|
|
6302
|
-
as: "span"
|
|
6303
|
-
}
|
|
6304
|
-
}), Zs = E(
|
|
6305
|
-
({
|
|
6306
|
-
as: e = "span",
|
|
6307
|
-
color: r = "ghost",
|
|
6308
|
-
hasUnderline: t = !1,
|
|
6309
|
-
isCapitalize: o = !1,
|
|
6310
|
-
align: s = "left",
|
|
6311
|
-
italic: a = !1,
|
|
6312
|
-
clamp: i = "none",
|
|
6313
|
-
ellipsis: l = !1,
|
|
6314
|
-
fontSize: c,
|
|
6315
|
-
fontWeight: d,
|
|
6316
|
-
className: f,
|
|
6317
|
-
children: g,
|
|
6318
|
-
...b
|
|
6319
|
-
}, m) => {
|
|
6320
|
-
const w = [
|
|
6321
|
-
"h1",
|
|
6322
|
-
"h2",
|
|
6323
|
-
"h3",
|
|
6324
|
-
"h4",
|
|
6325
|
-
"h5",
|
|
6326
|
-
"h6",
|
|
6327
|
-
"p",
|
|
6328
|
-
"span",
|
|
6329
|
-
"label"
|
|
6330
|
-
].includes(e) ? e : "span", C = c ? `text-${c}` : "", R = d ? `font-${d}` : "";
|
|
6331
|
-
return /* @__PURE__ */ n.jsx(
|
|
6332
|
-
e,
|
|
6333
|
-
{
|
|
6334
|
-
ref: m,
|
|
6335
|
-
className: p(
|
|
6336
|
-
ns({
|
|
6337
|
-
color: r,
|
|
6338
|
-
hasUnderline: t,
|
|
6339
|
-
isCapitalize: o,
|
|
6340
|
-
align: s,
|
|
6341
|
-
italic: a,
|
|
6342
|
-
clamp: i,
|
|
6343
|
-
ellipsis: l,
|
|
6344
|
-
// @ts-expect-error - `as` is not a valid variant
|
|
6345
|
-
as: w
|
|
6346
|
-
}),
|
|
6347
|
-
C,
|
|
6348
|
-
R,
|
|
6349
|
-
f
|
|
6350
|
-
),
|
|
6351
|
-
...b,
|
|
6352
|
-
children: g
|
|
6353
|
-
}
|
|
6354
|
-
);
|
|
6355
|
-
}
|
|
6356
|
-
), as = z.forwardRef(
|
|
6374
|
+
}, Zs = Object.assign(as, {
|
|
6375
|
+
Trigger: os
|
|
6376
|
+
}), is = I.forwardRef(
|
|
6357
6377
|
({
|
|
6358
6378
|
variant: e = "primary",
|
|
6359
|
-
label:
|
|
6360
|
-
leftContent:
|
|
6379
|
+
label: t,
|
|
6380
|
+
leftContent: r,
|
|
6361
6381
|
rightContent: o,
|
|
6362
6382
|
helperText: s,
|
|
6363
6383
|
error: a,
|
|
6364
|
-
className:
|
|
6365
|
-
disabled:
|
|
6384
|
+
className: l,
|
|
6385
|
+
disabled: i,
|
|
6366
6386
|
id: c,
|
|
6367
6387
|
...d
|
|
6368
6388
|
}, f) => {
|
|
6369
|
-
const g =
|
|
6389
|
+
const g = I.useId(), b = c || g, m = !!a;
|
|
6370
6390
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
6371
|
-
/* @__PURE__ */ n.jsx(
|
|
6391
|
+
t && /* @__PURE__ */ n.jsx(
|
|
6372
6392
|
"label",
|
|
6373
6393
|
{
|
|
6374
6394
|
htmlFor: b,
|
|
6375
6395
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
6376
|
-
children:
|
|
6396
|
+
children: t
|
|
6377
6397
|
}
|
|
6378
6398
|
),
|
|
6379
|
-
/* @__PURE__ */ n.jsxs("div", { className: p("relative w-full",
|
|
6380
|
-
|
|
6399
|
+
/* @__PURE__ */ n.jsxs("div", { className: p("relative w-full", l), children: [
|
|
6400
|
+
r && /* @__PURE__ */ n.jsx(
|
|
6381
6401
|
"span",
|
|
6382
6402
|
{
|
|
6383
6403
|
className: "absolute left-2.5 top-0 bottom-0 pointer-events-none text-gray-500 flex items-center justify-center w-5",
|
|
6384
6404
|
"data-testid": "left-content",
|
|
6385
|
-
children:
|
|
6405
|
+
children: r
|
|
6386
6406
|
}
|
|
6387
6407
|
),
|
|
6388
6408
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6391,13 +6411,13 @@ const ss = ({
|
|
|
6391
6411
|
ref: f,
|
|
6392
6412
|
id: b,
|
|
6393
6413
|
"aria-invalid": m,
|
|
6394
|
-
"aria-disabled":
|
|
6395
|
-
disabled:
|
|
6414
|
+
"aria-disabled": i,
|
|
6415
|
+
disabled: i,
|
|
6396
6416
|
className: p(
|
|
6397
|
-
|
|
6417
|
+
dt({
|
|
6398
6418
|
variant: m ? "danger" : e
|
|
6399
6419
|
}),
|
|
6400
|
-
|
|
6420
|
+
r ? "pl-9" : "pl-3",
|
|
6401
6421
|
o ? "pr-9" : "pr-3",
|
|
6402
6422
|
"h-10"
|
|
6403
6423
|
),
|
|
@@ -6418,8 +6438,8 @@ const ss = ({
|
|
|
6418
6438
|
] });
|
|
6419
6439
|
}
|
|
6420
6440
|
);
|
|
6421
|
-
|
|
6422
|
-
const
|
|
6441
|
+
is.displayName = "TextInput";
|
|
6442
|
+
const ls = y(
|
|
6423
6443
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
|
|
6424
6444
|
{
|
|
6425
6445
|
variants: {
|
|
@@ -6456,23 +6476,23 @@ const is = y(
|
|
|
6456
6476
|
fieldSizing: "fixed"
|
|
6457
6477
|
}
|
|
6458
6478
|
}
|
|
6459
|
-
),
|
|
6479
|
+
), cs = I.forwardRef(
|
|
6460
6480
|
({
|
|
6461
6481
|
variant: e = "primary",
|
|
6462
|
-
label:
|
|
6463
|
-
helperText:
|
|
6482
|
+
label: t,
|
|
6483
|
+
helperText: r,
|
|
6464
6484
|
error: o,
|
|
6465
6485
|
className: s,
|
|
6466
6486
|
disabled: a,
|
|
6467
|
-
id:
|
|
6468
|
-
minRows:
|
|
6487
|
+
id: l,
|
|
6488
|
+
minRows: i = 3,
|
|
6469
6489
|
maxRows: c,
|
|
6470
6490
|
fieldSizing: d = "fixed",
|
|
6471
6491
|
style: f,
|
|
6472
6492
|
rows: g,
|
|
6473
6493
|
...b
|
|
6474
6494
|
}, m) => {
|
|
6475
|
-
const v =
|
|
6495
|
+
const v = I.useId(), w = l || v, C = !!o, R = g || i, A = d === "content" ? void 0 : c, N = {
|
|
6476
6496
|
...d === "content" && { fieldSizing: "content" },
|
|
6477
6497
|
...A && {
|
|
6478
6498
|
maxHeight: `${A * 1.5}rem`
|
|
@@ -6481,12 +6501,12 @@ const is = y(
|
|
|
6481
6501
|
...f
|
|
6482
6502
|
};
|
|
6483
6503
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
6484
|
-
/* @__PURE__ */ n.jsx(
|
|
6504
|
+
t && /* @__PURE__ */ n.jsx(
|
|
6485
6505
|
"label",
|
|
6486
6506
|
{
|
|
6487
6507
|
htmlFor: w,
|
|
6488
6508
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
6489
|
-
children:
|
|
6509
|
+
children: t
|
|
6490
6510
|
}
|
|
6491
6511
|
),
|
|
6492
6512
|
/* @__PURE__ */ n.jsx("div", { className: p("relative w-full", s), children: /* @__PURE__ */ n.jsx(
|
|
@@ -6500,7 +6520,7 @@ const is = y(
|
|
|
6500
6520
|
disabled: a,
|
|
6501
6521
|
style: N,
|
|
6502
6522
|
className: p(
|
|
6503
|
-
|
|
6523
|
+
ls({
|
|
6504
6524
|
variant: C ? "danger" : e,
|
|
6505
6525
|
fieldSizing: d
|
|
6506
6526
|
}),
|
|
@@ -6510,27 +6530,27 @@ const is = y(
|
|
|
6510
6530
|
}
|
|
6511
6531
|
) }),
|
|
6512
6532
|
C && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: o }),
|
|
6513
|
-
!C &&
|
|
6533
|
+
!C && r && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-gray-600", children: r })
|
|
6514
6534
|
] });
|
|
6515
6535
|
}
|
|
6516
6536
|
);
|
|
6517
|
-
|
|
6518
|
-
const
|
|
6537
|
+
cs.displayName = "TextAreaInput";
|
|
6538
|
+
const ds = y(
|
|
6519
6539
|
// Base classes
|
|
6520
6540
|
"block transition-colors duration-200",
|
|
6521
6541
|
{
|
|
6522
6542
|
variants: {
|
|
6523
6543
|
variant: {
|
|
6524
|
-
white: "bg-white border border-
|
|
6525
|
-
neutral: "bg-
|
|
6526
|
-
primary: "bg-coral-
|
|
6527
|
-
secondary: "bg-sage-
|
|
6528
|
-
tertiary: "bg-mist-
|
|
6529
|
-
ghost: "bg-transparent border border-slate
|
|
6530
|
-
success: "bg-
|
|
6531
|
-
info: "bg-
|
|
6532
|
-
warning: "bg-
|
|
6533
|
-
danger: "bg-
|
|
6544
|
+
white: "bg-white border border-border text-border",
|
|
6545
|
+
neutral: "bg-neutral border border-gray-200 text-gray",
|
|
6546
|
+
primary: "bg-coral-soft border border-coral text-coral",
|
|
6547
|
+
secondary: "bg-sage-soft border border-sage text-sage",
|
|
6548
|
+
tertiary: "bg-mist-soft border border-mist text-mist",
|
|
6549
|
+
ghost: "bg-transparent border border-slate text-slate",
|
|
6550
|
+
success: "bg-success-soft border border-success text-success",
|
|
6551
|
+
info: "bg-info-soft border border-info text-info",
|
|
6552
|
+
warning: "bg-warning-soft border border-warning text-warning",
|
|
6553
|
+
danger: "bg-danger-soft border border-danger text-danger"
|
|
6534
6554
|
},
|
|
6535
6555
|
size: {
|
|
6536
6556
|
xs: "p-2",
|
|
@@ -6551,71 +6571,71 @@ const cs = y(
|
|
|
6551
6571
|
}
|
|
6552
6572
|
}
|
|
6553
6573
|
), Qs = E(
|
|
6554
|
-
({ variant: e = "white", size:
|
|
6574
|
+
({ variant: e = "white", size: t = "md", shape: r = "rounded", className: o, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
6555
6575
|
"div",
|
|
6556
6576
|
{
|
|
6557
6577
|
ref: a,
|
|
6558
|
-
className: p(
|
|
6578
|
+
className: p(ds({ variant: e, size: t, shape: r }), o),
|
|
6559
6579
|
...s
|
|
6560
6580
|
}
|
|
6561
6581
|
)
|
|
6562
|
-
),
|
|
6563
|
-
"w-full flex items-center px-6 py-2 border-b border-
|
|
6582
|
+
), us = y(
|
|
6583
|
+
"w-full flex items-center px-6 py-2 mb-6 border-b border-border shadow-xs bg-white",
|
|
6564
6584
|
{
|
|
6565
6585
|
variants: {},
|
|
6566
6586
|
defaultVariants: {}
|
|
6567
6587
|
}
|
|
6568
|
-
),
|
|
6588
|
+
), gs = y("flex items-center gap-3 min-w-0 flex-1"), fs = y("flex items-center gap-2 ml-auto"), bs = y(
|
|
6569
6589
|
"px-2.5 py-1.5 rounded-md text-xs font-sm cursor-pointer transition-colors",
|
|
6570
6590
|
{
|
|
6571
6591
|
variants: {
|
|
6572
6592
|
active: {
|
|
6573
6593
|
true: "bg-coral/10 text-coral",
|
|
6574
|
-
false: "hover:bg-coral/10"
|
|
6594
|
+
false: "bg-neutral hover:bg-coral/10 text-ghost"
|
|
6575
6595
|
}
|
|
6576
6596
|
},
|
|
6577
6597
|
defaultVariants: {
|
|
6578
6598
|
active: !1
|
|
6579
6599
|
}
|
|
6580
6600
|
}
|
|
6581
|
-
),
|
|
6582
|
-
function({ children:
|
|
6583
|
-
return /* @__PURE__ */ n.jsx("nav", { ref: s, className:
|
|
6584
|
-
}
|
|
6585
|
-
), xs = E(
|
|
6586
|
-
function({ children: r, className: t, ...o }, s) {
|
|
6587
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className: ms({ className: t }), ...o, children: r });
|
|
6601
|
+
), ms = y("flex items-center gap-2 ml-4"), hs = y("flex items-center gap-2 mr-4"), xs = E(
|
|
6602
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6603
|
+
return /* @__PURE__ */ n.jsx("nav", { ref: s, className: ms({ className: r }), ...o, children: t });
|
|
6588
6604
|
}
|
|
6589
6605
|
), ps = E(
|
|
6590
|
-
function({ children:
|
|
6591
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6606
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6607
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: hs({ className: r }), ...o, children: t });
|
|
6592
6608
|
}
|
|
6593
6609
|
), vs = E(
|
|
6594
|
-
function({ children:
|
|
6595
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className: gs({ className:
|
|
6610
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6611
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: gs({ className: r }), ...o, children: t });
|
|
6596
6612
|
}
|
|
6597
6613
|
), ws = E(
|
|
6598
|
-
function({ children:
|
|
6614
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6615
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: fs({ className: r }), ...o, children: t });
|
|
6616
|
+
}
|
|
6617
|
+
), ys = E(
|
|
6618
|
+
function({ children: t, className: r, active: o, ...s }, a) {
|
|
6599
6619
|
return /* @__PURE__ */ n.jsx(
|
|
6600
6620
|
"div",
|
|
6601
6621
|
{
|
|
6602
6622
|
ref: a,
|
|
6603
|
-
className:
|
|
6623
|
+
className: bs({ active: o, className: r }),
|
|
6604
6624
|
"aria-current": o ? "page" : void 0,
|
|
6605
6625
|
...s,
|
|
6606
|
-
children:
|
|
6626
|
+
children: t
|
|
6607
6627
|
}
|
|
6608
6628
|
);
|
|
6609
6629
|
}
|
|
6610
|
-
),
|
|
6611
|
-
({ children: e, className:
|
|
6612
|
-
), en = Object.assign(
|
|
6613
|
-
Leading:
|
|
6614
|
-
Trailing:
|
|
6615
|
-
NavItem:
|
|
6616
|
-
Nav:
|
|
6617
|
-
Actions:
|
|
6618
|
-
}),
|
|
6630
|
+
), ks = E(
|
|
6631
|
+
({ children: e, className: t, ...r }, o) => /* @__PURE__ */ n.jsx("header", { ref: o, className: us({ className: t }), ...r, children: e })
|
|
6632
|
+
), en = Object.assign(ks, {
|
|
6633
|
+
Leading: vs,
|
|
6634
|
+
Trailing: ws,
|
|
6635
|
+
NavItem: ys,
|
|
6636
|
+
Nav: xs,
|
|
6637
|
+
Actions: ps
|
|
6638
|
+
}), js = y(
|
|
6619
6639
|
"inline-block border animate-spin rounded-full",
|
|
6620
6640
|
{
|
|
6621
6641
|
variants: {
|
|
@@ -6641,7 +6661,7 @@ const cs = y(
|
|
|
6641
6661
|
color: "primary"
|
|
6642
6662
|
}
|
|
6643
6663
|
}
|
|
6644
|
-
),
|
|
6664
|
+
), Ns = y("relative w-full h-1 overflow-hidden rounded", {
|
|
6645
6665
|
variants: {
|
|
6646
6666
|
color: {
|
|
6647
6667
|
primary: "bg-coral",
|
|
@@ -6664,7 +6684,7 @@ const cs = y(
|
|
|
6664
6684
|
color: "primary",
|
|
6665
6685
|
size: "md"
|
|
6666
6686
|
}
|
|
6667
|
-
}),
|
|
6687
|
+
}), Cs = (e) => {
|
|
6668
6688
|
switch (e) {
|
|
6669
6689
|
case "primary":
|
|
6670
6690
|
return "bg-coral";
|
|
@@ -6687,11 +6707,11 @@ const cs = y(
|
|
|
6687
6707
|
default:
|
|
6688
6708
|
return "bg-coral";
|
|
6689
6709
|
}
|
|
6690
|
-
},
|
|
6710
|
+
}, zs = I.forwardRef(
|
|
6691
6711
|
({
|
|
6692
6712
|
color: e = "primary",
|
|
6693
|
-
size:
|
|
6694
|
-
ariaLabel:
|
|
6713
|
+
size: t = "md",
|
|
6714
|
+
ariaLabel: r = "Loading",
|
|
6695
6715
|
className: o,
|
|
6696
6716
|
...s
|
|
6697
6717
|
}, a) => /* @__PURE__ */ n.jsx(
|
|
@@ -6699,16 +6719,16 @@ const cs = y(
|
|
|
6699
6719
|
{
|
|
6700
6720
|
ref: a,
|
|
6701
6721
|
role: "status",
|
|
6702
|
-
"aria-label":
|
|
6703
|
-
className: p(
|
|
6722
|
+
"aria-label": r,
|
|
6723
|
+
className: p(js({ color: e, size: t }), o),
|
|
6704
6724
|
...s
|
|
6705
6725
|
}
|
|
6706
6726
|
)
|
|
6707
|
-
), Is =
|
|
6727
|
+
), Is = I.forwardRef(
|
|
6708
6728
|
({
|
|
6709
6729
|
color: e = "primary",
|
|
6710
|
-
size:
|
|
6711
|
-
ariaLabel:
|
|
6730
|
+
size: t = "md",
|
|
6731
|
+
ariaLabel: r = "Loading",
|
|
6712
6732
|
className: o,
|
|
6713
6733
|
...s
|
|
6714
6734
|
}, a) => /* @__PURE__ */ n.jsxs(
|
|
@@ -6716,9 +6736,9 @@ const cs = y(
|
|
|
6716
6736
|
{
|
|
6717
6737
|
ref: a,
|
|
6718
6738
|
role: "progressbar",
|
|
6719
|
-
"aria-label":
|
|
6739
|
+
"aria-label": r,
|
|
6720
6740
|
className: p(
|
|
6721
|
-
|
|
6741
|
+
Ns({ color: e, size: t }),
|
|
6722
6742
|
"bg-neutral/40 relative overflow-hidden",
|
|
6723
6743
|
o
|
|
6724
6744
|
),
|
|
@@ -6738,7 +6758,7 @@ const cs = y(
|
|
|
6738
6758
|
{
|
|
6739
6759
|
className: p(
|
|
6740
6760
|
"absolute left-0 top-0 h-full w-1/3 animate-loading-bar rounded-full",
|
|
6741
|
-
|
|
6761
|
+
Cs(e)
|
|
6742
6762
|
),
|
|
6743
6763
|
"aria-hidden": "true"
|
|
6744
6764
|
}
|
|
@@ -6746,38 +6766,38 @@ const cs = y(
|
|
|
6746
6766
|
]
|
|
6747
6767
|
}
|
|
6748
6768
|
)
|
|
6749
|
-
),
|
|
6769
|
+
), Ss = I.forwardRef(
|
|
6750
6770
|
({
|
|
6751
6771
|
type: e = "spinner",
|
|
6752
|
-
size:
|
|
6753
|
-
color:
|
|
6772
|
+
size: t = "md",
|
|
6773
|
+
color: r = "primary",
|
|
6754
6774
|
ariaLabel: o = "Loading",
|
|
6755
6775
|
className: s,
|
|
6756
6776
|
...a
|
|
6757
|
-
},
|
|
6777
|
+
}, l) => e === "bar" ? /* @__PURE__ */ n.jsx(
|
|
6758
6778
|
Is,
|
|
6759
6779
|
{
|
|
6760
|
-
ref:
|
|
6761
|
-
color:
|
|
6762
|
-
size:
|
|
6780
|
+
ref: l,
|
|
6781
|
+
color: r,
|
|
6782
|
+
size: t,
|
|
6763
6783
|
ariaLabel: o,
|
|
6764
6784
|
className: s,
|
|
6765
6785
|
...a
|
|
6766
6786
|
}
|
|
6767
6787
|
) : /* @__PURE__ */ n.jsx(
|
|
6768
|
-
|
|
6788
|
+
zs,
|
|
6769
6789
|
{
|
|
6770
|
-
ref:
|
|
6771
|
-
color:
|
|
6772
|
-
size:
|
|
6790
|
+
ref: l,
|
|
6791
|
+
color: r,
|
|
6792
|
+
size: t,
|
|
6773
6793
|
ariaLabel: o,
|
|
6774
6794
|
className: s,
|
|
6775
6795
|
...a
|
|
6776
6796
|
}
|
|
6777
6797
|
)
|
|
6778
6798
|
);
|
|
6779
|
-
|
|
6780
|
-
const
|
|
6799
|
+
Ss.displayName = "LoadingIndicator";
|
|
6800
|
+
const Rs = y(
|
|
6781
6801
|
"relative inline-flex items-center transition-colors duration-200",
|
|
6782
6802
|
{
|
|
6783
6803
|
variants: {
|
|
@@ -6829,7 +6849,7 @@ const Ss = y(
|
|
|
6829
6849
|
{ checked: !1, class: "bg-white border border-slate-300" }
|
|
6830
6850
|
]
|
|
6831
6851
|
}
|
|
6832
|
-
),
|
|
6852
|
+
), Vs = y(
|
|
6833
6853
|
"absolute rounded-full transition-transform duration-200",
|
|
6834
6854
|
{
|
|
6835
6855
|
variants: {
|
|
@@ -6848,69 +6868,69 @@ const Ss = y(
|
|
|
6848
6868
|
checked: !1
|
|
6849
6869
|
}
|
|
6850
6870
|
}
|
|
6851
|
-
),
|
|
6871
|
+
), Es = ({
|
|
6852
6872
|
color: e = "primary",
|
|
6853
|
-
size:
|
|
6854
|
-
disabled:
|
|
6873
|
+
size: t = "md",
|
|
6874
|
+
disabled: r = !1,
|
|
6855
6875
|
className: o,
|
|
6856
6876
|
checked: s
|
|
6857
6877
|
}) => /* @__PURE__ */ n.jsx(
|
|
6858
6878
|
"span",
|
|
6859
6879
|
{
|
|
6860
6880
|
className: p(
|
|
6861
|
-
|
|
6881
|
+
Rs({ color: e, size: t, disabled: r, checked: s }),
|
|
6862
6882
|
"rounded-full pointer-events-none",
|
|
6863
6883
|
o
|
|
6864
6884
|
),
|
|
6865
6885
|
"aria-hidden": "true"
|
|
6866
6886
|
}
|
|
6867
|
-
),
|
|
6887
|
+
), Ts = ({ size: e = "md", checked: t = !1 }) => /* @__PURE__ */ n.jsx("span", { className: p(Vs({ size: e, checked: t })), "aria-hidden": "true" }), As = ({ label: e, htmlFor: t, placement: r = "top", disabled: o = !1 }) => e ? /* @__PURE__ */ n.jsx(
|
|
6868
6888
|
"label",
|
|
6869
6889
|
{
|
|
6870
|
-
htmlFor:
|
|
6890
|
+
htmlFor: t,
|
|
6871
6891
|
className: p(
|
|
6872
6892
|
"text-sm select-none font-medium text-foreground",
|
|
6873
|
-
|
|
6893
|
+
r === "inline" ? "ml-2 mb-0" : "mb-1",
|
|
6874
6894
|
o && "opacity-50 cursor-not-allowed"
|
|
6875
6895
|
),
|
|
6876
6896
|
children: e
|
|
6877
6897
|
}
|
|
6878
|
-
) : null,
|
|
6898
|
+
) : null, Ms = I.forwardRef(
|
|
6879
6899
|
({
|
|
6880
6900
|
checked: e,
|
|
6881
|
-
defaultChecked:
|
|
6882
|
-
onCheckedChange:
|
|
6901
|
+
defaultChecked: t,
|
|
6902
|
+
onCheckedChange: r,
|
|
6883
6903
|
color: o = "primary",
|
|
6884
6904
|
size: s = "md",
|
|
6885
6905
|
label: a,
|
|
6886
|
-
labelPlacement:
|
|
6887
|
-
disabled:
|
|
6906
|
+
labelPlacement: l = "top",
|
|
6907
|
+
disabled: i = !1,
|
|
6888
6908
|
className: c,
|
|
6889
6909
|
id: d,
|
|
6890
6910
|
ariaLabel: f,
|
|
6891
6911
|
...g
|
|
6892
6912
|
}, b) => {
|
|
6893
|
-
const [m, v] =
|
|
6894
|
-
|
|
6913
|
+
const [m, v] = H(
|
|
6914
|
+
t ?? !1
|
|
6895
6915
|
), w = Ee(), C = d || w, R = typeof e == "boolean", A = R ? e : m, N = (M) => {
|
|
6896
|
-
R || v(M.target.checked),
|
|
6916
|
+
R || v(M.target.checked), r?.(M.target.checked);
|
|
6897
6917
|
};
|
|
6898
6918
|
return /* @__PURE__ */ n.jsxs(
|
|
6899
6919
|
"div",
|
|
6900
6920
|
{
|
|
6901
6921
|
className: p(
|
|
6902
6922
|
"flex flex-col",
|
|
6903
|
-
|
|
6923
|
+
l === "inline" && "flex-row items-center",
|
|
6904
6924
|
c
|
|
6905
6925
|
),
|
|
6906
6926
|
children: [
|
|
6907
6927
|
/* @__PURE__ */ n.jsx(
|
|
6908
|
-
|
|
6928
|
+
As,
|
|
6909
6929
|
{
|
|
6910
6930
|
label: a,
|
|
6911
6931
|
htmlFor: C,
|
|
6912
|
-
placement:
|
|
6913
|
-
disabled:
|
|
6932
|
+
placement: l,
|
|
6933
|
+
disabled: i
|
|
6914
6934
|
}
|
|
6915
6935
|
),
|
|
6916
6936
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -6918,7 +6938,7 @@ const Ss = y(
|
|
|
6918
6938
|
{
|
|
6919
6939
|
className: p(
|
|
6920
6940
|
"relative flex items-center",
|
|
6921
|
-
|
|
6941
|
+
l === "inline" && "ml-2"
|
|
6922
6942
|
),
|
|
6923
6943
|
children: [
|
|
6924
6944
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6929,22 +6949,22 @@ const Ss = y(
|
|
|
6929
6949
|
id: C,
|
|
6930
6950
|
"aria-label": f || a,
|
|
6931
6951
|
checked: A,
|
|
6932
|
-
disabled:
|
|
6952
|
+
disabled: i,
|
|
6933
6953
|
onChange: N,
|
|
6934
6954
|
className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10",
|
|
6935
6955
|
...g
|
|
6936
6956
|
}
|
|
6937
6957
|
),
|
|
6938
6958
|
/* @__PURE__ */ n.jsx(
|
|
6939
|
-
|
|
6959
|
+
Es,
|
|
6940
6960
|
{
|
|
6941
6961
|
color: o,
|
|
6942
6962
|
size: s,
|
|
6943
|
-
disabled:
|
|
6963
|
+
disabled: i,
|
|
6944
6964
|
checked: A
|
|
6945
6965
|
}
|
|
6946
6966
|
),
|
|
6947
|
-
/* @__PURE__ */ n.jsx(
|
|
6967
|
+
/* @__PURE__ */ n.jsx(Ts, { size: s, checked: A })
|
|
6948
6968
|
]
|
|
6949
6969
|
}
|
|
6950
6970
|
)
|
|
@@ -6953,8 +6973,8 @@ const Ss = y(
|
|
|
6953
6973
|
);
|
|
6954
6974
|
}
|
|
6955
6975
|
);
|
|
6956
|
-
|
|
6957
|
-
const
|
|
6976
|
+
Ms.displayName = "SwitchInput";
|
|
6977
|
+
const Ps = y("w-full overflow-hidden bg-neutral-200", {
|
|
6958
6978
|
variants: {
|
|
6959
6979
|
shape: {
|
|
6960
6980
|
rectangle: "rounded-none",
|
|
@@ -6973,25 +6993,25 @@ const Ms = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6973
6993
|
shape: "rounded",
|
|
6974
6994
|
size: "md"
|
|
6975
6995
|
}
|
|
6976
|
-
}),
|
|
6977
|
-
function({ shape:
|
|
6978
|
-
const d = ["sm", "md", "lg", "xl"].includes(
|
|
6996
|
+
}), tn = yt.forwardRef(
|
|
6997
|
+
function({ shape: t = "rounded", size: r = "md", height: o, className: s, style: a, ...l }, i) {
|
|
6998
|
+
const d = ["sm", "md", "lg", "xl"].includes(r) ? r : "md", f = o ? {
|
|
6979
6999
|
...a,
|
|
6980
7000
|
height: typeof o == "number" ? `${o}px` : o
|
|
6981
7001
|
} : a;
|
|
6982
7002
|
return /* @__PURE__ */ n.jsx(
|
|
6983
7003
|
"div",
|
|
6984
7004
|
{
|
|
6985
|
-
ref:
|
|
7005
|
+
ref: i,
|
|
6986
7006
|
role: "presentation",
|
|
6987
7007
|
className: p(
|
|
6988
7008
|
"relative",
|
|
6989
|
-
|
|
7009
|
+
Ps({ shape: t, size: d }),
|
|
6990
7010
|
s
|
|
6991
7011
|
),
|
|
6992
7012
|
style: f,
|
|
6993
7013
|
"aria-hidden": "true",
|
|
6994
|
-
...
|
|
7014
|
+
...l,
|
|
6995
7015
|
children: /* @__PURE__ */ n.jsx(
|
|
6996
7016
|
"span",
|
|
6997
7017
|
{
|
|
@@ -7008,41 +7028,41 @@ const Ms = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
7008
7028
|
}
|
|
7009
7029
|
);
|
|
7010
7030
|
export {
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7031
|
+
Ds as Alert,
|
|
7032
|
+
_s as AppBar,
|
|
7033
|
+
Fs as Avatar,
|
|
7034
|
+
zr as Badge,
|
|
7035
|
+
Ls as BottomBar,
|
|
7036
|
+
$s as Breadcrumbs,
|
|
7017
7037
|
Ge as Button,
|
|
7018
|
-
|
|
7038
|
+
Gs as ButtonFloat,
|
|
7019
7039
|
le as ButtonIcon,
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7040
|
+
st as Calendar,
|
|
7041
|
+
Ws as CheckboxInput,
|
|
7042
|
+
Ys as ChipInput,
|
|
7043
|
+
qs as DateSinglePickerInput,
|
|
7044
|
+
Us as Drawer,
|
|
7045
|
+
Ro as DrawerBody,
|
|
7046
|
+
Vo as DrawerFooter,
|
|
7047
|
+
So as DrawerHeader,
|
|
7048
|
+
Io as DrawerOverlay,
|
|
7049
|
+
Lr as Icon,
|
|
7050
|
+
Ss as LoadingIndicator,
|
|
7051
|
+
Ie as Menu,
|
|
7052
|
+
Hs as RadioInput,
|
|
7053
|
+
Xs as SegmentMultipleInput,
|
|
7054
|
+
Js as SegmentSingleInput,
|
|
7055
|
+
Jo as SelectInput,
|
|
7056
|
+
tn as Skeleton,
|
|
7057
|
+
Ks as Snackbar,
|
|
7058
|
+
Ms as SwitchInput,
|
|
7059
|
+
As as SwitchLabel,
|
|
7060
|
+
Ts as SwitchThumb,
|
|
7061
|
+
Es as SwitchTrack,
|
|
7062
|
+
Zs as Tabs,
|
|
7063
|
+
We as Text,
|
|
7064
|
+
cs as TextAreaInput,
|
|
7065
|
+
is as TextInput,
|
|
7046
7066
|
Qs as Tile,
|
|
7047
7067
|
en as TopBar,
|
|
7048
7068
|
je as useDrawerContext
|