@gridsuite/commons-ui 0.91.0 → 0.91.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.
@@ -2,7 +2,6 @@ import { default as React } from 'react';
2
2
  import { AgGridReact, AgGridReactProps } from 'ag-grid-react';
3
3
  interface CustomAGGGridStyleProps {
4
4
  shouldHidePinnedHeaderRightBorder?: boolean;
5
- showOverlay?: boolean;
6
5
  }
7
6
  export interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {
8
7
  }
@@ -19,7 +19,7 @@ const onColumnResized = (params) => {
19
19
  }
20
20
  };
21
21
  const CustomAGGrid = React.forwardRef((props, ref) => {
22
- const { shouldHidePinnedHeaderRightBorder = false, showOverlay = false, ...agGridReactProps } = props;
22
+ const { shouldHidePinnedHeaderRightBorder = false, ...agGridReactProps } = props;
23
23
  const theme = useTheme();
24
24
  const intl = useIntl();
25
25
  const GRID_PREFIX = "grid.";
@@ -38,8 +38,7 @@ const CustomAGGrid = React.forwardRef((props, ref) => {
38
38
  {
39
39
  sx: mergeSx(
40
40
  styles.grid,
41
- shouldHidePinnedHeaderRightBorder ? styles.noBorderRight : void 0,
42
- showOverlay ? styles.overlayBackground : void 0
41
+ shouldHidePinnedHeaderRightBorder ? styles.noBorderRight : void 0
43
42
  ),
44
43
  className: `${theme.aggrid.theme} ${CUSTOM_AGGRID_THEME}`,
45
44
  children: /* @__PURE__ */ jsx(
@@ -8,12 +8,4 @@ export declare const styles: {
8
8
  borderRight: string;
9
9
  };
10
10
  };
11
- overlayBackground: (theme: Theme) => {
12
- '& .ag-overlay-loading-wrapper': {
13
- background: string;
14
- };
15
- '& .ag-overlay-no-rows-wrapper': {
16
- background: string;
17
- };
18
- };
19
11
  };
@@ -33,15 +33,7 @@ const styles = {
33
33
  "& .ag-pinned-left-header": {
34
34
  borderRight: "none"
35
35
  }
36
- },
37
- overlayBackground: (theme) => ({
38
- "& .ag-overlay-loading-wrapper": {
39
- background: theme.aggrid.overlay.background
40
- },
41
- "& .ag-overlay-no-rows-wrapper": {
42
- background: "none"
43
- }
44
- })
36
+ }
45
37
  };
46
38
  export {
47
39
  CUSTOM_AGGRID_THEME,
@@ -24,7 +24,7 @@ function UniqueNameInput({
24
24
  autoFocus,
25
25
  onManualChangeCallback,
26
26
  formProps,
27
- currentName,
27
+ currentName = "",
28
28
  activeDirectory,
29
29
  sx,
30
30
  fullWidth = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.91.0",
3
+ "version": "0.91.1",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",