@megha-ui/react 1.2.572 → 1.2.574

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.
@@ -30,7 +30,7 @@ interface DropdownProps {
30
30
  label?: string;
31
31
  labelFontSize?: number;
32
32
  labelFontWeight?: number;
33
- labelMarginBottom?: number;
33
+ labelMarginBottom?: number | string;
34
34
  asteriskColor?: string;
35
35
  required?: boolean;
36
36
  dropdownListBG?: string;
@@ -125,16 +125,15 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
125
125
  return acc;
126
126
  }, {});
127
127
  _columns = _columns.map((col) => {
128
- var _a, _b, _c;
128
+ var _a, _b;
129
129
  let isArrayString = false;
130
130
  if (isMultipleChips) {
131
- const columnRowData = data.map(row => { var _a, _b; return ((_b = (_a = row === null || row === void 0 ? void 0 : row[col.key]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : ""); }).filter(item => item)[0];
132
- console.log(columnRowData, data.map(row => { var _a, _b; return ((_b = (_a = row === null || row === void 0 ? void 0 : row[col.key]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : ""); }).filter(item => item));
133
- if ((_a = (columnRowData !== null && columnRowData !== void 0 ? columnRowData : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>")) {
131
+ const columnRowData = data.map(row => { var _a, _b; return ((_b = (_a = row === null || row === void 0 ? void 0 : row[col.key]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : ""); }).filter(item => item);
132
+ if (columnRowData.length > 0 && columnRowData.some(item => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
134
133
  isArrayString = true;
135
134
  }
136
135
  }
137
- return Object.assign(Object.assign({}, col), { isArrayString, dataType: (_c = (_b = col.dataType) !== null && _b !== void 0 ? _b : columnData === null || columnData === void 0 ? void 0 : columnData[col.key]) !== null && _c !== void 0 ? _c : "string" });
136
+ return Object.assign(Object.assign({}, col), { isArrayString, dataType: (_b = (_a = col.dataType) !== null && _a !== void 0 ? _a : columnData === null || columnData === void 0 ? void 0 : columnData[col.key]) !== null && _b !== void 0 ? _b : "string" });
138
137
  });
139
138
  }
140
139
  setGridColumns(_columns);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.572",
3
+ "version": "1.2.574",
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",