@firecms/ui 3.1.0-canary.1df3b2c → 3.1.0-canary.501d471
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/components/BooleanSwitchWithLabel.d.ts +2 -1
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/MultiSelect.d.ts +1 -1
- package/dist/components/ResizablePanels.d.ts +16 -0
- package/dist/components/SearchableSelect.d.ts +48 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Tabs.d.ts +8 -1
- package/dist/components/Tooltip.d.ts +18 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/useOutsideAlerter.d.ts +1 -1
- package/dist/icons/FirestoreIcon.d.ts +6 -0
- package/dist/icons/components/DatabaseIcon.d.ts +6 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/index.es.js +1444 -431
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1446 -433
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -6
- package/src/components/BooleanSwitchWithLabel.tsx +4 -0
- package/src/components/Button.tsx +2 -1
- package/src/components/Chip.tsx +4 -3
- package/src/components/DateTimeField.tsx +7 -2
- package/src/components/DebouncedTextField.tsx +3 -3
- package/src/components/MultiSelect.tsx +27 -10
- package/src/components/ResizablePanels.tsx +181 -0
- package/src/components/SearchableSelect.tsx +335 -0
- package/src/components/Select.tsx +62 -62
- package/src/components/Skeleton.tsx +4 -2
- package/src/components/Tabs.tsx +150 -34
- package/src/components/TextareaAutosize.tsx +77 -212
- package/src/components/Tooltip.tsx +7 -6
- package/src/components/index.tsx +2 -0
- package/src/hooks/useOutsideAlerter.tsx +1 -1
- package/src/icons/FirestoreIcon.tsx +47 -0
- package/src/icons/components/DatabaseIcon.tsx +10 -0
- package/src/icons/index.ts +2 -0
package/dist/index.es.js
CHANGED
|
@@ -23,7 +23,6 @@ import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
|
23
23
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
24
24
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
25
25
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
26
|
-
import * as ReactDOM from "react-dom";
|
|
27
26
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
28
27
|
const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
|
|
29
28
|
const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-800 focus:dark:bg-opacity-60 focus:bg-surface-accent-100/70 dark:focus:bg-surface-800/60";
|
|
@@ -812,6 +811,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
|
|
|
812
811
|
className,
|
|
813
812
|
fullWidth = true,
|
|
814
813
|
inputClassName,
|
|
814
|
+
switchAdornment,
|
|
815
815
|
...props
|
|
816
816
|
}) {
|
|
817
817
|
const ref = React__default.useRef(null);
|
|
@@ -837,6 +837,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
|
|
|
837
837
|
}
|
|
838
838
|
}, children: [
|
|
839
839
|
/* @__PURE__ */ jsx(BooleanSwitch, { value, ref: refInput, size, className: cls(invisible && focus ? focusedClasses : "", inputClassName), disabled, ...props }),
|
|
840
|
+
switchAdornment,
|
|
840
841
|
/* @__PURE__ */ jsx("div", { className: cls("flex-grow", position === "end" ? "mr-4" : "ml-4", size === "small" || size === "smallest" ? "text-sm" : "text-base"), children: label })
|
|
841
842
|
] });
|
|
842
843
|
};
|
|
@@ -853,18 +854,29 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
853
854
|
let t5;
|
|
854
855
|
let t6;
|
|
855
856
|
if ($[0] !== t0) {
|
|
856
|
-
|
|
857
|
-
children,
|
|
858
|
-
className,
|
|
859
|
-
variant:
|
|
860
|
-
disabled:
|
|
861
|
-
size:
|
|
862
|
-
startIcon:
|
|
863
|
-
fullWidth:
|
|
864
|
-
component:
|
|
865
|
-
color:
|
|
866
|
-
|
|
867
|
-
|
|
857
|
+
const {
|
|
858
|
+
children: t72,
|
|
859
|
+
className: t82,
|
|
860
|
+
variant: t92,
|
|
861
|
+
disabled: t102,
|
|
862
|
+
size: t112,
|
|
863
|
+
startIcon: t122,
|
|
864
|
+
fullWidth: t132,
|
|
865
|
+
component: t142,
|
|
866
|
+
color: t152,
|
|
867
|
+
loading,
|
|
868
|
+
...t162
|
|
869
|
+
} = t0;
|
|
870
|
+
children = t72;
|
|
871
|
+
className = t82;
|
|
872
|
+
t1 = t92;
|
|
873
|
+
t2 = t102;
|
|
874
|
+
t3 = t112;
|
|
875
|
+
t4 = t122;
|
|
876
|
+
t5 = t132;
|
|
877
|
+
Component = t142;
|
|
878
|
+
t6 = t152;
|
|
879
|
+
props = t162;
|
|
868
880
|
$[0] = t0;
|
|
869
881
|
$[1] = Component;
|
|
870
882
|
$[2] = children;
|
|
@@ -942,7 +954,7 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
942
954
|
"text-text-disabled dark:text-text-disabled-dark": disabled,
|
|
943
955
|
"border border-transparent opacity-50": t23,
|
|
944
956
|
"border border-surface-500 opacity-50": t24,
|
|
945
|
-
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-
|
|
957
|
+
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-70 bg-surface-300/70 dark:bg-surface-500/70": t25
|
|
946
958
|
});
|
|
947
959
|
const sizeClasses2 = cls({
|
|
948
960
|
"py-1 px-2": size === "small",
|
|
@@ -1408,6 +1420,50 @@ function HandleIcon() {
|
|
|
1408
1420
|
}
|
|
1409
1421
|
return t0;
|
|
1410
1422
|
}
|
|
1423
|
+
const sizeMap = {
|
|
1424
|
+
smallest: 16,
|
|
1425
|
+
small: 20,
|
|
1426
|
+
medium: 24,
|
|
1427
|
+
large: 28
|
|
1428
|
+
};
|
|
1429
|
+
function FirestoreIcon(props) {
|
|
1430
|
+
const $ = c(7);
|
|
1431
|
+
const s = typeof props.size === "number" ? props.size : sizeMap[props.size ?? "medium"] ?? 24;
|
|
1432
|
+
let t0;
|
|
1433
|
+
let t1;
|
|
1434
|
+
let t2;
|
|
1435
|
+
let t3;
|
|
1436
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1437
|
+
t0 = /* @__PURE__ */ jsx("path", { d: "M22.575 87.933A52.16 52.16 0 0034.787 90.513c5.84.204 11.395-1.004 16.359-3.298a70.68 70.68 0 01-15.948-10.013c-2.98 4.778-7.393 8.548-12.623 10.731z", opacity: ".7" });
|
|
1438
|
+
t1 = /* @__PURE__ */ jsx("path", { d: "M35.2 77.205c-10.505-9.714-16.878-23.776-16.339-39.2.018-.499.045-1.001.075-1.5a39.51 39.51 0 00-5.866-.855 38.77 38.77 0 00-8.34.997A53.07 53.07 0 00.022 53.236c-.544 15.58 8.884 29.191 22.553 34.697 5.23-2.18 9.642-5.948 12.625-10.728z", opacity: ".6" });
|
|
1439
|
+
t2 = /* @__PURE__ */ jsx("path", { d: "M35.2 77.205a31.63 31.63 0 004.096-13.428c.452-12.985-8.278-24.155-20.36-27.273-.03.5-.058 1.002-.076 1.502-.536 15.421 5.835 29.483 16.34 39.199z", opacity: ".7" });
|
|
1440
|
+
t3 = /* @__PURE__ */ jsx("path", { d: "M37.944 0a73.99 73.99 0 00-15.603 21.156 72.82 72.82 0 00-3.41 15.349c12.082 3.117 20.812 14.288 20.36 27.275a31.58 31.58 0 01-4.098 13.425 70.76 70.76 0 0015.948 10.013c11.951-5.523 20.43-17.41 20.919-31.467.318-9.11-3.181-17.228-8.126-24.081C58.711 24.424 37.944 0 37.944 0z" });
|
|
1441
|
+
$[0] = t0;
|
|
1442
|
+
$[1] = t1;
|
|
1443
|
+
$[2] = t2;
|
|
1444
|
+
$[3] = t3;
|
|
1445
|
+
} else {
|
|
1446
|
+
t0 = $[0];
|
|
1447
|
+
t1 = $[1];
|
|
1448
|
+
t2 = $[2];
|
|
1449
|
+
t3 = $[3];
|
|
1450
|
+
}
|
|
1451
|
+
let t4;
|
|
1452
|
+
if ($[4] !== props.className || $[5] !== s) {
|
|
1453
|
+
t4 = /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: props.className, fill: "currentColor", width: s, height: s, viewBox: "0 0 73 91", children: [
|
|
1454
|
+
t0,
|
|
1455
|
+
t1,
|
|
1456
|
+
t2,
|
|
1457
|
+
t3
|
|
1458
|
+
] });
|
|
1459
|
+
$[4] = props.className;
|
|
1460
|
+
$[5] = s;
|
|
1461
|
+
$[6] = t4;
|
|
1462
|
+
} else {
|
|
1463
|
+
t4 = $[6];
|
|
1464
|
+
}
|
|
1465
|
+
return t4;
|
|
1466
|
+
}
|
|
1411
1467
|
const _10kIcon = React__default.forwardRef((props, ref) => {
|
|
1412
1468
|
const $ = c(3);
|
|
1413
1469
|
let t0;
|
|
@@ -8674,6 +8730,20 @@ const DatasetLinkedIcon = React__default.forwardRef((props, ref) => {
|
|
|
8674
8730
|
return t0;
|
|
8675
8731
|
});
|
|
8676
8732
|
DatasetLinkedIcon.displayName = "DatasetLinkedIcon";
|
|
8733
|
+
const DatabaseIcon = React__default.forwardRef((props, ref) => {
|
|
8734
|
+
const $ = c(3);
|
|
8735
|
+
let t0;
|
|
8736
|
+
if ($[0] !== props || $[1] !== ref) {
|
|
8737
|
+
t0 = /* @__PURE__ */ jsx(Icon, { ...props, iconKey: "database", ref });
|
|
8738
|
+
$[0] = props;
|
|
8739
|
+
$[1] = ref;
|
|
8740
|
+
$[2] = t0;
|
|
8741
|
+
} else {
|
|
8742
|
+
t0 = $[2];
|
|
8743
|
+
}
|
|
8744
|
+
return t0;
|
|
8745
|
+
});
|
|
8746
|
+
DatabaseIcon.displayName = "DatabaseIcon";
|
|
8677
8747
|
const DateRangeIcon = React__default.forwardRef((props, ref) => {
|
|
8678
8748
|
const $ = c(3);
|
|
8679
8749
|
let t0;
|
|
@@ -32284,8 +32354,8 @@ const sizeClassNames = {
|
|
|
32284
32354
|
medium: "px-3 py-1 text-sm",
|
|
32285
32355
|
large: "px-4 py-1.5 text-sm"
|
|
32286
32356
|
};
|
|
32287
|
-
|
|
32288
|
-
const $ = c(
|
|
32357
|
+
const Chip = React__default.forwardRef(function Chip2(t0, ref) {
|
|
32358
|
+
const $ = c(19);
|
|
32289
32359
|
const {
|
|
32290
32360
|
children,
|
|
32291
32361
|
colorScheme,
|
|
@@ -32340,128 +32410,184 @@ function Chip(t0) {
|
|
|
32340
32410
|
t10 = $[11];
|
|
32341
32411
|
}
|
|
32342
32412
|
let t11;
|
|
32343
|
-
if ($[12] !== children || $[13] !== icon || $[14] !== onClick || $[15] !==
|
|
32344
|
-
t11 = /* @__PURE__ */ jsxs("div", { className: t7, onClick, style: t10, children: [
|
|
32413
|
+
if ($[12] !== children || $[13] !== icon || $[14] !== onClick || $[15] !== ref || $[16] !== t10 || $[17] !== t7) {
|
|
32414
|
+
t11 = /* @__PURE__ */ jsxs("div", { ref, className: t7, onClick, style: t10, children: [
|
|
32345
32415
|
children,
|
|
32346
32416
|
icon
|
|
32347
32417
|
] });
|
|
32348
32418
|
$[12] = children;
|
|
32349
32419
|
$[13] = icon;
|
|
32350
32420
|
$[14] = onClick;
|
|
32351
|
-
$[15] =
|
|
32352
|
-
$[16] =
|
|
32353
|
-
$[17] =
|
|
32421
|
+
$[15] = ref;
|
|
32422
|
+
$[16] = t10;
|
|
32423
|
+
$[17] = t7;
|
|
32424
|
+
$[18] = t11;
|
|
32354
32425
|
} else {
|
|
32355
|
-
t11 = $[
|
|
32426
|
+
t11 = $[18];
|
|
32356
32427
|
}
|
|
32357
32428
|
return t11;
|
|
32358
|
-
}
|
|
32359
|
-
const Tooltip = (t0) => {
|
|
32360
|
-
const $ = c(
|
|
32361
|
-
|
|
32362
|
-
|
|
32363
|
-
|
|
32364
|
-
|
|
32365
|
-
|
|
32366
|
-
|
|
32367
|
-
|
|
32368
|
-
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
|
|
32375
|
-
|
|
32376
|
-
|
|
32377
|
-
|
|
32429
|
+
});
|
|
32430
|
+
const Tooltip = React__default.forwardRef((t0, ref) => {
|
|
32431
|
+
const $ = c(47);
|
|
32432
|
+
let align;
|
|
32433
|
+
let children;
|
|
32434
|
+
let className;
|
|
32435
|
+
let container;
|
|
32436
|
+
let defaultOpen;
|
|
32437
|
+
let onOpenChange;
|
|
32438
|
+
let open;
|
|
32439
|
+
let props;
|
|
32440
|
+
let sideOffset;
|
|
32441
|
+
let style;
|
|
32442
|
+
let t1;
|
|
32443
|
+
let t2;
|
|
32444
|
+
let t3;
|
|
32445
|
+
let title;
|
|
32446
|
+
let tooltipClassName;
|
|
32447
|
+
let tooltipStyle;
|
|
32448
|
+
if ($[0] !== t0) {
|
|
32449
|
+
({
|
|
32450
|
+
open,
|
|
32451
|
+
defaultOpen,
|
|
32452
|
+
side: t1,
|
|
32453
|
+
delayDuration: t2,
|
|
32454
|
+
sideOffset,
|
|
32455
|
+
align,
|
|
32456
|
+
onOpenChange,
|
|
32457
|
+
title,
|
|
32458
|
+
tooltipClassName,
|
|
32459
|
+
tooltipStyle,
|
|
32460
|
+
children,
|
|
32461
|
+
asChild: t3,
|
|
32462
|
+
container,
|
|
32463
|
+
className,
|
|
32464
|
+
style,
|
|
32465
|
+
...props
|
|
32466
|
+
} = t0);
|
|
32467
|
+
$[0] = t0;
|
|
32468
|
+
$[1] = align;
|
|
32469
|
+
$[2] = children;
|
|
32470
|
+
$[3] = className;
|
|
32471
|
+
$[4] = container;
|
|
32472
|
+
$[5] = defaultOpen;
|
|
32473
|
+
$[6] = onOpenChange;
|
|
32474
|
+
$[7] = open;
|
|
32475
|
+
$[8] = props;
|
|
32476
|
+
$[9] = sideOffset;
|
|
32477
|
+
$[10] = style;
|
|
32478
|
+
$[11] = t1;
|
|
32479
|
+
$[12] = t2;
|
|
32480
|
+
$[13] = t3;
|
|
32481
|
+
$[14] = title;
|
|
32482
|
+
$[15] = tooltipClassName;
|
|
32483
|
+
$[16] = tooltipStyle;
|
|
32484
|
+
} else {
|
|
32485
|
+
align = $[1];
|
|
32486
|
+
children = $[2];
|
|
32487
|
+
className = $[3];
|
|
32488
|
+
container = $[4];
|
|
32489
|
+
defaultOpen = $[5];
|
|
32490
|
+
onOpenChange = $[6];
|
|
32491
|
+
open = $[7];
|
|
32492
|
+
props = $[8];
|
|
32493
|
+
sideOffset = $[9];
|
|
32494
|
+
style = $[10];
|
|
32495
|
+
t1 = $[11];
|
|
32496
|
+
t2 = $[12];
|
|
32497
|
+
t3 = $[13];
|
|
32498
|
+
title = $[14];
|
|
32499
|
+
tooltipClassName = $[15];
|
|
32500
|
+
tooltipStyle = $[16];
|
|
32501
|
+
}
|
|
32378
32502
|
const side = t1 === void 0 ? "bottom" : t1;
|
|
32379
32503
|
const delayDuration = t2 === void 0 ? 200 : t2;
|
|
32380
32504
|
const asChild = t3 === void 0 ? false : t3;
|
|
32381
|
-
useInjectStyles("Tooltip", styles
|
|
32505
|
+
useInjectStyles("Tooltip", styles);
|
|
32382
32506
|
const contextContainer = usePortalContainer();
|
|
32383
32507
|
const finalContainer = container ?? contextContainer ?? void 0;
|
|
32384
32508
|
if (!title) {
|
|
32385
32509
|
let t42;
|
|
32386
|
-
if ($[
|
|
32510
|
+
if ($[17] !== children) {
|
|
32387
32511
|
t42 = /* @__PURE__ */ jsx(Fragment, { children });
|
|
32388
|
-
$[
|
|
32389
|
-
$[
|
|
32512
|
+
$[17] = children;
|
|
32513
|
+
$[18] = t42;
|
|
32390
32514
|
} else {
|
|
32391
|
-
t42 = $[
|
|
32515
|
+
t42 = $[18];
|
|
32392
32516
|
}
|
|
32393
32517
|
return t42;
|
|
32394
32518
|
}
|
|
32395
32519
|
let t4;
|
|
32396
|
-
if ($[
|
|
32397
|
-
t4 = asChild ? /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children }) : /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { style, className, children }) });
|
|
32398
|
-
$[
|
|
32399
|
-
$[
|
|
32400
|
-
$[
|
|
32401
|
-
$[
|
|
32402
|
-
$[
|
|
32403
|
-
|
|
32404
|
-
|
|
32520
|
+
if ($[19] !== asChild || $[20] !== children || $[21] !== className || $[22] !== props || $[23] !== ref || $[24] !== style) {
|
|
32521
|
+
t4 = asChild ? /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children }) : /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { style, className, ref, ...props, children }) });
|
|
32522
|
+
$[19] = asChild;
|
|
32523
|
+
$[20] = children;
|
|
32524
|
+
$[21] = className;
|
|
32525
|
+
$[22] = props;
|
|
32526
|
+
$[23] = ref;
|
|
32527
|
+
$[24] = style;
|
|
32528
|
+
$[25] = t4;
|
|
32529
|
+
} else {
|
|
32530
|
+
t4 = $[25];
|
|
32405
32531
|
}
|
|
32406
32532
|
const trigger = t4;
|
|
32407
32533
|
let t5;
|
|
32408
|
-
if ($[
|
|
32534
|
+
if ($[26] !== tooltipClassName) {
|
|
32409
32535
|
t5 = cls("TooltipContent", "max-w-lg leading-relaxed", "z-50 rounded px-3 py-2 text-xs leading-none bg-surface-accent-700 dark:bg-surface-accent-800 bg-opacity-90 bg-surface-accent-700/90 dark:bg-surface-accent-800/90 font-medium text-surface-accent-50 shadow-2xl select-none duration-400 ease-in transform opacity-100", tooltipClassName);
|
|
32410
|
-
$[
|
|
32411
|
-
$[
|
|
32536
|
+
$[26] = tooltipClassName;
|
|
32537
|
+
$[27] = t5;
|
|
32412
32538
|
} else {
|
|
32413
|
-
t5 = $[
|
|
32539
|
+
t5 = $[27];
|
|
32414
32540
|
}
|
|
32415
32541
|
const t6 = sideOffset === void 0 ? 4 : sideOffset;
|
|
32416
32542
|
let t7;
|
|
32417
|
-
if ($[
|
|
32543
|
+
if ($[28] !== align || $[29] !== side || $[30] !== t5 || $[31] !== t6 || $[32] !== title || $[33] !== tooltipStyle) {
|
|
32418
32544
|
t7 = /* @__PURE__ */ jsx(TooltipPrimitive.Content, { className: t5, style: tooltipStyle, sideOffset: t6, align, side, children: title });
|
|
32419
|
-
$[
|
|
32420
|
-
$[
|
|
32421
|
-
$[
|
|
32422
|
-
$[
|
|
32423
|
-
$[
|
|
32424
|
-
$[
|
|
32425
|
-
$[
|
|
32545
|
+
$[28] = align;
|
|
32546
|
+
$[29] = side;
|
|
32547
|
+
$[30] = t5;
|
|
32548
|
+
$[31] = t6;
|
|
32549
|
+
$[32] = title;
|
|
32550
|
+
$[33] = tooltipStyle;
|
|
32551
|
+
$[34] = t7;
|
|
32426
32552
|
} else {
|
|
32427
|
-
t7 = $[
|
|
32553
|
+
t7 = $[34];
|
|
32428
32554
|
}
|
|
32429
32555
|
let t8;
|
|
32430
|
-
if ($[
|
|
32556
|
+
if ($[35] !== finalContainer || $[36] !== t7) {
|
|
32431
32557
|
t8 = /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { container: finalContainer, children: t7 });
|
|
32432
|
-
$[
|
|
32433
|
-
$[
|
|
32434
|
-
$[
|
|
32558
|
+
$[35] = finalContainer;
|
|
32559
|
+
$[36] = t7;
|
|
32560
|
+
$[37] = t8;
|
|
32435
32561
|
} else {
|
|
32436
|
-
t8 = $[
|
|
32562
|
+
t8 = $[37];
|
|
32437
32563
|
}
|
|
32438
32564
|
let t9;
|
|
32439
|
-
if ($[
|
|
32565
|
+
if ($[38] !== defaultOpen || $[39] !== onOpenChange || $[40] !== open || $[41] !== t8 || $[42] !== trigger) {
|
|
32440
32566
|
t9 = /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { open, onOpenChange, defaultOpen, children: [
|
|
32441
32567
|
trigger,
|
|
32442
32568
|
t8
|
|
32443
32569
|
] });
|
|
32444
|
-
$[
|
|
32445
|
-
$[
|
|
32446
|
-
$[
|
|
32447
|
-
$[
|
|
32448
|
-
$[
|
|
32449
|
-
$[
|
|
32570
|
+
$[38] = defaultOpen;
|
|
32571
|
+
$[39] = onOpenChange;
|
|
32572
|
+
$[40] = open;
|
|
32573
|
+
$[41] = t8;
|
|
32574
|
+
$[42] = trigger;
|
|
32575
|
+
$[43] = t9;
|
|
32450
32576
|
} else {
|
|
32451
|
-
t9 = $[
|
|
32577
|
+
t9 = $[43];
|
|
32452
32578
|
}
|
|
32453
32579
|
let t10;
|
|
32454
|
-
if ($[
|
|
32580
|
+
if ($[44] !== delayDuration || $[45] !== t9) {
|
|
32455
32581
|
t10 = /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: t9 });
|
|
32456
|
-
$[
|
|
32457
|
-
$[
|
|
32458
|
-
$[
|
|
32582
|
+
$[44] = delayDuration;
|
|
32583
|
+
$[45] = t9;
|
|
32584
|
+
$[46] = t10;
|
|
32459
32585
|
} else {
|
|
32460
|
-
t10 = $[
|
|
32586
|
+
t10 = $[46];
|
|
32461
32587
|
}
|
|
32462
32588
|
return t10;
|
|
32463
|
-
};
|
|
32464
|
-
const styles
|
|
32589
|
+
});
|
|
32590
|
+
const styles = `
|
|
32465
32591
|
|
|
32466
32592
|
.TooltipContent {
|
|
32467
32593
|
animation-duration: 220ms;
|
|
@@ -32933,7 +33059,7 @@ const DateTimeField = ({
|
|
|
32933
33059
|
const [focused, setFocused] = useState(false);
|
|
32934
33060
|
const [internalValue, setInternalValue] = useState("");
|
|
32935
33061
|
const [isTyping, setIsTyping] = useState(false);
|
|
32936
|
-
const invalidValue = value !== void 0 && value !== null && !(value instanceof Date);
|
|
33062
|
+
const invalidValue = value !== void 0 && value !== null && (!(value instanceof Date) || isNaN(value.getTime()));
|
|
32937
33063
|
useInjectStyles("DateTimeField", inputStyles);
|
|
32938
33064
|
const handleClear = (e) => {
|
|
32939
33065
|
e.preventDefault();
|
|
@@ -32956,7 +33082,12 @@ const DateTimeField = ({
|
|
|
32956
33082
|
// undefined = local timezone
|
|
32957
33083
|
};
|
|
32958
33084
|
const formatter = new Intl.DateTimeFormat("en-CA", options);
|
|
32959
|
-
|
|
33085
|
+
let parts;
|
|
33086
|
+
try {
|
|
33087
|
+
parts = formatter.formatToParts(dateValue);
|
|
33088
|
+
} catch {
|
|
33089
|
+
return "";
|
|
33090
|
+
}
|
|
32960
33091
|
const getPart = (type) => parts.find((p) => p.type === type)?.value ?? "";
|
|
32961
33092
|
const year = getPart("year");
|
|
32962
33093
|
const month = getPart("month");
|
|
@@ -33148,7 +33279,7 @@ const Dialog = (t0) => {
|
|
|
33148
33279
|
return () => clearTimeout(timeout);
|
|
33149
33280
|
} else {
|
|
33150
33281
|
setDisplayed(true);
|
|
33151
|
-
return _temp$
|
|
33282
|
+
return _temp$4;
|
|
33152
33283
|
}
|
|
33153
33284
|
};
|
|
33154
33285
|
t7 = [open];
|
|
@@ -33295,7 +33426,7 @@ const Dialog = (t0) => {
|
|
|
33295
33426
|
}
|
|
33296
33427
|
return t28;
|
|
33297
33428
|
};
|
|
33298
|
-
function _temp$
|
|
33429
|
+
function _temp$4() {
|
|
33299
33430
|
}
|
|
33300
33431
|
function DialogActions(t0) {
|
|
33301
33432
|
const $ = c(7);
|
|
@@ -34825,7 +34956,7 @@ function SelectInputLabel(t0) {
|
|
|
34825
34956
|
}
|
|
34826
34957
|
const MultiSelectContext = React.createContext({});
|
|
34827
34958
|
const MultiSelect = React.forwardRef((t0, ref) => {
|
|
34828
|
-
const $ = c(
|
|
34959
|
+
const $ = c(112);
|
|
34829
34960
|
const {
|
|
34830
34961
|
value,
|
|
34831
34962
|
size: t1,
|
|
@@ -34846,7 +34977,8 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
34846
34977
|
renderValues,
|
|
34847
34978
|
open,
|
|
34848
34979
|
onOpenChange,
|
|
34849
|
-
portalContainer
|
|
34980
|
+
portalContainer,
|
|
34981
|
+
endAdornment
|
|
34850
34982
|
} = t0;
|
|
34851
34983
|
const size = t1 === void 0 ? "large" : t1;
|
|
34852
34984
|
const modalPopover = t2 === void 0 ? true : t2;
|
|
@@ -34910,7 +35042,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
34910
35042
|
let t12;
|
|
34911
35043
|
let t13;
|
|
34912
35044
|
if ($[9] !== children) {
|
|
34913
|
-
t13 = children ? Children.map(children, _temp$
|
|
35045
|
+
t13 = children ? Children.map(children, _temp$3)?.filter(Boolean) ?? [] : [];
|
|
34914
35046
|
$[9] = children;
|
|
34915
35047
|
$[10] = t13;
|
|
34916
35048
|
} else {
|
|
@@ -35111,7 +35243,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
35111
35243
|
t30 = $[53];
|
|
35112
35244
|
}
|
|
35113
35245
|
let t31;
|
|
35114
|
-
if ($[54] !==
|
|
35246
|
+
if ($[54] !== endAdornment || $[55] !== handleClear || $[56] !== includeClear || $[57] !== isPopoverOpen || $[58] !== optionsMap || $[59] !== placeholder || $[60] !== renderValues || $[61] !== selectedValues || $[62] !== size || $[63] !== toggleOption || $[64] !== useChips) {
|
|
35115
35247
|
t31 = selectedValues.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center w-full", children: [
|
|
35116
35248
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5 text-start", children: [
|
|
35117
35249
|
renderValues && renderValues(selectedValues),
|
|
@@ -35130,122 +35262,127 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
35130
35262
|
})
|
|
35131
35263
|
] }),
|
|
35132
35264
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
35133
|
-
includeClear && /* @__PURE__ */ jsx(CloseIcon, { className: "ml-4", size: "small", onClick: (event_1) => {
|
|
35265
|
+
includeClear && !endAdornment && /* @__PURE__ */ jsx(CloseIcon, { className: "ml-4", size: "small", onClick: (event_1) => {
|
|
35134
35266
|
event_1.stopPropagation();
|
|
35135
35267
|
handleClear();
|
|
35136
35268
|
} }),
|
|
35269
|
+
endAdornment && /* @__PURE__ */ jsx("div", { className: "ml-4 flex items-center", onClick: _temp2$1, children: endAdornment }),
|
|
35137
35270
|
/* @__PURE__ */ jsx("div", { className: cls("px-2 h-full flex items-center"), children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: size === "large" ? "medium" : "small", className: cls("transition", isPopoverOpen ? "rotate-180" : "") }) })
|
|
35138
35271
|
] })
|
|
35139
35272
|
] }) : /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between w-full mx-auto", children: [
|
|
35140
35273
|
/* @__PURE__ */ jsx("span", { className: "text-sm", children: placeholder }),
|
|
35141
|
-
/* @__PURE__ */
|
|
35274
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
35275
|
+
endAdornment && /* @__PURE__ */ jsx("div", { className: "ml-4 flex items-center", onClick: _temp3, children: endAdornment }),
|
|
35276
|
+
/* @__PURE__ */ jsx("div", { className: cls("px-2 h-full flex items-center"), children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: size === "large" ? "medium" : "small", className: cls("transition", isPopoverOpen ? "rotate-180" : "") }) })
|
|
35277
|
+
] })
|
|
35142
35278
|
] });
|
|
35143
|
-
$[54] =
|
|
35144
|
-
$[55] =
|
|
35145
|
-
$[56] =
|
|
35146
|
-
$[57] =
|
|
35147
|
-
$[58] =
|
|
35148
|
-
$[59] =
|
|
35149
|
-
$[60] =
|
|
35150
|
-
$[61] =
|
|
35151
|
-
$[62] =
|
|
35152
|
-
$[63] =
|
|
35153
|
-
$[64] =
|
|
35154
|
-
|
|
35155
|
-
|
|
35279
|
+
$[54] = endAdornment;
|
|
35280
|
+
$[55] = handleClear;
|
|
35281
|
+
$[56] = includeClear;
|
|
35282
|
+
$[57] = isPopoverOpen;
|
|
35283
|
+
$[58] = optionsMap;
|
|
35284
|
+
$[59] = placeholder;
|
|
35285
|
+
$[60] = renderValues;
|
|
35286
|
+
$[61] = selectedValues;
|
|
35287
|
+
$[62] = size;
|
|
35288
|
+
$[63] = toggleOption;
|
|
35289
|
+
$[64] = useChips;
|
|
35290
|
+
$[65] = t31;
|
|
35291
|
+
} else {
|
|
35292
|
+
t31 = $[65];
|
|
35156
35293
|
}
|
|
35157
35294
|
let t32;
|
|
35158
|
-
if ($[
|
|
35295
|
+
if ($[66] !== handleTogglePopover || $[67] !== t25 || $[68] !== t30 || $[69] !== t31) {
|
|
35159
35296
|
t32 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("button", { ref: t25, onClick: handleTogglePopover, className: t30, children: t31 }) });
|
|
35160
|
-
$[
|
|
35161
|
-
$[
|
|
35162
|
-
$[
|
|
35163
|
-
$[
|
|
35164
|
-
$[
|
|
35297
|
+
$[66] = handleTogglePopover;
|
|
35298
|
+
$[67] = t25;
|
|
35299
|
+
$[68] = t30;
|
|
35300
|
+
$[69] = t31;
|
|
35301
|
+
$[70] = t32;
|
|
35165
35302
|
} else {
|
|
35166
|
-
t32 = $[
|
|
35303
|
+
t32 = $[70];
|
|
35167
35304
|
}
|
|
35168
35305
|
let t33;
|
|
35169
|
-
if ($[
|
|
35306
|
+
if ($[71] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
35170
35307
|
t33 = cls("z-50 overflow-hidden border bg-white dark:bg-surface-900 rounded-lg w-[400px]", defaultBorderMixin);
|
|
35171
|
-
$[
|
|
35308
|
+
$[71] = t33;
|
|
35172
35309
|
} else {
|
|
35173
|
-
t33 = $[
|
|
35310
|
+
t33 = $[71];
|
|
35174
35311
|
}
|
|
35175
35312
|
let t34;
|
|
35176
|
-
if ($[
|
|
35313
|
+
if ($[72] !== onPopoverOpenChange) {
|
|
35177
35314
|
t34 = () => onPopoverOpenChange(false);
|
|
35178
|
-
$[
|
|
35179
|
-
$[
|
|
35315
|
+
$[72] = onPopoverOpenChange;
|
|
35316
|
+
$[73] = t34;
|
|
35180
35317
|
} else {
|
|
35181
|
-
t34 = $[
|
|
35318
|
+
t34 = $[73];
|
|
35182
35319
|
}
|
|
35183
35320
|
let t35;
|
|
35184
|
-
if ($[
|
|
35321
|
+
if ($[74] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
35185
35322
|
t35 = cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow text-surface-accent-900 dark:text-white");
|
|
35186
|
-
$[
|
|
35323
|
+
$[74] = t35;
|
|
35187
35324
|
} else {
|
|
35188
|
-
t35 = $[
|
|
35325
|
+
t35 = $[74];
|
|
35189
35326
|
}
|
|
35190
35327
|
let t36;
|
|
35191
|
-
if ($[
|
|
35328
|
+
if ($[75] !== handleInputKeyDown) {
|
|
35192
35329
|
t36 = /* @__PURE__ */ jsx(Command.Input, { className: t35, placeholder: "Search...", onKeyDown: handleInputKeyDown });
|
|
35193
|
-
$[
|
|
35194
|
-
$[
|
|
35330
|
+
$[75] = handleInputKeyDown;
|
|
35331
|
+
$[76] = t36;
|
|
35195
35332
|
} else {
|
|
35196
|
-
t36 = $[
|
|
35333
|
+
t36 = $[76];
|
|
35197
35334
|
}
|
|
35198
35335
|
let t37;
|
|
35199
|
-
if ($[
|
|
35336
|
+
if ($[77] !== handleClear || $[78] !== selectedValues.length) {
|
|
35200
35337
|
t37 = selectedValues.length > 0 && /* @__PURE__ */ jsx("div", { onClick: handleClear, className: "text-sm justify-center cursor-pointer py-3 px-4 text-text-secondary dark:text-text-secondary-dark", children: "Clear" });
|
|
35201
|
-
$[
|
|
35202
|
-
$[
|
|
35203
|
-
$[
|
|
35338
|
+
$[77] = handleClear;
|
|
35339
|
+
$[78] = selectedValues.length;
|
|
35340
|
+
$[79] = t37;
|
|
35204
35341
|
} else {
|
|
35205
|
-
t37 = $[
|
|
35342
|
+
t37 = $[79];
|
|
35206
35343
|
}
|
|
35207
35344
|
let t38;
|
|
35208
|
-
if ($[
|
|
35345
|
+
if ($[80] !== t36 || $[81] !== t37) {
|
|
35209
35346
|
t38 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center", children: [
|
|
35210
35347
|
t36,
|
|
35211
35348
|
t37
|
|
35212
35349
|
] });
|
|
35213
|
-
$[
|
|
35214
|
-
$[
|
|
35215
|
-
$[
|
|
35350
|
+
$[80] = t36;
|
|
35351
|
+
$[81] = t37;
|
|
35352
|
+
$[82] = t38;
|
|
35216
35353
|
} else {
|
|
35217
|
-
t38 = $[
|
|
35354
|
+
t38 = $[82];
|
|
35218
35355
|
}
|
|
35219
35356
|
let t39;
|
|
35220
|
-
if ($[
|
|
35357
|
+
if ($[83] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
35221
35358
|
t39 = /* @__PURE__ */ jsx(Separator, { orientation: "horizontal", className: "my-0" });
|
|
35222
|
-
$[
|
|
35359
|
+
$[83] = t39;
|
|
35223
35360
|
} else {
|
|
35224
|
-
t39 = $[
|
|
35361
|
+
t39 = $[83];
|
|
35225
35362
|
}
|
|
35226
35363
|
let t40;
|
|
35227
|
-
if ($[
|
|
35364
|
+
if ($[84] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
35228
35365
|
t40 = /* @__PURE__ */ jsx(Command.Empty, { className: "px-4 py-2 text-sm text-text-secondary dark:text-text-secondary-dark", children: "No results found." });
|
|
35229
|
-
$[
|
|
35366
|
+
$[84] = t40;
|
|
35230
35367
|
} else {
|
|
35231
|
-
t40 = $[
|
|
35368
|
+
t40 = $[84];
|
|
35232
35369
|
}
|
|
35233
35370
|
let t41;
|
|
35234
|
-
if ($[
|
|
35371
|
+
if ($[85] !== allValues.length || $[86] !== includeSelectAll || $[87] !== selectedValues.length || $[88] !== toggleAll) {
|
|
35235
35372
|
t41 = includeSelectAll && /* @__PURE__ */ jsxs(Command.Item, { onSelect: toggleAll, className: cls("flex flex-row items-center gap-1.5", "cursor-pointer", "m-1", "ring-offset-transparent", "p-1 rounded aria-[selected=true]:outline-none aria-[selected=true]:ring-2 aria-[selected=true]:ring-primary aria-[selected=true]:ring-opacity-75 aria-[selected=true]:ring-primary/75 aria-[selected=true]:ring-offset-2", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900"), children: [
|
|
35236
35373
|
/* @__PURE__ */ jsx(InnerCheckBox, { checked: selectedValues.length === allValues.length }),
|
|
35237
35374
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-text-secondary dark:text-text-secondary-dark", children: "(Select All)" })
|
|
35238
35375
|
] }, "all");
|
|
35239
|
-
$[
|
|
35240
|
-
$[
|
|
35241
|
-
$[
|
|
35242
|
-
$[
|
|
35243
|
-
$[
|
|
35376
|
+
$[85] = allValues.length;
|
|
35377
|
+
$[86] = includeSelectAll;
|
|
35378
|
+
$[87] = selectedValues.length;
|
|
35379
|
+
$[88] = toggleAll;
|
|
35380
|
+
$[89] = t41;
|
|
35244
35381
|
} else {
|
|
35245
|
-
t41 = $[
|
|
35382
|
+
t41 = $[89];
|
|
35246
35383
|
}
|
|
35247
35384
|
let t42;
|
|
35248
|
-
if ($[
|
|
35385
|
+
if ($[90] !== children || $[91] !== t41) {
|
|
35249
35386
|
t42 = /* @__PURE__ */ jsxs(Command.List, { children: [
|
|
35250
35387
|
t40,
|
|
35251
35388
|
/* @__PURE__ */ jsxs(Command.Group, { children: [
|
|
@@ -35253,70 +35390,70 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
35253
35390
|
children
|
|
35254
35391
|
] })
|
|
35255
35392
|
] });
|
|
35256
|
-
$[
|
|
35257
|
-
$[
|
|
35258
|
-
$[
|
|
35393
|
+
$[90] = children;
|
|
35394
|
+
$[91] = t41;
|
|
35395
|
+
$[92] = t42;
|
|
35259
35396
|
} else {
|
|
35260
|
-
t42 = $[
|
|
35397
|
+
t42 = $[92];
|
|
35261
35398
|
}
|
|
35262
35399
|
let t43;
|
|
35263
|
-
if ($[
|
|
35400
|
+
if ($[93] !== t38 || $[94] !== t42) {
|
|
35264
35401
|
t43 = /* @__PURE__ */ jsxs(Command, { children: [
|
|
35265
35402
|
t38,
|
|
35266
35403
|
t39,
|
|
35267
35404
|
t42
|
|
35268
35405
|
] });
|
|
35269
|
-
$[
|
|
35270
|
-
$[
|
|
35271
|
-
$[
|
|
35406
|
+
$[93] = t38;
|
|
35407
|
+
$[94] = t42;
|
|
35408
|
+
$[95] = t43;
|
|
35272
35409
|
} else {
|
|
35273
|
-
t43 = $[
|
|
35410
|
+
t43 = $[95];
|
|
35274
35411
|
}
|
|
35275
35412
|
let t44;
|
|
35276
|
-
if ($[
|
|
35413
|
+
if ($[96] !== t34 || $[97] !== t43) {
|
|
35277
35414
|
t44 = /* @__PURE__ */ jsx(PopoverPrimitive.Content, { className: t33, align: "start", sideOffset: 8, onEscapeKeyDown: t34, children: t43 });
|
|
35278
|
-
$[
|
|
35279
|
-
$[
|
|
35280
|
-
$[
|
|
35415
|
+
$[96] = t34;
|
|
35416
|
+
$[97] = t43;
|
|
35417
|
+
$[98] = t44;
|
|
35281
35418
|
} else {
|
|
35282
|
-
t44 = $[
|
|
35419
|
+
t44 = $[98];
|
|
35283
35420
|
}
|
|
35284
35421
|
let t45;
|
|
35285
|
-
if ($[
|
|
35422
|
+
if ($[99] !== finalContainer || $[100] !== t44) {
|
|
35286
35423
|
t45 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: finalContainer, children: t44 });
|
|
35287
|
-
$[
|
|
35288
|
-
$[
|
|
35289
|
-
$[
|
|
35424
|
+
$[99] = finalContainer;
|
|
35425
|
+
$[100] = t44;
|
|
35426
|
+
$[101] = t45;
|
|
35290
35427
|
} else {
|
|
35291
|
-
t45 = $[
|
|
35428
|
+
t45 = $[101];
|
|
35292
35429
|
}
|
|
35293
35430
|
let t46;
|
|
35294
|
-
if ($[
|
|
35431
|
+
if ($[102] !== modalPopover || $[103] !== onPopoverOpenChange || $[104] !== t24 || $[105] !== t32 || $[106] !== t45) {
|
|
35295
35432
|
t46 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open: t24, onOpenChange: onPopoverOpenChange, modal: modalPopover, children: [
|
|
35296
35433
|
t32,
|
|
35297
35434
|
t45
|
|
35298
35435
|
] });
|
|
35299
|
-
$[
|
|
35300
|
-
$[
|
|
35301
|
-
$[
|
|
35302
|
-
$[
|
|
35303
|
-
$[
|
|
35304
|
-
$[
|
|
35436
|
+
$[102] = modalPopover;
|
|
35437
|
+
$[103] = onPopoverOpenChange;
|
|
35438
|
+
$[104] = t24;
|
|
35439
|
+
$[105] = t32;
|
|
35440
|
+
$[106] = t45;
|
|
35441
|
+
$[107] = t46;
|
|
35305
35442
|
} else {
|
|
35306
|
-
t46 = $[
|
|
35443
|
+
t46 = $[107];
|
|
35307
35444
|
}
|
|
35308
35445
|
let t47;
|
|
35309
|
-
if ($[
|
|
35446
|
+
if ($[108] !== t22 || $[109] !== t23 || $[110] !== t46) {
|
|
35310
35447
|
t47 = /* @__PURE__ */ jsxs(MultiSelectContext.Provider, { value: t22, children: [
|
|
35311
35448
|
t23,
|
|
35312
35449
|
t46
|
|
35313
35450
|
] });
|
|
35314
|
-
$[
|
|
35315
|
-
$[
|
|
35316
|
-
$[
|
|
35317
|
-
$[
|
|
35451
|
+
$[108] = t22;
|
|
35452
|
+
$[109] = t23;
|
|
35453
|
+
$[110] = t46;
|
|
35454
|
+
$[111] = t47;
|
|
35318
35455
|
} else {
|
|
35319
|
-
t47 = $[
|
|
35456
|
+
t47 = $[111];
|
|
35320
35457
|
}
|
|
35321
35458
|
return t47;
|
|
35322
35459
|
});
|
|
@@ -35393,7 +35530,7 @@ const MultiSelectItem = React.memo(function MultiSelectItem2(t0) {
|
|
|
35393
35530
|
}
|
|
35394
35531
|
let t7;
|
|
35395
35532
|
if ($[15] !== children || $[16] !== t3 || $[17] !== t5 || $[18] !== t6) {
|
|
35396
|
-
t7 = /* @__PURE__ */ jsxs(Command.Item, { onMouseDown:
|
|
35533
|
+
t7 = /* @__PURE__ */ jsxs(Command.Item, { onMouseDown: _temp4, onSelect: t3, className: t5, children: [
|
|
35397
35534
|
t6,
|
|
35398
35535
|
children
|
|
35399
35536
|
] });
|
|
@@ -35451,7 +35588,7 @@ const InnerCheckBox = React.memo(function InnerCheckBox2(t0) {
|
|
|
35451
35588
|
}
|
|
35452
35589
|
return t7;
|
|
35453
35590
|
});
|
|
35454
|
-
function _temp$
|
|
35591
|
+
function _temp$3(child) {
|
|
35455
35592
|
if (React.isValidElement(child)) {
|
|
35456
35593
|
return child.props.value;
|
|
35457
35594
|
}
|
|
@@ -35461,6 +35598,14 @@ function _temp2$1(e) {
|
|
|
35461
35598
|
e.preventDefault();
|
|
35462
35599
|
e.stopPropagation();
|
|
35463
35600
|
}
|
|
35601
|
+
function _temp3(e_0) {
|
|
35602
|
+
e_0.preventDefault();
|
|
35603
|
+
e_0.stopPropagation();
|
|
35604
|
+
}
|
|
35605
|
+
function _temp4(e) {
|
|
35606
|
+
e.preventDefault();
|
|
35607
|
+
e.stopPropagation();
|
|
35608
|
+
}
|
|
35464
35609
|
function Paper(t0) {
|
|
35465
35610
|
const $ = c(6);
|
|
35466
35611
|
const {
|
|
@@ -35569,6 +35714,214 @@ const RadioGroupItem = React.forwardRef((t0, ref) => {
|
|
|
35569
35714
|
return t3;
|
|
35570
35715
|
});
|
|
35571
35716
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
35717
|
+
function ResizablePanels(t0) {
|
|
35718
|
+
const $ = c(40);
|
|
35719
|
+
const {
|
|
35720
|
+
firstPanel,
|
|
35721
|
+
secondPanel,
|
|
35722
|
+
showFirstPanel: t1,
|
|
35723
|
+
showSecondPanel: t2,
|
|
35724
|
+
panelSizePercent,
|
|
35725
|
+
onPanelSizeChange,
|
|
35726
|
+
minPanelSizePx: t3,
|
|
35727
|
+
orientation: t4,
|
|
35728
|
+
className
|
|
35729
|
+
} = t0;
|
|
35730
|
+
const showFirstPanel = t1 === void 0 ? true : t1;
|
|
35731
|
+
const showSecondPanel = t2 === void 0 ? true : t2;
|
|
35732
|
+
const minPanelSizePx = t3 === void 0 ? 200 : t3;
|
|
35733
|
+
const orientation = t4 === void 0 ? "horizontal" : t4;
|
|
35734
|
+
const containerRef = useRef(null);
|
|
35735
|
+
const isResizingRef = useRef(false);
|
|
35736
|
+
const firstPanelRef = useRef(null);
|
|
35737
|
+
const startPosRef = useRef(0);
|
|
35738
|
+
const startSizeRef = useRef(0);
|
|
35739
|
+
const [, setIsResizing] = useState(false);
|
|
35740
|
+
const isHorizontal = orientation === "horizontal";
|
|
35741
|
+
let t5;
|
|
35742
|
+
if ($[0] !== isHorizontal || $[1] !== showFirstPanel || $[2] !== showSecondPanel) {
|
|
35743
|
+
t5 = (e) => {
|
|
35744
|
+
if (!showFirstPanel || !showSecondPanel) {
|
|
35745
|
+
return;
|
|
35746
|
+
}
|
|
35747
|
+
e.preventDefault();
|
|
35748
|
+
isResizingRef.current = true;
|
|
35749
|
+
setIsResizing(true);
|
|
35750
|
+
startPosRef.current = isHorizontal ? e.clientX : e.clientY;
|
|
35751
|
+
if (firstPanelRef.current) {
|
|
35752
|
+
const rect = firstPanelRef.current.getBoundingClientRect();
|
|
35753
|
+
startSizeRef.current = isHorizontal ? rect.width : rect.height;
|
|
35754
|
+
}
|
|
35755
|
+
document.body.style.cursor = isHorizontal ? "col-resize" : "row-resize";
|
|
35756
|
+
document.body.style.userSelect = "none";
|
|
35757
|
+
};
|
|
35758
|
+
$[0] = isHorizontal;
|
|
35759
|
+
$[1] = showFirstPanel;
|
|
35760
|
+
$[2] = showSecondPanel;
|
|
35761
|
+
$[3] = t5;
|
|
35762
|
+
} else {
|
|
35763
|
+
t5 = $[3];
|
|
35764
|
+
}
|
|
35765
|
+
const handleResizeStart = t5;
|
|
35766
|
+
let t6;
|
|
35767
|
+
let t7;
|
|
35768
|
+
if ($[4] !== isHorizontal || $[5] !== minPanelSizePx || $[6] !== onPanelSizeChange) {
|
|
35769
|
+
t6 = () => {
|
|
35770
|
+
const handleMouseMove = (e_0) => {
|
|
35771
|
+
if (!isResizingRef.current || !containerRef.current) {
|
|
35772
|
+
return;
|
|
35773
|
+
}
|
|
35774
|
+
const currentPos = isHorizontal ? e_0.clientX : e_0.clientY;
|
|
35775
|
+
const delta = currentPos - startPosRef.current;
|
|
35776
|
+
let newSize = startSizeRef.current + delta;
|
|
35777
|
+
const containerRect = containerRef.current.getBoundingClientRect();
|
|
35778
|
+
const containerTotal = isHorizontal ? containerRect.width : containerRect.height;
|
|
35779
|
+
const maxSize = containerTotal - minPanelSizePx;
|
|
35780
|
+
newSize = Math.max(minPanelSizePx, Math.min(newSize, maxSize));
|
|
35781
|
+
if (firstPanelRef.current) {
|
|
35782
|
+
if (isHorizontal) {
|
|
35783
|
+
firstPanelRef.current.style.width = `${newSize}px`;
|
|
35784
|
+
} else {
|
|
35785
|
+
firstPanelRef.current.style.height = `${newSize}px`;
|
|
35786
|
+
}
|
|
35787
|
+
}
|
|
35788
|
+
};
|
|
35789
|
+
const handleMouseUp = () => {
|
|
35790
|
+
if (isResizingRef.current && containerRef.current && firstPanelRef.current) {
|
|
35791
|
+
isResizingRef.current = false;
|
|
35792
|
+
setIsResizing(false);
|
|
35793
|
+
document.body.style.cursor = "";
|
|
35794
|
+
document.body.style.userSelect = "";
|
|
35795
|
+
const containerRect_0 = containerRef.current.getBoundingClientRect();
|
|
35796
|
+
const firstPanelRect = firstPanelRef.current.getBoundingClientRect();
|
|
35797
|
+
const containerSize = isHorizontal ? containerRect_0.width : containerRect_0.height;
|
|
35798
|
+
const finalSize = isHorizontal ? firstPanelRect.width : firstPanelRect.height;
|
|
35799
|
+
if (containerSize > 0) {
|
|
35800
|
+
const newPercent = finalSize / containerSize * 100;
|
|
35801
|
+
onPanelSizeChange(Math.max(0, Math.min(100, newPercent)));
|
|
35802
|
+
}
|
|
35803
|
+
}
|
|
35804
|
+
};
|
|
35805
|
+
window.addEventListener("mousemove", handleMouseMove);
|
|
35806
|
+
window.addEventListener("mouseup", handleMouseUp);
|
|
35807
|
+
return () => {
|
|
35808
|
+
window.removeEventListener("mousemove", handleMouseMove);
|
|
35809
|
+
window.removeEventListener("mouseup", handleMouseUp);
|
|
35810
|
+
};
|
|
35811
|
+
};
|
|
35812
|
+
t7 = [onPanelSizeChange, isHorizontal, minPanelSizePx];
|
|
35813
|
+
$[4] = isHorizontal;
|
|
35814
|
+
$[5] = minPanelSizePx;
|
|
35815
|
+
$[6] = onPanelSizeChange;
|
|
35816
|
+
$[7] = t6;
|
|
35817
|
+
$[8] = t7;
|
|
35818
|
+
} else {
|
|
35819
|
+
t6 = $[7];
|
|
35820
|
+
t7 = $[8];
|
|
35821
|
+
}
|
|
35822
|
+
useEffect(t6, t7);
|
|
35823
|
+
const appliedBasis = !showFirstPanel ? "0%" : showSecondPanel ? `${panelSizePercent}%` : "100%";
|
|
35824
|
+
const t8 = isHorizontal ? "flex-row" : "flex-col";
|
|
35825
|
+
let t9;
|
|
35826
|
+
if ($[9] !== className || $[10] !== t8) {
|
|
35827
|
+
t9 = cls("relative w-full h-full flex overflow-hidden", t8, className);
|
|
35828
|
+
$[9] = className;
|
|
35829
|
+
$[10] = t8;
|
|
35830
|
+
$[11] = t9;
|
|
35831
|
+
} else {
|
|
35832
|
+
t9 = $[11];
|
|
35833
|
+
}
|
|
35834
|
+
const t10 = !showFirstPanel && "hidden";
|
|
35835
|
+
let t11;
|
|
35836
|
+
if ($[12] !== t10) {
|
|
35837
|
+
t11 = cls("relative flex-shrink-0 flex flex-col overflow-hidden", t10);
|
|
35838
|
+
$[12] = t10;
|
|
35839
|
+
$[13] = t11;
|
|
35840
|
+
} else {
|
|
35841
|
+
t11 = $[13];
|
|
35842
|
+
}
|
|
35843
|
+
const t12 = isHorizontal ? appliedBasis : "100%";
|
|
35844
|
+
const t13 = !isHorizontal ? appliedBasis : "100%";
|
|
35845
|
+
const t14 = isHorizontal && showFirstPanel && showSecondPanel ? `${minPanelSizePx}px` : void 0;
|
|
35846
|
+
const t15 = !isHorizontal && showFirstPanel && showSecondPanel ? `${minPanelSizePx}px` : void 0;
|
|
35847
|
+
const t16 = showSecondPanel ? void 0 : "100%";
|
|
35848
|
+
const t17 = showSecondPanel ? void 0 : "100%";
|
|
35849
|
+
let t18;
|
|
35850
|
+
if ($[14] !== t12 || $[15] !== t13 || $[16] !== t14 || $[17] !== t15 || $[18] !== t16 || $[19] !== t17) {
|
|
35851
|
+
t18 = {
|
|
35852
|
+
width: t12,
|
|
35853
|
+
height: t13,
|
|
35854
|
+
minWidth: t14,
|
|
35855
|
+
minHeight: t15,
|
|
35856
|
+
maxWidth: t16,
|
|
35857
|
+
maxHeight: t17
|
|
35858
|
+
};
|
|
35859
|
+
$[14] = t12;
|
|
35860
|
+
$[15] = t13;
|
|
35861
|
+
$[16] = t14;
|
|
35862
|
+
$[17] = t15;
|
|
35863
|
+
$[18] = t16;
|
|
35864
|
+
$[19] = t17;
|
|
35865
|
+
$[20] = t18;
|
|
35866
|
+
} else {
|
|
35867
|
+
t18 = $[20];
|
|
35868
|
+
}
|
|
35869
|
+
let t19;
|
|
35870
|
+
if ($[21] !== firstPanel || $[22] !== t11 || $[23] !== t18) {
|
|
35871
|
+
t19 = /* @__PURE__ */ jsx("div", { ref: firstPanelRef, className: t11, style: t18, children: firstPanel });
|
|
35872
|
+
$[21] = firstPanel;
|
|
35873
|
+
$[22] = t11;
|
|
35874
|
+
$[23] = t18;
|
|
35875
|
+
$[24] = t19;
|
|
35876
|
+
} else {
|
|
35877
|
+
t19 = $[24];
|
|
35878
|
+
}
|
|
35879
|
+
let t20;
|
|
35880
|
+
if ($[25] !== handleResizeStart || $[26] !== isHorizontal || $[27] !== showFirstPanel || $[28] !== showSecondPanel) {
|
|
35881
|
+
t20 = showFirstPanel && showSecondPanel && /* @__PURE__ */ jsx("div", { className: cls("relative z-10 flex flex-shrink-0 items-center justify-center", isHorizontal ? "w-px h-full cursor-col-resize" : "h-px w-full cursor-row-resize"), onMouseDown: handleResizeStart, children: /* @__PURE__ */ jsx("div", { className: cls("absolute flex items-center justify-center group", isHorizontal ? "w-4 h-full cursor-col-resize top-0" : "h-4 w-full cursor-row-resize left-0"), children: /* @__PURE__ */ jsx("div", { className: cls("bg-primary/60 dark:bg-primary rounded-full opacity-0 group-hover:opacity-100 transition-all duration-200", isHorizontal ? "w-1 h-8" : "h-1 w-8") }) }) });
|
|
35882
|
+
$[25] = handleResizeStart;
|
|
35883
|
+
$[26] = isHorizontal;
|
|
35884
|
+
$[27] = showFirstPanel;
|
|
35885
|
+
$[28] = showSecondPanel;
|
|
35886
|
+
$[29] = t20;
|
|
35887
|
+
} else {
|
|
35888
|
+
t20 = $[29];
|
|
35889
|
+
}
|
|
35890
|
+
const t21 = !showSecondPanel && "hidden";
|
|
35891
|
+
let t22;
|
|
35892
|
+
if ($[30] !== t21) {
|
|
35893
|
+
t22 = cls("flex-grow relative flex flex-col overflow-hidden min-w-0 min-h-0", t21);
|
|
35894
|
+
$[30] = t21;
|
|
35895
|
+
$[31] = t22;
|
|
35896
|
+
} else {
|
|
35897
|
+
t22 = $[31];
|
|
35898
|
+
}
|
|
35899
|
+
let t23;
|
|
35900
|
+
if ($[32] !== secondPanel || $[33] !== t22) {
|
|
35901
|
+
t23 = /* @__PURE__ */ jsx("div", { className: t22, children: secondPanel });
|
|
35902
|
+
$[32] = secondPanel;
|
|
35903
|
+
$[33] = t22;
|
|
35904
|
+
$[34] = t23;
|
|
35905
|
+
} else {
|
|
35906
|
+
t23 = $[34];
|
|
35907
|
+
}
|
|
35908
|
+
let t24;
|
|
35909
|
+
if ($[35] !== t19 || $[36] !== t20 || $[37] !== t23 || $[38] !== t9) {
|
|
35910
|
+
t24 = /* @__PURE__ */ jsxs("div", { ref: containerRef, className: t9, children: [
|
|
35911
|
+
t19,
|
|
35912
|
+
t20,
|
|
35913
|
+
t23
|
|
35914
|
+
] });
|
|
35915
|
+
$[35] = t19;
|
|
35916
|
+
$[36] = t20;
|
|
35917
|
+
$[37] = t23;
|
|
35918
|
+
$[38] = t9;
|
|
35919
|
+
$[39] = t24;
|
|
35920
|
+
} else {
|
|
35921
|
+
t24 = $[39];
|
|
35922
|
+
}
|
|
35923
|
+
return t24;
|
|
35924
|
+
}
|
|
35572
35925
|
function SearchBar(t0) {
|
|
35573
35926
|
const $ = c(47);
|
|
35574
35927
|
const {
|
|
@@ -35753,6 +36106,483 @@ function SearchBar(t0) {
|
|
|
35753
36106
|
}
|
|
35754
36107
|
return t22;
|
|
35755
36108
|
}
|
|
36109
|
+
const SearchableSelect = React.forwardRef((t0, ref) => {
|
|
36110
|
+
const $ = c(106);
|
|
36111
|
+
const {
|
|
36112
|
+
value,
|
|
36113
|
+
onValueChange,
|
|
36114
|
+
placeholder: t1,
|
|
36115
|
+
label,
|
|
36116
|
+
size: t2,
|
|
36117
|
+
disabled,
|
|
36118
|
+
error,
|
|
36119
|
+
invisible,
|
|
36120
|
+
className,
|
|
36121
|
+
inputClassName,
|
|
36122
|
+
renderValue,
|
|
36123
|
+
modalPopover: t3,
|
|
36124
|
+
allowCustomValues: t4,
|
|
36125
|
+
portalContainer,
|
|
36126
|
+
autoFocus,
|
|
36127
|
+
children
|
|
36128
|
+
} = t0;
|
|
36129
|
+
const placeholder = t1 === void 0 ? "Select..." : t1;
|
|
36130
|
+
const size = t2 === void 0 ? "large" : t2;
|
|
36131
|
+
const modalPopover = t3 === void 0 ? false : t3;
|
|
36132
|
+
const allowCustomValues = t4 === void 0 ? true : t4;
|
|
36133
|
+
const [isMounted, setIsMounted] = useState(false);
|
|
36134
|
+
const [isPopoverOpen, setIsPopoverOpen] = useState(false);
|
|
36135
|
+
const [search, setSearch] = useState("");
|
|
36136
|
+
const inputRef = useRef(null);
|
|
36137
|
+
const contextContainer = usePortalContainer();
|
|
36138
|
+
const finalContainer = portalContainer ?? contextContainer ?? void 0;
|
|
36139
|
+
let t5;
|
|
36140
|
+
let t6;
|
|
36141
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
36142
|
+
t5 = () => {
|
|
36143
|
+
setIsMounted(true);
|
|
36144
|
+
};
|
|
36145
|
+
t6 = [];
|
|
36146
|
+
$[0] = t5;
|
|
36147
|
+
$[1] = t6;
|
|
36148
|
+
} else {
|
|
36149
|
+
t5 = $[0];
|
|
36150
|
+
t6 = $[1];
|
|
36151
|
+
}
|
|
36152
|
+
useEffect(t5, t6);
|
|
36153
|
+
let t7;
|
|
36154
|
+
if ($[2] !== autoFocus || $[3] !== isMounted) {
|
|
36155
|
+
t7 = [autoFocus, isMounted];
|
|
36156
|
+
$[2] = autoFocus;
|
|
36157
|
+
$[3] = isMounted;
|
|
36158
|
+
$[4] = t7;
|
|
36159
|
+
} else {
|
|
36160
|
+
t7 = $[4];
|
|
36161
|
+
}
|
|
36162
|
+
useEffect(() => {
|
|
36163
|
+
if (autoFocus && isMounted) {
|
|
36164
|
+
onPopoverOpenChange(true);
|
|
36165
|
+
}
|
|
36166
|
+
}, t7);
|
|
36167
|
+
let t8;
|
|
36168
|
+
let map;
|
|
36169
|
+
if ($[5] !== children) {
|
|
36170
|
+
map = /* @__PURE__ */ new Map();
|
|
36171
|
+
React.Children.forEach(children, (child) => {
|
|
36172
|
+
if (React.isValidElement(child) && child.props.value != null) {
|
|
36173
|
+
map.set(String(child.props.value), child.props.children ?? child.props.value);
|
|
36174
|
+
}
|
|
36175
|
+
});
|
|
36176
|
+
$[5] = children;
|
|
36177
|
+
$[6] = map;
|
|
36178
|
+
} else {
|
|
36179
|
+
map = $[6];
|
|
36180
|
+
}
|
|
36181
|
+
t8 = map;
|
|
36182
|
+
const itemsMap = t8;
|
|
36183
|
+
const onPopoverOpenChange = (open) => {
|
|
36184
|
+
setIsPopoverOpen(open);
|
|
36185
|
+
if (open) {
|
|
36186
|
+
setSearch(value ?? "");
|
|
36187
|
+
setTimeout(() => inputRef.current?.focus(), 0);
|
|
36188
|
+
}
|
|
36189
|
+
};
|
|
36190
|
+
let t9;
|
|
36191
|
+
if ($[7] !== onValueChange) {
|
|
36192
|
+
t9 = (selectedValue) => {
|
|
36193
|
+
onValueChange?.(selectedValue);
|
|
36194
|
+
setIsPopoverOpen(false);
|
|
36195
|
+
setSearch("");
|
|
36196
|
+
};
|
|
36197
|
+
$[7] = onValueChange;
|
|
36198
|
+
$[8] = t9;
|
|
36199
|
+
} else {
|
|
36200
|
+
t9 = $[8];
|
|
36201
|
+
}
|
|
36202
|
+
const handleSelect = t9;
|
|
36203
|
+
let t10;
|
|
36204
|
+
if ($[9] !== allowCustomValues || $[10] !== handleSelect || $[11] !== itemsMap || $[12] !== search) {
|
|
36205
|
+
t10 = (e) => {
|
|
36206
|
+
if (e.key === "Enter" && allowCustomValues) {
|
|
36207
|
+
const trimmed = search.trim();
|
|
36208
|
+
if (trimmed) {
|
|
36209
|
+
const isExistingItem = itemsMap.has(trimmed);
|
|
36210
|
+
if (!isExistingItem) {
|
|
36211
|
+
e.preventDefault();
|
|
36212
|
+
handleSelect(trimmed);
|
|
36213
|
+
}
|
|
36214
|
+
}
|
|
36215
|
+
} else {
|
|
36216
|
+
if (e.key === "Escape") {
|
|
36217
|
+
setIsPopoverOpen(false);
|
|
36218
|
+
}
|
|
36219
|
+
}
|
|
36220
|
+
};
|
|
36221
|
+
$[9] = allowCustomValues;
|
|
36222
|
+
$[10] = handleSelect;
|
|
36223
|
+
$[11] = itemsMap;
|
|
36224
|
+
$[12] = search;
|
|
36225
|
+
$[13] = t10;
|
|
36226
|
+
} else {
|
|
36227
|
+
t10 = $[13];
|
|
36228
|
+
}
|
|
36229
|
+
const handleInputKeyDown = t10;
|
|
36230
|
+
let t11;
|
|
36231
|
+
bb0: {
|
|
36232
|
+
if (!value) {
|
|
36233
|
+
t11 = null;
|
|
36234
|
+
break bb0;
|
|
36235
|
+
}
|
|
36236
|
+
if (renderValue) {
|
|
36237
|
+
let t123;
|
|
36238
|
+
if ($[14] !== renderValue || $[15] !== value) {
|
|
36239
|
+
t123 = renderValue(value);
|
|
36240
|
+
$[14] = renderValue;
|
|
36241
|
+
$[15] = value;
|
|
36242
|
+
$[16] = t123;
|
|
36243
|
+
} else {
|
|
36244
|
+
t123 = $[16];
|
|
36245
|
+
}
|
|
36246
|
+
t11 = t123;
|
|
36247
|
+
break bb0;
|
|
36248
|
+
}
|
|
36249
|
+
let t122;
|
|
36250
|
+
if ($[17] !== itemsMap || $[18] !== value) {
|
|
36251
|
+
t122 = itemsMap.get(value);
|
|
36252
|
+
$[17] = itemsMap;
|
|
36253
|
+
$[18] = value;
|
|
36254
|
+
$[19] = t122;
|
|
36255
|
+
} else {
|
|
36256
|
+
t122 = $[19];
|
|
36257
|
+
}
|
|
36258
|
+
const itemLabel = t122;
|
|
36259
|
+
if (itemLabel) {
|
|
36260
|
+
t11 = itemLabel;
|
|
36261
|
+
break bb0;
|
|
36262
|
+
}
|
|
36263
|
+
let t132;
|
|
36264
|
+
if ($[20] !== value) {
|
|
36265
|
+
t132 = /* @__PURE__ */ jsx("span", { className: "text-sm", children: value });
|
|
36266
|
+
$[20] = value;
|
|
36267
|
+
$[21] = t132;
|
|
36268
|
+
} else {
|
|
36269
|
+
t132 = $[21];
|
|
36270
|
+
}
|
|
36271
|
+
t11 = t132;
|
|
36272
|
+
}
|
|
36273
|
+
const displayLabel = t11;
|
|
36274
|
+
useInjectStyles("SearchableSelect", `
|
|
36275
|
+
[cmdk-group] {
|
|
36276
|
+
max-height: 45vh;
|
|
36277
|
+
overflow-y: auto;
|
|
36278
|
+
}`);
|
|
36279
|
+
let t12;
|
|
36280
|
+
if ($[22] !== error || $[23] !== label) {
|
|
36281
|
+
t12 = label && (typeof label === "string" ? /* @__PURE__ */ jsx("div", { className: cls("text-sm font-medium ml-3.5 mb-1", error ? "text-red-500 dark:text-red-600" : "text-surface-accent-500 dark:text-surface-accent-300"), children: label }) : label);
|
|
36282
|
+
$[22] = error;
|
|
36283
|
+
$[23] = label;
|
|
36284
|
+
$[24] = t12;
|
|
36285
|
+
} else {
|
|
36286
|
+
t12 = $[24];
|
|
36287
|
+
}
|
|
36288
|
+
const t13 = isMounted && isPopoverOpen;
|
|
36289
|
+
let t14;
|
|
36290
|
+
if ($[25] !== disabled || $[26] !== isPopoverOpen || $[27] !== onPopoverOpenChange) {
|
|
36291
|
+
t14 = () => !disabled && onPopoverOpenChange(!isPopoverOpen);
|
|
36292
|
+
$[25] = disabled;
|
|
36293
|
+
$[26] = isPopoverOpen;
|
|
36294
|
+
$[27] = onPopoverOpenChange;
|
|
36295
|
+
$[28] = t14;
|
|
36296
|
+
} else {
|
|
36297
|
+
t14 = $[28];
|
|
36298
|
+
}
|
|
36299
|
+
const t15 = size === "smallest";
|
|
36300
|
+
const t16 = size === "small";
|
|
36301
|
+
const t17 = size === "medium";
|
|
36302
|
+
const t18 = size === "large";
|
|
36303
|
+
let t19;
|
|
36304
|
+
if ($[29] !== className || $[30] !== disabled || $[31] !== inputClassName || $[32] !== invisible || $[33] !== size || $[34] !== t15 || $[35] !== t16 || $[36] !== t17 || $[37] !== t18) {
|
|
36305
|
+
t19 = cls({
|
|
36306
|
+
"min-h-[28px]": t15,
|
|
36307
|
+
"min-h-[32px]": t16,
|
|
36308
|
+
"min-h-[44px]": t17,
|
|
36309
|
+
"min-h-[64px]": t18
|
|
36310
|
+
}, {
|
|
36311
|
+
"py-0.5": size === "smallest",
|
|
36312
|
+
"py-1": size === "small",
|
|
36313
|
+
"py-2": size === "medium" || size === "large"
|
|
36314
|
+
}, {
|
|
36315
|
+
"px-2": size === "small" || size === "smallest",
|
|
36316
|
+
"px-4": size === "medium" || size === "large"
|
|
36317
|
+
}, "select-none rounded-md text-sm w-full text-start", "focus:ring-0 focus-visible:ring-0 outline-none focus:outline-none focus-visible:outline-none", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, "relative flex items-center", className, inputClassName);
|
|
36318
|
+
$[29] = className;
|
|
36319
|
+
$[30] = disabled;
|
|
36320
|
+
$[31] = inputClassName;
|
|
36321
|
+
$[32] = invisible;
|
|
36322
|
+
$[33] = size;
|
|
36323
|
+
$[34] = t15;
|
|
36324
|
+
$[35] = t16;
|
|
36325
|
+
$[36] = t17;
|
|
36326
|
+
$[37] = t18;
|
|
36327
|
+
$[38] = t19;
|
|
36328
|
+
} else {
|
|
36329
|
+
t19 = $[38];
|
|
36330
|
+
}
|
|
36331
|
+
let t20;
|
|
36332
|
+
if ($[39] !== displayLabel || $[40] !== placeholder) {
|
|
36333
|
+
t20 = displayLabel ?? /* @__PURE__ */ jsx("span", { className: "text-sm text-surface-accent-500 dark:text-surface-accent-400", children: placeholder });
|
|
36334
|
+
$[39] = displayLabel;
|
|
36335
|
+
$[40] = placeholder;
|
|
36336
|
+
$[41] = t20;
|
|
36337
|
+
} else {
|
|
36338
|
+
t20 = $[41];
|
|
36339
|
+
}
|
|
36340
|
+
let t21;
|
|
36341
|
+
if ($[42] !== t20) {
|
|
36342
|
+
t21 = /* @__PURE__ */ jsx("div", { className: "flex-grow min-w-0 truncate", children: t20 });
|
|
36343
|
+
$[42] = t20;
|
|
36344
|
+
$[43] = t21;
|
|
36345
|
+
} else {
|
|
36346
|
+
t21 = $[43];
|
|
36347
|
+
}
|
|
36348
|
+
let t22;
|
|
36349
|
+
if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
36350
|
+
t22 = cls("flex-shrink-0 flex items-center");
|
|
36351
|
+
$[44] = t22;
|
|
36352
|
+
} else {
|
|
36353
|
+
t22 = $[44];
|
|
36354
|
+
}
|
|
36355
|
+
const t23 = size === "large" ? "medium" : "small";
|
|
36356
|
+
const t24 = isPopoverOpen ? "rotate-180" : "";
|
|
36357
|
+
let t25;
|
|
36358
|
+
if ($[45] !== t24) {
|
|
36359
|
+
t25 = cls("transition", t24);
|
|
36360
|
+
$[45] = t24;
|
|
36361
|
+
$[46] = t25;
|
|
36362
|
+
} else {
|
|
36363
|
+
t25 = $[46];
|
|
36364
|
+
}
|
|
36365
|
+
let t26;
|
|
36366
|
+
if ($[47] !== t23 || $[48] !== t25) {
|
|
36367
|
+
t26 = /* @__PURE__ */ jsx("div", { className: t22, children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: t23, className: t25 }) });
|
|
36368
|
+
$[47] = t23;
|
|
36369
|
+
$[48] = t25;
|
|
36370
|
+
$[49] = t26;
|
|
36371
|
+
} else {
|
|
36372
|
+
t26 = $[49];
|
|
36373
|
+
}
|
|
36374
|
+
let t27;
|
|
36375
|
+
if ($[50] !== t21 || $[51] !== t26) {
|
|
36376
|
+
t27 = /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between w-full gap-1", children: [
|
|
36377
|
+
t21,
|
|
36378
|
+
t26
|
|
36379
|
+
] });
|
|
36380
|
+
$[50] = t21;
|
|
36381
|
+
$[51] = t26;
|
|
36382
|
+
$[52] = t27;
|
|
36383
|
+
} else {
|
|
36384
|
+
t27 = $[52];
|
|
36385
|
+
}
|
|
36386
|
+
let t28;
|
|
36387
|
+
if ($[53] !== disabled || $[54] !== ref || $[55] !== t14 || $[56] !== t19 || $[57] !== t27) {
|
|
36388
|
+
t28 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("button", { ref, disabled, onClick: t14, className: t19, children: t27 }) });
|
|
36389
|
+
$[53] = disabled;
|
|
36390
|
+
$[54] = ref;
|
|
36391
|
+
$[55] = t14;
|
|
36392
|
+
$[56] = t19;
|
|
36393
|
+
$[57] = t27;
|
|
36394
|
+
$[58] = t28;
|
|
36395
|
+
} else {
|
|
36396
|
+
t28 = $[58];
|
|
36397
|
+
}
|
|
36398
|
+
let t29;
|
|
36399
|
+
if ($[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
36400
|
+
t29 = cls("z-50 overflow-hidden border bg-white dark:bg-surface-900 rounded-lg", defaultBorderMixin);
|
|
36401
|
+
$[59] = t29;
|
|
36402
|
+
} else {
|
|
36403
|
+
t29 = $[59];
|
|
36404
|
+
}
|
|
36405
|
+
let t30;
|
|
36406
|
+
if ($[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
36407
|
+
t30 = {
|
|
36408
|
+
width: "var(--radix-popover-trigger-width)",
|
|
36409
|
+
minWidth: 180
|
|
36410
|
+
};
|
|
36411
|
+
$[60] = t30;
|
|
36412
|
+
} else {
|
|
36413
|
+
t30 = $[60];
|
|
36414
|
+
}
|
|
36415
|
+
let t31;
|
|
36416
|
+
if ($[61] !== onPopoverOpenChange) {
|
|
36417
|
+
t31 = () => onPopoverOpenChange(false);
|
|
36418
|
+
$[61] = onPopoverOpenChange;
|
|
36419
|
+
$[62] = t31;
|
|
36420
|
+
} else {
|
|
36421
|
+
t31 = $[62];
|
|
36422
|
+
}
|
|
36423
|
+
const t32 = size === "smallest" || size === "small";
|
|
36424
|
+
const t33 = size === "medium" || size === "large";
|
|
36425
|
+
let t34;
|
|
36426
|
+
if ($[63] !== t32 || $[64] !== t33) {
|
|
36427
|
+
t34 = cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full text-surface-accent-900 dark:text-white", {
|
|
36428
|
+
"m-2 text-xs": t32,
|
|
36429
|
+
"m-3 text-sm": t33
|
|
36430
|
+
});
|
|
36431
|
+
$[63] = t32;
|
|
36432
|
+
$[64] = t33;
|
|
36433
|
+
$[65] = t34;
|
|
36434
|
+
} else {
|
|
36435
|
+
t34 = $[65];
|
|
36436
|
+
}
|
|
36437
|
+
let t35;
|
|
36438
|
+
if ($[66] !== handleInputKeyDown || $[67] !== search || $[68] !== t34) {
|
|
36439
|
+
t35 = /* @__PURE__ */ jsx("div", { className: "flex flex-row items-center", children: /* @__PURE__ */ jsx(Command.Input, { ref: inputRef, value: search, onValueChange: setSearch, className: t34, placeholder: "Search...", onKeyDown: handleInputKeyDown }) });
|
|
36440
|
+
$[66] = handleInputKeyDown;
|
|
36441
|
+
$[67] = search;
|
|
36442
|
+
$[68] = t34;
|
|
36443
|
+
$[69] = t35;
|
|
36444
|
+
} else {
|
|
36445
|
+
t35 = $[69];
|
|
36446
|
+
}
|
|
36447
|
+
let t36;
|
|
36448
|
+
if ($[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
36449
|
+
t36 = /* @__PURE__ */ jsx(Separator, { orientation: "horizontal", className: "my-0" });
|
|
36450
|
+
$[70] = t36;
|
|
36451
|
+
} else {
|
|
36452
|
+
t36 = $[70];
|
|
36453
|
+
}
|
|
36454
|
+
let t37;
|
|
36455
|
+
if ($[71] !== allowCustomValues || $[72] !== handleSelect || $[73] !== itemsMap || $[74] !== search) {
|
|
36456
|
+
t37 = allowCustomValues && search.trim() && !itemsMap.has(search.trim()) ? /* @__PURE__ */ jsxs(Command.Empty, { className: "px-3 py-2 text-xs cursor-pointer text-primary hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800", onClick: () => handleSelect(search.trim()), children: [
|
|
36457
|
+
"Use “",
|
|
36458
|
+
search.trim(),
|
|
36459
|
+
"”"
|
|
36460
|
+
] }) : /* @__PURE__ */ jsx(Command.Empty, { className: "px-3 py-2 text-xs text-text-secondary dark:text-text-secondary-dark", children: "No results found." });
|
|
36461
|
+
$[71] = allowCustomValues;
|
|
36462
|
+
$[72] = handleSelect;
|
|
36463
|
+
$[73] = itemsMap;
|
|
36464
|
+
$[74] = search;
|
|
36465
|
+
$[75] = t37;
|
|
36466
|
+
} else {
|
|
36467
|
+
t37 = $[75];
|
|
36468
|
+
}
|
|
36469
|
+
let t38;
|
|
36470
|
+
if ($[76] !== children || $[77] !== handleSelect || $[78] !== value) {
|
|
36471
|
+
let t392;
|
|
36472
|
+
if ($[80] !== handleSelect || $[81] !== value) {
|
|
36473
|
+
t392 = (child_0) => {
|
|
36474
|
+
if (!React.isValidElement(child_0)) {
|
|
36475
|
+
return child_0;
|
|
36476
|
+
}
|
|
36477
|
+
const itemValue = child_0.props.value;
|
|
36478
|
+
const isSelected = String(value) === String(itemValue);
|
|
36479
|
+
return /* @__PURE__ */ jsxs(Command.Item, { value: String(itemValue), onMouseDown: _temp$2, onSelect: () => handleSelect(String(itemValue)), className: cls("flex flex-row items-center gap-1.5", isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "", "cursor-pointer", "m-0.5", "ring-offset-transparent", "p-1.5 rounded", "aria-[selected=true]:outline-none", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "text-surface-accent-700 dark:text-surface-accent-300", child_0.props.className), children: [
|
|
36480
|
+
/* @__PURE__ */ jsx("div", { className: cls("w-4 h-4 flex items-center justify-center flex-shrink-0", isSelected ? "text-primary" : "text-transparent"), children: isSelected && /* @__PURE__ */ jsx(CheckIcon, { size: 14 }) }),
|
|
36481
|
+
child_0.props.children ?? child_0.props.value
|
|
36482
|
+
] }, String(itemValue));
|
|
36483
|
+
};
|
|
36484
|
+
$[80] = handleSelect;
|
|
36485
|
+
$[81] = value;
|
|
36486
|
+
$[82] = t392;
|
|
36487
|
+
} else {
|
|
36488
|
+
t392 = $[82];
|
|
36489
|
+
}
|
|
36490
|
+
t38 = React.Children.map(children, t392);
|
|
36491
|
+
$[76] = children;
|
|
36492
|
+
$[77] = handleSelect;
|
|
36493
|
+
$[78] = value;
|
|
36494
|
+
$[79] = t38;
|
|
36495
|
+
} else {
|
|
36496
|
+
t38 = $[79];
|
|
36497
|
+
}
|
|
36498
|
+
let t39;
|
|
36499
|
+
if ($[83] !== t38) {
|
|
36500
|
+
t39 = /* @__PURE__ */ jsx(Command.Group, { children: t38 });
|
|
36501
|
+
$[83] = t38;
|
|
36502
|
+
$[84] = t39;
|
|
36503
|
+
} else {
|
|
36504
|
+
t39 = $[84];
|
|
36505
|
+
}
|
|
36506
|
+
let t40;
|
|
36507
|
+
if ($[85] !== t37 || $[86] !== t39) {
|
|
36508
|
+
t40 = /* @__PURE__ */ jsxs(Command.List, { children: [
|
|
36509
|
+
t37,
|
|
36510
|
+
t39
|
|
36511
|
+
] });
|
|
36512
|
+
$[85] = t37;
|
|
36513
|
+
$[86] = t39;
|
|
36514
|
+
$[87] = t40;
|
|
36515
|
+
} else {
|
|
36516
|
+
t40 = $[87];
|
|
36517
|
+
}
|
|
36518
|
+
let t41;
|
|
36519
|
+
if ($[88] !== t35 || $[89] !== t40) {
|
|
36520
|
+
t41 = /* @__PURE__ */ jsxs(Command, { shouldFilter: true, children: [
|
|
36521
|
+
t35,
|
|
36522
|
+
t36,
|
|
36523
|
+
t40
|
|
36524
|
+
] });
|
|
36525
|
+
$[88] = t35;
|
|
36526
|
+
$[89] = t40;
|
|
36527
|
+
$[90] = t41;
|
|
36528
|
+
} else {
|
|
36529
|
+
t41 = $[90];
|
|
36530
|
+
}
|
|
36531
|
+
let t42;
|
|
36532
|
+
if ($[91] !== t31 || $[92] !== t41) {
|
|
36533
|
+
t42 = /* @__PURE__ */ jsx(PopoverPrimitive.Content, { className: t29, align: "start", sideOffset: 4, style: t30, onEscapeKeyDown: t31, children: t41 });
|
|
36534
|
+
$[91] = t31;
|
|
36535
|
+
$[92] = t41;
|
|
36536
|
+
$[93] = t42;
|
|
36537
|
+
} else {
|
|
36538
|
+
t42 = $[93];
|
|
36539
|
+
}
|
|
36540
|
+
let t43;
|
|
36541
|
+
if ($[94] !== finalContainer || $[95] !== t42) {
|
|
36542
|
+
t43 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: finalContainer, children: t42 });
|
|
36543
|
+
$[94] = finalContainer;
|
|
36544
|
+
$[95] = t42;
|
|
36545
|
+
$[96] = t43;
|
|
36546
|
+
} else {
|
|
36547
|
+
t43 = $[96];
|
|
36548
|
+
}
|
|
36549
|
+
let t44;
|
|
36550
|
+
if ($[97] !== modalPopover || $[98] !== onPopoverOpenChange || $[99] !== t13 || $[100] !== t28 || $[101] !== t43) {
|
|
36551
|
+
t44 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open: t13, onOpenChange: onPopoverOpenChange, modal: modalPopover, children: [
|
|
36552
|
+
t28,
|
|
36553
|
+
t43
|
|
36554
|
+
] });
|
|
36555
|
+
$[97] = modalPopover;
|
|
36556
|
+
$[98] = onPopoverOpenChange;
|
|
36557
|
+
$[99] = t13;
|
|
36558
|
+
$[100] = t28;
|
|
36559
|
+
$[101] = t43;
|
|
36560
|
+
$[102] = t44;
|
|
36561
|
+
} else {
|
|
36562
|
+
t44 = $[102];
|
|
36563
|
+
}
|
|
36564
|
+
let t45;
|
|
36565
|
+
if ($[103] !== t12 || $[104] !== t44) {
|
|
36566
|
+
t45 = /* @__PURE__ */ jsxs("div", { children: [
|
|
36567
|
+
t12,
|
|
36568
|
+
t44
|
|
36569
|
+
] });
|
|
36570
|
+
$[103] = t12;
|
|
36571
|
+
$[104] = t44;
|
|
36572
|
+
$[105] = t45;
|
|
36573
|
+
} else {
|
|
36574
|
+
t45 = $[105];
|
|
36575
|
+
}
|
|
36576
|
+
return t45;
|
|
36577
|
+
});
|
|
36578
|
+
SearchableSelect.displayName = "SearchableSelect";
|
|
36579
|
+
function SearchableSelectItem(_props) {
|
|
36580
|
+
return null;
|
|
36581
|
+
}
|
|
36582
|
+
function _temp$2(e_0) {
|
|
36583
|
+
e_0.preventDefault();
|
|
36584
|
+
e_0.stopPropagation();
|
|
36585
|
+
}
|
|
35756
36586
|
const Select = forwardRef((t0, ref) => {
|
|
35757
36587
|
const $ = c(121);
|
|
35758
36588
|
let children;
|
|
@@ -36729,203 +37559,222 @@ function _temp(event) {
|
|
|
36729
37559
|
function getStyleValue(value) {
|
|
36730
37560
|
return parseInt(value, 10) || 0;
|
|
36731
37561
|
}
|
|
36732
|
-
const styles = {
|
|
36733
|
-
shadow: {
|
|
36734
|
-
// Visibility needed to hide the extra text area on iPads
|
|
36735
|
-
visibility: "hidden",
|
|
36736
|
-
// Remove from the content flow
|
|
36737
|
-
position: "absolute",
|
|
36738
|
-
// Ignore the scrollbar width
|
|
36739
|
-
overflow: "hidden",
|
|
36740
|
-
height: 0,
|
|
36741
|
-
top: 0,
|
|
36742
|
-
left: 0,
|
|
36743
|
-
// Create a new layer, increase the isolation of the computed values
|
|
36744
|
-
transform: "translateZ(0)"
|
|
36745
|
-
}
|
|
36746
|
-
};
|
|
36747
|
-
function isEmpty(obj) {
|
|
36748
|
-
return obj === void 0 || obj === null || Object.keys(obj).length === 0 || obj.outerHeightStyle === 0 && !obj.overflow;
|
|
36749
|
-
}
|
|
36750
37562
|
const TextareaAutosize = React.forwardRef(function TextareaAutosize2(props, ref) {
|
|
36751
|
-
const
|
|
36752
|
-
|
|
36753
|
-
|
|
36754
|
-
|
|
36755
|
-
|
|
36756
|
-
|
|
36757
|
-
|
|
36758
|
-
|
|
36759
|
-
|
|
36760
|
-
|
|
36761
|
-
|
|
36762
|
-
|
|
36763
|
-
|
|
36764
|
-
|
|
37563
|
+
const $ = c(38);
|
|
37564
|
+
let ignoreBoxSizing;
|
|
37565
|
+
let maxRows;
|
|
37566
|
+
let onBlur;
|
|
37567
|
+
let onChange;
|
|
37568
|
+
let onFocus;
|
|
37569
|
+
let onResize;
|
|
37570
|
+
let onScroll;
|
|
37571
|
+
let other;
|
|
37572
|
+
let style;
|
|
37573
|
+
let t0;
|
|
37574
|
+
let value;
|
|
37575
|
+
if ($[0] !== props) {
|
|
37576
|
+
const {
|
|
37577
|
+
onChange: t12,
|
|
37578
|
+
onScroll: t22,
|
|
37579
|
+
onResize: t32,
|
|
37580
|
+
maxRows: t42,
|
|
37581
|
+
minRows: t52,
|
|
37582
|
+
style: t62,
|
|
37583
|
+
value: t72,
|
|
37584
|
+
onFocus: t82,
|
|
37585
|
+
onBlur: t9,
|
|
37586
|
+
sizeRef,
|
|
37587
|
+
ignoreBoxSizing: t10,
|
|
37588
|
+
...t11
|
|
37589
|
+
} = props;
|
|
37590
|
+
onChange = t12;
|
|
37591
|
+
onScroll = t22;
|
|
37592
|
+
onResize = t32;
|
|
37593
|
+
maxRows = t42;
|
|
37594
|
+
t0 = t52;
|
|
37595
|
+
style = t62;
|
|
37596
|
+
value = t72;
|
|
37597
|
+
onFocus = t82;
|
|
37598
|
+
onBlur = t9;
|
|
37599
|
+
ignoreBoxSizing = t10;
|
|
37600
|
+
other = t11;
|
|
37601
|
+
$[0] = props;
|
|
37602
|
+
$[1] = ignoreBoxSizing;
|
|
37603
|
+
$[2] = maxRows;
|
|
37604
|
+
$[3] = onBlur;
|
|
37605
|
+
$[4] = onChange;
|
|
37606
|
+
$[5] = onFocus;
|
|
37607
|
+
$[6] = onResize;
|
|
37608
|
+
$[7] = onScroll;
|
|
37609
|
+
$[8] = other;
|
|
37610
|
+
$[9] = style;
|
|
37611
|
+
$[10] = t0;
|
|
37612
|
+
$[11] = value;
|
|
37613
|
+
} else {
|
|
37614
|
+
ignoreBoxSizing = $[1];
|
|
37615
|
+
maxRows = $[2];
|
|
37616
|
+
onBlur = $[3];
|
|
37617
|
+
onChange = $[4];
|
|
37618
|
+
onFocus = $[5];
|
|
37619
|
+
onResize = $[6];
|
|
37620
|
+
onScroll = $[7];
|
|
37621
|
+
other = $[8];
|
|
37622
|
+
style = $[9];
|
|
37623
|
+
t0 = $[10];
|
|
37624
|
+
value = $[11];
|
|
37625
|
+
}
|
|
37626
|
+
const minRows = t0 === void 0 ? 1 : t0;
|
|
36765
37627
|
const {
|
|
36766
37628
|
current: isControlled
|
|
36767
37629
|
} = React.useRef(value != null);
|
|
36768
37630
|
const inputRef = React.useRef(null);
|
|
36769
37631
|
const handleRef = useForkRef(ref, inputRef);
|
|
36770
|
-
|
|
36771
|
-
|
|
36772
|
-
|
|
36773
|
-
|
|
36774
|
-
|
|
36775
|
-
|
|
36776
|
-
const input = inputRef.current;
|
|
36777
|
-
if (typeof window === "undefined") {
|
|
36778
|
-
return {
|
|
36779
|
-
outerHeightStyle: 0
|
|
36780
|
-
};
|
|
36781
|
-
}
|
|
36782
|
-
const containerWindow = window;
|
|
36783
|
-
const computedStyle = containerWindow.getComputedStyle(input);
|
|
36784
|
-
if (computedStyle.width === "0px") {
|
|
36785
|
-
return {
|
|
36786
|
-
outerHeightStyle: 0
|
|
36787
|
-
};
|
|
36788
|
-
}
|
|
36789
|
-
const sizeReferenceElement = sizeRef?.current ?? shadowRef.current;
|
|
36790
|
-
const inputShallow = shadowRef.current;
|
|
36791
|
-
sizeReferenceElement.style.width = computedStyle.width;
|
|
36792
|
-
inputShallow.value = input.value || props.placeholder || "x";
|
|
36793
|
-
if (inputShallow.value.slice(-1) === "\n") {
|
|
36794
|
-
inputShallow.value += " ";
|
|
36795
|
-
}
|
|
36796
|
-
const boxSizing = computedStyle.boxSizing;
|
|
36797
|
-
const padding = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);
|
|
36798
|
-
const border = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);
|
|
36799
|
-
const minHeight = getStyleValue(computedStyle.minHeight);
|
|
36800
|
-
const innerHeight = sizeReferenceElement.scrollHeight;
|
|
36801
|
-
inputShallow.value = "x";
|
|
36802
|
-
const singleRowHeight = sizeReferenceElement.scrollHeight;
|
|
36803
|
-
let outerHeight = innerHeight;
|
|
36804
|
-
if (minRows) {
|
|
36805
|
-
outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
|
|
36806
|
-
}
|
|
36807
|
-
if (maxRows) {
|
|
36808
|
-
outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
|
|
36809
|
-
}
|
|
36810
|
-
outerHeight = Math.max(outerHeight, singleRowHeight, minHeight);
|
|
36811
|
-
const outerHeightStyle = outerHeight + (!ignoreBoxSizing && boxSizing === "border-box" ? padding + border : 0);
|
|
36812
|
-
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
36813
|
-
return {
|
|
36814
|
-
outerHeightStyle,
|
|
36815
|
-
overflow
|
|
36816
|
-
};
|
|
36817
|
-
}, [maxRows, minRows, props.placeholder]);
|
|
36818
|
-
const updateState = React.useCallback((prevState, newState) => {
|
|
36819
|
-
const {
|
|
36820
|
-
outerHeightStyle: outerHeightStyle_0,
|
|
36821
|
-
overflow: overflow_0
|
|
36822
|
-
} = newState;
|
|
36823
|
-
if (renders.current < 20 && (outerHeightStyle_0 > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle_0) > 1 || prevState.overflow !== overflow_0)) {
|
|
36824
|
-
renders.current += 1;
|
|
36825
|
-
return {
|
|
36826
|
-
overflow: overflow_0,
|
|
36827
|
-
outerHeightStyle: outerHeightStyle_0
|
|
36828
|
-
};
|
|
36829
|
-
}
|
|
36830
|
-
if (process.env.NODE_ENV !== "production") {
|
|
36831
|
-
if (renders.current === 20) {
|
|
36832
|
-
console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join("\n"));
|
|
37632
|
+
let t1;
|
|
37633
|
+
if ($[12] !== ignoreBoxSizing || $[13] !== maxRows || $[14] !== minRows || $[15] !== onResize) {
|
|
37634
|
+
t1 = () => {
|
|
37635
|
+
const el = inputRef.current;
|
|
37636
|
+
if (!el || typeof window === "undefined") {
|
|
37637
|
+
return;
|
|
36833
37638
|
}
|
|
36834
|
-
|
|
36835
|
-
|
|
36836
|
-
}, []);
|
|
36837
|
-
const syncHeight = React.useCallback(() => {
|
|
36838
|
-
const newState_0 = getUpdatedState();
|
|
36839
|
-
if (isEmpty(newState_0)) {
|
|
36840
|
-
return;
|
|
36841
|
-
}
|
|
36842
|
-
if (onResize) {
|
|
36843
|
-
onResize(newState_0);
|
|
36844
|
-
}
|
|
36845
|
-
setState((prevState_0) => {
|
|
36846
|
-
return updateState(prevState_0, newState_0);
|
|
36847
|
-
});
|
|
36848
|
-
}, [getUpdatedState, onResize, updateState]);
|
|
36849
|
-
const syncHeightWithFlushSync = React.useCallback(() => {
|
|
36850
|
-
const newState_1 = getUpdatedState();
|
|
36851
|
-
if (isEmpty(newState_1)) {
|
|
36852
|
-
return;
|
|
36853
|
-
}
|
|
36854
|
-
ReactDOM.flushSync(() => {
|
|
36855
|
-
setState((prevState_1) => {
|
|
36856
|
-
return updateState(prevState_1, newState_1);
|
|
36857
|
-
});
|
|
36858
|
-
});
|
|
36859
|
-
}, [getUpdatedState, updateState]);
|
|
36860
|
-
React.useEffect(() => {
|
|
36861
|
-
const handleResize = debounce(() => {
|
|
36862
|
-
renders.current = 0;
|
|
36863
|
-
if (inputRef.current) {
|
|
36864
|
-
syncHeightWithFlushSync();
|
|
37639
|
+
if (el.offsetWidth === 0) {
|
|
37640
|
+
return;
|
|
36865
37641
|
}
|
|
36866
|
-
|
|
36867
|
-
|
|
36868
|
-
|
|
36869
|
-
|
|
36870
|
-
|
|
36871
|
-
|
|
36872
|
-
|
|
36873
|
-
|
|
36874
|
-
|
|
36875
|
-
|
|
36876
|
-
|
|
36877
|
-
|
|
36878
|
-
|
|
36879
|
-
|
|
36880
|
-
|
|
36881
|
-
|
|
36882
|
-
|
|
37642
|
+
const cs = window.getComputedStyle(el);
|
|
37643
|
+
const paddingY = getStyleValue(cs.paddingTop) + getStyleValue(cs.paddingBottom);
|
|
37644
|
+
const borderY = getStyleValue(cs.borderTopWidth) + getStyleValue(cs.borderBottomWidth);
|
|
37645
|
+
const boxSizing = cs.boxSizing;
|
|
37646
|
+
const prevHeight = el.style.height;
|
|
37647
|
+
const prevOverflow = el.style.overflowY;
|
|
37648
|
+
el.style.overflowY = "hidden";
|
|
37649
|
+
el.style.height = "0px";
|
|
37650
|
+
const scrollH = el.scrollHeight;
|
|
37651
|
+
const prevValue = el.value;
|
|
37652
|
+
el.value = "x";
|
|
37653
|
+
const singleRowScrollH = el.scrollHeight;
|
|
37654
|
+
el.value = prevValue;
|
|
37655
|
+
el.style.height = prevHeight;
|
|
37656
|
+
el.style.overflowY = prevOverflow;
|
|
37657
|
+
const lineHeight = singleRowScrollH - paddingY;
|
|
37658
|
+
let targetHeight = scrollH;
|
|
37659
|
+
if (minRows) {
|
|
37660
|
+
targetHeight = Math.max(Number(minRows) * lineHeight + paddingY, targetHeight);
|
|
37661
|
+
}
|
|
37662
|
+
const unclampedHeight = targetHeight;
|
|
37663
|
+
if (maxRows) {
|
|
37664
|
+
targetHeight = Math.min(Number(maxRows) * lineHeight + paddingY, targetHeight);
|
|
37665
|
+
}
|
|
37666
|
+
const extra = !ignoreBoxSizing && boxSizing === "border-box" ? borderY : 0;
|
|
37667
|
+
const finalHeight = Math.ceil(targetHeight + extra);
|
|
37668
|
+
const shouldScroll = Math.abs(unclampedHeight - targetHeight) > 1;
|
|
37669
|
+
el.style.height = `${finalHeight}px`;
|
|
37670
|
+
el.style.overflowY = shouldScroll ? "auto" : "hidden";
|
|
37671
|
+
if (onResize) {
|
|
37672
|
+
onResize({
|
|
37673
|
+
outerHeightStyle: finalHeight,
|
|
37674
|
+
overflow: !shouldScroll
|
|
37675
|
+
});
|
|
36883
37676
|
}
|
|
36884
37677
|
};
|
|
36885
|
-
|
|
36886
|
-
|
|
36887
|
-
|
|
36888
|
-
|
|
36889
|
-
|
|
36890
|
-
|
|
36891
|
-
|
|
36892
|
-
|
|
36893
|
-
|
|
36894
|
-
|
|
37678
|
+
$[12] = ignoreBoxSizing;
|
|
37679
|
+
$[13] = maxRows;
|
|
37680
|
+
$[14] = minRows;
|
|
37681
|
+
$[15] = onResize;
|
|
37682
|
+
$[16] = t1;
|
|
37683
|
+
} else {
|
|
37684
|
+
t1 = $[16];
|
|
37685
|
+
}
|
|
37686
|
+
const syncHeight = t1;
|
|
37687
|
+
let t2;
|
|
37688
|
+
if ($[17] !== syncHeight) {
|
|
37689
|
+
t2 = () => {
|
|
36895
37690
|
syncHeight();
|
|
36896
|
-
}
|
|
36897
|
-
|
|
36898
|
-
|
|
36899
|
-
|
|
36900
|
-
|
|
36901
|
-
|
|
36902
|
-
|
|
36903
|
-
|
|
36904
|
-
|
|
36905
|
-
|
|
36906
|
-
|
|
36907
|
-
|
|
36908
|
-
|
|
36909
|
-
|
|
36910
|
-
|
|
36911
|
-
|
|
36912
|
-
|
|
36913
|
-
|
|
36914
|
-
|
|
36915
|
-
// This prevents infinite rendering loop.
|
|
36916
|
-
overflow: state.overflow ? "hidden" : void 0,
|
|
36917
|
-
...style
|
|
36918
|
-
},
|
|
36919
|
-
onScroll,
|
|
36920
|
-
...other
|
|
37691
|
+
};
|
|
37692
|
+
$[17] = syncHeight;
|
|
37693
|
+
$[18] = t2;
|
|
37694
|
+
} else {
|
|
37695
|
+
t2 = $[18];
|
|
37696
|
+
}
|
|
37697
|
+
useLayoutEffect(t2);
|
|
37698
|
+
let t3;
|
|
37699
|
+
let t4;
|
|
37700
|
+
if ($[19] !== syncHeight) {
|
|
37701
|
+
t3 = () => {
|
|
37702
|
+
const handleResize = debounce(() => {
|
|
37703
|
+
if (inputRef.current) {
|
|
37704
|
+
syncHeight();
|
|
37705
|
+
}
|
|
37706
|
+
});
|
|
37707
|
+
const input = inputRef.current;
|
|
37708
|
+
if (typeof window === "undefined") {
|
|
37709
|
+
return;
|
|
36921
37710
|
}
|
|
36922
|
-
|
|
36923
|
-
|
|
36924
|
-
|
|
36925
|
-
|
|
37711
|
+
window.addEventListener("resize", handleResize);
|
|
37712
|
+
let resizeObserver;
|
|
37713
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
37714
|
+
resizeObserver = new ResizeObserver(handleResize);
|
|
37715
|
+
resizeObserver.observe(input);
|
|
37716
|
+
}
|
|
37717
|
+
return () => {
|
|
37718
|
+
handleResize.clear();
|
|
37719
|
+
window.removeEventListener("resize", handleResize);
|
|
37720
|
+
resizeObserver?.disconnect();
|
|
37721
|
+
};
|
|
37722
|
+
};
|
|
37723
|
+
t4 = [syncHeight];
|
|
37724
|
+
$[19] = syncHeight;
|
|
37725
|
+
$[20] = t3;
|
|
37726
|
+
$[21] = t4;
|
|
37727
|
+
} else {
|
|
37728
|
+
t3 = $[20];
|
|
37729
|
+
t4 = $[21];
|
|
37730
|
+
}
|
|
37731
|
+
React.useEffect(t3, t4);
|
|
37732
|
+
let t5;
|
|
37733
|
+
if ($[22] !== onChange || $[23] !== syncHeight) {
|
|
37734
|
+
t5 = (event) => {
|
|
37735
|
+
if (!isControlled) {
|
|
37736
|
+
syncHeight();
|
|
37737
|
+
}
|
|
37738
|
+
if (onChange) {
|
|
37739
|
+
onChange(event);
|
|
37740
|
+
}
|
|
37741
|
+
};
|
|
37742
|
+
$[22] = onChange;
|
|
37743
|
+
$[23] = syncHeight;
|
|
37744
|
+
$[24] = t5;
|
|
37745
|
+
} else {
|
|
37746
|
+
t5 = $[24];
|
|
37747
|
+
}
|
|
37748
|
+
const handleChange = t5;
|
|
37749
|
+
const t6 = minRows;
|
|
37750
|
+
let t7;
|
|
37751
|
+
if ($[25] !== style) {
|
|
37752
|
+
t7 = {
|
|
36926
37753
|
...style
|
|
36927
|
-
}
|
|
36928
|
-
|
|
37754
|
+
};
|
|
37755
|
+
$[25] = style;
|
|
37756
|
+
$[26] = t7;
|
|
37757
|
+
} else {
|
|
37758
|
+
t7 = $[26];
|
|
37759
|
+
}
|
|
37760
|
+
let t8;
|
|
37761
|
+
if ($[27] !== handleChange || $[28] !== handleRef || $[29] !== onBlur || $[30] !== onFocus || $[31] !== onScroll || $[32] !== other || $[33] !== props.className || $[34] !== t6 || $[35] !== t7 || $[36] !== value) {
|
|
37762
|
+
t8 = /* @__PURE__ */ jsx("textarea", { value, onChange: handleChange, className: props.className, ref: handleRef, onFocus, onBlur, rows: t6, style: t7, onScroll, ...other });
|
|
37763
|
+
$[27] = handleChange;
|
|
37764
|
+
$[28] = handleRef;
|
|
37765
|
+
$[29] = onBlur;
|
|
37766
|
+
$[30] = onFocus;
|
|
37767
|
+
$[31] = onScroll;
|
|
37768
|
+
$[32] = other;
|
|
37769
|
+
$[33] = props.className;
|
|
37770
|
+
$[34] = t6;
|
|
37771
|
+
$[35] = t7;
|
|
37772
|
+
$[36] = value;
|
|
37773
|
+
$[37] = t8;
|
|
37774
|
+
} else {
|
|
37775
|
+
t8 = $[37];
|
|
37776
|
+
}
|
|
37777
|
+
return t8;
|
|
36929
37778
|
});
|
|
36930
37779
|
function useForkRef(...refs) {
|
|
36931
37780
|
return React.useMemo(() => {
|
|
@@ -37009,47 +37858,183 @@ const TextField = forwardRef(({
|
|
|
37009
37858
|
] });
|
|
37010
37859
|
});
|
|
37011
37860
|
TextField.displayName = "TextField";
|
|
37861
|
+
const TabsModeContext = createContext("primary");
|
|
37012
37862
|
function Tabs(t0) {
|
|
37013
|
-
const $ = c(
|
|
37863
|
+
const $ = c(35);
|
|
37014
37864
|
const {
|
|
37015
37865
|
value,
|
|
37016
37866
|
onValueChange,
|
|
37017
37867
|
className,
|
|
37018
37868
|
innerClassName,
|
|
37019
|
-
children
|
|
37869
|
+
children,
|
|
37870
|
+
mode: t1
|
|
37020
37871
|
} = t0;
|
|
37021
|
-
|
|
37022
|
-
|
|
37023
|
-
|
|
37024
|
-
|
|
37025
|
-
|
|
37872
|
+
const mode = t1 === void 0 ? "primary" : t1;
|
|
37873
|
+
const scrollContainerRef = useRef(null);
|
|
37874
|
+
const [showLeftScroll, setShowLeftScroll] = useState(false);
|
|
37875
|
+
const [showRightScroll, setShowRightScroll] = useState(false);
|
|
37876
|
+
const [isScrollable, setIsScrollable] = useState(false);
|
|
37877
|
+
let t2;
|
|
37878
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37879
|
+
t2 = () => {
|
|
37880
|
+
if (scrollContainerRef.current) {
|
|
37881
|
+
const {
|
|
37882
|
+
scrollLeft,
|
|
37883
|
+
scrollWidth,
|
|
37884
|
+
clientWidth
|
|
37885
|
+
} = scrollContainerRef.current;
|
|
37886
|
+
setShowLeftScroll(scrollLeft > 0);
|
|
37887
|
+
setShowRightScroll(Math.ceil(scrollLeft + clientWidth) < scrollWidth);
|
|
37888
|
+
setIsScrollable(scrollWidth > clientWidth);
|
|
37889
|
+
}
|
|
37890
|
+
};
|
|
37891
|
+
$[0] = t2;
|
|
37026
37892
|
} else {
|
|
37027
|
-
|
|
37893
|
+
t2 = $[0];
|
|
37028
37894
|
}
|
|
37029
|
-
|
|
37030
|
-
|
|
37031
|
-
|
|
37895
|
+
const checkScroll = t2;
|
|
37896
|
+
let t3;
|
|
37897
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37898
|
+
t3 = () => {
|
|
37899
|
+
checkScroll();
|
|
37900
|
+
window.addEventListener("resize", checkScroll);
|
|
37901
|
+
let observer;
|
|
37902
|
+
if (scrollContainerRef.current) {
|
|
37903
|
+
observer = new ResizeObserver(checkScroll);
|
|
37904
|
+
observer.observe(scrollContainerRef.current);
|
|
37905
|
+
if (scrollContainerRef.current.firstElementChild) {
|
|
37906
|
+
observer.observe(scrollContainerRef.current.firstElementChild);
|
|
37907
|
+
}
|
|
37908
|
+
}
|
|
37909
|
+
return () => {
|
|
37910
|
+
window.removeEventListener("resize", checkScroll);
|
|
37911
|
+
observer?.disconnect();
|
|
37912
|
+
};
|
|
37913
|
+
};
|
|
37914
|
+
$[1] = t3;
|
|
37915
|
+
} else {
|
|
37916
|
+
t3 = $[1];
|
|
37917
|
+
}
|
|
37918
|
+
let t4;
|
|
37919
|
+
if ($[2] !== children) {
|
|
37920
|
+
t4 = [children];
|
|
37032
37921
|
$[2] = children;
|
|
37033
|
-
$[3] =
|
|
37034
|
-
$[4] = t2;
|
|
37922
|
+
$[3] = t4;
|
|
37035
37923
|
} else {
|
|
37036
|
-
|
|
37924
|
+
t4 = $[3];
|
|
37037
37925
|
}
|
|
37038
|
-
|
|
37039
|
-
|
|
37040
|
-
|
|
37926
|
+
useEffect(t3, t4);
|
|
37927
|
+
let t5;
|
|
37928
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37929
|
+
t5 = (direction) => {
|
|
37930
|
+
if (scrollContainerRef.current) {
|
|
37931
|
+
const container = scrollContainerRef.current;
|
|
37932
|
+
const scrollAmount = Math.max(container.clientWidth / 2, 200);
|
|
37933
|
+
const targetScroll = container.scrollLeft + (direction === "left" ? -scrollAmount : scrollAmount);
|
|
37934
|
+
container.scrollTo({
|
|
37935
|
+
left: targetScroll,
|
|
37936
|
+
behavior: "smooth"
|
|
37937
|
+
});
|
|
37938
|
+
}
|
|
37939
|
+
};
|
|
37940
|
+
$[4] = t5;
|
|
37941
|
+
} else {
|
|
37942
|
+
t5 = $[4];
|
|
37943
|
+
}
|
|
37944
|
+
const scroll = t5;
|
|
37945
|
+
let t6;
|
|
37946
|
+
if ($[5] !== className) {
|
|
37947
|
+
t6 = cls("flex flex-row items-center min-w-0", className);
|
|
37041
37948
|
$[5] = className;
|
|
37042
|
-
$[6] =
|
|
37043
|
-
$[7] = t2;
|
|
37044
|
-
$[8] = value;
|
|
37045
|
-
$[9] = t3;
|
|
37949
|
+
$[6] = t6;
|
|
37046
37950
|
} else {
|
|
37047
|
-
|
|
37951
|
+
t6 = $[6];
|
|
37048
37952
|
}
|
|
37049
|
-
|
|
37953
|
+
let t7;
|
|
37954
|
+
if ($[7] !== isScrollable || $[8] !== mode || $[9] !== showLeftScroll) {
|
|
37955
|
+
t7 = isScrollable && /* @__PURE__ */ jsx("button", { type: "button", disabled: !showLeftScroll, onClick: () => scroll("left"), className: cls("flex-shrink-0 z-10 flex items-center justify-center rounded-md px-0.5 py-1.5 transition-all h-10 w-6", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400", "disabled:pointer-events-none disabled:opacity-0", "text-surface-600 dark:text-surface-400 hover:bg-surface-200 dark:hover:bg-surface-800", mode === "primary" && "mr-1 bg-surface-50 dark:bg-surface-900 border", mode === "primary" && defaultBorderMixin, mode === "secondary" && "mr-1"), children: /* @__PURE__ */ jsx(ChevronLeftIcon, { size: "small" }) });
|
|
37956
|
+
$[7] = isScrollable;
|
|
37957
|
+
$[8] = mode;
|
|
37958
|
+
$[9] = showLeftScroll;
|
|
37959
|
+
$[10] = t7;
|
|
37960
|
+
} else {
|
|
37961
|
+
t7 = $[10];
|
|
37962
|
+
}
|
|
37963
|
+
let t8;
|
|
37964
|
+
if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37965
|
+
t8 = {
|
|
37966
|
+
scrollbarWidth: "none",
|
|
37967
|
+
msOverflowStyle: "none"
|
|
37968
|
+
};
|
|
37969
|
+
$[11] = t8;
|
|
37970
|
+
} else {
|
|
37971
|
+
t8 = $[11];
|
|
37972
|
+
}
|
|
37973
|
+
const t9 = mode === "primary" && "border";
|
|
37974
|
+
const t10 = mode === "primary" && defaultBorderMixin;
|
|
37975
|
+
const t11 = mode === "primary" && "gap-2 inline-flex h-10 items-center justify-center rounded-md bg-surface-50 p-1 text-surface-600 dark:bg-surface-900 dark:text-surface-400";
|
|
37976
|
+
const t12 = mode === "secondary" && "gap-1 inline-flex h-9 items-center text-surface-500 dark:text-surface-400";
|
|
37977
|
+
let t13;
|
|
37978
|
+
if ($[12] !== innerClassName || $[13] !== t10 || $[14] !== t11 || $[15] !== t12 || $[16] !== t9) {
|
|
37979
|
+
t13 = cls(t9, t10, t11, t12, innerClassName);
|
|
37980
|
+
$[12] = innerClassName;
|
|
37981
|
+
$[13] = t10;
|
|
37982
|
+
$[14] = t11;
|
|
37983
|
+
$[15] = t12;
|
|
37984
|
+
$[16] = t9;
|
|
37985
|
+
$[17] = t13;
|
|
37986
|
+
} else {
|
|
37987
|
+
t13 = $[17];
|
|
37988
|
+
}
|
|
37989
|
+
let t14;
|
|
37990
|
+
if ($[18] !== children || $[19] !== t13) {
|
|
37991
|
+
t14 = /* @__PURE__ */ jsx("div", { ref: scrollContainerRef, className: "flex-1 overflow-x-auto no-scrollbar min-w-0", onScroll: checkScroll, style: t8, children: /* @__PURE__ */ jsx(TabsPrimitive.List, { className: t13, children }) });
|
|
37992
|
+
$[18] = children;
|
|
37993
|
+
$[19] = t13;
|
|
37994
|
+
$[20] = t14;
|
|
37995
|
+
} else {
|
|
37996
|
+
t14 = $[20];
|
|
37997
|
+
}
|
|
37998
|
+
let t15;
|
|
37999
|
+
if ($[21] !== isScrollable || $[22] !== mode || $[23] !== showRightScroll) {
|
|
38000
|
+
t15 = isScrollable && /* @__PURE__ */ jsx("button", { type: "button", disabled: !showRightScroll, onClick: () => scroll("right"), className: cls("flex-shrink-0 z-10 flex items-center justify-center rounded-md px-0.5 py-1.5 transition-all h-10 w-6", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400", "disabled:pointer-events-none disabled:opacity-0", "text-surface-600 dark:text-surface-400 hover:bg-surface-200 dark:hover:bg-surface-800", mode === "primary" && "ml-1 bg-surface-50 dark:bg-surface-900 border", mode === "primary" && defaultBorderMixin, mode === "secondary" && "ml-1"), children: /* @__PURE__ */ jsx(ChevronRightIcon, { size: "small" }) });
|
|
38001
|
+
$[21] = isScrollable;
|
|
38002
|
+
$[22] = mode;
|
|
38003
|
+
$[23] = showRightScroll;
|
|
38004
|
+
$[24] = t15;
|
|
38005
|
+
} else {
|
|
38006
|
+
t15 = $[24];
|
|
38007
|
+
}
|
|
38008
|
+
let t16;
|
|
38009
|
+
if ($[25] !== onValueChange || $[26] !== t14 || $[27] !== t15 || $[28] !== t6 || $[29] !== t7 || $[30] !== value) {
|
|
38010
|
+
t16 = /* @__PURE__ */ jsxs(TabsPrimitive.Root, { value, onValueChange, className: t6, children: [
|
|
38011
|
+
t7,
|
|
38012
|
+
t14,
|
|
38013
|
+
t15
|
|
38014
|
+
] });
|
|
38015
|
+
$[25] = onValueChange;
|
|
38016
|
+
$[26] = t14;
|
|
38017
|
+
$[27] = t15;
|
|
38018
|
+
$[28] = t6;
|
|
38019
|
+
$[29] = t7;
|
|
38020
|
+
$[30] = value;
|
|
38021
|
+
$[31] = t16;
|
|
38022
|
+
} else {
|
|
38023
|
+
t16 = $[31];
|
|
38024
|
+
}
|
|
38025
|
+
let t17;
|
|
38026
|
+
if ($[32] !== mode || $[33] !== t16) {
|
|
38027
|
+
t17 = /* @__PURE__ */ jsx(TabsModeContext.Provider, { value: mode, children: t16 });
|
|
38028
|
+
$[32] = mode;
|
|
38029
|
+
$[33] = t16;
|
|
38030
|
+
$[34] = t17;
|
|
38031
|
+
} else {
|
|
38032
|
+
t17 = $[34];
|
|
38033
|
+
}
|
|
38034
|
+
return t17;
|
|
37050
38035
|
}
|
|
37051
38036
|
function Tab(t0) {
|
|
37052
|
-
const $ = c(
|
|
38037
|
+
const $ = c(15);
|
|
37053
38038
|
const {
|
|
37054
38039
|
value,
|
|
37055
38040
|
className,
|
|
@@ -37057,27 +38042,46 @@ function Tab(t0) {
|
|
|
37057
38042
|
children,
|
|
37058
38043
|
disabled
|
|
37059
38044
|
} = t0;
|
|
38045
|
+
const mode = useContext(TabsModeContext);
|
|
38046
|
+
let T0;
|
|
37060
38047
|
let t1;
|
|
37061
|
-
if ($[0] !== className || $[1] !== innerClassName) {
|
|
37062
|
-
t1 = cls("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", "data-[state=active]:bg-white data-[state=active]:text-surface-900 dark:data-[state=active]:bg-surface-950 dark:data-[state=active]:text-surface-50", className, innerClassName);
|
|
37063
|
-
$[0] = className;
|
|
37064
|
-
$[1] = innerClassName;
|
|
37065
|
-
$[2] = t1;
|
|
37066
|
-
} else {
|
|
37067
|
-
t1 = $[2];
|
|
37068
|
-
}
|
|
37069
38048
|
let t2;
|
|
37070
|
-
|
|
37071
|
-
|
|
37072
|
-
|
|
37073
|
-
|
|
37074
|
-
|
|
37075
|
-
|
|
38049
|
+
let t3;
|
|
38050
|
+
if ($[0] !== className || $[1] !== disabled || $[2] !== innerClassName || $[3] !== mode || $[4] !== value) {
|
|
38051
|
+
const primaryClasses = cls("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", "data-[state=active]:bg-white data-[state=active]:text-surface-900 dark:data-[state=active]:bg-surface-950 dark:data-[state=active]:text-surface-50");
|
|
38052
|
+
const secondaryClasses = cls("inline-flex items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all", "border-b-2 border-transparent -mb-px", "focus-visible:outline-none", "disabled:pointer-events-none disabled:opacity-50", "hover:text-surface-700 dark:hover:text-surface-300", "data-[state=active]:border-b-primary data-[state=active]:text-primary dark:data-[state=active]:border-b-primary dark:data-[state=active]:text-primary-dark");
|
|
38053
|
+
T0 = TabsPrimitive.Trigger;
|
|
38054
|
+
t1 = value;
|
|
38055
|
+
t2 = disabled;
|
|
38056
|
+
t3 = cls(mode === "secondary" ? secondaryClasses : primaryClasses, className, innerClassName);
|
|
38057
|
+
$[0] = className;
|
|
38058
|
+
$[1] = disabled;
|
|
38059
|
+
$[2] = innerClassName;
|
|
38060
|
+
$[3] = mode;
|
|
38061
|
+
$[4] = value;
|
|
38062
|
+
$[5] = T0;
|
|
38063
|
+
$[6] = t1;
|
|
37076
38064
|
$[7] = t2;
|
|
38065
|
+
$[8] = t3;
|
|
37077
38066
|
} else {
|
|
38067
|
+
T0 = $[5];
|
|
38068
|
+
t1 = $[6];
|
|
37078
38069
|
t2 = $[7];
|
|
38070
|
+
t3 = $[8];
|
|
37079
38071
|
}
|
|
37080
|
-
|
|
38072
|
+
let t4;
|
|
38073
|
+
if ($[9] !== T0 || $[10] !== children || $[11] !== t1 || $[12] !== t2 || $[13] !== t3) {
|
|
38074
|
+
t4 = /* @__PURE__ */ jsx(T0, { value: t1, disabled: t2, className: t3, children });
|
|
38075
|
+
$[9] = T0;
|
|
38076
|
+
$[10] = children;
|
|
38077
|
+
$[11] = t1;
|
|
38078
|
+
$[12] = t2;
|
|
38079
|
+
$[13] = t3;
|
|
38080
|
+
$[14] = t4;
|
|
38081
|
+
} else {
|
|
38082
|
+
t4 = $[14];
|
|
38083
|
+
}
|
|
38084
|
+
return t4;
|
|
37081
38085
|
}
|
|
37082
38086
|
const Table = React__default.memo((t0) => {
|
|
37083
38087
|
const $ = c(12);
|
|
@@ -37520,7 +38524,7 @@ const Badge = React__default.forwardRef((t0, ref) => {
|
|
|
37520
38524
|
Badge.displayName = "Badge";
|
|
37521
38525
|
function DebouncedTextField(props) {
|
|
37522
38526
|
const $ = c(13);
|
|
37523
|
-
const previousEventRef = React__default.useRef();
|
|
38527
|
+
const previousEventRef = React__default.useRef(void 0);
|
|
37524
38528
|
const [internalValue, setInternalValue] = React__default.useState(props.value);
|
|
37525
38529
|
const deferredValue = useDeferredValue(internalValue);
|
|
37526
38530
|
let t0;
|
|
@@ -37588,14 +38592,14 @@ function DebouncedTextField(props) {
|
|
|
37588
38592
|
return t5;
|
|
37589
38593
|
}
|
|
37590
38594
|
function Skeleton(t0) {
|
|
37591
|
-
const $ = c(
|
|
38595
|
+
const $ = c(10);
|
|
37592
38596
|
const {
|
|
37593
38597
|
width,
|
|
37594
38598
|
height,
|
|
37595
38599
|
className
|
|
37596
38600
|
} = t0;
|
|
37597
|
-
const t1 = width ? `${width}px` :
|
|
37598
|
-
const t2 = height ? `${height}px` :
|
|
38601
|
+
const t1 = width !== void 0 ? `${width}px` : void 0;
|
|
38602
|
+
const t2 = height !== void 0 ? `${height}px` : void 0;
|
|
37599
38603
|
let t3;
|
|
37600
38604
|
if ($[0] !== t1 || $[1] !== t2) {
|
|
37601
38605
|
t3 = {
|
|
@@ -37608,24 +38612,28 @@ function Skeleton(t0) {
|
|
|
37608
38612
|
} else {
|
|
37609
38613
|
t3 = $[2];
|
|
37610
38614
|
}
|
|
37611
|
-
|
|
37612
|
-
|
|
37613
|
-
|
|
38615
|
+
const t4 = width === void 0 ? "w-full" : "";
|
|
38616
|
+
const t5 = height === void 0 ? "h-3" : "";
|
|
38617
|
+
let t6;
|
|
38618
|
+
if ($[3] !== className || $[4] !== t4 || $[5] !== t5) {
|
|
38619
|
+
t6 = cls("block", "bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md", "animate-pulse", "max-w-full max-h-full", t4, t5, className);
|
|
37614
38620
|
$[3] = className;
|
|
37615
38621
|
$[4] = t4;
|
|
38622
|
+
$[5] = t5;
|
|
38623
|
+
$[6] = t6;
|
|
37616
38624
|
} else {
|
|
37617
|
-
|
|
38625
|
+
t6 = $[6];
|
|
37618
38626
|
}
|
|
37619
|
-
let
|
|
37620
|
-
if ($[
|
|
37621
|
-
|
|
37622
|
-
$[
|
|
37623
|
-
$[
|
|
37624
|
-
$[
|
|
38627
|
+
let t7;
|
|
38628
|
+
if ($[7] !== t3 || $[8] !== t6) {
|
|
38629
|
+
t7 = /* @__PURE__ */ jsx("span", { style: t3, className: t6 });
|
|
38630
|
+
$[7] = t3;
|
|
38631
|
+
$[8] = t6;
|
|
38632
|
+
$[9] = t7;
|
|
37625
38633
|
} else {
|
|
37626
|
-
|
|
38634
|
+
t7 = $[9];
|
|
37627
38635
|
}
|
|
37628
|
-
return
|
|
38636
|
+
return t7;
|
|
37629
38637
|
}
|
|
37630
38638
|
function ToggleButtonGroup(t0) {
|
|
37631
38639
|
const $ = c(12);
|
|
@@ -38159,6 +39167,7 @@ export {
|
|
|
38159
39167
|
DataSaverOnIcon,
|
|
38160
39168
|
DataThresholdingIcon,
|
|
38161
39169
|
DataUsageIcon,
|
|
39170
|
+
DatabaseIcon,
|
|
38162
39171
|
DatasetIcon,
|
|
38163
39172
|
DatasetLinkedIcon,
|
|
38164
39173
|
DateRangeIcon,
|
|
@@ -38431,6 +39440,7 @@ export {
|
|
|
38431
39440
|
FireHydrantAltIcon,
|
|
38432
39441
|
FireTruckIcon,
|
|
38433
39442
|
FireplaceIcon,
|
|
39443
|
+
FirestoreIcon,
|
|
38434
39444
|
FirstPageIcon,
|
|
38435
39445
|
FitScreenIcon,
|
|
38436
39446
|
FitbitIcon,
|
|
@@ -39290,6 +40300,7 @@ export {
|
|
|
39290
40300
|
RequestPageIcon,
|
|
39291
40301
|
RequestQuoteIcon,
|
|
39292
40302
|
ResetTvIcon,
|
|
40303
|
+
ResizablePanels,
|
|
39293
40304
|
RestartAltIcon,
|
|
39294
40305
|
RestaurantIcon,
|
|
39295
40306
|
RestaurantMenuIcon,
|
|
@@ -39364,6 +40375,8 @@ export {
|
|
|
39364
40375
|
SearchBar,
|
|
39365
40376
|
SearchIcon,
|
|
39366
40377
|
SearchOffIcon,
|
|
40378
|
+
SearchableSelect,
|
|
40379
|
+
SearchableSelectItem,
|
|
39367
40380
|
SecurityIcon,
|
|
39368
40381
|
SecurityUpdateGoodIcon,
|
|
39369
40382
|
SecurityUpdateIcon,
|