@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.es.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import React__default, { createContext, useContext, useEffect, useState, useRef, Children, forwardRef, useLayoutEffect, useDeferredValue } from "react";
|
|
5
|
+
import React__default, { createContext, useContext, useEffect, useState, useRef, Children, forwardRef, useLayoutEffect, useId, useDeferredValue } from "react";
|
|
6
6
|
import * as Collapsible from "@radix-ui/react-collapsible";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { twMerge } from "tailwind-merge";
|
|
@@ -27,14 +27,14 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
|
27
27
|
const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
|
|
28
28
|
const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-800 focus:dark:bg-opacity-60 focus:bg-surface-accent-100/70 dark:focus:bg-surface-800/60";
|
|
29
29
|
const focusedClasses = "z-30 outline-hidden outline-none ring-2 ring-primary ring-opacity-75 ring-primary/75 ring-offset-2 ring-offset-transparent ";
|
|
30
|
-
const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-800 dark:bg-opacity-
|
|
30
|
+
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";
|
|
31
31
|
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";
|
|
32
32
|
const fieldBackgroundDisabledMixin = "dark:bg-surface-800 bg-opacity-50 dark:bg-opacity-90 bg-surface-accent-200/50 dark:bg-surface-800/90";
|
|
33
33
|
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";
|
|
34
34
|
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 ";
|
|
35
35
|
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";
|
|
36
36
|
const cardMixin = "bg-white dark:bg-surface-950 rounded-md border border-surface-200/40 dark:border-surface-700/40 m-1 -p-1";
|
|
37
|
-
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 ";
|
|
37
|
+
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 ";
|
|
38
38
|
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";
|
|
39
39
|
function cls(...classes) {
|
|
40
40
|
return twMerge(clsx(classes));
|
|
@@ -381,6 +381,60 @@ function useDebounceValue(value, t0) {
|
|
|
381
381
|
useEffect(t1, t2);
|
|
382
382
|
return debouncedValue;
|
|
383
383
|
}
|
|
384
|
+
function useDebounceCallback(callback, delay) {
|
|
385
|
+
const $ = c(7);
|
|
386
|
+
const timeoutRef = useRef(null);
|
|
387
|
+
const callbackRef = useRef(callback);
|
|
388
|
+
let t0;
|
|
389
|
+
let t1;
|
|
390
|
+
if ($[0] !== callback) {
|
|
391
|
+
t0 = () => {
|
|
392
|
+
callbackRef.current = callback;
|
|
393
|
+
};
|
|
394
|
+
t1 = [callback];
|
|
395
|
+
$[0] = callback;
|
|
396
|
+
$[1] = t0;
|
|
397
|
+
$[2] = t1;
|
|
398
|
+
} else {
|
|
399
|
+
t0 = $[1];
|
|
400
|
+
t1 = $[2];
|
|
401
|
+
}
|
|
402
|
+
useEffect(t0, t1);
|
|
403
|
+
let t2;
|
|
404
|
+
let t3;
|
|
405
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
406
|
+
t2 = () => () => {
|
|
407
|
+
if (timeoutRef.current !== null) {
|
|
408
|
+
clearTimeout(timeoutRef.current);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
t3 = [];
|
|
412
|
+
$[3] = t2;
|
|
413
|
+
$[4] = t3;
|
|
414
|
+
} else {
|
|
415
|
+
t2 = $[3];
|
|
416
|
+
t3 = $[4];
|
|
417
|
+
}
|
|
418
|
+
useEffect(t2, t3);
|
|
419
|
+
let t4;
|
|
420
|
+
if ($[5] !== delay) {
|
|
421
|
+
t4 = (...t5) => {
|
|
422
|
+
const args = t5;
|
|
423
|
+
if (timeoutRef.current !== null) {
|
|
424
|
+
clearTimeout(timeoutRef.current);
|
|
425
|
+
}
|
|
426
|
+
timeoutRef.current = setTimeout(() => {
|
|
427
|
+
callbackRef.current?.(...args);
|
|
428
|
+
}, delay ?? 200);
|
|
429
|
+
};
|
|
430
|
+
$[5] = delay;
|
|
431
|
+
$[6] = t4;
|
|
432
|
+
} else {
|
|
433
|
+
t4 = $[6];
|
|
434
|
+
}
|
|
435
|
+
const debouncedCallback = t4;
|
|
436
|
+
return debouncedCallback;
|
|
437
|
+
}
|
|
384
438
|
function useIconStyles(t0) {
|
|
385
439
|
const {
|
|
386
440
|
fill: t1,
|
|
@@ -466,6 +520,7 @@ const Collapse = React__default.memo((t0) => {
|
|
|
466
520
|
}
|
|
467
521
|
return t6;
|
|
468
522
|
});
|
|
523
|
+
Collapse.displayName = "Collapse";
|
|
469
524
|
const useAutoComplete = ({
|
|
470
525
|
ref
|
|
471
526
|
}) => {
|
|
@@ -587,16 +642,16 @@ const getSizeClasses = (size) => {
|
|
|
587
642
|
const getColorClasses = (severity) => {
|
|
588
643
|
switch (severity) {
|
|
589
644
|
case "error":
|
|
590
|
-
return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900";
|
|
645
|
+
return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900 border-l-[3px] border-l-red-500";
|
|
591
646
|
case "warning":
|
|
592
|
-
return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900";
|
|
647
|
+
return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900 border-l-[3px] border-l-amber-500";
|
|
593
648
|
case "info":
|
|
594
|
-
return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900";
|
|
649
|
+
return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900 border-l-[3px] border-l-blue-500";
|
|
595
650
|
case "success":
|
|
596
|
-
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900";
|
|
651
|
+
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900 border-l-[3px] border-l-emerald-500";
|
|
597
652
|
case "base":
|
|
598
653
|
default:
|
|
599
|
-
return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900";
|
|
654
|
+
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";
|
|
600
655
|
}
|
|
601
656
|
};
|
|
602
657
|
const Alert = (t0) => {
|
|
@@ -618,7 +673,7 @@ const Alert = (t0) => {
|
|
|
618
673
|
if ($[0] !== color || $[1] !== outerClassName || $[2] !== size || $[3] !== style) {
|
|
619
674
|
const classes = getColorClasses(color);
|
|
620
675
|
t3 = style;
|
|
621
|
-
t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-
|
|
676
|
+
t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-lg flex items-center gap-2", classes, outerClassName);
|
|
622
677
|
$[0] = color;
|
|
623
678
|
$[1] = outerClassName;
|
|
624
679
|
$[2] = size;
|
|
@@ -631,7 +686,7 @@ const Alert = (t0) => {
|
|
|
631
686
|
}
|
|
632
687
|
let t5;
|
|
633
688
|
if ($[6] !== className) {
|
|
634
|
-
t5 = cls("
|
|
689
|
+
t5 = cls("grow", className);
|
|
635
690
|
$[6] = className;
|
|
636
691
|
$[7] = t5;
|
|
637
692
|
} else {
|
|
@@ -724,7 +779,7 @@ const AvatarInner = (t0, ref) => {
|
|
|
724
779
|
t2 = $[9];
|
|
725
780
|
}
|
|
726
781
|
const handleImageError = t2;
|
|
727
|
-
const t3 = hover && "hover:bg-surface-accent-200 hover:
|
|
782
|
+
const t3 = hover && "hover:bg-surface-accent-200 dark:hover:bg-surface-accent-700";
|
|
728
783
|
let t4;
|
|
729
784
|
if ($[10] !== outerClassName || $[11] !== t3) {
|
|
730
785
|
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);
|
|
@@ -770,7 +825,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
|
|
|
770
825
|
size = "medium",
|
|
771
826
|
...props
|
|
772
827
|
}, ref) {
|
|
773
|
-
return /* @__PURE__ */ jsxs("button", { type: "button", ref, tabIndex: disabled ? -1 : void 0, onClick: disabled ? (e) => e.preventDefault() : (e_0) => {
|
|
828
|
+
return /* @__PURE__ */ 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) => {
|
|
774
829
|
e_0.preventDefault();
|
|
775
830
|
if (allowIndeterminate) {
|
|
776
831
|
if (value === null || value === void 0) onValueChange?.(true);
|
|
@@ -780,7 +835,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
|
|
|
780
835
|
onValueChange?.(!value);
|
|
781
836
|
}
|
|
782
837
|
}, 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: [
|
|
783
|
-
allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ 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", {
|
|
838
|
+
allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ 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", {
|
|
784
839
|
"w-[21px] h-[10px]": size === "medium" || size === "large",
|
|
785
840
|
"w-[19px] h-[8px]": size === "small",
|
|
786
841
|
"w-[16px] h-[6px]": size === "smallest",
|
|
@@ -788,7 +843,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
|
|
|
788
843
|
"translate-x-[9px]": size === "small",
|
|
789
844
|
"translate-x-[8px]": size === "smallest"
|
|
790
845
|
}) }, "knob"),
|
|
791
|
-
!(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-300 dark:bg-surface-
|
|
846
|
+
!(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ 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", {
|
|
792
847
|
"w-[21px] h-[21px]": size === "medium" || size === "large",
|
|
793
848
|
"w-[19px] h-[19px]": size === "small",
|
|
794
849
|
"w-[16px] h-[16px]": size === "smallest",
|
|
@@ -842,7 +897,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
|
|
|
842
897
|
] });
|
|
843
898
|
};
|
|
844
899
|
const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
845
|
-
const $ = c(
|
|
900
|
+
const $ = c(56);
|
|
846
901
|
let Component;
|
|
847
902
|
let children;
|
|
848
903
|
let className;
|
|
@@ -930,32 +985,33 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
930
985
|
let t28;
|
|
931
986
|
let t29;
|
|
932
987
|
let t30;
|
|
933
|
-
if ($[11] !== Component || $[12] !== children || $[13] !== className || $[14] !==
|
|
988
|
+
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) {
|
|
934
989
|
t30 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
935
990
|
bb0: {
|
|
936
991
|
const buttonClasses2 = cls({
|
|
937
992
|
"w-full": fullWidth,
|
|
938
993
|
"w-fit": t7,
|
|
939
|
-
"border border-primary bg-primary focus:ring-primary
|
|
940
|
-
"border border-secondary bg-secondary focus:ring-secondary
|
|
941
|
-
"border border-red-500 bg-red-500 hover:bg-red-
|
|
942
|
-
"border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400
|
|
943
|
-
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-
|
|
994
|
+
"border border-primary bg-primary focus:ring-primary text-white hover:text-white hover:brightness-105": t8,
|
|
995
|
+
"border border-secondary bg-secondary focus:ring-secondary text-white hover:text-white hover:brightness-105": t9,
|
|
996
|
+
"border border-red-500 bg-red-500 hover:bg-red-600 focus:ring-red-500 text-white hover:text-white": t10,
|
|
997
|
+
"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,
|
|
998
|
+
"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,
|
|
944
999
|
"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,
|
|
945
1000
|
"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,
|
|
946
1001
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10 hover:bg-red-500/10": t15,
|
|
947
|
-
"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-
|
|
948
|
-
"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-
|
|
1002
|
+
"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,
|
|
1003
|
+
"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,
|
|
949
1004
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg hover:bg-primary/10": t18,
|
|
950
1005
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
|
|
951
1006
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
|
|
952
|
-
"border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t21,
|
|
953
|
-
"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-
|
|
1007
|
+
"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,
|
|
1008
|
+
"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,
|
|
954
1009
|
"text-text-disabled dark:text-text-disabled-dark": disabled,
|
|
955
1010
|
"border border-transparent opacity-50": t23,
|
|
956
1011
|
"border border-surface-500 opacity-50": t24,
|
|
957
|
-
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-
|
|
1012
|
+
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40 bg-surface-300/40 dark:bg-surface-500/40": t25
|
|
958
1013
|
});
|
|
1014
|
+
const iconColorClass = (color === "neutral" || color === "text") && !disabled ? "[&>svg]:text-surface-accent-500 dark:[&>svg]:text-surface-accent-300" : "";
|
|
959
1015
|
const sizeClasses2 = cls({
|
|
960
1016
|
"py-1 px-2": size === "small",
|
|
961
1017
|
"py-2 px-4": size === "medium",
|
|
@@ -964,7 +1020,7 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
964
1020
|
"py-4 px-10": size === "2xl"
|
|
965
1021
|
});
|
|
966
1022
|
if (Component) {
|
|
967
|
-
t30 = /* @__PURE__ */ jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-
|
|
1023
|
+
t30 = /* @__PURE__ */ 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: [
|
|
968
1024
|
startIcon,
|
|
969
1025
|
children
|
|
970
1026
|
] });
|
|
@@ -973,81 +1029,83 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
973
1029
|
t26 = ref;
|
|
974
1030
|
t27 = props.type ?? "button";
|
|
975
1031
|
t28 = props.onClick;
|
|
976
|
-
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-
|
|
1032
|
+
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);
|
|
977
1033
|
}
|
|
978
1034
|
$[11] = Component;
|
|
979
1035
|
$[12] = children;
|
|
980
1036
|
$[13] = className;
|
|
981
|
-
$[14] =
|
|
982
|
-
$[15] =
|
|
983
|
-
$[16] =
|
|
984
|
-
$[17] =
|
|
985
|
-
$[18] =
|
|
986
|
-
$[19] =
|
|
987
|
-
$[20] =
|
|
988
|
-
$[21] =
|
|
989
|
-
$[22] =
|
|
990
|
-
$[23] =
|
|
991
|
-
$[24] =
|
|
992
|
-
$[25] =
|
|
993
|
-
$[26] =
|
|
994
|
-
$[27] =
|
|
995
|
-
$[28] =
|
|
996
|
-
$[29] =
|
|
997
|
-
$[30] =
|
|
998
|
-
$[31] =
|
|
999
|
-
$[32] =
|
|
1000
|
-
$[33] =
|
|
1001
|
-
$[34] =
|
|
1002
|
-
$[35] =
|
|
1003
|
-
$[36] =
|
|
1004
|
-
$[37] =
|
|
1005
|
-
$[38] =
|
|
1006
|
-
$[39] =
|
|
1007
|
-
$[40] =
|
|
1008
|
-
$[41] =
|
|
1009
|
-
$[42] =
|
|
1010
|
-
$[43] =
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1037
|
+
$[14] = color;
|
|
1038
|
+
$[15] = disabled;
|
|
1039
|
+
$[16] = fullWidth;
|
|
1040
|
+
$[17] = props;
|
|
1041
|
+
$[18] = ref;
|
|
1042
|
+
$[19] = size;
|
|
1043
|
+
$[20] = startIcon;
|
|
1044
|
+
$[21] = t10;
|
|
1045
|
+
$[22] = t11;
|
|
1046
|
+
$[23] = t12;
|
|
1047
|
+
$[24] = t13;
|
|
1048
|
+
$[25] = t14;
|
|
1049
|
+
$[26] = t15;
|
|
1050
|
+
$[27] = t16;
|
|
1051
|
+
$[28] = t17;
|
|
1052
|
+
$[29] = t18;
|
|
1053
|
+
$[30] = t19;
|
|
1054
|
+
$[31] = t20;
|
|
1055
|
+
$[32] = t21;
|
|
1056
|
+
$[33] = t22;
|
|
1057
|
+
$[34] = t23;
|
|
1058
|
+
$[35] = t24;
|
|
1059
|
+
$[36] = t25;
|
|
1060
|
+
$[37] = t7;
|
|
1061
|
+
$[38] = t8;
|
|
1062
|
+
$[39] = t9;
|
|
1063
|
+
$[40] = t26;
|
|
1064
|
+
$[41] = t27;
|
|
1065
|
+
$[42] = t28;
|
|
1066
|
+
$[43] = t29;
|
|
1067
|
+
$[44] = t30;
|
|
1068
|
+
} else {
|
|
1069
|
+
t26 = $[40];
|
|
1070
|
+
t27 = $[41];
|
|
1071
|
+
t28 = $[42];
|
|
1072
|
+
t29 = $[43];
|
|
1073
|
+
t30 = $[44];
|
|
1017
1074
|
}
|
|
1018
1075
|
if (t30 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
1019
1076
|
return t30;
|
|
1020
1077
|
}
|
|
1021
1078
|
const t31 = props;
|
|
1022
1079
|
let t32;
|
|
1023
|
-
if ($[
|
|
1080
|
+
if ($[45] !== children || $[46] !== disabled || $[47] !== size || $[48] !== startIcon || $[49] !== t26 || $[50] !== t27 || $[51] !== t28 || $[52] !== t29 || $[53] !== t31 || $[54] !== variant) {
|
|
1024
1081
|
t32 = /* @__PURE__ */ jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, "data-variant": variant, "data-size": size, ...t31, children: [
|
|
1025
1082
|
startIcon,
|
|
1026
1083
|
children
|
|
1027
1084
|
] });
|
|
1028
|
-
$[
|
|
1029
|
-
$[
|
|
1030
|
-
$[
|
|
1031
|
-
$[
|
|
1032
|
-
$[
|
|
1033
|
-
$[
|
|
1034
|
-
$[
|
|
1035
|
-
$[
|
|
1036
|
-
$[
|
|
1037
|
-
$[
|
|
1038
|
-
$[
|
|
1039
|
-
} else {
|
|
1040
|
-
t32 = $[
|
|
1085
|
+
$[45] = children;
|
|
1086
|
+
$[46] = disabled;
|
|
1087
|
+
$[47] = size;
|
|
1088
|
+
$[48] = startIcon;
|
|
1089
|
+
$[49] = t26;
|
|
1090
|
+
$[50] = t27;
|
|
1091
|
+
$[51] = t28;
|
|
1092
|
+
$[52] = t29;
|
|
1093
|
+
$[53] = t31;
|
|
1094
|
+
$[54] = variant;
|
|
1095
|
+
$[55] = t32;
|
|
1096
|
+
} else {
|
|
1097
|
+
t32 = $[55];
|
|
1041
1098
|
}
|
|
1042
1099
|
return t32;
|
|
1043
1100
|
}));
|
|
1044
1101
|
ButtonInner.displayName = "Button";
|
|
1045
1102
|
const Button = ButtonInner;
|
|
1046
1103
|
const Card = React__default.forwardRef((t0, ref) => {
|
|
1047
|
-
const $ = c(
|
|
1104
|
+
const $ = c(23);
|
|
1048
1105
|
let children;
|
|
1049
1106
|
let className;
|
|
1050
1107
|
let onClick;
|
|
1108
|
+
let onKeyDownProp;
|
|
1051
1109
|
let props;
|
|
1052
1110
|
let style;
|
|
1053
1111
|
if ($[0] !== t0) {
|
|
@@ -1056,64 +1114,77 @@ const Card = React__default.forwardRef((t0, ref) => {
|
|
|
1056
1114
|
className,
|
|
1057
1115
|
onClick,
|
|
1058
1116
|
style,
|
|
1117
|
+
onKeyDown: onKeyDownProp,
|
|
1059
1118
|
...props
|
|
1060
1119
|
} = t0);
|
|
1061
1120
|
$[0] = t0;
|
|
1062
1121
|
$[1] = children;
|
|
1063
1122
|
$[2] = className;
|
|
1064
1123
|
$[3] = onClick;
|
|
1065
|
-
$[4] =
|
|
1066
|
-
$[5] =
|
|
1124
|
+
$[4] = onKeyDownProp;
|
|
1125
|
+
$[5] = props;
|
|
1126
|
+
$[6] = style;
|
|
1067
1127
|
} else {
|
|
1068
1128
|
children = $[1];
|
|
1069
1129
|
className = $[2];
|
|
1070
1130
|
onClick = $[3];
|
|
1071
|
-
|
|
1072
|
-
|
|
1131
|
+
onKeyDownProp = $[4];
|
|
1132
|
+
props = $[5];
|
|
1133
|
+
style = $[6];
|
|
1073
1134
|
}
|
|
1074
1135
|
let t1;
|
|
1075
|
-
if ($[
|
|
1136
|
+
if ($[7] !== onClick || $[8] !== onKeyDownProp) {
|
|
1076
1137
|
t1 = (e) => {
|
|
1138
|
+
onKeyDownProp?.(e);
|
|
1139
|
+
if (!onClick || e.defaultPrevented) {
|
|
1140
|
+
return;
|
|
1141
|
+
}
|
|
1142
|
+
if (e.target !== e.currentTarget) {
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1077
1145
|
if (e.key === "Enter" || e.key === " ") {
|
|
1078
|
-
|
|
1146
|
+
e.preventDefault();
|
|
1147
|
+
onClick();
|
|
1079
1148
|
}
|
|
1080
1149
|
};
|
|
1081
|
-
$[
|
|
1082
|
-
$[
|
|
1150
|
+
$[7] = onClick;
|
|
1151
|
+
$[8] = onKeyDownProp;
|
|
1152
|
+
$[9] = t1;
|
|
1083
1153
|
} else {
|
|
1084
|
-
t1 = $[
|
|
1154
|
+
t1 = $[9];
|
|
1085
1155
|
}
|
|
1086
|
-
const
|
|
1156
|
+
const onKeyDown = t1;
|
|
1087
1157
|
const t2 = onClick ? "button" : void 0;
|
|
1088
1158
|
const t3 = onClick ? 0 : void 0;
|
|
1089
1159
|
const t4 = onClick && cardClickableMixin;
|
|
1090
1160
|
let t5;
|
|
1091
|
-
if ($[
|
|
1161
|
+
if ($[10] !== className || $[11] !== t4) {
|
|
1092
1162
|
t5 = cls(cardMixin, t4, className);
|
|
1093
|
-
$[
|
|
1094
|
-
$[
|
|
1095
|
-
$[
|
|
1163
|
+
$[10] = className;
|
|
1164
|
+
$[11] = t4;
|
|
1165
|
+
$[12] = t5;
|
|
1096
1166
|
} else {
|
|
1097
|
-
t5 = $[
|
|
1167
|
+
t5 = $[12];
|
|
1098
1168
|
}
|
|
1099
1169
|
let t6;
|
|
1100
|
-
if ($[
|
|
1101
|
-
t6 = /* @__PURE__ */ jsx("div", { ref,
|
|
1102
|
-
$[
|
|
1103
|
-
$[
|
|
1104
|
-
$[
|
|
1105
|
-
$[
|
|
1106
|
-
$[
|
|
1107
|
-
$[
|
|
1108
|
-
$[
|
|
1109
|
-
$[
|
|
1110
|
-
$[
|
|
1111
|
-
$[
|
|
1170
|
+
if ($[13] !== children || $[14] !== onClick || $[15] !== onKeyDown || $[16] !== props || $[17] !== ref || $[18] !== style || $[19] !== t2 || $[20] !== t3 || $[21] !== t5) {
|
|
1171
|
+
t6 = /* @__PURE__ */ jsx("div", { ref, onKeyDown, role: t2, tabIndex: t3, onClick, className: t5, style, ...props, children });
|
|
1172
|
+
$[13] = children;
|
|
1173
|
+
$[14] = onClick;
|
|
1174
|
+
$[15] = onKeyDown;
|
|
1175
|
+
$[16] = props;
|
|
1176
|
+
$[17] = ref;
|
|
1177
|
+
$[18] = style;
|
|
1178
|
+
$[19] = t2;
|
|
1179
|
+
$[20] = t3;
|
|
1180
|
+
$[21] = t5;
|
|
1181
|
+
$[22] = t6;
|
|
1112
1182
|
} else {
|
|
1113
|
-
t6 = $[
|
|
1183
|
+
t6 = $[22];
|
|
1114
1184
|
}
|
|
1115
1185
|
return t6;
|
|
1116
1186
|
});
|
|
1187
|
+
Card.displayName = "Card";
|
|
1117
1188
|
const containerMaxWidths = {
|
|
1118
1189
|
xs: "max-w-xs",
|
|
1119
1190
|
sm: "max-w-sm",
|
|
@@ -1195,7 +1266,7 @@ const CenteredView = React__default.forwardRef((t0, ref) => {
|
|
|
1195
1266
|
const t1 = fullScreen ? "h-screen" : "h-full";
|
|
1196
1267
|
let t2;
|
|
1197
1268
|
if ($[7] !== outerClassName || $[8] !== t1) {
|
|
1198
|
-
t2 = cls("flex flex-col
|
|
1269
|
+
t2 = cls("flex flex-col grow", t1, outerClassName);
|
|
1199
1270
|
$[7] = outerClassName;
|
|
1200
1271
|
$[8] = t1;
|
|
1201
1272
|
$[9] = t2;
|
|
@@ -32236,7 +32307,7 @@ const ZoomOutMapIcon = React__default.forwardRef((props, ref) => {
|
|
|
32236
32307
|
return t0;
|
|
32237
32308
|
});
|
|
32238
32309
|
ZoomOutMapIcon.displayName = "ZoomOutMapIcon";
|
|
32239
|
-
const sizeClasses$
|
|
32310
|
+
const sizeClasses$2 = {
|
|
32240
32311
|
large: "w-6 h-6 rounded flex items-center justify-center",
|
|
32241
32312
|
medium: "w-5 h-5 rounded flex items-center justify-center",
|
|
32242
32313
|
small: "w-4 h-4 rounded flex items-center justify-center",
|
|
@@ -32246,20 +32317,20 @@ const outerSizeClasses = {
|
|
|
32246
32317
|
medium: "w-10 h-10",
|
|
32247
32318
|
small: "w-8 h-8",
|
|
32248
32319
|
large: "w-12 h-12 ",
|
|
32249
|
-
smallest: "w-
|
|
32320
|
+
smallest: "w-8 h-8"
|
|
32250
32321
|
};
|
|
32251
32322
|
const paddingClasses = {
|
|
32252
32323
|
medium: "p-2",
|
|
32253
32324
|
small: "p-2",
|
|
32254
32325
|
large: "p-2",
|
|
32255
|
-
smallest: ""
|
|
32326
|
+
smallest: "p-2"
|
|
32256
32327
|
};
|
|
32257
32328
|
const colorClasses$2 = {
|
|
32258
32329
|
primary: "bg-primary",
|
|
32259
32330
|
secondary: "bg-secondary"
|
|
32260
32331
|
};
|
|
32261
32332
|
const Checkbox = React__default.memo((t0) => {
|
|
32262
|
-
const $ = c(
|
|
32333
|
+
const $ = c(27);
|
|
32263
32334
|
const {
|
|
32264
32335
|
id,
|
|
32265
32336
|
checked,
|
|
@@ -32268,7 +32339,8 @@ const Checkbox = React__default.memo((t0) => {
|
|
|
32268
32339
|
disabled,
|
|
32269
32340
|
size: t3,
|
|
32270
32341
|
onCheckedChange,
|
|
32271
|
-
color: t4
|
|
32342
|
+
color: t4,
|
|
32343
|
+
"aria-label": ariaLabel
|
|
32272
32344
|
} = t0;
|
|
32273
32345
|
const indeterminate = t1 === void 0 ? false : t1;
|
|
32274
32346
|
const padding = t2 === void 0 ? true : t2;
|
|
@@ -32277,89 +32349,109 @@ const Checkbox = React__default.memo((t0) => {
|
|
|
32277
32349
|
const isChecked = indeterminate ? false : checked;
|
|
32278
32350
|
const iconSize = size === "medium" ? 20 : size === "small" ? 16 : size === "smallest" ? 14 : 24;
|
|
32279
32351
|
const t5 = indeterminate || isChecked;
|
|
32280
|
-
const t6 =
|
|
32281
|
-
const t7 =
|
|
32282
|
-
const t8 =
|
|
32283
|
-
const t9 =
|
|
32284
|
-
const t10 = onCheckedChange ? "
|
|
32285
|
-
|
|
32286
|
-
|
|
32287
|
-
|
|
32352
|
+
const t6 = indeterminate ? "mixed" : isChecked;
|
|
32353
|
+
const t7 = disabled ? void 0 : onCheckedChange;
|
|
32354
|
+
const t8 = padding ? paddingClasses[size] : "";
|
|
32355
|
+
const t9 = outerSizeClasses[size];
|
|
32356
|
+
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" : "";
|
|
32357
|
+
const t11 = onCheckedChange ? "cursor-pointer" : "cursor-default";
|
|
32358
|
+
let t12;
|
|
32359
|
+
if ($[0] !== t10 || $[1] !== t11 || $[2] !== t8 || $[3] !== t9) {
|
|
32360
|
+
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);
|
|
32288
32361
|
$[0] = t10;
|
|
32289
|
-
$[1] =
|
|
32362
|
+
$[1] = t11;
|
|
32290
32363
|
$[2] = t8;
|
|
32291
32364
|
$[3] = t9;
|
|
32292
|
-
$[4] =
|
|
32365
|
+
$[4] = t12;
|
|
32293
32366
|
} else {
|
|
32294
|
-
|
|
32367
|
+
t12 = $[4];
|
|
32295
32368
|
}
|
|
32296
|
-
const
|
|
32297
|
-
const
|
|
32298
|
-
const
|
|
32299
|
-
const
|
|
32300
|
-
let
|
|
32301
|
-
if ($[5] !==
|
|
32302
|
-
|
|
32303
|
-
$[5] =
|
|
32304
|
-
$[6] =
|
|
32305
|
-
$[7] =
|
|
32306
|
-
$[8] =
|
|
32307
|
-
$[9] =
|
|
32369
|
+
const t13 = sizeClasses$2[size];
|
|
32370
|
+
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";
|
|
32371
|
+
const t15 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
|
|
32372
|
+
const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-500";
|
|
32373
|
+
let t17;
|
|
32374
|
+
if ($[5] !== t13 || $[6] !== t14 || $[7] !== t15 || $[8] !== t16) {
|
|
32375
|
+
t17 = cls("border-2 relative transition-colors ease-in-out duration-150", t13, t14, t15, t16);
|
|
32376
|
+
$[5] = t13;
|
|
32377
|
+
$[6] = t14;
|
|
32378
|
+
$[7] = t15;
|
|
32379
|
+
$[8] = t16;
|
|
32380
|
+
$[9] = t17;
|
|
32308
32381
|
} else {
|
|
32309
|
-
|
|
32382
|
+
t17 = $[9];
|
|
32310
32383
|
}
|
|
32311
|
-
let
|
|
32384
|
+
let t18;
|
|
32312
32385
|
if ($[10] !== iconSize || $[11] !== indeterminate) {
|
|
32313
|
-
|
|
32386
|
+
t18 = /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsx(RemoveIcon, { size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsx(CheckIcon, { size: iconSize, className: "absolute" }) });
|
|
32314
32387
|
$[10] = iconSize;
|
|
32315
32388
|
$[11] = indeterminate;
|
|
32316
|
-
$[12] =
|
|
32389
|
+
$[12] = t18;
|
|
32317
32390
|
} else {
|
|
32318
|
-
|
|
32319
|
-
}
|
|
32320
|
-
let t18;
|
|
32321
|
-
if ($[13] !== t16 || $[14] !== t17) {
|
|
32322
|
-
t18 = /* @__PURE__ */ jsx("div", { className: t16, children: t17 });
|
|
32323
|
-
$[13] = t16;
|
|
32324
|
-
$[14] = t17;
|
|
32325
|
-
$[15] = t18;
|
|
32326
|
-
} else {
|
|
32327
|
-
t18 = $[15];
|
|
32391
|
+
t18 = $[12];
|
|
32328
32392
|
}
|
|
32329
32393
|
let t19;
|
|
32330
|
-
if ($[
|
|
32331
|
-
t19 = /* @__PURE__ */ jsx("div", { className:
|
|
32332
|
-
$[
|
|
32333
|
-
$[
|
|
32334
|
-
$[
|
|
32394
|
+
if ($[13] !== t17 || $[14] !== t18) {
|
|
32395
|
+
t19 = /* @__PURE__ */ jsx("div", { className: t17, children: t18 });
|
|
32396
|
+
$[13] = t17;
|
|
32397
|
+
$[14] = t18;
|
|
32398
|
+
$[15] = t19;
|
|
32335
32399
|
} else {
|
|
32336
|
-
t19 = $[
|
|
32400
|
+
t19 = $[15];
|
|
32337
32401
|
}
|
|
32338
32402
|
let t20;
|
|
32339
|
-
if ($[
|
|
32340
|
-
t20 = /* @__PURE__ */ jsx(
|
|
32341
|
-
$[
|
|
32342
|
-
$[
|
|
32343
|
-
$[
|
|
32344
|
-
|
|
32345
|
-
$[
|
|
32346
|
-
|
|
32403
|
+
if ($[16] !== t12 || $[17] !== t19) {
|
|
32404
|
+
t20 = /* @__PURE__ */ jsx("div", { className: t12, children: t19 });
|
|
32405
|
+
$[16] = t12;
|
|
32406
|
+
$[17] = t19;
|
|
32407
|
+
$[18] = t20;
|
|
32408
|
+
} else {
|
|
32409
|
+
t20 = $[18];
|
|
32410
|
+
}
|
|
32411
|
+
let t21;
|
|
32412
|
+
if ($[19] !== ariaLabel || $[20] !== disabled || $[21] !== id || $[22] !== t20 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
|
|
32413
|
+
t21 = /* @__PURE__ */ jsx(CheckboxPrimitive.Root, { id, checked: t5, disabled, "aria-label": ariaLabel, "aria-checked": t6, onCheckedChange: t7, children: t20 });
|
|
32414
|
+
$[19] = ariaLabel;
|
|
32415
|
+
$[20] = disabled;
|
|
32416
|
+
$[21] = id;
|
|
32417
|
+
$[22] = t20;
|
|
32418
|
+
$[23] = t5;
|
|
32419
|
+
$[24] = t6;
|
|
32420
|
+
$[25] = t7;
|
|
32421
|
+
$[26] = t21;
|
|
32347
32422
|
} else {
|
|
32348
|
-
|
|
32423
|
+
t21 = $[26];
|
|
32349
32424
|
}
|
|
32350
|
-
return
|
|
32425
|
+
return t21;
|
|
32351
32426
|
});
|
|
32427
|
+
Checkbox.displayName = "Checkbox";
|
|
32352
32428
|
const sizeClassNames = {
|
|
32429
|
+
smallest: "px-1.5 py-px text-[10px]",
|
|
32353
32430
|
small: "px-2 py-0.5 text-sm",
|
|
32354
32431
|
medium: "px-3 py-1 text-sm",
|
|
32355
32432
|
large: "px-4 py-1.5 text-sm"
|
|
32356
32433
|
};
|
|
32434
|
+
function isDarkMode() {
|
|
32435
|
+
return typeof document !== "undefined" && document.documentElement.classList.contains("dark");
|
|
32436
|
+
}
|
|
32437
|
+
function getRgba(hex, alpha) {
|
|
32438
|
+
if (!hex || !hex.startsWith("#")) return hex;
|
|
32439
|
+
let color = hex.slice(1);
|
|
32440
|
+
if (color.length === 3) {
|
|
32441
|
+
color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
|
|
32442
|
+
}
|
|
32443
|
+
const r = parseInt(color.slice(0, 2), 16);
|
|
32444
|
+
const g = parseInt(color.slice(2, 4), 16);
|
|
32445
|
+
const b = parseInt(color.slice(4, 6), 16);
|
|
32446
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
32447
|
+
}
|
|
32357
32448
|
const Chip = React__default.forwardRef(function Chip2(t0, ref) {
|
|
32358
|
-
const $ = c(
|
|
32449
|
+
const $ = c(25);
|
|
32359
32450
|
const {
|
|
32360
32451
|
children,
|
|
32361
32452
|
colorScheme,
|
|
32362
32453
|
error,
|
|
32454
|
+
outlined,
|
|
32363
32455
|
onClick,
|
|
32364
32456
|
icon,
|
|
32365
32457
|
size: t1,
|
|
@@ -32376,56 +32468,180 @@ const Chip = React__default.forwardRef(function Chip2(t0, ref) {
|
|
|
32376
32468
|
t2 = $[1];
|
|
32377
32469
|
}
|
|
32378
32470
|
const usedColorScheme = t2;
|
|
32379
|
-
const
|
|
32380
|
-
const
|
|
32381
|
-
|
|
32382
|
-
|
|
32471
|
+
const dark = isDarkMode();
|
|
32472
|
+
const hasScheme = Boolean(error || usedColorScheme);
|
|
32473
|
+
let textColor = "";
|
|
32474
|
+
let bgColor = "";
|
|
32475
|
+
let border = "";
|
|
32476
|
+
if (error) {
|
|
32477
|
+
textColor = dark ? "#f87171" : "#dc2626";
|
|
32478
|
+
} else {
|
|
32479
|
+
if (usedColorScheme) {
|
|
32480
|
+
textColor = dark && usedColorScheme.darkText ? usedColorScheme.darkText : usedColorScheme.text;
|
|
32481
|
+
}
|
|
32482
|
+
}
|
|
32483
|
+
if (hasScheme) {
|
|
32484
|
+
if (outlined) {
|
|
32485
|
+
let t32;
|
|
32486
|
+
if ($[2] !== textColor) {
|
|
32487
|
+
t32 = getRgba(textColor, dark ? 0.1 : 0.06);
|
|
32488
|
+
$[2] = textColor;
|
|
32489
|
+
$[3] = t32;
|
|
32490
|
+
} else {
|
|
32491
|
+
t32 = $[3];
|
|
32492
|
+
}
|
|
32493
|
+
bgColor = t32;
|
|
32494
|
+
border = `1px solid ${getRgba(textColor, dark ? 0.2 : 0.14)}`;
|
|
32495
|
+
} else {
|
|
32496
|
+
if (error) {
|
|
32497
|
+
bgColor = dark ? "rgba(220, 38, 38, 0.15)" : "rgba(239, 68, 68, 0.1)";
|
|
32498
|
+
border = `1px solid ${dark ? "rgba(220, 38, 38, 0.3)" : "rgba(239, 68, 68, 0.2)"}`;
|
|
32499
|
+
} else {
|
|
32500
|
+
if (usedColorScheme) {
|
|
32501
|
+
bgColor = dark && usedColorScheme.darkColor ? usedColorScheme.darkColor : usedColorScheme.color;
|
|
32502
|
+
}
|
|
32503
|
+
}
|
|
32504
|
+
}
|
|
32505
|
+
}
|
|
32506
|
+
const t3 = !hasScheme && "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white";
|
|
32507
|
+
const t4 = !hasScheme && outlined && "bg-transparent dark:bg-transparent border border-surface-accent-300 dark:border-surface-accent-700";
|
|
32508
|
+
const t5 = onClick ? "cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/5" : "";
|
|
32509
|
+
const t6 = sizeClassNames[size];
|
|
32383
32510
|
let t7;
|
|
32384
|
-
if ($[
|
|
32385
|
-
t7 = cls("rounded-lg max-w-full w-max h-fit font-
|
|
32386
|
-
$[
|
|
32387
|
-
$[
|
|
32388
|
-
$[
|
|
32389
|
-
$[
|
|
32390
|
-
$[
|
|
32391
|
-
$[
|
|
32511
|
+
if ($[4] !== className || $[5] !== t3 || $[6] !== t4 || $[7] !== t5 || $[8] !== t6) {
|
|
32512
|
+
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);
|
|
32513
|
+
$[4] = className;
|
|
32514
|
+
$[5] = t3;
|
|
32515
|
+
$[6] = t4;
|
|
32516
|
+
$[7] = t5;
|
|
32517
|
+
$[8] = t6;
|
|
32518
|
+
$[9] = t7;
|
|
32392
32519
|
} else {
|
|
32393
|
-
t7 = $[
|
|
32520
|
+
t7 = $[9];
|
|
32394
32521
|
}
|
|
32395
|
-
|
|
32396
|
-
|
|
32397
|
-
|
|
32398
|
-
|
|
32399
|
-
|
|
32400
|
-
|
|
32401
|
-
|
|
32522
|
+
let t8;
|
|
32523
|
+
if ($[10] !== bgColor || $[11] !== border || $[12] !== hasScheme || $[13] !== textColor) {
|
|
32524
|
+
t8 = hasScheme ? {
|
|
32525
|
+
backgroundColor: bgColor,
|
|
32526
|
+
color: textColor,
|
|
32527
|
+
border: border || void 0
|
|
32528
|
+
} : {};
|
|
32529
|
+
$[10] = bgColor;
|
|
32530
|
+
$[11] = border;
|
|
32531
|
+
$[12] = hasScheme;
|
|
32532
|
+
$[13] = textColor;
|
|
32533
|
+
$[14] = t8;
|
|
32534
|
+
} else {
|
|
32535
|
+
t8 = $[14];
|
|
32536
|
+
}
|
|
32537
|
+
let t9;
|
|
32538
|
+
if ($[15] !== style || $[16] !== t8) {
|
|
32539
|
+
t9 = {
|
|
32540
|
+
...t8,
|
|
32402
32541
|
overflow: "hidden",
|
|
32403
32542
|
...style
|
|
32404
32543
|
};
|
|
32405
|
-
$[
|
|
32406
|
-
$[
|
|
32407
|
-
$[
|
|
32408
|
-
$[11] = t10;
|
|
32544
|
+
$[15] = style;
|
|
32545
|
+
$[16] = t8;
|
|
32546
|
+
$[17] = t9;
|
|
32409
32547
|
} else {
|
|
32410
|
-
|
|
32548
|
+
t9 = $[17];
|
|
32411
32549
|
}
|
|
32412
|
-
let
|
|
32413
|
-
if ($[
|
|
32414
|
-
|
|
32550
|
+
let t10;
|
|
32551
|
+
if ($[18] !== children || $[19] !== icon || $[20] !== onClick || $[21] !== ref || $[22] !== t7 || $[23] !== t9) {
|
|
32552
|
+
t10 = /* @__PURE__ */ jsxs("div", { ref, className: t7, onClick, style: t9, children: [
|
|
32553
|
+
icon,
|
|
32554
|
+
children
|
|
32555
|
+
] });
|
|
32556
|
+
$[18] = children;
|
|
32557
|
+
$[19] = icon;
|
|
32558
|
+
$[20] = onClick;
|
|
32559
|
+
$[21] = ref;
|
|
32560
|
+
$[22] = t7;
|
|
32561
|
+
$[23] = t9;
|
|
32562
|
+
$[24] = t10;
|
|
32563
|
+
} else {
|
|
32564
|
+
t10 = $[24];
|
|
32565
|
+
}
|
|
32566
|
+
return t10;
|
|
32567
|
+
});
|
|
32568
|
+
const sizeClasses$1 = {
|
|
32569
|
+
small: "px-2 py-0.5 text-xs",
|
|
32570
|
+
medium: "px-2.5 py-1 text-xs"
|
|
32571
|
+
};
|
|
32572
|
+
const FilterChip = React__default.forwardRef(function FilterChip2(t0, ref) {
|
|
32573
|
+
const $ = c(22);
|
|
32574
|
+
let children;
|
|
32575
|
+
let className;
|
|
32576
|
+
let icon;
|
|
32577
|
+
let onClick;
|
|
32578
|
+
let rest;
|
|
32579
|
+
let t1;
|
|
32580
|
+
let t2;
|
|
32581
|
+
let t3;
|
|
32582
|
+
if ($[0] !== t0) {
|
|
32583
|
+
({
|
|
32415
32584
|
children,
|
|
32416
|
-
|
|
32585
|
+
active: t1,
|
|
32586
|
+
onClick,
|
|
32587
|
+
icon,
|
|
32588
|
+
size: t2,
|
|
32589
|
+
className,
|
|
32590
|
+
disabled: t3,
|
|
32591
|
+
...rest
|
|
32592
|
+
} = t0);
|
|
32593
|
+
$[0] = t0;
|
|
32594
|
+
$[1] = children;
|
|
32595
|
+
$[2] = className;
|
|
32596
|
+
$[3] = icon;
|
|
32597
|
+
$[4] = onClick;
|
|
32598
|
+
$[5] = rest;
|
|
32599
|
+
$[6] = t1;
|
|
32600
|
+
$[7] = t2;
|
|
32601
|
+
$[8] = t3;
|
|
32602
|
+
} else {
|
|
32603
|
+
children = $[1];
|
|
32604
|
+
className = $[2];
|
|
32605
|
+
icon = $[3];
|
|
32606
|
+
onClick = $[4];
|
|
32607
|
+
rest = $[5];
|
|
32608
|
+
t1 = $[6];
|
|
32609
|
+
t2 = $[7];
|
|
32610
|
+
t3 = $[8];
|
|
32611
|
+
}
|
|
32612
|
+
const active = t1 === void 0 ? false : t1;
|
|
32613
|
+
const size = t2 === void 0 ? "medium" : t2;
|
|
32614
|
+
const disabled = t3 === void 0 ? false : t3;
|
|
32615
|
+
const t4 = sizeClasses$1[size];
|
|
32616
|
+
let t5;
|
|
32617
|
+
if ($[9] !== active || $[10] !== className || $[11] !== disabled || $[12] !== t4) {
|
|
32618
|
+
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);
|
|
32619
|
+
$[9] = active;
|
|
32620
|
+
$[10] = className;
|
|
32621
|
+
$[11] = disabled;
|
|
32622
|
+
$[12] = t4;
|
|
32623
|
+
$[13] = t5;
|
|
32624
|
+
} else {
|
|
32625
|
+
t5 = $[13];
|
|
32626
|
+
}
|
|
32627
|
+
let t6;
|
|
32628
|
+
if ($[14] !== children || $[15] !== disabled || $[16] !== icon || $[17] !== onClick || $[18] !== ref || $[19] !== rest || $[20] !== t5) {
|
|
32629
|
+
t6 = /* @__PURE__ */ jsxs("button", { ref, type: "button", onClick, disabled, className: t5, ...rest, children: [
|
|
32630
|
+
icon,
|
|
32631
|
+
children
|
|
32417
32632
|
] });
|
|
32418
|
-
$[
|
|
32419
|
-
$[
|
|
32420
|
-
$[
|
|
32421
|
-
$[
|
|
32422
|
-
$[
|
|
32423
|
-
$[
|
|
32424
|
-
$[
|
|
32633
|
+
$[14] = children;
|
|
32634
|
+
$[15] = disabled;
|
|
32635
|
+
$[16] = icon;
|
|
32636
|
+
$[17] = onClick;
|
|
32637
|
+
$[18] = ref;
|
|
32638
|
+
$[19] = rest;
|
|
32639
|
+
$[20] = t5;
|
|
32640
|
+
$[21] = t6;
|
|
32425
32641
|
} else {
|
|
32426
|
-
|
|
32642
|
+
t6 = $[21];
|
|
32427
32643
|
}
|
|
32428
|
-
return
|
|
32644
|
+
return t6;
|
|
32429
32645
|
});
|
|
32430
32646
|
const Tooltip = React__default.forwardRef((t0, ref) => {
|
|
32431
32647
|
const $ = c(47);
|
|
@@ -32502,7 +32718,7 @@ const Tooltip = React__default.forwardRef((t0, ref) => {
|
|
|
32502
32718
|
const side = t1 === void 0 ? "bottom" : t1;
|
|
32503
32719
|
const delayDuration = t2 === void 0 ? 200 : t2;
|
|
32504
32720
|
const asChild = t3 === void 0 ? false : t3;
|
|
32505
|
-
useInjectStyles("Tooltip", styles);
|
|
32721
|
+
useInjectStyles("Tooltip", styles$1);
|
|
32506
32722
|
const contextContainer = usePortalContainer();
|
|
32507
32723
|
const finalContainer = container ?? contextContainer ?? void 0;
|
|
32508
32724
|
if (!title) {
|
|
@@ -32587,7 +32803,7 @@ const Tooltip = React__default.forwardRef((t0, ref) => {
|
|
|
32587
32803
|
}
|
|
32588
32804
|
return t10;
|
|
32589
32805
|
});
|
|
32590
|
-
const styles = `
|
|
32806
|
+
const styles$1 = `
|
|
32591
32807
|
|
|
32592
32808
|
.TooltipContent {
|
|
32593
32809
|
animation-duration: 220ms;
|
|
@@ -32733,13 +32949,13 @@ function ColorPicker(t0) {
|
|
|
32733
32949
|
}
|
|
32734
32950
|
return t7;
|
|
32735
32951
|
}
|
|
32736
|
-
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-
|
|
32952
|
+
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";
|
|
32737
32953
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
|
32738
|
-
const colorClasses$1 = "text-surface-accent-
|
|
32954
|
+
const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
|
32739
32955
|
const sizeClasses = {
|
|
32740
32956
|
medium: "w-10 !h-10 min-w-10 min-h-10",
|
|
32741
32957
|
small: "w-8 !h-8 min-w-8 min-h-8",
|
|
32742
|
-
smallest: "w-
|
|
32958
|
+
smallest: "w-7 !h-7 min-w-7 min-h-7",
|
|
32743
32959
|
large: "w-12 !h-12 min-w-12 min-h-12"
|
|
32744
32960
|
};
|
|
32745
32961
|
const shapeClasses = {
|
|
@@ -32747,7 +32963,7 @@ const shapeClasses = {
|
|
|
32747
32963
|
square: "rounded-md"
|
|
32748
32964
|
};
|
|
32749
32965
|
const IconButtonInner = (t0, ref) => {
|
|
32750
|
-
const $ = c(
|
|
32966
|
+
const $ = c(27);
|
|
32751
32967
|
let children;
|
|
32752
32968
|
let className;
|
|
32753
32969
|
let component;
|
|
@@ -32793,42 +33009,51 @@ const IconButtonInner = (t0, ref) => {
|
|
|
32793
33009
|
const size = t1 === void 0 ? "medium" : t1;
|
|
32794
33010
|
const variant = t2 === void 0 ? "ghost" : t2;
|
|
32795
33011
|
const shape = t3 === void 0 ? "circular" : t3;
|
|
32796
|
-
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 bg-surface-accent-200/50 dark:bg-surface-
|
|
33012
|
+
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";
|
|
32797
33013
|
const Component = component || "button";
|
|
32798
|
-
const
|
|
32799
|
-
const
|
|
32800
|
-
const
|
|
32801
|
-
const
|
|
32802
|
-
|
|
32803
|
-
|
|
32804
|
-
|
|
33014
|
+
const isNativeButton = Component === "button";
|
|
33015
|
+
const t4 = isNativeButton ? "button" : void 0;
|
|
33016
|
+
const t5 = isNativeButton ? void 0 : "button";
|
|
33017
|
+
const t6 = disabled || void 0;
|
|
33018
|
+
const t7 = disabled ? -1 : void 0;
|
|
33019
|
+
const t8 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
|
|
33020
|
+
const t9 = toggled ? "outline outline-2 outline-primary" : "";
|
|
33021
|
+
const t10 = shapeClasses[shape];
|
|
33022
|
+
const t11 = sizeClasses[size];
|
|
33023
|
+
let t12;
|
|
33024
|
+
if ($[10] !== bgClasses || $[11] !== className || $[12] !== t10 || $[13] !== t11 || $[14] !== t8 || $[15] !== t9) {
|
|
33025
|
+
t12 = cls(t8, t9, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t10, t11, className);
|
|
32805
33026
|
$[10] = bgClasses;
|
|
32806
33027
|
$[11] = className;
|
|
32807
|
-
$[12] =
|
|
32808
|
-
$[13] =
|
|
32809
|
-
$[14] =
|
|
32810
|
-
$[15] =
|
|
32811
|
-
$[16] =
|
|
33028
|
+
$[12] = t10;
|
|
33029
|
+
$[13] = t11;
|
|
33030
|
+
$[14] = t8;
|
|
33031
|
+
$[15] = t9;
|
|
33032
|
+
$[16] = t12;
|
|
32812
33033
|
} else {
|
|
32813
|
-
|
|
33034
|
+
t12 = $[16];
|
|
32814
33035
|
}
|
|
32815
|
-
let
|
|
32816
|
-
if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !==
|
|
32817
|
-
|
|
33036
|
+
let t13;
|
|
33037
|
+
if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !== t12 || $[22] !== t4 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
|
|
33038
|
+
t13 = /* @__PURE__ */ jsx(Component, { type: t4, role: t5, "aria-disabled": t6, tabIndex: t7, ref, ...props, className: t12, children });
|
|
32818
33039
|
$[17] = Component;
|
|
32819
33040
|
$[18] = children;
|
|
32820
33041
|
$[19] = props;
|
|
32821
33042
|
$[20] = ref;
|
|
32822
|
-
$[21] =
|
|
32823
|
-
$[22] =
|
|
33043
|
+
$[21] = t12;
|
|
33044
|
+
$[22] = t4;
|
|
33045
|
+
$[23] = t5;
|
|
33046
|
+
$[24] = t6;
|
|
33047
|
+
$[25] = t7;
|
|
33048
|
+
$[26] = t13;
|
|
32824
33049
|
} else {
|
|
32825
|
-
|
|
33050
|
+
t13 = $[26];
|
|
32826
33051
|
}
|
|
32827
|
-
return
|
|
33052
|
+
return t13;
|
|
32828
33053
|
};
|
|
32829
33054
|
const IconButton = React__default.forwardRef(IconButtonInner);
|
|
32830
33055
|
const defaultClasses = {
|
|
32831
|
-
root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-
|
|
33056
|
+
root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-ellipsis max-w-full",
|
|
32832
33057
|
shrink: "transform translate-y-[2px] scale-75 translate-x-[12px]",
|
|
32833
33058
|
expanded: "translate-x-[16px] top-0 transform translate-y-[16px] scale-100"
|
|
32834
33059
|
};
|
|
@@ -32859,7 +33084,7 @@ const InputLabel = React.forwardRef(function InputLabel2(inProps, ref) {
|
|
|
32859
33084
|
[defaultClasses.shrink]: shrink,
|
|
32860
33085
|
[defaultClasses.expanded]: t0
|
|
32861
33086
|
}, className);
|
|
32862
|
-
t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed
|
|
33087
|
+
t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", defaultBorderMixin, computedClassName);
|
|
32863
33088
|
$[4] = className;
|
|
32864
33089
|
$[5] = shrink;
|
|
32865
33090
|
$[6] = t0;
|
|
@@ -33240,7 +33465,7 @@ const widthClasses = {
|
|
|
33240
33465
|
full: "max-w-full w-full"
|
|
33241
33466
|
};
|
|
33242
33467
|
const Dialog = (t0) => {
|
|
33243
|
-
const $ = c(
|
|
33468
|
+
const $ = c(46);
|
|
33244
33469
|
const {
|
|
33245
33470
|
open,
|
|
33246
33471
|
onOpenChange,
|
|
@@ -33258,7 +33483,8 @@ const Dialog = (t0) => {
|
|
|
33258
33483
|
onPointerDownOutside,
|
|
33259
33484
|
onInteractOutside,
|
|
33260
33485
|
disableInitialFocus: t5,
|
|
33261
|
-
portalContainer
|
|
33486
|
+
portalContainer,
|
|
33487
|
+
"aria-describedby": ariaDescribedby
|
|
33262
33488
|
} = t0;
|
|
33263
33489
|
const fullWidth = t1 === void 0 ? true : t1;
|
|
33264
33490
|
const scrollable = t2 === void 0 ? true : t2;
|
|
@@ -33279,7 +33505,7 @@ const Dialog = (t0) => {
|
|
|
33279
33505
|
return () => clearTimeout(timeout);
|
|
33280
33506
|
} else {
|
|
33281
33507
|
setDisplayed(true);
|
|
33282
|
-
return _temp$
|
|
33508
|
+
return _temp$5;
|
|
33283
33509
|
}
|
|
33284
33510
|
};
|
|
33285
33511
|
t7 = [open];
|
|
@@ -33303,7 +33529,7 @@ const Dialog = (t0) => {
|
|
|
33303
33529
|
const t10 = displayed && open ? "opacity-100" : "opacity-0";
|
|
33304
33530
|
let t11;
|
|
33305
33531
|
if ($[5] !== t10) {
|
|
33306
|
-
t11 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black
|
|
33532
|
+
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");
|
|
33307
33533
|
$[5] = t10;
|
|
33308
33534
|
$[6] = t11;
|
|
33309
33535
|
} else {
|
|
@@ -33345,16 +33571,16 @@ const Dialog = (t0) => {
|
|
|
33345
33571
|
}
|
|
33346
33572
|
let t16;
|
|
33347
33573
|
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
33348
|
-
t16 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
|
|
33574
|
+
t16 = cls("relative h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
|
|
33349
33575
|
$[15] = t16;
|
|
33350
33576
|
} else {
|
|
33351
33577
|
t16 = $[15];
|
|
33352
33578
|
}
|
|
33353
33579
|
const t17 = fullWidth && !fullScreen ? "w-11/12" : void 0;
|
|
33354
33580
|
const t18 = fullHeight && !fullScreen ? "h-full" : void 0;
|
|
33355
|
-
const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-
|
|
33581
|
+
const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-lg";
|
|
33356
33582
|
const t20 = scrollable && "overflow-y-auto";
|
|
33357
|
-
const t21 = displayed && open ? "opacity-100" : "opacity-0";
|
|
33583
|
+
const t21 = displayed && open ? "opacity-100 scale-100" : "opacity-0 scale-[0.97]";
|
|
33358
33584
|
const t22 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
|
|
33359
33585
|
let t23;
|
|
33360
33586
|
if ($[16] !== className || $[17] !== t17 || $[18] !== t18 || $[19] !== t19 || $[20] !== t20 || $[21] !== t21 || $[22] !== t22) {
|
|
@@ -33380,53 +33606,54 @@ const Dialog = (t0) => {
|
|
|
33380
33606
|
t24 = $[26];
|
|
33381
33607
|
}
|
|
33382
33608
|
let t25;
|
|
33383
|
-
if ($[27] !==
|
|
33384
|
-
t25 = /* @__PURE__ */ jsx(DialogPrimitive.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, className: t16, children: t24 });
|
|
33385
|
-
$[27] =
|
|
33386
|
-
$[28] =
|
|
33387
|
-
$[29] =
|
|
33388
|
-
$[30] =
|
|
33389
|
-
$[31] =
|
|
33390
|
-
$[32] =
|
|
33391
|
-
|
|
33392
|
-
|
|
33609
|
+
if ($[27] !== ariaDescribedby || $[28] !== onEscapeKeyDown || $[29] !== onInteractOutside || $[30] !== onPointerDownOutside || $[31] !== t15 || $[32] !== t24) {
|
|
33610
|
+
t25 = /* @__PURE__ */ jsx(DialogPrimitive.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, "aria-describedby": ariaDescribedby, className: t16, children: t24 });
|
|
33611
|
+
$[27] = ariaDescribedby;
|
|
33612
|
+
$[28] = onEscapeKeyDown;
|
|
33613
|
+
$[29] = onInteractOutside;
|
|
33614
|
+
$[30] = onPointerDownOutside;
|
|
33615
|
+
$[31] = t15;
|
|
33616
|
+
$[32] = t24;
|
|
33617
|
+
$[33] = t25;
|
|
33618
|
+
} else {
|
|
33619
|
+
t25 = $[33];
|
|
33393
33620
|
}
|
|
33394
33621
|
let t26;
|
|
33395
|
-
if ($[
|
|
33622
|
+
if ($[34] !== t14 || $[35] !== t25 || $[36] !== t9) {
|
|
33396
33623
|
t26 = /* @__PURE__ */ jsxs("div", { className: t9, children: [
|
|
33397
33624
|
t14,
|
|
33398
33625
|
t25
|
|
33399
33626
|
] });
|
|
33400
|
-
$[
|
|
33401
|
-
$[
|
|
33402
|
-
$[
|
|
33403
|
-
$[
|
|
33627
|
+
$[34] = t14;
|
|
33628
|
+
$[35] = t25;
|
|
33629
|
+
$[36] = t9;
|
|
33630
|
+
$[37] = t26;
|
|
33404
33631
|
} else {
|
|
33405
|
-
t26 = $[
|
|
33632
|
+
t26 = $[37];
|
|
33406
33633
|
}
|
|
33407
33634
|
let t27;
|
|
33408
|
-
if ($[
|
|
33635
|
+
if ($[38] !== finalContainer || $[39] !== t26) {
|
|
33409
33636
|
t27 = /* @__PURE__ */ jsx(DialogPrimitive.Portal, { container: finalContainer, children: t26 });
|
|
33410
|
-
$[
|
|
33411
|
-
$[
|
|
33412
|
-
$[
|
|
33637
|
+
$[38] = finalContainer;
|
|
33638
|
+
$[39] = t26;
|
|
33639
|
+
$[40] = t27;
|
|
33413
33640
|
} else {
|
|
33414
|
-
t27 = $[
|
|
33641
|
+
t27 = $[40];
|
|
33415
33642
|
}
|
|
33416
33643
|
let t28;
|
|
33417
|
-
if ($[
|
|
33644
|
+
if ($[41] !== modal || $[42] !== onOpenChange || $[43] !== t27 || $[44] !== t8) {
|
|
33418
33645
|
t28 = /* @__PURE__ */ jsx(DialogPrimitive.Root, { open: t8, modal, onOpenChange, children: t27 });
|
|
33419
|
-
$[
|
|
33420
|
-
$[
|
|
33421
|
-
$[
|
|
33422
|
-
$[
|
|
33423
|
-
$[
|
|
33646
|
+
$[41] = modal;
|
|
33647
|
+
$[42] = onOpenChange;
|
|
33648
|
+
$[43] = t27;
|
|
33649
|
+
$[44] = t8;
|
|
33650
|
+
$[45] = t28;
|
|
33424
33651
|
} else {
|
|
33425
|
-
t28 = $[
|
|
33652
|
+
t28 = $[45];
|
|
33426
33653
|
}
|
|
33427
33654
|
return t28;
|
|
33428
33655
|
};
|
|
33429
|
-
function _temp$
|
|
33656
|
+
function _temp$5() {
|
|
33430
33657
|
}
|
|
33431
33658
|
function DialogActions(t0) {
|
|
33432
33659
|
const $ = c(7);
|
|
@@ -33579,7 +33806,7 @@ function DialogTitle(t0) {
|
|
|
33579
33806
|
return title;
|
|
33580
33807
|
}
|
|
33581
33808
|
function ExpandablePanel(t0) {
|
|
33582
|
-
const $ = c(
|
|
33809
|
+
const $ = c(41);
|
|
33583
33810
|
const {
|
|
33584
33811
|
title,
|
|
33585
33812
|
children,
|
|
@@ -33665,7 +33892,7 @@ function ExpandablePanel(t0) {
|
|
|
33665
33892
|
const t7 = !invisible && defaultBorderMixin + " border";
|
|
33666
33893
|
let t8;
|
|
33667
33894
|
if ($[6] !== className || $[7] !== t7) {
|
|
33668
|
-
t8 = cls(t7, "rounded-
|
|
33895
|
+
t8 = cls(t7, "rounded-lg", "w-full", className);
|
|
33669
33896
|
$[6] = className;
|
|
33670
33897
|
$[7] = t7;
|
|
33671
33898
|
$[8] = t8;
|
|
@@ -33689,7 +33916,7 @@ function ExpandablePanel(t0) {
|
|
|
33689
33916
|
const t13 = asField && fieldBackgroundMixin;
|
|
33690
33917
|
let t14;
|
|
33691
33918
|
if ($[11] !== t10 || $[12] !== t11 || $[13] !== t12 || $[14] !== t13 || $[15] !== titleClassName) {
|
|
33692
|
-
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");
|
|
33919
|
+
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");
|
|
33693
33920
|
$[11] = t10;
|
|
33694
33921
|
$[12] = t11;
|
|
33695
33922
|
$[13] = t12;
|
|
@@ -33717,68 +33944,69 @@ function ExpandablePanel(t0) {
|
|
|
33717
33944
|
t17 = $[20];
|
|
33718
33945
|
}
|
|
33719
33946
|
let t18;
|
|
33720
|
-
if ($[21] !==
|
|
33721
|
-
t18 = /* @__PURE__ */ jsx(Collapsible.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: t14, role: "button", tabIndex: 0, children: [
|
|
33947
|
+
if ($[21] !== open || $[22] !== t14 || $[23] !== t17 || $[24] !== title) {
|
|
33948
|
+
t18 = /* @__PURE__ */ jsx(Collapsible.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: t14, role: "button", tabIndex: 0, "aria-expanded": open, children: [
|
|
33722
33949
|
title,
|
|
33723
33950
|
t17
|
|
33724
33951
|
] }) });
|
|
33725
|
-
$[21] =
|
|
33726
|
-
$[22] =
|
|
33727
|
-
$[23] =
|
|
33728
|
-
$[24] =
|
|
33952
|
+
$[21] = open;
|
|
33953
|
+
$[22] = t14;
|
|
33954
|
+
$[23] = t17;
|
|
33955
|
+
$[24] = title;
|
|
33956
|
+
$[25] = t18;
|
|
33729
33957
|
} else {
|
|
33730
|
-
t18 = $[
|
|
33958
|
+
t18 = $[25];
|
|
33731
33959
|
}
|
|
33732
33960
|
let t19;
|
|
33733
|
-
if ($[
|
|
33961
|
+
if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
33734
33962
|
t19 = cls("CollapsibleContent");
|
|
33735
|
-
$[
|
|
33963
|
+
$[26] = t19;
|
|
33736
33964
|
} else {
|
|
33737
|
-
t19 = $[
|
|
33965
|
+
t19 = $[26];
|
|
33738
33966
|
}
|
|
33739
33967
|
const t20 = allowOverflow ? "visible" : "hidden";
|
|
33740
33968
|
let t21;
|
|
33741
|
-
if ($[
|
|
33969
|
+
if ($[27] !== t20) {
|
|
33742
33970
|
t21 = {
|
|
33743
33971
|
overflow: t20
|
|
33744
33972
|
};
|
|
33745
|
-
$[
|
|
33746
|
-
$[
|
|
33973
|
+
$[27] = t20;
|
|
33974
|
+
$[28] = t21;
|
|
33747
33975
|
} else {
|
|
33748
|
-
t21 = $[
|
|
33976
|
+
t21 = $[28];
|
|
33749
33977
|
}
|
|
33750
33978
|
let t22;
|
|
33751
|
-
if ($[
|
|
33979
|
+
if ($[29] !== children || $[30] !== innerClassName) {
|
|
33752
33980
|
t22 = /* @__PURE__ */ jsx("div", { className: innerClassName, children });
|
|
33753
|
-
$[
|
|
33754
|
-
$[
|
|
33755
|
-
$[
|
|
33981
|
+
$[29] = children;
|
|
33982
|
+
$[30] = innerClassName;
|
|
33983
|
+
$[31] = t22;
|
|
33756
33984
|
} else {
|
|
33757
|
-
t22 = $[
|
|
33985
|
+
t22 = $[31];
|
|
33758
33986
|
}
|
|
33759
33987
|
let t23;
|
|
33760
|
-
if ($[
|
|
33988
|
+
if ($[32] !== t21 || $[33] !== t22) {
|
|
33761
33989
|
t23 = /* @__PURE__ */ jsx(Collapsible.Content, { className: t19, style: t21, children: t22 });
|
|
33762
|
-
$[
|
|
33763
|
-
$[
|
|
33764
|
-
$[
|
|
33990
|
+
$[32] = t21;
|
|
33991
|
+
$[33] = t22;
|
|
33992
|
+
$[34] = t23;
|
|
33765
33993
|
} else {
|
|
33766
|
-
t23 = $[
|
|
33994
|
+
t23 = $[34];
|
|
33767
33995
|
}
|
|
33768
33996
|
let t24;
|
|
33769
|
-
if ($[
|
|
33997
|
+
if ($[35] !== open || $[36] !== t18 || $[37] !== t23 || $[38] !== t8 || $[39] !== t9) {
|
|
33770
33998
|
t24 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Collapsible.Root, { className: t8, open, onOpenChange: t9, children: [
|
|
33771
33999
|
t18,
|
|
33772
34000
|
t23
|
|
33773
34001
|
] }) });
|
|
33774
|
-
$[
|
|
33775
|
-
$[
|
|
33776
|
-
$[
|
|
33777
|
-
$[
|
|
33778
|
-
$[
|
|
33779
|
-
$[
|
|
34002
|
+
$[35] = open;
|
|
34003
|
+
$[36] = t18;
|
|
34004
|
+
$[37] = t23;
|
|
34005
|
+
$[38] = t8;
|
|
34006
|
+
$[39] = t9;
|
|
34007
|
+
$[40] = t24;
|
|
33780
34008
|
} else {
|
|
33781
|
-
t24 = $[
|
|
34009
|
+
t24 = $[40];
|
|
33782
34010
|
}
|
|
33783
34011
|
return t24;
|
|
33784
34012
|
}
|
|
@@ -33929,7 +34157,7 @@ function InfoLabel(t0) {
|
|
|
33929
34157
|
const t2 = colorClasses[mode];
|
|
33930
34158
|
let t3;
|
|
33931
34159
|
if ($[0] !== t2) {
|
|
33932
|
-
t3 = cls("my-3 py-2 px-4 rounded", t2);
|
|
34160
|
+
t3 = cls("my-3 py-2 px-4 rounded-xs", t2);
|
|
33933
34161
|
$[0] = t2;
|
|
33934
34162
|
$[1] = t3;
|
|
33935
34163
|
} else {
|
|
@@ -33974,7 +34202,7 @@ const Label = React.forwardRef((t0, ref) => {
|
|
|
33974
34202
|
const t2 = onClick && "hover:cursor-pointer hover:bg-surface-200 dark:hover:bg-surface-800";
|
|
33975
34203
|
let t3;
|
|
33976
34204
|
if ($[5] !== className || $[6] !== t1 || $[7] !== t2) {
|
|
33977
|
-
t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed
|
|
34205
|
+
t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", t1, t2, defaultBorderMixin, className);
|
|
33978
34206
|
$[5] = className;
|
|
33979
34207
|
$[6] = t1;
|
|
33980
34208
|
$[7] = t2;
|
|
@@ -34234,6 +34462,7 @@ const MenuItem = React__default.memo((t0) => {
|
|
|
34234
34462
|
}
|
|
34235
34463
|
return t9;
|
|
34236
34464
|
});
|
|
34465
|
+
MenuItem.displayName = "MenuItem";
|
|
34237
34466
|
function Menubar(t0) {
|
|
34238
34467
|
const $ = c(6);
|
|
34239
34468
|
const {
|
|
@@ -34891,7 +35120,7 @@ function Separator(t0) {
|
|
|
34891
35120
|
if (orientation === "horizontal") {
|
|
34892
35121
|
let t1;
|
|
34893
35122
|
if ($[0] !== className) {
|
|
34894
|
-
t1 = cls("dark:bg-
|
|
35123
|
+
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);
|
|
34895
35124
|
$[0] = className;
|
|
34896
35125
|
$[1] = t1;
|
|
34897
35126
|
} else {
|
|
@@ -34910,7 +35139,7 @@ function Separator(t0) {
|
|
|
34910
35139
|
} else {
|
|
34911
35140
|
let t1;
|
|
34912
35141
|
if ($[5] !== className) {
|
|
34913
|
-
t1 = cls("dark:bg-
|
|
35142
|
+
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);
|
|
34914
35143
|
$[5] = className;
|
|
34915
35144
|
$[6] = t1;
|
|
34916
35145
|
} else {
|
|
@@ -35042,7 +35271,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
35042
35271
|
let t12;
|
|
35043
35272
|
let t13;
|
|
35044
35273
|
if ($[9] !== children) {
|
|
35045
|
-
t13 = children ? Children.map(children, _temp$
|
|
35274
|
+
t13 = children ? Children.map(children, _temp$4)?.filter(Boolean) ?? [] : [];
|
|
35046
35275
|
$[9] = children;
|
|
35047
35276
|
$[10] = t13;
|
|
35048
35277
|
} else {
|
|
@@ -35588,7 +35817,7 @@ const InnerCheckBox = React.memo(function InnerCheckBox2(t0) {
|
|
|
35588
35817
|
}
|
|
35589
35818
|
return t7;
|
|
35590
35819
|
});
|
|
35591
|
-
function _temp$
|
|
35820
|
+
function _temp$4(child) {
|
|
35592
35821
|
if (React.isValidElement(child)) {
|
|
35593
35822
|
return child.props.value;
|
|
35594
35823
|
}
|
|
@@ -35688,7 +35917,7 @@ const RadioGroupItem = React.forwardRef((t0, ref) => {
|
|
|
35688
35917
|
}
|
|
35689
35918
|
let t1;
|
|
35690
35919
|
if ($[3] !== className) {
|
|
35691
|
-
t1 = cls("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-
|
|
35920
|
+
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);
|
|
35692
35921
|
$[3] = className;
|
|
35693
35922
|
$[4] = t1;
|
|
35694
35923
|
} else {
|
|
@@ -35928,6 +36157,7 @@ function SearchBar(t0) {
|
|
|
35928
36157
|
onClick,
|
|
35929
36158
|
onTextSearch,
|
|
35930
36159
|
placeholder: t1,
|
|
36160
|
+
initialValue,
|
|
35931
36161
|
expandable: t2,
|
|
35932
36162
|
size: t3,
|
|
35933
36163
|
innerClassName,
|
|
@@ -35940,7 +36170,7 @@ function SearchBar(t0) {
|
|
|
35940
36170
|
const placeholder = t1 === void 0 ? "Search" : t1;
|
|
35941
36171
|
const expandable = t2 === void 0 ? false : t2;
|
|
35942
36172
|
const size = t3 === void 0 ? "medium" : t3;
|
|
35943
|
-
const [searchText, setSearchText] = useState("");
|
|
36173
|
+
const [searchText, setSearchText] = useState(initialValue ?? "");
|
|
35944
36174
|
const [active, setActive] = useState(false);
|
|
35945
36175
|
const deferredValues = useDebounceValue(searchText, 200);
|
|
35946
36176
|
let t4;
|
|
@@ -36476,7 +36706,7 @@ const SearchableSelect = React.forwardRef((t0, ref) => {
|
|
|
36476
36706
|
}
|
|
36477
36707
|
const itemValue = child_0.props.value;
|
|
36478
36708
|
const isSelected = String(value) === String(itemValue);
|
|
36479
|
-
return /* @__PURE__ */ jsxs(Command.Item, { value: String(itemValue), onMouseDown: _temp$
|
|
36709
|
+
return /* @__PURE__ */ jsxs(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: [
|
|
36480
36710
|
/* @__PURE__ */ jsx("div", { className: cls("w-4 h-4 flex items-center justify-center flex-shrink-0", isSelected ? "text-primary" : "text-transparent"), children: isSelected && /* @__PURE__ */ jsx(CheckIcon, { size: 14 }) }),
|
|
36481
36711
|
child_0.props.children ?? child_0.props.value
|
|
36482
36712
|
] }, String(itemValue));
|
|
@@ -36579,12 +36809,12 @@ SearchableSelect.displayName = "SearchableSelect";
|
|
|
36579
36809
|
function SearchableSelectItem(_props) {
|
|
36580
36810
|
return null;
|
|
36581
36811
|
}
|
|
36582
|
-
function _temp$
|
|
36812
|
+
function _temp$3(e_0) {
|
|
36583
36813
|
e_0.preventDefault();
|
|
36584
36814
|
e_0.stopPropagation();
|
|
36585
36815
|
}
|
|
36586
36816
|
const Select = forwardRef((t0, ref) => {
|
|
36587
|
-
const $ = c(
|
|
36817
|
+
const $ = c(123);
|
|
36588
36818
|
let children;
|
|
36589
36819
|
let className;
|
|
36590
36820
|
let disabled;
|
|
@@ -36811,7 +37041,7 @@ const Select = forwardRef((t0, ref) => {
|
|
|
36811
37041
|
const t18 = !fullWidth;
|
|
36812
37042
|
let t19;
|
|
36813
37043
|
if ($[43] !== className || $[44] !== fullWidth || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18) {
|
|
36814
|
-
t19 = cls("select-none rounded-
|
|
37044
|
+
t19 = cls("select-none rounded-lg text-sm", t12, t13, "relative flex items-center", className, {
|
|
36815
37045
|
"min-h-[28px]": t14,
|
|
36816
37046
|
"min-h-[32px]": t15,
|
|
36817
37047
|
"min-h-[44px]": t16,
|
|
@@ -36832,13 +37062,15 @@ const Select = forwardRef((t0, ref) => {
|
|
|
36832
37062
|
} else {
|
|
36833
37063
|
t19 = $[52];
|
|
36834
37064
|
}
|
|
36835
|
-
|
|
37065
|
+
const t20 = typeof label === "string" ? label : typeof renderValue === "string" ? renderValue : "Select an option";
|
|
37066
|
+
const t21 = error || void 0;
|
|
37067
|
+
let t22;
|
|
36836
37068
|
if ($[53] !== disabled || $[54] !== error || $[55] !== fullWidth || $[56] !== inputClassName || $[57] !== padding || $[58] !== size) {
|
|
36837
|
-
|
|
37069
|
+
t22 = cls("h-full", padding ? {
|
|
36838
37070
|
"px-4": size === "large",
|
|
36839
37071
|
"px-3": size === "medium",
|
|
36840
37072
|
"px-2": size === "small" || size === "smallest"
|
|
36841
|
-
} : "", "outline-hidden focus:outline-hidden", "outline-none focus:outline-none", "select-none rounded-
|
|
37073
|
+
} : "", "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", {
|
|
36842
37074
|
"min-h-[28px]": size === "smallest",
|
|
36843
37075
|
"min-h-[32px]": size === "small",
|
|
36844
37076
|
"min-h-[44px]": size === "medium",
|
|
@@ -36852,196 +37084,198 @@ const Select = forwardRef((t0, ref) => {
|
|
|
36852
37084
|
$[56] = inputClassName;
|
|
36853
37085
|
$[57] = padding;
|
|
36854
37086
|
$[58] = size;
|
|
36855
|
-
$[59] =
|
|
37087
|
+
$[59] = t22;
|
|
36856
37088
|
} else {
|
|
36857
|
-
|
|
37089
|
+
t22 = $[59];
|
|
36858
37090
|
}
|
|
36859
|
-
const
|
|
36860
|
-
const
|
|
36861
|
-
const
|
|
36862
|
-
const
|
|
36863
|
-
let
|
|
36864
|
-
if ($[60] !==
|
|
36865
|
-
|
|
36866
|
-
"min-h-[28px]":
|
|
36867
|
-
"min-h-[32px]":
|
|
36868
|
-
"min-h-[44px]":
|
|
36869
|
-
"min-h-[64px]":
|
|
37091
|
+
const t23 = size === "smallest";
|
|
37092
|
+
const t24 = size === "small";
|
|
37093
|
+
const t25 = size === "medium";
|
|
37094
|
+
const t26 = size === "large";
|
|
37095
|
+
let t27;
|
|
37096
|
+
if ($[60] !== t23 || $[61] !== t24 || $[62] !== t25 || $[63] !== t26) {
|
|
37097
|
+
t27 = cls("flex-grow max-w-full flex flex-row gap-2 items-center", "overflow-visible", {
|
|
37098
|
+
"min-h-[28px]": t23,
|
|
37099
|
+
"min-h-[32px]": t24,
|
|
37100
|
+
"min-h-[44px]": t25,
|
|
37101
|
+
"min-h-[64px]": t26
|
|
36870
37102
|
});
|
|
36871
|
-
$[60] =
|
|
36872
|
-
$[61] =
|
|
36873
|
-
$[62] =
|
|
36874
|
-
$[63] =
|
|
36875
|
-
$[64] =
|
|
37103
|
+
$[60] = t23;
|
|
37104
|
+
$[61] = t24;
|
|
37105
|
+
$[62] = t25;
|
|
37106
|
+
$[63] = t26;
|
|
37107
|
+
$[64] = t27;
|
|
36876
37108
|
} else {
|
|
36877
|
-
|
|
37109
|
+
t27 = $[64];
|
|
36878
37110
|
}
|
|
36879
|
-
let
|
|
37111
|
+
let t28;
|
|
36880
37112
|
if ($[65] !== displayChildren || $[66] !== hasValue || $[67] !== placeholder || $[68] !== renderValue || $[69] !== value) {
|
|
36881
|
-
|
|
37113
|
+
t28 = hasValue && value !== void 0 && renderValue ? renderValue(value) : displayChildren || placeholder;
|
|
36882
37114
|
$[65] = displayChildren;
|
|
36883
37115
|
$[66] = hasValue;
|
|
36884
37116
|
$[67] = placeholder;
|
|
36885
37117
|
$[68] = renderValue;
|
|
36886
37118
|
$[69] = value;
|
|
36887
|
-
$[70] =
|
|
37119
|
+
$[70] = t28;
|
|
36888
37120
|
} else {
|
|
36889
|
-
|
|
37121
|
+
t28 = $[70];
|
|
36890
37122
|
}
|
|
36891
|
-
let
|
|
36892
|
-
if ($[71] !== placeholder || $[72] !==
|
|
36893
|
-
|
|
37123
|
+
let t29;
|
|
37124
|
+
if ($[71] !== placeholder || $[72] !== t28) {
|
|
37125
|
+
t29 = /* @__PURE__ */ jsx(SelectPrimitive.Value, { onClick: _temp$2, placeholder, className: "w-full", children: t28 });
|
|
36894
37126
|
$[71] = placeholder;
|
|
36895
|
-
$[72] =
|
|
36896
|
-
$[73] =
|
|
37127
|
+
$[72] = t28;
|
|
37128
|
+
$[73] = t29;
|
|
36897
37129
|
} else {
|
|
36898
|
-
|
|
37130
|
+
t29 = $[73];
|
|
36899
37131
|
}
|
|
36900
|
-
let
|
|
36901
|
-
if ($[74] !== ref || $[75] !==
|
|
36902
|
-
|
|
37132
|
+
let t30;
|
|
37133
|
+
if ($[74] !== ref || $[75] !== t27 || $[76] !== t29) {
|
|
37134
|
+
t30 = /* @__PURE__ */ jsx("div", { ref, className: t27, children: t29 });
|
|
36903
37135
|
$[74] = ref;
|
|
36904
|
-
$[75] =
|
|
36905
|
-
$[76] =
|
|
36906
|
-
$[77] =
|
|
37136
|
+
$[75] = t27;
|
|
37137
|
+
$[76] = t29;
|
|
37138
|
+
$[77] = t30;
|
|
36907
37139
|
} else {
|
|
36908
|
-
|
|
37140
|
+
t30 = $[77];
|
|
36909
37141
|
}
|
|
36910
|
-
const
|
|
36911
|
-
const
|
|
36912
|
-
const
|
|
36913
|
-
const
|
|
36914
|
-
let
|
|
36915
|
-
if ($[78] !==
|
|
36916
|
-
|
|
36917
|
-
"px-2":
|
|
36918
|
-
"px-1":
|
|
37142
|
+
const t31 = size === "large" ? "medium" : "small";
|
|
37143
|
+
const t32 = open ? "rotate-180" : "";
|
|
37144
|
+
const t33 = size === "large";
|
|
37145
|
+
const t34 = size === "medium" || size === "small";
|
|
37146
|
+
let t35;
|
|
37147
|
+
if ($[78] !== t32 || $[79] !== t33 || $[80] !== t34) {
|
|
37148
|
+
t35 = cls("transition", t32, {
|
|
37149
|
+
"px-2": t33,
|
|
37150
|
+
"px-1": t34
|
|
36919
37151
|
});
|
|
36920
|
-
$[78] =
|
|
36921
|
-
$[79] =
|
|
36922
|
-
$[80] =
|
|
36923
|
-
$[81] =
|
|
37152
|
+
$[78] = t32;
|
|
37153
|
+
$[79] = t33;
|
|
37154
|
+
$[80] = t34;
|
|
37155
|
+
$[81] = t35;
|
|
36924
37156
|
} else {
|
|
36925
|
-
|
|
37157
|
+
t35 = $[81];
|
|
36926
37158
|
}
|
|
36927
|
-
let
|
|
36928
|
-
if ($[82] !==
|
|
36929
|
-
|
|
36930
|
-
$[82] =
|
|
36931
|
-
$[83] =
|
|
36932
|
-
$[84] =
|
|
37159
|
+
let t36;
|
|
37160
|
+
if ($[82] !== t31 || $[83] !== t35) {
|
|
37161
|
+
t36 = /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: t31, className: t35 }) });
|
|
37162
|
+
$[82] = t31;
|
|
37163
|
+
$[83] = t35;
|
|
37164
|
+
$[84] = t36;
|
|
36933
37165
|
} else {
|
|
36934
|
-
|
|
37166
|
+
t36 = $[84];
|
|
36935
37167
|
}
|
|
36936
|
-
let
|
|
36937
|
-
if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !==
|
|
36938
|
-
|
|
36939
|
-
|
|
36940
|
-
|
|
37168
|
+
let t37;
|
|
37169
|
+
if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !== t21 || $[89] !== t22 || $[90] !== t30 || $[91] !== t36) {
|
|
37170
|
+
t37 = /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref: inputRef, id, asChild: false, type: "button", "aria-label": t20, "aria-invalid": t21, className: t22, children: [
|
|
37171
|
+
t30,
|
|
37172
|
+
t36
|
|
36941
37173
|
] });
|
|
36942
37174
|
$[85] = id;
|
|
36943
37175
|
$[86] = inputRef;
|
|
36944
37176
|
$[87] = t20;
|
|
36945
|
-
$[88] =
|
|
36946
|
-
$[89] =
|
|
36947
|
-
$[90] =
|
|
37177
|
+
$[88] = t21;
|
|
37178
|
+
$[89] = t22;
|
|
37179
|
+
$[90] = t30;
|
|
37180
|
+
$[91] = t36;
|
|
37181
|
+
$[92] = t37;
|
|
36948
37182
|
} else {
|
|
36949
|
-
|
|
37183
|
+
t37 = $[92];
|
|
36950
37184
|
}
|
|
36951
|
-
let
|
|
36952
|
-
if ($[
|
|
36953
|
-
|
|
36954
|
-
$[
|
|
36955
|
-
$[
|
|
37185
|
+
let t38;
|
|
37186
|
+
if ($[93] !== endAdornment) {
|
|
37187
|
+
t38 = endAdornment && /* @__PURE__ */ jsx("div", { className: cls("h-full flex items-center absolute right-0 pr-12"), onClick: _temp2, children: endAdornment });
|
|
37188
|
+
$[93] = endAdornment;
|
|
37189
|
+
$[94] = t38;
|
|
36956
37190
|
} else {
|
|
36957
|
-
|
|
37191
|
+
t38 = $[94];
|
|
36958
37192
|
}
|
|
36959
|
-
let
|
|
36960
|
-
if ($[
|
|
36961
|
-
|
|
36962
|
-
|
|
36963
|
-
|
|
37193
|
+
let t39;
|
|
37194
|
+
if ($[95] !== t19 || $[96] !== t37 || $[97] !== t38) {
|
|
37195
|
+
t39 = /* @__PURE__ */ jsxs("div", { className: t19, children: [
|
|
37196
|
+
t37,
|
|
37197
|
+
t38
|
|
36964
37198
|
] });
|
|
36965
|
-
$[
|
|
36966
|
-
$[94] = t35;
|
|
36967
|
-
$[95] = t36;
|
|
37199
|
+
$[95] = t19;
|
|
36968
37200
|
$[96] = t37;
|
|
36969
|
-
} else {
|
|
36970
|
-
t37 = $[96];
|
|
36971
|
-
}
|
|
36972
|
-
let t38;
|
|
36973
|
-
if ($[97] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
36974
|
-
t38 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-900 p-2 rounded-lg", defaultBorderMixin);
|
|
36975
37201
|
$[97] = t38;
|
|
37202
|
+
$[98] = t39;
|
|
36976
37203
|
} else {
|
|
36977
|
-
|
|
36978
|
-
}
|
|
36979
|
-
let t39;
|
|
36980
|
-
if ($[98] !== viewportClassName) {
|
|
36981
|
-
t39 = cls("p-1", viewportClassName);
|
|
36982
|
-
$[98] = viewportClassName;
|
|
36983
|
-
$[99] = t39;
|
|
36984
|
-
} else {
|
|
36985
|
-
t39 = $[99];
|
|
37204
|
+
t39 = $[98];
|
|
36986
37205
|
}
|
|
36987
37206
|
let t40;
|
|
36988
|
-
if ($[
|
|
36989
|
-
t40 =
|
|
36990
|
-
|
|
36991
|
-
};
|
|
36992
|
-
$[100] = t40;
|
|
37207
|
+
if ($[99] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37208
|
+
t40 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-800 p-2 rounded-lg shadow-lg", defaultBorderMixin);
|
|
37209
|
+
$[99] = t40;
|
|
36993
37210
|
} else {
|
|
36994
|
-
t40 = $[
|
|
37211
|
+
t40 = $[99];
|
|
36995
37212
|
}
|
|
36996
37213
|
let t41;
|
|
36997
|
-
if ($[
|
|
36998
|
-
t41 =
|
|
36999
|
-
$[
|
|
37000
|
-
$[
|
|
37001
|
-
$[103] = t41;
|
|
37214
|
+
if ($[100] !== viewportClassName) {
|
|
37215
|
+
t41 = cls("p-1", viewportClassName);
|
|
37216
|
+
$[100] = viewportClassName;
|
|
37217
|
+
$[101] = t41;
|
|
37002
37218
|
} else {
|
|
37003
|
-
t41 = $[
|
|
37219
|
+
t41 = $[101];
|
|
37004
37220
|
}
|
|
37005
37221
|
let t42;
|
|
37006
|
-
if ($[
|
|
37007
|
-
t42 =
|
|
37008
|
-
|
|
37009
|
-
|
|
37010
|
-
$[
|
|
37222
|
+
if ($[102] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
37223
|
+
t42 = {
|
|
37224
|
+
maxHeight: "var(--radix-select-content-available-height)"
|
|
37225
|
+
};
|
|
37226
|
+
$[102] = t42;
|
|
37011
37227
|
} else {
|
|
37012
|
-
t42 = $[
|
|
37228
|
+
t42 = $[102];
|
|
37013
37229
|
}
|
|
37014
37230
|
let t43;
|
|
37015
|
-
if ($[
|
|
37016
|
-
t43 = /* @__PURE__ */ jsx(SelectPrimitive.
|
|
37017
|
-
$[
|
|
37018
|
-
$[
|
|
37019
|
-
$[
|
|
37231
|
+
if ($[103] !== children || $[104] !== t41) {
|
|
37232
|
+
t43 = /* @__PURE__ */ jsx(SelectPrimitive.Viewport, { className: t41, style: t42, children });
|
|
37233
|
+
$[103] = children;
|
|
37234
|
+
$[104] = t41;
|
|
37235
|
+
$[105] = t43;
|
|
37020
37236
|
} else {
|
|
37021
|
-
t43 = $[
|
|
37237
|
+
t43 = $[105];
|
|
37022
37238
|
}
|
|
37023
37239
|
let t44;
|
|
37024
|
-
if ($[
|
|
37025
|
-
t44 = /* @__PURE__ */
|
|
37240
|
+
if ($[106] !== position || $[107] !== t43) {
|
|
37241
|
+
t44 = /* @__PURE__ */ jsx(SelectPrimitive.Content, { position, className: t40, children: t43 });
|
|
37242
|
+
$[106] = position;
|
|
37243
|
+
$[107] = t43;
|
|
37244
|
+
$[108] = t44;
|
|
37245
|
+
} else {
|
|
37246
|
+
t44 = $[108];
|
|
37247
|
+
}
|
|
37248
|
+
let t45;
|
|
37249
|
+
if ($[109] !== finalContainer || $[110] !== t44) {
|
|
37250
|
+
t45 = /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: finalContainer, children: t44 });
|
|
37251
|
+
$[109] = finalContainer;
|
|
37252
|
+
$[110] = t44;
|
|
37253
|
+
$[111] = t45;
|
|
37254
|
+
} else {
|
|
37255
|
+
t45 = $[111];
|
|
37256
|
+
}
|
|
37257
|
+
let t46;
|
|
37258
|
+
if ($[112] !== disabled || $[113] !== name || $[114] !== onValueChangeInternal || $[115] !== openInternal || $[116] !== props || $[117] !== stringValue || $[118] !== t10 || $[119] !== t11 || $[120] !== t39 || $[121] !== t45) {
|
|
37259
|
+
t46 = /* @__PURE__ */ jsxs(SelectPrimitive.Root, { name, value: stringValue, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: t10, ...props, children: [
|
|
37026
37260
|
t11,
|
|
37027
|
-
|
|
37028
|
-
|
|
37261
|
+
t39,
|
|
37262
|
+
t45
|
|
37029
37263
|
] });
|
|
37030
|
-
$[
|
|
37031
|
-
$[
|
|
37032
|
-
$[
|
|
37033
|
-
$[
|
|
37034
|
-
$[
|
|
37035
|
-
$[
|
|
37036
|
-
$[
|
|
37037
|
-
$[
|
|
37038
|
-
$[
|
|
37039
|
-
$[
|
|
37040
|
-
$[
|
|
37041
|
-
} else {
|
|
37042
|
-
|
|
37043
|
-
}
|
|
37044
|
-
return
|
|
37264
|
+
$[112] = disabled;
|
|
37265
|
+
$[113] = name;
|
|
37266
|
+
$[114] = onValueChangeInternal;
|
|
37267
|
+
$[115] = openInternal;
|
|
37268
|
+
$[116] = props;
|
|
37269
|
+
$[117] = stringValue;
|
|
37270
|
+
$[118] = t10;
|
|
37271
|
+
$[119] = t11;
|
|
37272
|
+
$[120] = t39;
|
|
37273
|
+
$[121] = t45;
|
|
37274
|
+
$[122] = t46;
|
|
37275
|
+
} else {
|
|
37276
|
+
t46 = $[122];
|
|
37277
|
+
}
|
|
37278
|
+
return t46;
|
|
37045
37279
|
});
|
|
37046
37280
|
Select.displayName = "Select";
|
|
37047
37281
|
const SelectItem = React__default.memo(function SelectItem2(t0) {
|
|
@@ -37056,7 +37290,7 @@ const SelectItem = React__default.memo(function SelectItem2(t0) {
|
|
|
37056
37290
|
const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
|
|
37057
37291
|
let t2;
|
|
37058
37292
|
if ($[0] !== className || $[1] !== t1) {
|
|
37059
|
-
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-
|
|
37293
|
+
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);
|
|
37060
37294
|
$[0] = className;
|
|
37061
37295
|
$[1] = t1;
|
|
37062
37296
|
$[2] = t2;
|
|
@@ -37132,7 +37366,7 @@ const SelectGroup = React__default.memo(function SelectGroup2(t0) {
|
|
|
37132
37366
|
}
|
|
37133
37367
|
return t3;
|
|
37134
37368
|
});
|
|
37135
|
-
function _temp$
|
|
37369
|
+
function _temp$2(e) {
|
|
37136
37370
|
e.preventDefault();
|
|
37137
37371
|
e.stopPropagation();
|
|
37138
37372
|
}
|
|
@@ -37469,7 +37703,7 @@ const Sheet = (t0) => {
|
|
|
37469
37703
|
}
|
|
37470
37704
|
T0 = DialogPrimitive.Content;
|
|
37471
37705
|
t6 = props;
|
|
37472
|
-
t7 = _temp;
|
|
37706
|
+
t7 = _temp$1;
|
|
37473
37707
|
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);
|
|
37474
37708
|
$[18] = className;
|
|
37475
37709
|
$[19] = displayed;
|
|
@@ -37553,7 +37787,7 @@ const Sheet = (t0) => {
|
|
|
37553
37787
|
}
|
|
37554
37788
|
return t17;
|
|
37555
37789
|
};
|
|
37556
|
-
function _temp(event) {
|
|
37790
|
+
function _temp$1(event) {
|
|
37557
37791
|
return event.preventDefault();
|
|
37558
37792
|
}
|
|
37559
37793
|
function getStyleValue(value) {
|
|
@@ -37801,69 +38035,279 @@ function setRef(ref, value) {
|
|
|
37801
38035
|
ref.current = value;
|
|
37802
38036
|
}
|
|
37803
38037
|
}
|
|
37804
|
-
const TextField = forwardRef(({
|
|
37805
|
-
|
|
37806
|
-
|
|
37807
|
-
|
|
37808
|
-
|
|
37809
|
-
|
|
37810
|
-
|
|
37811
|
-
|
|
37812
|
-
|
|
37813
|
-
|
|
37814
|
-
|
|
37815
|
-
|
|
37816
|
-
|
|
37817
|
-
|
|
37818
|
-
|
|
37819
|
-
|
|
37820
|
-
style
|
|
37821
|
-
|
|
37822
|
-
|
|
37823
|
-
|
|
37824
|
-
|
|
37825
|
-
|
|
37826
|
-
|
|
38038
|
+
const TextField = forwardRef((t0, ref) => {
|
|
38039
|
+
const $ = c(77);
|
|
38040
|
+
let autoFocus;
|
|
38041
|
+
let className;
|
|
38042
|
+
let disabled;
|
|
38043
|
+
let endAdornment;
|
|
38044
|
+
let error;
|
|
38045
|
+
let inputClassName;
|
|
38046
|
+
let inputProps;
|
|
38047
|
+
let inputRefProp;
|
|
38048
|
+
let inputStyle;
|
|
38049
|
+
let invisible;
|
|
38050
|
+
let label;
|
|
38051
|
+
let minRows;
|
|
38052
|
+
let onChange;
|
|
38053
|
+
let placeholder;
|
|
38054
|
+
let style;
|
|
38055
|
+
let t1;
|
|
38056
|
+
let t2;
|
|
38057
|
+
let t3;
|
|
38058
|
+
let value;
|
|
38059
|
+
if ($[0] !== t0) {
|
|
38060
|
+
const {
|
|
38061
|
+
value: t42,
|
|
38062
|
+
onChange: t52,
|
|
38063
|
+
label: t62,
|
|
38064
|
+
type: t72,
|
|
38065
|
+
multiline: t82,
|
|
38066
|
+
invisible: t92,
|
|
38067
|
+
maxRows,
|
|
38068
|
+
minRows: t102,
|
|
38069
|
+
disabled: t112,
|
|
38070
|
+
error: t122,
|
|
38071
|
+
endAdornment: t132,
|
|
38072
|
+
autoFocus: t142,
|
|
38073
|
+
placeholder: t152,
|
|
38074
|
+
size: t162,
|
|
38075
|
+
className: t172,
|
|
38076
|
+
style: t182,
|
|
38077
|
+
inputClassName: t192,
|
|
38078
|
+
inputStyle: t20,
|
|
38079
|
+
inputRef: t21,
|
|
38080
|
+
...t22
|
|
38081
|
+
} = t0;
|
|
38082
|
+
value = t42;
|
|
38083
|
+
onChange = t52;
|
|
38084
|
+
label = t62;
|
|
38085
|
+
t1 = t72;
|
|
38086
|
+
t2 = t82;
|
|
38087
|
+
invisible = t92;
|
|
38088
|
+
minRows = t102;
|
|
38089
|
+
disabled = t112;
|
|
38090
|
+
error = t122;
|
|
38091
|
+
endAdornment = t132;
|
|
38092
|
+
autoFocus = t142;
|
|
38093
|
+
placeholder = t152;
|
|
38094
|
+
t3 = t162;
|
|
38095
|
+
className = t172;
|
|
38096
|
+
style = t182;
|
|
38097
|
+
inputClassName = t192;
|
|
38098
|
+
inputStyle = t20;
|
|
38099
|
+
inputRefProp = t21;
|
|
38100
|
+
inputProps = t22;
|
|
38101
|
+
$[0] = t0;
|
|
38102
|
+
$[1] = autoFocus;
|
|
38103
|
+
$[2] = className;
|
|
38104
|
+
$[3] = disabled;
|
|
38105
|
+
$[4] = endAdornment;
|
|
38106
|
+
$[5] = error;
|
|
38107
|
+
$[6] = inputClassName;
|
|
38108
|
+
$[7] = inputProps;
|
|
38109
|
+
$[8] = inputRefProp;
|
|
38110
|
+
$[9] = inputStyle;
|
|
38111
|
+
$[10] = invisible;
|
|
38112
|
+
$[11] = label;
|
|
38113
|
+
$[12] = minRows;
|
|
38114
|
+
$[13] = onChange;
|
|
38115
|
+
$[14] = placeholder;
|
|
38116
|
+
$[15] = style;
|
|
38117
|
+
$[16] = t1;
|
|
38118
|
+
$[17] = t2;
|
|
38119
|
+
$[18] = t3;
|
|
38120
|
+
$[19] = value;
|
|
38121
|
+
} else {
|
|
38122
|
+
autoFocus = $[1];
|
|
38123
|
+
className = $[2];
|
|
38124
|
+
disabled = $[3];
|
|
38125
|
+
endAdornment = $[4];
|
|
38126
|
+
error = $[5];
|
|
38127
|
+
inputClassName = $[6];
|
|
38128
|
+
inputProps = $[7];
|
|
38129
|
+
inputRefProp = $[8];
|
|
38130
|
+
inputStyle = $[9];
|
|
38131
|
+
invisible = $[10];
|
|
38132
|
+
label = $[11];
|
|
38133
|
+
minRows = $[12];
|
|
38134
|
+
onChange = $[13];
|
|
38135
|
+
placeholder = $[14];
|
|
38136
|
+
style = $[15];
|
|
38137
|
+
t1 = $[16];
|
|
38138
|
+
t2 = $[17];
|
|
38139
|
+
t3 = $[18];
|
|
38140
|
+
value = $[19];
|
|
38141
|
+
}
|
|
38142
|
+
const type = t1 === void 0 ? "text" : t1;
|
|
38143
|
+
const multiline = t2 === void 0 ? false : t2;
|
|
38144
|
+
const size = t3 === void 0 ? "large" : t3;
|
|
38145
|
+
const fallbackRef = useRef(null);
|
|
38146
|
+
const inputRef = inputRefProp ?? fallbackRef;
|
|
38147
|
+
const autoId = useId();
|
|
38148
|
+
const inputId = inputProps.id ?? autoId;
|
|
38149
|
+
const labelId = `${inputId}-label`;
|
|
37827
38150
|
const [focused, setFocused] = React__default.useState(false);
|
|
37828
38151
|
const hasValue = value !== void 0 && value !== null && value !== "";
|
|
37829
|
-
|
|
37830
|
-
|
|
37831
|
-
|
|
37832
|
-
|
|
37833
|
-
|
|
37834
|
-
|
|
37835
|
-
|
|
37836
|
-
const handleWheel = (event) => {
|
|
37837
|
-
if (event.target instanceof HTMLElement) event.target.blur();
|
|
38152
|
+
let t4;
|
|
38153
|
+
if ($[20] !== inputRef) {
|
|
38154
|
+
t4 = () => {
|
|
38155
|
+
const element = inputRef && "current" in inputRef ? inputRef.current : null;
|
|
38156
|
+
if (element && document.activeElement === element) {
|
|
38157
|
+
setFocused(true);
|
|
38158
|
+
}
|
|
37838
38159
|
};
|
|
37839
|
-
|
|
37840
|
-
|
|
37841
|
-
|
|
37842
|
-
|
|
38160
|
+
$[20] = inputRef;
|
|
38161
|
+
$[21] = t4;
|
|
38162
|
+
} else {
|
|
38163
|
+
t4 = $[21];
|
|
38164
|
+
}
|
|
38165
|
+
let t5;
|
|
38166
|
+
if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
38167
|
+
t5 = [];
|
|
38168
|
+
$[22] = t5;
|
|
38169
|
+
} else {
|
|
38170
|
+
t5 = $[22];
|
|
38171
|
+
}
|
|
38172
|
+
useEffect(t4, t5);
|
|
38173
|
+
let t6;
|
|
38174
|
+
let t7;
|
|
38175
|
+
if ($[23] !== inputRef || $[24] !== type) {
|
|
38176
|
+
t6 = () => {
|
|
38177
|
+
if (type !== "number") {
|
|
38178
|
+
return;
|
|
38179
|
+
}
|
|
38180
|
+
const handleWheel = _temp;
|
|
38181
|
+
const element_0 = "current" in inputRef ? inputRef.current : inputRef;
|
|
38182
|
+
element_0?.addEventListener("wheel", handleWheel);
|
|
38183
|
+
return () => {
|
|
38184
|
+
element_0?.removeEventListener("wheel", handleWheel);
|
|
38185
|
+
};
|
|
37843
38186
|
};
|
|
37844
|
-
|
|
37845
|
-
|
|
37846
|
-
|
|
37847
|
-
|
|
37848
|
-
|
|
37849
|
-
|
|
37850
|
-
|
|
37851
|
-
|
|
37852
|
-
|
|
37853
|
-
|
|
37854
|
-
|
|
37855
|
-
|
|
37856
|
-
|
|
37857
|
-
|
|
37858
|
-
|
|
37859
|
-
|
|
38187
|
+
t7 = [inputRef, type];
|
|
38188
|
+
$[23] = inputRef;
|
|
38189
|
+
$[24] = type;
|
|
38190
|
+
$[25] = t6;
|
|
38191
|
+
$[26] = t7;
|
|
38192
|
+
} else {
|
|
38193
|
+
t6 = $[25];
|
|
38194
|
+
t7 = $[26];
|
|
38195
|
+
}
|
|
38196
|
+
useEffect(t6, t7);
|
|
38197
|
+
let t8;
|
|
38198
|
+
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) {
|
|
38199
|
+
t8 = multiline ? /* @__PURE__ */ 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__ */ 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, {
|
|
38200
|
+
"min-h-[28px]": size === "smallest",
|
|
38201
|
+
"min-h-[32px]": size === "small",
|
|
38202
|
+
"min-h-[44px]": size === "medium",
|
|
38203
|
+
"min-h-[64px]": size === "large"
|
|
38204
|
+
}, 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 });
|
|
38205
|
+
$[27] = autoFocus;
|
|
38206
|
+
$[28] = disabled;
|
|
38207
|
+
$[29] = endAdornment;
|
|
38208
|
+
$[30] = error;
|
|
38209
|
+
$[31] = focused;
|
|
38210
|
+
$[32] = hasValue;
|
|
38211
|
+
$[33] = inputClassName;
|
|
38212
|
+
$[34] = inputId;
|
|
38213
|
+
$[35] = inputProps;
|
|
38214
|
+
$[36] = inputRef;
|
|
38215
|
+
$[37] = inputStyle;
|
|
38216
|
+
$[38] = invisible;
|
|
38217
|
+
$[39] = label;
|
|
38218
|
+
$[40] = labelId;
|
|
38219
|
+
$[41] = minRows;
|
|
38220
|
+
$[42] = multiline;
|
|
38221
|
+
$[43] = onChange;
|
|
38222
|
+
$[44] = placeholder;
|
|
38223
|
+
$[45] = size;
|
|
38224
|
+
$[46] = type;
|
|
38225
|
+
$[47] = value;
|
|
38226
|
+
$[48] = t8;
|
|
38227
|
+
} else {
|
|
38228
|
+
t8 = $[48];
|
|
38229
|
+
}
|
|
38230
|
+
const input = t8;
|
|
38231
|
+
const t9 = invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin;
|
|
38232
|
+
const t10 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
|
|
38233
|
+
const t11 = error ? "border border-red-500 dark:border-red-600" : "";
|
|
38234
|
+
const t12 = size === "smallest";
|
|
38235
|
+
const t13 = size === "small";
|
|
38236
|
+
const t14 = size === "medium";
|
|
38237
|
+
const t15 = size === "large";
|
|
38238
|
+
let t16;
|
|
38239
|
+
if ($[49] !== className || $[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t9) {
|
|
38240
|
+
t16 = cls("rounded-lg relative max-w-full", t9, t10, t11, {
|
|
38241
|
+
"min-h-[28px]": t12,
|
|
38242
|
+
"min-h-[32px]": t13,
|
|
38243
|
+
"min-h-[44px]": t14,
|
|
38244
|
+
"min-h-[64px]": t15
|
|
38245
|
+
}, className);
|
|
38246
|
+
$[49] = className;
|
|
38247
|
+
$[50] = t10;
|
|
38248
|
+
$[51] = t11;
|
|
38249
|
+
$[52] = t12;
|
|
38250
|
+
$[53] = t13;
|
|
38251
|
+
$[54] = t14;
|
|
38252
|
+
$[55] = t15;
|
|
38253
|
+
$[56] = t9;
|
|
38254
|
+
$[57] = t16;
|
|
38255
|
+
} else {
|
|
38256
|
+
t16 = $[57];
|
|
38257
|
+
}
|
|
38258
|
+
let t17;
|
|
38259
|
+
if ($[58] !== disabled || $[59] !== error || $[60] !== focused || $[61] !== hasValue || $[62] !== inputId || $[63] !== label || $[64] !== labelId || $[65] !== size) {
|
|
38260
|
+
t17 = label && /* @__PURE__ */ 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 });
|
|
38261
|
+
$[58] = disabled;
|
|
38262
|
+
$[59] = error;
|
|
38263
|
+
$[60] = focused;
|
|
38264
|
+
$[61] = hasValue;
|
|
38265
|
+
$[62] = inputId;
|
|
38266
|
+
$[63] = label;
|
|
38267
|
+
$[64] = labelId;
|
|
38268
|
+
$[65] = size;
|
|
38269
|
+
$[66] = t17;
|
|
38270
|
+
} else {
|
|
38271
|
+
t17 = $[66];
|
|
38272
|
+
}
|
|
38273
|
+
let t18;
|
|
38274
|
+
if ($[67] !== endAdornment || $[68] !== size) {
|
|
38275
|
+
t18 = endAdornment && /* @__PURE__ */ jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
|
|
37860
38276
|
"mr-4": size === "large",
|
|
37861
38277
|
"mr-3": size === "medium",
|
|
37862
38278
|
"mr-2": size === "small" || size === "smallest"
|
|
37863
|
-
}), children: endAdornment })
|
|
37864
|
-
|
|
38279
|
+
}), children: endAdornment });
|
|
38280
|
+
$[67] = endAdornment;
|
|
38281
|
+
$[68] = size;
|
|
38282
|
+
$[69] = t18;
|
|
38283
|
+
} else {
|
|
38284
|
+
t18 = $[69];
|
|
38285
|
+
}
|
|
38286
|
+
let t19;
|
|
38287
|
+
if ($[70] !== input || $[71] !== ref || $[72] !== style || $[73] !== t16 || $[74] !== t17 || $[75] !== t18) {
|
|
38288
|
+
t19 = /* @__PURE__ */ jsxs("div", { ref, className: t16, style, children: [
|
|
38289
|
+
t17,
|
|
38290
|
+
input,
|
|
38291
|
+
t18
|
|
38292
|
+
] });
|
|
38293
|
+
$[70] = input;
|
|
38294
|
+
$[71] = ref;
|
|
38295
|
+
$[72] = style;
|
|
38296
|
+
$[73] = t16;
|
|
38297
|
+
$[74] = t17;
|
|
38298
|
+
$[75] = t18;
|
|
38299
|
+
$[76] = t19;
|
|
38300
|
+
} else {
|
|
38301
|
+
t19 = $[76];
|
|
38302
|
+
}
|
|
38303
|
+
return t19;
|
|
37865
38304
|
});
|
|
37866
38305
|
TextField.displayName = "TextField";
|
|
38306
|
+
function _temp(event) {
|
|
38307
|
+
if (event.target instanceof HTMLElement) {
|
|
38308
|
+
event.target.blur();
|
|
38309
|
+
}
|
|
38310
|
+
}
|
|
37867
38311
|
const TabsModeContext = createContext("primary");
|
|
37868
38312
|
function Tabs(t0) {
|
|
37869
38313
|
const $ = c(35);
|
|
@@ -38308,7 +38752,7 @@ function getParentName(element) {
|
|
|
38308
38752
|
return void 0;
|
|
38309
38753
|
}
|
|
38310
38754
|
function Popover(t0) {
|
|
38311
|
-
const $ = c(
|
|
38755
|
+
const $ = c(29);
|
|
38312
38756
|
const {
|
|
38313
38757
|
trigger,
|
|
38314
38758
|
children,
|
|
@@ -38325,7 +38769,9 @@ function Popover(t0) {
|
|
|
38325
38769
|
enabled: t2,
|
|
38326
38770
|
modal: t3,
|
|
38327
38771
|
portalContainer,
|
|
38328
|
-
className
|
|
38772
|
+
className,
|
|
38773
|
+
onMouseEnter,
|
|
38774
|
+
onMouseLeave
|
|
38329
38775
|
} = t0;
|
|
38330
38776
|
const sideOffset = t1 === void 0 ? 5 : t1;
|
|
38331
38777
|
const enabled = t2 === void 0 ? true : t2;
|
|
@@ -38362,14 +38808,14 @@ function Popover(t0) {
|
|
|
38362
38808
|
}
|
|
38363
38809
|
let t6;
|
|
38364
38810
|
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
38365
|
-
t6 = /* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-surface-
|
|
38811
|
+
t6 = /* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-surface-800" });
|
|
38366
38812
|
$[6] = t6;
|
|
38367
38813
|
} else {
|
|
38368
38814
|
t6 = $[6];
|
|
38369
38815
|
}
|
|
38370
38816
|
let t7;
|
|
38371
|
-
if ($[7] !== align || $[8] !== alignOffset || $[9] !== arrowPadding || $[10] !== avoidCollisions || $[11] !== children || $[12] !== hideWhenDetached || $[13] !==
|
|
38372
|
-
t7 = /* @__PURE__ */ jsxs(PopoverPrimitive.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, children: [
|
|
38817
|
+
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) {
|
|
38818
|
+
t7 = /* @__PURE__ */ jsxs(PopoverPrimitive.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, onMouseEnter, onMouseLeave, children: [
|
|
38373
38819
|
children,
|
|
38374
38820
|
t6
|
|
38375
38821
|
] });
|
|
@@ -38379,37 +38825,39 @@ function Popover(t0) {
|
|
|
38379
38825
|
$[10] = avoidCollisions;
|
|
38380
38826
|
$[11] = children;
|
|
38381
38827
|
$[12] = hideWhenDetached;
|
|
38382
|
-
$[13] =
|
|
38383
|
-
$[14] =
|
|
38384
|
-
$[15] =
|
|
38385
|
-
$[16] =
|
|
38386
|
-
$[17] =
|
|
38828
|
+
$[13] = onMouseEnter;
|
|
38829
|
+
$[14] = onMouseLeave;
|
|
38830
|
+
$[15] = side;
|
|
38831
|
+
$[16] = sideOffset;
|
|
38832
|
+
$[17] = sticky;
|
|
38833
|
+
$[18] = t5;
|
|
38834
|
+
$[19] = t7;
|
|
38387
38835
|
} else {
|
|
38388
|
-
t7 = $[
|
|
38836
|
+
t7 = $[19];
|
|
38389
38837
|
}
|
|
38390
38838
|
let t8;
|
|
38391
|
-
if ($[
|
|
38839
|
+
if ($[20] !== finalContainer || $[21] !== t7) {
|
|
38392
38840
|
t8 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: finalContainer, children: t7 });
|
|
38393
|
-
$[
|
|
38394
|
-
$[
|
|
38395
|
-
$[
|
|
38841
|
+
$[20] = finalContainer;
|
|
38842
|
+
$[21] = t7;
|
|
38843
|
+
$[22] = t8;
|
|
38396
38844
|
} else {
|
|
38397
|
-
t8 = $[
|
|
38845
|
+
t8 = $[22];
|
|
38398
38846
|
}
|
|
38399
38847
|
let t9;
|
|
38400
|
-
if ($[
|
|
38848
|
+
if ($[23] !== modal || $[24] !== onOpenChange || $[25] !== open || $[26] !== t4 || $[27] !== t8) {
|
|
38401
38849
|
t9 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open, onOpenChange, modal, children: [
|
|
38402
38850
|
t4,
|
|
38403
38851
|
t8
|
|
38404
38852
|
] });
|
|
38405
|
-
$[
|
|
38406
|
-
$[
|
|
38407
|
-
$[
|
|
38408
|
-
$[
|
|
38409
|
-
$[
|
|
38410
|
-
$[
|
|
38853
|
+
$[23] = modal;
|
|
38854
|
+
$[24] = onOpenChange;
|
|
38855
|
+
$[25] = open;
|
|
38856
|
+
$[26] = t4;
|
|
38857
|
+
$[27] = t8;
|
|
38858
|
+
$[28] = t9;
|
|
38411
38859
|
} else {
|
|
38412
|
-
t9 = $[
|
|
38860
|
+
t9 = $[28];
|
|
38413
38861
|
}
|
|
38414
38862
|
return t9;
|
|
38415
38863
|
}
|
|
@@ -38597,15 +39045,26 @@ function DebouncedTextField(props) {
|
|
|
38597
39045
|
}
|
|
38598
39046
|
return t5;
|
|
38599
39047
|
}
|
|
39048
|
+
const styles = `
|
|
39049
|
+
@keyframes shimmer {
|
|
39050
|
+
0% {
|
|
39051
|
+
transform: translateX(-150%);
|
|
39052
|
+
}
|
|
39053
|
+
100% {
|
|
39054
|
+
transform: translateX(150%);
|
|
39055
|
+
}
|
|
39056
|
+
}
|
|
39057
|
+
`;
|
|
38600
39058
|
function Skeleton(t0) {
|
|
38601
|
-
const $ = c(
|
|
39059
|
+
const $ = c(9);
|
|
38602
39060
|
const {
|
|
38603
39061
|
width,
|
|
38604
39062
|
height,
|
|
38605
39063
|
className
|
|
38606
39064
|
} = t0;
|
|
38607
|
-
|
|
38608
|
-
const
|
|
39065
|
+
useInjectStyles("Skeleton", styles);
|
|
39066
|
+
const t1 = width ? `${width}px` : "100%";
|
|
39067
|
+
const t2 = height ? `${height}px` : "12px";
|
|
38609
39068
|
let t3;
|
|
38610
39069
|
if ($[0] !== t1 || $[1] !== t2) {
|
|
38611
39070
|
t3 = {
|
|
@@ -38618,28 +39077,33 @@ function Skeleton(t0) {
|
|
|
38618
39077
|
} else {
|
|
38619
39078
|
t3 = $[2];
|
|
38620
39079
|
}
|
|
38621
|
-
|
|
38622
|
-
|
|
38623
|
-
|
|
38624
|
-
if ($[3] !== className || $[4] !== t4 || $[5] !== t5) {
|
|
38625
|
-
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);
|
|
39080
|
+
let t4;
|
|
39081
|
+
if ($[3] !== className) {
|
|
39082
|
+
t4 = cls("block relative overflow-hidden", "bg-surface-accent-50 dark:bg-surface-accent-800 rounded-md", "max-w-full max-h-full", className);
|
|
38626
39083
|
$[3] = className;
|
|
38627
39084
|
$[4] = t4;
|
|
39085
|
+
} else {
|
|
39086
|
+
t4 = $[4];
|
|
39087
|
+
}
|
|
39088
|
+
let t5;
|
|
39089
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
39090
|
+
t5 = /* @__PURE__ */ jsx("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/50 dark:via-white/8 to-transparent", style: {
|
|
39091
|
+
animation: "shimmer 1.8s ease-in-out infinite"
|
|
39092
|
+
} });
|
|
38628
39093
|
$[5] = t5;
|
|
38629
|
-
$[6] = t6;
|
|
38630
39094
|
} else {
|
|
38631
|
-
|
|
39095
|
+
t5 = $[5];
|
|
38632
39096
|
}
|
|
38633
|
-
let
|
|
38634
|
-
if ($[
|
|
38635
|
-
|
|
38636
|
-
$[
|
|
39097
|
+
let t6;
|
|
39098
|
+
if ($[6] !== t3 || $[7] !== t4) {
|
|
39099
|
+
t6 = /* @__PURE__ */ jsx("span", { style: t3, className: t4, children: t5 });
|
|
39100
|
+
$[6] = t3;
|
|
39101
|
+
$[7] = t4;
|
|
38637
39102
|
$[8] = t6;
|
|
38638
|
-
$[9] = t7;
|
|
38639
39103
|
} else {
|
|
38640
|
-
|
|
39104
|
+
t6 = $[8];
|
|
38641
39105
|
}
|
|
38642
|
-
return
|
|
39106
|
+
return t6;
|
|
38643
39107
|
}
|
|
38644
39108
|
function ToggleButtonGroup(t0) {
|
|
38645
39109
|
const $ = c(12);
|
|
@@ -38651,7 +39115,7 @@ function ToggleButtonGroup(t0) {
|
|
|
38651
39115
|
} = t0;
|
|
38652
39116
|
let t1;
|
|
38653
39117
|
if ($[0] !== className) {
|
|
38654
|
-
t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-
|
|
39118
|
+
t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-900 rounded-lg p-1 gap-1", className);
|
|
38655
39119
|
$[0] = className;
|
|
38656
39120
|
$[1] = t1;
|
|
38657
39121
|
} else {
|
|
@@ -38661,12 +39125,12 @@ function ToggleButtonGroup(t0) {
|
|
|
38661
39125
|
if ($[2] !== onValueChange || $[3] !== options || $[4] !== value) {
|
|
38662
39126
|
let t32;
|
|
38663
39127
|
if ($[6] !== onValueChange || $[7] !== value) {
|
|
38664
|
-
t32 = (option) => /* @__PURE__ */ jsxs("button", { type: "button", onClick: (e) => {
|
|
39128
|
+
t32 = (option) => /* @__PURE__ */ jsxs("button", { type: "button", "aria-pressed": value === option.value, "aria-disabled": option.disabled || void 0, onClick: (e) => {
|
|
38665
39129
|
e.stopPropagation();
|
|
38666
39130
|
if (!option.disabled) {
|
|
38667
39131
|
onValueChange(option.value);
|
|
38668
39132
|
}
|
|
38669
|
-
}, 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-
|
|
39133
|
+
}, 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: [
|
|
38670
39134
|
option.icon,
|
|
38671
39135
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: option.label })
|
|
38672
39136
|
] }, option.value);
|
|
@@ -38686,7 +39150,7 @@ function ToggleButtonGroup(t0) {
|
|
|
38686
39150
|
}
|
|
38687
39151
|
let t3;
|
|
38688
39152
|
if ($[9] !== t1 || $[10] !== t2) {
|
|
38689
|
-
t3 = /* @__PURE__ */ jsx("div", { className: t1, children: t2 });
|
|
39153
|
+
t3 = /* @__PURE__ */ jsx("div", { role: "group", "aria-label": "Toggle options", className: t1, children: t2 });
|
|
38690
39154
|
$[9] = t1;
|
|
38691
39155
|
$[10] = t2;
|
|
38692
39156
|
$[11] = t3;
|
|
@@ -39430,6 +39894,7 @@ export {
|
|
|
39430
39894
|
FilterAltOffIcon,
|
|
39431
39895
|
FilterBAndWIcon,
|
|
39432
39896
|
FilterCenterFocusIcon,
|
|
39897
|
+
FilterChip,
|
|
39433
39898
|
FilterDramaIcon,
|
|
39434
39899
|
FilterFramesIcon,
|
|
39435
39900
|
FilterHdrIcon,
|
|
@@ -40999,6 +41464,7 @@ export {
|
|
|
40999
41464
|
keyToIconComponent,
|
|
41000
41465
|
paperMixin,
|
|
41001
41466
|
useAutoComplete,
|
|
41467
|
+
useDebounceCallback,
|
|
41002
41468
|
useDebounceValue,
|
|
41003
41469
|
useIconStyles,
|
|
41004
41470
|
useInjectStyles,
|