aefis-core-ui 2.3.0-rc61 → 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.
@@ -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,
@@ -2143,7 +2145,6 @@ const ContentBox = props => {
2143
2145
  },
2144
2146
  children: props.header
2145
2147
  }), props.headerAction && /*#__PURE__*/jsx(Button, {
2146
- sx: {},
2147
2148
  name: props.headerAction.name,
2148
2149
  variant: "contained",
2149
2150
  color: "primary",
@@ -2242,7 +2243,8 @@ ContentBox.propTypes = {
2242
2243
  name: PropTypes.string,
2243
2244
  icon: PropTypes.any,
2244
2245
  divider: PropTypes.any,
2245
- onClick: PropTypes.func
2246
+ onClick: PropTypes.func,
2247
+ disabled: PropTypes.bool
2246
2248
  })),
2247
2249
  /** Data fto provide to the menu. */
2248
2250
  data: PropTypes.any,
@@ -2265,7 +2267,8 @@ ContentBox.propTypes = {
2265
2267
  name: PropTypes.string,
2266
2268
  icon: PropTypes.any,
2267
2269
  divider: PropTypes.any,
2268
- onClick: PropTypes.func
2270
+ onClick: PropTypes.func,
2271
+ disabled: PropTypes.bool
2269
2272
  })),
2270
2273
  /** Sub-title of the content box. Can be a string or any component. */
2271
2274
  subtitle: PropTypes.any,