@megha-ui/react 1.3.7 → 1.3.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.
|
@@ -85,7 +85,6 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
|
|
|
85
85
|
8 -
|
|
86
86
|
((_e = searchOptionRect === null || searchOptionRect === void 0 ? void 0 : searchOptionRect.height) !== null && _e !== void 0 ? _e : 0);
|
|
87
87
|
const overflowSpace = getOverflowParentHeight(wrapperRef.current, viewportSpace);
|
|
88
|
-
console.log({ overflowSpace });
|
|
89
88
|
setHeight(overflowSpace);
|
|
90
89
|
}
|
|
91
90
|
}
|
|
@@ -363,7 +362,6 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
|
|
|
363
362
|
}
|
|
364
363
|
return text;
|
|
365
364
|
};
|
|
366
|
-
console.log({ max: (maxDropdownHeight !== null && maxDropdownHeight !== void 0 ? maxDropdownHeight : height) ? `${height}px` : "" });
|
|
367
365
|
return (_jsxs("div", { style: {
|
|
368
366
|
width: width !== null && width !== void 0 ? width : "max-content",
|
|
369
367
|
marginBottom,
|
|
@@ -426,7 +424,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
|
|
|
426
424
|
alignItems: "start",
|
|
427
425
|
width: "100%",
|
|
428
426
|
}, children: _jsx("span", { children: "Select All" }) })] })), _jsx("div", { style: {
|
|
429
|
-
maxHeight:
|
|
427
|
+
maxHeight: maxDropdownHeight !== null && maxDropdownHeight !== void 0 ? maxDropdownHeight : (height ? `${height}px` : ""),
|
|
430
428
|
overflowY: "auto",
|
|
431
429
|
}, children: isLoading ? (_jsxs(Block, { as: "div", className: "flex items-center justify-between", children: [_jsx(Text, { as: "span", children: "Loading options" }), _jsx(Loader, { size: 12 })] })) : isCreatable && filteredOptions.length < 1 && searchTerm ? (_jsxs("li", { onClick: (e) => onCreate(searchTerm), style: Object.assign(Object.assign({}, listItemStyle), { display: "flex", alignItems: "center", wordWrap: "break-word", textWrap: "wrap", justifyContent: "space-between" }), children: [isMultiple && (_jsx(Checkbox, { selected: intermediateValues.includes(searchTerm), onChange: () => { }, style: { pointerEvents: "none" }, noLabel: true, wrapperClass: checkboxWrapper })), _jsx("div", { style: {
|
|
432
430
|
display: "flex",
|
package/package.json
CHANGED