@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 +137 -150
- package/lib/dev.js.map +1 -1
- package/lib/prod.js +137 -150
- 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,19 +30640,35 @@ 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,
|
|
30664
|
+
onBlur: function onBlur() {
|
|
30665
|
+
return _onBlur && _onBlur({
|
|
30666
|
+
target: {
|
|
30667
|
+
name: name,
|
|
30668
|
+
value: value
|
|
30669
|
+
}
|
|
30670
|
+
});
|
|
30671
|
+
},
|
|
30663
30672
|
onValueChange: function onValueChange(values, sourceInfo) {
|
|
30664
30673
|
onChange({
|
|
30665
30674
|
target: {
|
|
@@ -30677,10 +30686,14 @@ function PositiveNumberFormat(_ref) {
|
|
|
30677
30686
|
}));
|
|
30678
30687
|
}
|
|
30679
30688
|
PositiveNumberFormat.propTypes = {
|
|
30689
|
+
// field value
|
|
30690
|
+
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
30680
30691
|
// Input ref
|
|
30681
30692
|
inputRef: PropTypes.func.isRequired,
|
|
30682
30693
|
// On each onChange value will be formatted
|
|
30683
30694
|
onChange: PropTypes.func.isRequired,
|
|
30695
|
+
// callback function to be called on blur
|
|
30696
|
+
onBlur: PropTypes.func,
|
|
30684
30697
|
// Thousand separator
|
|
30685
30698
|
thousandSeparator: PropTypes.bool,
|
|
30686
30699
|
// Is numeric string
|
|
@@ -30692,13 +30705,6 @@ PositiveNumberFormat.propTypes = {
|
|
|
30692
30705
|
//If true it add 0s to match given decimalScale.
|
|
30693
30706
|
fixedDecimalScale: PropTypes.bool
|
|
30694
30707
|
};
|
|
30695
|
-
PositiveNumberFormat.defaultProps = {
|
|
30696
|
-
thousandSeparator: true,
|
|
30697
|
-
isNumericString: false,
|
|
30698
|
-
allowNegative: false,
|
|
30699
|
-
decimalScale: 0,
|
|
30700
|
-
fixedDecimalScale: false
|
|
30701
|
-
};
|
|
30702
30708
|
|
|
30703
30709
|
var HelpOutline = {};
|
|
30704
30710
|
|
|
@@ -30758,12 +30764,16 @@ var StyledBox$i = styled$1(Box$1)(function (_ref) {
|
|
|
30758
30764
|
});
|
|
30759
30765
|
function InputLabelHelp(_ref3) {
|
|
30760
30766
|
var inputLabel = _ref3.inputLabel,
|
|
30761
|
-
type = _ref3.type,
|
|
30762
|
-
|
|
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,
|
|
30763
30771
|
link = _ref3.link,
|
|
30764
|
-
icon = _ref3.icon,
|
|
30772
|
+
_ref3$icon = _ref3.icon,
|
|
30773
|
+
icon = _ref3$icon === void 0 ? null : _ref3$icon,
|
|
30765
30774
|
tooltipTitle = _ref3.tooltipTitle,
|
|
30766
|
-
|
|
30775
|
+
_ref3$tooltipPlacemen = _ref3.tooltipPlacement,
|
|
30776
|
+
tooltipPlacement = _ref3$tooltipPlacemen === void 0 ? 'top' : _ref3$tooltipPlacemen;
|
|
30767
30777
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, inputLabel), /*#__PURE__*/React$1.createElement(StyledBox$i, {
|
|
30768
30778
|
className: classes$n.root
|
|
30769
30779
|
}, type === 'tooltip' ? /*#__PURE__*/React$1.createElement(Tooltip$1, {
|
|
@@ -30807,12 +30817,6 @@ InputLabelHelp.propTypes = {
|
|
|
30807
30817
|
// Tooltip placement
|
|
30808
30818
|
tooltipPlacement: PropTypes.string
|
|
30809
30819
|
};
|
|
30810
|
-
InputLabelHelp.defaultProps = {
|
|
30811
|
-
label: 'Help',
|
|
30812
|
-
type: 'tooltip',
|
|
30813
|
-
icon: null,
|
|
30814
|
-
tooltipPlacement: 'top'
|
|
30815
|
-
};
|
|
30816
30820
|
|
|
30817
30821
|
var _excluded$X = ["showLabelHelp", "InputLabelHelpProps", "lineByLineOption", "hideAvatar"];
|
|
30818
30822
|
var styles$1 = {
|
|
@@ -48033,10 +48037,14 @@ var _excluded$d = ["inputPrefix", "decimalScale", "fixedDecimalScale", "textAlig
|
|
|
48033
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.
|
|
48034
48038
|
*/
|
|
48035
48039
|
function ActiveCurrencyField(_ref) {
|
|
48036
|
-
var inputPrefix = _ref.inputPrefix,
|
|
48037
|
-
|
|
48038
|
-
|
|
48039
|
-
|
|
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,
|
|
48040
48048
|
inputProps = _ref.inputProps,
|
|
48041
48049
|
props = _objectWithoutProperties$2(_ref, _excluded$d);
|
|
48042
48050
|
return /*#__PURE__*/React$1.createElement(ActiveFormPositiveInteger, _extends$1({
|
|
@@ -48093,12 +48101,6 @@ ActiveCurrencyField.propTypes = {
|
|
|
48093
48101
|
/** Input text align */
|
|
48094
48102
|
textAlign: PropTypes.string
|
|
48095
48103
|
};
|
|
48096
|
-
ActiveCurrencyField.defaultProps = {
|
|
48097
|
-
inputPrefix: '$ ',
|
|
48098
|
-
decimalScale: 2,
|
|
48099
|
-
fixedDecimalScale: true,
|
|
48100
|
-
textAlign: 'right'
|
|
48101
|
-
};
|
|
48102
48104
|
|
|
48103
48105
|
var DeleteOutlined = {};
|
|
48104
48106
|
|
|
@@ -48144,18 +48146,27 @@ var CONFIRMATION_VARIANTS = {
|
|
|
48144
48146
|
* This button displays the confirmation where user has clicked the button
|
|
48145
48147
|
* It has two varint icon/menu item
|
|
48146
48148
|
*/
|
|
48147
|
-
function UConfirmationButton(
|
|
48148
|
-
var onConfirm =
|
|
48149
|
-
id =
|
|
48150
|
-
buttonText =
|
|
48151
|
-
|
|
48152
|
-
|
|
48153
|
-
|
|
48154
|
-
|
|
48155
|
-
|
|
48156
|
-
|
|
48157
|
-
|
|
48158
|
-
|
|
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;
|
|
48159
48170
|
var _useState = React$1.useState(null),
|
|
48160
48171
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
48161
48172
|
deleteAnchorEl = _useState2[0],
|
|
@@ -48258,17 +48269,6 @@ UConfirmationButton.propTypes = {
|
|
|
48258
48269
|
/** Button variant applied to menuItem button */
|
|
48259
48270
|
buttonVariant: PropTypes.string
|
|
48260
48271
|
};
|
|
48261
|
-
UConfirmationButton.defaultProps = {
|
|
48262
|
-
buttonText: 'Delete',
|
|
48263
|
-
variant: 'icon',
|
|
48264
|
-
enabled: true,
|
|
48265
|
-
confirmText: 'Confirm deletion?',
|
|
48266
|
-
confirmActionText: 'Yes, delete',
|
|
48267
|
-
cancelText: 'No',
|
|
48268
|
-
icon: /*#__PURE__*/React$1.createElement(default_1$4, null),
|
|
48269
|
-
buttonVariant: 'text',
|
|
48270
|
-
confirmVariant: 'menu'
|
|
48271
|
-
};
|
|
48272
48272
|
|
|
48273
48273
|
var PREFIX$g = 'URadioButtons';
|
|
48274
48274
|
var classes$g = {
|
|
@@ -48397,8 +48397,10 @@ function UAsyncBadge(_ref3) {
|
|
|
48397
48397
|
var variant = _ref3.variant,
|
|
48398
48398
|
text = _ref3.text,
|
|
48399
48399
|
visible = _ref3.visible,
|
|
48400
|
-
ariaRole = _ref3.ariaRole,
|
|
48401
|
-
|
|
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,
|
|
48402
48404
|
onReset = _ref3.onReset;
|
|
48403
48405
|
var chipRef = React$1.useRef();
|
|
48404
48406
|
|
|
@@ -48449,10 +48451,6 @@ UAsyncBadge.propTypes = {
|
|
|
48449
48451
|
/** Aria live of the badge */
|
|
48450
48452
|
ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off'])
|
|
48451
48453
|
};
|
|
48452
|
-
UAsyncBadge.defaultProps = {
|
|
48453
|
-
ariaRole: 'alert',
|
|
48454
|
-
ariaLive: 'assertive'
|
|
48455
|
-
};
|
|
48456
48454
|
|
|
48457
48455
|
var PREFIX$e = 'UPageLoadingProgress';
|
|
48458
48456
|
var classes$e = {
|
|
@@ -48471,8 +48469,9 @@ var StyledBox$c = styled$1(Box$1)(function () {
|
|
|
48471
48469
|
* 1. Display circular progress
|
|
48472
48470
|
* 2. Display text message
|
|
48473
48471
|
*/
|
|
48474
|
-
function UPageLoadingProgress(
|
|
48475
|
-
var text =
|
|
48472
|
+
function UPageLoadingProgress(_ref2) {
|
|
48473
|
+
var _ref2$text = _ref2.text,
|
|
48474
|
+
text = _ref2$text === void 0 ? '' : _ref2$text;
|
|
48476
48475
|
return /*#__PURE__*/React$1.createElement(StyledBox$c, {
|
|
48477
48476
|
display: "flex",
|
|
48478
48477
|
justifyContent: "center",
|
|
@@ -48487,9 +48486,6 @@ UPageLoadingProgress.propTypes = {
|
|
|
48487
48486
|
/** text to display instead of circular progress */
|
|
48488
48487
|
text: PropTypes.string
|
|
48489
48488
|
};
|
|
48490
|
-
UPageLoadingProgress.defaultProps = {
|
|
48491
|
-
text: ''
|
|
48492
|
-
};
|
|
48493
48489
|
|
|
48494
48490
|
/**
|
|
48495
48491
|
* UErrorAlert is a component to display error message to the user
|
|
@@ -48845,12 +48841,18 @@ var StyledBox$b = styled$1(Box$1)(function (_ref) {
|
|
|
48845
48841
|
* If no image url from source app first letter of the user email will be displayed
|
|
48846
48842
|
*/
|
|
48847
48843
|
function UAvatarImage(_ref3) {
|
|
48848
|
-
var userEmail = _ref3.userEmail,
|
|
48849
|
-
|
|
48850
|
-
|
|
48851
|
-
|
|
48852
|
-
|
|
48853
|
-
|
|
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,
|
|
48854
48856
|
loadPhoto = _ref3.loadPhoto;
|
|
48855
48857
|
var _useState = React$1.useState(''),
|
|
48856
48858
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -48894,15 +48896,6 @@ UAvatarImage.propTypes = {
|
|
|
48894
48896
|
/** get photo url from the respective application */
|
|
48895
48897
|
loadPhoto: PropTypes.func
|
|
48896
48898
|
};
|
|
48897
|
-
UAvatarImage.defaultProps = {
|
|
48898
|
-
userEmail: '',
|
|
48899
|
-
size: 'default',
|
|
48900
|
-
// image displays default size
|
|
48901
|
-
mode: '',
|
|
48902
|
-
tooltipText: '',
|
|
48903
|
-
count: 0,
|
|
48904
|
-
zIndexValue: 0
|
|
48905
|
-
};
|
|
48906
48899
|
|
|
48907
48900
|
var _excluded$c = ["id", "type", "label", "options", "onBlur", "helpText", "isMultiple", "searchUsers", "components"];
|
|
48908
48901
|
var getOptions = function getOptions(options) {
|
|
@@ -49391,14 +49384,19 @@ var StyledBox$a = styled$1(Box$1, {
|
|
|
49391
49384
|
* Please have look at [Material UI Date Picker](https://mui.com/x/api/date-pickers/date-picker/) for more details
|
|
49392
49385
|
*/
|
|
49393
49386
|
function ActiveDatePicker(_ref5) {
|
|
49394
|
-
var inputFormat = _ref5.inputFormat,
|
|
49387
|
+
var _ref5$inputFormat = _ref5.inputFormat,
|
|
49388
|
+
inputFormat = _ref5$inputFormat === void 0 ? 'dd/MM/yyyy' : _ref5$inputFormat,
|
|
49395
49389
|
label = _ref5.label,
|
|
49396
49390
|
onChange = _ref5.onChange,
|
|
49397
49391
|
value = _ref5.value,
|
|
49398
49392
|
showLabelHelp = _ref5.showLabelHelp,
|
|
49399
|
-
InputLabelProps = _ref5.InputLabelProps,
|
|
49393
|
+
_ref5$InputLabelProps = _ref5.InputLabelProps,
|
|
49394
|
+
InputLabelProps = _ref5$InputLabelProps === void 0 ? {
|
|
49395
|
+
shrink: true
|
|
49396
|
+
} : _ref5$InputLabelProps,
|
|
49400
49397
|
InputLabelHelpProps = _ref5.InputLabelHelpProps,
|
|
49401
|
-
inputVariant = _ref5.inputVariant,
|
|
49398
|
+
_ref5$inputVariant = _ref5.inputVariant,
|
|
49399
|
+
inputVariant = _ref5$inputVariant === void 0 ? 'outlined' : _ref5$inputVariant,
|
|
49402
49400
|
interactiveMode = _ref5.interactiveMode,
|
|
49403
49401
|
readOnly = _ref5.readOnly,
|
|
49404
49402
|
others = _objectWithoutProperties$2(_ref5, _excluded$8);
|
|
@@ -49448,13 +49446,6 @@ ActiveDatePicker.propTypes = {
|
|
|
49448
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}} */
|
|
49449
49447
|
InputLabelHelpProps: PropTypes.object
|
|
49450
49448
|
};
|
|
49451
|
-
ActiveDatePicker.defaultProps = {
|
|
49452
|
-
inputVariant: 'outlined',
|
|
49453
|
-
InputLabelProps: {
|
|
49454
|
-
shrink: true
|
|
49455
|
-
},
|
|
49456
|
-
inputFormat: 'dd/MM/yyyy'
|
|
49457
|
-
};
|
|
49458
49449
|
|
|
49459
49450
|
var _excluded$7 = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "InputLabelProps", "InputLabelHelpProps", "inputVariant", "interactiveMode", "readOnly"];
|
|
49460
49451
|
var PREFIX$8 = 'ActiveTimePicker';
|
|
@@ -50252,10 +50243,14 @@ function ActiveAutoComplete(_ref3) {
|
|
|
50252
50243
|
readOnly = _ref3.readOnly,
|
|
50253
50244
|
minLength = _ref3.minLength,
|
|
50254
50245
|
maxLength = _ref3.maxLength,
|
|
50255
|
-
usedItemIds = _ref3.usedItemIds,
|
|
50256
|
-
|
|
50257
|
-
|
|
50258
|
-
|
|
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,
|
|
50259
50254
|
placeholder = _ref3.placeholder,
|
|
50260
50255
|
InputLabelProps = _ref3.InputLabelProps;
|
|
50261
50256
|
_ref3.props;
|
|
@@ -50410,12 +50405,6 @@ ActiveAutoComplete.propTypes = {
|
|
|
50410
50405
|
/** Label props applied to input field*/
|
|
50411
50406
|
InputLabelProps: PropTypes.object
|
|
50412
50407
|
};
|
|
50413
|
-
ActiveAutoComplete.defaultProps = {
|
|
50414
|
-
allowContextSpecific: false,
|
|
50415
|
-
interactiveMode: false,
|
|
50416
|
-
counter: false,
|
|
50417
|
-
usedItemIds: []
|
|
50418
|
-
};
|
|
50419
50408
|
|
|
50420
50409
|
var StyledBox$1 = styled$1(Box$1)(function () {
|
|
50421
50410
|
return {
|
|
@@ -50436,9 +50425,12 @@ var StyledBox$1 = styled$1(Box$1)(function () {
|
|
|
50436
50425
|
*/
|
|
50437
50426
|
function UAriaLive(_ref) {
|
|
50438
50427
|
var text = _ref.text,
|
|
50439
|
-
type = _ref.type,
|
|
50440
|
-
|
|
50441
|
-
|
|
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;
|
|
50442
50434
|
return /*#__PURE__*/React$1.createElement(StyledBox$1, {
|
|
50443
50435
|
"aria-live": type,
|
|
50444
50436
|
"aria-atomic": ariaAtomic,
|
|
@@ -50456,11 +50448,6 @@ UAriaLive.propTypes = {
|
|
|
50456
50448
|
/** Aria role */
|
|
50457
50449
|
role: PropTypes.string
|
|
50458
50450
|
};
|
|
50459
|
-
UAriaLive.defaultProps = {
|
|
50460
|
-
type: 'polite',
|
|
50461
|
-
role: 'log',
|
|
50462
|
-
ariaAtomic: false
|
|
50463
|
-
};
|
|
50464
50451
|
|
|
50465
50452
|
var StyledBox = styled$1(Box$1)(function () {
|
|
50466
50453
|
return {
|