@epam/ai-dial-ui-kit 0.3.0-rc.45 → 0.3.0-rc.46
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/dial-ui-kit.cjs.js +2 -2
- package/dist/dial-ui-kit.es.js +396 -393
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as E from "react";
|
|
|
5
5
|
import { createContext as xr, useState as G, useRef as le, useMemo as B, useContext as Dr, forwardRef as Sr, isValidElement as Ot, cloneElement as qe, useCallback as A, useEffect as ne, memo as Ln, useLayoutEffect as In, useId as Lr, Children as Tn } from "react";
|
|
6
6
|
import { IconInfoCircle as Ir, IconCircleCheck as On, IconAlertTriangle as En, IconAlertCircle as Nn, IconX as _e, IconMinus as kn, IconCheck as Tr, IconExclamationCircle as Et, IconClipboardX as Or, IconChevronsLeft as Rn, IconChevronsRight as Pn, IconGripVertical as Mn, IconFile as Vn, IconFileTypeZip as Hn, IconFileTypeXml as An, IconFileTypeXls as Fn, IconFileTypeVue as _n, IconFileTypeTxt as zn, IconFileTypeTsx as jn, IconFileTypeTs as Bn, IconFileTypeSvg as Gn, IconFileTypeSql as $n, IconFileTypeRs as Wn, IconFileTypePpt as Un, IconFileTypePng as qn, IconFileTypePhp as Zn, IconFileTypePdf as Xn, IconFileTypeJsx as Yn, IconFileTypeJs as Kn, IconFileTypeJpg as Jn, IconFileTypeHtml as Qn, IconFileTypeDocx as eo, IconFileTypeDoc as to, IconFileTypeCsv as ro, IconFileTypeCss as no, IconFileTypeBmp as oo, IconArrowUpRight as so, IconChevronDown as Er, IconDotsVertical as io, IconChevronRight as ao, IconTrashX as Nr, IconEyeOff as lo, IconEye as co, IconSearch as uo, IconPlus as fo } from "@tabler/icons-react";
|
|
7
7
|
import { createPortal as po } from "react-dom";
|
|
8
|
-
const
|
|
8
|
+
const xe = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "text-error dial-tiny mt-1", children: e }), go = 7, ho = 2, kr = xr(null), Rr = () => {
|
|
9
9
|
const e = Dr(kr);
|
|
10
10
|
if (e == null)
|
|
11
11
|
throw new Error("Tooltip components must be wrapped in <Tooltip />");
|
|
@@ -106,7 +106,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
106
106
|
children: t
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
}),
|
|
109
|
+
}), Le = ({
|
|
110
110
|
hideTooltip: e,
|
|
111
111
|
tooltip: t,
|
|
112
112
|
children: r,
|
|
@@ -146,7 +146,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
146
146
|
children: [
|
|
147
147
|
typeof e == "string" ? /* @__PURE__ */ i("span", { className: "min-h-4", children: e }) : e,
|
|
148
148
|
r && /* @__PURE__ */ i("span", { children: n ?? "(Optional)" }),
|
|
149
|
-
s && /* @__PURE__ */ i(
|
|
149
|
+
s && /* @__PURE__ */ i(Le, { tooltip: s, children: /* @__PURE__ */ i(
|
|
150
150
|
W,
|
|
151
151
|
{
|
|
152
152
|
icon: /* @__PURE__ */ i(Ir, { size: 14, className: "text-secondary" })
|
|
@@ -202,19 +202,19 @@ const Co = {
|
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
204
|
};
|
|
205
|
-
var
|
|
205
|
+
var Ee = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Error = "error", e))(Ee || {});
|
|
206
206
|
const vo = {
|
|
207
207
|
info: /* @__PURE__ */ i(Ir, { size: 24, stroke: 2 }),
|
|
208
208
|
error: /* @__PURE__ */ i(Nn, { size: 24, stroke: 2 }),
|
|
209
209
|
warning: /* @__PURE__ */ i(En, { size: 24, stroke: 2 }),
|
|
210
210
|
success: /* @__PURE__ */ i(On, { size: 24, stroke: 2 })
|
|
211
211
|
}, bo = {
|
|
212
|
-
[
|
|
213
|
-
[
|
|
214
|
-
[
|
|
215
|
-
[
|
|
212
|
+
[Ee.Info]: "bg-info border-info text-info",
|
|
213
|
+
[Ee.Success]: "bg-success border-success text-success",
|
|
214
|
+
[Ee.Warning]: "bg-warning border-warning text-warning",
|
|
215
|
+
[Ee.Error]: "bg-error border-error text-error"
|
|
216
216
|
}, yo = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", Ba = ({
|
|
217
|
-
variant: e =
|
|
217
|
+
variant: e = Ee.Info,
|
|
218
218
|
message: t,
|
|
219
219
|
cssClass: r,
|
|
220
220
|
closable: n = !1,
|
|
@@ -275,199 +275,18 @@ const vo = {
|
|
|
275
275
|
}
|
|
276
276
|
)
|
|
277
277
|
}
|
|
278
|
-
),
|
|
279
|
-
size:
|
|
278
|
+
), Ne = 18, X = {
|
|
279
|
+
size: Ne,
|
|
280
280
|
stroke: 2
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
id: t,
|
|
284
|
-
checked: r,
|
|
285
|
-
indeterminate: n,
|
|
286
|
-
disabled: o,
|
|
287
|
-
ariaLabel: s,
|
|
288
|
-
onChange: a,
|
|
289
|
-
cssClass: l
|
|
290
|
-
}) => {
|
|
291
|
-
const c = A(
|
|
292
|
-
(h) => {
|
|
293
|
-
a?.(h.target.checked, t);
|
|
294
|
-
},
|
|
295
|
-
[a, t]
|
|
296
|
-
), d = b(
|
|
297
|
-
"flex flex-row items-center cursor-pointer text-accent-primary small-medium flex-1 min-w-0",
|
|
298
|
-
`${r || n ? "" : 'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded before:mr-2'}`,
|
|
299
|
-
o ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : "",
|
|
300
|
-
l
|
|
301
|
-
), u = b(
|
|
302
|
-
"mr-2 border rounded",
|
|
303
|
-
o ? "bg-layer-4 border-icon-secondary" : ""
|
|
304
|
-
);
|
|
305
|
-
return /* @__PURE__ */ w("label", { className: d, htmlFor: t, children: [
|
|
306
|
-
n ? /* @__PURE__ */ i(kn, { className: u, ...X }) : r ? /* @__PURE__ */ i(Tr, { className: u, ...X }) : null,
|
|
307
|
-
e && (typeof e == "string" ? /* @__PURE__ */ i(ve, { tooltip: e, triggerClassName: "flex-1 min-w-0", children: /* @__PURE__ */ i("span", { className: "text-primary w-full truncate", children: e }) }) : e),
|
|
308
|
-
/* @__PURE__ */ i(
|
|
309
|
-
"input",
|
|
310
|
-
{
|
|
311
|
-
type: "checkbox",
|
|
312
|
-
role: "checkbox",
|
|
313
|
-
name: t,
|
|
314
|
-
onChange: c,
|
|
315
|
-
id: t,
|
|
316
|
-
checked: r,
|
|
317
|
-
"aria-checked": n ? "mixed" : r,
|
|
318
|
-
"aria-disabled": o || void 0,
|
|
319
|
-
"aria-label": e ? void 0 : s,
|
|
320
|
-
className: "invisible w-0 h-0"
|
|
321
|
-
}
|
|
322
|
-
)
|
|
323
|
-
] });
|
|
324
|
-
};
|
|
325
|
-
var ae = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.ERROR = "error", e))(ae || {});
|
|
326
|
-
const So = (e, t) => {
|
|
327
|
-
if (t === e.id)
|
|
328
|
-
switch (e.status) {
|
|
329
|
-
case ae.VALID:
|
|
330
|
-
return "border-accent-secondary text-primary";
|
|
331
|
-
case ae.ERROR:
|
|
332
|
-
return "border-red-900 text-primary";
|
|
333
|
-
default:
|
|
334
|
-
return "border-accent-primary text-primary";
|
|
335
|
-
}
|
|
336
|
-
switch (e.status) {
|
|
337
|
-
case ae.VALID:
|
|
338
|
-
return "border-primary text-white";
|
|
339
|
-
case ae.ERROR:
|
|
340
|
-
return "border-red-900 text-error";
|
|
341
|
-
default:
|
|
342
|
-
return "border-primary text-secondary";
|
|
343
|
-
}
|
|
344
|
-
}, Lo = (e, t) => {
|
|
345
|
-
if (t === e.id)
|
|
346
|
-
switch (e.status) {
|
|
347
|
-
case ae.VALID:
|
|
348
|
-
return "bg-accent-secondary";
|
|
349
|
-
case ae.ERROR:
|
|
350
|
-
return "bg-red-400";
|
|
351
|
-
default:
|
|
352
|
-
return "bg-accent-primary";
|
|
353
|
-
}
|
|
354
|
-
switch (e.status) {
|
|
355
|
-
case ae.VALID:
|
|
356
|
-
return "bg-accent-secondary";
|
|
357
|
-
case ae.ERROR:
|
|
358
|
-
return "bg-red-400";
|
|
359
|
-
default:
|
|
360
|
-
return "bg-layer-4";
|
|
361
|
-
}
|
|
362
|
-
}, Io = ({
|
|
363
|
-
step: e,
|
|
364
|
-
index: t,
|
|
365
|
-
currentStep: r,
|
|
366
|
-
onChangeStep: n
|
|
367
|
-
}) => {
|
|
368
|
-
const o = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", s = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", a = () => r === e.id && e.status === ae.ERROR ? /* @__PURE__ */ i(Et, { stroke: 2, size: 16 }) : r !== e.id && e.status === ae.VALID ? /* @__PURE__ */ i(Tr, { stroke: 2, size: 16 }) : t + 1;
|
|
369
|
-
return /* @__PURE__ */ w(
|
|
370
|
-
"button",
|
|
371
|
-
{
|
|
372
|
-
className: b(o, So(e, r)),
|
|
373
|
-
onClick: () => n(e.id),
|
|
374
|
-
children: [
|
|
375
|
-
/* @__PURE__ */ i(
|
|
376
|
-
"span",
|
|
377
|
-
{
|
|
378
|
-
className: b(s, Lo(e, r)),
|
|
379
|
-
children: a()
|
|
380
|
-
}
|
|
381
|
-
),
|
|
382
|
-
/* @__PURE__ */ i("span", { children: e.name })
|
|
383
|
-
]
|
|
384
|
-
}
|
|
385
|
-
);
|
|
386
|
-
}, Ga = ({
|
|
387
|
-
steps: e,
|
|
388
|
-
currentStep: t,
|
|
389
|
-
onChangeStep: r
|
|
390
|
-
}) => {
|
|
391
|
-
const n = (o) => {
|
|
392
|
-
const s = e.findIndex((l) => l.id === t), a = e.findIndex((l) => l.id === o);
|
|
393
|
-
(o !== t && e[s].status === ae.VALID || a < s) && r(o);
|
|
394
|
-
};
|
|
395
|
-
return /* @__PURE__ */ i("div", { id: "steps", className: "flex gap-x-3", children: e.map((o, s) => /* @__PURE__ */ i(
|
|
396
|
-
Io,
|
|
397
|
-
{
|
|
398
|
-
currentStep: t,
|
|
399
|
-
onChangeStep: n,
|
|
400
|
-
step: o,
|
|
401
|
-
index: s
|
|
402
|
-
},
|
|
403
|
-
o.id
|
|
404
|
-
)) });
|
|
405
|
-
}, To = ({
|
|
406
|
-
name: e,
|
|
407
|
-
value: t,
|
|
408
|
-
title: r,
|
|
409
|
-
description: n,
|
|
410
|
-
checked: o = !1,
|
|
411
|
-
inputId: s,
|
|
412
|
-
cssClass: a,
|
|
413
|
-
labelCssClass: l,
|
|
414
|
-
disabled: c,
|
|
415
|
-
onChange: d,
|
|
416
|
-
descriptionCssClass: u
|
|
417
|
-
}) => {
|
|
418
|
-
const p = `${s}-desc`, h = b(
|
|
419
|
-
"dial-small cursor-pointer",
|
|
420
|
-
c ? "text-secondary" : "text-primary",
|
|
421
|
-
l
|
|
422
|
-
), f = b(
|
|
423
|
-
"cursor-pointer dial-input-radio",
|
|
424
|
-
r && "mr-2",
|
|
425
|
-
a
|
|
426
|
-
), v = b("flex flex-col", !!n && "mb-2"), m = b(
|
|
427
|
-
"dial-tiny mt-2 ml-[26px] text-secondary",
|
|
428
|
-
u
|
|
429
|
-
);
|
|
430
|
-
return /* @__PURE__ */ w("div", { className: v, children: [
|
|
431
|
-
/* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
432
|
-
/* @__PURE__ */ i(
|
|
433
|
-
"input",
|
|
434
|
-
{
|
|
435
|
-
type: "radio",
|
|
436
|
-
id: s,
|
|
437
|
-
name: e,
|
|
438
|
-
value: t,
|
|
439
|
-
checked: o,
|
|
440
|
-
disabled: c,
|
|
441
|
-
"aria-describedby": o && n ? p : void 0,
|
|
442
|
-
className: f,
|
|
443
|
-
onChange: (L) => {
|
|
444
|
-
c || L.target.checked && d?.(t);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
),
|
|
448
|
-
r ? /* @__PURE__ */ i("label", { className: h, htmlFor: s, children: r }) : null
|
|
449
|
-
] }),
|
|
450
|
-
o && n && /* @__PURE__ */ i("div", { id: p, className: m, children: n })
|
|
451
|
-
] });
|
|
452
|
-
};
|
|
453
|
-
var Ze = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(Ze || {});
|
|
454
|
-
const Oo = "flex", Eo = "pb-1 mt-2", No = {
|
|
455
|
-
[Ze.Column]: "flex-col gap-y-3",
|
|
456
|
-
[Ze.Row]: "flex-row gap-x-6"
|
|
457
|
-
};
|
|
458
|
-
var Xe = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(Xe || {});
|
|
459
|
-
const ko = "w-full flex", Ro = {
|
|
460
|
-
[Xe.Vertical]: "flex-col",
|
|
461
|
-
[Xe.Horizontal]: "flex-row items-end"
|
|
462
|
-
}, Nt = "-", Po = (e) => {
|
|
463
|
-
const t = Vo(e), {
|
|
281
|
+
}, So = "text-primary", Nt = "-", Lo = (e) => {
|
|
282
|
+
const t = To(e), {
|
|
464
283
|
conflictingClassGroups: r,
|
|
465
284
|
conflictingClassGroupModifiers: n
|
|
466
285
|
} = e;
|
|
467
286
|
return {
|
|
468
287
|
getClassGroupId: (a) => {
|
|
469
288
|
const l = a.split(Nt);
|
|
470
|
-
return l[0] === "" && l.length !== 1 && l.shift(), Ar(l, t) ||
|
|
289
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Ar(l, t) || Io(a);
|
|
471
290
|
},
|
|
472
291
|
getConflictingClassGroupIds: (a, l) => {
|
|
473
292
|
const c = r[a] || [];
|
|
@@ -486,13 +305,13 @@ const ko = "w-full flex", Ro = {
|
|
|
486
305
|
return t.validators.find(({
|
|
487
306
|
validator: a
|
|
488
307
|
}) => a(s))?.classGroupId;
|
|
489
|
-
},
|
|
490
|
-
if (
|
|
491
|
-
const t =
|
|
308
|
+
}, Bt = /^\[(.+)\]$/, Io = (e) => {
|
|
309
|
+
if (Bt.test(e)) {
|
|
310
|
+
const t = Bt.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
492
311
|
if (r)
|
|
493
312
|
return "arbitrary.." + r;
|
|
494
313
|
}
|
|
495
|
-
},
|
|
314
|
+
}, To = (e) => {
|
|
496
315
|
const {
|
|
497
316
|
theme: t,
|
|
498
317
|
classGroups: r
|
|
@@ -506,12 +325,12 @@ const ko = "w-full flex", Ro = {
|
|
|
506
325
|
}, pt = (e, t, r, n) => {
|
|
507
326
|
e.forEach((o) => {
|
|
508
327
|
if (typeof o == "string") {
|
|
509
|
-
const s = o === "" ? t :
|
|
328
|
+
const s = o === "" ? t : Gt(t, o);
|
|
510
329
|
s.classGroupId = r;
|
|
511
330
|
return;
|
|
512
331
|
}
|
|
513
332
|
if (typeof o == "function") {
|
|
514
|
-
if (
|
|
333
|
+
if (Oo(o)) {
|
|
515
334
|
pt(o(n), t, r, n);
|
|
516
335
|
return;
|
|
517
336
|
}
|
|
@@ -522,10 +341,10 @@ const ko = "w-full flex", Ro = {
|
|
|
522
341
|
return;
|
|
523
342
|
}
|
|
524
343
|
Object.entries(o).forEach(([s, a]) => {
|
|
525
|
-
pt(a,
|
|
344
|
+
pt(a, Gt(t, s), r, n);
|
|
526
345
|
});
|
|
527
346
|
});
|
|
528
|
-
},
|
|
347
|
+
}, Gt = (e, t) => {
|
|
529
348
|
let r = e;
|
|
530
349
|
return t.split(Nt).forEach((n) => {
|
|
531
350
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
@@ -533,7 +352,7 @@ const ko = "w-full flex", Ro = {
|
|
|
533
352
|
validators: []
|
|
534
353
|
}), r = r.nextPart.get(n);
|
|
535
354
|
}), r;
|
|
536
|
-
},
|
|
355
|
+
}, Oo = (e) => e.isThemeGetter, Eo = (e) => {
|
|
537
356
|
if (e < 1)
|
|
538
357
|
return {
|
|
539
358
|
get: () => {
|
|
@@ -557,7 +376,7 @@ const ko = "w-full flex", Ro = {
|
|
|
557
376
|
r.has(s) ? r.set(s, a) : o(s, a);
|
|
558
377
|
}
|
|
559
378
|
};
|
|
560
|
-
}, gt = "!", ht = ":",
|
|
379
|
+
}, gt = "!", ht = ":", No = ht.length, ko = (e) => {
|
|
561
380
|
const {
|
|
562
381
|
prefix: t,
|
|
563
382
|
experimentalParseClassName: r
|
|
@@ -569,7 +388,7 @@ const ko = "w-full flex", Ro = {
|
|
|
569
388
|
let m = o[v];
|
|
570
389
|
if (a === 0 && l === 0) {
|
|
571
390
|
if (m === ht) {
|
|
572
|
-
s.push(o.slice(c, v)), c = v +
|
|
391
|
+
s.push(o.slice(c, v)), c = v + No;
|
|
573
392
|
continue;
|
|
574
393
|
}
|
|
575
394
|
if (m === "/") {
|
|
@@ -579,7 +398,7 @@ const ko = "w-full flex", Ro = {
|
|
|
579
398
|
}
|
|
580
399
|
m === "[" ? a++ : m === "]" ? a-- : m === "(" ? l++ : m === ")" && l--;
|
|
581
400
|
}
|
|
582
|
-
const u = s.length === 0 ? o : o.substring(c), p =
|
|
401
|
+
const u = s.length === 0 ? o : o.substring(c), p = Ro(u), h = p !== u, f = d && d > c ? d - c : void 0;
|
|
583
402
|
return {
|
|
584
403
|
modifiers: s,
|
|
585
404
|
hasImportantModifier: h,
|
|
@@ -605,7 +424,7 @@ const ko = "w-full flex", Ro = {
|
|
|
605
424
|
});
|
|
606
425
|
}
|
|
607
426
|
return n;
|
|
608
|
-
},
|
|
427
|
+
}, Ro = (e) => e.endsWith(gt) ? e.substring(0, e.length - 1) : e.startsWith(gt) ? e.substring(1) : e, Po = (e) => {
|
|
609
428
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((n) => [n, !0]));
|
|
610
429
|
return (n) => {
|
|
611
430
|
if (n.length <= 1)
|
|
@@ -616,18 +435,18 @@ const ko = "w-full flex", Ro = {
|
|
|
616
435
|
a[0] === "[" || t[a] ? (o.push(...s.sort(), a), s = []) : s.push(a);
|
|
617
436
|
}), o.push(...s.sort()), o;
|
|
618
437
|
};
|
|
619
|
-
},
|
|
620
|
-
cache:
|
|
621
|
-
parseClassName:
|
|
622
|
-
sortModifiers:
|
|
623
|
-
...
|
|
624
|
-
}),
|
|
438
|
+
}, Mo = (e) => ({
|
|
439
|
+
cache: Eo(e.cacheSize),
|
|
440
|
+
parseClassName: ko(e),
|
|
441
|
+
sortModifiers: Po(e),
|
|
442
|
+
...Lo(e)
|
|
443
|
+
}), Vo = /\s+/, Ho = (e, t) => {
|
|
625
444
|
const {
|
|
626
445
|
parseClassName: r,
|
|
627
446
|
getClassGroupId: n,
|
|
628
447
|
getConflictingClassGroupIds: o,
|
|
629
448
|
sortModifiers: s
|
|
630
|
-
} = t, a = [], l = e.trim().split(
|
|
449
|
+
} = t, a = [], l = e.trim().split(Vo);
|
|
631
450
|
let c = "";
|
|
632
451
|
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
633
452
|
const u = l[d], {
|
|
@@ -666,7 +485,7 @@ const ko = "w-full flex", Ro = {
|
|
|
666
485
|
}
|
|
667
486
|
return c;
|
|
668
487
|
};
|
|
669
|
-
function
|
|
488
|
+
function Ao() {
|
|
670
489
|
let e = 0, t, r, n = "";
|
|
671
490
|
for (; e < arguments.length; )
|
|
672
491
|
(t = arguments[e++]) && (r = Fr(t)) && (n && (n += " "), n += r);
|
|
@@ -680,38 +499,38 @@ const Fr = (e) => {
|
|
|
680
499
|
e[n] && (t = Fr(e[n])) && (r && (r += " "), r += t);
|
|
681
500
|
return r;
|
|
682
501
|
};
|
|
683
|
-
function
|
|
502
|
+
function Fo(e, ...t) {
|
|
684
503
|
let r, n, o, s = a;
|
|
685
504
|
function a(c) {
|
|
686
505
|
const d = t.reduce((u, p) => p(u), e());
|
|
687
|
-
return r =
|
|
506
|
+
return r = Mo(d), n = r.cache.get, o = r.cache.set, s = l, l(c);
|
|
688
507
|
}
|
|
689
508
|
function l(c) {
|
|
690
509
|
const d = n(c);
|
|
691
510
|
if (d)
|
|
692
511
|
return d;
|
|
693
|
-
const u =
|
|
512
|
+
const u = Ho(c, r);
|
|
694
513
|
return o(c, u), u;
|
|
695
514
|
}
|
|
696
515
|
return function() {
|
|
697
|
-
return s(
|
|
516
|
+
return s(Ao.apply(null, arguments));
|
|
698
517
|
};
|
|
699
518
|
}
|
|
700
519
|
const q = (e) => {
|
|
701
520
|
const t = (r) => r[e] || [];
|
|
702
521
|
return t.isThemeGetter = !0, t;
|
|
703
|
-
}, _r = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zr = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
522
|
+
}, _r = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, _o = /^\d+\/\d+$/, zo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jo = /\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$/, Bo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Go = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $o = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ie = (e) => _o.test(e), k = (e) => !!e && !Number.isNaN(Number(e)), me = (e) => !!e && Number.isInteger(Number(e)), ot = (e) => e.endsWith("%") && k(e.slice(0, -1)), fe = (e) => zo.test(e), Wo = () => !0, Uo = (e) => (
|
|
704
523
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
705
524
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
706
525
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
707
|
-
|
|
708
|
-
), jr = () => !1,
|
|
526
|
+
jo.test(e) && !Bo.test(e)
|
|
527
|
+
), jr = () => !1, qo = (e) => Go.test(e), Zo = (e) => $o.test(e), Xo = (e) => !D(e) && !S(e), Yo = (e) => Re(e, $r, jr), D = (e) => _r.test(e), be = (e) => Re(e, Wr, Uo), st = (e) => Re(e, ts, k), $t = (e) => Re(e, Br, jr), Ko = (e) => Re(e, Gr, Zo), Be = (e) => Re(e, Ur, qo), S = (e) => zr.test(e), Ve = (e) => Pe(e, Wr), Jo = (e) => Pe(e, rs), Wt = (e) => Pe(e, Br), Qo = (e) => Pe(e, $r), es = (e) => Pe(e, Gr), Ge = (e) => Pe(e, Ur, !0), Re = (e, t, r) => {
|
|
709
528
|
const n = _r.exec(e);
|
|
710
529
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
711
530
|
}, Pe = (e, t, r = !1) => {
|
|
712
531
|
const n = zr.exec(e);
|
|
713
532
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
714
|
-
}, Br = (e) => e === "position" || e === "percentage", Gr = (e) => e === "image" || e === "url", $r = (e) => e === "length" || e === "size" || e === "bg-size", Wr = (e) => e === "length",
|
|
533
|
+
}, Br = (e) => e === "position" || e === "percentage", Gr = (e) => e === "image" || e === "url", $r = (e) => e === "length" || e === "size" || e === "bg-size", Wr = (e) => e === "length", ts = (e) => e === "number", rs = (e) => e === "family-name", Ur = (e) => e === "shadow", ns = () => {
|
|
715
534
|
const e = q("color"), t = q("font"), r = q("text"), n = q("font-weight"), o = q("tracking"), s = q("leading"), a = q("breakpoint"), l = q("container"), c = q("spacing"), d = q("radius"), u = q("shadow"), p = q("inset-shadow"), h = q("text-shadow"), f = q("drop-shadow"), v = q("blur"), m = q("perspective"), x = q("aspect"), L = q("ease"), C = q("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
716
535
|
"center",
|
|
717
536
|
"top",
|
|
@@ -730,15 +549,15 @@ const q = (e) => {
|
|
|
730
549
|
"bottom-left",
|
|
731
550
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
732
551
|
"left-bottom"
|
|
733
|
-
], R = () => [...O(), S, D], P = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], I = () => [S, D, c], j = () => [
|
|
552
|
+
], R = () => [...O(), S, D], P = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], I = () => [S, D, c], j = () => [Ie, "full", "auto", ...I()], _ = () => [me, "none", "subgrid", S, D], M = () => ["auto", {
|
|
734
553
|
span: ["full", me, S, D]
|
|
735
|
-
}, me, S, D], V = () => [me, "auto", S, D], ee = () => ["auto", "min", "max", "fr", S, D], de = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], te = () => ["auto", ...I()], re = () => [
|
|
554
|
+
}, me, S, D], V = () => [me, "auto", S, D], ee = () => ["auto", "min", "max", "fr", S, D], de = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], te = () => ["auto", ...I()], re = () => [Ie, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], T = () => [e, S, D], ue = () => [...O(), Wt, $t, {
|
|
736
555
|
position: [S, D]
|
|
737
556
|
}], ge = () => ["no-repeat", {
|
|
738
557
|
repeat: ["", "x", "y", "space", "round"]
|
|
739
|
-
}], he = () => ["auto", "cover", "contain",
|
|
558
|
+
}], he = () => ["auto", "cover", "contain", Qo, Yo, {
|
|
740
559
|
size: [S, D]
|
|
741
|
-
}], oe = () => [ot, Ve,
|
|
560
|
+
}], oe = () => [ot, Ve, be], U = () => [
|
|
742
561
|
// Deprecated since Tailwind CSS v4.0.0
|
|
743
562
|
"",
|
|
744
563
|
"none",
|
|
@@ -746,14 +565,14 @@ const q = (e) => {
|
|
|
746
565
|
d,
|
|
747
566
|
S,
|
|
748
567
|
D
|
|
749
|
-
], K = () => ["", k, Ve,
|
|
568
|
+
], K = () => ["", k, Ve, be], g = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [k, ot, Wt, $t], ce = () => [
|
|
750
569
|
// Deprecated since Tailwind CSS v4.0.0
|
|
751
570
|
"",
|
|
752
571
|
"none",
|
|
753
572
|
v,
|
|
754
573
|
S,
|
|
755
574
|
D
|
|
756
|
-
],
|
|
575
|
+
], ve = () => ["none", k, S, D], ze = () => ["none", k, S, D], nt = () => [k, S, D], je = () => [Ie, "full", ...I()];
|
|
757
576
|
return {
|
|
758
577
|
cacheSize: 500,
|
|
759
578
|
theme: {
|
|
@@ -761,11 +580,11 @@ const q = (e) => {
|
|
|
761
580
|
aspect: ["video"],
|
|
762
581
|
blur: [fe],
|
|
763
582
|
breakpoint: [fe],
|
|
764
|
-
color: [
|
|
583
|
+
color: [Wo],
|
|
765
584
|
container: [fe],
|
|
766
585
|
"drop-shadow": [fe],
|
|
767
586
|
ease: ["in", "out", "in-out"],
|
|
768
|
-
font: [
|
|
587
|
+
font: [Xo],
|
|
769
588
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
770
589
|
"inset-shadow": [fe],
|
|
771
590
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -786,7 +605,7 @@ const q = (e) => {
|
|
|
786
605
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
787
606
|
*/
|
|
788
607
|
aspect: [{
|
|
789
|
-
aspect: ["auto", "square",
|
|
608
|
+
aspect: ["auto", "square", Ie, D, S, x]
|
|
790
609
|
}],
|
|
791
610
|
/**
|
|
792
611
|
* Container
|
|
@@ -1009,7 +828,7 @@ const q = (e) => {
|
|
|
1009
828
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1010
829
|
*/
|
|
1011
830
|
basis: [{
|
|
1012
|
-
basis: [
|
|
831
|
+
basis: [Ie, "full", "auto", l, ...I()]
|
|
1013
832
|
}],
|
|
1014
833
|
/**
|
|
1015
834
|
* Flex Direction
|
|
@@ -1030,7 +849,7 @@ const q = (e) => {
|
|
|
1030
849
|
* @see https://tailwindcss.com/docs/flex
|
|
1031
850
|
*/
|
|
1032
851
|
flex: [{
|
|
1033
|
-
flex: [k,
|
|
852
|
+
flex: [k, Ie, "auto", "initial", "none", D]
|
|
1034
853
|
}],
|
|
1035
854
|
/**
|
|
1036
855
|
* Flex Grow
|
|
@@ -1446,7 +1265,7 @@ const q = (e) => {
|
|
|
1446
1265
|
* @see https://tailwindcss.com/docs/font-size
|
|
1447
1266
|
*/
|
|
1448
1267
|
"font-size": [{
|
|
1449
|
-
text: ["base", r, Ve,
|
|
1268
|
+
text: ["base", r, Ve, be]
|
|
1450
1269
|
}],
|
|
1451
1270
|
/**
|
|
1452
1271
|
* Font Smoothing
|
|
@@ -1477,7 +1296,7 @@ const q = (e) => {
|
|
|
1477
1296
|
* @see https://tailwindcss.com/docs/font-family
|
|
1478
1297
|
*/
|
|
1479
1298
|
"font-family": [{
|
|
1480
|
-
font: [
|
|
1299
|
+
font: [Jo, D, t]
|
|
1481
1300
|
}],
|
|
1482
1301
|
/**
|
|
1483
1302
|
* Font Variant Numeric
|
|
@@ -1594,7 +1413,7 @@ const q = (e) => {
|
|
|
1594
1413
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1595
1414
|
*/
|
|
1596
1415
|
"text-decoration-thickness": [{
|
|
1597
|
-
decoration: [k, "from-font", "auto", S,
|
|
1416
|
+
decoration: [k, "from-font", "auto", S, be]
|
|
1598
1417
|
}],
|
|
1599
1418
|
/**
|
|
1600
1419
|
* Text Decoration Color
|
|
@@ -1732,7 +1551,7 @@ const q = (e) => {
|
|
|
1732
1551
|
}, me, S, D],
|
|
1733
1552
|
radial: ["", S, D],
|
|
1734
1553
|
conic: [me, S, D]
|
|
1735
|
-
},
|
|
1554
|
+
}, es, Ko]
|
|
1736
1555
|
}],
|
|
1737
1556
|
/**
|
|
1738
1557
|
* Background Color
|
|
@@ -2081,7 +1900,7 @@ const q = (e) => {
|
|
|
2081
1900
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2082
1901
|
*/
|
|
2083
1902
|
"outline-w": [{
|
|
2084
|
-
outline: ["", k, Ve,
|
|
1903
|
+
outline: ["", k, Ve, be]
|
|
2085
1904
|
}],
|
|
2086
1905
|
/**
|
|
2087
1906
|
* Outline Color
|
|
@@ -2156,7 +1975,7 @@ const q = (e) => {
|
|
|
2156
1975
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2157
1976
|
*/
|
|
2158
1977
|
"ring-offset-w": [{
|
|
2159
|
-
"ring-offset": [k,
|
|
1978
|
+
"ring-offset": [k, be]
|
|
2160
1979
|
}],
|
|
2161
1980
|
/**
|
|
2162
1981
|
* Ring Offset Color
|
|
@@ -2700,28 +2519,28 @@ const q = (e) => {
|
|
|
2700
2519
|
* @see https://tailwindcss.com/docs/rotate
|
|
2701
2520
|
*/
|
|
2702
2521
|
rotate: [{
|
|
2703
|
-
rotate:
|
|
2522
|
+
rotate: ve()
|
|
2704
2523
|
}],
|
|
2705
2524
|
/**
|
|
2706
2525
|
* Rotate X
|
|
2707
2526
|
* @see https://tailwindcss.com/docs/rotate
|
|
2708
2527
|
*/
|
|
2709
2528
|
"rotate-x": [{
|
|
2710
|
-
"rotate-x":
|
|
2529
|
+
"rotate-x": ve()
|
|
2711
2530
|
}],
|
|
2712
2531
|
/**
|
|
2713
2532
|
* Rotate Y
|
|
2714
2533
|
* @see https://tailwindcss.com/docs/rotate
|
|
2715
2534
|
*/
|
|
2716
2535
|
"rotate-y": [{
|
|
2717
|
-
"rotate-y":
|
|
2536
|
+
"rotate-y": ve()
|
|
2718
2537
|
}],
|
|
2719
2538
|
/**
|
|
2720
2539
|
* Rotate Z
|
|
2721
2540
|
* @see https://tailwindcss.com/docs/rotate
|
|
2722
2541
|
*/
|
|
2723
2542
|
"rotate-z": [{
|
|
2724
|
-
"rotate-z":
|
|
2543
|
+
"rotate-z": ve()
|
|
2725
2544
|
}],
|
|
2726
2545
|
/**
|
|
2727
2546
|
* Scale
|
|
@@ -3106,7 +2925,7 @@ const q = (e) => {
|
|
|
3106
2925
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3107
2926
|
*/
|
|
3108
2927
|
"stroke-w": [{
|
|
3109
|
-
stroke: [k, Ve,
|
|
2928
|
+
stroke: [k, Ve, be, st]
|
|
3110
2929
|
}],
|
|
3111
2930
|
/**
|
|
3112
2931
|
* Stroke
|
|
@@ -3181,11 +3000,256 @@ const q = (e) => {
|
|
|
3181
3000
|
},
|
|
3182
3001
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3183
3002
|
};
|
|
3184
|
-
},
|
|
3003
|
+
}, os = /* @__PURE__ */ Fo(ns);
|
|
3185
3004
|
function Z(...e) {
|
|
3186
|
-
return
|
|
3005
|
+
return os(b(e));
|
|
3187
3006
|
}
|
|
3188
|
-
const
|
|
3007
|
+
const De = ({
|
|
3008
|
+
text: e,
|
|
3009
|
+
cssClass: t,
|
|
3010
|
+
contentClassName: r,
|
|
3011
|
+
hideTooltip: n,
|
|
3012
|
+
...o
|
|
3013
|
+
}) => {
|
|
3014
|
+
const s = le(null), [a, l] = G(!1), [c, d] = G(""), u = le(null), p = () => {
|
|
3015
|
+
const m = s.current;
|
|
3016
|
+
if (!m) return;
|
|
3017
|
+
d(m.textContent ?? "");
|
|
3018
|
+
const x = m.clientWidth, L = m.scrollWidth, C = Math.ceil(m.getBoundingClientRect().width);
|
|
3019
|
+
l(L > x || L > C);
|
|
3020
|
+
}, h = A(() => {
|
|
3021
|
+
u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(p);
|
|
3022
|
+
}, []);
|
|
3023
|
+
ne(() => {
|
|
3024
|
+
h();
|
|
3025
|
+
const m = () => h();
|
|
3026
|
+
window.addEventListener("resize", m);
|
|
3027
|
+
let x = null;
|
|
3028
|
+
return "ResizeObserver" in window && s.current && (x = new ResizeObserver(() => h()), x.observe(s.current)), () => {
|
|
3029
|
+
window.removeEventListener("resize", m), x && x.disconnect(), u.current && cancelAnimationFrame(u.current);
|
|
3030
|
+
};
|
|
3031
|
+
}, [e, h]);
|
|
3032
|
+
const f = B(
|
|
3033
|
+
() => typeof e == "string" ? e : c,
|
|
3034
|
+
[c, e]
|
|
3035
|
+
), v = B(() => n ? "" : a ? f : "", [f, n, a]);
|
|
3036
|
+
return /* @__PURE__ */ w(Pr, { ...o, children: [
|
|
3037
|
+
/* @__PURE__ */ i(
|
|
3038
|
+
Vr,
|
|
3039
|
+
{
|
|
3040
|
+
asChild: !0,
|
|
3041
|
+
ref: s,
|
|
3042
|
+
onMouseEnter: h,
|
|
3043
|
+
onFocusCapture: h,
|
|
3044
|
+
children: /* @__PURE__ */ i(
|
|
3045
|
+
"span",
|
|
3046
|
+
{
|
|
3047
|
+
className: Z(
|
|
3048
|
+
"block truncate min-w-0 max-w-full",
|
|
3049
|
+
t
|
|
3050
|
+
),
|
|
3051
|
+
"aria-label": a ? f : void 0,
|
|
3052
|
+
onMouseEnter: h,
|
|
3053
|
+
onFocus: h,
|
|
3054
|
+
children: e
|
|
3055
|
+
}
|
|
3056
|
+
)
|
|
3057
|
+
}
|
|
3058
|
+
),
|
|
3059
|
+
/* @__PURE__ */ i(
|
|
3060
|
+
Mr,
|
|
3061
|
+
{
|
|
3062
|
+
className: Z(
|
|
3063
|
+
So,
|
|
3064
|
+
r,
|
|
3065
|
+
!v && "hidden"
|
|
3066
|
+
),
|
|
3067
|
+
children: v
|
|
3068
|
+
}
|
|
3069
|
+
)
|
|
3070
|
+
] });
|
|
3071
|
+
}, Ut = ({
|
|
3072
|
+
label: e,
|
|
3073
|
+
id: t,
|
|
3074
|
+
checked: r,
|
|
3075
|
+
indeterminate: n,
|
|
3076
|
+
disabled: o,
|
|
3077
|
+
ariaLabel: s,
|
|
3078
|
+
onChange: a,
|
|
3079
|
+
cssClass: l
|
|
3080
|
+
}) => {
|
|
3081
|
+
const c = A(
|
|
3082
|
+
(h) => {
|
|
3083
|
+
a?.(h.target.checked, t);
|
|
3084
|
+
},
|
|
3085
|
+
[a, t]
|
|
3086
|
+
), d = b(
|
|
3087
|
+
"flex flex-row items-center cursor-pointer text-accent-primary small-medium flex-1 min-w-0",
|
|
3088
|
+
`${r || n ? "" : 'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded before:mr-2'}`,
|
|
3089
|
+
o ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : "",
|
|
3090
|
+
l
|
|
3091
|
+
), u = b(
|
|
3092
|
+
"mr-2 border rounded",
|
|
3093
|
+
o ? "bg-layer-4 border-icon-secondary" : ""
|
|
3094
|
+
);
|
|
3095
|
+
return /* @__PURE__ */ w("label", { className: d, htmlFor: t, children: [
|
|
3096
|
+
n ? /* @__PURE__ */ i(kn, { className: u, ...X }) : r ? /* @__PURE__ */ i(Tr, { className: u, ...X }) : null,
|
|
3097
|
+
e && (typeof e == "string" ? /* @__PURE__ */ i(De, { text: e }) : e),
|
|
3098
|
+
/* @__PURE__ */ i(
|
|
3099
|
+
"input",
|
|
3100
|
+
{
|
|
3101
|
+
type: "checkbox",
|
|
3102
|
+
role: "checkbox",
|
|
3103
|
+
name: t,
|
|
3104
|
+
onChange: c,
|
|
3105
|
+
id: t,
|
|
3106
|
+
checked: r,
|
|
3107
|
+
"aria-checked": n ? "mixed" : r,
|
|
3108
|
+
"aria-disabled": o || void 0,
|
|
3109
|
+
"aria-label": e ? void 0 : s,
|
|
3110
|
+
className: "invisible w-0 h-0"
|
|
3111
|
+
}
|
|
3112
|
+
)
|
|
3113
|
+
] });
|
|
3114
|
+
};
|
|
3115
|
+
var ae = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.ERROR = "error", e))(ae || {});
|
|
3116
|
+
const ss = (e, t) => {
|
|
3117
|
+
if (t === e.id)
|
|
3118
|
+
switch (e.status) {
|
|
3119
|
+
case ae.VALID:
|
|
3120
|
+
return "border-accent-secondary text-primary";
|
|
3121
|
+
case ae.ERROR:
|
|
3122
|
+
return "border-red-900 text-primary";
|
|
3123
|
+
default:
|
|
3124
|
+
return "border-accent-primary text-primary";
|
|
3125
|
+
}
|
|
3126
|
+
switch (e.status) {
|
|
3127
|
+
case ae.VALID:
|
|
3128
|
+
return "border-primary text-white";
|
|
3129
|
+
case ae.ERROR:
|
|
3130
|
+
return "border-red-900 text-error";
|
|
3131
|
+
default:
|
|
3132
|
+
return "border-primary text-secondary";
|
|
3133
|
+
}
|
|
3134
|
+
}, is = (e, t) => {
|
|
3135
|
+
if (t === e.id)
|
|
3136
|
+
switch (e.status) {
|
|
3137
|
+
case ae.VALID:
|
|
3138
|
+
return "bg-accent-secondary";
|
|
3139
|
+
case ae.ERROR:
|
|
3140
|
+
return "bg-red-400";
|
|
3141
|
+
default:
|
|
3142
|
+
return "bg-accent-primary";
|
|
3143
|
+
}
|
|
3144
|
+
switch (e.status) {
|
|
3145
|
+
case ae.VALID:
|
|
3146
|
+
return "bg-accent-secondary";
|
|
3147
|
+
case ae.ERROR:
|
|
3148
|
+
return "bg-red-400";
|
|
3149
|
+
default:
|
|
3150
|
+
return "bg-layer-4";
|
|
3151
|
+
}
|
|
3152
|
+
}, as = ({
|
|
3153
|
+
step: e,
|
|
3154
|
+
index: t,
|
|
3155
|
+
currentStep: r,
|
|
3156
|
+
onChangeStep: n
|
|
3157
|
+
}) => {
|
|
3158
|
+
const o = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", s = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", a = () => r === e.id && e.status === ae.ERROR ? /* @__PURE__ */ i(Et, { stroke: 2, size: 16 }) : r !== e.id && e.status === ae.VALID ? /* @__PURE__ */ i(Tr, { stroke: 2, size: 16 }) : t + 1;
|
|
3159
|
+
return /* @__PURE__ */ w(
|
|
3160
|
+
"button",
|
|
3161
|
+
{
|
|
3162
|
+
className: b(o, ss(e, r)),
|
|
3163
|
+
onClick: () => n(e.id),
|
|
3164
|
+
children: [
|
|
3165
|
+
/* @__PURE__ */ i(
|
|
3166
|
+
"span",
|
|
3167
|
+
{
|
|
3168
|
+
className: b(s, is(e, r)),
|
|
3169
|
+
children: a()
|
|
3170
|
+
}
|
|
3171
|
+
),
|
|
3172
|
+
/* @__PURE__ */ i("span", { children: e.name })
|
|
3173
|
+
]
|
|
3174
|
+
}
|
|
3175
|
+
);
|
|
3176
|
+
}, Ga = ({
|
|
3177
|
+
steps: e,
|
|
3178
|
+
currentStep: t,
|
|
3179
|
+
onChangeStep: r
|
|
3180
|
+
}) => {
|
|
3181
|
+
const n = (o) => {
|
|
3182
|
+
const s = e.findIndex((l) => l.id === t), a = e.findIndex((l) => l.id === o);
|
|
3183
|
+
(o !== t && e[s].status === ae.VALID || a < s) && r(o);
|
|
3184
|
+
};
|
|
3185
|
+
return /* @__PURE__ */ i("div", { id: "steps", className: "flex gap-x-3", children: e.map((o, s) => /* @__PURE__ */ i(
|
|
3186
|
+
as,
|
|
3187
|
+
{
|
|
3188
|
+
currentStep: t,
|
|
3189
|
+
onChangeStep: n,
|
|
3190
|
+
step: o,
|
|
3191
|
+
index: s
|
|
3192
|
+
},
|
|
3193
|
+
o.id
|
|
3194
|
+
)) });
|
|
3195
|
+
}, ls = ({
|
|
3196
|
+
name: e,
|
|
3197
|
+
value: t,
|
|
3198
|
+
title: r,
|
|
3199
|
+
description: n,
|
|
3200
|
+
checked: o = !1,
|
|
3201
|
+
inputId: s,
|
|
3202
|
+
cssClass: a,
|
|
3203
|
+
labelCssClass: l,
|
|
3204
|
+
disabled: c,
|
|
3205
|
+
onChange: d,
|
|
3206
|
+
descriptionCssClass: u
|
|
3207
|
+
}) => {
|
|
3208
|
+
const p = `${s}-desc`, h = b(
|
|
3209
|
+
"dial-small cursor-pointer",
|
|
3210
|
+
c ? "text-secondary" : "text-primary",
|
|
3211
|
+
l
|
|
3212
|
+
), f = b(
|
|
3213
|
+
"cursor-pointer dial-input-radio",
|
|
3214
|
+
r && "mr-2",
|
|
3215
|
+
a
|
|
3216
|
+
), v = b("flex flex-col", !!n && "mb-2"), m = b(
|
|
3217
|
+
"dial-tiny mt-2 ml-[26px] text-secondary",
|
|
3218
|
+
u
|
|
3219
|
+
);
|
|
3220
|
+
return /* @__PURE__ */ w("div", { className: v, children: [
|
|
3221
|
+
/* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
3222
|
+
/* @__PURE__ */ i(
|
|
3223
|
+
"input",
|
|
3224
|
+
{
|
|
3225
|
+
type: "radio",
|
|
3226
|
+
id: s,
|
|
3227
|
+
name: e,
|
|
3228
|
+
value: t,
|
|
3229
|
+
checked: o,
|
|
3230
|
+
disabled: c,
|
|
3231
|
+
"aria-describedby": o && n ? p : void 0,
|
|
3232
|
+
className: f,
|
|
3233
|
+
onChange: (L) => {
|
|
3234
|
+
c || L.target.checked && d?.(t);
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
),
|
|
3238
|
+
r ? /* @__PURE__ */ i("label", { className: h, htmlFor: s, children: r }) : null
|
|
3239
|
+
] }),
|
|
3240
|
+
o && n && /* @__PURE__ */ i("div", { id: p, className: m, children: n })
|
|
3241
|
+
] });
|
|
3242
|
+
};
|
|
3243
|
+
var Ze = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(Ze || {});
|
|
3244
|
+
const cs = "flex", ds = "pb-1 mt-2", us = {
|
|
3245
|
+
[Ze.Column]: "flex-col gap-y-3",
|
|
3246
|
+
[Ze.Row]: "flex-row gap-x-6"
|
|
3247
|
+
};
|
|
3248
|
+
var Xe = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(Xe || {});
|
|
3249
|
+
const fs = "w-full flex", ps = {
|
|
3250
|
+
[Xe.Vertical]: "flex-col",
|
|
3251
|
+
[Xe.Horizontal]: "flex-row items-end"
|
|
3252
|
+
}, kt = ({
|
|
3189
3253
|
elementId: e,
|
|
3190
3254
|
label: t,
|
|
3191
3255
|
optional: r,
|
|
@@ -3210,7 +3274,7 @@ const kt = ({
|
|
|
3210
3274
|
role: "alert",
|
|
3211
3275
|
"aria-live": "polite",
|
|
3212
3276
|
className: u,
|
|
3213
|
-
children: /* @__PURE__ */ i(
|
|
3277
|
+
children: /* @__PURE__ */ i(xe, { errorText: s })
|
|
3214
3278
|
}
|
|
3215
3279
|
) : null : /* @__PURE__ */ i(
|
|
3216
3280
|
"div",
|
|
@@ -3229,8 +3293,8 @@ const kt = ({
|
|
|
3229
3293
|
"aria-labelledby": t ? x : void 0,
|
|
3230
3294
|
"aria-describedby": O,
|
|
3231
3295
|
className: Z(
|
|
3232
|
-
|
|
3233
|
-
|
|
3296
|
+
fs,
|
|
3297
|
+
ps[a],
|
|
3234
3298
|
c
|
|
3235
3299
|
),
|
|
3236
3300
|
children: [
|
|
@@ -3273,7 +3337,7 @@ const kt = ({
|
|
|
3273
3337
|
]
|
|
3274
3338
|
}
|
|
3275
3339
|
);
|
|
3276
|
-
},
|
|
3340
|
+
}, gs = ({
|
|
3277
3341
|
fieldTitle: e,
|
|
3278
3342
|
radioCssClass: t,
|
|
3279
3343
|
labelCssClass: r,
|
|
@@ -3296,12 +3360,12 @@ const kt = ({
|
|
|
3296
3360
|
"aria-label": e,
|
|
3297
3361
|
"aria-disabled": n || void 0,
|
|
3298
3362
|
className: b(
|
|
3299
|
-
|
|
3300
|
-
|
|
3363
|
+
cs,
|
|
3364
|
+
us[l]
|
|
3301
3365
|
),
|
|
3302
3366
|
children: s.map((d) => /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
|
|
3303
3367
|
/* @__PURE__ */ i(
|
|
3304
|
-
|
|
3368
|
+
ls,
|
|
3305
3369
|
{
|
|
3306
3370
|
name: o,
|
|
3307
3371
|
value: d.id,
|
|
@@ -3314,12 +3378,12 @@ const kt = ({
|
|
|
3314
3378
|
onChange: () => c(d.id)
|
|
3315
3379
|
}
|
|
3316
3380
|
),
|
|
3317
|
-
d.id === a && d.content ? /* @__PURE__ */ i("div", { className:
|
|
3381
|
+
d.id === a && d.content ? /* @__PURE__ */ i("div", { className: ds, children: d.content }) : null
|
|
3318
3382
|
] }, d.id))
|
|
3319
3383
|
}
|
|
3320
3384
|
)
|
|
3321
3385
|
}
|
|
3322
|
-
),
|
|
3386
|
+
), hs = ({
|
|
3323
3387
|
icon: e,
|
|
3324
3388
|
title: t,
|
|
3325
3389
|
description: r
|
|
@@ -3327,12 +3391,12 @@ const kt = ({
|
|
|
3327
3391
|
e || /* @__PURE__ */ i(Or, { width: 60, height: 60 }),
|
|
3328
3392
|
/* @__PURE__ */ i("span", { className: "dial-small mt-2 text-primary", children: t }),
|
|
3329
3393
|
r && /* @__PURE__ */ i("span", { className: "mt-1 text-primary", children: r })
|
|
3330
|
-
] }),
|
|
3394
|
+
] }), ms = 60, $a = ({
|
|
3331
3395
|
containerCssClass: e,
|
|
3332
3396
|
children: t,
|
|
3333
3397
|
width: r,
|
|
3334
3398
|
title: n,
|
|
3335
|
-
iconSize: o =
|
|
3399
|
+
iconSize: o = Ne,
|
|
3336
3400
|
titleCssClass: s,
|
|
3337
3401
|
additionalButtons: a
|
|
3338
3402
|
}) => {
|
|
@@ -3344,7 +3408,7 @@ const kt = ({
|
|
|
3344
3408
|
"flex flex-row gap-2 cursor-pointer text-secondary",
|
|
3345
3409
|
d ? "justify-end" : "justify-center"
|
|
3346
3410
|
]), f = () => {
|
|
3347
|
-
c(d ?
|
|
3411
|
+
c(d ? ms : r), u(!d);
|
|
3348
3412
|
};
|
|
3349
3413
|
return /* @__PURE__ */ w(
|
|
3350
3414
|
"div",
|
|
@@ -3404,80 +3468,16 @@ const kt = ({
|
|
|
3404
3468
|
children: [
|
|
3405
3469
|
/* @__PURE__ */ i("label", { className: "dial-tiny mb-2 text-secondary", children: e }),
|
|
3406
3470
|
r || /* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
3407
|
-
/* @__PURE__ */ i(
|
|
3471
|
+
/* @__PURE__ */ i(Le, { triggerClassName: "text-primary", tooltip: t, children: t }),
|
|
3408
3472
|
n || null
|
|
3409
3473
|
] })
|
|
3410
3474
|
]
|
|
3411
3475
|
}
|
|
3412
3476
|
);
|
|
3413
3477
|
var Rt = /* @__PURE__ */ ((e) => (e.Default = "default", e))(Rt || {});
|
|
3414
|
-
const
|
|
3478
|
+
const Cs = {
|
|
3415
3479
|
[Rt.Default]: "border-icon-secondary bg-layer-3"
|
|
3416
3480
|
// TODO: Add other variants here once they are finalized with the UI/UX team
|
|
3417
|
-
}, Cs = "text-primary", Ne = ({
|
|
3418
|
-
text: e,
|
|
3419
|
-
cssClass: t,
|
|
3420
|
-
contentClassName: r,
|
|
3421
|
-
hideTooltip: n,
|
|
3422
|
-
...o
|
|
3423
|
-
}) => {
|
|
3424
|
-
const s = le(null), [a, l] = G(!1), [c, d] = G(""), u = le(null), p = () => {
|
|
3425
|
-
const m = s.current;
|
|
3426
|
-
if (!m) return;
|
|
3427
|
-
d(m.textContent ?? "");
|
|
3428
|
-
const x = m.clientWidth, L = m.scrollWidth, C = Math.ceil(m.getBoundingClientRect().width);
|
|
3429
|
-
l(L > x || L > C);
|
|
3430
|
-
}, h = A(() => {
|
|
3431
|
-
u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(p);
|
|
3432
|
-
}, []);
|
|
3433
|
-
ne(() => {
|
|
3434
|
-
h();
|
|
3435
|
-
const m = () => h();
|
|
3436
|
-
window.addEventListener("resize", m);
|
|
3437
|
-
let x = null;
|
|
3438
|
-
return "ResizeObserver" in window && s.current && (x = new ResizeObserver(() => h()), x.observe(s.current)), () => {
|
|
3439
|
-
window.removeEventListener("resize", m), x && x.disconnect(), u.current && cancelAnimationFrame(u.current);
|
|
3440
|
-
};
|
|
3441
|
-
}, [e, h]);
|
|
3442
|
-
const f = B(
|
|
3443
|
-
() => typeof e == "string" ? e : c,
|
|
3444
|
-
[c, e]
|
|
3445
|
-
), v = B(() => n ? "" : a ? f : "", [f, n, a]);
|
|
3446
|
-
return /* @__PURE__ */ w(Pr, { ...o, children: [
|
|
3447
|
-
/* @__PURE__ */ i(
|
|
3448
|
-
Vr,
|
|
3449
|
-
{
|
|
3450
|
-
asChild: !0,
|
|
3451
|
-
ref: s,
|
|
3452
|
-
onMouseEnter: h,
|
|
3453
|
-
onFocusCapture: h,
|
|
3454
|
-
children: /* @__PURE__ */ i(
|
|
3455
|
-
"span",
|
|
3456
|
-
{
|
|
3457
|
-
className: Z(
|
|
3458
|
-
"block truncate min-w-0 max-w-full",
|
|
3459
|
-
t
|
|
3460
|
-
),
|
|
3461
|
-
"aria-label": a ? f : void 0,
|
|
3462
|
-
onMouseEnter: h,
|
|
3463
|
-
onFocus: h,
|
|
3464
|
-
children: e
|
|
3465
|
-
}
|
|
3466
|
-
)
|
|
3467
|
-
}
|
|
3468
|
-
),
|
|
3469
|
-
/* @__PURE__ */ i(
|
|
3470
|
-
Mr,
|
|
3471
|
-
{
|
|
3472
|
-
className: Z(
|
|
3473
|
-
Cs,
|
|
3474
|
-
r,
|
|
3475
|
-
!v && "hidden"
|
|
3476
|
-
),
|
|
3477
|
-
children: v
|
|
3478
|
-
}
|
|
3479
|
-
)
|
|
3480
|
-
] });
|
|
3481
3481
|
}, Pt = ({
|
|
3482
3482
|
tag: e,
|
|
3483
3483
|
cssClass: t,
|
|
@@ -3486,7 +3486,7 @@ const ms = {
|
|
|
3486
3486
|
iconBefore: o,
|
|
3487
3487
|
bordered: s = !0
|
|
3488
3488
|
}) => {
|
|
3489
|
-
const a =
|
|
3489
|
+
const a = Cs[n], l = Z(
|
|
3490
3490
|
"flex items-center gap-1 dial-tiny rounded p-1 h-[22px] text-primary",
|
|
3491
3491
|
a,
|
|
3492
3492
|
s ? "border" : "border-transparent",
|
|
@@ -3494,7 +3494,7 @@ const ms = {
|
|
|
3494
3494
|
);
|
|
3495
3495
|
return /* @__PURE__ */ w("div", { className: l, children: [
|
|
3496
3496
|
/* @__PURE__ */ i(W, { icon: o }),
|
|
3497
|
-
/* @__PURE__ */ i(
|
|
3497
|
+
/* @__PURE__ */ i(De, { text: e }),
|
|
3498
3498
|
r && /* @__PURE__ */ i(
|
|
3499
3499
|
Q,
|
|
3500
3500
|
{
|
|
@@ -3559,7 +3559,7 @@ function ws(e) {
|
|
|
3559
3559
|
function xs(e) {
|
|
3560
3560
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
3561
3561
|
}
|
|
3562
|
-
function
|
|
3562
|
+
function Te(e) {
|
|
3563
3563
|
var t = typeof e;
|
|
3564
3564
|
return process.env.NODE_ENV !== "production" && (t = bs(e)), t;
|
|
3565
3565
|
}
|
|
@@ -3569,11 +3569,11 @@ function Zr(e, t, r) {
|
|
|
3569
3569
|
throw new Error(process.env.NODE_ENV === "production" ? se(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
3570
3570
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
3571
3571
|
if (typeof r != "function")
|
|
3572
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(1) : "Expected the enhancer to be a function. Instead, received: '" +
|
|
3572
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(1) : "Expected the enhancer to be a function. Instead, received: '" + Te(r) + "'");
|
|
3573
3573
|
return r(Zr)(e, t);
|
|
3574
3574
|
}
|
|
3575
3575
|
if (typeof e != "function")
|
|
3576
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(2) : "Expected the root reducer to be a function. Instead, received: '" +
|
|
3576
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(2) : "Expected the root reducer to be a function. Instead, received: '" + Te(e) + "'");
|
|
3577
3577
|
var o = e, s = t, a = [], l = a, c = !1;
|
|
3578
3578
|
function d() {
|
|
3579
3579
|
l === a && (l = a.slice());
|
|
@@ -3585,7 +3585,7 @@ function Zr(e, t, r) {
|
|
|
3585
3585
|
}
|
|
3586
3586
|
function p(m) {
|
|
3587
3587
|
if (typeof m != "function")
|
|
3588
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(4) : "Expected the listener to be a function. Instead, received: '" +
|
|
3588
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(4) : "Expected the listener to be a function. Instead, received: '" + Te(m) + "'");
|
|
3589
3589
|
if (c)
|
|
3590
3590
|
throw new Error(process.env.NODE_ENV === "production" ? se(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3591
3591
|
var x = !0;
|
|
@@ -3601,7 +3601,7 @@ function Zr(e, t, r) {
|
|
|
3601
3601
|
}
|
|
3602
3602
|
function h(m) {
|
|
3603
3603
|
if (!vs(m))
|
|
3604
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(7) : "Actions must be plain objects. Instead, the actual type was: '" +
|
|
3604
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(7) : "Actions must be plain objects. Instead, the actual type was: '" + Te(m) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
3605
3605
|
if (typeof m.type > "u")
|
|
3606
3606
|
throw new Error(process.env.NODE_ENV === "production" ? se(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
3607
3607
|
if (c)
|
|
@@ -3619,7 +3619,7 @@ function Zr(e, t, r) {
|
|
|
3619
3619
|
}
|
|
3620
3620
|
function f(m) {
|
|
3621
3621
|
if (typeof m != "function")
|
|
3622
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(10) : "Expected the nextReducer to be a function. Instead, received: '" +
|
|
3622
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(10) : "Expected the nextReducer to be a function. Instead, received: '" + Te(m));
|
|
3623
3623
|
o = m, h({
|
|
3624
3624
|
type: Xt.REPLACE
|
|
3625
3625
|
});
|
|
@@ -3637,7 +3637,7 @@ function Zr(e, t, r) {
|
|
|
3637
3637
|
*/
|
|
3638
3638
|
subscribe: function(C) {
|
|
3639
3639
|
if (typeof C != "object" || C === null)
|
|
3640
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(11) : "Expected the observer to be an object. Instead, received: '" +
|
|
3640
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(11) : "Expected the observer to be an object. Instead, received: '" + Te(C) + "'");
|
|
3641
3641
|
function y() {
|
|
3642
3642
|
C.next && C.next(u());
|
|
3643
3643
|
}
|
|
@@ -4423,7 +4423,7 @@ function Ii(e, t, r) {
|
|
|
4423
4423
|
writable: !0
|
|
4424
4424
|
}) : e[t] = r, e;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function Oe(e) {
|
|
4427
4427
|
for (var t = 1; t < arguments.length; t++) {
|
|
4428
4428
|
var r = arguments[t] != null ? arguments[t] : {}, n = Object.keys(r);
|
|
4429
4429
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(o) {
|
|
@@ -4447,7 +4447,7 @@ function Oi(e = Ti, t) {
|
|
|
4447
4447
|
const { payload: r } = t;
|
|
4448
4448
|
switch (t.type) {
|
|
4449
4449
|
case Je:
|
|
4450
|
-
return
|
|
4450
|
+
return Oe({}, e, {
|
|
4451
4451
|
itemType: r.itemType,
|
|
4452
4452
|
item: r.item,
|
|
4453
4453
|
sourceId: r.sourceId,
|
|
@@ -4456,25 +4456,25 @@ function Oi(e = Ti, t) {
|
|
|
4456
4456
|
didDrop: !1
|
|
4457
4457
|
});
|
|
4458
4458
|
case Vt:
|
|
4459
|
-
return
|
|
4459
|
+
return Oe({}, e, {
|
|
4460
4460
|
isSourcePublic: !0
|
|
4461
4461
|
});
|
|
4462
4462
|
case Qe:
|
|
4463
|
-
return
|
|
4463
|
+
return Oe({}, e, {
|
|
4464
4464
|
targetIds: r.targetIds
|
|
4465
4465
|
});
|
|
4466
4466
|
case rt:
|
|
4467
|
-
return e.targetIds.indexOf(r.targetId) === -1 ? e :
|
|
4467
|
+
return e.targetIds.indexOf(r.targetId) === -1 ? e : Oe({}, e, {
|
|
4468
4468
|
targetIds: Ls(e.targetIds, r.targetId)
|
|
4469
4469
|
});
|
|
4470
4470
|
case et:
|
|
4471
|
-
return
|
|
4471
|
+
return Oe({}, e, {
|
|
4472
4472
|
dropResult: r.dropResult,
|
|
4473
4473
|
didDrop: !0,
|
|
4474
4474
|
targetIds: []
|
|
4475
4475
|
});
|
|
4476
4476
|
case tt:
|
|
4477
|
-
return
|
|
4477
|
+
return Oe({}, e, {
|
|
4478
4478
|
itemType: null,
|
|
4479
4479
|
item: null,
|
|
4480
4480
|
sourceId: null,
|
|
@@ -5302,7 +5302,7 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5302
5302
|
stroke: t.stroke ?? X.stroke,
|
|
5303
5303
|
className: t.className
|
|
5304
5304
|
}
|
|
5305
|
-
),
|
|
5305
|
+
), ye = (e, t) => /* @__PURE__ */ i(
|
|
5306
5306
|
e,
|
|
5307
5307
|
{
|
|
5308
5308
|
width: Number(t.size ?? X.size),
|
|
@@ -5311,25 +5311,25 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5311
5311
|
}
|
|
5312
5312
|
), sr = {
|
|
5313
5313
|
".bmp": (e) => z(oo, e),
|
|
5314
|
-
".cpp": (e) =>
|
|
5315
|
-
".c": (e) =>
|
|
5316
|
-
".cs": (e) =>
|
|
5314
|
+
".cpp": (e) => ye(y1, e),
|
|
5315
|
+
".c": (e) => ye(w1, e),
|
|
5316
|
+
".cs": (e) => ye(x1, e),
|
|
5317
5317
|
".css": (e) => z(no, e),
|
|
5318
5318
|
".csv": (e) => z(ro, e),
|
|
5319
5319
|
".doc": (e) => z(to, e),
|
|
5320
5320
|
".docx": (e) => z(eo, e),
|
|
5321
5321
|
".html": (e) => z(Qn, e),
|
|
5322
|
-
".ini": (e) =>
|
|
5322
|
+
".ini": (e) => ye(D1, e),
|
|
5323
5323
|
".jpg": (e) => z(Jn, e),
|
|
5324
5324
|
".js": (e) => z(Kn, e),
|
|
5325
|
-
".json": (e) =>
|
|
5325
|
+
".json": (e) => ye(S1, e),
|
|
5326
5326
|
".jsx": (e) => z(Yn, e),
|
|
5327
|
-
".md": (e) =>
|
|
5327
|
+
".md": (e) => ye(L1, e),
|
|
5328
5328
|
".pdf": (e) => z(Xn, e),
|
|
5329
5329
|
".php": (e) => z(Zn, e),
|
|
5330
5330
|
".png": (e) => z(qn, e),
|
|
5331
5331
|
".ppt": (e) => z(Un, e),
|
|
5332
|
-
".py": (e) =>
|
|
5332
|
+
".py": (e) => ye(I1, e),
|
|
5333
5333
|
".rs": (e) => z(Wn, e),
|
|
5334
5334
|
".sql": (e) => z($n, e),
|
|
5335
5335
|
".svg": (e) => z(Gn, e),
|
|
@@ -5406,7 +5406,7 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5406
5406
|
}
|
|
5407
5407
|
),
|
|
5408
5408
|
/* @__PURE__ */ i(
|
|
5409
|
-
|
|
5409
|
+
De,
|
|
5410
5410
|
{
|
|
5411
5411
|
cssClass: "text-primary dial-small flex-1 min-w-0",
|
|
5412
5412
|
text: e
|
|
@@ -5422,7 +5422,7 @@ const ir = () => typeof window < "u" && window.innerWidth < 1024, E1 = () => {
|
|
|
5422
5422
|
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
5423
5423
|
}, []), e;
|
|
5424
5424
|
};
|
|
5425
|
-
var N1 = /* @__PURE__ */ ((e) => (e.Dropdown = "dropdown", e.Menu = "menu", e))(N1 || {}),
|
|
5425
|
+
var N1 = /* @__PURE__ */ ((e) => (e.Dropdown = "dropdown", e.Menu = "menu", e))(N1 || {}), we = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.ContextMenu = "contextMenu", e))(we || {}), sn = /* @__PURE__ */ ((e) => (e.Item = "item", e.Divider = "divider", e))(sn || {});
|
|
5426
5426
|
const k1 = b(
|
|
5427
5427
|
"flex items-center gap-2 align-middle",
|
|
5428
5428
|
"h-auto px-0 bg-transparent border-0"
|
|
@@ -5451,7 +5451,7 @@ const k1 = b(
|
|
|
5451
5451
|
children: e,
|
|
5452
5452
|
menu: t,
|
|
5453
5453
|
renderOverlay: r,
|
|
5454
|
-
trigger: n = [
|
|
5454
|
+
trigger: n = [we.Click],
|
|
5455
5455
|
placement: o,
|
|
5456
5456
|
disabled: s = !1,
|
|
5457
5457
|
open: a,
|
|
@@ -5489,21 +5489,21 @@ const k1 = b(
|
|
|
5489
5489
|
xn({
|
|
5490
5490
|
padding: He,
|
|
5491
5491
|
apply({ availableWidth: g, availableHeight: H, elements: F }) {
|
|
5492
|
-
const ce = F.floating,
|
|
5492
|
+
const ce = F.floating, ve = j(F.reference);
|
|
5493
5493
|
ce.style.setProperty(
|
|
5494
5494
|
"--fui-available-height",
|
|
5495
5495
|
`${Math.floor(H)}px`
|
|
5496
5496
|
), ce.style.setProperty(
|
|
5497
5497
|
"--reference-width",
|
|
5498
|
-
L ? `${Math.round(
|
|
5499
|
-
), L ? ce.style.minWidth = `${Math.round(
|
|
5498
|
+
L ? `${Math.round(ve)}px` : "0px"
|
|
5499
|
+
), L ? ce.style.minWidth = `${Math.round(ve)}px` : ce.style.removeProperty("min-width"), ce.style.maxWidth = `${Math.floor(g)}px`, ce.style.maxHeight = `${Math.floor(H)}px`;
|
|
5500
5500
|
}
|
|
5501
5501
|
})
|
|
5502
5502
|
]
|
|
5503
5503
|
}), ee = Dn(V, {
|
|
5504
|
-
enabled: n.includes(
|
|
5504
|
+
enabled: n.includes(we.Click) && !s
|
|
5505
5505
|
}), de = br(V, {
|
|
5506
|
-
enabled: n.includes(
|
|
5506
|
+
enabled: n.includes(we.Hover) && !s,
|
|
5507
5507
|
move: !1,
|
|
5508
5508
|
restMs: 40,
|
|
5509
5509
|
delay: { open: 80, close: 80 }
|
|
@@ -5538,7 +5538,7 @@ const k1 = b(
|
|
|
5538
5538
|
[_]
|
|
5539
5539
|
), ge = A(
|
|
5540
5540
|
(g) => {
|
|
5541
|
-
!n.includes(
|
|
5541
|
+
!n.includes(we.ContextMenu) || s || (g.preventDefault(), x && ue(g.clientX, g.clientY), P(!0));
|
|
5542
5542
|
},
|
|
5543
5543
|
[x, s, P, ue, n]
|
|
5544
5544
|
), he = A(
|
|
@@ -5691,7 +5691,7 @@ const k1 = b(
|
|
|
5691
5691
|
disabled: r,
|
|
5692
5692
|
children: [
|
|
5693
5693
|
/* @__PURE__ */ i(
|
|
5694
|
-
|
|
5694
|
+
De,
|
|
5695
5695
|
{
|
|
5696
5696
|
text: e.name,
|
|
5697
5697
|
contentClassName: "max-w-[200px]",
|
|
@@ -5736,7 +5736,7 @@ const k1 = b(
|
|
|
5736
5736
|
}, [t]), u ? /* @__PURE__ */ i("div", { className: "h-11 flex items-center bg-layer-3 px-4", children: /* @__PURE__ */ i(
|
|
5737
5737
|
wt,
|
|
5738
5738
|
{
|
|
5739
|
-
trigger: [
|
|
5739
|
+
trigger: [we.Click],
|
|
5740
5740
|
open: o,
|
|
5741
5741
|
onOpenChange: s,
|
|
5742
5742
|
placement: "bottom-start",
|
|
@@ -5800,7 +5800,7 @@ const k1 = b(
|
|
|
5800
5800
|
c && /* @__PURE__ */ i("div", { className: "flex items-center ml-2", children: /* @__PURE__ */ i(
|
|
5801
5801
|
wt,
|
|
5802
5802
|
{
|
|
5803
|
-
trigger: [
|
|
5803
|
+
trigger: [we.Click],
|
|
5804
5804
|
open: a,
|
|
5805
5805
|
onOpenChange: l,
|
|
5806
5806
|
placement: "bottom-end",
|
|
@@ -5841,7 +5841,7 @@ const k1 = b(
|
|
|
5841
5841
|
iconBefore: l,
|
|
5842
5842
|
titleCssClass: c
|
|
5843
5843
|
}) => {
|
|
5844
|
-
const d = Z(_1, a), u = !!t && !o && !n, p = typeof e == "string" ? /* @__PURE__ */ i(
|
|
5844
|
+
const d = Z(_1, a), u = !!t && !o && !n, p = typeof e == "string" ? /* @__PURE__ */ i(De, { text: e }) : e;
|
|
5845
5845
|
return /* @__PURE__ */ w("li", { className: d, children: [
|
|
5846
5846
|
u ? /* @__PURE__ */ w(
|
|
5847
5847
|
"a",
|
|
@@ -5931,7 +5931,7 @@ const k1 = b(
|
|
|
5931
5931
|
disableTooltip: c,
|
|
5932
5932
|
onChange: d
|
|
5933
5933
|
}) => /* @__PURE__ */ i(
|
|
5934
|
-
|
|
5934
|
+
Le,
|
|
5935
5935
|
{
|
|
5936
5936
|
tooltip: c ? null : e,
|
|
5937
5937
|
triggerClassName: Z("flex", o),
|
|
@@ -6052,7 +6052,7 @@ const k1 = b(
|
|
|
6052
6052
|
] }),
|
|
6053
6053
|
/* @__PURE__ */ i(W, { icon: e }),
|
|
6054
6054
|
/* @__PURE__ */ i(
|
|
6055
|
-
|
|
6055
|
+
Le,
|
|
6056
6056
|
{
|
|
6057
6057
|
tooltip: P || n,
|
|
6058
6058
|
triggerClassName: b(c, "flex-1"),
|
|
@@ -6065,7 +6065,10 @@ const k1 = b(
|
|
|
6065
6065
|
placeholder: s,
|
|
6066
6066
|
value: R ? void 0 : n ?? "",
|
|
6067
6067
|
disabled: u,
|
|
6068
|
-
className: b(
|
|
6068
|
+
className: b(
|
|
6069
|
+
"border-0 bg-transparent w-full truncate",
|
|
6070
|
+
a
|
|
6071
|
+
),
|
|
6069
6072
|
onChange: (M) => !p && _?.(M),
|
|
6070
6073
|
onKeyDown: j,
|
|
6071
6074
|
onWheel: $,
|
|
@@ -6185,7 +6188,7 @@ const k1 = b(
|
|
|
6185
6188
|
...l
|
|
6186
6189
|
}
|
|
6187
6190
|
),
|
|
6188
|
-
/* @__PURE__ */ i(
|
|
6191
|
+
/* @__PURE__ */ i(xe, { errorText: a })
|
|
6189
6192
|
] }), Qa = ({
|
|
6190
6193
|
title: e,
|
|
6191
6194
|
switchId: t,
|
|
@@ -6261,7 +6264,7 @@ const Y1 = "z-[52] flex items-center justify-center bg-blackout md:p-4", K1 = "d
|
|
|
6261
6264
|
"flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",
|
|
6262
6265
|
s
|
|
6263
6266
|
),
|
|
6264
|
-
children: /* @__PURE__ */ i(
|
|
6267
|
+
children: /* @__PURE__ */ i(Le, { tooltip: C, children: C })
|
|
6265
6268
|
}
|
|
6266
6269
|
) : C : /* @__PURE__ */ i("span", {});
|
|
6267
6270
|
return /* @__PURE__ */ i(Tt, { id: r, children: /* @__PURE__ */ i(Sn, { className: b(Y1, o), children: /* @__PURE__ */ i(wr, { context: h, children: /* @__PURE__ */ w(
|
|
@@ -6373,7 +6376,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6373
6376
|
"flex gap-x-2 gap-y-1",
|
|
6374
6377
|
t
|
|
6375
6378
|
),
|
|
6376
|
-
children: e?.map((n) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
6379
|
+
children: e?.map((n) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(Le, { tooltip: n, children: /* @__PURE__ */ i(
|
|
6377
6380
|
Pt,
|
|
6378
6381
|
{
|
|
6379
6382
|
tag: n,
|
|
@@ -6411,8 +6414,8 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6411
6414
|
dr,
|
|
6412
6415
|
{
|
|
6413
6416
|
role: "img",
|
|
6414
|
-
width:
|
|
6415
|
-
height:
|
|
6417
|
+
width: Ne,
|
|
6418
|
+
height: Ne
|
|
6416
6419
|
}
|
|
6417
6420
|
)
|
|
6418
6421
|
}
|
|
@@ -6438,7 +6441,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6438
6441
|
c && "dial-input-error"
|
|
6439
6442
|
),
|
|
6440
6443
|
children: [
|
|
6441
|
-
/* @__PURE__ */ i(
|
|
6444
|
+
/* @__PURE__ */ i(Le, { tooltip: String(h), children: /* @__PURE__ */ i("span", { className: o, children: h }) }),
|
|
6442
6445
|
!r && /* @__PURE__ */ i("div", { className: "flex-shrink-0", children: /* @__PURE__ */ i(
|
|
6443
6446
|
W,
|
|
6444
6447
|
{
|
|
@@ -6446,8 +6449,8 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6446
6449
|
dr,
|
|
6447
6450
|
{
|
|
6448
6451
|
role: "img",
|
|
6449
|
-
width:
|
|
6450
|
-
height:
|
|
6452
|
+
width: Ne,
|
|
6453
|
+
height: Ne
|
|
6451
6454
|
}
|
|
6452
6455
|
)
|
|
6453
6456
|
}
|
|
@@ -6457,7 +6460,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6457
6460
|
)
|
|
6458
6461
|
}
|
|
6459
6462
|
),
|
|
6460
|
-
c && /* @__PURE__ */ i(
|
|
6463
|
+
c && /* @__PURE__ */ i(xe, { errorText: c })
|
|
6461
6464
|
] }),
|
|
6462
6465
|
t && po(e, document.body)
|
|
6463
6466
|
] });
|
|
@@ -6530,7 +6533,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6530
6533
|
)
|
|
6531
6534
|
] }),
|
|
6532
6535
|
children: /* @__PURE__ */ i("div", { className: "px-6 py-4", children: /* @__PURE__ */ i(
|
|
6533
|
-
|
|
6536
|
+
gs,
|
|
6534
6537
|
{
|
|
6535
6538
|
radioButtons: o,
|
|
6536
6539
|
labelCssClass: "dial-small",
|
|
@@ -6650,7 +6653,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6650
6653
|
...s
|
|
6651
6654
|
}
|
|
6652
6655
|
),
|
|
6653
|
-
/* @__PURE__ */ i(
|
|
6656
|
+
/* @__PURE__ */ i(xe, { errorText: o })
|
|
6654
6657
|
] });
|
|
6655
6658
|
var Ke = /* @__PURE__ */ ((e) => (e.Small = "small", e.Base = "base", e))(Ke || {});
|
|
6656
6659
|
const ua = {
|
|
@@ -6886,7 +6889,7 @@ const ua = {
|
|
|
6886
6889
|
)
|
|
6887
6890
|
}
|
|
6888
6891
|
),
|
|
6889
|
-
/* @__PURE__ */ i(
|
|
6892
|
+
/* @__PURE__ */ i(xe, { errorText: s })
|
|
6890
6893
|
] });
|
|
6891
6894
|
}, pa = "dial-input flex px-3 py-2 w-full items-center justify-between gap-2 dial-small min-h-[38px]", ga = "w-full rounded", dt = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none", ha = "bg-accent-primary-alpha", ma = "bg-accent-primary-alpha border-l border-accent-primary border-1", ur = "opacity-75", Ca = /* @__PURE__ */ i(Er, { size: 16 }), un = ({
|
|
6892
6895
|
options: e,
|
|
@@ -6978,7 +6981,7 @@ const ua = {
|
|
|
6978
6981
|
}
|
|
6979
6982
|
), [t, e, _, de]), K = A(() => t ? ge ? U() : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }) : oe ? /* @__PURE__ */ w(pe, { children: [
|
|
6980
6983
|
oe.icon && /* @__PURE__ */ i(W, { icon: oe.icon }),
|
|
6981
|
-
/* @__PURE__ */ i(
|
|
6984
|
+
/* @__PURE__ */ i(De, { text: oe.label })
|
|
6982
6985
|
] }) : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }), [ge, t, o, U, oe]);
|
|
6983
6986
|
return /* @__PURE__ */ i(
|
|
6984
6987
|
wt,
|
|
@@ -7021,7 +7024,7 @@ const ua = {
|
|
|
7021
7024
|
)
|
|
7022
7025
|
] }),
|
|
7023
7026
|
t && l && Y.length > 0 && /* @__PURE__ */ i("div", { className: b(dt, "mt-2"), children: /* @__PURE__ */ i(
|
|
7024
|
-
|
|
7027
|
+
Ut,
|
|
7025
7028
|
{
|
|
7026
7029
|
id: `${R}-selectAll`,
|
|
7027
7030
|
label: c,
|
|
@@ -7032,7 +7035,7 @@ const ua = {
|
|
|
7032
7035
|
}
|
|
7033
7036
|
) }),
|
|
7034
7037
|
/* @__PURE__ */ i("div", { className: "overflow-y-auto py-1", children: M.length === 0 ? /* @__PURE__ */ i("div", { className: "px-2 py-3", children: /* @__PURE__ */ i(
|
|
7035
|
-
|
|
7038
|
+
hs,
|
|
7036
7039
|
{
|
|
7037
7040
|
icon: p ?? /* @__PURE__ */ i(Or, { size: 24 }),
|
|
7038
7041
|
title: d,
|
|
@@ -7050,7 +7053,7 @@ const ua = {
|
|
|
7050
7053
|
"w-full"
|
|
7051
7054
|
),
|
|
7052
7055
|
children: /* @__PURE__ */ i(
|
|
7053
|
-
|
|
7056
|
+
Ut,
|
|
7054
7057
|
{
|
|
7055
7058
|
id: `${R}-${g.value}`,
|
|
7056
7059
|
label: /* @__PURE__ */ w("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
|
|
@@ -7081,7 +7084,7 @@ const ua = {
|
|
|
7081
7084
|
onClick: () => !g.disabled && ee(g.value),
|
|
7082
7085
|
children: /* @__PURE__ */ w("div", { className: "flex items-center gap-2 w-full", children: [
|
|
7083
7086
|
g.icon && /* @__PURE__ */ i(W, { icon: g.icon }),
|
|
7084
|
-
/* @__PURE__ */ i(
|
|
7087
|
+
/* @__PURE__ */ i(De, { text: g.label })
|
|
7085
7088
|
] })
|
|
7086
7089
|
},
|
|
7087
7090
|
g.value
|
|
@@ -7836,7 +7839,7 @@ const Ra = function(t, r, n) {
|
|
|
7836
7839
|
]
|
|
7837
7840
|
}
|
|
7838
7841
|
),
|
|
7839
|
-
/* @__PURE__ */ i(pe, { children: v ? /* @__PURE__ */ i(
|
|
7842
|
+
/* @__PURE__ */ i(pe, { children: v ? /* @__PURE__ */ i(xe, { errorText: l }) : L(h) && /* @__PURE__ */ i(xe, { errorText: c }) })
|
|
7840
7843
|
] });
|
|
7841
7844
|
}, Ma = ({
|
|
7842
7845
|
iconBefore: e,
|
|
@@ -7979,7 +7982,7 @@ const Ra = function(t, r, n) {
|
|
|
7979
7982
|
] });
|
|
7980
7983
|
};
|
|
7981
7984
|
export {
|
|
7982
|
-
|
|
7985
|
+
Ee as AlertVariant,
|
|
7983
7986
|
J as ButtonVariant,
|
|
7984
7987
|
Ye as ConfirmationPopupVariant,
|
|
7985
7988
|
Ba as DialAlert,
|
|
@@ -7988,14 +7991,14 @@ export {
|
|
|
7988
7991
|
Xa as DialBreadcrumb,
|
|
7989
7992
|
G1 as DialBreadcrumbItem,
|
|
7990
7993
|
Q as DialButton,
|
|
7991
|
-
|
|
7994
|
+
Ut as DialCheckbox,
|
|
7992
7995
|
an as DialCloseButton,
|
|
7993
7996
|
$a as DialCollapsibleSidebar,
|
|
7994
7997
|
el as DialConfirmationPopup,
|
|
7995
7998
|
Ua as DialDraggableItem,
|
|
7996
7999
|
wt as DialDropdown,
|
|
7997
|
-
|
|
7998
|
-
|
|
8000
|
+
De as DialEllipsisTooltip,
|
|
8001
|
+
xe as DialErrorText,
|
|
7999
8002
|
ke as DialFieldLabel,
|
|
8000
8003
|
T1 as DialFileIcon,
|
|
8001
8004
|
qa as DialFileName,
|
|
@@ -8007,13 +8010,13 @@ export {
|
|
|
8007
8010
|
Wa as DialLabelledText,
|
|
8008
8011
|
al as DialLoadFileAreaField,
|
|
8009
8012
|
Hr as DialLoader,
|
|
8010
|
-
|
|
8013
|
+
hs as DialNoDataContent,
|
|
8011
8014
|
Ya as DialNumberInputField,
|
|
8012
8015
|
da as DialPasswordInput,
|
|
8013
8016
|
nl as DialPasswordInputField,
|
|
8014
8017
|
zt as DialPopup,
|
|
8015
|
-
|
|
8016
|
-
|
|
8018
|
+
ls as DialRadioButton,
|
|
8019
|
+
gs as DialRadioGroup,
|
|
8017
8020
|
tl as DialRadioGroupPopupField,
|
|
8018
8021
|
$1 as DialRemoveButton,
|
|
8019
8022
|
fa as DialSearch,
|
|
@@ -8029,7 +8032,7 @@ export {
|
|
|
8029
8032
|
Ja as DialTextAreaField,
|
|
8030
8033
|
Ka as DialTextInputField,
|
|
8031
8034
|
W1 as DialTextarea,
|
|
8032
|
-
|
|
8035
|
+
Le as DialTooltip,
|
|
8033
8036
|
N1 as DropdownType,
|
|
8034
8037
|
Xe as FormItemOrientation,
|
|
8035
8038
|
Ce as PopupSize,
|