@iobroker/adapter-react-v5 6.0.2 → 6.0.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.
@@ -16,6 +16,6 @@ const styles = {
16
16
  },
17
17
  };
18
18
  function TabContent(props) {
19
- return react_1.default.createElement(material_1.Grid, { item: true, sx: Object.assign(Object.assign({}, props.style), (props.overflow === 'auto' ? styles.overflowAuto : undefined)) }, props.children);
19
+ return react_1.default.createElement(material_1.Grid, { item: true, sx: Object.assign(Object.assign(Object.assign({}, styles.root), ((props === null || props === void 0 ? void 0 : props.style) || undefined)), (props.overflow === 'auto' ? styles.overflowAuto : undefined)) }, props.children);
20
20
  }
21
21
  exports.default = TabContent;
@@ -10,7 +10,8 @@ interface TableResizeProps {
10
10
  ready?: boolean;
11
11
  stickyHeader?: boolean;
12
12
  size?: 'small' | 'medium';
13
- className: string;
13
+ className?: string;
14
+ sx?: Record<string, any>;
14
15
  style?: React.CSSProperties;
15
16
  initialWidths?: (number | 'auto')[];
16
17
  minWidths?: number[];
@@ -220,7 +220,7 @@ class TableResize extends react_1.Component {
220
220
  return react_1.default.createElement(material_1.Skeleton, null);
221
221
  }
222
222
  const style = { gridTemplateColumns: this.resizerApplyWidths() };
223
- return react_1.default.createElement(material_1.Table, { stickyHeader: this.props.stickyHeader, size: this.props.size || 'small', className: this.props.className, ref: this.resizerRefTable, style: (Object.assign(Object.assign({}, this.props.style || {}), style)) }, this.props.children);
223
+ return react_1.default.createElement(material_1.Table, { stickyHeader: this.props.stickyHeader, size: this.props.size || 'small', className: this.props.className, sx: this.props.sx, ref: this.resizerRefTable, style: (Object.assign(Object.assign({}, (this.props.style || undefined)), style)) }, this.props.children);
224
224
  }
225
225
  }
226
226
  exports.default = TableResize;
package/README.md CHANGED
@@ -771,7 +771,7 @@ The best practice is to replace `padding` with `p` and `margin` with `m`, so you
771
771
  -->
772
772
 
773
773
  ## Changelog
774
- ### 6.0.2 (2024-06-21)
774
+ ### 6.0.4 (2024-06-21)
775
775
  * (bluefox) Removed the usage of `withStyles` in favor of `sx` and `style` properties (see [Migration from v5 to v6](#migration-from-v5-to-v6)
776
776
  * (bluefox) (BREAKING) Higher version of `@mui/material` (5.15.20) is used
777
777
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "Denis Haev (bluefox)",