@kingsimba/nc-ui 0.1.13 → 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/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 +10 -3
- package/dist/index.js +252 -245
- 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 +66 -66
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
|
|
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
|
-
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,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 }) {
|
|
@@ -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
|
}
|
|
@@ -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 ||
|
|
817
|
-
}, Ce = () => {
|
|
818
|
-
C(!0);
|
|
816
|
+
z || A(ae), n == null || n(ae);
|
|
819
817
|
}, Se = () => {
|
|
820
|
-
|
|
821
|
-
},
|
|
818
|
+
I(!0);
|
|
819
|
+
}, Ce = () => {
|
|
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,11 +828,11 @@ 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
|
-
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: $,
|
|
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%",
|
|
@@ -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({
|
|
@@ -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,8 +915,8 @@ function On({ title: e, titleTools: t, children: n, style: r }) {
|
|
|
915
915
|
)
|
|
916
916
|
] });
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
const [i, l] = T(!1), [a, d] = T(""), f =
|
|
918
|
+
function On({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
|
|
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,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 =
|
|
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
|
-
p({
|
|
1016
|
-
top:
|
|
1017
|
-
left:
|
|
1018
|
-
|
|
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
|
+
left: 0,
|
|
1018
|
+
// Not used but type needs it, let's just use 0
|
|
1019
|
+
right: window.innerWidth - A.right,
|
|
1020
|
+
width: C
|
|
1021
|
+
}) : p({
|
|
1022
|
+
top: A.bottom + 4,
|
|
1023
|
+
left: A.left,
|
|
1024
|
+
right: void 0,
|
|
1025
|
+
width: C
|
|
1019
1026
|
});
|
|
1020
1027
|
}
|
|
1021
1028
|
}, [l]), L(() => {
|
|
1022
1029
|
if (!l) return;
|
|
1023
|
-
const
|
|
1024
|
-
b.current && !b.current.contains(
|
|
1030
|
+
const A = ($) => {
|
|
1031
|
+
b.current && !b.current.contains($.target) && g.current && !g.current.contains($.target) && a(!1);
|
|
1025
1032
|
};
|
|
1026
|
-
return document.addEventListener("mousedown",
|
|
1033
|
+
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
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 A = fe(d), $ = fe(u);
|
|
1041
|
+
if (A || $)
|
|
1035
1042
|
return;
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1038
|
-
}, 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(
|
|
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: (A) => f(A.target.value),
|
|
1062
1069
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1063
1070
|
}
|
|
1064
1071
|
),
|
|
@@ -1070,23 +1077,23 @@ function Fn({
|
|
|
1070
1077
|
"input",
|
|
1071
1078
|
{
|
|
1072
1079
|
type: "text",
|
|
1073
|
-
className: `nc-month-input ${
|
|
1080
|
+
className: `nc-month-input ${S ? "nc-error" : ""}`,
|
|
1074
1081
|
value: u,
|
|
1075
|
-
onChange: (
|
|
1082
|
+
onChange: (A) => w(A.target.value),
|
|
1076
1083
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1077
1084
|
}
|
|
1078
1085
|
),
|
|
1079
|
-
|
|
1086
|
+
S && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: S })
|
|
1080
1087
|
] })
|
|
1081
1088
|
] }),
|
|
1082
|
-
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" }),
|
|
1083
1090
|
/* @__PURE__ */ y("div", { className: "nc-month-range-picker-footer", children: [
|
|
1084
1091
|
/* @__PURE__ */ s(
|
|
1085
1092
|
Y,
|
|
1086
1093
|
{
|
|
1087
1094
|
variant: "primary",
|
|
1088
1095
|
onClick: h,
|
|
1089
|
-
disabled: !d || !u || !!m || !!
|
|
1096
|
+
disabled: !d || !u || !!m || !!S || !!z,
|
|
1090
1097
|
children: "Apply"
|
|
1091
1098
|
}
|
|
1092
1099
|
),
|
|
@@ -1238,42 +1245,42 @@ function Yn({ active: e, children: t, keepMounted: n = !1, className: r = "", st
|
|
|
1238
1245
|
return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: l });
|
|
1239
1246
|
}
|
|
1240
1247
|
function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: l, multiline: a, orientation: d = "horizontal", style: f }) {
|
|
1241
|
-
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);
|
|
1242
1249
|
L(() => {
|
|
1243
1250
|
const x = () => {
|
|
1244
1251
|
if (u.current)
|
|
1245
1252
|
if (g) {
|
|
1246
|
-
const { scrollTop:
|
|
1247
|
-
c(
|
|
1253
|
+
const { scrollTop: $, scrollHeight: C, clientHeight: D } = u.current;
|
|
1254
|
+
c($ > 1), b($ < C - D - 1);
|
|
1248
1255
|
} else {
|
|
1249
|
-
const { scrollLeft:
|
|
1250
|
-
c(
|
|
1256
|
+
const { scrollLeft: $, scrollWidth: C, clientWidth: D } = u.current;
|
|
1257
|
+
c($ > 1), b($ < C - D - 1);
|
|
1251
1258
|
}
|
|
1252
|
-
},
|
|
1253
|
-
if (
|
|
1254
|
-
return x(),
|
|
1255
|
-
|
|
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);
|
|
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
|
+
}, S = (x) => {
|
|
1261
1268
|
if (!v.current || !u.current) return;
|
|
1262
|
-
const
|
|
1263
|
-
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 + $;
|
|
1264
1271
|
}, E = () => {
|
|
1265
1272
|
u.current && (v.current = !1, u.current.style.cursor = "", u.current.style.userSelect = "");
|
|
1266
|
-
},
|
|
1273
|
+
}, I = () => {
|
|
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 A = ($) => {
|
|
1280
|
+
$.deltaY !== 0 && ($.preventDefault(), x.scrollLeft += $.deltaY * 0.3);
|
|
1274
1281
|
};
|
|
1275
|
-
return x.addEventListener("wheel",
|
|
1276
|
-
x.removeEventListener("wheel",
|
|
1282
|
+
return x.addEventListener("wheel", A, { passive: !1 }), () => {
|
|
1283
|
+
x.removeEventListener("wheel", A);
|
|
1277
1284
|
};
|
|
1278
1285
|
}, [g]);
|
|
1279
1286
|
const z = (x) => {
|
|
@@ -1288,36 +1295,36 @@ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1288
1295
|
ref: u,
|
|
1289
1296
|
className: `nc-tab-scroll ${a ? "nc-multiline" : ""}`,
|
|
1290
1297
|
onMouseDown: m,
|
|
1291
|
-
onMouseMove:
|
|
1298
|
+
onMouseMove: S,
|
|
1292
1299
|
onMouseUp: E,
|
|
1293
|
-
onMouseLeave:
|
|
1300
|
+
onMouseLeave: I,
|
|
1294
1301
|
style: { cursor: "grab" },
|
|
1295
1302
|
children: e.map((x) => {
|
|
1296
|
-
const
|
|
1303
|
+
const A = typeof x == "string" ? x : x.id, $ = typeof x == "string" ? x : x.label, C = r && !(o != null && o.includes(A));
|
|
1297
1304
|
return /* @__PURE__ */ y(
|
|
1298
1305
|
"div",
|
|
1299
1306
|
{
|
|
1300
|
-
className: `nc-tab-item ${t ===
|
|
1301
|
-
onClick: () => z(
|
|
1307
|
+
className: `nc-tab-item ${t === A ? "nc-active" : ""} ${C ? "nc-closable" : ""}`,
|
|
1308
|
+
onClick: () => z(A),
|
|
1302
1309
|
role: "button",
|
|
1303
1310
|
tabIndex: 0,
|
|
1304
|
-
onKeyDown: (
|
|
1305
|
-
(
|
|
1311
|
+
onKeyDown: (D) => {
|
|
1312
|
+
(D.key === "Enter" || D.key === " ") && n(A);
|
|
1306
1313
|
},
|
|
1307
1314
|
children: [
|
|
1308
|
-
/* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ?
|
|
1309
|
-
|
|
1315
|
+
/* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ? $ : typeof $ == "string" ? $.toUpperCase() : $ }),
|
|
1316
|
+
C && /* @__PURE__ */ s(
|
|
1310
1317
|
"span",
|
|
1311
1318
|
{
|
|
1312
1319
|
className: "nc-tab-close",
|
|
1313
1320
|
role: "button",
|
|
1314
1321
|
tabIndex: 0,
|
|
1315
|
-
"aria-label": `Close ${
|
|
1316
|
-
onClick: (
|
|
1317
|
-
|
|
1322
|
+
"aria-label": `Close ${typeof $ == "string" ? $ : A}`,
|
|
1323
|
+
onClick: (D) => {
|
|
1324
|
+
D.stopPropagation(), r(A);
|
|
1318
1325
|
},
|
|
1319
|
-
onKeyDown: (
|
|
1320
|
-
(
|
|
1326
|
+
onKeyDown: (D) => {
|
|
1327
|
+
(D.key === "Enter" || D.key === " ") && (D.stopPropagation(), r(A));
|
|
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" }),
|
|
@@ -1327,7 +1334,7 @@ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1327
1334
|
)
|
|
1328
1335
|
]
|
|
1329
1336
|
},
|
|
1330
|
-
|
|
1337
|
+
A
|
|
1331
1338
|
);
|
|
1332
1339
|
})
|
|
1333
1340
|
}
|
|
@@ -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;
|
|
@@ -1428,23 +1435,23 @@ function St(e, t) {
|
|
|
1428
1435
|
}
|
|
1429
1436
|
const _n = tt(
|
|
1430
1437
|
function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: l = !1, onCursorChange: a, highlightLine: d }, f) {
|
|
1431
|
-
const u =
|
|
1438
|
+
const u = W(null), w = W(null), c = W(null);
|
|
1432
1439
|
nt(f, () => ({
|
|
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
|
-
const
|
|
1439
|
-
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();
|
|
1440
1447
|
},
|
|
1441
1448
|
goToPosition(h, k, m) {
|
|
1442
|
-
const
|
|
1443
|
-
if (!
|
|
1444
|
-
const E =
|
|
1445
|
-
|
|
1446
|
-
const
|
|
1447
|
-
|
|
1449
|
+
const S = u.current;
|
|
1450
|
+
if (!S) return;
|
|
1451
|
+
const E = St(t, h, k, m);
|
|
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();
|
|
1448
1455
|
}
|
|
1449
1456
|
}), [t]);
|
|
1450
1457
|
const p = O(() => {
|
|
@@ -1459,8 +1466,8 @@ const _n = tt(
|
|
|
1459
1466
|
if (d == null || d < 1) return;
|
|
1460
1467
|
const h = u.current;
|
|
1461
1468
|
if (!h) return;
|
|
1462
|
-
const k = parseFloat(getComputedStyle(h).lineHeight) || 18, m = (d - 1) * k,
|
|
1463
|
-
(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();
|
|
1464
1471
|
}, [d]);
|
|
1465
1472
|
const g = ge(() => t.split(`
|
|
1466
1473
|
`).length, [t]), v = () => {
|
|
@@ -1471,16 +1478,16 @@ const _n = tt(
|
|
|
1471
1478
|
);
|
|
1472
1479
|
return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: c, children: h });
|
|
1473
1480
|
}, N = (h) => h ? h.split(`
|
|
1474
|
-
`).map((m,
|
|
1481
|
+
`).map((m, S) => {
|
|
1475
1482
|
const E = m.split(" ");
|
|
1476
|
-
return /* @__PURE__ */ y("div", { className: `nc-csv-line ${d ===
|
|
1477
|
-
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: [
|
|
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: I })
|
|
1480
1487
|
] }, z)),
|
|
1481
1488
|
m === "" && `
|
|
1482
1489
|
`
|
|
1483
|
-
] },
|
|
1490
|
+
] }, S);
|
|
1484
1491
|
}) : null;
|
|
1485
1492
|
return /* @__PURE__ */ y("div", { className: `nc-csv-textarea-container ${l ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
|
|
1486
1493
|
l && v(),
|
|
@@ -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",
|
|
@@ -1587,7 +1594,7 @@ function $t({ notification: e }) {
|
|
|
1587
1594
|
);
|
|
1588
1595
|
}
|
|
1589
1596
|
function Un() {
|
|
1590
|
-
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([]);
|
|
1591
1598
|
return L(() => It((f) => {
|
|
1592
1599
|
const u = new Set(a.current.map((c) => c.id)), w = f.filter((c) => !u.has(c.id)).map((c) => c.id);
|
|
1593
1600
|
w.length > 0 ? (t(f), i(new Set(w)), requestAnimationFrame(() => {
|
|
@@ -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;
|
|
@@ -1978,7 +1985,7 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
1978
1985
|
u(null);
|
|
1979
1986
|
}, []), m = O((x) => {
|
|
1980
1987
|
c(x);
|
|
1981
|
-
}, []),
|
|
1988
|
+
}, []), S = O((x) => {
|
|
1982
1989
|
b(x);
|
|
1983
1990
|
}, []), E = ge(() => ({
|
|
1984
1991
|
setTitle: g,
|
|
@@ -1987,12 +1994,12 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
|
|
|
1987
1994
|
setToolbar: h,
|
|
1988
1995
|
clearToolbar: k,
|
|
1989
1996
|
setHideBackButton: m,
|
|
1990
|
-
setHideTitleBar:
|
|
1997
|
+
setHideTitleBar: S,
|
|
1991
1998
|
close: n
|
|
1992
|
-
}), [g, v, N, h, k, m,
|
|
1999
|
+
}), [g, v, N, h, k, m, S, n]);
|
|
1993
2000
|
if (!o)
|
|
1994
2001
|
return null;
|
|
1995
|
-
const
|
|
2002
|
+
const I = 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(I, {})
|
|
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) => {
|
|
@@ -2265,8 +2272,8 @@ const ke = "-", Dt = (e) => {
|
|
|
2265
2272
|
i.push(h);
|
|
2266
2273
|
const k = o(g, b);
|
|
2267
2274
|
for (let m = 0; m < k.length; ++m) {
|
|
2268
|
-
const
|
|
2269
|
-
i.push(N +
|
|
2275
|
+
const S = k[m];
|
|
2276
|
+
i.push(N + S);
|
|
2270
2277
|
}
|
|
2271
2278
|
a = f + (a.length > 0 ? " " + a : a);
|
|
2272
2279
|
}
|
|
@@ -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)), 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) => {
|
|
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"),
|
|
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];
|
|
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, M],
|
|
2326
2333
|
brightness: F(),
|
|
2327
2334
|
borderColor: [e],
|
|
2328
|
-
borderRadius: ["none", "", "full", q,
|
|
2329
|
-
borderSpacing:
|
|
2330
|
-
borderWidth:
|
|
2335
|
+
borderRadius: ["none", "", "full", q, M],
|
|
2336
|
+
borderSpacing: C(),
|
|
2337
|
+
borderWidth: D(),
|
|
2331
2338
|
contrast: F(),
|
|
2332
2339
|
grayscale: Q(),
|
|
2333
2340
|
hueRotate: F(),
|
|
2334
2341
|
invert: Q(),
|
|
2335
|
-
gap:
|
|
2342
|
+
gap: C(),
|
|
2336
2343
|
gradientColorStops: [e],
|
|
2337
2344
|
gradientColorStopPositions: [rn, U],
|
|
2338
|
-
inset:
|
|
2339
|
-
margin:
|
|
2345
|
+
inset: $(),
|
|
2346
|
+
margin: $(),
|
|
2340
2347
|
opacity: F(),
|
|
2341
|
-
padding:
|
|
2348
|
+
padding: C(),
|
|
2342
2349
|
saturate: F(),
|
|
2343
2350
|
scale: F(),
|
|
2344
2351
|
sepia: Q(),
|
|
2345
2352
|
skew: F(),
|
|
2346
|
-
space:
|
|
2347
|
-
translate:
|
|
2353
|
+
space: C(),
|
|
2354
|
+
translate: C()
|
|
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", M]
|
|
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(), M]
|
|
2442
2449
|
}],
|
|
2443
2450
|
/**
|
|
2444
2451
|
* Overflow
|
|
2445
2452
|
* @see https://tailwindcss.com/docs/overflow
|
|
2446
2453
|
*/
|
|
2447
2454
|
overflow: [{
|
|
2448
|
-
overflow:
|
|
2455
|
+
overflow: A()
|
|
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": A()
|
|
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": A()
|
|
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, M]
|
|
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: $()
|
|
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", M]
|
|
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, M]
|
|
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, M]
|
|
2636
|
+
}, M]
|
|
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, M]
|
|
2666
|
+
}, M]
|
|
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", M]
|
|
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", M]
|
|
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": [I]
|
|
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": [I]
|
|
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", M, 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": [M, 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": [M, 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: [M, 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": [M, 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": [M, 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: [M, 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", M]
|
|
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, M]
|
|
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", M]
|
|
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", M]
|
|
3079
3086
|
}],
|
|
3080
3087
|
/**
|
|
3081
3088
|
* List Style Position
|
|
@@ -3130,7 +3137,7 @@ const B = (e) => {
|
|
|
3130
3137
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
3131
3138
|
*/
|
|
3132
3139
|
"text-decoration-style": [{
|
|
3133
|
-
decoration: [...
|
|
3140
|
+
decoration: [...H(), "wavy"]
|
|
3134
3141
|
}],
|
|
3135
3142
|
/**
|
|
3136
3143
|
* Text Decoration Thickness
|
|
@@ -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, M]
|
|
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: C()
|
|
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", M]
|
|
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", M]
|
|
3214
3221
|
}],
|
|
3215
3222
|
// Backgrounds
|
|
3216
3223
|
/**
|
|
@@ -3504,7 +3511,7 @@ const B = (e) => {
|
|
|
3504
3511
|
* @see https://tailwindcss.com/docs/border-style
|
|
3505
3512
|
*/
|
|
3506
3513
|
"border-style": [{
|
|
3507
|
-
border: [...
|
|
3514
|
+
border: [...H(), "hidden"]
|
|
3508
3515
|
}],
|
|
3509
3516
|
/**
|
|
3510
3517
|
* Divide Width X
|
|
@@ -3542,7 +3549,7 @@ const B = (e) => {
|
|
|
3542
3549
|
* @see https://tailwindcss.com/docs/divide-style
|
|
3543
3550
|
*/
|
|
3544
3551
|
"divide-style": [{
|
|
3545
|
-
divide:
|
|
3552
|
+
divide: H()
|
|
3546
3553
|
}],
|
|
3547
3554
|
/**
|
|
3548
3555
|
* Border Color
|
|
@@ -3619,14 +3626,14 @@ const B = (e) => {
|
|
|
3619
3626
|
* @see https://tailwindcss.com/docs/outline-style
|
|
3620
3627
|
*/
|
|
3621
3628
|
"outline-style": [{
|
|
3622
|
-
outline: ["", ...
|
|
3629
|
+
outline: ["", ...H()]
|
|
3623
3630
|
}],
|
|
3624
3631
|
/**
|
|
3625
3632
|
* Outline Offset
|
|
3626
3633
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3627
3634
|
*/
|
|
3628
3635
|
"outline-offset": [{
|
|
3629
|
-
"outline-offset": [G,
|
|
3636
|
+
"outline-offset": [G, M]
|
|
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: D()
|
|
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, M]
|
|
3757
3764
|
}],
|
|
3758
3765
|
/**
|
|
3759
3766
|
* Grayscale
|
|
@@ -3788,7 +3795,7 @@ const B = (e) => {
|
|
|
3788
3795
|
* @see https://tailwindcss.com/docs/sepia
|
|
3789
3796
|
*/
|
|
3790
3797
|
sepia: [{
|
|
3791
|
-
sepia: [
|
|
3798
|
+
sepia: [S]
|
|
3792
3799
|
}],
|
|
3793
3800
|
/**
|
|
3794
3801
|
* Backdrop Filter
|
|
@@ -3859,7 +3866,7 @@ const B = (e) => {
|
|
|
3859
3866
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3860
3867
|
*/
|
|
3861
3868
|
"backdrop-sepia": [{
|
|
3862
|
-
"backdrop-sepia": [
|
|
3869
|
+
"backdrop-sepia": [S]
|
|
3863
3870
|
}],
|
|
3864
3871
|
// Tables
|
|
3865
3872
|
/**
|
|
@@ -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", M]
|
|
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", M]
|
|
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", M]
|
|
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, M]
|
|
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", M]
|
|
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", M]
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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": C()
|
|
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", M]
|
|
4257
4264
|
}],
|
|
4258
4265
|
// SVG
|
|
4259
4266
|
/**
|
|
@@ -4487,18 +4494,18 @@ 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 = O((m,
|
|
4497
|
+
const { t: n } = J(), r = zt(), [o, i] = T([e]), [l, a] = T([null]), d = O((m, S) => {
|
|
4491
4498
|
a((E) => {
|
|
4492
|
-
const
|
|
4493
|
-
return
|
|
4499
|
+
const I = [...E];
|
|
4500
|
+
return I[m] = S, I;
|
|
4494
4501
|
});
|
|
4495
4502
|
}, []), f = O((m) => {
|
|
4496
|
-
a((
|
|
4497
|
-
const E = [...
|
|
4503
|
+
a((S) => {
|
|
4504
|
+
const E = [...S];
|
|
4498
4505
|
return E[m] = null, E;
|
|
4499
4506
|
});
|
|
4500
4507
|
}, []), u = O((m) => {
|
|
4501
|
-
i((
|
|
4508
|
+
i((S) => [...S, m]), a((S) => [...S, null]);
|
|
4502
4509
|
}, []), w = O(() => {
|
|
4503
4510
|
i((m) => m.length <= 1 ? m : m.slice(0, -1)), a((m) => m.slice(0, -1));
|
|
4504
4511
|
}, []), c = O(() => {
|
|
@@ -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,
|