fui-material 2.2.5 → 2.2.8

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.
@@ -2211,7 +2211,7 @@ const usePagination = ({
2211
2211
  };
2212
2212
  const dots = "_dots_aham2_29";
2213
2213
  const selected = "_selected_aham2_33";
2214
- const disabled$1 = "_disabled_aham2_37";
2214
+ const disabled$2 = "_disabled_aham2_37";
2215
2215
  const arrow = "_arrow_aham2_43";
2216
2216
  const left = "_left_aham2_56";
2217
2217
  const styles$k = {
@@ -2219,7 +2219,7 @@ const styles$k = {
2219
2219
  "pagination-item": "_pagination-item_aham2_9",
2220
2220
  dots,
2221
2221
  selected,
2222
- disabled: disabled$1,
2222
+ disabled: disabled$2,
2223
2223
  arrow,
2224
2224
  left
2225
2225
  };
@@ -2928,20 +2928,21 @@ const FFullDateField = forwardRef(
2928
2928
  );
2929
2929
  }
2930
2930
  );
2931
- const active$2 = "_active_1hrag_40";
2931
+ const active$2 = "_active_yhck3_41";
2932
2932
  const styles$e = {
2933
- "f-select-search-db": "_f-select-search-db_1hrag_1",
2934
- "f-select-search-db__input": "_f-select-search-db__input_1hrag_6",
2935
- "f-select-search-db__input_field": "_f-select-search-db__input_field_1hrag_10",
2936
- "f-select-search-db__input_arrow": "_f-select-search-db__input_arrow_1hrag_13",
2937
- "f-select-search-db__dropdown": "_f-select-search-db__dropdown_1hrag_20",
2933
+ "f-select-search-db": "_f-select-search-db_yhck3_1",
2934
+ "f-select-search-db__input": "_f-select-search-db__input_yhck3_7",
2935
+ "f-select-search-db__input_field": "_f-select-search-db__input_field_yhck3_11",
2936
+ "f-select-search-db__input_arrow": "_f-select-search-db__input_arrow_yhck3_14",
2937
+ "f-select-search-db__dropdown": "_f-select-search-db__dropdown_yhck3_21",
2938
2938
  active: active$2,
2939
- "f-select-search-db__dropdown_content": "_f-select-search-db__dropdown_content_1hrag_44"
2939
+ "f-select-search-db__dropdown_content": "_f-select-search-db__dropdown_content_yhck3_45"
2940
2940
  };
2941
2941
  const FSelectSearchDb = ({
2942
2942
  fetchingFunc,
2943
2943
  selectedElement,
2944
2944
  selectItem,
2945
+ onChange,
2945
2946
  st: st2,
2946
2947
  id,
2947
2948
  className,
@@ -2973,8 +2974,9 @@ const FSelectSearchDb = ({
2973
2974
  dropdownPortalRef.current = document.createElement("div");
2974
2975
  document.body.appendChild(dropdownPortalRef.current);
2975
2976
  return () => {
2976
- if (dropdownPortalRef.current) {
2977
- document.body.removeChild(dropdownPortalRef.current);
2977
+ const portalElement = dropdownPortalRef.current;
2978
+ if (portalElement && portalElement.parentNode === document.body) {
2979
+ document.body.removeChild(portalElement);
2978
2980
  }
2979
2981
  };
2980
2982
  }, []);
@@ -3022,6 +3024,9 @@ const FSelectSearchDb = ({
3022
3024
  }, [isDropdownOpen]);
3023
3025
  const handlerOnChange = (e) => {
3024
3026
  const text = e.target.value;
3027
+ if (onChange) {
3028
+ onChange(e);
3029
+ }
3025
3030
  setValueInput(text);
3026
3031
  setIsDropdownOpen(false);
3027
3032
  setTextInput(true);
@@ -3594,12 +3599,14 @@ const FTab = forwardRef(({
3594
3599
  );
3595
3600
  });
3596
3601
  FTab.displayName = "FTab";
3602
+ const disabled$1 = "_disabled_2ty2i_40";
3597
3603
  const styles$b = {
3598
- "f-dropdown": "_f-dropdown_d5i2z_1",
3599
- "f-dropdown__arrow": "_f-dropdown__arrow_d5i2z_6",
3600
- "f-dropdown__content": "_f-dropdown__content_d5i2z_10",
3601
- "f-dropdown__content-link": "_f-dropdown__content-link_d5i2z_28",
3602
- "f-dropdown__content--open": "_f-dropdown__content--open_d5i2z_43"
3604
+ "f-dropdown": "_f-dropdown_2ty2i_1",
3605
+ "f-dropdown__arrow": "_f-dropdown__arrow_2ty2i_6",
3606
+ "f-dropdown__content": "_f-dropdown__content_2ty2i_10",
3607
+ "f-dropdown__content-link": "_f-dropdown__content-link_2ty2i_28",
3608
+ disabled: disabled$1,
3609
+ "f-dropdown__content--open": "_f-dropdown__content--open_2ty2i_48"
3603
3610
  };
3604
3611
  const FDropdown = forwardRef(({
3605
3612
  label,
@@ -3756,6 +3763,7 @@ const FSearchBox = forwardRef(
3756
3763
  {
3757
3764
  className: `${styles$a["f-search-box__button_clear"]}`,
3758
3765
  type: "button",
3766
+ disabled: disabled2,
3759
3767
  onClick: clearDataFromInput,
3760
3768
  color: "danger",
3761
3769
  variant,