@unicef/material-ui 1.0.5 → 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,25 +39673,42 @@ 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,
39696
- onValueChange: function onValueChange(values) {
39697
+ onBlur: function onBlur() {
39698
+ return _onBlur && _onBlur({
39699
+ target: {
39700
+ name: name,
39701
+ value: value
39702
+ }
39703
+ });
39704
+ },
39705
+ onValueChange: function onValueChange(values, sourceInfo) {
39697
39706
  onChange({
39698
39707
  target: {
39699
39708
  name: name,
39700
39709
  value: values.value
39701
- }
39710
+ },
39711
+ sourceInfo: sourceInfo
39702
39712
  });
39703
39713
  },
39704
39714
  thousandSeparator: thousandSeparator,
@@ -39709,10 +39719,14 @@ function PositiveNumberFormat(_ref) {
39709
39719
  }));
39710
39720
  }
39711
39721
  PositiveNumberFormat.propTypes = {
39722
+ // field value
39723
+ value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
39712
39724
  // Input ref
39713
39725
  inputRef: PropTypes.func.isRequired,
39714
39726
  // On each onChange value will be formatted
39715
39727
  onChange: PropTypes.func.isRequired,
39728
+ // callback function to be called on blur
39729
+ onBlur: PropTypes.func,
39716
39730
  // Thousand separator
39717
39731
  thousandSeparator: PropTypes.bool,
39718
39732
  // Is numeric string
@@ -39724,13 +39738,6 @@ PositiveNumberFormat.propTypes = {
39724
39738
  //If true it add 0s to match given decimalScale.
39725
39739
  fixedDecimalScale: PropTypes.bool
39726
39740
  };
39727
- PositiveNumberFormat.defaultProps = {
39728
- thousandSeparator: true,
39729
- isNumericString: false,
39730
- allowNegative: false,
39731
- decimalScale: 0,
39732
- fixedDecimalScale: false
39733
- };
39734
39741
 
39735
39742
  var HelpOutline = {};
39736
39743
 
@@ -39790,12 +39797,16 @@ var StyledBox$i = styled$1(Box$1)(function (_ref) {
39790
39797
  });
39791
39798
  function InputLabelHelp(_ref3) {
39792
39799
  var inputLabel = _ref3.inputLabel,
39793
- type = _ref3.type,
39794
- 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,
39795
39804
  link = _ref3.link,
39796
- icon = _ref3.icon,
39805
+ _ref3$icon = _ref3.icon,
39806
+ icon = _ref3$icon === void 0 ? null : _ref3$icon,
39797
39807
  tooltipTitle = _ref3.tooltipTitle,
39798
- tooltipPlacement = _ref3.tooltipPlacement;
39808
+ _ref3$tooltipPlacemen = _ref3.tooltipPlacement,
39809
+ tooltipPlacement = _ref3$tooltipPlacemen === void 0 ? 'top' : _ref3$tooltipPlacemen;
39799
39810
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, inputLabel), /*#__PURE__*/React$1.createElement(StyledBox$i, {
39800
39811
  className: classes$n.root
39801
39812
  }, type === 'tooltip' ? /*#__PURE__*/React$1.createElement(Tooltip$1, {
@@ -39839,12 +39850,6 @@ InputLabelHelp.propTypes = {
39839
39850
  // Tooltip placement
39840
39851
  tooltipPlacement: PropTypes.string
39841
39852
  };
39842
- InputLabelHelp.defaultProps = {
39843
- label: 'Help',
39844
- type: 'tooltip',
39845
- icon: null,
39846
- tooltipPlacement: 'top'
39847
- };
39848
39853
 
39849
39854
  var _excluded$X = ["showLabelHelp", "InputLabelHelpProps", "lineByLineOption", "hideAvatar"];
39850
39855
  var styles$1 = {
@@ -61252,10 +61257,14 @@ var _excluded$d = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
61252
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.
61253
61258
  */
61254
61259
  function ActiveCurrencyField(_ref) {
61255
- var inputPrefix = _ref.inputPrefix,
61256
- decimalScale = _ref.decimalScale,
61257
- fixedDecimalScale = _ref.fixedDecimalScale,
61258
- 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,
61259
61268
  inputProps = _ref.inputProps,
61260
61269
  props = _objectWithoutProperties$2(_ref, _excluded$d);
61261
61270
  return /*#__PURE__*/React$1.createElement(ActiveFormPositiveInteger, _extends$1({
@@ -61312,12 +61321,6 @@ ActiveCurrencyField.propTypes = {
61312
61321
  /** Input text align */
61313
61322
  textAlign: PropTypes.string
61314
61323
  };
61315
- ActiveCurrencyField.defaultProps = {
61316
- inputPrefix: '$ ',
61317
- decimalScale: 2,
61318
- fixedDecimalScale: true,
61319
- textAlign: 'right'
61320
- };
61321
61324
 
61322
61325
  var DeleteOutlined = {};
61323
61326
 
@@ -61363,18 +61366,27 @@ var CONFIRMATION_VARIANTS = {
61363
61366
  * This button displays the confirmation where user has clicked the button
61364
61367
  * It has two varint icon/menu item
61365
61368
  */
61366
- function UConfirmationButton(props) {
61367
- var onConfirm = props.onConfirm,
61368
- id = props.id,
61369
- buttonText = props.buttonText,
61370
- enabled = props.enabled,
61371
- variant = props.variant,
61372
- icon = props.icon,
61373
- confirmText = props.confirmText,
61374
- confirmActionText = props.confirmActionText,
61375
- cancelText = props.cancelText,
61376
- buttonVariant = props.buttonVariant,
61377
- 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;
61378
61390
  var _useState = React$1.useState(null),
61379
61391
  _useState2 = _slicedToArray$1(_useState, 2),
61380
61392
  deleteAnchorEl = _useState2[0],
@@ -61477,17 +61489,6 @@ UConfirmationButton.propTypes = {
61477
61489
  /** Button variant applied to menuItem button */
61478
61490
  buttonVariant: PropTypes.string
61479
61491
  };
61480
- UConfirmationButton.defaultProps = {
61481
- buttonText: 'Delete',
61482
- variant: 'icon',
61483
- enabled: true,
61484
- confirmText: 'Confirm deletion?',
61485
- confirmActionText: 'Yes, delete',
61486
- cancelText: 'No',
61487
- icon: /*#__PURE__*/React$1.createElement(default_1$4, null),
61488
- buttonVariant: 'text',
61489
- confirmVariant: 'menu'
61490
- };
61491
61492
 
61492
61493
  var PREFIX$g = 'URadioButtons';
61493
61494
  var classes$g = {
@@ -61616,8 +61617,10 @@ function UAsyncBadge(_ref3) {
61616
61617
  var variant = _ref3.variant,
61617
61618
  text = _ref3.text,
61618
61619
  visible = _ref3.visible,
61619
- ariaRole = _ref3.ariaRole,
61620
- 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,
61621
61624
  onReset = _ref3.onReset;
61622
61625
  var chipRef = React$1.useRef();
61623
61626
 
@@ -61668,10 +61671,6 @@ UAsyncBadge.propTypes = {
61668
61671
  /** Aria live of the badge */
61669
61672
  ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off'])
61670
61673
  };
61671
- UAsyncBadge.defaultProps = {
61672
- ariaRole: 'alert',
61673
- ariaLive: 'assertive'
61674
- };
61675
61674
 
61676
61675
  var PREFIX$e = 'UPageLoadingProgress';
61677
61676
  var classes$e = {
@@ -61690,8 +61689,9 @@ var StyledBox$c = styled$1(Box$1)(function () {
61690
61689
  * 1. Display circular progress
61691
61690
  * 2. Display text message
61692
61691
  */
61693
- function UPageLoadingProgress(props) {
61694
- var text = props.text;
61692
+ function UPageLoadingProgress(_ref2) {
61693
+ var _ref2$text = _ref2.text,
61694
+ text = _ref2$text === void 0 ? '' : _ref2$text;
61695
61695
  return /*#__PURE__*/React$1.createElement(StyledBox$c, {
61696
61696
  display: "flex",
61697
61697
  justifyContent: "center",
@@ -61706,9 +61706,6 @@ UPageLoadingProgress.propTypes = {
61706
61706
  /** text to display instead of circular progress */
61707
61707
  text: PropTypes.string
61708
61708
  };
61709
- UPageLoadingProgress.defaultProps = {
61710
- text: ''
61711
- };
61712
61709
 
61713
61710
  /**
61714
61711
  * UErrorAlert is a component to display error message to the user
@@ -62064,12 +62061,18 @@ var StyledBox$b = styled$1(Box$1)(function (_ref) {
62064
62061
  * If no image url from source app first letter of the user email will be displayed
62065
62062
  */
62066
62063
  function UAvatarImage(_ref3) {
62067
- var userEmail = _ref3.userEmail,
62068
- size = _ref3.size,
62069
- mode = _ref3.mode,
62070
- tooltipText = _ref3.tooltipText,
62071
- count = _ref3.count,
62072
- 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,
62073
62076
  loadPhoto = _ref3.loadPhoto;
62074
62077
  var _useState = React$1.useState(''),
62075
62078
  _useState2 = _slicedToArray$1(_useState, 2),
@@ -62113,15 +62116,6 @@ UAvatarImage.propTypes = {
62113
62116
  /** get photo url from the respective application */
62114
62117
  loadPhoto: PropTypes.func
62115
62118
  };
62116
- UAvatarImage.defaultProps = {
62117
- userEmail: '',
62118
- size: 'default',
62119
- // image displays default size
62120
- mode: '',
62121
- tooltipText: '',
62122
- count: 0,
62123
- zIndexValue: 0
62124
- };
62125
62119
 
62126
62120
  var _excluded$c = ["id", "type", "label", "options", "onBlur", "helpText", "isMultiple", "searchUsers", "components"];
62127
62121
  var getOptions = function getOptions(options) {
@@ -62610,14 +62604,19 @@ var StyledBox$a = styled$1(Box$1, {
62610
62604
  * Please have look at [Material UI Date Picker](https://mui.com/x/api/date-pickers/date-picker/) for more details
62611
62605
  */
62612
62606
  function ActiveDatePicker(_ref5) {
62613
- var inputFormat = _ref5.inputFormat,
62607
+ var _ref5$inputFormat = _ref5.inputFormat,
62608
+ inputFormat = _ref5$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref5$inputFormat,
62614
62609
  label = _ref5.label,
62615
62610
  onChange = _ref5.onChange,
62616
62611
  value = _ref5.value,
62617
62612
  showLabelHelp = _ref5.showLabelHelp,
62618
- InputLabelProps = _ref5.InputLabelProps,
62613
+ _ref5$InputLabelProps = _ref5.InputLabelProps,
62614
+ InputLabelProps = _ref5$InputLabelProps === void 0 ? {
62615
+ shrink: true
62616
+ } : _ref5$InputLabelProps,
62619
62617
  InputLabelHelpProps = _ref5.InputLabelHelpProps,
62620
- inputVariant = _ref5.inputVariant,
62618
+ _ref5$inputVariant = _ref5.inputVariant,
62619
+ inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
62621
62620
  interactiveMode = _ref5.interactiveMode,
62622
62621
  readOnly = _ref5.readOnly,
62623
62622
  others = _objectWithoutProperties$2(_ref5, _excluded$8);
@@ -62667,13 +62666,6 @@ ActiveDatePicker.propTypes = {
62667
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}} */
62668
62667
  InputLabelHelpProps: PropTypes.object
62669
62668
  };
62670
- ActiveDatePicker.defaultProps = {
62671
- inputVariant: 'outlined',
62672
- InputLabelProps: {
62673
- shrink: true
62674
- },
62675
- inputFormat: 'dd/MM/yyyy'
62676
- };
62677
62669
 
62678
62670
  var _excluded$7 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
62679
62671
  var PREFIX$8 = 'ActiveTimePicker';
@@ -63471,10 +63463,14 @@ function ActiveAutoComplete(_ref3) {
63471
63463
  readOnly = _ref3.readOnly,
63472
63464
  minLength = _ref3.minLength,
63473
63465
  maxLength = _ref3.maxLength,
63474
- usedItemIds = _ref3.usedItemIds,
63475
- allowContextSpecific = _ref3.allowContextSpecific,
63476
- interactiveMode = _ref3.interactiveMode,
63477
- 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,
63478
63474
  placeholder = _ref3.placeholder,
63479
63475
  InputLabelProps = _ref3.InputLabelProps;
63480
63476
  _ref3.props;
@@ -63629,12 +63625,6 @@ ActiveAutoComplete.propTypes = {
63629
63625
  /** Label props applied to input field*/
63630
63626
  InputLabelProps: PropTypes.object
63631
63627
  };
63632
- ActiveAutoComplete.defaultProps = {
63633
- allowContextSpecific: false,
63634
- interactiveMode: false,
63635
- counter: false,
63636
- usedItemIds: []
63637
- };
63638
63628
 
63639
63629
  var StyledBox$1 = styled$1(Box$1)(function () {
63640
63630
  return {
@@ -63655,9 +63645,12 @@ var StyledBox$1 = styled$1(Box$1)(function () {
63655
63645
  */
63656
63646
  function UAriaLive(_ref) {
63657
63647
  var text = _ref.text,
63658
- type = _ref.type,
63659
- role = _ref.role,
63660
- 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;
63661
63654
  return /*#__PURE__*/React$1.createElement(StyledBox$1, {
63662
63655
  "aria-live": type,
63663
63656
  "aria-atomic": ariaAtomic,
@@ -63675,11 +63668,6 @@ UAriaLive.propTypes = {
63675
63668
  /** Aria role */
63676
63669
  role: PropTypes.string
63677
63670
  };
63678
- UAriaLive.defaultProps = {
63679
- type: 'polite',
63680
- role: 'log',
63681
- ariaAtomic: false
63682
- };
63683
63671
 
63684
63672
  var StyledBox = styled$1(Box$1)(function () {
63685
63673
  return {