@kingsimba/nc-ui 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/{GeneratedIcons-CyroG9LH.js → GeneratedIcons-HFZmBTBT.js} +14 -14
- package/dist/{GeneratedIcons-CyroG9LH.js.map → GeneratedIcons-HFZmBTBT.js.map} +1 -1
- package/dist/clsx-C11secjj.cjs.map +1 -1
- package/dist/clsx-OuTLNxxd.js.map +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +207 -200
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/yaml.cjs.map +1 -1
- package/dist/yaml.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@ 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 H, 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
|
|
5
|
+
import xe, { useState as T, useRef as H, 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 W, Suspense as rt } from "react";
|
|
6
6
|
import { createPortal as pe } from "react-dom";
|
|
7
7
|
import { useTranslation as J } from "react-i18next";
|
|
8
|
-
import {
|
|
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";
|
|
9
9
|
import pt from "i18next";
|
|
10
10
|
import { c as ft } from "./clsx-OuTLNxxd.js";
|
|
11
11
|
function Be({
|
|
@@ -79,7 +79,7 @@ function Y({ variant: e = "default", block: t, size: n = "default", className: r
|
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Cn({ code: e, text: t, type: n, button: r, onAction: o }) {
|
|
83
83
|
return /* @__PURE__ */ y("div", { className: `nc-alert nc-${n}`, children: [
|
|
84
84
|
/* @__PURE__ */ y("span", { className: `nc-alert-message nc-${n}`, children: [
|
|
85
85
|
/* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
|
|
@@ -105,7 +105,7 @@ 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, A = a + f + w, E = 20,
|
|
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, A = a + f + w, E = 20, M = 0.65, z = Math.max(d, E * M), x = a + f + 1, C = (d - E * M) / 2;
|
|
109
109
|
return /* @__PURE__ */ y(
|
|
110
110
|
"svg",
|
|
111
111
|
{
|
|
@@ -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}, ${C}) scale(${M})`, 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
|
}
|
|
@@ -355,12 +355,12 @@ function Rn({
|
|
|
355
355
|
}
|
|
356
356
|
return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
|
|
357
357
|
}, []);
|
|
358
|
-
const
|
|
358
|
+
const M = r.find((R) => R.value === e), z = M && l, x = !o && !z, C = !(c && a) && !!M, I = (R, P = !1) => {
|
|
359
359
|
var D;
|
|
360
360
|
t == null || t(R), p(!1), g(""), P && ((D = h.current) == null || D.blur());
|
|
361
|
-
},
|
|
361
|
+
}, S = () => {
|
|
362
362
|
t == null || t(void 0), g(""), p(!1);
|
|
363
|
-
},
|
|
363
|
+
}, O = (R) => {
|
|
364
364
|
if (!c) {
|
|
365
365
|
(R.key === "ArrowDown" || R.key === "ArrowUp") && (p(!0), R.preventDefault());
|
|
366
366
|
return;
|
|
@@ -379,7 +379,7 @@ function Rn({
|
|
|
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 && I(E[v].value, !0);
|
|
383
383
|
break;
|
|
384
384
|
case "Escape":
|
|
385
385
|
R.preventDefault(), p(!1), g("");
|
|
@@ -394,7 +394,7 @@ 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 &&
|
|
397
|
+
o || a && R.target === h.current || (p((P) => (!P && a && M && g(M.label), !P)), a && !c && setTimeout(() => {
|
|
398
398
|
var P, D;
|
|
399
399
|
(P = h.current) == null || P.focus(), (D = h.current) == null || D.select();
|
|
400
400
|
}, 0));
|
|
@@ -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), M && (g(M.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: O,
|
|
418
|
+
value: c && a ? b : (M == null ? void 0 : M.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: C ? "transparent" : "var(--nc-text)"
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
),
|
|
430
|
-
|
|
430
|
+
C && /* @__PURE__ */ y(
|
|
431
431
|
"div",
|
|
432
432
|
{
|
|
433
433
|
"aria-hidden": !0,
|
|
@@ -446,8 +446,8 @@ 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: M == null ? void 0 : M.label }),
|
|
450
|
+
(M == null ? void 0 : M.default) && /* @__PURE__ */ y("span", { className: `nc-combo-overlay-default ${m ? "nc-small" : ""}`, children: [
|
|
451
451
|
"(",
|
|
452
452
|
A("common.default"),
|
|
453
453
|
")"
|
|
@@ -455,12 +455,12 @@ function Rn({
|
|
|
455
455
|
]
|
|
456
456
|
}
|
|
457
457
|
),
|
|
458
|
-
z && /* @__PURE__ */ s(bt, { onClick:
|
|
458
|
+
z && /* @__PURE__ */ s(bt, { onClick: S, 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: I, 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 }) {
|
|
@@ -473,7 +473,7 @@ function En({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default"
|
|
|
473
473
|
title: o ?? (t ? "Refreshing..." : "Refresh"),
|
|
474
474
|
"aria-label": i ?? (t ? "Refreshing" : "Refresh"),
|
|
475
475
|
"data-size": r,
|
|
476
|
-
children: /* @__PURE__ */ s(
|
|
476
|
+
children: /* @__PURE__ */ s(st, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
|
|
477
477
|
}
|
|
478
478
|
);
|
|
479
479
|
}
|
|
@@ -501,7 +501,7 @@ function Tn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edi
|
|
|
501
501
|
title: r,
|
|
502
502
|
"aria-label": o,
|
|
503
503
|
"data-size": n,
|
|
504
|
-
children: /* @__PURE__ */ s(
|
|
504
|
+
children: /* @__PURE__ */ s(ot, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
|
|
505
505
|
}
|
|
506
506
|
);
|
|
507
507
|
}
|
|
@@ -659,17 +659,17 @@ function Bn({
|
|
|
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((C) => {
|
|
663
|
+
for (const I of C) {
|
|
664
|
+
const S = I.contentRect.height;
|
|
665
|
+
N(S);
|
|
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 M = () => {
|
|
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") }) });
|
|
@@ -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
|
+
M()
|
|
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 = H(null), k = H(null), [m, A] = T(!1), [E,
|
|
806
|
+
const h = H(null), k = H(null), [m, A] = T(!1), [E, M] = T(!1), z = e !== void 0, [x, C] = T(t), I = z ? e : x, S = v ? v(I) : null, O = !!S, R = f === "password", P = R && p && !l && !b, D = d && I && !l && E, ee = w === "small" ? 32 : 44;
|
|
807
807
|
let K = 12;
|
|
808
808
|
D && P ? K = ee * 2 : (D || P) && (K = ee);
|
|
809
809
|
const Q = () => {
|
|
810
810
|
var te, ae;
|
|
811
|
-
z ||
|
|
811
|
+
z || C(""), 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 ||
|
|
817
|
-
}, Ce = () => {
|
|
818
|
-
C(!0);
|
|
816
|
+
z || C(ae), n == null || n(ae);
|
|
819
817
|
}, Se = () => {
|
|
820
|
-
|
|
821
|
-
},
|
|
818
|
+
M(!0);
|
|
819
|
+
}, Ce = () => {
|
|
820
|
+
M(!1);
|
|
821
|
+
}, Ie = `nc-input ${w === "small" ? "nc-small " : ""} ${O ? "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,11 +828,11 @@ function Dn({
|
|
|
828
828
|
ref: k,
|
|
829
829
|
className: Ie,
|
|
830
830
|
placeholder: i,
|
|
831
|
-
value:
|
|
831
|
+
value: I,
|
|
832
832
|
onChange: F,
|
|
833
833
|
onKeyDown: ce,
|
|
834
|
-
onFocus:
|
|
835
|
-
onBlur:
|
|
834
|
+
onFocus: Se,
|
|
835
|
+
onBlur: Ce,
|
|
836
836
|
disabled: l,
|
|
837
837
|
rows: g,
|
|
838
838
|
style: {
|
|
@@ -847,11 +847,11 @@ function Dn({
|
|
|
847
847
|
type: R && m ? "text" : f,
|
|
848
848
|
className: Ie,
|
|
849
849
|
placeholder: i,
|
|
850
|
-
value:
|
|
850
|
+
value: I,
|
|
851
851
|
onChange: F,
|
|
852
852
|
onKeyDown: ce,
|
|
853
|
-
onFocus:
|
|
854
|
-
onBlur:
|
|
853
|
+
onFocus: Se,
|
|
854
|
+
onBlur: Ce,
|
|
855
855
|
disabled: l,
|
|
856
856
|
style: {
|
|
857
857
|
width: "100%",
|
|
@@ -862,7 +862,7 @@ function Dn({
|
|
|
862
862
|
D && /* @__PURE__ */ s(yt, { onClick: Q, size: w, rightOffset: P ? ee + 4 : 4 }),
|
|
863
863
|
P && /* @__PURE__ */ s(xt, { visible: m, onClick: () => A(!m), size: w })
|
|
864
864
|
] }),
|
|
865
|
-
|
|
865
|
+
O && N && /* @__PURE__ */ s("span", { className: "nc-error-message", children: S })
|
|
866
866
|
] });
|
|
867
867
|
}
|
|
868
868
|
function Hn({
|
|
@@ -900,7 +900,7 @@ function Hn({
|
|
|
900
900
|
}
|
|
901
901
|
);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Wn({ title: e, titleTools: t, children: n, style: r }) {
|
|
904
904
|
return /* @__PURE__ */ y("div", { className: "nc-list-group", style: r, children: [
|
|
905
905
|
(e || t) && /* @__PURE__ */ y("div", { className: "nc-list-group-title", children: [
|
|
906
906
|
/* @__PURE__ */ s("div", { children: e }),
|
|
@@ -915,7 +915,7 @@ function On({ title: e, titleTools: t, children: n, style: r }) {
|
|
|
915
915
|
)
|
|
916
916
|
] });
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function On({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
|
|
919
919
|
const [i, l] = T(!1), [a, d] = T(""), f = H(null), u = ge(() => n.filter((c) => c.label.toLowerCase().includes(a.toLowerCase())), [n, a]);
|
|
920
920
|
L(() => {
|
|
921
921
|
function c(p) {
|
|
@@ -1008,34 +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 }), b = H(null), g = H(null);
|
|
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 = H(null), g = H(null);
|
|
1012
1012
|
L(() => {
|
|
1013
1013
|
if (l && b.current) {
|
|
1014
|
-
const
|
|
1015
|
-
p({
|
|
1016
|
-
top:
|
|
1017
|
-
left:
|
|
1018
|
-
|
|
1014
|
+
const C = b.current.getBoundingClientRect(), S = Math.max(C.width, 400);
|
|
1015
|
+
window.innerWidth - C.left < S && C.right >= S ? p({
|
|
1016
|
+
top: C.bottom + 4,
|
|
1017
|
+
left: 0,
|
|
1018
|
+
// Not used but type needs it, let's just use 0
|
|
1019
|
+
right: window.innerWidth - C.right,
|
|
1020
|
+
width: S
|
|
1021
|
+
}) : p({
|
|
1022
|
+
top: C.bottom + 4,
|
|
1023
|
+
left: C.left,
|
|
1024
|
+
right: void 0,
|
|
1025
|
+
width: S
|
|
1019
1026
|
});
|
|
1020
1027
|
}
|
|
1021
1028
|
}, [l]), L(() => {
|
|
1022
1029
|
if (!l) return;
|
|
1023
|
-
const
|
|
1024
|
-
b.current && !b.current.contains(
|
|
1030
|
+
const C = (I) => {
|
|
1031
|
+
b.current && !b.current.contains(I.target) && g.current && !g.current.contains(I.target) && a(!1);
|
|
1025
1032
|
};
|
|
1026
|
-
return document.addEventListener("mousedown",
|
|
1033
|
+
return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
1027
1034
|
}, [l]);
|
|
1028
1035
|
const v = () => {
|
|
1029
1036
|
f(e || $e()), w(t || $e()), a(!0);
|
|
1030
1037
|
}, N = () => {
|
|
1031
1038
|
a(!1);
|
|
1032
1039
|
}, h = () => {
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1040
|
+
const C = fe(d), I = fe(u);
|
|
1041
|
+
if (C || I)
|
|
1035
1042
|
return;
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1038
|
-
}, k = e && t ? `${Me(e)} - ${Me(t)}` : "Select month range", m = fe(d), A = fe(u), E = ue(d),
|
|
1043
|
+
const S = ue(d), O = ue(u);
|
|
1044
|
+
S && O && (n == null || n(S, O)), a(!1);
|
|
1045
|
+
}, k = e && t ? `${Me(e)} - ${Me(t)}` : "Select month range", m = fe(d), A = fe(u), E = ue(d), M = ue(u), z = E && M && E > M, x = l ? pe(
|
|
1039
1046
|
/* @__PURE__ */ s(
|
|
1040
1047
|
"div",
|
|
1041
1048
|
{
|
|
@@ -1044,8 +1051,8 @@ function Fn({
|
|
|
1044
1051
|
style: {
|
|
1045
1052
|
position: "fixed",
|
|
1046
1053
|
top: c.top,
|
|
1047
|
-
left: c.left,
|
|
1048
|
-
width:
|
|
1054
|
+
...c.right !== void 0 ? { right: c.right } : { left: c.left },
|
|
1055
|
+
width: c.width,
|
|
1049
1056
|
zIndex: 1e3
|
|
1050
1057
|
},
|
|
1051
1058
|
children: /* @__PURE__ */ y("div", { className: "nc-month-range-picker-content", children: [
|
|
@@ -1058,7 +1065,7 @@ function Fn({
|
|
|
1058
1065
|
type: "text",
|
|
1059
1066
|
className: `nc-month-input ${m ? "nc-error" : ""}`,
|
|
1060
1067
|
value: d,
|
|
1061
|
-
onChange: (
|
|
1068
|
+
onChange: (C) => f(C.target.value),
|
|
1062
1069
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1063
1070
|
}
|
|
1064
1071
|
),
|
|
@@ -1072,7 +1079,7 @@ function Fn({
|
|
|
1072
1079
|
type: "text",
|
|
1073
1080
|
className: `nc-month-input ${A ? "nc-error" : ""}`,
|
|
1074
1081
|
value: u,
|
|
1075
|
-
onChange: (
|
|
1082
|
+
onChange: (C) => w(C.target.value),
|
|
1076
1083
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1077
1084
|
}
|
|
1078
1085
|
),
|
|
@@ -1243,37 +1250,37 @@ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1243
1250
|
const x = () => {
|
|
1244
1251
|
if (u.current)
|
|
1245
1252
|
if (g) {
|
|
1246
|
-
const { scrollTop:
|
|
1247
|
-
c(
|
|
1253
|
+
const { scrollTop: I, scrollHeight: S, clientHeight: O } = u.current;
|
|
1254
|
+
c(I > 1), b(I < S - O - 1);
|
|
1248
1255
|
} else {
|
|
1249
|
-
const { scrollLeft:
|
|
1250
|
-
c(
|
|
1256
|
+
const { scrollLeft: I, scrollWidth: S, clientWidth: O } = u.current;
|
|
1257
|
+
c(I > 1), b(I < S - O - 1);
|
|
1251
1258
|
}
|
|
1252
|
-
},
|
|
1253
|
-
if (
|
|
1254
|
-
return x(),
|
|
1255
|
-
|
|
1259
|
+
}, C = u.current;
|
|
1260
|
+
if (C)
|
|
1261
|
+
return x(), C.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
|
|
1262
|
+
C.removeEventListener("scroll", x), window.removeEventListener("resize", x);
|
|
1256
1263
|
};
|
|
1257
1264
|
}, [e, g]);
|
|
1258
1265
|
const m = (x) => {
|
|
1259
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");
|
|
1260
1267
|
}, A = (x) => {
|
|
1261
1268
|
if (!v.current || !u.current) return;
|
|
1262
|
-
const
|
|
1263
|
-
Math.abs(
|
|
1269
|
+
const C = g ? x.clientY : x.clientX, I = N.current - C;
|
|
1270
|
+
Math.abs(I) > 3 && (k.current = !0), g ? u.current.scrollTop = h.current + I : u.current.scrollLeft = h.current + I;
|
|
1264
1271
|
}, E = () => {
|
|
1265
1272
|
u.current && (v.current = !1, u.current.style.cursor = "", u.current.style.userSelect = "");
|
|
1266
|
-
},
|
|
1273
|
+
}, M = () => {
|
|
1267
1274
|
E();
|
|
1268
1275
|
};
|
|
1269
1276
|
L(() => {
|
|
1270
1277
|
const x = u.current;
|
|
1271
1278
|
if (!x || g) return;
|
|
1272
|
-
const
|
|
1273
|
-
|
|
1279
|
+
const C = (I) => {
|
|
1280
|
+
I.deltaY !== 0 && (I.preventDefault(), x.scrollLeft += I.deltaY * 0.3);
|
|
1274
1281
|
};
|
|
1275
|
-
return x.addEventListener("wheel",
|
|
1276
|
-
x.removeEventListener("wheel",
|
|
1282
|
+
return x.addEventListener("wheel", C, { passive: !1 }), () => {
|
|
1283
|
+
x.removeEventListener("wheel", C);
|
|
1277
1284
|
};
|
|
1278
1285
|
}, [g]);
|
|
1279
1286
|
const z = (x) => {
|
|
@@ -1290,34 +1297,34 @@ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1290
1297
|
onMouseDown: m,
|
|
1291
1298
|
onMouseMove: A,
|
|
1292
1299
|
onMouseUp: E,
|
|
1293
|
-
onMouseLeave:
|
|
1300
|
+
onMouseLeave: M,
|
|
1294
1301
|
style: { cursor: "grab" },
|
|
1295
1302
|
children: e.map((x) => {
|
|
1296
|
-
const
|
|
1303
|
+
const C = r && !(o != null && o.includes(x));
|
|
1297
1304
|
return /* @__PURE__ */ y(
|
|
1298
1305
|
"div",
|
|
1299
1306
|
{
|
|
1300
|
-
className: `nc-tab-item ${t === x ? "nc-active" : ""} ${
|
|
1307
|
+
className: `nc-tab-item ${t === x ? "nc-active" : ""} ${C ? "nc-closable" : ""}`,
|
|
1301
1308
|
onClick: () => z(x),
|
|
1302
1309
|
role: "button",
|
|
1303
1310
|
tabIndex: 0,
|
|
1304
|
-
onKeyDown: (
|
|
1305
|
-
(
|
|
1311
|
+
onKeyDown: (I) => {
|
|
1312
|
+
(I.key === "Enter" || I.key === " ") && n(x);
|
|
1306
1313
|
},
|
|
1307
1314
|
children: [
|
|
1308
1315
|
/* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ? x : x.toUpperCase() }),
|
|
1309
|
-
|
|
1316
|
+
C && /* @__PURE__ */ s(
|
|
1310
1317
|
"span",
|
|
1311
1318
|
{
|
|
1312
1319
|
className: "nc-tab-close",
|
|
1313
1320
|
role: "button",
|
|
1314
1321
|
tabIndex: 0,
|
|
1315
1322
|
"aria-label": `Close ${x}`,
|
|
1316
|
-
onClick: (
|
|
1317
|
-
|
|
1323
|
+
onClick: (I) => {
|
|
1324
|
+
I.stopPropagation(), r(x);
|
|
1318
1325
|
},
|
|
1319
|
-
onKeyDown: (
|
|
1320
|
-
(
|
|
1326
|
+
onKeyDown: (I) => {
|
|
1327
|
+
(I.key === "Enter" || I.key === " ") && (I.stopPropagation(), r(x));
|
|
1321
1328
|
},
|
|
1322
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: [
|
|
1323
1330
|
/* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
@@ -1406,7 +1413,7 @@ function At(e, t) {
|
|
|
1406
1413
|
`), o = r.length, l = r[o - 1].split(" "), a = l.length, d = l[a - 1].length + 1;
|
|
1407
1414
|
return { line: o, column: a, character: d, offset: t };
|
|
1408
1415
|
}
|
|
1409
|
-
function
|
|
1416
|
+
function St(e, t, n, r) {
|
|
1410
1417
|
const o = e.split(`
|
|
1411
1418
|
`), i = Math.max(1, Math.min(t, o.length));
|
|
1412
1419
|
let l = 0;
|
|
@@ -1418,7 +1425,7 @@ function Ct(e, t, n, r) {
|
|
|
1418
1425
|
const u = Math.max(1, Math.min(r, d[f - 1].length + 1));
|
|
1419
1426
|
return l += u - 1, l;
|
|
1420
1427
|
}
|
|
1421
|
-
function
|
|
1428
|
+
function Ct(e, t) {
|
|
1422
1429
|
const n = e.split(`
|
|
1423
1430
|
`), r = Math.max(1, Math.min(t, n.length));
|
|
1424
1431
|
let o = 0;
|
|
@@ -1433,7 +1440,7 @@ const _n = tt(
|
|
|
1433
1440
|
goToLine(h) {
|
|
1434
1441
|
const k = u.current;
|
|
1435
1442
|
if (!k) return;
|
|
1436
|
-
const m =
|
|
1443
|
+
const m = Ct(t, h);
|
|
1437
1444
|
k.focus(), k.setSelectionRange(m, m);
|
|
1438
1445
|
const A = parseFloat(getComputedStyle(k).lineHeight) || 18;
|
|
1439
1446
|
k.scrollTop = (Math.max(1, h) - 1) * A, b(), p();
|
|
@@ -1441,17 +1448,17 @@ const _n = tt(
|
|
|
1441
1448
|
goToPosition(h, k, m) {
|
|
1442
1449
|
const A = u.current;
|
|
1443
1450
|
if (!A) return;
|
|
1444
|
-
const E =
|
|
1451
|
+
const E = St(t, h, k, m);
|
|
1445
1452
|
A.focus(), A.setSelectionRange(E, E);
|
|
1446
|
-
const
|
|
1447
|
-
A.scrollTop = (Math.max(1, h) - 1) *
|
|
1453
|
+
const M = parseFloat(getComputedStyle(A).lineHeight) || 18;
|
|
1454
|
+
A.scrollTop = (Math.max(1, h) - 1) * M, b(), p();
|
|
1448
1455
|
}
|
|
1449
1456
|
}), [t]);
|
|
1450
|
-
const p =
|
|
1457
|
+
const p = W(() => {
|
|
1451
1458
|
if (!a || !u.current) return;
|
|
1452
1459
|
const h = At(t, u.current.selectionStart);
|
|
1453
1460
|
a(h);
|
|
1454
|
-
}, [a, t]), b =
|
|
1461
|
+
}, [a, t]), b = W(() => {
|
|
1455
1462
|
const h = u.current;
|
|
1456
1463
|
h && (w.current && (w.current.scrollTop = h.scrollTop, w.current.scrollLeft = h.scrollLeft), c.current && (c.current.scrollTop = h.scrollTop));
|
|
1457
1464
|
}, []);
|
|
@@ -1474,9 +1481,9 @@ const _n = tt(
|
|
|
1474
1481
|
`).map((m, A) => {
|
|
1475
1482
|
const E = m.split(" ");
|
|
1476
1483
|
return /* @__PURE__ */ y("div", { className: `nc-csv-line ${d === A + 1 ? "nc-csv-highlight" : ""}`, children: [
|
|
1477
|
-
E.map((
|
|
1484
|
+
E.map((M, z) => /* @__PURE__ */ y("span", { children: [
|
|
1478
1485
|
z > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
|
|
1479
|
-
/* @__PURE__ */ s("span", { style: { color: Re[z % Re.length] }, children:
|
|
1486
|
+
/* @__PURE__ */ s("span", { style: { color: Re[z % Re.length] }, children: M })
|
|
1480
1487
|
] }, z)),
|
|
1481
1488
|
m === "" && `
|
|
1482
1489
|
`
|
|
@@ -1537,10 +1544,10 @@ function Mt(e) {
|
|
|
1537
1544
|
...e
|
|
1538
1545
|
};
|
|
1539
1546
|
return Z.notifications = [n, ...Z.notifications], we(), n.lastingTime && n.lastingTime > 0 && setTimeout(() => {
|
|
1540
|
-
|
|
1547
|
+
We(t);
|
|
1541
1548
|
}, n.lastingTime), t;
|
|
1542
1549
|
}
|
|
1543
|
-
function
|
|
1550
|
+
function We(e) {
|
|
1544
1551
|
const t = Z.notifications.find((r) => r.id === e);
|
|
1545
1552
|
if (!t) return;
|
|
1546
1553
|
t.isRemoving = !0, we();
|
|
@@ -1563,7 +1570,7 @@ function $t({ notification: e }) {
|
|
|
1563
1570
|
return t("common.info");
|
|
1564
1571
|
}
|
|
1565
1572
|
}, r = () => {
|
|
1566
|
-
|
|
1573
|
+
We(e.id);
|
|
1567
1574
|
};
|
|
1568
1575
|
return /* @__PURE__ */ s(
|
|
1569
1576
|
"div",
|
|
@@ -1881,9 +1888,9 @@ class Tt {
|
|
|
1881
1888
|
this.listeners.forEach((t) => t());
|
|
1882
1889
|
}
|
|
1883
1890
|
}
|
|
1884
|
-
const V = new Tt(),
|
|
1891
|
+
const V = new Tt(), Oe = se(null);
|
|
1885
1892
|
function zt() {
|
|
1886
|
-
const e = X(
|
|
1893
|
+
const e = X(Oe);
|
|
1887
1894
|
if (!e)
|
|
1888
1895
|
throw new Error("useApp must be used inside an App");
|
|
1889
1896
|
return e;
|
|
@@ -1966,19 +1973,19 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
1966
1973
|
xe.useEffect(() => {
|
|
1967
1974
|
o != null && o.titleKey && l(r(o.titleKey));
|
|
1968
1975
|
}, [o, r]);
|
|
1969
|
-
const g =
|
|
1976
|
+
const g = W((x) => {
|
|
1970
1977
|
l(x);
|
|
1971
|
-
}, []), v =
|
|
1978
|
+
}, []), v = W((x) => {
|
|
1972
1979
|
d(() => x);
|
|
1973
|
-
}, []), N =
|
|
1980
|
+
}, []), N = W(() => {
|
|
1974
1981
|
d(null);
|
|
1975
|
-
}, []), h =
|
|
1982
|
+
}, []), h = W((x) => {
|
|
1976
1983
|
u(x);
|
|
1977
|
-
}, []), k =
|
|
1984
|
+
}, []), k = W(() => {
|
|
1978
1985
|
u(null);
|
|
1979
|
-
}, []), m =
|
|
1986
|
+
}, []), m = W((x) => {
|
|
1980
1987
|
c(x);
|
|
1981
|
-
}, []), A =
|
|
1988
|
+
}, []), A = W((x) => {
|
|
1982
1989
|
b(x);
|
|
1983
1990
|
}, []), E = ge(() => ({
|
|
1984
1991
|
setTitle: g,
|
|
@@ -1992,7 +1999,7 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
1992
1999
|
}), [g, v, N, h, k, m, A, n]);
|
|
1993
2000
|
if (!o)
|
|
1994
2001
|
return null;
|
|
1995
|
-
const
|
|
2002
|
+
const M = o.component, z = !o.hideTitleBar && !p;
|
|
1996
2003
|
return /* @__PURE__ */ y(
|
|
1997
2004
|
"div",
|
|
1998
2005
|
{
|
|
@@ -2026,7 +2033,7 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
2026
2033
|
backgroundColor: "var(--nc-bg-secondary)",
|
|
2027
2034
|
position: "relative"
|
|
2028
2035
|
},
|
|
2029
|
-
children: /* @__PURE__ */ s(
|
|
2036
|
+
children: /* @__PURE__ */ s(Oe.Provider, { value: E, children: /* @__PURE__ */ s(Bt, { appId: e, children: /* @__PURE__ */ s(
|
|
2030
2037
|
rt,
|
|
2031
2038
|
{
|
|
2032
2039
|
fallback: /* @__PURE__ */ s(
|
|
@@ -2041,7 +2048,7 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
2041
2048
|
children: /* @__PURE__ */ s(Be, {})
|
|
2042
2049
|
}
|
|
2043
2050
|
),
|
|
2044
|
-
children: /* @__PURE__ */ s(
|
|
2051
|
+
children: /* @__PURE__ */ s(M, {})
|
|
2045
2052
|
}
|
|
2046
2053
|
) }) })
|
|
2047
2054
|
}
|
|
@@ -2087,7 +2094,7 @@ function Ye() {
|
|
|
2087
2094
|
return X(Ge);
|
|
2088
2095
|
}
|
|
2089
2096
|
const ke = "-", Dt = (e) => {
|
|
2090
|
-
const t =
|
|
2097
|
+
const t = Wt(e), {
|
|
2091
2098
|
conflictingClassGroups: n,
|
|
2092
2099
|
conflictingClassGroupModifiers: r
|
|
2093
2100
|
} = e;
|
|
@@ -2120,7 +2127,7 @@ const ke = "-", Dt = (e) => {
|
|
|
2120
2127
|
if (n)
|
|
2121
2128
|
return "arbitrary.." + n;
|
|
2122
2129
|
}
|
|
2123
|
-
},
|
|
2130
|
+
}, Wt = (e) => {
|
|
2124
2131
|
const {
|
|
2125
2132
|
theme: t,
|
|
2126
2133
|
prefix: n
|
|
@@ -2139,7 +2146,7 @@ const ke = "-", Dt = (e) => {
|
|
|
2139
2146
|
return;
|
|
2140
2147
|
}
|
|
2141
2148
|
if (typeof o == "function") {
|
|
2142
|
-
if (
|
|
2149
|
+
if (Ot(o)) {
|
|
2143
2150
|
ye(o(r), t, n, r);
|
|
2144
2151
|
return;
|
|
2145
2152
|
}
|
|
@@ -2161,7 +2168,7 @@ const ke = "-", Dt = (e) => {
|
|
|
2161
2168
|
validators: []
|
|
2162
2169
|
}), n = n.nextPart.get(r);
|
|
2163
2170
|
}), n;
|
|
2164
|
-
},
|
|
2171
|
+
}, Ot = (e) => e.isThemeGetter, Ft = (e, t) => t ? e.map(([n, r]) => {
|
|
2165
2172
|
const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([l, a]) => [t + l, a])) : i);
|
|
2166
2173
|
return [n, o];
|
|
2167
2174
|
}) : e, Vt = (e) => {
|
|
@@ -2306,7 +2313,7 @@ function qt(e, ...t) {
|
|
|
2306
2313
|
const B = (e) => {
|
|
2307
2314
|
const t = (n) => n[e] || [];
|
|
2308
2315
|
return t.isThemeGetter = !0, t;
|
|
2309
|
-
}, 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))\(.+\)$/, 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)), $ = (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) => {
|
|
2310
2317
|
const r = Ue.exec(e);
|
|
2311
2318
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
2312
2319
|
}, un = (e) => (
|
|
@@ -2315,36 +2322,36 @@ const B = (e) => {
|
|
|
2315
2322
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2316
2323
|
Zt.test(e) && !en.test(e)
|
|
2317
2324
|
), qe = () => !1, pn = (e) => tn.test(e), fn = (e) => nn.test(e), hn = () => {
|
|
2318
|
-
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"), A = B("sepia"), E = B("skew"),
|
|
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"), A = B("sepia"), E = B("skew"), M = B("space"), z = B("translate"), x = () => ["auto", "contain", "none"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", $, t], S = () => [$, t], O = () => ["", G, U], R = () => ["auto", re, $], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["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", $], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [re, $];
|
|
2319
2326
|
return {
|
|
2320
2327
|
cacheSize: 500,
|
|
2321
2328
|
separator: ":",
|
|
2322
2329
|
theme: {
|
|
2323
2330
|
colors: [de],
|
|
2324
2331
|
spacing: [G, U],
|
|
2325
|
-
blur: ["none", "", q,
|
|
2332
|
+
blur: ["none", "", q, $],
|
|
2326
2333
|
brightness: F(),
|
|
2327
2334
|
borderColor: [e],
|
|
2328
|
-
borderRadius: ["none", "", "full", q,
|
|
2329
|
-
borderSpacing:
|
|
2330
|
-
borderWidth:
|
|
2335
|
+
borderRadius: ["none", "", "full", q, $],
|
|
2336
|
+
borderSpacing: S(),
|
|
2337
|
+
borderWidth: O(),
|
|
2331
2338
|
contrast: F(),
|
|
2332
2339
|
grayscale: Q(),
|
|
2333
2340
|
hueRotate: F(),
|
|
2334
2341
|
invert: Q(),
|
|
2335
|
-
gap:
|
|
2342
|
+
gap: S(),
|
|
2336
2343
|
gradientColorStops: [e],
|
|
2337
2344
|
gradientColorStopPositions: [rn, U],
|
|
2338
|
-
inset:
|
|
2339
|
-
margin:
|
|
2345
|
+
inset: I(),
|
|
2346
|
+
margin: I(),
|
|
2340
2347
|
opacity: F(),
|
|
2341
|
-
padding:
|
|
2348
|
+
padding: S(),
|
|
2342
2349
|
saturate: F(),
|
|
2343
2350
|
scale: F(),
|
|
2344
2351
|
sepia: Q(),
|
|
2345
2352
|
skew: F(),
|
|
2346
|
-
space:
|
|
2347
|
-
translate:
|
|
2353
|
+
space: S(),
|
|
2354
|
+
translate: S()
|
|
2348
2355
|
},
|
|
2349
2356
|
classGroups: {
|
|
2350
2357
|
// Layout
|
|
@@ -2353,7 +2360,7 @@ const B = (e) => {
|
|
|
2353
2360
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2354
2361
|
*/
|
|
2355
2362
|
aspect: [{
|
|
2356
|
-
aspect: ["auto", "square", "video",
|
|
2363
|
+
aspect: ["auto", "square", "video", $]
|
|
2357
2364
|
}],
|
|
2358
2365
|
/**
|
|
2359
2366
|
* Container
|
|
@@ -2438,28 +2445,28 @@ const B = (e) => {
|
|
|
2438
2445
|
* @see https://tailwindcss.com/docs/object-position
|
|
2439
2446
|
*/
|
|
2440
2447
|
"object-position": [{
|
|
2441
|
-
object: [...P(),
|
|
2448
|
+
object: [...P(), $]
|
|
2442
2449
|
}],
|
|
2443
2450
|
/**
|
|
2444
2451
|
* Overflow
|
|
2445
2452
|
* @see https://tailwindcss.com/docs/overflow
|
|
2446
2453
|
*/
|
|
2447
2454
|
overflow: [{
|
|
2448
|
-
overflow:
|
|
2455
|
+
overflow: C()
|
|
2449
2456
|
}],
|
|
2450
2457
|
/**
|
|
2451
2458
|
* Overflow X
|
|
2452
2459
|
* @see https://tailwindcss.com/docs/overflow
|
|
2453
2460
|
*/
|
|
2454
2461
|
"overflow-x": [{
|
|
2455
|
-
"overflow-x":
|
|
2462
|
+
"overflow-x": C()
|
|
2456
2463
|
}],
|
|
2457
2464
|
/**
|
|
2458
2465
|
* Overflow Y
|
|
2459
2466
|
* @see https://tailwindcss.com/docs/overflow
|
|
2460
2467
|
*/
|
|
2461
2468
|
"overflow-y": [{
|
|
2462
|
-
"overflow-y":
|
|
2469
|
+
"overflow-y": C()
|
|
2463
2470
|
}],
|
|
2464
2471
|
/**
|
|
2465
2472
|
* Overscroll Behavior
|
|
@@ -2560,7 +2567,7 @@ const B = (e) => {
|
|
|
2560
2567
|
* @see https://tailwindcss.com/docs/z-index
|
|
2561
2568
|
*/
|
|
2562
2569
|
z: [{
|
|
2563
|
-
z: ["auto", le,
|
|
2570
|
+
z: ["auto", le, $]
|
|
2564
2571
|
}],
|
|
2565
2572
|
// Flexbox and Grid
|
|
2566
2573
|
/**
|
|
@@ -2568,7 +2575,7 @@ const B = (e) => {
|
|
|
2568
2575
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
2569
2576
|
*/
|
|
2570
2577
|
basis: [{
|
|
2571
|
-
basis:
|
|
2578
|
+
basis: I()
|
|
2572
2579
|
}],
|
|
2573
2580
|
/**
|
|
2574
2581
|
* Flex Direction
|
|
@@ -2589,7 +2596,7 @@ const B = (e) => {
|
|
|
2589
2596
|
* @see https://tailwindcss.com/docs/flex
|
|
2590
2597
|
*/
|
|
2591
2598
|
flex: [{
|
|
2592
|
-
flex: ["1", "auto", "initial", "none",
|
|
2599
|
+
flex: ["1", "auto", "initial", "none", $]
|
|
2593
2600
|
}],
|
|
2594
2601
|
/**
|
|
2595
2602
|
* Flex Grow
|
|
@@ -2610,7 +2617,7 @@ const B = (e) => {
|
|
|
2610
2617
|
* @see https://tailwindcss.com/docs/order
|
|
2611
2618
|
*/
|
|
2612
2619
|
order: [{
|
|
2613
|
-
order: ["first", "last", "none", le,
|
|
2620
|
+
order: ["first", "last", "none", le, $]
|
|
2614
2621
|
}],
|
|
2615
2622
|
/**
|
|
2616
2623
|
* Grid Template Columns
|
|
@@ -2625,8 +2632,8 @@ const B = (e) => {
|
|
|
2625
2632
|
*/
|
|
2626
2633
|
"col-start-end": [{
|
|
2627
2634
|
col: ["auto", {
|
|
2628
|
-
span: ["full", le,
|
|
2629
|
-
},
|
|
2635
|
+
span: ["full", le, $]
|
|
2636
|
+
}, $]
|
|
2630
2637
|
}],
|
|
2631
2638
|
/**
|
|
2632
2639
|
* Grid Column Start
|
|
@@ -2655,8 +2662,8 @@ const B = (e) => {
|
|
|
2655
2662
|
*/
|
|
2656
2663
|
"row-start-end": [{
|
|
2657
2664
|
row: ["auto", {
|
|
2658
|
-
span: [le,
|
|
2659
|
-
},
|
|
2665
|
+
span: [le, $]
|
|
2666
|
+
}, $]
|
|
2660
2667
|
}],
|
|
2661
2668
|
/**
|
|
2662
2669
|
* Grid Row Start
|
|
@@ -2684,14 +2691,14 @@ const B = (e) => {
|
|
|
2684
2691
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
2685
2692
|
*/
|
|
2686
2693
|
"auto-cols": [{
|
|
2687
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
2694
|
+
"auto-cols": ["auto", "min", "max", "fr", $]
|
|
2688
2695
|
}],
|
|
2689
2696
|
/**
|
|
2690
2697
|
* Grid Auto Rows
|
|
2691
2698
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
2692
2699
|
*/
|
|
2693
2700
|
"auto-rows": [{
|
|
2694
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
2701
|
+
"auto-rows": ["auto", "min", "max", "fr", $]
|
|
2695
2702
|
}],
|
|
2696
2703
|
/**
|
|
2697
2704
|
* Gap
|
|
@@ -2909,7 +2916,7 @@ const B = (e) => {
|
|
|
2909
2916
|
* @see https://tailwindcss.com/docs/space
|
|
2910
2917
|
*/
|
|
2911
2918
|
"space-x": [{
|
|
2912
|
-
"space-x": [
|
|
2919
|
+
"space-x": [M]
|
|
2913
2920
|
}],
|
|
2914
2921
|
/**
|
|
2915
2922
|
* Space Between X Reverse
|
|
@@ -2921,7 +2928,7 @@ const B = (e) => {
|
|
|
2921
2928
|
* @see https://tailwindcss.com/docs/space
|
|
2922
2929
|
*/
|
|
2923
2930
|
"space-y": [{
|
|
2924
|
-
"space-y": [
|
|
2931
|
+
"space-y": [M]
|
|
2925
2932
|
}],
|
|
2926
2933
|
/**
|
|
2927
2934
|
* Space Between Y Reverse
|
|
@@ -2934,21 +2941,21 @@ const B = (e) => {
|
|
|
2934
2941
|
* @see https://tailwindcss.com/docs/width
|
|
2935
2942
|
*/
|
|
2936
2943
|
w: [{
|
|
2937
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
2944
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", $, t]
|
|
2938
2945
|
}],
|
|
2939
2946
|
/**
|
|
2940
2947
|
* Min-Width
|
|
2941
2948
|
* @see https://tailwindcss.com/docs/min-width
|
|
2942
2949
|
*/
|
|
2943
2950
|
"min-w": [{
|
|
2944
|
-
"min-w": [
|
|
2951
|
+
"min-w": [$, t, "min", "max", "fit"]
|
|
2945
2952
|
}],
|
|
2946
2953
|
/**
|
|
2947
2954
|
* Max-Width
|
|
2948
2955
|
* @see https://tailwindcss.com/docs/max-width
|
|
2949
2956
|
*/
|
|
2950
2957
|
"max-w": [{
|
|
2951
|
-
"max-w": [
|
|
2958
|
+
"max-w": [$, t, "none", "full", "min", "max", "fit", "prose", {
|
|
2952
2959
|
screen: [q]
|
|
2953
2960
|
}, q]
|
|
2954
2961
|
}],
|
|
@@ -2957,28 +2964,28 @@ const B = (e) => {
|
|
|
2957
2964
|
* @see https://tailwindcss.com/docs/height
|
|
2958
2965
|
*/
|
|
2959
2966
|
h: [{
|
|
2960
|
-
h: [
|
|
2967
|
+
h: [$, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
2961
2968
|
}],
|
|
2962
2969
|
/**
|
|
2963
2970
|
* Min-Height
|
|
2964
2971
|
* @see https://tailwindcss.com/docs/min-height
|
|
2965
2972
|
*/
|
|
2966
2973
|
"min-h": [{
|
|
2967
|
-
"min-h": [
|
|
2974
|
+
"min-h": [$, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
2968
2975
|
}],
|
|
2969
2976
|
/**
|
|
2970
2977
|
* Max-Height
|
|
2971
2978
|
* @see https://tailwindcss.com/docs/max-height
|
|
2972
2979
|
*/
|
|
2973
2980
|
"max-h": [{
|
|
2974
|
-
"max-h": [
|
|
2981
|
+
"max-h": [$, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
2975
2982
|
}],
|
|
2976
2983
|
/**
|
|
2977
2984
|
* Size
|
|
2978
2985
|
* @see https://tailwindcss.com/docs/size
|
|
2979
2986
|
*/
|
|
2980
2987
|
size: [{
|
|
2981
|
-
size: [
|
|
2988
|
+
size: [$, t, "auto", "min", "max", "fit"]
|
|
2982
2989
|
}],
|
|
2983
2990
|
// Typography
|
|
2984
2991
|
/**
|
|
@@ -3047,7 +3054,7 @@ const B = (e) => {
|
|
|
3047
3054
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
3048
3055
|
*/
|
|
3049
3056
|
tracking: [{
|
|
3050
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
3057
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", $]
|
|
3051
3058
|
}],
|
|
3052
3059
|
/**
|
|
3053
3060
|
* Line Clamp
|
|
@@ -3061,21 +3068,21 @@ const B = (e) => {
|
|
|
3061
3068
|
* @see https://tailwindcss.com/docs/line-height
|
|
3062
3069
|
*/
|
|
3063
3070
|
leading: [{
|
|
3064
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G,
|
|
3071
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G, $]
|
|
3065
3072
|
}],
|
|
3066
3073
|
/**
|
|
3067
3074
|
* List Style Image
|
|
3068
3075
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
3069
3076
|
*/
|
|
3070
3077
|
"list-image": [{
|
|
3071
|
-
"list-image": ["none",
|
|
3078
|
+
"list-image": ["none", $]
|
|
3072
3079
|
}],
|
|
3073
3080
|
/**
|
|
3074
3081
|
* List Style Type
|
|
3075
3082
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
3076
3083
|
*/
|
|
3077
3084
|
"list-style-type": [{
|
|
3078
|
-
list: ["none", "disc", "decimal",
|
|
3085
|
+
list: ["none", "disc", "decimal", $]
|
|
3079
3086
|
}],
|
|
3080
3087
|
/**
|
|
3081
3088
|
* List Style Position
|
|
@@ -3144,7 +3151,7 @@ const B = (e) => {
|
|
|
3144
3151
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3145
3152
|
*/
|
|
3146
3153
|
"underline-offset": [{
|
|
3147
|
-
"underline-offset": ["auto", G,
|
|
3154
|
+
"underline-offset": ["auto", G, $]
|
|
3148
3155
|
}],
|
|
3149
3156
|
/**
|
|
3150
3157
|
* Text Decoration Color
|
|
@@ -3175,14 +3182,14 @@ const B = (e) => {
|
|
|
3175
3182
|
* @see https://tailwindcss.com/docs/text-indent
|
|
3176
3183
|
*/
|
|
3177
3184
|
indent: [{
|
|
3178
|
-
indent:
|
|
3185
|
+
indent: S()
|
|
3179
3186
|
}],
|
|
3180
3187
|
/**
|
|
3181
3188
|
* Vertical Alignment
|
|
3182
3189
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
3183
3190
|
*/
|
|
3184
3191
|
"vertical-align": [{
|
|
3185
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
3192
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", $]
|
|
3186
3193
|
}],
|
|
3187
3194
|
/**
|
|
3188
3195
|
* Whitespace
|
|
@@ -3210,7 +3217,7 @@ const B = (e) => {
|
|
|
3210
3217
|
* @see https://tailwindcss.com/docs/content
|
|
3211
3218
|
*/
|
|
3212
3219
|
content: [{
|
|
3213
|
-
content: ["none",
|
|
3220
|
+
content: ["none", $]
|
|
3214
3221
|
}],
|
|
3215
3222
|
// Backgrounds
|
|
3216
3223
|
/**
|
|
@@ -3626,7 +3633,7 @@ const B = (e) => {
|
|
|
3626
3633
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3627
3634
|
*/
|
|
3628
3635
|
"outline-offset": [{
|
|
3629
|
-
"outline-offset": [G,
|
|
3636
|
+
"outline-offset": [G, $]
|
|
3630
3637
|
}],
|
|
3631
3638
|
/**
|
|
3632
3639
|
* Outline Width
|
|
@@ -3647,7 +3654,7 @@ const B = (e) => {
|
|
|
3647
3654
|
* @see https://tailwindcss.com/docs/ring-width
|
|
3648
3655
|
*/
|
|
3649
3656
|
"ring-w": [{
|
|
3650
|
-
ring:
|
|
3657
|
+
ring: O()
|
|
3651
3658
|
}],
|
|
3652
3659
|
/**
|
|
3653
3660
|
* Ring Width Inset
|
|
@@ -3753,7 +3760,7 @@ const B = (e) => {
|
|
|
3753
3760
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3754
3761
|
*/
|
|
3755
3762
|
"drop-shadow": [{
|
|
3756
|
-
"drop-shadow": ["", "none", q,
|
|
3763
|
+
"drop-shadow": ["", "none", q, $]
|
|
3757
3764
|
}],
|
|
3758
3765
|
/**
|
|
3759
3766
|
* Grayscale
|
|
@@ -3910,7 +3917,7 @@ const B = (e) => {
|
|
|
3910
3917
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3911
3918
|
*/
|
|
3912
3919
|
transition: [{
|
|
3913
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
3920
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", $]
|
|
3914
3921
|
}],
|
|
3915
3922
|
/**
|
|
3916
3923
|
* Transition Duration
|
|
@@ -3924,7 +3931,7 @@ const B = (e) => {
|
|
|
3924
3931
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3925
3932
|
*/
|
|
3926
3933
|
ease: [{
|
|
3927
|
-
ease: ["linear", "in", "out", "in-out",
|
|
3934
|
+
ease: ["linear", "in", "out", "in-out", $]
|
|
3928
3935
|
}],
|
|
3929
3936
|
/**
|
|
3930
3937
|
* Transition Delay
|
|
@@ -3938,7 +3945,7 @@ const B = (e) => {
|
|
|
3938
3945
|
* @see https://tailwindcss.com/docs/animation
|
|
3939
3946
|
*/
|
|
3940
3947
|
animate: [{
|
|
3941
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
3948
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", $]
|
|
3942
3949
|
}],
|
|
3943
3950
|
// Transforms
|
|
3944
3951
|
/**
|
|
@@ -3974,7 +3981,7 @@ const B = (e) => {
|
|
|
3974
3981
|
* @see https://tailwindcss.com/docs/rotate
|
|
3975
3982
|
*/
|
|
3976
3983
|
rotate: [{
|
|
3977
|
-
rotate: [le,
|
|
3984
|
+
rotate: [le, $]
|
|
3978
3985
|
}],
|
|
3979
3986
|
/**
|
|
3980
3987
|
* Translate X
|
|
@@ -4009,7 +4016,7 @@ const B = (e) => {
|
|
|
4009
4016
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
4010
4017
|
*/
|
|
4011
4018
|
"transform-origin": [{
|
|
4012
|
-
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", $]
|
|
4013
4020
|
}],
|
|
4014
4021
|
// Interactivity
|
|
4015
4022
|
/**
|
|
@@ -4031,7 +4038,7 @@ const B = (e) => {
|
|
|
4031
4038
|
* @see https://tailwindcss.com/docs/cursor
|
|
4032
4039
|
*/
|
|
4033
4040
|
cursor: [{
|
|
4034
|
-
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", $]
|
|
4035
4042
|
}],
|
|
4036
4043
|
/**
|
|
4037
4044
|
* Caret Color
|
|
@@ -4066,126 +4073,126 @@ const B = (e) => {
|
|
|
4066
4073
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4067
4074
|
*/
|
|
4068
4075
|
"scroll-m": [{
|
|
4069
|
-
"scroll-m":
|
|
4076
|
+
"scroll-m": S()
|
|
4070
4077
|
}],
|
|
4071
4078
|
/**
|
|
4072
4079
|
* Scroll Margin X
|
|
4073
4080
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4074
4081
|
*/
|
|
4075
4082
|
"scroll-mx": [{
|
|
4076
|
-
"scroll-mx":
|
|
4083
|
+
"scroll-mx": S()
|
|
4077
4084
|
}],
|
|
4078
4085
|
/**
|
|
4079
4086
|
* Scroll Margin Y
|
|
4080
4087
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4081
4088
|
*/
|
|
4082
4089
|
"scroll-my": [{
|
|
4083
|
-
"scroll-my":
|
|
4090
|
+
"scroll-my": S()
|
|
4084
4091
|
}],
|
|
4085
4092
|
/**
|
|
4086
4093
|
* Scroll Margin Start
|
|
4087
4094
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4088
4095
|
*/
|
|
4089
4096
|
"scroll-ms": [{
|
|
4090
|
-
"scroll-ms":
|
|
4097
|
+
"scroll-ms": S()
|
|
4091
4098
|
}],
|
|
4092
4099
|
/**
|
|
4093
4100
|
* Scroll Margin End
|
|
4094
4101
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4095
4102
|
*/
|
|
4096
4103
|
"scroll-me": [{
|
|
4097
|
-
"scroll-me":
|
|
4104
|
+
"scroll-me": S()
|
|
4098
4105
|
}],
|
|
4099
4106
|
/**
|
|
4100
4107
|
* Scroll Margin Top
|
|
4101
4108
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4102
4109
|
*/
|
|
4103
4110
|
"scroll-mt": [{
|
|
4104
|
-
"scroll-mt":
|
|
4111
|
+
"scroll-mt": S()
|
|
4105
4112
|
}],
|
|
4106
4113
|
/**
|
|
4107
4114
|
* Scroll Margin Right
|
|
4108
4115
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4109
4116
|
*/
|
|
4110
4117
|
"scroll-mr": [{
|
|
4111
|
-
"scroll-mr":
|
|
4118
|
+
"scroll-mr": S()
|
|
4112
4119
|
}],
|
|
4113
4120
|
/**
|
|
4114
4121
|
* Scroll Margin Bottom
|
|
4115
4122
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4116
4123
|
*/
|
|
4117
4124
|
"scroll-mb": [{
|
|
4118
|
-
"scroll-mb":
|
|
4125
|
+
"scroll-mb": S()
|
|
4119
4126
|
}],
|
|
4120
4127
|
/**
|
|
4121
4128
|
* Scroll Margin Left
|
|
4122
4129
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4123
4130
|
*/
|
|
4124
4131
|
"scroll-ml": [{
|
|
4125
|
-
"scroll-ml":
|
|
4132
|
+
"scroll-ml": S()
|
|
4126
4133
|
}],
|
|
4127
4134
|
/**
|
|
4128
4135
|
* Scroll Padding
|
|
4129
4136
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4130
4137
|
*/
|
|
4131
4138
|
"scroll-p": [{
|
|
4132
|
-
"scroll-p":
|
|
4139
|
+
"scroll-p": S()
|
|
4133
4140
|
}],
|
|
4134
4141
|
/**
|
|
4135
4142
|
* Scroll Padding X
|
|
4136
4143
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4137
4144
|
*/
|
|
4138
4145
|
"scroll-px": [{
|
|
4139
|
-
"scroll-px":
|
|
4146
|
+
"scroll-px": S()
|
|
4140
4147
|
}],
|
|
4141
4148
|
/**
|
|
4142
4149
|
* Scroll Padding Y
|
|
4143
4150
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4144
4151
|
*/
|
|
4145
4152
|
"scroll-py": [{
|
|
4146
|
-
"scroll-py":
|
|
4153
|
+
"scroll-py": S()
|
|
4147
4154
|
}],
|
|
4148
4155
|
/**
|
|
4149
4156
|
* Scroll Padding Start
|
|
4150
4157
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4151
4158
|
*/
|
|
4152
4159
|
"scroll-ps": [{
|
|
4153
|
-
"scroll-ps":
|
|
4160
|
+
"scroll-ps": S()
|
|
4154
4161
|
}],
|
|
4155
4162
|
/**
|
|
4156
4163
|
* Scroll Padding End
|
|
4157
4164
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4158
4165
|
*/
|
|
4159
4166
|
"scroll-pe": [{
|
|
4160
|
-
"scroll-pe":
|
|
4167
|
+
"scroll-pe": S()
|
|
4161
4168
|
}],
|
|
4162
4169
|
/**
|
|
4163
4170
|
* Scroll Padding Top
|
|
4164
4171
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4165
4172
|
*/
|
|
4166
4173
|
"scroll-pt": [{
|
|
4167
|
-
"scroll-pt":
|
|
4174
|
+
"scroll-pt": S()
|
|
4168
4175
|
}],
|
|
4169
4176
|
/**
|
|
4170
4177
|
* Scroll Padding Right
|
|
4171
4178
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4172
4179
|
*/
|
|
4173
4180
|
"scroll-pr": [{
|
|
4174
|
-
"scroll-pr":
|
|
4181
|
+
"scroll-pr": S()
|
|
4175
4182
|
}],
|
|
4176
4183
|
/**
|
|
4177
4184
|
* Scroll Padding Bottom
|
|
4178
4185
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4179
4186
|
*/
|
|
4180
4187
|
"scroll-pb": [{
|
|
4181
|
-
"scroll-pb":
|
|
4188
|
+
"scroll-pb": S()
|
|
4182
4189
|
}],
|
|
4183
4190
|
/**
|
|
4184
4191
|
* Scroll Padding Left
|
|
4185
4192
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4186
4193
|
*/
|
|
4187
4194
|
"scroll-pl": [{
|
|
4188
|
-
"scroll-pl":
|
|
4195
|
+
"scroll-pl": S()
|
|
4189
4196
|
}],
|
|
4190
4197
|
/**
|
|
4191
4198
|
* Scroll Snap Align
|
|
@@ -4253,7 +4260,7 @@ const B = (e) => {
|
|
|
4253
4260
|
* @see https://tailwindcss.com/docs/will-change
|
|
4254
4261
|
*/
|
|
4255
4262
|
"will-change": [{
|
|
4256
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
4263
|
+
"will-change": ["auto", "scroll", "contents", "transform", $]
|
|
4257
4264
|
}],
|
|
4258
4265
|
// SVG
|
|
4259
4266
|
/**
|
|
@@ -4487,21 +4494,21 @@ function nr() {
|
|
|
4487
4494
|
}
|
|
4488
4495
|
const Ae = se(null);
|
|
4489
4496
|
function rr({ rootView: e, children: t }) {
|
|
4490
|
-
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 = W((m, A) => {
|
|
4491
4498
|
a((E) => {
|
|
4492
|
-
const
|
|
4493
|
-
return
|
|
4499
|
+
const M = [...E];
|
|
4500
|
+
return M[m] = A, M;
|
|
4494
4501
|
});
|
|
4495
|
-
}, []), f =
|
|
4502
|
+
}, []), f = W((m) => {
|
|
4496
4503
|
a((A) => {
|
|
4497
4504
|
const E = [...A];
|
|
4498
4505
|
return E[m] = null, E;
|
|
4499
4506
|
});
|
|
4500
|
-
}, []), u =
|
|
4507
|
+
}, []), u = W((m) => {
|
|
4501
4508
|
i((A) => [...A, m]), a((A) => [...A, null]);
|
|
4502
|
-
}, []), w =
|
|
4509
|
+
}, []), w = W(() => {
|
|
4503
4510
|
i((m) => m.length <= 1 ? m : m.slice(0, -1)), a((m) => m.slice(0, -1));
|
|
4504
|
-
}, []), c =
|
|
4511
|
+
}, []), c = W(() => {
|
|
4505
4512
|
i([e]), a([null]);
|
|
4506
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) ?? "";
|
|
4507
4514
|
L(() => {
|
|
@@ -4532,9 +4539,9 @@ function bn({ index: e, children: t }) {
|
|
|
4532
4539
|
const n = X(Ae);
|
|
4533
4540
|
if (!n)
|
|
4534
4541
|
throw new Error("NavViewProvider must be used within NavStackProvider");
|
|
4535
|
-
const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, l =
|
|
4542
|
+
const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, l = W((f) => {
|
|
4536
4543
|
e === i && r(e, f);
|
|
4537
|
-
}, [e, i, r]), a =
|
|
4544
|
+
}, [e, i, r]), a = W(() => {
|
|
4538
4545
|
e === i && o(e);
|
|
4539
4546
|
}, [e, i, o]), d = {
|
|
4540
4547
|
setToolbar: l,
|
|
@@ -4560,9 +4567,9 @@ function or() {
|
|
|
4560
4567
|
}
|
|
4561
4568
|
export {
|
|
4562
4569
|
Be as ActivityIndicator,
|
|
4563
|
-
|
|
4570
|
+
Cn as Alert,
|
|
4564
4571
|
Fe as AppContainer,
|
|
4565
|
-
|
|
4572
|
+
Oe as AppContext,
|
|
4566
4573
|
er as AppDialog,
|
|
4567
4574
|
Qn as AppPanel,
|
|
4568
4575
|
Zn as AppTaskbar,
|
|
@@ -4580,10 +4587,10 @@ export {
|
|
|
4580
4587
|
Tn as EditButton,
|
|
4581
4588
|
Pn as Hyperlink,
|
|
4582
4589
|
Dn as Input,
|
|
4583
|
-
|
|
4590
|
+
Wn as ListGroup,
|
|
4584
4591
|
Hn as ListGroupItem,
|
|
4585
4592
|
Fn as MonthRangePicker,
|
|
4586
|
-
|
|
4593
|
+
On as MultiSelect,
|
|
4587
4594
|
or as NavStackContainer,
|
|
4588
4595
|
rr as NavStackProvider,
|
|
4589
4596
|
$t as Notification,
|