x-ui-design 0.6.84 → 0.6.86
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.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/lib/components/Select/Select.tsx +7 -6
- package/package.json +1 -1
- package/src/app/page.tsx +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -3738,9 +3738,9 @@ const Select = ({
|
|
|
3738
3738
|
if (!showArrow) {
|
|
3739
3739
|
return null;
|
|
3740
3740
|
}
|
|
3741
|
-
return
|
|
3741
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
3742
3742
|
onClick: () => iconClickClear ? handleClear() : iconClick?.()
|
|
3743
|
-
}, suffixIcon || showArrow && /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
3743
|
+
}, showSearch && isOpen ? searchIcon || /*#__PURE__*/React.createElement(SearchIcon, null) : suffixIcon || showArrow && /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
3744
3744
|
isOpen: isOpen
|
|
3745
3745
|
}));
|
|
3746
3746
|
}, [showArrow, showSearch, isOpen, suffixIcon, searchIcon]);
|
|
@@ -3802,7 +3802,11 @@ const Select = ({
|
|
|
3802
3802
|
};
|
|
3803
3803
|
const selectedOption = useMemo(() => {
|
|
3804
3804
|
const option = extractedOptions.find(e => e.value === selected || e.label === selected || e.children === selected) || selected;
|
|
3805
|
-
return /*#__PURE__*/React.createElement("div",
|
|
3805
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3806
|
+
style: {
|
|
3807
|
+
display: 'contents'
|
|
3808
|
+
}
|
|
3809
|
+
}, typeof option === 'string' ? option : option?.children || option?.label || option?.value || null);
|
|
3806
3810
|
}, [extractedOptions, selected]) || selected || null;
|
|
3807
3811
|
const hasMaxTagCount = hasMode && (typeof maxTagCount === 'number' || maxTagCount === 'responsive');
|
|
3808
3812
|
const container = tagContainerRef.current;
|