orcs-design-system 3.2.8 → 3.2.9
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Stack } from "@mui/material";
|
|
2
|
-
import { MRT_ExpandAllButton } from "material-react-table";
|
|
2
|
+
import { MRT_ExpandAllButton, MRT_ExpandButton } from "material-react-table";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Box from "../Box";
|
|
5
|
+
import Flex from "../Flex";
|
|
5
6
|
import { get } from "lodash";
|
|
6
7
|
import styled from "styled-components";
|
|
7
8
|
import { PropTypes } from "prop-types";
|
|
@@ -45,12 +46,18 @@ const GroupedCell = props => {
|
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
if (firstCol.Cell) {
|
|
48
|
-
return /*#__PURE__*/_jsx(
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
return /*#__PURE__*/_jsx(Flex, {
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
children: /*#__PURE__*/_jsx(firstCol.Cell, {
|
|
52
|
+
...props,
|
|
53
|
+
renderedCellValue: renderedCellValue
|
|
54
|
+
})
|
|
51
55
|
});
|
|
52
56
|
}
|
|
53
|
-
return
|
|
57
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
children: [renderedCellValue, " "]
|
|
60
|
+
});
|
|
54
61
|
};
|
|
55
62
|
GroupedCell.propTypes = PropTypes.Obj;
|
|
56
63
|
const HeaderCell = props => {
|
|
@@ -84,9 +91,14 @@ export default ((firstCol, tableConfig) => ({
|
|
|
84
91
|
firstCol: firstCol,
|
|
85
92
|
tableConfig: tableConfig
|
|
86
93
|
}),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
Cell: props => /*#__PURE__*/_jsxs(Flex, {
|
|
95
|
+
alignItems: "center",
|
|
96
|
+
children: [/*#__PURE__*/_jsx(MRT_ExpandButton, {
|
|
97
|
+
...props
|
|
98
|
+
}), /*#__PURE__*/_jsx(GroupedCell, {
|
|
99
|
+
...props,
|
|
100
|
+
firstCol: firstCol
|
|
101
|
+
})]
|
|
90
102
|
}),
|
|
91
103
|
enableResizing: true,
|
|
92
104
|
size: 200
|