@kingsimba/nc-ui 0.1.14 → 0.1.15
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -3
- package/dist/index.js +230 -230
- package/dist/index.js.map +1 -1
- package/package.json +66 -66
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var Je = Object.defineProperty;
|
|
|
2
2
|
var Qe = (e, t, n) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _ = (e, t, n) => Qe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as s, jsxs as y } from "react/jsx-runtime";
|
|
5
|
-
import xe, { useState as T, useRef as
|
|
5
|
+
import xe, { useState as T, useRef as W, useMemo as ge, useEffect as L, createContext as se, useContext as X, Children as Ze, isValidElement as et, forwardRef as tt, useImperativeHandle as nt, useCallback as O, Suspense as rt } from "react";
|
|
6
6
|
import { createPortal as pe } from "react-dom";
|
|
7
7
|
import { useTranslation as J } from "react-i18next";
|
|
8
8
|
import { d as Le, E as ot, R as st, T as it, g as ct, V as at, b as lt, a as dt, c as ut } from "./GeneratedIcons-HFZmBTBT.js";
|
|
@@ -105,21 +105,21 @@ function In({
|
|
|
105
105
|
const o = Math.max(0, Math.min(1, Number(e) || 0));
|
|
106
106
|
let i;
|
|
107
107
|
r ? o < 0.1 ? i = "var(--nc-danger)" : o < 0.2 ? i = "var(--nc-warning)" : i = "var(--nc-success)" : i = n ? "#ffffff" : "#000000";
|
|
108
|
-
const l = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", a = 24, d = 14, f = 2, u = 0, w = 12, c = 0, p = 0, b = 0, g = a, v = d, N = v - c * 2, h = g - c * 2, k = Math.max(1, Math.min(4, v / 4)), m = o === 0 ? 0 : 0.05 + o * 0.95,
|
|
108
|
+
const l = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", a = 24, d = 14, f = 2, u = 0, w = 12, c = 0, p = 0, b = 0, g = a, v = d, N = v - c * 2, h = g - c * 2, k = Math.max(1, Math.min(4, v / 4)), m = o === 0 ? 0 : 0.05 + o * 0.95, S = a + f + w, E = 20, I = 0.65, z = Math.max(d, E * I), x = a + f + 1, A = (d - E * I) / 2;
|
|
109
109
|
return /* @__PURE__ */ y(
|
|
110
110
|
"svg",
|
|
111
111
|
{
|
|
112
112
|
className: "nc-battery",
|
|
113
|
-
width:
|
|
113
|
+
width: S,
|
|
114
114
|
height: z,
|
|
115
|
-
viewBox: `0 0 ${
|
|
115
|
+
viewBox: `0 0 ${S} ${z}`,
|
|
116
116
|
role: "img",
|
|
117
117
|
"aria-label": `Battery ${o === 0 ? "-" : Math.round(o * 100) + "%"} ${t}`,
|
|
118
118
|
children: [
|
|
119
119
|
/* @__PURE__ */ y("defs", { children: [
|
|
120
120
|
/* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: h * m, height: N, fill: "white" }) }),
|
|
121
121
|
/* @__PURE__ */ y("mask", { id: `nc-battery-text-mask-${o}`, children: [
|
|
122
|
-
/* @__PURE__ */ s("rect", { x: "0", y: "0", width:
|
|
122
|
+
/* @__PURE__ */ s("rect", { x: "0", y: "0", width: S, height: z, fill: "white" }),
|
|
123
123
|
/* @__PURE__ */ s("text", { x: p + g / 2, y: d - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
|
|
124
124
|
] })
|
|
125
125
|
] }),
|
|
@@ -161,7 +161,7 @@ function In({
|
|
|
161
161
|
fill: o === 1 ? i : l
|
|
162
162
|
}
|
|
163
163
|
),
|
|
164
|
-
t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${x}, ${
|
|
164
|
+
t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${x}, ${A}) scale(${I})`, fill: i, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
|
|
165
165
|
] })
|
|
166
166
|
]
|
|
167
167
|
}
|
|
@@ -228,7 +228,7 @@ function $n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
|
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
230
|
function mt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
|
|
231
|
-
const i =
|
|
231
|
+
const i = W(null), { t: l } = J();
|
|
232
232
|
return L(() => {
|
|
233
233
|
r && i.current && i.current.scrollIntoView({ block: "nearest" });
|
|
234
234
|
}, [r]), /* @__PURE__ */ y(
|
|
@@ -337,7 +337,7 @@ function Rn({
|
|
|
337
337
|
style: u,
|
|
338
338
|
className: w
|
|
339
339
|
}) {
|
|
340
|
-
const [c, p] = T(!1), [b, g] = T(""), [v, N] = T(-1), h =
|
|
340
|
+
const [c, p] = T(!1), [b, g] = T(""), [v, N] = T(-1), h = W(null), k = W(null), m = f === "small", { t: S } = J(), E = ge(() => {
|
|
341
341
|
const R = b.toLowerCase();
|
|
342
342
|
return a ? r.filter((P) => P.label.toLowerCase().includes(R)) : r;
|
|
343
343
|
}, [r, b, a]);
|
|
@@ -350,17 +350,17 @@ function Rn({
|
|
|
350
350
|
}
|
|
351
351
|
}, [l, e, r, t]), L(() => {
|
|
352
352
|
function R(P) {
|
|
353
|
-
var
|
|
354
|
-
P.target instanceof Node && h.current && ((
|
|
353
|
+
var H;
|
|
354
|
+
P.target instanceof Node && h.current && ((H = h.current.parentElement) != null && H.contains(P.target) || p(!1));
|
|
355
355
|
}
|
|
356
356
|
return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
|
|
357
357
|
}, []);
|
|
358
|
-
const
|
|
359
|
-
var
|
|
360
|
-
t == null || t(R), p(!1), g(""), P && ((
|
|
361
|
-
},
|
|
358
|
+
const I = r.find((R) => R.value === e), z = I && l, x = !o && !z, A = !(c && a) && !!I, $ = (R, P = !1) => {
|
|
359
|
+
var H;
|
|
360
|
+
t == null || t(R), p(!1), g(""), P && ((H = h.current) == null || H.blur());
|
|
361
|
+
}, C = () => {
|
|
362
362
|
t == null || t(void 0), g(""), p(!1);
|
|
363
|
-
},
|
|
363
|
+
}, D = (R) => {
|
|
364
364
|
if (!c) {
|
|
365
365
|
(R.key === "ArrowDown" || R.key === "ArrowUp") && (p(!0), R.preventDefault());
|
|
366
366
|
return;
|
|
@@ -368,18 +368,18 @@ function Rn({
|
|
|
368
368
|
switch (R.key) {
|
|
369
369
|
case "ArrowDown":
|
|
370
370
|
R.preventDefault(), N((P) => {
|
|
371
|
-
const
|
|
372
|
-
return
|
|
371
|
+
const H = P + 1;
|
|
372
|
+
return H >= E.length ? 0 : H;
|
|
373
373
|
});
|
|
374
374
|
break;
|
|
375
375
|
case "ArrowUp":
|
|
376
376
|
R.preventDefault(), N((P) => {
|
|
377
|
-
const
|
|
378
|
-
return
|
|
377
|
+
const H = P - 1;
|
|
378
|
+
return H < 0 ? E.length - 1 : H;
|
|
379
379
|
});
|
|
380
380
|
break;
|
|
381
381
|
case "Enter":
|
|
382
|
-
R.preventDefault(), v >= 0 && v < E.length &&
|
|
382
|
+
R.preventDefault(), v >= 0 && v < E.length && $(E[v].value, !0);
|
|
383
383
|
break;
|
|
384
384
|
case "Escape":
|
|
385
385
|
R.preventDefault(), p(!1), g("");
|
|
@@ -394,9 +394,9 @@ function Rn({
|
|
|
394
394
|
ref: k,
|
|
395
395
|
style: { position: "relative", display: "flex", alignItems: "center" },
|
|
396
396
|
onMouseDown: (R) => {
|
|
397
|
-
o || a && R.target === h.current || (p((P) => (!P && a &&
|
|
398
|
-
var P,
|
|
399
|
-
(P = h.current) == null || P.focus(), (
|
|
397
|
+
o || a && R.target === h.current || (p((P) => (!P && a && I && g(I.label), !P)), a && !c && setTimeout(() => {
|
|
398
|
+
var P, H;
|
|
399
|
+
(P = h.current) == null || P.focus(), (H = h.current) == null || H.select();
|
|
400
400
|
}, 0));
|
|
401
401
|
},
|
|
402
402
|
children: [
|
|
@@ -408,14 +408,14 @@ function Rn({
|
|
|
408
408
|
placeholder: n,
|
|
409
409
|
onFocus: () => {
|
|
410
410
|
var R;
|
|
411
|
-
!o && a && (p(!0),
|
|
411
|
+
!o && a && (p(!0), I && (g(I.label), setTimeout(() => {
|
|
412
412
|
var P;
|
|
413
413
|
return (P = h.current) == null ? void 0 : P.select();
|
|
414
414
|
}, 0))), a || (R = h.current) == null || R.blur();
|
|
415
415
|
},
|
|
416
416
|
onChange: (R) => a && g(R.target.value),
|
|
417
|
-
onKeyDown:
|
|
418
|
-
value: c && a ? b : (
|
|
417
|
+
onKeyDown: D,
|
|
418
|
+
value: c && a ? b : (I == null ? void 0 : I.label) || "",
|
|
419
419
|
readOnly: o || !a,
|
|
420
420
|
style: {
|
|
421
421
|
width: "100%",
|
|
@@ -423,11 +423,11 @@ function Rn({
|
|
|
423
423
|
caretColor: a ? void 0 : "transparent",
|
|
424
424
|
cursor: a ? void 0 : "pointer",
|
|
425
425
|
userSelect: a ? void 0 : "none",
|
|
426
|
-
color:
|
|
426
|
+
color: A ? "transparent" : "var(--nc-text)"
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
),
|
|
430
|
-
|
|
430
|
+
A && /* @__PURE__ */ y(
|
|
431
431
|
"div",
|
|
432
432
|
{
|
|
433
433
|
"aria-hidden": !0,
|
|
@@ -446,21 +446,21 @@ function Rn({
|
|
|
446
446
|
textOverflow: "ellipsis"
|
|
447
447
|
},
|
|
448
448
|
children: [
|
|
449
|
-
/* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${m ? "nc-small" : ""}`, children:
|
|
450
|
-
(
|
|
449
|
+
/* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${m ? "nc-small" : ""}`, children: I == null ? void 0 : I.label }),
|
|
450
|
+
(I == null ? void 0 : I.default) && /* @__PURE__ */ y("span", { className: `nc-combo-overlay-default ${m ? "nc-small" : ""}`, children: [
|
|
451
451
|
"(",
|
|
452
|
-
|
|
452
|
+
S("common.default"),
|
|
453
453
|
")"
|
|
454
454
|
] })
|
|
455
455
|
]
|
|
456
456
|
}
|
|
457
457
|
),
|
|
458
|
-
z && /* @__PURE__ */ s(bt, { onClick:
|
|
458
|
+
z && /* @__PURE__ */ s(bt, { onClick: C, small: m }),
|
|
459
459
|
x && /* @__PURE__ */ s(vt, { open: c, onClick: () => p((R) => !R), small: m })
|
|
460
460
|
]
|
|
461
461
|
}
|
|
462
462
|
),
|
|
463
|
-
/* @__PURE__ */ s(gt, { isOpen: c, options: E, onSelect:
|
|
463
|
+
/* @__PURE__ */ s(gt, { isOpen: c, options: E, onSelect: $, selectedValue: e, placement: d, anchorRef: k, small: m, highlightedIndex: v })
|
|
464
464
|
] });
|
|
465
465
|
}
|
|
466
466
|
function En({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
|
|
@@ -541,7 +541,7 @@ function Ln({
|
|
|
541
541
|
anchor: o,
|
|
542
542
|
preferredDirection: i = "down"
|
|
543
543
|
}) {
|
|
544
|
-
const l =
|
|
544
|
+
const l = W(null), [a, d] = T({ top: 0, left: 0 }), f = o || (r == null ? void 0 : r.current);
|
|
545
545
|
if (L(() => {
|
|
546
546
|
if (!e || !f || !l.current) return;
|
|
547
547
|
const c = f.getBoundingClientRect(), p = l.current.getBoundingClientRect(), b = window.innerHeight, g = window.innerWidth, v = c.bottom + 8, N = v + p.height <= b - 8;
|
|
@@ -652,24 +652,24 @@ function Bn({
|
|
|
652
652
|
className: v = "",
|
|
653
653
|
onContentHeightChange: N
|
|
654
654
|
}) {
|
|
655
|
-
const h =
|
|
655
|
+
const h = W(null), k = W(null), { t: m } = J(), S = { close: t }, E = (x) => {
|
|
656
656
|
c && x.target === x.currentTarget && t();
|
|
657
657
|
};
|
|
658
658
|
if (L(() => {
|
|
659
659
|
e && h.current && h.current.focus();
|
|
660
660
|
}, [e]), L(() => {
|
|
661
661
|
if (!N || !k.current) return;
|
|
662
|
-
const x = new ResizeObserver((
|
|
663
|
-
for (const
|
|
664
|
-
const
|
|
665
|
-
N(
|
|
662
|
+
const x = new ResizeObserver((A) => {
|
|
663
|
+
for (const $ of A) {
|
|
664
|
+
const C = $.contentRect.height;
|
|
665
|
+
N(C);
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
return x.observe(k.current), () => {
|
|
669
669
|
x.disconnect();
|
|
670
670
|
};
|
|
671
671
|
}, [N]), !e) return null;
|
|
672
|
-
const
|
|
672
|
+
const I = () => {
|
|
673
673
|
switch (i) {
|
|
674
674
|
case "ok":
|
|
675
675
|
return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(Y, { variant: "primary", onClick: a ?? t, disabled: p, children: m("common.ok") }) });
|
|
@@ -704,7 +704,7 @@ function Bn({
|
|
|
704
704
|
default:
|
|
705
705
|
return null;
|
|
706
706
|
}
|
|
707
|
-
}, z = /* @__PURE__ */ s(He.Provider, { value:
|
|
707
|
+
}, z = /* @__PURE__ */ s(He.Provider, { value: S, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${b ? " nc-fullscreen" : ""}`, onClick: E, children: /* @__PURE__ */ y(
|
|
708
708
|
"div",
|
|
709
709
|
{
|
|
710
710
|
ref: h,
|
|
@@ -720,7 +720,7 @@ function Bn({
|
|
|
720
720
|
/* @__PURE__ */ s(De, { onClick: t, "aria-label": "Close dialog" })
|
|
721
721
|
] }),
|
|
722
722
|
/* @__PURE__ */ s("div", { ref: k, className: "nc-dialog-content", children: r }),
|
|
723
|
-
|
|
723
|
+
I()
|
|
724
724
|
]
|
|
725
725
|
}
|
|
726
726
|
) }) });
|
|
@@ -803,22 +803,22 @@ function Dn({
|
|
|
803
803
|
validator: v,
|
|
804
804
|
showErrorMessage: N = !0
|
|
805
805
|
}) {
|
|
806
|
-
const h =
|
|
806
|
+
const h = W(null), k = W(null), [m, S] = T(!1), [E, I] = T(!1), z = e !== void 0, [x, A] = T(t), $ = z ? e : x, C = v ? v($) : null, D = !!C, R = f === "password", P = R && p && !l && !b, H = d && $ && !l && E, ee = w === "small" ? 32 : 44;
|
|
807
807
|
let K = 12;
|
|
808
|
-
|
|
808
|
+
H && P ? K = ee * 2 : (H || P) && (K = ee);
|
|
809
809
|
const Q = () => {
|
|
810
810
|
var te, ae;
|
|
811
|
-
z ||
|
|
811
|
+
z || A(""), n == null || n(""), o == null || o(), b ? (te = k.current) == null || te.focus() : (ae = h.current) == null || ae.focus();
|
|
812
812
|
}, ce = (te) => {
|
|
813
813
|
te.key === "Enter" && !b && (r == null || r());
|
|
814
814
|
}, F = (te) => {
|
|
815
815
|
const ae = te.target.value;
|
|
816
|
-
z ||
|
|
816
|
+
z || A(ae), n == null || n(ae);
|
|
817
817
|
}, Se = () => {
|
|
818
|
-
|
|
818
|
+
I(!0);
|
|
819
819
|
}, Ce = () => {
|
|
820
|
-
|
|
821
|
-
}, Ie = `nc-input ${w === "small" ? "nc-small " : ""} ${
|
|
820
|
+
I(!1);
|
|
821
|
+
}, Ie = `nc-input ${w === "small" ? "nc-small " : ""} ${D ? "nc-error " : ""}${u}`;
|
|
822
822
|
return /* @__PURE__ */ y("div", { className: "nc-col", style: { position: "relative", flex: 1, ...c }, children: [
|
|
823
823
|
a && /* @__PURE__ */ s("span", { className: "nc-label", children: a }),
|
|
824
824
|
/* @__PURE__ */ y("div", { style: { position: "relative", display: "flex", alignItems: b ? "flex-start" : "center" }, children: [
|
|
@@ -828,7 +828,7 @@ function Dn({
|
|
|
828
828
|
ref: k,
|
|
829
829
|
className: Ie,
|
|
830
830
|
placeholder: i,
|
|
831
|
-
value:
|
|
831
|
+
value: $,
|
|
832
832
|
onChange: F,
|
|
833
833
|
onKeyDown: ce,
|
|
834
834
|
onFocus: Se,
|
|
@@ -847,7 +847,7 @@ function Dn({
|
|
|
847
847
|
type: R && m ? "text" : f,
|
|
848
848
|
className: Ie,
|
|
849
849
|
placeholder: i,
|
|
850
|
-
value:
|
|
850
|
+
value: $,
|
|
851
851
|
onChange: F,
|
|
852
852
|
onKeyDown: ce,
|
|
853
853
|
onFocus: Se,
|
|
@@ -859,10 +859,10 @@ function Dn({
|
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
861
|
),
|
|
862
|
-
|
|
863
|
-
P && /* @__PURE__ */ s(xt, { visible: m, onClick: () =>
|
|
862
|
+
H && /* @__PURE__ */ s(yt, { onClick: Q, size: w, rightOffset: P ? ee + 4 : 4 }),
|
|
863
|
+
P && /* @__PURE__ */ s(xt, { visible: m, onClick: () => S(!m), size: w })
|
|
864
864
|
] }),
|
|
865
|
-
|
|
865
|
+
D && N && /* @__PURE__ */ s("span", { className: "nc-error-message", children: C })
|
|
866
866
|
] });
|
|
867
867
|
}
|
|
868
868
|
function Hn({
|
|
@@ -916,7 +916,7 @@ function Wn({ title: e, titleTools: t, children: n, style: r }) {
|
|
|
916
916
|
] });
|
|
917
917
|
}
|
|
918
918
|
function On({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
|
|
919
|
-
const [i, l] = T(!1), [a, d] = T(""), f =
|
|
919
|
+
const [i, l] = T(!1), [a, d] = T(""), f = W(null), u = ge(() => n.filter((c) => c.label.toLowerCase().includes(a.toLowerCase())), [n, a]);
|
|
920
920
|
L(() => {
|
|
921
921
|
function c(p) {
|
|
922
922
|
!(p.target instanceof Node) || !f.current || f.current.contains(p.target) || l(!1);
|
|
@@ -1008,41 +1008,41 @@ function Fn({
|
|
|
1008
1008
|
className: o = "",
|
|
1009
1009
|
disabled: i = !1
|
|
1010
1010
|
}) {
|
|
1011
|
-
const [l, a] = T(!1), [d, f] = T(""), [u, w] = T(""), [c, p] = T({ top: 0, left: 0, width: 0, right: void 0 }), b =
|
|
1011
|
+
const [l, a] = T(!1), [d, f] = T(""), [u, w] = T(""), [c, p] = T({ top: 0, left: 0, width: 0, right: void 0 }), b = W(null), g = W(null);
|
|
1012
1012
|
L(() => {
|
|
1013
1013
|
if (l && b.current) {
|
|
1014
|
-
const
|
|
1015
|
-
window.innerWidth -
|
|
1016
|
-
top:
|
|
1014
|
+
const A = b.current.getBoundingClientRect(), C = Math.max(A.width, 400);
|
|
1015
|
+
window.innerWidth - A.left < C && A.right >= C ? p({
|
|
1016
|
+
top: A.bottom + 4,
|
|
1017
1017
|
left: 0,
|
|
1018
1018
|
// Not used but type needs it, let's just use 0
|
|
1019
|
-
right: window.innerWidth -
|
|
1020
|
-
width:
|
|
1019
|
+
right: window.innerWidth - A.right,
|
|
1020
|
+
width: C
|
|
1021
1021
|
}) : p({
|
|
1022
|
-
top:
|
|
1023
|
-
left:
|
|
1022
|
+
top: A.bottom + 4,
|
|
1023
|
+
left: A.left,
|
|
1024
1024
|
right: void 0,
|
|
1025
|
-
width:
|
|
1025
|
+
width: C
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
1028
|
}, [l]), L(() => {
|
|
1029
1029
|
if (!l) return;
|
|
1030
|
-
const
|
|
1031
|
-
b.current && !b.current.contains(
|
|
1030
|
+
const A = ($) => {
|
|
1031
|
+
b.current && !b.current.contains($.target) && g.current && !g.current.contains($.target) && a(!1);
|
|
1032
1032
|
};
|
|
1033
|
-
return document.addEventListener("mousedown",
|
|
1033
|
+
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
1034
1034
|
}, [l]);
|
|
1035
1035
|
const v = () => {
|
|
1036
1036
|
f(e || $e()), w(t || $e()), a(!0);
|
|
1037
1037
|
}, N = () => {
|
|
1038
1038
|
a(!1);
|
|
1039
1039
|
}, h = () => {
|
|
1040
|
-
const
|
|
1041
|
-
if (
|
|
1040
|
+
const A = fe(d), $ = fe(u);
|
|
1041
|
+
if (A || $)
|
|
1042
1042
|
return;
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1045
|
-
}, k = e && t ? `${Me(e)} - ${Me(t)}` : "Select month range", m = fe(d),
|
|
1043
|
+
const C = ue(d), D = ue(u);
|
|
1044
|
+
C && D && (n == null || n(C, D)), a(!1);
|
|
1045
|
+
}, k = e && t ? `${Me(e)} - ${Me(t)}` : "Select month range", m = fe(d), S = fe(u), E = ue(d), I = ue(u), z = E && I && E > I, x = l ? pe(
|
|
1046
1046
|
/* @__PURE__ */ s(
|
|
1047
1047
|
"div",
|
|
1048
1048
|
{
|
|
@@ -1065,7 +1065,7 @@ function Fn({
|
|
|
1065
1065
|
type: "text",
|
|
1066
1066
|
className: `nc-month-input ${m ? "nc-error" : ""}`,
|
|
1067
1067
|
value: d,
|
|
1068
|
-
onChange: (
|
|
1068
|
+
onChange: (A) => f(A.target.value),
|
|
1069
1069
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1070
1070
|
}
|
|
1071
1071
|
),
|
|
@@ -1077,23 +1077,23 @@ function Fn({
|
|
|
1077
1077
|
"input",
|
|
1078
1078
|
{
|
|
1079
1079
|
type: "text",
|
|
1080
|
-
className: `nc-month-input ${
|
|
1080
|
+
className: `nc-month-input ${S ? "nc-error" : ""}`,
|
|
1081
1081
|
value: u,
|
|
1082
|
-
onChange: (
|
|
1082
|
+
onChange: (A) => w(A.target.value),
|
|
1083
1083
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1084
1084
|
}
|
|
1085
1085
|
),
|
|
1086
|
-
|
|
1086
|
+
S && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: S })
|
|
1087
1087
|
] })
|
|
1088
1088
|
] }),
|
|
1089
|
-
z && !m && !
|
|
1089
|
+
z && !m && !S && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
|
|
1090
1090
|
/* @__PURE__ */ y("div", { className: "nc-month-range-picker-footer", children: [
|
|
1091
1091
|
/* @__PURE__ */ s(
|
|
1092
1092
|
Y,
|
|
1093
1093
|
{
|
|
1094
1094
|
variant: "primary",
|
|
1095
1095
|
onClick: h,
|
|
1096
|
-
disabled: !d || !u || !!m || !!
|
|
1096
|
+
disabled: !d || !u || !!m || !!S || !!z,
|
|
1097
1097
|
children: "Apply"
|
|
1098
1098
|
}
|
|
1099
1099
|
),
|
|
@@ -1245,42 +1245,42 @@ function Yn({ active: e, children: t, keepMounted: n = !1, className: r = "", st
|
|
|
1245
1245
|
return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: l });
|
|
1246
1246
|
}
|
|
1247
1247
|
function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: l, multiline: a, orientation: d = "horizontal", style: f }) {
|
|
1248
|
-
const u =
|
|
1248
|
+
const u = W(null), [w, c] = T(!1), [p, b] = T(!1), g = d === "verticalLeft" || d === "verticalRight", v = W(!1), N = W(0), h = W(0), k = W(!1);
|
|
1249
1249
|
L(() => {
|
|
1250
1250
|
const x = () => {
|
|
1251
1251
|
if (u.current)
|
|
1252
1252
|
if (g) {
|
|
1253
|
-
const { scrollTop:
|
|
1254
|
-
c(
|
|
1253
|
+
const { scrollTop: $, scrollHeight: C, clientHeight: D } = u.current;
|
|
1254
|
+
c($ > 1), b($ < C - D - 1);
|
|
1255
1255
|
} else {
|
|
1256
|
-
const { scrollLeft:
|
|
1257
|
-
c(
|
|
1256
|
+
const { scrollLeft: $, scrollWidth: C, clientWidth: D } = u.current;
|
|
1257
|
+
c($ > 1), b($ < C - D - 1);
|
|
1258
1258
|
}
|
|
1259
|
-
},
|
|
1260
|
-
if (
|
|
1261
|
-
return x(),
|
|
1262
|
-
|
|
1259
|
+
}, A = u.current;
|
|
1260
|
+
if (A)
|
|
1261
|
+
return x(), A.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
|
|
1262
|
+
A.removeEventListener("scroll", x), window.removeEventListener("resize", x);
|
|
1263
1263
|
};
|
|
1264
1264
|
}, [e, g]);
|
|
1265
1265
|
const m = (x) => {
|
|
1266
1266
|
u.current && (v.current = !0, k.current = !1, N.current = g ? x.clientY : x.clientX, h.current = g ? u.current.scrollTop : u.current.scrollLeft, u.current.style.cursor = "grabbing", u.current.style.userSelect = "none");
|
|
1267
|
-
},
|
|
1267
|
+
}, S = (x) => {
|
|
1268
1268
|
if (!v.current || !u.current) return;
|
|
1269
|
-
const
|
|
1270
|
-
Math.abs(
|
|
1269
|
+
const A = g ? x.clientY : x.clientX, $ = N.current - A;
|
|
1270
|
+
Math.abs($) > 3 && (k.current = !0), g ? u.current.scrollTop = h.current + $ : u.current.scrollLeft = h.current + $;
|
|
1271
1271
|
}, E = () => {
|
|
1272
1272
|
u.current && (v.current = !1, u.current.style.cursor = "", u.current.style.userSelect = "");
|
|
1273
|
-
},
|
|
1273
|
+
}, I = () => {
|
|
1274
1274
|
E();
|
|
1275
1275
|
};
|
|
1276
1276
|
L(() => {
|
|
1277
1277
|
const x = u.current;
|
|
1278
1278
|
if (!x || g) return;
|
|
1279
|
-
const
|
|
1280
|
-
|
|
1279
|
+
const A = ($) => {
|
|
1280
|
+
$.deltaY !== 0 && ($.preventDefault(), x.scrollLeft += $.deltaY * 0.3);
|
|
1281
1281
|
};
|
|
1282
|
-
return x.addEventListener("wheel",
|
|
1283
|
-
x.removeEventListener("wheel",
|
|
1282
|
+
return x.addEventListener("wheel", A, { passive: !1 }), () => {
|
|
1283
|
+
x.removeEventListener("wheel", A);
|
|
1284
1284
|
};
|
|
1285
1285
|
}, [g]);
|
|
1286
1286
|
const z = (x) => {
|
|
@@ -1295,36 +1295,36 @@ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1295
1295
|
ref: u,
|
|
1296
1296
|
className: `nc-tab-scroll ${a ? "nc-multiline" : ""}`,
|
|
1297
1297
|
onMouseDown: m,
|
|
1298
|
-
onMouseMove:
|
|
1298
|
+
onMouseMove: S,
|
|
1299
1299
|
onMouseUp: E,
|
|
1300
|
-
onMouseLeave:
|
|
1300
|
+
onMouseLeave: I,
|
|
1301
1301
|
style: { cursor: "grab" },
|
|
1302
1302
|
children: e.map((x) => {
|
|
1303
|
-
const C = r && !(o != null && o.includes(
|
|
1303
|
+
const A = typeof x == "string" ? x : x.id, $ = typeof x == "string" ? x : x.label, C = r && !(o != null && o.includes(A));
|
|
1304
1304
|
return /* @__PURE__ */ y(
|
|
1305
1305
|
"div",
|
|
1306
1306
|
{
|
|
1307
|
-
className: `nc-tab-item ${t ===
|
|
1308
|
-
onClick: () => z(
|
|
1307
|
+
className: `nc-tab-item ${t === A ? "nc-active" : ""} ${C ? "nc-closable" : ""}`,
|
|
1308
|
+
onClick: () => z(A),
|
|
1309
1309
|
role: "button",
|
|
1310
1310
|
tabIndex: 0,
|
|
1311
|
-
onKeyDown: (
|
|
1312
|
-
(
|
|
1311
|
+
onKeyDown: (D) => {
|
|
1312
|
+
(D.key === "Enter" || D.key === " ") && n(A);
|
|
1313
1313
|
},
|
|
1314
1314
|
children: [
|
|
1315
|
-
/* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ?
|
|
1315
|
+
/* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ? $ : typeof $ == "string" ? $.toUpperCase() : $ }),
|
|
1316
1316
|
C && /* @__PURE__ */ s(
|
|
1317
1317
|
"span",
|
|
1318
1318
|
{
|
|
1319
1319
|
className: "nc-tab-close",
|
|
1320
1320
|
role: "button",
|
|
1321
1321
|
tabIndex: 0,
|
|
1322
|
-
"aria-label": `Close ${
|
|
1323
|
-
onClick: (
|
|
1324
|
-
|
|
1322
|
+
"aria-label": `Close ${typeof $ == "string" ? $ : A}`,
|
|
1323
|
+
onClick: (D) => {
|
|
1324
|
+
D.stopPropagation(), r(A);
|
|
1325
1325
|
},
|
|
1326
|
-
onKeyDown: (
|
|
1327
|
-
(
|
|
1326
|
+
onKeyDown: (D) => {
|
|
1327
|
+
(D.key === "Enter" || D.key === " ") && (D.stopPropagation(), r(A));
|
|
1328
1328
|
},
|
|
1329
1329
|
children: /* @__PURE__ */ y("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1330
1330
|
/* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
@@ -1334,7 +1334,7 @@ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1334
1334
|
)
|
|
1335
1335
|
]
|
|
1336
1336
|
},
|
|
1337
|
-
|
|
1337
|
+
A
|
|
1338
1338
|
);
|
|
1339
1339
|
})
|
|
1340
1340
|
}
|
|
@@ -1435,30 +1435,30 @@ function Ct(e, t) {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
const _n = tt(
|
|
1437
1437
|
function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: l = !1, onCursorChange: a, highlightLine: d }, f) {
|
|
1438
|
-
const u =
|
|
1438
|
+
const u = W(null), w = W(null), c = W(null);
|
|
1439
1439
|
nt(f, () => ({
|
|
1440
1440
|
goToLine(h) {
|
|
1441
1441
|
const k = u.current;
|
|
1442
1442
|
if (!k) return;
|
|
1443
1443
|
const m = Ct(t, h);
|
|
1444
1444
|
k.focus(), k.setSelectionRange(m, m);
|
|
1445
|
-
const
|
|
1446
|
-
k.scrollTop = (Math.max(1, h) - 1) *
|
|
1445
|
+
const S = parseFloat(getComputedStyle(k).lineHeight) || 18;
|
|
1446
|
+
k.scrollTop = (Math.max(1, h) - 1) * S, b(), p();
|
|
1447
1447
|
},
|
|
1448
1448
|
goToPosition(h, k, m) {
|
|
1449
|
-
const
|
|
1450
|
-
if (!
|
|
1449
|
+
const S = u.current;
|
|
1450
|
+
if (!S) return;
|
|
1451
1451
|
const E = St(t, h, k, m);
|
|
1452
|
-
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1452
|
+
S.focus(), S.setSelectionRange(E, E);
|
|
1453
|
+
const I = parseFloat(getComputedStyle(S).lineHeight) || 18;
|
|
1454
|
+
S.scrollTop = (Math.max(1, h) - 1) * I, b(), p();
|
|
1455
1455
|
}
|
|
1456
1456
|
}), [t]);
|
|
1457
|
-
const p =
|
|
1457
|
+
const p = O(() => {
|
|
1458
1458
|
if (!a || !u.current) return;
|
|
1459
1459
|
const h = At(t, u.current.selectionStart);
|
|
1460
1460
|
a(h);
|
|
1461
|
-
}, [a, t]), b =
|
|
1461
|
+
}, [a, t]), b = O(() => {
|
|
1462
1462
|
const h = u.current;
|
|
1463
1463
|
h && (w.current && (w.current.scrollTop = h.scrollTop, w.current.scrollLeft = h.scrollLeft), c.current && (c.current.scrollTop = h.scrollTop));
|
|
1464
1464
|
}, []);
|
|
@@ -1466,8 +1466,8 @@ const _n = tt(
|
|
|
1466
1466
|
if (d == null || d < 1) return;
|
|
1467
1467
|
const h = u.current;
|
|
1468
1468
|
if (!h) return;
|
|
1469
|
-
const k = parseFloat(getComputedStyle(h).lineHeight) || 18, m = (d - 1) * k,
|
|
1470
|
-
(m < h.scrollTop ||
|
|
1469
|
+
const k = parseFloat(getComputedStyle(h).lineHeight) || 18, m = (d - 1) * k, S = m + k;
|
|
1470
|
+
(m < h.scrollTop || S > h.scrollTop + h.clientHeight) && (h.scrollTop = m - h.clientHeight / 2 + k / 2), b();
|
|
1471
1471
|
}, [d]);
|
|
1472
1472
|
const g = ge(() => t.split(`
|
|
1473
1473
|
`).length, [t]), v = () => {
|
|
@@ -1478,16 +1478,16 @@ const _n = tt(
|
|
|
1478
1478
|
);
|
|
1479
1479
|
return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: c, children: h });
|
|
1480
1480
|
}, N = (h) => h ? h.split(`
|
|
1481
|
-
`).map((m,
|
|
1481
|
+
`).map((m, S) => {
|
|
1482
1482
|
const E = m.split(" ");
|
|
1483
|
-
return /* @__PURE__ */ y("div", { className: `nc-csv-line ${d ===
|
|
1484
|
-
E.map((
|
|
1483
|
+
return /* @__PURE__ */ y("div", { className: `nc-csv-line ${d === S + 1 ? "nc-csv-highlight" : ""}`, children: [
|
|
1484
|
+
E.map((I, z) => /* @__PURE__ */ y("span", { children: [
|
|
1485
1485
|
z > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
|
|
1486
|
-
/* @__PURE__ */ s("span", { style: { color: Re[z % Re.length] }, children:
|
|
1486
|
+
/* @__PURE__ */ s("span", { style: { color: Re[z % Re.length] }, children: I })
|
|
1487
1487
|
] }, z)),
|
|
1488
1488
|
m === "" && `
|
|
1489
1489
|
`
|
|
1490
|
-
] },
|
|
1490
|
+
] }, S);
|
|
1491
1491
|
}) : null;
|
|
1492
1492
|
return /* @__PURE__ */ y("div", { className: `nc-csv-textarea-container ${l ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
|
|
1493
1493
|
l && v(),
|
|
@@ -1594,7 +1594,7 @@ function $t({ notification: e }) {
|
|
|
1594
1594
|
);
|
|
1595
1595
|
}
|
|
1596
1596
|
function Un() {
|
|
1597
|
-
const [e, t] = T([]), [n, r] = T(/* @__PURE__ */ new Map()), [o, i] = T(/* @__PURE__ */ new Set()), l =
|
|
1597
|
+
const [e, t] = T([]), [n, r] = T(/* @__PURE__ */ new Map()), [o, i] = T(/* @__PURE__ */ new Set()), l = W(null), a = W([]);
|
|
1598
1598
|
return L(() => It((f) => {
|
|
1599
1599
|
const u = new Set(a.current.map((c) => c.id)), w = f.filter((c) => !u.has(c.id)).map((c) => c.id);
|
|
1600
1600
|
w.length > 0 ? (t(f), i(new Set(w)), requestAnimationFrame(() => {
|
|
@@ -1973,19 +1973,19 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
1973
1973
|
xe.useEffect(() => {
|
|
1974
1974
|
o != null && o.titleKey && l(r(o.titleKey));
|
|
1975
1975
|
}, [o, r]);
|
|
1976
|
-
const g =
|
|
1976
|
+
const g = O((x) => {
|
|
1977
1977
|
l(x);
|
|
1978
|
-
}, []), v =
|
|
1978
|
+
}, []), v = O((x) => {
|
|
1979
1979
|
d(() => x);
|
|
1980
|
-
}, []), N =
|
|
1980
|
+
}, []), N = O(() => {
|
|
1981
1981
|
d(null);
|
|
1982
|
-
}, []), h =
|
|
1982
|
+
}, []), h = O((x) => {
|
|
1983
1983
|
u(x);
|
|
1984
|
-
}, []), k =
|
|
1984
|
+
}, []), k = O(() => {
|
|
1985
1985
|
u(null);
|
|
1986
|
-
}, []), m =
|
|
1986
|
+
}, []), m = O((x) => {
|
|
1987
1987
|
c(x);
|
|
1988
|
-
}, []),
|
|
1988
|
+
}, []), S = O((x) => {
|
|
1989
1989
|
b(x);
|
|
1990
1990
|
}, []), E = ge(() => ({
|
|
1991
1991
|
setTitle: g,
|
|
@@ -1994,12 +1994,12 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
1994
1994
|
setToolbar: h,
|
|
1995
1995
|
clearToolbar: k,
|
|
1996
1996
|
setHideBackButton: m,
|
|
1997
|
-
setHideTitleBar:
|
|
1997
|
+
setHideTitleBar: S,
|
|
1998
1998
|
close: n
|
|
1999
|
-
}), [g, v, N, h, k, m,
|
|
1999
|
+
}), [g, v, N, h, k, m, S, n]);
|
|
2000
2000
|
if (!o)
|
|
2001
2001
|
return null;
|
|
2002
|
-
const
|
|
2002
|
+
const I = o.component, z = !o.hideTitleBar && !p;
|
|
2003
2003
|
return /* @__PURE__ */ y(
|
|
2004
2004
|
"div",
|
|
2005
2005
|
{
|
|
@@ -2048,7 +2048,7 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
2048
2048
|
children: /* @__PURE__ */ s(Be, {})
|
|
2049
2049
|
}
|
|
2050
2050
|
),
|
|
2051
|
-
children: /* @__PURE__ */ s(
|
|
2051
|
+
children: /* @__PURE__ */ s(I, {})
|
|
2052
2052
|
}
|
|
2053
2053
|
) }) })
|
|
2054
2054
|
}
|
|
@@ -2272,8 +2272,8 @@ const ke = "-", Dt = (e) => {
|
|
|
2272
2272
|
i.push(h);
|
|
2273
2273
|
const k = o(g, b);
|
|
2274
2274
|
for (let m = 0; m < k.length; ++m) {
|
|
2275
|
-
const
|
|
2276
|
-
i.push(N +
|
|
2275
|
+
const S = k[m];
|
|
2276
|
+
i.push(N + S);
|
|
2277
2277
|
}
|
|
2278
2278
|
a = f + (a.length > 0 ? " " + a : a);
|
|
2279
2279
|
}
|
|
@@ -2313,7 +2313,7 @@ function qt(e, ...t) {
|
|
|
2313
2313
|
const B = (e) => {
|
|
2314
2314
|
const t = (n) => n[e] || [];
|
|
2315
2315
|
return t.isThemeGetter = !0, t;
|
|
2316
|
-
}, Ue = /^\[(?:([a-z-]+):)?(.+)\]$/i, Xt = /^\d+\/\d+$/, Jt = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, en = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, tn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => re(e) || Jt.has(e) || Xt.test(e), U = (e) => ie(e, "length", un), re = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => ie(e, "number", re), le = (e) => !!e && Number.isInteger(Number(e)), rn = (e) => e.endsWith("%") && re(e.slice(0, -1)),
|
|
2316
|
+
}, Ue = /^\[(?:([a-z-]+):)?(.+)\]$/i, Xt = /^\d+\/\d+$/, Jt = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, en = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, tn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => re(e) || Jt.has(e) || Xt.test(e), U = (e) => ie(e, "length", un), re = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => ie(e, "number", re), le = (e) => !!e && Number.isInteger(Number(e)), rn = (e) => e.endsWith("%") && re(e.slice(0, -1)), M = (e) => Ue.test(e), q = (e) => Qt.test(e), on = /* @__PURE__ */ new Set(["length", "size", "percentage"]), sn = (e) => ie(e, on, qe), cn = (e) => ie(e, "position", qe), an = /* @__PURE__ */ new Set(["image", "url"]), ln = (e) => ie(e, an, fn), dn = (e) => ie(e, "", pn), de = () => !0, ie = (e, t, n) => {
|
|
2317
2317
|
const r = Ue.exec(e);
|
|
2318
2318
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
2319
2319
|
}, un = (e) => (
|
|
@@ -2322,36 +2322,36 @@ const B = (e) => {
|
|
|
2322
2322
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2323
2323
|
Zt.test(e) && !en.test(e)
|
|
2324
2324
|
), qe = () => !1, pn = (e) => tn.test(e), fn = (e) => nn.test(e), hn = () => {
|
|
2325
|
-
const e = B("colors"), t = B("spacing"), n = B("blur"), r = B("brightness"), o = B("borderColor"), i = B("borderRadius"), l = B("borderSpacing"), a = B("borderWidth"), d = B("contrast"), f = B("grayscale"), u = B("hueRotate"), w = B("invert"), c = B("gap"), p = B("gradientColorStops"), b = B("gradientColorStopPositions"), g = B("inset"), v = B("margin"), N = B("opacity"), h = B("padding"), k = B("saturate"), m = B("scale"),
|
|
2325
|
+
const e = B("colors"), t = B("spacing"), n = B("blur"), r = B("brightness"), o = B("borderColor"), i = B("borderRadius"), l = B("borderSpacing"), a = B("borderWidth"), d = B("contrast"), f = B("grayscale"), u = B("hueRotate"), w = B("invert"), c = B("gap"), p = B("gradientColorStops"), b = B("gradientColorStopPositions"), g = B("inset"), v = B("margin"), N = B("opacity"), h = B("padding"), k = B("saturate"), m = B("scale"), S = B("sepia"), E = B("skew"), I = B("space"), z = B("translate"), x = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", M, t], C = () => [M, t], D = () => ["", G, U], R = () => ["auto", re, M], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], H = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Q = () => ["", "0", M], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [re, M];
|
|
2326
2326
|
return {
|
|
2327
2327
|
cacheSize: 500,
|
|
2328
2328
|
separator: ":",
|
|
2329
2329
|
theme: {
|
|
2330
2330
|
colors: [de],
|
|
2331
2331
|
spacing: [G, U],
|
|
2332
|
-
blur: ["none", "", q,
|
|
2332
|
+
blur: ["none", "", q, M],
|
|
2333
2333
|
brightness: F(),
|
|
2334
2334
|
borderColor: [e],
|
|
2335
|
-
borderRadius: ["none", "", "full", q,
|
|
2336
|
-
borderSpacing:
|
|
2337
|
-
borderWidth:
|
|
2335
|
+
borderRadius: ["none", "", "full", q, M],
|
|
2336
|
+
borderSpacing: C(),
|
|
2337
|
+
borderWidth: D(),
|
|
2338
2338
|
contrast: F(),
|
|
2339
2339
|
grayscale: Q(),
|
|
2340
2340
|
hueRotate: F(),
|
|
2341
2341
|
invert: Q(),
|
|
2342
|
-
gap:
|
|
2342
|
+
gap: C(),
|
|
2343
2343
|
gradientColorStops: [e],
|
|
2344
2344
|
gradientColorStopPositions: [rn, U],
|
|
2345
|
-
inset:
|
|
2346
|
-
margin:
|
|
2345
|
+
inset: $(),
|
|
2346
|
+
margin: $(),
|
|
2347
2347
|
opacity: F(),
|
|
2348
|
-
padding:
|
|
2348
|
+
padding: C(),
|
|
2349
2349
|
saturate: F(),
|
|
2350
2350
|
scale: F(),
|
|
2351
2351
|
sepia: Q(),
|
|
2352
2352
|
skew: F(),
|
|
2353
|
-
space:
|
|
2354
|
-
translate:
|
|
2353
|
+
space: C(),
|
|
2354
|
+
translate: C()
|
|
2355
2355
|
},
|
|
2356
2356
|
classGroups: {
|
|
2357
2357
|
// Layout
|
|
@@ -2360,7 +2360,7 @@ const B = (e) => {
|
|
|
2360
2360
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2361
2361
|
*/
|
|
2362
2362
|
aspect: [{
|
|
2363
|
-
aspect: ["auto", "square", "video",
|
|
2363
|
+
aspect: ["auto", "square", "video", M]
|
|
2364
2364
|
}],
|
|
2365
2365
|
/**
|
|
2366
2366
|
* Container
|
|
@@ -2445,28 +2445,28 @@ const B = (e) => {
|
|
|
2445
2445
|
* @see https://tailwindcss.com/docs/object-position
|
|
2446
2446
|
*/
|
|
2447
2447
|
"object-position": [{
|
|
2448
|
-
object: [...P(),
|
|
2448
|
+
object: [...P(), M]
|
|
2449
2449
|
}],
|
|
2450
2450
|
/**
|
|
2451
2451
|
* Overflow
|
|
2452
2452
|
* @see https://tailwindcss.com/docs/overflow
|
|
2453
2453
|
*/
|
|
2454
2454
|
overflow: [{
|
|
2455
|
-
overflow:
|
|
2455
|
+
overflow: A()
|
|
2456
2456
|
}],
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Overflow X
|
|
2459
2459
|
* @see https://tailwindcss.com/docs/overflow
|
|
2460
2460
|
*/
|
|
2461
2461
|
"overflow-x": [{
|
|
2462
|
-
"overflow-x":
|
|
2462
|
+
"overflow-x": A()
|
|
2463
2463
|
}],
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Overflow Y
|
|
2466
2466
|
* @see https://tailwindcss.com/docs/overflow
|
|
2467
2467
|
*/
|
|
2468
2468
|
"overflow-y": [{
|
|
2469
|
-
"overflow-y":
|
|
2469
|
+
"overflow-y": A()
|
|
2470
2470
|
}],
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Overscroll Behavior
|
|
@@ -2567,7 +2567,7 @@ const B = (e) => {
|
|
|
2567
2567
|
* @see https://tailwindcss.com/docs/z-index
|
|
2568
2568
|
*/
|
|
2569
2569
|
z: [{
|
|
2570
|
-
z: ["auto", le,
|
|
2570
|
+
z: ["auto", le, M]
|
|
2571
2571
|
}],
|
|
2572
2572
|
// Flexbox and Grid
|
|
2573
2573
|
/**
|
|
@@ -2575,7 +2575,7 @@ const B = (e) => {
|
|
|
2575
2575
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
2576
2576
|
*/
|
|
2577
2577
|
basis: [{
|
|
2578
|
-
basis:
|
|
2578
|
+
basis: $()
|
|
2579
2579
|
}],
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Flex Direction
|
|
@@ -2596,7 +2596,7 @@ const B = (e) => {
|
|
|
2596
2596
|
* @see https://tailwindcss.com/docs/flex
|
|
2597
2597
|
*/
|
|
2598
2598
|
flex: [{
|
|
2599
|
-
flex: ["1", "auto", "initial", "none",
|
|
2599
|
+
flex: ["1", "auto", "initial", "none", M]
|
|
2600
2600
|
}],
|
|
2601
2601
|
/**
|
|
2602
2602
|
* Flex Grow
|
|
@@ -2617,7 +2617,7 @@ const B = (e) => {
|
|
|
2617
2617
|
* @see https://tailwindcss.com/docs/order
|
|
2618
2618
|
*/
|
|
2619
2619
|
order: [{
|
|
2620
|
-
order: ["first", "last", "none", le,
|
|
2620
|
+
order: ["first", "last", "none", le, M]
|
|
2621
2621
|
}],
|
|
2622
2622
|
/**
|
|
2623
2623
|
* Grid Template Columns
|
|
@@ -2632,8 +2632,8 @@ const B = (e) => {
|
|
|
2632
2632
|
*/
|
|
2633
2633
|
"col-start-end": [{
|
|
2634
2634
|
col: ["auto", {
|
|
2635
|
-
span: ["full", le,
|
|
2636
|
-
},
|
|
2635
|
+
span: ["full", le, M]
|
|
2636
|
+
}, M]
|
|
2637
2637
|
}],
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Grid Column Start
|
|
@@ -2662,8 +2662,8 @@ const B = (e) => {
|
|
|
2662
2662
|
*/
|
|
2663
2663
|
"row-start-end": [{
|
|
2664
2664
|
row: ["auto", {
|
|
2665
|
-
span: [le,
|
|
2666
|
-
},
|
|
2665
|
+
span: [le, M]
|
|
2666
|
+
}, M]
|
|
2667
2667
|
}],
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Grid Row Start
|
|
@@ -2691,14 +2691,14 @@ const B = (e) => {
|
|
|
2691
2691
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
2692
2692
|
*/
|
|
2693
2693
|
"auto-cols": [{
|
|
2694
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
2694
|
+
"auto-cols": ["auto", "min", "max", "fr", M]
|
|
2695
2695
|
}],
|
|
2696
2696
|
/**
|
|
2697
2697
|
* Grid Auto Rows
|
|
2698
2698
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
2699
2699
|
*/
|
|
2700
2700
|
"auto-rows": [{
|
|
2701
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
2701
|
+
"auto-rows": ["auto", "min", "max", "fr", M]
|
|
2702
2702
|
}],
|
|
2703
2703
|
/**
|
|
2704
2704
|
* Gap
|
|
@@ -2916,7 +2916,7 @@ const B = (e) => {
|
|
|
2916
2916
|
* @see https://tailwindcss.com/docs/space
|
|
2917
2917
|
*/
|
|
2918
2918
|
"space-x": [{
|
|
2919
|
-
"space-x": [
|
|
2919
|
+
"space-x": [I]
|
|
2920
2920
|
}],
|
|
2921
2921
|
/**
|
|
2922
2922
|
* Space Between X Reverse
|
|
@@ -2928,7 +2928,7 @@ const B = (e) => {
|
|
|
2928
2928
|
* @see https://tailwindcss.com/docs/space
|
|
2929
2929
|
*/
|
|
2930
2930
|
"space-y": [{
|
|
2931
|
-
"space-y": [
|
|
2931
|
+
"space-y": [I]
|
|
2932
2932
|
}],
|
|
2933
2933
|
/**
|
|
2934
2934
|
* Space Between Y Reverse
|
|
@@ -2941,21 +2941,21 @@ const B = (e) => {
|
|
|
2941
2941
|
* @see https://tailwindcss.com/docs/width
|
|
2942
2942
|
*/
|
|
2943
2943
|
w: [{
|
|
2944
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
2944
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", M, t]
|
|
2945
2945
|
}],
|
|
2946
2946
|
/**
|
|
2947
2947
|
* Min-Width
|
|
2948
2948
|
* @see https://tailwindcss.com/docs/min-width
|
|
2949
2949
|
*/
|
|
2950
2950
|
"min-w": [{
|
|
2951
|
-
"min-w": [
|
|
2951
|
+
"min-w": [M, t, "min", "max", "fit"]
|
|
2952
2952
|
}],
|
|
2953
2953
|
/**
|
|
2954
2954
|
* Max-Width
|
|
2955
2955
|
* @see https://tailwindcss.com/docs/max-width
|
|
2956
2956
|
*/
|
|
2957
2957
|
"max-w": [{
|
|
2958
|
-
"max-w": [
|
|
2958
|
+
"max-w": [M, t, "none", "full", "min", "max", "fit", "prose", {
|
|
2959
2959
|
screen: [q]
|
|
2960
2960
|
}, q]
|
|
2961
2961
|
}],
|
|
@@ -2964,28 +2964,28 @@ const B = (e) => {
|
|
|
2964
2964
|
* @see https://tailwindcss.com/docs/height
|
|
2965
2965
|
*/
|
|
2966
2966
|
h: [{
|
|
2967
|
-
h: [
|
|
2967
|
+
h: [M, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
2968
2968
|
}],
|
|
2969
2969
|
/**
|
|
2970
2970
|
* Min-Height
|
|
2971
2971
|
* @see https://tailwindcss.com/docs/min-height
|
|
2972
2972
|
*/
|
|
2973
2973
|
"min-h": [{
|
|
2974
|
-
"min-h": [
|
|
2974
|
+
"min-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
2975
2975
|
}],
|
|
2976
2976
|
/**
|
|
2977
2977
|
* Max-Height
|
|
2978
2978
|
* @see https://tailwindcss.com/docs/max-height
|
|
2979
2979
|
*/
|
|
2980
2980
|
"max-h": [{
|
|
2981
|
-
"max-h": [
|
|
2981
|
+
"max-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
2982
2982
|
}],
|
|
2983
2983
|
/**
|
|
2984
2984
|
* Size
|
|
2985
2985
|
* @see https://tailwindcss.com/docs/size
|
|
2986
2986
|
*/
|
|
2987
2987
|
size: [{
|
|
2988
|
-
size: [
|
|
2988
|
+
size: [M, t, "auto", "min", "max", "fit"]
|
|
2989
2989
|
}],
|
|
2990
2990
|
// Typography
|
|
2991
2991
|
/**
|
|
@@ -3054,7 +3054,7 @@ const B = (e) => {
|
|
|
3054
3054
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
3055
3055
|
*/
|
|
3056
3056
|
tracking: [{
|
|
3057
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
3057
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", M]
|
|
3058
3058
|
}],
|
|
3059
3059
|
/**
|
|
3060
3060
|
* Line Clamp
|
|
@@ -3068,21 +3068,21 @@ const B = (e) => {
|
|
|
3068
3068
|
* @see https://tailwindcss.com/docs/line-height
|
|
3069
3069
|
*/
|
|
3070
3070
|
leading: [{
|
|
3071
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G,
|
|
3071
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G, M]
|
|
3072
3072
|
}],
|
|
3073
3073
|
/**
|
|
3074
3074
|
* List Style Image
|
|
3075
3075
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
3076
3076
|
*/
|
|
3077
3077
|
"list-image": [{
|
|
3078
|
-
"list-image": ["none",
|
|
3078
|
+
"list-image": ["none", M]
|
|
3079
3079
|
}],
|
|
3080
3080
|
/**
|
|
3081
3081
|
* List Style Type
|
|
3082
3082
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
3083
3083
|
*/
|
|
3084
3084
|
"list-style-type": [{
|
|
3085
|
-
list: ["none", "disc", "decimal",
|
|
3085
|
+
list: ["none", "disc", "decimal", M]
|
|
3086
3086
|
}],
|
|
3087
3087
|
/**
|
|
3088
3088
|
* List Style Position
|
|
@@ -3137,7 +3137,7 @@ const B = (e) => {
|
|
|
3137
3137
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
3138
3138
|
*/
|
|
3139
3139
|
"text-decoration-style": [{
|
|
3140
|
-
decoration: [...
|
|
3140
|
+
decoration: [...H(), "wavy"]
|
|
3141
3141
|
}],
|
|
3142
3142
|
/**
|
|
3143
3143
|
* Text Decoration Thickness
|
|
@@ -3151,7 +3151,7 @@ const B = (e) => {
|
|
|
3151
3151
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3152
3152
|
*/
|
|
3153
3153
|
"underline-offset": [{
|
|
3154
|
-
"underline-offset": ["auto", G,
|
|
3154
|
+
"underline-offset": ["auto", G, M]
|
|
3155
3155
|
}],
|
|
3156
3156
|
/**
|
|
3157
3157
|
* Text Decoration Color
|
|
@@ -3182,14 +3182,14 @@ const B = (e) => {
|
|
|
3182
3182
|
* @see https://tailwindcss.com/docs/text-indent
|
|
3183
3183
|
*/
|
|
3184
3184
|
indent: [{
|
|
3185
|
-
indent:
|
|
3185
|
+
indent: C()
|
|
3186
3186
|
}],
|
|
3187
3187
|
/**
|
|
3188
3188
|
* Vertical Alignment
|
|
3189
3189
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
3190
3190
|
*/
|
|
3191
3191
|
"vertical-align": [{
|
|
3192
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
3192
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M]
|
|
3193
3193
|
}],
|
|
3194
3194
|
/**
|
|
3195
3195
|
* Whitespace
|
|
@@ -3217,7 +3217,7 @@ const B = (e) => {
|
|
|
3217
3217
|
* @see https://tailwindcss.com/docs/content
|
|
3218
3218
|
*/
|
|
3219
3219
|
content: [{
|
|
3220
|
-
content: ["none",
|
|
3220
|
+
content: ["none", M]
|
|
3221
3221
|
}],
|
|
3222
3222
|
// Backgrounds
|
|
3223
3223
|
/**
|
|
@@ -3511,7 +3511,7 @@ const B = (e) => {
|
|
|
3511
3511
|
* @see https://tailwindcss.com/docs/border-style
|
|
3512
3512
|
*/
|
|
3513
3513
|
"border-style": [{
|
|
3514
|
-
border: [...
|
|
3514
|
+
border: [...H(), "hidden"]
|
|
3515
3515
|
}],
|
|
3516
3516
|
/**
|
|
3517
3517
|
* Divide Width X
|
|
@@ -3549,7 +3549,7 @@ const B = (e) => {
|
|
|
3549
3549
|
* @see https://tailwindcss.com/docs/divide-style
|
|
3550
3550
|
*/
|
|
3551
3551
|
"divide-style": [{
|
|
3552
|
-
divide:
|
|
3552
|
+
divide: H()
|
|
3553
3553
|
}],
|
|
3554
3554
|
/**
|
|
3555
3555
|
* Border Color
|
|
@@ -3626,14 +3626,14 @@ const B = (e) => {
|
|
|
3626
3626
|
* @see https://tailwindcss.com/docs/outline-style
|
|
3627
3627
|
*/
|
|
3628
3628
|
"outline-style": [{
|
|
3629
|
-
outline: ["", ...
|
|
3629
|
+
outline: ["", ...H()]
|
|
3630
3630
|
}],
|
|
3631
3631
|
/**
|
|
3632
3632
|
* Outline Offset
|
|
3633
3633
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3634
3634
|
*/
|
|
3635
3635
|
"outline-offset": [{
|
|
3636
|
-
"outline-offset": [G,
|
|
3636
|
+
"outline-offset": [G, M]
|
|
3637
3637
|
}],
|
|
3638
3638
|
/**
|
|
3639
3639
|
* Outline Width
|
|
@@ -3654,7 +3654,7 @@ const B = (e) => {
|
|
|
3654
3654
|
* @see https://tailwindcss.com/docs/ring-width
|
|
3655
3655
|
*/
|
|
3656
3656
|
"ring-w": [{
|
|
3657
|
-
ring:
|
|
3657
|
+
ring: D()
|
|
3658
3658
|
}],
|
|
3659
3659
|
/**
|
|
3660
3660
|
* Ring Width Inset
|
|
@@ -3760,7 +3760,7 @@ const B = (e) => {
|
|
|
3760
3760
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3761
3761
|
*/
|
|
3762
3762
|
"drop-shadow": [{
|
|
3763
|
-
"drop-shadow": ["", "none", q,
|
|
3763
|
+
"drop-shadow": ["", "none", q, M]
|
|
3764
3764
|
}],
|
|
3765
3765
|
/**
|
|
3766
3766
|
* Grayscale
|
|
@@ -3795,7 +3795,7 @@ const B = (e) => {
|
|
|
3795
3795
|
* @see https://tailwindcss.com/docs/sepia
|
|
3796
3796
|
*/
|
|
3797
3797
|
sepia: [{
|
|
3798
|
-
sepia: [
|
|
3798
|
+
sepia: [S]
|
|
3799
3799
|
}],
|
|
3800
3800
|
/**
|
|
3801
3801
|
* Backdrop Filter
|
|
@@ -3866,7 +3866,7 @@ const B = (e) => {
|
|
|
3866
3866
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3867
3867
|
*/
|
|
3868
3868
|
"backdrop-sepia": [{
|
|
3869
|
-
"backdrop-sepia": [
|
|
3869
|
+
"backdrop-sepia": [S]
|
|
3870
3870
|
}],
|
|
3871
3871
|
// Tables
|
|
3872
3872
|
/**
|
|
@@ -3917,7 +3917,7 @@ const B = (e) => {
|
|
|
3917
3917
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3918
3918
|
*/
|
|
3919
3919
|
transition: [{
|
|
3920
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
3920
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", M]
|
|
3921
3921
|
}],
|
|
3922
3922
|
/**
|
|
3923
3923
|
* Transition Duration
|
|
@@ -3931,7 +3931,7 @@ const B = (e) => {
|
|
|
3931
3931
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3932
3932
|
*/
|
|
3933
3933
|
ease: [{
|
|
3934
|
-
ease: ["linear", "in", "out", "in-out",
|
|
3934
|
+
ease: ["linear", "in", "out", "in-out", M]
|
|
3935
3935
|
}],
|
|
3936
3936
|
/**
|
|
3937
3937
|
* Transition Delay
|
|
@@ -3945,7 +3945,7 @@ const B = (e) => {
|
|
|
3945
3945
|
* @see https://tailwindcss.com/docs/animation
|
|
3946
3946
|
*/
|
|
3947
3947
|
animate: [{
|
|
3948
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
3948
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", M]
|
|
3949
3949
|
}],
|
|
3950
3950
|
// Transforms
|
|
3951
3951
|
/**
|
|
@@ -3981,7 +3981,7 @@ const B = (e) => {
|
|
|
3981
3981
|
* @see https://tailwindcss.com/docs/rotate
|
|
3982
3982
|
*/
|
|
3983
3983
|
rotate: [{
|
|
3984
|
-
rotate: [le,
|
|
3984
|
+
rotate: [le, M]
|
|
3985
3985
|
}],
|
|
3986
3986
|
/**
|
|
3987
3987
|
* Translate X
|
|
@@ -4016,7 +4016,7 @@ const B = (e) => {
|
|
|
4016
4016
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
4017
4017
|
*/
|
|
4018
4018
|
"transform-origin": [{
|
|
4019
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
4019
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", M]
|
|
4020
4020
|
}],
|
|
4021
4021
|
// Interactivity
|
|
4022
4022
|
/**
|
|
@@ -4038,7 +4038,7 @@ const B = (e) => {
|
|
|
4038
4038
|
* @see https://tailwindcss.com/docs/cursor
|
|
4039
4039
|
*/
|
|
4040
4040
|
cursor: [{
|
|
4041
|
-
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",
|
|
4041
|
+
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", M]
|
|
4042
4042
|
}],
|
|
4043
4043
|
/**
|
|
4044
4044
|
* Caret Color
|
|
@@ -4073,126 +4073,126 @@ const B = (e) => {
|
|
|
4073
4073
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4074
4074
|
*/
|
|
4075
4075
|
"scroll-m": [{
|
|
4076
|
-
"scroll-m":
|
|
4076
|
+
"scroll-m": C()
|
|
4077
4077
|
}],
|
|
4078
4078
|
/**
|
|
4079
4079
|
* Scroll Margin X
|
|
4080
4080
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4081
4081
|
*/
|
|
4082
4082
|
"scroll-mx": [{
|
|
4083
|
-
"scroll-mx":
|
|
4083
|
+
"scroll-mx": C()
|
|
4084
4084
|
}],
|
|
4085
4085
|
/**
|
|
4086
4086
|
* Scroll Margin Y
|
|
4087
4087
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4088
4088
|
*/
|
|
4089
4089
|
"scroll-my": [{
|
|
4090
|
-
"scroll-my":
|
|
4090
|
+
"scroll-my": C()
|
|
4091
4091
|
}],
|
|
4092
4092
|
/**
|
|
4093
4093
|
* Scroll Margin Start
|
|
4094
4094
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4095
4095
|
*/
|
|
4096
4096
|
"scroll-ms": [{
|
|
4097
|
-
"scroll-ms":
|
|
4097
|
+
"scroll-ms": C()
|
|
4098
4098
|
}],
|
|
4099
4099
|
/**
|
|
4100
4100
|
* Scroll Margin End
|
|
4101
4101
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4102
4102
|
*/
|
|
4103
4103
|
"scroll-me": [{
|
|
4104
|
-
"scroll-me":
|
|
4104
|
+
"scroll-me": C()
|
|
4105
4105
|
}],
|
|
4106
4106
|
/**
|
|
4107
4107
|
* Scroll Margin Top
|
|
4108
4108
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4109
4109
|
*/
|
|
4110
4110
|
"scroll-mt": [{
|
|
4111
|
-
"scroll-mt":
|
|
4111
|
+
"scroll-mt": C()
|
|
4112
4112
|
}],
|
|
4113
4113
|
/**
|
|
4114
4114
|
* Scroll Margin Right
|
|
4115
4115
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4116
4116
|
*/
|
|
4117
4117
|
"scroll-mr": [{
|
|
4118
|
-
"scroll-mr":
|
|
4118
|
+
"scroll-mr": C()
|
|
4119
4119
|
}],
|
|
4120
4120
|
/**
|
|
4121
4121
|
* Scroll Margin Bottom
|
|
4122
4122
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4123
4123
|
*/
|
|
4124
4124
|
"scroll-mb": [{
|
|
4125
|
-
"scroll-mb":
|
|
4125
|
+
"scroll-mb": C()
|
|
4126
4126
|
}],
|
|
4127
4127
|
/**
|
|
4128
4128
|
* Scroll Margin Left
|
|
4129
4129
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4130
4130
|
*/
|
|
4131
4131
|
"scroll-ml": [{
|
|
4132
|
-
"scroll-ml":
|
|
4132
|
+
"scroll-ml": C()
|
|
4133
4133
|
}],
|
|
4134
4134
|
/**
|
|
4135
4135
|
* Scroll Padding
|
|
4136
4136
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4137
4137
|
*/
|
|
4138
4138
|
"scroll-p": [{
|
|
4139
|
-
"scroll-p":
|
|
4139
|
+
"scroll-p": C()
|
|
4140
4140
|
}],
|
|
4141
4141
|
/**
|
|
4142
4142
|
* Scroll Padding X
|
|
4143
4143
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4144
4144
|
*/
|
|
4145
4145
|
"scroll-px": [{
|
|
4146
|
-
"scroll-px":
|
|
4146
|
+
"scroll-px": C()
|
|
4147
4147
|
}],
|
|
4148
4148
|
/**
|
|
4149
4149
|
* Scroll Padding Y
|
|
4150
4150
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4151
4151
|
*/
|
|
4152
4152
|
"scroll-py": [{
|
|
4153
|
-
"scroll-py":
|
|
4153
|
+
"scroll-py": C()
|
|
4154
4154
|
}],
|
|
4155
4155
|
/**
|
|
4156
4156
|
* Scroll Padding Start
|
|
4157
4157
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4158
4158
|
*/
|
|
4159
4159
|
"scroll-ps": [{
|
|
4160
|
-
"scroll-ps":
|
|
4160
|
+
"scroll-ps": C()
|
|
4161
4161
|
}],
|
|
4162
4162
|
/**
|
|
4163
4163
|
* Scroll Padding End
|
|
4164
4164
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4165
4165
|
*/
|
|
4166
4166
|
"scroll-pe": [{
|
|
4167
|
-
"scroll-pe":
|
|
4167
|
+
"scroll-pe": C()
|
|
4168
4168
|
}],
|
|
4169
4169
|
/**
|
|
4170
4170
|
* Scroll Padding Top
|
|
4171
4171
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4172
4172
|
*/
|
|
4173
4173
|
"scroll-pt": [{
|
|
4174
|
-
"scroll-pt":
|
|
4174
|
+
"scroll-pt": C()
|
|
4175
4175
|
}],
|
|
4176
4176
|
/**
|
|
4177
4177
|
* Scroll Padding Right
|
|
4178
4178
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4179
4179
|
*/
|
|
4180
4180
|
"scroll-pr": [{
|
|
4181
|
-
"scroll-pr":
|
|
4181
|
+
"scroll-pr": C()
|
|
4182
4182
|
}],
|
|
4183
4183
|
/**
|
|
4184
4184
|
* Scroll Padding Bottom
|
|
4185
4185
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4186
4186
|
*/
|
|
4187
4187
|
"scroll-pb": [{
|
|
4188
|
-
"scroll-pb":
|
|
4188
|
+
"scroll-pb": C()
|
|
4189
4189
|
}],
|
|
4190
4190
|
/**
|
|
4191
4191
|
* Scroll Padding Left
|
|
4192
4192
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4193
4193
|
*/
|
|
4194
4194
|
"scroll-pl": [{
|
|
4195
|
-
"scroll-pl":
|
|
4195
|
+
"scroll-pl": C()
|
|
4196
4196
|
}],
|
|
4197
4197
|
/**
|
|
4198
4198
|
* Scroll Snap Align
|
|
@@ -4260,7 +4260,7 @@ const B = (e) => {
|
|
|
4260
4260
|
* @see https://tailwindcss.com/docs/will-change
|
|
4261
4261
|
*/
|
|
4262
4262
|
"will-change": [{
|
|
4263
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
4263
|
+
"will-change": ["auto", "scroll", "contents", "transform", M]
|
|
4264
4264
|
}],
|
|
4265
4265
|
// SVG
|
|
4266
4266
|
/**
|
|
@@ -4494,21 +4494,21 @@ function nr() {
|
|
|
4494
4494
|
}
|
|
4495
4495
|
const Ae = se(null);
|
|
4496
4496
|
function rr({ rootView: e, children: t }) {
|
|
4497
|
-
const { t: n } = J(), r = zt(), [o, i] = T([e]), [l, a] = T([null]), d =
|
|
4497
|
+
const { t: n } = J(), r = zt(), [o, i] = T([e]), [l, a] = T([null]), d = O((m, S) => {
|
|
4498
4498
|
a((E) => {
|
|
4499
|
-
const
|
|
4500
|
-
return
|
|
4499
|
+
const I = [...E];
|
|
4500
|
+
return I[m] = S, I;
|
|
4501
4501
|
});
|
|
4502
|
-
}, []), f =
|
|
4503
|
-
a((
|
|
4504
|
-
const E = [...
|
|
4502
|
+
}, []), f = O((m) => {
|
|
4503
|
+
a((S) => {
|
|
4504
|
+
const E = [...S];
|
|
4505
4505
|
return E[m] = null, E;
|
|
4506
4506
|
});
|
|
4507
|
-
}, []), u =
|
|
4508
|
-
i((
|
|
4509
|
-
}, []), w =
|
|
4507
|
+
}, []), u = O((m) => {
|
|
4508
|
+
i((S) => [...S, m]), a((S) => [...S, null]);
|
|
4509
|
+
}, []), w = O(() => {
|
|
4510
4510
|
i((m) => m.length <= 1 ? m : m.slice(0, -1)), a((m) => m.slice(0, -1));
|
|
4511
|
-
}, []), c =
|
|
4511
|
+
}, []), c = O(() => {
|
|
4512
4512
|
i([e]), a([null]);
|
|
4513
4513
|
}, [e]), p = o.length, b = p > 1, g = o.length - 1, v = o[o.length - 1], N = v != null && v.titleKey ? n(v.titleKey) : (v == null ? void 0 : v.title) ?? "";
|
|
4514
4514
|
L(() => {
|
|
@@ -4539,9 +4539,9 @@ function bn({ index: e, children: t }) {
|
|
|
4539
4539
|
const n = X(Ae);
|
|
4540
4540
|
if (!n)
|
|
4541
4541
|
throw new Error("NavViewProvider must be used within NavStackProvider");
|
|
4542
|
-
const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, l =
|
|
4542
|
+
const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, l = O((f) => {
|
|
4543
4543
|
e === i && r(e, f);
|
|
4544
|
-
}, [e, i, r]), a =
|
|
4544
|
+
}, [e, i, r]), a = O(() => {
|
|
4545
4545
|
e === i && o(e);
|
|
4546
4546
|
}, [e, i, o]), d = {
|
|
4547
4547
|
setToolbar: l,
|