aefis-core-ui 2.3.0-rc58 → 2.3.0-rc59
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 +24 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2152,6 +2152,16 @@ const ContentBox = props => {
|
|
|
2152
2152
|
disabled: props.headerAction.disabled || false,
|
|
2153
2153
|
startIcon: props.headerAction.icon || undefined,
|
|
2154
2154
|
children: props.headerAction.name
|
|
2155
|
+
}), props.headerMenu && /*#__PURE__*/jsx(Box$2, {
|
|
2156
|
+
sx: {
|
|
2157
|
+
ml: 1
|
|
2158
|
+
},
|
|
2159
|
+
children: /*#__PURE__*/jsx(MenuButton, {
|
|
2160
|
+
name: props.title,
|
|
2161
|
+
menuConfiguration: props.headerMenu,
|
|
2162
|
+
data: props.data || undefined,
|
|
2163
|
+
displayType: "icon"
|
|
2164
|
+
})
|
|
2155
2165
|
})]
|
|
2156
2166
|
}), /*#__PURE__*/jsxs(Card, {
|
|
2157
2167
|
style: cardStyle,
|
|
@@ -2221,7 +2231,12 @@ ContentBox.propTypes = {
|
|
|
2221
2231
|
/** Content of the content box */
|
|
2222
2232
|
children: PropTypes.any,
|
|
2223
2233
|
/** Add a menu to the header of the content box. */
|
|
2224
|
-
menu: PropTypes.
|
|
2234
|
+
menu: PropTypes.arrayOf(PropTypes.shape({
|
|
2235
|
+
name: PropTypes.string,
|
|
2236
|
+
icon: PropTypes.any,
|
|
2237
|
+
divider: PropTypes.any,
|
|
2238
|
+
onClick: PropTypes.func
|
|
2239
|
+
})),
|
|
2225
2240
|
/** Data fto provide to the menu. */
|
|
2226
2241
|
data: PropTypes.any,
|
|
2227
2242
|
/** Adds padding and additional formatting to the content of the content box. */
|
|
@@ -2235,8 +2250,16 @@ ContentBox.propTypes = {
|
|
|
2235
2250
|
name: PropTypes.any.isRequired,
|
|
2236
2251
|
style: PropTypes.any,
|
|
2237
2252
|
action: PropTypes.func.isRequired,
|
|
2253
|
+
onClick: PropTypes.func,
|
|
2238
2254
|
disabled: PropTypes.any
|
|
2239
2255
|
}),
|
|
2256
|
+
/** Adds a menu to the header */
|
|
2257
|
+
headerMenu: PropTypes.arrayOf(PropTypes.shape({
|
|
2258
|
+
name: PropTypes.string,
|
|
2259
|
+
icon: PropTypes.any,
|
|
2260
|
+
divider: PropTypes.any,
|
|
2261
|
+
onClick: PropTypes.func
|
|
2262
|
+
})),
|
|
2240
2263
|
/** Sub-title of the content box. Can be a string or any component. */
|
|
2241
2264
|
subtitle: PropTypes.any,
|
|
2242
2265
|
/** Main title of the content box. Can be a string or any component. */
|