ynotsoft-dynamic-form 1.0.130 → 1.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dynamic-form.js +405 -409
- package/dist/dynamic-form.umd.cjs +22 -22
- package/package.json +2 -2
package/dist/dynamic-form.js
CHANGED
|
@@ -275,45 +275,45 @@ function gl({
|
|
|
275
275
|
apiClient: s,
|
|
276
276
|
...i
|
|
277
277
|
}) {
|
|
278
|
-
const c = a, l = e.selectMode !== "multiple", d = e.returnValueOnly === !0, [h, g] = ce([]), [m, b] = ce(!1), [p, y] = ce(!1), [S, k] = ce(""), [E, w] = ce(-1), [x, A] = ce({}), O = Ot(null), T = Ot(null),
|
|
278
|
+
const c = a, l = e.selectMode !== "multiple", d = e.returnValueOnly === !0, [h, g] = ce([]), [m, b] = ce(!1), [p, y] = ce(!1), [S, k] = ce(""), [E, w] = ce(-1), [x, A] = ce({}), O = Ot(null), T = Ot(null), z = Ot(null), $ = t[e.name], q = dr(() => $ ? (Array.isArray($) ? $ : [$]).map((_) => {
|
|
279
279
|
if (_ && typeof _ == "object" && _.value !== void 0)
|
|
280
280
|
return { value: _.value, label: _.label || _.value };
|
|
281
|
-
const
|
|
282
|
-
return
|
|
283
|
-
}) : [], [
|
|
281
|
+
const M = h.find((j) => j.value === _);
|
|
282
|
+
return M || (x[_] ? x[_] : { value: _, label: _ });
|
|
283
|
+
}) : [], [$, h, x])(), D = dr(
|
|
284
284
|
async (N = "") => {
|
|
285
285
|
if (e.onSearch) {
|
|
286
286
|
const _ = await e.onSearch(N, t);
|
|
287
287
|
g(
|
|
288
|
-
(_ || []).map((
|
|
289
|
-
value:
|
|
290
|
-
label:
|
|
291
|
-
description:
|
|
288
|
+
(_ || []).map((M) => ({
|
|
289
|
+
value: M[e.valueId || "value"] ?? M.value ?? M.id,
|
|
290
|
+
label: M[e.labelId || "label"] ?? M.label ?? M.name,
|
|
291
|
+
description: M.description
|
|
292
292
|
}))
|
|
293
293
|
);
|
|
294
294
|
return;
|
|
295
295
|
}
|
|
296
296
|
if (!e.optionsUrl || !s) {
|
|
297
|
-
const _ = (e.options || []).map((
|
|
298
|
-
value:
|
|
299
|
-
label:
|
|
300
|
-
description:
|
|
297
|
+
const _ = (e.options || []).map((M) => ({
|
|
298
|
+
value: M[e.valueId || "value"] || M.value || M.id,
|
|
299
|
+
label: M[e.labelId || "label"] || M.label || M.name,
|
|
300
|
+
description: M.description
|
|
301
301
|
}));
|
|
302
302
|
g(
|
|
303
303
|
N ? _.filter(
|
|
304
|
-
(
|
|
304
|
+
(M) => String(M.label).toLowerCase().includes(N.toLowerCase())
|
|
305
305
|
) : _
|
|
306
306
|
);
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
309
|
b(!0);
|
|
310
310
|
try {
|
|
311
|
-
const _ = e.searchParam || "search",
|
|
311
|
+
const _ = e.searchParam || "search", M = e.optionsUrl.includes("?") ? "&" : "?", j = `${e.optionsUrl}${M}${_}=${encodeURIComponent(N)}`, ae = await s(j), Z = ae.data || ae, ge = Array.isArray(Z) ? Z : [];
|
|
312
312
|
g(
|
|
313
|
-
ge.map((
|
|
314
|
-
value:
|
|
315
|
-
label:
|
|
316
|
-
description:
|
|
313
|
+
ge.map((Y) => ({
|
|
314
|
+
value: Y[e.valueId || "value"] || Y.value || Y.id,
|
|
315
|
+
label: Y[e.labelId || "label"] || Y.label || Y.name,
|
|
316
|
+
description: Y.description
|
|
317
317
|
}))
|
|
318
318
|
);
|
|
319
319
|
} catch {
|
|
@@ -328,17 +328,17 @@ function gl({
|
|
|
328
328
|
if (!N) return;
|
|
329
329
|
A((j) => ({ ...j, [N.value]: N }));
|
|
330
330
|
const _ = d ? N.value : { value: N.value, label: N.label };
|
|
331
|
-
let
|
|
331
|
+
let M;
|
|
332
332
|
if (l)
|
|
333
|
-
|
|
333
|
+
M = [_], y(!1);
|
|
334
334
|
else {
|
|
335
|
-
const j = Array.isArray(
|
|
336
|
-
|
|
335
|
+
const j = Array.isArray($) ? $ : [];
|
|
336
|
+
M = j.some((Z) => (Z?.value ?? Z) === N.value) ? j.filter((Z) => (Z?.value ?? Z) !== N.value) : [...j, _];
|
|
337
337
|
}
|
|
338
|
-
n(e.name,
|
|
338
|
+
n(e.name, M), r(e.name), e.clearSearchOnSelect && k("");
|
|
339
339
|
},
|
|
340
340
|
[
|
|
341
|
-
|
|
341
|
+
$,
|
|
342
342
|
e.clearSearchOnSelect,
|
|
343
343
|
e.name,
|
|
344
344
|
n,
|
|
@@ -369,16 +369,16 @@ function gl({
|
|
|
369
369
|
}
|
|
370
370
|
}, P = (N) => {
|
|
371
371
|
const _ = N.target.value;
|
|
372
|
-
k(_), w(-1),
|
|
372
|
+
k(_), w(-1), z.current && clearTimeout(z.current), z.current = setTimeout(() => D(_), 300);
|
|
373
373
|
};
|
|
374
374
|
Ie(() => {
|
|
375
375
|
if (p) {
|
|
376
|
-
|
|
376
|
+
D(S);
|
|
377
377
|
const N = setTimeout(() => T.current?.focus(), 50);
|
|
378
378
|
return () => clearTimeout(N);
|
|
379
379
|
} else
|
|
380
380
|
w(-1);
|
|
381
|
-
}, [p,
|
|
381
|
+
}, [p, D, S]), Ie(() => {
|
|
382
382
|
if (!p) return;
|
|
383
383
|
const N = (_) => {
|
|
384
384
|
O.current && !O.current.contains(_.target) && (y(!1), r(e.name));
|
|
@@ -387,7 +387,7 @@ function gl({
|
|
|
387
387
|
}, [p, e.name, r]);
|
|
388
388
|
const F = (N, _) => {
|
|
389
389
|
N.stopPropagation();
|
|
390
|
-
const
|
|
390
|
+
const M = Array.isArray($) ? $ : [], j = l ? [] : M.filter((ae) => (ae?.value ?? ae) !== _);
|
|
391
391
|
n(e.name, j), r(e.name);
|
|
392
392
|
};
|
|
393
393
|
return /* @__PURE__ */ L(
|
|
@@ -414,7 +414,7 @@ function gl({
|
|
|
414
414
|
${c ? "bg-muted opacity-60 cursor-not-allowed" : ""}
|
|
415
415
|
`,
|
|
416
416
|
children: [
|
|
417
|
-
|
|
417
|
+
q.length > 0 ? q.map((N) => /* @__PURE__ */ L(
|
|
418
418
|
"span",
|
|
419
419
|
{
|
|
420
420
|
className: "inline-flex items-center px-2 py-0.5 bg-primary/10 text-primary text-xs rounded-sm border border-primary/20",
|
|
@@ -473,7 +473,7 @@ function gl({
|
|
|
473
473
|
"aria-label": e.label,
|
|
474
474
|
className: "max-h-60 overflow-y-auto p-1",
|
|
475
475
|
children: h.length > 0 ? h.map((N, _) => {
|
|
476
|
-
const
|
|
476
|
+
const M = q.some(
|
|
477
477
|
(ae) => ae.value === N.value
|
|
478
478
|
), j = _ === E;
|
|
479
479
|
return /* @__PURE__ */ L(
|
|
@@ -482,22 +482,22 @@ function gl({
|
|
|
482
482
|
id: `${e.name}-opt-${_}`,
|
|
483
483
|
role: "option",
|
|
484
484
|
tabIndex: -1,
|
|
485
|
-
"aria-selected":
|
|
485
|
+
"aria-selected": M,
|
|
486
486
|
onClick: () => C(N),
|
|
487
487
|
onKeyDown: (ae) => ae.key === "Enter" && C(N),
|
|
488
488
|
onMouseEnter: () => w(_),
|
|
489
489
|
className: `
|
|
490
490
|
px-3 py-2 text-sm rounded-md cursor-pointer flex items-center justify-between transition-colors outline-none
|
|
491
491
|
${j ? "bg-accent text-accent-foreground" : ""}
|
|
492
|
-
${
|
|
493
|
-
${!j && !
|
|
492
|
+
${M ? "text-primary font-medium" : "text-foreground"}
|
|
493
|
+
${!j && !M ? "hover:bg-muted" : ""}
|
|
494
494
|
`,
|
|
495
495
|
children: [
|
|
496
496
|
/* @__PURE__ */ L("div", { className: "flex flex-col min-w-0", children: [
|
|
497
497
|
/* @__PURE__ */ u("span", { className: "truncate", children: N.label }),
|
|
498
498
|
N.description && /* @__PURE__ */ u("span", { className: "text-xs text-muted-foreground truncate", children: N.description })
|
|
499
499
|
] }),
|
|
500
|
-
|
|
500
|
+
M && /* @__PURE__ */ u(kc, { className: "w-4 h-4 text-primary shrink-0 ml-2" })
|
|
501
501
|
]
|
|
502
502
|
},
|
|
503
503
|
N.value
|
|
@@ -739,11 +739,11 @@ var Al = "DismissableLayer", Mr = "dismissableLayer.update", Tl = "dismissableLa
|
|
|
739
739
|
onDismiss: i,
|
|
740
740
|
...c
|
|
741
741
|
} = e, l = f.useContext($a), [d, h] = f.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, m] = f.useState({}), b = de(t, (O) => h(O)), p = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), S = p.indexOf(y), k = d ? p.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = k >= S, x = _l((O) => {
|
|
742
|
-
const T = O.target,
|
|
743
|
-
!w ||
|
|
742
|
+
const T = O.target, z = [...l.branches].some(($) => $.contains(T));
|
|
743
|
+
!w || z || (o?.(O), s?.(O), O.defaultPrevented || i?.());
|
|
744
744
|
}, g), A = Ml((O) => {
|
|
745
745
|
const T = O.target;
|
|
746
|
-
[...l.branches].some((
|
|
746
|
+
[...l.branches].some(($) => $.contains(T)) || (a?.(O), s?.(O), O.defaultPrevented || i?.());
|
|
747
747
|
}, g);
|
|
748
748
|
return kl((O) => {
|
|
749
749
|
k === l.layers.size - 1 && (r?.(O), !O.defaultPrevented && i && (O.preventDefault(), i()));
|
|
@@ -1299,7 +1299,7 @@ const tu = 50, nu = async (e, t, n) => {
|
|
|
1299
1299
|
}, m = no(o), b = to(m), p = await s.getDimensions(l), y = m === "y", S = y ? "top" : "left", k = y ? "bottom" : "right", E = y ? "clientHeight" : "clientWidth", w = a.reference[b] + a.reference[m] - g[m] - a.floating[b], x = g[m] - a.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1300
1300
|
let O = A ? A[E] : 0;
|
|
1301
1301
|
(!O || !await (s.isElement == null ? void 0 : s.isElement(A))) && (O = i.floating[E] || a.floating[b]);
|
|
1302
|
-
const T = w / 2 - x / 2,
|
|
1302
|
+
const T = w / 2 - x / 2, z = O / 2 - p[b] / 2 - 1, $ = rt(h[S], z), U = rt(h[k], z), q = $, D = O - p[b] - U, C = O / 2 - p[b] / 2 + T, R = Dr(q, C, D), P = !c.arrow && Ft(o) != null && C !== R && a.reference[b] / 2 - (C < q ? $ : U) - p[b] / 2 < 0, F = P ? C < q ? C - q : C - D : 0;
|
|
1303
1303
|
return {
|
|
1304
1304
|
[m]: g[m] + F,
|
|
1305
1305
|
data: {
|
|
@@ -1338,36 +1338,36 @@ const tu = 50, nu = async (e, t, n) => {
|
|
|
1338
1338
|
return {};
|
|
1339
1339
|
const S = Ke(o), k = Ue(i), E = Ke(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = g || (E || !p ? [Tn(i)] : ql(i)), A = b !== "none";
|
|
1340
1340
|
!g && A && x.push(...Zl(i, p, b, w));
|
|
1341
|
-
const O = [i, ...x], T = await c.detectOverflow(t, y),
|
|
1342
|
-
let
|
|
1343
|
-
if (d &&
|
|
1341
|
+
const O = [i, ...x], T = await c.detectOverflow(t, y), z = [];
|
|
1342
|
+
let $ = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
1343
|
+
if (d && z.push(T[S]), h) {
|
|
1344
1344
|
const C = Yl(o, s, w);
|
|
1345
|
-
|
|
1345
|
+
z.push(T[C[0]], T[C[1]]);
|
|
1346
1346
|
}
|
|
1347
|
-
if (
|
|
1347
|
+
if ($ = [...$, {
|
|
1348
1348
|
placement: o,
|
|
1349
|
-
overflows:
|
|
1350
|
-
}],
|
|
1351
|
-
var
|
|
1352
|
-
const C = (((
|
|
1349
|
+
overflows: z
|
|
1350
|
+
}], !z.every((C) => C <= 0)) {
|
|
1351
|
+
var U, q;
|
|
1352
|
+
const C = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, R = O[C];
|
|
1353
1353
|
if (R && (!(h === "alignment" ? k !== Ue(R) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1354
1354
|
// overflows the main axis.
|
|
1355
|
-
|
|
1355
|
+
$.every((N) => Ue(N.placement) === k ? N.overflows[0] > 0 : !0)))
|
|
1356
1356
|
return {
|
|
1357
1357
|
data: {
|
|
1358
1358
|
index: C,
|
|
1359
|
-
overflows:
|
|
1359
|
+
overflows: $
|
|
1360
1360
|
},
|
|
1361
1361
|
reset: {
|
|
1362
1362
|
placement: R
|
|
1363
1363
|
}
|
|
1364
1364
|
};
|
|
1365
|
-
let P = (
|
|
1365
|
+
let P = (q = $.filter((F) => F.overflows[0] <= 0).sort((F, N) => F.overflows[1] - N.overflows[1])[0]) == null ? void 0 : q.placement;
|
|
1366
1366
|
if (!P)
|
|
1367
1367
|
switch (m) {
|
|
1368
1368
|
case "bestFit": {
|
|
1369
|
-
var
|
|
1370
|
-
const F = (
|
|
1369
|
+
var D;
|
|
1370
|
+
const F = (D = $.filter((N) => {
|
|
1371
1371
|
if (A) {
|
|
1372
1372
|
const _ = Ue(N.placement);
|
|
1373
1373
|
return _ === k || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -1375,7 +1375,7 @@ const tu = 50, nu = async (e, t, n) => {
|
|
|
1375
1375
|
_ === "y";
|
|
1376
1376
|
}
|
|
1377
1377
|
return !0;
|
|
1378
|
-
}).map((N) => [N.placement, N.overflows.filter((_) => _ > 0).reduce((_,
|
|
1378
|
+
}).map((N) => [N.placement, N.overflows.filter((_) => _ > 0).reduce((_, M) => _ + M, 0)]).sort((N, _) => N[1] - _[1])[0]) == null ? void 0 : D[0];
|
|
1379
1379
|
F && (P = F);
|
|
1380
1380
|
break;
|
|
1381
1381
|
}
|
|
@@ -1620,16 +1620,16 @@ const iu = function(e) {
|
|
|
1620
1620
|
const k = p - d.top - d.bottom, E = b - d.left - d.right, w = rt(p - d[y], k), x = rt(b - d[S], E), A = !t.middlewareData.shift;
|
|
1621
1621
|
let O = w, T = x;
|
|
1622
1622
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (O = k), A && !g) {
|
|
1623
|
-
const
|
|
1624
|
-
m ? T = b - 2 * (
|
|
1623
|
+
const $ = ke(d.left, 0), U = ke(d.right, 0), q = ke(d.top, 0), D = ke(d.bottom, 0);
|
|
1624
|
+
m ? T = b - 2 * ($ !== 0 || U !== 0 ? $ + U : ke(d.left, d.right)) : O = p - 2 * (q !== 0 || D !== 0 ? q + D : ke(d.top, d.bottom));
|
|
1625
1625
|
}
|
|
1626
1626
|
await c({
|
|
1627
1627
|
...t,
|
|
1628
1628
|
availableWidth: T,
|
|
1629
1629
|
availableHeight: O
|
|
1630
1630
|
});
|
|
1631
|
-
const
|
|
1632
|
-
return b !==
|
|
1631
|
+
const z = await s.getDimensions(i.floating);
|
|
1632
|
+
return b !== z.width || p !== z.height ? {
|
|
1633
1633
|
reset: {
|
|
1634
1634
|
rects: !0
|
|
1635
1635
|
}
|
|
@@ -2210,7 +2210,7 @@ function Wu(e) {
|
|
|
2210
2210
|
N !== A.current && (A.current = N, p(N));
|
|
2211
2211
|
}, []), E = f.useCallback((N) => {
|
|
2212
2212
|
N !== O.current && (O.current = N, S(N));
|
|
2213
|
-
}, []), w = a || b, x = s || y, A = f.useRef(null), O = f.useRef(null), T = f.useRef(d),
|
|
2213
|
+
}, []), w = a || b, x = s || y, A = f.useRef(null), O = f.useRef(null), T = f.useRef(d), z = c != null, $ = br(c), U = br(o), q = br(l), D = f.useCallback(() => {
|
|
2214
2214
|
if (!A.current || !O.current)
|
|
2215
2215
|
return;
|
|
2216
2216
|
const N = {
|
|
@@ -2218,20 +2218,20 @@ function Wu(e) {
|
|
|
2218
2218
|
strategy: n,
|
|
2219
2219
|
middleware: g
|
|
2220
2220
|
};
|
|
2221
|
-
|
|
2222
|
-
const
|
|
2221
|
+
U.current && (N.platform = U.current), Fu(A.current, O.current, N).then((_) => {
|
|
2222
|
+
const M = {
|
|
2223
2223
|
..._,
|
|
2224
2224
|
// The floating element's position may be recomputed while it's closed
|
|
2225
2225
|
// but still mounted (such as when transitioning out). To ensure
|
|
2226
2226
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
2227
2227
|
// setting it to `true` when `open === false` (must be specified).
|
|
2228
|
-
isPositioned:
|
|
2228
|
+
isPositioned: q.current !== !1
|
|
2229
2229
|
};
|
|
2230
|
-
C.current && !Pn(T.current,
|
|
2231
|
-
h(
|
|
2230
|
+
C.current && !Pn(T.current, M) && (T.current = M, Ln.flushSync(() => {
|
|
2231
|
+
h(M);
|
|
2232
2232
|
}));
|
|
2233
2233
|
});
|
|
2234
|
-
}, [g, t, n,
|
|
2234
|
+
}, [g, t, n, U, q]);
|
|
2235
2235
|
Sn(() => {
|
|
2236
2236
|
l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, h((N) => ({
|
|
2237
2237
|
...N,
|
|
@@ -2243,11 +2243,11 @@ function Wu(e) {
|
|
|
2243
2243
|
C.current = !1;
|
|
2244
2244
|
}), []), Sn(() => {
|
|
2245
2245
|
if (w && (A.current = w), x && (O.current = x), w && x) {
|
|
2246
|
-
if (
|
|
2247
|
-
return
|
|
2248
|
-
|
|
2246
|
+
if ($.current)
|
|
2247
|
+
return $.current(w, x, D);
|
|
2248
|
+
D();
|
|
2249
2249
|
}
|
|
2250
|
-
}, [w, x,
|
|
2250
|
+
}, [w, x, D, $, z]);
|
|
2251
2251
|
const R = f.useMemo(() => ({
|
|
2252
2252
|
reference: A,
|
|
2253
2253
|
floating: O,
|
|
@@ -2264,26 +2264,26 @@ function Wu(e) {
|
|
|
2264
2264
|
};
|
|
2265
2265
|
if (!P.floating)
|
|
2266
2266
|
return N;
|
|
2267
|
-
const _ = ea(P.floating, d.x),
|
|
2267
|
+
const _ = ea(P.floating, d.x), M = ea(P.floating, d.y);
|
|
2268
2268
|
return i ? {
|
|
2269
2269
|
...N,
|
|
2270
|
-
transform: "translate(" + _ + "px, " +
|
|
2270
|
+
transform: "translate(" + _ + "px, " + M + "px)",
|
|
2271
2271
|
...Za(P.floating) >= 1.5 && {
|
|
2272
2272
|
willChange: "transform"
|
|
2273
2273
|
}
|
|
2274
2274
|
} : {
|
|
2275
2275
|
position: n,
|
|
2276
2276
|
left: _,
|
|
2277
|
-
top:
|
|
2277
|
+
top: M
|
|
2278
2278
|
};
|
|
2279
2279
|
}, [n, i, P.floating, d.x, d.y]);
|
|
2280
2280
|
return f.useMemo(() => ({
|
|
2281
2281
|
...d,
|
|
2282
|
-
update:
|
|
2282
|
+
update: D,
|
|
2283
2283
|
refs: R,
|
|
2284
2284
|
elements: P,
|
|
2285
2285
|
floatingStyles: F
|
|
2286
|
-
}), [d,
|
|
2286
|
+
}), [d, D, R, P, F]);
|
|
2287
2287
|
}
|
|
2288
2288
|
const Hu = (e) => {
|
|
2289
2289
|
function t(n) {
|
|
@@ -2471,15 +2471,15 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2471
2471
|
updatePositionStrategy: m = "optimized",
|
|
2472
2472
|
onPlaced: b,
|
|
2473
2473
|
...p
|
|
2474
|
-
} = e, y = rs(io, n), [S, k] = f.useState(null), E = de(t, (V) => k(V)), [w, x] = f.useState(null), A = ts(w), O = A?.width ?? 0, T = A?.height ?? 0,
|
|
2475
|
-
padding:
|
|
2476
|
-
boundary:
|
|
2474
|
+
} = e, y = rs(io, n), [S, k] = f.useState(null), E = de(t, (V) => k(V)), [w, x] = f.useState(null), A = ts(w), O = A?.width ?? 0, T = A?.height ?? 0, z = r + (a !== "center" ? "-" + a : ""), $ = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, U = Array.isArray(l) ? l : [l], q = U.length > 0, D = {
|
|
2475
|
+
padding: $,
|
|
2476
|
+
boundary: U.filter(od),
|
|
2477
2477
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2478
|
-
altBoundary:
|
|
2478
|
+
altBoundary: q
|
|
2479
2479
|
}, { refs: C, floatingStyles: R, placement: P, isPositioned: F, middlewareData: N } = Wu({
|
|
2480
2480
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2481
2481
|
strategy: "fixed",
|
|
2482
|
-
placement:
|
|
2482
|
+
placement: z,
|
|
2483
2483
|
whileElementsMounted: (...V) => Pu(...V, {
|
|
2484
2484
|
animationFrame: m === "always"
|
|
2485
2485
|
}),
|
|
@@ -2492,11 +2492,11 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2492
2492
|
mainAxis: !0,
|
|
2493
2493
|
crossAxis: !1,
|
|
2494
2494
|
limiter: h === "partial" ? Vu() : void 0,
|
|
2495
|
-
...
|
|
2495
|
+
...D
|
|
2496
2496
|
}),
|
|
2497
|
-
c && ju({ ...
|
|
2497
|
+
c && ju({ ...D }),
|
|
2498
2498
|
Gu({
|
|
2499
|
-
...
|
|
2499
|
+
...D,
|
|
2500
2500
|
apply: ({ elements: V, rects: J, availableWidth: Q, availableHeight: te }) => {
|
|
2501
2501
|
const { width: ne, height: se } = J.reference, le = V.floating.style;
|
|
2502
2502
|
le.setProperty("--radix-popper-available-width", `${Q}px`), le.setProperty("--radix-popper-available-height", `${te}px`), le.setProperty("--radix-popper-anchor-width", `${ne}px`), le.setProperty("--radix-popper-anchor-height", `${se}px`);
|
|
@@ -2504,13 +2504,13 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2504
2504
|
}),
|
|
2505
2505
|
w && qu({ element: w, padding: i }),
|
|
2506
2506
|
ad({ arrowWidth: O, arrowHeight: T }),
|
|
2507
|
-
g && Yu({ strategy: "referenceHidden", ...
|
|
2507
|
+
g && Yu({ strategy: "referenceHidden", ...D })
|
|
2508
2508
|
]
|
|
2509
|
-
}), [_,
|
|
2509
|
+
}), [_, M] = us(P), j = nt(b);
|
|
2510
2510
|
ye(() => {
|
|
2511
2511
|
F && j?.();
|
|
2512
2512
|
}, [F, j]);
|
|
2513
|
-
const ae = N.arrow?.x, Z = N.arrow?.y, ge = N.arrow?.centerOffset !== 0, [
|
|
2513
|
+
const ae = N.arrow?.x, Z = N.arrow?.y, ge = N.arrow?.centerOffset !== 0, [Y, re] = f.useState();
|
|
2514
2514
|
return ye(() => {
|
|
2515
2515
|
S && re(window.getComputedStyle(S).zIndex);
|
|
2516
2516
|
}, [S]), /* @__PURE__ */ u(
|
|
@@ -2523,7 +2523,7 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2523
2523
|
transform: F ? R.transform : "translate(0, -200%)",
|
|
2524
2524
|
// keep off the page when measuring
|
|
2525
2525
|
minWidth: "max-content",
|
|
2526
|
-
zIndex:
|
|
2526
|
+
zIndex: Y,
|
|
2527
2527
|
"--radix-popper-transform-origin": [
|
|
2528
2528
|
N.transformOrigin?.x,
|
|
2529
2529
|
N.transformOrigin?.y
|
|
@@ -2550,7 +2550,7 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2550
2550
|
es.div,
|
|
2551
2551
|
{
|
|
2552
2552
|
"data-side": _,
|
|
2553
|
-
"data-align":
|
|
2553
|
+
"data-align": M,
|
|
2554
2554
|
...p,
|
|
2555
2555
|
ref: E,
|
|
2556
2556
|
style: {
|
|
@@ -3239,18 +3239,18 @@ function Jd(e) {
|
|
|
3239
3239
|
var S = bn(p), k = n.current, E = "deltaX" in p ? p.deltaX : k[0] - S[0], w = "deltaY" in p ? p.deltaY : k[1] - S[1], x, A = p.target, O = Math.abs(E) > Math.abs(w) ? "h" : "v";
|
|
3240
3240
|
if ("touches" in p && O === "h" && A.type === "range")
|
|
3241
3241
|
return !1;
|
|
3242
|
-
var T = window.getSelection(),
|
|
3243
|
-
if (
|
|
3242
|
+
var T = window.getSelection(), z = T && T.anchorNode, $ = z ? z === A || z.contains(A) : !1;
|
|
3243
|
+
if ($)
|
|
3244
3244
|
return !1;
|
|
3245
|
-
var
|
|
3246
|
-
if (!
|
|
3245
|
+
var U = ra(O, A);
|
|
3246
|
+
if (!U)
|
|
3247
3247
|
return !0;
|
|
3248
|
-
if (
|
|
3248
|
+
if (U ? x = O : (x = O === "v" ? "h" : "v", U = ra(O, A)), !U)
|
|
3249
3249
|
return !1;
|
|
3250
3250
|
if (!r.current && "changedTouches" in p && (E || w) && (r.current = x), !x)
|
|
3251
3251
|
return !0;
|
|
3252
|
-
var
|
|
3253
|
-
return Kd(
|
|
3252
|
+
var q = r.current || x;
|
|
3253
|
+
return Kd(q, y, p, q === "h" ? E : w);
|
|
3254
3254
|
}, []), c = f.useCallback(function(p) {
|
|
3255
3255
|
var y = p;
|
|
3256
3256
|
if (!(!Tt.length || Tt[Tt.length - 1] !== a)) {
|
|
@@ -3335,12 +3335,12 @@ var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Sele
|
|
|
3335
3335
|
defaultProp: o ?? !1,
|
|
3336
3336
|
onChange: a,
|
|
3337
3337
|
caller: bt
|
|
3338
|
-
}), [
|
|
3338
|
+
}), [z, $] = en({
|
|
3339
3339
|
prop: s,
|
|
3340
3340
|
defaultProp: i,
|
|
3341
3341
|
onChange: c,
|
|
3342
3342
|
caller: bt
|
|
3343
|
-
}),
|
|
3343
|
+
}), U = f.useRef(null), q = y ? b || !!y.closest("form") : !0, [D, C] = f.useState(/* @__PURE__ */ new Set()), R = Array.from(D).map((P) => P.props.value).join(";");
|
|
3344
3344
|
return /* @__PURE__ */ u(ds, { ...p, children: /* @__PURE__ */ L(
|
|
3345
3345
|
af,
|
|
3346
3346
|
{
|
|
@@ -3353,12 +3353,12 @@ var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Sele
|
|
|
3353
3353
|
valueNodeHasChildren: w,
|
|
3354
3354
|
onValueNodeHasChildrenChange: x,
|
|
3355
3355
|
contentId: nn(),
|
|
3356
|
-
value:
|
|
3357
|
-
onValueChange:
|
|
3356
|
+
value: z,
|
|
3357
|
+
onValueChange: $,
|
|
3358
3358
|
open: O,
|
|
3359
3359
|
onOpenChange: T,
|
|
3360
3360
|
dir: A,
|
|
3361
|
-
triggerPointerDownPosRef:
|
|
3361
|
+
triggerPointerDownPosRef: U,
|
|
3362
3362
|
disabled: g,
|
|
3363
3363
|
children: [
|
|
3364
3364
|
/* @__PURE__ */ u(Vn.Provider, { scope: t, children: /* @__PURE__ */ u(
|
|
@@ -3377,7 +3377,7 @@ var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Sele
|
|
|
3377
3377
|
children: n
|
|
3378
3378
|
}
|
|
3379
3379
|
) }),
|
|
3380
|
-
|
|
3380
|
+
q ? /* @__PURE__ */ L(
|
|
3381
3381
|
Ks,
|
|
3382
3382
|
{
|
|
3383
3383
|
"aria-hidden": !0,
|
|
@@ -3385,13 +3385,13 @@ var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Sele
|
|
|
3385
3385
|
tabIndex: -1,
|
|
3386
3386
|
name: d,
|
|
3387
3387
|
autoComplete: h,
|
|
3388
|
-
value:
|
|
3389
|
-
onChange: (P) =>
|
|
3388
|
+
value: z,
|
|
3389
|
+
onChange: (P) => $(P.target.value),
|
|
3390
3390
|
disabled: g,
|
|
3391
3391
|
form: b,
|
|
3392
3392
|
children: [
|
|
3393
|
-
|
|
3394
|
-
Array.from(
|
|
3393
|
+
z === void 0 ? /* @__PURE__ */ u("option", { value: "" }) : null,
|
|
3394
|
+
Array.from(D)
|
|
3395
3395
|
]
|
|
3396
3396
|
},
|
|
3397
3397
|
R
|
|
@@ -3509,26 +3509,26 @@ var Me = 10, [Ms, it] = zt(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3509
3509
|
avoidCollisions: y,
|
|
3510
3510
|
//
|
|
3511
3511
|
...S
|
|
3512
|
-
} = e, k = st(vt, n), [E, w] = f.useState(null), [x, A] = f.useState(null), O = de(t, (V) => w(V)), [T,
|
|
3512
|
+
} = e, k = st(vt, n), [E, w] = f.useState(null), [x, A] = f.useState(null), O = de(t, (V) => w(V)), [T, z] = f.useState(null), [$, U] = f.useState(
|
|
3513
3513
|
null
|
|
3514
|
-
),
|
|
3514
|
+
), q = jn(n), [D, C] = f.useState(!1), R = f.useRef(!1);
|
|
3515
3515
|
f.useEffect(() => {
|
|
3516
3516
|
if (E) return bs(E);
|
|
3517
3517
|
}, [E]), Wa();
|
|
3518
3518
|
const P = f.useCallback(
|
|
3519
3519
|
(V) => {
|
|
3520
|
-
const [J, ...Q] =
|
|
3520
|
+
const [J, ...Q] = q().map((se) => se.ref.current), [te] = Q.slice(-1), ne = document.activeElement;
|
|
3521
3521
|
for (const se of V)
|
|
3522
3522
|
if (se === ne || (se?.scrollIntoView({ block: "nearest" }), se === J && x && (x.scrollTop = 0), se === te && x && (x.scrollTop = x.scrollHeight), se?.focus(), document.activeElement !== ne)) return;
|
|
3523
3523
|
},
|
|
3524
|
-
[
|
|
3524
|
+
[q, x]
|
|
3525
3525
|
), F = f.useCallback(
|
|
3526
3526
|
() => P([T, E]),
|
|
3527
3527
|
[P, T, E]
|
|
3528
3528
|
);
|
|
3529
3529
|
f.useEffect(() => {
|
|
3530
|
-
|
|
3531
|
-
}, [
|
|
3530
|
+
D && F();
|
|
3531
|
+
}, [D, F]);
|
|
3532
3532
|
const { onOpenChange: N, triggerPointerDownPosRef: _ } = k;
|
|
3533
3533
|
f.useEffect(() => {
|
|
3534
3534
|
if (E) {
|
|
@@ -3551,22 +3551,22 @@ var Me = 10, [Ms, it] = zt(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3551
3551
|
window.removeEventListener("blur", V), window.removeEventListener("resize", V);
|
|
3552
3552
|
};
|
|
3553
3553
|
}, [N]);
|
|
3554
|
-
const [
|
|
3555
|
-
const J =
|
|
3554
|
+
const [M, j] = Qs((V) => {
|
|
3555
|
+
const J = q().filter((ne) => !ne.disabled), Q = J.find((ne) => ne.ref.current === document.activeElement), te = Zs(J, V, Q);
|
|
3556
3556
|
te && setTimeout(() => te.ref.current.focus());
|
|
3557
3557
|
}), ae = f.useCallback(
|
|
3558
3558
|
(V, J, Q) => {
|
|
3559
3559
|
const te = !R.current && !Q;
|
|
3560
|
-
(k.value !== void 0 && k.value === J || te) && (
|
|
3560
|
+
(k.value !== void 0 && k.value === J || te) && (z(V), te && (R.current = !0));
|
|
3561
3561
|
},
|
|
3562
3562
|
[k.value]
|
|
3563
3563
|
), Z = f.useCallback(() => E?.focus(), [E]), ge = f.useCallback(
|
|
3564
3564
|
(V, J, Q) => {
|
|
3565
3565
|
const te = !R.current && !Q;
|
|
3566
|
-
(k.value !== void 0 && k.value === J || te) &&
|
|
3566
|
+
(k.value !== void 0 && k.value === J || te) && U(V);
|
|
3567
3567
|
},
|
|
3568
3568
|
[k.value]
|
|
3569
|
-
),
|
|
3569
|
+
), Y = r === "popper" ? $r : Is, re = Y === $r ? {
|
|
3570
3570
|
side: i,
|
|
3571
3571
|
sideOffset: c,
|
|
3572
3572
|
align: l,
|
|
@@ -3590,10 +3590,10 @@ var Me = 10, [Ms, it] = zt(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3590
3590
|
onItemLeave: Z,
|
|
3591
3591
|
itemTextRefCallback: ge,
|
|
3592
3592
|
focusSelectedItem: F,
|
|
3593
|
-
selectedItemText:
|
|
3593
|
+
selectedItemText: $,
|
|
3594
3594
|
position: r,
|
|
3595
|
-
isPositioned:
|
|
3596
|
-
searchRef:
|
|
3595
|
+
isPositioned: D,
|
|
3596
|
+
searchRef: M,
|
|
3597
3597
|
children: /* @__PURE__ */ u(uo, { as: ff, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
3598
3598
|
Jr,
|
|
3599
3599
|
{
|
|
@@ -3615,7 +3615,7 @@ var Me = 10, [Ms, it] = zt(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3615
3615
|
onFocusOutside: (V) => V.preventDefault(),
|
|
3616
3616
|
onDismiss: () => k.onOpenChange(!1),
|
|
3617
3617
|
children: /* @__PURE__ */ u(
|
|
3618
|
-
|
|
3618
|
+
Y,
|
|
3619
3619
|
{
|
|
3620
3620
|
role: "listbox",
|
|
3621
3621
|
id: k.contentId,
|
|
@@ -3637,7 +3637,7 @@ var Me = 10, [Ms, it] = zt(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3637
3637
|
onKeyDown: ee(S.onKeyDown, (V) => {
|
|
3638
3638
|
const J = V.ctrlKey || V.altKey || V.metaKey;
|
|
3639
3639
|
if (V.key === "Tab" && V.preventDefault(), !J && V.key.length === 1 && j(V.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(V.key)) {
|
|
3640
|
-
let te =
|
|
3640
|
+
let te = q().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
3641
3641
|
if (["ArrowUp", "End"].includes(V.key) && (te = te.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(V.key)) {
|
|
3642
3642
|
const ne = V.target, se = te.indexOf(ne);
|
|
3643
3643
|
te = te.slice(se + 1);
|
|
@@ -3659,9 +3659,9 @@ Ds.displayName = df;
|
|
|
3659
3659
|
var mf = "SelectItemAlignedPosition", Is = f.forwardRef((e, t) => {
|
|
3660
3660
|
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = st(vt, n), s = it(vt, n), [i, c] = f.useState(null), [l, d] = f.useState(null), h = de(t, (O) => d(O)), g = jn(n), m = f.useRef(!1), b = f.useRef(!0), { viewport: p, selectedItem: y, selectedItemText: S, focusSelectedItem: k } = s, E = f.useCallback(() => {
|
|
3661
3661
|
if (a.trigger && a.valueNode && i && l && p && y && S) {
|
|
3662
|
-
const O = a.trigger.getBoundingClientRect(), T = l.getBoundingClientRect(),
|
|
3662
|
+
const O = a.trigger.getBoundingClientRect(), T = l.getBoundingClientRect(), z = a.valueNode.getBoundingClientRect(), $ = S.getBoundingClientRect();
|
|
3663
3663
|
if (a.dir !== "rtl") {
|
|
3664
|
-
const ne =
|
|
3664
|
+
const ne = $.left - T.left, se = z.left - ne, le = O.left - se, he = O.width + le, Oe = Math.max(he, T.width), ut = window.innerWidth - Me, dt = Io(se, [
|
|
3665
3665
|
Me,
|
|
3666
3666
|
// Prevents the content from going off the starting edge of the
|
|
3667
3667
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -3672,24 +3672,24 @@ var mf = "SelectItemAlignedPosition", Is = f.forwardRef((e, t) => {
|
|
|
3672
3672
|
]);
|
|
3673
3673
|
i.style.minWidth = he + "px", i.style.left = dt + "px";
|
|
3674
3674
|
} else {
|
|
3675
|
-
const ne = T.right -
|
|
3675
|
+
const ne = T.right - $.right, se = window.innerWidth - z.right - ne, le = window.innerWidth - O.right - se, he = O.width + le, Oe = Math.max(he, T.width), ut = window.innerWidth - Me, dt = Io(se, [
|
|
3676
3676
|
Me,
|
|
3677
3677
|
Math.max(Me, ut - Oe)
|
|
3678
3678
|
]);
|
|
3679
3679
|
i.style.minWidth = he + "px", i.style.right = dt + "px";
|
|
3680
3680
|
}
|
|
3681
|
-
const
|
|
3681
|
+
const U = g(), q = window.innerHeight - Me * 2, D = p.scrollHeight, C = window.getComputedStyle(l), R = parseInt(C.borderTopWidth, 10), P = parseInt(C.paddingTop, 10), F = parseInt(C.borderBottomWidth, 10), N = parseInt(C.paddingBottom, 10), _ = R + P + D + N + F, M = Math.min(y.offsetHeight * 5, _), j = window.getComputedStyle(p), ae = parseInt(j.paddingTop, 10), Z = parseInt(j.paddingBottom, 10), ge = O.top + O.height / 2 - Me, Y = q - ge, re = y.offsetHeight / 2, V = y.offsetTop + re, J = R + P + V, Q = _ - J;
|
|
3682
3682
|
if (J <= ge) {
|
|
3683
|
-
const ne =
|
|
3683
|
+
const ne = U.length > 0 && y === U[U.length - 1].ref.current;
|
|
3684
3684
|
i.style.bottom = "0px";
|
|
3685
3685
|
const se = l.clientHeight - p.offsetTop - p.offsetHeight, le = Math.max(
|
|
3686
|
-
|
|
3686
|
+
Y,
|
|
3687
3687
|
re + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
3688
3688
|
(ne ? Z : 0) + se + F
|
|
3689
3689
|
), he = J + le;
|
|
3690
3690
|
i.style.height = he + "px";
|
|
3691
3691
|
} else {
|
|
3692
|
-
const ne =
|
|
3692
|
+
const ne = U.length > 0 && y === U[0].ref.current;
|
|
3693
3693
|
i.style.top = "0px";
|
|
3694
3694
|
const le = Math.max(
|
|
3695
3695
|
ge,
|
|
@@ -3698,7 +3698,7 @@ var mf = "SelectItemAlignedPosition", Is = f.forwardRef((e, t) => {
|
|
|
3698
3698
|
) + Q;
|
|
3699
3699
|
i.style.height = le + "px", p.scrollTop = J - ge + p.offsetTop;
|
|
3700
3700
|
}
|
|
3701
|
-
i.style.margin = `${Me}px 0`, i.style.minHeight =
|
|
3701
|
+
i.style.margin = `${Me}px 0`, i.style.minHeight = M + "px", i.style.maxHeight = q + "px", r?.(), requestAnimationFrame(() => m.current = !0);
|
|
3702
3702
|
}
|
|
3703
3703
|
}, [
|
|
3704
3704
|
g,
|
|
@@ -4497,15 +4497,15 @@ function ni() {
|
|
|
4497
4497
|
implementation: A,
|
|
4498
4498
|
createNodeIterator: O,
|
|
4499
4499
|
createDocumentFragment: T,
|
|
4500
|
-
getElementsByTagName:
|
|
4500
|
+
getElementsByTagName: z
|
|
4501
4501
|
} = n, {
|
|
4502
|
-
importNode:
|
|
4502
|
+
importNode: $
|
|
4503
4503
|
} = r;
|
|
4504
|
-
let
|
|
4504
|
+
let U = ha();
|
|
4505
4505
|
t.isSupported = typeof Js == "function" && typeof E == "function" && A && A.createHTMLDocument !== void 0;
|
|
4506
4506
|
const {
|
|
4507
|
-
MUSTACHE_EXPR:
|
|
4508
|
-
ERB_EXPR:
|
|
4507
|
+
MUSTACHE_EXPR: q,
|
|
4508
|
+
ERB_EXPR: D,
|
|
4509
4509
|
TMPLIT_EXPR: C,
|
|
4510
4510
|
DATA_ATTR: R,
|
|
4511
4511
|
ARIA_ATTR: P,
|
|
@@ -4514,12 +4514,12 @@ function ni() {
|
|
|
4514
4514
|
CUSTOM_ELEMENT: _
|
|
4515
4515
|
} = pa;
|
|
4516
4516
|
let {
|
|
4517
|
-
IS_ALLOWED_URI:
|
|
4517
|
+
IS_ALLOWED_URI: M
|
|
4518
4518
|
} = pa, j = null;
|
|
4519
4519
|
const ae = X({}, [...ua, ...Er, ...Nr, ...kr, ...da]);
|
|
4520
4520
|
let Z = null;
|
|
4521
4521
|
const ge = X({}, [...fa, ...Ar, ...ma, ...vn]);
|
|
4522
|
-
let
|
|
4522
|
+
let Y = Object.seal(Qt(null, {
|
|
4523
4523
|
tagNameCheck: {
|
|
4524
4524
|
writable: !0,
|
|
4525
4525
|
configurable: !1,
|
|
@@ -4574,7 +4574,7 @@ function ni() {
|
|
|
4574
4574
|
let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4575
4575
|
if (!(Et && Et === v)) {
|
|
4576
4576
|
if ((!v || typeof v != "object") && (v = {}), v = He(v), Ht = // eslint-disable-next-line unicorn/prefer-includes
|
|
4577
|
-
rc.indexOf(v.PARSER_MEDIA_TYPE) === -1 ? oc : v.PARSER_MEDIA_TYPE, me = Ht === "application/xhtml+xml" ? Sr : Nn, j = De(v, "ALLOWED_TAGS") ? X({}, v.ALLOWED_TAGS, me) : ae, Z = De(v, "ALLOWED_ATTR") ? X({}, v.ALLOWED_ATTR, me) : ge, sr = De(v, "ALLOWED_NAMESPACES") ? X({}, v.ALLOWED_NAMESPACES, Sr) : tc, or = De(v, "ADD_URI_SAFE_ATTR") ? X(He(xo), v.ADD_URI_SAFE_ATTR, me) : xo, yo = De(v, "ADD_DATA_URI_TAGS") ? X(He(wo), v.ADD_DATA_URI_TAGS, me) : wo, ze = De(v, "FORBID_CONTENTS") ? X({}, v.FORBID_CONTENTS, me) : rr, re = De(v, "FORBID_TAGS") ? X({}, v.FORBID_TAGS, me) : He({}), V = De(v, "FORBID_ATTR") ? X({}, v.FORBID_ATTR, me) : He({}), St = De(v, "USE_PROFILES") ? v.USE_PROFILES : !1, Q = v.ALLOW_ARIA_ATTR !== !1, te = v.ALLOW_DATA_ATTR !== !1, ne = v.ALLOW_UNKNOWN_PROTOCOLS || !1, se = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, le = v.SAFE_FOR_TEMPLATES || !1, he = v.SAFE_FOR_XML !== !1, Oe = v.WHOLE_DOCUMENT || !1, xt = v.RETURN_DOM || !1, sn = v.RETURN_DOM_FRAGMENT || !1, cn = v.RETURN_TRUSTED_TYPE || !1, dt = v.FORCE_BODY || !1, bo = v.SANITIZE_DOM !== !1, vo = v.SANITIZE_NAMED_PROPS || !1, nr = v.KEEP_CONTENT !== !1, Wt = v.IN_PLACE || !1,
|
|
4577
|
+
rc.indexOf(v.PARSER_MEDIA_TYPE) === -1 ? oc : v.PARSER_MEDIA_TYPE, me = Ht === "application/xhtml+xml" ? Sr : Nn, j = De(v, "ALLOWED_TAGS") ? X({}, v.ALLOWED_TAGS, me) : ae, Z = De(v, "ALLOWED_ATTR") ? X({}, v.ALLOWED_ATTR, me) : ge, sr = De(v, "ALLOWED_NAMESPACES") ? X({}, v.ALLOWED_NAMESPACES, Sr) : tc, or = De(v, "ADD_URI_SAFE_ATTR") ? X(He(xo), v.ADD_URI_SAFE_ATTR, me) : xo, yo = De(v, "ADD_DATA_URI_TAGS") ? X(He(wo), v.ADD_DATA_URI_TAGS, me) : wo, ze = De(v, "FORBID_CONTENTS") ? X({}, v.FORBID_CONTENTS, me) : rr, re = De(v, "FORBID_TAGS") ? X({}, v.FORBID_TAGS, me) : He({}), V = De(v, "FORBID_ATTR") ? X({}, v.FORBID_ATTR, me) : He({}), St = De(v, "USE_PROFILES") ? v.USE_PROFILES : !1, Q = v.ALLOW_ARIA_ATTR !== !1, te = v.ALLOW_DATA_ATTR !== !1, ne = v.ALLOW_UNKNOWN_PROTOCOLS || !1, se = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, le = v.SAFE_FOR_TEMPLATES || !1, he = v.SAFE_FOR_XML !== !1, Oe = v.WHOLE_DOCUMENT || !1, xt = v.RETURN_DOM || !1, sn = v.RETURN_DOM_FRAGMENT || !1, cn = v.RETURN_TRUSTED_TYPE || !1, dt = v.FORCE_BODY || !1, bo = v.SANITIZE_DOM !== !1, vo = v.SANITIZE_NAMED_PROPS || !1, nr = v.KEEP_CONTENT !== !1, Wt = v.IN_PLACE || !1, M = v.ALLOWED_URI_REGEXP || ei, Ct = v.NAMESPACE || We, dn = v.MATHML_TEXT_INTEGRATION_POINTS || dn, fn = v.HTML_INTEGRATION_POINTS || fn, Y = v.CUSTOM_ELEMENT_HANDLING || Qt(null), v.CUSTOM_ELEMENT_HANDLING && So(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && So(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), le && (te = !1), sn && (xt = !0), St && (j = X({}, da), Z = Qt(null), St.html === !0 && (X(j, ua), X(Z, fa)), St.svg === !0 && (X(j, Er), X(Z, Ar), X(Z, vn)), St.svgFilters === !0 && (X(j, Nr), X(Z, Ar), X(Z, vn)), St.mathMl === !0 && (X(j, kr), X(Z, ma), X(Z, vn))), J.tagCheck = null, J.attributeCheck = null, v.ADD_TAGS && (typeof v.ADD_TAGS == "function" ? J.tagCheck = v.ADD_TAGS : (j === ae && (j = He(j)), X(j, v.ADD_TAGS, me))), v.ADD_ATTR && (typeof v.ADD_ATTR == "function" ? J.attributeCheck = v.ADD_ATTR : (Z === ge && (Z = He(Z)), X(Z, v.ADD_ATTR, me))), v.ADD_URI_SAFE_ATTR && X(or, v.ADD_URI_SAFE_ATTR, me), v.FORBID_CONTENTS && (ze === rr && (ze = He(ze)), X(ze, v.FORBID_CONTENTS, me)), v.ADD_FORBID_CONTENTS && (ze === rr && (ze = He(ze)), X(ze, v.ADD_FORBID_CONTENTS, me)), nr && (j["#text"] = !0), Oe && X(j, ["html", "head", "body"]), j.table && (X(j, ["tbody"]), delete re.tbody), v.TRUSTED_TYPES_POLICY) {
|
|
4578
4578
|
if (typeof v.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4579
4579
|
throw Vt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4580
4580
|
if (typeof v.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4590,8 +4590,8 @@ function ni() {
|
|
|
4590
4590
|
namespaceURI: Ct,
|
|
4591
4591
|
tagName: "template"
|
|
4592
4592
|
});
|
|
4593
|
-
const
|
|
4594
|
-
return sr[v.namespaceURI] ? v.namespaceURI === un ? I.namespaceURI === We ?
|
|
4593
|
+
const B = Nn(v.tagName), ue = Nn(I.tagName);
|
|
4594
|
+
return sr[v.namespaceURI] ? v.namespaceURI === un ? I.namespaceURI === We ? B === "svg" : I.namespaceURI === ln ? B === "svg" && (ue === "annotation-xml" || dn[ue]) : !!Co[B] : v.namespaceURI === ln ? I.namespaceURI === We ? B === "math" : I.namespaceURI === un ? B === "math" && fn[ue] : !!Eo[B] : v.namespaceURI === We ? I.namespaceURI === un && !fn[ue] || I.namespaceURI === ln && !dn[ue] ? !1 : !Eo[B] && (nc[B] || !Co[B]) : !!(Ht === "application/xhtml+xml" && sr[v.namespaceURI]) : !1;
|
|
4595
4595
|
}, _e = function(v) {
|
|
4596
4596
|
Ut(t.removed, {
|
|
4597
4597
|
element: v
|
|
@@ -4625,12 +4625,12 @@ function ni() {
|
|
|
4625
4625
|
} catch {
|
|
4626
4626
|
}
|
|
4627
4627
|
}, No = function(v) {
|
|
4628
|
-
let I = null,
|
|
4628
|
+
let I = null, B = null;
|
|
4629
4629
|
if (dt)
|
|
4630
4630
|
v = "<remove></remove>" + v;
|
|
4631
4631
|
else {
|
|
4632
4632
|
const fe = Cr(v, /^[\r\n\t ]+/);
|
|
4633
|
-
|
|
4633
|
+
B = fe && fe[0];
|
|
4634
4634
|
}
|
|
4635
4635
|
Ht === "application/xhtml+xml" && Ct === We && (v = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + v + "</body></html>");
|
|
4636
4636
|
const ue = w ? w.createHTML(v) : v;
|
|
@@ -4647,7 +4647,7 @@ function ni() {
|
|
|
4647
4647
|
}
|
|
4648
4648
|
}
|
|
4649
4649
|
const ve = I.body || I.documentElement;
|
|
4650
|
-
return v &&
|
|
4650
|
+
return v && B && ve.insertBefore(n.createTextNode(B), ve.childNodes[0] || null), Ct === We ? z.call(I, Oe ? "html" : "body")[0] : Oe ? I.documentElement : ve;
|
|
4651
4651
|
}, ko = function(v) {
|
|
4652
4652
|
return O.call(
|
|
4653
4653
|
v.ownerDocument || v,
|
|
@@ -4662,24 +4662,24 @@ function ni() {
|
|
|
4662
4662
|
return typeof i == "function" && v instanceof i;
|
|
4663
4663
|
};
|
|
4664
4664
|
function Ge(G, v, I) {
|
|
4665
|
-
Bt(G, (
|
|
4666
|
-
|
|
4665
|
+
Bt(G, (B) => {
|
|
4666
|
+
B.call(t, v, I, Et);
|
|
4667
4667
|
});
|
|
4668
4668
|
}
|
|
4669
4669
|
const Ao = function(v) {
|
|
4670
4670
|
let I = null;
|
|
4671
|
-
if (Ge(
|
|
4671
|
+
if (Ge(U.beforeSanitizeElements, v, null), cr(v))
|
|
4672
4672
|
return _e(v), !0;
|
|
4673
|
-
const
|
|
4674
|
-
if (Ge(
|
|
4675
|
-
tagName:
|
|
4673
|
+
const B = me(v.nodeName);
|
|
4674
|
+
if (Ge(U.uponSanitizeElement, v, {
|
|
4675
|
+
tagName: B,
|
|
4676
4676
|
allowedTags: j
|
|
4677
|
-
}), he && v.hasChildNodes() && !lr(v.firstElementChild) && we(/<[/\w!]/g, v.innerHTML) && we(/<[/\w!]/g, v.textContent) || he && v.namespaceURI === We &&
|
|
4677
|
+
}), he && v.hasChildNodes() && !lr(v.firstElementChild) && we(/<[/\w!]/g, v.innerHTML) && we(/<[/\w!]/g, v.textContent) || he && v.namespaceURI === We && B === "style" && lr(v.firstElementChild) || v.nodeType === Gt.progressingInstruction || he && v.nodeType === Gt.comment && we(/<[/\w]/g, v.data))
|
|
4678
4678
|
return _e(v), !0;
|
|
4679
|
-
if (re[
|
|
4680
|
-
if (!re[
|
|
4679
|
+
if (re[B] || !(J.tagCheck instanceof Function && J.tagCheck(B)) && !j[B]) {
|
|
4680
|
+
if (!re[B] && Ro(B) && (Y.tagNameCheck instanceof RegExp && we(Y.tagNameCheck, B) || Y.tagNameCheck instanceof Function && Y.tagNameCheck(B)))
|
|
4681
4681
|
return !1;
|
|
4682
|
-
if (nr && !ze[
|
|
4682
|
+
if (nr && !ze[B]) {
|
|
4683
4683
|
const ue = E(v) || v.parentNode, ve = k(v) || v.childNodes;
|
|
4684
4684
|
if (ve && ue) {
|
|
4685
4685
|
const fe = ve.length;
|
|
@@ -4691,13 +4691,13 @@ function ni() {
|
|
|
4691
4691
|
}
|
|
4692
4692
|
return _e(v), !0;
|
|
4693
4693
|
}
|
|
4694
|
-
return v instanceof c && !sc(v) || (
|
|
4694
|
+
return v instanceof c && !sc(v) || (B === "noscript" || B === "noembed" || B === "noframes") && we(/<\/no(script|embed|frames)/i, v.innerHTML) ? (_e(v), !0) : (le && v.nodeType === Gt.text && (I = v.textContent, Bt([q, D, C], (ue) => {
|
|
4695
4695
|
I = Rt(I, ue, " ");
|
|
4696
4696
|
}), v.textContent !== I && (Ut(t.removed, {
|
|
4697
4697
|
element: v.cloneNode()
|
|
4698
|
-
}), v.textContent = I)), Ge(
|
|
4699
|
-
}, To = function(v, I,
|
|
4700
|
-
if (V[I] || bo && (I === "id" || I === "name") && (
|
|
4698
|
+
}), v.textContent = I)), Ge(U.afterSanitizeElements, v, null), !1);
|
|
4699
|
+
}, To = function(v, I, B) {
|
|
4700
|
+
if (V[I] || bo && (I === "id" || I === "name") && (B in n || B in ac))
|
|
4701
4701
|
return !1;
|
|
4702
4702
|
if (!(te && !V[I] && we(R, I))) {
|
|
4703
4703
|
if (!(Q && we(P, I))) {
|
|
@@ -4707,15 +4707,15 @@ function ni() {
|
|
|
4707
4707
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4708
4708
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4709
4709
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4710
|
-
!(Ro(v) && (
|
|
4710
|
+
!(Ro(v) && (Y.tagNameCheck instanceof RegExp && we(Y.tagNameCheck, v) || Y.tagNameCheck instanceof Function && Y.tagNameCheck(v)) && (Y.attributeNameCheck instanceof RegExp && we(Y.attributeNameCheck, I) || Y.attributeNameCheck instanceof Function && Y.attributeNameCheck(I, v)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4711
4711
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4712
|
-
I === "is" &&
|
|
4712
|
+
I === "is" && Y.allowCustomizedBuiltInElements && (Y.tagNameCheck instanceof RegExp && we(Y.tagNameCheck, B) || Y.tagNameCheck instanceof Function && Y.tagNameCheck(B)))
|
|
4713
4713
|
) return !1;
|
|
4714
4714
|
} else if (!or[I]) {
|
|
4715
|
-
if (!we(
|
|
4716
|
-
if (!((I === "src" || I === "xlink:href" || I === "href") && v !== "script" && jf(
|
|
4717
|
-
if (!(ne && !we(F, Rt(
|
|
4718
|
-
if (
|
|
4715
|
+
if (!we(M, Rt(B, N, ""))) {
|
|
4716
|
+
if (!((I === "src" || I === "xlink:href" || I === "href") && v !== "script" && jf(B, "data:") === 0 && yo[v])) {
|
|
4717
|
+
if (!(ne && !we(F, Rt(B, N, "")))) {
|
|
4718
|
+
if (B)
|
|
4719
4719
|
return !1;
|
|
4720
4720
|
}
|
|
4721
4721
|
}
|
|
@@ -4728,13 +4728,13 @@ function ni() {
|
|
|
4728
4728
|
}, Ro = function(v) {
|
|
4729
4729
|
return v !== "annotation-xml" && Cr(v, _);
|
|
4730
4730
|
}, Po = function(v) {
|
|
4731
|
-
Ge(
|
|
4731
|
+
Ge(U.beforeSanitizeAttributes, v, null);
|
|
4732
4732
|
const {
|
|
4733
4733
|
attributes: I
|
|
4734
4734
|
} = v;
|
|
4735
4735
|
if (!I || cr(v))
|
|
4736
4736
|
return;
|
|
4737
|
-
const
|
|
4737
|
+
const B = {
|
|
4738
4738
|
attrName: "",
|
|
4739
4739
|
attrValue: "",
|
|
4740
4740
|
keepAttr: !0,
|
|
@@ -4749,7 +4749,7 @@ function ni() {
|
|
|
4749
4749
|
value: Ne
|
|
4750
4750
|
} = ve, Qe = me(fe), ur = Ne;
|
|
4751
4751
|
let be = fe === "value" ? ur : Gf(ur);
|
|
4752
|
-
if (
|
|
4752
|
+
if (B.attrName = Qe, B.attrValue = be, B.keepAttr = !0, B.forceKeepAttr = void 0, Ge(U.uponSanitizeAttribute, v, B), be = B.attrValue, vo && (Qe === "id" || Qe === "name") && (ft(fe, v), be = ec + be), he && we(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, be)) {
|
|
4753
4753
|
ft(fe, v);
|
|
4754
4754
|
continue;
|
|
4755
4755
|
}
|
|
@@ -4757,9 +4757,9 @@ function ni() {
|
|
|
4757
4757
|
ft(fe, v);
|
|
4758
4758
|
continue;
|
|
4759
4759
|
}
|
|
4760
|
-
if (
|
|
4760
|
+
if (B.forceKeepAttr)
|
|
4761
4761
|
continue;
|
|
4762
|
-
if (!
|
|
4762
|
+
if (!B.keepAttr) {
|
|
4763
4763
|
ft(fe, v);
|
|
4764
4764
|
continue;
|
|
4765
4765
|
}
|
|
@@ -4767,7 +4767,7 @@ function ni() {
|
|
|
4767
4767
|
ft(fe, v);
|
|
4768
4768
|
continue;
|
|
4769
4769
|
}
|
|
4770
|
-
le && Bt([
|
|
4770
|
+
le && Bt([q, D, C], (Mo) => {
|
|
4771
4771
|
be = Rt(be, Mo, " ");
|
|
4772
4772
|
});
|
|
4773
4773
|
const _o = me(v.nodeName);
|
|
@@ -4793,16 +4793,16 @@ function ni() {
|
|
|
4793
4793
|
ft(fe, v);
|
|
4794
4794
|
}
|
|
4795
4795
|
}
|
|
4796
|
-
Ge(
|
|
4796
|
+
Ge(U.afterSanitizeAttributes, v, null);
|
|
4797
4797
|
}, Oo = function(v) {
|
|
4798
4798
|
let I = null;
|
|
4799
|
-
const
|
|
4800
|
-
for (Ge(
|
|
4801
|
-
Ge(
|
|
4802
|
-
Ge(
|
|
4799
|
+
const B = ko(v);
|
|
4800
|
+
for (Ge(U.beforeSanitizeShadowDOM, v, null); I = B.nextNode(); )
|
|
4801
|
+
Ge(U.uponSanitizeShadowNode, I, null), Ao(I), Po(I), I.content instanceof a && Oo(I.content);
|
|
4802
|
+
Ge(U.afterSanitizeShadowDOM, v, null);
|
|
4803
4803
|
};
|
|
4804
4804
|
return t.sanitize = function(G) {
|
|
4805
|
-
let v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null,
|
|
4805
|
+
let v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null, B = null, ue = null, ve = null;
|
|
4806
4806
|
if (ar = !G, ar && (G = "<!-->"), typeof G != "string" && !lr(G))
|
|
4807
4807
|
if (typeof G.toString == "function") {
|
|
4808
4808
|
if (G = G.toString(), typeof G != "string")
|
|
@@ -4818,7 +4818,7 @@ function ni() {
|
|
|
4818
4818
|
throw Vt("root node is forbidden and cannot be sanitized in-place");
|
|
4819
4819
|
}
|
|
4820
4820
|
} else if (G instanceof i)
|
|
4821
|
-
I = No("<!---->"),
|
|
4821
|
+
I = No("<!---->"), B = I.ownerDocument.importNode(G, !0), B.nodeType === Gt.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? I = B : I.appendChild(B);
|
|
4822
4822
|
else {
|
|
4823
4823
|
if (!xt && !le && !Oe && // eslint-disable-next-line unicorn/prefer-includes
|
|
4824
4824
|
G.indexOf("<") === -1)
|
|
@@ -4836,7 +4836,7 @@ function ni() {
|
|
|
4836
4836
|
if (le) {
|
|
4837
4837
|
I.normalize();
|
|
4838
4838
|
let Ne = I.innerHTML;
|
|
4839
|
-
Bt([
|
|
4839
|
+
Bt([q, D, C], (Qe) => {
|
|
4840
4840
|
Ne = Rt(Ne, Qe, " ");
|
|
4841
4841
|
}), I.innerHTML = Ne;
|
|
4842
4842
|
}
|
|
@@ -4845,11 +4845,11 @@ function ni() {
|
|
|
4845
4845
|
ve.appendChild(I.firstChild);
|
|
4846
4846
|
else
|
|
4847
4847
|
ve = I;
|
|
4848
|
-
return (Z.shadowroot || Z.shadowrootmode) && (ve =
|
|
4848
|
+
return (Z.shadowroot || Z.shadowrootmode) && (ve = $.call(r, ve, !0)), ve;
|
|
4849
4849
|
}
|
|
4850
4850
|
let Ce = Oe ? I.outerHTML : I.innerHTML;
|
|
4851
4851
|
return Oe && j["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && we(ti, I.ownerDocument.doctype.name) && (Ce = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
4852
|
-
` + Ce), le && Bt([
|
|
4852
|
+
` + Ce), le && Bt([q, D, C], (Ne) => {
|
|
4853
4853
|
Ce = Rt(Ce, Ne, " ");
|
|
4854
4854
|
}), w && cn ? w.createHTML(Ce) : Ce;
|
|
4855
4855
|
}, t.setConfig = function() {
|
|
@@ -4859,20 +4859,20 @@ function ni() {
|
|
|
4859
4859
|
Et = null, ut = !1;
|
|
4860
4860
|
}, t.isValidAttribute = function(G, v, I) {
|
|
4861
4861
|
Et || ir({});
|
|
4862
|
-
const
|
|
4863
|
-
return To(
|
|
4862
|
+
const B = me(G), ue = me(v);
|
|
4863
|
+
return To(B, ue, I);
|
|
4864
4864
|
}, t.addHook = function(G, v) {
|
|
4865
|
-
typeof v == "function" && Ut(
|
|
4865
|
+
typeof v == "function" && Ut(U[G], v);
|
|
4866
4866
|
}, t.removeHook = function(G, v) {
|
|
4867
4867
|
if (v !== void 0) {
|
|
4868
|
-
const I = Uf(
|
|
4869
|
-
return I === -1 ? void 0 : Vf(
|
|
4868
|
+
const I = Uf(U[G], v);
|
|
4869
|
+
return I === -1 ? void 0 : Vf(U[G], I, 1)[0];
|
|
4870
4870
|
}
|
|
4871
|
-
return la(
|
|
4871
|
+
return la(U[G]);
|
|
4872
4872
|
}, t.removeHooks = function(G) {
|
|
4873
|
-
|
|
4873
|
+
U[G] = [];
|
|
4874
4874
|
}, t.removeAllHooks = function() {
|
|
4875
|
-
|
|
4875
|
+
U = ha();
|
|
4876
4876
|
}, t;
|
|
4877
4877
|
}
|
|
4878
4878
|
var im = ni();
|
|
@@ -5169,7 +5169,7 @@ function um({
|
|
|
5169
5169
|
{
|
|
5170
5170
|
className: p ? "flex flex-wrap gap-x-6 gap-y-3" : "space-y-4",
|
|
5171
5171
|
children: b.map((w) => {
|
|
5172
|
-
const x = typeof w == "object" ? w.value : w, A = typeof w == "object" ? w.label : w, O = typeof w == "object" ? w.description : null, T = `${e.name}-${x}`,
|
|
5172
|
+
const x = typeof w == "object" ? w.value : w, A = typeof w == "object" ? w.label : w, O = typeof w == "object" ? w.description : null, T = `${e.name}-${x}`, z = k.includes(x);
|
|
5173
5173
|
return /* @__PURE__ */ L(
|
|
5174
5174
|
"div",
|
|
5175
5175
|
{
|
|
@@ -5182,8 +5182,8 @@ function um({
|
|
|
5182
5182
|
...g,
|
|
5183
5183
|
type: "checkbox",
|
|
5184
5184
|
id: T,
|
|
5185
|
-
checked:
|
|
5186
|
-
onChange: (
|
|
5185
|
+
checked: z,
|
|
5186
|
+
onChange: ($) => E(x, $.target.checked),
|
|
5187
5187
|
onBlur: () => r(e.name),
|
|
5188
5188
|
disabled: m,
|
|
5189
5189
|
className: `${S} ${!m && "cursor-pointer hover:border-primary/50"} ${o ? "border-destructive ring-destructive/20" : "border-input"}`
|
|
@@ -7063,7 +7063,7 @@ const Ip = (e, t) => {
|
|
|
7063
7063
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
7064
7064
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7065
7065
|
ah.test(e) && !sh.test(e)
|
|
7066
|
-
), ho = () => !1, uh = (e) => ih.test(e), dh = (e) => ch.test(e), fh = (e) => !W(e) && !
|
|
7066
|
+
), ho = () => !1, uh = (e) => ih.test(e), dh = (e) => ch.test(e), fh = (e) => !W(e) && !H(e), mh = (e) => lt(e, Ti, ho), W = (e) => Ci.test(e), pt = (e) => lt(e, Ri, lh), ka = (e) => lt(e, xh, K), ph = (e) => lt(e, Oi, Ni), hh = (e) => lt(e, Pi, ho), Aa = (e) => lt(e, ki, ho), gh = (e) => lt(e, Ai, dh), wn = (e) => lt(e, _i, uh), H = (e) => Ei.test(e), Kt = (e) => wt(e, Ri), bh = (e) => wt(e, Pi), Ta = (e) => wt(e, ki), vh = (e) => wt(e, Ti), yh = (e) => wt(e, Ai), xn = (e) => wt(e, _i, !0), wh = (e) => wt(e, Oi, !0), lt = (e, t, n) => {
|
|
7067
7067
|
const r = Ci.exec(e);
|
|
7068
7068
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
7069
7069
|
}, wt = (e, t, n = !1) => {
|
|
@@ -7088,30 +7088,30 @@ const Ip = (e, t) => {
|
|
|
7088
7088
|
"bottom-left",
|
|
7089
7089
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
7090
7090
|
"left-bottom"
|
|
7091
|
-
], x = () => [...w(),
|
|
7092
|
-
span: ["full", et,
|
|
7093
|
-
}, et,
|
|
7094
|
-
position: [
|
|
7091
|
+
], x = () => [...w(), H, W], A = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], T = () => [H, W, c], z = () => [Je, "full", "auto", ...T()], $ = () => [et, "none", "subgrid", H, W], U = () => ["auto", {
|
|
7092
|
+
span: ["full", et, H, W]
|
|
7093
|
+
}, et, H, W], q = () => [et, "auto", H, W], D = () => ["auto", "min", "max", "fr", H, W], C = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], R = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...T()], F = () => [Je, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], N = () => [Je, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...T()], _ = () => [Je, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...T()], M = () => [e, H, W], j = () => [...w(), Ta, Aa, {
|
|
7094
|
+
position: [H, W]
|
|
7095
7095
|
}], ae = () => ["no-repeat", {
|
|
7096
7096
|
repeat: ["", "x", "y", "space", "round"]
|
|
7097
7097
|
}], Z = () => ["auto", "cover", "contain", vh, mh, {
|
|
7098
|
-
size: [
|
|
7099
|
-
}], ge = () => [Rr, Kt, pt],
|
|
7098
|
+
size: [H, W]
|
|
7099
|
+
}], ge = () => [Rr, Kt, pt], Y = () => [
|
|
7100
7100
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7101
7101
|
"",
|
|
7102
7102
|
"none",
|
|
7103
7103
|
"full",
|
|
7104
7104
|
l,
|
|
7105
|
-
|
|
7105
|
+
H,
|
|
7106
7106
|
W
|
|
7107
7107
|
], re = () => ["", K, Kt, pt], V = () => ["solid", "dashed", "dotted", "double"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => [K, Rr, Ta, Aa], te = () => [
|
|
7108
7108
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7109
7109
|
"",
|
|
7110
7110
|
"none",
|
|
7111
7111
|
b,
|
|
7112
|
-
|
|
7112
|
+
H,
|
|
7113
7113
|
W
|
|
7114
|
-
], ne = () => ["none", K,
|
|
7114
|
+
], ne = () => ["none", K, H, W], se = () => ["none", K, H, W], le = () => [K, H, W], he = () => [Je, "full", ...T()];
|
|
7115
7115
|
return {
|
|
7116
7116
|
cacheSize: 500,
|
|
7117
7117
|
theme: {
|
|
@@ -7144,7 +7144,7 @@ const Ip = (e, t) => {
|
|
|
7144
7144
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
7145
7145
|
*/
|
|
7146
7146
|
aspect: [{
|
|
7147
|
-
aspect: ["auto", "square", Je, W,
|
|
7147
|
+
aspect: ["auto", "square", Je, W, H, y]
|
|
7148
7148
|
}],
|
|
7149
7149
|
/**
|
|
7150
7150
|
* Container
|
|
@@ -7157,7 +7157,7 @@ const Ip = (e, t) => {
|
|
|
7157
7157
|
* @see https://tailwindcss.com/docs/columns
|
|
7158
7158
|
*/
|
|
7159
7159
|
columns: [{
|
|
7160
|
-
columns: [K, W,
|
|
7160
|
+
columns: [K, W, H, i]
|
|
7161
7161
|
}],
|
|
7162
7162
|
/**
|
|
7163
7163
|
* Break After
|
|
@@ -7289,21 +7289,21 @@ const Ip = (e, t) => {
|
|
|
7289
7289
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7290
7290
|
*/
|
|
7291
7291
|
inset: [{
|
|
7292
|
-
inset:
|
|
7292
|
+
inset: z()
|
|
7293
7293
|
}],
|
|
7294
7294
|
/**
|
|
7295
7295
|
* Inset Inline
|
|
7296
7296
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7297
7297
|
*/
|
|
7298
7298
|
"inset-x": [{
|
|
7299
|
-
"inset-x":
|
|
7299
|
+
"inset-x": z()
|
|
7300
7300
|
}],
|
|
7301
7301
|
/**
|
|
7302
7302
|
* Inset Block
|
|
7303
7303
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7304
7304
|
*/
|
|
7305
7305
|
"inset-y": [{
|
|
7306
|
-
"inset-y":
|
|
7306
|
+
"inset-y": z()
|
|
7307
7307
|
}],
|
|
7308
7308
|
/**
|
|
7309
7309
|
* Inset Inline Start
|
|
@@ -7311,12 +7311,12 @@ const Ip = (e, t) => {
|
|
|
7311
7311
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
7312
7312
|
*/
|
|
7313
7313
|
start: [{
|
|
7314
|
-
"inset-s":
|
|
7314
|
+
"inset-s": z(),
|
|
7315
7315
|
/**
|
|
7316
7316
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
7317
7317
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
7318
7318
|
*/
|
|
7319
|
-
start:
|
|
7319
|
+
start: z()
|
|
7320
7320
|
}],
|
|
7321
7321
|
/**
|
|
7322
7322
|
* Inset Inline End
|
|
@@ -7324,54 +7324,54 @@ const Ip = (e, t) => {
|
|
|
7324
7324
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
7325
7325
|
*/
|
|
7326
7326
|
end: [{
|
|
7327
|
-
"inset-e":
|
|
7327
|
+
"inset-e": z(),
|
|
7328
7328
|
/**
|
|
7329
7329
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
7330
7330
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
7331
7331
|
*/
|
|
7332
|
-
end:
|
|
7332
|
+
end: z()
|
|
7333
7333
|
}],
|
|
7334
7334
|
/**
|
|
7335
7335
|
* Inset Block Start
|
|
7336
7336
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7337
7337
|
*/
|
|
7338
7338
|
"inset-bs": [{
|
|
7339
|
-
"inset-bs":
|
|
7339
|
+
"inset-bs": z()
|
|
7340
7340
|
}],
|
|
7341
7341
|
/**
|
|
7342
7342
|
* Inset Block End
|
|
7343
7343
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7344
7344
|
*/
|
|
7345
7345
|
"inset-be": [{
|
|
7346
|
-
"inset-be":
|
|
7346
|
+
"inset-be": z()
|
|
7347
7347
|
}],
|
|
7348
7348
|
/**
|
|
7349
7349
|
* Top
|
|
7350
7350
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7351
7351
|
*/
|
|
7352
7352
|
top: [{
|
|
7353
|
-
top:
|
|
7353
|
+
top: z()
|
|
7354
7354
|
}],
|
|
7355
7355
|
/**
|
|
7356
7356
|
* Right
|
|
7357
7357
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7358
7358
|
*/
|
|
7359
7359
|
right: [{
|
|
7360
|
-
right:
|
|
7360
|
+
right: z()
|
|
7361
7361
|
}],
|
|
7362
7362
|
/**
|
|
7363
7363
|
* Bottom
|
|
7364
7364
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7365
7365
|
*/
|
|
7366
7366
|
bottom: [{
|
|
7367
|
-
bottom:
|
|
7367
|
+
bottom: z()
|
|
7368
7368
|
}],
|
|
7369
7369
|
/**
|
|
7370
7370
|
* Left
|
|
7371
7371
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
7372
7372
|
*/
|
|
7373
7373
|
left: [{
|
|
7374
|
-
left:
|
|
7374
|
+
left: z()
|
|
7375
7375
|
}],
|
|
7376
7376
|
/**
|
|
7377
7377
|
* Visibility
|
|
@@ -7383,7 +7383,7 @@ const Ip = (e, t) => {
|
|
|
7383
7383
|
* @see https://tailwindcss.com/docs/z-index
|
|
7384
7384
|
*/
|
|
7385
7385
|
z: [{
|
|
7386
|
-
z: [et, "auto",
|
|
7386
|
+
z: [et, "auto", H, W]
|
|
7387
7387
|
}],
|
|
7388
7388
|
// ------------------------
|
|
7389
7389
|
// --- Flexbox and Grid ---
|
|
@@ -7421,77 +7421,77 @@ const Ip = (e, t) => {
|
|
|
7421
7421
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
7422
7422
|
*/
|
|
7423
7423
|
grow: [{
|
|
7424
|
-
grow: ["", K,
|
|
7424
|
+
grow: ["", K, H, W]
|
|
7425
7425
|
}],
|
|
7426
7426
|
/**
|
|
7427
7427
|
* Flex Shrink
|
|
7428
7428
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
7429
7429
|
*/
|
|
7430
7430
|
shrink: [{
|
|
7431
|
-
shrink: ["", K,
|
|
7431
|
+
shrink: ["", K, H, W]
|
|
7432
7432
|
}],
|
|
7433
7433
|
/**
|
|
7434
7434
|
* Order
|
|
7435
7435
|
* @see https://tailwindcss.com/docs/order
|
|
7436
7436
|
*/
|
|
7437
7437
|
order: [{
|
|
7438
|
-
order: [et, "first", "last", "none",
|
|
7438
|
+
order: [et, "first", "last", "none", H, W]
|
|
7439
7439
|
}],
|
|
7440
7440
|
/**
|
|
7441
7441
|
* Grid Template Columns
|
|
7442
7442
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
7443
7443
|
*/
|
|
7444
7444
|
"grid-cols": [{
|
|
7445
|
-
"grid-cols":
|
|
7445
|
+
"grid-cols": $()
|
|
7446
7446
|
}],
|
|
7447
7447
|
/**
|
|
7448
7448
|
* Grid Column Start / End
|
|
7449
7449
|
* @see https://tailwindcss.com/docs/grid-column
|
|
7450
7450
|
*/
|
|
7451
7451
|
"col-start-end": [{
|
|
7452
|
-
col:
|
|
7452
|
+
col: U()
|
|
7453
7453
|
}],
|
|
7454
7454
|
/**
|
|
7455
7455
|
* Grid Column Start
|
|
7456
7456
|
* @see https://tailwindcss.com/docs/grid-column
|
|
7457
7457
|
*/
|
|
7458
7458
|
"col-start": [{
|
|
7459
|
-
"col-start":
|
|
7459
|
+
"col-start": q()
|
|
7460
7460
|
}],
|
|
7461
7461
|
/**
|
|
7462
7462
|
* Grid Column End
|
|
7463
7463
|
* @see https://tailwindcss.com/docs/grid-column
|
|
7464
7464
|
*/
|
|
7465
7465
|
"col-end": [{
|
|
7466
|
-
"col-end":
|
|
7466
|
+
"col-end": q()
|
|
7467
7467
|
}],
|
|
7468
7468
|
/**
|
|
7469
7469
|
* Grid Template Rows
|
|
7470
7470
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
7471
7471
|
*/
|
|
7472
7472
|
"grid-rows": [{
|
|
7473
|
-
"grid-rows":
|
|
7473
|
+
"grid-rows": $()
|
|
7474
7474
|
}],
|
|
7475
7475
|
/**
|
|
7476
7476
|
* Grid Row Start / End
|
|
7477
7477
|
* @see https://tailwindcss.com/docs/grid-row
|
|
7478
7478
|
*/
|
|
7479
7479
|
"row-start-end": [{
|
|
7480
|
-
row:
|
|
7480
|
+
row: U()
|
|
7481
7481
|
}],
|
|
7482
7482
|
/**
|
|
7483
7483
|
* Grid Row Start
|
|
7484
7484
|
* @see https://tailwindcss.com/docs/grid-row
|
|
7485
7485
|
*/
|
|
7486
7486
|
"row-start": [{
|
|
7487
|
-
"row-start":
|
|
7487
|
+
"row-start": q()
|
|
7488
7488
|
}],
|
|
7489
7489
|
/**
|
|
7490
7490
|
* Grid Row End
|
|
7491
7491
|
* @see https://tailwindcss.com/docs/grid-row
|
|
7492
7492
|
*/
|
|
7493
7493
|
"row-end": [{
|
|
7494
|
-
"row-end":
|
|
7494
|
+
"row-end": q()
|
|
7495
7495
|
}],
|
|
7496
7496
|
/**
|
|
7497
7497
|
* Grid Auto Flow
|
|
@@ -7505,14 +7505,14 @@ const Ip = (e, t) => {
|
|
|
7505
7505
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
7506
7506
|
*/
|
|
7507
7507
|
"auto-cols": [{
|
|
7508
|
-
"auto-cols":
|
|
7508
|
+
"auto-cols": D()
|
|
7509
7509
|
}],
|
|
7510
7510
|
/**
|
|
7511
7511
|
* Grid Auto Rows
|
|
7512
7512
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
7513
7513
|
*/
|
|
7514
7514
|
"auto-rows": [{
|
|
7515
|
-
"auto-rows":
|
|
7515
|
+
"auto-rows": D()
|
|
7516
7516
|
}],
|
|
7517
7517
|
/**
|
|
7518
7518
|
* Gap
|
|
@@ -7975,14 +7975,14 @@ const Ip = (e, t) => {
|
|
|
7975
7975
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
7976
7976
|
*/
|
|
7977
7977
|
tracking: [{
|
|
7978
|
-
tracking: [o,
|
|
7978
|
+
tracking: [o, H, W]
|
|
7979
7979
|
}],
|
|
7980
7980
|
/**
|
|
7981
7981
|
* Line Clamp
|
|
7982
7982
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
7983
7983
|
*/
|
|
7984
7984
|
"line-clamp": [{
|
|
7985
|
-
"line-clamp": [K, "none",
|
|
7985
|
+
"line-clamp": [K, "none", H, ka]
|
|
7986
7986
|
}],
|
|
7987
7987
|
/**
|
|
7988
7988
|
* Line Height
|
|
@@ -8000,7 +8000,7 @@ const Ip = (e, t) => {
|
|
|
8000
8000
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
8001
8001
|
*/
|
|
8002
8002
|
"list-image": [{
|
|
8003
|
-
"list-image": ["none",
|
|
8003
|
+
"list-image": ["none", H, W]
|
|
8004
8004
|
}],
|
|
8005
8005
|
/**
|
|
8006
8006
|
* List Style Position
|
|
@@ -8014,7 +8014,7 @@ const Ip = (e, t) => {
|
|
|
8014
8014
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
8015
8015
|
*/
|
|
8016
8016
|
"list-style-type": [{
|
|
8017
|
-
list: ["disc", "decimal", "none",
|
|
8017
|
+
list: ["disc", "decimal", "none", H, W]
|
|
8018
8018
|
}],
|
|
8019
8019
|
/**
|
|
8020
8020
|
* Text Alignment
|
|
@@ -8029,14 +8029,14 @@ const Ip = (e, t) => {
|
|
|
8029
8029
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
8030
8030
|
*/
|
|
8031
8031
|
"placeholder-color": [{
|
|
8032
|
-
placeholder:
|
|
8032
|
+
placeholder: M()
|
|
8033
8033
|
}],
|
|
8034
8034
|
/**
|
|
8035
8035
|
* Text Color
|
|
8036
8036
|
* @see https://tailwindcss.com/docs/text-color
|
|
8037
8037
|
*/
|
|
8038
8038
|
"text-color": [{
|
|
8039
|
-
text:
|
|
8039
|
+
text: M()
|
|
8040
8040
|
}],
|
|
8041
8041
|
/**
|
|
8042
8042
|
* Text Decoration
|
|
@@ -8055,21 +8055,21 @@ const Ip = (e, t) => {
|
|
|
8055
8055
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
8056
8056
|
*/
|
|
8057
8057
|
"text-decoration-thickness": [{
|
|
8058
|
-
decoration: [K, "from-font", "auto",
|
|
8058
|
+
decoration: [K, "from-font", "auto", H, pt]
|
|
8059
8059
|
}],
|
|
8060
8060
|
/**
|
|
8061
8061
|
* Text Decoration Color
|
|
8062
8062
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
8063
8063
|
*/
|
|
8064
8064
|
"text-decoration-color": [{
|
|
8065
|
-
decoration:
|
|
8065
|
+
decoration: M()
|
|
8066
8066
|
}],
|
|
8067
8067
|
/**
|
|
8068
8068
|
* Text Underline Offset
|
|
8069
8069
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
8070
8070
|
*/
|
|
8071
8071
|
"underline-offset": [{
|
|
8072
|
-
"underline-offset": [K, "auto",
|
|
8072
|
+
"underline-offset": [K, "auto", H, W]
|
|
8073
8073
|
}],
|
|
8074
8074
|
/**
|
|
8075
8075
|
* Text Transform
|
|
@@ -8100,7 +8100,7 @@ const Ip = (e, t) => {
|
|
|
8100
8100
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
8101
8101
|
*/
|
|
8102
8102
|
"vertical-align": [{
|
|
8103
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
8103
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", H, W]
|
|
8104
8104
|
}],
|
|
8105
8105
|
/**
|
|
8106
8106
|
* Whitespace
|
|
@@ -8135,7 +8135,7 @@ const Ip = (e, t) => {
|
|
|
8135
8135
|
* @see https://tailwindcss.com/docs/content
|
|
8136
8136
|
*/
|
|
8137
8137
|
content: [{
|
|
8138
|
-
content: ["none",
|
|
8138
|
+
content: ["none", H, W]
|
|
8139
8139
|
}],
|
|
8140
8140
|
// -------------------
|
|
8141
8141
|
// --- Backgrounds ---
|
|
@@ -8190,9 +8190,9 @@ const Ip = (e, t) => {
|
|
|
8190
8190
|
bg: ["none", {
|
|
8191
8191
|
linear: [{
|
|
8192
8192
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
8193
|
-
}, et,
|
|
8194
|
-
radial: ["",
|
|
8195
|
-
conic: [et,
|
|
8193
|
+
}, et, H, W],
|
|
8194
|
+
radial: ["", H, W],
|
|
8195
|
+
conic: [et, H, W]
|
|
8196
8196
|
}, yh, gh]
|
|
8197
8197
|
}],
|
|
8198
8198
|
/**
|
|
@@ -8200,7 +8200,7 @@ const Ip = (e, t) => {
|
|
|
8200
8200
|
* @see https://tailwindcss.com/docs/background-color
|
|
8201
8201
|
*/
|
|
8202
8202
|
"bg-color": [{
|
|
8203
|
-
bg:
|
|
8203
|
+
bg: M()
|
|
8204
8204
|
}],
|
|
8205
8205
|
/**
|
|
8206
8206
|
* Gradient Color Stops From Position
|
|
@@ -8228,21 +8228,21 @@ const Ip = (e, t) => {
|
|
|
8228
8228
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
8229
8229
|
*/
|
|
8230
8230
|
"gradient-from": [{
|
|
8231
|
-
from:
|
|
8231
|
+
from: M()
|
|
8232
8232
|
}],
|
|
8233
8233
|
/**
|
|
8234
8234
|
* Gradient Color Stops Via
|
|
8235
8235
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
8236
8236
|
*/
|
|
8237
8237
|
"gradient-via": [{
|
|
8238
|
-
via:
|
|
8238
|
+
via: M()
|
|
8239
8239
|
}],
|
|
8240
8240
|
/**
|
|
8241
8241
|
* Gradient Color Stops To
|
|
8242
8242
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
8243
8243
|
*/
|
|
8244
8244
|
"gradient-to": [{
|
|
8245
|
-
to:
|
|
8245
|
+
to: M()
|
|
8246
8246
|
}],
|
|
8247
8247
|
// ---------------
|
|
8248
8248
|
// --- Borders ---
|
|
@@ -8252,105 +8252,105 @@ const Ip = (e, t) => {
|
|
|
8252
8252
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8253
8253
|
*/
|
|
8254
8254
|
rounded: [{
|
|
8255
|
-
rounded:
|
|
8255
|
+
rounded: Y()
|
|
8256
8256
|
}],
|
|
8257
8257
|
/**
|
|
8258
8258
|
* Border Radius Start
|
|
8259
8259
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8260
8260
|
*/
|
|
8261
8261
|
"rounded-s": [{
|
|
8262
|
-
"rounded-s":
|
|
8262
|
+
"rounded-s": Y()
|
|
8263
8263
|
}],
|
|
8264
8264
|
/**
|
|
8265
8265
|
* Border Radius End
|
|
8266
8266
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8267
8267
|
*/
|
|
8268
8268
|
"rounded-e": [{
|
|
8269
|
-
"rounded-e":
|
|
8269
|
+
"rounded-e": Y()
|
|
8270
8270
|
}],
|
|
8271
8271
|
/**
|
|
8272
8272
|
* Border Radius Top
|
|
8273
8273
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8274
8274
|
*/
|
|
8275
8275
|
"rounded-t": [{
|
|
8276
|
-
"rounded-t":
|
|
8276
|
+
"rounded-t": Y()
|
|
8277
8277
|
}],
|
|
8278
8278
|
/**
|
|
8279
8279
|
* Border Radius Right
|
|
8280
8280
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8281
8281
|
*/
|
|
8282
8282
|
"rounded-r": [{
|
|
8283
|
-
"rounded-r":
|
|
8283
|
+
"rounded-r": Y()
|
|
8284
8284
|
}],
|
|
8285
8285
|
/**
|
|
8286
8286
|
* Border Radius Bottom
|
|
8287
8287
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8288
8288
|
*/
|
|
8289
8289
|
"rounded-b": [{
|
|
8290
|
-
"rounded-b":
|
|
8290
|
+
"rounded-b": Y()
|
|
8291
8291
|
}],
|
|
8292
8292
|
/**
|
|
8293
8293
|
* Border Radius Left
|
|
8294
8294
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8295
8295
|
*/
|
|
8296
8296
|
"rounded-l": [{
|
|
8297
|
-
"rounded-l":
|
|
8297
|
+
"rounded-l": Y()
|
|
8298
8298
|
}],
|
|
8299
8299
|
/**
|
|
8300
8300
|
* Border Radius Start Start
|
|
8301
8301
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8302
8302
|
*/
|
|
8303
8303
|
"rounded-ss": [{
|
|
8304
|
-
"rounded-ss":
|
|
8304
|
+
"rounded-ss": Y()
|
|
8305
8305
|
}],
|
|
8306
8306
|
/**
|
|
8307
8307
|
* Border Radius Start End
|
|
8308
8308
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8309
8309
|
*/
|
|
8310
8310
|
"rounded-se": [{
|
|
8311
|
-
"rounded-se":
|
|
8311
|
+
"rounded-se": Y()
|
|
8312
8312
|
}],
|
|
8313
8313
|
/**
|
|
8314
8314
|
* Border Radius End End
|
|
8315
8315
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8316
8316
|
*/
|
|
8317
8317
|
"rounded-ee": [{
|
|
8318
|
-
"rounded-ee":
|
|
8318
|
+
"rounded-ee": Y()
|
|
8319
8319
|
}],
|
|
8320
8320
|
/**
|
|
8321
8321
|
* Border Radius End Start
|
|
8322
8322
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8323
8323
|
*/
|
|
8324
8324
|
"rounded-es": [{
|
|
8325
|
-
"rounded-es":
|
|
8325
|
+
"rounded-es": Y()
|
|
8326
8326
|
}],
|
|
8327
8327
|
/**
|
|
8328
8328
|
* Border Radius Top Left
|
|
8329
8329
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8330
8330
|
*/
|
|
8331
8331
|
"rounded-tl": [{
|
|
8332
|
-
"rounded-tl":
|
|
8332
|
+
"rounded-tl": Y()
|
|
8333
8333
|
}],
|
|
8334
8334
|
/**
|
|
8335
8335
|
* Border Radius Top Right
|
|
8336
8336
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8337
8337
|
*/
|
|
8338
8338
|
"rounded-tr": [{
|
|
8339
|
-
"rounded-tr":
|
|
8339
|
+
"rounded-tr": Y()
|
|
8340
8340
|
}],
|
|
8341
8341
|
/**
|
|
8342
8342
|
* Border Radius Bottom Right
|
|
8343
8343
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8344
8344
|
*/
|
|
8345
8345
|
"rounded-br": [{
|
|
8346
|
-
"rounded-br":
|
|
8346
|
+
"rounded-br": Y()
|
|
8347
8347
|
}],
|
|
8348
8348
|
/**
|
|
8349
8349
|
* Border Radius Bottom Left
|
|
8350
8350
|
* @see https://tailwindcss.com/docs/border-radius
|
|
8351
8351
|
*/
|
|
8352
8352
|
"rounded-bl": [{
|
|
8353
|
-
"rounded-bl":
|
|
8353
|
+
"rounded-bl": Y()
|
|
8354
8354
|
}],
|
|
8355
8355
|
/**
|
|
8356
8356
|
* Border Width
|
|
@@ -8472,84 +8472,84 @@ const Ip = (e, t) => {
|
|
|
8472
8472
|
* @see https://tailwindcss.com/docs/border-color
|
|
8473
8473
|
*/
|
|
8474
8474
|
"border-color": [{
|
|
8475
|
-
border:
|
|
8475
|
+
border: M()
|
|
8476
8476
|
}],
|
|
8477
8477
|
/**
|
|
8478
8478
|
* Border Color Inline
|
|
8479
8479
|
* @see https://tailwindcss.com/docs/border-color
|
|
8480
8480
|
*/
|
|
8481
8481
|
"border-color-x": [{
|
|
8482
|
-
"border-x":
|
|
8482
|
+
"border-x": M()
|
|
8483
8483
|
}],
|
|
8484
8484
|
/**
|
|
8485
8485
|
* Border Color Block
|
|
8486
8486
|
* @see https://tailwindcss.com/docs/border-color
|
|
8487
8487
|
*/
|
|
8488
8488
|
"border-color-y": [{
|
|
8489
|
-
"border-y":
|
|
8489
|
+
"border-y": M()
|
|
8490
8490
|
}],
|
|
8491
8491
|
/**
|
|
8492
8492
|
* Border Color Inline Start
|
|
8493
8493
|
* @see https://tailwindcss.com/docs/border-color
|
|
8494
8494
|
*/
|
|
8495
8495
|
"border-color-s": [{
|
|
8496
|
-
"border-s":
|
|
8496
|
+
"border-s": M()
|
|
8497
8497
|
}],
|
|
8498
8498
|
/**
|
|
8499
8499
|
* Border Color Inline End
|
|
8500
8500
|
* @see https://tailwindcss.com/docs/border-color
|
|
8501
8501
|
*/
|
|
8502
8502
|
"border-color-e": [{
|
|
8503
|
-
"border-e":
|
|
8503
|
+
"border-e": M()
|
|
8504
8504
|
}],
|
|
8505
8505
|
/**
|
|
8506
8506
|
* Border Color Block Start
|
|
8507
8507
|
* @see https://tailwindcss.com/docs/border-color
|
|
8508
8508
|
*/
|
|
8509
8509
|
"border-color-bs": [{
|
|
8510
|
-
"border-bs":
|
|
8510
|
+
"border-bs": M()
|
|
8511
8511
|
}],
|
|
8512
8512
|
/**
|
|
8513
8513
|
* Border Color Block End
|
|
8514
8514
|
* @see https://tailwindcss.com/docs/border-color
|
|
8515
8515
|
*/
|
|
8516
8516
|
"border-color-be": [{
|
|
8517
|
-
"border-be":
|
|
8517
|
+
"border-be": M()
|
|
8518
8518
|
}],
|
|
8519
8519
|
/**
|
|
8520
8520
|
* Border Color Top
|
|
8521
8521
|
* @see https://tailwindcss.com/docs/border-color
|
|
8522
8522
|
*/
|
|
8523
8523
|
"border-color-t": [{
|
|
8524
|
-
"border-t":
|
|
8524
|
+
"border-t": M()
|
|
8525
8525
|
}],
|
|
8526
8526
|
/**
|
|
8527
8527
|
* Border Color Right
|
|
8528
8528
|
* @see https://tailwindcss.com/docs/border-color
|
|
8529
8529
|
*/
|
|
8530
8530
|
"border-color-r": [{
|
|
8531
|
-
"border-r":
|
|
8531
|
+
"border-r": M()
|
|
8532
8532
|
}],
|
|
8533
8533
|
/**
|
|
8534
8534
|
* Border Color Bottom
|
|
8535
8535
|
* @see https://tailwindcss.com/docs/border-color
|
|
8536
8536
|
*/
|
|
8537
8537
|
"border-color-b": [{
|
|
8538
|
-
"border-b":
|
|
8538
|
+
"border-b": M()
|
|
8539
8539
|
}],
|
|
8540
8540
|
/**
|
|
8541
8541
|
* Border Color Left
|
|
8542
8542
|
* @see https://tailwindcss.com/docs/border-color
|
|
8543
8543
|
*/
|
|
8544
8544
|
"border-color-l": [{
|
|
8545
|
-
"border-l":
|
|
8545
|
+
"border-l": M()
|
|
8546
8546
|
}],
|
|
8547
8547
|
/**
|
|
8548
8548
|
* Divide Color
|
|
8549
8549
|
* @see https://tailwindcss.com/docs/divide-color
|
|
8550
8550
|
*/
|
|
8551
8551
|
"divide-color": [{
|
|
8552
|
-
divide:
|
|
8552
|
+
divide: M()
|
|
8553
8553
|
}],
|
|
8554
8554
|
/**
|
|
8555
8555
|
* Outline Style
|
|
@@ -8563,7 +8563,7 @@ const Ip = (e, t) => {
|
|
|
8563
8563
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
8564
8564
|
*/
|
|
8565
8565
|
"outline-offset": [{
|
|
8566
|
-
"outline-offset": [K,
|
|
8566
|
+
"outline-offset": [K, H, W]
|
|
8567
8567
|
}],
|
|
8568
8568
|
/**
|
|
8569
8569
|
* Outline Width
|
|
@@ -8577,7 +8577,7 @@ const Ip = (e, t) => {
|
|
|
8577
8577
|
* @see https://tailwindcss.com/docs/outline-color
|
|
8578
8578
|
*/
|
|
8579
8579
|
"outline-color": [{
|
|
8580
|
-
outline:
|
|
8580
|
+
outline: M()
|
|
8581
8581
|
}],
|
|
8582
8582
|
// ---------------
|
|
8583
8583
|
// --- Effects ---
|
|
@@ -8601,7 +8601,7 @@ const Ip = (e, t) => {
|
|
|
8601
8601
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
8602
8602
|
*/
|
|
8603
8603
|
"shadow-color": [{
|
|
8604
|
-
shadow:
|
|
8604
|
+
shadow: M()
|
|
8605
8605
|
}],
|
|
8606
8606
|
/**
|
|
8607
8607
|
* Inset Box Shadow
|
|
@@ -8615,7 +8615,7 @@ const Ip = (e, t) => {
|
|
|
8615
8615
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
8616
8616
|
*/
|
|
8617
8617
|
"inset-shadow-color": [{
|
|
8618
|
-
"inset-shadow":
|
|
8618
|
+
"inset-shadow": M()
|
|
8619
8619
|
}],
|
|
8620
8620
|
/**
|
|
8621
8621
|
* Ring Width
|
|
@@ -8636,7 +8636,7 @@ const Ip = (e, t) => {
|
|
|
8636
8636
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
8637
8637
|
*/
|
|
8638
8638
|
"ring-color": [{
|
|
8639
|
-
ring:
|
|
8639
|
+
ring: M()
|
|
8640
8640
|
}],
|
|
8641
8641
|
/**
|
|
8642
8642
|
* Ring Offset Width
|
|
@@ -8654,7 +8654,7 @@ const Ip = (e, t) => {
|
|
|
8654
8654
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
8655
8655
|
*/
|
|
8656
8656
|
"ring-offset-color": [{
|
|
8657
|
-
"ring-offset":
|
|
8657
|
+
"ring-offset": M()
|
|
8658
8658
|
}],
|
|
8659
8659
|
/**
|
|
8660
8660
|
* Inset Ring Width
|
|
@@ -8668,7 +8668,7 @@ const Ip = (e, t) => {
|
|
|
8668
8668
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
8669
8669
|
*/
|
|
8670
8670
|
"inset-ring-color": [{
|
|
8671
|
-
"inset-ring":
|
|
8671
|
+
"inset-ring": M()
|
|
8672
8672
|
}],
|
|
8673
8673
|
/**
|
|
8674
8674
|
* Text Shadow
|
|
@@ -8682,14 +8682,14 @@ const Ip = (e, t) => {
|
|
|
8682
8682
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
8683
8683
|
*/
|
|
8684
8684
|
"text-shadow-color": [{
|
|
8685
|
-
"text-shadow":
|
|
8685
|
+
"text-shadow": M()
|
|
8686
8686
|
}],
|
|
8687
8687
|
/**
|
|
8688
8688
|
* Opacity
|
|
8689
8689
|
* @see https://tailwindcss.com/docs/opacity
|
|
8690
8690
|
*/
|
|
8691
8691
|
opacity: [{
|
|
8692
|
-
opacity: [K,
|
|
8692
|
+
opacity: [K, H, W]
|
|
8693
8693
|
}],
|
|
8694
8694
|
/**
|
|
8695
8695
|
* Mix Blend Mode
|
|
@@ -8733,10 +8733,10 @@ const Ip = (e, t) => {
|
|
|
8733
8733
|
"mask-linear-to": Q()
|
|
8734
8734
|
}],
|
|
8735
8735
|
"mask-image-linear-from-color": [{
|
|
8736
|
-
"mask-linear-from":
|
|
8736
|
+
"mask-linear-from": M()
|
|
8737
8737
|
}],
|
|
8738
8738
|
"mask-image-linear-to-color": [{
|
|
8739
|
-
"mask-linear-to":
|
|
8739
|
+
"mask-linear-to": M()
|
|
8740
8740
|
}],
|
|
8741
8741
|
"mask-image-t-from-pos": [{
|
|
8742
8742
|
"mask-t-from": Q()
|
|
@@ -8745,10 +8745,10 @@ const Ip = (e, t) => {
|
|
|
8745
8745
|
"mask-t-to": Q()
|
|
8746
8746
|
}],
|
|
8747
8747
|
"mask-image-t-from-color": [{
|
|
8748
|
-
"mask-t-from":
|
|
8748
|
+
"mask-t-from": M()
|
|
8749
8749
|
}],
|
|
8750
8750
|
"mask-image-t-to-color": [{
|
|
8751
|
-
"mask-t-to":
|
|
8751
|
+
"mask-t-to": M()
|
|
8752
8752
|
}],
|
|
8753
8753
|
"mask-image-r-from-pos": [{
|
|
8754
8754
|
"mask-r-from": Q()
|
|
@@ -8757,10 +8757,10 @@ const Ip = (e, t) => {
|
|
|
8757
8757
|
"mask-r-to": Q()
|
|
8758
8758
|
}],
|
|
8759
8759
|
"mask-image-r-from-color": [{
|
|
8760
|
-
"mask-r-from":
|
|
8760
|
+
"mask-r-from": M()
|
|
8761
8761
|
}],
|
|
8762
8762
|
"mask-image-r-to-color": [{
|
|
8763
|
-
"mask-r-to":
|
|
8763
|
+
"mask-r-to": M()
|
|
8764
8764
|
}],
|
|
8765
8765
|
"mask-image-b-from-pos": [{
|
|
8766
8766
|
"mask-b-from": Q()
|
|
@@ -8769,10 +8769,10 @@ const Ip = (e, t) => {
|
|
|
8769
8769
|
"mask-b-to": Q()
|
|
8770
8770
|
}],
|
|
8771
8771
|
"mask-image-b-from-color": [{
|
|
8772
|
-
"mask-b-from":
|
|
8772
|
+
"mask-b-from": M()
|
|
8773
8773
|
}],
|
|
8774
8774
|
"mask-image-b-to-color": [{
|
|
8775
|
-
"mask-b-to":
|
|
8775
|
+
"mask-b-to": M()
|
|
8776
8776
|
}],
|
|
8777
8777
|
"mask-image-l-from-pos": [{
|
|
8778
8778
|
"mask-l-from": Q()
|
|
@@ -8781,10 +8781,10 @@ const Ip = (e, t) => {
|
|
|
8781
8781
|
"mask-l-to": Q()
|
|
8782
8782
|
}],
|
|
8783
8783
|
"mask-image-l-from-color": [{
|
|
8784
|
-
"mask-l-from":
|
|
8784
|
+
"mask-l-from": M()
|
|
8785
8785
|
}],
|
|
8786
8786
|
"mask-image-l-to-color": [{
|
|
8787
|
-
"mask-l-to":
|
|
8787
|
+
"mask-l-to": M()
|
|
8788
8788
|
}],
|
|
8789
8789
|
"mask-image-x-from-pos": [{
|
|
8790
8790
|
"mask-x-from": Q()
|
|
@@ -8793,10 +8793,10 @@ const Ip = (e, t) => {
|
|
|
8793
8793
|
"mask-x-to": Q()
|
|
8794
8794
|
}],
|
|
8795
8795
|
"mask-image-x-from-color": [{
|
|
8796
|
-
"mask-x-from":
|
|
8796
|
+
"mask-x-from": M()
|
|
8797
8797
|
}],
|
|
8798
8798
|
"mask-image-x-to-color": [{
|
|
8799
|
-
"mask-x-to":
|
|
8799
|
+
"mask-x-to": M()
|
|
8800
8800
|
}],
|
|
8801
8801
|
"mask-image-y-from-pos": [{
|
|
8802
8802
|
"mask-y-from": Q()
|
|
@@ -8805,13 +8805,13 @@ const Ip = (e, t) => {
|
|
|
8805
8805
|
"mask-y-to": Q()
|
|
8806
8806
|
}],
|
|
8807
8807
|
"mask-image-y-from-color": [{
|
|
8808
|
-
"mask-y-from":
|
|
8808
|
+
"mask-y-from": M()
|
|
8809
8809
|
}],
|
|
8810
8810
|
"mask-image-y-to-color": [{
|
|
8811
|
-
"mask-y-to":
|
|
8811
|
+
"mask-y-to": M()
|
|
8812
8812
|
}],
|
|
8813
8813
|
"mask-image-radial": [{
|
|
8814
|
-
"mask-radial": [
|
|
8814
|
+
"mask-radial": [H, W]
|
|
8815
8815
|
}],
|
|
8816
8816
|
"mask-image-radial-from-pos": [{
|
|
8817
8817
|
"mask-radial-from": Q()
|
|
@@ -8820,10 +8820,10 @@ const Ip = (e, t) => {
|
|
|
8820
8820
|
"mask-radial-to": Q()
|
|
8821
8821
|
}],
|
|
8822
8822
|
"mask-image-radial-from-color": [{
|
|
8823
|
-
"mask-radial-from":
|
|
8823
|
+
"mask-radial-from": M()
|
|
8824
8824
|
}],
|
|
8825
8825
|
"mask-image-radial-to-color": [{
|
|
8826
|
-
"mask-radial-to":
|
|
8826
|
+
"mask-radial-to": M()
|
|
8827
8827
|
}],
|
|
8828
8828
|
"mask-image-radial-shape": [{
|
|
8829
8829
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -8847,10 +8847,10 @@ const Ip = (e, t) => {
|
|
|
8847
8847
|
"mask-conic-to": Q()
|
|
8848
8848
|
}],
|
|
8849
8849
|
"mask-image-conic-from-color": [{
|
|
8850
|
-
"mask-conic-from":
|
|
8850
|
+
"mask-conic-from": M()
|
|
8851
8851
|
}],
|
|
8852
8852
|
"mask-image-conic-to-color": [{
|
|
8853
|
-
"mask-conic-to":
|
|
8853
|
+
"mask-conic-to": M()
|
|
8854
8854
|
}],
|
|
8855
8855
|
/**
|
|
8856
8856
|
* Mask Mode
|
|
@@ -8899,7 +8899,7 @@ const Ip = (e, t) => {
|
|
|
8899
8899
|
* @see https://tailwindcss.com/docs/mask-image
|
|
8900
8900
|
*/
|
|
8901
8901
|
"mask-image": [{
|
|
8902
|
-
mask: ["none",
|
|
8902
|
+
mask: ["none", H, W]
|
|
8903
8903
|
}],
|
|
8904
8904
|
// ---------------
|
|
8905
8905
|
// --- Filters ---
|
|
@@ -8913,7 +8913,7 @@ const Ip = (e, t) => {
|
|
|
8913
8913
|
// Deprecated since Tailwind CSS v3.0.0
|
|
8914
8914
|
"",
|
|
8915
8915
|
"none",
|
|
8916
|
-
|
|
8916
|
+
H,
|
|
8917
8917
|
W
|
|
8918
8918
|
]
|
|
8919
8919
|
}],
|
|
@@ -8929,14 +8929,14 @@ const Ip = (e, t) => {
|
|
|
8929
8929
|
* @see https://tailwindcss.com/docs/brightness
|
|
8930
8930
|
*/
|
|
8931
8931
|
brightness: [{
|
|
8932
|
-
brightness: [K,
|
|
8932
|
+
brightness: [K, H, W]
|
|
8933
8933
|
}],
|
|
8934
8934
|
/**
|
|
8935
8935
|
* Contrast
|
|
8936
8936
|
* @see https://tailwindcss.com/docs/contrast
|
|
8937
8937
|
*/
|
|
8938
8938
|
contrast: [{
|
|
8939
|
-
contrast: [K,
|
|
8939
|
+
contrast: [K, H, W]
|
|
8940
8940
|
}],
|
|
8941
8941
|
/**
|
|
8942
8942
|
* Drop Shadow
|
|
@@ -8957,42 +8957,42 @@ const Ip = (e, t) => {
|
|
|
8957
8957
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
8958
8958
|
*/
|
|
8959
8959
|
"drop-shadow-color": [{
|
|
8960
|
-
"drop-shadow":
|
|
8960
|
+
"drop-shadow": M()
|
|
8961
8961
|
}],
|
|
8962
8962
|
/**
|
|
8963
8963
|
* Grayscale
|
|
8964
8964
|
* @see https://tailwindcss.com/docs/grayscale
|
|
8965
8965
|
*/
|
|
8966
8966
|
grayscale: [{
|
|
8967
|
-
grayscale: ["", K,
|
|
8967
|
+
grayscale: ["", K, H, W]
|
|
8968
8968
|
}],
|
|
8969
8969
|
/**
|
|
8970
8970
|
* Hue Rotate
|
|
8971
8971
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
8972
8972
|
*/
|
|
8973
8973
|
"hue-rotate": [{
|
|
8974
|
-
"hue-rotate": [K,
|
|
8974
|
+
"hue-rotate": [K, H, W]
|
|
8975
8975
|
}],
|
|
8976
8976
|
/**
|
|
8977
8977
|
* Invert
|
|
8978
8978
|
* @see https://tailwindcss.com/docs/invert
|
|
8979
8979
|
*/
|
|
8980
8980
|
invert: [{
|
|
8981
|
-
invert: ["", K,
|
|
8981
|
+
invert: ["", K, H, W]
|
|
8982
8982
|
}],
|
|
8983
8983
|
/**
|
|
8984
8984
|
* Saturate
|
|
8985
8985
|
* @see https://tailwindcss.com/docs/saturate
|
|
8986
8986
|
*/
|
|
8987
8987
|
saturate: [{
|
|
8988
|
-
saturate: [K,
|
|
8988
|
+
saturate: [K, H, W]
|
|
8989
8989
|
}],
|
|
8990
8990
|
/**
|
|
8991
8991
|
* Sepia
|
|
8992
8992
|
* @see https://tailwindcss.com/docs/sepia
|
|
8993
8993
|
*/
|
|
8994
8994
|
sepia: [{
|
|
8995
|
-
sepia: ["", K,
|
|
8995
|
+
sepia: ["", K, H, W]
|
|
8996
8996
|
}],
|
|
8997
8997
|
/**
|
|
8998
8998
|
* Backdrop Filter
|
|
@@ -9003,7 +9003,7 @@ const Ip = (e, t) => {
|
|
|
9003
9003
|
// Deprecated since Tailwind CSS v3.0.0
|
|
9004
9004
|
"",
|
|
9005
9005
|
"none",
|
|
9006
|
-
|
|
9006
|
+
H,
|
|
9007
9007
|
W
|
|
9008
9008
|
]
|
|
9009
9009
|
}],
|
|
@@ -9019,56 +9019,56 @@ const Ip = (e, t) => {
|
|
|
9019
9019
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
9020
9020
|
*/
|
|
9021
9021
|
"backdrop-brightness": [{
|
|
9022
|
-
"backdrop-brightness": [K,
|
|
9022
|
+
"backdrop-brightness": [K, H, W]
|
|
9023
9023
|
}],
|
|
9024
9024
|
/**
|
|
9025
9025
|
* Backdrop Contrast
|
|
9026
9026
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
9027
9027
|
*/
|
|
9028
9028
|
"backdrop-contrast": [{
|
|
9029
|
-
"backdrop-contrast": [K,
|
|
9029
|
+
"backdrop-contrast": [K, H, W]
|
|
9030
9030
|
}],
|
|
9031
9031
|
/**
|
|
9032
9032
|
* Backdrop Grayscale
|
|
9033
9033
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
9034
9034
|
*/
|
|
9035
9035
|
"backdrop-grayscale": [{
|
|
9036
|
-
"backdrop-grayscale": ["", K,
|
|
9036
|
+
"backdrop-grayscale": ["", K, H, W]
|
|
9037
9037
|
}],
|
|
9038
9038
|
/**
|
|
9039
9039
|
* Backdrop Hue Rotate
|
|
9040
9040
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
9041
9041
|
*/
|
|
9042
9042
|
"backdrop-hue-rotate": [{
|
|
9043
|
-
"backdrop-hue-rotate": [K,
|
|
9043
|
+
"backdrop-hue-rotate": [K, H, W]
|
|
9044
9044
|
}],
|
|
9045
9045
|
/**
|
|
9046
9046
|
* Backdrop Invert
|
|
9047
9047
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
9048
9048
|
*/
|
|
9049
9049
|
"backdrop-invert": [{
|
|
9050
|
-
"backdrop-invert": ["", K,
|
|
9050
|
+
"backdrop-invert": ["", K, H, W]
|
|
9051
9051
|
}],
|
|
9052
9052
|
/**
|
|
9053
9053
|
* Backdrop Opacity
|
|
9054
9054
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
9055
9055
|
*/
|
|
9056
9056
|
"backdrop-opacity": [{
|
|
9057
|
-
"backdrop-opacity": [K,
|
|
9057
|
+
"backdrop-opacity": [K, H, W]
|
|
9058
9058
|
}],
|
|
9059
9059
|
/**
|
|
9060
9060
|
* Backdrop Saturate
|
|
9061
9061
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
9062
9062
|
*/
|
|
9063
9063
|
"backdrop-saturate": [{
|
|
9064
|
-
"backdrop-saturate": [K,
|
|
9064
|
+
"backdrop-saturate": [K, H, W]
|
|
9065
9065
|
}],
|
|
9066
9066
|
/**
|
|
9067
9067
|
* Backdrop Sepia
|
|
9068
9068
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
9069
9069
|
*/
|
|
9070
9070
|
"backdrop-sepia": [{
|
|
9071
|
-
"backdrop-sepia": ["", K,
|
|
9071
|
+
"backdrop-sepia": ["", K, H, W]
|
|
9072
9072
|
}],
|
|
9073
9073
|
// --------------
|
|
9074
9074
|
// --- Tables ---
|
|
@@ -9123,7 +9123,7 @@ const Ip = (e, t) => {
|
|
|
9123
9123
|
* @see https://tailwindcss.com/docs/transition-property
|
|
9124
9124
|
*/
|
|
9125
9125
|
transition: [{
|
|
9126
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
9126
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", H, W]
|
|
9127
9127
|
}],
|
|
9128
9128
|
/**
|
|
9129
9129
|
* Transition Behavior
|
|
@@ -9137,28 +9137,28 @@ const Ip = (e, t) => {
|
|
|
9137
9137
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
9138
9138
|
*/
|
|
9139
9139
|
duration: [{
|
|
9140
|
-
duration: [K, "initial",
|
|
9140
|
+
duration: [K, "initial", H, W]
|
|
9141
9141
|
}],
|
|
9142
9142
|
/**
|
|
9143
9143
|
* Transition Timing Function
|
|
9144
9144
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
9145
9145
|
*/
|
|
9146
9146
|
ease: [{
|
|
9147
|
-
ease: ["linear", "initial", S,
|
|
9147
|
+
ease: ["linear", "initial", S, H, W]
|
|
9148
9148
|
}],
|
|
9149
9149
|
/**
|
|
9150
9150
|
* Transition Delay
|
|
9151
9151
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
9152
9152
|
*/
|
|
9153
9153
|
delay: [{
|
|
9154
|
-
delay: [K,
|
|
9154
|
+
delay: [K, H, W]
|
|
9155
9155
|
}],
|
|
9156
9156
|
/**
|
|
9157
9157
|
* Animation
|
|
9158
9158
|
* @see https://tailwindcss.com/docs/animation
|
|
9159
9159
|
*/
|
|
9160
9160
|
animate: [{
|
|
9161
|
-
animate: ["none", k,
|
|
9161
|
+
animate: ["none", k, H, W]
|
|
9162
9162
|
}],
|
|
9163
9163
|
// ------------------
|
|
9164
9164
|
// --- Transforms ---
|
|
@@ -9175,7 +9175,7 @@ const Ip = (e, t) => {
|
|
|
9175
9175
|
* @see https://tailwindcss.com/docs/perspective
|
|
9176
9176
|
*/
|
|
9177
9177
|
perspective: [{
|
|
9178
|
-
perspective: [p,
|
|
9178
|
+
perspective: [p, H, W]
|
|
9179
9179
|
}],
|
|
9180
9180
|
/**
|
|
9181
9181
|
* Perspective Origin
|
|
@@ -9271,7 +9271,7 @@ const Ip = (e, t) => {
|
|
|
9271
9271
|
* @see https://tailwindcss.com/docs/transform
|
|
9272
9272
|
*/
|
|
9273
9273
|
transform: [{
|
|
9274
|
-
transform: [
|
|
9274
|
+
transform: [H, W, "", "none", "gpu", "cpu"]
|
|
9275
9275
|
}],
|
|
9276
9276
|
/**
|
|
9277
9277
|
* Transform Origin
|
|
@@ -9328,7 +9328,7 @@ const Ip = (e, t) => {
|
|
|
9328
9328
|
* @see https://tailwindcss.com/docs/accent-color
|
|
9329
9329
|
*/
|
|
9330
9330
|
accent: [{
|
|
9331
|
-
accent:
|
|
9331
|
+
accent: M()
|
|
9332
9332
|
}],
|
|
9333
9333
|
/**
|
|
9334
9334
|
* Appearance
|
|
@@ -9342,7 +9342,7 @@ const Ip = (e, t) => {
|
|
|
9342
9342
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
9343
9343
|
*/
|
|
9344
9344
|
"caret-color": [{
|
|
9345
|
-
caret:
|
|
9345
|
+
caret: M()
|
|
9346
9346
|
}],
|
|
9347
9347
|
/**
|
|
9348
9348
|
* Color Scheme
|
|
@@ -9356,7 +9356,7 @@ const Ip = (e, t) => {
|
|
|
9356
9356
|
* @see https://tailwindcss.com/docs/cursor
|
|
9357
9357
|
*/
|
|
9358
9358
|
cursor: [{
|
|
9359
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
9359
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", H, W]
|
|
9360
9360
|
}],
|
|
9361
9361
|
/**
|
|
9362
9362
|
* Field Sizing
|
|
@@ -9606,7 +9606,7 @@ const Ip = (e, t) => {
|
|
|
9606
9606
|
* @see https://tailwindcss.com/docs/will-change
|
|
9607
9607
|
*/
|
|
9608
9608
|
"will-change": [{
|
|
9609
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
9609
|
+
"will-change": ["auto", "scroll", "contents", "transform", H, W]
|
|
9610
9610
|
}],
|
|
9611
9611
|
// -----------
|
|
9612
9612
|
// --- SVG ---
|
|
@@ -9616,7 +9616,7 @@ const Ip = (e, t) => {
|
|
|
9616
9616
|
* @see https://tailwindcss.com/docs/fill
|
|
9617
9617
|
*/
|
|
9618
9618
|
fill: [{
|
|
9619
|
-
fill: ["none", ...
|
|
9619
|
+
fill: ["none", ...M()]
|
|
9620
9620
|
}],
|
|
9621
9621
|
/**
|
|
9622
9622
|
* Stroke Width
|
|
@@ -9630,7 +9630,7 @@ const Ip = (e, t) => {
|
|
|
9630
9630
|
* @see https://tailwindcss.com/docs/stroke
|
|
9631
9631
|
*/
|
|
9632
9632
|
stroke: [{
|
|
9633
|
-
stroke: ["none", ...
|
|
9633
|
+
stroke: ["none", ...M()]
|
|
9634
9634
|
}],
|
|
9635
9635
|
// ---------------------
|
|
9636
9636
|
// --- Accessibility ---
|
|
@@ -9886,13 +9886,13 @@ function Ra({
|
|
|
9886
9886
|
!y && e.uploadEndpoint && console.error(
|
|
9887
9887
|
`api_URL prop is required when using FileField with upload functionality for field "${e.name}"`
|
|
9888
9888
|
);
|
|
9889
|
-
const S = (
|
|
9890
|
-
if (
|
|
9891
|
-
const C = 1024, R = ["Bytes", "KB", "MB", "GB"], P = Math.floor(Math.log(
|
|
9892
|
-
return `${parseFloat((
|
|
9893
|
-
}, k = async (
|
|
9889
|
+
const S = (D) => {
|
|
9890
|
+
if (D === 0) return "0 Bytes";
|
|
9891
|
+
const C = 1024, R = ["Bytes", "KB", "MB", "GB"], P = Math.floor(Math.log(D) / Math.log(C));
|
|
9892
|
+
return `${parseFloat((D / C ** P).toFixed(2))} ${R[P]}`;
|
|
9893
|
+
}, k = async (D) => {
|
|
9894
9894
|
const C = new FormData();
|
|
9895
|
-
C.append("file",
|
|
9895
|
+
C.append("file", D);
|
|
9896
9896
|
const R = await fetch(`${y}`, {
|
|
9897
9897
|
method: "POST",
|
|
9898
9898
|
body: C
|
|
@@ -9900,48 +9900,48 @@ function Ra({
|
|
|
9900
9900
|
if (!R.ok)
|
|
9901
9901
|
throw kn.error("Upload failed"), new Error("Upload failed");
|
|
9902
9902
|
return await R.json();
|
|
9903
|
-
}, E = async (
|
|
9903
|
+
}, E = async (D, C) => {
|
|
9904
9904
|
if (!C) return;
|
|
9905
|
-
if (
|
|
9905
|
+
if (D.maxSize && C.size > D.maxSize)
|
|
9906
9906
|
throw new Error(
|
|
9907
|
-
`File size must not exceed ${S(
|
|
9907
|
+
`File size must not exceed ${S(D.maxSize)}`
|
|
9908
9908
|
);
|
|
9909
|
-
const R = await k(C), P = { ...t, [
|
|
9910
|
-
a(
|
|
9911
|
-
}, w = async (
|
|
9912
|
-
const R = t[
|
|
9913
|
-
if (
|
|
9914
|
-
throw new Error(`Maximum ${
|
|
9909
|
+
const R = await k(C), P = { ...t, [D.name]: R };
|
|
9910
|
+
a(D.name, R), s(P);
|
|
9911
|
+
}, w = async (D, C) => {
|
|
9912
|
+
const R = t[D.name] || [];
|
|
9913
|
+
if (D.maxFiles && R.length + C.length > D.maxFiles)
|
|
9914
|
+
throw new Error(`Maximum ${D.maxFiles} files allowed`);
|
|
9915
9915
|
C.forEach((N) => {
|
|
9916
|
-
if (
|
|
9916
|
+
if (D.maxSize && N.size > D.maxSize)
|
|
9917
9917
|
throw new Error(
|
|
9918
|
-
`Each file must not exceed ${S(
|
|
9918
|
+
`Each file must not exceed ${S(D.maxSize)}`
|
|
9919
9919
|
);
|
|
9920
9920
|
});
|
|
9921
9921
|
const P = await Promise.all(
|
|
9922
9922
|
C.map((N) => k(N))
|
|
9923
9923
|
// Updated call
|
|
9924
9924
|
), F = [...R, ...P];
|
|
9925
|
-
a(
|
|
9926
|
-
}, x = async (
|
|
9925
|
+
a(D.name, F), s({ ...t, [D.name]: F });
|
|
9926
|
+
}, x = async (D, C) => {
|
|
9927
9927
|
if (l) return;
|
|
9928
9928
|
const R = Array.from(C);
|
|
9929
9929
|
try {
|
|
9930
|
-
e.type === "multifile" ? await w(e, R) : await E(e, R[0]), o.current?.[
|
|
9930
|
+
e.type === "multifile" ? await w(e, R) : await E(e, R[0]), o.current?.[D] && (o.current[D].value = "");
|
|
9931
9931
|
} catch (P) {
|
|
9932
9932
|
kn.error(`Upload failed: ${P.message}`);
|
|
9933
9933
|
}
|
|
9934
|
-
}, A = async (
|
|
9934
|
+
}, A = async (D, C) => {
|
|
9935
9935
|
if (l) return;
|
|
9936
9936
|
let R;
|
|
9937
|
-
e.type === "file" ? R = "" : R = (t[
|
|
9938
|
-
}, O = (
|
|
9939
|
-
|
|
9940
|
-
}, T = (
|
|
9941
|
-
|
|
9942
|
-
},
|
|
9943
|
-
|
|
9944
|
-
},
|
|
9937
|
+
e.type === "file" ? R = "" : R = (t[D] || []).filter((F) => F !== C), a(D, R), s({ ...t, [D]: R }), o.current?.[D] && (o.current[D].value = "");
|
|
9938
|
+
}, O = (D) => {
|
|
9939
|
+
D.preventDefault(), l || p(!0);
|
|
9940
|
+
}, T = (D) => {
|
|
9941
|
+
D.preventDefault(), l || p(!1);
|
|
9942
|
+
}, z = (D) => {
|
|
9943
|
+
D.preventDefault(), p(!1), !l && D.dataTransfer.files && D.dataTransfer.files.length > 0 && x(e.name, D.dataTransfer.files);
|
|
9944
|
+
}, $ = e.accept ? e.accept.split(",").map((D) => D.split("/")[1] || D.split(".")[1] || D).join(", ").toUpperCase() : "PNG, JPG, PDF", U = e.maxSize ? `, up to ${S(e.maxSize)}` : "", q = `
|
|
9945
9945
|
w-full flex flex-col items-center justify-center p-6 border-2 border-dashed rounded-lg transition-all duration-200
|
|
9946
9946
|
// Ensure focus styling is handled correctly for the button element
|
|
9947
9947
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50
|
|
@@ -9956,14 +9956,14 @@ function Ra({
|
|
|
9956
9956
|
"button",
|
|
9957
9957
|
{
|
|
9958
9958
|
type: "button",
|
|
9959
|
-
className:
|
|
9959
|
+
className: q,
|
|
9960
9960
|
onClick: () => {
|
|
9961
9961
|
l || o?.current?.[e.name]?.click();
|
|
9962
9962
|
},
|
|
9963
9963
|
onDragOver: O,
|
|
9964
9964
|
onDragEnter: O,
|
|
9965
9965
|
onDragLeave: T,
|
|
9966
|
-
onDrop:
|
|
9966
|
+
onDrop: z,
|
|
9967
9967
|
disabled: l,
|
|
9968
9968
|
children: [
|
|
9969
9969
|
/* @__PURE__ */ u("div", { className: "border-gray-400 border p-1 mb-3 rounded-md bg-gray-100 shadow-md ", children: /* @__PURE__ */ u(Fc, { size: 24, className: "m-1" }) }),
|
|
@@ -9981,8 +9981,8 @@ function Ra({
|
|
|
9981
9981
|
/* @__PURE__ */ u("span", { className: "font-light", children: " or drag and drop" })
|
|
9982
9982
|
] }),
|
|
9983
9983
|
/* @__PURE__ */ L("p", { className: "text-xs mt-1 text-gray-500", children: [
|
|
9984
|
-
|
|
9985
|
-
|
|
9984
|
+
$,
|
|
9985
|
+
U,
|
|
9986
9986
|
d && e.maxFiles && `, Max ${e.maxFiles} files`
|
|
9987
9987
|
] })
|
|
9988
9988
|
]
|
|
@@ -9991,20 +9991,20 @@ function Ra({
|
|
|
9991
9991
|
/* @__PURE__ */ u(
|
|
9992
9992
|
"input",
|
|
9993
9993
|
{
|
|
9994
|
-
ref: (
|
|
9995
|
-
|
|
9994
|
+
ref: (D) => {
|
|
9995
|
+
D && o && o.current && (o.current[e.name] = D);
|
|
9996
9996
|
},
|
|
9997
9997
|
id: e.name,
|
|
9998
9998
|
type: "file",
|
|
9999
9999
|
accept: e.accept,
|
|
10000
10000
|
multiple: d,
|
|
10001
10001
|
className: "sr-only",
|
|
10002
|
-
onChange: (
|
|
10002
|
+
onChange: (D) => x(e.name, D.target.files),
|
|
10003
10003
|
disabled: l
|
|
10004
10004
|
}
|
|
10005
10005
|
),
|
|
10006
|
-
m.length > 0 && /* @__PURE__ */ u("div", { className: "space-y-2 pt-2 border-t border-gray-200", children: m.map((
|
|
10007
|
-
const R =
|
|
10006
|
+
m.length > 0 && /* @__PURE__ */ u("div", { className: "space-y-2 pt-2 border-t border-gray-200", children: m.map((D, C) => {
|
|
10007
|
+
const R = D.original_name || D.name || "File", P = D.size || null;
|
|
10008
10008
|
return /* @__PURE__ */ L(
|
|
10009
10009
|
"div",
|
|
10010
10010
|
{
|
|
@@ -10022,7 +10022,7 @@ function Ra({
|
|
|
10022
10022
|
"button",
|
|
10023
10023
|
{
|
|
10024
10024
|
type: "button",
|
|
10025
|
-
onClick: () => A(e.name,
|
|
10025
|
+
onClick: () => A(e.name, D),
|
|
10026
10026
|
className: `text-red-500 hover:text-red-700 ml-3 flex-shrink-0 ${l ? "cursor-not-allowed opacity-50" : ""}`,
|
|
10027
10027
|
disabled: l,
|
|
10028
10028
|
children: "Remove"
|
|
@@ -10030,14 +10030,14 @@ function Ra({
|
|
|
10030
10030
|
)
|
|
10031
10031
|
]
|
|
10032
10032
|
},
|
|
10033
|
-
|
|
10033
|
+
D.url || D.original_name || C
|
|
10034
10034
|
);
|
|
10035
10035
|
}) }),
|
|
10036
|
-
Object.entries(h).map(([
|
|
10036
|
+
Object.entries(h).map(([D, C]) => C.status === "uploading" ? /* @__PURE__ */ L("div", { className: "relative pt-1", children: [
|
|
10037
10037
|
/* @__PURE__ */ L("div", { className: "flex items-center justify-between", children: [
|
|
10038
10038
|
/* @__PURE__ */ L("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
|
|
10039
10039
|
"Uploading ",
|
|
10040
|
-
|
|
10040
|
+
D
|
|
10041
10041
|
] }),
|
|
10042
10042
|
/* @__PURE__ */ L("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
|
|
10043
10043
|
C.progress,
|
|
@@ -10051,7 +10051,7 @@ function Ra({
|
|
|
10051
10051
|
style: { width: `${C.progress}%` }
|
|
10052
10052
|
}
|
|
10053
10053
|
) })
|
|
10054
|
-
] },
|
|
10054
|
+
] }, D) : null)
|
|
10055
10055
|
] })
|
|
10056
10056
|
},
|
|
10057
10057
|
e.name
|
|
@@ -10117,11 +10117,11 @@ function kh({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
|
|
|
10117
10117
|
if (typeof A == "string") {
|
|
10118
10118
|
const T = A.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
10119
10119
|
if (T) {
|
|
10120
|
-
const [,
|
|
10120
|
+
const [, U, q, D] = T, C = new Date(Number(U), Number(q) - 1, Number(D));
|
|
10121
10121
|
return Number.isNaN(C.getTime()) ? null : C;
|
|
10122
10122
|
}
|
|
10123
|
-
const
|
|
10124
|
-
return Number.isNaN(
|
|
10123
|
+
const z = A.includes("T") ? A : A.replace(" ", "T"), $ = new Date(z);
|
|
10124
|
+
return Number.isNaN($.getTime()) ? null : $;
|
|
10125
10125
|
}
|
|
10126
10126
|
const O = new Date(A);
|
|
10127
10127
|
return Number.isNaN(O.getTime()) ? null : O;
|
|
@@ -10133,9 +10133,9 @@ function kh({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
|
|
|
10133
10133
|
const O = new Date(A);
|
|
10134
10134
|
l ? (O.setHours(l.getHours()), O.setMinutes(l.getMinutes())) : (O.setHours(12), O.setMinutes(0)), n(e.name, O);
|
|
10135
10135
|
}, b = (A, O, T) => {
|
|
10136
|
-
const
|
|
10137
|
-
let
|
|
10138
|
-
T === "PM" &&
|
|
10136
|
+
const z = l ? new Date(l) : /* @__PURE__ */ new Date();
|
|
10137
|
+
let $ = parseInt(A);
|
|
10138
|
+
T === "PM" && $ !== 12 && ($ += 12), T === "AM" && $ === 12 && ($ = 0), z.setHours($), z.setMinutes(parseInt(O)), n(e.name, z);
|
|
10139
10139
|
}, p = () => {
|
|
10140
10140
|
let A = parseInt(d);
|
|
10141
10141
|
A = A % 12 + 1, b(A.toString(), h, g);
|
|
@@ -10524,11 +10524,11 @@ var Kh = f.forwardRef((e, t) => {
|
|
|
10524
10524
|
x.current = !0;
|
|
10525
10525
|
}),
|
|
10526
10526
|
onFocus: ee(e.onFocus, (T) => {
|
|
10527
|
-
const
|
|
10528
|
-
if (T.target === T.currentTarget &&
|
|
10529
|
-
const
|
|
10530
|
-
if (T.currentTarget.dispatchEvent(
|
|
10531
|
-
const
|
|
10527
|
+
const z = !x.current;
|
|
10528
|
+
if (T.target === T.currentTarget && z && !S) {
|
|
10529
|
+
const $ = new CustomEvent(Or, Vh);
|
|
10530
|
+
if (T.currentTarget.dispatchEvent($), !$.defaultPrevented) {
|
|
10531
|
+
const U = w().filter((P) => P.focusable), q = U.find((P) => P.active), D = U.find((P) => P.id === p), R = [q, D, ...U].filter(
|
|
10532
10532
|
Boolean
|
|
10533
10533
|
).map((P) => P.ref.current);
|
|
10534
10534
|
Hi(R, d);
|
|
@@ -10924,7 +10924,7 @@ function hg({
|
|
|
10924
10924
|
disabled: b,
|
|
10925
10925
|
className: E,
|
|
10926
10926
|
children: p.map((w) => {
|
|
10927
|
-
const x = typeof w == "object" ? w.value : w, A = typeof w == "object" ? w.label : w, O = typeof w == "object" ? w.description : null, T = `${e.name}-${String(x)}`,
|
|
10927
|
+
const x = typeof w == "object" ? w.value : w, A = typeof w == "object" ? w.label : w, O = typeof w == "object" ? w.description : null, T = `${e.name}-${String(x)}`, z = String(m) === String(x);
|
|
10928
10928
|
return S ? /* @__PURE__ */ L(
|
|
10929
10929
|
"label",
|
|
10930
10930
|
{
|
|
@@ -10933,7 +10933,7 @@ function hg({
|
|
|
10933
10933
|
relative flex-1 min-w-max text-center px-4 py-2 rounded-md text-sm font-medium
|
|
10934
10934
|
transition-all duration-200 cursor-pointer select-none
|
|
10935
10935
|
focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2
|
|
10936
|
-
${
|
|
10936
|
+
${z ? "bg-background text-primary shadow-sm" : "text-muted-foreground hover:text-foreground"}
|
|
10937
10937
|
${b ? "opacity-40 cursor-not-allowed" : ""}
|
|
10938
10938
|
`,
|
|
10939
10939
|
children: [
|
|
@@ -11035,16 +11035,12 @@ function bg({
|
|
|
11035
11035
|
if (!x) return null;
|
|
11036
11036
|
if (x instanceof Date) return Number.isNaN(x.getTime()) ? null : x;
|
|
11037
11037
|
if (typeof x == "string") {
|
|
11038
|
-
const
|
|
11039
|
-
if (
|
|
11040
|
-
|
|
11041
|
-
return Number.isNaN(M.getTime()) ? null : M;
|
|
11042
|
-
}
|
|
11043
|
-
const T = x.includes("T") ? x : x.replace(" ", "T"), $ = new Date(T);
|
|
11038
|
+
const A = x.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
11039
|
+
if (!A) return null;
|
|
11040
|
+
const [, O, T, z] = A, $ = new Date(Number(O), Number(T) - 1, Number(z));
|
|
11044
11041
|
return Number.isNaN($.getTime()) ? null : $;
|
|
11045
11042
|
}
|
|
11046
|
-
|
|
11047
|
-
return Number.isNaN(A.getTime()) ? null : A;
|
|
11043
|
+
return null;
|
|
11048
11044
|
}, c = (x) => !(x instanceof Date) || Number.isNaN(x.getTime()) ? null : Mn(x, "yyyy-MM-dd"), l = (x) => i(x), [d, h] = ce(!1), g = a, m = t[e.name], b = Yr(() => l(m), [m]), [p, y] = ce(b || /* @__PURE__ */ new Date());
|
|
11049
11045
|
s["aria-describedby"], Ie(() => {
|
|
11050
11046
|
if (d) {
|
|
@@ -11618,9 +11614,9 @@ const $g = ({
|
|
|
11618
11614
|
F[N.name] = _ ? [] : "";
|
|
11619
11615
|
}
|
|
11620
11616
|
}), h(F);
|
|
11621
|
-
}, $ = (C) => {
|
|
11622
|
-
p({ ...b, [C]: !0 });
|
|
11623
11617
|
}, z = (C) => {
|
|
11618
|
+
p({ ...b, [C]: !0 });
|
|
11619
|
+
}, $ = (C) => {
|
|
11624
11620
|
C.preventDefault();
|
|
11625
11621
|
const R = {};
|
|
11626
11622
|
r.fields.forEach((F) => {
|
|
@@ -11633,9 +11629,9 @@ const $g = ({
|
|
|
11633
11629
|
N && (P[F.name] = N);
|
|
11634
11630
|
}
|
|
11635
11631
|
}), m(P), Object.keys(P).length === 0) {
|
|
11636
|
-
const F = (_,
|
|
11632
|
+
const F = (_, M) => {
|
|
11637
11633
|
if (_ === "" || _ === null || _ === void 0) return null;
|
|
11638
|
-
const j =
|
|
11634
|
+
const j = M?.toLowerCase();
|
|
11639
11635
|
if (Array.isArray(_))
|
|
11640
11636
|
return j === "number" || j === "integer" ? _.map((ae) => ae === "" ? null : Number(ae)) : _;
|
|
11641
11637
|
switch (j) {
|
|
@@ -11657,7 +11653,7 @@ const $g = ({
|
|
|
11657
11653
|
}, N = {};
|
|
11658
11654
|
r.fields.forEach((_) => {
|
|
11659
11655
|
if (_ && _.name) {
|
|
11660
|
-
const
|
|
11656
|
+
const M = d[_.name], j = _.type || "string", ae = F(M, j);
|
|
11661
11657
|
o ? N[_.name] = {
|
|
11662
11658
|
value: ae,
|
|
11663
11659
|
fieldType: j
|
|
@@ -11670,7 +11666,7 @@ const $g = ({
|
|
|
11670
11666
|
Ie(() => {
|
|
11671
11667
|
c(d);
|
|
11672
11668
|
}, [d, c]);
|
|
11673
|
-
const
|
|
11669
|
+
const U = {
|
|
11674
11670
|
green: "border-green-500 bg-green-50",
|
|
11675
11671
|
blue: "border-blue-500 bg-blue-50",
|
|
11676
11672
|
red: "border-red-500 bg-red-50",
|
|
@@ -11681,7 +11677,7 @@ const $g = ({
|
|
|
11681
11677
|
pink: "border-pink-500 bg-pink-50",
|
|
11682
11678
|
orange: "border-orange-500 bg-orange-50"
|
|
11683
11679
|
};
|
|
11684
|
-
function
|
|
11680
|
+
function q(C, R, P) {
|
|
11685
11681
|
const F = `${R.name}-error`;
|
|
11686
11682
|
if (l && (P ? console.log(
|
|
11687
11683
|
`[fieldFormat RENDER] Rendering error for ${R.name}: ${P}`
|
|
@@ -11689,7 +11685,7 @@ const $g = ({
|
|
|
11689
11685
|
`[fieldFormat RENDER] Error exists in state for ${R.name} but not passed in props!`
|
|
11690
11686
|
)), w.includes(R.type))
|
|
11691
11687
|
return /* @__PURE__ */ u("div", { className: R.class || "col-span-full", children: C });
|
|
11692
|
-
const N = R.containerStyle, _ = R.color || "blue",
|
|
11688
|
+
const N = R.containerStyle, _ = R.color || "blue", M = N === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${R.containerClassName || U[_] || U.blue}` : "", j = /* @__PURE__ */ L(Lt, { children: [
|
|
11693
11689
|
R.label && /* @__PURE__ */ L(
|
|
11694
11690
|
"label",
|
|
11695
11691
|
{
|
|
@@ -11709,9 +11705,9 @@ const $g = ({
|
|
|
11709
11705
|
R.description && /* @__PURE__ */ u("p", { className: "text-xs mt-1.5 text-gray-400", children: R.description }),
|
|
11710
11706
|
P && /* @__PURE__ */ u("p", { id: F, className: "text-sm text-red-500 mt-1", role: "alert", children: P })
|
|
11711
11707
|
] });
|
|
11712
|
-
return /* @__PURE__ */ u("div", { className: "mb-4", children: N === "card" ? /* @__PURE__ */ u("div", { className:
|
|
11708
|
+
return /* @__PURE__ */ u("div", { className: "mb-4", children: N === "card" ? /* @__PURE__ */ u("div", { className: M, children: j }) : j });
|
|
11713
11709
|
}
|
|
11714
|
-
const
|
|
11710
|
+
const D = (C) => {
|
|
11715
11711
|
if (C.showIf && !C.showIf(d)) return null;
|
|
11716
11712
|
const R = x[C.type] || ia;
|
|
11717
11713
|
if (d[C.name] === void 0) {
|
|
@@ -11719,14 +11715,14 @@ const $g = ({
|
|
|
11719
11715
|
d[C.name] = C.value !== void 0 ? C.value : N ? [] : "";
|
|
11720
11716
|
}
|
|
11721
11717
|
const P = g[C.name] ? g[C.name] : null, F = typeof C.disabled == "function" ? C.disabled(d) : !!C.disabled;
|
|
11722
|
-
return
|
|
11718
|
+
return q(
|
|
11723
11719
|
/* @__PURE__ */ u(
|
|
11724
11720
|
R,
|
|
11725
11721
|
{
|
|
11726
11722
|
field: C,
|
|
11727
11723
|
formValues: d,
|
|
11728
11724
|
handleChange: T,
|
|
11729
|
-
handleBlur: () =>
|
|
11725
|
+
handleBlur: () => z(C.name),
|
|
11730
11726
|
setCharCounts: S,
|
|
11731
11727
|
charCount: y[C.name] || 0,
|
|
11732
11728
|
api_URL: t,
|
|
@@ -11743,14 +11739,14 @@ const $g = ({
|
|
|
11743
11739
|
return /* @__PURE__ */ L(
|
|
11744
11740
|
"form",
|
|
11745
11741
|
{
|
|
11746
|
-
onSubmit:
|
|
11742
|
+
onSubmit: $,
|
|
11747
11743
|
className: "grid grid-cols-12 gap-x-4 mx-auto w-full ",
|
|
11748
11744
|
children: [
|
|
11749
11745
|
r ? r.fields.filter((C) => C).map((C) => /* @__PURE__ */ u(
|
|
11750
11746
|
"div",
|
|
11751
11747
|
{
|
|
11752
11748
|
className: `${C.class || "col-span-full"} `,
|
|
11753
|
-
children:
|
|
11749
|
+
children: D(C)
|
|
11754
11750
|
},
|
|
11755
11751
|
C.name + C.type
|
|
11756
11752
|
)) : /* @__PURE__ */ u("div", { children: "Loading..." }),
|