@kingsimba/nc-ui 0.1.38 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +778 -778
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var ht = Object.defineProperty;
|
|
2
2
|
var mt = (e, t, n) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var oe = (e, t, n) => mt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { jsx as s, jsxs as
|
|
4
|
+
import { jsx as s, jsxs as N, Fragment as Ee } from "react/jsx-runtime";
|
|
5
5
|
import { d as Le, E as gt, R as bt, T as vt, g as wt, V as yt, b as xt, a as kt, c as Nt } from "./GeneratedIcons-HFZmBTBT.js";
|
|
6
|
-
import ze, { useState as
|
|
6
|
+
import ze, { useState as E, useRef as F, useEffect as D, useMemo as Ie, createContext as ge, useContext as ce, Children as At, isValidElement as St, forwardRef as Ct, useImperativeHandle as Mt, useCallback as G, Suspense as It } from "react";
|
|
7
7
|
import { createPortal as Ae } from "react-dom";
|
|
8
8
|
import { useTranslation as re } from "react-i18next";
|
|
9
9
|
import $t from "i18next";
|
|
@@ -37,8 +37,8 @@ function Qe({
|
|
|
37
37
|
);
|
|
38
38
|
return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
|
|
39
39
|
}
|
|
40
|
-
function te({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children:
|
|
41
|
-
const
|
|
40
|
+
function te({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: u, ...f }) {
|
|
41
|
+
const g = [
|
|
42
42
|
"nc-button",
|
|
43
43
|
e !== "default" ? `nc-${e}` : "",
|
|
44
44
|
t ? "nc-block" : "",
|
|
@@ -50,22 +50,22 @@ function te({ variant: e = "default", block: t, size: n = "default", appearance:
|
|
|
50
50
|
c ? "nc-loading" : "",
|
|
51
51
|
o ?? ""
|
|
52
52
|
].filter(Boolean).join(" ");
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ N(
|
|
54
54
|
"button",
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
56
|
+
className: g,
|
|
57
57
|
disabled: i || c,
|
|
58
58
|
onClick: (b) => {
|
|
59
59
|
if (!c) {
|
|
60
60
|
if (a) {
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
61
|
+
const S = window.getSelection();
|
|
62
|
+
if (S && S.toString().length > 0)
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
l == null || l(b);
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
...
|
|
68
|
+
...f,
|
|
69
69
|
children: [
|
|
70
70
|
c && /* @__PURE__ */ s(
|
|
71
71
|
Qe,
|
|
@@ -75,7 +75,7 @@ function te({ variant: e = "default", block: t, size: n = "default", appearance:
|
|
|
75
75
|
color: r === "transparent" || e !== "default" && e !== "ghost" ? "white" : void 0
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
|
-
|
|
78
|
+
u
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
);
|
|
@@ -98,13 +98,13 @@ function Un({
|
|
|
98
98
|
className: c = "",
|
|
99
99
|
style: l
|
|
100
100
|
}) {
|
|
101
|
-
const
|
|
101
|
+
const u = i ?? /* @__PURE__ */ N(Ee, { children: [
|
|
102
102
|
e !== void 0 && /* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
|
|
103
103
|
t
|
|
104
104
|
] });
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
/* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children:
|
|
105
|
+
return /* @__PURE__ */ N("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
|
|
106
|
+
/* @__PURE__ */ N("div", { className: "nc-alert-main", children: [
|
|
107
|
+
/* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: u }),
|
|
108
108
|
a && /* @__PURE__ */ s(
|
|
109
109
|
"button",
|
|
110
110
|
{
|
|
@@ -136,48 +136,48 @@ function qn({
|
|
|
136
136
|
const o = Math.max(0, Math.min(1, Number(e) || 0)), i = o === 0 ? "-" : String(Math.round(o * 100));
|
|
137
137
|
let a;
|
|
138
138
|
r ? o < 0.1 ? a = "var(--nc-danger)" : o < 0.2 ? a = "var(--nc-warning)" : a = "var(--nc-success)" : a = n ? "rgba(255,255,255,0.35)" : "#000000";
|
|
139
|
-
const c = "var(--nc-battery-shell-bg)", l = 24,
|
|
140
|
-
return /* @__PURE__ */
|
|
139
|
+
const c = "var(--nc-battery-shell-bg)", l = 24, u = 14, f = 2, g = 0, d = 12, b = 0, S = 0, v = 0, w = l, k = u, h = k - b * 2, p = w - b * 2, m = Math.max(1, Math.min(4, k / 4)), x = o === 0 ? 0 : 0.05 + o * 0.95, y = l + f + d, M = 20, P = 0.65, C = Math.max(u, M * P), I = l + f + 1, A = (u - M * P) / 2;
|
|
140
|
+
return /* @__PURE__ */ N(
|
|
141
141
|
"svg",
|
|
142
142
|
{
|
|
143
143
|
className: "nc-battery",
|
|
144
|
-
width:
|
|
145
|
-
height:
|
|
146
|
-
viewBox: `0 0 ${
|
|
144
|
+
width: y,
|
|
145
|
+
height: C,
|
|
146
|
+
viewBox: `0 0 ${y} ${C}`,
|
|
147
147
|
role: "img",
|
|
148
148
|
"aria-label": `Battery ${i === "-" ? "-" : `${i}%`} ${t}`,
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width:
|
|
150
|
+
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: p * x, height: h, fill: "white" }) }) }),
|
|
151
151
|
/* @__PURE__ */ s(
|
|
152
152
|
"rect",
|
|
153
153
|
{
|
|
154
|
-
x:
|
|
154
|
+
x: S,
|
|
155
155
|
y: v,
|
|
156
|
-
rx:
|
|
157
|
-
ry:
|
|
158
|
-
width:
|
|
159
|
-
height:
|
|
156
|
+
rx: m,
|
|
157
|
+
ry: m,
|
|
158
|
+
width: w,
|
|
159
|
+
height: k,
|
|
160
160
|
fill: c
|
|
161
161
|
}
|
|
162
162
|
),
|
|
163
163
|
/* @__PURE__ */ s(
|
|
164
164
|
"rect",
|
|
165
165
|
{
|
|
166
|
-
x:
|
|
166
|
+
x: S + b,
|
|
167
167
|
y: v + b,
|
|
168
|
-
width:
|
|
169
|
-
height:
|
|
168
|
+
width: p,
|
|
169
|
+
height: h,
|
|
170
170
|
fill: a,
|
|
171
|
-
rx:
|
|
172
|
-
ry:
|
|
171
|
+
rx: m,
|
|
172
|
+
ry: m,
|
|
173
173
|
mask: `url(#nc-battery-fill-mask-${o})`
|
|
174
174
|
}
|
|
175
175
|
),
|
|
176
176
|
/* @__PURE__ */ s(
|
|
177
177
|
"text",
|
|
178
178
|
{
|
|
179
|
-
x:
|
|
180
|
-
y:
|
|
179
|
+
x: S + w / 2,
|
|
180
|
+
y: u - 3,
|
|
181
181
|
fontSize: 11,
|
|
182
182
|
fontWeight: "bold",
|
|
183
183
|
fill: "var(--nc-battery-text-contrast)",
|
|
@@ -188,16 +188,16 @@ function qn({
|
|
|
188
188
|
/* @__PURE__ */ s(
|
|
189
189
|
"rect",
|
|
190
190
|
{
|
|
191
|
-
x: l +
|
|
192
|
-
y:
|
|
193
|
-
width:
|
|
194
|
-
height:
|
|
191
|
+
x: l + g,
|
|
192
|
+
y: u * 0.26,
|
|
193
|
+
width: f,
|
|
194
|
+
height: u * 0.48,
|
|
195
195
|
rx: 0.8,
|
|
196
196
|
ry: 0.8,
|
|
197
197
|
fill: o === 1 ? a : c
|
|
198
198
|
}
|
|
199
199
|
),
|
|
200
|
-
t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${
|
|
200
|
+
t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${I}, ${A}) scale(${P})`, fill: a, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
|
|
201
201
|
]
|
|
202
202
|
}
|
|
203
203
|
);
|
|
@@ -238,13 +238,13 @@ function Pt({ size: e }) {
|
|
|
238
238
|
}
|
|
239
239
|
function Jn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
|
|
240
240
|
const l = o === "small";
|
|
241
|
-
return /* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ N(
|
|
242
242
|
"label",
|
|
243
243
|
{
|
|
244
244
|
className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${c}`.trim(),
|
|
245
245
|
style: a,
|
|
246
|
-
onClick: (
|
|
247
|
-
n || (
|
|
246
|
+
onClick: (u) => {
|
|
247
|
+
n || (u.preventDefault(), t(!e));
|
|
248
248
|
},
|
|
249
249
|
children: [
|
|
250
250
|
/* @__PURE__ */ s(
|
|
@@ -254,8 +254,8 @@ function Jn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
|
|
|
254
254
|
"aria-checked": e,
|
|
255
255
|
tabIndex: 0,
|
|
256
256
|
className: `nc-checkbox-box ${l ? "nc-small" : ""} ${e ? "nc-checked" : ""}`,
|
|
257
|
-
onKeyDown: (
|
|
258
|
-
n || (
|
|
257
|
+
onKeyDown: (u) => {
|
|
258
|
+
n || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t(!e));
|
|
259
259
|
},
|
|
260
260
|
children: e && /* @__PURE__ */ s(Pt, { size: o })
|
|
261
261
|
}
|
|
@@ -266,28 +266,28 @@ function Jn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
|
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
268
|
function Et({ option: e, onChange: t, selected: n, highlighted: r, small: o, renderOption: i, index: a }) {
|
|
269
|
-
const c = F(null), { t: l } = re(),
|
|
269
|
+
const c = F(null), { t: l } = re(), u = e.disabled === !0;
|
|
270
270
|
return D(() => {
|
|
271
271
|
r && c.current && c.current.scrollIntoView({ block: "nearest" });
|
|
272
272
|
}, [r]), /* @__PURE__ */ s(
|
|
273
273
|
"div",
|
|
274
274
|
{
|
|
275
275
|
ref: c,
|
|
276
|
-
className: `nc-combo-dropdown-option ${o ? "nc-small" : ""} ${r ? "nc-highlighted" : ""} ${
|
|
276
|
+
className: `nc-combo-dropdown-option ${o ? "nc-small" : ""} ${r ? "nc-highlighted" : ""} ${u ? "nc-disabled" : ""}`,
|
|
277
277
|
role: "option",
|
|
278
278
|
onClick: () => {
|
|
279
|
-
|
|
279
|
+
u || t(e.value, e.label);
|
|
280
280
|
},
|
|
281
281
|
"aria-selected": n,
|
|
282
|
-
"aria-disabled":
|
|
282
|
+
"aria-disabled": u,
|
|
283
283
|
style: {
|
|
284
|
-
cursor:
|
|
285
|
-
opacity:
|
|
286
|
-
background: r && !
|
|
284
|
+
cursor: u ? "default" : "pointer",
|
|
285
|
+
opacity: u ? 0.4 : void 0,
|
|
286
|
+
background: r && !u ? "rgba(59,130,246,0.18)" : n && !u ? "rgba(59,130,246,0.12)" : void 0
|
|
287
287
|
},
|
|
288
|
-
children: i ? i(e, a, !!r) : /* @__PURE__ */
|
|
288
|
+
children: i ? i(e, a, !!r) : /* @__PURE__ */ N(Ee, { children: [
|
|
289
289
|
e.label,
|
|
290
|
-
e.default && /* @__PURE__ */
|
|
290
|
+
e.default && /* @__PURE__ */ N("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
|
|
291
291
|
"(",
|
|
292
292
|
l("common.default"),
|
|
293
293
|
")"
|
|
@@ -307,41 +307,41 @@ function Lt({
|
|
|
307
307
|
highlightedIndex: c = -1,
|
|
308
308
|
renderOption: l
|
|
309
309
|
}) {
|
|
310
|
-
const [
|
|
310
|
+
const [u, f] = E({ top: 0, left: 0, width: 0 }), [g, d] = E(o), { t: b } = re();
|
|
311
311
|
if (D(() => {
|
|
312
312
|
if (e && i.current) {
|
|
313
313
|
const v = i.current.getBoundingClientRect();
|
|
314
|
-
let
|
|
314
|
+
let w = o;
|
|
315
315
|
if (o === "bottom") {
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const k = window.innerHeight - v.bottom, h = v.top;
|
|
317
|
+
k < 320 && h > k && (w = "top");
|
|
318
318
|
}
|
|
319
|
-
|
|
320
|
-
top:
|
|
319
|
+
d(w), f({
|
|
320
|
+
top: w === "top" ? v.top - 4 : v.bottom + 4,
|
|
321
321
|
left: v.left,
|
|
322
322
|
width: v.width
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
}, [e, i, o]), !e) return null;
|
|
326
|
-
const
|
|
326
|
+
const S = /* @__PURE__ */ s(
|
|
327
327
|
"div",
|
|
328
328
|
{
|
|
329
329
|
className: "nc-combo-dropdown",
|
|
330
330
|
onMouseDown: (v) => v.stopPropagation(),
|
|
331
331
|
style: {
|
|
332
332
|
position: "fixed",
|
|
333
|
-
top:
|
|
334
|
-
bottom:
|
|
335
|
-
left:
|
|
336
|
-
width:
|
|
333
|
+
top: g === "top" ? void 0 : u.top,
|
|
334
|
+
bottom: g === "top" ? window.innerHeight - u.top : void 0,
|
|
335
|
+
left: u.left,
|
|
336
|
+
width: u.width,
|
|
337
337
|
zIndex: 1e3,
|
|
338
338
|
maxHeight: 300,
|
|
339
339
|
overflowY: "auto"
|
|
340
340
|
},
|
|
341
|
-
children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: b("common.noResults") }) : t.map((v,
|
|
341
|
+
children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: b("common.noResults") }) : t.map((v, w) => /* @__PURE__ */ s(Et, { option: v, onChange: n, selected: v.value === r, highlighted: w === c, small: a, renderOption: l, index: w }, v.value))
|
|
342
342
|
}
|
|
343
343
|
);
|
|
344
|
-
return Ae(
|
|
344
|
+
return Ae(S, document.body);
|
|
345
345
|
}
|
|
346
346
|
function zt({ onClick: e, small: t }) {
|
|
347
347
|
return /* @__PURE__ */ s(
|
|
@@ -382,20 +382,20 @@ function Qn({
|
|
|
382
382
|
renderSelected: a,
|
|
383
383
|
selectedOption: c,
|
|
384
384
|
disabled: l,
|
|
385
|
-
label:
|
|
386
|
-
clearable:
|
|
387
|
-
allowTyping:
|
|
388
|
-
placement:
|
|
385
|
+
label: u,
|
|
386
|
+
clearable: f = !0,
|
|
387
|
+
allowTyping: g = !1,
|
|
388
|
+
placement: d = "bottom",
|
|
389
389
|
size: b = "default",
|
|
390
|
-
appearance:
|
|
390
|
+
appearance: S = "default",
|
|
391
391
|
textAlign: v = "left",
|
|
392
|
-
style:
|
|
393
|
-
className:
|
|
392
|
+
style: w,
|
|
393
|
+
className: k
|
|
394
394
|
}) {
|
|
395
|
-
const [
|
|
395
|
+
const [h, p] = E(!1), [m, x] = E(""), [y, M] = E(-1), P = F(null), C = F(null), I = F(null), A = b === "small", { t: $ } = re(), L = !!o, H = g || L, [ae, X] = E([]), [K, _] = E(() => {
|
|
396
396
|
if (r && e) {
|
|
397
|
-
const
|
|
398
|
-
return
|
|
397
|
+
const T = r.find((W) => W.value === e);
|
|
398
|
+
return T ? T.label : "";
|
|
399
399
|
}
|
|
400
400
|
return o && e ? e : "";
|
|
401
401
|
});
|
|
@@ -405,49 +405,49 @@ function Qn({
|
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
407
|
if (r) {
|
|
408
|
-
const
|
|
409
|
-
|
|
408
|
+
const T = r.find((W) => W.value === e);
|
|
409
|
+
T && _(T.label);
|
|
410
410
|
} else o && _(e);
|
|
411
411
|
}, [e, r, o]);
|
|
412
|
-
const U = (
|
|
412
|
+
const U = (T, W = !1) => {
|
|
413
413
|
if (!o) return;
|
|
414
|
-
|
|
414
|
+
I.current && clearTimeout(I.current);
|
|
415
415
|
const B = async () => {
|
|
416
416
|
try {
|
|
417
|
-
const Y = await o(
|
|
418
|
-
X(Y),
|
|
417
|
+
const Y = await o(T);
|
|
418
|
+
X(Y), M(-1);
|
|
419
419
|
} catch {
|
|
420
420
|
X([]);
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
|
-
W ? B() :
|
|
423
|
+
W ? B() : I.current = setTimeout(B, 200);
|
|
424
424
|
}, j = Ie(() => {
|
|
425
425
|
if (L) return ae;
|
|
426
|
-
const
|
|
427
|
-
return H ? (r || []).filter((W) => W.label.toLowerCase().includes(
|
|
428
|
-
}, [r,
|
|
426
|
+
const T = m.toLowerCase();
|
|
427
|
+
return H ? (r || []).filter((W) => W.label.toLowerCase().includes(T)) : r || [];
|
|
428
|
+
}, [r, m, H, L, ae]);
|
|
429
429
|
D(() => {
|
|
430
|
-
|
|
431
|
-
}, [
|
|
432
|
-
if (!
|
|
433
|
-
const
|
|
434
|
-
t(
|
|
430
|
+
h && M(-1);
|
|
431
|
+
}, [h, j]), D(() => {
|
|
432
|
+
if (!f && !e && r && r.length > 0 && t) {
|
|
433
|
+
const T = r.find((W) => W.default) || r[0];
|
|
434
|
+
t(T.value);
|
|
435
435
|
}
|
|
436
|
-
}, [
|
|
437
|
-
function
|
|
436
|
+
}, [f, e, r, t]), D(() => {
|
|
437
|
+
function T(W) {
|
|
438
438
|
var B;
|
|
439
|
-
W.target instanceof Node &&
|
|
439
|
+
W.target instanceof Node && P.current && ((B = P.current.parentElement) != null && B.contains(W.target) || p(!1));
|
|
440
440
|
}
|
|
441
|
-
return document.addEventListener("mousedown",
|
|
441
|
+
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
442
442
|
}, []);
|
|
443
|
-
const z = c ?? (r ? r.find((
|
|
443
|
+
const z = c ?? (r ? r.find((T) => T.value === e) : e ? { label: K, value: e } : void 0), q = z && f, le = !l && !q, pe = `nc-align-${v}`, ve = !(h && H) && !!z, de = (T, W, B = !1) => {
|
|
444
444
|
var Y;
|
|
445
|
-
_(W), t == null || t(
|
|
445
|
+
_(W), t == null || t(T), p(!1), x(""), B && ((Y = P.current) == null || Y.blur());
|
|
446
446
|
}, we = () => {
|
|
447
|
-
t == null || t(void 0),
|
|
448
|
-
}, ye = (
|
|
449
|
-
if (!
|
|
450
|
-
(
|
|
447
|
+
t == null || t(void 0), x(""), p(!1);
|
|
448
|
+
}, ye = (T) => {
|
|
449
|
+
if (!h) {
|
|
450
|
+
(T.key === "ArrowDown" || T.key === "ArrowUp") && (p(!0), T.preventDefault());
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
453
|
const W = (B, Y) => {
|
|
@@ -464,76 +464,76 @@ function Qn({
|
|
|
464
464
|
}
|
|
465
465
|
return B;
|
|
466
466
|
};
|
|
467
|
-
switch (
|
|
467
|
+
switch (T.key) {
|
|
468
468
|
case "ArrowDown":
|
|
469
|
-
|
|
469
|
+
T.preventDefault(), M((B) => {
|
|
470
470
|
const Y = B + 1, V = Y >= j.length ? 0 : Y;
|
|
471
471
|
return W(V, 1);
|
|
472
472
|
});
|
|
473
473
|
break;
|
|
474
474
|
case "ArrowUp":
|
|
475
|
-
|
|
475
|
+
T.preventDefault(), M((B) => {
|
|
476
476
|
const Y = B - 1, V = Y < 0 ? j.length - 1 : Y;
|
|
477
477
|
return W(V, -1);
|
|
478
478
|
});
|
|
479
479
|
break;
|
|
480
480
|
case "Enter":
|
|
481
|
-
|
|
481
|
+
T.preventDefault(), y >= 0 && y < j.length && !j[y].disabled && de(j[y].value, j[y].label, !0);
|
|
482
482
|
break;
|
|
483
483
|
case "Escape":
|
|
484
|
-
|
|
484
|
+
T.preventDefault(), p(!1), x("");
|
|
485
485
|
break;
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
|
-
return /* @__PURE__ */
|
|
489
|
-
|
|
490
|
-
/* @__PURE__ */
|
|
488
|
+
return /* @__PURE__ */ N("div", { className: `nc-combo-container ${S === "transparent" ? "nc-transparent" : ""} ${S === "plain" ? "nc-plain" : ""} ${h ? "nc-open" : ""} ${pe} ${k || ""}`.trim(), style: { position: "relative", ...w }, children: [
|
|
489
|
+
u && /* @__PURE__ */ s("span", { className: `nc-label ${A ? "nc-small" : ""}`, children: u }),
|
|
490
|
+
/* @__PURE__ */ N(
|
|
491
491
|
"div",
|
|
492
492
|
{
|
|
493
|
-
ref:
|
|
493
|
+
ref: C,
|
|
494
494
|
style: { position: "relative", display: "flex", alignItems: "center" },
|
|
495
|
-
onMouseDown: (
|
|
496
|
-
if (l || H &&
|
|
497
|
-
const W = !
|
|
498
|
-
if (
|
|
495
|
+
onMouseDown: (T) => {
|
|
496
|
+
if (l || H && T.target === P.current) return;
|
|
497
|
+
const W = !h;
|
|
498
|
+
if (p((B) => (!B && H && z && x(z.label), !B)), L && W) {
|
|
499
499
|
const B = H && z ? z.label : "";
|
|
500
500
|
X([]), setTimeout(() => U(B, !0), 0);
|
|
501
501
|
}
|
|
502
|
-
H && !
|
|
502
|
+
H && !h && setTimeout(() => {
|
|
503
503
|
var B, Y;
|
|
504
|
-
(B =
|
|
504
|
+
(B = P.current) == null || B.focus(), (Y = P.current) == null || Y.select();
|
|
505
505
|
}, 0);
|
|
506
506
|
},
|
|
507
507
|
children: [
|
|
508
508
|
/* @__PURE__ */ s(
|
|
509
509
|
"input",
|
|
510
510
|
{
|
|
511
|
-
ref:
|
|
512
|
-
className: `nc-input ${
|
|
511
|
+
ref: P,
|
|
512
|
+
className: `nc-input ${A ? "nc-small" : ""}`,
|
|
513
513
|
placeholder: n,
|
|
514
514
|
onFocus: () => {
|
|
515
515
|
if (!l && H) {
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
z && (
|
|
516
|
+
p(!0);
|
|
517
|
+
const T = z ? z.label : "";
|
|
518
|
+
z && (x(T), setTimeout(() => {
|
|
519
519
|
var W;
|
|
520
|
-
return (W =
|
|
521
|
-
}, 0)), L && (X([]), U(
|
|
520
|
+
return (W = P.current) == null ? void 0 : W.select();
|
|
521
|
+
}, 0)), L && (X([]), U(T, !0));
|
|
522
522
|
}
|
|
523
523
|
},
|
|
524
|
-
onChange: (
|
|
525
|
-
const W =
|
|
526
|
-
H && (
|
|
524
|
+
onChange: (T) => {
|
|
525
|
+
const W = T.target.value;
|
|
526
|
+
H && (x(W), L && U(W));
|
|
527
527
|
},
|
|
528
528
|
onKeyDown: ye,
|
|
529
|
-
value:
|
|
529
|
+
value: h && H ? m : (z == null ? void 0 : z.label) || "",
|
|
530
530
|
readOnly: l || !H,
|
|
531
531
|
style: {
|
|
532
532
|
width: "100%",
|
|
533
|
-
paddingRight: le || q ?
|
|
534
|
-
caretColor:
|
|
535
|
-
cursor:
|
|
536
|
-
userSelect:
|
|
533
|
+
paddingRight: le || q ? A ? 32 : 44 : 12,
|
|
534
|
+
caretColor: g ? void 0 : "transparent",
|
|
535
|
+
cursor: g ? void 0 : "pointer",
|
|
536
|
+
userSelect: g ? void 0 : "none",
|
|
537
537
|
color: ve ? "transparent" : "var(--nc-text)"
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -545,8 +545,8 @@ function Qn({
|
|
|
545
545
|
className: `nc-combo-overlay ${pe}`,
|
|
546
546
|
style: {
|
|
547
547
|
position: "absolute",
|
|
548
|
-
left:
|
|
549
|
-
right: le || q ?
|
|
548
|
+
left: A ? 8 : 12,
|
|
549
|
+
right: le || q ? A ? 12 : 24 : A ? 8 : 12,
|
|
550
550
|
top: "50%",
|
|
551
551
|
transform: "translateY(-50%)",
|
|
552
552
|
pointerEvents: "none",
|
|
@@ -554,22 +554,22 @@ function Qn({
|
|
|
554
554
|
alignItems: "center",
|
|
555
555
|
gap: 6
|
|
556
556
|
},
|
|
557
|
-
children: a && z ? a(z) : /* @__PURE__ */
|
|
558
|
-
/* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${
|
|
559
|
-
(z == null ? void 0 : z.default) && /* @__PURE__ */
|
|
557
|
+
children: a && z ? a(z) : /* @__PURE__ */ N(Ee, { children: [
|
|
558
|
+
/* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${A ? "nc-small" : ""}`, children: z == null ? void 0 : z.label }),
|
|
559
|
+
(z == null ? void 0 : z.default) && /* @__PURE__ */ N("span", { className: `nc-combo-overlay-default ${A ? "nc-small" : ""}`, children: [
|
|
560
560
|
"(",
|
|
561
|
-
|
|
561
|
+
$("common.default"),
|
|
562
562
|
")"
|
|
563
563
|
] })
|
|
564
564
|
] })
|
|
565
565
|
}
|
|
566
566
|
),
|
|
567
|
-
q && /* @__PURE__ */ s(zt, { onClick: we, small:
|
|
568
|
-
le && /* @__PURE__ */ s(Bt, { open:
|
|
567
|
+
q && /* @__PURE__ */ s(zt, { onClick: we, small: A }),
|
|
568
|
+
le && /* @__PURE__ */ s(Bt, { open: h, small: A })
|
|
569
569
|
]
|
|
570
570
|
}
|
|
571
571
|
),
|
|
572
|
-
/* @__PURE__ */ s(Lt, { isOpen:
|
|
572
|
+
/* @__PURE__ */ s(Lt, { isOpen: h, options: j, onSelect: de, selectedValue: e, placement: d, anchorRef: C, small: A, highlightedIndex: y, renderOption: i })
|
|
573
573
|
] });
|
|
574
574
|
}
|
|
575
575
|
function Zn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
|
|
@@ -650,35 +650,35 @@ function rr({
|
|
|
650
650
|
anchor: o,
|
|
651
651
|
preferredDirection: i = "down"
|
|
652
652
|
}) {
|
|
653
|
-
const a = F(null), [c, l] =
|
|
653
|
+
const a = F(null), [c, l] = E({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
|
|
654
654
|
if (D(() => {
|
|
655
|
-
if (!e || !
|
|
656
|
-
const
|
|
657
|
-
let
|
|
658
|
-
(!
|
|
659
|
-
let
|
|
660
|
-
|
|
661
|
-
let
|
|
662
|
-
|
|
663
|
-
top: Math.max(8,
|
|
655
|
+
if (!e || !u || !a.current) return;
|
|
656
|
+
const d = u.getBoundingClientRect(), b = a.current.getBoundingClientRect(), S = window.innerHeight, v = window.innerWidth, w = d.bottom + 8, k = w + b.height <= S - 8;
|
|
657
|
+
let h = i;
|
|
658
|
+
(!k && i === "down" || i === "up" && k) && (h = "up");
|
|
659
|
+
let p;
|
|
660
|
+
h === "down" ? p = w : p = d.top - b.height - 8;
|
|
661
|
+
let m = d.left;
|
|
662
|
+
m + b.width > v - 8 && (m = d.right - b.width), l({
|
|
663
|
+
top: Math.max(8, p),
|
|
664
664
|
// Ensure minimum 8px from top
|
|
665
|
-
left: Math.max(8,
|
|
665
|
+
left: Math.max(8, m)
|
|
666
666
|
// Ensure minimum 8px from left
|
|
667
667
|
});
|
|
668
|
-
}, [e,
|
|
668
|
+
}, [e, u, i]), D(() => {
|
|
669
669
|
if (!e) return;
|
|
670
|
-
const
|
|
671
|
-
a.current && !a.current.contains(
|
|
672
|
-
}, b = (
|
|
673
|
-
|
|
670
|
+
const d = (S) => {
|
|
671
|
+
a.current && !a.current.contains(S.target) && u && !u.contains(S.target) && t();
|
|
672
|
+
}, b = (S) => {
|
|
673
|
+
S.key === "Escape" && t();
|
|
674
674
|
};
|
|
675
|
-
return document.addEventListener("mousedown",
|
|
676
|
-
document.removeEventListener("mousedown",
|
|
675
|
+
return document.addEventListener("mousedown", d), document.addEventListener("keydown", b), () => {
|
|
676
|
+
document.removeEventListener("mousedown", d), document.removeEventListener("keydown", b);
|
|
677
677
|
};
|
|
678
|
-
}, [e, t,
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
},
|
|
678
|
+
}, [e, t, u]), !e) return null;
|
|
679
|
+
const f = (d) => {
|
|
680
|
+
d.type !== "separator" && !d.disabled && d.onClick && (d.onClick(), t());
|
|
681
|
+
}, g = n.some((d) => d.icon);
|
|
682
682
|
return Ae(
|
|
683
683
|
/* @__PURE__ */ s(
|
|
684
684
|
"div",
|
|
@@ -692,35 +692,35 @@ function rr({
|
|
|
692
692
|
zIndex: 1e4
|
|
693
693
|
},
|
|
694
694
|
role: "menu",
|
|
695
|
-
children: n.map((
|
|
696
|
-
if (
|
|
695
|
+
children: n.map((d) => {
|
|
696
|
+
if (d.type === "separator")
|
|
697
697
|
return /* @__PURE__ */ s(
|
|
698
698
|
"div",
|
|
699
699
|
{
|
|
700
700
|
className: "nc-context-menu-separator",
|
|
701
701
|
role: "separator"
|
|
702
702
|
},
|
|
703
|
-
|
|
703
|
+
d.id
|
|
704
704
|
);
|
|
705
705
|
const b = [
|
|
706
706
|
"nc-context-menu-item",
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
707
|
+
d.variant && d.variant !== "default" ? `nc-${d.variant}` : "",
|
|
708
|
+
d.disabled ? "nc-disabled" : "",
|
|
709
|
+
g && !d.icon ? "nc-indented" : ""
|
|
710
710
|
].filter(Boolean).join(" ");
|
|
711
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ N(
|
|
712
712
|
"button",
|
|
713
713
|
{
|
|
714
714
|
className: b,
|
|
715
|
-
onClick: () =>
|
|
716
|
-
disabled:
|
|
715
|
+
onClick: () => f(d),
|
|
716
|
+
disabled: d.disabled,
|
|
717
717
|
role: "menuitem",
|
|
718
718
|
children: [
|
|
719
|
-
|
|
720
|
-
/* @__PURE__ */ s("span", { className: "nc-context-menu-label", children:
|
|
719
|
+
d.icon && /* @__PURE__ */ s("span", { className: "nc-context-menu-icon", children: d.icon }),
|
|
720
|
+
/* @__PURE__ */ s("span", { className: "nc-context-menu-label", children: d.label })
|
|
721
721
|
]
|
|
722
722
|
},
|
|
723
|
-
|
|
723
|
+
d.id
|
|
724
724
|
);
|
|
725
725
|
})
|
|
726
726
|
}
|
|
@@ -751,61 +751,61 @@ function or({
|
|
|
751
751
|
footer: a,
|
|
752
752
|
onOk: c,
|
|
753
753
|
onSave: l,
|
|
754
|
-
onDelete:
|
|
755
|
-
onCancel:
|
|
756
|
-
onConnect:
|
|
757
|
-
closeOnOverlay:
|
|
754
|
+
onDelete: u,
|
|
755
|
+
onCancel: f,
|
|
756
|
+
onConnect: g,
|
|
757
|
+
closeOnOverlay: d = !0,
|
|
758
758
|
primaryDisabled: b = !1,
|
|
759
|
-
fullScreen:
|
|
759
|
+
fullScreen: S = !1,
|
|
760
760
|
hideTitleBar: v = !1,
|
|
761
|
-
className:
|
|
762
|
-
onContentHeightChange:
|
|
761
|
+
className: w = "",
|
|
762
|
+
onContentHeightChange: k
|
|
763
763
|
}) {
|
|
764
|
-
const
|
|
765
|
-
|
|
764
|
+
const h = F(null), p = F(null), { t: m } = re(), x = { close: t }, y = (C) => {
|
|
765
|
+
d && C.target === C.currentTarget && t();
|
|
766
766
|
};
|
|
767
767
|
if (D(() => {
|
|
768
|
-
e &&
|
|
768
|
+
e && h.current && h.current.focus();
|
|
769
769
|
}, [e]), D(() => {
|
|
770
|
-
if (!
|
|
771
|
-
const
|
|
772
|
-
for (const
|
|
773
|
-
const
|
|
774
|
-
|
|
770
|
+
if (!k || !p.current) return;
|
|
771
|
+
const C = new ResizeObserver((I) => {
|
|
772
|
+
for (const A of I) {
|
|
773
|
+
const $ = A.contentRect.height;
|
|
774
|
+
k($);
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
|
-
return
|
|
778
|
-
|
|
777
|
+
return C.observe(p.current), () => {
|
|
778
|
+
C.disconnect();
|
|
779
779
|
};
|
|
780
|
-
}, [
|
|
781
|
-
const
|
|
780
|
+
}, [k]), !e) return null;
|
|
781
|
+
const M = () => {
|
|
782
782
|
switch (i) {
|
|
783
783
|
case "ok":
|
|
784
|
-
return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: b, children:
|
|
784
|
+
return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: b, children: m("common.ok") }) });
|
|
785
785
|
case "ok-cancel":
|
|
786
|
-
return /* @__PURE__ */
|
|
787
|
-
/* @__PURE__ */ s(fe, { onClick:
|
|
788
|
-
/* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: b, children:
|
|
786
|
+
return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
|
|
787
|
+
/* @__PURE__ */ s(fe, { onClick: f, children: m("common.cancel") }),
|
|
788
|
+
/* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: b, children: m("common.ok") })
|
|
789
789
|
] });
|
|
790
790
|
case "save-cancel":
|
|
791
|
-
return /* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */ s(fe, { onClick:
|
|
793
|
-
/* @__PURE__ */ s(te, { variant: "primary", onClick: l, disabled: b, children:
|
|
791
|
+
return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
|
|
792
|
+
/* @__PURE__ */ s(fe, { onClick: f, children: m("common.cancel") }),
|
|
793
|
+
/* @__PURE__ */ s(te, { variant: "primary", onClick: l, disabled: b, children: m("common.save") })
|
|
794
794
|
] });
|
|
795
795
|
case "delete-cancel":
|
|
796
|
-
return /* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */ s(fe, { onClick:
|
|
798
|
-
/* @__PURE__ */ s(te, { variant: "danger", onClick:
|
|
796
|
+
return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
|
|
797
|
+
/* @__PURE__ */ s(fe, { onClick: f, children: m("common.cancel") }),
|
|
798
|
+
/* @__PURE__ */ s(te, { variant: "danger", onClick: u, disabled: b, children: m("common.delete") })
|
|
799
799
|
] });
|
|
800
800
|
case "connect":
|
|
801
|
-
return /* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */ s(fe, { onClick:
|
|
803
|
-
/* @__PURE__ */ s(te, { variant: "primary", onClick:
|
|
801
|
+
return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
|
|
802
|
+
/* @__PURE__ */ s(fe, { onClick: f, children: m("common.cancel") }),
|
|
803
|
+
/* @__PURE__ */ s(te, { variant: "primary", onClick: g, disabled: b, children: m("common.connect") })
|
|
804
804
|
] });
|
|
805
805
|
case "close":
|
|
806
806
|
return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary" }) });
|
|
807
807
|
case "gotit":
|
|
808
|
-
return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary", children:
|
|
808
|
+
return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary", children: m("common.gotit") }) });
|
|
809
809
|
case "custom":
|
|
810
810
|
return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
|
|
811
811
|
case "none":
|
|
@@ -813,27 +813,27 @@ function or({
|
|
|
813
813
|
default:
|
|
814
814
|
return null;
|
|
815
815
|
}
|
|
816
|
-
},
|
|
816
|
+
}, P = /* @__PURE__ */ s(et.Provider, { value: x, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${S ? " nc-fullscreen" : ""}`, onClick: y, children: /* @__PURE__ */ N(
|
|
817
817
|
"div",
|
|
818
818
|
{
|
|
819
|
-
ref:
|
|
820
|
-
className: `nc-dialog-container ${
|
|
819
|
+
ref: h,
|
|
820
|
+
className: `nc-dialog-container ${w}`,
|
|
821
821
|
style: o,
|
|
822
822
|
tabIndex: -1,
|
|
823
823
|
role: "dialog",
|
|
824
824
|
"aria-modal": "true",
|
|
825
825
|
"aria-labelledby": v ? void 0 : "nc-dialog-title",
|
|
826
826
|
children: [
|
|
827
|
-
!v && /* @__PURE__ */
|
|
827
|
+
!v && /* @__PURE__ */ N("div", { className: "nc-dialog-header", children: [
|
|
828
828
|
/* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
|
|
829
829
|
/* @__PURE__ */ s(Ze, { onClick: t, "aria-label": "Close dialog" })
|
|
830
830
|
] }),
|
|
831
|
-
/* @__PURE__ */ s("div", { ref:
|
|
832
|
-
|
|
831
|
+
/* @__PURE__ */ s("div", { ref: p, className: "nc-dialog-content", children: r }),
|
|
832
|
+
M()
|
|
833
833
|
]
|
|
834
834
|
}
|
|
835
835
|
) }) });
|
|
836
|
-
return
|
|
836
|
+
return S ? Ae(P, document.body) : P;
|
|
837
837
|
}
|
|
838
838
|
function Wt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
|
|
839
839
|
const r = t === "small" ? 28 : 34;
|
|
@@ -902,27 +902,27 @@ function sr({
|
|
|
902
902
|
placeholder: a,
|
|
903
903
|
disabled: c,
|
|
904
904
|
label: l,
|
|
905
|
-
clearable:
|
|
906
|
-
type:
|
|
907
|
-
className:
|
|
908
|
-
size:
|
|
905
|
+
clearable: u = !0,
|
|
906
|
+
type: f = "text",
|
|
907
|
+
className: g = "",
|
|
908
|
+
size: d = "default",
|
|
909
909
|
appearance: b = "default",
|
|
910
|
-
style:
|
|
910
|
+
style: S,
|
|
911
911
|
leadingIcon: v,
|
|
912
|
-
showPasswordToggle:
|
|
913
|
-
multiline:
|
|
914
|
-
rows:
|
|
915
|
-
validator:
|
|
916
|
-
showErrorMessage:
|
|
912
|
+
showPasswordToggle: w = !1,
|
|
913
|
+
multiline: k = !1,
|
|
914
|
+
rows: h = 3,
|
|
915
|
+
validator: p,
|
|
916
|
+
showErrorMessage: m = !0
|
|
917
917
|
}) {
|
|
918
|
-
const
|
|
918
|
+
const x = F(null), y = F(null), M = F(!1), [P, C] = E(!1), [I, A] = E(!1), [$, L] = E(!1), H = e !== void 0, [ae, X] = E(t), K = H ? e : ae, [_, U] = E(K), j = p ? p(K) : null, z = !!j, q = !k && b === "plain", le = q && I, pe = le ? _ : K;
|
|
919
919
|
D(() => {
|
|
920
920
|
le || U(K);
|
|
921
921
|
}, [K, le]);
|
|
922
|
-
const ve =
|
|
923
|
-
let
|
|
924
|
-
we && de ?
|
|
925
|
-
const B = v ?
|
|
922
|
+
const ve = f === "password", de = ve && w && !c && !k, we = u && pe && !c && (I || $), ye = d === "small" ? 32 : 44;
|
|
923
|
+
let T = 12;
|
|
924
|
+
we && de ? T = ye * 2 : (we || de) && (T = ye);
|
|
925
|
+
const B = v ? d === "small" ? 28 : 34 : void 0, Y = () => {
|
|
926
926
|
if (!q)
|
|
927
927
|
return K;
|
|
928
928
|
const J = _ !== K;
|
|
@@ -932,18 +932,18 @@ function sr({
|
|
|
932
932
|
}, ft = () => {
|
|
933
933
|
var J, Z, Ye;
|
|
934
934
|
if (q) {
|
|
935
|
-
U(""), i == null || i(), (J =
|
|
935
|
+
U(""), i == null || i(), (J = x.current) == null || J.focus();
|
|
936
936
|
return;
|
|
937
937
|
}
|
|
938
|
-
H || X(""), n == null || n(""), i == null || i(),
|
|
938
|
+
H || X(""), n == null || n(""), i == null || i(), k ? (Z = y.current) == null || Z.focus() : (Ye = x.current) == null || Ye.focus();
|
|
939
939
|
}, He = (J) => {
|
|
940
940
|
if (q && J.key === "Escape") {
|
|
941
|
-
J.preventDefault(),
|
|
941
|
+
J.preventDefault(), M.current = !0, V(), J.currentTarget.blur();
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
|
-
if (J.key === "Enter" && !
|
|
944
|
+
if (J.key === "Enter" && !k) {
|
|
945
945
|
const Z = q ? Y() : K;
|
|
946
|
-
q && (J.preventDefault(),
|
|
946
|
+
q && (J.preventDefault(), M.current = !0, J.currentTarget.blur()), o == null || o(Z);
|
|
947
947
|
}
|
|
948
948
|
}, Ve = (J) => {
|
|
949
949
|
const Z = J.target.value;
|
|
@@ -953,29 +953,29 @@ function sr({
|
|
|
953
953
|
}
|
|
954
954
|
H || X(Z), n == null || n(Z);
|
|
955
955
|
}, Oe = () => {
|
|
956
|
-
|
|
956
|
+
A(!0), q && U(K);
|
|
957
957
|
}, Fe = () => {
|
|
958
|
-
if (q &&
|
|
959
|
-
|
|
958
|
+
if (q && M.current) {
|
|
959
|
+
M.current = !1, A(!1);
|
|
960
960
|
return;
|
|
961
961
|
}
|
|
962
|
-
q && Y(),
|
|
963
|
-
}, je = `nc-input ${
|
|
964
|
-
return /* @__PURE__ */
|
|
962
|
+
q && Y(), A(!1);
|
|
963
|
+
}, je = `nc-input ${d === "small" ? "nc-small " : ""}${!k && b === "plain" ? "nc-plain " : ""}${z ? "nc-error " : ""}${g}`;
|
|
964
|
+
return /* @__PURE__ */ N(
|
|
965
965
|
"div",
|
|
966
966
|
{
|
|
967
967
|
className: "nc-col",
|
|
968
|
-
style: { position: "relative", flex: 1, ...
|
|
968
|
+
style: { position: "relative", flex: 1, ...S },
|
|
969
969
|
onMouseEnter: () => L(!0),
|
|
970
970
|
onMouseLeave: () => L(!1),
|
|
971
971
|
children: [
|
|
972
972
|
l && /* @__PURE__ */ s("span", { className: "nc-label", children: l }),
|
|
973
|
-
/* @__PURE__ */
|
|
974
|
-
v && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height:
|
|
975
|
-
|
|
973
|
+
/* @__PURE__ */ N("div", { style: { position: "relative", display: "flex", alignItems: k ? "flex-start" : "center" }, children: [
|
|
974
|
+
v && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: k ? void 0 : "100%", top: k ? 10 : void 0 }, children: v }),
|
|
975
|
+
k ? /* @__PURE__ */ s(
|
|
976
976
|
"textarea",
|
|
977
977
|
{
|
|
978
|
-
ref:
|
|
978
|
+
ref: y,
|
|
979
979
|
className: je,
|
|
980
980
|
placeholder: a,
|
|
981
981
|
value: pe,
|
|
@@ -986,18 +986,18 @@ function sr({
|
|
|
986
986
|
readOnly: c,
|
|
987
987
|
"aria-disabled": c,
|
|
988
988
|
tabIndex: c ? -1 : void 0,
|
|
989
|
-
rows:
|
|
989
|
+
rows: h,
|
|
990
990
|
style: {
|
|
991
991
|
width: "100%",
|
|
992
|
-
paddingRight:
|
|
992
|
+
paddingRight: T,
|
|
993
993
|
...B !== void 0 ? { paddingLeft: B } : {}
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
) : /* @__PURE__ */ s(
|
|
997
997
|
"input",
|
|
998
998
|
{
|
|
999
|
-
ref:
|
|
1000
|
-
type: ve &&
|
|
999
|
+
ref: x,
|
|
1000
|
+
type: ve && P ? "text" : f,
|
|
1001
1001
|
className: je,
|
|
1002
1002
|
placeholder: a,
|
|
1003
1003
|
value: pe,
|
|
@@ -1010,15 +1010,15 @@ function sr({
|
|
|
1010
1010
|
tabIndex: c ? -1 : void 0,
|
|
1011
1011
|
style: {
|
|
1012
1012
|
width: "100%",
|
|
1013
|
-
paddingRight:
|
|
1013
|
+
paddingRight: T,
|
|
1014
1014
|
...B !== void 0 ? { paddingLeft: B } : {}
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
|
-
we && /* @__PURE__ */ s(Wt, { onClick: ft, size:
|
|
1019
|
-
de && /* @__PURE__ */ s(Ht, { visible:
|
|
1018
|
+
we && /* @__PURE__ */ s(Wt, { onClick: ft, size: d, rightOffset: de ? ye + 4 : 4 }),
|
|
1019
|
+
de && /* @__PURE__ */ s(Ht, { visible: P, onClick: () => C(!P), size: d })
|
|
1020
1020
|
] }),
|
|
1021
|
-
z &&
|
|
1021
|
+
z && m && /* @__PURE__ */ s("span", { className: "nc-error-message", children: j })
|
|
1022
1022
|
]
|
|
1023
1023
|
}
|
|
1024
1024
|
);
|
|
@@ -1037,8 +1037,8 @@ function ir({
|
|
|
1037
1037
|
onClick: (l) => {
|
|
1038
1038
|
if (t) {
|
|
1039
1039
|
if (r) {
|
|
1040
|
-
const
|
|
1041
|
-
if (
|
|
1040
|
+
const u = window.getSelection();
|
|
1041
|
+
if (u && u.toString().length > 0)
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
1044
|
t(l);
|
|
@@ -1059,8 +1059,8 @@ function ir({
|
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
1061
1061
|
function cr({ title: e, titleTools: t, children: n, style: r }) {
|
|
1062
|
-
return /* @__PURE__ */
|
|
1063
|
-
(e || t) && /* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ N("div", { className: "nc-list-group", style: r, children: [
|
|
1063
|
+
(e || t) && /* @__PURE__ */ N("div", { className: "nc-list-group-title", children: [
|
|
1064
1064
|
/* @__PURE__ */ s("div", { children: e }),
|
|
1065
1065
|
t && /* @__PURE__ */ s("div", { className: "nc-list-group-title-tools", children: t })
|
|
1066
1066
|
] }),
|
|
@@ -1074,56 +1074,56 @@ function cr({ title: e, titleTools: t, children: n, style: r }) {
|
|
|
1074
1074
|
] });
|
|
1075
1075
|
}
|
|
1076
1076
|
function ar({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
|
|
1077
|
-
const [i, a] =
|
|
1077
|
+
const [i, a] = E(!1), [c, l] = E(""), u = F(null), f = Ie(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
|
|
1078
1078
|
D(() => {
|
|
1079
|
-
function
|
|
1080
|
-
!(b.target instanceof Node) || !
|
|
1079
|
+
function d(b) {
|
|
1080
|
+
!(b.target instanceof Node) || !u.current || u.current.contains(b.target) || a(!1);
|
|
1081
1081
|
}
|
|
1082
|
-
return document.addEventListener("mousedown",
|
|
1082
|
+
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
1083
1083
|
}, []);
|
|
1084
|
-
const
|
|
1085
|
-
e.includes(
|
|
1084
|
+
const g = (d) => {
|
|
1085
|
+
e.includes(d) ? t(e.filter((b) => b !== d)) : t([...e, d]);
|
|
1086
1086
|
};
|
|
1087
|
-
return /* @__PURE__ */
|
|
1087
|
+
return /* @__PURE__ */ N("div", { ref: u, className: "nc-col", style: { position: "relative" }, children: [
|
|
1088
1088
|
o && /* @__PURE__ */ s("span", { className: "nc-label", children: o }),
|
|
1089
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ N("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
|
|
1090
1090
|
e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
|
|
1091
|
-
e.map((
|
|
1092
|
-
const b = n.find((
|
|
1093
|
-
return b ? /* @__PURE__ */
|
|
1091
|
+
e.map((d) => {
|
|
1092
|
+
const b = n.find((S) => S.value === d);
|
|
1093
|
+
return b ? /* @__PURE__ */ N("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
|
|
1094
1094
|
b.label,
|
|
1095
1095
|
/* @__PURE__ */ s(
|
|
1096
1096
|
"button",
|
|
1097
1097
|
{
|
|
1098
1098
|
className: "nc-button nc-ghost",
|
|
1099
1099
|
style: { padding: 0, minHeight: 0, height: 20, width: 20, display: "inline-flex", alignItems: "center", justifyContent: "center", border: "none" },
|
|
1100
|
-
onClick: () =>
|
|
1100
|
+
onClick: () => g(d),
|
|
1101
1101
|
"aria-label": `Remove ${b.label}`,
|
|
1102
1102
|
children: "✕"
|
|
1103
1103
|
}
|
|
1104
1104
|
)
|
|
1105
|
-
] },
|
|
1105
|
+
] }, d) : null;
|
|
1106
1106
|
}),
|
|
1107
1107
|
/* @__PURE__ */ s(
|
|
1108
1108
|
"input",
|
|
1109
1109
|
{
|
|
1110
1110
|
className: "nc-input",
|
|
1111
1111
|
value: c,
|
|
1112
|
-
onChange: (
|
|
1112
|
+
onChange: (d) => l(d.target.value),
|
|
1113
1113
|
onFocus: () => a(!0),
|
|
1114
1114
|
style: { minWidth: 50, border: "none", background: "transparent", padding: 4, minHeight: 32, flex: 1 }
|
|
1115
1115
|
}
|
|
1116
1116
|
)
|
|
1117
1117
|
] }),
|
|
1118
|
-
i && /* @__PURE__ */
|
|
1119
|
-
|
|
1120
|
-
const b = e.includes(
|
|
1121
|
-
return /* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */ s("span", { children:
|
|
1118
|
+
i && /* @__PURE__ */ N("div", { className: "nc-combo-dropdown", style: { position: "absolute", top: "100%", left: 0, right: 0, zIndex: 10, marginTop: 4, boxShadow: "0 4px 12px var(--nc-shadow)" }, children: [
|
|
1119
|
+
f.map((d) => {
|
|
1120
|
+
const b = e.includes(d.value);
|
|
1121
|
+
return /* @__PURE__ */ N("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => g(d.value), children: [
|
|
1122
|
+
/* @__PURE__ */ s("span", { children: d.label }),
|
|
1123
1123
|
/* @__PURE__ */ s("span", { children: b ? "✔️" : "" })
|
|
1124
|
-
] },
|
|
1124
|
+
] }, d.value);
|
|
1125
1125
|
}),
|
|
1126
|
-
|
|
1126
|
+
f.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
|
|
1127
1127
|
] })
|
|
1128
1128
|
] });
|
|
1129
1129
|
}
|
|
@@ -1167,45 +1167,45 @@ function lr({
|
|
|
1167
1167
|
disabled: i = !1,
|
|
1168
1168
|
size: a = "default"
|
|
1169
1169
|
}) {
|
|
1170
|
-
const [c, l] =
|
|
1170
|
+
const [c, l] = E(!1), [u, f] = E(""), [g, d] = E(""), [b, S] = E({ top: 0, left: 0, width: 0, right: void 0 }), v = F(null), w = F(null);
|
|
1171
1171
|
D(() => {
|
|
1172
1172
|
if (c && v.current) {
|
|
1173
|
-
const
|
|
1174
|
-
window.innerWidth -
|
|
1175
|
-
top:
|
|
1173
|
+
const A = v.current.getBoundingClientRect(), L = Math.max(A.width, 400);
|
|
1174
|
+
window.innerWidth - A.left < L && A.right >= L ? S({
|
|
1175
|
+
top: A.bottom + 4,
|
|
1176
1176
|
left: 0,
|
|
1177
1177
|
// Not used but type needs it, let's just use 0
|
|
1178
|
-
right: window.innerWidth -
|
|
1178
|
+
right: window.innerWidth - A.right,
|
|
1179
1179
|
width: L
|
|
1180
|
-
}) :
|
|
1181
|
-
top:
|
|
1182
|
-
left:
|
|
1180
|
+
}) : S({
|
|
1181
|
+
top: A.bottom + 4,
|
|
1182
|
+
left: A.left,
|
|
1183
1183
|
right: void 0,
|
|
1184
1184
|
width: L
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
1187
|
}, [c]), D(() => {
|
|
1188
1188
|
if (!c) return;
|
|
1189
|
-
const
|
|
1190
|
-
v.current && !v.current.contains(
|
|
1189
|
+
const A = ($) => {
|
|
1190
|
+
v.current && !v.current.contains($.target) && w.current && !w.current.contains($.target) && l(!1);
|
|
1191
1191
|
};
|
|
1192
|
-
return document.addEventListener("mousedown",
|
|
1192
|
+
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
1193
1193
|
}, [c]);
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1194
|
+
const k = () => {
|
|
1195
|
+
f(e || Ke()), d(t || Ke()), l(!0);
|
|
1196
|
+
}, h = () => {
|
|
1197
1197
|
l(!1);
|
|
1198
|
-
},
|
|
1199
|
-
const
|
|
1200
|
-
if (
|
|
1198
|
+
}, p = () => {
|
|
1199
|
+
const A = Se(u), $ = Se(g);
|
|
1200
|
+
if (A || $)
|
|
1201
1201
|
return;
|
|
1202
|
-
const L = Ne(
|
|
1202
|
+
const L = Ne(u), H = Ne(g);
|
|
1203
1203
|
L && H && (n == null || n(L, H)), l(!1);
|
|
1204
|
-
},
|
|
1204
|
+
}, m = e && t ? `${Ge(e)} - ${Ge(t)}` : "Select month range", x = Se(u), y = Se(g), M = Ne(u), P = Ne(g), C = M && P && M > P, I = c ? Ae(
|
|
1205
1205
|
/* @__PURE__ */ s(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
{
|
|
1208
|
-
ref:
|
|
1208
|
+
ref: w,
|
|
1209
1209
|
className: "nc-month-range-picker-popup",
|
|
1210
1210
|
style: {
|
|
1211
1211
|
position: "fixed",
|
|
@@ -1214,135 +1214,135 @@ function lr({
|
|
|
1214
1214
|
width: b.width,
|
|
1215
1215
|
zIndex: 1e3
|
|
1216
1216
|
},
|
|
1217
|
-
children: /* @__PURE__ */
|
|
1218
|
-
/* @__PURE__ */
|
|
1219
|
-
/* @__PURE__ */
|
|
1217
|
+
children: /* @__PURE__ */ N("div", { className: "nc-month-range-picker-content", children: [
|
|
1218
|
+
/* @__PURE__ */ N("div", { className: "nc-month-range-picker-row", children: [
|
|
1219
|
+
/* @__PURE__ */ N("div", { className: "nc-month-range-picker-column", children: [
|
|
1220
1220
|
/* @__PURE__ */ s("label", { className: "nc-label", children: "Start Month" }),
|
|
1221
1221
|
/* @__PURE__ */ s(
|
|
1222
1222
|
"input",
|
|
1223
1223
|
{
|
|
1224
1224
|
type: "text",
|
|
1225
|
-
className: `nc-month-input ${
|
|
1226
|
-
value:
|
|
1227
|
-
onChange: (
|
|
1225
|
+
className: `nc-month-input ${x ? "nc-error" : ""}`,
|
|
1226
|
+
value: u,
|
|
1227
|
+
onChange: (A) => f(A.target.value),
|
|
1228
1228
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1229
1229
|
}
|
|
1230
1230
|
),
|
|
1231
|
-
|
|
1231
|
+
x && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: x })
|
|
1232
1232
|
] }),
|
|
1233
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ N("div", { className: "nc-month-range-picker-column", children: [
|
|
1234
1234
|
/* @__PURE__ */ s("label", { className: "nc-label", children: "End Month" }),
|
|
1235
1235
|
/* @__PURE__ */ s(
|
|
1236
1236
|
"input",
|
|
1237
1237
|
{
|
|
1238
1238
|
type: "text",
|
|
1239
|
-
className: `nc-month-input ${
|
|
1240
|
-
value:
|
|
1241
|
-
onChange: (
|
|
1239
|
+
className: `nc-month-input ${y ? "nc-error" : ""}`,
|
|
1240
|
+
value: g,
|
|
1241
|
+
onChange: (A) => d(A.target.value),
|
|
1242
1242
|
placeholder: "YY-M(M) or YYYY-M(M)"
|
|
1243
1243
|
}
|
|
1244
1244
|
),
|
|
1245
|
-
|
|
1245
|
+
y && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: y })
|
|
1246
1246
|
] })
|
|
1247
1247
|
] }),
|
|
1248
|
-
|
|
1249
|
-
/* @__PURE__ */
|
|
1248
|
+
C && !x && !y && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
|
|
1249
|
+
/* @__PURE__ */ N("div", { className: "nc-month-range-picker-footer", children: [
|
|
1250
1250
|
/* @__PURE__ */ s(
|
|
1251
1251
|
te,
|
|
1252
1252
|
{
|
|
1253
1253
|
variant: "primary",
|
|
1254
|
-
onClick:
|
|
1255
|
-
disabled: !
|
|
1254
|
+
onClick: p,
|
|
1255
|
+
disabled: !u || !g || !!x || !!y || !!C,
|
|
1256
1256
|
children: "Apply"
|
|
1257
1257
|
}
|
|
1258
1258
|
),
|
|
1259
|
-
/* @__PURE__ */ s(te, { variant: "ghost", onClick:
|
|
1259
|
+
/* @__PURE__ */ s(te, { variant: "ghost", onClick: h, children: "Cancel" })
|
|
1260
1260
|
] })
|
|
1261
1261
|
] })
|
|
1262
1262
|
}
|
|
1263
1263
|
),
|
|
1264
1264
|
document.body
|
|
1265
1265
|
) : null;
|
|
1266
|
-
return /* @__PURE__ */
|
|
1266
|
+
return /* @__PURE__ */ N("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
|
|
1267
1267
|
r && /* @__PURE__ */ s("label", { className: `nc-label${a === "small" ? " nc-small" : ""}`, children: r }),
|
|
1268
1268
|
/* @__PURE__ */ s(
|
|
1269
1269
|
"button",
|
|
1270
1270
|
{
|
|
1271
1271
|
ref: v,
|
|
1272
1272
|
className: `nc-month-range-picker-input${a === "small" ? " nc-small" : ""}`,
|
|
1273
|
-
onClick:
|
|
1273
|
+
onClick: k,
|
|
1274
1274
|
disabled: i,
|
|
1275
|
-
children:
|
|
1275
|
+
children: m
|
|
1276
1276
|
}
|
|
1277
1277
|
),
|
|
1278
|
-
|
|
1278
|
+
I
|
|
1279
1279
|
] });
|
|
1280
1280
|
}
|
|
1281
1281
|
const Vt = 5, Ot = 3;
|
|
1282
|
-
function dr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a,
|
|
1283
|
-
const
|
|
1284
|
-
const
|
|
1285
|
-
n !== void 0 &&
|
|
1286
|
-
},
|
|
1287
|
-
const
|
|
1288
|
-
r !== void 0 &&
|
|
1289
|
-
},
|
|
1290
|
-
const
|
|
1291
|
-
isNaN(
|
|
1292
|
-
},
|
|
1293
|
-
a ||
|
|
1294
|
-
startY:
|
|
1282
|
+
function dr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, className: c = "", style: l, size: u = "default" }) {
|
|
1283
|
+
const f = u === "small", g = F(null), d = F(!1), [b, S] = E(!1), v = () => {
|
|
1284
|
+
const y = e - o;
|
|
1285
|
+
n !== void 0 && y < n || t(parseFloat(y.toFixed(10)));
|
|
1286
|
+
}, w = () => {
|
|
1287
|
+
const y = e + o;
|
|
1288
|
+
r !== void 0 && y > r || t(parseFloat(y.toFixed(10)));
|
|
1289
|
+
}, k = (y) => {
|
|
1290
|
+
const M = parseFloat(y.target.value);
|
|
1291
|
+
isNaN(M) || n !== void 0 && M < n || r !== void 0 && M > r || t(M);
|
|
1292
|
+
}, h = (y) => {
|
|
1293
|
+
a || y.button !== 0 || (d.current = !1, g.current = {
|
|
1294
|
+
startY: y.clientY,
|
|
1295
1295
|
startValue: e,
|
|
1296
|
-
pointerId:
|
|
1296
|
+
pointerId: y.pointerId,
|
|
1297
1297
|
hasMoved: !1,
|
|
1298
1298
|
lastValue: e
|
|
1299
|
-
},
|
|
1300
|
-
},
|
|
1301
|
-
const
|
|
1302
|
-
if (!
|
|
1303
|
-
const
|
|
1304
|
-
if (Math.abs(
|
|
1305
|
-
const
|
|
1306
|
-
let
|
|
1307
|
-
n !== void 0 && (
|
|
1308
|
-
}, m = (
|
|
1309
|
-
const
|
|
1310
|
-
!
|
|
1311
|
-
},
|
|
1312
|
-
if (
|
|
1313
|
-
|
|
1299
|
+
}, y.currentTarget.setPointerCapture(y.pointerId));
|
|
1300
|
+
}, p = (y) => {
|
|
1301
|
+
const M = g.current;
|
|
1302
|
+
if (!M || M.pointerId !== y.pointerId) return;
|
|
1303
|
+
const P = M.startY - y.clientY;
|
|
1304
|
+
if (Math.abs(P) >= Ot && (M.hasMoved = !0, d.current = !0, S(!0)), !M.hasMoved) return;
|
|
1305
|
+
const C = Math.trunc(P / Vt);
|
|
1306
|
+
let I = M.startValue + C * o;
|
|
1307
|
+
n !== void 0 && (I = Math.max(n, I)), r !== void 0 && (I = Math.min(r, I)), I = parseFloat(I.toFixed(10)), I !== M.lastValue && (M.lastValue = I, t(I));
|
|
1308
|
+
}, m = (y) => {
|
|
1309
|
+
const M = g.current;
|
|
1310
|
+
!M || M.pointerId !== y.pointerId || (y.currentTarget.hasPointerCapture(y.pointerId) && y.currentTarget.releasePointerCapture(y.pointerId), g.current = null, S(!1));
|
|
1311
|
+
}, x = (y) => (M) => {
|
|
1312
|
+
if (d.current) {
|
|
1313
|
+
d.current = !1, M.preventDefault();
|
|
1314
1314
|
return;
|
|
1315
1315
|
}
|
|
1316
|
-
|
|
1316
|
+
y();
|
|
1317
1317
|
};
|
|
1318
|
-
return /* @__PURE__ */
|
|
1319
|
-
i && /* @__PURE__ */ s("span", { className: `nc-label ${
|
|
1320
|
-
/* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ N("div", { className: `nc-col nc-number-input-col ${f ? "nc-small" : ""}`, children: [
|
|
1319
|
+
i && /* @__PURE__ */ s("span", { className: `nc-label ${f ? "nc-small" : ""}`, children: i }),
|
|
1320
|
+
/* @__PURE__ */ N("div", { className: `nc-number-input-container ${f ? "nc-small" : ""} ${c}`, style: l, children: [
|
|
1321
1321
|
/* @__PURE__ */ s(
|
|
1322
1322
|
"input",
|
|
1323
1323
|
{
|
|
1324
|
-
className: `nc-input nc-number-input ${
|
|
1324
|
+
className: `nc-input nc-number-input ${f ? "nc-small" : ""}`,
|
|
1325
1325
|
type: "number",
|
|
1326
1326
|
value: e,
|
|
1327
|
-
onChange:
|
|
1327
|
+
onChange: k,
|
|
1328
1328
|
min: n,
|
|
1329
1329
|
max: r,
|
|
1330
1330
|
step: o,
|
|
1331
1331
|
disabled: a
|
|
1332
1332
|
}
|
|
1333
1333
|
),
|
|
1334
|
-
/* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ N(
|
|
1335
1335
|
"div",
|
|
1336
1336
|
{
|
|
1337
|
-
className: `nc-number-input-spinners ${
|
|
1337
|
+
className: `nc-number-input-spinners ${f ? "nc-small" : ""} ${a ? "nc-disabled" : ""} ${b ? "nc-dragging" : ""}`,
|
|
1338
1338
|
children: [
|
|
1339
1339
|
/* @__PURE__ */ s(
|
|
1340
1340
|
"button",
|
|
1341
1341
|
{
|
|
1342
|
-
className: `nc-number-input-spin nc-number-input-spin-up ${
|
|
1343
|
-
onClick:
|
|
1344
|
-
onPointerDown:
|
|
1345
|
-
onPointerMove:
|
|
1342
|
+
className: `nc-number-input-spin nc-number-input-spin-up ${f ? "nc-small" : ""}`,
|
|
1343
|
+
onClick: x(w),
|
|
1344
|
+
onPointerDown: h,
|
|
1345
|
+
onPointerMove: p,
|
|
1346
1346
|
onPointerUp: m,
|
|
1347
1347
|
onPointerCancel: m,
|
|
1348
1348
|
disabled: a || r !== void 0 && e >= r,
|
|
@@ -1353,10 +1353,10 @@ function dr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
|
|
|
1353
1353
|
/* @__PURE__ */ s(
|
|
1354
1354
|
"button",
|
|
1355
1355
|
{
|
|
1356
|
-
className: `nc-number-input-spin nc-number-input-spin-down ${
|
|
1357
|
-
onClick:
|
|
1358
|
-
onPointerDown:
|
|
1359
|
-
onPointerMove:
|
|
1356
|
+
className: `nc-number-input-spin nc-number-input-spin-down ${f ? "nc-small" : ""}`,
|
|
1357
|
+
onClick: x(v),
|
|
1358
|
+
onPointerDown: h,
|
|
1359
|
+
onPointerMove: p,
|
|
1360
1360
|
onPointerUp: m,
|
|
1361
1361
|
onPointerCancel: m,
|
|
1362
1362
|
disabled: a || n !== void 0 && e <= n,
|
|
@@ -1379,30 +1379,30 @@ function ur({
|
|
|
1379
1379
|
label: i,
|
|
1380
1380
|
disabled: a,
|
|
1381
1381
|
showValue: c = !0,
|
|
1382
|
-
formatValue: l = (
|
|
1383
|
-
width:
|
|
1382
|
+
formatValue: l = (f) => f.toString(),
|
|
1383
|
+
width: u = 200
|
|
1384
1384
|
}) {
|
|
1385
|
-
const
|
|
1386
|
-
const b = parseFloat(
|
|
1385
|
+
const f = (d) => {
|
|
1386
|
+
const b = parseFloat(d.target.value);
|
|
1387
1387
|
t(b);
|
|
1388
|
-
},
|
|
1389
|
-
return /* @__PURE__ */
|
|
1388
|
+
}, g = (e - n) / (r - n) * 100;
|
|
1389
|
+
return /* @__PURE__ */ N("div", { className: "nc-col", style: { gap: 6 }, children: [
|
|
1390
1390
|
i && /* @__PURE__ */ s("span", { className: "nc-label", children: i }),
|
|
1391
|
-
/* @__PURE__ */
|
|
1391
|
+
/* @__PURE__ */ N("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
|
|
1392
1392
|
/* @__PURE__ */ s(
|
|
1393
1393
|
"input",
|
|
1394
1394
|
{
|
|
1395
1395
|
type: "range",
|
|
1396
1396
|
className: "nc-slider",
|
|
1397
1397
|
value: e,
|
|
1398
|
-
onChange:
|
|
1398
|
+
onChange: f,
|
|
1399
1399
|
min: n,
|
|
1400
1400
|
max: r,
|
|
1401
1401
|
step: o,
|
|
1402
1402
|
disabled: a,
|
|
1403
1403
|
style: {
|
|
1404
|
-
width:
|
|
1405
|
-
"--nc-slider-percentage": `${
|
|
1404
|
+
width: u,
|
|
1405
|
+
"--nc-slider-percentage": `${g}%`
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
),
|
|
@@ -1447,89 +1447,89 @@ function pr({ active: e, children: t, keepMounted: n = !1, className: r = "", st
|
|
|
1447
1447
|
const a = i.find((c) => c.props.tab === e);
|
|
1448
1448
|
return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
|
|
1449
1449
|
}
|
|
1450
|
-
function fr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style:
|
|
1451
|
-
const
|
|
1450
|
+
function fr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: u }) {
|
|
1451
|
+
const f = F(null), [g, d] = E(!1), [b, S] = E(!1), v = l === "verticalLeft" || l === "verticalRight", w = F(!1), k = F(0), h = F(0), p = F(!1);
|
|
1452
1452
|
D(() => {
|
|
1453
|
-
const
|
|
1454
|
-
if (
|
|
1453
|
+
const C = () => {
|
|
1454
|
+
if (f.current)
|
|
1455
1455
|
if (v) {
|
|
1456
|
-
const { scrollTop:
|
|
1457
|
-
|
|
1456
|
+
const { scrollTop: A, scrollHeight: $, clientHeight: L } = f.current;
|
|
1457
|
+
d(A > 1), S(A < $ - L - 1);
|
|
1458
1458
|
} else {
|
|
1459
|
-
const { scrollLeft:
|
|
1460
|
-
|
|
1459
|
+
const { scrollLeft: A, scrollWidth: $, clientWidth: L } = f.current;
|
|
1460
|
+
d(A > 1), S(A < $ - L - 1);
|
|
1461
1461
|
}
|
|
1462
|
-
},
|
|
1463
|
-
if (
|
|
1464
|
-
return
|
|
1465
|
-
|
|
1462
|
+
}, I = f.current;
|
|
1463
|
+
if (I)
|
|
1464
|
+
return C(), I.addEventListener("scroll", C), window.addEventListener("resize", C), () => {
|
|
1465
|
+
I.removeEventListener("scroll", C), window.removeEventListener("resize", C);
|
|
1466
1466
|
};
|
|
1467
1467
|
}, [e, v]);
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1470
|
-
},
|
|
1471
|
-
if (!
|
|
1472
|
-
const
|
|
1473
|
-
Math.abs(
|
|
1474
|
-
},
|
|
1475
|
-
|
|
1476
|
-
},
|
|
1477
|
-
|
|
1468
|
+
const m = (C) => {
|
|
1469
|
+
f.current && (w.current = !0, p.current = !1, k.current = v ? C.clientY : C.clientX, h.current = v ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
|
|
1470
|
+
}, x = (C) => {
|
|
1471
|
+
if (!w.current || !f.current) return;
|
|
1472
|
+
const I = v ? C.clientY : C.clientX, A = k.current - I;
|
|
1473
|
+
Math.abs(A) > 3 && (p.current = !0), v ? f.current.scrollTop = h.current + A : f.current.scrollLeft = h.current + A;
|
|
1474
|
+
}, y = () => {
|
|
1475
|
+
f.current && (w.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
|
|
1476
|
+
}, M = () => {
|
|
1477
|
+
y();
|
|
1478
1478
|
};
|
|
1479
1479
|
D(() => {
|
|
1480
|
-
const
|
|
1481
|
-
if (!
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1480
|
+
const C = f.current;
|
|
1481
|
+
if (!C || v) return;
|
|
1482
|
+
const I = (A) => {
|
|
1483
|
+
A.deltaY !== 0 && (A.preventDefault(), C.scrollLeft += A.deltaY * 0.3);
|
|
1484
1484
|
};
|
|
1485
|
-
return
|
|
1486
|
-
|
|
1485
|
+
return C.addEventListener("wheel", I, { passive: !1 }), () => {
|
|
1486
|
+
C.removeEventListener("wheel", I);
|
|
1487
1487
|
};
|
|
1488
1488
|
}, [v]);
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1489
|
+
const P = (C) => {
|
|
1490
|
+
p.current || n(C);
|
|
1491
1491
|
};
|
|
1492
|
-
return /* @__PURE__ */
|
|
1493
|
-
/* @__PURE__ */
|
|
1494
|
-
|
|
1492
|
+
return /* @__PURE__ */ N("div", { className: `nc-tab-container ${v ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
|
|
1493
|
+
/* @__PURE__ */ N("div", { className: "nc-tab-scroll-wrapper", children: [
|
|
1494
|
+
g && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${v ? "nc-top" : "nc-left"}`, children: v ? /* @__PURE__ */ s(Ft, { size: 16 }) : /* @__PURE__ */ s(xt, { size: 16 }) }),
|
|
1495
1495
|
/* @__PURE__ */ s(
|
|
1496
1496
|
"div",
|
|
1497
1497
|
{
|
|
1498
|
-
ref:
|
|
1498
|
+
ref: f,
|
|
1499
1499
|
className: `nc-tab-scroll ${c ? "nc-multiline" : ""}`,
|
|
1500
|
-
onMouseDown:
|
|
1501
|
-
onMouseMove:
|
|
1502
|
-
onMouseUp:
|
|
1503
|
-
onMouseLeave:
|
|
1500
|
+
onMouseDown: m,
|
|
1501
|
+
onMouseMove: x,
|
|
1502
|
+
onMouseUp: y,
|
|
1503
|
+
onMouseLeave: M,
|
|
1504
1504
|
style: { cursor: "grab" },
|
|
1505
|
-
children: e.map((
|
|
1506
|
-
const
|
|
1507
|
-
return /* @__PURE__ */
|
|
1505
|
+
children: e.map((C) => {
|
|
1506
|
+
const I = typeof C == "string" ? C : C.id, A = typeof C == "string" ? C : C.label, $ = r && !(o != null && o.includes(I));
|
|
1507
|
+
return /* @__PURE__ */ N(
|
|
1508
1508
|
"div",
|
|
1509
1509
|
{
|
|
1510
|
-
className: `nc-tab-item ${t ===
|
|
1511
|
-
onClick: () =>
|
|
1510
|
+
className: `nc-tab-item ${t === I ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
|
|
1511
|
+
onClick: () => P(I),
|
|
1512
1512
|
role: "button",
|
|
1513
1513
|
tabIndex: 0,
|
|
1514
1514
|
onKeyDown: (L) => {
|
|
1515
|
-
(L.key === "Enter" || L.key === " ") && n(
|
|
1515
|
+
(L.key === "Enter" || L.key === " ") && n(I);
|
|
1516
1516
|
},
|
|
1517
1517
|
children: [
|
|
1518
|
-
/* @__PURE__ */ s("span", { className: "nc-tab-label", children: v ?
|
|
1519
|
-
|
|
1518
|
+
/* @__PURE__ */ s("span", { className: "nc-tab-label", children: v ? A : typeof A == "string" ? A.toUpperCase() : A }),
|
|
1519
|
+
$ && /* @__PURE__ */ s(
|
|
1520
1520
|
"span",
|
|
1521
1521
|
{
|
|
1522
1522
|
className: "nc-tab-close",
|
|
1523
1523
|
role: "button",
|
|
1524
1524
|
tabIndex: 0,
|
|
1525
|
-
"aria-label": `Close ${typeof
|
|
1525
|
+
"aria-label": `Close ${typeof A == "string" ? A : I}`,
|
|
1526
1526
|
onClick: (L) => {
|
|
1527
|
-
L.stopPropagation(), r(
|
|
1527
|
+
L.stopPropagation(), r(I);
|
|
1528
1528
|
},
|
|
1529
1529
|
onKeyDown: (L) => {
|
|
1530
|
-
(L.key === "Enter" || L.key === " ") && (L.stopPropagation(), r(
|
|
1530
|
+
(L.key === "Enter" || L.key === " ") && (L.stopPropagation(), r(I));
|
|
1531
1531
|
},
|
|
1532
|
-
children: /* @__PURE__ */
|
|
1532
|
+
children: /* @__PURE__ */ N("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1533
1533
|
/* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
1534
1534
|
/* @__PURE__ */ s("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
1535
1535
|
] })
|
|
@@ -1537,7 +1537,7 @@ function fr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1537
1537
|
)
|
|
1538
1538
|
]
|
|
1539
1539
|
},
|
|
1540
|
-
|
|
1540
|
+
I
|
|
1541
1541
|
);
|
|
1542
1542
|
})
|
|
1543
1543
|
}
|
|
@@ -1548,7 +1548,7 @@ function fr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
|
|
|
1548
1548
|
] });
|
|
1549
1549
|
}
|
|
1550
1550
|
function hr({ checked: e, onChange: t, disabled: n, label: r }) {
|
|
1551
|
-
return /* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ N(
|
|
1552
1552
|
"label",
|
|
1553
1553
|
{
|
|
1554
1554
|
className: "nc-row",
|
|
@@ -1620,13 +1620,13 @@ function Gt(e, t, n, r) {
|
|
|
1620
1620
|
const o = e.split(`
|
|
1621
1621
|
`), i = Math.max(1, Math.min(t, o.length));
|
|
1622
1622
|
let a = 0;
|
|
1623
|
-
for (let
|
|
1624
|
-
a += o[
|
|
1625
|
-
const l = o[i - 1].split(" "),
|
|
1626
|
-
for (let
|
|
1627
|
-
a += l[
|
|
1628
|
-
const
|
|
1629
|
-
return a +=
|
|
1623
|
+
for (let g = 0; g < i - 1; g++)
|
|
1624
|
+
a += o[g].length + 1;
|
|
1625
|
+
const l = o[i - 1].split(" "), u = Math.max(1, Math.min(n, l.length));
|
|
1626
|
+
for (let g = 0; g < u - 1; g++)
|
|
1627
|
+
a += l[g].length + 1;
|
|
1628
|
+
const f = Math.max(1, Math.min(r, l[u - 1].length + 1));
|
|
1629
|
+
return a += f - 1, a;
|
|
1630
1630
|
}
|
|
1631
1631
|
function Kt(e, t) {
|
|
1632
1632
|
const n = e.split(`
|
|
@@ -1637,75 +1637,75 @@ function Kt(e, t) {
|
|
|
1637
1637
|
return o;
|
|
1638
1638
|
}
|
|
1639
1639
|
const mr = Ct(
|
|
1640
|
-
function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l },
|
|
1641
|
-
const
|
|
1642
|
-
Mt(
|
|
1643
|
-
goToLine(
|
|
1644
|
-
const
|
|
1645
|
-
if (!
|
|
1646
|
-
const
|
|
1647
|
-
|
|
1648
|
-
const
|
|
1649
|
-
|
|
1640
|
+
function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, u) {
|
|
1641
|
+
const f = F(null), g = F(null), d = F(null);
|
|
1642
|
+
Mt(u, () => ({
|
|
1643
|
+
goToLine(h) {
|
|
1644
|
+
const p = f.current;
|
|
1645
|
+
if (!p) return;
|
|
1646
|
+
const m = Kt(t, h);
|
|
1647
|
+
p.focus(), p.setSelectionRange(m, m);
|
|
1648
|
+
const x = parseFloat(getComputedStyle(p).lineHeight) || 18;
|
|
1649
|
+
p.scrollTop = (Math.max(1, h) - 1) * x, S(), b();
|
|
1650
1650
|
},
|
|
1651
|
-
goToPosition(
|
|
1652
|
-
const
|
|
1653
|
-
if (!
|
|
1654
|
-
const
|
|
1655
|
-
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1651
|
+
goToPosition(h, p, m) {
|
|
1652
|
+
const x = f.current;
|
|
1653
|
+
if (!x) return;
|
|
1654
|
+
const y = Gt(t, h, p, m);
|
|
1655
|
+
x.focus(), x.setSelectionRange(y, y);
|
|
1656
|
+
const M = parseFloat(getComputedStyle(x).lineHeight) || 18;
|
|
1657
|
+
x.scrollTop = (Math.max(1, h) - 1) * M, S(), b();
|
|
1658
1658
|
}
|
|
1659
1659
|
}), [t]);
|
|
1660
1660
|
const b = G(() => {
|
|
1661
|
-
if (!c || !
|
|
1662
|
-
const
|
|
1663
|
-
c(
|
|
1664
|
-
}, [c, t]),
|
|
1665
|
-
const
|
|
1666
|
-
|
|
1661
|
+
if (!c || !f.current) return;
|
|
1662
|
+
const h = Yt(t, f.current.selectionStart);
|
|
1663
|
+
c(h);
|
|
1664
|
+
}, [c, t]), S = G(() => {
|
|
1665
|
+
const h = f.current;
|
|
1666
|
+
h && (g.current && (g.current.scrollTop = h.scrollTop, g.current.scrollLeft = h.scrollLeft), d.current && (d.current.scrollTop = h.scrollTop));
|
|
1667
1667
|
}, []);
|
|
1668
1668
|
D(() => {
|
|
1669
1669
|
if (l == null || l < 1) return;
|
|
1670
|
-
const
|
|
1671
|
-
if (!
|
|
1672
|
-
const
|
|
1673
|
-
(
|
|
1670
|
+
const h = f.current;
|
|
1671
|
+
if (!h) return;
|
|
1672
|
+
const p = parseFloat(getComputedStyle(h).lineHeight) || 18, m = (l - 1) * p, x = m + p;
|
|
1673
|
+
(m < h.scrollTop || x > h.scrollTop + h.clientHeight) && (h.scrollTop = m - h.clientHeight / 2 + p / 2), S();
|
|
1674
1674
|
}, [l]);
|
|
1675
1675
|
const v = Ie(() => t.split(`
|
|
1676
|
-
`).length, [t]),
|
|
1677
|
-
const
|
|
1678
|
-
for (let
|
|
1679
|
-
|
|
1680
|
-
/* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l ===
|
|
1676
|
+
`).length, [t]), w = () => {
|
|
1677
|
+
const h = [];
|
|
1678
|
+
for (let p = 1; p <= v; p++)
|
|
1679
|
+
h.push(
|
|
1680
|
+
/* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === p ? "nc-csv-highlight" : ""}`, children: p }, p)
|
|
1681
1681
|
);
|
|
1682
|
-
return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref:
|
|
1683
|
-
},
|
|
1684
|
-
`).map((
|
|
1685
|
-
const
|
|
1686
|
-
return /* @__PURE__ */
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
/* @__PURE__ */ s("span", { style: { color: _e[
|
|
1690
|
-
] },
|
|
1691
|
-
|
|
1682
|
+
return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: h });
|
|
1683
|
+
}, k = (h) => h ? h.split(`
|
|
1684
|
+
`).map((m, x) => {
|
|
1685
|
+
const y = m.split(" ");
|
|
1686
|
+
return /* @__PURE__ */ N("div", { className: `nc-csv-line ${l === x + 1 ? "nc-csv-highlight" : ""}`, children: [
|
|
1687
|
+
y.map((M, P) => /* @__PURE__ */ N("span", { children: [
|
|
1688
|
+
P > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
|
|
1689
|
+
/* @__PURE__ */ s("span", { style: { color: _e[P % _e.length] }, children: M })
|
|
1690
|
+
] }, P)),
|
|
1691
|
+
m === "" && `
|
|
1692
1692
|
`
|
|
1693
|
-
] },
|
|
1693
|
+
] }, x);
|
|
1694
1694
|
}) : null;
|
|
1695
|
-
return /* @__PURE__ */
|
|
1696
|
-
a &&
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref:
|
|
1695
|
+
return /* @__PURE__ */ N("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
|
|
1696
|
+
a && w(),
|
|
1697
|
+
/* @__PURE__ */ N("div", { className: "nc-csv-textarea-editor", children: [
|
|
1698
|
+
/* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: g, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: k(t) }) }),
|
|
1699
1699
|
/* @__PURE__ */ s(
|
|
1700
1700
|
"textarea",
|
|
1701
1701
|
{
|
|
1702
|
-
ref:
|
|
1702
|
+
ref: f,
|
|
1703
1703
|
className: "nc-csv-textarea-input",
|
|
1704
1704
|
value: t,
|
|
1705
|
-
onChange: (
|
|
1706
|
-
n(
|
|
1705
|
+
onChange: (h) => {
|
|
1706
|
+
n(h.target.value), requestAnimationFrame(b);
|
|
1707
1707
|
},
|
|
1708
|
-
onScroll:
|
|
1708
|
+
onScroll: S,
|
|
1709
1709
|
onSelect: b,
|
|
1710
1710
|
onKeyUp: b,
|
|
1711
1711
|
onClick: b,
|
|
@@ -1774,13 +1774,13 @@ function qt({ type: e }) {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
) });
|
|
1776
1776
|
case "danger":
|
|
1777
|
-
return /* @__PURE__ */
|
|
1777
|
+
return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
1778
1778
|
/* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
|
|
1779
1779
|
/* @__PURE__ */ s("path", { d: "M10 6.5v4.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
|
|
1780
1780
|
/* @__PURE__ */ s("circle", { cx: "10", cy: "13.75", r: "1", fill: "currentColor" })
|
|
1781
1781
|
] });
|
|
1782
1782
|
case "warning":
|
|
1783
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
1784
1784
|
/* @__PURE__ */ s(
|
|
1785
1785
|
"path",
|
|
1786
1786
|
{
|
|
@@ -1794,7 +1794,7 @@ function qt({ type: e }) {
|
|
|
1794
1794
|
/* @__PURE__ */ s("circle", { cx: "10", cy: "13.25", r: "1", fill: "currentColor" })
|
|
1795
1795
|
] });
|
|
1796
1796
|
default:
|
|
1797
|
-
return /* @__PURE__ */
|
|
1797
|
+
return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
1798
1798
|
/* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
|
|
1799
1799
|
/* @__PURE__ */ s("path", { d: "M10 9v4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
|
|
1800
1800
|
/* @__PURE__ */ s("circle", { cx: "10", cy: "6.5", r: "1", fill: "currentColor" })
|
|
@@ -1821,9 +1821,9 @@ function Xt({ notification: e }) {
|
|
|
1821
1821
|
"div",
|
|
1822
1822
|
{
|
|
1823
1823
|
className: `nc-notification nc-notification-${n}`,
|
|
1824
|
-
children: /* @__PURE__ */
|
|
1824
|
+
children: /* @__PURE__ */ N("div", { className: "nc-notification-content", children: [
|
|
1825
1825
|
/* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(qt, { type: n }) }),
|
|
1826
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ N("div", { className: "nc-notification-body", children: [
|
|
1827
1827
|
/* @__PURE__ */ s("div", { className: "nc-notification-title", children: r() }),
|
|
1828
1828
|
/* @__PURE__ */ s("div", { className: "nc-notification-message", children: e.message })
|
|
1829
1829
|
] }),
|
|
@@ -1841,23 +1841,23 @@ function Xt({ notification: e }) {
|
|
|
1841
1841
|
);
|
|
1842
1842
|
}
|
|
1843
1843
|
function gr() {
|
|
1844
|
-
const [e, t] =
|
|
1845
|
-
return D(() => _t((
|
|
1846
|
-
const
|
|
1847
|
-
|
|
1844
|
+
const [e, t] = E([]), [n, r] = E(/* @__PURE__ */ new Map()), [o, i] = E(/* @__PURE__ */ new Set()), a = F(null), c = F([]);
|
|
1845
|
+
return D(() => _t((u) => {
|
|
1846
|
+
const f = new Set(c.current.map((d) => d.id)), g = u.filter((d) => !f.has(d.id)).map((d) => d.id);
|
|
1847
|
+
g.length > 0 ? (t(u), i(new Set(g)), requestAnimationFrame(() => {
|
|
1848
1848
|
requestAnimationFrame(() => {
|
|
1849
1849
|
i(/* @__PURE__ */ new Set());
|
|
1850
1850
|
});
|
|
1851
|
-
})) : t(
|
|
1851
|
+
})) : t(u), c.current = u;
|
|
1852
1852
|
}), []), D(() => {
|
|
1853
1853
|
if (!a.current) return;
|
|
1854
1854
|
const l = /* @__PURE__ */ new Map();
|
|
1855
|
-
let
|
|
1856
|
-
const
|
|
1857
|
-
e.forEach((
|
|
1858
|
-
if (l.set(
|
|
1859
|
-
const b =
|
|
1860
|
-
|
|
1855
|
+
let u = 0;
|
|
1856
|
+
const f = a.current.children;
|
|
1857
|
+
e.forEach((g, d) => {
|
|
1858
|
+
if (l.set(g.id, u), f[d]) {
|
|
1859
|
+
const b = f[d].offsetHeight;
|
|
1860
|
+
g.isRemoving || (u += b + 12);
|
|
1861
1861
|
}
|
|
1862
1862
|
}), r(l);
|
|
1863
1863
|
}, [e]), /* @__PURE__ */ s(
|
|
@@ -1881,7 +1881,7 @@ function gr() {
|
|
|
1881
1881
|
width: "100%"
|
|
1882
1882
|
},
|
|
1883
1883
|
children: e.map((l) => {
|
|
1884
|
-
const
|
|
1884
|
+
const u = o.has(l.id), f = l.isRemoving, g = n.get(l.id) || 0;
|
|
1885
1885
|
return /* @__PURE__ */ s(
|
|
1886
1886
|
"div",
|
|
1887
1887
|
{
|
|
@@ -1889,10 +1889,10 @@ function gr() {
|
|
|
1889
1889
|
position: "absolute",
|
|
1890
1890
|
top: 0,
|
|
1891
1891
|
left: 0,
|
|
1892
|
-
transform:
|
|
1892
|
+
transform: u ? `translate3d(-40px, ${g}px, 0)` : `translate3d(0, ${g}px, 0)`,
|
|
1893
1893
|
// Only animate transform when not leaving, animate opacity always
|
|
1894
|
-
transition:
|
|
1895
|
-
opacity:
|
|
1894
|
+
transition: f ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
|
|
1895
|
+
opacity: f ? 0 : 1,
|
|
1896
1896
|
width: "100%"
|
|
1897
1897
|
},
|
|
1898
1898
|
children: /* @__PURE__ */ s(Xt, { notification: l })
|
|
@@ -2148,7 +2148,7 @@ function tn() {
|
|
|
2148
2148
|
return e;
|
|
2149
2149
|
}
|
|
2150
2150
|
function nn({ size: e = 16 }) {
|
|
2151
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ N(
|
|
2152
2152
|
"svg",
|
|
2153
2153
|
{
|
|
2154
2154
|
width: e,
|
|
@@ -2167,8 +2167,8 @@ function nn({ size: e = 16 }) {
|
|
|
2167
2167
|
);
|
|
2168
2168
|
}
|
|
2169
2169
|
function rn({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
|
|
2170
|
-
return /* @__PURE__ */
|
|
2171
|
-
/* @__PURE__ */
|
|
2170
|
+
return /* @__PURE__ */ N("div", { className: "nc-app-title-bar", children: [
|
|
2171
|
+
/* @__PURE__ */ N("div", { className: "nc-app-title-bar-left", children: [
|
|
2172
2172
|
n && !o && /* @__PURE__ */ s(
|
|
2173
2173
|
"button",
|
|
2174
2174
|
{
|
|
@@ -2181,7 +2181,7 @@ function rn({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o })
|
|
|
2181
2181
|
),
|
|
2182
2182
|
/* @__PURE__ */ s("span", { className: "nc-app-title-bar-title", children: e })
|
|
2183
2183
|
] }),
|
|
2184
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ N("div", { className: "nc-app-title-bar-right", children: [
|
|
2185
2185
|
r && /* @__PURE__ */ s("div", { className: "nc-app-title-bar-toolbar", children: r }),
|
|
2186
2186
|
/* @__PURE__ */ s(Ze, { onClick: t, "aria-label": "Close application" })
|
|
2187
2187
|
] })
|
|
@@ -2198,57 +2198,57 @@ class on extends ze.Component {
|
|
|
2198
2198
|
console.error(`Error loading app ${this.props.appId}:`, t, n);
|
|
2199
2199
|
}
|
|
2200
2200
|
render() {
|
|
2201
|
-
return this.state.hasError ? /* @__PURE__ */
|
|
2201
|
+
return this.state.hasError ? /* @__PURE__ */ N("div", { className: "nc-app-error", children: [
|
|
2202
2202
|
/* @__PURE__ */ s("div", { children: "Failed to load app" }),
|
|
2203
2203
|
this.state.error && /* @__PURE__ */ s("div", { style: { fontSize: "12px", opacity: 0.7 }, children: this.state.error.message })
|
|
2204
2204
|
] }) : this.props.children;
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
2207
|
function rt({ appId: e, isActive: t, onClose: n }) {
|
|
2208
|
-
const { t: r } = re(), o = me.get(e), [i, a] =
|
|
2208
|
+
const { t: r } = re(), o = me.get(e), [i, a] = E(""), [c, l] = E(null), [u, f] = E(null), [g, d] = E(!1), [b, S] = E(!1);
|
|
2209
2209
|
ze.useEffect(() => {
|
|
2210
2210
|
o != null && o.titleKey && a(r(o.titleKey));
|
|
2211
2211
|
}, [o, r]);
|
|
2212
|
-
const v = G((
|
|
2213
|
-
a(
|
|
2214
|
-
}, []),
|
|
2215
|
-
l(() =>
|
|
2216
|
-
}, []),
|
|
2212
|
+
const v = G((C) => {
|
|
2213
|
+
a(C);
|
|
2214
|
+
}, []), w = G((C) => {
|
|
2215
|
+
l(() => C);
|
|
2216
|
+
}, []), k = G(() => {
|
|
2217
2217
|
l(null);
|
|
2218
|
-
}, []),
|
|
2219
|
-
|
|
2220
|
-
}, []),
|
|
2221
|
-
|
|
2222
|
-
}, []),
|
|
2223
|
-
|
|
2224
|
-
}, []),
|
|
2225
|
-
|
|
2226
|
-
}, []),
|
|
2218
|
+
}, []), h = G((C) => {
|
|
2219
|
+
f(C);
|
|
2220
|
+
}, []), p = G(() => {
|
|
2221
|
+
f(null);
|
|
2222
|
+
}, []), m = G((C) => {
|
|
2223
|
+
d(C);
|
|
2224
|
+
}, []), x = G((C) => {
|
|
2225
|
+
S(C);
|
|
2226
|
+
}, []), y = Ie(() => ({
|
|
2227
2227
|
setTitle: v,
|
|
2228
|
-
setBackHandler:
|
|
2229
|
-
clearBackHandler:
|
|
2230
|
-
setToolbar:
|
|
2231
|
-
clearToolbar:
|
|
2232
|
-
setHideBackButton:
|
|
2233
|
-
setHideTitleBar:
|
|
2228
|
+
setBackHandler: w,
|
|
2229
|
+
clearBackHandler: k,
|
|
2230
|
+
setToolbar: h,
|
|
2231
|
+
clearToolbar: p,
|
|
2232
|
+
setHideBackButton: m,
|
|
2233
|
+
setHideTitleBar: x,
|
|
2234
2234
|
close: n
|
|
2235
|
-
}), [v,
|
|
2235
|
+
}), [v, w, k, h, p, m, x, n]);
|
|
2236
2236
|
if (!o)
|
|
2237
2237
|
return null;
|
|
2238
|
-
const
|
|
2239
|
-
return /* @__PURE__ */
|
|
2238
|
+
const M = o.component, P = !o.hideTitleBar && !b;
|
|
2239
|
+
return /* @__PURE__ */ N(
|
|
2240
2240
|
"div",
|
|
2241
2241
|
{
|
|
2242
2242
|
className: `nc-app-container${t ? "" : " nc-hidden"}`,
|
|
2243
2243
|
children: [
|
|
2244
|
-
|
|
2244
|
+
P && /* @__PURE__ */ s(
|
|
2245
2245
|
rn,
|
|
2246
2246
|
{
|
|
2247
2247
|
title: i,
|
|
2248
2248
|
onClose: n,
|
|
2249
2249
|
onBack: c ?? void 0,
|
|
2250
|
-
toolbar:
|
|
2251
|
-
hideBackButton:
|
|
2250
|
+
toolbar: u,
|
|
2251
|
+
hideBackButton: g
|
|
2252
2252
|
}
|
|
2253
2253
|
),
|
|
2254
2254
|
/* @__PURE__ */ s(
|
|
@@ -2257,13 +2257,13 @@ function rt({ appId: e, isActive: t, onClose: n }) {
|
|
|
2257
2257
|
className: "nc-app-content-wrapper",
|
|
2258
2258
|
style: {
|
|
2259
2259
|
padding: o.padding,
|
|
2260
|
-
overflowY:
|
|
2260
|
+
overflowY: P ? "auto" : void 0
|
|
2261
2261
|
},
|
|
2262
|
-
children: /* @__PURE__ */ s(nt.Provider, { value:
|
|
2262
|
+
children: /* @__PURE__ */ s(nt.Provider, { value: y, children: /* @__PURE__ */ s(on, { appId: e, children: /* @__PURE__ */ s(
|
|
2263
2263
|
It,
|
|
2264
2264
|
{
|
|
2265
2265
|
fallback: /* @__PURE__ */ s("div", { className: "nc-app-loading", children: /* @__PURE__ */ s(Qe, {}) }),
|
|
2266
|
-
children: /* @__PURE__ */ s(
|
|
2266
|
+
children: /* @__PURE__ */ s(M, {})
|
|
2267
2267
|
}
|
|
2268
2268
|
) }) })
|
|
2269
2269
|
}
|
|
@@ -2280,7 +2280,7 @@ const Ce = 768, Me = 1024, ot = {
|
|
|
2280
2280
|
height: typeof window < "u" ? window.innerHeight : 768
|
|
2281
2281
|
}, st = ge(ot);
|
|
2282
2282
|
function wr({ children: e }) {
|
|
2283
|
-
const [t, n] =
|
|
2283
|
+
const [t, n] = E(() => {
|
|
2284
2284
|
if (typeof window > "u") return ot;
|
|
2285
2285
|
const r = window.innerWidth, o = window.innerHeight;
|
|
2286
2286
|
return {
|
|
@@ -2416,26 +2416,26 @@ const Be = "-", sn = (e) => {
|
|
|
2416
2416
|
experimentalParseClassName: n
|
|
2417
2417
|
} = e, r = t.length === 1, o = t[0], i = t.length, a = (c) => {
|
|
2418
2418
|
const l = [];
|
|
2419
|
-
let
|
|
2420
|
-
for (let
|
|
2421
|
-
let
|
|
2422
|
-
if (
|
|
2423
|
-
if (
|
|
2424
|
-
l.push(c.slice(
|
|
2419
|
+
let u = 0, f = 0, g;
|
|
2420
|
+
for (let w = 0; w < c.length; w++) {
|
|
2421
|
+
let k = c[w];
|
|
2422
|
+
if (u === 0) {
|
|
2423
|
+
if (k === o && (r || c.slice(w, w + i) === t)) {
|
|
2424
|
+
l.push(c.slice(f, w)), f = w + i;
|
|
2425
2425
|
continue;
|
|
2426
2426
|
}
|
|
2427
|
-
if (
|
|
2428
|
-
|
|
2427
|
+
if (k === "/") {
|
|
2428
|
+
g = w;
|
|
2429
2429
|
continue;
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
|
-
|
|
2432
|
+
k === "[" ? u++ : k === "]" && u--;
|
|
2433
2433
|
}
|
|
2434
|
-
const
|
|
2434
|
+
const d = l.length === 0 ? c : c.substring(f), b = d.startsWith(at), S = b ? d.substring(1) : d, v = g && g > f ? g - f : void 0;
|
|
2435
2435
|
return {
|
|
2436
2436
|
modifiers: l,
|
|
2437
2437
|
hasImportantModifier: b,
|
|
2438
|
-
baseClassName:
|
|
2438
|
+
baseClassName: S,
|
|
2439
2439
|
maybePostfixModifierPosition: v
|
|
2440
2440
|
};
|
|
2441
2441
|
};
|
|
@@ -2463,34 +2463,34 @@ const Be = "-", sn = (e) => {
|
|
|
2463
2463
|
} = t, i = [], a = e.trim().split(mn);
|
|
2464
2464
|
let c = "";
|
|
2465
2465
|
for (let l = a.length - 1; l >= 0; l -= 1) {
|
|
2466
|
-
const
|
|
2467
|
-
modifiers:
|
|
2468
|
-
hasImportantModifier:
|
|
2469
|
-
baseClassName:
|
|
2466
|
+
const u = a[l], {
|
|
2467
|
+
modifiers: f,
|
|
2468
|
+
hasImportantModifier: g,
|
|
2469
|
+
baseClassName: d,
|
|
2470
2470
|
maybePostfixModifierPosition: b
|
|
2471
|
-
} = n(
|
|
2472
|
-
let
|
|
2471
|
+
} = n(u);
|
|
2472
|
+
let S = !!b, v = r(S ? d.substring(0, b) : d);
|
|
2473
2473
|
if (!v) {
|
|
2474
|
-
if (!
|
|
2475
|
-
c =
|
|
2474
|
+
if (!S) {
|
|
2475
|
+
c = u + (c.length > 0 ? " " + c : c);
|
|
2476
2476
|
continue;
|
|
2477
2477
|
}
|
|
2478
|
-
if (v = r(
|
|
2479
|
-
c =
|
|
2478
|
+
if (v = r(d), !v) {
|
|
2479
|
+
c = u + (c.length > 0 ? " " + c : c);
|
|
2480
2480
|
continue;
|
|
2481
2481
|
}
|
|
2482
|
-
|
|
2482
|
+
S = !1;
|
|
2483
2483
|
}
|
|
2484
|
-
const
|
|
2485
|
-
if (i.includes(
|
|
2484
|
+
const w = fn(f).join(":"), k = g ? w + at : w, h = k + v;
|
|
2485
|
+
if (i.includes(h))
|
|
2486
2486
|
continue;
|
|
2487
|
-
i.push(
|
|
2488
|
-
const
|
|
2489
|
-
for (let
|
|
2490
|
-
const
|
|
2491
|
-
i.push(
|
|
2487
|
+
i.push(h);
|
|
2488
|
+
const p = o(v, S);
|
|
2489
|
+
for (let m = 0; m < p.length; ++m) {
|
|
2490
|
+
const x = p[m];
|
|
2491
|
+
i.push(k + x);
|
|
2492
2492
|
}
|
|
2493
|
-
c =
|
|
2493
|
+
c = u + (c.length > 0 ? " " + c : c);
|
|
2494
2494
|
}
|
|
2495
2495
|
return c;
|
|
2496
2496
|
};
|
|
@@ -2511,15 +2511,15 @@ const lt = (e) => {
|
|
|
2511
2511
|
function vn(e, ...t) {
|
|
2512
2512
|
let n, r, o, i = a;
|
|
2513
2513
|
function a(l) {
|
|
2514
|
-
const
|
|
2515
|
-
return n = hn(
|
|
2514
|
+
const u = t.reduce((f, g) => g(f), e());
|
|
2515
|
+
return n = hn(u), r = n.cache.get, o = n.cache.set, i = c, c(l);
|
|
2516
2516
|
}
|
|
2517
2517
|
function c(l) {
|
|
2518
|
-
const
|
|
2519
|
-
if (
|
|
2520
|
-
return
|
|
2521
|
-
const
|
|
2522
|
-
return o(l,
|
|
2518
|
+
const u = r(l);
|
|
2519
|
+
if (u)
|
|
2520
|
+
return u;
|
|
2521
|
+
const f = gn(l, n);
|
|
2522
|
+
return o(l, f), f;
|
|
2523
2523
|
}
|
|
2524
2524
|
return function() {
|
|
2525
2525
|
return i(bn.apply(null, arguments));
|
|
@@ -2528,7 +2528,7 @@ function vn(e, ...t) {
|
|
|
2528
2528
|
const O = (e) => {
|
|
2529
2529
|
const t = (n) => n[e] || [];
|
|
2530
2530
|
return t.isThemeGetter = !0, t;
|
|
2531
|
-
}, dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, wn = /^\d+\/\d+$/, yn = /* @__PURE__ */ new Set(["px", "full", "screen"]), xn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, kn = /\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$/, Nn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, An = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Sn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => he(e) || yn.has(e) || wn.test(e), se = (e) => be(e, "length", En), he = (e) => !!e && !Number.isNaN(Number(e)), $e = (e) => be(e, "number", he), xe = (e) => !!e && Number.isInteger(Number(e)), Cn = (e) => e.endsWith("%") && he(e.slice(0, -1)),
|
|
2531
|
+
}, dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, wn = /^\d+\/\d+$/, yn = /* @__PURE__ */ new Set(["px", "full", "screen"]), xn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, kn = /\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$/, Nn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, An = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Sn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => he(e) || yn.has(e) || wn.test(e), se = (e) => be(e, "length", En), he = (e) => !!e && !Number.isNaN(Number(e)), $e = (e) => be(e, "number", he), xe = (e) => !!e && Number.isInteger(Number(e)), Cn = (e) => e.endsWith("%") && he(e.slice(0, -1)), R = (e) => dt.test(e), ie = (e) => xn.test(e), Mn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), In = (e) => be(e, Mn, ut), $n = (e) => be(e, "position", ut), Rn = /* @__PURE__ */ new Set(["image", "url"]), Tn = (e) => be(e, Rn, zn), Pn = (e) => be(e, "", Ln), ke = () => !0, be = (e, t, n) => {
|
|
2532
2532
|
const r = dt.exec(e);
|
|
2533
2533
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
2534
2534
|
}, En = (e) => (
|
|
@@ -2537,36 +2537,36 @@ const O = (e) => {
|
|
|
2537
2537
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2538
2538
|
kn.test(e) && !Nn.test(e)
|
|
2539
2539
|
), ut = () => !1, Ln = (e) => An.test(e), zn = (e) => Sn.test(e), Bn = () => {
|
|
2540
|
-
const e = O("colors"), t = O("spacing"), n = O("blur"), r = O("brightness"), o = O("borderColor"), i = O("borderRadius"), a = O("borderSpacing"), c = O("borderWidth"), l = O("contrast"),
|
|
2540
|
+
const e = O("colors"), t = O("spacing"), n = O("blur"), r = O("brightness"), o = O("borderColor"), i = O("borderRadius"), a = O("borderSpacing"), c = O("borderWidth"), l = O("contrast"), u = O("grayscale"), f = O("hueRotate"), g = O("invert"), d = O("gap"), b = O("gradientColorStops"), S = O("gradientColorStopPositions"), v = O("inset"), w = O("margin"), k = O("opacity"), h = O("padding"), p = O("saturate"), m = O("scale"), x = O("sepia"), y = O("skew"), M = O("space"), P = O("translate"), C = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", R, t], $ = () => [R, t], L = () => ["", ee, se], H = () => ["auto", he, R], ae = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], X = () => ["solid", "dashed", "dotted", "double", "none"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], U = () => ["", "0", R], j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [he, R];
|
|
2541
2541
|
return {
|
|
2542
2542
|
cacheSize: 500,
|
|
2543
2543
|
separator: ":",
|
|
2544
2544
|
theme: {
|
|
2545
2545
|
colors: [ke],
|
|
2546
2546
|
spacing: [ee, se],
|
|
2547
|
-
blur: ["none", "", ie,
|
|
2547
|
+
blur: ["none", "", ie, R],
|
|
2548
2548
|
brightness: z(),
|
|
2549
2549
|
borderColor: [e],
|
|
2550
|
-
borderRadius: ["none", "", "full", ie,
|
|
2551
|
-
borderSpacing:
|
|
2550
|
+
borderRadius: ["none", "", "full", ie, R],
|
|
2551
|
+
borderSpacing: $(),
|
|
2552
2552
|
borderWidth: L(),
|
|
2553
2553
|
contrast: z(),
|
|
2554
2554
|
grayscale: U(),
|
|
2555
2555
|
hueRotate: z(),
|
|
2556
2556
|
invert: U(),
|
|
2557
|
-
gap:
|
|
2557
|
+
gap: $(),
|
|
2558
2558
|
gradientColorStops: [e],
|
|
2559
2559
|
gradientColorStopPositions: [Cn, se],
|
|
2560
|
-
inset:
|
|
2561
|
-
margin:
|
|
2560
|
+
inset: A(),
|
|
2561
|
+
margin: A(),
|
|
2562
2562
|
opacity: z(),
|
|
2563
|
-
padding:
|
|
2563
|
+
padding: $(),
|
|
2564
2564
|
saturate: z(),
|
|
2565
2565
|
scale: z(),
|
|
2566
2566
|
sepia: U(),
|
|
2567
2567
|
skew: z(),
|
|
2568
|
-
space:
|
|
2569
|
-
translate:
|
|
2568
|
+
space: $(),
|
|
2569
|
+
translate: $()
|
|
2570
2570
|
},
|
|
2571
2571
|
classGroups: {
|
|
2572
2572
|
// Layout
|
|
@@ -2575,7 +2575,7 @@ const O = (e) => {
|
|
|
2575
2575
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2576
2576
|
*/
|
|
2577
2577
|
aspect: [{
|
|
2578
|
-
aspect: ["auto", "square", "video",
|
|
2578
|
+
aspect: ["auto", "square", "video", R]
|
|
2579
2579
|
}],
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Container
|
|
@@ -2660,49 +2660,49 @@ const O = (e) => {
|
|
|
2660
2660
|
* @see https://tailwindcss.com/docs/object-position
|
|
2661
2661
|
*/
|
|
2662
2662
|
"object-position": [{
|
|
2663
|
-
object: [...ae(),
|
|
2663
|
+
object: [...ae(), R]
|
|
2664
2664
|
}],
|
|
2665
2665
|
/**
|
|
2666
2666
|
* Overflow
|
|
2667
2667
|
* @see https://tailwindcss.com/docs/overflow
|
|
2668
2668
|
*/
|
|
2669
2669
|
overflow: [{
|
|
2670
|
-
overflow:
|
|
2670
|
+
overflow: I()
|
|
2671
2671
|
}],
|
|
2672
2672
|
/**
|
|
2673
2673
|
* Overflow X
|
|
2674
2674
|
* @see https://tailwindcss.com/docs/overflow
|
|
2675
2675
|
*/
|
|
2676
2676
|
"overflow-x": [{
|
|
2677
|
-
"overflow-x":
|
|
2677
|
+
"overflow-x": I()
|
|
2678
2678
|
}],
|
|
2679
2679
|
/**
|
|
2680
2680
|
* Overflow Y
|
|
2681
2681
|
* @see https://tailwindcss.com/docs/overflow
|
|
2682
2682
|
*/
|
|
2683
2683
|
"overflow-y": [{
|
|
2684
|
-
"overflow-y":
|
|
2684
|
+
"overflow-y": I()
|
|
2685
2685
|
}],
|
|
2686
2686
|
/**
|
|
2687
2687
|
* Overscroll Behavior
|
|
2688
2688
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2689
2689
|
*/
|
|
2690
2690
|
overscroll: [{
|
|
2691
|
-
overscroll:
|
|
2691
|
+
overscroll: C()
|
|
2692
2692
|
}],
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Overscroll Behavior X
|
|
2695
2695
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2696
2696
|
*/
|
|
2697
2697
|
"overscroll-x": [{
|
|
2698
|
-
"overscroll-x":
|
|
2698
|
+
"overscroll-x": C()
|
|
2699
2699
|
}],
|
|
2700
2700
|
/**
|
|
2701
2701
|
* Overscroll Behavior Y
|
|
2702
2702
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2703
2703
|
*/
|
|
2704
2704
|
"overscroll-y": [{
|
|
2705
|
-
"overscroll-y":
|
|
2705
|
+
"overscroll-y": C()
|
|
2706
2706
|
}],
|
|
2707
2707
|
/**
|
|
2708
2708
|
* Position
|
|
@@ -2782,7 +2782,7 @@ const O = (e) => {
|
|
|
2782
2782
|
* @see https://tailwindcss.com/docs/z-index
|
|
2783
2783
|
*/
|
|
2784
2784
|
z: [{
|
|
2785
|
-
z: ["auto", xe,
|
|
2785
|
+
z: ["auto", xe, R]
|
|
2786
2786
|
}],
|
|
2787
2787
|
// Flexbox and Grid
|
|
2788
2788
|
/**
|
|
@@ -2790,7 +2790,7 @@ const O = (e) => {
|
|
|
2790
2790
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
2791
2791
|
*/
|
|
2792
2792
|
basis: [{
|
|
2793
|
-
basis:
|
|
2793
|
+
basis: A()
|
|
2794
2794
|
}],
|
|
2795
2795
|
/**
|
|
2796
2796
|
* Flex Direction
|
|
@@ -2811,7 +2811,7 @@ const O = (e) => {
|
|
|
2811
2811
|
* @see https://tailwindcss.com/docs/flex
|
|
2812
2812
|
*/
|
|
2813
2813
|
flex: [{
|
|
2814
|
-
flex: ["1", "auto", "initial", "none",
|
|
2814
|
+
flex: ["1", "auto", "initial", "none", R]
|
|
2815
2815
|
}],
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Flex Grow
|
|
@@ -2832,7 +2832,7 @@ const O = (e) => {
|
|
|
2832
2832
|
* @see https://tailwindcss.com/docs/order
|
|
2833
2833
|
*/
|
|
2834
2834
|
order: [{
|
|
2835
|
-
order: ["first", "last", "none", xe,
|
|
2835
|
+
order: ["first", "last", "none", xe, R]
|
|
2836
2836
|
}],
|
|
2837
2837
|
/**
|
|
2838
2838
|
* Grid Template Columns
|
|
@@ -2847,8 +2847,8 @@ const O = (e) => {
|
|
|
2847
2847
|
*/
|
|
2848
2848
|
"col-start-end": [{
|
|
2849
2849
|
col: ["auto", {
|
|
2850
|
-
span: ["full", xe,
|
|
2851
|
-
},
|
|
2850
|
+
span: ["full", xe, R]
|
|
2851
|
+
}, R]
|
|
2852
2852
|
}],
|
|
2853
2853
|
/**
|
|
2854
2854
|
* Grid Column Start
|
|
@@ -2877,8 +2877,8 @@ const O = (e) => {
|
|
|
2877
2877
|
*/
|
|
2878
2878
|
"row-start-end": [{
|
|
2879
2879
|
row: ["auto", {
|
|
2880
|
-
span: [xe,
|
|
2881
|
-
},
|
|
2880
|
+
span: [xe, R]
|
|
2881
|
+
}, R]
|
|
2882
2882
|
}],
|
|
2883
2883
|
/**
|
|
2884
2884
|
* Grid Row Start
|
|
@@ -2906,35 +2906,35 @@ const O = (e) => {
|
|
|
2906
2906
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
2907
2907
|
*/
|
|
2908
2908
|
"auto-cols": [{
|
|
2909
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
2909
|
+
"auto-cols": ["auto", "min", "max", "fr", R]
|
|
2910
2910
|
}],
|
|
2911
2911
|
/**
|
|
2912
2912
|
* Grid Auto Rows
|
|
2913
2913
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
2914
2914
|
*/
|
|
2915
2915
|
"auto-rows": [{
|
|
2916
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
2916
|
+
"auto-rows": ["auto", "min", "max", "fr", R]
|
|
2917
2917
|
}],
|
|
2918
2918
|
/**
|
|
2919
2919
|
* Gap
|
|
2920
2920
|
* @see https://tailwindcss.com/docs/gap
|
|
2921
2921
|
*/
|
|
2922
2922
|
gap: [{
|
|
2923
|
-
gap: [
|
|
2923
|
+
gap: [d]
|
|
2924
2924
|
}],
|
|
2925
2925
|
/**
|
|
2926
2926
|
* Gap X
|
|
2927
2927
|
* @see https://tailwindcss.com/docs/gap
|
|
2928
2928
|
*/
|
|
2929
2929
|
"gap-x": [{
|
|
2930
|
-
"gap-x": [
|
|
2930
|
+
"gap-x": [d]
|
|
2931
2931
|
}],
|
|
2932
2932
|
/**
|
|
2933
2933
|
* Gap Y
|
|
2934
2934
|
* @see https://tailwindcss.com/docs/gap
|
|
2935
2935
|
*/
|
|
2936
2936
|
"gap-y": [{
|
|
2937
|
-
"gap-y": [
|
|
2937
|
+
"gap-y": [d]
|
|
2938
2938
|
}],
|
|
2939
2939
|
/**
|
|
2940
2940
|
* Justify Content
|
|
@@ -3005,133 +3005,133 @@ const O = (e) => {
|
|
|
3005
3005
|
* @see https://tailwindcss.com/docs/padding
|
|
3006
3006
|
*/
|
|
3007
3007
|
p: [{
|
|
3008
|
-
p: [
|
|
3008
|
+
p: [h]
|
|
3009
3009
|
}],
|
|
3010
3010
|
/**
|
|
3011
3011
|
* Padding X
|
|
3012
3012
|
* @see https://tailwindcss.com/docs/padding
|
|
3013
3013
|
*/
|
|
3014
3014
|
px: [{
|
|
3015
|
-
px: [
|
|
3015
|
+
px: [h]
|
|
3016
3016
|
}],
|
|
3017
3017
|
/**
|
|
3018
3018
|
* Padding Y
|
|
3019
3019
|
* @see https://tailwindcss.com/docs/padding
|
|
3020
3020
|
*/
|
|
3021
3021
|
py: [{
|
|
3022
|
-
py: [
|
|
3022
|
+
py: [h]
|
|
3023
3023
|
}],
|
|
3024
3024
|
/**
|
|
3025
3025
|
* Padding Start
|
|
3026
3026
|
* @see https://tailwindcss.com/docs/padding
|
|
3027
3027
|
*/
|
|
3028
3028
|
ps: [{
|
|
3029
|
-
ps: [
|
|
3029
|
+
ps: [h]
|
|
3030
3030
|
}],
|
|
3031
3031
|
/**
|
|
3032
3032
|
* Padding End
|
|
3033
3033
|
* @see https://tailwindcss.com/docs/padding
|
|
3034
3034
|
*/
|
|
3035
3035
|
pe: [{
|
|
3036
|
-
pe: [
|
|
3036
|
+
pe: [h]
|
|
3037
3037
|
}],
|
|
3038
3038
|
/**
|
|
3039
3039
|
* Padding Top
|
|
3040
3040
|
* @see https://tailwindcss.com/docs/padding
|
|
3041
3041
|
*/
|
|
3042
3042
|
pt: [{
|
|
3043
|
-
pt: [
|
|
3043
|
+
pt: [h]
|
|
3044
3044
|
}],
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Padding Right
|
|
3047
3047
|
* @see https://tailwindcss.com/docs/padding
|
|
3048
3048
|
*/
|
|
3049
3049
|
pr: [{
|
|
3050
|
-
pr: [
|
|
3050
|
+
pr: [h]
|
|
3051
3051
|
}],
|
|
3052
3052
|
/**
|
|
3053
3053
|
* Padding Bottom
|
|
3054
3054
|
* @see https://tailwindcss.com/docs/padding
|
|
3055
3055
|
*/
|
|
3056
3056
|
pb: [{
|
|
3057
|
-
pb: [
|
|
3057
|
+
pb: [h]
|
|
3058
3058
|
}],
|
|
3059
3059
|
/**
|
|
3060
3060
|
* Padding Left
|
|
3061
3061
|
* @see https://tailwindcss.com/docs/padding
|
|
3062
3062
|
*/
|
|
3063
3063
|
pl: [{
|
|
3064
|
-
pl: [
|
|
3064
|
+
pl: [h]
|
|
3065
3065
|
}],
|
|
3066
3066
|
/**
|
|
3067
3067
|
* Margin
|
|
3068
3068
|
* @see https://tailwindcss.com/docs/margin
|
|
3069
3069
|
*/
|
|
3070
3070
|
m: [{
|
|
3071
|
-
m: [
|
|
3071
|
+
m: [w]
|
|
3072
3072
|
}],
|
|
3073
3073
|
/**
|
|
3074
3074
|
* Margin X
|
|
3075
3075
|
* @see https://tailwindcss.com/docs/margin
|
|
3076
3076
|
*/
|
|
3077
3077
|
mx: [{
|
|
3078
|
-
mx: [
|
|
3078
|
+
mx: [w]
|
|
3079
3079
|
}],
|
|
3080
3080
|
/**
|
|
3081
3081
|
* Margin Y
|
|
3082
3082
|
* @see https://tailwindcss.com/docs/margin
|
|
3083
3083
|
*/
|
|
3084
3084
|
my: [{
|
|
3085
|
-
my: [
|
|
3085
|
+
my: [w]
|
|
3086
3086
|
}],
|
|
3087
3087
|
/**
|
|
3088
3088
|
* Margin Start
|
|
3089
3089
|
* @see https://tailwindcss.com/docs/margin
|
|
3090
3090
|
*/
|
|
3091
3091
|
ms: [{
|
|
3092
|
-
ms: [
|
|
3092
|
+
ms: [w]
|
|
3093
3093
|
}],
|
|
3094
3094
|
/**
|
|
3095
3095
|
* Margin End
|
|
3096
3096
|
* @see https://tailwindcss.com/docs/margin
|
|
3097
3097
|
*/
|
|
3098
3098
|
me: [{
|
|
3099
|
-
me: [
|
|
3099
|
+
me: [w]
|
|
3100
3100
|
}],
|
|
3101
3101
|
/**
|
|
3102
3102
|
* Margin Top
|
|
3103
3103
|
* @see https://tailwindcss.com/docs/margin
|
|
3104
3104
|
*/
|
|
3105
3105
|
mt: [{
|
|
3106
|
-
mt: [
|
|
3106
|
+
mt: [w]
|
|
3107
3107
|
}],
|
|
3108
3108
|
/**
|
|
3109
3109
|
* Margin Right
|
|
3110
3110
|
* @see https://tailwindcss.com/docs/margin
|
|
3111
3111
|
*/
|
|
3112
3112
|
mr: [{
|
|
3113
|
-
mr: [
|
|
3113
|
+
mr: [w]
|
|
3114
3114
|
}],
|
|
3115
3115
|
/**
|
|
3116
3116
|
* Margin Bottom
|
|
3117
3117
|
* @see https://tailwindcss.com/docs/margin
|
|
3118
3118
|
*/
|
|
3119
3119
|
mb: [{
|
|
3120
|
-
mb: [
|
|
3120
|
+
mb: [w]
|
|
3121
3121
|
}],
|
|
3122
3122
|
/**
|
|
3123
3123
|
* Margin Left
|
|
3124
3124
|
* @see https://tailwindcss.com/docs/margin
|
|
3125
3125
|
*/
|
|
3126
3126
|
ml: [{
|
|
3127
|
-
ml: [
|
|
3127
|
+
ml: [w]
|
|
3128
3128
|
}],
|
|
3129
3129
|
/**
|
|
3130
3130
|
* Space Between X
|
|
3131
3131
|
* @see https://tailwindcss.com/docs/space
|
|
3132
3132
|
*/
|
|
3133
3133
|
"space-x": [{
|
|
3134
|
-
"space-x": [
|
|
3134
|
+
"space-x": [M]
|
|
3135
3135
|
}],
|
|
3136
3136
|
/**
|
|
3137
3137
|
* Space Between X Reverse
|
|
@@ -3143,7 +3143,7 @@ const O = (e) => {
|
|
|
3143
3143
|
* @see https://tailwindcss.com/docs/space
|
|
3144
3144
|
*/
|
|
3145
3145
|
"space-y": [{
|
|
3146
|
-
"space-y": [
|
|
3146
|
+
"space-y": [M]
|
|
3147
3147
|
}],
|
|
3148
3148
|
/**
|
|
3149
3149
|
* Space Between Y Reverse
|
|
@@ -3156,21 +3156,21 @@ const O = (e) => {
|
|
|
3156
3156
|
* @see https://tailwindcss.com/docs/width
|
|
3157
3157
|
*/
|
|
3158
3158
|
w: [{
|
|
3159
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
3159
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", R, t]
|
|
3160
3160
|
}],
|
|
3161
3161
|
/**
|
|
3162
3162
|
* Min-Width
|
|
3163
3163
|
* @see https://tailwindcss.com/docs/min-width
|
|
3164
3164
|
*/
|
|
3165
3165
|
"min-w": [{
|
|
3166
|
-
"min-w": [
|
|
3166
|
+
"min-w": [R, t, "min", "max", "fit"]
|
|
3167
3167
|
}],
|
|
3168
3168
|
/**
|
|
3169
3169
|
* Max-Width
|
|
3170
3170
|
* @see https://tailwindcss.com/docs/max-width
|
|
3171
3171
|
*/
|
|
3172
3172
|
"max-w": [{
|
|
3173
|
-
"max-w": [
|
|
3173
|
+
"max-w": [R, t, "none", "full", "min", "max", "fit", "prose", {
|
|
3174
3174
|
screen: [ie]
|
|
3175
3175
|
}, ie]
|
|
3176
3176
|
}],
|
|
@@ -3179,28 +3179,28 @@ const O = (e) => {
|
|
|
3179
3179
|
* @see https://tailwindcss.com/docs/height
|
|
3180
3180
|
*/
|
|
3181
3181
|
h: [{
|
|
3182
|
-
h: [
|
|
3182
|
+
h: [R, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
3183
3183
|
}],
|
|
3184
3184
|
/**
|
|
3185
3185
|
* Min-Height
|
|
3186
3186
|
* @see https://tailwindcss.com/docs/min-height
|
|
3187
3187
|
*/
|
|
3188
3188
|
"min-h": [{
|
|
3189
|
-
"min-h": [
|
|
3189
|
+
"min-h": [R, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
3190
3190
|
}],
|
|
3191
3191
|
/**
|
|
3192
3192
|
* Max-Height
|
|
3193
3193
|
* @see https://tailwindcss.com/docs/max-height
|
|
3194
3194
|
*/
|
|
3195
3195
|
"max-h": [{
|
|
3196
|
-
"max-h": [
|
|
3196
|
+
"max-h": [R, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
3197
3197
|
}],
|
|
3198
3198
|
/**
|
|
3199
3199
|
* Size
|
|
3200
3200
|
* @see https://tailwindcss.com/docs/size
|
|
3201
3201
|
*/
|
|
3202
3202
|
size: [{
|
|
3203
|
-
size: [
|
|
3203
|
+
size: [R, t, "auto", "min", "max", "fit"]
|
|
3204
3204
|
}],
|
|
3205
3205
|
// Typography
|
|
3206
3206
|
/**
|
|
@@ -3269,7 +3269,7 @@ const O = (e) => {
|
|
|
3269
3269
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
3270
3270
|
*/
|
|
3271
3271
|
tracking: [{
|
|
3272
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
3272
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", R]
|
|
3273
3273
|
}],
|
|
3274
3274
|
/**
|
|
3275
3275
|
* Line Clamp
|
|
@@ -3283,21 +3283,21 @@ const O = (e) => {
|
|
|
3283
3283
|
* @see https://tailwindcss.com/docs/line-height
|
|
3284
3284
|
*/
|
|
3285
3285
|
leading: [{
|
|
3286
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ee,
|
|
3286
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ee, R]
|
|
3287
3287
|
}],
|
|
3288
3288
|
/**
|
|
3289
3289
|
* List Style Image
|
|
3290
3290
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
3291
3291
|
*/
|
|
3292
3292
|
"list-image": [{
|
|
3293
|
-
"list-image": ["none",
|
|
3293
|
+
"list-image": ["none", R]
|
|
3294
3294
|
}],
|
|
3295
3295
|
/**
|
|
3296
3296
|
* List Style Type
|
|
3297
3297
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
3298
3298
|
*/
|
|
3299
3299
|
"list-style-type": [{
|
|
3300
|
-
list: ["none", "disc", "decimal",
|
|
3300
|
+
list: ["none", "disc", "decimal", R]
|
|
3301
3301
|
}],
|
|
3302
3302
|
/**
|
|
3303
3303
|
* List Style Position
|
|
@@ -3319,7 +3319,7 @@ const O = (e) => {
|
|
|
3319
3319
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
3320
3320
|
*/
|
|
3321
3321
|
"placeholder-opacity": [{
|
|
3322
|
-
"placeholder-opacity": [
|
|
3322
|
+
"placeholder-opacity": [k]
|
|
3323
3323
|
}],
|
|
3324
3324
|
/**
|
|
3325
3325
|
* Text Alignment
|
|
@@ -3340,7 +3340,7 @@ const O = (e) => {
|
|
|
3340
3340
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
3341
3341
|
*/
|
|
3342
3342
|
"text-opacity": [{
|
|
3343
|
-
"text-opacity": [
|
|
3343
|
+
"text-opacity": [k]
|
|
3344
3344
|
}],
|
|
3345
3345
|
/**
|
|
3346
3346
|
* Text Decoration
|
|
@@ -3366,7 +3366,7 @@ const O = (e) => {
|
|
|
3366
3366
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3367
3367
|
*/
|
|
3368
3368
|
"underline-offset": [{
|
|
3369
|
-
"underline-offset": ["auto", ee,
|
|
3369
|
+
"underline-offset": ["auto", ee, R]
|
|
3370
3370
|
}],
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Text Decoration Color
|
|
@@ -3397,14 +3397,14 @@ const O = (e) => {
|
|
|
3397
3397
|
* @see https://tailwindcss.com/docs/text-indent
|
|
3398
3398
|
*/
|
|
3399
3399
|
indent: [{
|
|
3400
|
-
indent:
|
|
3400
|
+
indent: $()
|
|
3401
3401
|
}],
|
|
3402
3402
|
/**
|
|
3403
3403
|
* Vertical Alignment
|
|
3404
3404
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
3405
3405
|
*/
|
|
3406
3406
|
"vertical-align": [{
|
|
3407
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
3407
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", R]
|
|
3408
3408
|
}],
|
|
3409
3409
|
/**
|
|
3410
3410
|
* Whitespace
|
|
@@ -3432,7 +3432,7 @@ const O = (e) => {
|
|
|
3432
3432
|
* @see https://tailwindcss.com/docs/content
|
|
3433
3433
|
*/
|
|
3434
3434
|
content: [{
|
|
3435
|
-
content: ["none",
|
|
3435
|
+
content: ["none", R]
|
|
3436
3436
|
}],
|
|
3437
3437
|
// Backgrounds
|
|
3438
3438
|
/**
|
|
@@ -3455,7 +3455,7 @@ const O = (e) => {
|
|
|
3455
3455
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
3456
3456
|
*/
|
|
3457
3457
|
"bg-opacity": [{
|
|
3458
|
-
"bg-opacity": [
|
|
3458
|
+
"bg-opacity": [k]
|
|
3459
3459
|
}],
|
|
3460
3460
|
/**
|
|
3461
3461
|
* Background Origin
|
|
@@ -3508,21 +3508,21 @@ const O = (e) => {
|
|
|
3508
3508
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3509
3509
|
*/
|
|
3510
3510
|
"gradient-from-pos": [{
|
|
3511
|
-
from: [
|
|
3511
|
+
from: [S]
|
|
3512
3512
|
}],
|
|
3513
3513
|
/**
|
|
3514
3514
|
* Gradient Color Stops Via Position
|
|
3515
3515
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3516
3516
|
*/
|
|
3517
3517
|
"gradient-via-pos": [{
|
|
3518
|
-
via: [
|
|
3518
|
+
via: [S]
|
|
3519
3519
|
}],
|
|
3520
3520
|
/**
|
|
3521
3521
|
* Gradient Color Stops To Position
|
|
3522
3522
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3523
3523
|
*/
|
|
3524
3524
|
"gradient-to-pos": [{
|
|
3525
|
-
to: [
|
|
3525
|
+
to: [S]
|
|
3526
3526
|
}],
|
|
3527
3527
|
/**
|
|
3528
3528
|
* Gradient Color Stops From
|
|
@@ -3719,7 +3719,7 @@ const O = (e) => {
|
|
|
3719
3719
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
3720
3720
|
*/
|
|
3721
3721
|
"border-opacity": [{
|
|
3722
|
-
"border-opacity": [
|
|
3722
|
+
"border-opacity": [k]
|
|
3723
3723
|
}],
|
|
3724
3724
|
/**
|
|
3725
3725
|
* Border Style
|
|
@@ -3757,7 +3757,7 @@ const O = (e) => {
|
|
|
3757
3757
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
3758
3758
|
*/
|
|
3759
3759
|
"divide-opacity": [{
|
|
3760
|
-
"divide-opacity": [
|
|
3760
|
+
"divide-opacity": [k]
|
|
3761
3761
|
}],
|
|
3762
3762
|
/**
|
|
3763
3763
|
* Divide Style
|
|
@@ -3848,7 +3848,7 @@ const O = (e) => {
|
|
|
3848
3848
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3849
3849
|
*/
|
|
3850
3850
|
"outline-offset": [{
|
|
3851
|
-
"outline-offset": [ee,
|
|
3851
|
+
"outline-offset": [ee, R]
|
|
3852
3852
|
}],
|
|
3853
3853
|
/**
|
|
3854
3854
|
* Outline Width
|
|
@@ -3888,7 +3888,7 @@ const O = (e) => {
|
|
|
3888
3888
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
3889
3889
|
*/
|
|
3890
3890
|
"ring-opacity": [{
|
|
3891
|
-
"ring-opacity": [
|
|
3891
|
+
"ring-opacity": [k]
|
|
3892
3892
|
}],
|
|
3893
3893
|
/**
|
|
3894
3894
|
* Ring Offset Width
|
|
@@ -3924,7 +3924,7 @@ const O = (e) => {
|
|
|
3924
3924
|
* @see https://tailwindcss.com/docs/opacity
|
|
3925
3925
|
*/
|
|
3926
3926
|
opacity: [{
|
|
3927
|
-
opacity: [
|
|
3927
|
+
opacity: [k]
|
|
3928
3928
|
}],
|
|
3929
3929
|
/**
|
|
3930
3930
|
* Mix Blend Mode
|
|
@@ -3975,42 +3975,42 @@ const O = (e) => {
|
|
|
3975
3975
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3976
3976
|
*/
|
|
3977
3977
|
"drop-shadow": [{
|
|
3978
|
-
"drop-shadow": ["", "none", ie,
|
|
3978
|
+
"drop-shadow": ["", "none", ie, R]
|
|
3979
3979
|
}],
|
|
3980
3980
|
/**
|
|
3981
3981
|
* Grayscale
|
|
3982
3982
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3983
3983
|
*/
|
|
3984
3984
|
grayscale: [{
|
|
3985
|
-
grayscale: [
|
|
3985
|
+
grayscale: [u]
|
|
3986
3986
|
}],
|
|
3987
3987
|
/**
|
|
3988
3988
|
* Hue Rotate
|
|
3989
3989
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3990
3990
|
*/
|
|
3991
3991
|
"hue-rotate": [{
|
|
3992
|
-
"hue-rotate": [
|
|
3992
|
+
"hue-rotate": [f]
|
|
3993
3993
|
}],
|
|
3994
3994
|
/**
|
|
3995
3995
|
* Invert
|
|
3996
3996
|
* @see https://tailwindcss.com/docs/invert
|
|
3997
3997
|
*/
|
|
3998
3998
|
invert: [{
|
|
3999
|
-
invert: [
|
|
3999
|
+
invert: [g]
|
|
4000
4000
|
}],
|
|
4001
4001
|
/**
|
|
4002
4002
|
* Saturate
|
|
4003
4003
|
* @see https://tailwindcss.com/docs/saturate
|
|
4004
4004
|
*/
|
|
4005
4005
|
saturate: [{
|
|
4006
|
-
saturate: [
|
|
4006
|
+
saturate: [p]
|
|
4007
4007
|
}],
|
|
4008
4008
|
/**
|
|
4009
4009
|
* Sepia
|
|
4010
4010
|
* @see https://tailwindcss.com/docs/sepia
|
|
4011
4011
|
*/
|
|
4012
4012
|
sepia: [{
|
|
4013
|
-
sepia: [
|
|
4013
|
+
sepia: [x]
|
|
4014
4014
|
}],
|
|
4015
4015
|
/**
|
|
4016
4016
|
* Backdrop Filter
|
|
@@ -4046,42 +4046,42 @@ const O = (e) => {
|
|
|
4046
4046
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
4047
4047
|
*/
|
|
4048
4048
|
"backdrop-grayscale": [{
|
|
4049
|
-
"backdrop-grayscale": [
|
|
4049
|
+
"backdrop-grayscale": [u]
|
|
4050
4050
|
}],
|
|
4051
4051
|
/**
|
|
4052
4052
|
* Backdrop Hue Rotate
|
|
4053
4053
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
4054
4054
|
*/
|
|
4055
4055
|
"backdrop-hue-rotate": [{
|
|
4056
|
-
"backdrop-hue-rotate": [
|
|
4056
|
+
"backdrop-hue-rotate": [f]
|
|
4057
4057
|
}],
|
|
4058
4058
|
/**
|
|
4059
4059
|
* Backdrop Invert
|
|
4060
4060
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
4061
4061
|
*/
|
|
4062
4062
|
"backdrop-invert": [{
|
|
4063
|
-
"backdrop-invert": [
|
|
4063
|
+
"backdrop-invert": [g]
|
|
4064
4064
|
}],
|
|
4065
4065
|
/**
|
|
4066
4066
|
* Backdrop Opacity
|
|
4067
4067
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
4068
4068
|
*/
|
|
4069
4069
|
"backdrop-opacity": [{
|
|
4070
|
-
"backdrop-opacity": [
|
|
4070
|
+
"backdrop-opacity": [k]
|
|
4071
4071
|
}],
|
|
4072
4072
|
/**
|
|
4073
4073
|
* Backdrop Saturate
|
|
4074
4074
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
4075
4075
|
*/
|
|
4076
4076
|
"backdrop-saturate": [{
|
|
4077
|
-
"backdrop-saturate": [
|
|
4077
|
+
"backdrop-saturate": [p]
|
|
4078
4078
|
}],
|
|
4079
4079
|
/**
|
|
4080
4080
|
* Backdrop Sepia
|
|
4081
4081
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
4082
4082
|
*/
|
|
4083
4083
|
"backdrop-sepia": [{
|
|
4084
|
-
"backdrop-sepia": [
|
|
4084
|
+
"backdrop-sepia": [x]
|
|
4085
4085
|
}],
|
|
4086
4086
|
// Tables
|
|
4087
4087
|
/**
|
|
@@ -4132,7 +4132,7 @@ const O = (e) => {
|
|
|
4132
4132
|
* @see https://tailwindcss.com/docs/transition-property
|
|
4133
4133
|
*/
|
|
4134
4134
|
transition: [{
|
|
4135
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
4135
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", R]
|
|
4136
4136
|
}],
|
|
4137
4137
|
/**
|
|
4138
4138
|
* Transition Duration
|
|
@@ -4146,7 +4146,7 @@ const O = (e) => {
|
|
|
4146
4146
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
4147
4147
|
*/
|
|
4148
4148
|
ease: [{
|
|
4149
|
-
ease: ["linear", "in", "out", "in-out",
|
|
4149
|
+
ease: ["linear", "in", "out", "in-out", R]
|
|
4150
4150
|
}],
|
|
4151
4151
|
/**
|
|
4152
4152
|
* Transition Delay
|
|
@@ -4160,7 +4160,7 @@ const O = (e) => {
|
|
|
4160
4160
|
* @see https://tailwindcss.com/docs/animation
|
|
4161
4161
|
*/
|
|
4162
4162
|
animate: [{
|
|
4163
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
4163
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", R]
|
|
4164
4164
|
}],
|
|
4165
4165
|
// Transforms
|
|
4166
4166
|
/**
|
|
@@ -4175,63 +4175,63 @@ const O = (e) => {
|
|
|
4175
4175
|
* @see https://tailwindcss.com/docs/scale
|
|
4176
4176
|
*/
|
|
4177
4177
|
scale: [{
|
|
4178
|
-
scale: [
|
|
4178
|
+
scale: [m]
|
|
4179
4179
|
}],
|
|
4180
4180
|
/**
|
|
4181
4181
|
* Scale X
|
|
4182
4182
|
* @see https://tailwindcss.com/docs/scale
|
|
4183
4183
|
*/
|
|
4184
4184
|
"scale-x": [{
|
|
4185
|
-
"scale-x": [
|
|
4185
|
+
"scale-x": [m]
|
|
4186
4186
|
}],
|
|
4187
4187
|
/**
|
|
4188
4188
|
* Scale Y
|
|
4189
4189
|
* @see https://tailwindcss.com/docs/scale
|
|
4190
4190
|
*/
|
|
4191
4191
|
"scale-y": [{
|
|
4192
|
-
"scale-y": [
|
|
4192
|
+
"scale-y": [m]
|
|
4193
4193
|
}],
|
|
4194
4194
|
/**
|
|
4195
4195
|
* Rotate
|
|
4196
4196
|
* @see https://tailwindcss.com/docs/rotate
|
|
4197
4197
|
*/
|
|
4198
4198
|
rotate: [{
|
|
4199
|
-
rotate: [xe,
|
|
4199
|
+
rotate: [xe, R]
|
|
4200
4200
|
}],
|
|
4201
4201
|
/**
|
|
4202
4202
|
* Translate X
|
|
4203
4203
|
* @see https://tailwindcss.com/docs/translate
|
|
4204
4204
|
*/
|
|
4205
4205
|
"translate-x": [{
|
|
4206
|
-
"translate-x": [
|
|
4206
|
+
"translate-x": [P]
|
|
4207
4207
|
}],
|
|
4208
4208
|
/**
|
|
4209
4209
|
* Translate Y
|
|
4210
4210
|
* @see https://tailwindcss.com/docs/translate
|
|
4211
4211
|
*/
|
|
4212
4212
|
"translate-y": [{
|
|
4213
|
-
"translate-y": [
|
|
4213
|
+
"translate-y": [P]
|
|
4214
4214
|
}],
|
|
4215
4215
|
/**
|
|
4216
4216
|
* Skew X
|
|
4217
4217
|
* @see https://tailwindcss.com/docs/skew
|
|
4218
4218
|
*/
|
|
4219
4219
|
"skew-x": [{
|
|
4220
|
-
"skew-x": [
|
|
4220
|
+
"skew-x": [y]
|
|
4221
4221
|
}],
|
|
4222
4222
|
/**
|
|
4223
4223
|
* Skew Y
|
|
4224
4224
|
* @see https://tailwindcss.com/docs/skew
|
|
4225
4225
|
*/
|
|
4226
4226
|
"skew-y": [{
|
|
4227
|
-
"skew-y": [
|
|
4227
|
+
"skew-y": [y]
|
|
4228
4228
|
}],
|
|
4229
4229
|
/**
|
|
4230
4230
|
* Transform Origin
|
|
4231
4231
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
4232
4232
|
*/
|
|
4233
4233
|
"transform-origin": [{
|
|
4234
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
4234
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", R]
|
|
4235
4235
|
}],
|
|
4236
4236
|
// Interactivity
|
|
4237
4237
|
/**
|
|
@@ -4253,7 +4253,7 @@ const O = (e) => {
|
|
|
4253
4253
|
* @see https://tailwindcss.com/docs/cursor
|
|
4254
4254
|
*/
|
|
4255
4255
|
cursor: [{
|
|
4256
|
-
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",
|
|
4256
|
+
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", R]
|
|
4257
4257
|
}],
|
|
4258
4258
|
/**
|
|
4259
4259
|
* Caret Color
|
|
@@ -4288,126 +4288,126 @@ const O = (e) => {
|
|
|
4288
4288
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4289
4289
|
*/
|
|
4290
4290
|
"scroll-m": [{
|
|
4291
|
-
"scroll-m":
|
|
4291
|
+
"scroll-m": $()
|
|
4292
4292
|
}],
|
|
4293
4293
|
/**
|
|
4294
4294
|
* Scroll Margin X
|
|
4295
4295
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4296
4296
|
*/
|
|
4297
4297
|
"scroll-mx": [{
|
|
4298
|
-
"scroll-mx":
|
|
4298
|
+
"scroll-mx": $()
|
|
4299
4299
|
}],
|
|
4300
4300
|
/**
|
|
4301
4301
|
* Scroll Margin Y
|
|
4302
4302
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4303
4303
|
*/
|
|
4304
4304
|
"scroll-my": [{
|
|
4305
|
-
"scroll-my":
|
|
4305
|
+
"scroll-my": $()
|
|
4306
4306
|
}],
|
|
4307
4307
|
/**
|
|
4308
4308
|
* Scroll Margin Start
|
|
4309
4309
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4310
4310
|
*/
|
|
4311
4311
|
"scroll-ms": [{
|
|
4312
|
-
"scroll-ms":
|
|
4312
|
+
"scroll-ms": $()
|
|
4313
4313
|
}],
|
|
4314
4314
|
/**
|
|
4315
4315
|
* Scroll Margin End
|
|
4316
4316
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4317
4317
|
*/
|
|
4318
4318
|
"scroll-me": [{
|
|
4319
|
-
"scroll-me":
|
|
4319
|
+
"scroll-me": $()
|
|
4320
4320
|
}],
|
|
4321
4321
|
/**
|
|
4322
4322
|
* Scroll Margin Top
|
|
4323
4323
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4324
4324
|
*/
|
|
4325
4325
|
"scroll-mt": [{
|
|
4326
|
-
"scroll-mt":
|
|
4326
|
+
"scroll-mt": $()
|
|
4327
4327
|
}],
|
|
4328
4328
|
/**
|
|
4329
4329
|
* Scroll Margin Right
|
|
4330
4330
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4331
4331
|
*/
|
|
4332
4332
|
"scroll-mr": [{
|
|
4333
|
-
"scroll-mr":
|
|
4333
|
+
"scroll-mr": $()
|
|
4334
4334
|
}],
|
|
4335
4335
|
/**
|
|
4336
4336
|
* Scroll Margin Bottom
|
|
4337
4337
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4338
4338
|
*/
|
|
4339
4339
|
"scroll-mb": [{
|
|
4340
|
-
"scroll-mb":
|
|
4340
|
+
"scroll-mb": $()
|
|
4341
4341
|
}],
|
|
4342
4342
|
/**
|
|
4343
4343
|
* Scroll Margin Left
|
|
4344
4344
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4345
4345
|
*/
|
|
4346
4346
|
"scroll-ml": [{
|
|
4347
|
-
"scroll-ml":
|
|
4347
|
+
"scroll-ml": $()
|
|
4348
4348
|
}],
|
|
4349
4349
|
/**
|
|
4350
4350
|
* Scroll Padding
|
|
4351
4351
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4352
4352
|
*/
|
|
4353
4353
|
"scroll-p": [{
|
|
4354
|
-
"scroll-p":
|
|
4354
|
+
"scroll-p": $()
|
|
4355
4355
|
}],
|
|
4356
4356
|
/**
|
|
4357
4357
|
* Scroll Padding X
|
|
4358
4358
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4359
4359
|
*/
|
|
4360
4360
|
"scroll-px": [{
|
|
4361
|
-
"scroll-px":
|
|
4361
|
+
"scroll-px": $()
|
|
4362
4362
|
}],
|
|
4363
4363
|
/**
|
|
4364
4364
|
* Scroll Padding Y
|
|
4365
4365
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4366
4366
|
*/
|
|
4367
4367
|
"scroll-py": [{
|
|
4368
|
-
"scroll-py":
|
|
4368
|
+
"scroll-py": $()
|
|
4369
4369
|
}],
|
|
4370
4370
|
/**
|
|
4371
4371
|
* Scroll Padding Start
|
|
4372
4372
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4373
4373
|
*/
|
|
4374
4374
|
"scroll-ps": [{
|
|
4375
|
-
"scroll-ps":
|
|
4375
|
+
"scroll-ps": $()
|
|
4376
4376
|
}],
|
|
4377
4377
|
/**
|
|
4378
4378
|
* Scroll Padding End
|
|
4379
4379
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4380
4380
|
*/
|
|
4381
4381
|
"scroll-pe": [{
|
|
4382
|
-
"scroll-pe":
|
|
4382
|
+
"scroll-pe": $()
|
|
4383
4383
|
}],
|
|
4384
4384
|
/**
|
|
4385
4385
|
* Scroll Padding Top
|
|
4386
4386
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4387
4387
|
*/
|
|
4388
4388
|
"scroll-pt": [{
|
|
4389
|
-
"scroll-pt":
|
|
4389
|
+
"scroll-pt": $()
|
|
4390
4390
|
}],
|
|
4391
4391
|
/**
|
|
4392
4392
|
* Scroll Padding Right
|
|
4393
4393
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4394
4394
|
*/
|
|
4395
4395
|
"scroll-pr": [{
|
|
4396
|
-
"scroll-pr":
|
|
4396
|
+
"scroll-pr": $()
|
|
4397
4397
|
}],
|
|
4398
4398
|
/**
|
|
4399
4399
|
* Scroll Padding Bottom
|
|
4400
4400
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4401
4401
|
*/
|
|
4402
4402
|
"scroll-pb": [{
|
|
4403
|
-
"scroll-pb":
|
|
4403
|
+
"scroll-pb": $()
|
|
4404
4404
|
}],
|
|
4405
4405
|
/**
|
|
4406
4406
|
* Scroll Padding Left
|
|
4407
4407
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4408
4408
|
*/
|
|
4409
4409
|
"scroll-pl": [{
|
|
4410
|
-
"scroll-pl":
|
|
4410
|
+
"scroll-pl": $()
|
|
4411
4411
|
}],
|
|
4412
4412
|
/**
|
|
4413
4413
|
* Scroll Snap Align
|
|
@@ -4475,7 +4475,7 @@ const O = (e) => {
|
|
|
4475
4475
|
* @see https://tailwindcss.com/docs/will-change
|
|
4476
4476
|
*/
|
|
4477
4477
|
"will-change": [{
|
|
4478
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
4478
|
+
"will-change": ["auto", "scroll", "contents", "transform", R]
|
|
4479
4479
|
}],
|
|
4480
4480
|
// SVG
|
|
4481
4481
|
/**
|
|
@@ -4570,40 +4570,40 @@ function Wn(...e) {
|
|
|
4570
4570
|
return Dn(Rt(e));
|
|
4571
4571
|
}
|
|
4572
4572
|
function yr({ autoWidth: e = !0, className: t, style: n }) {
|
|
4573
|
-
const [r, o] =
|
|
4573
|
+
const [r, o] = E(() => ne.getActiveAppId()), [i, a] = E(() => Q.getRunningApps()), { isMobile: c } = it();
|
|
4574
4574
|
D(() => {
|
|
4575
|
-
const
|
|
4576
|
-
o(
|
|
4575
|
+
const w = ne.subscribe("activeAppId", (k) => {
|
|
4576
|
+
o(k);
|
|
4577
4577
|
});
|
|
4578
4578
|
return () => {
|
|
4579
|
-
|
|
4579
|
+
w();
|
|
4580
4580
|
};
|
|
4581
4581
|
}, []), D(() => Q.subscribe(() => {
|
|
4582
4582
|
a(Q.getRunningApps());
|
|
4583
4583
|
}), []), D(() => {
|
|
4584
4584
|
if (!new URLSearchParams(window.location.search).has("app")) {
|
|
4585
|
-
const
|
|
4586
|
-
|
|
4585
|
+
const h = ne.getActiveAppId();
|
|
4586
|
+
h && !Q.isRunning(h) && Q.launchApp(h);
|
|
4587
4587
|
}
|
|
4588
4588
|
}, []);
|
|
4589
|
-
const l = (
|
|
4590
|
-
Q.closeApp(
|
|
4591
|
-
},
|
|
4589
|
+
const l = (w) => {
|
|
4590
|
+
Q.closeApp(w);
|
|
4591
|
+
}, u = r ? me.get(r) : null, g = (u == null ? void 0 : u.width) ?? 400, d = r !== null, v = { ...{
|
|
4592
4592
|
overflow: "hidden",
|
|
4593
|
-
display:
|
|
4593
|
+
display: d ? "flex" : "none",
|
|
4594
4594
|
flexDirection: "column",
|
|
4595
4595
|
flexShrink: 0,
|
|
4596
4596
|
// Only set width if autoWidth is enabled
|
|
4597
|
-
...e &&
|
|
4597
|
+
...e && d ? { width: c ? "100%" : g } : {}
|
|
4598
4598
|
}, ...n };
|
|
4599
|
-
return /* @__PURE__ */ s("div", { className: Wn("nc-app-panel", t), style: v, children: i.map((
|
|
4599
|
+
return /* @__PURE__ */ s("div", { className: Wn("nc-app-panel", t), style: v, children: i.map((w) => /* @__PURE__ */ s(
|
|
4600
4600
|
rt,
|
|
4601
4601
|
{
|
|
4602
|
-
appId:
|
|
4603
|
-
isActive: r ===
|
|
4604
|
-
onClose: () => l(
|
|
4602
|
+
appId: w.appId,
|
|
4603
|
+
isActive: r === w.appId,
|
|
4604
|
+
onClose: () => l(w.appId)
|
|
4605
4605
|
},
|
|
4606
|
-
|
|
4606
|
+
w.appId
|
|
4607
4607
|
)) });
|
|
4608
4608
|
}
|
|
4609
4609
|
function xr({
|
|
@@ -4613,64 +4613,64 @@ function xr({
|
|
|
4613
4613
|
side: r = "left",
|
|
4614
4614
|
getBadge: o
|
|
4615
4615
|
}) {
|
|
4616
|
-
const { t: i } = re(), { isMobile: a } = it(), [c, l] =
|
|
4616
|
+
const { t: i } = re(), { isMobile: a } = it(), [c, l] = E(() => ne.getActiveAppId()), [u, f] = E(() => Q.getRunningApps());
|
|
4617
4617
|
D(() => {
|
|
4618
|
-
const
|
|
4619
|
-
l(
|
|
4618
|
+
const p = ne.subscribe("activeAppId", (m) => {
|
|
4619
|
+
l(m);
|
|
4620
4620
|
});
|
|
4621
4621
|
return () => {
|
|
4622
|
-
|
|
4622
|
+
p();
|
|
4623
4623
|
};
|
|
4624
4624
|
}, []), D(() => Q.subscribe(() => {
|
|
4625
|
-
|
|
4625
|
+
f(Q.getRunningApps());
|
|
4626
4626
|
}), []);
|
|
4627
|
-
const
|
|
4628
|
-
c ===
|
|
4629
|
-
},
|
|
4630
|
-
const
|
|
4631
|
-
return
|
|
4627
|
+
const g = (p) => {
|
|
4628
|
+
c === p ? Q.setActiveApp(null) : Q.launchApp(p);
|
|
4629
|
+
}, d = e.map((p) => me.get(p)).filter((p) => !!p), b = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: me.get(p.appId) })).filter((p) => !!p.def), S = (p) => u.some((m) => m.appId === p), v = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, w = (p) => typeof p == "number" && p > 99 ? "99+" : p, k = (p, m) => {
|
|
4630
|
+
const x = o == null ? void 0 : o(p, m);
|
|
4631
|
+
return x ? /* @__PURE__ */ s(
|
|
4632
4632
|
"span",
|
|
4633
4633
|
{
|
|
4634
|
-
className: `nc-app-taskbar-badge nc-${
|
|
4635
|
-
"aria-label":
|
|
4636
|
-
children:
|
|
4634
|
+
className: `nc-app-taskbar-badge nc-${x.tone ?? "default"}`,
|
|
4635
|
+
"aria-label": x.ariaLabel,
|
|
4636
|
+
children: w(x.content)
|
|
4637
4637
|
}
|
|
4638
4638
|
) : null;
|
|
4639
|
-
},
|
|
4640
|
-
return /* @__PURE__ */
|
|
4641
|
-
|
|
4642
|
-
const
|
|
4643
|
-
return /* @__PURE__ */
|
|
4639
|
+
}, h = a ? 24 : 28;
|
|
4640
|
+
return /* @__PURE__ */ N("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
|
|
4641
|
+
d.map((p) => {
|
|
4642
|
+
const m = p.icon, x = c === p.id, y = S(p.id), M = { isActive: x, isRunning: y, isPinned: !0 };
|
|
4643
|
+
return /* @__PURE__ */ N(
|
|
4644
4644
|
"button",
|
|
4645
4645
|
{
|
|
4646
|
-
className: `nc-app-taskbar-button ${
|
|
4647
|
-
onClick: () =>
|
|
4648
|
-
title: v(
|
|
4646
|
+
className: `nc-app-taskbar-button ${x ? "nc-active" : ""} ${y ? "nc-running" : ""}`,
|
|
4647
|
+
onClick: () => g(p.id),
|
|
4648
|
+
title: v(p),
|
|
4649
4649
|
children: [
|
|
4650
|
-
/* @__PURE__ */ s(
|
|
4651
|
-
|
|
4652
|
-
n &&
|
|
4650
|
+
/* @__PURE__ */ s(m, { size: h }),
|
|
4651
|
+
k(p, M),
|
|
4652
|
+
n && y && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
|
|
4653
4653
|
]
|
|
4654
4654
|
},
|
|
4655
|
-
|
|
4655
|
+
p.id
|
|
4656
4656
|
);
|
|
4657
4657
|
}),
|
|
4658
4658
|
b.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
|
|
4659
|
-
b.map(({ running:
|
|
4660
|
-
const
|
|
4661
|
-
return /* @__PURE__ */
|
|
4659
|
+
b.map(({ running: p, def: m }) => {
|
|
4660
|
+
const x = m.icon, y = c === p.appId, M = { isActive: y, isRunning: !0, isPinned: !1 };
|
|
4661
|
+
return /* @__PURE__ */ N(
|
|
4662
4662
|
"button",
|
|
4663
4663
|
{
|
|
4664
|
-
className: `nc-app-taskbar-button ${
|
|
4665
|
-
onClick: () =>
|
|
4666
|
-
title: v(
|
|
4664
|
+
className: `nc-app-taskbar-button ${y ? "nc-active" : ""} nc-running`,
|
|
4665
|
+
onClick: () => g(p.appId),
|
|
4666
|
+
title: v(m),
|
|
4667
4667
|
children: [
|
|
4668
|
-
/* @__PURE__ */ s(
|
|
4669
|
-
|
|
4668
|
+
/* @__PURE__ */ s(x, { size: h }),
|
|
4669
|
+
k(m, M),
|
|
4670
4670
|
n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
|
|
4671
4671
|
]
|
|
4672
4672
|
},
|
|
4673
|
-
|
|
4673
|
+
p.appId
|
|
4674
4674
|
);
|
|
4675
4675
|
})
|
|
4676
4676
|
] });
|
|
@@ -4727,53 +4727,53 @@ function Ar() {
|
|
|
4727
4727
|
}
|
|
4728
4728
|
const We = ge(null);
|
|
4729
4729
|
function Sr({ rootView: e, children: t }) {
|
|
4730
|
-
const { t: n } = re(), r = tn(), [o, i] =
|
|
4731
|
-
c((
|
|
4732
|
-
const
|
|
4733
|
-
return
|
|
4730
|
+
const { t: n } = re(), r = tn(), [o, i] = E([e]), [a, c] = E([null]), l = G((m, x) => {
|
|
4731
|
+
c((y) => {
|
|
4732
|
+
const M = [...y];
|
|
4733
|
+
return M[m] = x, M;
|
|
4734
4734
|
});
|
|
4735
|
-
}, []),
|
|
4736
|
-
c((
|
|
4737
|
-
const
|
|
4738
|
-
return
|
|
4735
|
+
}, []), u = G((m) => {
|
|
4736
|
+
c((x) => {
|
|
4737
|
+
const y = [...x];
|
|
4738
|
+
return y[m] = null, y;
|
|
4739
4739
|
});
|
|
4740
|
-
}, []),
|
|
4741
|
-
i((
|
|
4742
|
-
}, []),
|
|
4743
|
-
i((
|
|
4744
|
-
}, []),
|
|
4740
|
+
}, []), f = G((m) => {
|
|
4741
|
+
i((x) => [...x, m]), c((x) => [...x, null]);
|
|
4742
|
+
}, []), g = G(() => {
|
|
4743
|
+
i((m) => m.length <= 1 ? m : m.slice(0, -1)), c((m) => m.slice(0, -1));
|
|
4744
|
+
}, []), d = G(() => {
|
|
4745
4745
|
i([e]), c([null]);
|
|
4746
|
-
}, [e]), b = o.length,
|
|
4746
|
+
}, [e]), b = o.length, S = b > 1, v = o.length - 1, w = o[o.length - 1], k = w != null && w.titleKey ? n(w.titleKey) : (w == null ? void 0 : w.title) ?? "";
|
|
4747
4747
|
D(() => {
|
|
4748
|
-
r.setTitle(
|
|
4749
|
-
}, [
|
|
4750
|
-
|
|
4751
|
-
}, [
|
|
4752
|
-
const
|
|
4753
|
-
|
|
4748
|
+
r.setTitle(k);
|
|
4749
|
+
}, [k, r]), D(() => {
|
|
4750
|
+
S ? r.setBackHandler(g) : r.clearBackHandler();
|
|
4751
|
+
}, [S, g, r]), D(() => {
|
|
4752
|
+
const m = a[a.length - 1];
|
|
4753
|
+
m ? r.setToolbar(m) : r.clearToolbar();
|
|
4754
4754
|
}, [a, r]);
|
|
4755
|
-
const
|
|
4756
|
-
push:
|
|
4757
|
-
pop:
|
|
4758
|
-
reset:
|
|
4755
|
+
const h = {
|
|
4756
|
+
push: f,
|
|
4757
|
+
pop: g,
|
|
4758
|
+
reset: d,
|
|
4759
4759
|
depth: b,
|
|
4760
|
-
canGoBack:
|
|
4761
|
-
currentTitle:
|
|
4762
|
-
},
|
|
4760
|
+
canGoBack: S,
|
|
4761
|
+
currentTitle: k
|
|
4762
|
+
}, p = {
|
|
4763
4763
|
stack: o,
|
|
4764
4764
|
toolbarStack: a,
|
|
4765
4765
|
updateToolbar: l,
|
|
4766
|
-
clearToolbarAt:
|
|
4766
|
+
clearToolbarAt: u,
|
|
4767
4767
|
topIndex: v
|
|
4768
4768
|
};
|
|
4769
|
-
return /* @__PURE__ */ s(De.Provider, { value:
|
|
4769
|
+
return /* @__PURE__ */ s(De.Provider, { value: h, children: /* @__PURE__ */ s(We.Provider, { value: p, children: t }) });
|
|
4770
4770
|
}
|
|
4771
4771
|
function Hn({ index: e, children: t }) {
|
|
4772
4772
|
const n = ce(We);
|
|
4773
4773
|
if (!n)
|
|
4774
4774
|
throw new Error("NavViewProvider must be used within NavStackProvider");
|
|
4775
|
-
const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = G((
|
|
4776
|
-
e === i && r(e,
|
|
4775
|
+
const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = G((u) => {
|
|
4776
|
+
e === i && r(e, u);
|
|
4777
4777
|
}, [e, i, r]), c = G(() => {
|
|
4778
4778
|
e === i && o(e);
|
|
4779
4779
|
}, [e, i, o]), l = {
|