@unicef/material-ui 2.0.4 → 2.0.6
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/lib/prod.cjs +1115 -1109
- package/lib/prod.cjs.map +1 -1
- package/lib/prod.js +14 -13
- package/lib/prod.js.map +1 -1
- package/package.json +1 -1
package/lib/prod.js
CHANGED
|
@@ -6024,8 +6024,8 @@ function UButton(_ref) {
|
|
|
6024
6024
|
position: 'absolute',
|
|
6025
6025
|
top: '50%',
|
|
6026
6026
|
left: '50%',
|
|
6027
|
-
marginTop: -
|
|
6028
|
-
marginLeft: -
|
|
6027
|
+
marginTop: -1.5,
|
|
6028
|
+
marginLeft: -1.5
|
|
6029
6029
|
}
|
|
6030
6030
|
})));
|
|
6031
6031
|
}
|
|
@@ -53103,9 +53103,10 @@ function UConfirmationButton(_ref3) {
|
|
|
53103
53103
|
_ref3$buttonVariant = _ref3.buttonVariant,
|
|
53104
53104
|
buttonVariant = _ref3$buttonVariant === void 0 ? 'text' : _ref3$buttonVariant,
|
|
53105
53105
|
_ref3$confirmVariant = _ref3.confirmVariant,
|
|
53106
|
-
confirmVariant = _ref3$confirmVariant === void 0 ? 'menu' : _ref3$confirmVariant
|
|
53107
|
-
_ref3.ariaLabelButton
|
|
53108
|
-
|
|
53106
|
+
confirmVariant = _ref3$confirmVariant === void 0 ? 'menu' : _ref3$confirmVariant,
|
|
53107
|
+
_ref3$ariaLabelButton = _ref3.ariaLabelButton,
|
|
53108
|
+
ariaLabelButton = _ref3$ariaLabelButton === void 0 ? '' : _ref3$ariaLabelButton,
|
|
53109
|
+
_ref3$ariaLabelIconBu = _ref3.ariaLabelIconButton,
|
|
53109
53110
|
ariaLabelIconButton = _ref3$ariaLabelIconBu === void 0 ? '' : _ref3$ariaLabelIconBu;
|
|
53110
53111
|
var _useState = useState(null),
|
|
53111
53112
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -53145,15 +53146,15 @@ function UConfirmationButton(_ref3) {
|
|
|
53145
53146
|
}, buttonText)) : variant === CONTROL_VARIANTS.button ? /*#__PURE__*/React__default.createElement(UButton, {
|
|
53146
53147
|
startIcon: icon,
|
|
53147
53148
|
onClick: handleClick,
|
|
53148
|
-
"aria-controls": "
|
|
53149
|
+
"aria-controls": "u-confirmation-menu-".concat(id),
|
|
53149
53150
|
"aria-haspopup": "true",
|
|
53150
53151
|
variant: buttonVariant,
|
|
53151
|
-
"aria-label":
|
|
53152
|
+
"aria-label": ariaLabelButton
|
|
53152
53153
|
}, buttonText) : /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
53153
53154
|
title: buttonText,
|
|
53154
53155
|
placement: "top"
|
|
53155
53156
|
}, /*#__PURE__*/React__default.createElement(IconButton$2, {
|
|
53156
|
-
"aria-controls": "
|
|
53157
|
+
"aria-controls": "u-confirmation-menu-".concat(id),
|
|
53157
53158
|
"aria-haspopup": "true",
|
|
53158
53159
|
onClick: handleClick,
|
|
53159
53160
|
disabled: !enabled,
|
|
@@ -53161,7 +53162,7 @@ function UConfirmationButton(_ref3) {
|
|
|
53161
53162
|
size: "large",
|
|
53162
53163
|
"aria-label": ariaLabelIconButton
|
|
53163
53164
|
}, icon)), confirmVariant === CONFIRMATION_VARIANTS.popup ? /*#__PURE__*/React__default.createElement(Dialog$1, {
|
|
53164
|
-
id: "
|
|
53165
|
+
id: "u-confirmation-menu-".concat(id),
|
|
53165
53166
|
open: openDialog
|
|
53166
53167
|
}, /*#__PURE__*/React__default.createElement(DialogContent$2, null, /*#__PURE__*/React__default.createElement(Typography$2, {
|
|
53167
53168
|
variant: "body1"
|
|
@@ -53173,7 +53174,7 @@ function UConfirmationButton(_ref3) {
|
|
|
53173
53174
|
variant: "uPrimary",
|
|
53174
53175
|
color: "primary"
|
|
53175
53176
|
}, confirmActionText || ''))) : /*#__PURE__*/React__default.createElement(Menu$4, {
|
|
53176
|
-
id: "
|
|
53177
|
+
id: "u-confirmation-menu-".concat(id),
|
|
53177
53178
|
anchorEl: deleteAnchorEl,
|
|
53178
53179
|
keepMounted: true,
|
|
53179
53180
|
open: Boolean(deleteAnchorEl),
|
|
@@ -57607,9 +57608,9 @@ function UAriaLive(_ref) {
|
|
|
57607
57608
|
role: role,
|
|
57608
57609
|
sx: {
|
|
57609
57610
|
position: 'absolute',
|
|
57610
|
-
width:
|
|
57611
|
-
height:
|
|
57612
|
-
margin: -
|
|
57611
|
+
width: '1px',
|
|
57612
|
+
height: '1px',
|
|
57613
|
+
margin: '-1px',
|
|
57613
57614
|
padding: 0,
|
|
57614
57615
|
overflow: 'hidden',
|
|
57615
57616
|
clip: 'rect(0, 0, 0, 0)',
|