@megha-ui/react 1.2.602 → 1.2.604

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: "ml-2", label: column.label, placeholder: "Select", selectedValues: selectedValues, onChange: (selected) => {
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.602",
3
+ "version": "1.2.604",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",