fis-component 0.1.26 → 0.1.28

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/esm/index.js CHANGED
@@ -75728,7 +75728,7 @@ function isMenuSize(value) {
75728
75728
  return value === "sm" || value === "md";
75729
75729
  }
75730
75730
 
75731
- const FISSelect = forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal = true, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", noData, noResult, footer, searchDebounce, showSearch, onSearchInput, virtualized, virtualItemHeight, ...restProps }, ref) => {
75731
+ const FISSelect = forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal = true, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", noData, noResult, noDataText, noResultText, footer, searchDebounce, showSearch, onSearchInput, virtualized, virtualItemHeight, ...restProps }, ref) => {
75732
75732
  const [isOpen, setIsOpen] = useState(false);
75733
75733
  const [referenceElement, setReferenceElement] = useState(null);
75734
75734
  const [popperElement, setPopperElement] = useState(null);
@@ -75874,6 +75874,8 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
75874
75874
  renderOption,
75875
75875
  noData,
75876
75876
  noResult,
75877
+ noDataText,
75878
+ noResultText,
75877
75879
  footer,
75878
75880
  searchDebounce,
75879
75881
  showSearch,
@@ -75897,6 +75899,8 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
75897
75899
  renderOption,
75898
75900
  noData,
75899
75901
  noResult,
75902
+ noDataText,
75903
+ noResultText,
75900
75904
  footer,
75901
75905
  searchDebounce,
75902
75906
  showSearch,
@@ -75932,7 +75936,7 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
75932
75936
  }
75933
75937
  }, [isOpen, multi]);
75934
75938
  const renderSelectInput = () => {
75935
- const selectInput = (jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, "$hasValue": !!value, children: jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: isOpen ? jsx(ArrowUpIcon, {}) : jsx(ArrowDownIcon, {}), value: computedDisplayValue, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
75939
+ const selectInput = (jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, "$hasValue": !!value, children: jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: isOpen ? jsx(ArrowUpIcon, {}) : jsx(ArrowDownIcon, {}), value: computedDisplayValue, readOnly: true, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
75936
75940
  if (tooltipTitle) {
75937
75941
  return (jsx(FISTooltip, { title: tooltipTitle, variant: tooltipVariant, smartPlacement: true, children: selectInput }));
75938
75942
  }
@@ -76386,6 +76390,7 @@ function ApiSelectInner(props, ref) {
76386
76390
  onOpen: api.handleOpen,
76387
76391
  onPopupScroll: api.handlePopupScroll,
76388
76392
  onSearchChange: searchMode === "server" ? api.handleServerSearch : undefined,
76393
+ searchValue: searchMode === "server" ? api.serverSearch : undefined,
76389
76394
  onSearchInput: api.handleUiSearch,
76390
76395
  showSearch: searchMode === "server" ? true : undefined,
76391
76396
  searchDebounce,