@unicef/material-ui 1.0.6 → 1.0.8

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,11 +33674,8 @@ 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
- var _excluded$13 = ["spinButton", "loading", "variant", "color"];
33678
+ var _excluded$13 = ["spinButton", "loading", "variant", "color", "children"];
33684
33679
  var PREFIX$r = 'UButton';
33685
33680
  var classes$r = {
33686
33681
  root: "".concat(PREFIX$r, "-root"),
@@ -33707,12 +33702,17 @@ 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
+ children = _ref3.children,
33715
+ others = _objectWithoutProperties$2(_ref3, _excluded$13);
33716
33716
  function getVariant(variant) {
33717
33717
  switch (variant) {
33718
33718
  case 'uDefault':
@@ -33733,7 +33733,7 @@ function UButton(props) {
33733
33733
  variant: getVariant(variant),
33734
33734
  color: color,
33735
33735
  disableRipple: true
33736
- }, others), props.children);
33736
+ }, others), children);
33737
33737
  return !spinButton ? CustomButton : /*#__PURE__*/React$1.createElement(StyledBox$j, {
33738
33738
  className: classes$r.root
33739
33739
  }, /*#__PURE__*/React$1.createElement(Box$1, {
@@ -33759,12 +33759,6 @@ UButton.propTypes = {
33759
33759
  /** color of the button */
33760
33760
  color: PropTypes.string
33761
33761
  };
33762
- UButton.defaultProps = {
33763
- color: 'primary',
33764
- variant: 'contained',
33765
- spinButton: false,
33766
- loading: false
33767
- };
33768
33762
 
33769
33763
  function _defineProperty(obj, key, value) {
33770
33764
  key = toPropertyKey(key);
@@ -39680,19 +39674,35 @@ var NumberFormat = /*@__PURE__*/(function (superclass) {
39680
39674
 
39681
39675
  NumberFormat.defaultProps = defaultProps;
39682
39676
 
39683
- var _excluded$Y = ["inputRef", "name", "onChange", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
39677
+ var _excluded$Y = ["inputRef", "name", "value", "onChange", "onBlur", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
39684
39678
  function PositiveNumberFormat(_ref) {
39685
39679
  var inputRef = _ref.inputRef,
39686
39680
  name = _ref.name,
39681
+ value = _ref.value,
39687
39682
  onChange = _ref.onChange,
39688
- thousandSeparator = _ref.thousandSeparator,
39689
- isNumericString = _ref.isNumericString,
39690
- allowNegative = _ref.allowNegative,
39691
- decimalScale = _ref.decimalScale,
39692
- fixedDecimalScale = _ref.fixedDecimalScale,
39683
+ _onBlur = _ref.onBlur,
39684
+ _ref$thousandSeparato = _ref.thousandSeparator,
39685
+ thousandSeparator = _ref$thousandSeparato === void 0 ? true : _ref$thousandSeparato,
39686
+ _ref$isNumericString = _ref.isNumericString,
39687
+ isNumericString = _ref$isNumericString === void 0 ? false : _ref$isNumericString,
39688
+ _ref$allowNegative = _ref.allowNegative,
39689
+ allowNegative = _ref$allowNegative === void 0 ? false : _ref$allowNegative,
39690
+ _ref$decimalScale = _ref.decimalScale,
39691
+ decimalScale = _ref$decimalScale === void 0 ? 0 : _ref$decimalScale,
39692
+ _ref$fixedDecimalScal = _ref.fixedDecimalScale,
39693
+ fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? false : _ref$fixedDecimalScal,
39693
39694
  other = _objectWithoutProperties$2(_ref, _excluded$Y);
39694
39695
  return /*#__PURE__*/React$1.createElement(NumberFormat, _extends$1({}, other, {
39696
+ value: value,
39695
39697
  getInputRef: inputRef,
39698
+ onBlur: function onBlur() {
39699
+ return _onBlur && _onBlur({
39700
+ target: {
39701
+ name: name,
39702
+ value: value
39703
+ }
39704
+ });
39705
+ },
39696
39706
  onValueChange: function onValueChange(values, sourceInfo) {
39697
39707
  onChange({
39698
39708
  target: {
@@ -39710,10 +39720,14 @@ function PositiveNumberFormat(_ref) {
39710
39720
  }));
39711
39721
  }
39712
39722
  PositiveNumberFormat.propTypes = {
39723
+ // field value
39724
+ value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
39713
39725
  // Input ref
39714
39726
  inputRef: PropTypes.func.isRequired,
39715
39727
  // On each onChange value will be formatted
39716
39728
  onChange: PropTypes.func.isRequired,
39729
+ // callback function to be called on blur
39730
+ onBlur: PropTypes.func,
39717
39731
  // Thousand separator
39718
39732
  thousandSeparator: PropTypes.bool,
39719
39733
  // Is numeric string
@@ -39725,13 +39739,6 @@ PositiveNumberFormat.propTypes = {
39725
39739
  //If true it add 0s to match given decimalScale.
39726
39740
  fixedDecimalScale: PropTypes.bool
39727
39741
  };
39728
- PositiveNumberFormat.defaultProps = {
39729
- thousandSeparator: true,
39730
- isNumericString: false,
39731
- allowNegative: false,
39732
- decimalScale: 0,
39733
- fixedDecimalScale: false
39734
- };
39735
39742
 
39736
39743
  var HelpOutline = {};
39737
39744
 
@@ -39791,12 +39798,16 @@ var StyledBox$i = styled$1(Box$1)(function (_ref) {
39791
39798
  });
39792
39799
  function InputLabelHelp(_ref3) {
39793
39800
  var inputLabel = _ref3.inputLabel,
39794
- type = _ref3.type,
39795
- label = _ref3.label,
39801
+ _ref3$type = _ref3.type,
39802
+ type = _ref3$type === void 0 ? 'tooltip' : _ref3$type,
39803
+ _ref3$label = _ref3.label,
39804
+ label = _ref3$label === void 0 ? 'Help' : _ref3$label,
39796
39805
  link = _ref3.link,
39797
- icon = _ref3.icon,
39806
+ _ref3$icon = _ref3.icon,
39807
+ icon = _ref3$icon === void 0 ? null : _ref3$icon,
39798
39808
  tooltipTitle = _ref3.tooltipTitle,
39799
- tooltipPlacement = _ref3.tooltipPlacement;
39809
+ _ref3$tooltipPlacemen = _ref3.tooltipPlacement,
39810
+ tooltipPlacement = _ref3$tooltipPlacemen === void 0 ? 'top' : _ref3$tooltipPlacemen;
39800
39811
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, inputLabel), /*#__PURE__*/React$1.createElement(StyledBox$i, {
39801
39812
  className: classes$n.root
39802
39813
  }, type === 'tooltip' ? /*#__PURE__*/React$1.createElement(Tooltip$1, {
@@ -39840,12 +39851,6 @@ InputLabelHelp.propTypes = {
39840
39851
  // Tooltip placement
39841
39852
  tooltipPlacement: PropTypes.string
39842
39853
  };
39843
- InputLabelHelp.defaultProps = {
39844
- label: 'Help',
39845
- type: 'tooltip',
39846
- icon: null,
39847
- tooltipPlacement: 'top'
39848
- };
39849
39854
 
39850
39855
  var _excluded$X = ["showLabelHelp", "InputLabelHelpProps", "lineByLineOption", "hideAvatar"];
39851
39856
  var styles$1 = {
@@ -56754,14 +56759,19 @@ var _excluded$C = ["inputFormat", "label", "onChange", "value", "showLabelHelp",
56754
56759
  * Please have look at [Material UI Date Picker](https://mui.com/x/react-date-pickers/date-picker/#main-content) for more details
56755
56760
  */
56756
56761
  function UDatePicker(_ref) {
56757
- var inputFormat = _ref.inputFormat,
56762
+ var _ref$inputFormat = _ref.inputFormat,
56763
+ inputFormat = _ref$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref$inputFormat,
56758
56764
  label = _ref.label,
56759
56765
  onChange = _ref.onChange,
56760
56766
  value = _ref.value,
56761
56767
  showLabelHelp = _ref.showLabelHelp,
56762
- InputLabelProps = _ref.InputLabelProps,
56768
+ _ref$InputLabelProps = _ref.InputLabelProps,
56769
+ InputLabelProps = _ref$InputLabelProps === void 0 ? {
56770
+ shrink: true
56771
+ } : _ref$InputLabelProps,
56763
56772
  InputLabelHelpProps = _ref.InputLabelHelpProps,
56764
- inputVariant = _ref.inputVariant,
56773
+ _ref$inputVariant = _ref.inputVariant,
56774
+ inputVariant = _ref$inputVariant === void 0 ? 'outlined' : _ref$inputVariant,
56765
56775
  others = _objectWithoutProperties$2(_ref, _excluded$C);
56766
56776
  return /*#__PURE__*/React$1.createElement(LocalizationProvider, {
56767
56777
  dateAdapter: AdapterDateFns
@@ -56799,13 +56809,6 @@ UDatePicker.propTypes = {
56799
56809
  /** Props applied to the InputLabel element.*/
56800
56810
  InputLabelProps: PropTypes.object
56801
56811
  };
56802
- UDatePicker.defaultProps = {
56803
- inputVariant: 'outlined',
56804
- InputLabelProps: {
56805
- shrink: true
56806
- },
56807
- inputFormat: 'dd/MM/yyyy'
56808
- };
56809
56812
 
56810
56813
  var _excluded$B = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant"];
56811
56814
 
@@ -60865,10 +60868,13 @@ var StyledBox$g = styled$1(Box$1, {
60865
60868
  function ActiveFormTextField(props) {
60866
60869
  var typographyVariant = props.typographyVariant,
60867
60870
  className = props.className,
60868
- variant = props.variant,
60871
+ _props$variant = props.variant,
60872
+ variant = _props$variant === void 0 ? 'outlined' : _props$variant,
60869
60873
  readOnly = props.readOnly,
60870
- placeholder = props.placeholder,
60871
- interactiveMode = props.interactiveMode,
60874
+ _props$placeholder = props.placeholder,
60875
+ placeholder = _props$placeholder === void 0 ? 'Type something' : _props$placeholder,
60876
+ _props$interactiveMod = props.interactiveMode,
60877
+ interactiveMode = _props$interactiveMod === void 0 ? false : _props$interactiveMod,
60872
60878
  InputLabelProps = props.InputLabelProps,
60873
60879
  InputProps = props.InputProps,
60874
60880
  inputProps = props.inputProps,
@@ -60933,11 +60939,6 @@ ActiveFormTextField.propTypes = {
60933
60939
  /** Allow to use required validator in any validation trigger, not only form submit. */
60934
60940
  withRequiredValidator: PropTypes.bool
60935
60941
  };
60936
- ActiveFormTextField.defaultProps = {
60937
- placeholder: 'Type something',
60938
- interactiveMode: false,
60939
- variant: 'outlined'
60940
- };
60941
60942
 
60942
60943
  var _excluded$h = ["select", "typographyVariant", "className", "interactiveMode", "placeholder", "readOnly", "InputLabelProps", "InputProps", "inputProps", "SelectProps"];
60943
60944
  var PREFIX$i = 'ActiveFormSelect';
@@ -60991,8 +60992,10 @@ function ActiveFormSelect(props) {
60991
60992
  props.select;
60992
60993
  var typographyVariant = props.typographyVariant,
60993
60994
  className = props.className,
60994
- interactiveMode = props.interactiveMode,
60995
- placeholder = props.placeholder,
60995
+ _props$interactiveMod = props.interactiveMode,
60996
+ interactiveMode = _props$interactiveMod === void 0 ? false : _props$interactiveMod,
60997
+ _props$placeholder = props.placeholder,
60998
+ placeholder = _props$placeholder === void 0 ? 'Select' : _props$placeholder,
60996
60999
  readOnly = props.readOnly,
60997
61000
  InputLabelProps = props.InputLabelProps,
60998
61001
  InputProps = props.InputProps,
@@ -61080,10 +61083,6 @@ ActiveFormSelect.propTypes = {
61080
61083
  /** Allow to use required validator in any validation trigger, not only form submit. */
61081
61084
  withRequiredValidator: PropTypes.bool
61082
61085
  };
61083
- ActiveFormSelect.defaultProps = {
61084
- placeholder: 'Select',
61085
- interactiveMode: false
61086
- };
61087
61086
 
61088
61087
  var _excluded$g = ["readOnly", "InputProps"];
61089
61088
  /**
@@ -61134,10 +61133,14 @@ var _excluded$f = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
61134
61133
  * The UCurrencyField is for creating currency input fields. It accepts several props for customization, including "inputPrefix," "decimalScale," "fixedDecimalScale," "textAlign," and etc
61135
61134
  */
61136
61135
  function UCurrencyField(_ref) {
61137
- var inputPrefix = _ref.inputPrefix,
61138
- decimalScale = _ref.decimalScale,
61139
- fixedDecimalScale = _ref.fixedDecimalScale,
61140
- textAlign = _ref.textAlign,
61136
+ var _ref$inputPrefix = _ref.inputPrefix,
61137
+ inputPrefix = _ref$inputPrefix === void 0 ? '$ ' : _ref$inputPrefix,
61138
+ _ref$decimalScale = _ref.decimalScale,
61139
+ decimalScale = _ref$decimalScale === void 0 ? 2 : _ref$decimalScale,
61140
+ _ref$fixedDecimalScal = _ref.fixedDecimalScale,
61141
+ fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? true : _ref$fixedDecimalScal,
61142
+ _ref$textAlign = _ref.textAlign,
61143
+ textAlign = _ref$textAlign === void 0 ? 'right' : _ref$textAlign,
61141
61144
  inputProps = _ref.inputProps,
61142
61145
  props = _objectWithoutProperties$2(_ref, _excluded$f);
61143
61146
  return /*#__PURE__*/React$1.createElement(UPositiveInteger, _extends$1({
@@ -61186,12 +61189,6 @@ UCurrencyField.propTypes = {
61186
61189
  // If true it add 0s to match given decimalScale.
61187
61190
  fixedDecimalScale: PropTypes.bool
61188
61191
  };
61189
- UCurrencyField.defaultProps = {
61190
- inputPrefix: '$ ',
61191
- decimalScale: 2,
61192
- fixedDecimalScale: true,
61193
- textAlign: 'right'
61194
- };
61195
61192
 
61196
61193
  var _excluded$e = ["InputProps"];
61197
61194
 
@@ -61253,10 +61250,14 @@ var _excluded$d = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
61253
61250
  * 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
61251
  */
61255
61252
  function ActiveCurrencyField(_ref) {
61256
- var inputPrefix = _ref.inputPrefix,
61257
- decimalScale = _ref.decimalScale,
61258
- fixedDecimalScale = _ref.fixedDecimalScale,
61259
- textAlign = _ref.textAlign,
61253
+ var _ref$inputPrefix = _ref.inputPrefix,
61254
+ inputPrefix = _ref$inputPrefix === void 0 ? '$ ' : _ref$inputPrefix,
61255
+ _ref$decimalScale = _ref.decimalScale,
61256
+ decimalScale = _ref$decimalScale === void 0 ? 2 : _ref$decimalScale,
61257
+ _ref$fixedDecimalScal = _ref.fixedDecimalScale,
61258
+ fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? true : _ref$fixedDecimalScal,
61259
+ _ref$textAlign = _ref.textAlign,
61260
+ textAlign = _ref$textAlign === void 0 ? 'right' : _ref$textAlign,
61260
61261
  inputProps = _ref.inputProps,
61261
61262
  props = _objectWithoutProperties$2(_ref, _excluded$d);
61262
61263
  return /*#__PURE__*/React$1.createElement(ActiveFormPositiveInteger, _extends$1({
@@ -61313,12 +61314,6 @@ ActiveCurrencyField.propTypes = {
61313
61314
  /** Input text align */
61314
61315
  textAlign: PropTypes.string
61315
61316
  };
61316
- ActiveCurrencyField.defaultProps = {
61317
- inputPrefix: '$ ',
61318
- decimalScale: 2,
61319
- fixedDecimalScale: true,
61320
- textAlign: 'right'
61321
- };
61322
61317
 
61323
61318
  var DeleteOutlined = {};
61324
61319
 
@@ -61364,18 +61359,27 @@ var CONFIRMATION_VARIANTS = {
61364
61359
  * This button displays the confirmation where user has clicked the button
61365
61360
  * It has two varint icon/menu item
61366
61361
  */
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;
61362
+ function UConfirmationButton(_ref3) {
61363
+ var onConfirm = _ref3.onConfirm,
61364
+ id = _ref3.id,
61365
+ _ref3$buttonText = _ref3.buttonText,
61366
+ buttonText = _ref3$buttonText === void 0 ? 'Delete' : _ref3$buttonText,
61367
+ _ref3$enabled = _ref3.enabled,
61368
+ enabled = _ref3$enabled === void 0 ? true : _ref3$enabled,
61369
+ _ref3$variant = _ref3.variant,
61370
+ variant = _ref3$variant === void 0 ? 'icon' : _ref3$variant,
61371
+ _ref3$icon = _ref3.icon,
61372
+ icon = _ref3$icon === void 0 ? /*#__PURE__*/React$1.createElement(default_1$4, null) : _ref3$icon,
61373
+ _ref3$confirmText = _ref3.confirmText,
61374
+ confirmText = _ref3$confirmText === void 0 ? 'Confirm deletion?' : _ref3$confirmText,
61375
+ _ref3$confirmActionTe = _ref3.confirmActionText,
61376
+ confirmActionText = _ref3$confirmActionTe === void 0 ? 'Yes, delete' : _ref3$confirmActionTe,
61377
+ _ref3$cancelText = _ref3.cancelText,
61378
+ cancelText = _ref3$cancelText === void 0 ? 'No' : _ref3$cancelText,
61379
+ _ref3$buttonVariant = _ref3.buttonVariant,
61380
+ buttonVariant = _ref3$buttonVariant === void 0 ? 'text' : _ref3$buttonVariant,
61381
+ _ref3$confirmVariant = _ref3.confirmVariant,
61382
+ confirmVariant = _ref3$confirmVariant === void 0 ? 'menu' : _ref3$confirmVariant;
61379
61383
  var _useState = React$1.useState(null),
61380
61384
  _useState2 = _slicedToArray$1(_useState, 2),
61381
61385
  deleteAnchorEl = _useState2[0],
@@ -61478,17 +61482,6 @@ UConfirmationButton.propTypes = {
61478
61482
  /** Button variant applied to menuItem button */
61479
61483
  buttonVariant: PropTypes.string
61480
61484
  };
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
61485
 
61493
61486
  var PREFIX$g = 'URadioButtons';
61494
61487
  var classes$g = {
@@ -61510,7 +61503,8 @@ function URadioButtons(_ref3) {
61510
61503
  var value = _ref3.value,
61511
61504
  onChange = _ref3.onChange,
61512
61505
  isReadOnly = _ref3.isReadOnly,
61513
- variant = _ref3.variant,
61506
+ _ref3$variant = _ref3.variant,
61507
+ variant = _ref3$variant === void 0 ? 'row' : _ref3$variant,
61514
61508
  optionLabels = _ref3.optionLabels,
61515
61509
  optionValues = _ref3.optionValues;
61516
61510
  var handleOnChange = function handleOnChange(event) {
@@ -61552,9 +61546,6 @@ URadioButtons.propTypes = {
61552
61546
  /**array of radio button values */
61553
61547
  optionValues: PropTypes.array
61554
61548
  };
61555
- URadioButtons.defaultProps = {
61556
- variant: 'row'
61557
- };
61558
61549
 
61559
61550
  var HighlightOff = {};
61560
61551
 
@@ -61617,8 +61608,10 @@ function UAsyncBadge(_ref3) {
61617
61608
  var variant = _ref3.variant,
61618
61609
  text = _ref3.text,
61619
61610
  visible = _ref3.visible,
61620
- ariaRole = _ref3.ariaRole,
61621
- ariaLive = _ref3.ariaLive,
61611
+ _ref3$ariaRole = _ref3.ariaRole,
61612
+ ariaRole = _ref3$ariaRole === void 0 ? 'alert' : _ref3$ariaRole,
61613
+ _ref3$ariaLive = _ref3.ariaLive,
61614
+ ariaLive = _ref3$ariaLive === void 0 ? 'assertive' : _ref3$ariaLive,
61622
61615
  onReset = _ref3.onReset;
61623
61616
  var chipRef = React$1.useRef();
61624
61617
 
@@ -61669,10 +61662,6 @@ UAsyncBadge.propTypes = {
61669
61662
  /** Aria live of the badge */
61670
61663
  ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off'])
61671
61664
  };
61672
- UAsyncBadge.defaultProps = {
61673
- ariaRole: 'alert',
61674
- ariaLive: 'assertive'
61675
- };
61676
61665
 
61677
61666
  var PREFIX$e = 'UPageLoadingProgress';
61678
61667
  var classes$e = {
@@ -61691,8 +61680,9 @@ var StyledBox$c = styled$1(Box$1)(function () {
61691
61680
  * 1. Display circular progress
61692
61681
  * 2. Display text message
61693
61682
  */
61694
- function UPageLoadingProgress(props) {
61695
- var text = props.text;
61683
+ function UPageLoadingProgress(_ref2) {
61684
+ var _ref2$text = _ref2.text,
61685
+ text = _ref2$text === void 0 ? '' : _ref2$text;
61696
61686
  return /*#__PURE__*/React$1.createElement(StyledBox$c, {
61697
61687
  display: "flex",
61698
61688
  justifyContent: "center",
@@ -61707,16 +61697,14 @@ UPageLoadingProgress.propTypes = {
61707
61697
  /** text to display instead of circular progress */
61708
61698
  text: PropTypes.string
61709
61699
  };
61710
- UPageLoadingProgress.defaultProps = {
61711
- text: ''
61712
- };
61713
61700
 
61714
61701
  /**
61715
61702
  * UErrorAlert is a component to display error message to the user
61716
61703
  */
61717
61704
  function UErrorAlert(_ref) {
61718
61705
  var error = _ref.error,
61719
- preformatted = _ref.preformatted,
61706
+ _ref$preformatted = _ref.preformatted,
61707
+ preformatted = _ref$preformatted === void 0 ? false : _ref$preformatted,
61720
61708
  _onClose = _ref.onClose;
61721
61709
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, error && /*#__PURE__*/React$1.createElement(Box$1, {
61722
61710
  marginTop: 2,
@@ -61736,9 +61724,6 @@ UErrorAlert.propTypes = {
61736
61724
  /** Triggers close action of error alert */
61737
61725
  onClose: PropTypes.func
61738
61726
  };
61739
- UErrorAlert.defaultProps = {
61740
- preformatted: false
61741
- };
61742
61727
 
61743
61728
  var PREFIX$d = 'UAutoComplete';
61744
61729
  var classes$d = {
@@ -61771,9 +61756,12 @@ function UAutoComplete(_ref3) {
61771
61756
  readOnly = _ref3.readOnly,
61772
61757
  minLength = _ref3.minLength,
61773
61758
  maxLength = _ref3.maxLength,
61774
- usedItemIds = _ref3.usedItemIds,
61775
- allowContextSpecific = _ref3.allowContextSpecific,
61776
- counter = _ref3.counter,
61759
+ _ref3$usedItemIds = _ref3.usedItemIds,
61760
+ usedItemIds = _ref3$usedItemIds === void 0 ? [] : _ref3$usedItemIds,
61761
+ _ref3$allowContextSpe = _ref3.allowContextSpecific,
61762
+ allowContextSpecific = _ref3$allowContextSpe === void 0 ? false : _ref3$allowContextSpe,
61763
+ _ref3$counter = _ref3.counter,
61764
+ counter = _ref3$counter === void 0 ? false : _ref3$counter,
61777
61765
  placeholder = _ref3.placeholder,
61778
61766
  InputLabelProps = _ref3.InputLabelProps;
61779
61767
  _ref3.props;
@@ -61921,11 +61909,6 @@ UAutoComplete.propTypes = {
61921
61909
  /** Label props applied to input field*/
61922
61910
  InputLabelProps: PropTypes.object
61923
61911
  };
61924
- UAutoComplete.defaultProps = {
61925
- allowContextSpecific: false,
61926
- counter: false,
61927
- usedItemIds: []
61928
- };
61929
61912
 
61930
61913
  var PREFIX$c = 'UBreadcrumbs';
61931
61914
  var classes$c = {
@@ -62065,12 +62048,18 @@ var StyledBox$b = styled$1(Box$1)(function (_ref) {
62065
62048
  * If no image url from source app first letter of the user email will be displayed
62066
62049
  */
62067
62050
  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,
62051
+ var _ref3$userEmail = _ref3.userEmail,
62052
+ userEmail = _ref3$userEmail === void 0 ? '' : _ref3$userEmail,
62053
+ _ref3$size = _ref3.size,
62054
+ size = _ref3$size === void 0 ? 'default' : _ref3$size,
62055
+ _ref3$mode = _ref3.mode,
62056
+ mode = _ref3$mode === void 0 ? '' : _ref3$mode,
62057
+ _ref3$tooltipText = _ref3.tooltipText,
62058
+ tooltipText = _ref3$tooltipText === void 0 ? '' : _ref3$tooltipText,
62059
+ _ref3$count = _ref3.count,
62060
+ count = _ref3$count === void 0 ? 0 : _ref3$count,
62061
+ _ref3$zIndexValue = _ref3.zIndexValue,
62062
+ zIndexValue = _ref3$zIndexValue === void 0 ? 0 : _ref3$zIndexValue,
62074
62063
  loadPhoto = _ref3.loadPhoto;
62075
62064
  var _useState = React$1.useState(''),
62076
62065
  _useState2 = _slicedToArray$1(_useState, 2),
@@ -62114,15 +62103,6 @@ UAvatarImage.propTypes = {
62114
62103
  /** get photo url from the respective application */
62115
62104
  loadPhoto: PropTypes.func
62116
62105
  };
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
62106
 
62127
62107
  var _excluded$c = ["id", "type", "label", "options", "onBlur", "helpText", "isMultiple", "searchUsers", "components"];
62128
62108
  var getOptions = function getOptions(options) {
@@ -62152,8 +62132,10 @@ function UGraphPeoplePicker(_ref) {
62152
62132
  label = _ref.label,
62153
62133
  options = _ref.options,
62154
62134
  onBlur = _ref.onBlur,
62155
- helpText = _ref.helpText,
62156
- isMultiple = _ref.isMultiple,
62135
+ _ref$helpText = _ref.helpText,
62136
+ helpText = _ref$helpText === void 0 ? '' : _ref$helpText,
62137
+ _ref$isMultiple = _ref.isMultiple,
62138
+ isMultiple = _ref$isMultiple === void 0 ? true : _ref$isMultiple,
62157
62139
  searchUsers = _ref.searchUsers,
62158
62140
  components = _ref.components,
62159
62141
  props = _objectWithoutProperties$2(_ref, _excluded$c);
@@ -62259,10 +62241,6 @@ UGraphPeoplePicker.propTypes = {
62259
62241
  /** 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}} */
62260
62242
  InputLabelHelpProps: PropTypes.object
62261
62243
  };
62262
- UGraphPeoplePicker.defaultProps = {
62263
- helpText: '',
62264
- isMultiple: true
62265
- };
62266
62244
 
62267
62245
  var _excluded$b = ["InputProps", "decimalScale", "inputProps", "coordinateType", "validators"];
62268
62246
 
@@ -62282,7 +62260,8 @@ var _excluded$b = ["InputProps", "decimalScale", "inputProps", "coordinateType",
62282
62260
 
62283
62261
  function ActiveFormCoordinateField(_ref) {
62284
62262
  var InputProps = _ref.InputProps,
62285
- decimalScale = _ref.decimalScale,
62263
+ _ref$decimalScale = _ref.decimalScale,
62264
+ decimalScale = _ref$decimalScale === void 0 ? 9 : _ref$decimalScale,
62286
62265
  inputProps = _ref.inputProps,
62287
62266
  coordinateType = _ref.coordinateType,
62288
62267
  validators = _ref.validators,
@@ -62353,9 +62332,6 @@ ActiveFormCoordinateField.propTypes = {
62353
62332
  /** Change to write mode by hiding textfield border and displays border on Hover */
62354
62333
  interactiveMode: PropTypes.bool
62355
62334
  };
62356
- ActiveFormCoordinateField.defaultProps = {
62357
- decimalScale: 9
62358
- };
62359
62335
 
62360
62336
  var _excluded$a = ["readOnly", "InputProps", "decimalScale", "inputProps", "coordinateType", "validators"];
62361
62337
 
@@ -62372,7 +62348,8 @@ var _excluded$a = ["readOnly", "InputProps", "decimalScale", "inputProps", "coor
62372
62348
  function UCoordinateField(_ref) {
62373
62349
  var readOnly = _ref.readOnly,
62374
62350
  InputProps = _ref.InputProps,
62375
- decimalScale = _ref.decimalScale,
62351
+ _ref$decimalScale = _ref.decimalScale,
62352
+ decimalScale = _ref$decimalScale === void 0 ? 9 : _ref$decimalScale,
62376
62353
  inputProps = _ref.inputProps,
62377
62354
  coordinateType = _ref.coordinateType,
62378
62355
  validators = _ref.validators,
@@ -62433,9 +62410,6 @@ UCoordinateField.propTypes = {
62433
62410
  /** Coordinate type */
62434
62411
  coordinateType: PropTypes.oneOf(['latitude', 'longitude']).isRequired
62435
62412
  };
62436
- UCoordinateField.defaultProps = {
62437
- decimalScale: 9
62438
- };
62439
62413
 
62440
62414
  var Search = {};
62441
62415
 
@@ -62495,10 +62469,12 @@ var StyledInputAdornment = styled$1(InputAdornment$1)(function (_ref) {
62495
62469
  function USearchBox(_ref3) {
62496
62470
  var value = _ref3.value,
62497
62471
  onSearch = _ref3.onSearch,
62498
- placeholder = _ref3.placeholder;
62472
+ _ref3$placeholder = _ref3.placeholder,
62473
+ placeholder = _ref3$placeholder === void 0 ? 'Search' : _ref3$placeholder;
62499
62474
  _ref3.inputProps;
62500
62475
  var className = _ref3.className,
62501
- showSeparator = _ref3.showSeparator,
62476
+ _ref3$showSeparator = _ref3.showSeparator,
62477
+ showSeparator = _ref3$showSeparator === void 0 ? true : _ref3$showSeparator,
62502
62478
  iconLabel = _ref3.iconLabel,
62503
62479
  rest = _objectWithoutProperties$2(_ref3, _excluded$9);
62504
62480
  var _useState = React$1.useState(value),
@@ -62577,10 +62553,6 @@ USearchBox.propTypes = {
62577
62553
  /** Label next to the search icon */
62578
62554
  iconLabel: PropTypes.string
62579
62555
  };
62580
- USearchBox.defaultProps = {
62581
- placeholder: 'Search',
62582
- showSeparator: true
62583
- };
62584
62556
 
62585
62557
  var _excluded$8 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
62586
62558
  var PREFIX$9 = 'ActiveDatePicker';
@@ -62611,14 +62583,19 @@ var StyledBox$a = styled$1(Box$1, {
62611
62583
  * Please have look at [Material UI Date Picker](https://mui.com/x/api/date-pickers/date-picker/) for more details
62612
62584
  */
62613
62585
  function ActiveDatePicker(_ref5) {
62614
- var inputFormat = _ref5.inputFormat,
62586
+ var _ref5$inputFormat = _ref5.inputFormat,
62587
+ inputFormat = _ref5$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref5$inputFormat,
62615
62588
  label = _ref5.label,
62616
62589
  onChange = _ref5.onChange,
62617
62590
  value = _ref5.value,
62618
62591
  showLabelHelp = _ref5.showLabelHelp,
62619
- InputLabelProps = _ref5.InputLabelProps,
62592
+ _ref5$InputLabelProps = _ref5.InputLabelProps,
62593
+ InputLabelProps = _ref5$InputLabelProps === void 0 ? {
62594
+ shrink: true
62595
+ } : _ref5$InputLabelProps,
62620
62596
  InputLabelHelpProps = _ref5.InputLabelHelpProps,
62621
- inputVariant = _ref5.inputVariant,
62597
+ _ref5$inputVariant = _ref5.inputVariant,
62598
+ inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
62622
62599
  interactiveMode = _ref5.interactiveMode,
62623
62600
  readOnly = _ref5.readOnly,
62624
62601
  others = _objectWithoutProperties$2(_ref5, _excluded$8);
@@ -62668,13 +62645,6 @@ ActiveDatePicker.propTypes = {
62668
62645
  /** 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
62646
  InputLabelHelpProps: PropTypes.object
62670
62647
  };
62671
- ActiveDatePicker.defaultProps = {
62672
- inputVariant: 'outlined',
62673
- InputLabelProps: {
62674
- shrink: true
62675
- },
62676
- inputFormat: 'dd/MM/yyyy'
62677
- };
62678
62648
 
62679
62649
  var _excluded$7 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
62680
62650
  var PREFIX$8 = 'ActiveTimePicker';
@@ -62705,14 +62675,19 @@ var StyledBox$9 = styled$1(Box$1, {
62705
62675
  * Please have look at [Material UI Time Picker](https://mui.com/x/api/date-pickers/time-picker/) for more details
62706
62676
  */
62707
62677
  function ActiveTimePicker(_ref5) {
62708
- var inputFormat = _ref5.inputFormat,
62678
+ var _ref5$inputFormat = _ref5.inputFormat,
62679
+ inputFormat = _ref5$inputFormat === void 0 ? 'hh:mm a' : _ref5$inputFormat,
62709
62680
  label = _ref5.label,
62710
62681
  onChange = _ref5.onChange,
62711
62682
  value = _ref5.value,
62712
62683
  showLabelHelp = _ref5.showLabelHelp,
62713
- InputLabelProps = _ref5.InputLabelProps,
62684
+ _ref5$InputLabelProps = _ref5.InputLabelProps,
62685
+ InputLabelProps = _ref5$InputLabelProps === void 0 ? {
62686
+ shrink: true
62687
+ } : _ref5$InputLabelProps,
62714
62688
  InputLabelHelpProps = _ref5.InputLabelHelpProps,
62715
- inputVariant = _ref5.inputVariant,
62689
+ _ref5$inputVariant = _ref5.inputVariant,
62690
+ inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
62716
62691
  interactiveMode = _ref5.interactiveMode,
62717
62692
  readOnly = _ref5.readOnly,
62718
62693
  others = _objectWithoutProperties$2(_ref5, _excluded$7);
@@ -62762,13 +62737,6 @@ ActiveTimePicker.propTypes = {
62762
62737
  /** 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}} */
62763
62738
  InputLabelHelpProps: PropTypes.object
62764
62739
  };
62765
- ActiveTimePicker.defaultProps = {
62766
- inputVariant: 'outlined',
62767
- InputLabelProps: {
62768
- shrink: true
62769
- },
62770
- inputFormat: 'hh:mm a'
62771
- };
62772
62740
 
62773
62741
  var _excluded$6 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
62774
62742
  var PREFIX$7 = 'ActiveDateTimePicker';
@@ -63472,10 +63440,14 @@ function ActiveAutoComplete(_ref3) {
63472
63440
  readOnly = _ref3.readOnly,
63473
63441
  minLength = _ref3.minLength,
63474
63442
  maxLength = _ref3.maxLength,
63475
- usedItemIds = _ref3.usedItemIds,
63476
- allowContextSpecific = _ref3.allowContextSpecific,
63477
- interactiveMode = _ref3.interactiveMode,
63478
- counter = _ref3.counter,
63443
+ _ref3$usedItemIds = _ref3.usedItemIds,
63444
+ usedItemIds = _ref3$usedItemIds === void 0 ? [] : _ref3$usedItemIds,
63445
+ _ref3$allowContextSpe = _ref3.allowContextSpecific,
63446
+ allowContextSpecific = _ref3$allowContextSpe === void 0 ? false : _ref3$allowContextSpe,
63447
+ _ref3$interactiveMode = _ref3.interactiveMode,
63448
+ interactiveMode = _ref3$interactiveMode === void 0 ? false : _ref3$interactiveMode,
63449
+ _ref3$counter = _ref3.counter,
63450
+ counter = _ref3$counter === void 0 ? false : _ref3$counter,
63479
63451
  placeholder = _ref3.placeholder,
63480
63452
  InputLabelProps = _ref3.InputLabelProps;
63481
63453
  _ref3.props;
@@ -63630,12 +63602,6 @@ ActiveAutoComplete.propTypes = {
63630
63602
  /** Label props applied to input field*/
63631
63603
  InputLabelProps: PropTypes.object
63632
63604
  };
63633
- ActiveAutoComplete.defaultProps = {
63634
- allowContextSpecific: false,
63635
- interactiveMode: false,
63636
- counter: false,
63637
- usedItemIds: []
63638
- };
63639
63605
 
63640
63606
  var StyledBox$1 = styled$1(Box$1)(function () {
63641
63607
  return {
@@ -63656,9 +63622,12 @@ var StyledBox$1 = styled$1(Box$1)(function () {
63656
63622
  */
63657
63623
  function UAriaLive(_ref) {
63658
63624
  var text = _ref.text,
63659
- type = _ref.type,
63660
- role = _ref.role,
63661
- ariaAtomic = _ref.ariaAtomic;
63625
+ _ref$type = _ref.type,
63626
+ type = _ref$type === void 0 ? 'polite' : _ref$type,
63627
+ _ref$role = _ref.role,
63628
+ role = _ref$role === void 0 ? 'log' : _ref$role,
63629
+ _ref$ariaAtomic = _ref.ariaAtomic,
63630
+ ariaAtomic = _ref$ariaAtomic === void 0 ? false : _ref$ariaAtomic;
63662
63631
  return /*#__PURE__*/React$1.createElement(StyledBox$1, {
63663
63632
  "aria-live": type,
63664
63633
  "aria-atomic": ariaAtomic,
@@ -63676,11 +63645,6 @@ UAriaLive.propTypes = {
63676
63645
  /** Aria role */
63677
63646
  role: PropTypes.string
63678
63647
  };
63679
- UAriaLive.defaultProps = {
63680
- type: 'polite',
63681
- role: 'log',
63682
- ariaAtomic: false
63683
- };
63684
63648
 
63685
63649
  var StyledBox = styled$1(Box$1)(function () {
63686
63650
  return {