aefis-core-ui 2.3.0-rc60 → 2.3.0-rc62
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.
- package/dist/index.modern.js +11 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1883,6 +1883,7 @@ const MenuButton = /*#__PURE__*/forwardRef(function MenuButton(_ref, ref) {
|
|
|
1883
1883
|
},
|
|
1884
1884
|
children: menuConfiguration == null ? void 0 : menuConfiguration.map((item, index) => /*#__PURE__*/jsxs(MenuItem, {
|
|
1885
1885
|
onClick: () => handleMenuClick(item.onClick, data),
|
|
1886
|
+
disabled: item.disabled || false,
|
|
1886
1887
|
sx: {
|
|
1887
1888
|
borderTop: item.divider ? "1px solid #dddddd" : "none",
|
|
1888
1889
|
marginTop: item.divider ? 1 : "inherit",
|
|
@@ -1922,7 +1923,8 @@ MenuButton.propTypes = {
|
|
|
1922
1923
|
name: PropTypes.string,
|
|
1923
1924
|
icon: PropTypes.any,
|
|
1924
1925
|
divider: PropTypes.any,
|
|
1925
|
-
onClick: PropTypes.func
|
|
1926
|
+
onClick: PropTypes.func,
|
|
1927
|
+
disabled: PropTypes.bool
|
|
1926
1928
|
})),
|
|
1927
1929
|
/** The function to execute when the button is clicked. */
|
|
1928
1930
|
onClick: PropTypes.func,
|
|
@@ -1944,7 +1946,8 @@ const useStyles$F = makeStyles(theme => ({
|
|
|
1944
1946
|
paddingTop: theme.spacing(2),
|
|
1945
1947
|
paddingBottom: theme.spacing(2),
|
|
1946
1948
|
display: "flex",
|
|
1947
|
-
width: "100%"
|
|
1949
|
+
width: "100%",
|
|
1950
|
+
alignItems: "center"
|
|
1948
1951
|
},
|
|
1949
1952
|
sectionHeaderTop: {
|
|
1950
1953
|
paddingBottom: theme.spacing(2)
|
|
@@ -2149,7 +2152,8 @@ const ContentBox = props => {
|
|
|
2149
2152
|
sx: {
|
|
2150
2153
|
display: "flex",
|
|
2151
2154
|
alignItems: "center",
|
|
2152
|
-
marginLeft: "auto"
|
|
2155
|
+
marginLeft: "auto",
|
|
2156
|
+
maxHeight: "32px"
|
|
2153
2157
|
},
|
|
2154
2158
|
onClick: props.headerAction.action || props.headerAction.onClick,
|
|
2155
2159
|
style: props.headerAction.style || undefined,
|
|
@@ -2239,7 +2243,8 @@ ContentBox.propTypes = {
|
|
|
2239
2243
|
name: PropTypes.string,
|
|
2240
2244
|
icon: PropTypes.any,
|
|
2241
2245
|
divider: PropTypes.any,
|
|
2242
|
-
onClick: PropTypes.func
|
|
2246
|
+
onClick: PropTypes.func,
|
|
2247
|
+
disabled: PropTypes.bool
|
|
2243
2248
|
})),
|
|
2244
2249
|
/** Data fto provide to the menu. */
|
|
2245
2250
|
data: PropTypes.any,
|
|
@@ -2262,7 +2267,8 @@ ContentBox.propTypes = {
|
|
|
2262
2267
|
name: PropTypes.string,
|
|
2263
2268
|
icon: PropTypes.any,
|
|
2264
2269
|
divider: PropTypes.any,
|
|
2265
|
-
onClick: PropTypes.func
|
|
2270
|
+
onClick: PropTypes.func,
|
|
2271
|
+
disabled: PropTypes.bool
|
|
2266
2272
|
})),
|
|
2267
2273
|
/** Sub-title of the content box. Can be a string or any component. */
|
|
2268
2274
|
subtitle: PropTypes.any,
|