aefis-core-ui 3.1.1 → 3.2.0
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 +13 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3550,6 +3550,7 @@ UserAvatar.propTypes = {
|
|
|
3550
3550
|
const UserButton = ({
|
|
3551
3551
|
user,
|
|
3552
3552
|
actions,
|
|
3553
|
+
menuLabel: _menuLabel = "My account",
|
|
3553
3554
|
onLogout
|
|
3554
3555
|
}) => {
|
|
3555
3556
|
const theme = useTheme$2();
|
|
@@ -3582,10 +3583,10 @@ const UserButton = ({
|
|
|
3582
3583
|
};
|
|
3583
3584
|
const a11yprops = {
|
|
3584
3585
|
"aria-expanded": !!open,
|
|
3585
|
-
"aria-label":
|
|
3586
|
+
"aria-label": _menuLabel,
|
|
3586
3587
|
"aria-haspopup": true,
|
|
3587
3588
|
"aria-controls": "user-menu",
|
|
3588
|
-
name:
|
|
3589
|
+
name: _menuLabel
|
|
3589
3590
|
};
|
|
3590
3591
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
3591
3592
|
children: [/*#__PURE__*/jsxs(Box$2, {
|
|
@@ -3675,6 +3676,7 @@ UserButton.propTypes = {
|
|
|
3675
3676
|
disabled: PropTypes.bool,
|
|
3676
3677
|
visible: PropTypes.bool
|
|
3677
3678
|
})),
|
|
3679
|
+
menuLabel: PropTypes.string,
|
|
3678
3680
|
onLogout: PropTypes.func
|
|
3679
3681
|
};
|
|
3680
3682
|
|
|
@@ -3756,7 +3758,7 @@ Action.propTypes = {
|
|
|
3756
3758
|
})
|
|
3757
3759
|
};
|
|
3758
3760
|
|
|
3759
|
-
const _excluded$B = ["title", "position", "titleComponent", "menuContainerId", "showMenuButton", "onMenuClick", "onLogout", "actions", "avatarActions", "user", "showLogo", "logoUrl", "logoHeight", "showLoading", "loadingColor", "secondaryMenuComponent", "enableScrollShadow"];
|
|
3761
|
+
const _excluded$B = ["title", "position", "titleComponent", "menuContainerId", "showMenuButton", "onMenuClick", "onLogout", "actions", "avatarActions", "avatarMenuLabel", "user", "showLogo", "logoUrl", "logoHeight", "showLoading", "loadingColor", "secondaryMenuComponent", "enableScrollShadow"];
|
|
3760
3762
|
const AppToolbar = _ref => {
|
|
3761
3763
|
var _containerRef$current;
|
|
3762
3764
|
let {
|
|
@@ -3769,6 +3771,7 @@ const AppToolbar = _ref => {
|
|
|
3769
3771
|
onLogout,
|
|
3770
3772
|
actions,
|
|
3771
3773
|
avatarActions,
|
|
3774
|
+
avatarMenuLabel = "My account",
|
|
3772
3775
|
user,
|
|
3773
3776
|
showLogo = false,
|
|
3774
3777
|
logoUrl,
|
|
@@ -3857,6 +3860,7 @@ const AppToolbar = _ref => {
|
|
|
3857
3860
|
children: /*#__PURE__*/jsx(LogoutOutlined, {})
|
|
3858
3861
|
}), user && /*#__PURE__*/jsx(UserButton, {
|
|
3859
3862
|
actions: avatarActions,
|
|
3863
|
+
menuLabel: avatarMenuLabel,
|
|
3860
3864
|
user: user,
|
|
3861
3865
|
onLogout: onLogout
|
|
3862
3866
|
})]
|
|
@@ -3908,6 +3912,8 @@ AppToolbar.propTypes = {
|
|
|
3908
3912
|
disabled: PropTypes.any,
|
|
3909
3913
|
onClick: PropTypes.func
|
|
3910
3914
|
})),
|
|
3915
|
+
/** Accessible name for the button that opens the avatar menu. */
|
|
3916
|
+
avatarMenuLabel: PropTypes.string,
|
|
3911
3917
|
showMenuButton: PropTypes.bool,
|
|
3912
3918
|
menuContainerId: PropTypes.string,
|
|
3913
3919
|
onMenuClick: PropTypes.func,
|
|
@@ -11203,6 +11209,7 @@ const FullPageViewer = props => {
|
|
|
11203
11209
|
confirmButtonDisabled: props.confirmButtonDisabled,
|
|
11204
11210
|
closeOnConfirm: props.closeOnConfirm,
|
|
11205
11211
|
dialogSx: props.dialogSx,
|
|
11212
|
+
titleComponent: props.titleComponent,
|
|
11206
11213
|
children: /*#__PURE__*/jsx(Fragment$1, {
|
|
11207
11214
|
children: props.url ? /*#__PURE__*/jsx(Box$2, {
|
|
11208
11215
|
sx: {
|
|
@@ -11276,7 +11283,9 @@ FullPageViewer.propTypes = {
|
|
|
11276
11283
|
/** Custom styles for the dialog */
|
|
11277
11284
|
dialogSx: PropTypes.any,
|
|
11278
11285
|
/** Custom styles for the dialog */
|
|
11279
|
-
onWindowMessage: PropTypes.func
|
|
11286
|
+
onWindowMessage: PropTypes.func,
|
|
11287
|
+
/** Custom title component */
|
|
11288
|
+
titleComponent: PropTypes.oneOf(["h1", "h2", "h3", "div", "span"])
|
|
11280
11289
|
};
|
|
11281
11290
|
|
|
11282
11291
|
const _excluded$s = ["height", "children", "onScroll", "showTopFade", "showBottomFade", "component", "onScrollReachStart", "onScrollReachEnd"];
|