@fabio.caffarello/react-design-system 1.23.12 → 1.23.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +488 -490
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1310,9 +1310,9 @@ const Ka = (e, t) => {
|
|
|
1310
1310
|
if (i.indexOf(h) > -1)
|
|
1311
1311
|
continue;
|
|
1312
1312
|
i.push(h);
|
|
1313
|
-
const
|
|
1314
|
-
for (let k = 0; k <
|
|
1315
|
-
const F =
|
|
1313
|
+
const w = a(g, v);
|
|
1314
|
+
for (let k = 0; k < w.length; ++k) {
|
|
1315
|
+
const F = w[k];
|
|
1316
1316
|
i.push(S + F);
|
|
1317
1317
|
}
|
|
1318
1318
|
d = u + (d.length > 0 ? " " + d : d);
|
|
@@ -1376,7 +1376,7 @@ const Ka = (e, t) => {
|
|
|
1376
1376
|
"bottom-left",
|
|
1377
1377
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1378
1378
|
"left-bottom"
|
|
1379
|
-
],
|
|
1379
|
+
], w = () => [...h(), K, Y], k = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], N = () => [K, Y, d], E = () => [At, "full", "auto", ...N()], R = () => [st, "none", "subgrid", K, Y], I = () => ["auto", {
|
|
1380
1380
|
span: ["full", st, K, Y]
|
|
1381
1381
|
}, st, K, Y], D = () => [st, "auto", K, Y], M = () => ["auto", "min", "max", "fr", K, Y], T = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...N()], U = () => [At, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], H = () => [e, K, Y], fe = () => [...h(), Hs, Ws, {
|
|
1382
1382
|
position: [K, Y]
|
|
@@ -1523,7 +1523,7 @@ const Ka = (e, t) => {
|
|
|
1523
1523
|
* @see https://tailwindcss.com/docs/object-position
|
|
1524
1524
|
*/
|
|
1525
1525
|
"object-position": [{
|
|
1526
|
-
object:
|
|
1526
|
+
object: w()
|
|
1527
1527
|
}],
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Overflow
|
|
@@ -3339,7 +3339,7 @@ const Ka = (e, t) => {
|
|
|
3339
3339
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3340
3340
|
*/
|
|
3341
3341
|
"perspective-origin": [{
|
|
3342
|
-
"perspective-origin":
|
|
3342
|
+
"perspective-origin": w()
|
|
3343
3343
|
}],
|
|
3344
3344
|
/**
|
|
3345
3345
|
* Rotate
|
|
@@ -3435,7 +3435,7 @@ const Ka = (e, t) => {
|
|
|
3435
3435
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3436
3436
|
*/
|
|
3437
3437
|
"transform-origin": [{
|
|
3438
|
-
origin:
|
|
3438
|
+
origin: w()
|
|
3439
3439
|
}],
|
|
3440
3440
|
/**
|
|
3441
3441
|
* Transform Style
|
|
@@ -3828,7 +3828,7 @@ const Ka = (e, t) => {
|
|
|
3828
3828
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3829
3829
|
};
|
|
3830
3830
|
}, _o = /* @__PURE__ */ go(Fo);
|
|
3831
|
-
function
|
|
3831
|
+
function y(...e) {
|
|
3832
3832
|
return _o(un(e));
|
|
3833
3833
|
}
|
|
3834
3834
|
const Us = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Bs = un, zo = (e, t) => (r) => {
|
|
@@ -3858,7 +3858,7 @@ const Us = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Bs = un, z
|
|
|
3858
3858
|
const r = zo(e, t);
|
|
3859
3859
|
return ((s) => {
|
|
3860
3860
|
const a = r(s);
|
|
3861
|
-
return
|
|
3861
|
+
return y(a);
|
|
3862
3862
|
});
|
|
3863
3863
|
};
|
|
3864
3864
|
class Pe {
|
|
@@ -4156,7 +4156,7 @@ function Vo() {
|
|
|
4156
4156
|
return L.displayName || "Context";
|
|
4157
4157
|
case S:
|
|
4158
4158
|
return (L._context.displayName || "Context") + ".Consumer";
|
|
4159
|
-
case
|
|
4159
|
+
case w:
|
|
4160
4160
|
var B = L.render;
|
|
4161
4161
|
return L = L.displayName, L || (L = B.displayName || B.name || "", L = L !== "" ? "ForwardRef(" + L + ")" : "ForwardRef"), L;
|
|
4162
4162
|
case N:
|
|
@@ -4319,7 +4319,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4319
4319
|
function f(L) {
|
|
4320
4320
|
return typeof L == "object" && L !== null && L.$$typeof === b;
|
|
4321
4321
|
}
|
|
4322
|
-
var p = me, b = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), h = Symbol.for("react.context"),
|
|
4322
|
+
var p = me, b = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), h = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), D = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, T = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
4323
4323
|
return null;
|
|
4324
4324
|
};
|
|
4325
4325
|
p = {
|
|
@@ -4673,15 +4673,15 @@ function zd(s) {
|
|
|
4673
4673
|
"className"
|
|
4674
4674
|
]);
|
|
4675
4675
|
const o = {
|
|
4676
|
-
warning:
|
|
4677
|
-
error:
|
|
4678
|
-
info:
|
|
4676
|
+
warning: y("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
4677
|
+
error: y("bg-error-bg", "text-error-dark", "border-error"),
|
|
4678
|
+
info: y("bg-info-bg", "text-info-dark", "border-info")
|
|
4679
4679
|
};
|
|
4680
4680
|
return /* @__PURE__ */ n.jsx(
|
|
4681
4681
|
"div",
|
|
4682
4682
|
A({
|
|
4683
4683
|
role: "alert",
|
|
4684
|
-
className:
|
|
4684
|
+
className: y(
|
|
4685
4685
|
"border",
|
|
4686
4686
|
C("base", "px"),
|
|
4687
4687
|
C("sm", "py"),
|
|
@@ -4781,7 +4781,7 @@ function Jo(u, c) {
|
|
|
4781
4781
|
p = "p";
|
|
4782
4782
|
break;
|
|
4783
4783
|
}
|
|
4784
|
-
return e === "heading" ? f.push(be("h2")) : e === "body" || e === "paragraph" ? f.push(be("body")) : e === "bodySmall" ? f.push(be("bodySmall")) : e === "bodyLarge" ? f.push(be("bodyLarge")) : e === "caption" ? f.push(be("caption")) : e === "label" ? f.push(be("label")) : f.push(be("body")), t && f.push("font-bold"), r && f.push("italic"), f.push(Xo[i][l]), /* @__PURE__ */ n.jsx(p, A({ ref: c, className:
|
|
4784
|
+
return e === "heading" ? f.push(be("h2")) : e === "body" || e === "paragraph" ? f.push(be("body")) : e === "bodySmall" ? f.push(be("bodySmall")) : e === "bodyLarge" ? f.push(be("bodyLarge")) : e === "caption" ? f.push(be("caption")) : e === "label" ? f.push(be("label")) : f.push(be("body")), t && f.push("font-bold"), r && f.push("italic"), f.push(Xo[i][l]), /* @__PURE__ */ n.jsx(p, A({ ref: c, className: y(...f, s) }, d));
|
|
4785
4785
|
}
|
|
4786
4786
|
const lt = he(Jo);
|
|
4787
4787
|
/**
|
|
@@ -5231,7 +5231,7 @@ const qi = [
|
|
|
5231
5231
|
return /* @__PURE__ */ n.jsxs(
|
|
5232
5232
|
"div",
|
|
5233
5233
|
_(A({
|
|
5234
|
-
className:
|
|
5234
|
+
className: y("inline-flex", "items-center", a),
|
|
5235
5235
|
role: "status",
|
|
5236
5236
|
"aria-label": s || "Loading",
|
|
5237
5237
|
"aria-live": "polite"
|
|
@@ -5240,14 +5240,14 @@ const qi = [
|
|
|
5240
5240
|
/* @__PURE__ */ n.jsx(
|
|
5241
5241
|
An,
|
|
5242
5242
|
{
|
|
5243
|
-
className:
|
|
5243
|
+
className: y(Gi({ size: t, variant: r })),
|
|
5244
5244
|
"aria-hidden": "true"
|
|
5245
5245
|
}
|
|
5246
5246
|
),
|
|
5247
5247
|
s && /* @__PURE__ */ n.jsx(
|
|
5248
5248
|
"span",
|
|
5249
5249
|
{
|
|
5250
|
-
className:
|
|
5250
|
+
className: y(
|
|
5251
5251
|
C("sm", "ml"),
|
|
5252
5252
|
oe("bodySmall"),
|
|
5253
5253
|
"text-fg-secondary",
|
|
@@ -5263,7 +5263,7 @@ const qi = [
|
|
|
5263
5263
|
Tn.displayName = "Spinner";
|
|
5264
5264
|
const Yi = Ce(
|
|
5265
5265
|
// Base classes
|
|
5266
|
-
|
|
5266
|
+
y(
|
|
5267
5267
|
"inline-flex",
|
|
5268
5268
|
"items-center",
|
|
5269
5269
|
"justify-center",
|
|
@@ -5280,25 +5280,25 @@ const Yi = Ce(
|
|
|
5280
5280
|
{
|
|
5281
5281
|
variants: {
|
|
5282
5282
|
variant: {
|
|
5283
|
-
primary:
|
|
5283
|
+
primary: y(
|
|
5284
5284
|
"bg-surface-brand-strong",
|
|
5285
5285
|
"text-fg-inverse",
|
|
5286
5286
|
"hover:opacity-90",
|
|
5287
5287
|
"focus:ring-line-brand"
|
|
5288
5288
|
),
|
|
5289
|
-
secondary:
|
|
5289
|
+
secondary: y(
|
|
5290
5290
|
"bg-surface-secondary",
|
|
5291
5291
|
"text-fg-inverse",
|
|
5292
5292
|
"hover:opacity-90",
|
|
5293
5293
|
"focus:ring-line-secondary"
|
|
5294
5294
|
),
|
|
5295
|
-
error:
|
|
5295
|
+
error: y(
|
|
5296
5296
|
"bg-error",
|
|
5297
5297
|
"text-fg-inverse",
|
|
5298
5298
|
"hover:opacity-90",
|
|
5299
5299
|
"focus:ring-error"
|
|
5300
5300
|
),
|
|
5301
|
-
outline:
|
|
5301
|
+
outline: y(
|
|
5302
5302
|
"border-2",
|
|
5303
5303
|
"border-line-default",
|
|
5304
5304
|
"bg-transparent",
|
|
@@ -5306,13 +5306,13 @@ const Yi = Ce(
|
|
|
5306
5306
|
"hover:bg-surface-hover",
|
|
5307
5307
|
"focus:ring-line-focus"
|
|
5308
5308
|
),
|
|
5309
|
-
ghost:
|
|
5309
|
+
ghost: y(
|
|
5310
5310
|
"bg-transparent",
|
|
5311
5311
|
"text-fg-primary",
|
|
5312
5312
|
"hover:bg-surface-hover",
|
|
5313
5313
|
"focus:ring-line-focus"
|
|
5314
5314
|
),
|
|
5315
|
-
iconOnly:
|
|
5315
|
+
iconOnly: y(
|
|
5316
5316
|
"bg-transparent",
|
|
5317
5317
|
"text-fg-primary",
|
|
5318
5318
|
"hover:bg-surface-hover",
|
|
@@ -5321,19 +5321,19 @@ const Yi = Ce(
|
|
|
5321
5321
|
)
|
|
5322
5322
|
},
|
|
5323
5323
|
size: {
|
|
5324
|
-
sm:
|
|
5324
|
+
sm: y(
|
|
5325
5325
|
C("md", "px"),
|
|
5326
5326
|
C("1.5", "py"),
|
|
5327
5327
|
oe("bodySmall"),
|
|
5328
5328
|
C("1.5", "gap")
|
|
5329
5329
|
),
|
|
5330
|
-
md:
|
|
5330
|
+
md: y(
|
|
5331
5331
|
C("base", "px"),
|
|
5332
5332
|
C("sm", "py"),
|
|
5333
5333
|
oe("body"),
|
|
5334
5334
|
C("sm", "gap")
|
|
5335
5335
|
),
|
|
5336
|
-
lg:
|
|
5336
|
+
lg: y(
|
|
5337
5337
|
C("lg", "px"),
|
|
5338
5338
|
C("md", "py"),
|
|
5339
5339
|
oe("bodyLarge"),
|
|
@@ -5346,17 +5346,17 @@ const Yi = Ce(
|
|
|
5346
5346
|
{
|
|
5347
5347
|
variant: "iconOnly",
|
|
5348
5348
|
size: "sm",
|
|
5349
|
-
class:
|
|
5349
|
+
class: y("h-8", "w-8", "p-0")
|
|
5350
5350
|
},
|
|
5351
5351
|
{
|
|
5352
5352
|
variant: "iconOnly",
|
|
5353
5353
|
size: "md",
|
|
5354
|
-
class:
|
|
5354
|
+
class: y("h-10", "w-10", "p-0")
|
|
5355
5355
|
},
|
|
5356
5356
|
{
|
|
5357
5357
|
variant: "iconOnly",
|
|
5358
5358
|
size: "lg",
|
|
5359
|
-
class:
|
|
5359
|
+
class: y("h-12", "w-12", "p-0")
|
|
5360
5360
|
}
|
|
5361
5361
|
],
|
|
5362
5362
|
defaultVariants: {
|
|
@@ -5409,7 +5409,7 @@ const se = Ie(
|
|
|
5409
5409
|
"aria-label"
|
|
5410
5410
|
]);
|
|
5411
5411
|
const j = P(
|
|
5412
|
-
() =>
|
|
5412
|
+
() => y(
|
|
5413
5413
|
Yi({
|
|
5414
5414
|
variant: t,
|
|
5415
5415
|
size: r
|
|
@@ -5424,12 +5424,12 @@ const se = Ie(
|
|
|
5424
5424
|
), h = P(
|
|
5425
5425
|
() => S && !p && !f ? "Button" : p,
|
|
5426
5426
|
[S, p, f]
|
|
5427
|
-
),
|
|
5427
|
+
), w = P(() => t === "error" ? "primary" : t === "primary" || t === "secondary" ? "neutral" : "primary", [t]), k = P(
|
|
5428
5428
|
() => r === "sm" ? "sm" : r === "lg" ? "lg" : "md",
|
|
5429
5429
|
[r]
|
|
5430
5430
|
), F = P(
|
|
5431
|
-
() => o || /* @__PURE__ */ n.jsx(Tn, { size: k, variant:
|
|
5432
|
-
[o, k,
|
|
5431
|
+
() => o || /* @__PURE__ */ n.jsx(Tn, { size: k, variant: w }),
|
|
5432
|
+
[o, k, w]
|
|
5433
5433
|
), N = c === "button" && !b.type ? "button" : void 0, E = A(A({
|
|
5434
5434
|
className: j,
|
|
5435
5435
|
disabled: m || s,
|
|
@@ -5457,7 +5457,7 @@ const Ki = Ie(function({
|
|
|
5457
5457
|
helperId: o
|
|
5458
5458
|
}) {
|
|
5459
5459
|
const i = P(
|
|
5460
|
-
() =>
|
|
5460
|
+
() => y(
|
|
5461
5461
|
C("xs", "mt"),
|
|
5462
5462
|
be("caption"),
|
|
5463
5463
|
t && "text-fg-error",
|
|
@@ -5515,15 +5515,15 @@ const Ki = Ie(function({
|
|
|
5515
5515
|
"value",
|
|
5516
5516
|
"onChange"
|
|
5517
5517
|
]);
|
|
5518
|
-
const
|
|
5518
|
+
const w = P(
|
|
5519
5519
|
() => t || `input-${Math.random().toString(36).substr(2, 9)}`,
|
|
5520
5520
|
[t]
|
|
5521
5521
|
), k = P(
|
|
5522
|
-
() => s ? `${
|
|
5523
|
-
[s,
|
|
5522
|
+
() => s ? `${w}-error` : void 0,
|
|
5523
|
+
[s, w]
|
|
5524
5524
|
), F = P(
|
|
5525
|
-
() => o ? `${
|
|
5526
|
-
[o,
|
|
5525
|
+
() => o ? `${w}-helper` : void 0,
|
|
5526
|
+
[o, w]
|
|
5527
5527
|
), [N, E] = O(!1), R = P(() => b === "password", [b]), I = P(
|
|
5528
5528
|
() => R && N ? "text" : b,
|
|
5529
5529
|
[R, N, b]
|
|
@@ -5544,7 +5544,7 @@ const Ki = Ie(function({
|
|
|
5544
5544
|
[Q, U]
|
|
5545
5545
|
), le = Ce(
|
|
5546
5546
|
// Base classes
|
|
5547
|
-
|
|
5547
|
+
y(
|
|
5548
5548
|
"w-full",
|
|
5549
5549
|
ee("md"),
|
|
5550
5550
|
"transition-colors",
|
|
@@ -5557,18 +5557,18 @@ const Ki = Ie(function({
|
|
|
5557
5557
|
{
|
|
5558
5558
|
variants: {
|
|
5559
5559
|
variant: {
|
|
5560
|
-
default:
|
|
5560
|
+
default: y(
|
|
5561
5561
|
"border-0",
|
|
5562
5562
|
"border-b-2",
|
|
5563
5563
|
"border-line-default",
|
|
5564
5564
|
"focus:border-line-focus"
|
|
5565
5565
|
),
|
|
5566
|
-
outlined:
|
|
5566
|
+
outlined: y(
|
|
5567
5567
|
"border",
|
|
5568
5568
|
"border-line-default",
|
|
5569
5569
|
"focus:border-line-focus"
|
|
5570
5570
|
),
|
|
5571
|
-
filled:
|
|
5571
|
+
filled: y(
|
|
5572
5572
|
"bg-surface-muted",
|
|
5573
5573
|
"border-0",
|
|
5574
5574
|
"focus:bg-surface-base",
|
|
@@ -5577,17 +5577,17 @@ const Ki = Ie(function({
|
|
|
5577
5577
|
)
|
|
5578
5578
|
},
|
|
5579
5579
|
size: {
|
|
5580
|
-
sm:
|
|
5580
|
+
sm: y(
|
|
5581
5581
|
"h-8",
|
|
5582
5582
|
oe("bodySmall"),
|
|
5583
5583
|
C("md", "px")
|
|
5584
5584
|
),
|
|
5585
|
-
md:
|
|
5585
|
+
md: y(
|
|
5586
5586
|
"h-10",
|
|
5587
5587
|
oe("body"),
|
|
5588
5588
|
C("base", "px")
|
|
5589
5589
|
),
|
|
5590
|
-
lg:
|
|
5590
|
+
lg: y(
|
|
5591
5591
|
"h-12",
|
|
5592
5592
|
oe("bodyLarge"),
|
|
5593
5593
|
C("lg", "px")
|
|
@@ -5595,12 +5595,12 @@ const Ki = Ie(function({
|
|
|
5595
5595
|
},
|
|
5596
5596
|
state: {
|
|
5597
5597
|
default: "",
|
|
5598
|
-
error:
|
|
5598
|
+
error: y(
|
|
5599
5599
|
"border-error",
|
|
5600
5600
|
"focus:border-error",
|
|
5601
5601
|
fe("error")
|
|
5602
5602
|
),
|
|
5603
|
-
success:
|
|
5603
|
+
success: y(
|
|
5604
5604
|
"border-success",
|
|
5605
5605
|
"focus:border-success",
|
|
5606
5606
|
fe("success")
|
|
@@ -5614,7 +5614,7 @@ const Ki = Ie(function({
|
|
|
5614
5614
|
}
|
|
5615
5615
|
}
|
|
5616
5616
|
), L = P(
|
|
5617
|
-
() =>
|
|
5617
|
+
() => y(
|
|
5618
5618
|
le({ variant: l, size: i, state: D }),
|
|
5619
5619
|
// Icon padding - specific values for icon positioning
|
|
5620
5620
|
d && (i === "sm" ? "pl-9" : i === "lg" ? "pl-12" : "pl-10"),
|
|
@@ -5632,7 +5632,7 @@ const Ki = Ie(function({
|
|
|
5632
5632
|
f
|
|
5633
5633
|
]
|
|
5634
5634
|
), B = P(
|
|
5635
|
-
() =>
|
|
5635
|
+
() => y(
|
|
5636
5636
|
"block",
|
|
5637
5637
|
be("label"),
|
|
5638
5638
|
C("xs", "mb"),
|
|
@@ -5685,7 +5685,7 @@ const Ki = Ie(function({
|
|
|
5685
5685
|
E((z) => !z);
|
|
5686
5686
|
}, []);
|
|
5687
5687
|
return /* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
5688
|
-
r && /* @__PURE__ */ n.jsx("label", { htmlFor:
|
|
5688
|
+
r && /* @__PURE__ */ n.jsx("label", { htmlFor: w, className: B, children: r }),
|
|
5689
5689
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
5690
5690
|
d && /* @__PURE__ */ n.jsx(
|
|
5691
5691
|
"div",
|
|
@@ -5697,7 +5697,7 @@ const Ki = Ie(function({
|
|
|
5697
5697
|
/* @__PURE__ */ n.jsx(
|
|
5698
5698
|
"input",
|
|
5699
5699
|
A({
|
|
5700
|
-
id:
|
|
5700
|
+
id: w,
|
|
5701
5701
|
ref: j,
|
|
5702
5702
|
type: I,
|
|
5703
5703
|
className: L,
|
|
@@ -5778,7 +5778,7 @@ function Xi({
|
|
|
5778
5778
|
}
|
|
5779
5779
|
const Ji = Ce(
|
|
5780
5780
|
// Base classes
|
|
5781
|
-
|
|
5781
|
+
y(
|
|
5782
5782
|
"inline-flex",
|
|
5783
5783
|
"items-center",
|
|
5784
5784
|
"transition-colors",
|
|
@@ -5793,13 +5793,13 @@ const Ji = Ce(
|
|
|
5793
5793
|
{
|
|
5794
5794
|
variants: {
|
|
5795
5795
|
variant: {
|
|
5796
|
-
default:
|
|
5796
|
+
default: y(
|
|
5797
5797
|
"text-fg-primary",
|
|
5798
5798
|
"hover:opacity-80",
|
|
5799
5799
|
"focus-visible:opacity-100",
|
|
5800
5800
|
"focus:ring-line-brand"
|
|
5801
5801
|
),
|
|
5802
|
-
underline:
|
|
5802
|
+
underline: y(
|
|
5803
5803
|
"text-fg-primary",
|
|
5804
5804
|
"hover:opacity-80",
|
|
5805
5805
|
"focus-visible:opacity-100",
|
|
@@ -5808,7 +5808,7 @@ const Ji = Ce(
|
|
|
5808
5808
|
"hover:border-current",
|
|
5809
5809
|
"focus:ring-line-brand"
|
|
5810
5810
|
),
|
|
5811
|
-
background:
|
|
5811
|
+
background: y(
|
|
5812
5812
|
"text-fg-primary",
|
|
5813
5813
|
"hover:bg-surface-hover",
|
|
5814
5814
|
"rounded-md",
|
|
@@ -5817,17 +5817,17 @@ const Ji = Ce(
|
|
|
5817
5817
|
)
|
|
5818
5818
|
},
|
|
5819
5819
|
size: {
|
|
5820
|
-
sm:
|
|
5820
|
+
sm: y(
|
|
5821
5821
|
C("sm", "px"),
|
|
5822
5822
|
C("xs", "py"),
|
|
5823
5823
|
oe("bodySmall")
|
|
5824
5824
|
),
|
|
5825
|
-
md:
|
|
5825
|
+
md: y(
|
|
5826
5826
|
C("base", "px"),
|
|
5827
5827
|
C("sm", "py"),
|
|
5828
5828
|
oe("body")
|
|
5829
5829
|
),
|
|
5830
|
-
lg:
|
|
5830
|
+
lg: y(
|
|
5831
5831
|
C("lg", "px"),
|
|
5832
5832
|
C("md", "py"),
|
|
5833
5833
|
oe("bodyLarge")
|
|
@@ -5902,34 +5902,34 @@ function In(f) {
|
|
|
5902
5902
|
if (!b) return "";
|
|
5903
5903
|
switch (a) {
|
|
5904
5904
|
case "underline":
|
|
5905
|
-
return
|
|
5905
|
+
return y("border-b-2", "border-line-brand", "text-fg-brand-emphasis");
|
|
5906
5906
|
case "background":
|
|
5907
|
-
return
|
|
5907
|
+
return y("bg-surface-brand-muted", "text-fg-brand-emphasis");
|
|
5908
5908
|
case "default":
|
|
5909
5909
|
default:
|
|
5910
|
-
return
|
|
5910
|
+
return y("text-fg-brand-emphasis", "font-semibold");
|
|
5911
5911
|
}
|
|
5912
5912
|
}, [b, a]), j = G(
|
|
5913
|
-
(
|
|
5913
|
+
(w) => {
|
|
5914
5914
|
if (s) {
|
|
5915
|
-
|
|
5915
|
+
w.preventDefault(), w.stopPropagation();
|
|
5916
5916
|
return;
|
|
5917
5917
|
}
|
|
5918
|
-
c == null || c(
|
|
5918
|
+
c == null || c(w);
|
|
5919
5919
|
},
|
|
5920
5920
|
[s, c]
|
|
5921
5921
|
), S = G(
|
|
5922
|
-
(
|
|
5922
|
+
(w) => {
|
|
5923
5923
|
if (s) {
|
|
5924
|
-
(
|
|
5924
|
+
(w.key === "Enter" || w.key === " ") && (w.preventDefault(), w.stopPropagation());
|
|
5925
5925
|
return;
|
|
5926
5926
|
}
|
|
5927
|
-
u == null || u(
|
|
5927
|
+
u == null || u(w);
|
|
5928
5928
|
},
|
|
5929
5929
|
[s, u]
|
|
5930
5930
|
), h = P(() => {
|
|
5931
|
-
const
|
|
5932
|
-
className:
|
|
5931
|
+
const w = A({
|
|
5932
|
+
className: y(
|
|
5933
5933
|
Ji({ variant: a, size: o }),
|
|
5934
5934
|
g,
|
|
5935
5935
|
s && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
@@ -5944,9 +5944,9 @@ function In(f) {
|
|
|
5944
5944
|
"data-active": b,
|
|
5945
5945
|
"data-disabled": s
|
|
5946
5946
|
}, m);
|
|
5947
|
-
return x && !i ? _(A({},
|
|
5947
|
+
return x && !i ? _(A({}, w), {
|
|
5948
5948
|
href: s ? void 0 : e
|
|
5949
|
-
}) : _(A({},
|
|
5949
|
+
}) : _(A({}, w), {
|
|
5950
5950
|
href: s ? void 0 : e
|
|
5951
5951
|
});
|
|
5952
5952
|
}, [
|
|
@@ -5968,7 +5968,7 @@ function In(f) {
|
|
|
5968
5968
|
}
|
|
5969
5969
|
const Qi = Ce(
|
|
5970
5970
|
// Base classes
|
|
5971
|
-
|
|
5971
|
+
y(
|
|
5972
5972
|
"inline-flex",
|
|
5973
5973
|
"items-center",
|
|
5974
5974
|
"justify-center",
|
|
@@ -5988,17 +5988,17 @@ const Qi = Ce(
|
|
|
5988
5988
|
secondary: ""
|
|
5989
5989
|
},
|
|
5990
5990
|
size: {
|
|
5991
|
-
sm:
|
|
5991
|
+
sm: y(
|
|
5992
5992
|
C("1.5", "px"),
|
|
5993
5993
|
C("0.5", "py"),
|
|
5994
5994
|
oe("caption")
|
|
5995
5995
|
),
|
|
5996
|
-
md:
|
|
5996
|
+
md: y(
|
|
5997
5997
|
C("sm", "px"),
|
|
5998
5998
|
C("xs", "py"),
|
|
5999
5999
|
oe("caption")
|
|
6000
6000
|
),
|
|
6001
|
-
lg:
|
|
6001
|
+
lg: y(
|
|
6002
6002
|
C("sm", "px"),
|
|
6003
6003
|
C("xs", "py"),
|
|
6004
6004
|
oe("bodySmall")
|
|
@@ -6014,32 +6014,32 @@ const Qi = Ce(
|
|
|
6014
6014
|
{
|
|
6015
6015
|
variant: "success",
|
|
6016
6016
|
style: "solid",
|
|
6017
|
-
class:
|
|
6017
|
+
class: y("bg-success-bg", "text-success-dark", "border-success")
|
|
6018
6018
|
},
|
|
6019
6019
|
{
|
|
6020
6020
|
variant: "warning",
|
|
6021
6021
|
style: "solid",
|
|
6022
|
-
class:
|
|
6022
|
+
class: y("bg-warning-bg", "text-warning-dark", "border-warning")
|
|
6023
6023
|
},
|
|
6024
6024
|
{
|
|
6025
6025
|
variant: "error",
|
|
6026
6026
|
style: "solid",
|
|
6027
|
-
class:
|
|
6027
|
+
class: y("bg-error-bg", "text-error-dark", "border-error")
|
|
6028
6028
|
},
|
|
6029
6029
|
{
|
|
6030
6030
|
variant: "info",
|
|
6031
6031
|
style: "solid",
|
|
6032
|
-
class:
|
|
6032
|
+
class: y("bg-info-bg", "text-info-dark", "border-info")
|
|
6033
6033
|
},
|
|
6034
6034
|
{
|
|
6035
6035
|
variant: "neutral",
|
|
6036
6036
|
style: "solid",
|
|
6037
|
-
class:
|
|
6037
|
+
class: y("bg-surface-muted", "text-fg-primary", "border-line-default")
|
|
6038
6038
|
},
|
|
6039
6039
|
{
|
|
6040
6040
|
variant: "primary",
|
|
6041
6041
|
style: "solid",
|
|
6042
|
-
class:
|
|
6042
|
+
class: y(
|
|
6043
6043
|
"bg-surface-brand-subtle",
|
|
6044
6044
|
"text-fg-brand-emphasis",
|
|
6045
6045
|
"border-line-brand"
|
|
@@ -6051,7 +6051,7 @@ const Qi = Ce(
|
|
|
6051
6051
|
// bg-pink-300: secondary solid badge — no semantic equivalent
|
|
6052
6052
|
// (would shift 2 shades to bg-surface-secondary). Kept literal until
|
|
6053
6053
|
// secondary brand surface palette expands beyond DEFAULT.
|
|
6054
|
-
class:
|
|
6054
|
+
class: y(
|
|
6055
6055
|
"bg-pink-300",
|
|
6056
6056
|
"text-fg-brand-secondary-emphasis",
|
|
6057
6057
|
"border-line-secondary"
|
|
@@ -6061,37 +6061,37 @@ const Qi = Ce(
|
|
|
6061
6061
|
{
|
|
6062
6062
|
variant: "success",
|
|
6063
6063
|
style: "outline",
|
|
6064
|
-
class:
|
|
6064
|
+
class: y("bg-transparent", "border-success", "text-fg-success")
|
|
6065
6065
|
},
|
|
6066
6066
|
{
|
|
6067
6067
|
variant: "warning",
|
|
6068
6068
|
style: "outline",
|
|
6069
|
-
class:
|
|
6069
|
+
class: y("bg-transparent", "border-warning", "text-fg-warning")
|
|
6070
6070
|
},
|
|
6071
6071
|
{
|
|
6072
6072
|
variant: "error",
|
|
6073
6073
|
style: "outline",
|
|
6074
|
-
class:
|
|
6074
|
+
class: y("bg-transparent", "border-error", "text-fg-error")
|
|
6075
6075
|
},
|
|
6076
6076
|
{
|
|
6077
6077
|
variant: "info",
|
|
6078
6078
|
style: "outline",
|
|
6079
|
-
class:
|
|
6079
|
+
class: y("bg-transparent", "border-info", "text-fg-info")
|
|
6080
6080
|
},
|
|
6081
6081
|
{
|
|
6082
6082
|
variant: "neutral",
|
|
6083
6083
|
style: "outline",
|
|
6084
|
-
class:
|
|
6084
|
+
class: y("bg-transparent", "border-line-default", "text-fg-secondary")
|
|
6085
6085
|
},
|
|
6086
6086
|
{
|
|
6087
6087
|
variant: "primary",
|
|
6088
6088
|
style: "outline",
|
|
6089
|
-
class:
|
|
6089
|
+
class: y("bg-transparent", "border-line-brand", "text-fg-brand")
|
|
6090
6090
|
},
|
|
6091
6091
|
{
|
|
6092
6092
|
variant: "secondary",
|
|
6093
6093
|
style: "outline",
|
|
6094
|
-
class:
|
|
6094
|
+
class: y(
|
|
6095
6095
|
"bg-transparent",
|
|
6096
6096
|
"border-line-secondary",
|
|
6097
6097
|
"text-fg-brand-secondary"
|
|
@@ -6122,7 +6122,7 @@ const Qi = Ce(
|
|
|
6122
6122
|
"aria-label"
|
|
6123
6123
|
]);
|
|
6124
6124
|
const m = P(
|
|
6125
|
-
() =>
|
|
6125
|
+
() => y(Qi({ variant: t, size: r, style: s }), a),
|
|
6126
6126
|
[t, r, s, a]
|
|
6127
6127
|
), f = P(() => {
|
|
6128
6128
|
if (i) return i;
|
|
@@ -6155,7 +6155,7 @@ const el = Ie(function({
|
|
|
6155
6155
|
helperId: o
|
|
6156
6156
|
}) {
|
|
6157
6157
|
const i = P(
|
|
6158
|
-
() =>
|
|
6158
|
+
() => y(
|
|
6159
6159
|
C("xs", "mt"),
|
|
6160
6160
|
be("caption"),
|
|
6161
6161
|
t && "text-fg-error",
|
|
@@ -6212,12 +6212,12 @@ const el = Ie(function({
|
|
|
6212
6212
|
), j = P(
|
|
6213
6213
|
() => l ? `${v}-helper` : void 0,
|
|
6214
6214
|
[l, v]
|
|
6215
|
-
), S = P(() => "focus:border-line-focus", []), h = P(() => "focus:border-error", []),
|
|
6216
|
-
(I) => I === "error" ? h.replace("focus:border-", "focus:ring-") : I === "success" ?
|
|
6217
|
-
[h,
|
|
6215
|
+
), S = P(() => "focus:border-line-focus", []), h = P(() => "focus:border-error", []), w = P(() => "focus:border-success", []), k = G(
|
|
6216
|
+
(I) => I === "error" ? h.replace("focus:border-", "focus:ring-") : I === "success" ? w.replace("focus:border-", "focus:ring-") : S.replace("focus:border-", "focus:ring-"),
|
|
6217
|
+
[h, w, S]
|
|
6218
6218
|
), F = Ce(
|
|
6219
6219
|
// Base classes
|
|
6220
|
-
|
|
6220
|
+
y(
|
|
6221
6221
|
"block",
|
|
6222
6222
|
"w-full",
|
|
6223
6223
|
ee("md"),
|
|
@@ -6233,26 +6233,26 @@ const el = Ie(function({
|
|
|
6233
6233
|
{
|
|
6234
6234
|
variants: {
|
|
6235
6235
|
size: {
|
|
6236
|
-
sm:
|
|
6236
|
+
sm: y(
|
|
6237
6237
|
"h-8",
|
|
6238
6238
|
oe("bodySmall"),
|
|
6239
6239
|
C("md", "px")
|
|
6240
6240
|
),
|
|
6241
|
-
md:
|
|
6241
|
+
md: y(
|
|
6242
6242
|
"h-10",
|
|
6243
6243
|
oe("body"),
|
|
6244
6244
|
C("base", "px")
|
|
6245
6245
|
),
|
|
6246
|
-
lg:
|
|
6246
|
+
lg: y(
|
|
6247
6247
|
"h-12",
|
|
6248
6248
|
oe("bodyLarge"),
|
|
6249
6249
|
C("lg", "px")
|
|
6250
6250
|
)
|
|
6251
6251
|
},
|
|
6252
6252
|
state: {
|
|
6253
|
-
default:
|
|
6254
|
-
error:
|
|
6255
|
-
success:
|
|
6253
|
+
default: y("border-line-default", k()),
|
|
6254
|
+
error: y("border-error", k("error")),
|
|
6255
|
+
success: y("border-success", k("success"))
|
|
6256
6256
|
}
|
|
6257
6257
|
},
|
|
6258
6258
|
defaultVariants: {
|
|
@@ -6264,10 +6264,10 @@ const el = Ie(function({
|
|
|
6264
6264
|
() => o ? "error" : i ? "success" : "default",
|
|
6265
6265
|
[o, i]
|
|
6266
6266
|
), E = P(
|
|
6267
|
-
() =>
|
|
6267
|
+
() => y(F({ size: d, state: N }), c),
|
|
6268
6268
|
[d, N, c]
|
|
6269
6269
|
), R = P(
|
|
6270
|
-
() =>
|
|
6270
|
+
() => y(
|
|
6271
6271
|
"block",
|
|
6272
6272
|
be("label"),
|
|
6273
6273
|
C("xs", "mb"),
|
|
@@ -6351,7 +6351,7 @@ const tl = Ie(
|
|
|
6351
6351
|
}),
|
|
6352
6352
|
[]
|
|
6353
6353
|
), v = P(
|
|
6354
|
-
() =>
|
|
6354
|
+
() => y(
|
|
6355
6355
|
"block",
|
|
6356
6356
|
"w-full",
|
|
6357
6357
|
ee("md"),
|
|
@@ -6363,7 +6363,7 @@ const tl = Ie(
|
|
|
6363
6363
|
"focus:ring-2",
|
|
6364
6364
|
"focus:ring-offset-2",
|
|
6365
6365
|
x[r],
|
|
6366
|
-
|
|
6366
|
+
y(t ? "border-error" : "border-line-default", b),
|
|
6367
6367
|
s
|
|
6368
6368
|
),
|
|
6369
6369
|
[r, x, t, b, s]
|
|
@@ -6391,7 +6391,7 @@ const tl = Ie(
|
|
|
6391
6391
|
"label",
|
|
6392
6392
|
{
|
|
6393
6393
|
htmlFor: m,
|
|
6394
|
-
className:
|
|
6394
|
+
className: y(
|
|
6395
6395
|
"block",
|
|
6396
6396
|
"mb-1",
|
|
6397
6397
|
oe("label"),
|
|
@@ -6410,7 +6410,7 @@ const Xt = Ie(
|
|
|
6410
6410
|
he(function(i, o) {
|
|
6411
6411
|
var l = i, { variant: t = "default", className: r = "", children: s } = l, a = V(l, ["variant", "className", "children"]);
|
|
6412
6412
|
const d = P(
|
|
6413
|
-
() =>
|
|
6413
|
+
() => y(
|
|
6414
6414
|
"block",
|
|
6415
6415
|
oe("label"),
|
|
6416
6416
|
Ze("label"),
|
|
@@ -6420,12 +6420,12 @@ const Xt = Ie(
|
|
|
6420
6420
|
), c = P(
|
|
6421
6421
|
() => ({
|
|
6422
6422
|
default: "",
|
|
6423
|
-
required:
|
|
6423
|
+
required: y(
|
|
6424
6424
|
"after:content-['*']",
|
|
6425
6425
|
`after:${C("0.5", "ml")}`,
|
|
6426
6426
|
"after:text-fg-error"
|
|
6427
6427
|
),
|
|
6428
|
-
optional:
|
|
6428
|
+
optional: y(
|
|
6429
6429
|
"after:content-['(optional)']",
|
|
6430
6430
|
"after:ml-1",
|
|
6431
6431
|
// xs spacing = 1 (4px) - note: test expects ml-1, not ml-0.5
|
|
@@ -6435,7 +6435,7 @@ const Xt = Ie(
|
|
|
6435
6435
|
}),
|
|
6436
6436
|
[]
|
|
6437
6437
|
), u = P(
|
|
6438
|
-
() =>
|
|
6438
|
+
() => y(d, c[t], r),
|
|
6439
6439
|
[d, c, t, r]
|
|
6440
6440
|
);
|
|
6441
6441
|
return /* @__PURE__ */ n.jsx("label", _(A({ ref: o, className: u }, a), { children: s }));
|
|
@@ -6459,7 +6459,7 @@ function rl(a) {
|
|
|
6459
6459
|
"flex",
|
|
6460
6460
|
"items-center",
|
|
6461
6461
|
C("xs", "gap")
|
|
6462
|
-
], l =
|
|
6462
|
+
], l = y(...i, r);
|
|
6463
6463
|
return /* @__PURE__ */ n.jsxs("div", _(A({ role: "alert", id: t, className: l, "aria-live": "polite" }, s), { children: [
|
|
6464
6464
|
/* @__PURE__ */ n.jsx(is, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
6465
6465
|
/* @__PURE__ */ n.jsx("span", { children: e })
|
|
@@ -6557,13 +6557,13 @@ function br(d) {
|
|
|
6557
6557
|
document.removeEventListener("mousedown", R);
|
|
6558
6558
|
};
|
|
6559
6559
|
}, [u]);
|
|
6560
|
-
const
|
|
6560
|
+
const w = (R) => ({
|
|
6561
6561
|
top: "border-t-surface-inverse",
|
|
6562
6562
|
bottom: "border-b-surface-inverse",
|
|
6563
6563
|
left: "border-l-surface-inverse",
|
|
6564
6564
|
right: "border-r-surface-inverse"
|
|
6565
6565
|
})[R], k = Ce(
|
|
6566
|
-
|
|
6566
|
+
y(
|
|
6567
6567
|
"absolute",
|
|
6568
6568
|
ve("tooltip"),
|
|
6569
6569
|
C("sm", "px"),
|
|
@@ -6578,28 +6578,28 @@ function br(d) {
|
|
|
6578
6578
|
{
|
|
6579
6579
|
variants: {
|
|
6580
6580
|
position: {
|
|
6581
|
-
top:
|
|
6581
|
+
top: y(
|
|
6582
6582
|
"bottom-full",
|
|
6583
6583
|
"left-1/2",
|
|
6584
6584
|
"transform",
|
|
6585
6585
|
"-translate-x-1/2",
|
|
6586
6586
|
C("sm", "mb")
|
|
6587
6587
|
),
|
|
6588
|
-
bottom:
|
|
6588
|
+
bottom: y(
|
|
6589
6589
|
"top-full",
|
|
6590
6590
|
"left-1/2",
|
|
6591
6591
|
"transform",
|
|
6592
6592
|
"-translate-x-1/2",
|
|
6593
6593
|
C("sm", "mt")
|
|
6594
6594
|
),
|
|
6595
|
-
left:
|
|
6595
|
+
left: y(
|
|
6596
6596
|
"right-full",
|
|
6597
6597
|
"top-1/2",
|
|
6598
6598
|
"transform",
|
|
6599
6599
|
"-translate-y-1/2",
|
|
6600
6600
|
C("sm", "mr")
|
|
6601
6601
|
),
|
|
6602
|
-
right:
|
|
6602
|
+
right: y(
|
|
6603
6603
|
"left-full",
|
|
6604
6604
|
"top-1/2",
|
|
6605
6605
|
"transform",
|
|
@@ -6613,7 +6613,7 @@ function br(d) {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
}
|
|
6615
6615
|
), F = Ce(
|
|
6616
|
-
|
|
6616
|
+
y(
|
|
6617
6617
|
"absolute",
|
|
6618
6618
|
"w-0",
|
|
6619
6619
|
"h-0",
|
|
@@ -6623,33 +6623,33 @@ function br(d) {
|
|
|
6623
6623
|
{
|
|
6624
6624
|
variants: {
|
|
6625
6625
|
position: {
|
|
6626
|
-
top:
|
|
6626
|
+
top: y(
|
|
6627
6627
|
"top-full",
|
|
6628
6628
|
"left-1/2",
|
|
6629
6629
|
"transform",
|
|
6630
6630
|
"-translate-x-1/2",
|
|
6631
|
-
|
|
6631
|
+
w("top")
|
|
6632
6632
|
),
|
|
6633
|
-
bottom:
|
|
6633
|
+
bottom: y(
|
|
6634
6634
|
"bottom-full",
|
|
6635
6635
|
"left-1/2",
|
|
6636
6636
|
"transform",
|
|
6637
6637
|
"-translate-x-1/2",
|
|
6638
|
-
|
|
6638
|
+
w("bottom")
|
|
6639
6639
|
),
|
|
6640
|
-
left:
|
|
6640
|
+
left: y(
|
|
6641
6641
|
"left-full",
|
|
6642
6642
|
"top-1/2",
|
|
6643
6643
|
"transform",
|
|
6644
6644
|
"-translate-y-1/2",
|
|
6645
|
-
|
|
6645
|
+
w("left")
|
|
6646
6646
|
),
|
|
6647
|
-
right:
|
|
6647
|
+
right: y(
|
|
6648
6648
|
"right-full",
|
|
6649
6649
|
"top-1/2",
|
|
6650
6650
|
"transform",
|
|
6651
6651
|
"-translate-y-1/2",
|
|
6652
|
-
|
|
6652
|
+
w("right")
|
|
6653
6653
|
)
|
|
6654
6654
|
}
|
|
6655
6655
|
},
|
|
@@ -6685,7 +6685,7 @@ function br(d) {
|
|
|
6685
6685
|
h(M), (T = I.onKeyDown) == null || T.call(I, M);
|
|
6686
6686
|
}
|
|
6687
6687
|
});
|
|
6688
|
-
})() : t, E =
|
|
6688
|
+
})() : t, E = y(i ? "static" : "relative", "inline-block", a);
|
|
6689
6689
|
return /* @__PURE__ */ n.jsxs("div", _(A({ className: E }, l), { children: [
|
|
6690
6690
|
N,
|
|
6691
6691
|
u && /* @__PURE__ */ n.jsxs(
|
|
@@ -6693,12 +6693,12 @@ function br(d) {
|
|
|
6693
6693
|
{
|
|
6694
6694
|
ref: p,
|
|
6695
6695
|
id: x,
|
|
6696
|
-
className:
|
|
6696
|
+
className: y(k({ position: r })),
|
|
6697
6697
|
role: "tooltip",
|
|
6698
6698
|
"aria-live": "polite",
|
|
6699
6699
|
children: [
|
|
6700
6700
|
e,
|
|
6701
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
6701
|
+
/* @__PURE__ */ n.jsx("div", { className: y(F({ position: r })), "aria-hidden": "true" })
|
|
6702
6702
|
]
|
|
6703
6703
|
}
|
|
6704
6704
|
)
|
|
@@ -6729,7 +6729,7 @@ function nl(l) {
|
|
|
6729
6729
|
card: "h-32",
|
|
6730
6730
|
list: "h-12",
|
|
6731
6731
|
circle: "rounded-full"
|
|
6732
|
-
}, m =
|
|
6732
|
+
}, m = y(...c, u[e], a), f = {};
|
|
6733
6733
|
t && (f.width = t), r && (f.height = r);
|
|
6734
6734
|
const p = o || `Loading ${e} content`;
|
|
6735
6735
|
return e === "text" && s > 1 ? /* @__PURE__ */ n.jsx(
|
|
@@ -6845,7 +6845,7 @@ function ol(u) {
|
|
|
6845
6845
|
"aria-expanded": f,
|
|
6846
6846
|
"aria-controls": g,
|
|
6847
6847
|
"aria-disabled": o,
|
|
6848
|
-
className:
|
|
6848
|
+
className: y(
|
|
6849
6849
|
"w-full",
|
|
6850
6850
|
"text-left",
|
|
6851
6851
|
"focus:outline-none",
|
|
@@ -6905,7 +6905,7 @@ const cs = Ie(
|
|
|
6905
6905
|
() => s ? v.replace("focus:border-", "focus:ring-") : x.replace("focus:border-", "focus:ring-"),
|
|
6906
6906
|
[s, v, x]
|
|
6907
6907
|
), j = P(
|
|
6908
|
-
() =>
|
|
6908
|
+
() => y(
|
|
6909
6909
|
"h-4",
|
|
6910
6910
|
"w-4",
|
|
6911
6911
|
ee("sm"),
|
|
@@ -6923,13 +6923,13 @@ const cs = Ie(
|
|
|
6923
6923
|
),
|
|
6924
6924
|
[g, s, o]
|
|
6925
6925
|
), S = P(
|
|
6926
|
-
() =>
|
|
6926
|
+
() => y(
|
|
6927
6927
|
be("label"),
|
|
6928
6928
|
C("sm", "ml"),
|
|
6929
6929
|
i ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
6930
6930
|
),
|
|
6931
6931
|
[i]
|
|
6932
|
-
), h = te(null),
|
|
6932
|
+
), h = te(null), w = G(
|
|
6933
6933
|
(k) => {
|
|
6934
6934
|
h.current = k, typeof c == "function" ? c(k) : c && (c.current = k), k && (k.indeterminate = l);
|
|
6935
6935
|
},
|
|
@@ -6937,14 +6937,14 @@ const cs = Ie(
|
|
|
6937
6937
|
);
|
|
6938
6938
|
return X(() => {
|
|
6939
6939
|
h.current && (h.current.indeterminate = l);
|
|
6940
|
-
}, [l]), /* @__PURE__ */ n.jsxs("div", { className:
|
|
6940
|
+
}, [l]), /* @__PURE__ */ n.jsxs("div", { className: y("flex", "flex-col", C("sm", "my")), children: [
|
|
6941
6941
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
6942
6942
|
/* @__PURE__ */ n.jsx(
|
|
6943
6943
|
"input",
|
|
6944
6944
|
A({
|
|
6945
6945
|
type: "checkbox",
|
|
6946
6946
|
id: f,
|
|
6947
|
-
ref:
|
|
6947
|
+
ref: w,
|
|
6948
6948
|
className: j,
|
|
6949
6949
|
disabled: i,
|
|
6950
6950
|
"aria-invalid": s,
|
|
@@ -6958,7 +6958,7 @@ const cs = Ie(
|
|
|
6958
6958
|
"div",
|
|
6959
6959
|
{
|
|
6960
6960
|
id: p || b,
|
|
6961
|
-
className:
|
|
6961
|
+
className: y(
|
|
6962
6962
|
C("xs", "mt"),
|
|
6963
6963
|
be("caption"),
|
|
6964
6964
|
s ? "text-fg-error" : "text-fg-secondary"
|
|
@@ -7001,7 +7001,7 @@ const il = Ie(
|
|
|
7001
7001
|
() => s ? x.replace("focus:border-", "focus:ring-") : b.replace("focus:border-", "focus:ring-"),
|
|
7002
7002
|
[s, x, b]
|
|
7003
7003
|
), g = P(
|
|
7004
|
-
() =>
|
|
7004
|
+
() => y(
|
|
7005
7005
|
"h-4",
|
|
7006
7006
|
"w-4",
|
|
7007
7007
|
"border",
|
|
@@ -7018,14 +7018,14 @@ const il = Ie(
|
|
|
7018
7018
|
),
|
|
7019
7019
|
[v, s, o]
|
|
7020
7020
|
), j = P(
|
|
7021
|
-
() =>
|
|
7021
|
+
() => y(
|
|
7022
7022
|
be("label"),
|
|
7023
7023
|
C("sm", "ml"),
|
|
7024
7024
|
i ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
7025
7025
|
),
|
|
7026
7026
|
[i]
|
|
7027
7027
|
);
|
|
7028
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
7028
|
+
return /* @__PURE__ */ n.jsxs("div", { className: y("flex", "flex-col", C("sm", "my")), children: [
|
|
7029
7029
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
7030
7030
|
/* @__PURE__ */ n.jsx(
|
|
7031
7031
|
"input",
|
|
@@ -7046,7 +7046,7 @@ const il = Ie(
|
|
|
7046
7046
|
"div",
|
|
7047
7047
|
{
|
|
7048
7048
|
id: f || p,
|
|
7049
|
-
className:
|
|
7049
|
+
className: y(
|
|
7050
7050
|
C("xs", "mt"),
|
|
7051
7051
|
be("caption"),
|
|
7052
7052
|
s ? "text-fg-error" : "text-fg-secondary"
|
|
@@ -7215,11 +7215,11 @@ const dl = Ce("w-full", {
|
|
|
7215
7215
|
"className"
|
|
7216
7216
|
]);
|
|
7217
7217
|
const p = t === void 0, b = p ? void 0 : Math.min(Math.max(t / r * 100, 0), 100), x = l || (p ? "Loading in progress" : `Progress: ${b == null ? void 0 : b.toFixed(0)}%`);
|
|
7218
|
-
return /* @__PURE__ */ n.jsxs("div", _(A({ ref: u, className:
|
|
7218
|
+
return /* @__PURE__ */ n.jsxs("div", _(A({ ref: u, className: y("w-full", d) }, c), { children: [
|
|
7219
7219
|
o && (i || !p) && /* @__PURE__ */ n.jsxs(
|
|
7220
7220
|
"div",
|
|
7221
7221
|
{
|
|
7222
|
-
className:
|
|
7222
|
+
className: y(
|
|
7223
7223
|
"flex",
|
|
7224
7224
|
"items-center",
|
|
7225
7225
|
"justify-between",
|
|
@@ -7229,7 +7229,7 @@ const dl = Ce("w-full", {
|
|
|
7229
7229
|
i && /* @__PURE__ */ n.jsx(
|
|
7230
7230
|
"span",
|
|
7231
7231
|
{
|
|
7232
|
-
className:
|
|
7232
|
+
className: y(
|
|
7233
7233
|
oe("bodySmall"),
|
|
7234
7234
|
Ze("label"),
|
|
7235
7235
|
"text-fg-primary"
|
|
@@ -7240,7 +7240,7 @@ const dl = Ce("w-full", {
|
|
|
7240
7240
|
!p && b !== void 0 && /* @__PURE__ */ n.jsxs(
|
|
7241
7241
|
"span",
|
|
7242
7242
|
{
|
|
7243
|
-
className:
|
|
7243
|
+
className: y(
|
|
7244
7244
|
oe("bodySmall"),
|
|
7245
7245
|
"text-fg-secondary"
|
|
7246
7246
|
),
|
|
@@ -7262,7 +7262,7 @@ const dl = Ce("w-full", {
|
|
|
7262
7262
|
"aria-valuenow": p ? void 0 : t,
|
|
7263
7263
|
"aria-label": x,
|
|
7264
7264
|
"aria-busy": p,
|
|
7265
|
-
className:
|
|
7265
|
+
className: y(
|
|
7266
7266
|
"relative",
|
|
7267
7267
|
"w-full",
|
|
7268
7268
|
"overflow-hidden",
|
|
@@ -7272,7 +7272,7 @@ const dl = Ce("w-full", {
|
|
|
7272
7272
|
children: p ? /* @__PURE__ */ n.jsx(
|
|
7273
7273
|
"div",
|
|
7274
7274
|
{
|
|
7275
|
-
className:
|
|
7275
|
+
className: y(
|
|
7276
7276
|
"absolute",
|
|
7277
7277
|
"top-0",
|
|
7278
7278
|
"left-0",
|
|
@@ -7289,7 +7289,7 @@ const dl = Ce("w-full", {
|
|
|
7289
7289
|
) : /* @__PURE__ */ n.jsx(
|
|
7290
7290
|
"div",
|
|
7291
7291
|
{
|
|
7292
|
-
className:
|
|
7292
|
+
className: y(
|
|
7293
7293
|
"h-full",
|
|
7294
7294
|
Qs({ variant: s }),
|
|
7295
7295
|
ee("full"),
|
|
@@ -7344,7 +7344,7 @@ const ul = Ie(
|
|
|
7344
7344
|
() => "focus:border-line-focus".replace("focus:border-", "focus:ring-"),
|
|
7345
7345
|
[]
|
|
7346
7346
|
), S = P(
|
|
7347
|
-
() =>
|
|
7347
|
+
() => y(
|
|
7348
7348
|
"relative",
|
|
7349
7349
|
"inline-flex",
|
|
7350
7350
|
"shrink-0",
|
|
@@ -7365,7 +7365,7 @@ const ul = Ie(
|
|
|
7365
7365
|
),
|
|
7366
7366
|
[j, g.track, l, a, i, o]
|
|
7367
7367
|
), h = P(
|
|
7368
|
-
() =>
|
|
7368
|
+
() => y(
|
|
7369
7369
|
"pointer-events-none",
|
|
7370
7370
|
"inline-block",
|
|
7371
7371
|
"rounded-full",
|
|
@@ -7378,7 +7378,7 @@ const ul = Ie(
|
|
|
7378
7378
|
),
|
|
7379
7379
|
[g.thumb, g.translate, l]
|
|
7380
7380
|
);
|
|
7381
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
7381
|
+
return /* @__PURE__ */ n.jsxs("div", { className: y("flex", "items-start", C("md", "gap")), children: [
|
|
7382
7382
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
7383
7383
|
/* @__PURE__ */ n.jsx(
|
|
7384
7384
|
"button",
|
|
@@ -7391,11 +7391,11 @@ const ul = Ie(
|
|
|
7391
7391
|
"aria-describedby": v,
|
|
7392
7392
|
disabled: i,
|
|
7393
7393
|
onClick: G(
|
|
7394
|
-
(
|
|
7394
|
+
(w) => {
|
|
7395
7395
|
if (!i && d) {
|
|
7396
|
-
const k = _(A({},
|
|
7397
|
-
target: _(A({},
|
|
7398
|
-
currentTarget: _(A({},
|
|
7396
|
+
const k = _(A({}, w), {
|
|
7397
|
+
target: _(A({}, w.target), { checked: !l }),
|
|
7398
|
+
currentTarget: _(A({}, w.currentTarget), { checked: !l })
|
|
7399
7399
|
});
|
|
7400
7400
|
d(k);
|
|
7401
7401
|
}
|
|
@@ -7403,12 +7403,12 @@ const ul = Ie(
|
|
|
7403
7403
|
[i, d, l]
|
|
7404
7404
|
),
|
|
7405
7405
|
onKeyDown: G(
|
|
7406
|
-
(
|
|
7407
|
-
if ((
|
|
7408
|
-
|
|
7409
|
-
const k = _(A({},
|
|
7410
|
-
target: _(A({},
|
|
7411
|
-
currentTarget: _(A({},
|
|
7406
|
+
(w) => {
|
|
7407
|
+
if ((w.key === "Enter" || w.key === " ") && !i && d) {
|
|
7408
|
+
w.preventDefault();
|
|
7409
|
+
const k = _(A({}, w), {
|
|
7410
|
+
target: _(A({}, w.target), { checked: !l }),
|
|
7411
|
+
currentTarget: _(A({}, w.currentTarget), { checked: !l })
|
|
7412
7412
|
});
|
|
7413
7413
|
d(k);
|
|
7414
7414
|
}
|
|
@@ -7439,7 +7439,7 @@ const ul = Ie(
|
|
|
7439
7439
|
{
|
|
7440
7440
|
id: x,
|
|
7441
7441
|
htmlFor: b,
|
|
7442
|
-
className:
|
|
7442
|
+
className: y(
|
|
7443
7443
|
"block",
|
|
7444
7444
|
oe("bodySmall"),
|
|
7445
7445
|
Ze("label"),
|
|
@@ -7453,7 +7453,7 @@ const ul = Ie(
|
|
|
7453
7453
|
"p",
|
|
7454
7454
|
{
|
|
7455
7455
|
id: v,
|
|
7456
|
-
className:
|
|
7456
|
+
className: y(
|
|
7457
7457
|
C("xs", "mt"),
|
|
7458
7458
|
oe("bodySmall"),
|
|
7459
7459
|
a ? "text-fg-error" : "text-fg-secondary"
|
|
@@ -7485,7 +7485,7 @@ const Dn = Ie(function(o) {
|
|
|
7485
7485
|
dashed: "border-dashed",
|
|
7486
7486
|
dotted: "border-dotted"
|
|
7487
7487
|
};
|
|
7488
|
-
return
|
|
7488
|
+
return y(
|
|
7489
7489
|
...d,
|
|
7490
7490
|
c[t],
|
|
7491
7491
|
u[r],
|
|
@@ -7541,7 +7541,7 @@ const fl = he(function(g, v) {
|
|
|
7541
7541
|
"label",
|
|
7542
7542
|
"className"
|
|
7543
7543
|
]);
|
|
7544
|
-
const S = te(null), h = Qe(),
|
|
7544
|
+
const S = te(null), h = Qe(), w = Qe(), k = Qe(), [F, N] = O(
|
|
7545
7545
|
r || (i === "range" ? [s, a] : s)
|
|
7546
7546
|
), [E, R] = O(!1), [I, D] = O(null), M = t !== void 0, T = M ? t : F, W = (q) => (q - s) / (a - s) * 100, Q = (q) => {
|
|
7547
7547
|
if (!S.current) return s;
|
|
@@ -7573,7 +7573,7 @@ const fl = he(function(g, v) {
|
|
|
7573
7573
|
if (d || E) return;
|
|
7574
7574
|
const Z = Q(q.clientX);
|
|
7575
7575
|
H(Z);
|
|
7576
|
-
}, le = () => "focus:ring-line-brand ring-offset-2", L = Ce(
|
|
7576
|
+
}, le = () => "focus:ring-line-brand ring-offset-2", L = Ce(y("relative", "cursor-pointer"), {
|
|
7577
7577
|
variants: {
|
|
7578
7578
|
size: {
|
|
7579
7579
|
sm: "h-1",
|
|
@@ -7590,7 +7590,7 @@ const fl = he(function(g, v) {
|
|
|
7590
7590
|
disabled: !1
|
|
7591
7591
|
}
|
|
7592
7592
|
}), B = Ce(
|
|
7593
|
-
|
|
7593
|
+
y(
|
|
7594
7594
|
"absolute",
|
|
7595
7595
|
"bg-surface-brand",
|
|
7596
7596
|
"rounded-full",
|
|
@@ -7622,12 +7622,12 @@ const fl = he(function(g, v) {
|
|
|
7622
7622
|
}
|
|
7623
7623
|
}
|
|
7624
7624
|
), J = typeof T == "number" ? T : T[0], re = Array.isArray(T) ? T[0] : s, pe = Array.isArray(T) ? T[1] : J, ie = W(re), z = W(pe);
|
|
7625
|
-
return /* @__PURE__ */ n.jsxs("div", _(A({ ref: v, className:
|
|
7625
|
+
return /* @__PURE__ */ n.jsxs("div", _(A({ ref: v, className: y("w-full", b) }, x), { children: [
|
|
7626
7626
|
/* @__PURE__ */ n.jsxs(
|
|
7627
7627
|
"label",
|
|
7628
7628
|
{
|
|
7629
7629
|
id: h,
|
|
7630
|
-
className:
|
|
7630
|
+
className: y(
|
|
7631
7631
|
"block",
|
|
7632
7632
|
oe("bodySmall"),
|
|
7633
7633
|
Ze("label"),
|
|
@@ -7639,7 +7639,7 @@ const fl = he(function(g, v) {
|
|
|
7639
7639
|
c && /* @__PURE__ */ n.jsx(
|
|
7640
7640
|
"span",
|
|
7641
7641
|
{
|
|
7642
|
-
className:
|
|
7642
|
+
className: y(C("sm", "ml"), "text-fg-secondary"),
|
|
7643
7643
|
children: i === "range" ? `${re} - ${pe}` : J
|
|
7644
7644
|
}
|
|
7645
7645
|
)
|
|
@@ -7647,14 +7647,14 @@ const fl = he(function(g, v) {
|
|
|
7647
7647
|
}
|
|
7648
7648
|
),
|
|
7649
7649
|
i === "range" && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7650
|
-
/* @__PURE__ */ n.jsx("span", { id:
|
|
7650
|
+
/* @__PURE__ */ n.jsx("span", { id: w, className: "sr-only", children: "minimum" }),
|
|
7651
7651
|
/* @__PURE__ */ n.jsx("span", { id: k, className: "sr-only", children: "maximum" })
|
|
7652
7652
|
] }),
|
|
7653
7653
|
/* @__PURE__ */ n.jsxs(
|
|
7654
7654
|
"div",
|
|
7655
7655
|
{
|
|
7656
7656
|
ref: S,
|
|
7657
|
-
className:
|
|
7657
|
+
className: y(
|
|
7658
7658
|
L({ size: l, disabled: d }),
|
|
7659
7659
|
"bg-surface-muted",
|
|
7660
7660
|
ee("full")
|
|
@@ -7670,7 +7670,7 @@ const fl = he(function(g, v) {
|
|
|
7670
7670
|
/* @__PURE__ */ n.jsx(
|
|
7671
7671
|
"div",
|
|
7672
7672
|
{
|
|
7673
|
-
className:
|
|
7673
|
+
className: y(
|
|
7674
7674
|
"absolute",
|
|
7675
7675
|
L({ size: l }),
|
|
7676
7676
|
"bg-surface-brand",
|
|
@@ -7688,7 +7688,7 @@ const fl = he(function(g, v) {
|
|
|
7688
7688
|
return /* @__PURE__ */ n.jsx(
|
|
7689
7689
|
"div",
|
|
7690
7690
|
{
|
|
7691
|
-
className:
|
|
7691
|
+
className: y(
|
|
7692
7692
|
"absolute",
|
|
7693
7693
|
"w-1",
|
|
7694
7694
|
"h-1",
|
|
@@ -7709,7 +7709,7 @@ const fl = he(function(g, v) {
|
|
|
7709
7709
|
/* @__PURE__ */ n.jsx(
|
|
7710
7710
|
"div",
|
|
7711
7711
|
{
|
|
7712
|
-
className:
|
|
7712
|
+
className: y(
|
|
7713
7713
|
B({ size: l, active: I === "min" })
|
|
7714
7714
|
),
|
|
7715
7715
|
style: { left: `${ie}%` },
|
|
@@ -7718,13 +7718,13 @@ const fl = he(function(g, v) {
|
|
|
7718
7718
|
"aria-valuemin": s,
|
|
7719
7719
|
"aria-valuemax": pe,
|
|
7720
7720
|
"aria-valuenow": re,
|
|
7721
|
-
"aria-labelledby": `${h} ${
|
|
7721
|
+
"aria-labelledby": `${h} ${w}`
|
|
7722
7722
|
}
|
|
7723
7723
|
),
|
|
7724
7724
|
/* @__PURE__ */ n.jsx(
|
|
7725
7725
|
"div",
|
|
7726
7726
|
{
|
|
7727
|
-
className:
|
|
7727
|
+
className: y(
|
|
7728
7728
|
B({ size: l, active: I === "max" })
|
|
7729
7729
|
),
|
|
7730
7730
|
style: { left: `${z}%` },
|
|
@@ -7739,7 +7739,7 @@ const fl = he(function(g, v) {
|
|
|
7739
7739
|
] }) : /* @__PURE__ */ n.jsx(
|
|
7740
7740
|
"div",
|
|
7741
7741
|
{
|
|
7742
|
-
className:
|
|
7742
|
+
className: y(B({ size: l, active: E })),
|
|
7743
7743
|
style: { left: `${z}%` },
|
|
7744
7744
|
onMouseDown: (q) => U(q)
|
|
7745
7745
|
}
|
|
@@ -7747,7 +7747,7 @@ const fl = he(function(g, v) {
|
|
|
7747
7747
|
c && !p && /* @__PURE__ */ n.jsx("div", { className: "absolute -top-6 left-0 right-0 flex justify-center", children: /* @__PURE__ */ n.jsx(
|
|
7748
7748
|
"span",
|
|
7749
7749
|
{
|
|
7750
|
-
className:
|
|
7750
|
+
className: y(
|
|
7751
7751
|
oe("caption"),
|
|
7752
7752
|
"text-fg-secondary",
|
|
7753
7753
|
"bg-surface-overlay",
|
|
@@ -7767,7 +7767,7 @@ const fl = he(function(g, v) {
|
|
|
7767
7767
|
fl.displayName = "Slider";
|
|
7768
7768
|
const ml = Ce(
|
|
7769
7769
|
// Base classes
|
|
7770
|
-
|
|
7770
|
+
y(
|
|
7771
7771
|
"inline-flex",
|
|
7772
7772
|
"items-center",
|
|
7773
7773
|
"font-medium",
|
|
@@ -7777,19 +7777,19 @@ const ml = Ce(
|
|
|
7777
7777
|
{
|
|
7778
7778
|
variants: {
|
|
7779
7779
|
variant: {
|
|
7780
|
-
default:
|
|
7780
|
+
default: y(
|
|
7781
7781
|
"bg-surface-muted",
|
|
7782
7782
|
"text-fg-primary",
|
|
7783
7783
|
"border",
|
|
7784
7784
|
"border-line-default"
|
|
7785
7785
|
),
|
|
7786
|
-
outlined:
|
|
7786
|
+
outlined: y(
|
|
7787
7787
|
"bg-transparent",
|
|
7788
7788
|
"text-fg-primary",
|
|
7789
7789
|
"border",
|
|
7790
7790
|
"border-line-default"
|
|
7791
7791
|
),
|
|
7792
|
-
filled:
|
|
7792
|
+
filled: y(
|
|
7793
7793
|
"bg-surface-brand-strong",
|
|
7794
7794
|
"text-fg-inverse",
|
|
7795
7795
|
"border",
|
|
@@ -7797,24 +7797,24 @@ const ml = Ce(
|
|
|
7797
7797
|
)
|
|
7798
7798
|
},
|
|
7799
7799
|
size: {
|
|
7800
|
-
sm:
|
|
7800
|
+
sm: y(
|
|
7801
7801
|
C("xs", "px"),
|
|
7802
7802
|
C("xs", "py"),
|
|
7803
7803
|
oe("caption")
|
|
7804
7804
|
),
|
|
7805
|
-
md:
|
|
7805
|
+
md: y(
|
|
7806
7806
|
C("sm", "px"),
|
|
7807
7807
|
C("xs", "py"),
|
|
7808
7808
|
oe("bodySmall")
|
|
7809
7809
|
),
|
|
7810
|
-
lg:
|
|
7810
|
+
lg: y(
|
|
7811
7811
|
C("md", "px"),
|
|
7812
7812
|
C("sm", "py"),
|
|
7813
7813
|
oe("body")
|
|
7814
7814
|
)
|
|
7815
7815
|
},
|
|
7816
7816
|
selected: {
|
|
7817
|
-
true:
|
|
7817
|
+
true: y(
|
|
7818
7818
|
"bg-surface-brand-strong",
|
|
7819
7819
|
"text-fg-inverse",
|
|
7820
7820
|
"border",
|
|
@@ -7882,39 +7882,36 @@ const ml = Ce(
|
|
|
7882
7882
|
if (d) return d;
|
|
7883
7883
|
if (typeof t == "string") return t;
|
|
7884
7884
|
if (typeof t == "object" && t !== null && "props" in t) {
|
|
7885
|
-
const
|
|
7886
|
-
if (
|
|
7887
|
-
return
|
|
7885
|
+
const h = t.props;
|
|
7886
|
+
if (h != null && h.children && typeof h.children == "string")
|
|
7887
|
+
return h.children;
|
|
7888
7888
|
}
|
|
7889
|
-
})(), g = c !== void 0
|
|
7890
|
-
i || (
|
|
7889
|
+
})(), g = c !== void 0, j = g && !i, S = (h) => {
|
|
7890
|
+
i || (h.key === "Enter" || h.key === " ") && (h.preventDefault(), c == null || c());
|
|
7891
7891
|
};
|
|
7892
7892
|
return /* @__PURE__ */ n.jsxs(
|
|
7893
7893
|
"div",
|
|
7894
7894
|
_(A({
|
|
7895
7895
|
ref: f,
|
|
7896
|
-
className:
|
|
7896
|
+
className: y(
|
|
7897
7897
|
ml({ variant: r, size: s, selected: o, disabled: i }),
|
|
7898
7898
|
a && C("xs", "pr"),
|
|
7899
|
-
j && !i && "cursor-pointer focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2",
|
|
7900
7899
|
l
|
|
7901
7900
|
),
|
|
7902
|
-
|
|
7903
|
-
"aria-selected": o ? !0 : void 0,
|
|
7904
|
-
"aria-disabled": i,
|
|
7905
|
-
"aria-label": g ? void 0 : h ? "Chip" : d || (S === "button" ? v : void 0),
|
|
7906
|
-
tabIndex: g ? void 0 : u !== void 0 ? u : j && !i ? 0 : void 0,
|
|
7907
|
-
onClick: g || i ? void 0 : c,
|
|
7908
|
-
onKeyDown: g ? void 0 : y
|
|
7901
|
+
"aria-disabled": i
|
|
7909
7902
|
}, m), {
|
|
7910
7903
|
children: [
|
|
7911
7904
|
g ? /* @__PURE__ */ n.jsx(
|
|
7912
7905
|
"button",
|
|
7913
7906
|
{
|
|
7914
7907
|
type: "button",
|
|
7915
|
-
onClick: c,
|
|
7916
|
-
|
|
7917
|
-
|
|
7908
|
+
onClick: i ? void 0 : c,
|
|
7909
|
+
onKeyDown: S,
|
|
7910
|
+
disabled: i,
|
|
7911
|
+
"aria-pressed": o ? !0 : void 0,
|
|
7912
|
+
"aria-label": d || v,
|
|
7913
|
+
tabIndex: u !== void 0 ? u : j ? 0 : void 0,
|
|
7914
|
+
className: y(
|
|
7918
7915
|
"flex-1",
|
|
7919
7916
|
"bg-transparent",
|
|
7920
7917
|
"border-0",
|
|
@@ -7935,10 +7932,10 @@ const ml = Ce(
|
|
|
7935
7932
|
"button",
|
|
7936
7933
|
{
|
|
7937
7934
|
type: "button",
|
|
7938
|
-
onClick: (
|
|
7939
|
-
|
|
7935
|
+
onClick: (h) => {
|
|
7936
|
+
h.stopPropagation(), a();
|
|
7940
7937
|
},
|
|
7941
|
-
className:
|
|
7938
|
+
className: y(
|
|
7942
7939
|
C("xs", "ml"),
|
|
7943
7940
|
"hover:bg-tint-hover",
|
|
7944
7941
|
ee("full"),
|
|
@@ -7991,7 +7988,7 @@ const Yr = he(function(u, c) {
|
|
|
7991
7988
|
"div",
|
|
7992
7989
|
_(A({
|
|
7993
7990
|
ref: c,
|
|
7994
|
-
className:
|
|
7991
|
+
className: y(
|
|
7995
7992
|
"relative",
|
|
7996
7993
|
"inline-flex",
|
|
7997
7994
|
"items-center",
|
|
@@ -8014,7 +8011,7 @@ const Yr = he(function(u, c) {
|
|
|
8014
8011
|
{
|
|
8015
8012
|
src: t,
|
|
8016
8013
|
alt: r || "",
|
|
8017
|
-
className:
|
|
8014
|
+
className: y(
|
|
8018
8015
|
"w-full",
|
|
8019
8016
|
"h-full",
|
|
8020
8017
|
"object-cover",
|
|
@@ -8033,7 +8030,7 @@ const Yr = he(function(u, c) {
|
|
|
8033
8030
|
j && /* @__PURE__ */ n.jsx(
|
|
8034
8031
|
"span",
|
|
8035
8032
|
{
|
|
8036
|
-
className:
|
|
8033
|
+
className: y(
|
|
8037
8034
|
"flex",
|
|
8038
8035
|
"items-center",
|
|
8039
8036
|
"justify-center",
|
|
@@ -8075,7 +8072,7 @@ function Pd(l) {
|
|
|
8075
8072
|
return /* @__PURE__ */ n.jsxs(
|
|
8076
8073
|
"div",
|
|
8077
8074
|
_(A({
|
|
8078
|
-
className:
|
|
8075
|
+
className: y("flex", "items-center", c[a], o),
|
|
8079
8076
|
role: "group",
|
|
8080
8077
|
"aria-label": `${u.length} avatars`
|
|
8081
8078
|
}, i), {
|
|
@@ -8136,7 +8133,7 @@ const Kr = Ie(function(c) {
|
|
|
8136
8133
|
"children"
|
|
8137
8134
|
]);
|
|
8138
8135
|
const m = Ce(
|
|
8139
|
-
|
|
8136
|
+
y(
|
|
8140
8137
|
"bg-surface-base",
|
|
8141
8138
|
ee("lg"),
|
|
8142
8139
|
"border",
|
|
@@ -8147,8 +8144,8 @@ const Kr = Ie(function(c) {
|
|
|
8147
8144
|
variants: {
|
|
8148
8145
|
variant: {
|
|
8149
8146
|
default: "",
|
|
8150
|
-
hover:
|
|
8151
|
-
selected:
|
|
8147
|
+
hover: y("hover:shadow-md", "transition-shadow", "cursor-pointer"),
|
|
8148
|
+
selected: y("border-line-brand", "shadow-md")
|
|
8152
8149
|
},
|
|
8153
8150
|
padding: {
|
|
8154
8151
|
none: "",
|
|
@@ -8165,7 +8162,7 @@ const Kr = Ie(function(c) {
|
|
|
8165
8162
|
), f = P(
|
|
8166
8163
|
() => a !== void 0 || t === "hover",
|
|
8167
8164
|
[a, t]
|
|
8168
|
-
), p = f ? "button" : void 0, b = f ? 0 : void 0, x =
|
|
8165
|
+
), p = f ? "button" : void 0, b = f ? 0 : void 0, x = y(m({ variant: t, padding: r }), s), v = G(
|
|
8169
8166
|
(g) => {
|
|
8170
8167
|
f && (g.key === "Enter" || g.key === " ") && (g.preventDefault(), a == null || a());
|
|
8171
8168
|
},
|
|
@@ -8228,7 +8225,7 @@ function Vd(l) {
|
|
|
8228
8225
|
"success",
|
|
8229
8226
|
"className"
|
|
8230
8227
|
]);
|
|
8231
|
-
const c =
|
|
8228
|
+
const c = y(
|
|
8232
8229
|
C("lg", "gap"),
|
|
8233
8230
|
"flex",
|
|
8234
8231
|
"flex-col",
|
|
@@ -8243,7 +8240,7 @@ function Vd(l) {
|
|
|
8243
8240
|
"form",
|
|
8244
8241
|
"onSubmit",
|
|
8245
8242
|
"onSubmitError"
|
|
8246
|
-
]),
|
|
8243
|
+
]), w = g.handleSubmit(
|
|
8247
8244
|
(k) => lr(null, null, function* () {
|
|
8248
8245
|
try {
|
|
8249
8246
|
yield j(k);
|
|
@@ -8259,7 +8256,7 @@ function Vd(l) {
|
|
|
8259
8256
|
"form",
|
|
8260
8257
|
_(A({
|
|
8261
8258
|
className: c,
|
|
8262
|
-
onSubmit:
|
|
8259
|
+
onSubmit: w,
|
|
8263
8260
|
noValidate: !0
|
|
8264
8261
|
}, h), {
|
|
8265
8262
|
children: [
|
|
@@ -8268,7 +8265,7 @@ function Vd(l) {
|
|
|
8268
8265
|
"div",
|
|
8269
8266
|
{
|
|
8270
8267
|
role: "alert",
|
|
8271
|
-
className:
|
|
8268
|
+
className: y(
|
|
8272
8269
|
C("md", "p"),
|
|
8273
8270
|
Ee("sm"),
|
|
8274
8271
|
"text-error-dark",
|
|
@@ -8284,7 +8281,7 @@ function Vd(l) {
|
|
|
8284
8281
|
"div",
|
|
8285
8282
|
{
|
|
8286
8283
|
role: "alert",
|
|
8287
|
-
className:
|
|
8284
|
+
className: y(
|
|
8288
8285
|
C("md", "p"),
|
|
8289
8286
|
Ee("sm"),
|
|
8290
8287
|
"text-success-dark",
|
|
@@ -8316,7 +8313,7 @@ function Vd(l) {
|
|
|
8316
8313
|
"div",
|
|
8317
8314
|
{
|
|
8318
8315
|
role: "alert",
|
|
8319
|
-
className:
|
|
8316
|
+
className: y(
|
|
8320
8317
|
C("md", "p"),
|
|
8321
8318
|
Ee("sm"),
|
|
8322
8319
|
"text-error-dark",
|
|
@@ -8332,7 +8329,7 @@ function Vd(l) {
|
|
|
8332
8329
|
"div",
|
|
8333
8330
|
{
|
|
8334
8331
|
role: "alert",
|
|
8335
|
-
className:
|
|
8332
|
+
className: y(
|
|
8336
8333
|
C("md", "p"),
|
|
8337
8334
|
Ee("sm"),
|
|
8338
8335
|
"text-success-dark",
|
|
@@ -8369,7 +8366,7 @@ function Wd({
|
|
|
8369
8366
|
return /* @__PURE__ */ n.jsxs(
|
|
8370
8367
|
"div",
|
|
8371
8368
|
{
|
|
8372
|
-
className:
|
|
8369
|
+
className: y(
|
|
8373
8370
|
"flex",
|
|
8374
8371
|
"flex-col",
|
|
8375
8372
|
C("sm", "gap"),
|
|
@@ -8380,7 +8377,7 @@ function Wd({
|
|
|
8380
8377
|
Xt,
|
|
8381
8378
|
{
|
|
8382
8379
|
htmlFor: e,
|
|
8383
|
-
className:
|
|
8380
|
+
className: y(
|
|
8384
8381
|
"block",
|
|
8385
8382
|
Ee("sm"),
|
|
8386
8383
|
Yt("medium"),
|
|
@@ -8534,11 +8531,11 @@ var It = (e) => tt(e) && !Vn(e) ? e : {
|
|
|
8534
8531
|
return {};
|
|
8535
8532
|
const S = l ? l[0] : i, h = (E) => {
|
|
8536
8533
|
a && S.reportValidity && (S.setCustomValidity(zn(E) ? "" : E || ""), S.reportValidity());
|
|
8537
|
-
},
|
|
8534
|
+
}, w = {};
|
|
8538
8535
|
$l(i), hl(i);
|
|
8539
|
-
const k = (v || Nl(i)) && Ge(i.value) && Ge(j) || Sl(i) && i.value === "" || j === "" || Array.isArray(j) && !j.length, F = kl.bind(null, x, s,
|
|
8536
|
+
const k = (v || Nl(i)) && Ge(i.value) && Ge(j) || Sl(i) && i.value === "" || j === "" || Array.isArray(j) && !j.length, F = kl.bind(null, x, s, w), N = (E, R, I, D = Xe.maxLength, M = Xe.minLength) => {
|
|
8540
8537
|
const T = E ? R : I;
|
|
8541
|
-
|
|
8538
|
+
w[x] = A({
|
|
8542
8539
|
type: E ? D : M,
|
|
8543
8540
|
message: T,
|
|
8544
8541
|
ref: i
|
|
@@ -8546,12 +8543,12 @@ var It = (e) => tt(e) && !Vn(e) ? e : {
|
|
|
8546
8543
|
};
|
|
8547
8544
|
if (!Array.isArray(j) || !j.length) {
|
|
8548
8545
|
const { value: E, message: R } = ot(d) ? { value: !!d, message: d } : It(d);
|
|
8549
|
-
if (E && (
|
|
8546
|
+
if (E && (w[x] = A({
|
|
8550
8547
|
type: Xe.required,
|
|
8551
8548
|
message: R,
|
|
8552
8549
|
ref: S
|
|
8553
8550
|
}, F(Xe.required, R)), !s))
|
|
8554
|
-
return h(R),
|
|
8551
|
+
return h(R), w;
|
|
8555
8552
|
}
|
|
8556
8553
|
if (!k && (!Je(m) || !Je(f))) {
|
|
8557
8554
|
let E, R;
|
|
@@ -8564,42 +8561,42 @@ var It = (e) => tt(e) && !Vn(e) ? e : {
|
|
|
8564
8561
|
ot(I.value) && j && (E = W ? T(j) > T(I.value) : Q ? j > I.value : M > new Date(I.value)), ot(D.value) && j && (R = W ? T(j) < T(D.value) : Q ? j < D.value : M < new Date(D.value));
|
|
8565
8562
|
}
|
|
8566
8563
|
if ((E || R) && (N(!!E, I.message, D.message, Xe.max, Xe.min), !s))
|
|
8567
|
-
return h(
|
|
8564
|
+
return h(w[x].message), w;
|
|
8568
8565
|
}
|
|
8569
8566
|
if ((c || u) && !k && (ot(j) || Array.isArray(j))) {
|
|
8570
8567
|
const E = It(c), R = It(u), I = !Je(E.value) && j.length > +E.value, D = !Je(R.value) && j.length < +R.value;
|
|
8571
8568
|
if ((I || D) && (N(I, E.message, R.message), !s))
|
|
8572
|
-
return h(
|
|
8569
|
+
return h(w[x].message), w;
|
|
8573
8570
|
}
|
|
8574
8571
|
if (p && !k && ot(j)) {
|
|
8575
8572
|
const { value: E, message: R } = It(p);
|
|
8576
|
-
if (Vn(E) && !j.match(E) && (
|
|
8573
|
+
if (Vn(E) && !j.match(E) && (w[x] = A({
|
|
8577
8574
|
type: Xe.pattern,
|
|
8578
8575
|
message: R,
|
|
8579
8576
|
ref: i
|
|
8580
8577
|
}, F(Xe.pattern, R)), !s))
|
|
8581
|
-
return h(R),
|
|
8578
|
+
return h(R), w;
|
|
8582
8579
|
}
|
|
8583
8580
|
if (b) {
|
|
8584
8581
|
if (vl(b)) {
|
|
8585
8582
|
const E = yield b(j, r), R = Zs(E, S);
|
|
8586
|
-
if (R && (
|
|
8587
|
-
return h(R.message),
|
|
8583
|
+
if (R && (w[x] = A(A({}, R), F(Xe.validate, R.message)), !s))
|
|
8584
|
+
return h(R.message), w;
|
|
8588
8585
|
} else if (tt(b)) {
|
|
8589
8586
|
let E = {};
|
|
8590
8587
|
for (const R in b) {
|
|
8591
8588
|
if (!vr(E) && !s)
|
|
8592
8589
|
break;
|
|
8593
8590
|
const I = Zs(yield b[R](j, r), S, R);
|
|
8594
|
-
I && (E = A(A({}, I), F(R, I.message)), h(I.message), s && (
|
|
8591
|
+
I && (E = A(A({}, I), F(R, I.message)), h(I.message), s && (w[x] = E));
|
|
8595
8592
|
}
|
|
8596
|
-
if (!vr(E) && (
|
|
8593
|
+
if (!vr(E) && (w[x] = A({
|
|
8597
8594
|
ref: S
|
|
8598
8595
|
}, E), !s))
|
|
8599
|
-
return
|
|
8596
|
+
return w;
|
|
8600
8597
|
}
|
|
8601
8598
|
}
|
|
8602
|
-
return h(!0),
|
|
8599
|
+
return h(!0), w;
|
|
8603
8600
|
}), at = () => {
|
|
8604
8601
|
if (typeof crypto != "undefined" && crypto.randomUUID)
|
|
8605
8602
|
return crypto.randomUUID();
|
|
@@ -8637,8 +8634,8 @@ var Pr = (e, t) => Ge(t) ? [] : Ml(e, Be(t).sort((r, s) => r - s)), Or = (e, t,
|
|
|
8637
8634
|
function Dl(e) {
|
|
8638
8635
|
const t = yl(), { control: r = t, name: s, keyName: a = "id", shouldUnregister: o, rules: i } = e, [l, d] = me.useState(r._getFieldArray(s)), c = me.useRef(r._getFieldArray(s).map(at)), u = me.useRef(!1);
|
|
8639
8636
|
r._names.array.add(s), me.useMemo(() => i && l.length >= 0 && r.register(s, i), [r, s, l.length, i]), wl(() => r._subjects.array.subscribe({
|
|
8640
|
-
next: ({ values: h, name:
|
|
8641
|
-
if (
|
|
8637
|
+
next: ({ values: h, name: w }) => {
|
|
8638
|
+
if (w === s || !w) {
|
|
8642
8639
|
const k = Ue(h, s);
|
|
8643
8640
|
Array.isArray(k) && (d(k), c.current = k.map(at));
|
|
8644
8641
|
}
|
|
@@ -8646,75 +8643,75 @@ function Dl(e) {
|
|
|
8646
8643
|
}).unsubscribe, [r, s]);
|
|
8647
8644
|
const m = me.useCallback((h) => {
|
|
8648
8645
|
u.current = !0, r._setFieldArray(s, h);
|
|
8649
|
-
}, [r, s]), f = (h,
|
|
8646
|
+
}, [r, s]), f = (h, w) => {
|
|
8650
8647
|
const k = Be(ft(h)), F = Rr(r._getFieldArray(s), k);
|
|
8651
|
-
r._names.focus = Dr(s, F.length - 1,
|
|
8648
|
+
r._names.focus = Dr(s, F.length - 1, w), c.current = Rr(c.current, k.map(at)), m(F), d(F), r._setFieldArray(s, F, Rr, {
|
|
8652
8649
|
argA: Lr(h)
|
|
8653
8650
|
});
|
|
8654
|
-
}, p = (h,
|
|
8651
|
+
}, p = (h, w) => {
|
|
8655
8652
|
const k = Be(ft(h)), F = zr(r._getFieldArray(s), k);
|
|
8656
|
-
r._names.focus = Dr(s, 0,
|
|
8653
|
+
r._names.focus = Dr(s, 0, w), c.current = zr(c.current, k.map(at)), m(F), d(F), r._setFieldArray(s, F, zr, {
|
|
8657
8654
|
argA: Lr(h)
|
|
8658
8655
|
});
|
|
8659
8656
|
}, b = (h) => {
|
|
8660
|
-
const
|
|
8661
|
-
c.current = Pr(c.current, h), m(
|
|
8657
|
+
const w = Pr(r._getFieldArray(s), h);
|
|
8658
|
+
c.current = Pr(c.current, h), m(w), d(w), !Array.isArray(Ue(r._fields, s)) && xr(r._fields, s, void 0), r._setFieldArray(s, w, Pr, {
|
|
8662
8659
|
argA: h
|
|
8663
8660
|
});
|
|
8664
|
-
}, x = (h,
|
|
8665
|
-
const F = Be(ft(
|
|
8661
|
+
}, x = (h, w, k) => {
|
|
8662
|
+
const F = Be(ft(w)), N = Fr(r._getFieldArray(s), h, F);
|
|
8666
8663
|
r._names.focus = Dr(s, h, k), c.current = Fr(c.current, h, F.map(at)), m(N), d(N), r._setFieldArray(s, N, Fr, {
|
|
8667
8664
|
argA: h,
|
|
8668
|
-
argB: Lr(
|
|
8665
|
+
argB: Lr(w)
|
|
8669
8666
|
});
|
|
8670
|
-
}, v = (h,
|
|
8667
|
+
}, v = (h, w) => {
|
|
8671
8668
|
const k = r._getFieldArray(s);
|
|
8672
|
-
Or(k, h,
|
|
8669
|
+
Or(k, h, w), Or(c.current, h, w), m(k), d(k), r._setFieldArray(s, k, Or, {
|
|
8673
8670
|
argA: h,
|
|
8674
|
-
argB:
|
|
8671
|
+
argB: w
|
|
8675
8672
|
}, !1);
|
|
8676
|
-
}, g = (h,
|
|
8673
|
+
}, g = (h, w) => {
|
|
8677
8674
|
const k = r._getFieldArray(s);
|
|
8678
|
-
_r(k, h,
|
|
8675
|
+
_r(k, h, w), _r(c.current, h, w), m(k), d(k), r._setFieldArray(s, k, _r, {
|
|
8679
8676
|
argA: h,
|
|
8680
|
-
argB:
|
|
8677
|
+
argB: w
|
|
8681
8678
|
}, !1);
|
|
8682
|
-
}, j = (h,
|
|
8683
|
-
const k = ft(
|
|
8679
|
+
}, j = (h, w) => {
|
|
8680
|
+
const k = ft(w), F = en(r._getFieldArray(s), h, k);
|
|
8684
8681
|
c.current = [...F].map((N, E) => !N || E === h ? at() : c.current[E]), m(F), d([...F]), r._setFieldArray(s, F, en, {
|
|
8685
8682
|
argA: h,
|
|
8686
8683
|
argB: k
|
|
8687
8684
|
}, !0, !1);
|
|
8688
8685
|
}, S = (h) => {
|
|
8689
|
-
const
|
|
8690
|
-
c.current =
|
|
8686
|
+
const w = Be(ft(h));
|
|
8687
|
+
c.current = w.map(at), m([...w]), d([...w]), r._setFieldArray(s, [...w], (k) => k, {}, !0, !1);
|
|
8691
8688
|
};
|
|
8692
8689
|
return me.useEffect(() => {
|
|
8693
8690
|
if (r._state.action = !1, Al(s, r._names) && r._subjects.state.next(A({}, r._formState)), u.current && (!mr(r._options.mode).isOnSubmit || r._formState.isSubmitted) && !mr(r._options.reValidateMode).isOnSubmit)
|
|
8694
8691
|
if (r._options.resolver)
|
|
8695
8692
|
r._runSchema([s]).then((h) => {
|
|
8696
8693
|
r._updateIsValidating([s]);
|
|
8697
|
-
const
|
|
8698
|
-
(k ? !
|
|
8694
|
+
const w = Ue(h.errors, s), k = Ue(r._formState.errors, s);
|
|
8695
|
+
(k ? !w && k.type || w && (k.type !== w.type || k.message !== w.message) : w && w.type) && (w ? xr(r._formState.errors, s, w) : On(r._formState.errors, s), r._subjects.state.next({
|
|
8699
8696
|
errors: r._formState.errors
|
|
8700
8697
|
}));
|
|
8701
8698
|
});
|
|
8702
8699
|
else {
|
|
8703
8700
|
const h = Ue(r._fields, s);
|
|
8704
|
-
h && h._f && !(mr(r._options.reValidateMode).isOnSubmit && mr(r._options.mode).isOnSubmit) && Il(h, r._names.disabled, r._formValues, r._options.criteriaMode === Mt.all, r._options.shouldUseNativeValidation).then((
|
|
8705
|
-
errors: Tl(r._formState.errors,
|
|
8701
|
+
h && h._f && !(mr(r._options.reValidateMode).isOnSubmit && mr(r._options.mode).isOnSubmit) && Il(h, r._names.disabled, r._formValues, r._options.criteriaMode === Mt.all, r._options.shouldUseNativeValidation).then((w) => !vr(w) && r._subjects.state.next({
|
|
8702
|
+
errors: Tl(r._formState.errors, w, s)
|
|
8706
8703
|
}));
|
|
8707
8704
|
}
|
|
8708
8705
|
r._subjects.state.next({
|
|
8709
8706
|
name: s,
|
|
8710
8707
|
values: ft(r._formValues)
|
|
8711
|
-
}), r._names.focus && Xr(r._fields, (h,
|
|
8712
|
-
if (r._names.focus &&
|
|
8708
|
+
}), r._names.focus && Xr(r._fields, (h, w) => {
|
|
8709
|
+
if (r._names.focus && w.startsWith(r._names.focus) && h.focus)
|
|
8713
8710
|
return h.focus(), 1;
|
|
8714
8711
|
}), r._names.focus = "", r._setValid(), u.current = !1;
|
|
8715
8712
|
}, [l, s, r]), me.useEffect(() => (!Ue(r._formValues, s) && r._setFieldArray(s), () => {
|
|
8716
|
-
const h = (
|
|
8717
|
-
const F = Ue(r._fields,
|
|
8713
|
+
const h = (w, k) => {
|
|
8714
|
+
const F = Ue(r._fields, w);
|
|
8718
8715
|
F && F._f && (F._f.mount = k);
|
|
8719
8716
|
};
|
|
8720
8717
|
r._options.shouldUnregister || o ? r.unregister(s) : h(s, !1);
|
|
@@ -8727,8 +8724,8 @@ function Dl(e) {
|
|
|
8727
8724
|
insert: me.useCallback(x, [m, s, r]),
|
|
8728
8725
|
update: me.useCallback(j, [m, s, r]),
|
|
8729
8726
|
replace: me.useCallback(S, [m, s, r]),
|
|
8730
|
-
fields: me.useMemo(() => l.map((h,
|
|
8731
|
-
[a]: c.current[
|
|
8727
|
+
fields: me.useMemo(() => l.map((h, w) => _(A({}, h), {
|
|
8728
|
+
[a]: c.current[w] || at()
|
|
8732
8729
|
})), [l, a])
|
|
8733
8730
|
};
|
|
8734
8731
|
}
|
|
@@ -8757,18 +8754,18 @@ function Rl(a) {
|
|
|
8757
8754
|
"items-center",
|
|
8758
8755
|
C("sm", "space-x"),
|
|
8759
8756
|
oe("bodySmall")
|
|
8760
|
-
], l =
|
|
8757
|
+
], l = y(...i, r);
|
|
8761
8758
|
return /* @__PURE__ */ n.jsx("nav", _(A({ "aria-label": "Breadcrumb", className: l }, s), { children: /* @__PURE__ */ n.jsx(
|
|
8762
8759
|
"ol",
|
|
8763
8760
|
{
|
|
8764
|
-
className:
|
|
8761
|
+
className: y("flex", "items-center", C("sm", "space-x")),
|
|
8765
8762
|
children: e.map((d, c) => {
|
|
8766
8763
|
const u = c === e.length - 1;
|
|
8767
8764
|
return /* @__PURE__ */ n.jsxs("li", { className: "flex items-center", children: [
|
|
8768
8765
|
c > 0 && /* @__PURE__ */ n.jsx(
|
|
8769
8766
|
"span",
|
|
8770
8767
|
{
|
|
8771
|
-
className:
|
|
8768
|
+
className: y(
|
|
8772
8769
|
C("sm", "mx"),
|
|
8773
8770
|
"text-fg-tertiary"
|
|
8774
8771
|
),
|
|
@@ -8779,7 +8776,7 @@ function Rl(a) {
|
|
|
8779
8776
|
u ? /* @__PURE__ */ n.jsx(
|
|
8780
8777
|
"span",
|
|
8781
8778
|
{
|
|
8782
|
-
className:
|
|
8779
|
+
className: y(
|
|
8783
8780
|
"text-fg-primary",
|
|
8784
8781
|
Ze("label")
|
|
8785
8782
|
),
|
|
@@ -8790,7 +8787,7 @@ function Rl(a) {
|
|
|
8790
8787
|
"a",
|
|
8791
8788
|
{
|
|
8792
8789
|
href: d.href,
|
|
8793
|
-
className:
|
|
8790
|
+
className: y(
|
|
8794
8791
|
"inline-flex",
|
|
8795
8792
|
"items-center",
|
|
8796
8793
|
C("xs", "px"),
|
|
@@ -8856,7 +8853,7 @@ function Ll(d) {
|
|
|
8856
8853
|
g.push("ellipsis"), g.push(t);
|
|
8857
8854
|
}
|
|
8858
8855
|
return g;
|
|
8859
|
-
}, b = s && a ? (e - 1) * a + 1 : void 0, x = s && a ? Math.min(e * a, s) : void 0, v =
|
|
8856
|
+
}, b = s && a ? (e - 1) * a + 1 : void 0, x = s && a ? Math.min(e * a, s) : void 0, v = y(
|
|
8860
8857
|
"flex",
|
|
8861
8858
|
"items-center",
|
|
8862
8859
|
"justify-between",
|
|
@@ -8865,7 +8862,7 @@ function Ll(d) {
|
|
|
8865
8862
|
i
|
|
8866
8863
|
);
|
|
8867
8864
|
return /* @__PURE__ */ n.jsxs("nav", _(A({ className: v, "aria-label": "Pagination" }, l), { children: [
|
|
8868
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
8865
|
+
/* @__PURE__ */ n.jsxs("div", { className: y("flex", "items-center", C("sm", "gap")), children: [
|
|
8869
8866
|
/* @__PURE__ */ n.jsx(
|
|
8870
8867
|
se,
|
|
8871
8868
|
{
|
|
@@ -8879,13 +8876,13 @@ function Ll(d) {
|
|
|
8879
8876
|
/* @__PURE__ */ n.jsx(
|
|
8880
8877
|
"div",
|
|
8881
8878
|
{
|
|
8882
|
-
className:
|
|
8879
|
+
className: y("flex", "items-center", C("xs", "gap")),
|
|
8883
8880
|
children: p().map((g, j) => {
|
|
8884
8881
|
if (g === "ellipsis")
|
|
8885
8882
|
return /* @__PURE__ */ n.jsx(
|
|
8886
8883
|
"span",
|
|
8887
8884
|
{
|
|
8888
|
-
className:
|
|
8885
|
+
className: y(
|
|
8889
8886
|
C("sm", "px"),
|
|
8890
8887
|
"text-fg-tertiary"
|
|
8891
8888
|
),
|
|
@@ -8923,7 +8920,7 @@ function Ll(d) {
|
|
|
8923
8920
|
o && s && a && /* @__PURE__ */ n.jsxs(
|
|
8924
8921
|
"div",
|
|
8925
8922
|
{
|
|
8926
|
-
className:
|
|
8923
|
+
className: y(Ee("sm"), "text-fg-primary"),
|
|
8927
8924
|
children: [
|
|
8928
8925
|
"Showing ",
|
|
8929
8926
|
b,
|
|
@@ -8955,7 +8952,7 @@ function Fl(d) {
|
|
|
8955
8952
|
"variant",
|
|
8956
8953
|
"className"
|
|
8957
8954
|
]);
|
|
8958
|
-
const u =
|
|
8955
|
+
const u = y(
|
|
8959
8956
|
"flex",
|
|
8960
8957
|
"flex-col",
|
|
8961
8958
|
"items-center",
|
|
@@ -8974,12 +8971,12 @@ function Fl(d) {
|
|
|
8974
8971
|
"aria-label": `${e}. ${t}`
|
|
8975
8972
|
}, l), {
|
|
8976
8973
|
children: [
|
|
8977
|
-
f && a && /* @__PURE__ */ n.jsx("div", { className:
|
|
8974
|
+
f && a && /* @__PURE__ */ n.jsx("div", { className: y(C("base", "mb")), "aria-hidden": "true", children: a }),
|
|
8978
8975
|
/* @__PURE__ */ n.jsx(
|
|
8979
8976
|
lt,
|
|
8980
8977
|
{
|
|
8981
8978
|
as: "h3",
|
|
8982
|
-
className:
|
|
8979
|
+
className: y(
|
|
8983
8980
|
oe("h4"),
|
|
8984
8981
|
Yt("semibold"),
|
|
8985
8982
|
"text-fg-primary",
|
|
@@ -8992,7 +8989,7 @@ function Fl(d) {
|
|
|
8992
8989
|
lt,
|
|
8993
8990
|
{
|
|
8994
8991
|
as: "p",
|
|
8995
|
-
className:
|
|
8992
|
+
className: y(
|
|
8996
8993
|
oe("bodySmall"),
|
|
8997
8994
|
"text-fg-secondary",
|
|
8998
8995
|
C("md", "mb"),
|
|
@@ -9093,14 +9090,14 @@ function _l(l) {
|
|
|
9093
9090
|
}, 0));
|
|
9094
9091
|
}, h = () => {
|
|
9095
9092
|
u(!c), f(-1);
|
|
9096
|
-
},
|
|
9093
|
+
}, w = (N) => {
|
|
9097
9094
|
(N.key === "Enter" || N.key === " " || N.key === "ArrowDown") && (N.preventDefault(), u(!0));
|
|
9098
9095
|
}, k = r === "right" ? "right-0" : "left-0", F = me.isValidElement(e) ? me.cloneElement(e, {
|
|
9099
9096
|
onClick: (N) => {
|
|
9100
9097
|
h(), e.props.onClick && e.props.onClick(N);
|
|
9101
9098
|
},
|
|
9102
9099
|
onKeyDown: (N) => {
|
|
9103
|
-
|
|
9100
|
+
w(N), e.props.onKeyDown && e.props.onKeyDown(N);
|
|
9104
9101
|
},
|
|
9105
9102
|
"aria-haspopup": "menu",
|
|
9106
9103
|
"aria-expanded": c,
|
|
@@ -9115,7 +9112,7 @@ function _l(l) {
|
|
|
9115
9112
|
{
|
|
9116
9113
|
ref: b,
|
|
9117
9114
|
onClick: h,
|
|
9118
|
-
onKeyDown:
|
|
9115
|
+
onKeyDown: w,
|
|
9119
9116
|
role: "button",
|
|
9120
9117
|
tabIndex: 0,
|
|
9121
9118
|
"aria-haspopup": "menu",
|
|
@@ -9129,7 +9126,7 @@ function _l(l) {
|
|
|
9129
9126
|
return /* @__PURE__ */ n.jsxs(
|
|
9130
9127
|
"div",
|
|
9131
9128
|
_(A({
|
|
9132
|
-
className:
|
|
9129
|
+
className: y("relative", "inline-block", a),
|
|
9133
9130
|
ref: p
|
|
9134
9131
|
}, i), {
|
|
9135
9132
|
children: [
|
|
@@ -9138,7 +9135,7 @@ function _l(l) {
|
|
|
9138
9135
|
/* @__PURE__ */ n.jsx(
|
|
9139
9136
|
"div",
|
|
9140
9137
|
{
|
|
9141
|
-
className:
|
|
9138
|
+
className: y("fixed", "inset-0", "z-10"),
|
|
9142
9139
|
onClick: () => {
|
|
9143
9140
|
u(!1), f(-1);
|
|
9144
9141
|
},
|
|
@@ -9150,7 +9147,7 @@ function _l(l) {
|
|
|
9150
9147
|
{
|
|
9151
9148
|
ref: x,
|
|
9152
9149
|
id: g,
|
|
9153
|
-
className:
|
|
9150
|
+
className: y(
|
|
9154
9151
|
"absolute",
|
|
9155
9152
|
// micro-z: dropdown content above its own backdrop
|
|
9156
9153
|
"z-20",
|
|
@@ -9169,8 +9166,8 @@ function _l(l) {
|
|
|
9169
9166
|
"aria-orientation": "vertical",
|
|
9170
9167
|
"aria-labelledby": j,
|
|
9171
9168
|
"aria-activedescendant": m >= 0 ? `${g}-item-${m}` : void 0,
|
|
9172
|
-
children: /* @__PURE__ */ n.jsx("div", { className:
|
|
9173
|
-
const R =
|
|
9169
|
+
children: /* @__PURE__ */ n.jsx("div", { className: y(C("xs", "py")), role: "none", children: t.map((N, E) => {
|
|
9170
|
+
const R = y(
|
|
9174
9171
|
"block",
|
|
9175
9172
|
C("base", "px"),
|
|
9176
9173
|
C("xs", "py"),
|
|
@@ -9178,11 +9175,11 @@ function _l(l) {
|
|
|
9178
9175
|
"w-full",
|
|
9179
9176
|
"text-left",
|
|
9180
9177
|
"focus:outline-none",
|
|
9181
|
-
N.disabled ?
|
|
9178
|
+
N.disabled ? y("text-fg-disabled", "cursor-not-allowed", "opacity-50") : N.variant === "danger" ? y(
|
|
9182
9179
|
"text-error-dark",
|
|
9183
9180
|
"hover:bg-error-bg-emphasis",
|
|
9184
9181
|
"focus:bg-error-bg-emphasis"
|
|
9185
|
-
) :
|
|
9182
|
+
) : y(
|
|
9186
9183
|
"text-fg-primary",
|
|
9187
9184
|
"hover:bg-surface-hover",
|
|
9188
9185
|
"focus:bg-surface-hover"
|
|
@@ -9307,20 +9304,20 @@ function Un(l) {
|
|
|
9307
9304
|
`${Bt(u.start, t)} - ${Bt(u.end, t)}`
|
|
9308
9305
|
) : u.start ? b(Bt(u.start, t)) : b("") : b("");
|
|
9309
9306
|
}, [c, u, m, t]);
|
|
9310
|
-
const j = (
|
|
9311
|
-
const k =
|
|
9307
|
+
const j = (w) => {
|
|
9308
|
+
const k = w.target.value;
|
|
9312
9309
|
if (b(k), m === "single") {
|
|
9313
9310
|
const F = rn(k);
|
|
9314
9311
|
f(F);
|
|
9315
9312
|
}
|
|
9316
9313
|
}, S = () => {
|
|
9317
9314
|
if (v(!1), p && m === "single") {
|
|
9318
|
-
const
|
|
9319
|
-
|
|
9315
|
+
const w = rn(p);
|
|
9316
|
+
w && b(Bt(w, t));
|
|
9320
9317
|
}
|
|
9321
9318
|
}, h = () => {
|
|
9322
|
-
var
|
|
9323
|
-
(
|
|
9319
|
+
var w;
|
|
9320
|
+
(w = g.current) == null || w.focus();
|
|
9324
9321
|
};
|
|
9325
9322
|
return /* @__PURE__ */ n.jsx("div", _(A({ className: `relative ${o}` }, i), { children: /* @__PURE__ */ n.jsx(
|
|
9326
9323
|
Le,
|
|
@@ -9421,8 +9418,8 @@ function Bn(a) {
|
|
|
9421
9418
|
if (qt(g, b)) return g;
|
|
9422
9419
|
const D = /* @__PURE__ */ new Date();
|
|
9423
9420
|
return qt(D, b) ? D : new Date(b.getFullYear(), b.getMonth(), 1);
|
|
9424
|
-
})(), h = zl(b),
|
|
9425
|
-
for (let D = 0; D <
|
|
9421
|
+
})(), h = zl(b), w = Pl(b), k = [];
|
|
9422
|
+
for (let D = 0; D < w; D++)
|
|
9426
9423
|
k.push(null);
|
|
9427
9424
|
for (let D = 1; D <= h; D++)
|
|
9428
9425
|
k.push(
|
|
@@ -9609,8 +9606,8 @@ function wr({
|
|
|
9609
9606
|
if (!p) return;
|
|
9610
9607
|
const g = (j) => {
|
|
9611
9608
|
var k, F, N, E;
|
|
9612
|
-
const S = j.target, h = (F = (k = x.current) == null ? void 0 : k.contains(S)) != null ? F : !1,
|
|
9613
|
-
!h && !
|
|
9609
|
+
const S = j.target, h = (F = (k = x.current) == null ? void 0 : k.contains(S)) != null ? F : !1, w = (E = (N = v.current) == null ? void 0 : N.contains(S)) != null ? E : !1;
|
|
9610
|
+
!h && !w && b(!1);
|
|
9614
9611
|
};
|
|
9615
9612
|
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
9616
9613
|
}, [p]), X(() => {
|
|
@@ -9761,14 +9758,14 @@ function Ul(a) {
|
|
|
9761
9758
|
};
|
|
9762
9759
|
return u.addEventListener("keydown", m), () => u.removeEventListener("keydown", m);
|
|
9763
9760
|
}, [i]);
|
|
9764
|
-
const d = r === "compact" && i === "vertical" ? "flex" : "inline-flex", c =
|
|
9761
|
+
const d = r === "compact" && i === "vertical" ? "flex" : "inline-flex", c = y(i === "vertical" ? "flex-col" : "flex-row", C("xs", "gap"));
|
|
9765
9762
|
return /* @__PURE__ */ n.jsx(
|
|
9766
9763
|
"div",
|
|
9767
9764
|
_(A({
|
|
9768
9765
|
ref: l,
|
|
9769
9766
|
role: "tablist",
|
|
9770
9767
|
"aria-orientation": i,
|
|
9771
|
-
className:
|
|
9768
|
+
className: y(
|
|
9772
9769
|
d,
|
|
9773
9770
|
c,
|
|
9774
9771
|
C("xs", "p"),
|
|
@@ -9829,7 +9826,7 @@ function Bl(l) {
|
|
|
9829
9826
|
onClick: b,
|
|
9830
9827
|
onFocus: x,
|
|
9831
9828
|
onKeyDown: v,
|
|
9832
|
-
className:
|
|
9829
|
+
className: y(
|
|
9833
9830
|
"inline-flex",
|
|
9834
9831
|
"items-center",
|
|
9835
9832
|
"justify-center",
|
|
@@ -9843,7 +9840,7 @@ function Bl(l) {
|
|
|
9843
9840
|
"focus:ring-line-focus",
|
|
9844
9841
|
"focus:ring-offset-2",
|
|
9845
9842
|
ee("sm"),
|
|
9846
|
-
p ?
|
|
9843
|
+
p ? y("bg-surface-brand-strong", "text-fg-inverse") : y("text-fg-secondary", "hover:bg-surface-active"),
|
|
9847
9844
|
r ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
9848
9845
|
s
|
|
9849
9846
|
)
|
|
@@ -9916,7 +9913,7 @@ const qd = jr, hs = he(
|
|
|
9916
9913
|
typeof l == "string" ? l : ""
|
|
9917
9914
|
), [v, g] = O(
|
|
9918
9915
|
null
|
|
9919
|
-
), j = i !== void 0, S = j ? i : b, h = S != null && String(S).length > 0,
|
|
9916
|
+
), j = i !== void 0, S = j ? i : b, h = S != null && String(S).length > 0, w = (N) => {
|
|
9920
9917
|
const E = N.target.value;
|
|
9921
9918
|
j || x(E), d == null || d(N), v && clearTimeout(v);
|
|
9922
9919
|
const R = setTimeout(() => {
|
|
@@ -9934,14 +9931,14 @@ const qd = jr, hs = he(
|
|
|
9934
9931
|
var E;
|
|
9935
9932
|
N.key === "Enter" && t && t(String(S || "")), (E = u.onKeyDown) == null || E.call(u, N);
|
|
9936
9933
|
};
|
|
9937
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
9934
|
+
return /* @__PURE__ */ n.jsx("div", { className: y("relative", c), children: /* @__PURE__ */ n.jsx(
|
|
9938
9935
|
Le,
|
|
9939
9936
|
_(A({
|
|
9940
9937
|
ref: m
|
|
9941
9938
|
}, u), {
|
|
9942
9939
|
type: "search",
|
|
9943
9940
|
value: S,
|
|
9944
|
-
onChange:
|
|
9941
|
+
onChange: w,
|
|
9945
9942
|
onKeyDown: F,
|
|
9946
9943
|
leftIcon: s ? /* @__PURE__ */ n.jsx("div", { className: "animate-spin", children: /* @__PURE__ */ n.jsx(Gr, { className: "h-4 w-4" }) }) : /* @__PURE__ */ n.jsx(Gr, { className: "h-4 w-4" }),
|
|
9947
9944
|
rightIcon: a && h && !s ? /* @__PURE__ */ n.jsx(
|
|
@@ -9955,7 +9952,7 @@ const qd = jr, hs = he(
|
|
|
9955
9952
|
children: /* @__PURE__ */ n.jsx(De, { className: "h-4 w-4" })
|
|
9956
9953
|
}
|
|
9957
9954
|
) : void 0,
|
|
9958
|
-
className:
|
|
9955
|
+
className: y(C("lg", "pr"))
|
|
9959
9956
|
})
|
|
9960
9957
|
) });
|
|
9961
9958
|
}
|
|
@@ -10116,16 +10113,16 @@ const Gl = he(
|
|
|
10116
10113
|
}, x) {
|
|
10117
10114
|
const [v, g] = O(
|
|
10118
10115
|
typeof s == "string" ? s : ""
|
|
10119
|
-
), [j, S] = O(!1), [h,
|
|
10116
|
+
), [j, S] = O(!1), [h, w] = O(-1), [k, F] = O(""), N = te(null), E = te(null), R = te(null), I = te(null), D = r !== void 0, M = D ? r : v, W = k.trim() ? m ? m(t, k) : t.filter(
|
|
10120
10117
|
(L) => L.label.toLowerCase().includes(k.toLowerCase())
|
|
10121
10118
|
) : t, Q = W.length > 0, U = (L) => {
|
|
10122
10119
|
const B = L.target.value;
|
|
10123
10120
|
F(B), D || g(B), a == null || a(B), I.current && clearTimeout(I.current), I.current = setTimeout(() => {
|
|
10124
|
-
S(!0),
|
|
10121
|
+
S(!0), w(-1);
|
|
10125
10122
|
}, u);
|
|
10126
10123
|
}, H = (L) => {
|
|
10127
10124
|
var B;
|
|
10128
|
-
L.disabled || (D || g(L.value), F(L.label), S(!1),
|
|
10125
|
+
L.disabled || (D || g(L.value), F(L.label), S(!1), w(-1), a == null || a(L.value), o == null || o(L), (B = E.current) == null || B.focus());
|
|
10129
10126
|
}, fe = (L) => {
|
|
10130
10127
|
if (!j || W.length === 0) {
|
|
10131
10128
|
(L.key === "ArrowDown" || L.key === "Enter") && S(!0);
|
|
@@ -10133,12 +10130,12 @@ const Gl = he(
|
|
|
10133
10130
|
}
|
|
10134
10131
|
switch (L.key) {
|
|
10135
10132
|
case "ArrowDown":
|
|
10136
|
-
L.preventDefault(),
|
|
10133
|
+
L.preventDefault(), w(
|
|
10137
10134
|
(B) => B < W.length - 1 ? B + 1 : 0
|
|
10138
10135
|
);
|
|
10139
10136
|
break;
|
|
10140
10137
|
case "ArrowUp":
|
|
10141
|
-
L.preventDefault(),
|
|
10138
|
+
L.preventDefault(), w(
|
|
10142
10139
|
(B) => B > 0 ? B - 1 : W.length - 1
|
|
10143
10140
|
);
|
|
10144
10141
|
break;
|
|
@@ -10146,14 +10143,14 @@ const Gl = he(
|
|
|
10146
10143
|
L.preventDefault(), h >= 0 && h < W.length && H(W[h]);
|
|
10147
10144
|
break;
|
|
10148
10145
|
case "Escape":
|
|
10149
|
-
L.preventDefault(), S(!1),
|
|
10146
|
+
L.preventDefault(), S(!1), w(-1);
|
|
10150
10147
|
break;
|
|
10151
10148
|
}
|
|
10152
10149
|
};
|
|
10153
10150
|
X(() => {
|
|
10154
10151
|
if (!j) return;
|
|
10155
10152
|
const L = (B) => {
|
|
10156
|
-
N.current && !N.current.contains(B.target) && (S(!1),
|
|
10153
|
+
N.current && !N.current.contains(B.target) && (S(!1), w(-1));
|
|
10157
10154
|
};
|
|
10158
10155
|
return document.addEventListener("mousedown", L), () => document.removeEventListener("mousedown", L);
|
|
10159
10156
|
}, [j]), X(() => {
|
|
@@ -10227,7 +10224,7 @@ const Yl = he(
|
|
|
10227
10224
|
size: b = "md",
|
|
10228
10225
|
label: x
|
|
10229
10226
|
}, v) {
|
|
10230
|
-
const g = Qe(), [j, S] = O(s), [h,
|
|
10227
|
+
const g = Qe(), [j, S] = O(s), [h, w] = O(!1), [k, F] = O(-1), [N, E] = O(""), R = te(null), I = te(null), D = te(null), M = r !== void 0, T = M ? r : j, W = t.filter(
|
|
10231
10228
|
(z) => T.includes(z.value)
|
|
10232
10229
|
), U = (() => {
|
|
10233
10230
|
let z = t;
|
|
@@ -10236,7 +10233,7 @@ const Yl = he(
|
|
|
10236
10233
|
)), z;
|
|
10237
10234
|
})(), H = U.length > 0, fe = (z) => {
|
|
10238
10235
|
const q = z.target.value;
|
|
10239
|
-
E(q),
|
|
10236
|
+
E(q), w(!0), F(-1);
|
|
10240
10237
|
}, le = (z) => {
|
|
10241
10238
|
if (z.disabled || u && T.length >= u && !T.includes(z.value))
|
|
10242
10239
|
return;
|
|
@@ -10255,7 +10252,7 @@ const Yl = he(
|
|
|
10255
10252
|
M || S(q), a == null || a(q), o == null || o(t.filter((Z) => q.includes(Z.value)));
|
|
10256
10253
|
}, re = (z) => {
|
|
10257
10254
|
if (!h || U.length === 0) {
|
|
10258
|
-
(z.key === "ArrowDown" || z.key === "Enter") &&
|
|
10255
|
+
(z.key === "ArrowDown" || z.key === "Enter") && w(!0), z.key === "Backspace" && N === "" && T.length > 0 && J(T[T.length - 1]);
|
|
10259
10256
|
return;
|
|
10260
10257
|
}
|
|
10261
10258
|
switch (z.key) {
|
|
@@ -10273,24 +10270,24 @@ const Yl = he(
|
|
|
10273
10270
|
z.preventDefault(), k >= 0 && k < U.length && le(U[k]);
|
|
10274
10271
|
break;
|
|
10275
10272
|
case "Escape":
|
|
10276
|
-
z.preventDefault(),
|
|
10273
|
+
z.preventDefault(), w(!1), F(-1);
|
|
10277
10274
|
break;
|
|
10278
10275
|
}
|
|
10279
10276
|
};
|
|
10280
10277
|
X(() => {
|
|
10281
10278
|
if (!h) return;
|
|
10282
10279
|
const z = (q) => {
|
|
10283
|
-
R.current && !R.current.contains(q.target) && (
|
|
10280
|
+
R.current && !R.current.contains(q.target) && (w(!1), F(-1), E(""));
|
|
10284
10281
|
};
|
|
10285
10282
|
return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
|
|
10286
10283
|
}, [h]);
|
|
10287
10284
|
const pe = U.filter((z) => !z.disabled).every((z) => T.includes(z.value)), ie = h && (H || l || c);
|
|
10288
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: R, className:
|
|
10285
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: R, className: y("relative", f), children: [
|
|
10289
10286
|
/* @__PURE__ */ n.jsx(
|
|
10290
10287
|
"label",
|
|
10291
10288
|
{
|
|
10292
10289
|
htmlFor: g,
|
|
10293
|
-
className:
|
|
10290
|
+
className: y(
|
|
10294
10291
|
"block",
|
|
10295
10292
|
C("sm", "mb"),
|
|
10296
10293
|
"text-sm",
|
|
@@ -10303,7 +10300,7 @@ const Yl = he(
|
|
|
10303
10300
|
/* @__PURE__ */ n.jsxs(
|
|
10304
10301
|
"div",
|
|
10305
10302
|
{
|
|
10306
|
-
className:
|
|
10303
|
+
className: y(
|
|
10307
10304
|
"flex",
|
|
10308
10305
|
"flex-wrap",
|
|
10309
10306
|
C("sm", "gap"),
|
|
@@ -10339,10 +10336,10 @@ const Yl = he(
|
|
|
10339
10336
|
value: N,
|
|
10340
10337
|
onChange: fe,
|
|
10341
10338
|
onKeyDown: re,
|
|
10342
|
-
onFocus: () =>
|
|
10339
|
+
onFocus: () => w(!0),
|
|
10343
10340
|
placeholder: T.length === 0 ? i : "",
|
|
10344
10341
|
disabled: d,
|
|
10345
|
-
className:
|
|
10342
|
+
className: y(
|
|
10346
10343
|
"flex-1",
|
|
10347
10344
|
"min-w-32",
|
|
10348
10345
|
"outline-none",
|
|
@@ -10359,7 +10356,7 @@ const Yl = he(
|
|
|
10359
10356
|
{
|
|
10360
10357
|
ref: D,
|
|
10361
10358
|
options: U.map((z) => _(A({}, z), {
|
|
10362
|
-
icon: T.includes(z.value) ? /* @__PURE__ */ n.jsx(qr, { className:
|
|
10359
|
+
icon: T.includes(z.value) ? /* @__PURE__ */ n.jsx(qr, { className: y("h-4", "w-4", "text-fg-brand") }) : z.icon
|
|
10363
10360
|
})),
|
|
10364
10361
|
highlightedIndex: k,
|
|
10365
10362
|
onSelect: le,
|
|
@@ -10397,12 +10394,12 @@ function Gd({
|
|
|
10397
10394
|
lg: "h-6 w-6"
|
|
10398
10395
|
}, h = (N) => {
|
|
10399
10396
|
o || (g || b(N), d == null || d(N));
|
|
10400
|
-
},
|
|
10397
|
+
}, w = (N) => {
|
|
10401
10398
|
o || (v(N), c == null || c(N));
|
|
10402
10399
|
}, k = () => {
|
|
10403
10400
|
o || v(null);
|
|
10404
10401
|
}, F = (N) => {
|
|
10405
|
-
const E = N + 1, R = i && j >= E - 0.5 && j < E, I = j >= E, D =
|
|
10402
|
+
const E = N + 1, R = i && j >= E - 0.5 && j < E, I = j >= E, D = y(
|
|
10406
10403
|
S[s],
|
|
10407
10404
|
$e("base"),
|
|
10408
10405
|
!o && "cursor-pointer",
|
|
@@ -10413,7 +10410,7 @@ function Gd({
|
|
|
10413
10410
|
{
|
|
10414
10411
|
className: "relative inline-block",
|
|
10415
10412
|
onClick: () => h(E),
|
|
10416
|
-
onMouseEnter: () =>
|
|
10413
|
+
onMouseEnter: () => w(E),
|
|
10417
10414
|
onMouseLeave: k,
|
|
10418
10415
|
role: o ? void 0 : "button",
|
|
10419
10416
|
tabIndex: o ? void 0 : 0,
|
|
@@ -10439,7 +10436,7 @@ function Gd({
|
|
|
10439
10436
|
return /* @__PURE__ */ n.jsxs(
|
|
10440
10437
|
"div",
|
|
10441
10438
|
{
|
|
10442
|
-
className:
|
|
10439
|
+
className: y(
|
|
10443
10440
|
"inline-flex",
|
|
10444
10441
|
"items-center",
|
|
10445
10442
|
C("xs", "gap"),
|
|
@@ -10449,7 +10446,7 @@ function Gd({
|
|
|
10449
10446
|
/* @__PURE__ */ n.jsx(
|
|
10450
10447
|
"div",
|
|
10451
10448
|
{
|
|
10452
|
-
className:
|
|
10449
|
+
className: y("flex", "items-center"),
|
|
10453
10450
|
role: o ? "img" : void 0,
|
|
10454
10451
|
"aria-label": o ? `Rating: ${j} out of ${r}` : void 0,
|
|
10455
10452
|
children: Array.from({ length: r }, (N, E) => F(E))
|
|
@@ -10458,7 +10455,7 @@ function Gd({
|
|
|
10458
10455
|
l && /* @__PURE__ */ n.jsxs(
|
|
10459
10456
|
"span",
|
|
10460
10457
|
{
|
|
10461
|
-
className:
|
|
10458
|
+
className: y(
|
|
10462
10459
|
C("sm", "ml"),
|
|
10463
10460
|
Ee("sm"),
|
|
10464
10461
|
"text-fg-secondary"
|
|
@@ -10519,7 +10516,7 @@ function Yd({
|
|
|
10519
10516
|
}, h = (I) => {
|
|
10520
10517
|
const D = t ? [...f, ...I] : I, M = s ? D.slice(0, s) : D;
|
|
10521
10518
|
p(M), a == null || a(M);
|
|
10522
|
-
},
|
|
10519
|
+
}, w = (I) => {
|
|
10523
10520
|
if (I.preventDefault(), x(!1), d) return;
|
|
10524
10521
|
const D = I.dataTransfer.files;
|
|
10525
10522
|
if (D.length > 0) {
|
|
@@ -10546,7 +10543,7 @@ function Yd({
|
|
|
10546
10543
|
return /* @__PURE__ */ n.jsxs(
|
|
10547
10544
|
"div",
|
|
10548
10545
|
{
|
|
10549
|
-
className:
|
|
10546
|
+
className: y(
|
|
10550
10547
|
C("lg", "gap"),
|
|
10551
10548
|
"flex",
|
|
10552
10549
|
"flex-col",
|
|
@@ -10557,7 +10554,7 @@ function Yd({
|
|
|
10557
10554
|
u && /* @__PURE__ */ n.jsx(
|
|
10558
10555
|
"label",
|
|
10559
10556
|
{
|
|
10560
|
-
className:
|
|
10557
|
+
className: y(
|
|
10561
10558
|
"block",
|
|
10562
10559
|
Ee("sm"),
|
|
10563
10560
|
Yt("medium"),
|
|
@@ -10570,7 +10567,7 @@ function Yd({
|
|
|
10570
10567
|
m && /* @__PURE__ */ n.jsx(
|
|
10571
10568
|
"p",
|
|
10572
10569
|
{
|
|
10573
|
-
className:
|
|
10570
|
+
className: y(
|
|
10574
10571
|
Ee("sm"),
|
|
10575
10572
|
"text-fg-secondary"
|
|
10576
10573
|
),
|
|
@@ -10581,11 +10578,11 @@ function Yd({
|
|
|
10581
10578
|
/* @__PURE__ */ n.jsxs(
|
|
10582
10579
|
"div",
|
|
10583
10580
|
{
|
|
10584
|
-
onDrop:
|
|
10581
|
+
onDrop: w,
|
|
10585
10582
|
onDragOver: k,
|
|
10586
10583
|
onDragLeave: F,
|
|
10587
10584
|
onClick: R,
|
|
10588
|
-
className:
|
|
10585
|
+
className: y(
|
|
10589
10586
|
"relative",
|
|
10590
10587
|
"border-2",
|
|
10591
10588
|
"border-dashed",
|
|
@@ -10596,7 +10593,7 @@ function Yd({
|
|
|
10596
10593
|
"cursor-pointer",
|
|
10597
10594
|
$e("base"),
|
|
10598
10595
|
"focus:border-line-focus",
|
|
10599
|
-
d ? "opacity-50 cursor-not-allowed" :
|
|
10596
|
+
d ? "opacity-50 cursor-not-allowed" : y(
|
|
10600
10597
|
"hover:border-line-strong",
|
|
10601
10598
|
"focus:outline-none",
|
|
10602
10599
|
"focus:ring-2",
|
|
@@ -10623,7 +10620,7 @@ function Yd({
|
|
|
10623
10620
|
/* @__PURE__ */ n.jsxs(
|
|
10624
10621
|
"div",
|
|
10625
10622
|
{
|
|
10626
|
-
className:
|
|
10623
|
+
className: y(
|
|
10627
10624
|
"flex",
|
|
10628
10625
|
"flex-col",
|
|
10629
10626
|
"items-center",
|
|
@@ -10633,7 +10630,7 @@ function Yd({
|
|
|
10633
10630
|
/* @__PURE__ */ n.jsx(
|
|
10634
10631
|
Bi,
|
|
10635
10632
|
{
|
|
10636
|
-
className:
|
|
10633
|
+
className: y(
|
|
10637
10634
|
"h-8",
|
|
10638
10635
|
"w-8",
|
|
10639
10636
|
b ? "text-fg-brand" : "text-fg-secondary"
|
|
@@ -10644,7 +10641,7 @@ function Yd({
|
|
|
10644
10641
|
/* @__PURE__ */ n.jsx(
|
|
10645
10642
|
"span",
|
|
10646
10643
|
{
|
|
10647
|
-
className:
|
|
10644
|
+
className: y(
|
|
10648
10645
|
Ee("sm"),
|
|
10649
10646
|
Yt("medium"),
|
|
10650
10647
|
"text-fg-primary"
|
|
@@ -10655,7 +10652,7 @@ function Yd({
|
|
|
10655
10652
|
e && /* @__PURE__ */ n.jsxs(
|
|
10656
10653
|
"p",
|
|
10657
10654
|
{
|
|
10658
|
-
className:
|
|
10655
|
+
className: y(
|
|
10659
10656
|
Ee("xs"),
|
|
10660
10657
|
"text-fg-secondary",
|
|
10661
10658
|
C("xs", "mt")
|
|
@@ -10669,7 +10666,7 @@ function Yd({
|
|
|
10669
10666
|
r && /* @__PURE__ */ n.jsxs(
|
|
10670
10667
|
"p",
|
|
10671
10668
|
{
|
|
10672
|
-
className:
|
|
10669
|
+
className: y(
|
|
10673
10670
|
Ee("xs"),
|
|
10674
10671
|
"text-fg-secondary"
|
|
10675
10672
|
),
|
|
@@ -10686,10 +10683,10 @@ function Yd({
|
|
|
10686
10683
|
]
|
|
10687
10684
|
}
|
|
10688
10685
|
),
|
|
10689
|
-
f.length > 0 && /* @__PURE__ */ n.jsx("div", { className:
|
|
10686
|
+
f.length > 0 && /* @__PURE__ */ n.jsx("div", { className: y("flex", "flex-col", C("sm", "gap")), children: f.map((I) => /* @__PURE__ */ n.jsxs(
|
|
10690
10687
|
"div",
|
|
10691
10688
|
{
|
|
10692
|
-
className:
|
|
10689
|
+
className: y(
|
|
10693
10690
|
"flex",
|
|
10694
10691
|
"items-center",
|
|
10695
10692
|
C("md", "gap"),
|
|
@@ -10705,19 +10702,19 @@ function Yd({
|
|
|
10705
10702
|
{
|
|
10706
10703
|
src: I.preview,
|
|
10707
10704
|
alt: I.file.name,
|
|
10708
|
-
className:
|
|
10705
|
+
className: y(
|
|
10709
10706
|
"w-12",
|
|
10710
10707
|
"h-12",
|
|
10711
10708
|
"object-cover",
|
|
10712
10709
|
ee("md")
|
|
10713
10710
|
)
|
|
10714
10711
|
}
|
|
10715
|
-
) : /* @__PURE__ */ n.jsx($i, { className:
|
|
10716
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
10712
|
+
) : /* @__PURE__ */ n.jsx($i, { className: y("h-8", "w-8", "text-fg-secondary") }),
|
|
10713
|
+
/* @__PURE__ */ n.jsxs("div", { className: y("flex-1", "min-w-0"), children: [
|
|
10717
10714
|
/* @__PURE__ */ n.jsx(
|
|
10718
10715
|
"p",
|
|
10719
10716
|
{
|
|
10720
|
-
className:
|
|
10717
|
+
className: y(
|
|
10721
10718
|
Ee("sm"),
|
|
10722
10719
|
Yt("medium"),
|
|
10723
10720
|
"text-fg-primary",
|
|
@@ -10729,7 +10726,7 @@ function Yd({
|
|
|
10729
10726
|
/* @__PURE__ */ n.jsx(
|
|
10730
10727
|
"p",
|
|
10731
10728
|
{
|
|
10732
|
-
className:
|
|
10729
|
+
className: y(
|
|
10733
10730
|
Ee("xs"),
|
|
10734
10731
|
"text-fg-secondary"
|
|
10735
10732
|
),
|
|
@@ -10739,7 +10736,7 @@ function Yd({
|
|
|
10739
10736
|
I.error && /* @__PURE__ */ n.jsxs(
|
|
10740
10737
|
"div",
|
|
10741
10738
|
{
|
|
10742
|
-
className:
|
|
10739
|
+
className: y(
|
|
10743
10740
|
"flex",
|
|
10744
10741
|
"items-center",
|
|
10745
10742
|
C("xs", "gap"),
|
|
@@ -10749,13 +10746,13 @@ function Yd({
|
|
|
10749
10746
|
/* @__PURE__ */ n.jsx(
|
|
10750
10747
|
is,
|
|
10751
10748
|
{
|
|
10752
|
-
className:
|
|
10749
|
+
className: y("h-3", "w-3", "text-fg-error")
|
|
10753
10750
|
}
|
|
10754
10751
|
),
|
|
10755
10752
|
/* @__PURE__ */ n.jsx(
|
|
10756
10753
|
"span",
|
|
10757
10754
|
{
|
|
10758
|
-
className:
|
|
10755
|
+
className: y(
|
|
10759
10756
|
Ee("xs"),
|
|
10760
10757
|
"text-fg-error"
|
|
10761
10758
|
),
|
|
@@ -10765,9 +10762,9 @@ function Yd({
|
|
|
10765
10762
|
]
|
|
10766
10763
|
}
|
|
10767
10764
|
),
|
|
10768
|
-
l && I.progress !== void 0 && /* @__PURE__ */ n.jsx("div", { className:
|
|
10765
|
+
l && I.progress !== void 0 && /* @__PURE__ */ n.jsx("div", { className: y(C("sm", "mt")), children: /* @__PURE__ */ n.jsx(Mn, { value: I.progress, size: "sm" }) })
|
|
10769
10766
|
] }),
|
|
10770
|
-
!I.error && !l && /* @__PURE__ */ n.jsx(gr, { className:
|
|
10767
|
+
!I.error && !l && /* @__PURE__ */ n.jsx(gr, { className: y("h-5", "w-5", "text-fg-success") }),
|
|
10771
10768
|
/* @__PURE__ */ n.jsx(
|
|
10772
10769
|
se,
|
|
10773
10770
|
{
|
|
@@ -10804,7 +10801,7 @@ function Yn({
|
|
|
10804
10801
|
triggerClassName: m = "",
|
|
10805
10802
|
contentClassName: f = ""
|
|
10806
10803
|
}) {
|
|
10807
|
-
const [p, b] = O(s), x = te(null), v = te(null), [g, j] = O({ top: 0, left: 0 }), S = r !== void 0, h = S ? r : p,
|
|
10804
|
+
const [p, b] = O(s), x = te(null), v = te(null), [g, j] = O({ top: 0, left: 0 }), S = r !== void 0, h = S ? r : p, w = G(() => {
|
|
10808
10805
|
if (!x.current || !v.current) return;
|
|
10809
10806
|
const E = x.current.getBoundingClientRect(), R = v.current.getBoundingClientRect(), I = window.scrollY, D = window.scrollX;
|
|
10810
10807
|
let M = 0, T = 0;
|
|
@@ -10823,15 +10820,15 @@ function Yn({
|
|
|
10823
10820
|
}, [o]);
|
|
10824
10821
|
X(() => {
|
|
10825
10822
|
if (h) {
|
|
10826
|
-
|
|
10827
|
-
const E = () =>
|
|
10823
|
+
w();
|
|
10824
|
+
const E = () => w(), R = () => w();
|
|
10828
10825
|
return window.addEventListener("resize", E), window.addEventListener("scroll", R, !0), () => {
|
|
10829
10826
|
window.removeEventListener("resize", E), window.removeEventListener("scroll", R, !0);
|
|
10830
10827
|
};
|
|
10831
10828
|
}
|
|
10832
|
-
}, [h, o,
|
|
10833
|
-
h && v.current && setTimeout(
|
|
10834
|
-
}, [h,
|
|
10829
|
+
}, [h, o, w]), X(() => {
|
|
10830
|
+
h && v.current && setTimeout(w, 0);
|
|
10831
|
+
}, [h, w]);
|
|
10835
10832
|
const k = G(
|
|
10836
10833
|
(E) => {
|
|
10837
10834
|
S || b(E), a == null || a(E);
|
|
@@ -10980,7 +10977,7 @@ function Kd({
|
|
|
10980
10977
|
f(M.hours), b(M.minutes), v(M.amPm);
|
|
10981
10978
|
}
|
|
10982
10979
|
}, [j, S]);
|
|
10983
|
-
const
|
|
10980
|
+
const w = (M) => {
|
|
10984
10981
|
const T = r === "24h" ? Math.max(0, Math.min(23, M)) : Math.max(1, Math.min(12, M));
|
|
10985
10982
|
f(T);
|
|
10986
10983
|
const W = h(
|
|
@@ -11005,17 +11002,17 @@ function Kd({
|
|
|
11005
11002
|
g || u(T), s == null || s(T);
|
|
11006
11003
|
}, N = () => {
|
|
11007
11004
|
if (r === "24h")
|
|
11008
|
-
|
|
11005
|
+
w((m + 1) % 24);
|
|
11009
11006
|
else {
|
|
11010
11007
|
const M = m === 12 ? 1 : m + 1;
|
|
11011
|
-
|
|
11008
|
+
w(M);
|
|
11012
11009
|
}
|
|
11013
11010
|
}, E = () => {
|
|
11014
11011
|
if (r === "24h")
|
|
11015
|
-
|
|
11012
|
+
w(m === 0 ? 23 : m - 1);
|
|
11016
11013
|
else {
|
|
11017
11014
|
const M = m === 1 ? 12 : m - 1;
|
|
11018
|
-
|
|
11015
|
+
w(M);
|
|
11019
11016
|
}
|
|
11020
11017
|
}, R = () => {
|
|
11021
11018
|
k((p + 1) % 60);
|
|
@@ -11166,7 +11163,7 @@ function Xd({
|
|
|
11166
11163
|
"#00ffff",
|
|
11167
11164
|
"#808080",
|
|
11168
11165
|
"#ffa500"
|
|
11169
|
-
],
|
|
11166
|
+
], w = /* @__PURE__ */ n.jsxs("div", { className: `${C("base", "p")} min-w-[280px]`, children: [
|
|
11170
11167
|
/* @__PURE__ */ n.jsx(
|
|
11171
11168
|
"div",
|
|
11172
11169
|
{
|
|
@@ -11311,7 +11308,7 @@ function Xd({
|
|
|
11311
11308
|
placement: "bottom-start",
|
|
11312
11309
|
showCloseButton: !0,
|
|
11313
11310
|
title: "Pick a Color",
|
|
11314
|
-
children:
|
|
11311
|
+
children: w
|
|
11315
11312
|
}
|
|
11316
11313
|
) });
|
|
11317
11314
|
}
|
|
@@ -11898,7 +11895,7 @@ function sc(s) {
|
|
|
11898
11895
|
_(A({
|
|
11899
11896
|
href: r.href || "/",
|
|
11900
11897
|
variant: "default",
|
|
11901
|
-
className:
|
|
11898
|
+
className: y("flex items-center font-semibold text-lg", t)
|
|
11902
11899
|
}, r), {
|
|
11903
11900
|
children: e
|
|
11904
11901
|
})
|
|
@@ -11911,7 +11908,7 @@ function nc({
|
|
|
11911
11908
|
return /* @__PURE__ */ n.jsx(
|
|
11912
11909
|
"nav",
|
|
11913
11910
|
{
|
|
11914
|
-
className:
|
|
11911
|
+
className: y(
|
|
11915
11912
|
"flex-1 flex items-center justify-center gap-4",
|
|
11916
11913
|
"hidden md:flex",
|
|
11917
11914
|
// Hidden on mobile, visible on desktop
|
|
@@ -11923,7 +11920,7 @@ function nc({
|
|
|
11923
11920
|
);
|
|
11924
11921
|
}
|
|
11925
11922
|
function ac({ children: e, className: t }) {
|
|
11926
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
11923
|
+
return /* @__PURE__ */ n.jsx("div", { className: y("flex-shrink-0 flex items-center gap-2", t), children: e });
|
|
11927
11924
|
}
|
|
11928
11925
|
function oc({
|
|
11929
11926
|
className: e,
|
|
@@ -11939,7 +11936,7 @@ function oc({
|
|
|
11939
11936
|
variant: s,
|
|
11940
11937
|
size: a,
|
|
11941
11938
|
onClick: i,
|
|
11942
|
-
className:
|
|
11939
|
+
className: y("md:hidden", e),
|
|
11943
11940
|
"aria-label": o ? "Close menu" : "Open menu",
|
|
11944
11941
|
"aria-expanded": o,
|
|
11945
11942
|
children: o ? d : l
|
|
@@ -11962,7 +11959,7 @@ function ic({
|
|
|
11962
11959
|
size: "sm",
|
|
11963
11960
|
closeOnOverlayClick: !0,
|
|
11964
11961
|
closeOnEscape: !0,
|
|
11965
|
-
children: /* @__PURE__ */ n.jsx(Xn, { className:
|
|
11962
|
+
children: /* @__PURE__ */ n.jsx(Xn, { className: y("p-4", t), children: /* @__PURE__ */ n.jsx("nav", { className: "flex flex-col gap-2", "aria-label": "Mobile navigation", children: e }) })
|
|
11966
11963
|
}
|
|
11967
11964
|
);
|
|
11968
11965
|
}
|
|
@@ -11994,7 +11991,7 @@ const lc = {
|
|
|
11994
11991
|
"div",
|
|
11995
11992
|
_(A({
|
|
11996
11993
|
ref: l,
|
|
11997
|
-
className:
|
|
11994
|
+
className: y(
|
|
11998
11995
|
"w-full",
|
|
11999
11996
|
lc[t],
|
|
12000
11997
|
C(r, "px"),
|
|
@@ -12043,7 +12040,7 @@ const Dt = me.forwardRef(
|
|
|
12043
12040
|
"div",
|
|
12044
12041
|
_(A({
|
|
12045
12042
|
ref: l,
|
|
12046
|
-
className:
|
|
12043
|
+
className: y(
|
|
12047
12044
|
"flex",
|
|
12048
12045
|
a === "column" ? "flex-col" : "flex-row",
|
|
12049
12046
|
u,
|
|
@@ -12060,13 +12057,13 @@ const Dt = me.forwardRef(
|
|
|
12060
12057
|
Dt.displayName = "Stack";
|
|
12061
12058
|
const cc = Ce(
|
|
12062
12059
|
// Base classes
|
|
12063
|
-
|
|
12060
|
+
y("w-full", "bg-surface-base", "transition-shadow", "transition-colors"),
|
|
12064
12061
|
{
|
|
12065
12062
|
variants: {
|
|
12066
12063
|
variant: {
|
|
12067
12064
|
default: "",
|
|
12068
12065
|
elevated: "shadow-sm",
|
|
12069
|
-
bordered:
|
|
12066
|
+
bordered: y("border-b", "border-line-muted")
|
|
12070
12067
|
}
|
|
12071
12068
|
},
|
|
12072
12069
|
defaultVariants: {
|
|
@@ -12091,10 +12088,10 @@ function tr(l) {
|
|
|
12091
12088
|
"className"
|
|
12092
12089
|
]);
|
|
12093
12090
|
const c = /* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-between gap-4", children: e });
|
|
12094
|
-
return a ? /* @__PURE__ */ n.jsx(nn, { children: /* @__PURE__ */ n.jsx("div", _(A({ className:
|
|
12091
|
+
return a ? /* @__PURE__ */ n.jsx(nn, { children: /* @__PURE__ */ n.jsx("div", _(A({ className: y(o) }, i), { children: c })) }) : /* @__PURE__ */ n.jsx(nn, { children: /* @__PURE__ */ n.jsx(
|
|
12095
12092
|
"header",
|
|
12096
12093
|
_(A({
|
|
12097
|
-
className:
|
|
12094
|
+
className: y(
|
|
12098
12095
|
cc({ variant: t }),
|
|
12099
12096
|
r && `sticky top-0 ${ve("sticky")}`,
|
|
12100
12097
|
r && "backdrop-blur-sm bg-surface-base/95",
|
|
@@ -12112,7 +12109,7 @@ tr.Hamburger = oc;
|
|
|
12112
12109
|
tr.MobileMenu = ic;
|
|
12113
12110
|
const an = Ce(
|
|
12114
12111
|
// Base classes
|
|
12115
|
-
|
|
12112
|
+
y("flex", "items-center", "gap-2"),
|
|
12116
12113
|
{
|
|
12117
12114
|
variants: {
|
|
12118
12115
|
orientation: {
|
|
@@ -12197,7 +12194,7 @@ function dc(d) {
|
|
|
12197
12194
|
active: p.active,
|
|
12198
12195
|
disabled: p.disabled,
|
|
12199
12196
|
variant: x,
|
|
12200
|
-
className:
|
|
12197
|
+
className: y(
|
|
12201
12198
|
"flex items-center gap-2",
|
|
12202
12199
|
t === "vertical" && "w-full justify-start",
|
|
12203
12200
|
p.className
|
|
@@ -12214,14 +12211,14 @@ function dc(d) {
|
|
|
12214
12211
|
return o ? /* @__PURE__ */ n.jsx(
|
|
12215
12212
|
"div",
|
|
12216
12213
|
_(A({
|
|
12217
|
-
className:
|
|
12214
|
+
className: y(an({ orientation: t, variant: r }), s)
|
|
12218
12215
|
}, l), {
|
|
12219
12216
|
children: f
|
|
12220
12217
|
})
|
|
12221
12218
|
) : /* @__PURE__ */ n.jsx(
|
|
12222
12219
|
"nav",
|
|
12223
12220
|
_(A({
|
|
12224
|
-
className:
|
|
12221
|
+
className: y(an({ orientation: t, variant: r }), s),
|
|
12225
12222
|
"aria-label": a
|
|
12226
12223
|
}, l), {
|
|
12227
12224
|
children: f
|
|
@@ -12233,12 +12230,12 @@ function Qd(e) {
|
|
|
12233
12230
|
}
|
|
12234
12231
|
const uc = Ce(
|
|
12235
12232
|
// Base classes
|
|
12236
|
-
|
|
12233
|
+
y("w-full", "flex", "flex-col", "gap-2"),
|
|
12237
12234
|
{
|
|
12238
12235
|
variants: {
|
|
12239
12236
|
variant: {
|
|
12240
|
-
default:
|
|
12241
|
-
compact:
|
|
12237
|
+
default: y(C("base", "mb")),
|
|
12238
|
+
compact: y(C("sm", "mb"))
|
|
12242
12239
|
}
|
|
12243
12240
|
},
|
|
12244
12241
|
defaultVariants: {
|
|
@@ -12262,7 +12259,7 @@ function Zd(l) {
|
|
|
12262
12259
|
"variant",
|
|
12263
12260
|
"className"
|
|
12264
12261
|
]);
|
|
12265
|
-
return /* @__PURE__ */ n.jsxs("div", _(A({ className:
|
|
12262
|
+
return /* @__PURE__ */ n.jsxs("div", _(A({ className: y(uc({ variant: a }), o) }, i), { children: [
|
|
12266
12263
|
r && r.length > 0 && /* @__PURE__ */ n.jsx(Rl, { items: r }),
|
|
12267
12264
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
12268
12265
|
/* @__PURE__ */ n.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
@@ -12284,7 +12281,7 @@ function eu(s) {
|
|
|
12284
12281
|
return /* @__PURE__ */ n.jsx(
|
|
12285
12282
|
"div",
|
|
12286
12283
|
{
|
|
12287
|
-
className:
|
|
12284
|
+
className: y(
|
|
12288
12285
|
C("base", "p"),
|
|
12289
12286
|
"bg-surface-muted",
|
|
12290
12287
|
ee("md"),
|
|
@@ -12296,7 +12293,7 @@ function eu(s) {
|
|
|
12296
12293
|
onSubmit: (o) => {
|
|
12297
12294
|
o.preventDefault(), r.onSubmit && r.onSubmit(o);
|
|
12298
12295
|
},
|
|
12299
|
-
className:
|
|
12296
|
+
className: y("space-y-4", r.className),
|
|
12300
12297
|
children: [
|
|
12301
12298
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
|
|
12302
12299
|
/* @__PURE__ */ n.jsx(Xt, { htmlFor: "login-email", variant: "required", children: "Your email" }),
|
|
@@ -12472,7 +12469,7 @@ function on({
|
|
|
12472
12469
|
onFilter: j,
|
|
12473
12470
|
initialFilterValues: S = {},
|
|
12474
12471
|
selectable: h = !1,
|
|
12475
|
-
selectedRows:
|
|
12472
|
+
selectedRows: w,
|
|
12476
12473
|
onSelectionChange: k,
|
|
12477
12474
|
rowId: F,
|
|
12478
12475
|
actions: N,
|
|
@@ -12491,9 +12488,9 @@ function on({
|
|
|
12491
12488
|
}) {
|
|
12492
12489
|
const L = P(() => s || (i !== void 0 && l ? "server" : "client"), [s, i, l]), B = a !== void 0, [J, re] = O(1), [pe, ie] = O(c), z = B ? a : J, q = o != null ? o : pe, Z = P(() => L === "server" ? i != null ? i : 0 : t.length, [L, i, t.length]), ce = P(() => Math.ceil(Z / q), [Z, q]), xe = m !== void 0, [Ae, Me] = O(
|
|
12493
12490
|
b || ""
|
|
12494
|
-
), [Ve, Pt] = O(x), _e = xe ? m : Ae, rr = xe ? f || "asc" : Ve, $r = g !== void 0, [Na, Sa] = O(S), sr = $r ? g : Na, Cr =
|
|
12491
|
+
), [Ve, Pt] = O(x), _e = xe ? m : Ae, rr = xe ? f || "asc" : Ve, $r = g !== void 0, [Na, Sa] = O(S), sr = $r ? g : Na, Cr = w !== void 0, [$a, Ca] = O(
|
|
12495
12492
|
[]
|
|
12496
|
-
), We = Cr ?
|
|
12493
|
+
), We = Cr ? w : $a, nr = P(() => !v || v.length === 0 ? t : t.filter((ne) => v.every((ge) => {
|
|
12497
12494
|
const ke = sr[ge.key];
|
|
12498
12495
|
if (!ke || ke === "") return !0;
|
|
12499
12496
|
const or = ne[ge.key];
|
|
@@ -12714,14 +12711,14 @@ function ra(d) {
|
|
|
12714
12711
|
document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", E), x.current = null;
|
|
12715
12712
|
};
|
|
12716
12713
|
document.addEventListener("mousemove", N), document.addEventListener("mouseup", E);
|
|
12717
|
-
}, S = u.column === e.key, h = e.sortable && (f || m),
|
|
12714
|
+
}, S = u.column === e.key, h = e.sortable && (f || m), w = S ? u.direction : void 0;
|
|
12718
12715
|
return /* @__PURE__ */ n.jsx(
|
|
12719
12716
|
"th",
|
|
12720
12717
|
_(A({
|
|
12721
12718
|
ref: b,
|
|
12722
12719
|
scope: "col",
|
|
12723
12720
|
role: "columnheader",
|
|
12724
|
-
"aria-sort": S ?
|
|
12721
|
+
"aria-sort": S ? w === "asc" ? "ascending" : "descending" : h ? "none" : void 0,
|
|
12725
12722
|
className: `px-6 py-3 text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${h ? "cursor-pointer hover:bg-surface-active focus:bg-surface-active focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2 select-none" : ""} ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${i}`,
|
|
12726
12723
|
onClick: h ? v : void 0,
|
|
12727
12724
|
onKeyDown: h ? g : void 0,
|
|
@@ -13365,19 +13362,19 @@ function hc(u) {
|
|
|
13365
13362
|
}
|
|
13366
13363
|
),
|
|
13367
13364
|
/* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children: Array.from({ length: Math.min(5, f) }, (S, h) => {
|
|
13368
|
-
let
|
|
13369
|
-
return f <= 5 || e <= 3 ?
|
|
13365
|
+
let w;
|
|
13366
|
+
return f <= 5 || e <= 3 ? w = h + 1 : e >= f - 2 ? w = f - 4 + h : w = e - 2 + h, /* @__PURE__ */ n.jsx(
|
|
13370
13367
|
se,
|
|
13371
13368
|
{
|
|
13372
|
-
variant: e ===
|
|
13369
|
+
variant: e === w ? "primary" : "ghost",
|
|
13373
13370
|
size: "sm",
|
|
13374
|
-
onClick: () => s(
|
|
13371
|
+
onClick: () => s(w),
|
|
13375
13372
|
className: "min-w-10",
|
|
13376
|
-
"aria-label": `Page ${
|
|
13377
|
-
"aria-current": e ===
|
|
13378
|
-
children:
|
|
13373
|
+
"aria-label": `Page ${w}`,
|
|
13374
|
+
"aria-current": e === w ? "page" : void 0,
|
|
13375
|
+
children: w
|
|
13379
13376
|
},
|
|
13380
|
-
|
|
13377
|
+
w
|
|
13381
13378
|
);
|
|
13382
13379
|
}) }),
|
|
13383
13380
|
/* @__PURE__ */ n.jsx(
|
|
@@ -13496,7 +13493,7 @@ function gc(e) {
|
|
|
13496
13493
|
actions: j,
|
|
13497
13494
|
onRowClick: S,
|
|
13498
13495
|
paginationMode: h,
|
|
13499
|
-
defaultPageSize:
|
|
13496
|
+
defaultPageSize: w,
|
|
13500
13497
|
resizable: k,
|
|
13501
13498
|
columnWidths: F,
|
|
13502
13499
|
onColumnResize: N,
|
|
@@ -13514,7 +13511,7 @@ function gc(e) {
|
|
|
13514
13511
|
total: f == null ? void 0 : f.total,
|
|
13515
13512
|
onPageChange: f == null ? void 0 : f.onPageChange,
|
|
13516
13513
|
onPageSizeChange: f == null ? void 0 : f.onPageSizeChange,
|
|
13517
|
-
defaultPageSize:
|
|
13514
|
+
defaultPageSize: w || (f == null ? void 0 : f.pageSize) || 10,
|
|
13518
13515
|
pageSizeOptions: f == null ? void 0 : f.pageSizeOptions,
|
|
13519
13516
|
sortColumn: o,
|
|
13520
13517
|
sortDirection: i,
|
|
@@ -13563,27 +13560,27 @@ function su(e = {}) {
|
|
|
13563
13560
|
null
|
|
13564
13561
|
), f = G(
|
|
13565
13562
|
(S, h) => {
|
|
13566
|
-
const
|
|
13563
|
+
const w = Math.max(
|
|
13567
13564
|
r,
|
|
13568
13565
|
s ? Math.min(h, s) : h
|
|
13569
13566
|
);
|
|
13570
13567
|
i((k) => _(A({}, k), {
|
|
13571
|
-
[S]:
|
|
13568
|
+
[S]: w
|
|
13572
13569
|
}));
|
|
13573
13570
|
},
|
|
13574
13571
|
[r, s]
|
|
13575
13572
|
), p = G(() => {
|
|
13576
13573
|
i(t);
|
|
13577
13574
|
}, [t]), b = G(
|
|
13578
|
-
(S, h,
|
|
13579
|
-
a && (d(!0), u(S), m.current = { startX: h, startWidth:
|
|
13575
|
+
(S, h, w) => {
|
|
13576
|
+
a && (d(!0), u(S), m.current = { startX: h, startWidth: w });
|
|
13580
13577
|
},
|
|
13581
13578
|
[a]
|
|
13582
13579
|
), x = G(
|
|
13583
13580
|
(S) => {
|
|
13584
13581
|
if (!l || !c || !m.current) return;
|
|
13585
|
-
const h = S - m.current.startX,
|
|
13586
|
-
f(c,
|
|
13582
|
+
const h = S - m.current.startX, w = m.current.startWidth + h;
|
|
13583
|
+
f(c, w);
|
|
13587
13584
|
},
|
|
13588
13585
|
[l, c, f]
|
|
13589
13586
|
), v = G(() => {
|
|
@@ -13827,9 +13824,9 @@ function yc({
|
|
|
13827
13824
|
(j) => {
|
|
13828
13825
|
let S = Vr(j, t, r);
|
|
13829
13826
|
if (s && s.length > 0) {
|
|
13830
|
-
const h = s.reduce((
|
|
13831
|
-
const F = Math.abs(S - k), N = Math.abs(S -
|
|
13832
|
-
return F < N ? k :
|
|
13827
|
+
const h = s.reduce((w, k) => {
|
|
13828
|
+
const F = Math.abs(S - k), N = Math.abs(S - w);
|
|
13829
|
+
return F < N ? k : w;
|
|
13833
13830
|
}, s[0]);
|
|
13834
13831
|
Math.abs(S - h) <= a && (S = h);
|
|
13835
13832
|
}
|
|
@@ -13997,7 +13994,7 @@ function ma({
|
|
|
13997
13994
|
width: j,
|
|
13998
13995
|
isResizing: S,
|
|
13999
13996
|
startResize: h,
|
|
14000
|
-
setWidth:
|
|
13997
|
+
setWidth: w
|
|
14001
13998
|
} = yc({
|
|
14002
13999
|
initialWidth: f(),
|
|
14003
14000
|
minWidth: d.minWidth,
|
|
@@ -14032,9 +14029,9 @@ function ma({
|
|
|
14032
14029
|
});
|
|
14033
14030
|
const R = G(
|
|
14034
14031
|
(T) => {
|
|
14035
|
-
|
|
14032
|
+
w(T);
|
|
14036
14033
|
},
|
|
14037
|
-
[
|
|
14034
|
+
[w]
|
|
14038
14035
|
), I = G(
|
|
14039
14036
|
(T) => {
|
|
14040
14037
|
v(i ? (W) => {
|
|
@@ -14121,7 +14118,7 @@ function pa({
|
|
|
14121
14118
|
enableKeyboardShortcut: S,
|
|
14122
14119
|
// State props
|
|
14123
14120
|
defaultCollapsed: h,
|
|
14124
|
-
collapsed:
|
|
14121
|
+
collapsed: w,
|
|
14125
14122
|
onCollapseChange: k,
|
|
14126
14123
|
onWidthChange: F,
|
|
14127
14124
|
onMobileChange: N,
|
|
@@ -14156,7 +14153,7 @@ function pa({
|
|
|
14156
14153
|
ma,
|
|
14157
14154
|
{
|
|
14158
14155
|
defaultCollapsed: h,
|
|
14159
|
-
collapsed:
|
|
14156
|
+
collapsed: w,
|
|
14160
14157
|
onCollapseChange: k,
|
|
14161
14158
|
onWidthChange: F,
|
|
14162
14159
|
onMobileChange: N,
|
|
@@ -14400,7 +14397,7 @@ function ya(x) {
|
|
|
14400
14397
|
const { collapsed: g, toggle: j } = St(), {
|
|
14401
14398
|
animationDuration: S,
|
|
14402
14399
|
animationEasing: h,
|
|
14403
|
-
navigationWidth:
|
|
14400
|
+
navigationWidth: w,
|
|
14404
14401
|
contentWidth: k,
|
|
14405
14402
|
minWidth: F
|
|
14406
14403
|
} = Nt(), N = _t(), E = c != null ? c : N.keyboardShortcut, R = u != null ? u : N.enableKeyboardShortcut, I = () => {
|
|
@@ -14538,7 +14535,7 @@ function Ic(o) {
|
|
|
14538
14535
|
navigationWidth: j,
|
|
14539
14536
|
contentWidth: S,
|
|
14540
14537
|
animationDuration: h,
|
|
14541
|
-
animationEasing:
|
|
14538
|
+
animationEasing: w
|
|
14542
14539
|
} = d, { mode: k, resizable: F, mobileVariant: N, overlayBackdrop: E } = c, R = typeof j == "number" ? `${j}px` : j, I = typeof S == "number" ? `${S}px` : S, M = k === "navigation" || m ? R : F ? `${p}px` : I, [T, W] = O(!1);
|
|
14543
14540
|
X(() => {
|
|
14544
14541
|
W(!0);
|
|
@@ -14550,7 +14547,8 @@ function Ic(o) {
|
|
|
14550
14547
|
"aside",
|
|
14551
14548
|
_(A({
|
|
14552
14549
|
ref: x,
|
|
14553
|
-
|
|
14550
|
+
id: "side-navbar-sidebar",
|
|
14551
|
+
className: y(
|
|
14554
14552
|
H,
|
|
14555
14553
|
"flex",
|
|
14556
14554
|
"h-full",
|
|
@@ -14569,7 +14567,7 @@ function Ic(o) {
|
|
|
14569
14567
|
minWidth: M,
|
|
14570
14568
|
transitionProperty: b ? "none" : "width, min-width, transform",
|
|
14571
14569
|
transitionDuration: `${h}ms`,
|
|
14572
|
-
transitionTimingFunction:
|
|
14570
|
+
transitionTimingFunction: w
|
|
14573
14571
|
}, r),
|
|
14574
14572
|
role: "complementary",
|
|
14575
14573
|
"aria-label": s || "Sidebar navigation",
|
|
@@ -14746,8 +14744,8 @@ function Lc(g) {
|
|
|
14746
14744
|
const {
|
|
14747
14745
|
activeItem: S,
|
|
14748
14746
|
setActiveItem: h,
|
|
14749
|
-
labelMode:
|
|
14750
|
-
} = Ss(), k = (Q = s != null ? s :
|
|
14747
|
+
labelMode: w
|
|
14748
|
+
} = Ss(), k = (Q = s != null ? s : w) != null ? Q : "tooltip", F = o || e && S === e, N = Mc[u], E = (U) => {
|
|
14751
14749
|
if (b) {
|
|
14752
14750
|
U.preventDefault();
|
|
14753
14751
|
return;
|
|
@@ -14756,7 +14754,7 @@ function Lc(g) {
|
|
|
14756
14754
|
}, R = k !== "tooltip" && a && r && /* @__PURE__ */ n.jsx(
|
|
14757
14755
|
"span",
|
|
14758
14756
|
{
|
|
14759
|
-
className:
|
|
14757
|
+
className: y(
|
|
14760
14758
|
"text-xs",
|
|
14761
14759
|
"flex-shrink-0",
|
|
14762
14760
|
// Prevenir que label encolha
|
|
@@ -14775,7 +14773,7 @@ function Lc(g) {
|
|
|
14775
14773
|
},
|
|
14776
14774
|
children: r
|
|
14777
14775
|
}
|
|
14778
|
-
), I =
|
|
14776
|
+
), I = y(
|
|
14779
14777
|
"relative",
|
|
14780
14778
|
"flex",
|
|
14781
14779
|
"items-center",
|
|
@@ -14797,7 +14795,7 @@ function Lc(g) {
|
|
|
14797
14795
|
// Remover todas as transições que possam causar movimento
|
|
14798
14796
|
"[&>*]:!transition-none",
|
|
14799
14797
|
"[&>*]:!transform-none",
|
|
14800
|
-
k === "tooltip" ? N.container :
|
|
14798
|
+
k === "tooltip" ? N.container : y(C("sm", "px"), C("1.5", "py")),
|
|
14801
14799
|
k !== "tooltip" && Rc[k],
|
|
14802
14800
|
b ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
14803
14801
|
x
|
|
@@ -14809,7 +14807,7 @@ function Lc(g) {
|
|
|
14809
14807
|
/* @__PURE__ */ n.jsx(
|
|
14810
14808
|
"span",
|
|
14811
14809
|
{
|
|
14812
|
-
className:
|
|
14810
|
+
className: y(
|
|
14813
14811
|
"flex-shrink-0",
|
|
14814
14812
|
N.icon,
|
|
14815
14813
|
"[&>svg]:transition-none",
|
|
@@ -14840,7 +14838,7 @@ function Lc(g) {
|
|
|
14840
14838
|
l != null && /* @__PURE__ */ n.jsx(
|
|
14841
14839
|
"span",
|
|
14842
14840
|
{
|
|
14843
|
-
className:
|
|
14841
|
+
className: y(
|
|
14844
14842
|
"absolute",
|
|
14845
14843
|
"-top-1",
|
|
14846
14844
|
"-right-1",
|
|
@@ -14868,7 +14866,7 @@ function Lc(g) {
|
|
|
14868
14866
|
target: f,
|
|
14869
14867
|
rel: f === "_blank" ? "noopener noreferrer" : void 0,
|
|
14870
14868
|
onClick: E,
|
|
14871
|
-
className:
|
|
14869
|
+
className: y(I, D[c]),
|
|
14872
14870
|
style: T,
|
|
14873
14871
|
"aria-label": r,
|
|
14874
14872
|
"aria-current": F ? "page" : void 0,
|
|
@@ -14881,7 +14879,7 @@ function Lc(g) {
|
|
|
14881
14879
|
type: "button",
|
|
14882
14880
|
onClick: E,
|
|
14883
14881
|
disabled: b,
|
|
14884
|
-
className:
|
|
14882
|
+
className: y(I, D[c]),
|
|
14885
14883
|
style: T,
|
|
14886
14884
|
"aria-label": r,
|
|
14887
14885
|
"aria-current": F ? "page" : void 0
|
|
@@ -14902,14 +14900,14 @@ function Fc(s) {
|
|
|
14902
14900
|
return e === "vertical" ? /* @__PURE__ */ n.jsx(
|
|
14903
14901
|
"div",
|
|
14904
14902
|
A({
|
|
14905
|
-
className:
|
|
14903
|
+
className: y("w-px", "h-6", "bg-line-default", "mx-auto", t),
|
|
14906
14904
|
role: "separator",
|
|
14907
14905
|
"aria-orientation": "vertical"
|
|
14908
14906
|
}, r)
|
|
14909
14907
|
) : /* @__PURE__ */ n.jsx(
|
|
14910
14908
|
"div",
|
|
14911
14909
|
A({
|
|
14912
|
-
className:
|
|
14910
|
+
className: y(
|
|
14913
14911
|
"w-full",
|
|
14914
14912
|
"h-px",
|
|
14915
14913
|
"bg-line-default",
|
|
@@ -14946,11 +14944,11 @@ function _c(l) {
|
|
|
14946
14944
|
"className"
|
|
14947
14945
|
]);
|
|
14948
14946
|
const [c, u] = O(s);
|
|
14949
|
-
return /* @__PURE__ */ n.jsxs("div", _(A({ id: e, className:
|
|
14947
|
+
return /* @__PURE__ */ n.jsxs("div", _(A({ id: e, className: y("flex flex-col", o) }, i), { children: [
|
|
14950
14948
|
t && /* @__PURE__ */ n.jsx(
|
|
14951
14949
|
"div",
|
|
14952
14950
|
{
|
|
14953
|
-
className:
|
|
14951
|
+
className: y(
|
|
14954
14952
|
C("sm", "px"),
|
|
14955
14953
|
C("1.5", "py"),
|
|
14956
14954
|
"text-xs text-fg-tertiary uppercase tracking-wider",
|
|
@@ -14960,7 +14958,7 @@ function _c(l) {
|
|
|
14960
14958
|
children: /* @__PURE__ */ n.jsxs(
|
|
14961
14959
|
"div",
|
|
14962
14960
|
{
|
|
14963
|
-
className:
|
|
14961
|
+
className: y("flex items-center", C("1.5", "gap")),
|
|
14964
14962
|
children: [
|
|
14965
14963
|
" ",
|
|
14966
14964
|
r && /* @__PURE__ */ n.jsx("span", { className: "shrink-0", children: c ? /* @__PURE__ */ n.jsx(
|
|
@@ -15010,7 +15008,7 @@ function zt(u) {
|
|
|
15010
15008
|
"className",
|
|
15011
15009
|
"style"
|
|
15012
15010
|
]);
|
|
15013
|
-
const f = St(), p = Nt(), b = _t(), x = ba(), v = te(null), [g, j] = O(null), [S, h] = O(!1),
|
|
15011
|
+
const f = St(), p = Nt(), b = _t(), x = ba(), v = te(null), [g, j] = O(null), [S, h] = O(!1), w = t != null ? t : x.showMainToggle;
|
|
15014
15012
|
r != null || x.mainTogglePosition;
|
|
15015
15013
|
const k = o === "inline" && !f.collapsed, F = k ? typeof i == "number" ? `${i}px` : i : p.navigationWidth, N = P(
|
|
15016
15014
|
() => ({
|
|
@@ -15036,11 +15034,11 @@ function zt(u) {
|
|
|
15036
15034
|
o
|
|
15037
15035
|
]
|
|
15038
15036
|
);
|
|
15039
|
-
return
|
|
15037
|
+
return w && b.mode, /* @__PURE__ */ n.jsx(Ns.Provider, { value: N, children: /* @__PURE__ */ n.jsxs(
|
|
15040
15038
|
"nav",
|
|
15041
15039
|
_(A({
|
|
15042
15040
|
ref: v,
|
|
15043
|
-
className:
|
|
15041
|
+
className: y(
|
|
15044
15042
|
"relative",
|
|
15045
15043
|
"flex-shrink-0",
|
|
15046
15044
|
"flex",
|
|
@@ -15075,7 +15073,7 @@ function zt(u) {
|
|
|
15075
15073
|
/* @__PURE__ */ n.jsx(
|
|
15076
15074
|
"div",
|
|
15077
15075
|
{
|
|
15078
|
-
className:
|
|
15076
|
+
className: y(
|
|
15079
15077
|
"relative",
|
|
15080
15078
|
// Create new stacking context
|
|
15081
15079
|
"flex-1",
|
|
@@ -15292,7 +15290,7 @@ function Wc(c) {
|
|
|
15292
15290
|
!j.current && b[e] === void 0 && (j.current = !0, v(e, o));
|
|
15293
15291
|
}, [e, o, b, v]), m)
|
|
15294
15292
|
return null;
|
|
15295
|
-
const S = (k = b[e]) != null ? k : o, h = f === e,
|
|
15293
|
+
const S = (k = b[e]) != null ? k : o, h = f === e, w = () => {
|
|
15296
15294
|
p(e), a && x(e);
|
|
15297
15295
|
};
|
|
15298
15296
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -15310,7 +15308,7 @@ function Wc(c) {
|
|
|
15310
15308
|
"button",
|
|
15311
15309
|
{
|
|
15312
15310
|
type: "button",
|
|
15313
|
-
onClick:
|
|
15311
|
+
onClick: w,
|
|
15314
15312
|
className: `
|
|
15315
15313
|
flex
|
|
15316
15314
|
items-center
|
|
@@ -15368,7 +15366,7 @@ function Uc({
|
|
|
15368
15366
|
}
|
|
15369
15367
|
function $t(a) {
|
|
15370
15368
|
var o = a, { children: e, className: t = "", style: r } = o, s = V(o, ["children", "className", "style"]);
|
|
15371
|
-
const i = St(), l = Nt(), d = te(null), [c, u] = O(0), [m, f] = O(!1), [p, b] = O(!1), [x, v] = O(null), g = G(() => f(!0), []), j = G(() => f(!1), []), S = G(() => b(!0), []), h = G(() => b(!1), []),
|
|
15369
|
+
const i = St(), l = Nt(), d = te(null), [c, u] = O(0), [m, f] = O(!1), [p, b] = O(!1), [x, v] = O(null), g = G(() => f(!0), []), j = G(() => f(!1), []), S = G(() => b(!0), []), h = G(() => b(!1), []), w = P(
|
|
15372
15370
|
() => ({
|
|
15373
15371
|
// Inherited from root
|
|
15374
15372
|
collapsed: i.collapsed,
|
|
@@ -15401,12 +15399,11 @@ function $t(a) {
|
|
|
15401
15399
|
x
|
|
15402
15400
|
]
|
|
15403
15401
|
), k = Qr(l.contentWidth), F = Qr(l.navigationWidth), N = k - F;
|
|
15404
|
-
return /* @__PURE__ */ n.jsx($s.Provider, { value:
|
|
15402
|
+
return /* @__PURE__ */ n.jsx($s.Provider, { value: w, children: /* @__PURE__ */ n.jsx(
|
|
15405
15403
|
"div",
|
|
15406
15404
|
_(A({
|
|
15407
15405
|
ref: d,
|
|
15408
|
-
|
|
15409
|
-
className: w(
|
|
15406
|
+
className: y(
|
|
15410
15407
|
"flex",
|
|
15411
15408
|
"flex-col",
|
|
15412
15409
|
"h-full",
|
|
@@ -15459,7 +15456,7 @@ function Oe(E) {
|
|
|
15459
15456
|
onWidthChange: j,
|
|
15460
15457
|
onMobileChange: S,
|
|
15461
15458
|
exclusiveGroups: h = !1,
|
|
15462
|
-
showToggle:
|
|
15459
|
+
showToggle: w = !0,
|
|
15463
15460
|
togglePosition: k = "floating",
|
|
15464
15461
|
children: F
|
|
15465
15462
|
} = R, N = V(R, [
|
|
@@ -15496,10 +15493,10 @@ function Oe(E) {
|
|
|
15496
15493
|
]);
|
|
15497
15494
|
const I = P(
|
|
15498
15495
|
() => ({
|
|
15499
|
-
showMainToggle:
|
|
15496
|
+
showMainToggle: w,
|
|
15500
15497
|
mainTogglePosition: k
|
|
15501
15498
|
}),
|
|
15502
|
-
[
|
|
15499
|
+
[w, k]
|
|
15503
15500
|
);
|
|
15504
15501
|
return /* @__PURE__ */ n.jsx(ks.Provider, { value: I, children: /* @__PURE__ */ n.jsx(
|
|
15505
15502
|
pa,
|
|
@@ -15649,22 +15646,22 @@ function wa(i) {
|
|
|
15649
15646
|
var k;
|
|
15650
15647
|
const h = (k = f.current) == null ? void 0 : k.querySelectorAll(
|
|
15651
15648
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
15652
|
-
),
|
|
15653
|
-
|
|
15649
|
+
), w = h == null ? void 0 : h[0];
|
|
15650
|
+
w == null || w.focus();
|
|
15654
15651
|
}, 0), j = (h) => {
|
|
15655
15652
|
s && h.key === "Escape" && c();
|
|
15656
15653
|
}, S = (h) => {
|
|
15657
15654
|
if (h.key !== "Tab" || !f.current) return;
|
|
15658
|
-
const
|
|
15655
|
+
const w = Array.from(
|
|
15659
15656
|
f.current.querySelectorAll(
|
|
15660
15657
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
15661
15658
|
)
|
|
15662
15659
|
).filter((N) => !N.disabled && N.offsetParent !== null);
|
|
15663
|
-
if (
|
|
15660
|
+
if (w.length === 0) {
|
|
15664
15661
|
h.preventDefault();
|
|
15665
15662
|
return;
|
|
15666
15663
|
}
|
|
15667
|
-
const k =
|
|
15664
|
+
const k = w[0], F = w[w.length - 1];
|
|
15668
15665
|
h.shiftKey ? document.activeElement === k && (h.preventDefault(), F.focus()) : document.activeElement === F && (h.preventDefault(), k.focus());
|
|
15669
15666
|
};
|
|
15670
15667
|
return document.addEventListener("keydown", j), document.addEventListener("keydown", S), () => {
|
|
@@ -16099,17 +16096,17 @@ function Zc({
|
|
|
16099
16096
|
o && (e[h].disabled || (m || u(h), s == null || s(h)));
|
|
16100
16097
|
}, g = e[f], j = f === 0, S = f === e.length - 1;
|
|
16101
16098
|
return l === "vertical" ? /* @__PURE__ */ n.jsxs("div", { className: `flex gap-4 ${d}`, children: [
|
|
16102
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: e.map((h,
|
|
16103
|
-
const k = h.status || p(
|
|
16099
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: e.map((h, w) => {
|
|
16100
|
+
const k = h.status || p(w), F = w === f;
|
|
16104
16101
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
16105
16102
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
16106
16103
|
/* @__PURE__ */ n.jsx(
|
|
16107
16104
|
"button",
|
|
16108
16105
|
_(A({
|
|
16109
16106
|
type: "button",
|
|
16110
|
-
onClick: () => v(
|
|
16107
|
+
onClick: () => v(w),
|
|
16111
16108
|
disabled: !o || h.disabled,
|
|
16112
|
-
"aria-label": h.title ? `Step ${
|
|
16109
|
+
"aria-label": h.title ? `Step ${w + 1}: ${h.title}` : `Step ${w + 1}`
|
|
16113
16110
|
}, k === "pending" ? { "data-marker": "pending" } : {}), {
|
|
16114
16111
|
className: `
|
|
16115
16112
|
flex
|
|
@@ -16123,10 +16120,10 @@ function Zc({
|
|
|
16123
16120
|
${k === "completed" ? "bg-success border-success text-fg-inverse" : k === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : k === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
16124
16121
|
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16125
16122
|
`,
|
|
16126
|
-
children: k === "completed" ? /* @__PURE__ */ n.jsx(qr, { className: "h-5 w-5" }) : i ?
|
|
16123
|
+
children: k === "completed" ? /* @__PURE__ */ n.jsx(qr, { className: "h-5 w-5" }) : i ? w + 1 : null
|
|
16127
16124
|
})
|
|
16128
16125
|
),
|
|
16129
|
-
|
|
16126
|
+
w < e.length - 1 && /* @__PURE__ */ n.jsx(
|
|
16130
16127
|
"div",
|
|
16131
16128
|
{
|
|
16132
16129
|
className: `
|
|
@@ -16143,7 +16140,7 @@ function Zc({
|
|
|
16143
16140
|
"button",
|
|
16144
16141
|
{
|
|
16145
16142
|
type: "button",
|
|
16146
|
-
onClick: () => v(
|
|
16143
|
+
onClick: () => v(w),
|
|
16147
16144
|
disabled: !o || h.disabled,
|
|
16148
16145
|
className: `
|
|
16149
16146
|
text-left
|
|
@@ -16192,17 +16189,17 @@ function Zc({
|
|
|
16192
16189
|
)
|
|
16193
16190
|
] })
|
|
16194
16191
|
] }) : /* @__PURE__ */ n.jsxs("div", { className: `space-y-6 ${d}`, children: [
|
|
16195
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: e.map((h,
|
|
16196
|
-
const k = h.status || p(
|
|
16192
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: e.map((h, w) => {
|
|
16193
|
+
const k = h.status || p(w), F = w === f;
|
|
16197
16194
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center flex-1", children: [
|
|
16198
16195
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center flex-1", children: [
|
|
16199
16196
|
/* @__PURE__ */ n.jsx(
|
|
16200
16197
|
"button",
|
|
16201
16198
|
_(A({
|
|
16202
16199
|
type: "button",
|
|
16203
|
-
onClick: () => v(
|
|
16200
|
+
onClick: () => v(w),
|
|
16204
16201
|
disabled: !o || h.disabled,
|
|
16205
|
-
"aria-label": h.title ? `Step ${
|
|
16202
|
+
"aria-label": h.title ? `Step ${w + 1}: ${h.title}` : `Step ${w + 1}`
|
|
16206
16203
|
}, k === "pending" ? { "data-marker": "pending" } : {}), {
|
|
16207
16204
|
className: `
|
|
16208
16205
|
flex
|
|
@@ -16216,7 +16213,7 @@ function Zc({
|
|
|
16216
16213
|
${k === "completed" ? "bg-success border-success text-fg-inverse" : k === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : k === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
16217
16214
|
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16218
16215
|
`,
|
|
16219
|
-
children: k === "completed" ? /* @__PURE__ */ n.jsx(qr, { className: "h-5 w-5" }) : i ?
|
|
16216
|
+
children: k === "completed" ? /* @__PURE__ */ n.jsx(qr, { className: "h-5 w-5" }) : i ? w + 1 : null
|
|
16220
16217
|
})
|
|
16221
16218
|
),
|
|
16222
16219
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -16240,7 +16237,7 @@ function Zc({
|
|
|
16240
16237
|
}
|
|
16241
16238
|
)
|
|
16242
16239
|
] }),
|
|
16243
|
-
|
|
16240
|
+
w < e.length - 1 && /* @__PURE__ */ n.jsx("div", { className: `flex-1 mx-2 ${C("base", "mx")}`, children: /* @__PURE__ */ n.jsx(
|
|
16244
16241
|
Dn,
|
|
16245
16242
|
{
|
|
16246
16243
|
className: `
|
|
@@ -16408,7 +16405,7 @@ function xu({
|
|
|
16408
16405
|
}, 0));
|
|
16409
16406
|
},
|
|
16410
16407
|
[v, s]
|
|
16411
|
-
),
|
|
16408
|
+
), w = (N) => {
|
|
16412
16409
|
N.action(), h(!1);
|
|
16413
16410
|
}, k = (N) => {
|
|
16414
16411
|
if (N.key === "Escape") {
|
|
@@ -16424,7 +16421,7 @@ function xu({
|
|
|
16424
16421
|
return;
|
|
16425
16422
|
}
|
|
16426
16423
|
if (N.key === "Enter") {
|
|
16427
|
-
N.preventDefault(), j[f] &&
|
|
16424
|
+
N.preventDefault(), j[f] && w(j[f]);
|
|
16428
16425
|
return;
|
|
16429
16426
|
}
|
|
16430
16427
|
};
|
|
@@ -16574,7 +16571,7 @@ function xu({
|
|
|
16574
16571
|
{
|
|
16575
16572
|
type: "button",
|
|
16576
16573
|
"data-index": D,
|
|
16577
|
-
onClick: () =>
|
|
16574
|
+
onClick: () => w(R),
|
|
16578
16575
|
className: `
|
|
16579
16576
|
w-full
|
|
16580
16577
|
flex
|
|
@@ -16658,7 +16655,7 @@ function vu({
|
|
|
16658
16655
|
rowId: j,
|
|
16659
16656
|
exportable: S = !1,
|
|
16660
16657
|
onExport: h,
|
|
16661
|
-
exportFormats:
|
|
16658
|
+
exportFormats: w = ["csv", "xlsx", "json"],
|
|
16662
16659
|
pagination: k,
|
|
16663
16660
|
filters: F,
|
|
16664
16661
|
actions: N,
|
|
@@ -16715,7 +16712,7 @@ function vu({
|
|
|
16715
16712
|
) }),
|
|
16716
16713
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16717
16714
|
E,
|
|
16718
|
-
S && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children:
|
|
16715
|
+
S && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children: w.map((ie) => /* @__PURE__ */ n.jsx(
|
|
16719
16716
|
se,
|
|
16720
16717
|
{
|
|
16721
16718
|
variant: "outline",
|
|
@@ -16776,9 +16773,9 @@ function yu({
|
|
|
16776
16773
|
}) {
|
|
16777
16774
|
const [u, m] = O(""), [f, p] = O(1), b = P(() => e.map((h) => {
|
|
16778
16775
|
if (h.accessor || h.header) {
|
|
16779
|
-
const
|
|
16776
|
+
const w = h.key || (typeof h.accessor == "string" ? h.accessor : String(h.accessor)), k = h.label || h.header || "";
|
|
16780
16777
|
return _(A({}, h), {
|
|
16781
|
-
key:
|
|
16778
|
+
key: w,
|
|
16782
16779
|
label: k
|
|
16783
16780
|
});
|
|
16784
16781
|
}
|
|
@@ -16786,14 +16783,14 @@ function yu({
|
|
|
16786
16783
|
}), [e]), x = P(() => {
|
|
16787
16784
|
if (!u.trim()) return t;
|
|
16788
16785
|
const h = u.toLowerCase();
|
|
16789
|
-
return t.filter((
|
|
16790
|
-
const F =
|
|
16786
|
+
return t.filter((w) => b.some((k) => {
|
|
16787
|
+
const F = w[String(k.key)];
|
|
16791
16788
|
return String(F).toLowerCase().includes(h);
|
|
16792
16789
|
}));
|
|
16793
16790
|
}, [t, u, b]), v = P(() => {
|
|
16794
16791
|
if (!o) return x;
|
|
16795
|
-
const h = (f - 1) * a,
|
|
16796
|
-
return x.slice(h,
|
|
16792
|
+
const h = (f - 1) * a, w = h + a;
|
|
16793
|
+
return x.slice(h, w);
|
|
16797
16794
|
}, [x, f, a, o]), g = o ? Math.ceil(x.length / a) : 1, j = (h) => {
|
|
16798
16795
|
p(h);
|
|
16799
16796
|
}, S = (h) => {
|
|
@@ -16819,10 +16816,10 @@ function yu({
|
|
|
16819
16816
|
loading: d,
|
|
16820
16817
|
emptyMessage: c,
|
|
16821
16818
|
onRowClick: l ? (h) => {
|
|
16822
|
-
const
|
|
16819
|
+
const w = x.findIndex((k) => k === h);
|
|
16823
16820
|
l(
|
|
16824
16821
|
h,
|
|
16825
|
-
|
|
16822
|
+
w >= 0 ? w : v.findIndex((k) => k === h)
|
|
16826
16823
|
);
|
|
16827
16824
|
} : void 0
|
|
16828
16825
|
}
|
|
@@ -16947,6 +16944,7 @@ function ju({
|
|
|
16947
16944
|
"select",
|
|
16948
16945
|
{
|
|
16949
16946
|
className: "px-3 py-1 border rounded text-sm",
|
|
16947
|
+
"aria-label": v.label,
|
|
16950
16948
|
value: String(u[v.id] || ""),
|
|
16951
16949
|
onChange: (j) => p(
|
|
16952
16950
|
v.id,
|
|
@@ -17178,7 +17176,7 @@ export {
|
|
|
17178
17176
|
Pa as YELLOW,
|
|
17179
17177
|
cn as blendColors,
|
|
17180
17178
|
Vr as clampWidth,
|
|
17181
|
-
|
|
17179
|
+
y as cn,
|
|
17182
17180
|
kd as darken,
|
|
17183
17181
|
Te as defaultConfigValues,
|
|
17184
17182
|
Gt as defaultThemeValues,
|