@unicef/material-ui 0.12.3 → 0.12.4
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/dev.js +14 -3
- package/lib/dev.js.map +1 -1
- package/lib/prod.js +14 -3
- package/lib/prod.js.map +1 -1
- package/package.json +1 -1
package/lib/prod.js
CHANGED
|
@@ -42693,6 +42693,8 @@ function UAsyncBadge(_ref) {
|
|
|
42693
42693
|
var variant = _ref.variant,
|
|
42694
42694
|
text = _ref.text,
|
|
42695
42695
|
visible = _ref.visible,
|
|
42696
|
+
ariaRole = _ref.ariaRole,
|
|
42697
|
+
ariaLive = _ref.ariaLive,
|
|
42696
42698
|
onReset = _ref.onReset;
|
|
42697
42699
|
|
|
42698
42700
|
var classes = useStyles$p();
|
|
@@ -42716,8 +42718,8 @@ function UAsyncBadge(_ref) {
|
|
|
42716
42718
|
{ className: classes.root },
|
|
42717
42719
|
visible && React__default.createElement(Chip$1, {
|
|
42718
42720
|
ref: chipRef,
|
|
42719
|
-
role:
|
|
42720
|
-
'aria-live':
|
|
42721
|
+
role: ariaRole,
|
|
42722
|
+
'aria-live': ariaLive,
|
|
42721
42723
|
className: classes.chip + ' ' + classes[variant],
|
|
42722
42724
|
avatar: variant === 'loading' ? React__default.createElement(CircularProgress$1, { size: 16 }) : variant === 'error' ? React__default.createElement(HighlightOffIcon, { size: 16 }) : variant === 'success' && React__default.createElement(DoneIcon, { size: 16 }),
|
|
42723
42725
|
classes: { avatar: classes[variant] },
|
|
@@ -42735,7 +42737,16 @@ UAsyncBadge.propTypes = {
|
|
|
42735
42737
|
/** display status of the badge */
|
|
42736
42738
|
visible: PropTypes__default.bool,
|
|
42737
42739
|
/** trigger reset of the badge */
|
|
42738
|
-
onReset: PropTypes__default.func
|
|
42740
|
+
onReset: PropTypes__default.func,
|
|
42741
|
+
/** Aria role of the badge */
|
|
42742
|
+
ariaRole: PropTypes__default.oneOf(['log', 'status', 'alert']),
|
|
42743
|
+
/** Aria live of the badge */
|
|
42744
|
+
ariaLive: PropTypes__default.oneOf(['polite', 'assertive', 'off'])
|
|
42745
|
+
};
|
|
42746
|
+
|
|
42747
|
+
UAsyncBadge.defaultTypes = {
|
|
42748
|
+
ariaRole: 'alert',
|
|
42749
|
+
ariaLive: 'assertive'
|
|
42739
42750
|
};
|
|
42740
42751
|
|
|
42741
42752
|
var useStyles$q = makeStyles$1(function () {
|