fis-component 0.1.27 → 0.1.29
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/cjs/index.js +6 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
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, onChange: () => undefined, 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
|
}
|