x-ui-design 0.2.95 → 0.2.97
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 +6 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/lib/components/Select/Select.tsx +6 -8
- package/package.json +1 -1
- package/src/app/page.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3044,10 +3044,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3044
3044
|
// left: `${selectBox.left}px`,
|
|
3045
3045
|
};
|
|
3046
3046
|
}
|
|
3047
|
-
setDropdownPosition(
|
|
3048
|
-
...positionStyle,
|
|
3049
|
-
width: `${selectBox.width}px`
|
|
3050
|
-
});
|
|
3047
|
+
setDropdownPosition(positionStyle);
|
|
3051
3048
|
}, [listHeight, getPopupContainer]);
|
|
3052
3049
|
const handleSearch = e => {
|
|
3053
3050
|
setSearchQuery(e.target.value);
|
|
@@ -3223,10 +3220,11 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3223
3220
|
onChange: handleSearch,
|
|
3224
3221
|
placeholder: "Search..."
|
|
3225
3222
|
}), !loading && /*#__PURE__*/React$1.createElement("div", {
|
|
3226
|
-
className: `${prefixCls}-options
|
|
3223
|
+
className: `${prefixCls}-options`,
|
|
3227
3224
|
style: {
|
|
3228
3225
|
maxHeight: listHeight,
|
|
3229
|
-
overflowY: 'auto'
|
|
3226
|
+
overflowY: 'auto',
|
|
3227
|
+
maxWidth: selectRef.current ? `${selectRef.current.getBoundingClientRect().width - 8}px` : 'inherit'
|
|
3230
3228
|
}
|
|
3231
3229
|
}, asTag && !!searchQuery && /*#__PURE__*/React$1.createElement(Option, {
|
|
3232
3230
|
value: searchQuery,
|
|
@@ -3295,12 +3293,12 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3295
3293
|
id: `${prefixCls}-search-tag-input`,
|
|
3296
3294
|
className: `${prefixCls}-tag-input`
|
|
3297
3295
|
})) : !hasMode ? /*#__PURE__*/React$1.createElement("div", {
|
|
3298
|
-
className: `${prefixCls}-input`,
|
|
3296
|
+
className: `${prefixCls}-input globalEllipsis`,
|
|
3299
3297
|
style: {
|
|
3300
3298
|
opacity: isOpen || selected === '' ? '0.6' : '1'
|
|
3301
3299
|
}
|
|
3302
3300
|
}, selected === '' ? placeholder : extractedOptions.find(e => e.value === selected)?.children || selected) : null) : !hasMode ? /*#__PURE__*/React$1.createElement("div", {
|
|
3303
|
-
className: `${prefixCls}-input`,
|
|
3301
|
+
className: `${prefixCls}-input globalEllipsis`,
|
|
3304
3302
|
onClick: () => !disabled && setIsOpen(!isOpen || open),
|
|
3305
3303
|
style: {
|
|
3306
3304
|
opacity: isOpen || selected === '' ? '0.6' : '1'
|