@telicent-oss/ds 4.4.0 → 4.4.1

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/ds.umd.cjs CHANGED
@@ -26448,31 +26448,35 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26448
26448
  onRowClick,
26449
26449
  sx,
26450
26450
  ...rest
26451
- }) => /* @__PURE__ */ jsx(material.ThemeProvider, { theme: (outerTheme) => styles$3.createTheme(outerTheme, buildDataGridTheme(outerTheme)), children: /* @__PURE__ */ jsx(MUIBox__default.default, { sx: {
26452
- width: "100%"
26453
- }, children: /* @__PURE__ */ jsx(xDataGrid.DataGrid, { autoHeight: true, disableColumnResize: true, disableRowSelectionOnClick: true, disableColumnMenu: true, pagination: true, pageSizeOptions: [10, 25, 50], initialState: {
26454
- pagination: {
26455
- paginationModel: {
26456
- pageSize: 10,
26457
- page: 0
26458
- }
26459
- },
26460
- sorting: initialSort ? {
26461
- sortModel: initialSort
26462
- } : void 0
26463
- }, onRowClick, ...rest, sx: [(theme) => ({
26464
- "& .MuiDataGrid-overlay": {
26465
- inset: 0
26466
- },
26467
- ...onRowClick ? {
26468
- "& .MuiDataGrid-row": {
26469
- cursor: "pointer",
26470
- "&:hover": {
26471
- backgroundColor: theme.palette.action.hover
26451
+ }) => {
26452
+ const outerTheme = styles$3.useTheme();
26453
+ const scopedTheme = React$1.useMemo(() => styles$3.createTheme(outerTheme, buildDataGridTheme(outerTheme)), [outerTheme]);
26454
+ return /* @__PURE__ */ jsx(material.ThemeProvider, { theme: scopedTheme, children: /* @__PURE__ */ jsx(MUIBox__default.default, { sx: {
26455
+ width: "100%"
26456
+ }, children: /* @__PURE__ */ jsx(xDataGrid.DataGrid, { autoHeight: true, disableColumnResize: true, disableRowSelectionOnClick: true, disableColumnMenu: true, pagination: true, pageSizeOptions: [10, 25, 50], initialState: {
26457
+ pagination: {
26458
+ paginationModel: {
26459
+ pageSize: 10,
26460
+ page: 0
26472
26461
  }
26473
- }
26474
- } : {}
26475
- }), ...Array.isArray(sx) ? sx : sx ? [sx] : []] }) }) });
26462
+ },
26463
+ sorting: initialSort ? {
26464
+ sortModel: initialSort
26465
+ } : void 0
26466
+ }, onRowClick, ...rest, sx: [(theme) => ({
26467
+ "& .MuiDataGrid-overlay": {
26468
+ inset: 0
26469
+ },
26470
+ ...onRowClick ? {
26471
+ "& .MuiDataGrid-row": {
26472
+ cursor: "pointer",
26473
+ "&:hover": {
26474
+ backgroundColor: theme.palette.action.hover
26475
+ }
26476
+ }
26477
+ } : {}
26478
+ }), ...Array.isArray(sx) ? sx : sx ? [sx] : []] }) }) });
26479
+ };
26476
26480
  const LinearProgress = ({
26477
26481
  // isActive,
26478
26482
  // transition = 500,