@unicef/material-ui 2.0.4 → 2.0.5
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 +1110 -1104
- package/lib/prod.cjs.map +1 -1
- package/lib/prod.js +9 -8
- package/lib/prod.js.map +1 -1
- package/package.json +1 -1
package/lib/prod.js
CHANGED
|
@@ -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),
|