orcs-design-system 3.2.8 → 3.2.10
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.
|
@@ -68,6 +68,20 @@ export const withIcon = () => /*#__PURE__*/_jsx(Box, {
|
|
|
68
68
|
children: /*#__PURE__*/_jsxs(Spacer, {
|
|
69
69
|
m: "xxs",
|
|
70
70
|
children: [/*#__PURE__*/_jsx(Popover, {
|
|
71
|
+
direction: "top",
|
|
72
|
+
text: "Additional info",
|
|
73
|
+
textAlign: "center",
|
|
74
|
+
width: "110px",
|
|
75
|
+
children: /*#__PURE__*/_jsx(StatusDot, {
|
|
76
|
+
icon: true,
|
|
77
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
78
|
+
icon: ["fas", "question"],
|
|
79
|
+
color: "white",
|
|
80
|
+
size: "xs",
|
|
81
|
+
transform: "up-2"
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
71
85
|
direction: "top",
|
|
72
86
|
text: "Target met",
|
|
73
87
|
textAlign: "center",
|
|
@@ -18,18 +18,30 @@ const StatusDotItem = styled("div").withConfig({
|
|
|
18
18
|
display: "flex",
|
|
19
19
|
alignItems: "center",
|
|
20
20
|
justifyContent: "center",
|
|
21
|
-
lineHeight: "0"
|
|
21
|
+
lineHeight: "0",
|
|
22
|
+
svg: {
|
|
23
|
+
filter: props.icon ? "drop-shadow(0 1px 1px rgba(0,0,0,0.7))" : "none"
|
|
24
|
+
}
|
|
22
25
|
}), props => variant({
|
|
23
26
|
variants: {
|
|
24
27
|
default: {},
|
|
25
28
|
success: {
|
|
26
|
-
bg: themeGet("colors.success")(props)
|
|
29
|
+
bg: themeGet("colors.success")(props),
|
|
30
|
+
svg: {
|
|
31
|
+
filter: props.icon ? "drop-shadow(0 1px 1px rgba(0,0,0,0.6))" : "none"
|
|
32
|
+
}
|
|
27
33
|
},
|
|
28
34
|
warning: {
|
|
29
|
-
bg: themeGet("colors.warning")(props)
|
|
35
|
+
bg: themeGet("colors.warning")(props),
|
|
36
|
+
svg: {
|
|
37
|
+
filter: props.icon ? "drop-shadow(0 1px 1px rgba(147,101,0,1))" : "none"
|
|
38
|
+
}
|
|
30
39
|
},
|
|
31
40
|
danger: {
|
|
32
|
-
bg: themeGet("colors.danger")(props)
|
|
41
|
+
bg: themeGet("colors.danger")(props),
|
|
42
|
+
svg: {
|
|
43
|
+
filter: props.icon ? "drop-shadow(0 1px 1px rgba(0,0,0,0.7))" : "none"
|
|
44
|
+
}
|
|
33
45
|
}
|
|
34
46
|
}
|
|
35
47
|
}), StatusDotStyles);
|
|
@@ -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
|