@firecms/ui 3.3.0 → 3.4.0-canary.0ef7442
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/Card.d.ts +2 -3
- package/dist/components/Checkbox.d.ts +2 -1
- package/dist/components/Chip.d.ts +5 -1
- package/dist/components/Dialog.d.ts +2 -1
- package/dist/components/FilterChip.d.ts +34 -0
- package/dist/components/IconButton.d.ts +1 -0
- package/dist/components/Popover.d.ts +3 -1
- package/dist/components/SearchBar.d.ts +8 -1
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/TextField.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDebounceCallback.d.ts +13 -0
- package/dist/index.css +43 -32
- package/dist/index.es.js +1027 -561
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1026 -560
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +2 -2
- package/package.json +6 -6
- package/src/components/Alert.tsx +7 -7
- package/src/components/Avatar.tsx +1 -1
- package/src/components/BooleanSwitch.tsx +6 -3
- package/src/components/Button.tsx +17 -13
- package/src/components/Card.tsx +22 -5
- package/src/components/CenteredView.tsx +1 -1
- package/src/components/Checkbox.tsx +10 -4
- package/src/components/Chip.tsx +70 -11
- package/src/components/Collapse.tsx +2 -0
- package/src/components/Dialog.tsx +8 -5
- package/src/components/ExpandablePanel.tsx +3 -2
- package/src/components/FilterChip.tsx +79 -0
- package/src/components/IconButton.tsx +11 -6
- package/src/components/InfoLabel.tsx +1 -1
- package/src/components/InputLabel.tsx +2 -2
- package/src/components/Label.tsx +1 -1
- package/src/components/LoadingButton.tsx +1 -1
- package/src/components/Menu.tsx +2 -0
- package/src/components/Popover.tsx +9 -3
- package/src/components/RadioGroup.tsx +1 -1
- package/src/components/SearchBar.tsx +9 -1
- package/src/components/Select.tsx +8 -6
- package/src/components/Separator.tsx +2 -2
- package/src/components/Skeleton.tsx +25 -8
- package/src/components/TextField.tsx +27 -13
- package/src/components/ToggleButtonGroup.tsx +4 -2
- package/src/components/index.tsx +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useDebounceCallback.tsx +47 -0
- package/src/index.css +43 -32
- package/src/styles.ts +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
|
|
38
38
|
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";
|
|
39
39
|
const focusedClasses = "z-30 outline-hidden outline-none ring-2 ring-primary ring-opacity-75 ring-primary/75 ring-offset-2 ring-offset-transparent ";
|
|
40
|
-
const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-800 dark:bg-opacity-
|
|
40
|
+
const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-800 dark:bg-opacity-90 dark:bg-surface-800/90";
|
|
41
41
|
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-surface-accent-100 dark:bg-surface-800 dark:bg-opacity-0 bg-surface-accent-200/0 dark:bg-surface-800/0";
|
|
42
42
|
const fieldBackgroundDisabledMixin = "dark:bg-surface-800 bg-opacity-50 dark:bg-opacity-90 bg-surface-accent-200/50 dark:bg-surface-800/90";
|
|
43
43
|
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40 hover:bg-surface-accent-200/70 hover:dark:bg-surface-700/40";
|
|
44
44
|
const defaultBorderMixin = "border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40 border-surface-200/40 dark:border-surface-700/40 ";
|
|
45
45
|
const paperMixin = "bg-white rounded-md dark:bg-surface-950 border border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40 border-surface-200/40 dark:border-surface-700/40";
|
|
46
46
|
const cardMixin = "bg-white dark:bg-surface-950 rounded-md border border-surface-200/40 dark:border-surface-700/40 m-1 -p-1";
|
|
47
|
-
const cardClickableMixin = "hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800 hover:ring-2 hover:ring-primary cursor-pointer hover:bg-primary/20 dark:hover:bg-primary/10 ";
|
|
47
|
+
const cardClickableMixin = "hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800 hover:ring-2 hover:ring-primary cursor-pointer hover:bg-primary/20 dark:hover:bg-primary/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ";
|
|
48
48
|
const cardSelectedMixin = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 bg-primary-bg/30 dark:bg-opacity-10 dark:bg-primary-bg/10 ring-1 ring-primary ring-opacity-75 ring-primary/75 bg-primary/10 dark:bg-primary/10 ring-1 ring-primary/75";
|
|
49
49
|
function cls(...classes) {
|
|
50
50
|
return tailwindMerge.twMerge(clsx.clsx(classes));
|
|
@@ -391,6 +391,60 @@
|
|
|
391
391
|
React.useEffect(t1, t2);
|
|
392
392
|
return debouncedValue;
|
|
393
393
|
}
|
|
394
|
+
function useDebounceCallback(callback, delay) {
|
|
395
|
+
const $ = reactCompilerRuntime.c(7);
|
|
396
|
+
const timeoutRef = React.useRef(null);
|
|
397
|
+
const callbackRef = React.useRef(callback);
|
|
398
|
+
let t0;
|
|
399
|
+
let t1;
|
|
400
|
+
if ($[0] !== callback) {
|
|
401
|
+
t0 = () => {
|
|
402
|
+
callbackRef.current = callback;
|
|
403
|
+
};
|
|
404
|
+
t1 = [callback];
|
|
405
|
+
$[0] = callback;
|
|
406
|
+
$[1] = t0;
|
|
407
|
+
$[2] = t1;
|
|
408
|
+
} else {
|
|
409
|
+
t0 = $[1];
|
|
410
|
+
t1 = $[2];
|
|
411
|
+
}
|
|
412
|
+
React.useEffect(t0, t1);
|
|
413
|
+
let t2;
|
|
414
|
+
let t3;
|
|
415
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
416
|
+
t2 = () => () => {
|
|
417
|
+
if (timeoutRef.current !== null) {
|
|
418
|
+
clearTimeout(timeoutRef.current);
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
t3 = [];
|
|
422
|
+
$[3] = t2;
|
|
423
|
+
$[4] = t3;
|
|
424
|
+
} else {
|
|
425
|
+
t2 = $[3];
|
|
426
|
+
t3 = $[4];
|
|
427
|
+
}
|
|
428
|
+
React.useEffect(t2, t3);
|
|
429
|
+
let t4;
|
|
430
|
+
if ($[5] !== delay) {
|
|
431
|
+
t4 = (...t5) => {
|
|
432
|
+
const args = t5;
|
|
433
|
+
if (timeoutRef.current !== null) {
|
|
434
|
+
clearTimeout(timeoutRef.current);
|
|
435
|
+
}
|
|
436
|
+
timeoutRef.current = setTimeout(() => {
|
|
437
|
+
callbackRef.current?.(...args);
|
|
438
|
+
}, delay ?? 200);
|
|
439
|
+
};
|
|
440
|
+
$[5] = delay;
|
|
441
|
+
$[6] = t4;
|
|
442
|
+
} else {
|
|
443
|
+
t4 = $[6];
|
|
444
|
+
}
|
|
445
|
+
const debouncedCallback = t4;
|
|
446
|
+
return debouncedCallback;
|
|
447
|
+
}
|
|
394
448
|
function useIconStyles(t0) {
|
|
395
449
|
const {
|
|
396
450
|
fill: t1,
|
|
@@ -476,6 +530,7 @@
|
|
|
476
530
|
}
|
|
477
531
|
return t6;
|
|
478
532
|
});
|
|
533
|
+
Collapse.displayName = "Collapse";
|
|
479
534
|
const useAutoComplete = ({
|
|
480
535
|
ref
|
|
481
536
|
}) => {
|
|
@@ -597,16 +652,16 @@
|
|
|
597
652
|
const getColorClasses = (severity) => {
|
|
598
653
|
switch (severity) {
|
|
599
654
|
case "error":
|
|
600
|
-
return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900";
|
|
655
|
+
return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900 border-l-[3px] border-l-red-500";
|
|
601
656
|
case "warning":
|
|
602
|
-
return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900";
|
|
657
|
+
return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900 border-l-[3px] border-l-amber-500";
|
|
603
658
|
case "info":
|
|
604
|
-
return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900";
|
|
659
|
+
return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900 border-l-[3px] border-l-blue-500";
|
|
605
660
|
case "success":
|
|
606
|
-
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900";
|
|
661
|
+
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900 border-l-[3px] border-l-emerald-500";
|
|
607
662
|
case "base":
|
|
608
663
|
default:
|
|
609
|
-
return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900";
|
|
664
|
+
return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900 border-l-[3px] border-l-surface-accent-400";
|
|
610
665
|
}
|
|
611
666
|
};
|
|
612
667
|
const Alert = (t0) => {
|
|
@@ -628,7 +683,7 @@
|
|
|
628
683
|
if ($[0] !== color || $[1] !== outerClassName || $[2] !== size || $[3] !== style) {
|
|
629
684
|
const classes = getColorClasses(color);
|
|
630
685
|
t3 = style;
|
|
631
|
-
t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-
|
|
686
|
+
t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-lg flex items-center gap-2", classes, outerClassName);
|
|
632
687
|
$[0] = color;
|
|
633
688
|
$[1] = outerClassName;
|
|
634
689
|
$[2] = size;
|
|
@@ -641,7 +696,7 @@
|
|
|
641
696
|
}
|
|
642
697
|
let t5;
|
|
643
698
|
if ($[6] !== className) {
|
|
644
|
-
t5 = cls("
|
|
699
|
+
t5 = cls("grow", className);
|
|
645
700
|
$[6] = className;
|
|
646
701
|
$[7] = t5;
|
|
647
702
|
} else {
|
|
@@ -734,7 +789,7 @@
|
|
|
734
789
|
t2 = $[9];
|
|
735
790
|
}
|
|
736
791
|
const handleImageError = t2;
|
|
737
|
-
const t3 = hover && "hover:bg-surface-accent-200 hover:
|
|
792
|
+
const t3 = hover && "hover:bg-surface-accent-200 dark:hover:bg-surface-accent-700";
|
|
738
793
|
let t4;
|
|
739
794
|
if ($[10] !== outerClassName || $[11] !== t3) {
|
|
740
795
|
t4 = cls("rounded-full flex items-center justify-center overflow-hidden", "p-1 w-12 h-12 min-w-12 min-h-12", t3, outerClassName);
|
|
@@ -780,7 +835,7 @@
|
|
|
780
835
|
size = "medium",
|
|
781
836
|
...props
|
|
782
837
|
}, ref) {
|
|
783
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", ref, tabIndex: disabled ? -1 : void 0, onClick: disabled ? (e) => e.preventDefault() : (e_0) => {
|
|
838
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", ref, role: "switch", "aria-checked": allowIndeterminate && (value === null || value === void 0) ? "mixed" : !!value, "aria-disabled": disabled || void 0, tabIndex: disabled ? -1 : void 0, onClick: disabled ? (e) => e.preventDefault() : (e_0) => {
|
|
784
839
|
e_0.preventDefault();
|
|
785
840
|
if (allowIndeterminate) {
|
|
786
841
|
if (value === null || value === void 0) onValueChange?.(true);
|
|
@@ -790,7 +845,7 @@
|
|
|
790
845
|
onValueChange?.(!value);
|
|
791
846
|
}
|
|
792
847
|
}, className: cls(size === "smallest" ? "w-[34px] h-[18px] min-w-[34px] min-h-[18px]" : size === "small" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[44px] h-[26px] min-w-[44px] min-h-[26px]", "outline-none outline-hidden rounded-full relative shadow-sm", value ? disabled ? "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-950 border-surface-accent-100 dark:border-surface-accent-700 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-900 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700", className), ...props, children: [
|
|
793
|
-
allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
|
|
848
|
+
allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
|
|
794
849
|
"w-[21px] h-[10px]": size === "medium" || size === "large",
|
|
795
850
|
"w-[19px] h-[8px]": size === "small",
|
|
796
851
|
"w-[16px] h-[6px]": size === "smallest",
|
|
@@ -798,7 +853,7 @@
|
|
|
798
853
|
"translate-x-[9px]": size === "small",
|
|
799
854
|
"translate-x-[8px]": size === "smallest"
|
|
800
855
|
}) }, "knob"),
|
|
801
|
-
!(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-300 dark:bg-surface-
|
|
856
|
+
!(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-300 dark:bg-surface-700" : value ? "bg-white shadow" : "bg-surface-accent-600 dark:bg-surface-accent-400", {
|
|
802
857
|
"w-[21px] h-[21px]": size === "medium" || size === "large",
|
|
803
858
|
"w-[19px] h-[19px]": size === "small",
|
|
804
859
|
"w-[16px] h-[16px]": size === "smallest",
|
|
@@ -852,7 +907,7 @@
|
|
|
852
907
|
] });
|
|
853
908
|
};
|
|
854
909
|
const ButtonInner = React.memo(React.forwardRef((t0, ref) => {
|
|
855
|
-
const $ = reactCompilerRuntime.c(
|
|
910
|
+
const $ = reactCompilerRuntime.c(56);
|
|
856
911
|
let Component;
|
|
857
912
|
let children;
|
|
858
913
|
let className;
|
|
@@ -940,32 +995,33 @@
|
|
|
940
995
|
let t28;
|
|
941
996
|
let t29;
|
|
942
997
|
let t30;
|
|
943
|
-
if ($[11] !== Component || $[12] !== children || $[13] !== className || $[14] !==
|
|
998
|
+
if ($[11] !== Component || $[12] !== children || $[13] !== className || $[14] !== color || $[15] !== disabled || $[16] !== fullWidth || $[17] !== props || $[18] !== ref || $[19] !== size || $[20] !== startIcon || $[21] !== t10 || $[22] !== t11 || $[23] !== t12 || $[24] !== t13 || $[25] !== t14 || $[26] !== t15 || $[27] !== t16 || $[28] !== t17 || $[29] !== t18 || $[30] !== t19 || $[31] !== t20 || $[32] !== t21 || $[33] !== t22 || $[34] !== t23 || $[35] !== t24 || $[36] !== t25 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
|
|
944
999
|
t30 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
945
1000
|
bb0: {
|
|
946
1001
|
const buttonClasses2 = cls({
|
|
947
1002
|
"w-full": fullWidth,
|
|
948
1003
|
"w-fit": t7,
|
|
949
|
-
"border border-primary bg-primary focus:ring-primary
|
|
950
|
-
"border border-secondary bg-secondary focus:ring-secondary
|
|
951
|
-
"border border-red-500 bg-red-500 hover:bg-red-
|
|
952
|
-
"border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400
|
|
953
|
-
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-
|
|
1004
|
+
"border border-primary bg-primary focus:ring-primary text-white hover:text-white hover:brightness-105": t8,
|
|
1005
|
+
"border border-secondary bg-secondary focus:ring-secondary text-white hover:text-white hover:brightness-105": t9,
|
|
1006
|
+
"border border-red-500 bg-red-500 hover:bg-red-600 focus:ring-red-500 text-white hover:text-white": t10,
|
|
1007
|
+
"border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 text-text-primary hover:text-text-primary dark:border-surface-accent-700 dark:bg-surface-accent-700 dark:hover:bg-surface-accent-600 dark:text-text-primary-dark hover:dark:text-text-primary-dark": t11,
|
|
1008
|
+
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-700 dark:hover:bg-surface-accent-700 dark:text-text-primary-dark hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": t12,
|
|
954
1009
|
"border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t13,
|
|
955
1010
|
"border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t14,
|
|
956
1011
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10 hover:bg-red-500/10": t15,
|
|
957
|
-
"border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:dark:bg-surface-
|
|
958
|
-
"border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 dark:text-text-primary-dark dark:hover:text-text-primary-dark dark:hover:bg-surface-accent-
|
|
1012
|
+
"border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t16,
|
|
1013
|
+
"border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:text-text-primary-dark dark:hover:text-text-primary-dark dark:hover:bg-surface-accent-800": t17,
|
|
959
1014
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg hover:bg-primary/10": t18,
|
|
960
1015
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
|
|
961
1016
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
|
|
962
|
-
"border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t21,
|
|
963
|
-
"border border-surface-300 text-text-primary hover:bg-surface-accent-200 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-
|
|
1017
|
+
"border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark dark:border-surface-accent-600 hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t21,
|
|
1018
|
+
"border border-surface-300 text-text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-800": t22,
|
|
964
1019
|
"text-text-disabled dark:text-text-disabled-dark": disabled,
|
|
965
1020
|
"border border-transparent opacity-50": t23,
|
|
966
1021
|
"border border-surface-500 opacity-50": t24,
|
|
967
|
-
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-
|
|
1022
|
+
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40 bg-surface-300/40 dark:bg-surface-500/40": t25
|
|
968
1023
|
});
|
|
1024
|
+
const iconColorClass = (color === "neutral" || color === "text") && !disabled ? "[&>svg]:text-surface-accent-500 dark:[&>svg]:text-surface-accent-300" : "";
|
|
969
1025
|
const sizeClasses2 = cls({
|
|
970
1026
|
"py-1 px-2": size === "small",
|
|
971
1027
|
"py-2 px-4": size === "medium",
|
|
@@ -974,7 +1030,7 @@
|
|
|
974
1030
|
"py-4 px-10": size === "2xl"
|
|
975
1031
|
});
|
|
976
1032
|
if (Component) {
|
|
977
|
-
t30 = /* @__PURE__ */ jsxRuntime.jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-
|
|
1033
|
+
t30 = /* @__PURE__ */ jsxRuntime.jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-lg whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-colors ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className), ...props, children: [
|
|
978
1034
|
startIcon,
|
|
979
1035
|
children
|
|
980
1036
|
] });
|
|
@@ -983,81 +1039,83 @@
|
|
|
983
1039
|
t26 = ref;
|
|
984
1040
|
t27 = props.type ?? "button";
|
|
985
1041
|
t28 = props.onClick;
|
|
986
|
-
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-
|
|
1042
|
+
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-lg whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-colors ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className);
|
|
987
1043
|
}
|
|
988
1044
|
$[11] = Component;
|
|
989
1045
|
$[12] = children;
|
|
990
1046
|
$[13] = className;
|
|
991
|
-
$[14] =
|
|
992
|
-
$[15] =
|
|
993
|
-
$[16] =
|
|
994
|
-
$[17] =
|
|
995
|
-
$[18] =
|
|
996
|
-
$[19] =
|
|
997
|
-
$[20] =
|
|
998
|
-
$[21] =
|
|
999
|
-
$[22] =
|
|
1000
|
-
$[23] =
|
|
1001
|
-
$[24] =
|
|
1002
|
-
$[25] =
|
|
1003
|
-
$[26] =
|
|
1004
|
-
$[27] =
|
|
1005
|
-
$[28] =
|
|
1006
|
-
$[29] =
|
|
1007
|
-
$[30] =
|
|
1008
|
-
$[31] =
|
|
1009
|
-
$[32] =
|
|
1010
|
-
$[33] =
|
|
1011
|
-
$[34] =
|
|
1012
|
-
$[35] =
|
|
1013
|
-
$[36] =
|
|
1014
|
-
$[37] =
|
|
1015
|
-
$[38] =
|
|
1016
|
-
$[39] =
|
|
1017
|
-
$[40] =
|
|
1018
|
-
$[41] =
|
|
1019
|
-
$[42] =
|
|
1020
|
-
$[43] =
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1047
|
+
$[14] = color;
|
|
1048
|
+
$[15] = disabled;
|
|
1049
|
+
$[16] = fullWidth;
|
|
1050
|
+
$[17] = props;
|
|
1051
|
+
$[18] = ref;
|
|
1052
|
+
$[19] = size;
|
|
1053
|
+
$[20] = startIcon;
|
|
1054
|
+
$[21] = t10;
|
|
1055
|
+
$[22] = t11;
|
|
1056
|
+
$[23] = t12;
|
|
1057
|
+
$[24] = t13;
|
|
1058
|
+
$[25] = t14;
|
|
1059
|
+
$[26] = t15;
|
|
1060
|
+
$[27] = t16;
|
|
1061
|
+
$[28] = t17;
|
|
1062
|
+
$[29] = t18;
|
|
1063
|
+
$[30] = t19;
|
|
1064
|
+
$[31] = t20;
|
|
1065
|
+
$[32] = t21;
|
|
1066
|
+
$[33] = t22;
|
|
1067
|
+
$[34] = t23;
|
|
1068
|
+
$[35] = t24;
|
|
1069
|
+
$[36] = t25;
|
|
1070
|
+
$[37] = t7;
|
|
1071
|
+
$[38] = t8;
|
|
1072
|
+
$[39] = t9;
|
|
1073
|
+
$[40] = t26;
|
|
1074
|
+
$[41] = t27;
|
|
1075
|
+
$[42] = t28;
|
|
1076
|
+
$[43] = t29;
|
|
1077
|
+
$[44] = t30;
|
|
1078
|
+
} else {
|
|
1079
|
+
t26 = $[40];
|
|
1080
|
+
t27 = $[41];
|
|
1081
|
+
t28 = $[42];
|
|
1082
|
+
t29 = $[43];
|
|
1083
|
+
t30 = $[44];
|
|
1027
1084
|
}
|
|
1028
1085
|
if (t30 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
1029
1086
|
return t30;
|
|
1030
1087
|
}
|
|
1031
1088
|
const t31 = props;
|
|
1032
1089
|
let t32;
|
|
1033
|
-
if ($[
|
|
1090
|
+
if ($[45] !== children || $[46] !== disabled || $[47] !== size || $[48] !== startIcon || $[49] !== t26 || $[50] !== t27 || $[51] !== t28 || $[52] !== t29 || $[53] !== t31 || $[54] !== variant) {
|
|
1034
1091
|
t32 = /* @__PURE__ */ jsxRuntime.jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, "data-variant": variant, "data-size": size, ...t31, children: [
|
|
1035
1092
|
startIcon,
|
|
1036
1093
|
children
|
|
1037
1094
|
] });
|
|
1038
|
-
$[
|
|
1039
|
-
$[
|
|
1040
|
-
$[
|
|
1041
|
-
$[
|
|
1042
|
-
$[
|
|
1043
|
-
$[
|
|
1044
|
-
$[
|
|
1045
|
-
$[
|
|
1046
|
-
$[
|
|
1047
|
-
$[
|
|
1048
|
-
$[
|
|
1049
|
-
} else {
|
|
1050
|
-
t32 = $[
|
|
1095
|
+
$[45] = children;
|
|
1096
|
+
$[46] = disabled;
|
|
1097
|
+
$[47] = size;
|
|
1098
|
+
$[48] = startIcon;
|
|
1099
|
+
$[49] = t26;
|
|
1100
|
+
$[50] = t27;
|
|
1101
|
+
$[51] = t28;
|
|
1102
|
+
$[52] = t29;
|
|
1103
|
+
$[53] = t31;
|
|
1104
|
+
$[54] = variant;
|
|
1105
|
+
$[55] = t32;
|
|
1106
|
+
} else {
|
|
1107
|
+
t32 = $[55];
|
|
1051
1108
|
}
|
|
1052
1109
|
return t32;
|
|
1053
1110
|
}));
|
|
1054
1111
|
ButtonInner.displayName = "Button";
|
|
1055
1112
|
const Button = ButtonInner;
|
|
1056
1113
|
const Card = React.forwardRef((t0, ref) => {
|
|
1057
|
-
const $ = reactCompilerRuntime.c(
|
|
1114
|
+
const $ = reactCompilerRuntime.c(23);
|
|
1058
1115
|
let children;
|
|
1059
1116
|
let className;
|
|
1060
1117
|
let onClick;
|
|
1118
|
+
let onKeyDownProp;
|
|
1061
1119
|
let props;
|
|
1062
1120
|
let style;
|
|
1063
1121
|
if ($[0] !== t0) {
|
|
@@ -1066,64 +1124,77 @@
|
|
|
1066
1124
|
className,
|
|
1067
1125
|
onClick,
|
|
1068
1126
|
style,
|
|
1127
|
+
onKeyDown: onKeyDownProp,
|
|
1069
1128
|
...props
|
|
1070
1129
|
} = t0);
|
|
1071
1130
|
$[0] = t0;
|
|
1072
1131
|
$[1] = children;
|
|
1073
1132
|
$[2] = className;
|
|
1074
1133
|
$[3] = onClick;
|
|
1075
|
-
$[4] =
|
|
1076
|
-
$[5] =
|
|
1134
|
+
$[4] = onKeyDownProp;
|
|
1135
|
+
$[5] = props;
|
|
1136
|
+
$[6] = style;
|
|
1077
1137
|
} else {
|
|
1078
1138
|
children = $[1];
|
|
1079
1139
|
className = $[2];
|
|
1080
1140
|
onClick = $[3];
|
|
1081
|
-
|
|
1082
|
-
|
|
1141
|
+
onKeyDownProp = $[4];
|
|
1142
|
+
props = $[5];
|
|
1143
|
+
style = $[6];
|
|
1083
1144
|
}
|
|
1084
1145
|
let t1;
|
|
1085
|
-
if ($[
|
|
1146
|
+
if ($[7] !== onClick || $[8] !== onKeyDownProp) {
|
|
1086
1147
|
t1 = (e) => {
|
|
1148
|
+
onKeyDownProp?.(e);
|
|
1149
|
+
if (!onClick || e.defaultPrevented) {
|
|
1150
|
+
return;
|
|
1151
|
+
}
|
|
1152
|
+
if (e.target !== e.currentTarget) {
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1087
1155
|
if (e.key === "Enter" || e.key === " ") {
|
|
1088
|
-
|
|
1156
|
+
e.preventDefault();
|
|
1157
|
+
onClick();
|
|
1089
1158
|
}
|
|
1090
1159
|
};
|
|
1091
|
-
$[
|
|
1092
|
-
$[
|
|
1160
|
+
$[7] = onClick;
|
|
1161
|
+
$[8] = onKeyDownProp;
|
|
1162
|
+
$[9] = t1;
|
|
1093
1163
|
} else {
|
|
1094
|
-
t1 = $[
|
|
1164
|
+
t1 = $[9];
|
|
1095
1165
|
}
|
|
1096
|
-
const
|
|
1166
|
+
const onKeyDown = t1;
|
|
1097
1167
|
const t2 = onClick ? "button" : void 0;
|
|
1098
1168
|
const t3 = onClick ? 0 : void 0;
|
|
1099
1169
|
const t4 = onClick && cardClickableMixin;
|
|
1100
1170
|
let t5;
|
|
1101
|
-
if ($[
|
|
1171
|
+
if ($[10] !== className || $[11] !== t4) {
|
|
1102
1172
|
t5 = cls(cardMixin, t4, className);
|
|
1103
|
-
$[
|
|
1104
|
-
$[
|
|
1105
|
-
$[
|
|
1173
|
+
$[10] = className;
|
|
1174
|
+
$[11] = t4;
|
|
1175
|
+
$[12] = t5;
|
|
1106
1176
|
} else {
|
|
1107
|
-
t5 = $[
|
|
1177
|
+
t5 = $[12];
|
|
1108
1178
|
}
|
|
1109
1179
|
let t6;
|
|
1110
|
-
if ($[
|
|
1111
|
-
t6 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref,
|
|
1112
|
-
$[
|
|
1113
|
-
$[
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
$[
|
|
1117
|
-
$[
|
|
1118
|
-
$[
|
|
1119
|
-
$[
|
|
1120
|
-
$[
|
|
1121
|
-
$[
|
|
1180
|
+
if ($[13] !== children || $[14] !== onClick || $[15] !== onKeyDown || $[16] !== props || $[17] !== ref || $[18] !== style || $[19] !== t2 || $[20] !== t3 || $[21] !== t5) {
|
|
1181
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref, onKeyDown, role: t2, tabIndex: t3, onClick, className: t5, style, ...props, children });
|
|
1182
|
+
$[13] = children;
|
|
1183
|
+
$[14] = onClick;
|
|
1184
|
+
$[15] = onKeyDown;
|
|
1185
|
+
$[16] = props;
|
|
1186
|
+
$[17] = ref;
|
|
1187
|
+
$[18] = style;
|
|
1188
|
+
$[19] = t2;
|
|
1189
|
+
$[20] = t3;
|
|
1190
|
+
$[21] = t5;
|
|
1191
|
+
$[22] = t6;
|
|
1122
1192
|
} else {
|
|
1123
|
-
t6 = $[
|
|
1193
|
+
t6 = $[22];
|
|
1124
1194
|
}
|
|
1125
1195
|
return t6;
|
|
1126
1196
|
});
|
|
1197
|
+
Card.displayName = "Card";
|
|
1127
1198
|
const containerMaxWidths = {
|
|
1128
1199
|
xs: "max-w-xs",
|
|
1129
1200
|
sm: "max-w-sm",
|
|
@@ -1205,7 +1276,7 @@
|
|
|
1205
1276
|
const t1 = fullScreen ? "h-screen" : "h-full";
|
|
1206
1277
|
let t2;
|
|
1207
1278
|
if ($[7] !== outerClassName || $[8] !== t1) {
|
|
1208
|
-
t2 = cls("flex flex-col
|
|
1279
|
+
t2 = cls("flex flex-col grow", t1, outerClassName);
|
|
1209
1280
|
$[7] = outerClassName;
|
|
1210
1281
|
$[8] = t1;
|
|
1211
1282
|
$[9] = t2;
|
|
@@ -32246,7 +32317,7 @@
|
|
|
32246
32317
|
return t0;
|
|
32247
32318
|
});
|
|
32248
32319
|
ZoomOutMapIcon.displayName = "ZoomOutMapIcon";
|
|
32249
|
-
const sizeClasses$
|
|
32320
|
+
const sizeClasses$2 = {
|
|
32250
32321
|
large: "w-6 h-6 rounded flex items-center justify-center",
|
|
32251
32322
|
medium: "w-5 h-5 rounded flex items-center justify-center",
|
|
32252
32323
|
small: "w-4 h-4 rounded flex items-center justify-center",
|
|
@@ -32256,20 +32327,20 @@
|
|
|
32256
32327
|
medium: "w-10 h-10",
|
|
32257
32328
|
small: "w-8 h-8",
|
|
32258
32329
|
large: "w-12 h-12 ",
|
|
32259
|
-
smallest: "w-
|
|
32330
|
+
smallest: "w-8 h-8"
|
|
32260
32331
|
};
|
|
32261
32332
|
const paddingClasses = {
|
|
32262
32333
|
medium: "p-2",
|
|
32263
32334
|
small: "p-2",
|
|
32264
32335
|
large: "p-2",
|
|
32265
|
-
smallest: ""
|
|
32336
|
+
smallest: "p-2"
|
|
32266
32337
|
};
|
|
32267
32338
|
const colorClasses$2 = {
|
|
32268
32339
|
primary: "bg-primary",
|
|
32269
32340
|
secondary: "bg-secondary"
|
|
32270
32341
|
};
|
|
32271
32342
|
const Checkbox = React.memo((t0) => {
|
|
32272
|
-
const $ = reactCompilerRuntime.c(
|
|
32343
|
+
const $ = reactCompilerRuntime.c(27);
|
|
32273
32344
|
const {
|
|
32274
32345
|
id,
|
|
32275
32346
|
checked,
|
|
@@ -32278,7 +32349,8 @@
|
|
|
32278
32349
|
disabled,
|
|
32279
32350
|
size: t3,
|
|
32280
32351
|
onCheckedChange,
|
|
32281
|
-
color: t4
|
|
32352
|
+
color: t4,
|
|
32353
|
+
"aria-label": ariaLabel
|
|
32282
32354
|
} = t0;
|
|
32283
32355
|
const indeterminate = t1 === void 0 ? false : t1;
|
|
32284
32356
|
const padding = t2 === void 0 ? true : t2;
|
|
@@ -32287,89 +32359,109 @@
|
|
|
32287
32359
|
const isChecked = indeterminate ? false : checked;
|
|
32288
32360
|
const iconSize = size === "medium" ? 20 : size === "small" ? 16 : size === "smallest" ? 14 : 24;
|
|
32289
32361
|
const t5 = indeterminate || isChecked;
|
|
32290
|
-
const t6 =
|
|
32291
|
-
const t7 =
|
|
32292
|
-
const t8 =
|
|
32293
|
-
const t9 =
|
|
32294
|
-
const t10 = onCheckedChange ? "
|
|
32295
|
-
|
|
32296
|
-
|
|
32297
|
-
|
|
32362
|
+
const t6 = indeterminate ? "mixed" : isChecked;
|
|
32363
|
+
const t7 = disabled ? void 0 : onCheckedChange;
|
|
32364
|
+
const t8 = padding ? paddingClasses[size] : "";
|
|
32365
|
+
const t9 = outerSizeClasses[size];
|
|
32366
|
+
const t10 = onCheckedChange ? "rounded-full hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-700 dark:hover:bg-opacity-75 dark:hover:bg-surface-accent-700/75" : "";
|
|
32367
|
+
const t11 = onCheckedChange ? "cursor-pointer" : "cursor-default";
|
|
32368
|
+
let t12;
|
|
32369
|
+
if ($[0] !== t10 || $[1] !== t11 || $[2] !== t8 || $[3] !== t9) {
|
|
32370
|
+
t12 = cls(t8, t9, "inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150", t10, t11);
|
|
32298
32371
|
$[0] = t10;
|
|
32299
|
-
$[1] =
|
|
32372
|
+
$[1] = t11;
|
|
32300
32373
|
$[2] = t8;
|
|
32301
32374
|
$[3] = t9;
|
|
32302
|
-
$[4] =
|
|
32375
|
+
$[4] = t12;
|
|
32303
32376
|
} else {
|
|
32304
|
-
|
|
32377
|
+
t12 = $[4];
|
|
32305
32378
|
}
|
|
32306
|
-
const
|
|
32307
|
-
const
|
|
32308
|
-
const
|
|
32309
|
-
const
|
|
32310
|
-
let
|
|
32311
|
-
if ($[5] !==
|
|
32312
|
-
|
|
32313
|
-
$[5] =
|
|
32314
|
-
$[6] =
|
|
32315
|
-
$[7] =
|
|
32316
|
-
$[8] =
|
|
32317
|
-
$[9] =
|
|
32379
|
+
const t13 = sizeClasses$2[size];
|
|
32380
|
+
const t14 = disabled ? indeterminate || isChecked ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600" : indeterminate || isChecked ? colorClasses$2[color] : "bg-white dark:bg-surface-900";
|
|
32381
|
+
const t15 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
|
|
32382
|
+
const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-500";
|
|
32383
|
+
let t17;
|
|
32384
|
+
if ($[5] !== t13 || $[6] !== t14 || $[7] !== t15 || $[8] !== t16) {
|
|
32385
|
+
t17 = cls("border-2 relative transition-colors ease-in-out duration-150", t13, t14, t15, t16);
|
|
32386
|
+
$[5] = t13;
|
|
32387
|
+
$[6] = t14;
|
|
32388
|
+
$[7] = t15;
|
|
32389
|
+
$[8] = t16;
|
|
32390
|
+
$[9] = t17;
|
|
32318
32391
|
} else {
|
|
32319
|
-
|
|
32392
|
+
t17 = $[9];
|
|
32320
32393
|
}
|
|
32321
|
-
let
|
|
32394
|
+
let t18;
|
|
32322
32395
|
if ($[10] !== iconSize || $[11] !== indeterminate) {
|
|
32323
|
-
|
|
32396
|
+
t18 = /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(RemoveIcon, { size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { size: iconSize, className: "absolute" }) });
|
|
32324
32397
|
$[10] = iconSize;
|
|
32325
32398
|
$[11] = indeterminate;
|
|
32326
|
-
$[12] =
|
|
32399
|
+
$[12] = t18;
|
|
32327
32400
|
} else {
|
|
32328
|
-
|
|
32329
|
-
}
|
|
32330
|
-
let t18;
|
|
32331
|
-
if ($[13] !== t16 || $[14] !== t17) {
|
|
32332
|
-
t18 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t16, children: t17 });
|
|
32333
|
-
$[13] = t16;
|
|
32334
|
-
$[14] = t17;
|
|
32335
|
-
$[15] = t18;
|
|
32336
|
-
} else {
|
|
32337
|
-
t18 = $[15];
|
|
32401
|
+
t18 = $[12];
|
|
32338
32402
|
}
|
|
32339
32403
|
let t19;
|
|
32340
|
-
if ($[
|
|
32341
|
-
t19 = /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
32342
|
-
$[
|
|
32343
|
-
$[
|
|
32344
|
-
$[
|
|
32404
|
+
if ($[13] !== t17 || $[14] !== t18) {
|
|
32405
|
+
t19 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t17, children: t18 });
|
|
32406
|
+
$[13] = t17;
|
|
32407
|
+
$[14] = t18;
|
|
32408
|
+
$[15] = t19;
|
|
32345
32409
|
} else {
|
|
32346
|
-
t19 = $[
|
|
32410
|
+
t19 = $[15];
|
|
32347
32411
|
}
|
|
32348
32412
|
let t20;
|
|
32349
|
-
if ($[
|
|
32350
|
-
t20 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
32351
|
-
$[
|
|
32352
|
-
$[
|
|
32353
|
-
$[
|
|
32354
|
-
|
|
32355
|
-
$[
|
|
32356
|
-
|
|
32413
|
+
if ($[16] !== t12 || $[17] !== t19) {
|
|
32414
|
+
t20 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t12, children: t19 });
|
|
32415
|
+
$[16] = t12;
|
|
32416
|
+
$[17] = t19;
|
|
32417
|
+
$[18] = t20;
|
|
32418
|
+
} else {
|
|
32419
|
+
t20 = $[18];
|
|
32420
|
+
}
|
|
32421
|
+
let t21;
|
|
32422
|
+
if ($[19] !== ariaLabel || $[20] !== disabled || $[21] !== id || $[22] !== t20 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
|
|
32423
|
+
t21 = /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Root, { id, checked: t5, disabled, "aria-label": ariaLabel, "aria-checked": t6, onCheckedChange: t7, children: t20 });
|
|
32424
|
+
$[19] = ariaLabel;
|
|
32425
|
+
$[20] = disabled;
|
|
32426
|
+
$[21] = id;
|
|
32427
|
+
$[22] = t20;
|
|
32428
|
+
$[23] = t5;
|
|
32429
|
+
$[24] = t6;
|
|
32430
|
+
$[25] = t7;
|
|
32431
|
+
$[26] = t21;
|
|
32357
32432
|
} else {
|
|
32358
|
-
|
|
32433
|
+
t21 = $[26];
|
|
32359
32434
|
}
|
|
32360
|
-
return
|
|
32435
|
+
return t21;
|
|
32361
32436
|
});
|
|
32437
|
+
Checkbox.displayName = "Checkbox";
|
|
32362
32438
|
const sizeClassNames = {
|
|
32439
|
+
smallest: "px-1.5 py-px text-[10px]",
|
|
32363
32440
|
small: "px-2 py-0.5 text-sm",
|
|
32364
32441
|
medium: "px-3 py-1 text-sm",
|
|
32365
32442
|
large: "px-4 py-1.5 text-sm"
|
|
32366
32443
|
};
|
|
32444
|
+
function isDarkMode() {
|
|
32445
|
+
return typeof document !== "undefined" && document.documentElement.classList.contains("dark");
|
|
32446
|
+
}
|
|
32447
|
+
function getRgba(hex, alpha) {
|
|
32448
|
+
if (!hex || !hex.startsWith("#")) return hex;
|
|
32449
|
+
let color = hex.slice(1);
|
|
32450
|
+
if (color.length === 3) {
|
|
32451
|
+
color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
|
|
32452
|
+
}
|
|
32453
|
+
const r = parseInt(color.slice(0, 2), 16);
|
|
32454
|
+
const g = parseInt(color.slice(2, 4), 16);
|
|
32455
|
+
const b = parseInt(color.slice(4, 6), 16);
|
|
32456
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
32457
|
+
}
|
|
32367
32458
|
const Chip = React.forwardRef(function Chip2(t0, ref) {
|
|
32368
|
-
const $ = reactCompilerRuntime.c(
|
|
32459
|
+
const $ = reactCompilerRuntime.c(25);
|
|
32369
32460
|
const {
|
|
32370
32461
|
children,
|
|
32371
32462
|
colorScheme,
|
|
32372
32463
|
error,
|
|
32464
|
+
outlined,
|
|
32373
32465
|
onClick,
|
|
32374
32466
|
icon,
|
|
32375
32467
|
size: t1,
|
|
@@ -32386,56 +32478,180 @@
|
|
|
32386
32478
|
t2 = $[1];
|
|
32387
32479
|
}
|
|
32388
32480
|
const usedColorScheme = t2;
|
|
32389
|
-
const
|
|
32390
|
-
const
|
|
32391
|
-
|
|
32392
|
-
|
|
32481
|
+
const dark = isDarkMode();
|
|
32482
|
+
const hasScheme = Boolean(error || usedColorScheme);
|
|
32483
|
+
let textColor = "";
|
|
32484
|
+
let bgColor = "";
|
|
32485
|
+
let border = "";
|
|
32486
|
+
if (error) {
|
|
32487
|
+
textColor = dark ? "#f87171" : "#dc2626";
|
|
32488
|
+
} else {
|
|
32489
|
+
if (usedColorScheme) {
|
|
32490
|
+
textColor = dark && usedColorScheme.darkText ? usedColorScheme.darkText : usedColorScheme.text;
|
|
32491
|
+
}
|
|
32492
|
+
}
|
|
32493
|
+
if (hasScheme) {
|
|
32494
|
+
if (outlined) {
|
|
32495
|
+
let t32;
|
|
32496
|
+
if ($[2] !== textColor) {
|
|
32497
|
+
t32 = getRgba(textColor, dark ? 0.1 : 0.06);
|
|
32498
|
+
$[2] = textColor;
|
|
32499
|
+
$[3] = t32;
|
|
32500
|
+
} else {
|
|
32501
|
+
t32 = $[3];
|
|
32502
|
+
}
|
|
32503
|
+
bgColor = t32;
|
|
32504
|
+
border = `1px solid ${getRgba(textColor, dark ? 0.2 : 0.14)}`;
|
|
32505
|
+
} else {
|
|
32506
|
+
if (error) {
|
|
32507
|
+
bgColor = dark ? "rgba(220, 38, 38, 0.15)" : "rgba(239, 68, 68, 0.1)";
|
|
32508
|
+
border = `1px solid ${dark ? "rgba(220, 38, 38, 0.3)" : "rgba(239, 68, 68, 0.2)"}`;
|
|
32509
|
+
} else {
|
|
32510
|
+
if (usedColorScheme) {
|
|
32511
|
+
bgColor = dark && usedColorScheme.darkColor ? usedColorScheme.darkColor : usedColorScheme.color;
|
|
32512
|
+
}
|
|
32513
|
+
}
|
|
32514
|
+
}
|
|
32515
|
+
}
|
|
32516
|
+
const t3 = !hasScheme && "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white";
|
|
32517
|
+
const t4 = !hasScheme && outlined && "bg-transparent dark:bg-transparent border border-surface-accent-300 dark:border-surface-accent-700";
|
|
32518
|
+
const t5 = onClick ? "cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/5" : "";
|
|
32519
|
+
const t6 = sizeClassNames[size];
|
|
32393
32520
|
let t7;
|
|
32394
|
-
if ($[
|
|
32395
|
-
t7 = cls("rounded-lg max-w-full w-max h-fit font-
|
|
32396
|
-
$[
|
|
32397
|
-
$[
|
|
32398
|
-
$[
|
|
32399
|
-
$[
|
|
32400
|
-
$[
|
|
32401
|
-
$[
|
|
32521
|
+
if ($[4] !== className || $[5] !== t3 || $[6] !== t4 || $[7] !== t5 || $[8] !== t6) {
|
|
32522
|
+
t7 = cls("rounded-lg max-w-full w-max h-fit font-medium inline-flex gap-1", "text-ellipsis", "items-center", "transition-colors duration-150", t3, t4, t5, t6, className);
|
|
32523
|
+
$[4] = className;
|
|
32524
|
+
$[5] = t3;
|
|
32525
|
+
$[6] = t4;
|
|
32526
|
+
$[7] = t5;
|
|
32527
|
+
$[8] = t6;
|
|
32528
|
+
$[9] = t7;
|
|
32402
32529
|
} else {
|
|
32403
|
-
t7 = $[
|
|
32530
|
+
t7 = $[9];
|
|
32404
32531
|
}
|
|
32405
|
-
|
|
32406
|
-
|
|
32407
|
-
|
|
32408
|
-
|
|
32409
|
-
|
|
32410
|
-
|
|
32411
|
-
|
|
32532
|
+
let t8;
|
|
32533
|
+
if ($[10] !== bgColor || $[11] !== border || $[12] !== hasScheme || $[13] !== textColor) {
|
|
32534
|
+
t8 = hasScheme ? {
|
|
32535
|
+
backgroundColor: bgColor,
|
|
32536
|
+
color: textColor,
|
|
32537
|
+
border: border || void 0
|
|
32538
|
+
} : {};
|
|
32539
|
+
$[10] = bgColor;
|
|
32540
|
+
$[11] = border;
|
|
32541
|
+
$[12] = hasScheme;
|
|
32542
|
+
$[13] = textColor;
|
|
32543
|
+
$[14] = t8;
|
|
32544
|
+
} else {
|
|
32545
|
+
t8 = $[14];
|
|
32546
|
+
}
|
|
32547
|
+
let t9;
|
|
32548
|
+
if ($[15] !== style || $[16] !== t8) {
|
|
32549
|
+
t9 = {
|
|
32550
|
+
...t8,
|
|
32412
32551
|
overflow: "hidden",
|
|
32413
32552
|
...style
|
|
32414
32553
|
};
|
|
32415
|
-
$[
|
|
32416
|
-
$[
|
|
32417
|
-
$[
|
|
32418
|
-
$[11] = t10;
|
|
32554
|
+
$[15] = style;
|
|
32555
|
+
$[16] = t8;
|
|
32556
|
+
$[17] = t9;
|
|
32419
32557
|
} else {
|
|
32420
|
-
|
|
32558
|
+
t9 = $[17];
|
|
32421
32559
|
}
|
|
32422
|
-
let
|
|
32423
|
-
if ($[
|
|
32424
|
-
|
|
32560
|
+
let t10;
|
|
32561
|
+
if ($[18] !== children || $[19] !== icon || $[20] !== onClick || $[21] !== ref || $[22] !== t7 || $[23] !== t9) {
|
|
32562
|
+
t10 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: t7, onClick, style: t9, children: [
|
|
32563
|
+
icon,
|
|
32564
|
+
children
|
|
32565
|
+
] });
|
|
32566
|
+
$[18] = children;
|
|
32567
|
+
$[19] = icon;
|
|
32568
|
+
$[20] = onClick;
|
|
32569
|
+
$[21] = ref;
|
|
32570
|
+
$[22] = t7;
|
|
32571
|
+
$[23] = t9;
|
|
32572
|
+
$[24] = t10;
|
|
32573
|
+
} else {
|
|
32574
|
+
t10 = $[24];
|
|
32575
|
+
}
|
|
32576
|
+
return t10;
|
|
32577
|
+
});
|
|
32578
|
+
const sizeClasses$1 = {
|
|
32579
|
+
small: "px-2 py-0.5 text-xs",
|
|
32580
|
+
medium: "px-2.5 py-1 text-xs"
|
|
32581
|
+
};
|
|
32582
|
+
const FilterChip = React.forwardRef(function FilterChip2(t0, ref) {
|
|
32583
|
+
const $ = reactCompilerRuntime.c(22);
|
|
32584
|
+
let children;
|
|
32585
|
+
let className;
|
|
32586
|
+
let icon;
|
|
32587
|
+
let onClick;
|
|
32588
|
+
let rest;
|
|
32589
|
+
let t1;
|
|
32590
|
+
let t2;
|
|
32591
|
+
let t3;
|
|
32592
|
+
if ($[0] !== t0) {
|
|
32593
|
+
({
|
|
32425
32594
|
children,
|
|
32426
|
-
|
|
32595
|
+
active: t1,
|
|
32596
|
+
onClick,
|
|
32597
|
+
icon,
|
|
32598
|
+
size: t2,
|
|
32599
|
+
className,
|
|
32600
|
+
disabled: t3,
|
|
32601
|
+
...rest
|
|
32602
|
+
} = t0);
|
|
32603
|
+
$[0] = t0;
|
|
32604
|
+
$[1] = children;
|
|
32605
|
+
$[2] = className;
|
|
32606
|
+
$[3] = icon;
|
|
32607
|
+
$[4] = onClick;
|
|
32608
|
+
$[5] = rest;
|
|
32609
|
+
$[6] = t1;
|
|
32610
|
+
$[7] = t2;
|
|
32611
|
+
$[8] = t3;
|
|
32612
|
+
} else {
|
|
32613
|
+
children = $[1];
|
|
32614
|
+
className = $[2];
|
|
32615
|
+
icon = $[3];
|
|
32616
|
+
onClick = $[4];
|
|
32617
|
+
rest = $[5];
|
|
32618
|
+
t1 = $[6];
|
|
32619
|
+
t2 = $[7];
|
|
32620
|
+
t3 = $[8];
|
|
32621
|
+
}
|
|
32622
|
+
const active = t1 === void 0 ? false : t1;
|
|
32623
|
+
const size = t2 === void 0 ? "medium" : t2;
|
|
32624
|
+
const disabled = t3 === void 0 ? false : t3;
|
|
32625
|
+
const t4 = sizeClasses$1[size];
|
|
32626
|
+
let t5;
|
|
32627
|
+
if ($[9] !== active || $[10] !== className || $[11] !== disabled || $[12] !== t4) {
|
|
32628
|
+
t5 = cls("inline-flex items-center gap-1 rounded-full", "font-medium whitespace-nowrap select-none shrink-0", "transition-colors duration-150", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50", t4, active ? "bg-primary/12 text-primary dark:bg-primary/20 dark:text-primary shadow-[inset_0_0_0_1.5px_var(--color-primary)]" : cls("bg-surface-accent-100 text-text-secondary dark:bg-surface-accent-800 dark:text-text-secondary-dark", !disabled && "cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/5"), disabled && "opacity-50 cursor-not-allowed", className);
|
|
32629
|
+
$[9] = active;
|
|
32630
|
+
$[10] = className;
|
|
32631
|
+
$[11] = disabled;
|
|
32632
|
+
$[12] = t4;
|
|
32633
|
+
$[13] = t5;
|
|
32634
|
+
} else {
|
|
32635
|
+
t5 = $[13];
|
|
32636
|
+
}
|
|
32637
|
+
let t6;
|
|
32638
|
+
if ($[14] !== children || $[15] !== disabled || $[16] !== icon || $[17] !== onClick || $[18] !== ref || $[19] !== rest || $[20] !== t5) {
|
|
32639
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsxs("button", { ref, type: "button", onClick, disabled, className: t5, ...rest, children: [
|
|
32640
|
+
icon,
|
|
32641
|
+
children
|
|
32427
32642
|
] });
|
|
32428
|
-
$[
|
|
32429
|
-
$[
|
|
32430
|
-
$[
|
|
32431
|
-
$[
|
|
32432
|
-
$[
|
|
32433
|
-
$[
|
|
32434
|
-
$[
|
|
32643
|
+
$[14] = children;
|
|
32644
|
+
$[15] = disabled;
|
|
32645
|
+
$[16] = icon;
|
|
32646
|
+
$[17] = onClick;
|
|
32647
|
+
$[18] = ref;
|
|
32648
|
+
$[19] = rest;
|
|
32649
|
+
$[20] = t5;
|
|
32650
|
+
$[21] = t6;
|
|
32435
32651
|
} else {
|
|
32436
|
-
|
|
32652
|
+
t6 = $[21];
|
|
32437
32653
|
}
|
|
32438
|
-
return
|
|
32654
|
+
return t6;
|
|
32439
32655
|
});
|
|
32440
32656
|
const Tooltip = React.forwardRef((t0, ref) => {
|
|
32441
32657
|
const $ = reactCompilerRuntime.c(47);
|
|
@@ -32512,7 +32728,7 @@
|
|
|
32512
32728
|
const side = t1 === void 0 ? "bottom" : t1;
|
|
32513
32729
|
const delayDuration = t2 === void 0 ? 200 : t2;
|
|
32514
32730
|
const asChild = t3 === void 0 ? false : t3;
|
|
32515
|
-
useInjectStyles("Tooltip", styles);
|
|
32731
|
+
useInjectStyles("Tooltip", styles$1);
|
|
32516
32732
|
const contextContainer = usePortalContainer();
|
|
32517
32733
|
const finalContainer = container ?? contextContainer ?? void 0;
|
|
32518
32734
|
if (!title) {
|
|
@@ -32597,7 +32813,7 @@
|
|
|
32597
32813
|
}
|
|
32598
32814
|
return t10;
|
|
32599
32815
|
});
|
|
32600
|
-
const styles = `
|
|
32816
|
+
const styles$1 = `
|
|
32601
32817
|
|
|
32602
32818
|
.TooltipContent {
|
|
32603
32819
|
animation-duration: 220ms;
|
|
@@ -32743,13 +32959,13 @@
|
|
|
32743
32959
|
}
|
|
32744
32960
|
return t7;
|
|
32745
32961
|
}
|
|
32746
|
-
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-
|
|
32962
|
+
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-[1.04] active:scale-95 transition-transform";
|
|
32747
32963
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
|
32748
|
-
const colorClasses$1 = "text-surface-accent-
|
|
32964
|
+
const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
|
32749
32965
|
const sizeClasses = {
|
|
32750
32966
|
medium: "w-10 !h-10 min-w-10 min-h-10",
|
|
32751
32967
|
small: "w-8 !h-8 min-w-8 min-h-8",
|
|
32752
|
-
smallest: "w-
|
|
32968
|
+
smallest: "w-7 !h-7 min-w-7 min-h-7",
|
|
32753
32969
|
large: "w-12 !h-12 min-w-12 min-h-12"
|
|
32754
32970
|
};
|
|
32755
32971
|
const shapeClasses = {
|
|
@@ -32757,7 +32973,7 @@
|
|
|
32757
32973
|
square: "rounded-md"
|
|
32758
32974
|
};
|
|
32759
32975
|
const IconButtonInner = (t0, ref) => {
|
|
32760
|
-
const $ = reactCompilerRuntime.c(
|
|
32976
|
+
const $ = reactCompilerRuntime.c(27);
|
|
32761
32977
|
let children;
|
|
32762
32978
|
let className;
|
|
32763
32979
|
let component;
|
|
@@ -32803,42 +33019,51 @@
|
|
|
32803
33019
|
const size = t1 === void 0 ? "medium" : t1;
|
|
32804
33020
|
const variant = t2 === void 0 ? "ghost" : t2;
|
|
32805
33021
|
const shape = t3 === void 0 ? "circular" : t3;
|
|
32806
|
-
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 bg-surface-accent-200/50 dark:bg-surface-
|
|
33022
|
+
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 bg-surface-accent-200/50 dark:bg-surface-900 dark:bg-opacity-50 dark:bg-surface-900/50";
|
|
32807
33023
|
const Component = component || "button";
|
|
32808
|
-
const
|
|
32809
|
-
const
|
|
32810
|
-
const
|
|
32811
|
-
const
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
33024
|
+
const isNativeButton = Component === "button";
|
|
33025
|
+
const t4 = isNativeButton ? "button" : void 0;
|
|
33026
|
+
const t5 = isNativeButton ? void 0 : "button";
|
|
33027
|
+
const t6 = disabled || void 0;
|
|
33028
|
+
const t7 = disabled ? -1 : void 0;
|
|
33029
|
+
const t8 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
|
|
33030
|
+
const t9 = toggled ? "outline outline-2 outline-primary" : "";
|
|
33031
|
+
const t10 = shapeClasses[shape];
|
|
33032
|
+
const t11 = sizeClasses[size];
|
|
33033
|
+
let t12;
|
|
33034
|
+
if ($[10] !== bgClasses || $[11] !== className || $[12] !== t10 || $[13] !== t11 || $[14] !== t8 || $[15] !== t9) {
|
|
33035
|
+
t12 = cls(t8, t9, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t10, t11, className);
|
|
32815
33036
|
$[10] = bgClasses;
|
|
32816
33037
|
$[11] = className;
|
|
32817
|
-
$[12] =
|
|
32818
|
-
$[13] =
|
|
32819
|
-
$[14] =
|
|
32820
|
-
$[15] =
|
|
32821
|
-
$[16] =
|
|
33038
|
+
$[12] = t10;
|
|
33039
|
+
$[13] = t11;
|
|
33040
|
+
$[14] = t8;
|
|
33041
|
+
$[15] = t9;
|
|
33042
|
+
$[16] = t12;
|
|
32822
33043
|
} else {
|
|
32823
|
-
|
|
33044
|
+
t12 = $[16];
|
|
32824
33045
|
}
|
|
32825
|
-
let
|
|
32826
|
-
if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !==
|
|
32827
|
-
|
|
33046
|
+
let t13;
|
|
33047
|
+
if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !== t12 || $[22] !== t4 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
|
|
33048
|
+
t13 = /* @__PURE__ */ jsxRuntime.jsx(Component, { type: t4, role: t5, "aria-disabled": t6, tabIndex: t7, ref, ...props, className: t12, children });
|
|
32828
33049
|
$[17] = Component;
|
|
32829
33050
|
$[18] = children;
|
|
32830
33051
|
$[19] = props;
|
|
32831
33052
|
$[20] = ref;
|
|
32832
|
-
$[21] =
|
|
32833
|
-
$[22] =
|
|
33053
|
+
$[21] = t12;
|
|
33054
|
+
$[22] = t4;
|
|
33055
|
+
$[23] = t5;
|
|
33056
|
+
$[24] = t6;
|
|
33057
|
+
$[25] = t7;
|
|
33058
|
+
$[26] = t13;
|
|
32834
33059
|
} else {
|
|
32835
|
-
|
|
33060
|
+
t13 = $[26];
|
|
32836
33061
|
}
|
|
32837
|
-
return
|
|
33062
|
+
return t13;
|
|
32838
33063
|
};
|
|
32839
33064
|
const IconButton = React.forwardRef(IconButtonInner);
|
|
32840
33065
|
const defaultClasses = {
|
|
32841
|
-
root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-
|
|
33066
|
+
root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-ellipsis max-w-full",
|
|
32842
33067
|
shrink: "transform translate-y-[2px] scale-75 translate-x-[12px]",
|
|
32843
33068
|
expanded: "translate-x-[16px] top-0 transform translate-y-[16px] scale-100"
|
|
32844
33069
|
};
|
|
@@ -32869,7 +33094,7 @@
|
|
|
32869
33094
|
[defaultClasses.shrink]: shrink,
|
|
32870
33095
|
[defaultClasses.expanded]: t0
|
|
32871
33096
|
}, className);
|
|
32872
|
-
t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed
|
|
33097
|
+
t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", defaultBorderMixin, computedClassName);
|
|
32873
33098
|
$[4] = className;
|
|
32874
33099
|
$[5] = shrink;
|
|
32875
33100
|
$[6] = t0;
|
|
@@ -33250,7 +33475,7 @@
|
|
|
33250
33475
|
full: "max-w-full w-full"
|
|
33251
33476
|
};
|
|
33252
33477
|
const Dialog = (t0) => {
|
|
33253
|
-
const $ = reactCompilerRuntime.c(
|
|
33478
|
+
const $ = reactCompilerRuntime.c(46);
|
|
33254
33479
|
const {
|
|
33255
33480
|
open,
|
|
33256
33481
|
onOpenChange,
|
|
@@ -33268,7 +33493,8 @@
|
|
|
33268
33493
|
onPointerDownOutside,
|
|
33269
33494
|
onInteractOutside,
|
|
33270
33495
|
disableInitialFocus: t5,
|
|
33271
|
-
portalContainer
|
|
33496
|
+
portalContainer,
|
|
33497
|
+
"aria-describedby": ariaDescribedby
|
|
33272
33498
|
} = t0;
|
|
33273
33499
|
const fullWidth = t1 === void 0 ? true : t1;
|
|
33274
33500
|
const scrollable = t2 === void 0 ? true : t2;
|
|
@@ -33289,7 +33515,7 @@
|
|
|
33289
33515
|
return () => clearTimeout(timeout);
|
|
33290
33516
|
} else {
|
|
33291
33517
|
setDisplayed(true);
|
|
33292
|
-
return _temp$
|
|
33518
|
+
return _temp$5;
|
|
33293
33519
|
}
|
|
33294
33520
|
};
|
|
33295
33521
|
t7 = [open];
|
|
@@ -33313,7 +33539,7 @@
|
|
|
33313
33539
|
const t10 = displayed && open ? "opacity-100" : "opacity-0";
|
|
33314
33540
|
let t11;
|
|
33315
33541
|
if ($[5] !== t10) {
|
|
33316
|
-
t11 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black
|
|
33542
|
+
t11 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black/50 dark:bg-black/60 backdrop-blur-sm", t10, "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center");
|
|
33317
33543
|
$[5] = t10;
|
|
33318
33544
|
$[6] = t11;
|
|
33319
33545
|
} else {
|
|
@@ -33355,16 +33581,16 @@
|
|
|
33355
33581
|
}
|
|
33356
33582
|
let t16;
|
|
33357
33583
|
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
33358
|
-
t16 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
|
|
33584
|
+
t16 = cls("relative h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
|
|
33359
33585
|
$[15] = t16;
|
|
33360
33586
|
} else {
|
|
33361
33587
|
t16 = $[15];
|
|
33362
33588
|
}
|
|
33363
33589
|
const t17 = fullWidth && !fullScreen ? "w-11/12" : void 0;
|
|
33364
33590
|
const t18 = fullHeight && !fullScreen ? "h-full" : void 0;
|
|
33365
|
-
const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-
|
|
33591
|
+
const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-lg";
|
|
33366
33592
|
const t20 = scrollable && "overflow-y-auto";
|
|
33367
|
-
const t21 = displayed && open ? "opacity-100" : "opacity-0";
|
|
33593
|
+
const t21 = displayed && open ? "opacity-100 scale-100" : "opacity-0 scale-[0.97]";
|
|
33368
33594
|
const t22 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
|
|
33369
33595
|
let t23;
|
|
33370
33596
|
if ($[16] !== className || $[17] !== t17 || $[18] !== t18 || $[19] !== t19 || $[20] !== t20 || $[21] !== t21 || $[22] !== t22) {
|
|
@@ -33390,53 +33616,54 @@
|
|
|
33390
33616
|
t24 = $[26];
|
|
33391
33617
|
}
|
|
33392
33618
|
let t25;
|
|
33393
|
-
if ($[27] !==
|
|
33394
|
-
t25 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, className: t16, children: t24 });
|
|
33395
|
-
$[27] =
|
|
33396
|
-
$[28] =
|
|
33397
|
-
$[29] =
|
|
33398
|
-
$[30] =
|
|
33399
|
-
$[31] =
|
|
33400
|
-
$[32] =
|
|
33401
|
-
|
|
33402
|
-
|
|
33619
|
+
if ($[27] !== ariaDescribedby || $[28] !== onEscapeKeyDown || $[29] !== onInteractOutside || $[30] !== onPointerDownOutside || $[31] !== t15 || $[32] !== t24) {
|
|
33620
|
+
t25 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, "aria-describedby": ariaDescribedby, className: t16, children: t24 });
|
|
33621
|
+
$[27] = ariaDescribedby;
|
|
33622
|
+
$[28] = onEscapeKeyDown;
|
|
33623
|
+
$[29] = onInteractOutside;
|
|
33624
|
+
$[30] = onPointerDownOutside;
|
|
33625
|
+
$[31] = t15;
|
|
33626
|
+
$[32] = t24;
|
|
33627
|
+
$[33] = t25;
|
|
33628
|
+
} else {
|
|
33629
|
+
t25 = $[33];
|
|
33403
33630
|
}
|
|
33404
33631
|
let t26;
|
|
33405
|
-
if ($[
|
|
33632
|
+
if ($[34] !== t14 || $[35] !== t25 || $[36] !== t9) {
|
|
33406
33633
|
t26 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t9, children: [
|
|
33407
33634
|
t14,
|
|
33408
33635
|
t25
|
|
33409
33636
|
] });
|
|
33410
|
-
$[
|
|
33411
|
-
$[
|
|
33412
|
-
$[
|
|
33413
|
-
$[
|
|
33637
|
+
$[34] = t14;
|
|
33638
|
+
$[35] = t25;
|
|
33639
|
+
$[36] = t9;
|
|
33640
|
+
$[37] = t26;
|
|
33414
33641
|
} else {
|
|
33415
|
-
t26 = $[
|
|
33642
|
+
t26 = $[37];
|
|
33416
33643
|
}
|
|
33417
33644
|
let t27;
|
|
33418
|
-
if ($[
|
|
33645
|
+
if ($[38] !== finalContainer || $[39] !== t26) {
|
|
33419
33646
|
t27 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: finalContainer, children: t26 });
|
|
33420
|
-
$[
|
|
33421
|
-
$[
|
|
33422
|
-
$[
|
|
33647
|
+
$[38] = finalContainer;
|
|
33648
|
+
$[39] = t26;
|
|
33649
|
+
$[40] = t27;
|
|
33423
33650
|
} else {
|
|
33424
|
-
t27 = $[
|
|
33651
|
+
t27 = $[40];
|
|
33425
33652
|
}
|
|
33426
33653
|
let t28;
|
|
33427
|
-
if ($[
|
|
33654
|
+
if ($[41] !== modal || $[42] !== onOpenChange || $[43] !== t27 || $[44] !== t8) {
|
|
33428
33655
|
t28 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { open: t8, modal, onOpenChange, children: t27 });
|
|
33429
|
-
$[
|
|
33430
|
-
$[
|
|
33431
|
-
$[
|
|
33432
|
-
$[
|
|
33433
|
-
$[
|
|
33656
|
+
$[41] = modal;
|
|
33657
|
+
$[42] = onOpenChange;
|
|
33658
|
+
$[43] = t27;
|
|
33659
|
+
$[44] = t8;
|
|
33660
|
+
$[45] = t28;
|
|
33434
33661
|
} else {
|
|
33435
|
-
t28 = $[
|
|
33662
|
+
t28 = $[45];
|
|
33436
33663
|
}
|
|
33437
33664
|
return t28;
|
|
33438
33665
|
};
|
|
33439
|
-
function _temp$
|
|
33666
|
+
function _temp$5() {
|
|
33440
33667
|
}
|
|
33441
33668
|
function DialogActions(t0) {
|
|
33442
33669
|
const $ = reactCompilerRuntime.c(7);
|
|
@@ -33589,7 +33816,7 @@
|
|
|
33589
33816
|
return title;
|
|
33590
33817
|
}
|
|
33591
33818
|
function ExpandablePanel(t0) {
|
|
33592
|
-
const $ = reactCompilerRuntime.c(
|
|
33819
|
+
const $ = reactCompilerRuntime.c(41);
|
|
33593
33820
|
const {
|
|
33594
33821
|
title,
|
|
33595
33822
|
children,
|
|
@@ -33675,7 +33902,7 @@
|
|
|
33675
33902
|
const t7 = !invisible && defaultBorderMixin + " border";
|
|
33676
33903
|
let t8;
|
|
33677
33904
|
if ($[6] !== className || $[7] !== t7) {
|
|
33678
|
-
t8 = cls(t7, "rounded-
|
|
33905
|
+
t8 = cls(t7, "rounded-lg", "w-full", className);
|
|
33679
33906
|
$[6] = className;
|
|
33680
33907
|
$[7] = t7;
|
|
33681
33908
|
$[8] = t8;
|
|
@@ -33699,7 +33926,7 @@
|
|
|
33699
33926
|
const t13 = asField && fieldBackgroundMixin;
|
|
33700
33927
|
let t14;
|
|
33701
33928
|
if ($[11] !== t10 || $[12] !== t11 || $[13] !== t12 || $[14] !== t13 || $[15] !== titleClassName) {
|
|
33702
|
-
t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
|
|
33929
|
+
t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40 active:bg-surface-accent-300/50 dark:active:bg-surface-700/50", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
|
|
33703
33930
|
$[11] = t10;
|
|
33704
33931
|
$[12] = t11;
|
|
33705
33932
|
$[13] = t12;
|
|
@@ -33727,68 +33954,69 @@
|
|
|
33727
33954
|
t17 = $[20];
|
|
33728
33955
|
}
|
|
33729
33956
|
let t18;
|
|
33730
|
-
if ($[21] !==
|
|
33731
|
-
t18 = /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t14, role: "button", tabIndex: 0, children: [
|
|
33957
|
+
if ($[21] !== open || $[22] !== t14 || $[23] !== t17 || $[24] !== title) {
|
|
33958
|
+
t18 = /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t14, role: "button", tabIndex: 0, "aria-expanded": open, children: [
|
|
33732
33959
|
title,
|
|
33733
33960
|
t17
|
|
33734
33961
|
] }) });
|
|
33735
|
-
$[21] =
|
|
33736
|
-
$[22] =
|
|
33737
|
-
$[23] =
|
|
33738
|
-
$[24] =
|
|
33962
|
+
$[21] = open;
|
|
33963
|
+
$[22] = t14;
|
|
33964
|
+
$[23] = t17;
|
|
33965
|
+
$[24] = title;
|
|
33966
|
+
$[25] = t18;
|
|
33739
33967
|
} else {
|
|
33740
|
-
t18 = $[
|
|
33968
|
+
t18 = $[25];
|
|
33741
33969
|
}
|
|
33742
33970
|
let t19;
|
|
33743
|
-
if ($[
|
|
33971
|
+
if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
33744
33972
|
t19 = cls("CollapsibleContent");
|
|
33745
|
-
$[
|
|
33973
|
+
$[26] = t19;
|
|
33746
33974
|
} else {
|
|
33747
|
-
t19 = $[
|
|
33975
|
+
t19 = $[26];
|
|
33748
33976
|
}
|
|
33749
33977
|
const t20 = allowOverflow ? "visible" : "hidden";
|
|
33750
33978
|
let t21;
|
|
33751
|
-
if ($[
|
|
33979
|
+
if ($[27] !== t20) {
|
|
33752
33980
|
t21 = {
|
|
33753
33981
|
overflow: t20
|
|
33754
33982
|
};
|
|
33755
|
-
$[
|
|
33756
|
-
$[
|
|
33983
|
+
$[27] = t20;
|
|
33984
|
+
$[28] = t21;
|
|
33757
33985
|
} else {
|
|
33758
|
-
t21 = $[
|
|
33986
|
+
t21 = $[28];
|
|
33759
33987
|
}
|
|
33760
33988
|
let t22;
|
|
33761
|
-
if ($[
|
|
33989
|
+
if ($[29] !== children || $[30] !== innerClassName) {
|
|
33762
33990
|
t22 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: innerClassName, children });
|
|
33763
|
-
$[
|
|
33764
|
-
$[
|
|
33765
|
-
$[
|
|
33991
|
+
$[29] = children;
|
|
33992
|
+
$[30] = innerClassName;
|
|
33993
|
+
$[31] = t22;
|
|
33766
33994
|
} else {
|
|
33767
|
-
t22 = $[
|
|
33995
|
+
t22 = $[31];
|
|
33768
33996
|
}
|
|
33769
33997
|
let t23;
|
|
33770
|
-
if ($[
|
|
33998
|
+
if ($[32] !== t21 || $[33] !== t22) {
|
|
33771
33999
|
t23 = /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Content, { className: t19, style: t21, children: t22 });
|
|
33772
|
-
$[
|
|
33773
|
-
$[
|
|
33774
|
-
$[
|
|
34000
|
+
$[32] = t21;
|
|
34001
|
+
$[33] = t22;
|
|
34002
|
+
$[34] = t23;
|
|
33775
34003
|
} else {
|
|
33776
|
-
t23 = $[
|
|
34004
|
+
t23 = $[34];
|
|
33777
34005
|
}
|
|
33778
34006
|
let t24;
|
|
33779
|
-
if ($[
|
|
34007
|
+
if ($[35] !== open || $[36] !== t18 || $[37] !== t23 || $[38] !== t8 || $[39] !== t9) {
|
|
33780
34008
|
t24 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(Collapsible__namespace.Root, { className: t8, open, onOpenChange: t9, children: [
|
|
33781
34009
|
t18,
|
|
33782
34010
|
t23
|
|
33783
34011
|
] }) });
|
|
33784
|
-
$[
|
|
33785
|
-
$[
|
|
33786
|
-
$[
|
|
33787
|
-
$[
|
|
33788
|
-
$[
|
|
33789
|
-
$[
|
|
34012
|
+
$[35] = open;
|
|
34013
|
+
$[36] = t18;
|
|
34014
|
+
$[37] = t23;
|
|
34015
|
+
$[38] = t8;
|
|
34016
|
+
$[39] = t9;
|
|
34017
|
+
$[40] = t24;
|
|
33790
34018
|
} else {
|
|
33791
|
-
t24 = $[
|
|
34019
|
+
t24 = $[40];
|
|
33792
34020
|
}
|
|
33793
34021
|
return t24;
|
|
33794
34022
|
}
|
|
@@ -33939,7 +34167,7 @@
|
|
|
33939
34167
|
const t2 = colorClasses[mode];
|
|
33940
34168
|
let t3;
|
|
33941
34169
|
if ($[0] !== t2) {
|
|
33942
|
-
t3 = cls("my-3 py-2 px-4 rounded", t2);
|
|
34170
|
+
t3 = cls("my-3 py-2 px-4 rounded-xs", t2);
|
|
33943
34171
|
$[0] = t2;
|
|
33944
34172
|
$[1] = t3;
|
|
33945
34173
|
} else {
|
|
@@ -33984,7 +34212,7 @@
|
|
|
33984
34212
|
const t2 = onClick && "hover:cursor-pointer hover:bg-surface-200 dark:hover:bg-surface-800";
|
|
33985
34213
|
let t3;
|
|
33986
34214
|
if ($[5] !== className || $[6] !== t1 || $[7] !== t2) {
|
|
33987
|
-
t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed
|
|
34215
|
+
t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", t1, t2, defaultBorderMixin, className);
|
|
33988
34216
|
$[5] = className;
|
|
33989
34217
|
$[6] = t1;
|
|
33990
34218
|
$[7] = t2;
|
|
@@ -34244,6 +34472,7 @@
|
|
|
34244
34472
|
}
|
|
34245
34473
|
return t9;
|
|
34246
34474
|
});
|
|
34475
|
+
MenuItem.displayName = "MenuItem";
|
|
34247
34476
|
function Menubar(t0) {
|
|
34248
34477
|
const $ = reactCompilerRuntime.c(6);
|
|
34249
34478
|
const {
|
|
@@ -34901,7 +35130,7 @@
|
|
|
34901
35130
|
if (orientation === "horizontal") {
|
|
34902
35131
|
let t1;
|
|
34903
35132
|
if ($[0] !== className) {
|
|
34904
|
-
t1 = cls("dark:bg-
|
|
35133
|
+
t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-4", className);
|
|
34905
35134
|
$[0] = className;
|
|
34906
35135
|
$[1] = t1;
|
|
34907
35136
|
} else {
|
|
@@ -34920,7 +35149,7 @@
|
|
|
34920
35149
|
} else {
|
|
34921
35150
|
let t1;
|
|
34922
35151
|
if ($[5] !== className) {
|
|
34923
|
-
t1 = cls("dark:bg-
|
|
35152
|
+
t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-4", className);
|
|
34924
35153
|
$[5] = className;
|
|
34925
35154
|
$[6] = t1;
|
|
34926
35155
|
} else {
|
|
@@ -35052,7 +35281,7 @@
|
|
|
35052
35281
|
let t12;
|
|
35053
35282
|
let t13;
|
|
35054
35283
|
if ($[9] !== children) {
|
|
35055
|
-
t13 = children ? React.Children.map(children, _temp$
|
|
35284
|
+
t13 = children ? React.Children.map(children, _temp$4)?.filter(Boolean) ?? [] : [];
|
|
35056
35285
|
$[9] = children;
|
|
35057
35286
|
$[10] = t13;
|
|
35058
35287
|
} else {
|
|
@@ -35598,7 +35827,7 @@
|
|
|
35598
35827
|
}
|
|
35599
35828
|
return t7;
|
|
35600
35829
|
});
|
|
35601
|
-
function _temp$
|
|
35830
|
+
function _temp$4(child) {
|
|
35602
35831
|
if (React__namespace.isValidElement(child)) {
|
|
35603
35832
|
return child.props.value;
|
|
35604
35833
|
}
|
|
@@ -35698,7 +35927,7 @@
|
|
|
35698
35927
|
}
|
|
35699
35928
|
let t1;
|
|
35700
35929
|
if ($[3] !== className) {
|
|
35701
|
-
t1 = cls("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-
|
|
35930
|
+
t1 = cls("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className);
|
|
35702
35931
|
$[3] = className;
|
|
35703
35932
|
$[4] = t1;
|
|
35704
35933
|
} else {
|
|
@@ -35938,6 +36167,7 @@
|
|
|
35938
36167
|
onClick,
|
|
35939
36168
|
onTextSearch,
|
|
35940
36169
|
placeholder: t1,
|
|
36170
|
+
initialValue,
|
|
35941
36171
|
expandable: t2,
|
|
35942
36172
|
size: t3,
|
|
35943
36173
|
innerClassName,
|
|
@@ -35950,7 +36180,7 @@
|
|
|
35950
36180
|
const placeholder = t1 === void 0 ? "Search" : t1;
|
|
35951
36181
|
const expandable = t2 === void 0 ? false : t2;
|
|
35952
36182
|
const size = t3 === void 0 ? "medium" : t3;
|
|
35953
|
-
const [searchText, setSearchText] = React.useState("");
|
|
36183
|
+
const [searchText, setSearchText] = React.useState(initialValue ?? "");
|
|
35954
36184
|
const [active, setActive] = React.useState(false);
|
|
35955
36185
|
const deferredValues = useDebounceValue(searchText, 200);
|
|
35956
36186
|
let t4;
|
|
@@ -36486,7 +36716,7 @@
|
|
|
36486
36716
|
}
|
|
36487
36717
|
const itemValue = child_0.props.value;
|
|
36488
36718
|
const isSelected = String(value) === String(itemValue);
|
|
36489
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(cmdk.Command.Item, { value: String(itemValue), onMouseDown: _temp$
|
|
36719
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(cmdk.Command.Item, { value: String(itemValue), onMouseDown: _temp$3, 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: [
|
|
36490
36720
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("w-4 h-4 flex items-center justify-center flex-shrink-0", isSelected ? "text-primary" : "text-transparent"), children: isSelected && /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { size: 14 }) }),
|
|
36491
36721
|
child_0.props.children ?? child_0.props.value
|
|
36492
36722
|
] }, String(itemValue));
|
|
@@ -36589,12 +36819,12 @@
|
|
|
36589
36819
|
function SearchableSelectItem(_props) {
|
|
36590
36820
|
return null;
|
|
36591
36821
|
}
|
|
36592
|
-
function _temp$
|
|
36822
|
+
function _temp$3(e_0) {
|
|
36593
36823
|
e_0.preventDefault();
|
|
36594
36824
|
e_0.stopPropagation();
|
|
36595
36825
|
}
|
|
36596
36826
|
const Select = React.forwardRef((t0, ref) => {
|
|
36597
|
-
const $ = reactCompilerRuntime.c(
|
|
36827
|
+
const $ = reactCompilerRuntime.c(123);
|
|
36598
36828
|
let children;
|
|
36599
36829
|
let className;
|
|
36600
36830
|
let disabled;
|
|
@@ -36821,7 +37051,7 @@
|
|
|
36821
37051
|
const t18 = !fullWidth;
|
|
36822
37052
|
let t19;
|
|
36823
37053
|
if ($[43] !== className || $[44] !== fullWidth || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18) {
|
|
36824
|
-
t19 = cls("select-none rounded-
|
|
37054
|
+
t19 = cls("select-none rounded-lg text-sm", t12, t13, "relative flex items-center", className, {
|
|
36825
37055
|
"min-h-[28px]": t14,
|
|
36826
37056
|
"min-h-[32px]": t15,
|
|
36827
37057
|
"min-h-[44px]": t16,
|
|
@@ -36842,13 +37072,15 @@
|
|
|
36842
37072
|
} else {
|
|
36843
37073
|
t19 = $[52];
|
|
36844
37074
|
}
|
|
36845
|
-
|
|
37075
|
+
const t20 = typeof label === "string" ? label : typeof renderValue === "string" ? renderValue : "Select an option";
|
|
37076
|
+
const t21 = error || void 0;
|
|
37077
|
+
let t22;
|
|
36846
37078
|
if ($[53] !== disabled || $[54] !== error || $[55] !== fullWidth || $[56] !== inputClassName || $[57] !== padding || $[58] !== size) {
|
|
36847
|
-
|
|
37079
|
+
t22 = cls("h-full", padding ? {
|
|
36848
37080
|
"px-4": size === "large",
|
|
36849
37081
|
"px-3": size === "medium",
|
|
36850
37082
|
"px-2": size === "small" || size === "smallest"
|
|
36851
|
-
} : "", "outline-hidden focus:outline-hidden", "outline-none focus:outline-none", "select-none rounded-
|
|
37083
|
+
} : "", "outline-hidden focus:outline-hidden", "outline-none focus:outline-none", "select-none rounded-lg text-sm", error ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark", error ? "border border-red-500 dark:border-red-600" : "", disabled ? "text-surface-accent-600 dark:text-surface-accent-400" : "text-surface-accent-800 dark:text-white", "relative flex flex-row items-center", {
|
|
36852
37084
|
"min-h-[28px]": size === "smallest",
|
|
36853
37085
|
"min-h-[32px]": size === "small",
|
|
36854
37086
|
"min-h-[44px]": size === "medium",
|
|
@@ -36862,196 +37094,198 @@
|
|
|
36862
37094
|
$[56] = inputClassName;
|
|
36863
37095
|
$[57] = padding;
|
|
36864
37096
|
$[58] = size;
|
|
36865
|
-
$[59] =
|
|
37097
|
+
$[59] = t22;
|
|
36866
37098
|
} else {
|
|
36867
|
-
|
|
37099
|
+
t22 = $[59];
|
|
36868
37100
|
}
|
|
36869
|
-
const
|
|
36870
|
-
const
|
|
36871
|
-
const
|
|
36872
|
-
const
|
|
36873
|
-
let
|
|
36874
|
-
if ($[60] !==
|
|
36875
|
-
|
|
36876
|
-
"min-h-[28px]":
|
|
36877
|
-
"min-h-[32px]":
|
|
36878
|
-
"min-h-[44px]":
|
|
36879
|
-
"min-h-[64px]":
|
|
37101
|
+
const t23 = size === "smallest";
|
|
37102
|
+
const t24 = size === "small";
|
|
37103
|
+
const t25 = size === "medium";
|
|
37104
|
+
const t26 = size === "large";
|
|
37105
|
+
let t27;
|
|
37106
|
+
if ($[60] !== t23 || $[61] !== t24 || $[62] !== t25 || $[63] !== t26) {
|
|
37107
|
+
t27 = cls("flex-grow max-w-full flex flex-row gap-2 items-center", "overflow-visible", {
|
|
37108
|
+
"min-h-[28px]": t23,
|
|
37109
|
+
"min-h-[32px]": t24,
|
|
37110
|
+
"min-h-[44px]": t25,
|
|
37111
|
+
"min-h-[64px]": t26
|
|
36880
37112
|
});
|
|
36881
|
-
$[60] =
|
|
36882
|
-
$[61] =
|
|
36883
|
-
$[62] =
|
|
36884
|
-
$[63] =
|
|
36885
|
-
$[64] =
|
|
37113
|
+
$[60] = t23;
|
|
37114
|
+
$[61] = t24;
|
|
37115
|
+
$[62] = t25;
|
|
37116
|
+
$[63] = t26;
|
|
37117
|
+
$[64] = t27;
|
|
36886
37118
|
} else {
|
|
36887
|
-
|
|
37119
|
+
t27 = $[64];
|
|
36888
37120
|
}
|
|
36889
|
-
let
|
|
37121
|
+
let t28;
|
|
36890
37122
|
if ($[65] !== displayChildren || $[66] !== hasValue || $[67] !== placeholder || $[68] !== renderValue || $[69] !== value) {
|
|
36891
|
-
|
|
37123
|
+
t28 = hasValue && value !== void 0 && renderValue ? renderValue(value) : displayChildren || placeholder;
|
|
36892
37124
|
$[65] = displayChildren;
|
|
36893
37125
|
$[66] = hasValue;
|
|
36894
37126
|
$[67] = placeholder;
|
|
36895
37127
|
$[68] = renderValue;
|
|
36896
37128
|
$[69] = value;
|
|
36897
|
-
$[70] =
|
|
37129
|
+
$[70] = t28;
|
|
36898
37130
|
} else {
|
|
36899
|
-
|
|
37131
|
+
t28 = $[70];
|
|
36900
37132
|
}
|
|
36901
|
-
let
|
|
36902
|
-
if ($[71] !== placeholder || $[72] !==
|
|
36903
|
-
|
|
37133
|
+
let t29;
|
|
37134
|
+
if ($[71] !== placeholder || $[72] !== t28) {
|
|
37135
|
+
t29 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { onClick: _temp$2, placeholder, className: "w-full", children: t28 });
|
|
36904
37136
|
$[71] = placeholder;
|
|
36905
|
-
$[72] =
|
|
36906
|
-
$[73] =
|
|
37137
|
+
$[72] = t28;
|
|
37138
|
+
$[73] = t29;
|
|
36907
37139
|
} else {
|
|
36908
|
-
|
|
37140
|
+
t29 = $[73];
|
|
36909
37141
|
}
|
|
36910
|
-
let
|
|
36911
|
-
if ($[74] !== ref || $[75] !==
|
|
36912
|
-
|
|
37142
|
+
let t30;
|
|
37143
|
+
if ($[74] !== ref || $[75] !== t27 || $[76] !== t29) {
|
|
37144
|
+
t30 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: t27, children: t29 });
|
|
36913
37145
|
$[74] = ref;
|
|
36914
|
-
$[75] =
|
|
36915
|
-
$[76] =
|
|
36916
|
-
$[77] =
|
|
37146
|
+
$[75] = t27;
|
|
37147
|
+
$[76] = t29;
|
|
37148
|
+
$[77] = t30;
|
|
36917
37149
|
} else {
|
|
36918
|
-
|
|
37150
|
+
t30 = $[77];
|
|
36919
37151
|
}
|
|
36920
|
-
const
|
|
36921
|
-
const
|
|
36922
|
-
const
|
|
36923
|
-
const
|
|
36924
|
-
let
|
|
36925
|
-
if ($[78] !==
|
|
36926
|
-
|
|
36927
|
-
"px-2":
|
|
36928
|
-
"px-1":
|
|
37152
|
+
const t31 = size === "large" ? "medium" : "small";
|
|
37153
|
+
const t32 = open ? "rotate-180" : "";
|
|
37154
|
+
const t33 = size === "large";
|
|
37155
|
+
const t34 = size === "medium" || size === "small";
|
|
37156
|
+
let t35;
|
|
37157
|
+
if ($[78] !== t32 || $[79] !== t33 || $[80] !== t34) {
|
|
37158
|
+
t35 = cls("transition", t32, {
|
|
37159
|
+
"px-2": t33,
|
|
37160
|
+
"px-1": t34
|
|
36929
37161
|
});
|
|
36930
|
-
$[78] =
|
|
36931
|
-
$[79] =
|
|
36932
|
-
$[80] =
|
|
36933
|
-
$[81] =
|
|
37162
|
+
$[78] = t32;
|
|
37163
|
+
$[79] = t33;
|
|
37164
|
+
$[80] = t34;
|
|
37165
|
+
$[81] = t35;
|
|
36934
37166
|
} else {
|
|
36935
|
-
|
|
37167
|
+
t35 = $[81];
|
|
36936
37168
|
}
|
|
36937
|
-
let
|
|
36938
|
-
if ($[82] !==
|
|
36939
|
-
|
|
36940
|
-
$[82] =
|
|
36941
|
-
$[83] =
|
|
36942
|
-
$[84] =
|
|
37169
|
+
let t36;
|
|
37170
|
+
if ($[82] !== t31 || $[83] !== t35) {
|
|
37171
|
+
t36 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(KeyboardArrowDownIcon, { size: t31, className: t35 }) });
|
|
37172
|
+
$[82] = t31;
|
|
37173
|
+
$[83] = t35;
|
|
37174
|
+
$[84] = t36;
|
|
36943
37175
|
} else {
|
|
36944
|
-
|
|
37176
|
+
t36 = $[84];
|
|
36945
37177
|
}
|
|
36946
|
-
let
|
|
36947
|
-
if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !==
|
|
36948
|
-
|
|
36949
|
-
|
|
36950
|
-
|
|
37178
|
+
let t37;
|
|
37179
|
+
if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !== t21 || $[89] !== t22 || $[90] !== t30 || $[91] !== t36) {
|
|
37180
|
+
t37 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref: inputRef, id, asChild: false, type: "button", "aria-label": t20, "aria-invalid": t21, className: t22, children: [
|
|
37181
|
+
t30,
|
|
37182
|
+
t36
|
|
36951
37183
|
] });
|
|
36952
37184
|
$[85] = id;
|
|
36953
37185
|
$[86] = inputRef;
|
|
36954
37186
|
$[87] = t20;
|
|
36955
|
-
$[88] =
|
|
36956
|
-
$[89] =
|
|
36957
|
-
$[90] =
|
|
37187
|
+
$[88] = t21;
|
|
37188
|
+
$[89] = t22;
|
|
37189
|
+
$[90] = t30;
|
|
37190
|
+
$[91] = t36;
|
|
37191
|
+
$[92] = t37;
|
|
36958
37192
|
} else {
|
|
36959
|
-
|
|
37193
|
+
t37 = $[92];
|
|
36960
37194
|
}
|
|
36961
|
-
let
|
|
36962
|
-
if ($[
|
|
36963
|
-
|
|
36964
|
-
$[
|
|
36965
|
-
$[
|
|
37195
|
+
let t38;
|
|
37196
|
+
if ($[93] !== endAdornment) {
|
|
37197
|
+
t38 = endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("h-full flex items-center absolute right-0 pr-12"), onClick: _temp2, children: endAdornment });
|
|
37198
|
+
$[93] = endAdornment;
|
|
37199
|
+
$[94] = t38;
|
|
36966
37200
|
} else {
|
|
36967
|
-
|
|
37201
|
+
t38 = $[94];
|
|
36968
37202
|
}
|
|
36969
|
-
let
|
|
36970
|
-
if ($[
|
|
36971
|
-
|
|
36972
|
-
|
|
36973
|
-
|
|
37203
|
+
let t39;
|
|
37204
|
+
if ($[95] !== t19 || $[96] !== t37 || $[97] !== t38) {
|
|
37205
|
+
t39 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t19, children: [
|
|
37206
|
+
t37,
|
|
37207
|
+
t38
|
|
36974
37208
|
] });
|
|
36975
|
-
$[
|
|
36976
|
-
$[94] = t35;
|
|
36977
|
-
$[95] = t36;
|
|
37209
|
+
$[95] = t19;
|
|
36978
37210
|
$[96] = t37;
|
|
36979
|
-
} else {
|
|
36980
|
-
t37 = $[96];
|
|
36981
|
-
}
|
|
36982
|
-
let t38;
|
|
36983
|
-
if ($[97] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
36984
|
-
t38 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-900 p-2 rounded-lg", defaultBorderMixin);
|
|
36985
37211
|
$[97] = t38;
|
|
37212
|
+
$[98] = t39;
|
|
36986
37213
|
} else {
|
|
36987
|
-
|
|
36988
|
-
}
|
|
36989
|
-
let t39;
|
|
36990
|
-
if ($[98] !== viewportClassName) {
|
|
36991
|
-
t39 = cls("p-1", viewportClassName);
|
|
36992
|
-
$[98] = viewportClassName;
|
|
36993
|
-
$[99] = t39;
|
|
36994
|
-
} else {
|
|
36995
|
-
t39 = $[99];
|
|
37214
|
+
t39 = $[98];
|
|
36996
37215
|
}
|
|
36997
37216
|
let t40;
|
|
36998
|
-
if ($[
|
|
36999
|
-
t40 =
|
|
37000
|
-
|
|
37001
|
-
};
|
|
37002
|
-
$[100] = t40;
|
|
37217
|
+
if ($[99] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37218
|
+
t40 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-800 p-2 rounded-lg shadow-lg", defaultBorderMixin);
|
|
37219
|
+
$[99] = t40;
|
|
37003
37220
|
} else {
|
|
37004
|
-
t40 = $[
|
|
37221
|
+
t40 = $[99];
|
|
37005
37222
|
}
|
|
37006
37223
|
let t41;
|
|
37007
|
-
if ($[
|
|
37008
|
-
t41 =
|
|
37009
|
-
$[
|
|
37010
|
-
$[
|
|
37011
|
-
$[103] = t41;
|
|
37224
|
+
if ($[100] !== viewportClassName) {
|
|
37225
|
+
t41 = cls("p-1", viewportClassName);
|
|
37226
|
+
$[100] = viewportClassName;
|
|
37227
|
+
$[101] = t41;
|
|
37012
37228
|
} else {
|
|
37013
|
-
t41 = $[
|
|
37229
|
+
t41 = $[101];
|
|
37014
37230
|
}
|
|
37015
37231
|
let t42;
|
|
37016
|
-
if ($[
|
|
37017
|
-
t42 =
|
|
37018
|
-
|
|
37019
|
-
|
|
37020
|
-
$[
|
|
37232
|
+
if ($[102] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37233
|
+
t42 = {
|
|
37234
|
+
maxHeight: "var(--radix-select-content-available-height)"
|
|
37235
|
+
};
|
|
37236
|
+
$[102] = t42;
|
|
37021
37237
|
} else {
|
|
37022
|
-
t42 = $[
|
|
37238
|
+
t42 = $[102];
|
|
37023
37239
|
}
|
|
37024
37240
|
let t43;
|
|
37025
|
-
if ($[
|
|
37026
|
-
t43 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.
|
|
37027
|
-
$[
|
|
37028
|
-
$[
|
|
37029
|
-
$[
|
|
37241
|
+
if ($[103] !== children || $[104] !== t41) {
|
|
37242
|
+
t43 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: t41, style: t42, children });
|
|
37243
|
+
$[103] = children;
|
|
37244
|
+
$[104] = t41;
|
|
37245
|
+
$[105] = t43;
|
|
37030
37246
|
} else {
|
|
37031
|
-
t43 = $[
|
|
37247
|
+
t43 = $[105];
|
|
37032
37248
|
}
|
|
37033
37249
|
let t44;
|
|
37034
|
-
if ($[
|
|
37035
|
-
t44 = /* @__PURE__ */ jsxRuntime.
|
|
37250
|
+
if ($[106] !== position || $[107] !== t43) {
|
|
37251
|
+
t44 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Content, { position, className: t40, children: t43 });
|
|
37252
|
+
$[106] = position;
|
|
37253
|
+
$[107] = t43;
|
|
37254
|
+
$[108] = t44;
|
|
37255
|
+
} else {
|
|
37256
|
+
t44 = $[108];
|
|
37257
|
+
}
|
|
37258
|
+
let t45;
|
|
37259
|
+
if ($[109] !== finalContainer || $[110] !== t44) {
|
|
37260
|
+
t45 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: finalContainer, children: t44 });
|
|
37261
|
+
$[109] = finalContainer;
|
|
37262
|
+
$[110] = t44;
|
|
37263
|
+
$[111] = t45;
|
|
37264
|
+
} else {
|
|
37265
|
+
t45 = $[111];
|
|
37266
|
+
}
|
|
37267
|
+
let t46;
|
|
37268
|
+
if ($[112] !== disabled || $[113] !== name || $[114] !== onValueChangeInternal || $[115] !== openInternal || $[116] !== props || $[117] !== stringValue || $[118] !== t10 || $[119] !== t11 || $[120] !== t39 || $[121] !== t45) {
|
|
37269
|
+
t46 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Root, { name, value: stringValue, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: t10, ...props, children: [
|
|
37036
37270
|
t11,
|
|
37037
|
-
|
|
37038
|
-
|
|
37271
|
+
t39,
|
|
37272
|
+
t45
|
|
37039
37273
|
] });
|
|
37040
|
-
$[
|
|
37041
|
-
$[
|
|
37042
|
-
$[
|
|
37043
|
-
$[
|
|
37044
|
-
$[
|
|
37045
|
-
$[
|
|
37046
|
-
$[
|
|
37047
|
-
$[
|
|
37048
|
-
$[
|
|
37049
|
-
$[
|
|
37050
|
-
$[
|
|
37051
|
-
} else {
|
|
37052
|
-
|
|
37053
|
-
}
|
|
37054
|
-
return
|
|
37274
|
+
$[112] = disabled;
|
|
37275
|
+
$[113] = name;
|
|
37276
|
+
$[114] = onValueChangeInternal;
|
|
37277
|
+
$[115] = openInternal;
|
|
37278
|
+
$[116] = props;
|
|
37279
|
+
$[117] = stringValue;
|
|
37280
|
+
$[118] = t10;
|
|
37281
|
+
$[119] = t11;
|
|
37282
|
+
$[120] = t39;
|
|
37283
|
+
$[121] = t45;
|
|
37284
|
+
$[122] = t46;
|
|
37285
|
+
} else {
|
|
37286
|
+
t46 = $[122];
|
|
37287
|
+
}
|
|
37288
|
+
return t46;
|
|
37055
37289
|
});
|
|
37056
37290
|
Select.displayName = "Select";
|
|
37057
37291
|
const SelectItem = React.memo(function SelectItem2(t0) {
|
|
@@ -37066,7 +37300,7 @@
|
|
|
37066
37300
|
const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
|
|
37067
37301
|
let t2;
|
|
37068
37302
|
if ($[0] !== className || $[1] !== t1) {
|
|
37069
|
-
t2 = cls("w-full", "relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300", "focus:z-10", "data-[state=checked]:bg-surface-accent-100 data-[state=checked]:dark:bg-surface-accent-800 focus:bg-surface-accent-100 dark:focus:bg-surface-
|
|
37303
|
+
t2 = cls("w-full", "relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300", "focus:z-10", "data-[state=checked]:bg-surface-accent-100 data-[state=checked]:dark:bg-surface-accent-800 focus:bg-surface-accent-100 dark:focus:bg-surface-900", "data-[state=checked]:focus:bg-surface-accent-200 data-[state=checked]:dark:focus:bg-surface-900", t1, "[&>*]:w-full", "overflow-visible", className);
|
|
37070
37304
|
$[0] = className;
|
|
37071
37305
|
$[1] = t1;
|
|
37072
37306
|
$[2] = t2;
|
|
@@ -37142,7 +37376,7 @@
|
|
|
37142
37376
|
}
|
|
37143
37377
|
return t3;
|
|
37144
37378
|
});
|
|
37145
|
-
function _temp$
|
|
37379
|
+
function _temp$2(e) {
|
|
37146
37380
|
e.preventDefault();
|
|
37147
37381
|
e.stopPropagation();
|
|
37148
37382
|
}
|
|
@@ -37479,7 +37713,7 @@
|
|
|
37479
37713
|
}
|
|
37480
37714
|
T0 = DialogPrimitive__namespace.Content;
|
|
37481
37715
|
t6 = props;
|
|
37482
|
-
t7 = _temp;
|
|
37716
|
+
t7 = _temp$1;
|
|
37483
37717
|
t8 = cls("outline-none", borderClass[side], defaultBorderMixin, "transform-gpu", "will-change-transform", "text-surface-accent-900 dark:text-white", "fixed transform z-20 transition-all ease-in-out", !displayed ? "duration-150" : "duration-100", "outline-none focus:outline-none", transparent ? "" : "shadow-md bg-white dark:bg-surface-950", side === "top" || side === "bottom" ? "w-full" : "h-full", side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0", displayed && open ? "opacity-100" : "opacity-50", !displayed || !open ? transformValue[side] : "", className);
|
|
37484
37718
|
$[18] = className;
|
|
37485
37719
|
$[19] = displayed;
|
|
@@ -37563,7 +37797,7 @@
|
|
|
37563
37797
|
}
|
|
37564
37798
|
return t17;
|
|
37565
37799
|
};
|
|
37566
|
-
function _temp(event) {
|
|
37800
|
+
function _temp$1(event) {
|
|
37567
37801
|
return event.preventDefault();
|
|
37568
37802
|
}
|
|
37569
37803
|
function getStyleValue(value) {
|
|
@@ -37811,69 +38045,279 @@
|
|
|
37811
38045
|
ref.current = value;
|
|
37812
38046
|
}
|
|
37813
38047
|
}
|
|
37814
|
-
const TextField = React.forwardRef(({
|
|
37815
|
-
|
|
37816
|
-
|
|
37817
|
-
|
|
37818
|
-
|
|
37819
|
-
|
|
37820
|
-
|
|
37821
|
-
|
|
37822
|
-
|
|
37823
|
-
|
|
37824
|
-
|
|
37825
|
-
|
|
37826
|
-
|
|
37827
|
-
|
|
37828
|
-
|
|
37829
|
-
|
|
37830
|
-
style
|
|
37831
|
-
|
|
37832
|
-
|
|
37833
|
-
|
|
37834
|
-
|
|
37835
|
-
|
|
37836
|
-
|
|
38048
|
+
const TextField = React.forwardRef((t0, ref) => {
|
|
38049
|
+
const $ = reactCompilerRuntime.c(77);
|
|
38050
|
+
let autoFocus;
|
|
38051
|
+
let className;
|
|
38052
|
+
let disabled;
|
|
38053
|
+
let endAdornment;
|
|
38054
|
+
let error;
|
|
38055
|
+
let inputClassName;
|
|
38056
|
+
let inputProps;
|
|
38057
|
+
let inputRefProp;
|
|
38058
|
+
let inputStyle;
|
|
38059
|
+
let invisible;
|
|
38060
|
+
let label;
|
|
38061
|
+
let minRows;
|
|
38062
|
+
let onChange;
|
|
38063
|
+
let placeholder;
|
|
38064
|
+
let style;
|
|
38065
|
+
let t1;
|
|
38066
|
+
let t2;
|
|
38067
|
+
let t3;
|
|
38068
|
+
let value;
|
|
38069
|
+
if ($[0] !== t0) {
|
|
38070
|
+
const {
|
|
38071
|
+
value: t42,
|
|
38072
|
+
onChange: t52,
|
|
38073
|
+
label: t62,
|
|
38074
|
+
type: t72,
|
|
38075
|
+
multiline: t82,
|
|
38076
|
+
invisible: t92,
|
|
38077
|
+
maxRows,
|
|
38078
|
+
minRows: t102,
|
|
38079
|
+
disabled: t112,
|
|
38080
|
+
error: t122,
|
|
38081
|
+
endAdornment: t132,
|
|
38082
|
+
autoFocus: t142,
|
|
38083
|
+
placeholder: t152,
|
|
38084
|
+
size: t162,
|
|
38085
|
+
className: t172,
|
|
38086
|
+
style: t182,
|
|
38087
|
+
inputClassName: t192,
|
|
38088
|
+
inputStyle: t20,
|
|
38089
|
+
inputRef: t21,
|
|
38090
|
+
...t22
|
|
38091
|
+
} = t0;
|
|
38092
|
+
value = t42;
|
|
38093
|
+
onChange = t52;
|
|
38094
|
+
label = t62;
|
|
38095
|
+
t1 = t72;
|
|
38096
|
+
t2 = t82;
|
|
38097
|
+
invisible = t92;
|
|
38098
|
+
minRows = t102;
|
|
38099
|
+
disabled = t112;
|
|
38100
|
+
error = t122;
|
|
38101
|
+
endAdornment = t132;
|
|
38102
|
+
autoFocus = t142;
|
|
38103
|
+
placeholder = t152;
|
|
38104
|
+
t3 = t162;
|
|
38105
|
+
className = t172;
|
|
38106
|
+
style = t182;
|
|
38107
|
+
inputClassName = t192;
|
|
38108
|
+
inputStyle = t20;
|
|
38109
|
+
inputRefProp = t21;
|
|
38110
|
+
inputProps = t22;
|
|
38111
|
+
$[0] = t0;
|
|
38112
|
+
$[1] = autoFocus;
|
|
38113
|
+
$[2] = className;
|
|
38114
|
+
$[3] = disabled;
|
|
38115
|
+
$[4] = endAdornment;
|
|
38116
|
+
$[5] = error;
|
|
38117
|
+
$[6] = inputClassName;
|
|
38118
|
+
$[7] = inputProps;
|
|
38119
|
+
$[8] = inputRefProp;
|
|
38120
|
+
$[9] = inputStyle;
|
|
38121
|
+
$[10] = invisible;
|
|
38122
|
+
$[11] = label;
|
|
38123
|
+
$[12] = minRows;
|
|
38124
|
+
$[13] = onChange;
|
|
38125
|
+
$[14] = placeholder;
|
|
38126
|
+
$[15] = style;
|
|
38127
|
+
$[16] = t1;
|
|
38128
|
+
$[17] = t2;
|
|
38129
|
+
$[18] = t3;
|
|
38130
|
+
$[19] = value;
|
|
38131
|
+
} else {
|
|
38132
|
+
autoFocus = $[1];
|
|
38133
|
+
className = $[2];
|
|
38134
|
+
disabled = $[3];
|
|
38135
|
+
endAdornment = $[4];
|
|
38136
|
+
error = $[5];
|
|
38137
|
+
inputClassName = $[6];
|
|
38138
|
+
inputProps = $[7];
|
|
38139
|
+
inputRefProp = $[8];
|
|
38140
|
+
inputStyle = $[9];
|
|
38141
|
+
invisible = $[10];
|
|
38142
|
+
label = $[11];
|
|
38143
|
+
minRows = $[12];
|
|
38144
|
+
onChange = $[13];
|
|
38145
|
+
placeholder = $[14];
|
|
38146
|
+
style = $[15];
|
|
38147
|
+
t1 = $[16];
|
|
38148
|
+
t2 = $[17];
|
|
38149
|
+
t3 = $[18];
|
|
38150
|
+
value = $[19];
|
|
38151
|
+
}
|
|
38152
|
+
const type = t1 === void 0 ? "text" : t1;
|
|
38153
|
+
const multiline = t2 === void 0 ? false : t2;
|
|
38154
|
+
const size = t3 === void 0 ? "large" : t3;
|
|
38155
|
+
const fallbackRef = React.useRef(null);
|
|
38156
|
+
const inputRef = inputRefProp ?? fallbackRef;
|
|
38157
|
+
const autoId = React.useId();
|
|
38158
|
+
const inputId = inputProps.id ?? autoId;
|
|
38159
|
+
const labelId = `${inputId}-label`;
|
|
37837
38160
|
const [focused, setFocused] = React.useState(false);
|
|
37838
38161
|
const hasValue = value !== void 0 && value !== null && value !== "";
|
|
37839
|
-
|
|
37840
|
-
|
|
37841
|
-
|
|
37842
|
-
|
|
37843
|
-
|
|
37844
|
-
|
|
37845
|
-
|
|
37846
|
-
const handleWheel = (event) => {
|
|
37847
|
-
if (event.target instanceof HTMLElement) event.target.blur();
|
|
38162
|
+
let t4;
|
|
38163
|
+
if ($[20] !== inputRef) {
|
|
38164
|
+
t4 = () => {
|
|
38165
|
+
const element = inputRef && "current" in inputRef ? inputRef.current : null;
|
|
38166
|
+
if (element && document.activeElement === element) {
|
|
38167
|
+
setFocused(true);
|
|
38168
|
+
}
|
|
37848
38169
|
};
|
|
37849
|
-
|
|
37850
|
-
|
|
37851
|
-
|
|
37852
|
-
|
|
38170
|
+
$[20] = inputRef;
|
|
38171
|
+
$[21] = t4;
|
|
38172
|
+
} else {
|
|
38173
|
+
t4 = $[21];
|
|
38174
|
+
}
|
|
38175
|
+
let t5;
|
|
38176
|
+
if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
38177
|
+
t5 = [];
|
|
38178
|
+
$[22] = t5;
|
|
38179
|
+
} else {
|
|
38180
|
+
t5 = $[22];
|
|
38181
|
+
}
|
|
38182
|
+
React.useEffect(t4, t5);
|
|
38183
|
+
let t6;
|
|
38184
|
+
let t7;
|
|
38185
|
+
if ($[23] !== inputRef || $[24] !== type) {
|
|
38186
|
+
t6 = () => {
|
|
38187
|
+
if (type !== "number") {
|
|
38188
|
+
return;
|
|
38189
|
+
}
|
|
38190
|
+
const handleWheel = _temp;
|
|
38191
|
+
const element_0 = "current" in inputRef ? inputRef.current : inputRef;
|
|
38192
|
+
element_0?.addEventListener("wheel", handleWheel);
|
|
38193
|
+
return () => {
|
|
38194
|
+
element_0?.removeEventListener("wheel", handleWheel);
|
|
38195
|
+
};
|
|
37853
38196
|
};
|
|
37854
|
-
|
|
37855
|
-
|
|
37856
|
-
|
|
37857
|
-
|
|
37858
|
-
|
|
37859
|
-
|
|
37860
|
-
|
|
37861
|
-
|
|
37862
|
-
|
|
37863
|
-
|
|
37864
|
-
|
|
37865
|
-
|
|
37866
|
-
|
|
37867
|
-
|
|
37868
|
-
|
|
37869
|
-
|
|
38197
|
+
t7 = [inputRef, type];
|
|
38198
|
+
$[23] = inputRef;
|
|
38199
|
+
$[24] = type;
|
|
38200
|
+
$[25] = t6;
|
|
38201
|
+
$[26] = t7;
|
|
38202
|
+
} else {
|
|
38203
|
+
t6 = $[25];
|
|
38204
|
+
t7 = $[26];
|
|
38205
|
+
}
|
|
38206
|
+
React.useEffect(t6, t7);
|
|
38207
|
+
let t8;
|
|
38208
|
+
if ($[27] !== autoFocus || $[28] !== disabled || $[29] !== endAdornment || $[30] !== error || $[31] !== focused || $[32] !== hasValue || $[33] !== inputClassName || $[34] !== inputId || $[35] !== inputProps || $[36] !== inputRef || $[37] !== inputStyle || $[38] !== invisible || $[39] !== label || $[40] !== labelId || $[41] !== minRows || $[42] !== multiline || $[43] !== onChange || $[44] !== placeholder || $[45] !== size || $[46] !== type || $[47] !== value) {
|
|
38209
|
+
t8 = multiline ? /* @__PURE__ */ jsxRuntime.jsx("textarea", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows: typeof minRows === "string" ? parseInt(minRows) : minRows ?? 3, value: value ?? "", onChange, onFocus: () => setFocused(true), onBlur: () => setFocused(false), style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-lg resize-none w-full outline-none text-base bg-transparent min-h-[64px] px-3", label ? "pt-8 pb-2" : "py-2", disabled && "outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500", inputClassName) }) : /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-lg", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, {
|
|
38210
|
+
"min-h-[28px]": size === "smallest",
|
|
38211
|
+
"min-h-[32px]": size === "small",
|
|
38212
|
+
"min-h-[44px]": size === "medium",
|
|
38213
|
+
"min-h-[64px]": size === "large"
|
|
38214
|
+
}, label ? size === "large" ? "pt-8 pb-2" : "pt-4 pb-2" : size === "smallest" ? "py-0.5" : size === "small" ? "py-1" : "py-2", endAdornment ? "pr-12" : "pr-3", disabled && "outline-none opacity-65 dark:opacity-60 text-surface-accent-800 dark:text-white", inputClassName), placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, onFocus: () => setFocused(true), onBlur: () => setFocused(false), type, value: type === "number" && Number.isNaN(value) ? "" : value ?? "", onChange });
|
|
38215
|
+
$[27] = autoFocus;
|
|
38216
|
+
$[28] = disabled;
|
|
38217
|
+
$[29] = endAdornment;
|
|
38218
|
+
$[30] = error;
|
|
38219
|
+
$[31] = focused;
|
|
38220
|
+
$[32] = hasValue;
|
|
38221
|
+
$[33] = inputClassName;
|
|
38222
|
+
$[34] = inputId;
|
|
38223
|
+
$[35] = inputProps;
|
|
38224
|
+
$[36] = inputRef;
|
|
38225
|
+
$[37] = inputStyle;
|
|
38226
|
+
$[38] = invisible;
|
|
38227
|
+
$[39] = label;
|
|
38228
|
+
$[40] = labelId;
|
|
38229
|
+
$[41] = minRows;
|
|
38230
|
+
$[42] = multiline;
|
|
38231
|
+
$[43] = onChange;
|
|
38232
|
+
$[44] = placeholder;
|
|
38233
|
+
$[45] = size;
|
|
38234
|
+
$[46] = type;
|
|
38235
|
+
$[47] = value;
|
|
38236
|
+
$[48] = t8;
|
|
38237
|
+
} else {
|
|
38238
|
+
t8 = $[48];
|
|
38239
|
+
}
|
|
38240
|
+
const input = t8;
|
|
38241
|
+
const t9 = invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin;
|
|
38242
|
+
const t10 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
|
|
38243
|
+
const t11 = error ? "border border-red-500 dark:border-red-600" : "";
|
|
38244
|
+
const t12 = size === "smallest";
|
|
38245
|
+
const t13 = size === "small";
|
|
38246
|
+
const t14 = size === "medium";
|
|
38247
|
+
const t15 = size === "large";
|
|
38248
|
+
let t16;
|
|
38249
|
+
if ($[49] !== className || $[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t9) {
|
|
38250
|
+
t16 = cls("rounded-lg relative max-w-full", t9, t10, t11, {
|
|
38251
|
+
"min-h-[28px]": t12,
|
|
38252
|
+
"min-h-[32px]": t13,
|
|
38253
|
+
"min-h-[44px]": t14,
|
|
38254
|
+
"min-h-[64px]": t15
|
|
38255
|
+
}, className);
|
|
38256
|
+
$[49] = className;
|
|
38257
|
+
$[50] = t10;
|
|
38258
|
+
$[51] = t11;
|
|
38259
|
+
$[52] = t12;
|
|
38260
|
+
$[53] = t13;
|
|
38261
|
+
$[54] = t14;
|
|
38262
|
+
$[55] = t15;
|
|
38263
|
+
$[56] = t9;
|
|
38264
|
+
$[57] = t16;
|
|
38265
|
+
} else {
|
|
38266
|
+
t16 = $[57];
|
|
38267
|
+
}
|
|
38268
|
+
let t17;
|
|
38269
|
+
if ($[58] !== disabled || $[59] !== error || $[60] !== focused || $[61] !== hasValue || $[62] !== inputId || $[63] !== label || $[64] !== labelId || $[65] !== size) {
|
|
38270
|
+
t17 = label && /* @__PURE__ */ jsxRuntime.jsx(InputLabel, { id: labelId, htmlFor: inputId, className: cls("pointer-events-none absolute", size === "large" ? "top-1" : "top-[-1px]", !error ? focused ? "text-primary dark:text-primary" : "text-text-secondary dark:text-text-secondary-dark" : "text-red-500 dark:text-red-600", disabled ? "opacity-50" : ""), shrink: hasValue || focused, children: label });
|
|
38271
|
+
$[58] = disabled;
|
|
38272
|
+
$[59] = error;
|
|
38273
|
+
$[60] = focused;
|
|
38274
|
+
$[61] = hasValue;
|
|
38275
|
+
$[62] = inputId;
|
|
38276
|
+
$[63] = label;
|
|
38277
|
+
$[64] = labelId;
|
|
38278
|
+
$[65] = size;
|
|
38279
|
+
$[66] = t17;
|
|
38280
|
+
} else {
|
|
38281
|
+
t17 = $[66];
|
|
38282
|
+
}
|
|
38283
|
+
let t18;
|
|
38284
|
+
if ($[67] !== endAdornment || $[68] !== size) {
|
|
38285
|
+
t18 = endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
|
|
37870
38286
|
"mr-4": size === "large",
|
|
37871
38287
|
"mr-3": size === "medium",
|
|
37872
38288
|
"mr-2": size === "small" || size === "smallest"
|
|
37873
|
-
}), children: endAdornment })
|
|
37874
|
-
|
|
38289
|
+
}), children: endAdornment });
|
|
38290
|
+
$[67] = endAdornment;
|
|
38291
|
+
$[68] = size;
|
|
38292
|
+
$[69] = t18;
|
|
38293
|
+
} else {
|
|
38294
|
+
t18 = $[69];
|
|
38295
|
+
}
|
|
38296
|
+
let t19;
|
|
38297
|
+
if ($[70] !== input || $[71] !== ref || $[72] !== style || $[73] !== t16 || $[74] !== t17 || $[75] !== t18) {
|
|
38298
|
+
t19 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: t16, style, children: [
|
|
38299
|
+
t17,
|
|
38300
|
+
input,
|
|
38301
|
+
t18
|
|
38302
|
+
] });
|
|
38303
|
+
$[70] = input;
|
|
38304
|
+
$[71] = ref;
|
|
38305
|
+
$[72] = style;
|
|
38306
|
+
$[73] = t16;
|
|
38307
|
+
$[74] = t17;
|
|
38308
|
+
$[75] = t18;
|
|
38309
|
+
$[76] = t19;
|
|
38310
|
+
} else {
|
|
38311
|
+
t19 = $[76];
|
|
38312
|
+
}
|
|
38313
|
+
return t19;
|
|
37875
38314
|
});
|
|
37876
38315
|
TextField.displayName = "TextField";
|
|
38316
|
+
function _temp(event) {
|
|
38317
|
+
if (event.target instanceof HTMLElement) {
|
|
38318
|
+
event.target.blur();
|
|
38319
|
+
}
|
|
38320
|
+
}
|
|
37877
38321
|
const TabsModeContext = React.createContext("primary");
|
|
37878
38322
|
function Tabs(t0) {
|
|
37879
38323
|
const $ = reactCompilerRuntime.c(35);
|
|
@@ -38318,7 +38762,7 @@
|
|
|
38318
38762
|
return void 0;
|
|
38319
38763
|
}
|
|
38320
38764
|
function Popover(t0) {
|
|
38321
|
-
const $ = reactCompilerRuntime.c(
|
|
38765
|
+
const $ = reactCompilerRuntime.c(29);
|
|
38322
38766
|
const {
|
|
38323
38767
|
trigger,
|
|
38324
38768
|
children,
|
|
@@ -38335,7 +38779,9 @@
|
|
|
38335
38779
|
enabled: t2,
|
|
38336
38780
|
modal: t3,
|
|
38337
38781
|
portalContainer,
|
|
38338
|
-
className
|
|
38782
|
+
className,
|
|
38783
|
+
onMouseEnter,
|
|
38784
|
+
onMouseLeave
|
|
38339
38785
|
} = t0;
|
|
38340
38786
|
const sideOffset = t1 === void 0 ? 5 : t1;
|
|
38341
38787
|
const enabled = t2 === void 0 ? true : t2;
|
|
@@ -38372,14 +38818,14 @@
|
|
|
38372
38818
|
}
|
|
38373
38819
|
let t6;
|
|
38374
38820
|
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
38375
|
-
t6 = /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Arrow, { className: "fill-white dark:fill-surface-
|
|
38821
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Arrow, { className: "fill-white dark:fill-surface-800" });
|
|
38376
38822
|
$[6] = t6;
|
|
38377
38823
|
} else {
|
|
38378
38824
|
t6 = $[6];
|
|
38379
38825
|
}
|
|
38380
38826
|
let t7;
|
|
38381
|
-
if ($[7] !== align || $[8] !== alignOffset || $[9] !== arrowPadding || $[10] !== avoidCollisions || $[11] !== children || $[12] !== hideWhenDetached || $[13] !==
|
|
38382
|
-
t7 = /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive__namespace.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, children: [
|
|
38827
|
+
if ($[7] !== align || $[8] !== alignOffset || $[9] !== arrowPadding || $[10] !== avoidCollisions || $[11] !== children || $[12] !== hideWhenDetached || $[13] !== onMouseEnter || $[14] !== onMouseLeave || $[15] !== side || $[16] !== sideOffset || $[17] !== sticky || $[18] !== t5) {
|
|
38828
|
+
t7 = /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive__namespace.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, onMouseEnter, onMouseLeave, children: [
|
|
38383
38829
|
children,
|
|
38384
38830
|
t6
|
|
38385
38831
|
] });
|
|
@@ -38389,37 +38835,39 @@
|
|
|
38389
38835
|
$[10] = avoidCollisions;
|
|
38390
38836
|
$[11] = children;
|
|
38391
38837
|
$[12] = hideWhenDetached;
|
|
38392
|
-
$[13] =
|
|
38393
|
-
$[14] =
|
|
38394
|
-
$[15] =
|
|
38395
|
-
$[16] =
|
|
38396
|
-
$[17] =
|
|
38838
|
+
$[13] = onMouseEnter;
|
|
38839
|
+
$[14] = onMouseLeave;
|
|
38840
|
+
$[15] = side;
|
|
38841
|
+
$[16] = sideOffset;
|
|
38842
|
+
$[17] = sticky;
|
|
38843
|
+
$[18] = t5;
|
|
38844
|
+
$[19] = t7;
|
|
38397
38845
|
} else {
|
|
38398
|
-
t7 = $[
|
|
38846
|
+
t7 = $[19];
|
|
38399
38847
|
}
|
|
38400
38848
|
let t8;
|
|
38401
|
-
if ($[
|
|
38849
|
+
if ($[20] !== finalContainer || $[21] !== t7) {
|
|
38402
38850
|
t8 = /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { container: finalContainer, children: t7 });
|
|
38403
|
-
$[
|
|
38404
|
-
$[
|
|
38405
|
-
$[
|
|
38851
|
+
$[20] = finalContainer;
|
|
38852
|
+
$[21] = t7;
|
|
38853
|
+
$[22] = t8;
|
|
38406
38854
|
} else {
|
|
38407
|
-
t8 = $[
|
|
38855
|
+
t8 = $[22];
|
|
38408
38856
|
}
|
|
38409
38857
|
let t9;
|
|
38410
|
-
if ($[
|
|
38858
|
+
if ($[23] !== modal || $[24] !== onOpenChange || $[25] !== open || $[26] !== t4 || $[27] !== t8) {
|
|
38411
38859
|
t9 = /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive__namespace.Root, { open, onOpenChange, modal, children: [
|
|
38412
38860
|
t4,
|
|
38413
38861
|
t8
|
|
38414
38862
|
] });
|
|
38415
|
-
$[
|
|
38416
|
-
$[
|
|
38417
|
-
$[
|
|
38418
|
-
$[
|
|
38419
|
-
$[
|
|
38420
|
-
$[
|
|
38863
|
+
$[23] = modal;
|
|
38864
|
+
$[24] = onOpenChange;
|
|
38865
|
+
$[25] = open;
|
|
38866
|
+
$[26] = t4;
|
|
38867
|
+
$[27] = t8;
|
|
38868
|
+
$[28] = t9;
|
|
38421
38869
|
} else {
|
|
38422
|
-
t9 = $[
|
|
38870
|
+
t9 = $[28];
|
|
38423
38871
|
}
|
|
38424
38872
|
return t9;
|
|
38425
38873
|
}
|
|
@@ -38607,15 +39055,26 @@
|
|
|
38607
39055
|
}
|
|
38608
39056
|
return t5;
|
|
38609
39057
|
}
|
|
39058
|
+
const styles = `
|
|
39059
|
+
@keyframes shimmer {
|
|
39060
|
+
0% {
|
|
39061
|
+
transform: translateX(-150%);
|
|
39062
|
+
}
|
|
39063
|
+
100% {
|
|
39064
|
+
transform: translateX(150%);
|
|
39065
|
+
}
|
|
39066
|
+
}
|
|
39067
|
+
`;
|
|
38610
39068
|
function Skeleton(t0) {
|
|
38611
|
-
const $ = reactCompilerRuntime.c(
|
|
39069
|
+
const $ = reactCompilerRuntime.c(9);
|
|
38612
39070
|
const {
|
|
38613
39071
|
width,
|
|
38614
39072
|
height,
|
|
38615
39073
|
className
|
|
38616
39074
|
} = t0;
|
|
38617
|
-
|
|
38618
|
-
const
|
|
39075
|
+
useInjectStyles("Skeleton", styles);
|
|
39076
|
+
const t1 = width ? `${width}px` : "100%";
|
|
39077
|
+
const t2 = height ? `${height}px` : "12px";
|
|
38619
39078
|
let t3;
|
|
38620
39079
|
if ($[0] !== t1 || $[1] !== t2) {
|
|
38621
39080
|
t3 = {
|
|
@@ -38628,28 +39087,33 @@
|
|
|
38628
39087
|
} else {
|
|
38629
39088
|
t3 = $[2];
|
|
38630
39089
|
}
|
|
38631
|
-
|
|
38632
|
-
|
|
38633
|
-
|
|
38634
|
-
if ($[3] !== className || $[4] !== t4 || $[5] !== t5) {
|
|
38635
|
-
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);
|
|
39090
|
+
let t4;
|
|
39091
|
+
if ($[3] !== className) {
|
|
39092
|
+
t4 = cls("block relative overflow-hidden", "bg-surface-accent-50 dark:bg-surface-accent-800 rounded-md", "max-w-full max-h-full", className);
|
|
38636
39093
|
$[3] = className;
|
|
38637
39094
|
$[4] = t4;
|
|
39095
|
+
} else {
|
|
39096
|
+
t4 = $[4];
|
|
39097
|
+
}
|
|
39098
|
+
let t5;
|
|
39099
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
39100
|
+
t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/50 dark:via-white/8 to-transparent", style: {
|
|
39101
|
+
animation: "shimmer 1.8s ease-in-out infinite"
|
|
39102
|
+
} });
|
|
38638
39103
|
$[5] = t5;
|
|
38639
|
-
$[6] = t6;
|
|
38640
39104
|
} else {
|
|
38641
|
-
|
|
39105
|
+
t5 = $[5];
|
|
38642
39106
|
}
|
|
38643
|
-
let
|
|
38644
|
-
if ($[
|
|
38645
|
-
|
|
38646
|
-
$[
|
|
39107
|
+
let t6;
|
|
39108
|
+
if ($[6] !== t3 || $[7] !== t4) {
|
|
39109
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsx("span", { style: t3, className: t4, children: t5 });
|
|
39110
|
+
$[6] = t3;
|
|
39111
|
+
$[7] = t4;
|
|
38647
39112
|
$[8] = t6;
|
|
38648
|
-
$[9] = t7;
|
|
38649
39113
|
} else {
|
|
38650
|
-
|
|
39114
|
+
t6 = $[8];
|
|
38651
39115
|
}
|
|
38652
|
-
return
|
|
39116
|
+
return t6;
|
|
38653
39117
|
}
|
|
38654
39118
|
function ToggleButtonGroup(t0) {
|
|
38655
39119
|
const $ = reactCompilerRuntime.c(12);
|
|
@@ -38661,7 +39125,7 @@
|
|
|
38661
39125
|
} = t0;
|
|
38662
39126
|
let t1;
|
|
38663
39127
|
if ($[0] !== className) {
|
|
38664
|
-
t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-
|
|
39128
|
+
t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-900 rounded-lg p-1 gap-1", className);
|
|
38665
39129
|
$[0] = className;
|
|
38666
39130
|
$[1] = t1;
|
|
38667
39131
|
} else {
|
|
@@ -38671,12 +39135,12 @@
|
|
|
38671
39135
|
if ($[2] !== onValueChange || $[3] !== options || $[4] !== value) {
|
|
38672
39136
|
let t32;
|
|
38673
39137
|
if ($[6] !== onValueChange || $[7] !== value) {
|
|
38674
|
-
t32 = (option) => /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: (e) => {
|
|
39138
|
+
t32 = (option) => /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", "aria-pressed": value === option.value, "aria-disabled": option.disabled || void 0, onClick: (e) => {
|
|
38675
39139
|
e.stopPropagation();
|
|
38676
39140
|
if (!option.disabled) {
|
|
38677
39141
|
onValueChange(option.value);
|
|
38678
39142
|
}
|
|
38679
|
-
}, disabled: option.disabled, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-
|
|
39143
|
+
}, disabled: option.disabled, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-900 text-primary dark:text-primary-300 shadow-sm" : "text-surface-500 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700", option.disabled && "opacity-50 cursor-not-allowed"), children: [
|
|
38680
39144
|
option.icon,
|
|
38681
39145
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: option.label })
|
|
38682
39146
|
] }, option.value);
|
|
@@ -38696,7 +39160,7 @@
|
|
|
38696
39160
|
}
|
|
38697
39161
|
let t3;
|
|
38698
39162
|
if ($[9] !== t1 || $[10] !== t2) {
|
|
38699
|
-
t3 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t1, children: t2 });
|
|
39163
|
+
t3 = /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", "aria-label": "Toggle options", className: t1, children: t2 });
|
|
38700
39164
|
$[9] = t1;
|
|
38701
39165
|
$[10] = t2;
|
|
38702
39166
|
$[11] = t3;
|
|
@@ -39439,6 +39903,7 @@
|
|
|
39439
39903
|
exports2.FilterAltOffIcon = FilterAltOffIcon;
|
|
39440
39904
|
exports2.FilterBAndWIcon = FilterBAndWIcon;
|
|
39441
39905
|
exports2.FilterCenterFocusIcon = FilterCenterFocusIcon;
|
|
39906
|
+
exports2.FilterChip = FilterChip;
|
|
39442
39907
|
exports2.FilterDramaIcon = FilterDramaIcon;
|
|
39443
39908
|
exports2.FilterFramesIcon = FilterFramesIcon;
|
|
39444
39909
|
exports2.FilterHdrIcon = FilterHdrIcon;
|
|
@@ -41008,6 +41473,7 @@
|
|
|
41008
41473
|
exports2.keyToIconComponent = keyToIconComponent;
|
|
41009
41474
|
exports2.paperMixin = paperMixin;
|
|
41010
41475
|
exports2.useAutoComplete = useAutoComplete;
|
|
41476
|
+
exports2.useDebounceCallback = useDebounceCallback;
|
|
41011
41477
|
exports2.useDebounceValue = useDebounceValue;
|
|
41012
41478
|
exports2.useIconStyles = useIconStyles;
|
|
41013
41479
|
exports2.useInjectStyles = useInjectStyles;
|