@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 +140 -152
- package/lib/dev.js.map +1 -1
- package/lib/prod.js +140 -152
- package/lib/prod.js.map +1 -1
- package/package.json +1 -1
package/lib/prod.js
CHANGED
|
@@ -24399,17 +24399,23 @@ var StyledAppBar = styled$1(AppBar$1, {
|
|
|
24399
24399
|
*/
|
|
24400
24400
|
|
|
24401
24401
|
function UHeader(props) {
|
|
24402
|
-
var position = props.position,
|
|
24402
|
+
var _props$position = props.position,
|
|
24403
|
+
position = _props$position === void 0 ? 'fixed' : _props$position,
|
|
24403
24404
|
applicationName = props.applicationName,
|
|
24404
|
-
|
|
24405
|
-
|
|
24405
|
+
_props$showHamburgerM = props.showHamburgerMenu,
|
|
24406
|
+
showHamburgerMenu = _props$showHamburgerM === void 0 ? true : _props$showHamburgerM,
|
|
24407
|
+
_props$hideLogo = props.hideLogo,
|
|
24408
|
+
hideLogo = _props$hideLogo === void 0 ? false : _props$hideLogo,
|
|
24406
24409
|
logo = props.logo,
|
|
24407
|
-
|
|
24408
|
-
|
|
24410
|
+
_props$hideLogoBorder = props.hideLogoBorderLine,
|
|
24411
|
+
hideLogoBorderLine = _props$hideLogoBorder === void 0 ? true : _props$hideLogoBorder,
|
|
24412
|
+
_props$logoUrl = props.logoUrl,
|
|
24413
|
+
logoUrl = _props$logoUrl === void 0 ? '/' : _props$logoUrl,
|
|
24409
24414
|
onLogoClick = props.onLogoClick,
|
|
24410
24415
|
openDrawer = props.openDrawer,
|
|
24411
24416
|
toggleDrawer = props.toggleDrawer,
|
|
24412
|
-
elevation = props.elevation,
|
|
24417
|
+
_props$elevation = props.elevation,
|
|
24418
|
+
elevation = _props$elevation === void 0 ? 4 : _props$elevation,
|
|
24413
24419
|
bgColor = props.bgColor;
|
|
24414
24420
|
var handleUrlClick = function handleUrlClick(e) {
|
|
24415
24421
|
if (onLogoClick) {
|
|
@@ -24532,14 +24538,6 @@ UHeader.propTypes = {
|
|
|
24532
24538
|
/** AppBar elevation value to handle the box shadow effect */
|
|
24533
24539
|
elevation: PropTypes.number
|
|
24534
24540
|
};
|
|
24535
|
-
UHeader.defaultProps = {
|
|
24536
|
-
position: 'fixed',
|
|
24537
|
-
showHamburgerMenu: true,
|
|
24538
|
-
hideLogo: false,
|
|
24539
|
-
logoUrl: '/',
|
|
24540
|
-
hideLogoBorderLine: true,
|
|
24541
|
-
elevation: 4
|
|
24542
|
-
};
|
|
24543
24541
|
|
|
24544
24542
|
var PREFIX$u = 'ULayout';
|
|
24545
24543
|
var classes$u = {
|
|
@@ -24566,7 +24564,7 @@ function ULayout(props) {
|
|
|
24566
24564
|
}, props.children);
|
|
24567
24565
|
}
|
|
24568
24566
|
|
|
24569
|
-
var _excluded$14 = ["headerHeight", "width"];
|
|
24567
|
+
var _excluded$14 = ["headerHeight", "width", "children"];
|
|
24570
24568
|
var PREFIX$t = 'USideBar';
|
|
24571
24569
|
var classes$t = {
|
|
24572
24570
|
drawer: "".concat(PREFIX$t, "-drawer"),
|
|
@@ -24591,10 +24589,13 @@ var StyledBox$k = styled$1(Box$1)(function (props) {
|
|
|
24591
24589
|
*
|
|
24592
24590
|
* USideBar must be wrapped inside the ULayout(Parent Component).
|
|
24593
24591
|
*/
|
|
24594
|
-
function USideBar(
|
|
24595
|
-
var headerHeight =
|
|
24596
|
-
|
|
24597
|
-
|
|
24592
|
+
function USideBar(_ref2) {
|
|
24593
|
+
var _ref2$headerHeight = _ref2.headerHeight,
|
|
24594
|
+
headerHeight = _ref2$headerHeight === void 0 ? 64 : _ref2$headerHeight,
|
|
24595
|
+
_ref2$width = _ref2.width,
|
|
24596
|
+
width = _ref2$width === void 0 ? 300 : _ref2$width,
|
|
24597
|
+
children = _ref2.children,
|
|
24598
|
+
others = _objectWithoutProperties$2(_ref2, _excluded$14);
|
|
24598
24599
|
return /*#__PURE__*/React$1.createElement(StyledBox$k, {
|
|
24599
24600
|
display: {
|
|
24600
24601
|
xs: 'none',
|
|
@@ -24611,7 +24612,7 @@ function USideBar(props) {
|
|
|
24611
24612
|
style: {
|
|
24612
24613
|
minHeight: headerHeight
|
|
24613
24614
|
}
|
|
24614
|
-
}),
|
|
24615
|
+
}), children));
|
|
24615
24616
|
}
|
|
24616
24617
|
USideBar.propTypes = {
|
|
24617
24618
|
/** Height of the header including MainMenu */
|
|
@@ -24621,10 +24622,6 @@ USideBar.propTypes = {
|
|
|
24621
24622
|
*/
|
|
24622
24623
|
width: PropTypes.number
|
|
24623
24624
|
};
|
|
24624
|
-
USideBar.defaultProps = {
|
|
24625
|
-
headerHeight: 64,
|
|
24626
|
-
width: 300
|
|
24627
|
-
};
|
|
24628
24625
|
|
|
24629
24626
|
var PREFIX$s = 'UContent';
|
|
24630
24627
|
var classes$s = {
|
|
@@ -24644,7 +24641,8 @@ var Root$5 = styled$1('main')(function (_ref) {
|
|
|
24644
24641
|
* * UContent must be wrapped inside the ULayout.
|
|
24645
24642
|
*/
|
|
24646
24643
|
function UContent(_ref3) {
|
|
24647
|
-
var headerHeight = _ref3.headerHeight,
|
|
24644
|
+
var _ref3$headerHeight = _ref3.headerHeight,
|
|
24645
|
+
headerHeight = _ref3$headerHeight === void 0 ? 64 : _ref3$headerHeight,
|
|
24648
24646
|
children = _ref3.children;
|
|
24649
24647
|
return /*#__PURE__*/React$1.createElement(Root$5, {
|
|
24650
24648
|
className: classes$s.content
|
|
@@ -24658,9 +24656,6 @@ UContent.propTypes = {
|
|
|
24658
24656
|
/** Height of the header including MainMenu */
|
|
24659
24657
|
headerHeight: PropTypes.number
|
|
24660
24658
|
};
|
|
24661
|
-
UContent.defaultProps = {
|
|
24662
|
-
headerHeight: 64
|
|
24663
|
-
};
|
|
24664
24659
|
|
|
24665
24660
|
var _excluded$13 = ["spinButton", "loading", "variant", "color"];
|
|
24666
24661
|
var PREFIX$r = 'UButton';
|
|
@@ -24689,12 +24684,16 @@ var StyledBox$j = styled$1(Box$1)(function (_ref) {
|
|
|
24689
24684
|
* Custom advanced button with unicef colors and also it has spinning effect in the button
|
|
24690
24685
|
*
|
|
24691
24686
|
* */
|
|
24692
|
-
function UButton(
|
|
24693
|
-
var spinButton =
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24687
|
+
function UButton(_ref3) {
|
|
24688
|
+
var _ref3$spinButton = _ref3.spinButton,
|
|
24689
|
+
spinButton = _ref3$spinButton === void 0 ? false : _ref3$spinButton,
|
|
24690
|
+
_ref3$loading = _ref3.loading,
|
|
24691
|
+
loading = _ref3$loading === void 0 ? false : _ref3$loading,
|
|
24692
|
+
_ref3$variant = _ref3.variant,
|
|
24693
|
+
variant = _ref3$variant === void 0 ? 'contained' : _ref3$variant,
|
|
24694
|
+
_ref3$color = _ref3.color,
|
|
24695
|
+
color = _ref3$color === void 0 ? 'primary' : _ref3$color,
|
|
24696
|
+
others = _objectWithoutProperties$2(_ref3, _excluded$13);
|
|
24698
24697
|
function getVariant(variant) {
|
|
24699
24698
|
switch (variant) {
|
|
24700
24699
|
case 'uDefault':
|
|
@@ -24741,12 +24740,6 @@ UButton.propTypes = {
|
|
|
24741
24740
|
/** color of the button */
|
|
24742
24741
|
color: PropTypes.string
|
|
24743
24742
|
};
|
|
24744
|
-
UButton.defaultProps = {
|
|
24745
|
-
color: 'primary',
|
|
24746
|
-
variant: 'contained',
|
|
24747
|
-
spinButton: false,
|
|
24748
|
-
loading: false
|
|
24749
|
-
};
|
|
24750
24743
|
|
|
24751
24744
|
function _defineProperty(obj, key, value) {
|
|
24752
24745
|
key = toPropertyKey(key);
|
|
@@ -30647,25 +30640,42 @@ var NumberFormat = /*@__PURE__*/(function (superclass) {
|
|
|
30647
30640
|
|
|
30648
30641
|
NumberFormat.defaultProps = defaultProps;
|
|
30649
30642
|
|
|
30650
|
-
var _excluded$Y = ["inputRef", "name", "onChange", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
|
|
30643
|
+
var _excluded$Y = ["inputRef", "name", "value", "onChange", "onBlur", "thousandSeparator", "isNumericString", "allowNegative", "decimalScale", "fixedDecimalScale"];
|
|
30651
30644
|
function PositiveNumberFormat(_ref) {
|
|
30652
30645
|
var inputRef = _ref.inputRef,
|
|
30653
30646
|
name = _ref.name,
|
|
30647
|
+
value = _ref.value,
|
|
30654
30648
|
onChange = _ref.onChange,
|
|
30655
|
-
|
|
30656
|
-
|
|
30657
|
-
|
|
30658
|
-
|
|
30659
|
-
|
|
30649
|
+
_onBlur = _ref.onBlur,
|
|
30650
|
+
_ref$thousandSeparato = _ref.thousandSeparator,
|
|
30651
|
+
thousandSeparator = _ref$thousandSeparato === void 0 ? true : _ref$thousandSeparato,
|
|
30652
|
+
_ref$isNumericString = _ref.isNumericString,
|
|
30653
|
+
isNumericString = _ref$isNumericString === void 0 ? false : _ref$isNumericString,
|
|
30654
|
+
_ref$allowNegative = _ref.allowNegative,
|
|
30655
|
+
allowNegative = _ref$allowNegative === void 0 ? false : _ref$allowNegative,
|
|
30656
|
+
_ref$decimalScale = _ref.decimalScale,
|
|
30657
|
+
decimalScale = _ref$decimalScale === void 0 ? 0 : _ref$decimalScale,
|
|
30658
|
+
_ref$fixedDecimalScal = _ref.fixedDecimalScale,
|
|
30659
|
+
fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? false : _ref$fixedDecimalScal,
|
|
30660
30660
|
other = _objectWithoutProperties$2(_ref, _excluded$Y);
|
|
30661
30661
|
return /*#__PURE__*/React$1.createElement(NumberFormat, _extends$1({}, other, {
|
|
30662
|
+
value: value,
|
|
30662
30663
|
getInputRef: inputRef,
|
|
30663
|
-
|
|
30664
|
+
onBlur: function onBlur() {
|
|
30665
|
+
return _onBlur && _onBlur({
|
|
30666
|
+
target: {
|
|
30667
|
+
name: name,
|
|
30668
|
+
value: value
|
|
30669
|
+
}
|
|
30670
|
+
});
|
|
30671
|
+
},
|
|
30672
|
+
onValueChange: function onValueChange(values, sourceInfo) {
|
|
30664
30673
|
onChange({
|
|
30665
30674
|
target: {
|
|
30666
30675
|
name: name,
|
|
30667
30676
|
value: values.value
|
|
30668
|
-
}
|
|
30677
|
+
},
|
|
30678
|
+
sourceInfo: sourceInfo
|
|
30669
30679
|
});
|
|
30670
30680
|
},
|
|
30671
30681
|
thousandSeparator: thousandSeparator,
|
|
@@ -30676,10 +30686,14 @@ function PositiveNumberFormat(_ref) {
|
|
|
30676
30686
|
}));
|
|
30677
30687
|
}
|
|
30678
30688
|
PositiveNumberFormat.propTypes = {
|
|
30689
|
+
// field value
|
|
30690
|
+
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
30679
30691
|
// Input ref
|
|
30680
30692
|
inputRef: PropTypes.func.isRequired,
|
|
30681
30693
|
// On each onChange value will be formatted
|
|
30682
30694
|
onChange: PropTypes.func.isRequired,
|
|
30695
|
+
// callback function to be called on blur
|
|
30696
|
+
onBlur: PropTypes.func,
|
|
30683
30697
|
// Thousand separator
|
|
30684
30698
|
thousandSeparator: PropTypes.bool,
|
|
30685
30699
|
// Is numeric string
|
|
@@ -30691,13 +30705,6 @@ PositiveNumberFormat.propTypes = {
|
|
|
30691
30705
|
//If true it add 0s to match given decimalScale.
|
|
30692
30706
|
fixedDecimalScale: PropTypes.bool
|
|
30693
30707
|
};
|
|
30694
|
-
PositiveNumberFormat.defaultProps = {
|
|
30695
|
-
thousandSeparator: true,
|
|
30696
|
-
isNumericString: false,
|
|
30697
|
-
allowNegative: false,
|
|
30698
|
-
decimalScale: 0,
|
|
30699
|
-
fixedDecimalScale: false
|
|
30700
|
-
};
|
|
30701
30708
|
|
|
30702
30709
|
var HelpOutline = {};
|
|
30703
30710
|
|
|
@@ -30757,12 +30764,16 @@ var StyledBox$i = styled$1(Box$1)(function (_ref) {
|
|
|
30757
30764
|
});
|
|
30758
30765
|
function InputLabelHelp(_ref3) {
|
|
30759
30766
|
var inputLabel = _ref3.inputLabel,
|
|
30760
|
-
type = _ref3.type,
|
|
30761
|
-
|
|
30767
|
+
_ref3$type = _ref3.type,
|
|
30768
|
+
type = _ref3$type === void 0 ? 'tooltip' : _ref3$type,
|
|
30769
|
+
_ref3$label = _ref3.label,
|
|
30770
|
+
label = _ref3$label === void 0 ? 'Help' : _ref3$label,
|
|
30762
30771
|
link = _ref3.link,
|
|
30763
|
-
icon = _ref3.icon,
|
|
30772
|
+
_ref3$icon = _ref3.icon,
|
|
30773
|
+
icon = _ref3$icon === void 0 ? null : _ref3$icon,
|
|
30764
30774
|
tooltipTitle = _ref3.tooltipTitle,
|
|
30765
|
-
|
|
30775
|
+
_ref3$tooltipPlacemen = _ref3.tooltipPlacement,
|
|
30776
|
+
tooltipPlacement = _ref3$tooltipPlacemen === void 0 ? 'top' : _ref3$tooltipPlacemen;
|
|
30766
30777
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, inputLabel), /*#__PURE__*/React$1.createElement(StyledBox$i, {
|
|
30767
30778
|
className: classes$n.root
|
|
30768
30779
|
}, type === 'tooltip' ? /*#__PURE__*/React$1.createElement(Tooltip$1, {
|
|
@@ -30806,12 +30817,6 @@ InputLabelHelp.propTypes = {
|
|
|
30806
30817
|
// Tooltip placement
|
|
30807
30818
|
tooltipPlacement: PropTypes.string
|
|
30808
30819
|
};
|
|
30809
|
-
InputLabelHelp.defaultProps = {
|
|
30810
|
-
label: 'Help',
|
|
30811
|
-
type: 'tooltip',
|
|
30812
|
-
icon: null,
|
|
30813
|
-
tooltipPlacement: 'top'
|
|
30814
|
-
};
|
|
30815
30820
|
|
|
30816
30821
|
var _excluded$X = ["showLabelHelp", "InputLabelHelpProps", "lineByLineOption", "hideAvatar"];
|
|
30817
30822
|
var styles$1 = {
|
|
@@ -48032,10 +48037,14 @@ var _excluded$d = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
|
|
|
48032
48037
|
* 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.
|
|
48033
48038
|
*/
|
|
48034
48039
|
function ActiveCurrencyField(_ref) {
|
|
48035
|
-
var inputPrefix = _ref.inputPrefix,
|
|
48036
|
-
|
|
48037
|
-
|
|
48038
|
-
|
|
48040
|
+
var _ref$inputPrefix = _ref.inputPrefix,
|
|
48041
|
+
inputPrefix = _ref$inputPrefix === void 0 ? '$ ' : _ref$inputPrefix,
|
|
48042
|
+
_ref$decimalScale = _ref.decimalScale,
|
|
48043
|
+
decimalScale = _ref$decimalScale === void 0 ? 2 : _ref$decimalScale,
|
|
48044
|
+
_ref$fixedDecimalScal = _ref.fixedDecimalScale,
|
|
48045
|
+
fixedDecimalScale = _ref$fixedDecimalScal === void 0 ? true : _ref$fixedDecimalScal,
|
|
48046
|
+
_ref$textAlign = _ref.textAlign,
|
|
48047
|
+
textAlign = _ref$textAlign === void 0 ? 'right' : _ref$textAlign,
|
|
48039
48048
|
inputProps = _ref.inputProps,
|
|
48040
48049
|
props = _objectWithoutProperties$2(_ref, _excluded$d);
|
|
48041
48050
|
return /*#__PURE__*/React$1.createElement(ActiveFormPositiveInteger, _extends$1({
|
|
@@ -48092,12 +48101,6 @@ ActiveCurrencyField.propTypes = {
|
|
|
48092
48101
|
/** Input text align */
|
|
48093
48102
|
textAlign: PropTypes.string
|
|
48094
48103
|
};
|
|
48095
|
-
ActiveCurrencyField.defaultProps = {
|
|
48096
|
-
inputPrefix: '$ ',
|
|
48097
|
-
decimalScale: 2,
|
|
48098
|
-
fixedDecimalScale: true,
|
|
48099
|
-
textAlign: 'right'
|
|
48100
|
-
};
|
|
48101
48104
|
|
|
48102
48105
|
var DeleteOutlined = {};
|
|
48103
48106
|
|
|
@@ -48143,18 +48146,27 @@ var CONFIRMATION_VARIANTS = {
|
|
|
48143
48146
|
* This button displays the confirmation where user has clicked the button
|
|
48144
48147
|
* It has two varint icon/menu item
|
|
48145
48148
|
*/
|
|
48146
|
-
function UConfirmationButton(
|
|
48147
|
-
var onConfirm =
|
|
48148
|
-
id =
|
|
48149
|
-
buttonText =
|
|
48150
|
-
|
|
48151
|
-
|
|
48152
|
-
|
|
48153
|
-
|
|
48154
|
-
|
|
48155
|
-
|
|
48156
|
-
|
|
48157
|
-
|
|
48149
|
+
function UConfirmationButton(_ref3) {
|
|
48150
|
+
var onConfirm = _ref3.onConfirm,
|
|
48151
|
+
id = _ref3.id,
|
|
48152
|
+
_ref3$buttonText = _ref3.buttonText,
|
|
48153
|
+
buttonText = _ref3$buttonText === void 0 ? 'Delete' : _ref3$buttonText,
|
|
48154
|
+
_ref3$enabled = _ref3.enabled,
|
|
48155
|
+
enabled = _ref3$enabled === void 0 ? true : _ref3$enabled,
|
|
48156
|
+
_ref3$variant = _ref3.variant,
|
|
48157
|
+
variant = _ref3$variant === void 0 ? 'icon' : _ref3$variant,
|
|
48158
|
+
_ref3$icon = _ref3.icon,
|
|
48159
|
+
icon = _ref3$icon === void 0 ? /*#__PURE__*/React$1.createElement(default_1$4, null) : _ref3$icon,
|
|
48160
|
+
_ref3$confirmText = _ref3.confirmText,
|
|
48161
|
+
confirmText = _ref3$confirmText === void 0 ? 'Confirm deletion?' : _ref3$confirmText,
|
|
48162
|
+
_ref3$confirmActionTe = _ref3.confirmActionText,
|
|
48163
|
+
confirmActionText = _ref3$confirmActionTe === void 0 ? 'Yes, delete' : _ref3$confirmActionTe,
|
|
48164
|
+
_ref3$cancelText = _ref3.cancelText,
|
|
48165
|
+
cancelText = _ref3$cancelText === void 0 ? 'No' : _ref3$cancelText,
|
|
48166
|
+
_ref3$buttonVariant = _ref3.buttonVariant,
|
|
48167
|
+
buttonVariant = _ref3$buttonVariant === void 0 ? 'text' : _ref3$buttonVariant,
|
|
48168
|
+
_ref3$confirmVariant = _ref3.confirmVariant,
|
|
48169
|
+
confirmVariant = _ref3$confirmVariant === void 0 ? 'menu' : _ref3$confirmVariant;
|
|
48158
48170
|
var _useState = React$1.useState(null),
|
|
48159
48171
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
48160
48172
|
deleteAnchorEl = _useState2[0],
|
|
@@ -48257,17 +48269,6 @@ UConfirmationButton.propTypes = {
|
|
|
48257
48269
|
/** Button variant applied to menuItem button */
|
|
48258
48270
|
buttonVariant: PropTypes.string
|
|
48259
48271
|
};
|
|
48260
|
-
UConfirmationButton.defaultProps = {
|
|
48261
|
-
buttonText: 'Delete',
|
|
48262
|
-
variant: 'icon',
|
|
48263
|
-
enabled: true,
|
|
48264
|
-
confirmText: 'Confirm deletion?',
|
|
48265
|
-
confirmActionText: 'Yes, delete',
|
|
48266
|
-
cancelText: 'No',
|
|
48267
|
-
icon: /*#__PURE__*/React$1.createElement(default_1$4, null),
|
|
48268
|
-
buttonVariant: 'text',
|
|
48269
|
-
confirmVariant: 'menu'
|
|
48270
|
-
};
|
|
48271
48272
|
|
|
48272
48273
|
var PREFIX$g = 'URadioButtons';
|
|
48273
48274
|
var classes$g = {
|
|
@@ -48396,8 +48397,10 @@ function UAsyncBadge(_ref3) {
|
|
|
48396
48397
|
var variant = _ref3.variant,
|
|
48397
48398
|
text = _ref3.text,
|
|
48398
48399
|
visible = _ref3.visible,
|
|
48399
|
-
ariaRole = _ref3.ariaRole,
|
|
48400
|
-
|
|
48400
|
+
_ref3$ariaRole = _ref3.ariaRole,
|
|
48401
|
+
ariaRole = _ref3$ariaRole === void 0 ? 'alert' : _ref3$ariaRole,
|
|
48402
|
+
_ref3$ariaLive = _ref3.ariaLive,
|
|
48403
|
+
ariaLive = _ref3$ariaLive === void 0 ? 'assertive' : _ref3$ariaLive,
|
|
48401
48404
|
onReset = _ref3.onReset;
|
|
48402
48405
|
var chipRef = React$1.useRef();
|
|
48403
48406
|
|
|
@@ -48448,10 +48451,6 @@ UAsyncBadge.propTypes = {
|
|
|
48448
48451
|
/** Aria live of the badge */
|
|
48449
48452
|
ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off'])
|
|
48450
48453
|
};
|
|
48451
|
-
UAsyncBadge.defaultProps = {
|
|
48452
|
-
ariaRole: 'alert',
|
|
48453
|
-
ariaLive: 'assertive'
|
|
48454
|
-
};
|
|
48455
48454
|
|
|
48456
48455
|
var PREFIX$e = 'UPageLoadingProgress';
|
|
48457
48456
|
var classes$e = {
|
|
@@ -48470,8 +48469,9 @@ var StyledBox$c = styled$1(Box$1)(function () {
|
|
|
48470
48469
|
* 1. Display circular progress
|
|
48471
48470
|
* 2. Display text message
|
|
48472
48471
|
*/
|
|
48473
|
-
function UPageLoadingProgress(
|
|
48474
|
-
var text =
|
|
48472
|
+
function UPageLoadingProgress(_ref2) {
|
|
48473
|
+
var _ref2$text = _ref2.text,
|
|
48474
|
+
text = _ref2$text === void 0 ? '' : _ref2$text;
|
|
48475
48475
|
return /*#__PURE__*/React$1.createElement(StyledBox$c, {
|
|
48476
48476
|
display: "flex",
|
|
48477
48477
|
justifyContent: "center",
|
|
@@ -48486,9 +48486,6 @@ UPageLoadingProgress.propTypes = {
|
|
|
48486
48486
|
/** text to display instead of circular progress */
|
|
48487
48487
|
text: PropTypes.string
|
|
48488
48488
|
};
|
|
48489
|
-
UPageLoadingProgress.defaultProps = {
|
|
48490
|
-
text: ''
|
|
48491
|
-
};
|
|
48492
48489
|
|
|
48493
48490
|
/**
|
|
48494
48491
|
* UErrorAlert is a component to display error message to the user
|
|
@@ -48844,12 +48841,18 @@ var StyledBox$b = styled$1(Box$1)(function (_ref) {
|
|
|
48844
48841
|
* If no image url from source app first letter of the user email will be displayed
|
|
48845
48842
|
*/
|
|
48846
48843
|
function UAvatarImage(_ref3) {
|
|
48847
|
-
var userEmail = _ref3.userEmail,
|
|
48848
|
-
|
|
48849
|
-
|
|
48850
|
-
|
|
48851
|
-
|
|
48852
|
-
|
|
48844
|
+
var _ref3$userEmail = _ref3.userEmail,
|
|
48845
|
+
userEmail = _ref3$userEmail === void 0 ? '' : _ref3$userEmail,
|
|
48846
|
+
_ref3$size = _ref3.size,
|
|
48847
|
+
size = _ref3$size === void 0 ? 'default' : _ref3$size,
|
|
48848
|
+
_ref3$mode = _ref3.mode,
|
|
48849
|
+
mode = _ref3$mode === void 0 ? '' : _ref3$mode,
|
|
48850
|
+
_ref3$tooltipText = _ref3.tooltipText,
|
|
48851
|
+
tooltipText = _ref3$tooltipText === void 0 ? '' : _ref3$tooltipText,
|
|
48852
|
+
_ref3$count = _ref3.count,
|
|
48853
|
+
count = _ref3$count === void 0 ? 0 : _ref3$count,
|
|
48854
|
+
_ref3$zIndexValue = _ref3.zIndexValue,
|
|
48855
|
+
zIndexValue = _ref3$zIndexValue === void 0 ? 0 : _ref3$zIndexValue,
|
|
48853
48856
|
loadPhoto = _ref3.loadPhoto;
|
|
48854
48857
|
var _useState = React$1.useState(''),
|
|
48855
48858
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -48893,15 +48896,6 @@ UAvatarImage.propTypes = {
|
|
|
48893
48896
|
/** get photo url from the respective application */
|
|
48894
48897
|
loadPhoto: PropTypes.func
|
|
48895
48898
|
};
|
|
48896
|
-
UAvatarImage.defaultProps = {
|
|
48897
|
-
userEmail: '',
|
|
48898
|
-
size: 'default',
|
|
48899
|
-
// image displays default size
|
|
48900
|
-
mode: '',
|
|
48901
|
-
tooltipText: '',
|
|
48902
|
-
count: 0,
|
|
48903
|
-
zIndexValue: 0
|
|
48904
|
-
};
|
|
48905
48899
|
|
|
48906
48900
|
var _excluded$c = ["id", "type", "label", "options", "onBlur", "helpText", "isMultiple", "searchUsers", "components"];
|
|
48907
48901
|
var getOptions = function getOptions(options) {
|
|
@@ -49390,14 +49384,19 @@ var StyledBox$a = styled$1(Box$1, {
|
|
|
49390
49384
|
* Please have look at [Material UI Date Picker](https://mui.com/x/api/date-pickers/date-picker/) for more details
|
|
49391
49385
|
*/
|
|
49392
49386
|
function ActiveDatePicker(_ref5) {
|
|
49393
|
-
var inputFormat = _ref5.inputFormat,
|
|
49387
|
+
var _ref5$inputFormat = _ref5.inputFormat,
|
|
49388
|
+
inputFormat = _ref5$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref5$inputFormat,
|
|
49394
49389
|
label = _ref5.label,
|
|
49395
49390
|
onChange = _ref5.onChange,
|
|
49396
49391
|
value = _ref5.value,
|
|
49397
49392
|
showLabelHelp = _ref5.showLabelHelp,
|
|
49398
|
-
InputLabelProps = _ref5.InputLabelProps,
|
|
49393
|
+
_ref5$InputLabelProps = _ref5.InputLabelProps,
|
|
49394
|
+
InputLabelProps = _ref5$InputLabelProps === void 0 ? {
|
|
49395
|
+
shrink: true
|
|
49396
|
+
} : _ref5$InputLabelProps,
|
|
49399
49397
|
InputLabelHelpProps = _ref5.InputLabelHelpProps,
|
|
49400
|
-
inputVariant = _ref5.inputVariant,
|
|
49398
|
+
_ref5$inputVariant = _ref5.inputVariant,
|
|
49399
|
+
inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
|
|
49401
49400
|
interactiveMode = _ref5.interactiveMode,
|
|
49402
49401
|
readOnly = _ref5.readOnly,
|
|
49403
49402
|
others = _objectWithoutProperties$2(_ref5, _excluded$8);
|
|
@@ -49447,13 +49446,6 @@ ActiveDatePicker.propTypes = {
|
|
|
49447
49446
|
/** 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}} */
|
|
49448
49447
|
InputLabelHelpProps: PropTypes.object
|
|
49449
49448
|
};
|
|
49450
|
-
ActiveDatePicker.defaultProps = {
|
|
49451
|
-
inputVariant: 'outlined',
|
|
49452
|
-
InputLabelProps: {
|
|
49453
|
-
shrink: true
|
|
49454
|
-
},
|
|
49455
|
-
inputFormat: 'dd/MM/yyyy'
|
|
49456
|
-
};
|
|
49457
49449
|
|
|
49458
49450
|
var _excluded$7 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
|
|
49459
49451
|
var PREFIX$8 = 'ActiveTimePicker';
|
|
@@ -50251,10 +50243,14 @@ function ActiveAutoComplete(_ref3) {
|
|
|
50251
50243
|
readOnly = _ref3.readOnly,
|
|
50252
50244
|
minLength = _ref3.minLength,
|
|
50253
50245
|
maxLength = _ref3.maxLength,
|
|
50254
|
-
usedItemIds = _ref3.usedItemIds,
|
|
50255
|
-
|
|
50256
|
-
|
|
50257
|
-
|
|
50246
|
+
_ref3$usedItemIds = _ref3.usedItemIds,
|
|
50247
|
+
usedItemIds = _ref3$usedItemIds === void 0 ? [] : _ref3$usedItemIds,
|
|
50248
|
+
_ref3$allowContextSpe = _ref3.allowContextSpecific,
|
|
50249
|
+
allowContextSpecific = _ref3$allowContextSpe === void 0 ? false : _ref3$allowContextSpe,
|
|
50250
|
+
_ref3$interactiveMode = _ref3.interactiveMode,
|
|
50251
|
+
interactiveMode = _ref3$interactiveMode === void 0 ? false : _ref3$interactiveMode,
|
|
50252
|
+
_ref3$counter = _ref3.counter,
|
|
50253
|
+
counter = _ref3$counter === void 0 ? false : _ref3$counter,
|
|
50258
50254
|
placeholder = _ref3.placeholder,
|
|
50259
50255
|
InputLabelProps = _ref3.InputLabelProps;
|
|
50260
50256
|
_ref3.props;
|
|
@@ -50409,12 +50405,6 @@ ActiveAutoComplete.propTypes = {
|
|
|
50409
50405
|
/** Label props applied to input field*/
|
|
50410
50406
|
InputLabelProps: PropTypes.object
|
|
50411
50407
|
};
|
|
50412
|
-
ActiveAutoComplete.defaultProps = {
|
|
50413
|
-
allowContextSpecific: false,
|
|
50414
|
-
interactiveMode: false,
|
|
50415
|
-
counter: false,
|
|
50416
|
-
usedItemIds: []
|
|
50417
|
-
};
|
|
50418
50408
|
|
|
50419
50409
|
var StyledBox$1 = styled$1(Box$1)(function () {
|
|
50420
50410
|
return {
|
|
@@ -50435,9 +50425,12 @@ var StyledBox$1 = styled$1(Box$1)(function () {
|
|
|
50435
50425
|
*/
|
|
50436
50426
|
function UAriaLive(_ref) {
|
|
50437
50427
|
var text = _ref.text,
|
|
50438
|
-
type = _ref.type,
|
|
50439
|
-
|
|
50440
|
-
|
|
50428
|
+
_ref$type = _ref.type,
|
|
50429
|
+
type = _ref$type === void 0 ? 'polite' : _ref$type,
|
|
50430
|
+
_ref$role = _ref.role,
|
|
50431
|
+
role = _ref$role === void 0 ? 'log' : _ref$role,
|
|
50432
|
+
_ref$ariaAtomic = _ref.ariaAtomic,
|
|
50433
|
+
ariaAtomic = _ref$ariaAtomic === void 0 ? false : _ref$ariaAtomic;
|
|
50441
50434
|
return /*#__PURE__*/React$1.createElement(StyledBox$1, {
|
|
50442
50435
|
"aria-live": type,
|
|
50443
50436
|
"aria-atomic": ariaAtomic,
|
|
@@ -50455,11 +50448,6 @@ UAriaLive.propTypes = {
|
|
|
50455
50448
|
/** Aria role */
|
|
50456
50449
|
role: PropTypes.string
|
|
50457
50450
|
};
|
|
50458
|
-
UAriaLive.defaultProps = {
|
|
50459
|
-
type: 'polite',
|
|
50460
|
-
role: 'log',
|
|
50461
|
-
ariaAtomic: false
|
|
50462
|
-
};
|
|
50463
50451
|
|
|
50464
50452
|
var StyledBox = styled$1(Box$1)(function () {
|
|
50465
50453
|
return {
|