@firecms/ui 3.3.0 → 3.4.0-canary.0ef7442

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