@firecms/ui 3.0.0-beta.12 → 3.0.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -738,13 +738,13 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
738
738
  const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
739
739
  value,
740
740
  position = "end",
741
+ size = "medium",
741
742
  invisible,
742
743
  onValueChange,
743
744
  error,
744
745
  label,
745
746
  autoFocus,
746
747
  disabled,
747
- size,
748
748
  className,
749
749
  fullWidth = true,
750
750
  inputClassName,
@@ -758,7 +758,12 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
758
758
  React__default.useEffect(() => {
759
759
  }, []);
760
760
  const focus = document.activeElement === refInput?.current || document.activeElement === ref?.current;
761
- return /* @__PURE__ */ jsxs("div", { ref, onFocus, onBlur, tabIndex: -1, className: cls(!invisible && fieldBackgroundMixin, !invisible && (disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin), disabled ? "cursor-default" : "cursor-pointer", "rounded-md max-w-full justify-between box-border relative inline-flex items-center", !invisible && focus && !disabled ? focusedClasses : "", error ? "text-red-500 dark:text-red-600" : focus && !disabled ? "text-primary" : !disabled ? "text-text-primary dark:text-text-primary-dark" : "text-text-secondary dark:text-text-secondary-dark", size === "small" ? "min-h-[40px]" : size === "medium" ? "min-h-[48px]" : "min-h-[64px]", size === "small" ? "pl-2" : "pl-4", size === "small" ? "pr-4" : "pr-6", position === "end" ? "flex-row-reverse" : "flex-row", fullWidth ? "w-full" : "", className), onClick: disabled ? void 0 : (e) => {
761
+ return /* @__PURE__ */ jsxs("div", { ref, onFocus, onBlur, tabIndex: -1, className: cls(!invisible && fieldBackgroundMixin, !invisible && (disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin), disabled ? "cursor-default" : "cursor-pointer", "rounded-md max-w-full justify-between box-border relative inline-flex items-center", !invisible && focus && !disabled ? focusedClasses : "", error ? "text-red-500 dark:text-red-600" : focus && !disabled ? "text-primary" : !disabled ? "text-text-primary dark:text-text-primary-dark" : "text-text-secondary dark:text-text-secondary-dark", {
762
+ "min-h-[28px]": size === "smallest",
763
+ "min-h-[32px]": size === "small",
764
+ "min-h-[42px]": size === "medium",
765
+ "min-h-[64px]": size === "large"
766
+ }, size === "small" ? "pl-2" : "pl-4", size === "small" ? "pr-4" : "pr-6", position === "end" ? "flex-row-reverse" : "flex-row", fullWidth ? "w-full" : "", className), onClick: disabled ? void 0 : (e) => {
762
767
  if (props.allowIndeterminate) {
763
768
  if (value === null || value === void 0) onValueChange?.(true);
764
769
  else if (value) onValueChange?.(false);
@@ -830,20 +835,20 @@ const ButtonInner = React__default.forwardRef((t0, ref) => {
830
835
  const t9 = variant === "filled" && color === "secondary" && !disabled;
831
836
  const t10 = variant === "filled" && color === "error" && !disabled;
832
837
  const t11 = variant === "filled" && color === "text" && !disabled;
833
- const t12 = variant === "text" && color === "primary" && !disabled;
834
- const t13 = variant === "text" && color === "secondary" && !disabled;
835
- const t14 = variant === "text" && color === "error" && !disabled;
836
- const t15 = variant === "text" && color === "text" && !disabled;
837
- const t16 = variant === "outlined" && color === "primary" && !disabled;
838
- const t17 = variant === "outlined" && color === "secondary" && !disabled;
839
- const t18 = variant === "outlined" && color === "error" && !disabled;
840
- const t19 = variant === "outlined" && color === "text" && !disabled;
841
- const t20 = variant === "neutral" && (color === "primary" || color === "text") && !disabled;
842
- const t21 = variant === "neutral" && color === "secondary" && !disabled;
843
- const t22 = variant === "neutral" && color === "error" && !disabled;
838
+ const t12 = variant === "filled" && color === "neutral" && !disabled;
839
+ const t13 = variant === "text" && color === "primary" && !disabled;
840
+ const t14 = variant === "text" && color === "secondary" && !disabled;
841
+ const t15 = variant === "text" && color === "error" && !disabled;
842
+ const t16 = variant === "text" && color === "text" && !disabled;
843
+ const t17 = variant === "text" && color === "neutral" && !disabled;
844
+ const t18 = variant === "outlined" && color === "primary" && !disabled;
845
+ const t19 = variant === "outlined" && color === "secondary" && !disabled;
846
+ const t20 = variant === "outlined" && color === "error" && !disabled;
847
+ const t21 = variant === "outlined" && color === "text" && !disabled;
848
+ const t22 = variant === "outlined" && color === "neutral" && !disabled;
844
849
  const t23 = variant === "text" && disabled;
845
850
  const t24 = variant === "outlined" && disabled;
846
- const t25 = (variant === "filled" || variant === "neutral") && disabled;
851
+ const t25 = variant === "filled" && disabled;
847
852
  let t26;
848
853
  let t27;
849
854
  let t28;
@@ -859,17 +864,17 @@ const ButtonInner = React__default.forwardRef((t0, ref) => {
859
864
  "border border-secondary bg-secondary focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": t9,
860
865
  "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,
861
866
  "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,
862
- "border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 dark:hover:bg-surface-900": t12,
863
- "border border-transparent text-secondary hover:text-secondary hover:bg-secondary-bg": t13,
864
- "border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": t14,
865
- "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": t15,
866
- "border border-primary text-primary hover:text-primary hover:bg-primary-bg": t16,
867
- "border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t17,
868
- "border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t18,
869
- "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t19,
870
- "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-white": t20,
871
- "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-secondary dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-white": t21,
872
- "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-error dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-error": t22,
867
+ "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": t12,
868
+ "border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t13,
869
+ "border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t14,
870
+ "border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": t15,
871
+ "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,
872
+ "border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 dark:text-text-primary-dark dark:hover:bg-surface-accent-700": t17,
873
+ "border border-primary text-primary hover:text-primary hover:bg-primary-bg": t18,
874
+ "border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
875
+ "border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
876
+ "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t21,
877
+ "border border-surface-400 text-text-primary hover:bg-surface-accent-200 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-700": t22,
873
878
  "text-text-disabled dark:text-text-disabled-dark": disabled,
874
879
  "border border-transparent opacity-50": t23,
875
880
  "border border-surface-500 opacity-50": t24,
@@ -27685,7 +27690,7 @@ function Typography(t0) {
27685
27690
  return t15;
27686
27691
  }
27687
27692
  const DateTimeField = (t0) => {
27688
- const $ = c(52);
27693
+ const $ = c(57);
27689
27694
  const {
27690
27695
  value,
27691
27696
  label,
@@ -27759,161 +27764,176 @@ const DateTimeField = (t0) => {
27759
27764
  }
27760
27765
  const t6 = !invisible && fieldBackgroundMixin;
27761
27766
  const t7 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
27762
- const t8 = size === "medium";
27763
- const t9 = size === "large";
27764
- let t10;
27765
- if ($[6] !== className || $[7] !== t6 || $[8] !== t7 || $[9] !== t8 || $[10] !== t9) {
27766
- t10 = cls("rounded-md relative max-w-full", t6, t7, {
27767
- "min-h-[48px]": t8,
27768
- "min-h-[64px]": t9
27767
+ const t8 = size === "smallest";
27768
+ const t9 = size === "small";
27769
+ const t10 = size === "medium";
27770
+ const t11 = size === "large";
27771
+ let t12;
27772
+ if ($[6] !== className || $[7] !== t10 || $[8] !== t11 || $[9] !== t6 || $[10] !== t7 || $[11] !== t8 || $[12] !== t9) {
27773
+ t12 = cls("rounded-md relative max-w-full", t6, t7, {
27774
+ "min-h-[28px]": t8,
27775
+ "min-h-[32px]": t9,
27776
+ "min-h-[42px]": t10,
27777
+ "min-h-[64px]": t11
27769
27778
  }, className);
27770
27779
  $[6] = className;
27771
- $[7] = t6;
27772
- $[8] = t7;
27773
- $[9] = t8;
27774
- $[10] = t9;
27775
- $[11] = t10;
27780
+ $[7] = t10;
27781
+ $[8] = t11;
27782
+ $[9] = t6;
27783
+ $[10] = t7;
27784
+ $[11] = t8;
27785
+ $[12] = t9;
27786
+ $[13] = t12;
27776
27787
  } else {
27777
- t10 = $[11];
27788
+ t12 = $[13];
27778
27789
  }
27779
- let t11;
27780
- if ($[12] !== disabled) {
27781
- t11 = () => {
27790
+ let t13;
27791
+ if ($[14] !== disabled) {
27792
+ t13 = () => {
27782
27793
  if (!disabled) {
27783
27794
  inputRef.current?.focus();
27784
27795
  }
27785
27796
  };
27786
- $[12] = disabled;
27787
- $[13] = t11;
27788
- } else {
27789
- t11 = $[13];
27790
- }
27791
- let t12;
27792
- if ($[14] !== disabled || $[15] !== error || $[16] !== focused || $[17] !== label) {
27793
- t12 = label && /* @__PURE__ */ jsx(InputLabel, { className: cls("absolute top-1 pointer-events-none", !error ? focused ? "text-primary" : "text-text-secondary dark:text-text-secondary-dark" : "text-red-500 dark:text-red-500", disabled ? "opacity-50" : ""), shrink: true, children: label });
27794
27797
  $[14] = disabled;
27795
- $[15] = error;
27796
- $[16] = focused;
27797
- $[17] = label;
27798
- $[18] = t12;
27798
+ $[15] = t13;
27799
27799
  } else {
27800
- t12 = $[18];
27800
+ t13 = $[15];
27801
27801
  }
27802
- const t13 = mode === "date_time" ? "datetime-local" : "date";
27803
- const t14 = valueAsInputValue(value ?? null, mode);
27804
- let t15;
27805
- let t16;
27806
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
27807
- t15 = () => setFocused(true);
27808
- t16 = () => setFocused(false);
27809
- $[19] = t15;
27810
- $[20] = t16;
27811
- } else {
27812
- t15 = $[19];
27813
- t16 = $[20];
27814
- }
27815
- const t17 = clearable ? "pr-14" : "pr-12";
27816
- const t18 = size === "medium" ? "min-h-[48px]" : "min-h-[64px]";
27817
- const t19 = label ? "pt-8 pb-2" : "py-2";
27818
- const t20 = disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-surface-accent-600 dark:text-surface-accent-500";
27819
- let t21;
27820
- if ($[21] !== inputClassName || $[22] !== t17 || $[23] !== t18 || $[24] !== t19 || $[25] !== t20) {
27821
- t21 = cls("w-full outline-none bg-transparent leading-normal text-base px-3", t17, "rounded-md", t18, t19, inputClassName, t20);
27822
- $[21] = inputClassName;
27823
- $[22] = t17;
27824
- $[23] = t18;
27825
- $[24] = t19;
27826
- $[25] = t20;
27827
- $[26] = t21;
27802
+ let t14;
27803
+ if ($[16] !== disabled || $[17] !== error || $[18] !== focused || $[19] !== label) {
27804
+ t14 = label && /* @__PURE__ */ jsx(InputLabel, { className: cls("absolute top-1 pointer-events-none", !error ? focused ? "text-primary" : "text-text-secondary dark:text-text-secondary-dark" : "text-red-500 dark:text-red-500", disabled ? "opacity-50" : ""), shrink: true, children: label });
27805
+ $[16] = disabled;
27806
+ $[17] = error;
27807
+ $[18] = focused;
27808
+ $[19] = label;
27809
+ $[20] = t14;
27810
+ } else {
27811
+ t14 = $[20];
27812
+ }
27813
+ const t15 = mode === "date_time" ? "datetime-local" : "date";
27814
+ const t16 = valueAsInputValue(value ?? null, mode);
27815
+ let t17;
27816
+ let t18;
27817
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
27818
+ t17 = () => setFocused(true);
27819
+ t18 = () => setFocused(false);
27820
+ $[21] = t17;
27821
+ $[22] = t18;
27822
+ } else {
27823
+ t17 = $[21];
27824
+ t18 = $[22];
27825
+ }
27826
+ const t19 = clearable ? "pr-14" : "pr-12";
27827
+ const t20 = size === "smallest";
27828
+ const t21 = size === "small";
27829
+ const t22 = size === "medium";
27830
+ const t23 = size === "large";
27831
+ let t24;
27832
+ if ($[23] !== disabled || $[24] !== inputClassName || $[25] !== label || $[26] !== t19 || $[27] !== t20 || $[28] !== t21 || $[29] !== t22 || $[30] !== t23) {
27833
+ t24 = cls("w-full outline-none bg-transparent leading-normal text-base px-3", t19, "rounded-md", {
27834
+ "min-h-[28px]": t20,
27835
+ "min-h-[32px]": t21,
27836
+ "min-h-[42px]": t22,
27837
+ "min-h-[64px]": t23
27838
+ }, label ? "pt-8 pb-2" : "py-2", inputClassName, disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-surface-accent-600 dark:text-surface-accent-500");
27839
+ $[23] = disabled;
27840
+ $[24] = inputClassName;
27841
+ $[25] = label;
27842
+ $[26] = t19;
27843
+ $[27] = t20;
27844
+ $[28] = t21;
27845
+ $[29] = t22;
27846
+ $[30] = t23;
27847
+ $[31] = t24;
27828
27848
  } else {
27829
- t21 = $[26];
27849
+ t24 = $[31];
27830
27850
  }
27831
- let t22;
27832
- if ($[27] !== disabled || $[28] !== handleInputChange || $[29] !== t13 || $[30] !== t14 || $[31] !== t21) {
27833
- t22 = /* @__PURE__ */ jsx("input", { ref: inputRef, type: t13, value: t14, onChange: handleInputChange, onFocus: t15, onBlur: t16, disabled, className: t21 });
27834
- $[27] = disabled;
27835
- $[28] = handleInputChange;
27836
- $[29] = t13;
27837
- $[30] = t14;
27838
- $[31] = t21;
27839
- $[32] = t22;
27851
+ let t25;
27852
+ if ($[32] !== disabled || $[33] !== handleInputChange || $[34] !== t15 || $[35] !== t16 || $[36] !== t24) {
27853
+ t25 = /* @__PURE__ */ jsx("input", { ref: inputRef, type: t15, value: t16, onChange: handleInputChange, onFocus: t17, onBlur: t18, disabled, className: t24 });
27854
+ $[32] = disabled;
27855
+ $[33] = handleInputChange;
27856
+ $[34] = t15;
27857
+ $[35] = t16;
27858
+ $[36] = t24;
27859
+ $[37] = t25;
27840
27860
  } else {
27841
- t22 = $[32];
27861
+ t25 = $[37];
27842
27862
  }
27843
- let t23;
27844
- if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
27845
- t23 = (e_2) => {
27863
+ let t26;
27864
+ if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
27865
+ t26 = (e_2) => {
27846
27866
  e_2.stopPropagation();
27847
27867
  inputRef.current?.showPicker();
27848
27868
  };
27849
- $[33] = t23;
27869
+ $[38] = t26;
27850
27870
  } else {
27851
- t23 = $[33];
27871
+ t26 = $[38];
27852
27872
  }
27853
- let t24;
27854
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
27855
- t24 = /* @__PURE__ */ jsx(IconButton, { onClick: t23, className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-surface-accent-500", children: /* @__PURE__ */ jsx(CalendarMonthIcon, { color: "disabled" }) });
27856
- $[34] = t24;
27873
+ let t27;
27874
+ if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
27875
+ t27 = /* @__PURE__ */ jsx(IconButton, { onClick: t26, className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-surface-accent-500", children: /* @__PURE__ */ jsx(CalendarMonthIcon, { color: "disabled" }) });
27876
+ $[39] = t27;
27857
27877
  } else {
27858
- t24 = $[34];
27878
+ t27 = $[39];
27859
27879
  }
27860
- let t25;
27861
- if ($[35] !== clearable || $[36] !== handleClear || $[37] !== value) {
27862
- t25 = clearable && value && /* @__PURE__ */ jsx(IconButton, { onClick: handleClear, className: "absolute right-14 top-1/2 transform -translate-y-1/2 text-surface-accent-400 ", children: /* @__PURE__ */ jsx(CloseIcon, {}) });
27863
- $[35] = clearable;
27864
- $[36] = handleClear;
27865
- $[37] = value;
27866
- $[38] = t25;
27880
+ let t28;
27881
+ if ($[40] !== clearable || $[41] !== handleClear || $[42] !== value) {
27882
+ t28 = clearable && value && /* @__PURE__ */ jsx(IconButton, { onClick: handleClear, className: "absolute right-14 top-1/2 transform -translate-y-1/2 text-surface-accent-400 ", children: /* @__PURE__ */ jsx(CloseIcon, {}) });
27883
+ $[40] = clearable;
27884
+ $[41] = handleClear;
27885
+ $[42] = value;
27886
+ $[43] = t28;
27867
27887
  } else {
27868
- t25 = $[38];
27888
+ t28 = $[43];
27869
27889
  }
27870
- let t26;
27871
- if ($[39] !== style || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 || $[43] !== t22 || $[44] !== t25) {
27872
- t26 = /* @__PURE__ */ jsxs("div", { className: t10, style, onClick: t11, children: [
27873
- t12,
27874
- t22,
27875
- t24,
27876
- t25
27890
+ let t29;
27891
+ if ($[44] !== style || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t25 || $[49] !== t28) {
27892
+ t29 = /* @__PURE__ */ jsxs("div", { className: t12, style, onClick: t13, children: [
27893
+ t14,
27894
+ t25,
27895
+ t27,
27896
+ t28
27877
27897
  ] });
27878
- $[39] = style;
27879
- $[40] = t10;
27880
- $[41] = t11;
27881
- $[42] = t12;
27882
- $[43] = t22;
27883
- $[44] = t25;
27884
- $[45] = t26;
27898
+ $[44] = style;
27899
+ $[45] = t12;
27900
+ $[46] = t13;
27901
+ $[47] = t14;
27902
+ $[48] = t25;
27903
+ $[49] = t28;
27904
+ $[50] = t29;
27885
27905
  } else {
27886
- t26 = $[45];
27906
+ t29 = $[50];
27887
27907
  }
27888
- let t27;
27889
- if ($[46] !== invalidValue || $[47] !== value) {
27890
- t27 = invalidValue && /* @__PURE__ */ jsxs("div", { className: "flex items-center m-2", children: [
27891
- /* @__PURE__ */ jsx(ErrorIcon, { size: "medium", color: "error" }),
27908
+ let t30;
27909
+ if ($[51] !== invalidValue || $[52] !== value) {
27910
+ t30 = invalidValue && /* @__PURE__ */ jsxs("div", { className: "flex items-center m-2", children: [
27911
+ /* @__PURE__ */ jsx(ErrorIcon, { size: "small", color: "error" }),
27892
27912
  /* @__PURE__ */ jsxs("div", { className: "pl-2", children: [
27893
27913
  /* @__PURE__ */ jsx(Typography, { variant: "body2", children: "Invalid date value for this field" }),
27894
27914
  /* @__PURE__ */ jsx(Typography, { variant: "body2", children: `The provided value is: ${JSON.stringify(value)}` })
27895
27915
  ] })
27896
27916
  ] });
27897
- $[46] = invalidValue;
27898
- $[47] = value;
27899
- $[48] = t27;
27917
+ $[51] = invalidValue;
27918
+ $[52] = value;
27919
+ $[53] = t30;
27900
27920
  } else {
27901
- t27 = $[48];
27921
+ t30 = $[53];
27902
27922
  }
27903
- let t28;
27904
- if ($[49] !== t26 || $[50] !== t27) {
27905
- t28 = /* @__PURE__ */ jsxs(Fragment, { children: [
27923
+ let t31;
27924
+ if ($[54] !== t29 || $[55] !== t30) {
27925
+ t31 = /* @__PURE__ */ jsxs(Fragment, { children: [
27906
27926
  t5,
27907
- t26,
27908
- t27
27927
+ t29,
27928
+ t30
27909
27929
  ] });
27910
- $[49] = t26;
27911
- $[50] = t27;
27912
- $[51] = t28;
27930
+ $[54] = t29;
27931
+ $[55] = t30;
27932
+ $[56] = t31;
27913
27933
  } else {
27914
- t28 = $[51];
27934
+ t31 = $[56];
27915
27935
  }
27916
- return t28;
27936
+ return t31;
27917
27937
  };
27918
27938
  const inputStyles = `
27919
27939
  /* Hide the default calendar icon in Chrome, Safari, Edge, Opera */
@@ -27962,12 +27982,13 @@ const widthClasses = {
27962
27982
  full: "max-w-full min-w-full w-full"
27963
27983
  };
27964
27984
  const Dialog = (t0) => {
27965
- const $ = c(36);
27985
+ const $ = c(39);
27966
27986
  const {
27967
27987
  open,
27968
27988
  onOpenChange,
27969
27989
  children,
27970
27990
  className,
27991
+ containerClassName,
27971
27992
  fullWidth: t1,
27972
27993
  fullHeight,
27973
27994
  fullScreen,
@@ -28008,107 +28029,116 @@ const Dialog = (t0) => {
28008
28029
  }
28009
28030
  useEffect(t5, t6);
28010
28031
  const t7 = displayed || open;
28011
- const t8 = displayed && open ? "opacity-100" : "opacity-0";
28012
- let t9;
28013
- if ($[3] !== t8) {
28014
- t9 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black bg-opacity-50 dark:bg-opacity-60 backdrop-blur-sm ", t8, "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center");
28015
- $[3] = t8;
28016
- $[4] = t9;
28032
+ let t8;
28033
+ if ($[3] !== containerClassName) {
28034
+ t8 = cls("fixed inset-0 z-30", containerClassName);
28035
+ $[3] = containerClassName;
28036
+ $[4] = t8;
28017
28037
  } else {
28018
- t9 = $[4];
28038
+ t8 = $[4];
28019
28039
  }
28020
- const t10 = displayed ? "auto" : "none";
28021
- let t11;
28022
- if ($[5] !== t10) {
28023
- t11 = {
28024
- pointerEvents: t10
28025
- };
28026
- $[5] = t10;
28027
- $[6] = t11;
28040
+ const t9 = displayed && open ? "opacity-100" : "opacity-0";
28041
+ let t10;
28042
+ if ($[5] !== t9) {
28043
+ t10 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black bg-opacity-50 dark:bg-opacity-60 backdrop-blur-sm ", t9, "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center");
28044
+ $[5] = t9;
28045
+ $[6] = t10;
28028
28046
  } else {
28029
- t11 = $[6];
28047
+ t10 = $[6];
28030
28048
  }
28049
+ const t11 = displayed ? "auto" : "none";
28031
28050
  let t12;
28032
- if ($[7] !== t11 || $[8] !== t9) {
28033
- t12 = /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: t9, style: t11 });
28051
+ if ($[7] !== t11) {
28052
+ t12 = {
28053
+ pointerEvents: t11
28054
+ };
28034
28055
  $[7] = t11;
28035
- $[8] = t9;
28036
- $[9] = t12;
28056
+ $[8] = t12;
28037
28057
  } else {
28038
- t12 = $[9];
28058
+ t12 = $[8];
28039
28059
  }
28040
28060
  let t13;
28041
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
28042
- t13 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
28043
- $[10] = t13;
28044
- } else {
28045
- t13 = $[10];
28046
- }
28047
- const t14 = fullWidth && !fullScreen ? "w-11/12" : void 0;
28048
- const t15 = fullHeight && !fullScreen ? "h-full" : void 0;
28049
- const t16 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl";
28050
- const t17 = scrollable && "overflow-y-auto";
28051
- const t18 = displayed && open ? "opacity-100" : "opacity-0";
28052
- const t19 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
28053
- let t20;
28054
- if ($[11] !== className || $[12] !== t14 || $[13] !== t15 || $[14] !== t16 || $[15] !== t17 || $[16] !== t18 || $[17] !== t19) {
28055
- t20 = cls(paperMixin, "z-30", "relative", "outline-none focus:outline-none", t14, t15, "text-surface-accent-900 dark:text-white", "justify-center items-center", t16, "ease-in-out duration-200", t17, t18, t19, className);
28056
- $[11] = className;
28061
+ if ($[9] !== t10 || $[10] !== t12) {
28062
+ t13 = /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: t10, style: t12 });
28063
+ $[9] = t10;
28064
+ $[10] = t12;
28065
+ $[11] = t13;
28066
+ } else {
28067
+ t13 = $[11];
28068
+ }
28069
+ let t14;
28070
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
28071
+ t14 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
28057
28072
  $[12] = t14;
28058
- $[13] = t15;
28059
- $[14] = t16;
28060
- $[15] = t17;
28061
- $[16] = t18;
28062
- $[17] = t19;
28063
- $[18] = t20;
28064
28073
  } else {
28065
- t20 = $[18];
28074
+ t14 = $[12];
28066
28075
  }
28076
+ const t15 = fullWidth && !fullScreen ? "w-11/12" : void 0;
28077
+ const t16 = fullHeight && !fullScreen ? "h-full" : void 0;
28078
+ const t17 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl";
28079
+ const t18 = scrollable && "overflow-y-auto";
28080
+ const t19 = displayed && open ? "opacity-100" : "opacity-0";
28081
+ const t20 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
28067
28082
  let t21;
28068
- if ($[19] !== children || $[20] !== t20) {
28069
- t21 = /* @__PURE__ */ jsx("div", { className: t20, children });
28070
- $[19] = children;
28071
- $[20] = t20;
28072
- $[21] = t21;
28083
+ if ($[13] !== className || $[14] !== t15 || $[15] !== t16 || $[16] !== t17 || $[17] !== t18 || $[18] !== t19 || $[19] !== t20) {
28084
+ t21 = cls(paperMixin, "z-30", "relative", "outline-none focus:outline-none", t15, t16, "text-surface-accent-900 dark:text-white", "justify-center items-center", t17, "ease-in-out duration-200", t18, t19, t20, className);
28085
+ $[13] = className;
28086
+ $[14] = t15;
28087
+ $[15] = t16;
28088
+ $[16] = t17;
28089
+ $[17] = t18;
28090
+ $[18] = t19;
28091
+ $[19] = t20;
28092
+ $[20] = t21;
28073
28093
  } else {
28074
- t21 = $[21];
28094
+ t21 = $[20];
28075
28095
  }
28076
28096
  let t22;
28077
- if ($[22] !== onEscapeKeyDown || $[23] !== onInteractOutside || $[24] !== onOpenAutoFocus || $[25] !== onPointerDownOutside || $[26] !== t21) {
28078
- t22 = /* @__PURE__ */ jsx(DialogPrimitive.Content, { onEscapeKeyDown, onOpenAutoFocus, onPointerDownOutside, onInteractOutside, className: t13, children: t21 });
28079
- $[22] = onEscapeKeyDown;
28080
- $[23] = onInteractOutside;
28081
- $[24] = onOpenAutoFocus;
28082
- $[25] = onPointerDownOutside;
28083
- $[26] = t21;
28084
- $[27] = t22;
28097
+ if ($[21] !== children || $[22] !== t21) {
28098
+ t22 = /* @__PURE__ */ jsx("div", { className: t21, children });
28099
+ $[21] = children;
28100
+ $[22] = t21;
28101
+ $[23] = t22;
28085
28102
  } else {
28086
- t22 = $[27];
28103
+ t22 = $[23];
28087
28104
  }
28088
28105
  let t23;
28089
- if ($[28] !== t12 || $[29] !== t22) {
28090
- t23 = /* @__PURE__ */ jsx(DialogPrimitive.Portal, { children: /* @__PURE__ */ jsxs("div", { className: "fixed inset-0 z-30", children: [
28091
- t12,
28092
- t22
28093
- ] }) });
28094
- $[28] = t12;
28095
- $[29] = t22;
28096
- $[30] = t23;
28106
+ if ($[24] !== onEscapeKeyDown || $[25] !== onInteractOutside || $[26] !== onOpenAutoFocus || $[27] !== onPointerDownOutside || $[28] !== t22) {
28107
+ t23 = /* @__PURE__ */ jsx(DialogPrimitive.Content, { onEscapeKeyDown, onOpenAutoFocus, onPointerDownOutside, onInteractOutside, className: t14, children: t22 });
28108
+ $[24] = onEscapeKeyDown;
28109
+ $[25] = onInteractOutside;
28110
+ $[26] = onOpenAutoFocus;
28111
+ $[27] = onPointerDownOutside;
28112
+ $[28] = t22;
28113
+ $[29] = t23;
28097
28114
  } else {
28098
- t23 = $[30];
28115
+ t23 = $[29];
28099
28116
  }
28100
28117
  let t24;
28101
- if ($[31] !== modal || $[32] !== onOpenChange || $[33] !== t23 || $[34] !== t7) {
28102
- t24 = /* @__PURE__ */ jsx(DialogPrimitive.Root, { open: t7, modal, onOpenChange, children: t23 });
28103
- $[31] = modal;
28104
- $[32] = onOpenChange;
28105
- $[33] = t23;
28106
- $[34] = t7;
28107
- $[35] = t24;
28118
+ if ($[30] !== t13 || $[31] !== t23 || $[32] !== t8) {
28119
+ t24 = /* @__PURE__ */ jsx(DialogPrimitive.Portal, { children: /* @__PURE__ */ jsxs("div", { className: t8, children: [
28120
+ t13,
28121
+ t23
28122
+ ] }) });
28123
+ $[30] = t13;
28124
+ $[31] = t23;
28125
+ $[32] = t8;
28126
+ $[33] = t24;
28108
28127
  } else {
28109
- t24 = $[35];
28128
+ t24 = $[33];
28110
28129
  }
28111
- return t24;
28130
+ let t25;
28131
+ if ($[34] !== modal || $[35] !== onOpenChange || $[36] !== t24 || $[37] !== t7) {
28132
+ t25 = /* @__PURE__ */ jsx(DialogPrimitive.Root, { open: t7, modal, onOpenChange, children: t24 });
28133
+ $[34] = modal;
28134
+ $[35] = onOpenChange;
28135
+ $[36] = t24;
28136
+ $[37] = t7;
28137
+ $[38] = t25;
28138
+ } else {
28139
+ t25 = $[38];
28140
+ }
28141
+ return t25;
28112
28142
  };
28113
28143
  function _temp$2() {
28114
28144
  }
@@ -28956,7 +28986,7 @@ function MenubarTrigger(t0) {
28956
28986
  } = t0;
28957
28987
  let t1;
28958
28988
  if ($[0] !== className) {
28959
- t1 = cls("py-2 px-3 outline-none select-none font-medium leading-none rounded text-text-primary dark:text-text-primary-dark text-[13px] flex items-center justify-between gap-[2px] data-[highlighted]:bg-surface-accent-100 data-[highlighted]:dark:bg-surface-800 data-[state=open]:bg-surface-accent-100 data-[state=open]:dark:bg-surface-800 hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-700 dark:hover:bg-opacity-50", className);
28989
+ t1 = cls("py-2 px-3 outline-none select-none font-medium leading-none rounded text-text-primary dark:text-text-primary-dark text-[13px] flex items-center justify-between gap-[2px] data-[highlighted]:bg-surface-accent-100 data-[highlighted]:dark:bg-surface-800 data-[state=open]:bg-surface-accent-100 data-[state=open]:dark:bg-surface-800 hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800", className);
28960
28990
  $[0] = className;
28961
28991
  $[1] = t1;
28962
28992
  } else {
@@ -29623,98 +29653,99 @@ function SelectInputLabel(t0) {
29623
29653
  }
29624
29654
  const MultiSelectContext = React.createContext({});
29625
29655
  const MultiSelect = React.forwardRef((t0, ref) => {
29626
- const $ = c(98);
29656
+ const $ = c(102);
29627
29657
  const {
29628
29658
  value,
29629
- size,
29659
+ size: t1,
29630
29660
  label,
29631
29661
  error,
29632
29662
  onValueChange,
29633
29663
  invisible,
29634
29664
  disabled,
29635
29665
  placeholder,
29636
- modalPopover: t1,
29637
- includeClear: t2,
29638
- includeSelectAll: t3,
29639
- useChips: t4,
29666
+ modalPopover: t2,
29667
+ includeClear: t3,
29668
+ includeSelectAll: t4,
29669
+ useChips: t5,
29640
29670
  className,
29641
29671
  children,
29642
29672
  renderValues,
29643
29673
  open,
29644
29674
  onOpenChange
29645
29675
  } = t0;
29646
- const modalPopover = t1 === void 0 ? true : t1;
29647
- const includeClear = t2 === void 0 ? true : t2;
29648
- const includeSelectAll = t3 === void 0 ? true : t3;
29649
- const useChips = t4 === void 0 ? true : t4;
29676
+ const size = t1 === void 0 ? "large" : t1;
29677
+ const modalPopover = t2 === void 0 ? true : t2;
29678
+ const includeClear = t3 === void 0 ? true : t3;
29679
+ const includeSelectAll = t4 === void 0 ? true : t4;
29680
+ const useChips = t5 === void 0 ? true : t5;
29650
29681
  const [isPopoverOpen, setIsPopoverOpen] = React.useState(open ?? false);
29651
- let t5;
29682
+ let t6;
29652
29683
  if ($[0] !== value) {
29653
- t5 = value ?? [];
29684
+ t6 = value ?? [];
29654
29685
  $[0] = value;
29655
- $[1] = t5;
29686
+ $[1] = t6;
29656
29687
  } else {
29657
- t5 = $[1];
29688
+ t6 = $[1];
29658
29689
  }
29659
- const [selectedValues, setSelectedValues] = React.useState(t5);
29660
- let t6;
29690
+ const [selectedValues, setSelectedValues] = React.useState(t6);
29691
+ let t7;
29661
29692
  if ($[2] !== onOpenChange) {
29662
- t6 = (open_0) => {
29693
+ t7 = (open_0) => {
29663
29694
  setIsPopoverOpen(open_0);
29664
29695
  onOpenChange?.(open_0);
29665
29696
  };
29666
29697
  $[2] = onOpenChange;
29667
- $[3] = t6;
29698
+ $[3] = t7;
29668
29699
  } else {
29669
- t6 = $[3];
29700
+ t7 = $[3];
29670
29701
  }
29671
- const onPopoverOpenChange = t6;
29672
- let t7;
29702
+ const onPopoverOpenChange = t7;
29673
29703
  let t8;
29704
+ let t9;
29674
29705
  if ($[4] !== open) {
29675
- t7 = () => {
29706
+ t8 = () => {
29676
29707
  setIsPopoverOpen(open ?? false);
29677
29708
  };
29678
- t8 = [open];
29709
+ t9 = [open];
29679
29710
  $[4] = open;
29680
- $[5] = t7;
29681
- $[6] = t8;
29711
+ $[5] = t8;
29712
+ $[6] = t9;
29682
29713
  } else {
29683
- t7 = $[5];
29684
- t8 = $[6];
29714
+ t8 = $[5];
29715
+ t9 = $[6];
29685
29716
  }
29686
- useEffect(t7, t8);
29687
- let t9;
29717
+ useEffect(t8, t9);
29718
+ let t10;
29688
29719
  if ($[7] !== children) {
29689
- t9 = children ? Children.map(children, _temp$1).filter(Boolean) : [];
29720
+ t10 = children ? Children.map(children, _temp$1).filter(Boolean) : [];
29690
29721
  $[7] = children;
29691
- $[8] = t9;
29722
+ $[8] = t10;
29692
29723
  } else {
29693
- t9 = $[8];
29724
+ t10 = $[8];
29694
29725
  }
29695
- const allValues = t9;
29696
- let t10;
29726
+ const allValues = t10;
29697
29727
  let t11;
29728
+ let t12;
29698
29729
  if ($[9] !== value) {
29699
- t10 = () => {
29730
+ t11 = () => {
29700
29731
  setSelectedValues(value ?? []);
29701
29732
  };
29702
- t11 = [value];
29733
+ t12 = [value];
29703
29734
  $[9] = value;
29704
- $[10] = t10;
29705
- $[11] = t11;
29735
+ $[10] = t11;
29736
+ $[11] = t12;
29706
29737
  } else {
29707
- t10 = $[10];
29708
- t11 = $[11];
29738
+ t11 = $[10];
29739
+ t12 = $[11];
29709
29740
  }
29710
- React.useEffect(t10, t11);
29741
+ React.useEffect(t11, t12);
29711
29742
  let onItemClick;
29712
29743
  let updateValues;
29713
29744
  if ($[12] !== onValueChange || $[13] !== selectedValues) {
29714
29745
  onItemClick = function onItemClick2(newValue) {
29715
29746
  let newSelectedValues;
29716
- if (selectedValues.includes(newValue)) {
29717
- newSelectedValues = selectedValues.filter((v) => v !== newValue);
29747
+ if (selectedValues.some((v_0) => String(v_0) === String(newValue))) {
29748
+ newSelectedValues = selectedValues.filter((v) => String(v) !== String(newValue));
29718
29749
  } else {
29719
29750
  newSelectedValues = [...selectedValues, newValue];
29720
29751
  }
@@ -29732,9 +29763,9 @@ const MultiSelect = React.forwardRef((t0, ref) => {
29732
29763
  onItemClick = $[14];
29733
29764
  updateValues = $[15];
29734
29765
  }
29735
- let t12;
29766
+ let t13;
29736
29767
  if ($[16] !== onPopoverOpenChange || $[17] !== selectedValues || $[18] !== updateValues) {
29737
- t12 = (event) => {
29768
+ t13 = (event) => {
29738
29769
  if (event.key === "Enter") {
29739
29770
  onPopoverOpenChange(true);
29740
29771
  } else {
@@ -29748,50 +29779,50 @@ const MultiSelect = React.forwardRef((t0, ref) => {
29748
29779
  $[16] = onPopoverOpenChange;
29749
29780
  $[17] = selectedValues;
29750
29781
  $[18] = updateValues;
29751
- $[19] = t12;
29782
+ $[19] = t13;
29752
29783
  } else {
29753
- t12 = $[19];
29784
+ t13 = $[19];
29754
29785
  }
29755
- const handleInputKeyDown = t12;
29756
- let t13;
29786
+ const handleInputKeyDown = t13;
29787
+ let t14;
29757
29788
  if ($[20] !== selectedValues || $[21] !== updateValues) {
29758
- t13 = (value_0) => {
29759
- const newSelectedValues_1 = selectedValues.includes(value_0) ? selectedValues.filter((v_0) => v_0 !== value_0) : [...selectedValues, value_0];
29789
+ t14 = (value_0) => {
29790
+ const newSelectedValues_1 = selectedValues.some((v_2) => String(v_2) === String(value_0)) ? selectedValues.filter((v_1) => String(v_1) !== String(value_0)) : [...selectedValues, value_0];
29760
29791
  updateValues(newSelectedValues_1);
29761
29792
  };
29762
29793
  $[20] = selectedValues;
29763
29794
  $[21] = updateValues;
29764
- $[22] = t13;
29795
+ $[22] = t14;
29765
29796
  } else {
29766
- t13 = $[22];
29797
+ t14 = $[22];
29767
29798
  }
29768
- const toggleOption = t13;
29769
- let t14;
29799
+ const toggleOption = t14;
29800
+ let t15;
29770
29801
  if ($[23] !== updateValues) {
29771
- t14 = () => {
29802
+ t15 = () => {
29772
29803
  updateValues([]);
29773
29804
  };
29774
29805
  $[23] = updateValues;
29775
- $[24] = t14;
29806
+ $[24] = t15;
29776
29807
  } else {
29777
- t14 = $[24];
29808
+ t15 = $[24];
29778
29809
  }
29779
- const handleClear = t14;
29780
- let t15;
29810
+ const handleClear = t15;
29811
+ let t16;
29781
29812
  if ($[25] !== isPopoverOpen || $[26] !== onPopoverOpenChange) {
29782
- t15 = () => {
29813
+ t16 = () => {
29783
29814
  onPopoverOpenChange(!isPopoverOpen);
29784
29815
  };
29785
29816
  $[25] = isPopoverOpen;
29786
29817
  $[26] = onPopoverOpenChange;
29787
- $[27] = t15;
29818
+ $[27] = t16;
29788
29819
  } else {
29789
- t15 = $[27];
29820
+ t16 = $[27];
29790
29821
  }
29791
- const handleTogglePopover = t15;
29792
- let t16;
29822
+ const handleTogglePopover = t16;
29823
+ let t17;
29793
29824
  if ($[28] !== allValues || $[29] !== handleClear || $[30] !== onPopoverOpenChange || $[31] !== selectedValues.length || $[32] !== updateValues) {
29794
- t16 = () => {
29825
+ t17 = () => {
29795
29826
  if (selectedValues.length === allValues.length) {
29796
29827
  handleClear();
29797
29828
  } else {
@@ -29804,60 +29835,76 @@ const MultiSelect = React.forwardRef((t0, ref) => {
29804
29835
  $[30] = onPopoverOpenChange;
29805
29836
  $[31] = selectedValues.length;
29806
29837
  $[32] = updateValues;
29807
- $[33] = t16;
29838
+ $[33] = t17;
29808
29839
  } else {
29809
- t16 = $[33];
29840
+ t17 = $[33];
29810
29841
  }
29811
- const toggleAll = t16;
29842
+ const toggleAll = t17;
29812
29843
  useInjectStyles("MultiSelect", `
29813
29844
  [cmdk-group] {
29814
29845
  max-height: 45vh;
29815
29846
  overflow-y: auto;
29816
29847
  // width: 400px;
29817
29848
  } `);
29818
- let t17;
29849
+ let t18;
29819
29850
  if ($[34] !== onItemClick || $[35] !== selectedValues) {
29820
- t17 = {
29851
+ t18 = {
29821
29852
  fieldValue: selectedValues,
29822
29853
  onItemClick
29823
29854
  };
29824
29855
  $[34] = onItemClick;
29825
29856
  $[35] = selectedValues;
29826
- $[36] = t17;
29857
+ $[36] = t18;
29827
29858
  } else {
29828
- t17 = $[36];
29859
+ t18 = $[36];
29829
29860
  }
29830
- let t18;
29861
+ let t19;
29831
29862
  if ($[37] !== error || $[38] !== label) {
29832
- t18 = typeof label === "string" ? /* @__PURE__ */ jsx(SelectInputLabel, { error, children: label }) : label;
29863
+ t19 = typeof label === "string" ? /* @__PURE__ */ jsx(SelectInputLabel, { error, children: label }) : label;
29833
29864
  $[37] = error;
29834
29865
  $[38] = label;
29835
- $[39] = t18;
29866
+ $[39] = t19;
29836
29867
  } else {
29837
- t18 = $[39];
29868
+ t19 = $[39];
29838
29869
  }
29839
- const t19 = size === "small" ? "min-h-[42px]" : "min-h-[64px]";
29840
- const t20 = invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin;
29841
- const t21 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
29842
- let t22;
29843
- if ($[40] !== className || $[41] !== t19 || $[42] !== t20 || $[43] !== t21) {
29844
- t22 = cls(t19, "py-2", "px-4", "select-none rounded-md text-sm", t20, t21, "relative flex items-center", className);
29870
+ const t20 = size === "smallest";
29871
+ const t21 = size === "small";
29872
+ const t22 = size === "medium";
29873
+ const t23 = size === "large";
29874
+ let t24;
29875
+ if ($[40] !== className || $[41] !== disabled || $[42] !== invisible || $[43] !== size || $[44] !== t20 || $[45] !== t21 || $[46] !== t22 || $[47] !== t23) {
29876
+ t24 = cls({
29877
+ "min-h-[28px]": t20,
29878
+ "min-h-[32px]": t21,
29879
+ "min-h-[42px]": t22,
29880
+ "min-h-[64px]": t23
29881
+ }, {
29882
+ "py-1": size === "small" || size === "smallest",
29883
+ "py-2": size === "medium" || size === "large"
29884
+ }, {
29885
+ "px-2": size === "small" || size === "smallest",
29886
+ "px-4": size === "medium" || size === "large"
29887
+ }, "select-none rounded-md text-sm", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, "relative flex items-center", className);
29845
29888
  $[40] = className;
29846
- $[41] = t19;
29847
- $[42] = t20;
29848
- $[43] = t21;
29849
- $[44] = t22;
29889
+ $[41] = disabled;
29890
+ $[42] = invisible;
29891
+ $[43] = size;
29892
+ $[44] = t20;
29893
+ $[45] = t21;
29894
+ $[46] = t22;
29895
+ $[47] = t23;
29896
+ $[48] = t24;
29850
29897
  } else {
29851
- t22 = $[44];
29898
+ t24 = $[48];
29852
29899
  }
29853
- let t23;
29854
- if ($[45] !== children || $[46] !== handleClear || $[47] !== includeClear || $[48] !== isPopoverOpen || $[49] !== placeholder || $[50] !== renderValues || $[51] !== selectedValues || $[52] !== toggleOption || $[53] !== useChips) {
29855
- t23 = selectedValues.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center w-full", children: [
29900
+ let t25;
29901
+ if ($[49] !== children || $[50] !== handleClear || $[51] !== includeClear || $[52] !== isPopoverOpen || $[53] !== placeholder || $[54] !== renderValues || $[55] !== selectedValues || $[56] !== toggleOption || $[57] !== useChips) {
29902
+ t25 = selectedValues.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center w-full", children: [
29856
29903
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5 text-start", children: [
29857
29904
  renderValues && renderValues(selectedValues),
29858
29905
  !renderValues && selectedValues.map((value_1) => {
29859
29906
  const childrenProps = Children.map(children, _temp2).filter(Boolean);
29860
- const option = childrenProps.find((o) => o.value === value_1);
29907
+ const option = childrenProps.find((o) => String(o.value) === String(value_1));
29861
29908
  if (!useChips) {
29862
29909
  return option?.children;
29863
29910
  }
@@ -29867,7 +29914,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
29867
29914
  event_0.stopPropagation();
29868
29915
  toggleOption(value_1);
29869
29916
  } })
29870
- ] }, value_1);
29917
+ ] }, String(value_1));
29871
29918
  })
29872
29919
  ] }),
29873
29920
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
@@ -29881,179 +29928,179 @@ const MultiSelect = React.forwardRef((t0, ref) => {
29881
29928
  /* @__PURE__ */ jsx("span", { className: "text-sm", children: placeholder }),
29882
29929
  /* @__PURE__ */ jsx("div", { className: cls("px-2 h-full flex items-center"), children: /* @__PURE__ */ jsx(KeyboardArrowDownIcon, { size: "small", className: cls("transition", isPopoverOpen ? "rotate-180" : "") }) })
29883
29930
  ] });
29884
- $[45] = children;
29885
- $[46] = handleClear;
29886
- $[47] = includeClear;
29887
- $[48] = isPopoverOpen;
29888
- $[49] = placeholder;
29889
- $[50] = renderValues;
29890
- $[51] = selectedValues;
29891
- $[52] = toggleOption;
29892
- $[53] = useChips;
29893
- $[54] = t23;
29894
- } else {
29895
- t23 = $[54];
29896
- }
29897
- let t24;
29898
- if ($[55] !== handleTogglePopover || $[56] !== ref || $[57] !== t22 || $[58] !== t23) {
29899
- t24 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("button", { ref, onClick: handleTogglePopover, className: t22, children: t23 }) });
29900
- $[55] = handleTogglePopover;
29901
- $[56] = ref;
29902
- $[57] = t22;
29903
- $[58] = t23;
29904
- $[59] = t24;
29905
- } else {
29906
- t24 = $[59];
29907
- }
29908
- let t25;
29909
- if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
29910
- t25 = cls("z-50 relative overflow-hidden border bg-white dark:bg-surface-900 rounded-lg w-[400px]", defaultBorderMixin);
29911
- $[60] = t25;
29912
- } else {
29913
- t25 = $[60];
29931
+ $[49] = children;
29932
+ $[50] = handleClear;
29933
+ $[51] = includeClear;
29934
+ $[52] = isPopoverOpen;
29935
+ $[53] = placeholder;
29936
+ $[54] = renderValues;
29937
+ $[55] = selectedValues;
29938
+ $[56] = toggleOption;
29939
+ $[57] = useChips;
29940
+ $[58] = t25;
29941
+ } else {
29942
+ t25 = $[58];
29914
29943
  }
29915
29944
  let t26;
29916
- if ($[61] !== onPopoverOpenChange) {
29917
- t26 = () => onPopoverOpenChange(false);
29918
- $[61] = onPopoverOpenChange;
29919
- $[62] = t26;
29945
+ if ($[59] !== handleTogglePopover || $[60] !== ref || $[61] !== t24 || $[62] !== t25) {
29946
+ t26 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("button", { ref, onClick: handleTogglePopover, className: t24, children: t25 }) });
29947
+ $[59] = handleTogglePopover;
29948
+ $[60] = ref;
29949
+ $[61] = t24;
29950
+ $[62] = t25;
29951
+ $[63] = t26;
29920
29952
  } else {
29921
- t26 = $[62];
29953
+ t26 = $[63];
29922
29954
  }
29923
29955
  let t27;
29924
- if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
29925
- t27 = cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow ");
29926
- $[63] = t27;
29956
+ if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
29957
+ t27 = cls("z-50 relative overflow-hidden border bg-white dark:bg-surface-900 rounded-lg w-[400px]", defaultBorderMixin);
29958
+ $[64] = t27;
29927
29959
  } else {
29928
- t27 = $[63];
29960
+ t27 = $[64];
29929
29961
  }
29930
29962
  let t28;
29931
- if ($[64] !== handleInputKeyDown) {
29932
- t28 = /* @__PURE__ */ jsx(Command.Input, { className: t27, placeholder: "Search...", onKeyDown: handleInputKeyDown });
29933
- $[64] = handleInputKeyDown;
29934
- $[65] = t28;
29963
+ if ($[65] !== onPopoverOpenChange) {
29964
+ t28 = () => onPopoverOpenChange(false);
29965
+ $[65] = onPopoverOpenChange;
29966
+ $[66] = t28;
29935
29967
  } else {
29936
- t28 = $[65];
29968
+ t28 = $[66];
29937
29969
  }
29938
29970
  let t29;
29939
- if ($[66] !== handleClear || $[67] !== selectedValues.length) {
29940
- t29 = selectedValues.length > 0 && /* @__PURE__ */ jsx("div", { onClick: handleClear, className: "text-sm justify-center cursor-pointer py-3 px-4 text-text-secondary dark:text-text-secondary-dark", children: "Clear" });
29941
- $[66] = handleClear;
29942
- $[67] = selectedValues.length;
29943
- $[68] = t29;
29971
+ if ($[67] === Symbol.for("react.memo_cache_sentinel")) {
29972
+ t29 = cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow ");
29973
+ $[67] = t29;
29944
29974
  } else {
29945
- t29 = $[68];
29975
+ t29 = $[67];
29946
29976
  }
29947
29977
  let t30;
29948
- if ($[69] !== t28 || $[70] !== t29) {
29949
- t30 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center", children: [
29950
- t28,
29951
- t29
29952
- ] });
29953
- $[69] = t28;
29954
- $[70] = t29;
29955
- $[71] = t30;
29978
+ if ($[68] !== handleInputKeyDown) {
29979
+ t30 = /* @__PURE__ */ jsx(Command.Input, { className: t29, placeholder: "Search...", onKeyDown: handleInputKeyDown });
29980
+ $[68] = handleInputKeyDown;
29981
+ $[69] = t30;
29956
29982
  } else {
29957
- t30 = $[71];
29983
+ t30 = $[69];
29958
29984
  }
29959
29985
  let t31;
29960
- if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
29961
- t31 = /* @__PURE__ */ jsx(Separator, { orientation: "horizontal", className: "my-0" });
29986
+ if ($[70] !== handleClear || $[71] !== selectedValues.length) {
29987
+ t31 = selectedValues.length > 0 && /* @__PURE__ */ jsx("div", { onClick: handleClear, className: "text-sm justify-center cursor-pointer py-3 px-4 text-text-secondary dark:text-text-secondary-dark", children: "Clear" });
29988
+ $[70] = handleClear;
29989
+ $[71] = selectedValues.length;
29962
29990
  $[72] = t31;
29963
29991
  } else {
29964
29992
  t31 = $[72];
29965
29993
  }
29966
29994
  let t32;
29967
- if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
29968
- t32 = /* @__PURE__ */ jsx(Command.Empty, { className: "px-4 py-2", children: "No results found." });
29969
- $[73] = t32;
29995
+ if ($[73] !== t30 || $[74] !== t31) {
29996
+ t32 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center", children: [
29997
+ t30,
29998
+ t31
29999
+ ] });
30000
+ $[73] = t30;
30001
+ $[74] = t31;
30002
+ $[75] = t32;
29970
30003
  } else {
29971
- t32 = $[73];
30004
+ t32 = $[75];
29972
30005
  }
29973
30006
  let t33;
29974
- if ($[74] !== allValues.length || $[75] !== includeSelectAll || $[76] !== selectedValues.length || $[77] !== toggleAll) {
29975
- t33 = includeSelectAll && /* @__PURE__ */ jsxs(Command.Item, { onSelect: toggleAll, className: cls("flex flex-row items-center gap-1.5", "cursor-pointer", "m-1", "ring-offset-transparent", "p-1 rounded aria-[selected=true]:outline-none aria-[selected=true]:ring-2 aria-[selected=true]:ring-primary aria-[selected=true]:ring-opacity-75 aria-[selected=true]:ring-offset-2", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900"), children: [
30007
+ if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
30008
+ t33 = /* @__PURE__ */ jsx(Separator, { orientation: "horizontal", className: "my-0" });
30009
+ $[76] = t33;
30010
+ } else {
30011
+ t33 = $[76];
30012
+ }
30013
+ let t34;
30014
+ if ($[77] === Symbol.for("react.memo_cache_sentinel")) {
30015
+ t34 = /* @__PURE__ */ jsx(Command.Empty, { className: "px-4 py-2", children: "No results found." });
30016
+ $[77] = t34;
30017
+ } else {
30018
+ t34 = $[77];
30019
+ }
30020
+ let t35;
30021
+ if ($[78] !== allValues.length || $[79] !== includeSelectAll || $[80] !== selectedValues.length || $[81] !== toggleAll) {
30022
+ t35 = includeSelectAll && /* @__PURE__ */ jsxs(Command.Item, { onSelect: toggleAll, className: cls("flex flex-row items-center gap-1.5", "cursor-pointer", "m-1", "ring-offset-transparent", "p-1 rounded aria-[selected=true]:outline-none aria-[selected=true]:ring-2 aria-[selected=true]:ring-primary aria-[selected=true]:ring-opacity-75 aria-[selected=true]:ring-offset-2", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900"), children: [
29976
30023
  /* @__PURE__ */ jsx(InnerCheckBox, { checked: selectedValues.length === allValues.length }),
29977
30024
  /* @__PURE__ */ jsx("span", { className: "text-sm text-text-secondary dark:text-text-secondary-dark", children: "(Select All)" })
29978
30025
  ] }, "all");
29979
- $[74] = allValues.length;
29980
- $[75] = includeSelectAll;
29981
- $[76] = selectedValues.length;
29982
- $[77] = toggleAll;
29983
- $[78] = t33;
30026
+ $[78] = allValues.length;
30027
+ $[79] = includeSelectAll;
30028
+ $[80] = selectedValues.length;
30029
+ $[81] = toggleAll;
30030
+ $[82] = t35;
29984
30031
  } else {
29985
- t33 = $[78];
30032
+ t35 = $[82];
29986
30033
  }
29987
- let t34;
29988
- if ($[79] !== children || $[80] !== t33) {
29989
- t34 = /* @__PURE__ */ jsxs(Command.List, { children: [
29990
- t32,
30034
+ let t36;
30035
+ if ($[83] !== children || $[84] !== t35) {
30036
+ t36 = /* @__PURE__ */ jsxs(Command.List, { children: [
30037
+ t34,
29991
30038
  /* @__PURE__ */ jsxs(Command.Group, { children: [
29992
- t33,
30039
+ t35,
29993
30040
  children
29994
30041
  ] })
29995
30042
  ] });
29996
- $[79] = children;
29997
- $[80] = t33;
29998
- $[81] = t34;
29999
- } else {
30000
- t34 = $[81];
30001
- }
30002
- let t35;
30003
- if ($[82] !== t30 || $[83] !== t34) {
30004
- t35 = /* @__PURE__ */ jsxs(Command, { children: [
30005
- t30,
30006
- t31,
30007
- t34
30008
- ] });
30009
- $[82] = t30;
30010
- $[83] = t34;
30043
+ $[83] = children;
30011
30044
  $[84] = t35;
30045
+ $[85] = t36;
30012
30046
  } else {
30013
- t35 = $[84];
30014
- }
30015
- let t36;
30016
- if ($[85] !== t26 || $[86] !== t35) {
30017
- t36 = /* @__PURE__ */ jsx(PopoverPrimitive.Content, { className: t25, align: "start", sideOffset: 8, onEscapeKeyDown: t26, children: t35 });
30018
- $[85] = t26;
30019
- $[86] = t35;
30020
- $[87] = t36;
30021
- } else {
30022
- t36 = $[87];
30047
+ t36 = $[85];
30023
30048
  }
30024
30049
  let t37;
30025
- if ($[88] !== isPopoverOpen || $[89] !== modalPopover || $[90] !== onPopoverOpenChange || $[91] !== t24 || $[92] !== t36) {
30026
- t37 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open: isPopoverOpen, onOpenChange: onPopoverOpenChange, modal: modalPopover, children: [
30027
- t24,
30050
+ if ($[86] !== t32 || $[87] !== t36) {
30051
+ t37 = /* @__PURE__ */ jsxs(Command, { children: [
30052
+ t32,
30053
+ t33,
30028
30054
  t36
30029
30055
  ] });
30030
- $[88] = isPopoverOpen;
30031
- $[89] = modalPopover;
30032
- $[90] = onPopoverOpenChange;
30033
- $[91] = t24;
30034
- $[92] = t36;
30035
- $[93] = t37;
30056
+ $[86] = t32;
30057
+ $[87] = t36;
30058
+ $[88] = t37;
30036
30059
  } else {
30037
- t37 = $[93];
30060
+ t37 = $[88];
30038
30061
  }
30039
30062
  let t38;
30040
- if ($[94] !== t17 || $[95] !== t18 || $[96] !== t37) {
30041
- t38 = /* @__PURE__ */ jsxs(MultiSelectContext.Provider, { value: t17, children: [
30042
- t18,
30043
- t37
30063
+ if ($[89] !== t28 || $[90] !== t37) {
30064
+ t38 = /* @__PURE__ */ jsx(PopoverPrimitive.Content, { className: t27, align: "start", sideOffset: 8, onEscapeKeyDown: t28, children: t37 });
30065
+ $[89] = t28;
30066
+ $[90] = t37;
30067
+ $[91] = t38;
30068
+ } else {
30069
+ t38 = $[91];
30070
+ }
30071
+ let t39;
30072
+ if ($[92] !== isPopoverOpen || $[93] !== modalPopover || $[94] !== onPopoverOpenChange || $[95] !== t26 || $[96] !== t38) {
30073
+ t39 = /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open: isPopoverOpen, onOpenChange: onPopoverOpenChange, modal: modalPopover, children: [
30074
+ t26,
30075
+ t38
30076
+ ] });
30077
+ $[92] = isPopoverOpen;
30078
+ $[93] = modalPopover;
30079
+ $[94] = onPopoverOpenChange;
30080
+ $[95] = t26;
30081
+ $[96] = t38;
30082
+ $[97] = t39;
30083
+ } else {
30084
+ t39 = $[97];
30085
+ }
30086
+ let t40;
30087
+ if ($[98] !== t18 || $[99] !== t19 || $[100] !== t39) {
30088
+ t40 = /* @__PURE__ */ jsxs(MultiSelectContext.Provider, { value: t18, children: [
30089
+ t19,
30090
+ t39
30044
30091
  ] });
30045
- $[94] = t17;
30046
- $[95] = t18;
30047
- $[96] = t37;
30048
- $[97] = t38;
30092
+ $[98] = t18;
30093
+ $[99] = t19;
30094
+ $[100] = t39;
30095
+ $[101] = t40;
30049
30096
  } else {
30050
- t38 = $[97];
30097
+ t40 = $[101];
30051
30098
  }
30052
- return t38;
30099
+ return t40;
30053
30100
  });
30054
30101
  MultiSelect.displayName = "MultiSelect";
30055
30102
  function MultiSelectItem(t0) {
30056
- const $ = c(18);
30103
+ const $ = c(20);
30057
30104
  const {
30058
30105
  children,
30059
30106
  value,
@@ -30077,7 +30124,15 @@ function MultiSelectItem(t0) {
30077
30124
  }
30078
30125
  let t2;
30079
30126
  if ($[2] !== t1 || $[3] !== value) {
30080
- t2 = t1.includes(value);
30127
+ let t32;
30128
+ if ($[5] !== value) {
30129
+ t32 = (v) => String(v) === String(value);
30130
+ $[5] = value;
30131
+ $[6] = t32;
30132
+ } else {
30133
+ t32 = $[6];
30134
+ }
30135
+ t2 = t1.some(t32);
30081
30136
  $[2] = t1;
30082
30137
  $[3] = value;
30083
30138
  $[4] = t2;
@@ -30086,47 +30141,47 @@ function MultiSelectItem(t0) {
30086
30141
  }
30087
30142
  const isSelected = t2;
30088
30143
  let t3;
30089
- if ($[5] !== onItemClick || $[6] !== value) {
30144
+ if ($[7] !== onItemClick || $[8] !== value) {
30090
30145
  t3 = (_) => {
30091
30146
  onItemClick(value);
30092
30147
  };
30093
- $[5] = onItemClick;
30094
- $[6] = value;
30095
- $[7] = t3;
30148
+ $[7] = onItemClick;
30149
+ $[8] = value;
30150
+ $[9] = t3;
30096
30151
  } else {
30097
- t3 = $[7];
30152
+ t3 = $[9];
30098
30153
  }
30099
30154
  const t4 = isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "";
30100
30155
  let t5;
30101
- if ($[8] !== className || $[9] !== t4) {
30156
+ if ($[10] !== className || $[11] !== t4) {
30102
30157
  t5 = cls("flex flex-row items-center gap-1.5", t4, "cursor-pointer", "m-1", "ring-offset-transparent", "p-1 rounded aria-[selected=true]:outline-none aria-[selected=true]:ring-2 aria-[selected=true]:ring-primary aria-[selected=true]:ring-opacity-75 aria-[selected=true]:ring-offset-2", "aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", "cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900", className);
30103
- $[8] = className;
30104
- $[9] = t4;
30105
- $[10] = t5;
30158
+ $[10] = className;
30159
+ $[11] = t4;
30160
+ $[12] = t5;
30106
30161
  } else {
30107
- t5 = $[10];
30162
+ t5 = $[12];
30108
30163
  }
30109
30164
  let t6;
30110
- if ($[11] !== isSelected) {
30165
+ if ($[13] !== isSelected) {
30111
30166
  t6 = /* @__PURE__ */ jsx(InnerCheckBox, { checked: isSelected });
30112
- $[11] = isSelected;
30113
- $[12] = t6;
30167
+ $[13] = isSelected;
30168
+ $[14] = t6;
30114
30169
  } else {
30115
- t6 = $[12];
30170
+ t6 = $[14];
30116
30171
  }
30117
30172
  let t7;
30118
- if ($[13] !== children || $[14] !== t3 || $[15] !== t5 || $[16] !== t6) {
30173
+ if ($[15] !== children || $[16] !== t3 || $[17] !== t5 || $[18] !== t6) {
30119
30174
  t7 = /* @__PURE__ */ jsxs(Command.Item, { onMouseDown: _temp3, onSelect: t3, className: t5, children: [
30120
30175
  t6,
30121
30176
  children
30122
30177
  ] });
30123
- $[13] = children;
30124
- $[14] = t3;
30125
- $[15] = t5;
30126
- $[16] = t6;
30127
- $[17] = t7;
30178
+ $[15] = children;
30179
+ $[16] = t3;
30180
+ $[17] = t5;
30181
+ $[18] = t6;
30182
+ $[19] = t7;
30128
30183
  } else {
30129
- t7 = $[17];
30184
+ t7 = $[19];
30130
30185
  }
30131
30186
  return t7;
30132
30187
  }
@@ -30488,25 +30543,31 @@ const Select = forwardRef(({
30488
30543
  setOpenInternal(open ?? false);
30489
30544
  }, [open]);
30490
30545
  const onValueChangeInternal = useCallback((newValue) => {
30491
- onValueChange?.(newValue);
30546
+ let typedValue = newValue;
30547
+ if (newValue === "true") typedValue = true;
30548
+ else if (newValue === "false") typedValue = false;
30549
+ else if (!isNaN(Number(newValue)) && newValue.trim() !== "") typedValue = Number(newValue);
30550
+ onValueChange?.(typedValue);
30492
30551
  if (onChange) {
30493
30552
  const event = {
30494
30553
  target: {
30495
30554
  name,
30496
- value: newValue
30555
+ value: typedValue
30497
30556
  }
30498
30557
  };
30499
30558
  onChange(event);
30500
30559
  }
30501
- }, [onChange, value, onValueChange]);
30560
+ }, [onChange, onValueChange, name]);
30502
30561
  const hasValue = Array.isArray(value) ? value.length > 0 : value != null && value !== "" && value !== void 0;
30503
- return /* @__PURE__ */ jsxs(SelectPrimitive.Root, { name, value, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: (open_0) => {
30562
+ const stringValue = value !== void 0 ? String(value) : void 0;
30563
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Root, { name, value: stringValue, open: openInternal, disabled, onValueChange: onValueChangeInternal, onOpenChange: (open_0) => {
30504
30564
  onOpenChange?.(open_0);
30505
30565
  setOpenInternal(open_0);
30506
30566
  }, ...props, children: [
30507
30567
  typeof label === "string" ? /* @__PURE__ */ jsx(SelectInputLabel, { error, children: label }) : label,
30508
30568
  /* @__PURE__ */ jsx("div", { className: cls("select-none rounded-md text-sm", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, "relative flex items-center", className, {
30509
- "min-h-[28px]": size === "small",
30569
+ "min-h-[28px]": size === "smallest",
30570
+ "min-h-[32px]": size === "small",
30510
30571
  "min-h-[42px]": size === "medium",
30511
30572
  "min-h-[64px]": size === "large",
30512
30573
  "w-fit": !fullWidth,
@@ -30514,30 +30575,32 @@ const Select = forwardRef(({
30514
30575
  }), children: /* @__PURE__ */ jsx(SelectPrimitive.Trigger, { ref: inputRef, id, asChild: true, children: /* @__PURE__ */ jsxs("div", { className: cls("h-full", padding ? {
30515
30576
  "px-4": size === "large",
30516
30577
  "px-3": size === "medium",
30517
- "px-2": size === "small"
30578
+ "px-2": size === "small" || size === "smallest"
30518
30579
  } : "", "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", {
30519
- "min-h-[28px]": size === "small",
30580
+ "min-h-[28px]": size === "smallest",
30581
+ "min-h-[32px]": size === "small",
30520
30582
  "min-h-[42px]": size === "medium",
30521
30583
  "min-h-[64px]": size === "large",
30522
30584
  "w-full": fullWidth,
30523
30585
  "w-fit": !fullWidth
30524
30586
  }, inputClassName), children: [
30525
30587
  /* @__PURE__ */ jsx("div", { ref, className: cls("flex-grow max-w-full flex flex-row gap-2 items-center", "overflow-visible", {
30526
- "min-h-[28px]": size === "small",
30588
+ "min-h-[28px]": size === "smallest",
30589
+ "min-h-[32px]": size === "small",
30527
30590
  "min-h-[42px]": size === "medium",
30528
30591
  "min-h-[64px]": size === "large"
30529
30592
  }), children: /* @__PURE__ */ jsxs(SelectPrimitive.Value, { onClick: (e) => {
30530
30593
  e.preventDefault();
30531
30594
  e.stopPropagation();
30532
30595
  }, placeholder, className: "w-full", children: [
30533
- hasValue && value && renderValue ? renderValue(value) : placeholder,
30596
+ hasValue && value !== void 0 && renderValue ? renderValue(value) : placeholder,
30534
30597
  hasValue && !renderValue && (() => {
30535
30598
  const childrenProps = Children.map(children, (child) => {
30536
30599
  if (React__default.isValidElement(child)) {
30537
30600
  return child.props;
30538
30601
  }
30539
30602
  }).filter(Boolean);
30540
- const option = childrenProps.find((o) => o.value === value);
30603
+ const option = childrenProps.find((o) => String(o.value) === String(value));
30541
30604
  return option?.children;
30542
30605
  })()
30543
30606
  ] }) }),
@@ -30564,6 +30627,7 @@ function SelectItem(t0) {
30564
30627
  disabled,
30565
30628
  className
30566
30629
  } = t0;
30630
+ const stringValue = String(value);
30567
30631
  const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
30568
30632
  let t2;
30569
30633
  if ($[0] !== className || $[1] !== t1) {
@@ -30590,15 +30654,15 @@ function SelectItem(t0) {
30590
30654
  t4 = $[5];
30591
30655
  }
30592
30656
  let t5;
30593
- if ($[6] !== disabled || $[7] !== t2 || $[8] !== t3 || $[9] !== value) {
30594
- t5 = /* @__PURE__ */ jsxs(SelectPrimitive.Item, { value, disabled, className: t2, children: [
30657
+ if ($[6] !== disabled || $[7] !== stringValue || $[8] !== t2 || $[9] !== t3) {
30658
+ t5 = /* @__PURE__ */ jsxs(SelectPrimitive.Item, { value: stringValue, disabled, className: t2, children: [
30595
30659
  t3,
30596
30660
  t4
30597
- ] }, value);
30661
+ ] }, stringValue);
30598
30662
  $[6] = disabled;
30599
- $[7] = t2;
30600
- $[8] = t3;
30601
- $[9] = value;
30663
+ $[7] = stringValue;
30664
+ $[8] = t2;
30665
+ $[9] = t3;
30602
30666
  $[10] = t5;
30603
30667
  } else {
30604
30668
  t5 = $[10];
@@ -31274,7 +31338,8 @@ const TextField = forwardRef(({
31274
31338
  type = "text",
31275
31339
  multiline = false,
31276
31340
  invisible,
31277
- rows,
31341
+ maxRows,
31342
+ minRows,
31278
31343
  disabled,
31279
31344
  error,
31280
31345
  endAdornment,
@@ -31302,18 +31367,24 @@ const TextField = forwardRef(({
31302
31367
  element?.removeEventListener("wheel", handleWheel);
31303
31368
  };
31304
31369
  }, [inputRef, type]);
31305
- const input = multiline ? /* @__PURE__ */ jsx(TextareaAutosize, { ...inputProps, ref: inputRef, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows, value: value ?? "", onChange, style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8", 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, size === "small" ? "min-h-[32px]" : size === "medium" ? "min-h-[48px]" : "min-h-[64px]", label ? size === "large" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2", endAdornment ? "pr-10" : "pr-3", disabled && "outline-none opacity-50 dark:opacity-50 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 });
31370
+ const input = multiline ? /* @__PURE__ */ jsx(TextareaAutosize, { ...inputProps, ref: inputRef, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, minRows, maxRows, value: value ?? "", onChange, style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8", 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, {
31371
+ "min-h-[28px]": size === "smallest",
31372
+ "min-h-[32px]": size === "small",
31373
+ "min-h-[42px]": size === "medium",
31374
+ "min-h-[64px]": size === "large"
31375
+ }, label ? size === "large" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2", endAdornment ? "pr-10" : "pr-3", disabled && "outline-none opacity-50 dark:opacity-50 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 });
31306
31376
  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" : "", {
31307
- "min-h-[32px]": !invisible && size === "small",
31308
- "min-h-[48px]": !invisible && size === "medium",
31309
- "min-h-[64px]": !invisible && size === "large"
31377
+ "min-h-[28px]": size === "smallest",
31378
+ "min-h-[32px]": size === "small",
31379
+ "min-h-[42px]": size === "medium",
31380
+ "min-h-[64px]": size === "large"
31310
31381
  }, className), style, children: [
31311
31382
  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 }),
31312
31383
  input,
31313
31384
  endAdornment && /* @__PURE__ */ jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
31314
31385
  "mr-4": size === "large",
31315
31386
  "mr-3": size === "medium",
31316
- "mr-2": size === "small"
31387
+ "mr-2": size === "small" || size === "smallest"
31317
31388
  }), children: endAdornment })
31318
31389
  ] });
31319
31390
  });