@megha-ui/react 1.2.244 → 1.2.246
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.
|
@@ -230,7 +230,7 @@ const IconDropdown = ({ className, ClearIcon, clearId, closeOnSelect = true, dis
|
|
|
230
230
|
return text;
|
|
231
231
|
};
|
|
232
232
|
return (_jsxs("div", { style: {
|
|
233
|
-
width:
|
|
233
|
+
width: width !== null && width !== void 0 ? width : "max-content",
|
|
234
234
|
marginBottom,
|
|
235
235
|
marginTop,
|
|
236
236
|
marginRight,
|
|
@@ -255,7 +255,7 @@ const IconDropdown = ({ className, ClearIcon, clearId, closeOnSelect = true, dis
|
|
|
255
255
|
}, children: [isClear && (displayValue || selectedDisplay) && (_jsx("div", { style: { marginRight: "0.5rem" }, onClick: handleClear, id: clearId, title: "Click to clear the value", children: ClearIcon ? (ClearIcon) : (_jsx("span", { style: {
|
|
256
256
|
color: "var(--form-border-color, #dbdfe9)",
|
|
257
257
|
fontSize: "1rem",
|
|
258
|
-
}, children: "X" })) })), disabled ? (Tooltip && Tooltip) : DropDownIcon ? (DropDownIcon) : (_jsx(HiChevronDown, { fontSize: "1rem" })), withTooltip && Tooltip && Tooltip] })] }), _jsxs("ul", { style: Object.assign(Object.assign({ width: dropdownListWidth || "100%", position: "absolute", backgroundColor: dropdownListBG || "var(--dropdown-bg)", boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)", border: "1px solid var(--divider, #f5f5f5)", zIndex: 10, marginTop: 4, borderRadius: 4, overflow: "hidden" }, clickStyle), { display: !isOpen ? "none" : "" }), children: [searchEnabled && (_jsx("li", { style: { padding: "0.5rem" }, children: _jsx("input", { ref: searchInputRef, type: "text", placeholder: "Search...", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), disabled: disabled, style: {
|
|
258
|
+
}, children: "X" })) })), disabled ? (Tooltip && Tooltip) : DropDownIcon ? (DropDownIcon) : (_jsx(HiChevronDown, { fontSize: "1rem" })), withTooltip && Tooltip && Tooltip] })] }), _jsxs("ul", { style: Object.assign(Object.assign({ width: isGrouping ? "max-content" : dropdownListWidth || "100%", position: "absolute", backgroundColor: dropdownListBG || "var(--dropdown-bg)", boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)", border: "1px solid var(--divider, #f5f5f5)", zIndex: 10, marginTop: 4, borderRadius: 4, overflow: "hidden" }, clickStyle), { display: !isOpen ? "none" : "" }), children: [searchEnabled && (_jsx("li", { style: { padding: "0.5rem" }, children: _jsx("input", { ref: searchInputRef, type: "text", placeholder: "Search...", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), disabled: disabled, style: {
|
|
259
259
|
width: "100%",
|
|
260
260
|
padding: "0.5rem",
|
|
261
261
|
boxSizing: "border-box",
|
|
@@ -366,7 +366,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
|
|
|
366
366
|
width: "100%",
|
|
367
367
|
}, children: _jsxs("span", { style: { marginLeft: "0.5rem" }, children: ["+ Create ", searchTerm] }) })] }, String(searchTerm))) : groupedOptions.length > 0 ? (groupedOptions.map((groupOption, gIndex) => (_jsxs("div", { children: [_jsx("div", { style: {
|
|
368
368
|
padding: "0.25rem 0 0.25rem 1rem",
|
|
369
|
-
backgroundColor: "
|
|
369
|
+
backgroundColor: "var(--utils)",
|
|
370
370
|
}, children: groupOption.groupedValue }), groupOption.options.map((option, index) => {
|
|
371
371
|
let prevOptions = groupedOptions.filter((item, index) => index < gIndex);
|
|
372
372
|
prevOptions = [
|
package/package.json
CHANGED