@unicef/material-ui 0.12.3 → 0.12.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/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/dev.js
CHANGED
|
@@ -49855,6 +49855,8 @@ function UAsyncBadge(_ref) {
|
|
|
49855
49855
|
var variant = _ref.variant,
|
|
49856
49856
|
text = _ref.text,
|
|
49857
49857
|
visible = _ref.visible,
|
|
49858
|
+
ariaRole = _ref.ariaRole,
|
|
49859
|
+
ariaLive = _ref.ariaLive,
|
|
49858
49860
|
onReset = _ref.onReset;
|
|
49859
49861
|
|
|
49860
49862
|
var classes = useStyles$p();
|
|
@@ -49878,8 +49880,8 @@ function UAsyncBadge(_ref) {
|
|
|
49878
49880
|
{ className: classes.root },
|
|
49879
49881
|
visible && React__default.createElement(Chip$1, {
|
|
49880
49882
|
ref: chipRef,
|
|
49881
|
-
role:
|
|
49882
|
-
'aria-live':
|
|
49883
|
+
role: ariaRole,
|
|
49884
|
+
'aria-live': ariaLive,
|
|
49883
49885
|
className: classes.chip + ' ' + classes[variant],
|
|
49884
49886
|
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 }),
|
|
49885
49887
|
classes: { avatar: classes[variant] },
|
|
@@ -49897,7 +49899,16 @@ UAsyncBadge.propTypes = {
|
|
|
49897
49899
|
/** display status of the badge */
|
|
49898
49900
|
visible: PropTypes__default.bool,
|
|
49899
49901
|
/** trigger reset of the badge */
|
|
49900
|
-
onReset: PropTypes__default.func
|
|
49902
|
+
onReset: PropTypes__default.func,
|
|
49903
|
+
/** Aria role of the badge */
|
|
49904
|
+
ariaRole: PropTypes__default.oneOf(['log', 'status', 'alert']),
|
|
49905
|
+
/** Aria live of the badge */
|
|
49906
|
+
ariaLive: PropTypes__default.oneOf(['polite', 'assertive', 'off'])
|
|
49907
|
+
};
|
|
49908
|
+
|
|
49909
|
+
UAsyncBadge.defaultProps = {
|
|
49910
|
+
ariaRole: 'alert',
|
|
49911
|
+
ariaLive: 'assertive'
|
|
49901
49912
|
};
|
|
49902
49913
|
|
|
49903
49914
|
var useStyles$q = makeStyles$1(function () {
|