@nethru/ui 1.0.42 → 1.0.43

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.
@@ -3,14 +3,14 @@ import MenuItem from "@mui/material/MenuItem";
3
3
  import { DataGrid, useGridApiContext } from "@mui/x-data-grid";
4
4
  import Select from "./Select";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
- export default function PropertyTable({
6
+ const PropertyTable = /*#__PURE__*/forwardRef(({
7
7
  columns,
8
8
  rows,
9
9
  onUpdate,
10
10
  readOnly,
11
11
  sx,
12
12
  ...props
13
- }) {
13
+ }, ref) => {
14
14
  const styles = useMemo(() => {
15
15
  const result = {
16
16
  '&.MuiDataGrid-root': {
@@ -72,6 +72,7 @@ export default function PropertyTable({
72
72
  return row;
73
73
  };
74
74
  return /*#__PURE__*/_jsx(DataGrid, {
75
+ ref: ref,
75
76
  columns: arrangedColumns,
76
77
  rows: rows,
77
78
  columnHeaderHeight: 35,
@@ -90,7 +91,7 @@ export default function PropertyTable({
90
91
  },
91
92
  ...props
92
93
  });
93
- }
94
+ });
94
95
  const SingleSelect = /*#__PURE__*/forwardRef((props, ref) => {
95
96
  const {
96
97
  id,
@@ -117,4 +118,5 @@ const SingleSelect = /*#__PURE__*/forwardRef((props, ref) => {
117
118
  children: option.label
118
119
  }, option.value))
119
120
  });
120
- });
121
+ });
122
+ export default PropertyTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "/dist"