@unicef/material-ui 1.0.6 → 1.0.7

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 CHANGED
@@ -33417,17 +33417,23 @@ var StyledAppBar = styled$1(AppBar$1, {
33417
33417
  */
33418
33418
 
33419
33419
  function UHeader(props) {
33420
- var position = props.position,
33420
+ var _props$position = props.position,
33421
+ position = _props$position === void 0 ? 'fixed' : _props$position,
33421
33422
  applicationName = props.applicationName,
33422
- showHamburgerMenu = props.showHamburgerMenu,
33423
- hideLogo = props.hideLogo,
33423
+ _props$showHamburgerM = props.showHamburgerMenu,
33424
+ showHamburgerMenu = _props$showHamburgerM === void 0 ? true : _props$showHamburgerM,
33425
+ _props$hideLogo = props.hideLogo,
33426
+ hideLogo = _props$hideLogo === void 0 ? false : _props$hideLogo,
33424
33427
  logo = props.logo,
33425
- hideLogoBorderLine = props.hideLogoBorderLine,
33426
- logoUrl = props.logoUrl,
33428
+ _props$hideLogoBorder = props.hideLogoBorderLine,
33429
+ hideLogoBorderLine = _props$hideLogoBorder === void 0 ? true : _props$hideLogoBorder,
33430
+ _props$logoUrl = props.logoUrl,
33431
+ logoUrl = _props$logoUrl === void 0 ? '/' : _props$logoUrl,
33427
33432
  onLogoClick = props.onLogoClick,
33428
33433
  openDrawer = props.openDrawer,
33429
33434
  toggleDrawer = props.toggleDrawer,
33430
- elevation = props.elevation,
33435
+ _props$elevation = props.elevation,
33436
+ elevation = _props$elevation === void 0 ? 4 : _props$elevation,
33431
33437
  bgColor = props.bgColor;
33432
33438
  var handleUrlClick = function handleUrlClick(e) {
33433
33439
  if (onLogoClick) {
@@ -33550,14 +33556,6 @@ UHeader.propTypes = {
33550
33556
  /** AppBar elevation value to handle the box shadow effect */
33551
33557
  elevation: PropTypes.number
33552
33558
  };
33553
- UHeader.defaultProps = {
33554
- position: 'fixed',
33555
- showHamburgerMenu: true,
33556
- hideLogo: false,
33557
- logoUrl: '/',
33558
- hideLogoBorderLine: true,
33559
- elevation: 4
33560
- };
33561
33559
 
33562
33560
  var PREFIX$u = 'ULayout';
33563
33561
  var classes$u = {
@@ -33584,7 +33582,7 @@ function ULayout(props) {
33584
33582
  }, props.children);
33585
33583
  }
33586
33584
 
33587
- var _excluded$14 = ["headerHeight", "width"];
33585
+ var _excluded$14 = ["headerHeight", "width", "children"];
33588
33586
  var PREFIX$t = 'USideBar';
33589
33587
  var classes$t = {
33590
33588
  drawer: "".concat(PREFIX$t, "-drawer"),
@@ -33609,10 +33607,13 @@ var StyledBox$k = styled$1(Box$1)(function (props) {
33609
33607
  *
33610
33608
  * USideBar must be wrapped inside the ULayout(Parent Component).
33611
33609
  */
33612
- function USideBar(props) {
33613
- var headerHeight = props.headerHeight,
33614
- width = props.width,
33615
- others = _objectWithoutProperties$2(props, _excluded$14);
33610
+ function USideBar(_ref2) {
33611
+ var _ref2$headerHeight = _ref2.headerHeight,
33612
+ headerHeight = _ref2$headerHeight === void 0 ? 64 : _ref2$headerHeight,
33613
+ _ref2$width = _ref2.width,
33614
+ width = _ref2$width === void 0 ? 300 : _ref2$width,
33615
+ children = _ref2.children,
33616
+ others = _objectWithoutProperties$2(_ref2, _excluded$14);
33616
33617
  return /*#__PURE__*/React$1.createElement(StyledBox$k, {
33617
33618
  display: {
33618
33619
  xs: 'none',
@@ -33629,7 +33630,7 @@ function USideBar(props) {
33629
33630
  style: {
33630
33631
  minHeight: headerHeight
33631
33632
  }
33632
- }), props.children));
33633
+ }), children));
33633
33634
  }
33634
33635
  USideBar.propTypes = {
33635
33636
  /** Height of the header including MainMenu */
@@ -33639,10 +33640,6 @@ USideBar.propTypes = {
33639
33640
  */
33640
33641
  width: PropTypes.number
33641
33642
  };
33642
- USideBar.defaultProps = {
33643
- headerHeight: 64,
33644
- width: 300
33645
- };
33646
33643
 
33647
33644
  var PREFIX$s = 'UContent';
33648
33645
  var classes$s = {
@@ -33662,7 +33659,8 @@ var Root$5 = styled$1('main')(function (_ref) {
33662
33659
  * * UContent must be wrapped inside the ULayout.
33663
33660
  */
33664
33661
  function UContent(_ref3) {
33665
- var headerHeight = _ref3.headerHeight,
33662
+ var _ref3$headerHeight = _ref3.headerHeight,
33663
+ headerHeight = _ref3$headerHeight === void 0 ? 64 : _ref3$headerHeight,
33666
33664
  children = _ref3.children;
33667
33665
  return /*#__PURE__*/React$1.createElement(Root$5, {
33668
33666
  className: classes$s.content
@@ -33676,9 +33674,6 @@ UContent.propTypes = {
33676
33674
  /** Height of the header including MainMenu */
33677
33675
  headerHeight: PropTypes.number
33678
33676
  };
33679
- UContent.defaultProps = {
33680
- headerHeight: 64
33681
- };
33682
33677
 
33683
33678
  var _excluded$13 = ["spinButton", "loading", "variant", "color"];
33684
33679
  var PREFIX$r = 'UButton';
@@ -33707,12 +33702,16 @@ var StyledBox$j = styled$1(Box$1)(function (_ref) {
33707
33702
  * Custom advanced button with unicef colors and also it has spinning effect in the button
33708
33703
  *
33709
33704
  * */
33710
- function UButton(props) {
33711
- var spinButton = props.spinButton,
33712
- loading = props.loading,
33713
- variant = props.variant,
33714
- color = props.color,
33715
- others = _objectWithoutProperties$2(props, _excluded$13);
33705
+ function UButton(_ref3) {
33706
+ var _ref3$spinButton = _ref3.spinButton,
33707
+ spinButton = _ref3$spinButton === void 0 ? false : _ref3$spinButton,
33708
+ _ref3$loading = _ref3.loading,
33709
+ loading = _ref3$loading === void 0 ? false : _ref3$loading,
33710
+ _ref3$variant = _ref3.variant,
33711
+ variant = _ref3$variant === void 0 ? 'contained' : _ref3$variant,
33712
+ _ref3$color = _ref3.color,
33713
+ color = _ref3$color === void 0 ? 'primary' : _ref3$color,
33714
+ others = _objectWithoutProperties$2(_ref3, _excluded$13);
33716
33715
  function getVariant(variant) {
33717
33716
  switch (variant) {
33718
33717
  case 'uDefault':
@@ -33759,12 +33758,6 @@ UButton.propTypes = {
33759
33758
  /** color of the button */
33760
33759
  color: PropTypes.string
33761
33760
  };
33762
- UButton.defaultProps = {
33763
- color: 'primary',
33764
- variant: 'contained',
33765
- spinButton: false,
33766
- loading: false
33767
- };
33768
33761
 
33769
33762
  function _defineProperty(obj, key, value) {
33770
33763
  key = toPropertyKey(key);
@@ -39680,19 +39673,35 @@ var NumberFormat = /*@__PURE__*/(function (superclass) {
39680
39673
 
39681
39674
  NumberFormat.defaultProps = defaultProps;
39682
39675
 
39683
- var _excluded$Y = ["inputRef", "name", "onChange", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
39676
+ var _excluded$Y = ["inputRef", "name", "value", "onChange", "onBlur", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
39684
39677
  function PositiveNumberFormat(_ref) {
39685
39678
  var inputRef = _ref.inputRef,
39686
39679
  name = _ref.name,
39680
+ value = _ref.value,
39687
39681
  onChange = _ref.onChange,
39688
- thousandSeparator = _ref.thousandSeparator,
39689
- isNumericString = _ref.isNumericString,
39690
- allowNegative = _ref.allowNegative,
39691
- decimalScale = _ref.decimalScale,
39692
- fixedDecimalScale = _ref.fixedDecimalScale,
39682
+ _onBlur = _ref.onBlur,
39683
+ _ref$thousandSeparato = _ref.thousandSeparator,
39684
+ thousandSeparator = _ref$thousandSeparato === void 0 ? true : _ref$thousandSeparato,
39685
+ _ref$isNumericString = _ref.isNumericString,
39686
+ isNumericString = _ref$isNumericString === void 0 ? false : _ref$isNumericString,
39687
+ _ref$allowNegative = _ref.allowNegative,
39688
+ allowNegative = _ref$allowNegative === void 0 ? false : _ref$allowNegative,
39689
+ _ref$decimalScale = _ref.decimalScale,
39690
+ decimalScale = _ref$decimalScale === void 0 ? 0 : _ref$decimalScale,
39691
+ _ref$fixedDecimalScal = _ref.fixedDecimalScale,
39692
+ fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? false : _ref$fixedDecimalScal,
39693
39693
  other = _objectWithoutProperties$2(_ref, _excluded$Y);
39694
39694
  return /*#__PURE__*/React$1.createElement(NumberFormat, _extends$1({}, other, {
39695
+ value: value,
39695
39696
  getInputRef: inputRef,
39697
+ onBlur: function onBlur() {
39698
+ return _onBlur && _onBlur({
39699
+ target: {
39700
+ name: name,
39701
+ value: value
39702
+ }
39703
+ });
39704
+ },
39696
39705
  onValueChange: function onValueChange(values, sourceInfo) {
39697
39706
  onChange({
39698
39707
  target: {
@@ -39710,10 +39719,14 @@ function PositiveNumberFormat(_ref) {
39710
39719
  }));
39711
39720
  }
39712
39721
  PositiveNumberFormat.propTypes = {
39722
+ // field value
39723
+ value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
39713
39724
  // Input ref
39714
39725
  inputRef: PropTypes.func.isRequired,
39715
39726
  // On each onChange value will be formatted
39716
39727
  onChange: PropTypes.func.isRequired,
39728
+ // callback function to be called on blur
39729
+ onBlur: PropTypes.func,
39717
39730
  // Thousand separator
39718
39731
  thousandSeparator: PropTypes.bool,
39719
39732
  // Is numeric string
@@ -39725,13 +39738,6 @@ PositiveNumberFormat.propTypes = {
39725
39738
  //If true it add 0s to match given decimalScale.
39726
39739
  fixedDecimalScale: PropTypes.bool
39727
39740
  };
39728
- PositiveNumberFormat.defaultProps = {
39729
- thousandSeparator: true,
39730
- isNumericString: false,
39731
- allowNegative: false,
39732
- decimalScale: 0,
39733
- fixedDecimalScale: false
39734
- };
39735
39741
 
39736
39742
  var HelpOutline = {};
39737
39743
 
@@ -39791,12 +39797,16 @@ var StyledBox$i = styled$1(Box$1)(function (_ref) {
39791
39797
  });
39792
39798
  function InputLabelHelp(_ref3) {
39793
39799
  var inputLabel = _ref3.inputLabel,
39794
- type = _ref3.type,
39795
- label = _ref3.label,
39800
+ _ref3$type = _ref3.type,
39801
+ type = _ref3$type === void 0 ? 'tooltip' : _ref3$type,
39802
+ _ref3$label = _ref3.label,
39803
+ label = _ref3$label === void 0 ? 'Help' : _ref3$label,
39796
39804
  link = _ref3.link,
39797
- icon = _ref3.icon,
39805
+ _ref3$icon = _ref3.icon,
39806
+ icon = _ref3$icon === void 0 ? null : _ref3$icon,
39798
39807
  tooltipTitle = _ref3.tooltipTitle,
39799
- tooltipPlacement = _ref3.tooltipPlacement;
39808
+ _ref3$tooltipPlacemen = _ref3.tooltipPlacement,
39809
+ tooltipPlacement = _ref3$tooltipPlacemen === void 0 ? 'top' : _ref3$tooltipPlacemen;
39800
39810
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, inputLabel), /*#__PURE__*/React$1.createElement(StyledBox$i, {
39801
39811
  className: classes$n.root
39802
39812
  }, type === 'tooltip' ? /*#__PURE__*/React$1.createElement(Tooltip$1, {
@@ -39840,12 +39850,6 @@ InputLabelHelp.propTypes = {
39840
39850
  // Tooltip placement
39841
39851
  tooltipPlacement: PropTypes.string
39842
39852
  };
39843
- InputLabelHelp.defaultProps = {
39844
- label: 'Help',
39845
- type: 'tooltip',
39846
- icon: null,
39847
- tooltipPlacement: 'top'
39848
- };
39849
39853
 
39850
39854
  var _excluded$X = ["showLabelHelp", "InputLabelHelpProps", "lineByLineOption", "hideAvatar"];
39851
39855
  var styles$1 = {
@@ -61253,10 +61257,14 @@ var _excluded$d = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
61253
61257
  * The ActiveCurrencyField is for creating currency input fields. It accepts several props for customization, including "inputPrefix," "decimalScale," "fixedDecimalScale," "textAlign," and etc. The cool feature with ActiveCurrencyField is you can read and write at the same place.
61254
61258
  */
61255
61259
  function ActiveCurrencyField(_ref) {
61256
- var inputPrefix = _ref.inputPrefix,
61257
- decimalScale = _ref.decimalScale,
61258
- fixedDecimalScale = _ref.fixedDecimalScale,
61259
- textAlign = _ref.textAlign,
61260
+ var _ref$inputPrefix = _ref.inputPrefix,
61261
+ inputPrefix = _ref$inputPrefix === void 0 ? '$ ' : _ref$inputPrefix,
61262
+ _ref$decimalScale = _ref.decimalScale,
61263
+ decimalScale = _ref$decimalScale === void 0 ? 2 : _ref$decimalScale,
61264
+ _ref$fixedDecimalScal = _ref.fixedDecimalScale,
61265
+ fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? true : _ref$fixedDecimalScal,
61266
+ _ref$textAlign = _ref.textAlign,
61267
+ textAlign = _ref$textAlign === void 0 ? 'right' : _ref$textAlign,
61260
61268
  inputProps = _ref.inputProps,
61261
61269
  props = _objectWithoutProperties$2(_ref, _excluded$d);
61262
61270
  return /*#__PURE__*/React$1.createElement(ActiveFormPositiveInteger, _extends$1({
@@ -61313,12 +61321,6 @@ ActiveCurrencyField.propTypes = {
61313
61321
  /** Input text align */
61314
61322
  textAlign: PropTypes.string
61315
61323
  };
61316
- ActiveCurrencyField.defaultProps = {
61317
- inputPrefix: '$ ',
61318
- decimalScale: 2,
61319
- fixedDecimalScale: true,
61320
- textAlign: 'right'
61321
- };
61322
61324
 
61323
61325
  var DeleteOutlined = {};
61324
61326
 
@@ -61364,18 +61366,27 @@ var CONFIRMATION_VARIANTS = {
61364
61366
  * This button displays the confirmation where user has clicked the button
61365
61367
  * It has two varint icon/menu item
61366
61368
  */
61367
- function UConfirmationButton(props) {
61368
- var onConfirm = props.onConfirm,
61369
- id = props.id,
61370
- buttonText = props.buttonText,
61371
- enabled = props.enabled,
61372
- variant = props.variant,
61373
- icon = props.icon,
61374
- confirmText = props.confirmText,
61375
- confirmActionText = props.confirmActionText,
61376
- cancelText = props.cancelText,
61377
- buttonVariant = props.buttonVariant,
61378
- confirmVariant = props.confirmVariant;
61369
+ function UConfirmationButton(_ref3) {
61370
+ var onConfirm = _ref3.onConfirm,
61371
+ id = _ref3.id,
61372
+ _ref3$buttonText = _ref3.buttonText,
61373
+ buttonText = _ref3$buttonText === void 0 ? 'Delete' : _ref3$buttonText,
61374
+ _ref3$enabled = _ref3.enabled,
61375
+ enabled = _ref3$enabled === void 0 ? true : _ref3$enabled,
61376
+ _ref3$variant = _ref3.variant,
61377
+ variant = _ref3$variant === void 0 ? 'icon' : _ref3$variant,
61378
+ _ref3$icon = _ref3.icon,
61379
+ icon = _ref3$icon === void 0 ? /*#__PURE__*/React$1.createElement(default_1$4, null) : _ref3$icon,
61380
+ _ref3$confirmText = _ref3.confirmText,
61381
+ confirmText = _ref3$confirmText === void 0 ? 'Confirm deletion?' : _ref3$confirmText,
61382
+ _ref3$confirmActionTe = _ref3.confirmActionText,
61383
+ confirmActionText = _ref3$confirmActionTe === void 0 ? 'Yes, delete' : _ref3$confirmActionTe,
61384
+ _ref3$cancelText = _ref3.cancelText,
61385
+ cancelText = _ref3$cancelText === void 0 ? 'No' : _ref3$cancelText,
61386
+ _ref3$buttonVariant = _ref3.buttonVariant,
61387
+ buttonVariant = _ref3$buttonVariant === void 0 ? 'text' : _ref3$buttonVariant,
61388
+ _ref3$confirmVariant = _ref3.confirmVariant,
61389
+ confirmVariant = _ref3$confirmVariant === void 0 ? 'menu' : _ref3$confirmVariant;
61379
61390
  var _useState = React$1.useState(null),
61380
61391
  _useState2 = _slicedToArray$1(_useState, 2),
61381
61392
  deleteAnchorEl = _useState2[0],
@@ -61478,17 +61489,6 @@ UConfirmationButton.propTypes = {
61478
61489
  /** Button variant applied to menuItem button */
61479
61490
  buttonVariant: PropTypes.string
61480
61491
  };
61481
- UConfirmationButton.defaultProps = {
61482
- buttonText: 'Delete',
61483
- variant: 'icon',
61484
- enabled: true,
61485
- confirmText: 'Confirm deletion?',
61486
- confirmActionText: 'Yes, delete',
61487
- cancelText: 'No',
61488
- icon: /*#__PURE__*/React$1.createElement(default_1$4, null),
61489
- buttonVariant: 'text',
61490
- confirmVariant: 'menu'
61491
- };
61492
61492
 
61493
61493
  var PREFIX$g = 'URadioButtons';
61494
61494
  var classes$g = {
@@ -61617,8 +61617,10 @@ function UAsyncBadge(_ref3) {
61617
61617
  var variant = _ref3.variant,
61618
61618
  text = _ref3.text,
61619
61619
  visible = _ref3.visible,
61620
- ariaRole = _ref3.ariaRole,
61621
- ariaLive = _ref3.ariaLive,
61620
+ _ref3$ariaRole = _ref3.ariaRole,
61621
+ ariaRole = _ref3$ariaRole === void 0 ? 'alert' : _ref3$ariaRole,
61622
+ _ref3$ariaLive = _ref3.ariaLive,
61623
+ ariaLive = _ref3$ariaLive === void 0 ? 'assertive' : _ref3$ariaLive,
61622
61624
  onReset = _ref3.onReset;
61623
61625
  var chipRef = React$1.useRef();
61624
61626
 
@@ -61669,10 +61671,6 @@ UAsyncBadge.propTypes = {
61669
61671
  /** Aria live of the badge */
61670
61672
  ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off'])
61671
61673
  };
61672
- UAsyncBadge.defaultProps = {
61673
- ariaRole: 'alert',
61674
- ariaLive: 'assertive'
61675
- };
61676
61674
 
61677
61675
  var PREFIX$e = 'UPageLoadingProgress';
61678
61676
  var classes$e = {
@@ -61691,8 +61689,9 @@ var StyledBox$c = styled$1(Box$1)(function () {
61691
61689
  * 1. Display circular progress
61692
61690
  * 2. Display text message
61693
61691
  */
61694
- function UPageLoadingProgress(props) {
61695
- var text = props.text;
61692
+ function UPageLoadingProgress(_ref2) {
61693
+ var _ref2$text = _ref2.text,
61694
+ text = _ref2$text === void 0 ? '' : _ref2$text;
61696
61695
  return /*#__PURE__*/React$1.createElement(StyledBox$c, {
61697
61696
  display: "flex",
61698
61697
  justifyContent: "center",
@@ -61707,9 +61706,6 @@ UPageLoadingProgress.propTypes = {
61707
61706
  /** text to display instead of circular progress */
61708
61707
  text: PropTypes.string
61709
61708
  };
61710
- UPageLoadingProgress.defaultProps = {
61711
- text: ''
61712
- };
61713
61709
 
61714
61710
  /**
61715
61711
  * UErrorAlert is a component to display error message to the user
@@ -62065,12 +62061,18 @@ var StyledBox$b = styled$1(Box$1)(function (_ref) {
62065
62061
  * If no image url from source app first letter of the user email will be displayed
62066
62062
  */
62067
62063
  function UAvatarImage(_ref3) {
62068
- var userEmail = _ref3.userEmail,
62069
- size = _ref3.size,
62070
- mode = _ref3.mode,
62071
- tooltipText = _ref3.tooltipText,
62072
- count = _ref3.count,
62073
- zIndexValue = _ref3.zIndexValue,
62064
+ var _ref3$userEmail = _ref3.userEmail,
62065
+ userEmail = _ref3$userEmail === void 0 ? '' : _ref3$userEmail,
62066
+ _ref3$size = _ref3.size,
62067
+ size = _ref3$size === void 0 ? 'default' : _ref3$size,
62068
+ _ref3$mode = _ref3.mode,
62069
+ mode = _ref3$mode === void 0 ? '' : _ref3$mode,
62070
+ _ref3$tooltipText = _ref3.tooltipText,
62071
+ tooltipText = _ref3$tooltipText === void 0 ? '' : _ref3$tooltipText,
62072
+ _ref3$count = _ref3.count,
62073
+ count = _ref3$count === void 0 ? 0 : _ref3$count,
62074
+ _ref3$zIndexValue = _ref3.zIndexValue,
62075
+ zIndexValue = _ref3$zIndexValue === void 0 ? 0 : _ref3$zIndexValue,
62074
62076
  loadPhoto = _ref3.loadPhoto;
62075
62077
  var _useState = React$1.useState(''),
62076
62078
  _useState2 = _slicedToArray$1(_useState, 2),
@@ -62114,15 +62116,6 @@ UAvatarImage.propTypes = {
62114
62116
  /** get photo url from the respective application */
62115
62117
  loadPhoto: PropTypes.func
62116
62118
  };
62117
- UAvatarImage.defaultProps = {
62118
- userEmail: '',
62119
- size: 'default',
62120
- // image displays default size
62121
- mode: '',
62122
- tooltipText: '',
62123
- count: 0,
62124
- zIndexValue: 0
62125
- };
62126
62119
 
62127
62120
  var _excluded$c = ["id", "type", "label", "options", "onBlur", "helpText", "isMultiple", "searchUsers", "components"];
62128
62121
  var getOptions = function getOptions(options) {
@@ -62611,14 +62604,19 @@ var StyledBox$a = styled$1(Box$1, {
62611
62604
  * Please have look at [Material UI Date Picker](https://mui.com/x/api/date-pickers/date-picker/) for more details
62612
62605
  */
62613
62606
  function ActiveDatePicker(_ref5) {
62614
- var inputFormat = _ref5.inputFormat,
62607
+ var _ref5$inputFormat = _ref5.inputFormat,
62608
+ inputFormat = _ref5$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref5$inputFormat,
62615
62609
  label = _ref5.label,
62616
62610
  onChange = _ref5.onChange,
62617
62611
  value = _ref5.value,
62618
62612
  showLabelHelp = _ref5.showLabelHelp,
62619
- InputLabelProps = _ref5.InputLabelProps,
62613
+ _ref5$InputLabelProps = _ref5.InputLabelProps,
62614
+ InputLabelProps = _ref5$InputLabelProps === void 0 ? {
62615
+ shrink: true
62616
+ } : _ref5$InputLabelProps,
62620
62617
  InputLabelHelpProps = _ref5.InputLabelHelpProps,
62621
- inputVariant = _ref5.inputVariant,
62618
+ _ref5$inputVariant = _ref5.inputVariant,
62619
+ inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
62622
62620
  interactiveMode = _ref5.interactiveMode,
62623
62621
  readOnly = _ref5.readOnly,
62624
62622
  others = _objectWithoutProperties$2(_ref5, _excluded$8);
@@ -62668,13 +62666,6 @@ ActiveDatePicker.propTypes = {
62668
62666
  /** Props applied to the input label help element. E.g InputLabelHelpProps={{type:'link', label:'Help', link:'unicef.github.io', icon, tooltipTitle: 'Tooltip title', tooltipPlacement: 'bottom}} */
62669
62667
  InputLabelHelpProps: PropTypes.object
62670
62668
  };
62671
- ActiveDatePicker.defaultProps = {
62672
- inputVariant: 'outlined',
62673
- InputLabelProps: {
62674
- shrink: true
62675
- },
62676
- inputFormat: 'dd/MM/yyyy'
62677
- };
62678
62669
 
62679
62670
  var _excluded$7 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
62680
62671
  var PREFIX$8 = 'ActiveTimePicker';
@@ -63472,10 +63463,14 @@ function ActiveAutoComplete(_ref3) {
63472
63463
  readOnly = _ref3.readOnly,
63473
63464
  minLength = _ref3.minLength,
63474
63465
  maxLength = _ref3.maxLength,
63475
- usedItemIds = _ref3.usedItemIds,
63476
- allowContextSpecific = _ref3.allowContextSpecific,
63477
- interactiveMode = _ref3.interactiveMode,
63478
- counter = _ref3.counter,
63466
+ _ref3$usedItemIds = _ref3.usedItemIds,
63467
+ usedItemIds = _ref3$usedItemIds === void 0 ? [] : _ref3$usedItemIds,
63468
+ _ref3$allowContextSpe = _ref3.allowContextSpecific,
63469
+ allowContextSpecific = _ref3$allowContextSpe === void 0 ? false : _ref3$allowContextSpe,
63470
+ _ref3$interactiveMode = _ref3.interactiveMode,
63471
+ interactiveMode = _ref3$interactiveMode === void 0 ? false : _ref3$interactiveMode,
63472
+ _ref3$counter = _ref3.counter,
63473
+ counter = _ref3$counter === void 0 ? false : _ref3$counter,
63479
63474
  placeholder = _ref3.placeholder,
63480
63475
  InputLabelProps = _ref3.InputLabelProps;
63481
63476
  _ref3.props;
@@ -63630,12 +63625,6 @@ ActiveAutoComplete.propTypes = {
63630
63625
  /** Label props applied to input field*/
63631
63626
  InputLabelProps: PropTypes.object
63632
63627
  };
63633
- ActiveAutoComplete.defaultProps = {
63634
- allowContextSpecific: false,
63635
- interactiveMode: false,
63636
- counter: false,
63637
- usedItemIds: []
63638
- };
63639
63628
 
63640
63629
  var StyledBox$1 = styled$1(Box$1)(function () {
63641
63630
  return {
@@ -63656,9 +63645,12 @@ var StyledBox$1 = styled$1(Box$1)(function () {
63656
63645
  */
63657
63646
  function UAriaLive(_ref) {
63658
63647
  var text = _ref.text,
63659
- type = _ref.type,
63660
- role = _ref.role,
63661
- ariaAtomic = _ref.ariaAtomic;
63648
+ _ref$type = _ref.type,
63649
+ type = _ref$type === void 0 ? 'polite' : _ref$type,
63650
+ _ref$role = _ref.role,
63651
+ role = _ref$role === void 0 ? 'log' : _ref$role,
63652
+ _ref$ariaAtomic = _ref.ariaAtomic,
63653
+ ariaAtomic = _ref$ariaAtomic === void 0 ? false : _ref$ariaAtomic;
63662
63654
  return /*#__PURE__*/React$1.createElement(StyledBox$1, {
63663
63655
  "aria-live": type,
63664
63656
  "aria-atomic": ariaAtomic,
@@ -63676,11 +63668,6 @@ UAriaLive.propTypes = {
63676
63668
  /** Aria role */
63677
63669
  role: PropTypes.string
63678
63670
  };
63679
- UAriaLive.defaultProps = {
63680
- type: 'polite',
63681
- role: 'log',
63682
- ariaAtomic: false
63683
- };
63684
63671
 
63685
63672
  var StyledBox = styled$1(Box$1)(function () {
63686
63673
  return {