@firecms/ui 3.3.0-canary.2064433 → 3.3.0-canary.289082f

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.es.js +982 -530
  14. package/dist/index.es.js.map +1 -1
  15. package/dist/index.umd.js +981 -529
  16. package/dist/index.umd.js.map +1 -1
  17. package/dist/{index.css → src/index.css} +43 -32
  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.es.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { c } from "react-compiler-runtime";
4
4
  import * as React from "react";
5
- import React__default, { createContext, useContext, useEffect, useState, useRef, Children, forwardRef, useLayoutEffect, useDeferredValue } from "react";
5
+ import React__default, { createContext, useContext, useEffect, useState, useRef, Children, forwardRef, useLayoutEffect, useId, useDeferredValue } from "react";
6
6
  import * as Collapsible from "@radix-ui/react-collapsible";
7
7
  import { clsx } from "clsx";
8
8
  import { twMerge } from "tailwind-merge";
@@ -27,7 +27,7 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
27
27
  const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
28
28
  const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-800 focus:dark:bg-opacity-60 focus:bg-surface-accent-100/70 dark:focus:bg-surface-800/60";
29
29
  const focusedClasses = "z-30 outline-hidden outline-none ring-2 ring-primary ring-opacity-75 ring-primary/75 ring-offset-2 ring-offset-transparent ";
30
- const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-800 dark:bg-opacity-60 dark:bg-surface-800/60";
30
+ const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 bg-surface-accent-200/50 dark:bg-surface-800 dark:bg-opacity-90 dark:bg-surface-800/90";
31
31
  const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-surface-accent-100 dark:bg-surface-800 dark:bg-opacity-0 bg-surface-accent-200/0 dark:bg-surface-800/0";
32
32
  const fieldBackgroundDisabledMixin = "dark:bg-surface-800 bg-opacity-50 dark:bg-opacity-90 bg-surface-accent-200/50 dark:bg-surface-800/90";
33
33
  const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40 hover:bg-surface-accent-200/70 hover:dark:bg-surface-700/40";
@@ -381,6 +381,60 @@ function useDebounceValue(value, t0) {
381
381
  useEffect(t1, t2);
382
382
  return debouncedValue;
383
383
  }
384
+ function useDebounceCallback(callback, delay) {
385
+ const $ = c(7);
386
+ const timeoutRef = useRef(null);
387
+ const callbackRef = useRef(callback);
388
+ let t0;
389
+ let t1;
390
+ if ($[0] !== callback) {
391
+ t0 = () => {
392
+ callbackRef.current = callback;
393
+ };
394
+ t1 = [callback];
395
+ $[0] = callback;
396
+ $[1] = t0;
397
+ $[2] = t1;
398
+ } else {
399
+ t0 = $[1];
400
+ t1 = $[2];
401
+ }
402
+ useEffect(t0, t1);
403
+ let t2;
404
+ let t3;
405
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
406
+ t2 = () => () => {
407
+ if (timeoutRef.current !== null) {
408
+ clearTimeout(timeoutRef.current);
409
+ }
410
+ };
411
+ t3 = [];
412
+ $[3] = t2;
413
+ $[4] = t3;
414
+ } else {
415
+ t2 = $[3];
416
+ t3 = $[4];
417
+ }
418
+ useEffect(t2, t3);
419
+ let t4;
420
+ if ($[5] !== delay) {
421
+ t4 = (...t5) => {
422
+ const args = t5;
423
+ if (timeoutRef.current !== null) {
424
+ clearTimeout(timeoutRef.current);
425
+ }
426
+ timeoutRef.current = setTimeout(() => {
427
+ callbackRef.current?.(...args);
428
+ }, delay ?? 200);
429
+ };
430
+ $[5] = delay;
431
+ $[6] = t4;
432
+ } else {
433
+ t4 = $[6];
434
+ }
435
+ const debouncedCallback = t4;
436
+ return debouncedCallback;
437
+ }
384
438
  function useIconStyles(t0) {
385
439
  const {
386
440
  fill: t1,
@@ -466,6 +520,7 @@ const Collapse = React__default.memo((t0) => {
466
520
  }
467
521
  return t6;
468
522
  });
523
+ Collapse.displayName = "Collapse";
469
524
  const useAutoComplete = ({
470
525
  ref
471
526
  }) => {
@@ -587,16 +642,16 @@ const getSizeClasses = (size) => {
587
642
  const getColorClasses = (severity) => {
588
643
  switch (severity) {
589
644
  case "error":
590
- return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900";
645
+ return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900 border-l-[3px] border-l-red-500";
591
646
  case "warning":
592
- return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900";
647
+ return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900 border-l-[3px] border-l-amber-500";
593
648
  case "info":
594
- return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900";
649
+ return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900 border-l-[3px] border-l-blue-500";
595
650
  case "success":
596
- return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900";
651
+ return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900 border-l-[3px] border-l-emerald-500";
597
652
  case "base":
598
653
  default:
599
- return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900";
654
+ return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900 border-l-[3px] border-l-surface-accent-400";
600
655
  }
601
656
  };
602
657
  const Alert = (t0) => {
@@ -618,7 +673,7 @@ const Alert = (t0) => {
618
673
  if ($[0] !== color || $[1] !== outerClassName || $[2] !== size || $[3] !== style) {
619
674
  const classes = getColorClasses(color);
620
675
  t3 = style;
621
- t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-md flex items-center gap-2", classes, outerClassName);
676
+ t4 = cls(getSizeClasses(size), "w-full", "font-medium", "rounded-lg flex items-center gap-2", classes, outerClassName);
622
677
  $[0] = color;
623
678
  $[1] = outerClassName;
624
679
  $[2] = size;
@@ -631,7 +686,7 @@ const Alert = (t0) => {
631
686
  }
632
687
  let t5;
633
688
  if ($[6] !== className) {
634
- t5 = cls("flex-grow", className);
689
+ t5 = cls("grow", className);
635
690
  $[6] = className;
636
691
  $[7] = t5;
637
692
  } else {
@@ -724,7 +779,7 @@ const AvatarInner = (t0, ref) => {
724
779
  t2 = $[9];
725
780
  }
726
781
  const handleImageError = t2;
727
- const t3 = hover && "hover:bg-surface-accent-200 hover:dark:bg-surface-accent-700";
782
+ const t3 = hover && "hover:bg-surface-accent-200 dark:hover:bg-surface-accent-700";
728
783
  let t4;
729
784
  if ($[10] !== outerClassName || $[11] !== t3) {
730
785
  t4 = cls("rounded-full flex items-center justify-center overflow-hidden", "p-1 w-12 h-12 min-w-12 min-h-12", t3, outerClassName);
@@ -770,7 +825,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
770
825
  size = "medium",
771
826
  ...props
772
827
  }, ref) {
773
- return /* @__PURE__ */ jsxs("button", { type: "button", ref, tabIndex: disabled ? -1 : void 0, onClick: disabled ? (e) => e.preventDefault() : (e_0) => {
828
+ return /* @__PURE__ */ jsxs("button", { type: "button", ref, role: "switch", "aria-checked": allowIndeterminate && (value === null || value === void 0) ? "mixed" : !!value, "aria-disabled": disabled || void 0, tabIndex: disabled ? -1 : void 0, onClick: disabled ? (e) => e.preventDefault() : (e_0) => {
774
829
  e_0.preventDefault();
775
830
  if (allowIndeterminate) {
776
831
  if (value === null || value === void 0) onValueChange?.(true);
@@ -780,7 +835,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
780
835
  onValueChange?.(!value);
781
836
  }
782
837
  }, className: cls(size === "smallest" ? "w-[34px] h-[18px] min-w-[34px] min-h-[18px]" : size === "small" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[44px] h-[26px] min-w-[44px] min-h-[26px]", "outline-none outline-hidden rounded-full relative shadow-sm", value ? disabled ? "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-950 border-surface-accent-100 dark:border-surface-accent-700 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-900 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700", className), ...props, children: [
783
- allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
838
+ allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
784
839
  "w-[21px] h-[10px]": size === "medium" || size === "large",
785
840
  "w-[19px] h-[8px]": size === "small",
786
841
  "w-[16px] h-[6px]": size === "smallest",
@@ -788,7 +843,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
788
843
  "translate-x-[9px]": size === "small",
789
844
  "translate-x-[8px]": size === "smallest"
790
845
  }) }, "knob"),
791
- !(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-300 dark:bg-surface-accent-700" : value ? "bg-white" : "bg-surface-accent-600 dark:bg-surface-accent-400", {
846
+ !(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-300 dark:bg-surface-700" : value ? "bg-white shadow" : "bg-surface-accent-600 dark:bg-surface-accent-400", {
792
847
  "w-[21px] h-[21px]": size === "medium" || size === "large",
793
848
  "w-[19px] h-[19px]": size === "small",
794
849
  "w-[16px] h-[16px]": size === "smallest",
@@ -842,7 +897,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
842
897
  ] });
843
898
  };
844
899
  const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
845
- const $ = c(55);
900
+ const $ = c(56);
846
901
  let Component;
847
902
  let children;
848
903
  let className;
@@ -930,32 +985,33 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
930
985
  let t28;
931
986
  let t29;
932
987
  let t30;
933
- if ($[11] !== Component || $[12] !== children || $[13] !== className || $[14] !== 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) {
988
+ if ($[11] !== Component || $[12] !== children || $[13] !== className || $[14] !== color || $[15] !== disabled || $[16] !== fullWidth || $[17] !== props || $[18] !== ref || $[19] !== size || $[20] !== startIcon || $[21] !== t10 || $[22] !== t11 || $[23] !== t12 || $[24] !== t13 || $[25] !== t14 || $[26] !== t15 || $[27] !== t16 || $[28] !== t17 || $[29] !== t18 || $[30] !== t19 || $[31] !== t20 || $[32] !== t21 || $[33] !== t22 || $[34] !== t23 || $[35] !== t24 || $[36] !== t25 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
934
989
  t30 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
935
990
  bb0: {
936
991
  const buttonClasses2 = cls({
937
992
  "w-full": fullWidth,
938
993
  "w-fit": t7,
939
- "border border-primary bg-primary focus:ring-primary shadow hover:ring-1 hover:ring-primary text-white hover:text-white": t8,
940
- "border border-secondary bg-secondary focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": t9,
941
- "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,
942
- "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,
943
- "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,
994
+ "border border-primary bg-primary focus:ring-primary text-white hover:text-white hover:brightness-105": t8,
995
+ "border border-secondary bg-secondary focus:ring-secondary text-white hover:text-white hover:brightness-105": t9,
996
+ "border border-red-500 bg-red-500 hover:bg-red-600 focus:ring-red-500 text-white hover:text-white": t10,
997
+ "border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 text-text-primary hover:text-text-primary dark:border-surface-accent-700 dark:bg-surface-accent-700 dark:hover:bg-surface-accent-600 dark:text-text-primary-dark hover:dark:text-text-primary-dark": t11,
998
+ "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-700 dark:hover:bg-surface-accent-700 dark:text-text-primary-dark hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": t12,
944
999
  "border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t13,
945
1000
  "border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t14,
946
1001
  "border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10 hover:bg-red-500/10": t15,
947
- "border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:dark:bg-surface-700": t16,
948
- "border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 dark:text-text-primary-dark dark:hover:text-text-primary-dark dark:hover:bg-surface-accent-700": t17,
1002
+ "border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t16,
1003
+ "border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:text-text-primary-dark dark:hover:text-text-primary-dark dark:hover:bg-surface-accent-800": t17,
949
1004
  "border border-primary text-primary hover:text-primary hover:bg-primary-bg hover:bg-primary/10": t18,
950
1005
  "border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
951
1006
  "border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
952
- "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t21,
953
- "border border-surface-300 text-text-primary hover:bg-surface-accent-200 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-700": t22,
1007
+ "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark dark:border-surface-accent-600 hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t21,
1008
+ "border border-surface-300 text-text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-800": t22,
954
1009
  "text-text-disabled dark:text-text-disabled-dark": disabled,
955
1010
  "border border-transparent opacity-50": t23,
956
1011
  "border border-surface-500 opacity-50": t24,
957
- "border border-transparent bg-surface-300 dark:bg-surface-500 opacity-70 bg-surface-300/70 dark:bg-surface-500/70": t25
1012
+ "border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40 bg-surface-300/40 dark:bg-surface-500/40": t25
958
1013
  });
1014
+ const iconColorClass = (color === "neutral" || color === "text") && !disabled ? "[&>svg]:text-surface-accent-500 dark:[&>svg]:text-surface-accent-300" : "";
959
1015
  const sizeClasses2 = cls({
960
1016
  "py-1 px-2": size === "small",
961
1017
  "py-2 px-4": size === "medium",
@@ -964,7 +1020,7 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
964
1020
  "py-4 px-10": size === "2xl"
965
1021
  });
966
1022
  if (Component) {
967
- t30 = /* @__PURE__ */ jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-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: [
1023
+ t30 = /* @__PURE__ */ jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-lg whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-colors ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className), ...props, children: [
968
1024
  startIcon,
969
1025
  children
970
1026
  ] });
@@ -973,71 +1029,72 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
973
1029
  t26 = ref;
974
1030
  t27 = props.type ?? "button";
975
1031
  t28 = props.onClick;
976
- t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-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);
1032
+ t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-lg whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-colors ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className);
977
1033
  }
978
1034
  $[11] = Component;
979
1035
  $[12] = children;
980
1036
  $[13] = className;
981
- $[14] = disabled;
982
- $[15] = fullWidth;
983
- $[16] = props;
984
- $[17] = ref;
985
- $[18] = size;
986
- $[19] = startIcon;
987
- $[20] = t10;
988
- $[21] = t11;
989
- $[22] = t12;
990
- $[23] = t13;
991
- $[24] = t14;
992
- $[25] = t15;
993
- $[26] = t16;
994
- $[27] = t17;
995
- $[28] = t18;
996
- $[29] = t19;
997
- $[30] = t20;
998
- $[31] = t21;
999
- $[32] = t22;
1000
- $[33] = t23;
1001
- $[34] = t24;
1002
- $[35] = t25;
1003
- $[36] = t7;
1004
- $[37] = t8;
1005
- $[38] = t9;
1006
- $[39] = t26;
1007
- $[40] = t27;
1008
- $[41] = t28;
1009
- $[42] = t29;
1010
- $[43] = t30;
1011
- } else {
1012
- t26 = $[39];
1013
- t27 = $[40];
1014
- t28 = $[41];
1015
- t29 = $[42];
1016
- t30 = $[43];
1037
+ $[14] = color;
1038
+ $[15] = disabled;
1039
+ $[16] = fullWidth;
1040
+ $[17] = props;
1041
+ $[18] = ref;
1042
+ $[19] = size;
1043
+ $[20] = startIcon;
1044
+ $[21] = t10;
1045
+ $[22] = t11;
1046
+ $[23] = t12;
1047
+ $[24] = t13;
1048
+ $[25] = t14;
1049
+ $[26] = t15;
1050
+ $[27] = t16;
1051
+ $[28] = t17;
1052
+ $[29] = t18;
1053
+ $[30] = t19;
1054
+ $[31] = t20;
1055
+ $[32] = t21;
1056
+ $[33] = t22;
1057
+ $[34] = t23;
1058
+ $[35] = t24;
1059
+ $[36] = t25;
1060
+ $[37] = t7;
1061
+ $[38] = t8;
1062
+ $[39] = t9;
1063
+ $[40] = t26;
1064
+ $[41] = t27;
1065
+ $[42] = t28;
1066
+ $[43] = t29;
1067
+ $[44] = t30;
1068
+ } else {
1069
+ t26 = $[40];
1070
+ t27 = $[41];
1071
+ t28 = $[42];
1072
+ t29 = $[43];
1073
+ t30 = $[44];
1017
1074
  }
1018
1075
  if (t30 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
1019
1076
  return t30;
1020
1077
  }
1021
1078
  const t31 = props;
1022
1079
  let t32;
1023
- if ($[44] !== children || $[45] !== disabled || $[46] !== size || $[47] !== startIcon || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t31 || $[53] !== variant) {
1080
+ if ($[45] !== children || $[46] !== disabled || $[47] !== size || $[48] !== startIcon || $[49] !== t26 || $[50] !== t27 || $[51] !== t28 || $[52] !== t29 || $[53] !== t31 || $[54] !== variant) {
1024
1081
  t32 = /* @__PURE__ */ jsxs("button", { ref: t26, type: t27, onClick: t28, className: t29, disabled, "data-variant": variant, "data-size": size, ...t31, children: [
1025
1082
  startIcon,
1026
1083
  children
1027
1084
  ] });
1028
- $[44] = children;
1029
- $[45] = disabled;
1030
- $[46] = size;
1031
- $[47] = startIcon;
1032
- $[48] = t26;
1033
- $[49] = t27;
1034
- $[50] = t28;
1035
- $[51] = t29;
1036
- $[52] = t31;
1037
- $[53] = variant;
1038
- $[54] = t32;
1039
- } else {
1040
- t32 = $[54];
1085
+ $[45] = children;
1086
+ $[46] = disabled;
1087
+ $[47] = size;
1088
+ $[48] = startIcon;
1089
+ $[49] = t26;
1090
+ $[50] = t27;
1091
+ $[51] = t28;
1092
+ $[52] = t29;
1093
+ $[53] = t31;
1094
+ $[54] = variant;
1095
+ $[55] = t32;
1096
+ } else {
1097
+ t32 = $[55];
1041
1098
  }
1042
1099
  return t32;
1043
1100
  }));
@@ -1114,6 +1171,7 @@ const Card = React__default.forwardRef((t0, ref) => {
1114
1171
  }
1115
1172
  return t6;
1116
1173
  });
1174
+ Card.displayName = "Card";
1117
1175
  const containerMaxWidths = {
1118
1176
  xs: "max-w-xs",
1119
1177
  sm: "max-w-sm",
@@ -1195,7 +1253,7 @@ const CenteredView = React__default.forwardRef((t0, ref) => {
1195
1253
  const t1 = fullScreen ? "h-screen" : "h-full";
1196
1254
  let t2;
1197
1255
  if ($[7] !== outerClassName || $[8] !== t1) {
1198
- t2 = cls("flex flex-col flex-grow", t1, outerClassName);
1256
+ t2 = cls("flex flex-col grow", t1, outerClassName);
1199
1257
  $[7] = outerClassName;
1200
1258
  $[8] = t1;
1201
1259
  $[9] = t2;
@@ -32236,7 +32294,7 @@ const ZoomOutMapIcon = React__default.forwardRef((props, ref) => {
32236
32294
  return t0;
32237
32295
  });
32238
32296
  ZoomOutMapIcon.displayName = "ZoomOutMapIcon";
32239
- const sizeClasses$1 = {
32297
+ const sizeClasses$2 = {
32240
32298
  large: "w-6 h-6 rounded flex items-center justify-center",
32241
32299
  medium: "w-5 h-5 rounded flex items-center justify-center",
32242
32300
  small: "w-4 h-4 rounded flex items-center justify-center",
@@ -32246,20 +32304,20 @@ const outerSizeClasses = {
32246
32304
  medium: "w-10 h-10",
32247
32305
  small: "w-8 h-8",
32248
32306
  large: "w-12 h-12 ",
32249
- smallest: "w-6 h-6"
32307
+ smallest: "w-8 h-8"
32250
32308
  };
32251
32309
  const paddingClasses = {
32252
32310
  medium: "p-2",
32253
32311
  small: "p-2",
32254
32312
  large: "p-2",
32255
- smallest: ""
32313
+ smallest: "p-2"
32256
32314
  };
32257
32315
  const colorClasses$2 = {
32258
32316
  primary: "bg-primary",
32259
32317
  secondary: "bg-secondary"
32260
32318
  };
32261
32319
  const Checkbox = React__default.memo((t0) => {
32262
- const $ = c(25);
32320
+ const $ = c(27);
32263
32321
  const {
32264
32322
  id,
32265
32323
  checked,
@@ -32268,7 +32326,8 @@ const Checkbox = React__default.memo((t0) => {
32268
32326
  disabled,
32269
32327
  size: t3,
32270
32328
  onCheckedChange,
32271
- color: t4
32329
+ color: t4,
32330
+ "aria-label": ariaLabel
32272
32331
  } = t0;
32273
32332
  const indeterminate = t1 === void 0 ? false : t1;
32274
32333
  const padding = t2 === void 0 ? true : t2;
@@ -32277,89 +32336,109 @@ const Checkbox = React__default.memo((t0) => {
32277
32336
  const isChecked = indeterminate ? false : checked;
32278
32337
  const iconSize = size === "medium" ? 20 : size === "small" ? 16 : size === "smallest" ? 14 : 24;
32279
32338
  const t5 = indeterminate || isChecked;
32280
- const t6 = disabled ? void 0 : onCheckedChange;
32281
- const t7 = padding ? paddingClasses[size] : "";
32282
- const t8 = outerSizeClasses[size];
32283
- 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" : "";
32284
- const t10 = onCheckedChange ? "cursor-pointer" : "cursor-default";
32285
- let t11;
32286
- if ($[0] !== t10 || $[1] !== t7 || $[2] !== t8 || $[3] !== t9) {
32287
- 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);
32339
+ const t6 = indeterminate ? "mixed" : isChecked;
32340
+ const t7 = disabled ? void 0 : onCheckedChange;
32341
+ const t8 = padding ? paddingClasses[size] : "";
32342
+ const t9 = outerSizeClasses[size];
32343
+ 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" : "";
32344
+ const t11 = onCheckedChange ? "cursor-pointer" : "cursor-default";
32345
+ let t12;
32346
+ if ($[0] !== t10 || $[1] !== t11 || $[2] !== t8 || $[3] !== t9) {
32347
+ t12 = cls(t8, t9, "inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150", t10, t11);
32288
32348
  $[0] = t10;
32289
- $[1] = t7;
32349
+ $[1] = t11;
32290
32350
  $[2] = t8;
32291
32351
  $[3] = t9;
32292
- $[4] = t11;
32352
+ $[4] = t12;
32293
32353
  } else {
32294
- t11 = $[4];
32354
+ t12 = $[4];
32295
32355
  }
32296
- const t12 = sizeClasses$1[size];
32297
- 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";
32298
- const t14 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
32299
- const t15 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-200";
32300
- let t16;
32301
- if ($[5] !== t12 || $[6] !== t13 || $[7] !== t14 || $[8] !== t15) {
32302
- t16 = cls("border-2 relative transition-colors ease-in-out duration-150", t12, t13, t14, t15);
32303
- $[5] = t12;
32304
- $[6] = t13;
32305
- $[7] = t14;
32306
- $[8] = t15;
32307
- $[9] = t16;
32356
+ const t13 = sizeClasses$2[size];
32357
+ 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";
32358
+ const t15 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
32359
+ const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-500";
32360
+ let t17;
32361
+ if ($[5] !== t13 || $[6] !== t14 || $[7] !== t15 || $[8] !== t16) {
32362
+ t17 = cls("border-2 relative transition-colors ease-in-out duration-150", t13, t14, t15, t16);
32363
+ $[5] = t13;
32364
+ $[6] = t14;
32365
+ $[7] = t15;
32366
+ $[8] = t16;
32367
+ $[9] = t17;
32308
32368
  } else {
32309
- t16 = $[9];
32369
+ t17 = $[9];
32310
32370
  }
32311
- let t17;
32371
+ let t18;
32312
32372
  if ($[10] !== iconSize || $[11] !== indeterminate) {
32313
- t17 = /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsx(RemoveIcon, { size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsx(CheckIcon, { size: iconSize, className: "absolute" }) });
32373
+ t18 = /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsx(RemoveIcon, { size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsx(CheckIcon, { size: iconSize, className: "absolute" }) });
32314
32374
  $[10] = iconSize;
32315
32375
  $[11] = indeterminate;
32316
- $[12] = t17;
32376
+ $[12] = t18;
32317
32377
  } else {
32318
- t17 = $[12];
32319
- }
32320
- let t18;
32321
- if ($[13] !== t16 || $[14] !== t17) {
32322
- t18 = /* @__PURE__ */ jsx("div", { className: t16, children: t17 });
32323
- $[13] = t16;
32324
- $[14] = t17;
32325
- $[15] = t18;
32326
- } else {
32327
- t18 = $[15];
32378
+ t18 = $[12];
32328
32379
  }
32329
32380
  let t19;
32330
- if ($[16] !== t11 || $[17] !== t18) {
32331
- t19 = /* @__PURE__ */ jsx("div", { className: t11, children: t18 });
32332
- $[16] = t11;
32333
- $[17] = t18;
32334
- $[18] = t19;
32381
+ if ($[13] !== t17 || $[14] !== t18) {
32382
+ t19 = /* @__PURE__ */ jsx("div", { className: t17, children: t18 });
32383
+ $[13] = t17;
32384
+ $[14] = t18;
32385
+ $[15] = t19;
32335
32386
  } else {
32336
- t19 = $[18];
32387
+ t19 = $[15];
32337
32388
  }
32338
32389
  let t20;
32339
- if ($[19] !== disabled || $[20] !== id || $[21] !== t19 || $[22] !== t5 || $[23] !== t6) {
32340
- t20 = /* @__PURE__ */ jsx(CheckboxPrimitive.Root, { id, checked: t5, disabled, onCheckedChange: t6, children: t19 });
32341
- $[19] = disabled;
32342
- $[20] = id;
32343
- $[21] = t19;
32344
- $[22] = t5;
32345
- $[23] = t6;
32346
- $[24] = t20;
32390
+ if ($[16] !== t12 || $[17] !== t19) {
32391
+ t20 = /* @__PURE__ */ jsx("div", { className: t12, children: t19 });
32392
+ $[16] = t12;
32393
+ $[17] = t19;
32394
+ $[18] = t20;
32395
+ } else {
32396
+ t20 = $[18];
32397
+ }
32398
+ let t21;
32399
+ if ($[19] !== ariaLabel || $[20] !== disabled || $[21] !== id || $[22] !== t20 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
32400
+ t21 = /* @__PURE__ */ jsx(CheckboxPrimitive.Root, { id, checked: t5, disabled, "aria-label": ariaLabel, "aria-checked": t6, onCheckedChange: t7, children: t20 });
32401
+ $[19] = ariaLabel;
32402
+ $[20] = disabled;
32403
+ $[21] = id;
32404
+ $[22] = t20;
32405
+ $[23] = t5;
32406
+ $[24] = t6;
32407
+ $[25] = t7;
32408
+ $[26] = t21;
32347
32409
  } else {
32348
- t20 = $[24];
32410
+ t21 = $[26];
32349
32411
  }
32350
- return t20;
32412
+ return t21;
32351
32413
  });
32414
+ Checkbox.displayName = "Checkbox";
32352
32415
  const sizeClassNames = {
32416
+ smallest: "px-1.5 py-px text-[10px]",
32353
32417
  small: "px-2 py-0.5 text-sm",
32354
32418
  medium: "px-3 py-1 text-sm",
32355
32419
  large: "px-4 py-1.5 text-sm"
32356
32420
  };
32421
+ function isDarkMode() {
32422
+ return typeof document !== "undefined" && document.documentElement.classList.contains("dark");
32423
+ }
32424
+ function getRgba(hex, alpha) {
32425
+ if (!hex || !hex.startsWith("#")) return hex;
32426
+ let color = hex.slice(1);
32427
+ if (color.length === 3) {
32428
+ color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
32429
+ }
32430
+ const r = parseInt(color.slice(0, 2), 16);
32431
+ const g = parseInt(color.slice(2, 4), 16);
32432
+ const b = parseInt(color.slice(4, 6), 16);
32433
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
32434
+ }
32357
32435
  const Chip = React__default.forwardRef(function Chip2(t0, ref) {
32358
- const $ = c(19);
32436
+ const $ = c(25);
32359
32437
  const {
32360
32438
  children,
32361
32439
  colorScheme,
32362
32440
  error,
32441
+ outlined,
32363
32442
  onClick,
32364
32443
  icon,
32365
32444
  size: t1,
@@ -32376,56 +32455,180 @@ const Chip = React__default.forwardRef(function Chip2(t0, ref) {
32376
32455
  t2 = $[1];
32377
32456
  }
32378
32457
  const usedColorScheme = t2;
32379
- const t3 = onClick ? "cursor-pointer hover:bg-surface-accent-300 hover:dark:bg-surface-accent-700" : "";
32380
- const t4 = sizeClassNames[size];
32381
- const t5 = error || !usedColorScheme ? "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white" : "";
32382
- const t6 = error ? "text-red-500 dark:text-red-400" : "";
32458
+ const dark = isDarkMode();
32459
+ const hasScheme = Boolean(error || usedColorScheme);
32460
+ let textColor = "";
32461
+ let bgColor = "";
32462
+ let border = "";
32463
+ if (error) {
32464
+ textColor = dark ? "#f87171" : "#dc2626";
32465
+ } else {
32466
+ if (usedColorScheme) {
32467
+ textColor = dark && usedColorScheme.darkText ? usedColorScheme.darkText : usedColorScheme.text;
32468
+ }
32469
+ }
32470
+ if (hasScheme) {
32471
+ if (outlined) {
32472
+ let t32;
32473
+ if ($[2] !== textColor) {
32474
+ t32 = getRgba(textColor, dark ? 0.1 : 0.06);
32475
+ $[2] = textColor;
32476
+ $[3] = t32;
32477
+ } else {
32478
+ t32 = $[3];
32479
+ }
32480
+ bgColor = t32;
32481
+ border = `1px solid ${getRgba(textColor, dark ? 0.2 : 0.14)}`;
32482
+ } else {
32483
+ if (error) {
32484
+ bgColor = dark ? "rgba(220, 38, 38, 0.15)" : "rgba(239, 68, 68, 0.1)";
32485
+ border = `1px solid ${dark ? "rgba(220, 38, 38, 0.3)" : "rgba(239, 68, 68, 0.2)"}`;
32486
+ } else {
32487
+ if (usedColorScheme) {
32488
+ bgColor = dark && usedColorScheme.darkColor ? usedColorScheme.darkColor : usedColorScheme.color;
32489
+ }
32490
+ }
32491
+ }
32492
+ }
32493
+ const t3 = !hasScheme && "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white";
32494
+ const t4 = !hasScheme && outlined && "bg-transparent dark:bg-transparent border border-surface-accent-300 dark:border-surface-accent-700";
32495
+ const t5 = onClick ? "cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/5" : "";
32496
+ const t6 = sizeClassNames[size];
32383
32497
  let t7;
32384
- if ($[2] !== className || $[3] !== t3 || $[4] !== t4 || $[5] !== t5 || $[6] !== t6) {
32385
- 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);
32386
- $[2] = className;
32387
- $[3] = t3;
32388
- $[4] = t4;
32389
- $[5] = t5;
32390
- $[6] = t6;
32391
- $[7] = t7;
32498
+ if ($[4] !== className || $[5] !== t3 || $[6] !== t4 || $[7] !== t5 || $[8] !== t6) {
32499
+ 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);
32500
+ $[4] = className;
32501
+ $[5] = t3;
32502
+ $[6] = t4;
32503
+ $[7] = t5;
32504
+ $[8] = t6;
32505
+ $[9] = t7;
32392
32506
  } else {
32393
- t7 = $[7];
32507
+ t7 = $[9];
32394
32508
  }
32395
- const t8 = error || !usedColorScheme ? void 0 : usedColorScheme.color;
32396
- const t9 = error || !usedColorScheme ? void 0 : usedColorScheme.text;
32397
- let t10;
32398
- if ($[8] !== style || $[9] !== t8 || $[10] !== t9) {
32399
- t10 = {
32400
- backgroundColor: t8,
32401
- color: t9,
32509
+ let t8;
32510
+ if ($[10] !== bgColor || $[11] !== border || $[12] !== hasScheme || $[13] !== textColor) {
32511
+ t8 = hasScheme ? {
32512
+ backgroundColor: bgColor,
32513
+ color: textColor,
32514
+ border: border || void 0
32515
+ } : {};
32516
+ $[10] = bgColor;
32517
+ $[11] = border;
32518
+ $[12] = hasScheme;
32519
+ $[13] = textColor;
32520
+ $[14] = t8;
32521
+ } else {
32522
+ t8 = $[14];
32523
+ }
32524
+ let t9;
32525
+ if ($[15] !== style || $[16] !== t8) {
32526
+ t9 = {
32527
+ ...t8,
32402
32528
  overflow: "hidden",
32403
32529
  ...style
32404
32530
  };
32405
- $[8] = style;
32406
- $[9] = t8;
32407
- $[10] = t9;
32408
- $[11] = t10;
32531
+ $[15] = style;
32532
+ $[16] = t8;
32533
+ $[17] = t9;
32409
32534
  } else {
32410
- t10 = $[11];
32535
+ t9 = $[17];
32411
32536
  }
32412
- let t11;
32413
- if ($[12] !== children || $[13] !== icon || $[14] !== onClick || $[15] !== ref || $[16] !== t10 || $[17] !== t7) {
32414
- t11 = /* @__PURE__ */ jsxs("div", { ref, className: t7, onClick, style: t10, children: [
32537
+ let t10;
32538
+ if ($[18] !== children || $[19] !== icon || $[20] !== onClick || $[21] !== ref || $[22] !== t7 || $[23] !== t9) {
32539
+ t10 = /* @__PURE__ */ jsxs("div", { ref, className: t7, onClick, style: t9, children: [
32540
+ icon,
32541
+ children
32542
+ ] });
32543
+ $[18] = children;
32544
+ $[19] = icon;
32545
+ $[20] = onClick;
32546
+ $[21] = ref;
32547
+ $[22] = t7;
32548
+ $[23] = t9;
32549
+ $[24] = t10;
32550
+ } else {
32551
+ t10 = $[24];
32552
+ }
32553
+ return t10;
32554
+ });
32555
+ const sizeClasses$1 = {
32556
+ small: "px-2 py-0.5 text-xs",
32557
+ medium: "px-2.5 py-1 text-xs"
32558
+ };
32559
+ const FilterChip = React__default.forwardRef(function FilterChip2(t0, ref) {
32560
+ const $ = c(22);
32561
+ let children;
32562
+ let className;
32563
+ let icon;
32564
+ let onClick;
32565
+ let rest;
32566
+ let t1;
32567
+ let t2;
32568
+ let t3;
32569
+ if ($[0] !== t0) {
32570
+ ({
32415
32571
  children,
32416
- icon
32572
+ active: t1,
32573
+ onClick,
32574
+ icon,
32575
+ size: t2,
32576
+ className,
32577
+ disabled: t3,
32578
+ ...rest
32579
+ } = t0);
32580
+ $[0] = t0;
32581
+ $[1] = children;
32582
+ $[2] = className;
32583
+ $[3] = icon;
32584
+ $[4] = onClick;
32585
+ $[5] = rest;
32586
+ $[6] = t1;
32587
+ $[7] = t2;
32588
+ $[8] = t3;
32589
+ } else {
32590
+ children = $[1];
32591
+ className = $[2];
32592
+ icon = $[3];
32593
+ onClick = $[4];
32594
+ rest = $[5];
32595
+ t1 = $[6];
32596
+ t2 = $[7];
32597
+ t3 = $[8];
32598
+ }
32599
+ const active = t1 === void 0 ? false : t1;
32600
+ const size = t2 === void 0 ? "medium" : t2;
32601
+ const disabled = t3 === void 0 ? false : t3;
32602
+ const t4 = sizeClasses$1[size];
32603
+ let t5;
32604
+ if ($[9] !== active || $[10] !== className || $[11] !== disabled || $[12] !== t4) {
32605
+ 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);
32606
+ $[9] = active;
32607
+ $[10] = className;
32608
+ $[11] = disabled;
32609
+ $[12] = t4;
32610
+ $[13] = t5;
32611
+ } else {
32612
+ t5 = $[13];
32613
+ }
32614
+ let t6;
32615
+ if ($[14] !== children || $[15] !== disabled || $[16] !== icon || $[17] !== onClick || $[18] !== ref || $[19] !== rest || $[20] !== t5) {
32616
+ t6 = /* @__PURE__ */ jsxs("button", { ref, type: "button", onClick, disabled, className: t5, ...rest, children: [
32617
+ icon,
32618
+ children
32417
32619
  ] });
32418
- $[12] = children;
32419
- $[13] = icon;
32420
- $[14] = onClick;
32421
- $[15] = ref;
32422
- $[16] = t10;
32423
- $[17] = t7;
32424
- $[18] = t11;
32620
+ $[14] = children;
32621
+ $[15] = disabled;
32622
+ $[16] = icon;
32623
+ $[17] = onClick;
32624
+ $[18] = ref;
32625
+ $[19] = rest;
32626
+ $[20] = t5;
32627
+ $[21] = t6;
32425
32628
  } else {
32426
- t11 = $[18];
32629
+ t6 = $[21];
32427
32630
  }
32428
- return t11;
32631
+ return t6;
32429
32632
  });
32430
32633
  const Tooltip = React__default.forwardRef((t0, ref) => {
32431
32634
  const $ = c(47);
@@ -32502,7 +32705,7 @@ const Tooltip = React__default.forwardRef((t0, ref) => {
32502
32705
  const side = t1 === void 0 ? "bottom" : t1;
32503
32706
  const delayDuration = t2 === void 0 ? 200 : t2;
32504
32707
  const asChild = t3 === void 0 ? false : t3;
32505
- useInjectStyles("Tooltip", styles);
32708
+ useInjectStyles("Tooltip", styles$1);
32506
32709
  const contextContainer = usePortalContainer();
32507
32710
  const finalContainer = container ?? contextContainer ?? void 0;
32508
32711
  if (!title) {
@@ -32587,7 +32790,7 @@ const Tooltip = React__default.forwardRef((t0, ref) => {
32587
32790
  }
32588
32791
  return t10;
32589
32792
  });
32590
- const styles = `
32793
+ const styles$1 = `
32591
32794
 
32592
32795
  .TooltipContent {
32593
32796
  animation-duration: 220ms;
@@ -32733,13 +32936,13 @@ function ColorPicker(t0) {
32733
32936
  }
32734
32937
  return t7;
32735
32938
  }
32736
- const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-105 transition-transform";
32939
+ const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-[1.04] active:scale-95 transition-transform";
32737
32940
  const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
32738
- const colorClasses$1 = "text-surface-accent-600 visited:text-surface-accent-600 dark:text-surface-accent-300 dark:visited:text-surface-300";
32941
+ const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
32739
32942
  const sizeClasses = {
32740
32943
  medium: "w-10 !h-10 min-w-10 min-h-10",
32741
32944
  small: "w-8 !h-8 min-w-8 min-h-8",
32742
- smallest: "w-6 !h-6 min-w-6 min-h-6",
32945
+ smallest: "w-7 !h-7 min-w-7 min-h-7",
32743
32946
  large: "w-12 !h-12 min-w-12 min-h-12"
32744
32947
  };
32745
32948
  const shapeClasses = {
@@ -32747,7 +32950,7 @@ const shapeClasses = {
32747
32950
  square: "rounded-md"
32748
32951
  };
32749
32952
  const IconButtonInner = (t0, ref) => {
32750
- const $ = c(23);
32953
+ const $ = c(27);
32751
32954
  let children;
32752
32955
  let className;
32753
32956
  let component;
@@ -32793,42 +32996,51 @@ const IconButtonInner = (t0, ref) => {
32793
32996
  const size = t1 === void 0 ? "medium" : t1;
32794
32997
  const variant = t2 === void 0 ? "ghost" : t2;
32795
32998
  const shape = t3 === void 0 ? "circular" : t3;
32796
- const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 bg-surface-accent-200/50 dark:bg-surface-950 dark:bg-opacity-50 dark:bg-surface-950/50";
32999
+ const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 bg-surface-accent-200/50 dark:bg-surface-900 dark:bg-opacity-50 dark:bg-surface-900/50";
32797
33000
  const Component = component || "button";
32798
- const t4 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
32799
- const t5 = toggled ? "outline outline-2 outline-primary" : "";
32800
- const t6 = shapeClasses[shape];
32801
- const t7 = sizeClasses[size];
32802
- let t8;
32803
- if ($[10] !== bgClasses || $[11] !== className || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
32804
- t8 = cls(t4, t5, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t6, t7, className);
33001
+ const isNativeButton = Component === "button";
33002
+ const t4 = isNativeButton ? "button" : void 0;
33003
+ const t5 = isNativeButton ? void 0 : "button";
33004
+ const t6 = disabled || void 0;
33005
+ const t7 = disabled ? -1 : void 0;
33006
+ const t8 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
33007
+ const t9 = toggled ? "outline outline-2 outline-primary" : "";
33008
+ const t10 = shapeClasses[shape];
33009
+ const t11 = sizeClasses[size];
33010
+ let t12;
33011
+ if ($[10] !== bgClasses || $[11] !== className || $[12] !== t10 || $[13] !== t11 || $[14] !== t8 || $[15] !== t9) {
33012
+ t12 = cls(t8, t9, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t10, t11, className);
32805
33013
  $[10] = bgClasses;
32806
33014
  $[11] = className;
32807
- $[12] = t4;
32808
- $[13] = t5;
32809
- $[14] = t6;
32810
- $[15] = t7;
32811
- $[16] = t8;
33015
+ $[12] = t10;
33016
+ $[13] = t11;
33017
+ $[14] = t8;
33018
+ $[15] = t9;
33019
+ $[16] = t12;
32812
33020
  } else {
32813
- t8 = $[16];
33021
+ t12 = $[16];
32814
33022
  }
32815
- let t9;
32816
- if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !== t8) {
32817
- t9 = /* @__PURE__ */ jsx(Component, { type: "button", ref, ...props, className: t8, children });
33023
+ let t13;
33024
+ if ($[17] !== Component || $[18] !== children || $[19] !== props || $[20] !== ref || $[21] !== t12 || $[22] !== t4 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
33025
+ t13 = /* @__PURE__ */ jsx(Component, { type: t4, role: t5, "aria-disabled": t6, tabIndex: t7, ref, ...props, className: t12, children });
32818
33026
  $[17] = Component;
32819
33027
  $[18] = children;
32820
33028
  $[19] = props;
32821
33029
  $[20] = ref;
32822
- $[21] = t8;
32823
- $[22] = t9;
33030
+ $[21] = t12;
33031
+ $[22] = t4;
33032
+ $[23] = t5;
33033
+ $[24] = t6;
33034
+ $[25] = t7;
33035
+ $[26] = t13;
32824
33036
  } else {
32825
- t9 = $[22];
33037
+ t13 = $[26];
32826
33038
  }
32827
- return t9;
33039
+ return t13;
32828
33040
  };
32829
33041
  const IconButton = React__default.forwardRef(IconButtonInner);
32830
33042
  const defaultClasses = {
32831
- root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-overflow-ellipsis max-w-full",
33043
+ root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-ellipsis max-w-full",
32832
33044
  shrink: "transform translate-y-[2px] scale-75 translate-x-[12px]",
32833
33045
  expanded: "translate-x-[16px] top-0 transform translate-y-[16px] scale-100"
32834
33046
  };
@@ -32859,7 +33071,7 @@ const InputLabel = React.forwardRef(function InputLabel2(inProps, ref) {
32859
33071
  [defaultClasses.shrink]: shrink,
32860
33072
  [defaultClasses.expanded]: t0
32861
33073
  }, className);
32862
- t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", defaultBorderMixin, computedClassName);
33074
+ t1 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", defaultBorderMixin, computedClassName);
32863
33075
  $[4] = className;
32864
33076
  $[5] = shrink;
32865
33077
  $[6] = t0;
@@ -33240,7 +33452,7 @@ const widthClasses = {
33240
33452
  full: "max-w-full w-full"
33241
33453
  };
33242
33454
  const Dialog = (t0) => {
33243
- const $ = c(45);
33455
+ const $ = c(46);
33244
33456
  const {
33245
33457
  open,
33246
33458
  onOpenChange,
@@ -33258,7 +33470,8 @@ const Dialog = (t0) => {
33258
33470
  onPointerDownOutside,
33259
33471
  onInteractOutside,
33260
33472
  disableInitialFocus: t5,
33261
- portalContainer
33473
+ portalContainer,
33474
+ "aria-describedby": ariaDescribedby
33262
33475
  } = t0;
33263
33476
  const fullWidth = t1 === void 0 ? true : t1;
33264
33477
  const scrollable = t2 === void 0 ? true : t2;
@@ -33279,7 +33492,7 @@ const Dialog = (t0) => {
33279
33492
  return () => clearTimeout(timeout);
33280
33493
  } else {
33281
33494
  setDisplayed(true);
33282
- return _temp$4;
33495
+ return _temp$5;
33283
33496
  }
33284
33497
  };
33285
33498
  t7 = [open];
@@ -33303,7 +33516,7 @@ const Dialog = (t0) => {
33303
33516
  const t10 = displayed && open ? "opacity-100" : "opacity-0";
33304
33517
  let t11;
33305
33518
  if ($[5] !== t10) {
33306
- 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");
33519
+ t11 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black/50 dark:bg-black/60 backdrop-blur-sm", t10, "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center");
33307
33520
  $[5] = t10;
33308
33521
  $[6] = t11;
33309
33522
  } else {
@@ -33345,16 +33558,16 @@ const Dialog = (t0) => {
33345
33558
  }
33346
33559
  let t16;
33347
33560
  if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
33348
- t16 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
33561
+ t16 = cls("relative h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
33349
33562
  $[15] = t16;
33350
33563
  } else {
33351
33564
  t16 = $[15];
33352
33565
  }
33353
33566
  const t17 = fullWidth && !fullScreen ? "w-11/12" : void 0;
33354
33567
  const t18 = fullHeight && !fullScreen ? "h-full" : void 0;
33355
- const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl";
33568
+ const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-lg";
33356
33569
  const t20 = scrollable && "overflow-y-auto";
33357
- const t21 = displayed && open ? "opacity-100" : "opacity-0";
33570
+ const t21 = displayed && open ? "opacity-100 scale-100" : "opacity-0 scale-[0.97]";
33358
33571
  const t22 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
33359
33572
  let t23;
33360
33573
  if ($[16] !== className || $[17] !== t17 || $[18] !== t18 || $[19] !== t19 || $[20] !== t20 || $[21] !== t21 || $[22] !== t22) {
@@ -33380,53 +33593,54 @@ const Dialog = (t0) => {
33380
33593
  t24 = $[26];
33381
33594
  }
33382
33595
  let t25;
33383
- if ($[27] !== onEscapeKeyDown || $[28] !== onInteractOutside || $[29] !== onPointerDownOutside || $[30] !== t15 || $[31] !== t24) {
33384
- t25 = /* @__PURE__ */ jsx(DialogPrimitive.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, className: t16, children: t24 });
33385
- $[27] = onEscapeKeyDown;
33386
- $[28] = onInteractOutside;
33387
- $[29] = onPointerDownOutside;
33388
- $[30] = t15;
33389
- $[31] = t24;
33390
- $[32] = t25;
33391
- } else {
33392
- t25 = $[32];
33596
+ if ($[27] !== ariaDescribedby || $[28] !== onEscapeKeyDown || $[29] !== onInteractOutside || $[30] !== onPointerDownOutside || $[31] !== t15 || $[32] !== t24) {
33597
+ t25 = /* @__PURE__ */ jsx(DialogPrimitive.Content, { onEscapeKeyDown, onOpenAutoFocus: t15, onPointerDownOutside, onInteractOutside, "aria-describedby": ariaDescribedby, className: t16, children: t24 });
33598
+ $[27] = ariaDescribedby;
33599
+ $[28] = onEscapeKeyDown;
33600
+ $[29] = onInteractOutside;
33601
+ $[30] = onPointerDownOutside;
33602
+ $[31] = t15;
33603
+ $[32] = t24;
33604
+ $[33] = t25;
33605
+ } else {
33606
+ t25 = $[33];
33393
33607
  }
33394
33608
  let t26;
33395
- if ($[33] !== t14 || $[34] !== t25 || $[35] !== t9) {
33609
+ if ($[34] !== t14 || $[35] !== t25 || $[36] !== t9) {
33396
33610
  t26 = /* @__PURE__ */ jsxs("div", { className: t9, children: [
33397
33611
  t14,
33398
33612
  t25
33399
33613
  ] });
33400
- $[33] = t14;
33401
- $[34] = t25;
33402
- $[35] = t9;
33403
- $[36] = t26;
33614
+ $[34] = t14;
33615
+ $[35] = t25;
33616
+ $[36] = t9;
33617
+ $[37] = t26;
33404
33618
  } else {
33405
- t26 = $[36];
33619
+ t26 = $[37];
33406
33620
  }
33407
33621
  let t27;
33408
- if ($[37] !== finalContainer || $[38] !== t26) {
33622
+ if ($[38] !== finalContainer || $[39] !== t26) {
33409
33623
  t27 = /* @__PURE__ */ jsx(DialogPrimitive.Portal, { container: finalContainer, children: t26 });
33410
- $[37] = finalContainer;
33411
- $[38] = t26;
33412
- $[39] = t27;
33624
+ $[38] = finalContainer;
33625
+ $[39] = t26;
33626
+ $[40] = t27;
33413
33627
  } else {
33414
- t27 = $[39];
33628
+ t27 = $[40];
33415
33629
  }
33416
33630
  let t28;
33417
- if ($[40] !== modal || $[41] !== onOpenChange || $[42] !== t27 || $[43] !== t8) {
33631
+ if ($[41] !== modal || $[42] !== onOpenChange || $[43] !== t27 || $[44] !== t8) {
33418
33632
  t28 = /* @__PURE__ */ jsx(DialogPrimitive.Root, { open: t8, modal, onOpenChange, children: t27 });
33419
- $[40] = modal;
33420
- $[41] = onOpenChange;
33421
- $[42] = t27;
33422
- $[43] = t8;
33423
- $[44] = t28;
33633
+ $[41] = modal;
33634
+ $[42] = onOpenChange;
33635
+ $[43] = t27;
33636
+ $[44] = t8;
33637
+ $[45] = t28;
33424
33638
  } else {
33425
- t28 = $[44];
33639
+ t28 = $[45];
33426
33640
  }
33427
33641
  return t28;
33428
33642
  };
33429
- function _temp$4() {
33643
+ function _temp$5() {
33430
33644
  }
33431
33645
  function DialogActions(t0) {
33432
33646
  const $ = c(7);
@@ -33579,7 +33793,7 @@ function DialogTitle(t0) {
33579
33793
  return title;
33580
33794
  }
33581
33795
  function ExpandablePanel(t0) {
33582
- const $ = c(40);
33796
+ const $ = c(41);
33583
33797
  const {
33584
33798
  title,
33585
33799
  children,
@@ -33665,7 +33879,7 @@ function ExpandablePanel(t0) {
33665
33879
  const t7 = !invisible && defaultBorderMixin + " border";
33666
33880
  let t8;
33667
33881
  if ($[6] !== className || $[7] !== t7) {
33668
- t8 = cls(t7, "rounded-md", "w-full", className);
33882
+ t8 = cls(t7, "rounded-lg", "w-full", className);
33669
33883
  $[6] = className;
33670
33884
  $[7] = t7;
33671
33885
  $[8] = t8;
@@ -33689,7 +33903,7 @@ function ExpandablePanel(t0) {
33689
33903
  const t13 = asField && fieldBackgroundMixin;
33690
33904
  let t14;
33691
33905
  if ($[11] !== t10 || $[12] !== t11 || $[13] !== t12 || $[14] !== t13 || $[15] !== titleClassName) {
33692
- t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
33906
+ t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40 active:bg-surface-accent-300/50 dark:active:bg-surface-700/50", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
33693
33907
  $[11] = t10;
33694
33908
  $[12] = t11;
33695
33909
  $[13] = t12;
@@ -33717,68 +33931,69 @@ function ExpandablePanel(t0) {
33717
33931
  t17 = $[20];
33718
33932
  }
33719
33933
  let t18;
33720
- if ($[21] !== t14 || $[22] !== t17 || $[23] !== title) {
33721
- t18 = /* @__PURE__ */ jsx(Collapsible.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: t14, role: "button", tabIndex: 0, children: [
33934
+ if ($[21] !== open || $[22] !== t14 || $[23] !== t17 || $[24] !== title) {
33935
+ t18 = /* @__PURE__ */ jsx(Collapsible.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: t14, role: "button", tabIndex: 0, "aria-expanded": open, children: [
33722
33936
  title,
33723
33937
  t17
33724
33938
  ] }) });
33725
- $[21] = t14;
33726
- $[22] = t17;
33727
- $[23] = title;
33728
- $[24] = t18;
33939
+ $[21] = open;
33940
+ $[22] = t14;
33941
+ $[23] = t17;
33942
+ $[24] = title;
33943
+ $[25] = t18;
33729
33944
  } else {
33730
- t18 = $[24];
33945
+ t18 = $[25];
33731
33946
  }
33732
33947
  let t19;
33733
- if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
33948
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
33734
33949
  t19 = cls("CollapsibleContent");
33735
- $[25] = t19;
33950
+ $[26] = t19;
33736
33951
  } else {
33737
- t19 = $[25];
33952
+ t19 = $[26];
33738
33953
  }
33739
33954
  const t20 = allowOverflow ? "visible" : "hidden";
33740
33955
  let t21;
33741
- if ($[26] !== t20) {
33956
+ if ($[27] !== t20) {
33742
33957
  t21 = {
33743
33958
  overflow: t20
33744
33959
  };
33745
- $[26] = t20;
33746
- $[27] = t21;
33960
+ $[27] = t20;
33961
+ $[28] = t21;
33747
33962
  } else {
33748
- t21 = $[27];
33963
+ t21 = $[28];
33749
33964
  }
33750
33965
  let t22;
33751
- if ($[28] !== children || $[29] !== innerClassName) {
33966
+ if ($[29] !== children || $[30] !== innerClassName) {
33752
33967
  t22 = /* @__PURE__ */ jsx("div", { className: innerClassName, children });
33753
- $[28] = children;
33754
- $[29] = innerClassName;
33755
- $[30] = t22;
33968
+ $[29] = children;
33969
+ $[30] = innerClassName;
33970
+ $[31] = t22;
33756
33971
  } else {
33757
- t22 = $[30];
33972
+ t22 = $[31];
33758
33973
  }
33759
33974
  let t23;
33760
- if ($[31] !== t21 || $[32] !== t22) {
33975
+ if ($[32] !== t21 || $[33] !== t22) {
33761
33976
  t23 = /* @__PURE__ */ jsx(Collapsible.Content, { className: t19, style: t21, children: t22 });
33762
- $[31] = t21;
33763
- $[32] = t22;
33764
- $[33] = t23;
33977
+ $[32] = t21;
33978
+ $[33] = t22;
33979
+ $[34] = t23;
33765
33980
  } else {
33766
- t23 = $[33];
33981
+ t23 = $[34];
33767
33982
  }
33768
33983
  let t24;
33769
- if ($[34] !== open || $[35] !== t18 || $[36] !== t23 || $[37] !== t8 || $[38] !== t9) {
33984
+ if ($[35] !== open || $[36] !== t18 || $[37] !== t23 || $[38] !== t8 || $[39] !== t9) {
33770
33985
  t24 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Collapsible.Root, { className: t8, open, onOpenChange: t9, children: [
33771
33986
  t18,
33772
33987
  t23
33773
33988
  ] }) });
33774
- $[34] = open;
33775
- $[35] = t18;
33776
- $[36] = t23;
33777
- $[37] = t8;
33778
- $[38] = t9;
33779
- $[39] = t24;
33989
+ $[35] = open;
33990
+ $[36] = t18;
33991
+ $[37] = t23;
33992
+ $[38] = t8;
33993
+ $[39] = t9;
33994
+ $[40] = t24;
33780
33995
  } else {
33781
- t24 = $[39];
33996
+ t24 = $[40];
33782
33997
  }
33783
33998
  return t24;
33784
33999
  }
@@ -33929,7 +34144,7 @@ function InfoLabel(t0) {
33929
34144
  const t2 = colorClasses[mode];
33930
34145
  let t3;
33931
34146
  if ($[0] !== t2) {
33932
- t3 = cls("my-3 py-2 px-4 rounded", t2);
34147
+ t3 = cls("my-3 py-2 px-4 rounded-xs", t2);
33933
34148
  $[0] = t2;
33934
34149
  $[1] = t3;
33935
34150
  } else {
@@ -33974,7 +34189,7 @@ const Label = React.forwardRef((t0, ref) => {
33974
34189
  const t2 = onClick && "hover:cursor-pointer hover:bg-surface-200 dark:hover:bg-surface-800";
33975
34190
  let t3;
33976
34191
  if ($[5] !== className || $[6] !== t1 || $[7] !== t2) {
33977
- t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", t1, t2, defaultBorderMixin, className);
34192
+ t3 = cls("text-sm font-medium peer-disabled:cursor-not-allowed", t1, t2, defaultBorderMixin, className);
33978
34193
  $[5] = className;
33979
34194
  $[6] = t1;
33980
34195
  $[7] = t2;
@@ -34234,6 +34449,7 @@ const MenuItem = React__default.memo((t0) => {
34234
34449
  }
34235
34450
  return t9;
34236
34451
  });
34452
+ MenuItem.displayName = "MenuItem";
34237
34453
  function Menubar(t0) {
34238
34454
  const $ = c(6);
34239
34455
  const {
@@ -34891,7 +35107,7 @@ function Separator(t0) {
34891
35107
  if (orientation === "horizontal") {
34892
35108
  let t1;
34893
35109
  if ($[0] !== className) {
34894
- 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);
35110
+ t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-4", className);
34895
35111
  $[0] = className;
34896
35112
  $[1] = t1;
34897
35113
  } else {
@@ -34910,7 +35126,7 @@ function Separator(t0) {
34910
35126
  } else {
34911
35127
  let t1;
34912
35128
  if ($[5] !== className) {
34913
- 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);
35129
+ t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-4", className);
34914
35130
  $[5] = className;
34915
35131
  $[6] = t1;
34916
35132
  } else {
@@ -35042,7 +35258,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
35042
35258
  let t12;
35043
35259
  let t13;
35044
35260
  if ($[9] !== children) {
35045
- t13 = children ? Children.map(children, _temp$3)?.filter(Boolean) ?? [] : [];
35261
+ t13 = children ? Children.map(children, _temp$4)?.filter(Boolean) ?? [] : [];
35046
35262
  $[9] = children;
35047
35263
  $[10] = t13;
35048
35264
  } else {
@@ -35588,7 +35804,7 @@ const InnerCheckBox = React.memo(function InnerCheckBox2(t0) {
35588
35804
  }
35589
35805
  return t7;
35590
35806
  });
35591
- function _temp$3(child) {
35807
+ function _temp$4(child) {
35592
35808
  if (React.isValidElement(child)) {
35593
35809
  return child.props.value;
35594
35810
  }
@@ -35688,7 +35904,7 @@ const RadioGroupItem = React.forwardRef((t0, ref) => {
35688
35904
  }
35689
35905
  let t1;
35690
35906
  if ($[3] !== className) {
35691
- 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);
35907
+ t1 = cls("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className);
35692
35908
  $[3] = className;
35693
35909
  $[4] = t1;
35694
35910
  } else {
@@ -36476,7 +36692,7 @@ const SearchableSelect = React.forwardRef((t0, ref) => {
36476
36692
  }
36477
36693
  const itemValue = child_0.props.value;
36478
36694
  const isSelected = String(value) === String(itemValue);
36479
- return /* @__PURE__ */ jsxs(Command.Item, { value: String(itemValue), onMouseDown: _temp$2, onSelect: () => handleSelect(String(itemValue)), className: cls("flex flex-row items-center gap-1.5", isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "", "cursor-pointer", "m-0.5", "ring-offset-transparent", "p-1.5 rounded", "aria-[selected=true]:outline-none", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "text-surface-accent-700 dark:text-surface-accent-300", child_0.props.className), children: [
36695
+ return /* @__PURE__ */ jsxs(Command.Item, { value: String(itemValue), onMouseDown: _temp$3, onSelect: () => handleSelect(String(itemValue)), className: cls("flex flex-row items-center gap-1.5", isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "", "cursor-pointer", "m-0.5", "ring-offset-transparent", "p-1.5 rounded", "aria-[selected=true]:outline-none", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "text-surface-accent-700 dark:text-surface-accent-300", child_0.props.className), children: [
36480
36696
  /* @__PURE__ */ jsx("div", { className: cls("w-4 h-4 flex items-center justify-center flex-shrink-0", isSelected ? "text-primary" : "text-transparent"), children: isSelected && /* @__PURE__ */ jsx(CheckIcon, { size: 14 }) }),
36481
36697
  child_0.props.children ?? child_0.props.value
36482
36698
  ] }, String(itemValue));
@@ -36579,12 +36795,12 @@ SearchableSelect.displayName = "SearchableSelect";
36579
36795
  function SearchableSelectItem(_props) {
36580
36796
  return null;
36581
36797
  }
36582
- function _temp$2(e_0) {
36798
+ function _temp$3(e_0) {
36583
36799
  e_0.preventDefault();
36584
36800
  e_0.stopPropagation();
36585
36801
  }
36586
36802
  const Select = forwardRef((t0, ref) => {
36587
- const $ = c(121);
36803
+ const $ = c(123);
36588
36804
  let children;
36589
36805
  let className;
36590
36806
  let disabled;
@@ -36811,7 +37027,7 @@ const Select = forwardRef((t0, ref) => {
36811
37027
  const t18 = !fullWidth;
36812
37028
  let t19;
36813
37029
  if ($[43] !== className || $[44] !== fullWidth || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18) {
36814
- t19 = cls("select-none rounded-md text-sm", t12, t13, "relative flex items-center", className, {
37030
+ t19 = cls("select-none rounded-lg text-sm", t12, t13, "relative flex items-center", className, {
36815
37031
  "min-h-[28px]": t14,
36816
37032
  "min-h-[32px]": t15,
36817
37033
  "min-h-[44px]": t16,
@@ -36832,13 +37048,15 @@ const Select = forwardRef((t0, ref) => {
36832
37048
  } else {
36833
37049
  t19 = $[52];
36834
37050
  }
36835
- let t20;
37051
+ const t20 = typeof label === "string" ? label : typeof renderValue === "string" ? renderValue : "Select an option";
37052
+ const t21 = error || void 0;
37053
+ let t22;
36836
37054
  if ($[53] !== disabled || $[54] !== error || $[55] !== fullWidth || $[56] !== inputClassName || $[57] !== padding || $[58] !== size) {
36837
- t20 = cls("h-full", padding ? {
37055
+ t22 = cls("h-full", padding ? {
36838
37056
  "px-4": size === "large",
36839
37057
  "px-3": size === "medium",
36840
37058
  "px-2": size === "small" || size === "smallest"
36841
- } : "", "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", {
37059
+ } : "", "outline-hidden focus:outline-hidden", "outline-none focus:outline-none", "select-none rounded-lg text-sm", error ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark", error ? "border border-red-500 dark:border-red-600" : "", disabled ? "text-surface-accent-600 dark:text-surface-accent-400" : "text-surface-accent-800 dark:text-white", "relative flex flex-row items-center", {
36842
37060
  "min-h-[28px]": size === "smallest",
36843
37061
  "min-h-[32px]": size === "small",
36844
37062
  "min-h-[44px]": size === "medium",
@@ -36852,196 +37070,198 @@ const Select = forwardRef((t0, ref) => {
36852
37070
  $[56] = inputClassName;
36853
37071
  $[57] = padding;
36854
37072
  $[58] = size;
36855
- $[59] = t20;
37073
+ $[59] = t22;
36856
37074
  } else {
36857
- t20 = $[59];
37075
+ t22 = $[59];
36858
37076
  }
36859
- const t21 = size === "smallest";
36860
- const t22 = size === "small";
36861
- const t23 = size === "medium";
36862
- const t24 = size === "large";
36863
- let t25;
36864
- if ($[60] !== t21 || $[61] !== t22 || $[62] !== t23 || $[63] !== t24) {
36865
- t25 = cls("flex-grow max-w-full flex flex-row gap-2 items-center", "overflow-visible", {
36866
- "min-h-[28px]": t21,
36867
- "min-h-[32px]": t22,
36868
- "min-h-[44px]": t23,
36869
- "min-h-[64px]": t24
37077
+ const t23 = size === "smallest";
37078
+ const t24 = size === "small";
37079
+ const t25 = size === "medium";
37080
+ const t26 = size === "large";
37081
+ let t27;
37082
+ if ($[60] !== t23 || $[61] !== t24 || $[62] !== t25 || $[63] !== t26) {
37083
+ t27 = cls("flex-grow max-w-full flex flex-row gap-2 items-center", "overflow-visible", {
37084
+ "min-h-[28px]": t23,
37085
+ "min-h-[32px]": t24,
37086
+ "min-h-[44px]": t25,
37087
+ "min-h-[64px]": t26
36870
37088
  });
36871
- $[60] = t21;
36872
- $[61] = t22;
36873
- $[62] = t23;
36874
- $[63] = t24;
36875
- $[64] = t25;
37089
+ $[60] = t23;
37090
+ $[61] = t24;
37091
+ $[62] = t25;
37092
+ $[63] = t26;
37093
+ $[64] = t27;
36876
37094
  } else {
36877
- t25 = $[64];
37095
+ t27 = $[64];
36878
37096
  }
36879
- let t26;
37097
+ let t28;
36880
37098
  if ($[65] !== displayChildren || $[66] !== hasValue || $[67] !== placeholder || $[68] !== renderValue || $[69] !== value) {
36881
- t26 = hasValue && value !== void 0 && renderValue ? renderValue(value) : displayChildren || placeholder;
37099
+ t28 = hasValue && value !== void 0 && renderValue ? renderValue(value) : displayChildren || placeholder;
36882
37100
  $[65] = displayChildren;
36883
37101
  $[66] = hasValue;
36884
37102
  $[67] = placeholder;
36885
37103
  $[68] = renderValue;
36886
37104
  $[69] = value;
36887
- $[70] = t26;
37105
+ $[70] = t28;
36888
37106
  } else {
36889
- t26 = $[70];
37107
+ t28 = $[70];
36890
37108
  }
36891
- let t27;
36892
- if ($[71] !== placeholder || $[72] !== t26) {
36893
- t27 = /* @__PURE__ */ jsx(SelectPrimitive.Value, { onClick: _temp$1, placeholder, className: "w-full", children: t26 });
37109
+ let t29;
37110
+ if ($[71] !== placeholder || $[72] !== t28) {
37111
+ t29 = /* @__PURE__ */ jsx(SelectPrimitive.Value, { onClick: _temp$2, placeholder, className: "w-full", children: t28 });
36894
37112
  $[71] = placeholder;
36895
- $[72] = t26;
36896
- $[73] = t27;
37113
+ $[72] = t28;
37114
+ $[73] = t29;
36897
37115
  } else {
36898
- t27 = $[73];
37116
+ t29 = $[73];
36899
37117
  }
36900
- let t28;
36901
- if ($[74] !== ref || $[75] !== t25 || $[76] !== t27) {
36902
- t28 = /* @__PURE__ */ jsx("div", { ref, className: t25, children: t27 });
37118
+ let t30;
37119
+ if ($[74] !== ref || $[75] !== t27 || $[76] !== t29) {
37120
+ t30 = /* @__PURE__ */ jsx("div", { ref, className: t27, children: t29 });
36903
37121
  $[74] = ref;
36904
- $[75] = t25;
36905
- $[76] = t27;
36906
- $[77] = t28;
37122
+ $[75] = t27;
37123
+ $[76] = t29;
37124
+ $[77] = t30;
36907
37125
  } else {
36908
- t28 = $[77];
37126
+ t30 = $[77];
36909
37127
  }
36910
- const t29 = size === "large" ? "medium" : "small";
36911
- const t30 = open ? "rotate-180" : "";
36912
- const t31 = size === "large";
36913
- const t32 = size === "medium" || size === "small";
36914
- let t33;
36915
- if ($[78] !== t30 || $[79] !== t31 || $[80] !== t32) {
36916
- t33 = cls("transition", t30, {
36917
- "px-2": t31,
36918
- "px-1": t32
37128
+ const t31 = size === "large" ? "medium" : "small";
37129
+ const t32 = open ? "rotate-180" : "";
37130
+ const t33 = size === "large";
37131
+ const t34 = size === "medium" || size === "small";
37132
+ let t35;
37133
+ if ($[78] !== t32 || $[79] !== t33 || $[80] !== t34) {
37134
+ t35 = cls("transition", t32, {
37135
+ "px-2": t33,
37136
+ "px-1": t34
36919
37137
  });
36920
- $[78] = t30;
36921
- $[79] = t31;
36922
- $[80] = t32;
36923
- $[81] = t33;
37138
+ $[78] = t32;
37139
+ $[79] = t33;
37140
+ $[80] = t34;
37141
+ $[81] = t35;
36924
37142
  } else {
36925
- t33 = $[81];
37143
+ t35 = $[81];
36926
37144
  }
36927
- let t34;
36928
- if ($[82] !== t29 || $[83] !== t33) {
36929
- t34 = /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: t29, className: t33 }) });
36930
- $[82] = t29;
36931
- $[83] = t33;
36932
- $[84] = t34;
37145
+ let t36;
37146
+ if ($[82] !== t31 || $[83] !== t35) {
37147
+ t36 = /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: t31, className: t35 }) });
37148
+ $[82] = t31;
37149
+ $[83] = t35;
37150
+ $[84] = t36;
36933
37151
  } else {
36934
- t34 = $[84];
37152
+ t36 = $[84];
36935
37153
  }
36936
- let t35;
36937
- if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !== t28 || $[89] !== t34) {
36938
- t35 = /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref: inputRef, id, asChild: false, type: "button", className: t20, children: [
36939
- t28,
36940
- t34
37154
+ let t37;
37155
+ if ($[85] !== id || $[86] !== inputRef || $[87] !== t20 || $[88] !== t21 || $[89] !== t22 || $[90] !== t30 || $[91] !== t36) {
37156
+ t37 = /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref: inputRef, id, asChild: false, type: "button", "aria-label": t20, "aria-invalid": t21, className: t22, children: [
37157
+ t30,
37158
+ t36
36941
37159
  ] });
36942
37160
  $[85] = id;
36943
37161
  $[86] = inputRef;
36944
37162
  $[87] = t20;
36945
- $[88] = t28;
36946
- $[89] = t34;
36947
- $[90] = t35;
37163
+ $[88] = t21;
37164
+ $[89] = t22;
37165
+ $[90] = t30;
37166
+ $[91] = t36;
37167
+ $[92] = t37;
36948
37168
  } else {
36949
- t35 = $[90];
37169
+ t37 = $[92];
36950
37170
  }
36951
- let t36;
36952
- if ($[91] !== endAdornment) {
36953
- t36 = endAdornment && /* @__PURE__ */ jsx("div", { className: cls("h-full flex items-center absolute right-0 pr-12"), onClick: _temp2, children: endAdornment });
36954
- $[91] = endAdornment;
36955
- $[92] = t36;
37171
+ let t38;
37172
+ if ($[93] !== endAdornment) {
37173
+ t38 = endAdornment && /* @__PURE__ */ jsx("div", { className: cls("h-full flex items-center absolute right-0 pr-12"), onClick: _temp2, children: endAdornment });
37174
+ $[93] = endAdornment;
37175
+ $[94] = t38;
36956
37176
  } else {
36957
- t36 = $[92];
37177
+ t38 = $[94];
36958
37178
  }
36959
- let t37;
36960
- if ($[93] !== t19 || $[94] !== t35 || $[95] !== t36) {
36961
- t37 = /* @__PURE__ */ jsxs("div", { className: t19, children: [
36962
- t35,
36963
- t36
37179
+ let t39;
37180
+ if ($[95] !== t19 || $[96] !== t37 || $[97] !== t38) {
37181
+ t39 = /* @__PURE__ */ jsxs("div", { className: t19, children: [
37182
+ t37,
37183
+ t38
36964
37184
  ] });
36965
- $[93] = t19;
36966
- $[94] = t35;
36967
- $[95] = t36;
37185
+ $[95] = t19;
36968
37186
  $[96] = t37;
36969
- } else {
36970
- t37 = $[96];
36971
- }
36972
- let t38;
36973
- if ($[97] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36974
- t38 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-900 p-2 rounded-lg", defaultBorderMixin);
36975
37187
  $[97] = t38;
37188
+ $[98] = t39;
36976
37189
  } else {
36977
- t38 = $[97];
36978
- }
36979
- let t39;
36980
- if ($[98] !== viewportClassName) {
36981
- t39 = cls("p-1", viewportClassName);
36982
- $[98] = viewportClassName;
36983
- $[99] = t39;
36984
- } else {
36985
- t39 = $[99];
37190
+ t39 = $[98];
36986
37191
  }
36987
37192
  let t40;
36988
- if ($[100] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
36989
- t40 = {
36990
- maxHeight: "var(--radix-select-content-available-height)"
36991
- };
36992
- $[100] = t40;
37193
+ if ($[99] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37194
+ t40 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-800 p-2 rounded-lg shadow-lg", defaultBorderMixin);
37195
+ $[99] = t40;
36993
37196
  } else {
36994
- t40 = $[100];
37197
+ t40 = $[99];
36995
37198
  }
36996
37199
  let t41;
36997
- if ($[101] !== children || $[102] !== t39) {
36998
- t41 = /* @__PURE__ */ jsx(SelectPrimitive.Viewport, { className: t39, style: t40, children });
36999
- $[101] = children;
37000
- $[102] = t39;
37001
- $[103] = t41;
37200
+ if ($[100] !== viewportClassName) {
37201
+ t41 = cls("p-1", viewportClassName);
37202
+ $[100] = viewportClassName;
37203
+ $[101] = t41;
37002
37204
  } else {
37003
- t41 = $[103];
37205
+ t41 = $[101];
37004
37206
  }
37005
37207
  let t42;
37006
- if ($[104] !== position || $[105] !== t41) {
37007
- t42 = /* @__PURE__ */ jsx(SelectPrimitive.Content, { position, className: t38, children: t41 });
37008
- $[104] = position;
37009
- $[105] = t41;
37010
- $[106] = t42;
37208
+ if ($[102] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
37209
+ t42 = {
37210
+ maxHeight: "var(--radix-select-content-available-height)"
37211
+ };
37212
+ $[102] = t42;
37011
37213
  } else {
37012
- t42 = $[106];
37214
+ t42 = $[102];
37013
37215
  }
37014
37216
  let t43;
37015
- if ($[107] !== finalContainer || $[108] !== t42) {
37016
- t43 = /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: finalContainer, children: t42 });
37017
- $[107] = finalContainer;
37018
- $[108] = t42;
37019
- $[109] = t43;
37217
+ if ($[103] !== children || $[104] !== t41) {
37218
+ t43 = /* @__PURE__ */ jsx(SelectPrimitive.Viewport, { className: t41, style: t42, children });
37219
+ $[103] = children;
37220
+ $[104] = t41;
37221
+ $[105] = t43;
37020
37222
  } else {
37021
- t43 = $[109];
37223
+ t43 = $[105];
37022
37224
  }
37023
37225
  let t44;
37024
- if ($[110] !== disabled || $[111] !== name || $[112] !== onValueChangeInternal || $[113] !== openInternal || $[114] !== props || $[115] !== stringValue || $[116] !== t10 || $[117] !== t11 || $[118] !== t37 || $[119] !== t43) {
37025
- t44 = /* @__PURE__ */ jsxs(SelectPrimitive.Root, { name, value: stringValue, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: t10, ...props, children: [
37226
+ if ($[106] !== position || $[107] !== t43) {
37227
+ t44 = /* @__PURE__ */ jsx(SelectPrimitive.Content, { position, className: t40, children: t43 });
37228
+ $[106] = position;
37229
+ $[107] = t43;
37230
+ $[108] = t44;
37231
+ } else {
37232
+ t44 = $[108];
37233
+ }
37234
+ let t45;
37235
+ if ($[109] !== finalContainer || $[110] !== t44) {
37236
+ t45 = /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: finalContainer, children: t44 });
37237
+ $[109] = finalContainer;
37238
+ $[110] = t44;
37239
+ $[111] = t45;
37240
+ } else {
37241
+ t45 = $[111];
37242
+ }
37243
+ let t46;
37244
+ if ($[112] !== disabled || $[113] !== name || $[114] !== onValueChangeInternal || $[115] !== openInternal || $[116] !== props || $[117] !== stringValue || $[118] !== t10 || $[119] !== t11 || $[120] !== t39 || $[121] !== t45) {
37245
+ t46 = /* @__PURE__ */ jsxs(SelectPrimitive.Root, { name, value: stringValue, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: t10, ...props, children: [
37026
37246
  t11,
37027
- t37,
37028
- t43
37247
+ t39,
37248
+ t45
37029
37249
  ] });
37030
- $[110] = disabled;
37031
- $[111] = name;
37032
- $[112] = onValueChangeInternal;
37033
- $[113] = openInternal;
37034
- $[114] = props;
37035
- $[115] = stringValue;
37036
- $[116] = t10;
37037
- $[117] = t11;
37038
- $[118] = t37;
37039
- $[119] = t43;
37040
- $[120] = t44;
37041
- } else {
37042
- t44 = $[120];
37043
- }
37044
- return t44;
37250
+ $[112] = disabled;
37251
+ $[113] = name;
37252
+ $[114] = onValueChangeInternal;
37253
+ $[115] = openInternal;
37254
+ $[116] = props;
37255
+ $[117] = stringValue;
37256
+ $[118] = t10;
37257
+ $[119] = t11;
37258
+ $[120] = t39;
37259
+ $[121] = t45;
37260
+ $[122] = t46;
37261
+ } else {
37262
+ t46 = $[122];
37263
+ }
37264
+ return t46;
37045
37265
  });
37046
37266
  Select.displayName = "Select";
37047
37267
  const SelectItem = React__default.memo(function SelectItem2(t0) {
@@ -37056,7 +37276,7 @@ const SelectItem = React__default.memo(function SelectItem2(t0) {
37056
37276
  const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
37057
37277
  let t2;
37058
37278
  if ($[0] !== className || $[1] !== t1) {
37059
- t2 = cls("w-full", "relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300", "focus:z-10", "data-[state=checked]:bg-surface-accent-100 data-[state=checked]:dark:bg-surface-accent-800 focus:bg-surface-accent-100 dark:focus:bg-surface-950", "data-[state=checked]:focus:bg-surface-accent-200 data-[state=checked]:dark:focus:bg-surface-950", t1, "[&>*]:w-full", "overflow-visible", className);
37279
+ t2 = cls("w-full", "relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300", "focus:z-10", "data-[state=checked]:bg-surface-accent-100 data-[state=checked]:dark:bg-surface-accent-800 focus:bg-surface-accent-100 dark:focus:bg-surface-900", "data-[state=checked]:focus:bg-surface-accent-200 data-[state=checked]:dark:focus:bg-surface-900", t1, "[&>*]:w-full", "overflow-visible", className);
37060
37280
  $[0] = className;
37061
37281
  $[1] = t1;
37062
37282
  $[2] = t2;
@@ -37132,7 +37352,7 @@ const SelectGroup = React__default.memo(function SelectGroup2(t0) {
37132
37352
  }
37133
37353
  return t3;
37134
37354
  });
37135
- function _temp$1(e) {
37355
+ function _temp$2(e) {
37136
37356
  e.preventDefault();
37137
37357
  e.stopPropagation();
37138
37358
  }
@@ -37469,7 +37689,7 @@ const Sheet = (t0) => {
37469
37689
  }
37470
37690
  T0 = DialogPrimitive.Content;
37471
37691
  t6 = props;
37472
- t7 = _temp;
37692
+ t7 = _temp$1;
37473
37693
  t8 = cls("outline-none", borderClass[side], defaultBorderMixin, "transform-gpu", "will-change-transform", "text-surface-accent-900 dark:text-white", "fixed transform z-20 transition-all ease-in-out", !displayed ? "duration-150" : "duration-100", "outline-none focus:outline-none", transparent ? "" : "shadow-md bg-white dark:bg-surface-950", side === "top" || side === "bottom" ? "w-full" : "h-full", side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0", displayed && open ? "opacity-100" : "opacity-50", !displayed || !open ? transformValue[side] : "", className);
37474
37694
  $[18] = className;
37475
37695
  $[19] = displayed;
@@ -37553,7 +37773,7 @@ const Sheet = (t0) => {
37553
37773
  }
37554
37774
  return t17;
37555
37775
  };
37556
- function _temp(event) {
37776
+ function _temp$1(event) {
37557
37777
  return event.preventDefault();
37558
37778
  }
37559
37779
  function getStyleValue(value) {
@@ -37801,69 +38021,279 @@ function setRef(ref, value) {
37801
38021
  ref.current = value;
37802
38022
  }
37803
38023
  }
37804
- const TextField = forwardRef(({
37805
- value,
37806
- onChange,
37807
- label,
37808
- type = "text",
37809
- multiline = false,
37810
- invisible,
37811
- maxRows,
37812
- minRows,
37813
- disabled,
37814
- error,
37815
- endAdornment,
37816
- autoFocus,
37817
- placeholder,
37818
- size = "large",
37819
- className,
37820
- style,
37821
- inputClassName,
37822
- inputStyle,
37823
- inputRef: inputRefProp,
37824
- ...inputProps
37825
- }, ref) => {
37826
- const inputRef = inputRefProp ?? useRef(null);
38024
+ const TextField = forwardRef((t0, ref) => {
38025
+ const $ = c(77);
38026
+ let autoFocus;
38027
+ let className;
38028
+ let disabled;
38029
+ let endAdornment;
38030
+ let error;
38031
+ let inputClassName;
38032
+ let inputProps;
38033
+ let inputRefProp;
38034
+ let inputStyle;
38035
+ let invisible;
38036
+ let label;
38037
+ let minRows;
38038
+ let onChange;
38039
+ let placeholder;
38040
+ let style;
38041
+ let t1;
38042
+ let t2;
38043
+ let t3;
38044
+ let value;
38045
+ if ($[0] !== t0) {
38046
+ const {
38047
+ value: t42,
38048
+ onChange: t52,
38049
+ label: t62,
38050
+ type: t72,
38051
+ multiline: t82,
38052
+ invisible: t92,
38053
+ maxRows,
38054
+ minRows: t102,
38055
+ disabled: t112,
38056
+ error: t122,
38057
+ endAdornment: t132,
38058
+ autoFocus: t142,
38059
+ placeholder: t152,
38060
+ size: t162,
38061
+ className: t172,
38062
+ style: t182,
38063
+ inputClassName: t192,
38064
+ inputStyle: t20,
38065
+ inputRef: t21,
38066
+ ...t22
38067
+ } = t0;
38068
+ value = t42;
38069
+ onChange = t52;
38070
+ label = t62;
38071
+ t1 = t72;
38072
+ t2 = t82;
38073
+ invisible = t92;
38074
+ minRows = t102;
38075
+ disabled = t112;
38076
+ error = t122;
38077
+ endAdornment = t132;
38078
+ autoFocus = t142;
38079
+ placeholder = t152;
38080
+ t3 = t162;
38081
+ className = t172;
38082
+ style = t182;
38083
+ inputClassName = t192;
38084
+ inputStyle = t20;
38085
+ inputRefProp = t21;
38086
+ inputProps = t22;
38087
+ $[0] = t0;
38088
+ $[1] = autoFocus;
38089
+ $[2] = className;
38090
+ $[3] = disabled;
38091
+ $[4] = endAdornment;
38092
+ $[5] = error;
38093
+ $[6] = inputClassName;
38094
+ $[7] = inputProps;
38095
+ $[8] = inputRefProp;
38096
+ $[9] = inputStyle;
38097
+ $[10] = invisible;
38098
+ $[11] = label;
38099
+ $[12] = minRows;
38100
+ $[13] = onChange;
38101
+ $[14] = placeholder;
38102
+ $[15] = style;
38103
+ $[16] = t1;
38104
+ $[17] = t2;
38105
+ $[18] = t3;
38106
+ $[19] = value;
38107
+ } else {
38108
+ autoFocus = $[1];
38109
+ className = $[2];
38110
+ disabled = $[3];
38111
+ endAdornment = $[4];
38112
+ error = $[5];
38113
+ inputClassName = $[6];
38114
+ inputProps = $[7];
38115
+ inputRefProp = $[8];
38116
+ inputStyle = $[9];
38117
+ invisible = $[10];
38118
+ label = $[11];
38119
+ minRows = $[12];
38120
+ onChange = $[13];
38121
+ placeholder = $[14];
38122
+ style = $[15];
38123
+ t1 = $[16];
38124
+ t2 = $[17];
38125
+ t3 = $[18];
38126
+ value = $[19];
38127
+ }
38128
+ const type = t1 === void 0 ? "text" : t1;
38129
+ const multiline = t2 === void 0 ? false : t2;
38130
+ const size = t3 === void 0 ? "large" : t3;
38131
+ const fallbackRef = useRef(null);
38132
+ const inputRef = inputRefProp ?? fallbackRef;
38133
+ const autoId = useId();
38134
+ const inputId = inputProps.id ?? autoId;
38135
+ const labelId = `${inputId}-label`;
37827
38136
  const [focused, setFocused] = React__default.useState(false);
37828
38137
  const hasValue = value !== void 0 && value !== null && value !== "";
37829
- useEffect(() => {
37830
- if (inputRef.current && document.activeElement === inputRef.current) {
37831
- setFocused(true);
37832
- }
37833
- }, []);
37834
- useEffect(() => {
37835
- if (type !== "number") return;
37836
- const handleWheel = (event) => {
37837
- if (event.target instanceof HTMLElement) event.target.blur();
38138
+ let t4;
38139
+ if ($[20] !== inputRef) {
38140
+ t4 = () => {
38141
+ const element = inputRef && "current" in inputRef ? inputRef.current : null;
38142
+ if (element && document.activeElement === element) {
38143
+ setFocused(true);
38144
+ }
37838
38145
  };
37839
- const element = "current" in inputRef ? inputRef.current : inputRef;
37840
- element?.addEventListener("wheel", handleWheel);
37841
- return () => {
37842
- element?.removeEventListener("wheel", handleWheel);
38146
+ $[20] = inputRef;
38147
+ $[21] = t4;
38148
+ } else {
38149
+ t4 = $[21];
38150
+ }
38151
+ let t5;
38152
+ if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
38153
+ t5 = [];
38154
+ $[22] = t5;
38155
+ } else {
38156
+ t5 = $[22];
38157
+ }
38158
+ useEffect(t4, t5);
38159
+ let t6;
38160
+ let t7;
38161
+ if ($[23] !== inputRef || $[24] !== type) {
38162
+ t6 = () => {
38163
+ if (type !== "number") {
38164
+ return;
38165
+ }
38166
+ const handleWheel = _temp;
38167
+ const element_0 = "current" in inputRef ? inputRef.current : inputRef;
38168
+ element_0?.addEventListener("wheel", handleWheel);
38169
+ return () => {
38170
+ element_0?.removeEventListener("wheel", handleWheel);
38171
+ };
37843
38172
  };
37844
- }, [inputRef, type]);
37845
- const input = multiline ? /* @__PURE__ */ 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__ */ 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, {
37846
- "min-h-[28px]": size === "smallest",
37847
- "min-h-[32px]": size === "small",
37848
- "min-h-[44px]": size === "medium",
37849
- "min-h-[64px]": size === "large"
37850
- }, 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 });
37851
- return /* @__PURE__ */ 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" : "", {
37852
- "min-h-[28px]": size === "smallest",
37853
- "min-h-[32px]": size === "small",
37854
- "min-h-[44px]": size === "medium",
37855
- "min-h-[64px]": size === "large"
37856
- }, className), style, children: [
37857
- label && /* @__PURE__ */ 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 }),
37858
- input,
37859
- endAdornment && /* @__PURE__ */ jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
38173
+ t7 = [inputRef, type];
38174
+ $[23] = inputRef;
38175
+ $[24] = type;
38176
+ $[25] = t6;
38177
+ $[26] = t7;
38178
+ } else {
38179
+ t6 = $[25];
38180
+ t7 = $[26];
38181
+ }
38182
+ useEffect(t6, t7);
38183
+ let t8;
38184
+ 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) {
38185
+ t8 = multiline ? /* @__PURE__ */ jsx("textarea", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows: typeof minRows === "string" ? parseInt(minRows) : minRows ?? 3, value: value ?? "", onChange, onFocus: () => setFocused(true), onBlur: () => setFocused(false), style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-lg resize-none w-full outline-none text-base bg-transparent min-h-[64px] px-3", label ? "pt-8 pb-2" : "py-2", disabled && "outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500", inputClassName) }) : /* @__PURE__ */ jsx("input", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-lg", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, {
38186
+ "min-h-[28px]": size === "smallest",
38187
+ "min-h-[32px]": size === "small",
38188
+ "min-h-[44px]": size === "medium",
38189
+ "min-h-[64px]": size === "large"
38190
+ }, 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 });
38191
+ $[27] = autoFocus;
38192
+ $[28] = disabled;
38193
+ $[29] = endAdornment;
38194
+ $[30] = error;
38195
+ $[31] = focused;
38196
+ $[32] = hasValue;
38197
+ $[33] = inputClassName;
38198
+ $[34] = inputId;
38199
+ $[35] = inputProps;
38200
+ $[36] = inputRef;
38201
+ $[37] = inputStyle;
38202
+ $[38] = invisible;
38203
+ $[39] = label;
38204
+ $[40] = labelId;
38205
+ $[41] = minRows;
38206
+ $[42] = multiline;
38207
+ $[43] = onChange;
38208
+ $[44] = placeholder;
38209
+ $[45] = size;
38210
+ $[46] = type;
38211
+ $[47] = value;
38212
+ $[48] = t8;
38213
+ } else {
38214
+ t8 = $[48];
38215
+ }
38216
+ const input = t8;
38217
+ const t9 = invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin;
38218
+ const t10 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
38219
+ const t11 = error ? "border border-red-500 dark:border-red-600" : "";
38220
+ const t12 = size === "smallest";
38221
+ const t13 = size === "small";
38222
+ const t14 = size === "medium";
38223
+ const t15 = size === "large";
38224
+ let t16;
38225
+ if ($[49] !== className || $[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t9) {
38226
+ t16 = cls("rounded-lg relative max-w-full", t9, t10, t11, {
38227
+ "min-h-[28px]": t12,
38228
+ "min-h-[32px]": t13,
38229
+ "min-h-[44px]": t14,
38230
+ "min-h-[64px]": t15
38231
+ }, className);
38232
+ $[49] = className;
38233
+ $[50] = t10;
38234
+ $[51] = t11;
38235
+ $[52] = t12;
38236
+ $[53] = t13;
38237
+ $[54] = t14;
38238
+ $[55] = t15;
38239
+ $[56] = t9;
38240
+ $[57] = t16;
38241
+ } else {
38242
+ t16 = $[57];
38243
+ }
38244
+ let t17;
38245
+ if ($[58] !== disabled || $[59] !== error || $[60] !== focused || $[61] !== hasValue || $[62] !== inputId || $[63] !== label || $[64] !== labelId || $[65] !== size) {
38246
+ t17 = label && /* @__PURE__ */ jsx(InputLabel, { id: labelId, htmlFor: inputId, className: cls("pointer-events-none absolute", size === "large" ? "top-1" : "top-[-1px]", !error ? focused ? "text-primary dark:text-primary" : "text-text-secondary dark:text-text-secondary-dark" : "text-red-500 dark:text-red-600", disabled ? "opacity-50" : ""), shrink: hasValue || focused, children: label });
38247
+ $[58] = disabled;
38248
+ $[59] = error;
38249
+ $[60] = focused;
38250
+ $[61] = hasValue;
38251
+ $[62] = inputId;
38252
+ $[63] = label;
38253
+ $[64] = labelId;
38254
+ $[65] = size;
38255
+ $[66] = t17;
38256
+ } else {
38257
+ t17 = $[66];
38258
+ }
38259
+ let t18;
38260
+ if ($[67] !== endAdornment || $[68] !== size) {
38261
+ t18 = endAdornment && /* @__PURE__ */ jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
37860
38262
  "mr-4": size === "large",
37861
38263
  "mr-3": size === "medium",
37862
38264
  "mr-2": size === "small" || size === "smallest"
37863
- }), children: endAdornment })
37864
- ] });
38265
+ }), children: endAdornment });
38266
+ $[67] = endAdornment;
38267
+ $[68] = size;
38268
+ $[69] = t18;
38269
+ } else {
38270
+ t18 = $[69];
38271
+ }
38272
+ let t19;
38273
+ if ($[70] !== input || $[71] !== ref || $[72] !== style || $[73] !== t16 || $[74] !== t17 || $[75] !== t18) {
38274
+ t19 = /* @__PURE__ */ jsxs("div", { ref, className: t16, style, children: [
38275
+ t17,
38276
+ input,
38277
+ t18
38278
+ ] });
38279
+ $[70] = input;
38280
+ $[71] = ref;
38281
+ $[72] = style;
38282
+ $[73] = t16;
38283
+ $[74] = t17;
38284
+ $[75] = t18;
38285
+ $[76] = t19;
38286
+ } else {
38287
+ t19 = $[76];
38288
+ }
38289
+ return t19;
37865
38290
  });
37866
38291
  TextField.displayName = "TextField";
38292
+ function _temp(event) {
38293
+ if (event.target instanceof HTMLElement) {
38294
+ event.target.blur();
38295
+ }
38296
+ }
37867
38297
  const TabsModeContext = createContext("primary");
37868
38298
  function Tabs(t0) {
37869
38299
  const $ = c(35);
@@ -38308,7 +38738,7 @@ function getParentName(element) {
38308
38738
  return void 0;
38309
38739
  }
38310
38740
  function Popover(t0) {
38311
- const $ = c(27);
38741
+ const $ = c(29);
38312
38742
  const {
38313
38743
  trigger,
38314
38744
  children,
@@ -38325,7 +38755,9 @@ function Popover(t0) {
38325
38755
  enabled: t2,
38326
38756
  modal: t3,
38327
38757
  portalContainer,
38328
- className
38758
+ className,
38759
+ onMouseEnter,
38760
+ onMouseLeave
38329
38761
  } = t0;
38330
38762
  const sideOffset = t1 === void 0 ? 5 : t1;
38331
38763
  const enabled = t2 === void 0 ? true : t2;
@@ -38362,14 +38794,14 @@ function Popover(t0) {
38362
38794
  }
38363
38795
  let t6;
38364
38796
  if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
38365
- t6 = /* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-surface-accent-950" });
38797
+ t6 = /* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-surface-800" });
38366
38798
  $[6] = t6;
38367
38799
  } else {
38368
38800
  t6 = $[6];
38369
38801
  }
38370
38802
  let t7;
38371
- if ($[7] !== align || $[8] !== alignOffset || $[9] !== arrowPadding || $[10] !== avoidCollisions || $[11] !== children || $[12] !== hideWhenDetached || $[13] !== side || $[14] !== sideOffset || $[15] !== sticky || $[16] !== t5) {
38372
- t7 = /* @__PURE__ */ jsxs(PopoverPrimitive.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, children: [
38803
+ 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) {
38804
+ t7 = /* @__PURE__ */ jsxs(PopoverPrimitive.Content, { className: t5, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, onMouseEnter, onMouseLeave, children: [
38373
38805
  children,
38374
38806
  t6
38375
38807
  ] });
@@ -38379,37 +38811,39 @@ function Popover(t0) {
38379
38811
  $[10] = avoidCollisions;
38380
38812
  $[11] = children;
38381
38813
  $[12] = hideWhenDetached;
38382
- $[13] = side;
38383
- $[14] = sideOffset;
38384
- $[15] = sticky;
38385
- $[16] = t5;
38386
- $[17] = t7;
38814
+ $[13] = onMouseEnter;
38815
+ $[14] = onMouseLeave;
38816
+ $[15] = side;
38817
+ $[16] = sideOffset;
38818
+ $[17] = sticky;
38819
+ $[18] = t5;
38820
+ $[19] = t7;
38387
38821
  } else {
38388
- t7 = $[17];
38822
+ t7 = $[19];
38389
38823
  }
38390
38824
  let t8;
38391
- if ($[18] !== finalContainer || $[19] !== t7) {
38825
+ if ($[20] !== finalContainer || $[21] !== t7) {
38392
38826
  t8 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: finalContainer, children: t7 });
38393
- $[18] = finalContainer;
38394
- $[19] = t7;
38395
- $[20] = t8;
38827
+ $[20] = finalContainer;
38828
+ $[21] = t7;
38829
+ $[22] = t8;
38396
38830
  } else {
38397
- t8 = $[20];
38831
+ t8 = $[22];
38398
38832
  }
38399
38833
  let t9;
38400
- if ($[21] !== modal || $[22] !== onOpenChange || $[23] !== open || $[24] !== t4 || $[25] !== t8) {
38834
+ if ($[23] !== modal || $[24] !== onOpenChange || $[25] !== open || $[26] !== t4 || $[27] !== t8) {
38401
38835
  t9 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open, onOpenChange, modal, children: [
38402
38836
  t4,
38403
38837
  t8
38404
38838
  ] });
38405
- $[21] = modal;
38406
- $[22] = onOpenChange;
38407
- $[23] = open;
38408
- $[24] = t4;
38409
- $[25] = t8;
38410
- $[26] = t9;
38839
+ $[23] = modal;
38840
+ $[24] = onOpenChange;
38841
+ $[25] = open;
38842
+ $[26] = t4;
38843
+ $[27] = t8;
38844
+ $[28] = t9;
38411
38845
  } else {
38412
- t9 = $[26];
38846
+ t9 = $[28];
38413
38847
  }
38414
38848
  return t9;
38415
38849
  }
@@ -38597,15 +39031,26 @@ function DebouncedTextField(props) {
38597
39031
  }
38598
39032
  return t5;
38599
39033
  }
39034
+ const styles = `
39035
+ @keyframes shimmer {
39036
+ 0% {
39037
+ transform: translateX(-150%);
39038
+ }
39039
+ 100% {
39040
+ transform: translateX(150%);
39041
+ }
39042
+ }
39043
+ `;
38600
39044
  function Skeleton(t0) {
38601
- const $ = c(10);
39045
+ const $ = c(9);
38602
39046
  const {
38603
39047
  width,
38604
39048
  height,
38605
39049
  className
38606
39050
  } = t0;
38607
- const t1 = width !== void 0 ? `${width}px` : void 0;
38608
- const t2 = height !== void 0 ? `${height}px` : void 0;
39051
+ useInjectStyles("Skeleton", styles);
39052
+ const t1 = width ? `${width}px` : "100%";
39053
+ const t2 = height ? `${height}px` : "12px";
38609
39054
  let t3;
38610
39055
  if ($[0] !== t1 || $[1] !== t2) {
38611
39056
  t3 = {
@@ -38618,28 +39063,33 @@ function Skeleton(t0) {
38618
39063
  } else {
38619
39064
  t3 = $[2];
38620
39065
  }
38621
- const t4 = width === void 0 ? "w-full" : "";
38622
- const t5 = height === void 0 ? "h-3" : "";
38623
- let t6;
38624
- if ($[3] !== className || $[4] !== t4 || $[5] !== t5) {
38625
- t6 = cls("block", "bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md", "animate-pulse", "max-w-full max-h-full", t4, t5, className);
39066
+ let t4;
39067
+ if ($[3] !== className) {
39068
+ t4 = cls("block relative overflow-hidden", "bg-surface-accent-50 dark:bg-surface-accent-800 rounded-md", "max-w-full max-h-full", className);
38626
39069
  $[3] = className;
38627
39070
  $[4] = t4;
39071
+ } else {
39072
+ t4 = $[4];
39073
+ }
39074
+ let t5;
39075
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
39076
+ t5 = /* @__PURE__ */ jsx("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/50 dark:via-white/8 to-transparent", style: {
39077
+ animation: "shimmer 1.8s ease-in-out infinite"
39078
+ } });
38628
39079
  $[5] = t5;
38629
- $[6] = t6;
38630
39080
  } else {
38631
- t6 = $[6];
39081
+ t5 = $[5];
38632
39082
  }
38633
- let t7;
38634
- if ($[7] !== t3 || $[8] !== t6) {
38635
- t7 = /* @__PURE__ */ jsx("span", { style: t3, className: t6 });
38636
- $[7] = t3;
39083
+ let t6;
39084
+ if ($[6] !== t3 || $[7] !== t4) {
39085
+ t6 = /* @__PURE__ */ jsx("span", { style: t3, className: t4, children: t5 });
39086
+ $[6] = t3;
39087
+ $[7] = t4;
38637
39088
  $[8] = t6;
38638
- $[9] = t7;
38639
39089
  } else {
38640
- t7 = $[9];
39090
+ t6 = $[8];
38641
39091
  }
38642
- return t7;
39092
+ return t6;
38643
39093
  }
38644
39094
  function ToggleButtonGroup(t0) {
38645
39095
  const $ = c(12);
@@ -38651,7 +39101,7 @@ function ToggleButtonGroup(t0) {
38651
39101
  } = t0;
38652
39102
  let t1;
38653
39103
  if ($[0] !== className) {
38654
- t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-800 rounded-lg p-1 gap-1", className);
39104
+ t1 = cls("inline-flex flex-row bg-surface-100 dark:bg-surface-900 rounded-lg p-1 gap-1", className);
38655
39105
  $[0] = className;
38656
39106
  $[1] = t1;
38657
39107
  } else {
@@ -38661,12 +39111,12 @@ function ToggleButtonGroup(t0) {
38661
39111
  if ($[2] !== onValueChange || $[3] !== options || $[4] !== value) {
38662
39112
  let t32;
38663
39113
  if ($[6] !== onValueChange || $[7] !== value) {
38664
- t32 = (option) => /* @__PURE__ */ jsxs("button", { type: "button", onClick: (e) => {
39114
+ t32 = (option) => /* @__PURE__ */ jsxs("button", { type: "button", "aria-pressed": value === option.value, "aria-disabled": option.disabled || void 0, onClick: (e) => {
38665
39115
  e.stopPropagation();
38666
39116
  if (!option.disabled) {
38667
39117
  onValueChange(option.value);
38668
39118
  }
38669
- }, disabled: option.disabled, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-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: [
39119
+ }, disabled: option.disabled, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-900 text-primary dark:text-primary-300 shadow-sm" : "text-surface-500 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700", option.disabled && "opacity-50 cursor-not-allowed"), children: [
38670
39120
  option.icon,
38671
39121
  /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: option.label })
38672
39122
  ] }, option.value);
@@ -38686,7 +39136,7 @@ function ToggleButtonGroup(t0) {
38686
39136
  }
38687
39137
  let t3;
38688
39138
  if ($[9] !== t1 || $[10] !== t2) {
38689
- t3 = /* @__PURE__ */ jsx("div", { className: t1, children: t2 });
39139
+ t3 = /* @__PURE__ */ jsx("div", { role: "group", "aria-label": "Toggle options", className: t1, children: t2 });
38690
39140
  $[9] = t1;
38691
39141
  $[10] = t2;
38692
39142
  $[11] = t3;
@@ -39430,6 +39880,7 @@ export {
39430
39880
  FilterAltOffIcon,
39431
39881
  FilterBAndWIcon,
39432
39882
  FilterCenterFocusIcon,
39883
+ FilterChip,
39433
39884
  FilterDramaIcon,
39434
39885
  FilterFramesIcon,
39435
39886
  FilterHdrIcon,
@@ -40999,6 +41450,7 @@ export {
40999
41450
  keyToIconComponent,
41000
41451
  paperMixin,
41001
41452
  useAutoComplete,
41453
+ useDebounceCallback,
41002
41454
  useDebounceValue,
41003
41455
  useIconStyles,
41004
41456
  useInjectStyles,