@leapdevuk/component-toolbox 0.1.2 → 0.1.4

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.
package/dist/index.es.js CHANGED
@@ -5123,7 +5123,7 @@ const Sc = Cr(/* @__PURE__ */ l.jsx("path", {
5123
5123
  columnHeaderHeight: e.columnHeaderHeight || e.columnHeaderHeight === 0 ? e.columnHeaderHeight : kc,
5124
5124
  columns: e.columns.map((s) => ({
5125
5125
  ...s,
5126
- disableColumnMenu: s.disableColumnMenu ? s.disableColumnMenu : !0,
5126
+ disableColumnMenu: !!s.disableColumnMenu,
5127
5127
  disableReorder: !0,
5128
5128
  renderHeader: (a) => /* @__PURE__ */ l.jsx(Ec, { sortModel: r, params: a }),
5129
5129
  hideSortIcons: !0
@@ -5132,6 +5132,7 @@ const Sc = Cr(/* @__PURE__ */ l.jsx("path", {
5132
5132
  defaultGroupingExpansionDepth: e.defaultGroupingExpansionDepth ? e.defaultGroupingExpansionDepth : 0,
5133
5133
  disableColumnReorder: !0,
5134
5134
  disableMultipleRowSelection: e.disableMultipleRowSelection,
5135
+ getRowClassName: e.getRowClassName,
5135
5136
  getRowId: e.id,
5136
5137
  getTreeDataPath: e.getTreeDataPath,
5137
5138
  groupingColDef: e.groupingColDef,
@@ -5169,15 +5170,16 @@ const Sc = Cr(/* @__PURE__ */ l.jsx("path", {
5169
5170
  },
5170
5171
  sortingOrder: ["desc", "asc"],
5171
5172
  sortModel: r,
5172
- style: { borderBottom: 0 },
5173
5173
  sx: {
5174
- "&.MuiDataGrid-root": { border: 0 },
5175
- borderRadius: 0,
5176
- ".MuiDataGrid-overlay ": { color: "#0060bb" },
5177
- ".Mui-selected": { backgroundColor: "#cde6f7 !important" },
5178
5174
  ".MuiDataGrid-columnHeaders": e.borderTop ? {
5179
5175
  borderTop: "1px solid rgb(224, 224, 224)"
5180
- } : {}
5176
+ } : {},
5177
+ ".MuiDataGrid-overlay ": { color: "#0060bb" },
5178
+ "&.MuiDataGrid-root": e.showBorders ? {
5179
+ border: "1px solid rgb(224, 224, 224)"
5180
+ } : { border: 0 },
5181
+ borderRadius: 0,
5182
+ ".Mui-selected": { backgroundColor: "#cde6f7 !important" }
5181
5183
  },
5182
5184
  treeData: e.treeData
5183
5185
  }