@visns-studio/visns-components 2.2.4 → 2.2.6

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.
@@ -687,18 +687,15 @@ const DataGrid = forwardRef(
687
687
  const commonProps = {
688
688
  header: column.label,
689
689
  defaultFlex: 1,
690
- link: column.link ? column.link : {},
691
- minWidth:
692
- column.minWidth && column.minWidth > 0
693
- ? column.minWidth
694
- : undefined,
695
- maxWidth:
696
- column.maxWidth && column.maxWidth > 0
697
- ? column.maxWidth
698
- : undefined,
690
+ link: column.link ?? {},
691
+ minWidth: column.minWidth ?? undefined,
692
+ maxWidth: column.maxWidth ?? undefined,
699
693
  textVerticalAlign: 'top',
700
- style: {
701
- margin: '0px',
694
+ cellProps: {
695
+ style: {
696
+ ...(column.style ?? {}),
697
+ margin: '0px',
698
+ },
702
699
  },
703
700
  };
704
701
 
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "react-dom": "^17.0.1"
41
41
  },
42
42
  "name": "@visns-studio/visns-components",
43
- "version": "2.2.4",
43
+ "version": "2.2.6",
44
44
  "description": "Various packages to assist in the development of our Custom Applications.",
45
45
  "main": "index.js",
46
46
  "scripts": {