@firecms/ui 3.3.0-canary.3ea2cd2 → 3.3.0-canary.5906216

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.
Files changed (49) hide show
  1. package/dist/components/Card.d.ts +2 -3
  2. package/dist/components/Checkbox.d.ts +2 -1
  3. package/dist/components/Chip.d.ts +5 -1
  4. package/dist/components/Dialog.d.ts +2 -1
  5. package/dist/components/FilterChip.d.ts +34 -0
  6. package/dist/components/IconButton.d.ts +1 -0
  7. package/dist/components/Popover.d.ts +3 -1
  8. package/dist/components/Select.d.ts +1 -1
  9. package/dist/components/TextField.d.ts +2 -2
  10. package/dist/components/index.d.ts +1 -0
  11. package/dist/hooks/index.d.ts +1 -0
  12. package/dist/hooks/useDebounceCallback.d.ts +13 -0
  13. package/dist/index.css +43 -32
  14. package/dist/index.es.js +982 -530
  15. package/dist/index.es.js.map +1 -1
  16. package/dist/index.umd.js +981 -529
  17. package/dist/index.umd.js.map +1 -1
  18. package/dist/styles.d.ts +1 -1
  19. package/package.json +6 -6
  20. package/src/components/Alert.tsx +7 -7
  21. package/src/components/Avatar.tsx +1 -1
  22. package/src/components/BooleanSwitch.tsx +6 -3
  23. package/src/components/Button.tsx +17 -13
  24. package/src/components/Card.tsx +3 -1
  25. package/src/components/CenteredView.tsx +1 -1
  26. package/src/components/Checkbox.tsx +10 -4
  27. package/src/components/Chip.tsx +70 -11
  28. package/src/components/Collapse.tsx +2 -0
  29. package/src/components/Dialog.tsx +8 -5
  30. package/src/components/ExpandablePanel.tsx +3 -2
  31. package/src/components/FilterChip.tsx +79 -0
  32. package/src/components/IconButton.tsx +11 -6
  33. package/src/components/InfoLabel.tsx +1 -1
  34. package/src/components/InputLabel.tsx +2 -2
  35. package/src/components/Label.tsx +1 -1
  36. package/src/components/LoadingButton.tsx +1 -1
  37. package/src/components/Menu.tsx +2 -0
  38. package/src/components/Popover.tsx +9 -3
  39. package/src/components/RadioGroup.tsx +1 -1
  40. package/src/components/Select.tsx +8 -6
  41. package/src/components/Separator.tsx +2 -2
  42. package/src/components/Skeleton.tsx +25 -8
  43. package/src/components/TextField.tsx +27 -13
  44. package/src/components/ToggleButtonGroup.tsx +4 -2
  45. package/src/components/index.tsx +1 -0
  46. package/src/hooks/index.ts +1 -0
  47. package/src/hooks/useDebounceCallback.tsx +47 -0
  48. package/src/index.css +43 -32
  49. package/src/styles.ts +1 -1
package/dist/index.umd.js CHANGED
@@ -37,7 +37,7 @@
37
37
  const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
38
38
  const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-800 focus:dark:bg-opacity-60 focus:bg-surface-accent-100/70 dark:focus:bg-surface-800/60";
39
39
  const focusedClasses = "z-30 outline-hidden outline-none ring-2 ring-primary ring-opacity-75 ring-primary/75 ring-offset-2 ring-offset-transparent ";
40
- const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-800 dark:bg-opacity-60 dark:bg-surface-800/60";
40
+ const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-800 dark:bg-opacity-90 dark:bg-surface-800/90";
41
41
  const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-surface-accent-100 dark:bg-surface-800 dark:bg-opacity-0 bg-surface-accent-200/0 dark:bg-surface-800/0";
42
42
  const fieldBackgroundDisabledMixin = "dark:bg-surface-800 bg-opacity-50 dark:bg-opacity-90 bg-surface-accent-200/50 dark:bg-surface-800/90";
43
43
  const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40 hover:bg-surface-accent-200/70 hover:dark:bg-surface-700/40";
@@ -391,6 +391,60 @@
391
391
  React.useEffect(t1, t2);
392
392
  return debouncedValue;
393
393
  }
394
+ function useDebounceCallback(callback, delay) {
395
+ const $ = reactCompilerRuntime.c(7);
396
+ const timeoutRef = React.useRef(null);
397
+ const callbackRef = React.useRef(callback);
398
+ let t0;
399
+ let t1;
400
+ if ($[0] !== callback) {
401
+ t0 = () => {
402
+ callbackRef.current = callback;
403
+ };
404
+ t1 = [callback];
405
+ $[0] = callback;
406
+ $[1] = t0;
407
+ $[2] = t1;
408
+ } else {
409
+ t0 = $[1];
410
+ t1 = $[2];
411
+ }
412
+ React.useEffect(t0, t1);
413
+ let t2;
414
+ let t3;
415
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
416
+ t2 = () => () => {
417
+ if (timeoutRef.current !== null) {
418
+ clearTimeout(timeoutRef.current);
419
+ }
420
+ };
421
+ t3 = [];
422
+ $[3] = t2;
423
+ $[4] = t3;
424
+ } else {
425
+ t2 = $[3];
426
+ t3 = $[4];
427
+ }
428
+ React.useEffect(t2, t3);
429
+ let t4;
430
+ if ($[5] !== delay) {
431
+ t4 = (...t5) => {
432
+ const args = t5;
433
+ if (timeoutRef.current !== null) {
434
+ clearTimeout(timeoutRef.current);
435
+ }
436
+ timeoutRef.current = setTimeout(() => {
437
+ callbackRef.current?.(...args);
438
+ }, delay ?? 200);
439
+ };
440
+ $[5] = delay;
441
+ $[6] = t4;
442
+ } else {
443
+ t4 = $[6];
444
+ }
445
+ const debouncedCallback = t4;
446
+ return debouncedCallback;
447
+ }
394
448
  function useIconStyles(t0) {
395
449
  const {
396
450
  fill: t1,
@@ -476,6 +530,7 @@
476
530
  }
477
531
  return t6;
478
532
  });
533
+ Collapse.displayName = "Collapse";
479
534
  const useAutoComplete = ({
480
535
  ref
481
536
  }) => {
@@ -597,16 +652,16 @@
597
652
  const getColorClasses = (severity) => {
598
653
  switch (severity) {
599
654
  case "error":
600
- return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900";
655
+ return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900 border-l-[3px] border-l-red-500";
601
656
  case "warning":
602
- return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900";
657
+ return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900 border-l-[3px] border-l-amber-500";
603
658
  case "info":
604
- return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900";
659
+ return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900 border-l-[3px] border-l-blue-500";
605
660
  case "success":
606
- return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900";
661
+ return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900 border-l-[3px] border-l-emerald-500";
607
662
  case "base":
608
663
  default:
609
- return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900";
664
+ return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900 border-l-[3px] border-l-surface-accent-400";
610
665
  }
611
666
  };
612
667
  const Alert = (t0) => {
@@ -628,7 +683,7 @@
628
683
  if ($[0] !== color || $[1] !== outerClassName || $[2] !== size || $[3] !== style) {
629
684
  const classes = getColorClasses(color);
630
685
  t3 = style;
631
- t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-md flex items-center gap-2", classes, outerClassName);
686
+ t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-lg flex items-center gap-2", classes, outerClassName);
632
687
  $[0] = color;
633
688
  $[1] = outerClassName;
634
689
  $[2] = size;
@@ -641,7 +696,7 @@
641
696
  }
642
697
  let t5;
643
698
  if ($[6] !== className) {
644
- t5 = cls("flex-grow", className);
699
+ t5 = cls("grow", className);
645
700
  $[6] = className;
646
701
  $[7] = t5;
647
702
  } else {
@@ -734,7 +789,7 @@
734
789
  t2 = $[9];
735
790
  }
736
791
  const handleImageError = t2;
737
- const t3 = hover && "hover:bg-surface-accent-200 hover:dark:bg-surface-accent-700";
792
+ const t3 = hover && "hover:bg-surface-accent-200 dark:hover:bg-surface-accent-700";
738
793
  let t4;
739
794
  if ($[10] !== outerClassName || $[11] !== t3) {
740
795
  t4 = cls("rounded-full flex items-center justify-center overflow-hidden", "p-1 w-12 h-12 min-w-12 min-h-12", t3, outerClassName);
@@ -780,7 +835,7 @@
780
835
  size = "medium",
781
836
  ...props
782
837
  }, ref) {
783
- return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", ref, tabIndex: disabled ? -1 : void 0, onClick: disabled ? (e) => e.preventDefault() : (e_0) => {
838
+ return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", ref, role: "switch", "aria-checked": allowIndeterminate && (value === null || value === void 0) ? "mixed" : !!value, "aria-disabled": disabled || void 0, tabIndex: disabled ? -1 : void 0, onClick: disabled ? (e) => e.preventDefault() : (e_0) => {
784
839
  e_0.preventDefault();
785
840
  if (allowIndeterminate) {
786
841
  if (value === null || value === void 0) onValueChange?.(true);
@@ -790,7 +845,7 @@
790
845
  onValueChange?.(!value);
791
846
  }
792
847
  }, className: cls(size === "smallest" ? "w-[34px] h-[18px] min-w-[34px] min-h-[18px]" : size === "small" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[44px] h-[26px] min-w-[44px] min-h-[26px]", "outline-none outline-hidden rounded-full relative shadow-sm", value ? disabled ? "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-950 border-surface-accent-100 dark:border-surface-accent-700 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-900 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700", className), ...props, children: [
793
- allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
848
+ allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
794
849
  "w-[21px] h-[10px]": size === "medium" || size === "large",
795
850
  "w-[19px] h-[8px]": size === "small",
796
851
  "w-[16px] h-[6px]": size === "smallest",
@@ -798,7 +853,7 @@
798
853
  "translate-x-[9px]": size === "small",
799
854
  "translate-x-[8px]": size === "smallest"
800
855
  }) }, "knob"),
801
- !(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-300 dark:bg-surface-accent-700" : value ? "bg-white" : "bg-surface-accent-600 dark:bg-surface-accent-400", {
856
+ !(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-300 dark:bg-surface-700" : value ? "bg-white shadow" : "bg-surface-accent-600 dark:bg-surface-accent-400", {
802
857
  "w-[21px] h-[21px]": size === "medium" || size === "large",
803
858
  "w-[19px] h-[19px]": size === "small",
804
859
  "w-[16px] h-[16px]": size === "smallest",
@@ -852,7 +907,7 @@
852
907
  ] });
853
908
  };
854
909
  const ButtonInner = React.memo(React.forwardRef((t0, ref) => {
855
- const $ = reactCompilerRuntime.c(55);
910
+ const $ = reactCompilerRuntime.c(56);
856
911
  let Component;
857
912
  let children;
858
913
  let className;
@@ -940,32 +995,33 @@
940
995
  let t28;
941
996
  let t29;
942
997
  let t30;
943
- if ($[11] !== Component || $[12] !== children || $[13] !== className || $[14] !== disabled || $[15] !== fullWidth || $[16] !== props || $[17] !== ref || $[18] !== size || $[19] !== startIcon || $[20] !== t10 || $[21] !== t11 || $[22] !== t12 || $[23] !== t13 || $[24] !== t14 || $[25] !== t15 || $[26] !== t16 || $[27] !== t17 || $[28] !== t18 || $[29] !== t19 || $[30] !== t20 || $[31] !== t21 || $[32] !== t22 || $[33] !== t23 || $[34] !== t24 || $[35] !== t25 || $[36] !== t7 || $[37] !== t8 || $[38] !== t9) {
998
+ if ($[11] !== Component || $[12] !== children || $[13] !== className || $[14] !== color || $[15] !== disabled || $[16] !== fullWidth || $[17] !== props || $[18] !== ref || $[19] !== size || $[20] !== startIcon || $[21] !== t10 || $[22] !== t11 || $[23] !== t12 || $[24] !== t13 || $[25] !== t14 || $[26] !== t15 || $[27] !== t16 || $[28] !== t17 || $[29] !== t18 || $[30] !== t19 || $[31] !== t20 || $[32] !== t21 || $[33] !== t22 || $[34] !== t23 || $[35] !== t24 || $[36] !== t25 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
944
999
  t30 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
945
1000
  bb0: {
946
1001
  const buttonClasses2 = cls({
947
1002
  "w-full": fullWidth,
948
1003
  "w-fit": t7,
949
- "border border-primary bg-primary focus:ring-primary shadow hover:ring-1 hover:ring-primary text-white hover:text-white": t8,
950
- "border border-secondary bg-secondary focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": t9,
951
- "border border-red-500 bg-red-500 hover:bg-red-500 focus:ring-red-500 shadow hover:ring-1 hover:ring-red-600 text-white hover:text-white": t10,
952
- "border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 shadow hover:ring-1 hover:ring-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": t11,
953
- "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-800 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,
1004
+ "border border-primary bg-primary focus:ring-primary text-white hover:text-white hover:brightness-105": t8,
1005
+ "border border-secondary bg-secondary focus:ring-secondary text-white hover:text-white hover:brightness-105": t9,
1006
+ "border border-red-500 bg-red-500 hover:bg-red-600 focus:ring-red-500 text-white hover:text-white": t10,
1007
+ "border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 text-text-primary hover:text-text-primary dark:border-surface-accent-700 dark:bg-surface-accent-700 dark:hover:bg-surface-accent-600 dark:text-text-primary-dark hover:dark:text-text-primary-dark": t11,
1008
+ "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-700 dark:hover:bg-surface-accent-700 dark:text-text-primary-dark hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": t12,
954
1009
  "border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t13,
955
1010
  "border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t14,
956
1011
  "border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10 hover:bg-red-500/10": t15,
957
- "border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:dark:bg-surface-700": t16,
958
- "border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 dark:text-text-primary-dark dark:hover:text-text-primary-dark dark:hover:bg-surface-accent-700": t17,
1012
+ "border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t16,
1013
+ "border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:text-text-primary-dark dark:hover:text-text-primary-dark dark:hover:bg-surface-accent-800": t17,
959
1014
  "border border-primary text-primary hover:text-primary hover:bg-primary-bg hover:bg-primary/10": t18,
960
1015
  "border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
961
1016
  "border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
962
- "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t21,
963
- "border border-surface-300 text-text-primary hover:bg-surface-accent-200 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-700": t22,
1017
+ "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark dark:border-surface-accent-600 hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t21,
1018
+ "border border-surface-300 text-text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-800": t22,
964
1019
  "text-text-disabled dark:text-text-disabled-dark": disabled,
965
1020
  "border border-transparent opacity-50": t23,
966
1021
  "border border-surface-500 opacity-50": t24,
967
- "border border-transparent bg-surface-300 dark:bg-surface-500 opacity-70 bg-surface-300/70 dark:bg-surface-500/70": t25
1022
+ "border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40 bg-surface-300/40 dark:bg-surface-500/40": t25
968
1023
  });
1024
+ const iconColorClass = (color === "neutral" || color === "text") && !disabled ? "[&>svg]:text-surface-accent-500 dark:[&>svg]:text-surface-accent-300" : "";
969
1025
  const sizeClasses2 = cls({
970
1026
  "py-1 px-2": size === "small",
971
1027
  "py-2 px-4": size === "medium",
@@ -974,7 +1030,7 @@
974
1030
  "py-4 px-10": size === "2xl"
975
1031
  });
976
1032
  if (Component) {
977
- t30 = /* @__PURE__ */ jsxRuntime.jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, className), ...props, children: [
1033
+ t30 = /* @__PURE__ */ jsxRuntime.jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-lg whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-colors ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className), ...props, children: [
978
1034
  startIcon,
979
1035
  children
980
1036
  ] });
@@ -983,71 +1039,72 @@
983
1039
  t26 = ref;
984
1040
  t27 = props.type ?? "button";
985
1041
  t28 = props.onClick;
986
- t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, className);
1042
+ t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-lg whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-colors ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className);
987
1043
  }
988
1044
  $[11] = Component;
989
1045
  $[12] = children;
990
1046
  $[13] = className;
991
- $[14] = disabled;
992
- $[15] = fullWidth;
993
- $[16] = props;
994
- $[17] = ref;
995
- $[18] = size;
996
- $[19] = startIcon;
997
- $[20] = t10;
998
- $[21] = t11;
999
- $[22] = t12;
1000
- $[23] = t13;
1001
- $[24] = t14;
1002
- $[25] = t15;
1003
- $[26] = t16;
1004
- $[27] = t17;
1005
- $[28] = t18;
1006
- $[29] = t19;
1007
- $[30] = t20;
1008
- $[31] = t21;
1009
- $[32] = t22;
1010
- $[33] = t23;
1011
- $[34] = t24;
1012
- $[35] = t25;
1013
- $[36] = t7;
1014
- $[37] = t8;
1015
- $[38] = t9;
1016
- $[39] = t26;
1017
- $[40] = t27;
1018
- $[41] = t28;
1019
- $[42] = t29;
1020
- $[43] = t30;
1021
- } else {
1022
- t26 = $[39];
1023
- t27 = $[40];
1024
- t28 = $[41];
1025
- t29 = $[42];
1026
- t30 = $[43];
1047
+ $[14] = color;
1048
+ $[15] = disabled;
1049
+ $[16] = fullWidth;
1050
+ $[17] = props;
1051
+ $[18] = ref;
1052
+ $[19] = size;
1053
+ $[20] = startIcon;
1054
+ $[21] = t10;
1055
+ $[22] = t11;
1056
+ $[23] = t12;
1057
+ $[24] = t13;
1058
+ $[25] = t14;
1059
+ $[26] = t15;
1060
+ $[27] = t16;
1061
+ $[28] = t17;
1062
+ $[29] = t18;
1063
+ $[30] = t19;
1064
+ $[31] = t20;
1065
+ $[32] = t21;
1066
+ $[33] = t22;
1067
+ $[34] = t23;
1068
+ $[35] = t24;
1069
+ $[36] = t25;
1070
+ $[37] = t7;
1071
+ $[38] = t8;
1072
+ $[39] = t9;
1073
+ $[40] = t26;
1074
+ $[41] = t27;
1075
+ $[42] = t28;
1076
+ $[43] = t29;
1077
+ $[44] = t30;
1078
+ } else {
1079
+ t26 = $[40];
1080
+ t27 = $[41];
1081
+ t28 = $[42];
1082
+ t29 = $[43];
1083
+ t30 = $[44];
1027
1084
  }
1028
1085
  if (t30 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
1029
1086
  return t30;
1030
1087
  }
1031
1088
  const t31 = props;
1032
1089
  let t32;
1033
- if ($[44] !== children || $[45] !== disabled || $[46] !== size || $[47] !== startIcon || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t31 || $[53] !== variant) {
1090
+ if ($[45] !== children || $[46] !== disabled || $[47] !== size || $[48] !== startIcon || $[49] !== t26 || $[50] !== t27 || $[51] !== t28 || $[52] !== t29 || $[53] !== t31 || $[54] !== variant) {
1034
1091
  t32 = /* @__PURE__ */ jsxRuntime.jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, "data-variant": variant, "data-size": size, ...t31, children: [
1035
1092
  startIcon,
1036
1093
  children
1037
1094
  ] });
1038
- $[44] = children;
1039
- $[45] = disabled;
1040
- $[46] = size;
1041
- $[47] = startIcon;
1042
- $[48] = t26;
1043
- $[49] = t27;
1044
- $[50] = t28;
1045
- $[51] = t29;
1046
- $[52] = t31;
1047
- $[53] = variant;
1048
- $[54] = t32;
1049
- } else {
1050
- t32 = $[54];
1095
+ $[45] = children;
1096
+ $[46] = disabled;
1097
+ $[47] = size;
1098
+ $[48] = startIcon;
1099
+ $[49] = t26;
1100
+ $[50] = t27;
1101
+ $[51] = t28;
1102
+ $[52] = t29;
1103
+ $[53] = t31;
1104
+ $[54] = variant;
1105
+ $[55] = t32;
1106
+ } else {
1107
+ t32 = $[55];
1051
1108
  }
1052
1109
  return t32;
1053
1110
  }));
@@ -1124,6 +1181,7 @@
1124
1181
  }
1125
1182
  return t6;
1126
1183
  });
1184
+ Card.displayName = "Card";
1127
1185
  const containerMaxWidths = {
1128
1186
  xs: "max-w-xs",
1129
1187
  sm: "max-w-sm",
@@ -1205,7 +1263,7 @@
1205
1263
  const t1 = fullScreen ? "h-screen" : "h-full";
1206
1264
  let t2;
1207
1265
  if ($[7] !== outerClassName || $[8] !== t1) {
1208
- t2 = cls("flex flex-col flex-grow", t1, outerClassName);
1266
+ t2 = cls("flex flex-col grow", t1, outerClassName);
1209
1267
  $[7] = outerClassName;
1210
1268
  $[8] = t1;
1211
1269
  $[9] = t2;
@@ -32246,7 +32304,7 @@
32246
32304
  return t0;
32247
32305
  });
32248
32306
  ZoomOutMapIcon.displayName = "ZoomOutMapIcon";
32249
- const sizeClasses$1 = {
32307
+ const sizeClasses$2 = {
32250
32308
  large: "w-6 h-6 rounded flex items-center justify-center",
32251
32309
  medium: "w-5 h-5 rounded flex items-center justify-center",
32252
32310
  small: "w-4 h-4 rounded flex items-center justify-center",
@@ -32256,20 +32314,20 @@
32256
32314
  medium: "w-10 h-10",
32257
32315
  small: "w-8 h-8",
32258
32316
  large: "w-12 h-12 ",
32259
- smallest: "w-6 h-6"
32317
+ smallest: "w-8 h-8"
32260
32318
  };
32261
32319
  const paddingClasses = {
32262
32320
  medium: "p-2",
32263
32321
  small: "p-2",
32264
32322
  large: "p-2",
32265
- smallest: ""
32323
+ smallest: "p-2"
32266
32324
  };
32267
32325
  const colorClasses$2 = {
32268
32326
  primary: "bg-primary",
32269
32327
  secondary: "bg-secondary"
32270
32328
  };
32271
32329
  const Checkbox = React.memo((t0) => {
32272
- const $ = reactCompilerRuntime.c(25);
32330
+ const $ = reactCompilerRuntime.c(27);
32273
32331
  const {
32274
32332
  id,
32275
32333
  checked,
@@ -32278,7 +32336,8 @@
32278
32336
  disabled,
32279
32337
  size: t3,
32280
32338
  onCheckedChange,
32281
- color: t4
32339
+ color: t4,
32340
+ "aria-label": ariaLabel
32282
32341
  } = t0;
32283
32342
  const indeterminate = t1 === void 0 ? false : t1;
32284
32343
  const padding = t2 === void 0 ? true : t2;
@@ -32287,89 +32346,109 @@
32287
32346
  const isChecked = indeterminate ? false : checked;
32288
32347
  const iconSize = size === "medium" ? 20 : size === "small" ? 16 : size === "smallest" ? 14 : 24;
32289
32348
  const t5 = indeterminate || isChecked;
32290
- const t6 = disabled ? void 0 : onCheckedChange;
32291
- const t7 = padding ? paddingClasses[size] : "";
32292
- const t8 = outerSizeClasses[size];
32293
- const t9 = 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" : "";
32294
- const t10 = onCheckedChange ? "cursor-pointer" : "cursor-default";
32295
- let t11;
32296
- if ($[0] !== t10 || $[1] !== t7 || $[2] !== t8 || $[3] !== t9) {
32297
- t11 = cls(t7, t8, "inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150", t9, t10);
32349
+ const t6 = indeterminate ? "mixed" : isChecked;
32350
+ const t7 = disabled ? void 0 : onCheckedChange;
32351
+ const t8 = padding ? paddingClasses[size] : "";
32352
+ const t9 = outerSizeClasses[size];
32353
+ 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" : "";
32354
+ const t11 = onCheckedChange ? "cursor-pointer" : "cursor-default";
32355
+ let t12;
32356
+ if ($[0] !== t10 || $[1] !== t11 || $[2] !== t8 || $[3] !== t9) {
32357
+ t12 = cls(t8, t9, "inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150", t10, t11);
32298
32358
  $[0] = t10;
32299
- $[1] = t7;
32359
+ $[1] = t11;
32300
32360
  $[2] = t8;
32301
32361
  $[3] = t9;
32302
- $[4] = t11;
32362
+ $[4] = t12;
32303
32363
  } else {
32304
- t11 = $[4];
32364
+ t12 = $[4];
32305
32365
  }
32306
- const t12 = sizeClasses$1[size];
32307
- const t13 = 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";
32308
- const t14 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
32309
- const t15 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-200";
32310
- let t16;
32311
- if ($[5] !== t12 || $[6] !== t13 || $[7] !== t14 || $[8] !== t15) {
32312
- t16 = cls("border-2 relative transition-colors ease-in-out duration-150", t12, t13, t14, t15);
32313
- $[5] = t12;
32314
- $[6] = t13;
32315
- $[7] = t14;
32316
- $[8] = t15;
32317
- $[9] = t16;
32366
+ const t13 = sizeClasses$2[size];
32367
+ 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";
32368
+ const t15 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
32369
+ const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-500";
32370
+ let t17;
32371
+ if ($[5] !== t13 || $[6] !== t14 || $[7] !== t15 || $[8] !== t16) {
32372
+ t17 = cls("border-2 relative transition-colors ease-in-out duration-150", t13, t14, t15, t16);
32373
+ $[5] = t13;
32374
+ $[6] = t14;
32375
+ $[7] = t15;
32376
+ $[8] = t16;
32377
+ $[9] = t17;
32318
32378
  } else {
32319
- t16 = $[9];
32379
+ t17 = $[9];
32320
32380
  }
32321
- let t17;
32381
+ let t18;
32322
32382
  if ($[10] !== iconSize || $[11] !== indeterminate) {
32323
- t17 = /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(RemoveIcon, { size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { size: iconSize, className: "absolute" }) });
32383
+ t18 = /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(RemoveIcon, { size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { size: iconSize, className: "absolute" }) });
32324
32384
  $[10] = iconSize;
32325
32385
  $[11] = indeterminate;
32326
- $[12] = t17;
32386
+ $[12] = t18;
32327
32387
  } else {
32328
- t17 = $[12];
32329
- }
32330
- let t18;
32331
- if ($[13] !== t16 || $[14] !== t17) {
32332
- t18 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t16, children: t17 });
32333
- $[13] = t16;
32334
- $[14] = t17;
32335
- $[15] = t18;
32336
- } else {
32337
- t18 = $[15];
32388
+ t18 = $[12];
32338
32389
  }
32339
32390
  let t19;
32340
- if ($[16] !== t11 || $[17] !== t18) {
32341
- t19 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t11, children: t18 });
32342
- $[16] = t11;
32343
- $[17] = t18;
32344
- $[18] = t19;
32391
+ if ($[13] !== t17 || $[14] !== t18) {
32392
+ t19 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t17, children: t18 });
32393
+ $[13] = t17;
32394
+ $[14] = t18;
32395
+ $[15] = t19;
32345
32396
  } else {
32346
- t19 = $[18];
32397
+ t19 = $[15];
32347
32398
  }
32348
32399
  let t20;
32349
- if ($[19] !== disabled || $[20] !== id || $[21] !== t19 || $[22] !== t5 || $[23] !== t6) {
32350
- t20 = /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Root, { id, checked: t5, disabled, onCheckedChange: t6, children: t19 });
32351
- $[19] = disabled;
32352
- $[20] = id;
32353
- $[21] = t19;
32354
- $[22] = t5;
32355
- $[23] = t6;
32356
- $[24] = t20;
32400
+ if ($[16] !== t12 || $[17] !== t19) {
32401
+ t20 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t12, children: t19 });
32402
+ $[16] = t12;
32403
+ $[17] = t19;
32404
+ $[18] = t20;
32405
+ } else {
32406
+ t20 = $[18];
32407
+ }
32408
+ let t21;
32409
+ if ($[19] !== ariaLabel || $[20] !== disabled || $[21] !== id || $[22] !== t20 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
32410
+ t21 = /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Root, { id, checked: t5, disabled, "aria-label": ariaLabel, "aria-checked": t6, onCheckedChange: t7, children: t20 });
32411
+ $[19] = ariaLabel;
32412
+ $[20] = disabled;
32413
+ $[21] = id;
32414
+ $[22] = t20;
32415
+ $[23] = t5;
32416
+ $[24] = t6;
32417
+ $[25] = t7;
32418
+ $[26] = t21;
32357
32419
  } else {
32358
- t20 = $[24];
32420
+ t21 = $[26];
32359
32421
  }
32360
- return t20;
32422
+ return t21;
32361
32423
  });
32424
+ Checkbox.displayName = "Checkbox";
32362
32425
  const sizeClassNames = {
32426
+ smallest: "px-1.5 py-px text-[10px]",
32363
32427
  small: "px-2 py-0.5 text-sm",
32364
32428
  medium: "px-3 py-1 text-sm",
32365
32429
  large: "px-4 py-1.5 text-sm"
32366
32430
  };
32431
+ function isDarkMode() {
32432
+ return typeof document !== "undefined" && document.documentElement.classList.contains("dark");
32433
+ }
32434
+ function getRgba(hex, alpha) {
32435
+ if (!hex || !hex.startsWith("#")) return hex;
32436
+ let color = hex.slice(1);
32437
+ if (color.length === 3) {
32438
+ color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
32439
+ }
32440
+ const r = parseInt(color.slice(0, 2), 16);
32441
+ const g = parseInt(color.slice(2, 4), 16);
32442
+ const b = parseInt(color.slice(4, 6), 16);
32443
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
32444
+ }
32367
32445
  const Chip = React.forwardRef(function Chip2(t0, ref) {
32368
- const $ = reactCompilerRuntime.c(19);
32446
+ const $ = reactCompilerRuntime.c(25);
32369
32447
  const {
32370
32448
  children,
32371
32449
  colorScheme,
32372
32450
  error,
32451
+ outlined,
32373
32452
  onClick,
32374
32453
  icon,
32375
32454
  size: t1,
@@ -32386,56 +32465,180 @@
32386
32465
  t2 = $[1];
32387
32466
  }
32388
32467
  const usedColorScheme = t2;
32389
- const t3 = onClick ? "cursor-pointer hover:bg-surface-accent-300 hover:dark:bg-surface-accent-700" : "";
32390
- const t4 = sizeClassNames[size];
32391
- const t5 = error || !usedColorScheme ? "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white" : "";
32392
- const t6 = error ? "text-red-500 dark:text-red-400" : "";
32468
+ const dark = isDarkMode();
32469
+ const hasScheme = Boolean(error || usedColorScheme);
32470
+ let textColor = "";
32471
+ let bgColor = "";
32472
+ let border = "";
32473
+ if (error) {
32474
+ textColor = dark ? "#f87171" : "#dc2626";
32475
+ } else {
32476
+ if (usedColorScheme) {
32477
+ textColor = dark && usedColorScheme.darkText ? usedColorScheme.darkText : usedColorScheme.text;
32478
+ }
32479
+ }
32480
+ if (hasScheme) {
32481
+ if (outlined) {
32482
+ let t32;
32483
+ if ($[2] !== textColor) {
32484
+ t32 = getRgba(textColor, dark ? 0.1 : 0.06);
32485
+ $[2] = textColor;
32486
+ $[3] = t32;
32487
+ } else {
32488
+ t32 = $[3];
32489
+ }
32490
+ bgColor = t32;
32491
+ border = `1px solid ${getRgba(textColor, dark ? 0.2 : 0.14)}`;
32492
+ } else {
32493
+ if (error) {
32494
+ bgColor = dark ? "rgba(220, 38, 38, 0.15)" : "rgba(239, 68, 68, 0.1)";
32495
+ border = `1px solid ${dark ? "rgba(220, 38, 38, 0.3)" : "rgba(239, 68, 68, 0.2)"}`;
32496
+ } else {
32497
+ if (usedColorScheme) {
32498
+ bgColor = dark && usedColorScheme.darkColor ? usedColorScheme.darkColor : usedColorScheme.color;
32499
+ }
32500
+ }
32501
+ }
32502
+ }
32503
+ const t3 = !hasScheme && "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white";
32504
+ const t4 = !hasScheme && outlined && "bg-transparent dark:bg-transparent border border-surface-accent-300 dark:border-surface-accent-700";
32505
+ const t5 = onClick ? "cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/5" : "";
32506
+ const t6 = sizeClassNames[size];
32393
32507
  let t7;
32394
- if ($[2] !== className || $[3] !== t3 || $[4] !== t4 || $[5] !== t5 || $[6] !== t6) {
32395
- t7 = cls("rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1", "text-ellipsis", "items-center", t3, t4, t5, t6, className);
32396
- $[2] = className;
32397
- $[3] = t3;
32398
- $[4] = t4;
32399
- $[5] = t5;
32400
- $[6] = t6;
32401
- $[7] = t7;
32508
+ if ($[4] !== className || $[5] !== t3 || $[6] !== t4 || $[7] !== t5 || $[8] !== t6) {
32509
+ 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);
32510
+ $[4] = className;
32511
+ $[5] = t3;
32512
+ $[6] = t4;
32513
+ $[7] = t5;
32514
+ $[8] = t6;
32515
+ $[9] = t7;
32402
32516
  } else {
32403
- t7 = $[7];
32517
+ t7 = $[9];
32404
32518
  }
32405
- const t8 = error || !usedColorScheme ? void 0 : usedColorScheme.color;
32406
- const t9 = error || !usedColorScheme ? void 0 : usedColorScheme.text;
32407
- let t10;
32408
- if ($[8] !== style || $[9] !== t8 || $[10] !== t9) {
32409
- t10 = {
32410
- backgroundColor: t8,
32411
- color: t9,
32519
+ let t8;
32520
+ if ($[10] !== bgColor || $[11] !== border || $[12] !== hasScheme || $[13] !== textColor) {
32521
+ t8 = hasScheme ? {
32522
+ backgroundColor: bgColor,
32523
+ color: textColor,
32524
+ border: border || void 0
32525
+ } : {};
32526
+ $[10] = bgColor;
32527
+ $[11] = border;
32528
+ $[12] = hasScheme;
32529
+ $[13] = textColor;
32530
+ $[14] = t8;
32531
+ } else {
32532
+ t8 = $[14];
32533
+ }
32534
+ let t9;
32535
+ if ($[15] !== style || $[16] !== t8) {
32536
+ t9 = {
32537
+ ...t8,
32412
32538
  overflow: "hidden",
32413
32539
  ...style
32414
32540
  };
32415
- $[8] = style;
32416
- $[9] = t8;
32417
- $[10] = t9;
32418
- $[11] = t10;
32541
+ $[15] = style;
32542
+ $[16] = t8;
32543
+ $[17] = t9;
32419
32544
  } else {
32420
- t10 = $[11];
32545
+ t9 = $[17];
32421
32546
  }
32422
- let t11;
32423
- if ($[12] !== children || $[13] !== icon || $[14] !== onClick || $[15] !== ref || $[16] !== t10 || $[17] !== t7) {
32424
- t11 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: t7, onClick, style: t10, children: [
32547
+ let t10;
32548
+ if ($[18] !== children || $[19] !== icon || $[20] !== onClick || $[21] !== ref || $[22] !== t7 || $[23] !== t9) {
32549
+ t10 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: t7, onClick, style: t9, children: [
32550
+ icon,
32551
+ children
32552
+ ] });
32553
+ $[18] = children;
32554
+ $[19] = icon;
32555
+ $[20] = onClick;
32556
+ $[21] = ref;
32557
+ $[22] = t7;
32558
+ $[23] = t9;
32559
+ $[24] = t10;
32560
+ } else {
32561
+ t10 = $[24];
32562
+ }
32563
+ return t10;
32564
+ });
32565
+ const sizeClasses$1 = {
32566
+ small: "px-2 py-0.5 text-xs",
32567
+ medium: "px-2.5 py-1 text-xs"
32568
+ };
32569
+ const FilterChip = React.forwardRef(function FilterChip2(t0, ref) {
32570
+ const $ = reactCompilerRuntime.c(22);
32571
+ let children;
32572
+ let className;
32573
+ let icon;
32574
+ let onClick;
32575
+ let rest;
32576
+ let t1;
32577
+ let t2;
32578
+ let t3;
32579
+ if ($[0] !== t0) {
32580
+ ({
32425
32581
  children,
32426
- icon
32582
+ active: t1,
32583
+ onClick,
32584
+ icon,
32585
+ size: t2,
32586
+ className,
32587
+ disabled: t3,
32588
+ ...rest
32589
+ } = t0);
32590
+ $[0] = t0;
32591
+ $[1] = children;
32592
+ $[2] = className;
32593
+ $[3] = icon;
32594
+ $[4] = onClick;
32595
+ $[5] = rest;
32596
+ $[6] = t1;
32597
+ $[7] = t2;
32598
+ $[8] = t3;
32599
+ } else {
32600
+ children = $[1];
32601
+ className = $[2];
32602
+ icon = $[3];
32603
+ onClick = $[4];
32604
+ rest = $[5];
32605
+ t1 = $[6];
32606
+ t2 = $[7];
32607
+ t3 = $[8];
32608
+ }
32609
+ const active = t1 === void 0 ? false : t1;
32610
+ const size = t2 === void 0 ? "medium" : t2;
32611
+ const disabled = t3 === void 0 ? false : t3;
32612
+ const t4 = sizeClasses$1[size];
32613
+ let t5;
32614
+ if ($[9] !== active || $[10] !== className || $[11] !== disabled || $[12] !== t4) {
32615
+ 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);
32616
+ $[9] = active;
32617
+ $[10] = className;
32618
+ $[11] = disabled;
32619
+ $[12] = t4;
32620
+ $[13] = t5;
32621
+ } else {
32622
+ t5 = $[13];
32623
+ }
32624
+ let t6;
32625
+ if ($[14] !== children || $[15] !== disabled || $[16] !== icon || $[17] !== onClick || $[18] !== ref || $[19] !== rest || $[20] !== t5) {
32626
+ t6 = /* @__PURE__ */ jsxRuntime.jsxs("button", { ref, type: "button", onClick, disabled, className: t5, ...rest, children: [
32627
+ icon,
32628
+ children
32427
32629
  ] });
32428
- $[12] = children;
32429
- $[13] = icon;
32430
- $[14] = onClick;
32431
- $[15] = ref;
32432
- $[16] = t10;
32433
- $[17] = t7;
32434
- $[18] = t11;
32630
+ $[14] = children;
32631
+ $[15] = disabled;
32632
+ $[16] = icon;
32633
+ $[17] = onClick;
32634
+ $[18] = ref;
32635
+ $[19] = rest;
32636
+ $[20] = t5;
32637
+ $[21] = t6;
32435
32638
  } else {
32436
- t11 = $[18];
32639
+ t6 = $[21];
32437
32640
  }
32438
- return t11;
32641
+ return t6;
32439
32642
  });
32440
32643
  const Tooltip = React.forwardRef((t0, ref) => {
32441
32644
  const $ = reactCompilerRuntime.c(47);
@@ -32512,7 +32715,7 @@
32512
32715
  const side = t1 === void 0 ? "bottom" : t1;
32513
32716
  const delayDuration = t2 === void 0 ? 200 : t2;
32514
32717
  const asChild = t3 === void 0 ? false : t3;
32515
- useInjectStyles("Tooltip", styles);
32718
+ useInjectStyles("Tooltip", styles$1);
32516
32719
  const contextContainer = usePortalContainer();
32517
32720
  const finalContainer = container ?? contextContainer ?? void 0;
32518
32721
  if (!title) {
@@ -32597,7 +32800,7 @@
32597
32800
  }
32598
32801
  return t10;
32599
32802
  });
32600
- const styles = `
32803
+ const styles$1 = `
32601
32804
 
32602
32805
  .TooltipContent {
32603
32806
  animation-duration: 220ms;
@@ -32743,13 +32946,13 @@
32743
32946
  }
32744
32947
  return t7;
32745
32948
  }
32746
- const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-105 transition-transform";
32949
+ const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-[1.04] active:scale-95 transition-transform";
32747
32950
  const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
32748
- const colorClasses$1 = "text-surface-accent-600 visited:text-surface-accent-600 dark:text-surface-accent-300 dark:visited:text-surface-300";
32951
+ const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
32749
32952
  const sizeClasses = {
32750
32953
  medium: "w-10 !h-10 min-w-10 min-h-10",
32751
32954
  small: "w-8 !h-8 min-w-8 min-h-8",
32752
- smallest: "w-6 !h-6 min-w-6 min-h-6",
32955
+ smallest: "w-7 !h-7 min-w-7 min-h-7",
32753
32956
  large: "w-12 !h-12 min-w-12 min-h-12"
32754
32957
  };
32755
32958
  const shapeClasses = {
@@ -32757,7 +32960,7 @@
32757
32960
  square: "rounded-md"
32758
32961
  };
32759
32962
  const IconButtonInner = (t0, ref) => {
32760
- const $ = reactCompilerRuntime.c(23);
32963
+ const $ = reactCompilerRuntime.c(27);
32761
32964
  let children;
32762
32965
  let className;
32763
32966
  let component;
@@ -32803,42 +33006,51 @@
32803
33006
  const size = t1 === void 0 ? "medium" : t1;
32804
33007
  const variant = t2 === void 0 ? "ghost" : t2;
32805
33008
  const shape = t3 === void 0 ? "circular" : t3;
32806
- const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 bg-surface-accent-200/50 dark:bg-surface-950 dark:bg-opacity-50 dark:bg-surface-950/50";
33009
+ const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 bg-surface-accent-200/50 dark:bg-surface-900 dark:bg-opacity-50 dark:bg-surface-900/50";
32807
33010
  const Component = component || "button";
32808
- const t4 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
32809
- const t5 = toggled ? "outline outline-2 outline-primary" : "";
32810
- const t6 = shapeClasses[shape];
32811
- const t7 = sizeClasses[size];
32812
- let t8;
32813
- if ($[10] !== bgClasses || $[11] !== className || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
32814
- t8 = cls(t4, t5, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t6, t7, className);
33011
+ const isNativeButton = Component === "button";
33012
+ const t4 = isNativeButton ? "button" : void 0;
33013
+ const t5 = isNativeButton ? void 0 : "button";
33014
+ const t6 = disabled || void 0;
33015
+ const t7 = disabled ? -1 : void 0;
33016
+ const t8 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
33017
+ const t9 = toggled ? "outline outline-2 outline-primary" : "";
33018
+ const t10 = shapeClasses[shape];
33019
+ const t11 = sizeClasses[size];
33020
+ let t12;
33021
+ if ($[10] !== bgClasses || $[11] !== className || $[12] !== t10 || $[13] !== t11 || $[14] !== t8 || $[15] !== t9) {
33022
+ t12 = cls(t8, t9, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t10, t11, className);
32815
33023
  $[10] = bgClasses;
32816
33024
  $[11] = className;
32817
- $[12] = t4;
32818
- $[13] = t5;
32819
- $[14] = t6;
32820
- $[15] = t7;
32821
- $[16] = t8;
33025
+ $[12] = t10;
33026
+ $[13] = t11;
33027
+ $[14] = t8;
33028
+ $[15] = t9;
33029
+ $[16] = t12;
32822
33030
  } else {
32823
- t8 = $[16];
33031
+ t12 = $[16];
32824
33032
  }
32825
- let t9;
32826
- if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !== t8) {
32827
- t9 = /* @__PURE__ */ jsxRuntime.jsx(Component, { type: "button", ref, ...props, className: t8, children });
33033
+ let t13;
33034
+ if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !== t12 || $[22] !== t4 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
33035
+ t13 = /* @__PURE__ */ jsxRuntime.jsx(Component, { type: t4, role: t5, "aria-disabled": t6, tabIndex: t7, ref, ...props, className: t12, children });
32828
33036
  $[17] = Component;
32829
33037
  $[18] = children;
32830
33038
  $[19] = props;
32831
33039
  $[20] = ref;
32832
- $[21] = t8;
32833
- $[22] = t9;
33040
+ $[21] = t12;
33041
+ $[22] = t4;
33042
+ $[23] = t5;
33043
+ $[24] = t6;
33044
+ $[25] = t7;
33045
+ $[26] = t13;
32834
33046
  } else {
32835
- t9 = $[22];
33047
+ t13 = $[26];
32836
33048
  }
32837
- return t9;
33049
+ return t13;
32838
33050
  };
32839
33051
  const IconButton = React.forwardRef(IconButtonInner);
32840
33052
  const defaultClasses = {
32841
- root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-overflow-ellipsis max-w-full",
33053
+ root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-ellipsis max-w-full",
32842
33054
  shrink: "transform translate-y-[2px] scale-75 translate-x-[12px]",
32843
33055
  expanded: "translate-x-[16px] top-0 transform translate-y-[16px] scale-100"
32844
33056
  };
@@ -32869,7 +33081,7 @@
32869
33081
  [defaultClasses.shrink]: shrink,
32870
33082
  [defaultClasses.expanded]: t0
32871
33083
  }, className);
32872
- t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", defaultBorderMixin, computedClassName);
33084
+ t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", defaultBorderMixin, computedClassName);
32873
33085
  $[4] = className;
32874
33086
  $[5] = shrink;
32875
33087
  $[6] = t0;
@@ -33250,7 +33462,7 @@
33250
33462
  full: "max-w-full w-full"
33251
33463
  };
33252
33464
  const Dialog = (t0) => {
33253
- const $ = reactCompilerRuntime.c(45);
33465
+ const $ = reactCompilerRuntime.c(46);
33254
33466
  const {
33255
33467
  open,
33256
33468
  onOpenChange,
@@ -33268,7 +33480,8 @@
33268
33480
  onPointerDownOutside,
33269
33481
  onInteractOutside,
33270
33482
  disableInitialFocus: t5,
33271
- portalContainer
33483
+ portalContainer,
33484
+ "aria-describedby": ariaDescribedby
33272
33485
  } = t0;
33273
33486
  const fullWidth = t1 === void 0 ? true : t1;
33274
33487
  const scrollable = t2 === void 0 ? true : t2;
@@ -33289,7 +33502,7 @@
33289
33502
  return () => clearTimeout(timeout);
33290
33503
  } else {
33291
33504
  setDisplayed(true);
33292
- return _temp$4;
33505
+ return _temp$5;
33293
33506
  }
33294
33507
  };
33295
33508
  t7 = [open];
@@ -33313,7 +33526,7 @@
33313
33526
  const t10 = displayed && open ? "opacity-100" : "opacity-0";
33314
33527
  let t11;
33315
33528
  if ($[5] !== t10) {
33316
- t11 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black dark:bg-opacity-60 dark:bg-black/60 bg-opacity-50 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");
33529
+ t11 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black/50 dark:bg-black/60 backdrop-blur-sm", t10, "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center");
33317
33530
  $[5] = t10;
33318
33531
  $[6] = t11;
33319
33532
  } else {
@@ -33355,16 +33568,16 @@
33355
33568
  }
33356
33569
  let t16;
33357
33570
  if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
33358
- t16 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
33571
+ t16 = cls("relative h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
33359
33572
  $[15] = t16;
33360
33573
  } else {
33361
33574
  t16 = $[15];
33362
33575
  }
33363
33576
  const t17 = fullWidth && !fullScreen ? "w-11/12" : void 0;
33364
33577
  const t18 = fullHeight && !fullScreen ? "h-full" : void 0;
33365
- const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl";
33578
+ const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-lg";
33366
33579
  const t20 = scrollable && "overflow-y-auto";
33367
- const t21 = displayed && open ? "opacity-100" : "opacity-0";
33580
+ const t21 = displayed && open ? "opacity-100 scale-100" : "opacity-0 scale-[0.97]";
33368
33581
  const t22 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
33369
33582
  let t23;
33370
33583
  if ($[16] !== className || $[17] !== t17 || $[18] !== t18 || $[19] !== t19 || $[20] !== t20 || $[21] !== t21 || $[22] !== t22) {
@@ -33390,53 +33603,54 @@
33390
33603
  t24 = $[26];
33391
33604
  }
33392
33605
  let t25;
33393
- if ($[27] !== onEscapeKeyDown || $[28] !== onInteractOutside || $[29] !== onPointerDownOutside || $[30] !== t15 || $[31] !== t24) {
33394
- t25 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, className: t16, children: t24 });
33395
- $[27] = onEscapeKeyDown;
33396
- $[28] = onInteractOutside;
33397
- $[29] = onPointerDownOutside;
33398
- $[30] = t15;
33399
- $[31] = t24;
33400
- $[32] = t25;
33401
- } else {
33402
- t25 = $[32];
33606
+ if ($[27] !== ariaDescribedby || $[28] !== onEscapeKeyDown || $[29] !== onInteractOutside || $[30] !== onPointerDownOutside || $[31] !== t15 || $[32] !== t24) {
33607
+ t25 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, "aria-describedby": ariaDescribedby, className: t16, children: t24 });
33608
+ $[27] = ariaDescribedby;
33609
+ $[28] = onEscapeKeyDown;
33610
+ $[29] = onInteractOutside;
33611
+ $[30] = onPointerDownOutside;
33612
+ $[31] = t15;
33613
+ $[32] = t24;
33614
+ $[33] = t25;
33615
+ } else {
33616
+ t25 = $[33];
33403
33617
  }
33404
33618
  let t26;
33405
- if ($[33] !== t14 || $[34] !== t25 || $[35] !== t9) {
33619
+ if ($[34] !== t14 || $[35] !== t25 || $[36] !== t9) {
33406
33620
  t26 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t9, children: [
33407
33621
  t14,
33408
33622
  t25
33409
33623
  ] });
33410
- $[33] = t14;
33411
- $[34] = t25;
33412
- $[35] = t9;
33413
- $[36] = t26;
33624
+ $[34] = t14;
33625
+ $[35] = t25;
33626
+ $[36] = t9;
33627
+ $[37] = t26;
33414
33628
  } else {
33415
- t26 = $[36];
33629
+ t26 = $[37];
33416
33630
  }
33417
33631
  let t27;
33418
- if ($[37] !== finalContainer || $[38] !== t26) {
33632
+ if ($[38] !== finalContainer || $[39] !== t26) {
33419
33633
  t27 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: finalContainer, children: t26 });
33420
- $[37] = finalContainer;
33421
- $[38] = t26;
33422
- $[39] = t27;
33634
+ $[38] = finalContainer;
33635
+ $[39] = t26;
33636
+ $[40] = t27;
33423
33637
  } else {
33424
- t27 = $[39];
33638
+ t27 = $[40];
33425
33639
  }
33426
33640
  let t28;
33427
- if ($[40] !== modal || $[41] !== onOpenChange || $[42] !== t27 || $[43] !== t8) {
33641
+ if ($[41] !== modal || $[42] !== onOpenChange || $[43] !== t27 || $[44] !== t8) {
33428
33642
  t28 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { open: t8, modal, onOpenChange, children: t27 });
33429
- $[40] = modal;
33430
- $[41] = onOpenChange;
33431
- $[42] = t27;
33432
- $[43] = t8;
33433
- $[44] = t28;
33643
+ $[41] = modal;
33644
+ $[42] = onOpenChange;
33645
+ $[43] = t27;
33646
+ $[44] = t8;
33647
+ $[45] = t28;
33434
33648
  } else {
33435
- t28 = $[44];
33649
+ t28 = $[45];
33436
33650
  }
33437
33651
  return t28;
33438
33652
  };
33439
- function _temp$4() {
33653
+ function _temp$5() {
33440
33654
  }
33441
33655
  function DialogActions(t0) {
33442
33656
  const $ = reactCompilerRuntime.c(7);
@@ -33589,7 +33803,7 @@
33589
33803
  return title;
33590
33804
  }
33591
33805
  function ExpandablePanel(t0) {
33592
- const $ = reactCompilerRuntime.c(40);
33806
+ const $ = reactCompilerRuntime.c(41);
33593
33807
  const {
33594
33808
  title,
33595
33809
  children,
@@ -33675,7 +33889,7 @@
33675
33889
  const t7 = !invisible && defaultBorderMixin + " border";
33676
33890
  let t8;
33677
33891
  if ($[6] !== className || $[7] !== t7) {
33678
- t8 = cls(t7, "rounded-md", "w-full", className);
33892
+ t8 = cls(t7, "rounded-lg", "w-full", className);
33679
33893
  $[6] = className;
33680
33894
  $[7] = t7;
33681
33895
  $[8] = t8;
@@ -33699,7 +33913,7 @@
33699
33913
  const t13 = asField && fieldBackgroundMixin;
33700
33914
  let t14;
33701
33915
  if ($[11] !== t10 || $[12] !== t11 || $[13] !== t12 || $[14] !== t13 || $[15] !== titleClassName) {
33702
- t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
33916
+ t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40 active:bg-surface-accent-300/50 dark:active:bg-surface-700/50", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
33703
33917
  $[11] = t10;
33704
33918
  $[12] = t11;
33705
33919
  $[13] = t12;
@@ -33727,68 +33941,69 @@
33727
33941
  t17 = $[20];
33728
33942
  }
33729
33943
  let t18;
33730
- if ($[21] !== t14 || $[22] !== t17 || $[23] !== title) {
33731
- t18 = /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t14, role: "button", tabIndex: 0, children: [
33944
+ if ($[21] !== open || $[22] !== t14 || $[23] !== t17 || $[24] !== title) {
33945
+ t18 = /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t14, role: "button", tabIndex: 0, "aria-expanded": open, children: [
33732
33946
  title,
33733
33947
  t17
33734
33948
  ] }) });
33735
- $[21] = t14;
33736
- $[22] = t17;
33737
- $[23] = title;
33738
- $[24] = t18;
33949
+ $[21] = open;
33950
+ $[22] = t14;
33951
+ $[23] = t17;
33952
+ $[24] = title;
33953
+ $[25] = t18;
33739
33954
  } else {
33740
- t18 = $[24];
33955
+ t18 = $[25];
33741
33956
  }
33742
33957
  let t19;
33743
- if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
33958
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
33744
33959
  t19 = cls("CollapsibleContent");
33745
- $[25] = t19;
33960
+ $[26] = t19;
33746
33961
  } else {
33747
- t19 = $[25];
33962
+ t19 = $[26];
33748
33963
  }
33749
33964
  const t20 = allowOverflow ? "visible" : "hidden";
33750
33965
  let t21;
33751
- if ($[26] !== t20) {
33966
+ if ($[27] !== t20) {
33752
33967
  t21 = {
33753
33968
  overflow: t20
33754
33969
  };
33755
- $[26] = t20;
33756
- $[27] = t21;
33970
+ $[27] = t20;
33971
+ $[28] = t21;
33757
33972
  } else {
33758
- t21 = $[27];
33973
+ t21 = $[28];
33759
33974
  }
33760
33975
  let t22;
33761
- if ($[28] !== children || $[29] !== innerClassName) {
33976
+ if ($[29] !== children || $[30] !== innerClassName) {
33762
33977
  t22 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: innerClassName, children });
33763
- $[28] = children;
33764
- $[29] = innerClassName;
33765
- $[30] = t22;
33978
+ $[29] = children;
33979
+ $[30] = innerClassName;
33980
+ $[31] = t22;
33766
33981
  } else {
33767
- t22 = $[30];
33982
+ t22 = $[31];
33768
33983
  }
33769
33984
  let t23;
33770
- if ($[31] !== t21 || $[32] !== t22) {
33985
+ if ($[32] !== t21 || $[33] !== t22) {
33771
33986
  t23 = /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Content, { className: t19, style: t21, children: t22 });
33772
- $[31] = t21;
33773
- $[32] = t22;
33774
- $[33] = t23;
33987
+ $[32] = t21;
33988
+ $[33] = t22;
33989
+ $[34] = t23;
33775
33990
  } else {
33776
- t23 = $[33];
33991
+ t23 = $[34];
33777
33992
  }
33778
33993
  let t24;
33779
- if ($[34] !== open || $[35] !== t18 || $[36] !== t23 || $[37] !== t8 || $[38] !== t9) {
33994
+ if ($[35] !== open || $[36] !== t18 || $[37] !== t23 || $[38] !== t8 || $[39] !== t9) {
33780
33995
  t24 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(Collapsible__namespace.Root, { className: t8, open, onOpenChange: t9, children: [
33781
33996
  t18,
33782
33997
  t23
33783
33998
  ] }) });
33784
- $[34] = open;
33785
- $[35] = t18;
33786
- $[36] = t23;
33787
- $[37] = t8;
33788
- $[38] = t9;
33789
- $[39] = t24;
33999
+ $[35] = open;
34000
+ $[36] = t18;
34001
+ $[37] = t23;
34002
+ $[38] = t8;
34003
+ $[39] = t9;
34004
+ $[40] = t24;
33790
34005
  } else {
33791
- t24 = $[39];
34006
+ t24 = $[40];
33792
34007
  }
33793
34008
  return t24;
33794
34009
  }
@@ -33939,7 +34154,7 @@
33939
34154
  const t2 = colorClasses[mode];
33940
34155
  let t3;
33941
34156
  if ($[0] !== t2) {
33942
- t3 = cls("my-3 py-2 px-4 rounded", t2);
34157
+ t3 = cls("my-3 py-2 px-4 rounded-xs", t2);
33943
34158
  $[0] = t2;
33944
34159
  $[1] = t3;
33945
34160
  } else {
@@ -33984,7 +34199,7 @@
33984
34199
  const t2 = onClick && "hover:cursor-pointer hover:bg-surface-200 dark:hover:bg-surface-800";
33985
34200
  let t3;
33986
34201
  if ($[5] !== className || $[6] !== t1 || $[7] !== t2) {
33987
- t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", t1, t2, defaultBorderMixin, className);
34202
+ t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", t1, t2, defaultBorderMixin, className);
33988
34203
  $[5] = className;
33989
34204
  $[6] = t1;
33990
34205
  $[7] = t2;
@@ -34244,6 +34459,7 @@
34244
34459
  }
34245
34460
  return t9;
34246
34461
  });
34462
+ MenuItem.displayName = "MenuItem";
34247
34463
  function Menubar(t0) {
34248
34464
  const $ = reactCompilerRuntime.c(6);
34249
34465
  const {
@@ -34901,7 +35117,7 @@
34901
35117
  if (orientation === "horizontal") {
34902
35118
  let t1;
34903
35119
  if ($[0] !== className) {
34904
- t1 = cls("dark:bg-opacity-80 dark:bg-surface-800 dark:bg-surface-800/80 bg-surface-100 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-4", className);
35120
+ t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-4", className);
34905
35121
  $[0] = className;
34906
35122
  $[1] = t1;
34907
35123
  } else {
@@ -34920,7 +35136,7 @@
34920
35136
  } else {
34921
35137
  let t1;
34922
35138
  if ($[5] !== className) {
34923
- t1 = cls("dark:bg-opacity-80 dark:bg-surface-800 dark:bg-surface-800/80 bg-surface-100 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-4", className);
35139
+ t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-4", className);
34924
35140
  $[5] = className;
34925
35141
  $[6] = t1;
34926
35142
  } else {
@@ -35052,7 +35268,7 @@
35052
35268
  let t12;
35053
35269
  let t13;
35054
35270
  if ($[9] !== children) {
35055
- t13 = children ? React.Children.map(children, _temp$3)?.filter(Boolean) ?? [] : [];
35271
+ t13 = children ? React.Children.map(children, _temp$4)?.filter(Boolean) ?? [] : [];
35056
35272
  $[9] = children;
35057
35273
  $[10] = t13;
35058
35274
  } else {
@@ -35598,7 +35814,7 @@
35598
35814
  }
35599
35815
  return t7;
35600
35816
  });
35601
- function _temp$3(child) {
35817
+ function _temp$4(child) {
35602
35818
  if (React__namespace.isValidElement(child)) {
35603
35819
  return child.props.value;
35604
35820
  }
@@ -35698,7 +35914,7 @@
35698
35914
  }
35699
35915
  let t1;
35700
35916
  if ($[3] !== className) {
35701
- t1 = cls("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className);
35917
+ t1 = cls("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className);
35702
35918
  $[3] = className;
35703
35919
  $[4] = t1;
35704
35920
  } else {
@@ -36486,7 +36702,7 @@
36486
36702
  }
36487
36703
  const itemValue = child_0.props.value;
36488
36704
  const isSelected = String(value) === String(itemValue);
36489
- return /* @__PURE__ */ jsxRuntime.jsxs(cmdk.Command.Item, { value: String(itemValue), onMouseDown: _temp$2, onSelect: () => handleSelect(String(itemValue)), className: cls("flex flex-row items-center gap-1.5", isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "", "cursor-pointer", "m-0.5", "ring-offset-transparent", "p-1.5 rounded", "aria-[selected=true]:outline-none", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "text-surface-accent-700 dark:text-surface-accent-300", child_0.props.className), children: [
36705
+ return /* @__PURE__ */ jsxRuntime.jsxs(cmdk.Command.Item, { value: String(itemValue), onMouseDown: _temp$3, onSelect: () => handleSelect(String(itemValue)), className: cls("flex flex-row items-center gap-1.5", isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "", "cursor-pointer", "m-0.5", "ring-offset-transparent", "p-1.5 rounded", "aria-[selected=true]:outline-none", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "text-surface-accent-700 dark:text-surface-accent-300", child_0.props.className), children: [
36490
36706
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("w-4 h-4 flex items-center justify-center flex-shrink-0", isSelected ? "text-primary" : "text-transparent"), children: isSelected && /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { size: 14 }) }),
36491
36707
  child_0.props.children ?? child_0.props.value
36492
36708
  ] }, String(itemValue));
@@ -36589,12 +36805,12 @@
36589
36805
  function SearchableSelectItem(_props) {
36590
36806
  return null;
36591
36807
  }
36592
- function _temp$2(e_0) {
36808
+ function _temp$3(e_0) {
36593
36809
  e_0.preventDefault();
36594
36810
  e_0.stopPropagation();
36595
36811
  }
36596
36812
  const Select = React.forwardRef((t0, ref) => {
36597
- const $ = reactCompilerRuntime.c(121);
36813
+ const $ = reactCompilerRuntime.c(123);
36598
36814
  let children;
36599
36815
  let className;
36600
36816
  let disabled;
@@ -36821,7 +37037,7 @@
36821
37037
  const t18 = !fullWidth;
36822
37038
  let t19;
36823
37039
  if ($[43] !== className || $[44] !== fullWidth || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18) {
36824
- t19 = cls("select-none rounded-md text-sm", t12, t13, "relative flex items-center", className, {
37040
+ t19 = cls("select-none rounded-lg text-sm", t12, t13, "relative flex items-center", className, {
36825
37041
  "min-h-[28px]": t14,
36826
37042
  "min-h-[32px]": t15,
36827
37043
  "min-h-[44px]": t16,
@@ -36842,13 +37058,15 @@
36842
37058
  } else {
36843
37059
  t19 = $[52];
36844
37060
  }
36845
- let t20;
37061
+ const t20 = typeof label === "string" ? label : typeof renderValue === "string" ? renderValue : "Select an option";
37062
+ const t21 = error || void 0;
37063
+ let t22;
36846
37064
  if ($[53] !== disabled || $[54] !== error || $[55] !== fullWidth || $[56] !== inputClassName || $[57] !== padding || $[58] !== size) {
36847
- t20 = cls("h-full", padding ? {
37065
+ t22 = cls("h-full", padding ? {
36848
37066
  "px-4": size === "large",
36849
37067
  "px-3": size === "medium",
36850
37068
  "px-2": size === "small" || size === "smallest"
36851
- } : "", "outline-hidden focus:outline-hidden", "outline-none focus:outline-none", "select-none rounded-md 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", {
37069
+ } : "", "outline-hidden focus:outline-hidden", "outline-none focus:outline-none", "select-none rounded-lg text-sm", error ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark", error ? "border border-red-500 dark:border-red-600" : "", disabled ? "text-surface-accent-600 dark:text-surface-accent-400" : "text-surface-accent-800 dark:text-white", "relative flex flex-row items-center", {
36852
37070
  "min-h-[28px]": size === "smallest",
36853
37071
  "min-h-[32px]": size === "small",
36854
37072
  "min-h-[44px]": size === "medium",
@@ -36862,196 +37080,198 @@
36862
37080
  $[56] = inputClassName;
36863
37081
  $[57] = padding;
36864
37082
  $[58] = size;
36865
- $[59] = t20;
37083
+ $[59] = t22;
36866
37084
  } else {
36867
- t20 = $[59];
37085
+ t22 = $[59];
36868
37086
  }
36869
- const t21 = size === "smallest";
36870
- const t22 = size === "small";
36871
- const t23 = size === "medium";
36872
- const t24 = size === "large";
36873
- let t25;
36874
- if ($[60] !== t21 || $[61] !== t22 || $[62] !== t23 || $[63] !== t24) {
36875
- t25 = cls("flex-grow max-w-full flex flex-row gap-2 items-center", "overflow-visible", {
36876
- "min-h-[28px]": t21,
36877
- "min-h-[32px]": t22,
36878
- "min-h-[44px]": t23,
36879
- "min-h-[64px]": t24
37087
+ const t23 = size === "smallest";
37088
+ const t24 = size === "small";
37089
+ const t25 = size === "medium";
37090
+ const t26 = size === "large";
37091
+ let t27;
37092
+ if ($[60] !== t23 || $[61] !== t24 || $[62] !== t25 || $[63] !== t26) {
37093
+ t27 = cls("flex-grow max-w-full flex flex-row gap-2 items-center", "overflow-visible", {
37094
+ "min-h-[28px]": t23,
37095
+ "min-h-[32px]": t24,
37096
+ "min-h-[44px]": t25,
37097
+ "min-h-[64px]": t26
36880
37098
  });
36881
- $[60] = t21;
36882
- $[61] = t22;
36883
- $[62] = t23;
36884
- $[63] = t24;
36885
- $[64] = t25;
37099
+ $[60] = t23;
37100
+ $[61] = t24;
37101
+ $[62] = t25;
37102
+ $[63] = t26;
37103
+ $[64] = t27;
36886
37104
  } else {
36887
- t25 = $[64];
37105
+ t27 = $[64];
36888
37106
  }
36889
- let t26;
37107
+ let t28;
36890
37108
  if ($[65] !== displayChildren || $[66] !== hasValue || $[67] !== placeholder || $[68] !== renderValue || $[69] !== value) {
36891
- t26 = hasValue && value !== void 0 && renderValue ? renderValue(value) : displayChildren || placeholder;
37109
+ t28 = hasValue && value !== void 0 && renderValue ? renderValue(value) : displayChildren || placeholder;
36892
37110
  $[65] = displayChildren;
36893
37111
  $[66] = hasValue;
36894
37112
  $[67] = placeholder;
36895
37113
  $[68] = renderValue;
36896
37114
  $[69] = value;
36897
- $[70] = t26;
37115
+ $[70] = t28;
36898
37116
  } else {
36899
- t26 = $[70];
37117
+ t28 = $[70];
36900
37118
  }
36901
- let t27;
36902
- if ($[71] !== placeholder || $[72] !== t26) {
36903
- t27 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { onClick: _temp$1, placeholder, className: "w-full", children: t26 });
37119
+ let t29;
37120
+ if ($[71] !== placeholder || $[72] !== t28) {
37121
+ t29 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { onClick: _temp$2, placeholder, className: "w-full", children: t28 });
36904
37122
  $[71] = placeholder;
36905
- $[72] = t26;
36906
- $[73] = t27;
37123
+ $[72] = t28;
37124
+ $[73] = t29;
36907
37125
  } else {
36908
- t27 = $[73];
37126
+ t29 = $[73];
36909
37127
  }
36910
- let t28;
36911
- if ($[74] !== ref || $[75] !== t25 || $[76] !== t27) {
36912
- t28 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: t25, children: t27 });
37128
+ let t30;
37129
+ if ($[74] !== ref || $[75] !== t27 || $[76] !== t29) {
37130
+ t30 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: t27, children: t29 });
36913
37131
  $[74] = ref;
36914
- $[75] = t25;
36915
- $[76] = t27;
36916
- $[77] = t28;
37132
+ $[75] = t27;
37133
+ $[76] = t29;
37134
+ $[77] = t30;
36917
37135
  } else {
36918
- t28 = $[77];
37136
+ t30 = $[77];
36919
37137
  }
36920
- const t29 = size === "large" ? "medium" : "small";
36921
- const t30 = open ? "rotate-180" : "";
36922
- const t31 = size === "large";
36923
- const t32 = size === "medium" || size === "small";
36924
- let t33;
36925
- if ($[78] !== t30 || $[79] !== t31 || $[80] !== t32) {
36926
- t33 = cls("transition", t30, {
36927
- "px-2": t31,
36928
- "px-1": t32
37138
+ const t31 = size === "large" ? "medium" : "small";
37139
+ const t32 = open ? "rotate-180" : "";
37140
+ const t33 = size === "large";
37141
+ const t34 = size === "medium" || size === "small";
37142
+ let t35;
37143
+ if ($[78] !== t32 || $[79] !== t33 || $[80] !== t34) {
37144
+ t35 = cls("transition", t32, {
37145
+ "px-2": t33,
37146
+ "px-1": t34
36929
37147
  });
36930
- $[78] = t30;
36931
- $[79] = t31;
36932
- $[80] = t32;
36933
- $[81] = t33;
37148
+ $[78] = t32;
37149
+ $[79] = t33;
37150
+ $[80] = t34;
37151
+ $[81] = t35;
36934
37152
  } else {
36935
- t33 = $[81];
37153
+ t35 = $[81];
36936
37154
  }
36937
- let t34;
36938
- if ($[82] !== t29 || $[83] !== t33) {
36939
- t34 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(KeyboardArrowDownIcon, { size: t29, className: t33 }) });
36940
- $[82] = t29;
36941
- $[83] = t33;
36942
- $[84] = t34;
37155
+ let t36;
37156
+ if ($[82] !== t31 || $[83] !== t35) {
37157
+ t36 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(KeyboardArrowDownIcon, { size: t31, className: t35 }) });
37158
+ $[82] = t31;
37159
+ $[83] = t35;
37160
+ $[84] = t36;
36943
37161
  } else {
36944
- t34 = $[84];
37162
+ t36 = $[84];
36945
37163
  }
36946
- let t35;
36947
- if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !== t28 || $[89] !== t34) {
36948
- t35 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref: inputRef, id, asChild: false, type: "button", className: t20, children: [
36949
- t28,
36950
- t34
37164
+ let t37;
37165
+ if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !== t21 || $[89] !== t22 || $[90] !== t30 || $[91] !== t36) {
37166
+ t37 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref: inputRef, id, asChild: false, type: "button", "aria-label": t20, "aria-invalid": t21, className: t22, children: [
37167
+ t30,
37168
+ t36
36951
37169
  ] });
36952
37170
  $[85] = id;
36953
37171
  $[86] = inputRef;
36954
37172
  $[87] = t20;
36955
- $[88] = t28;
36956
- $[89] = t34;
36957
- $[90] = t35;
37173
+ $[88] = t21;
37174
+ $[89] = t22;
37175
+ $[90] = t30;
37176
+ $[91] = t36;
37177
+ $[92] = t37;
36958
37178
  } else {
36959
- t35 = $[90];
37179
+ t37 = $[92];
36960
37180
  }
36961
- let t36;
36962
- if ($[91] !== endAdornment) {
36963
- t36 = endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("h-full flex items-center absolute right-0 pr-12"), onClick: _temp2, children: endAdornment });
36964
- $[91] = endAdornment;
36965
- $[92] = t36;
37181
+ let t38;
37182
+ if ($[93] !== endAdornment) {
37183
+ t38 = endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("h-full flex items-center absolute right-0 pr-12"), onClick: _temp2, children: endAdornment });
37184
+ $[93] = endAdornment;
37185
+ $[94] = t38;
36966
37186
  } else {
36967
- t36 = $[92];
37187
+ t38 = $[94];
36968
37188
  }
36969
- let t37;
36970
- if ($[93] !== t19 || $[94] !== t35 || $[95] !== t36) {
36971
- t37 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t19, children: [
36972
- t35,
36973
- t36
37189
+ let t39;
37190
+ if ($[95] !== t19 || $[96] !== t37 || $[97] !== t38) {
37191
+ t39 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t19, children: [
37192
+ t37,
37193
+ t38
36974
37194
  ] });
36975
- $[93] = t19;
36976
- $[94] = t35;
36977
- $[95] = t36;
37195
+ $[95] = t19;
36978
37196
  $[96] = t37;
36979
- } else {
36980
- t37 = $[96];
36981
- }
36982
- let t38;
36983
- if ($[97] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36984
- t38 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-900 p-2 rounded-lg", defaultBorderMixin);
36985
37197
  $[97] = t38;
37198
+ $[98] = t39;
36986
37199
  } else {
36987
- t38 = $[97];
36988
- }
36989
- let t39;
36990
- if ($[98] !== viewportClassName) {
36991
- t39 = cls("p-1", viewportClassName);
36992
- $[98] = viewportClassName;
36993
- $[99] = t39;
36994
- } else {
36995
- t39 = $[99];
37200
+ t39 = $[98];
36996
37201
  }
36997
37202
  let t40;
36998
- if ($[100] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36999
- t40 = {
37000
- maxHeight: "var(--radix-select-content-available-height)"
37001
- };
37002
- $[100] = t40;
37203
+ if ($[99] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37204
+ t40 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-800 p-2 rounded-lg shadow-lg", defaultBorderMixin);
37205
+ $[99] = t40;
37003
37206
  } else {
37004
- t40 = $[100];
37207
+ t40 = $[99];
37005
37208
  }
37006
37209
  let t41;
37007
- if ($[101] !== children || $[102] !== t39) {
37008
- t41 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: t39, style: t40, children });
37009
- $[101] = children;
37010
- $[102] = t39;
37011
- $[103] = t41;
37210
+ if ($[100] !== viewportClassName) {
37211
+ t41 = cls("p-1", viewportClassName);
37212
+ $[100] = viewportClassName;
37213
+ $[101] = t41;
37012
37214
  } else {
37013
- t41 = $[103];
37215
+ t41 = $[101];
37014
37216
  }
37015
37217
  let t42;
37016
- if ($[104] !== position || $[105] !== t41) {
37017
- t42 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Content, { position, className: t38, children: t41 });
37018
- $[104] = position;
37019
- $[105] = t41;
37020
- $[106] = t42;
37218
+ if ($[102] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37219
+ t42 = {
37220
+ maxHeight: "var(--radix-select-content-available-height)"
37221
+ };
37222
+ $[102] = t42;
37021
37223
  } else {
37022
- t42 = $[106];
37224
+ t42 = $[102];
37023
37225
  }
37024
37226
  let t43;
37025
- if ($[107] !== finalContainer || $[108] !== t42) {
37026
- t43 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: finalContainer, children: t42 });
37027
- $[107] = finalContainer;
37028
- $[108] = t42;
37029
- $[109] = t43;
37227
+ if ($[103] !== children || $[104] !== t41) {
37228
+ t43 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: t41, style: t42, children });
37229
+ $[103] = children;
37230
+ $[104] = t41;
37231
+ $[105] = t43;
37030
37232
  } else {
37031
- t43 = $[109];
37233
+ t43 = $[105];
37032
37234
  }
37033
37235
  let t44;
37034
- if ($[110] !== disabled || $[111] !== name || $[112] !== onValueChangeInternal || $[113] !== openInternal || $[114] !== props || $[115] !== stringValue || $[116] !== t10 || $[117] !== t11 || $[118] !== t37 || $[119] !== t43) {
37035
- t44 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Root, { name, value: stringValue, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: t10, ...props, children: [
37236
+ if ($[106] !== position || $[107] !== t43) {
37237
+ t44 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Content, { position, className: t40, children: t43 });
37238
+ $[106] = position;
37239
+ $[107] = t43;
37240
+ $[108] = t44;
37241
+ } else {
37242
+ t44 = $[108];
37243
+ }
37244
+ let t45;
37245
+ if ($[109] !== finalContainer || $[110] !== t44) {
37246
+ t45 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: finalContainer, children: t44 });
37247
+ $[109] = finalContainer;
37248
+ $[110] = t44;
37249
+ $[111] = t45;
37250
+ } else {
37251
+ t45 = $[111];
37252
+ }
37253
+ let t46;
37254
+ if ($[112] !== disabled || $[113] !== name || $[114] !== onValueChangeInternal || $[115] !== openInternal || $[116] !== props || $[117] !== stringValue || $[118] !== t10 || $[119] !== t11 || $[120] !== t39 || $[121] !== t45) {
37255
+ t46 = /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Root, { name, value: stringValue, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: t10, ...props, children: [
37036
37256
  t11,
37037
- t37,
37038
- t43
37257
+ t39,
37258
+ t45
37039
37259
  ] });
37040
- $[110] = disabled;
37041
- $[111] = name;
37042
- $[112] = onValueChangeInternal;
37043
- $[113] = openInternal;
37044
- $[114] = props;
37045
- $[115] = stringValue;
37046
- $[116] = t10;
37047
- $[117] = t11;
37048
- $[118] = t37;
37049
- $[119] = t43;
37050
- $[120] = t44;
37051
- } else {
37052
- t44 = $[120];
37053
- }
37054
- return t44;
37260
+ $[112] = disabled;
37261
+ $[113] = name;
37262
+ $[114] = onValueChangeInternal;
37263
+ $[115] = openInternal;
37264
+ $[116] = props;
37265
+ $[117] = stringValue;
37266
+ $[118] = t10;
37267
+ $[119] = t11;
37268
+ $[120] = t39;
37269
+ $[121] = t45;
37270
+ $[122] = t46;
37271
+ } else {
37272
+ t46 = $[122];
37273
+ }
37274
+ return t46;
37055
37275
  });
37056
37276
  Select.displayName = "Select";
37057
37277
  const SelectItem = React.memo(function SelectItem2(t0) {
@@ -37066,7 +37286,7 @@
37066
37286
  const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
37067
37287
  let t2;
37068
37288
  if ($[0] !== className || $[1] !== t1) {
37069
- t2 = cls("w-full", "relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300", "focus:z-10", "data-[state=checked]:bg-surface-accent-100 data-[state=checked]:dark:bg-surface-accent-800 focus:bg-surface-accent-100 dark:focus:bg-surface-950", "data-[state=checked]:focus:bg-surface-accent-200 data-[state=checked]:dark:focus:bg-surface-950", t1, "[&>*]:w-full", "overflow-visible", className);
37289
+ t2 = cls("w-full", "relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300", "focus:z-10", "data-[state=checked]:bg-surface-accent-100 data-[state=checked]:dark:bg-surface-accent-800 focus:bg-surface-accent-100 dark:focus:bg-surface-900", "data-[state=checked]:focus:bg-surface-accent-200 data-[state=checked]:dark:focus:bg-surface-900", t1, "[&>*]:w-full", "overflow-visible", className);
37070
37290
  $[0] = className;
37071
37291
  $[1] = t1;
37072
37292
  $[2] = t2;
@@ -37142,7 +37362,7 @@
37142
37362
  }
37143
37363
  return t3;
37144
37364
  });
37145
- function _temp$1(e) {
37365
+ function _temp$2(e) {
37146
37366
  e.preventDefault();
37147
37367
  e.stopPropagation();
37148
37368
  }
@@ -37479,7 +37699,7 @@
37479
37699
  }
37480
37700
  T0 = DialogPrimitive__namespace.Content;
37481
37701
  t6 = props;
37482
- t7 = _temp;
37702
+ t7 = _temp$1;
37483
37703
  t8 = cls("outline-none", borderClass[side], defaultBorderMixin, "transform-gpu", "will-change-transform", "text-surface-accent-900 dark:text-white", "fixed transform z-20 transition-all ease-in-out", !displayed ? "duration-150" : "duration-100", "outline-none focus:outline-none", transparent ? "" : "shadow-md bg-white dark:bg-surface-950", side === "top" || side === "bottom" ? "w-full" : "h-full", side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0", displayed && open ? "opacity-100" : "opacity-50", !displayed || !open ? transformValue[side] : "", className);
37484
37704
  $[18] = className;
37485
37705
  $[19] = displayed;
@@ -37563,7 +37783,7 @@
37563
37783
  }
37564
37784
  return t17;
37565
37785
  };
37566
- function _temp(event) {
37786
+ function _temp$1(event) {
37567
37787
  return event.preventDefault();
37568
37788
  }
37569
37789
  function getStyleValue(value) {
@@ -37811,69 +38031,279 @@
37811
38031
  ref.current = value;
37812
38032
  }
37813
38033
  }
37814
- const TextField = React.forwardRef(({
37815
- value,
37816
- onChange,
37817
- label,
37818
- type = "text",
37819
- multiline = false,
37820
- invisible,
37821
- maxRows,
37822
- minRows,
37823
- disabled,
37824
- error,
37825
- endAdornment,
37826
- autoFocus,
37827
- placeholder,
37828
- size = "large",
37829
- className,
37830
- style,
37831
- inputClassName,
37832
- inputStyle,
37833
- inputRef: inputRefProp,
37834
- ...inputProps
37835
- }, ref) => {
37836
- const inputRef = inputRefProp ?? React.useRef(null);
38034
+ const TextField = React.forwardRef((t0, ref) => {
38035
+ const $ = reactCompilerRuntime.c(77);
38036
+ let autoFocus;
38037
+ let className;
38038
+ let disabled;
38039
+ let endAdornment;
38040
+ let error;
38041
+ let inputClassName;
38042
+ let inputProps;
38043
+ let inputRefProp;
38044
+ let inputStyle;
38045
+ let invisible;
38046
+ let label;
38047
+ let minRows;
38048
+ let onChange;
38049
+ let placeholder;
38050
+ let style;
38051
+ let t1;
38052
+ let t2;
38053
+ let t3;
38054
+ let value;
38055
+ if ($[0] !== t0) {
38056
+ const {
38057
+ value: t42,
38058
+ onChange: t52,
38059
+ label: t62,
38060
+ type: t72,
38061
+ multiline: t82,
38062
+ invisible: t92,
38063
+ maxRows,
38064
+ minRows: t102,
38065
+ disabled: t112,
38066
+ error: t122,
38067
+ endAdornment: t132,
38068
+ autoFocus: t142,
38069
+ placeholder: t152,
38070
+ size: t162,
38071
+ className: t172,
38072
+ style: t182,
38073
+ inputClassName: t192,
38074
+ inputStyle: t20,
38075
+ inputRef: t21,
38076
+ ...t22
38077
+ } = t0;
38078
+ value = t42;
38079
+ onChange = t52;
38080
+ label = t62;
38081
+ t1 = t72;
38082
+ t2 = t82;
38083
+ invisible = t92;
38084
+ minRows = t102;
38085
+ disabled = t112;
38086
+ error = t122;
38087
+ endAdornment = t132;
38088
+ autoFocus = t142;
38089
+ placeholder = t152;
38090
+ t3 = t162;
38091
+ className = t172;
38092
+ style = t182;
38093
+ inputClassName = t192;
38094
+ inputStyle = t20;
38095
+ inputRefProp = t21;
38096
+ inputProps = t22;
38097
+ $[0] = t0;
38098
+ $[1] = autoFocus;
38099
+ $[2] = className;
38100
+ $[3] = disabled;
38101
+ $[4] = endAdornment;
38102
+ $[5] = error;
38103
+ $[6] = inputClassName;
38104
+ $[7] = inputProps;
38105
+ $[8] = inputRefProp;
38106
+ $[9] = inputStyle;
38107
+ $[10] = invisible;
38108
+ $[11] = label;
38109
+ $[12] = minRows;
38110
+ $[13] = onChange;
38111
+ $[14] = placeholder;
38112
+ $[15] = style;
38113
+ $[16] = t1;
38114
+ $[17] = t2;
38115
+ $[18] = t3;
38116
+ $[19] = value;
38117
+ } else {
38118
+ autoFocus = $[1];
38119
+ className = $[2];
38120
+ disabled = $[3];
38121
+ endAdornment = $[4];
38122
+ error = $[5];
38123
+ inputClassName = $[6];
38124
+ inputProps = $[7];
38125
+ inputRefProp = $[8];
38126
+ inputStyle = $[9];
38127
+ invisible = $[10];
38128
+ label = $[11];
38129
+ minRows = $[12];
38130
+ onChange = $[13];
38131
+ placeholder = $[14];
38132
+ style = $[15];
38133
+ t1 = $[16];
38134
+ t2 = $[17];
38135
+ t3 = $[18];
38136
+ value = $[19];
38137
+ }
38138
+ const type = t1 === void 0 ? "text" : t1;
38139
+ const multiline = t2 === void 0 ? false : t2;
38140
+ const size = t3 === void 0 ? "large" : t3;
38141
+ const fallbackRef = React.useRef(null);
38142
+ const inputRef = inputRefProp ?? fallbackRef;
38143
+ const autoId = React.useId();
38144
+ const inputId = inputProps.id ?? autoId;
38145
+ const labelId = `${inputId}-label`;
37837
38146
  const [focused, setFocused] = React.useState(false);
37838
38147
  const hasValue = value !== void 0 && value !== null && value !== "";
37839
- React.useEffect(() => {
37840
- if (inputRef.current && document.activeElement === inputRef.current) {
37841
- setFocused(true);
37842
- }
37843
- }, []);
37844
- React.useEffect(() => {
37845
- if (type !== "number") return;
37846
- const handleWheel = (event) => {
37847
- if (event.target instanceof HTMLElement) event.target.blur();
38148
+ let t4;
38149
+ if ($[20] !== inputRef) {
38150
+ t4 = () => {
38151
+ const element = inputRef && "current" in inputRef ? inputRef.current : null;
38152
+ if (element && document.activeElement === element) {
38153
+ setFocused(true);
38154
+ }
37848
38155
  };
37849
- const element = "current" in inputRef ? inputRef.current : inputRef;
37850
- element?.addEventListener("wheel", handleWheel);
37851
- return () => {
37852
- element?.removeEventListener("wheel", handleWheel);
38156
+ $[20] = inputRef;
38157
+ $[21] = t4;
38158
+ } else {
38159
+ t4 = $[21];
38160
+ }
38161
+ let t5;
38162
+ if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
38163
+ t5 = [];
38164
+ $[22] = t5;
38165
+ } else {
38166
+ t5 = $[22];
38167
+ }
38168
+ React.useEffect(t4, t5);
38169
+ let t6;
38170
+ let t7;
38171
+ if ($[23] !== inputRef || $[24] !== type) {
38172
+ t6 = () => {
38173
+ if (type !== "number") {
38174
+ return;
38175
+ }
38176
+ const handleWheel = _temp;
38177
+ const element_0 = "current" in inputRef ? inputRef.current : inputRef;
38178
+ element_0?.addEventListener("wheel", handleWheel);
38179
+ return () => {
38180
+ element_0?.removeEventListener("wheel", handleWheel);
38181
+ };
37853
38182
  };
37854
- }, [inputRef, type]);
37855
- const input = multiline ? /* @__PURE__ */ jsxRuntime.jsx("textarea", { ...inputProps, ref: inputRef, 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-md resize-none w-full outline-none text-base bg-transparent min-h-[64px] px-3", label ? "pt-8 pb-2" : "py-2", disabled && "outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500", inputClassName) }) : /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, ref: inputRef, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-md", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, {
37856
- "min-h-[28px]": size === "smallest",
37857
- "min-h-[32px]": size === "small",
37858
- "min-h-[44px]": size === "medium",
37859
- "min-h-[64px]": size === "large"
37860
- }, 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 });
37861
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: cls("rounded-md relative max-w-full", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, error ? "border border-red-500 dark:border-red-600" : "", {
37862
- "min-h-[28px]": size === "smallest",
37863
- "min-h-[32px]": size === "small",
37864
- "min-h-[44px]": size === "medium",
37865
- "min-h-[64px]": size === "large"
37866
- }, className), style, children: [
37867
- label && /* @__PURE__ */ jsxRuntime.jsx(InputLabel, { 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 }),
37868
- input,
37869
- endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
38183
+ t7 = [inputRef, type];
38184
+ $[23] = inputRef;
38185
+ $[24] = type;
38186
+ $[25] = t6;
38187
+ $[26] = t7;
38188
+ } else {
38189
+ t6 = $[25];
38190
+ t7 = $[26];
38191
+ }
38192
+ React.useEffect(t6, t7);
38193
+ let t8;
38194
+ 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) {
38195
+ t8 = multiline ? /* @__PURE__ */ jsxRuntime.jsx("textarea", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows: typeof minRows === "string" ? parseInt(minRows) : minRows ?? 3, value: value ?? "", onChange, onFocus: () => setFocused(true), onBlur: () => setFocused(false), style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-lg resize-none w-full outline-none text-base bg-transparent min-h-[64px] px-3", label ? "pt-8 pb-2" : "py-2", disabled && "outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500", inputClassName) }) : /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-lg", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, {
38196
+ "min-h-[28px]": size === "smallest",
38197
+ "min-h-[32px]": size === "small",
38198
+ "min-h-[44px]": size === "medium",
38199
+ "min-h-[64px]": size === "large"
38200
+ }, 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 });
38201
+ $[27] = autoFocus;
38202
+ $[28] = disabled;
38203
+ $[29] = endAdornment;
38204
+ $[30] = error;
38205
+ $[31] = focused;
38206
+ $[32] = hasValue;
38207
+ $[33] = inputClassName;
38208
+ $[34] = inputId;
38209
+ $[35] = inputProps;
38210
+ $[36] = inputRef;
38211
+ $[37] = inputStyle;
38212
+ $[38] = invisible;
38213
+ $[39] = label;
38214
+ $[40] = labelId;
38215
+ $[41] = minRows;
38216
+ $[42] = multiline;
38217
+ $[43] = onChange;
38218
+ $[44] = placeholder;
38219
+ $[45] = size;
38220
+ $[46] = type;
38221
+ $[47] = value;
38222
+ $[48] = t8;
38223
+ } else {
38224
+ t8 = $[48];
38225
+ }
38226
+ const input = t8;
38227
+ const t9 = invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin;
38228
+ const t10 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
38229
+ const t11 = error ? "border border-red-500 dark:border-red-600" : "";
38230
+ const t12 = size === "smallest";
38231
+ const t13 = size === "small";
38232
+ const t14 = size === "medium";
38233
+ const t15 = size === "large";
38234
+ let t16;
38235
+ if ($[49] !== className || $[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t9) {
38236
+ t16 = cls("rounded-lg relative max-w-full", t9, t10, t11, {
38237
+ "min-h-[28px]": t12,
38238
+ "min-h-[32px]": t13,
38239
+ "min-h-[44px]": t14,
38240
+ "min-h-[64px]": t15
38241
+ }, className);
38242
+ $[49] = className;
38243
+ $[50] = t10;
38244
+ $[51] = t11;
38245
+ $[52] = t12;
38246
+ $[53] = t13;
38247
+ $[54] = t14;
38248
+ $[55] = t15;
38249
+ $[56] = t9;
38250
+ $[57] = t16;
38251
+ } else {
38252
+ t16 = $[57];
38253
+ }
38254
+ let t17;
38255
+ if ($[58] !== disabled || $[59] !== error || $[60] !== focused || $[61] !== hasValue || $[62] !== inputId || $[63] !== label || $[64] !== labelId || $[65] !== size) {
38256
+ t17 = label && /* @__PURE__ */ jsxRuntime.jsx(InputLabel, { id: labelId, htmlFor: inputId, className: cls("pointer-events-none absolute", size === "large" ? "top-1" : "top-[-1px]", !error ? focused ? "text-primary dark:text-primary" : "text-text-secondary dark:text-text-secondary-dark" : "text-red-500 dark:text-red-600", disabled ? "opacity-50" : ""), shrink: hasValue || focused, children: label });
38257
+ $[58] = disabled;
38258
+ $[59] = error;
38259
+ $[60] = focused;
38260
+ $[61] = hasValue;
38261
+ $[62] = inputId;
38262
+ $[63] = label;
38263
+ $[64] = labelId;
38264
+ $[65] = size;
38265
+ $[66] = t17;
38266
+ } else {
38267
+ t17 = $[66];
38268
+ }
38269
+ let t18;
38270
+ if ($[67] !== endAdornment || $[68] !== size) {
38271
+ t18 = endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
37870
38272
  "mr-4": size === "large",
37871
38273
  "mr-3": size === "medium",
37872
38274
  "mr-2": size === "small" || size === "smallest"
37873
- }), children: endAdornment })
37874
- ] });
38275
+ }), children: endAdornment });
38276
+ $[67] = endAdornment;
38277
+ $[68] = size;
38278
+ $[69] = t18;
38279
+ } else {
38280
+ t18 = $[69];
38281
+ }
38282
+ let t19;
38283
+ if ($[70] !== input || $[71] !== ref || $[72] !== style || $[73] !== t16 || $[74] !== t17 || $[75] !== t18) {
38284
+ t19 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: t16, style, children: [
38285
+ t17,
38286
+ input,
38287
+ t18
38288
+ ] });
38289
+ $[70] = input;
38290
+ $[71] = ref;
38291
+ $[72] = style;
38292
+ $[73] = t16;
38293
+ $[74] = t17;
38294
+ $[75] = t18;
38295
+ $[76] = t19;
38296
+ } else {
38297
+ t19 = $[76];
38298
+ }
38299
+ return t19;
37875
38300
  });
37876
38301
  TextField.displayName = "TextField";
38302
+ function _temp(event) {
38303
+ if (event.target instanceof HTMLElement) {
38304
+ event.target.blur();
38305
+ }
38306
+ }
37877
38307
  const TabsModeContext = React.createContext("primary");
37878
38308
  function Tabs(t0) {
37879
38309
  const $ = reactCompilerRuntime.c(35);
@@ -38318,7 +38748,7 @@
38318
38748
  return void 0;
38319
38749
  }
38320
38750
  function Popover(t0) {
38321
- const $ = reactCompilerRuntime.c(27);
38751
+ const $ = reactCompilerRuntime.c(29);
38322
38752
  const {
38323
38753
  trigger,
38324
38754
  children,
@@ -38335,7 +38765,9 @@
38335
38765
  enabled: t2,
38336
38766
  modal: t3,
38337
38767
  portalContainer,
38338
- className
38768
+ className,
38769
+ onMouseEnter,
38770
+ onMouseLeave
38339
38771
  } = t0;
38340
38772
  const sideOffset = t1 === void 0 ? 5 : t1;
38341
38773
  const enabled = t2 === void 0 ? true : t2;
@@ -38372,14 +38804,14 @@
38372
38804
  }
38373
38805
  let t6;
38374
38806
  if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
38375
- t6 = /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Arrow, { className: "fill-white dark:fill-surface-accent-950" });
38807
+ t6 = /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Arrow, { className: "fill-white dark:fill-surface-800" });
38376
38808
  $[6] = t6;
38377
38809
  } else {
38378
38810
  t6 = $[6];
38379
38811
  }
38380
38812
  let t7;
38381
- if ($[7] !== align || $[8] !== alignOffset || $[9] !== arrowPadding || $[10] !== avoidCollisions || $[11] !== children || $[12] !== hideWhenDetached || $[13] !== side || $[14] !== sideOffset || $[15] !== sticky || $[16] !== t5) {
38382
- t7 = /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive__namespace.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, children: [
38813
+ 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) {
38814
+ t7 = /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive__namespace.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, onMouseEnter, onMouseLeave, children: [
38383
38815
  children,
38384
38816
  t6
38385
38817
  ] });
@@ -38389,37 +38821,39 @@
38389
38821
  $[10] = avoidCollisions;
38390
38822
  $[11] = children;
38391
38823
  $[12] = hideWhenDetached;
38392
- $[13] = side;
38393
- $[14] = sideOffset;
38394
- $[15] = sticky;
38395
- $[16] = t5;
38396
- $[17] = t7;
38824
+ $[13] = onMouseEnter;
38825
+ $[14] = onMouseLeave;
38826
+ $[15] = side;
38827
+ $[16] = sideOffset;
38828
+ $[17] = sticky;
38829
+ $[18] = t5;
38830
+ $[19] = t7;
38397
38831
  } else {
38398
- t7 = $[17];
38832
+ t7 = $[19];
38399
38833
  }
38400
38834
  let t8;
38401
- if ($[18] !== finalContainer || $[19] !== t7) {
38835
+ if ($[20] !== finalContainer || $[21] !== t7) {
38402
38836
  t8 = /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { container: finalContainer, children: t7 });
38403
- $[18] = finalContainer;
38404
- $[19] = t7;
38405
- $[20] = t8;
38837
+ $[20] = finalContainer;
38838
+ $[21] = t7;
38839
+ $[22] = t8;
38406
38840
  } else {
38407
- t8 = $[20];
38841
+ t8 = $[22];
38408
38842
  }
38409
38843
  let t9;
38410
- if ($[21] !== modal || $[22] !== onOpenChange || $[23] !== open || $[24] !== t4 || $[25] !== t8) {
38844
+ if ($[23] !== modal || $[24] !== onOpenChange || $[25] !== open || $[26] !== t4 || $[27] !== t8) {
38411
38845
  t9 = /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive__namespace.Root, { open, onOpenChange, modal, children: [
38412
38846
  t4,
38413
38847
  t8
38414
38848
  ] });
38415
- $[21] = modal;
38416
- $[22] = onOpenChange;
38417
- $[23] = open;
38418
- $[24] = t4;
38419
- $[25] = t8;
38420
- $[26] = t9;
38849
+ $[23] = modal;
38850
+ $[24] = onOpenChange;
38851
+ $[25] = open;
38852
+ $[26] = t4;
38853
+ $[27] = t8;
38854
+ $[28] = t9;
38421
38855
  } else {
38422
- t9 = $[26];
38856
+ t9 = $[28];
38423
38857
  }
38424
38858
  return t9;
38425
38859
  }
@@ -38607,15 +39041,26 @@
38607
39041
  }
38608
39042
  return t5;
38609
39043
  }
39044
+ const styles = `
39045
+ @keyframes shimmer {
39046
+ 0% {
39047
+ transform: translateX(-150%);
39048
+ }
39049
+ 100% {
39050
+ transform: translateX(150%);
39051
+ }
39052
+ }
39053
+ `;
38610
39054
  function Skeleton(t0) {
38611
- const $ = reactCompilerRuntime.c(10);
39055
+ const $ = reactCompilerRuntime.c(9);
38612
39056
  const {
38613
39057
  width,
38614
39058
  height,
38615
39059
  className
38616
39060
  } = t0;
38617
- const t1 = width !== void 0 ? `${width}px` : void 0;
38618
- const t2 = height !== void 0 ? `${height}px` : void 0;
39061
+ useInjectStyles("Skeleton", styles);
39062
+ const t1 = width ? `${width}px` : "100%";
39063
+ const t2 = height ? `${height}px` : "12px";
38619
39064
  let t3;
38620
39065
  if ($[0] !== t1 || $[1] !== t2) {
38621
39066
  t3 = {
@@ -38628,28 +39073,33 @@
38628
39073
  } else {
38629
39074
  t3 = $[2];
38630
39075
  }
38631
- const t4 = width === void 0 ? "w-full" : "";
38632
- const t5 = height === void 0 ? "h-3" : "";
38633
- let t6;
38634
- if ($[3] !== className || $[4] !== t4 || $[5] !== t5) {
38635
- t6 = cls("block", "bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md", "animate-pulse", "max-w-full max-h-full", t4, t5, className);
39076
+ let t4;
39077
+ if ($[3] !== className) {
39078
+ t4 = cls("block relative overflow-hidden", "bg-surface-accent-50 dark:bg-surface-accent-800 rounded-md", "max-w-full max-h-full", className);
38636
39079
  $[3] = className;
38637
39080
  $[4] = t4;
39081
+ } else {
39082
+ t4 = $[4];
39083
+ }
39084
+ let t5;
39085
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
39086
+ t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/50 dark:via-white/8 to-transparent", style: {
39087
+ animation: "shimmer 1.8s ease-in-out infinite"
39088
+ } });
38638
39089
  $[5] = t5;
38639
- $[6] = t6;
38640
39090
  } else {
38641
- t6 = $[6];
39091
+ t5 = $[5];
38642
39092
  }
38643
- let t7;
38644
- if ($[7] !== t3 || $[8] !== t6) {
38645
- t7 = /* @__PURE__ */ jsxRuntime.jsx("span", { style: t3, className: t6 });
38646
- $[7] = t3;
39093
+ let t6;
39094
+ if ($[6] !== t3 || $[7] !== t4) {
39095
+ t6 = /* @__PURE__ */ jsxRuntime.jsx("span", { style: t3, className: t4, children: t5 });
39096
+ $[6] = t3;
39097
+ $[7] = t4;
38647
39098
  $[8] = t6;
38648
- $[9] = t7;
38649
39099
  } else {
38650
- t7 = $[9];
39100
+ t6 = $[8];
38651
39101
  }
38652
- return t7;
39102
+ return t6;
38653
39103
  }
38654
39104
  function ToggleButtonGroup(t0) {
38655
39105
  const $ = reactCompilerRuntime.c(12);
@@ -38661,7 +39111,7 @@
38661
39111
  } = t0;
38662
39112
  let t1;
38663
39113
  if ($[0] !== className) {
38664
- t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-800 rounded-lg p-1 gap-1", className);
39114
+ t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-900 rounded-lg p-1 gap-1", className);
38665
39115
  $[0] = className;
38666
39116
  $[1] = t1;
38667
39117
  } else {
@@ -38671,12 +39121,12 @@
38671
39121
  if ($[2] !== onValueChange || $[3] !== options || $[4] !== value) {
38672
39122
  let t32;
38673
39123
  if ($[6] !== onValueChange || $[7] !== value) {
38674
- t32 = (option) => /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: (e) => {
39124
+ t32 = (option) => /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", "aria-pressed": value === option.value, "aria-disabled": option.disabled || void 0, onClick: (e) => {
38675
39125
  e.stopPropagation();
38676
39126
  if (!option.disabled) {
38677
39127
  onValueChange(option.value);
38678
39128
  }
38679
- }, disabled: option.disabled, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-950 text-primary dark:text-primary-300" : "text-surface-500 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700", option.disabled && "opacity-50 cursor-not-allowed"), children: [
39129
+ }, disabled: option.disabled, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-900 text-primary dark:text-primary-300 shadow-sm" : "text-surface-500 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700", option.disabled && "opacity-50 cursor-not-allowed"), children: [
38680
39130
  option.icon,
38681
39131
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: option.label })
38682
39132
  ] }, option.value);
@@ -38696,7 +39146,7 @@
38696
39146
  }
38697
39147
  let t3;
38698
39148
  if ($[9] !== t1 || $[10] !== t2) {
38699
- t3 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t1, children: t2 });
39149
+ t3 = /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", "aria-label": "Toggle options", className: t1, children: t2 });
38700
39150
  $[9] = t1;
38701
39151
  $[10] = t2;
38702
39152
  $[11] = t3;
@@ -39439,6 +39889,7 @@
39439
39889
  exports2.FilterAltOffIcon = FilterAltOffIcon;
39440
39890
  exports2.FilterBAndWIcon = FilterBAndWIcon;
39441
39891
  exports2.FilterCenterFocusIcon = FilterCenterFocusIcon;
39892
+ exports2.FilterChip = FilterChip;
39442
39893
  exports2.FilterDramaIcon = FilterDramaIcon;
39443
39894
  exports2.FilterFramesIcon = FilterFramesIcon;
39444
39895
  exports2.FilterHdrIcon = FilterHdrIcon;
@@ -41008,6 +41459,7 @@
41008
41459
  exports2.keyToIconComponent = keyToIconComponent;
41009
41460
  exports2.paperMixin = paperMixin;
41010
41461
  exports2.useAutoComplete = useAutoComplete;
41462
+ exports2.useDebounceCallback = useDebounceCallback;
41011
41463
  exports2.useDebounceValue = useDebounceValue;
41012
41464
  exports2.useIconStyles = useIconStyles;
41013
41465
  exports2.useInjectStyles = useInjectStyles;