@megha-ui/react 1.2.603 → 1.2.605
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.
|
@@ -322,6 +322,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
|
|
|
322
322
|
marginLeft,
|
|
323
323
|
display: "flex",
|
|
324
324
|
flexDirection: labelAlignment === "horizontal" ? "row" : "column",
|
|
325
|
+
alignItems: labelAlignment === "horizontal" ? "center" : "",
|
|
325
326
|
}, children: [label && (_jsxs("p", { style: labelStyle, className: labelClass, children: [label, required && _jsx("span", { style: asteriskStyle, children: " *" })] })), _jsxs("div", { ref: wrapperRef, className: `${className}`, style: Object.assign(Object.assign(Object.assign({ border, borderRadius: 4 }, (isIcon ? {} : { padding: "0 0.5rem" })), { alignItems: "center", display: "flex", minHeight: `var(--control-min-height, ${ultraCompactDisplay
|
|
326
327
|
? "1.5rem"
|
|
327
328
|
: compactDisplay
|
|
@@ -1404,7 +1404,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1404
1404
|
}, children: _jsx(Dropdown, { options: options.map((option) => ({
|
|
1405
1405
|
label: option,
|
|
1406
1406
|
value: option,
|
|
1407
|
-
})), labelAlignment: "horizontal", labelClass: "
|
|
1407
|
+
})), labelAlignment: "horizontal", labelClass: "mr-2", label: column.label, placeholder: "Select", selectedValues: selectedValues, onChange: (selected) => {
|
|
1408
1408
|
if (column.fixedFilter !== "multi-select") {
|
|
1409
1409
|
const values = selected
|
|
1410
1410
|
.filter((item) => item)
|
|
@@ -1426,7 +1426,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1426
1426
|
updateFixedFilterValues(updatedValues);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
: undefined, isSort: column.fixedFilterOrder ? false : undefined, isClear: true, searchEnabled: true, dropdownListWidth: "max-content", className: "h-8
|
|
1429
|
+
: undefined, isSort: column.fixedFilterOrder ? false : undefined, isClear: true, searchEnabled: true, dropdownListWidth: "max-content", className: "h-8 flex-1", isMultiple: column.fixedFilter === "multi-select" }) }, column.key));
|
|
1430
1430
|
}
|
|
1431
1431
|
return null;
|
|
1432
1432
|
}), isSummarise && (_jsx("div", { onClick: () => setSummariseAvailable((prev) => !prev), style: {
|
package/package.json
CHANGED