@megha-ui/react 1.2.174 → 1.2.176

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.
@@ -289,7 +289,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
289
289
  marginTop,
290
290
  marginRight,
291
291
  marginLeft,
292
- }, children: [label && (_jsxs("p", { style: labelStyle, children: [label, required && _jsx("span", { style: asteriskStyle, children: " *" })] })), _jsxs("div", { ref: wrapperRef, className: `${className}`, style: Object.assign({ border, borderRadius: 4, padding: "0 0.5rem", alignItems: "center", display: "flex", minHeight: "2.5rem", position: "relative" }, style), children: [_jsxs("div", { style: {
292
+ }, children: [label && (_jsxs("p", { style: labelStyle, children: [label, required && _jsx("span", { style: asteriskStyle, children: " *" })] })), _jsxs("div", { ref: wrapperRef, className: `${className}`, style: Object.assign({ border, borderRadius: 4, padding: "0 0.5rem", alignItems: "center", display: "flex", minHeight: "1.5rem", position: "relative" }, style), children: [_jsxs("div", { style: {
293
293
  display: "flex",
294
294
  alignItems: "center",
295
295
  justifyContent: "space-between",
@@ -816,13 +816,12 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
816
816
  const newItem = filterColumns.reduce((acc, column) => {
817
817
  var _a;
818
818
  if (!ignoredExportItems.includes(column.key) && item[column.key]) {
819
- acc[column.key] = formatValue(item[column.key].value, (_a = column.dataType) !== null && _a !== void 0 ? _a : "string", locale, formatOptions);
819
+ acc[column.key] = formatValue(item[column.key].value, (_a = column.dataType) !== null && _a !== void 0 ? _a : "string", locale, exportOptions !== null && exportOptions !== void 0 ? exportOptions : formatOptions);
820
820
  }
821
821
  return acc;
822
822
  }, {});
823
823
  return newItem;
824
824
  });
825
- console.log({ exportableJson, exportOptions });
826
825
  const worksheet = XLSX.utils.json_to_sheet(exportableJson);
827
826
  const workbook = XLSX.utils.book_new();
828
827
  XLSX.utils.book_append_sheet(workbook, worksheet, "Sheet1");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.174",
3
+ "version": "1.2.176",
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",