@unicef/material-ui 0.10.0 → 0.11.1
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 +115 -8
- package/lib/dev.js.map +1 -1
- package/lib/prod.js +115 -8
- package/lib/prod.js.map +1 -1
- package/package.json +1 -1
package/lib/prod.js
CHANGED
|
@@ -32458,13 +32458,13 @@ var useStyles$6 = makeStyles$1(function (theme) {
|
|
|
32458
32458
|
display: 'inline-flex',
|
|
32459
32459
|
marginRight: theme.spacing(1),
|
|
32460
32460
|
'& .MuiAvatar-root': {
|
|
32461
|
-
height:
|
|
32462
|
-
width:
|
|
32461
|
+
height: 32,
|
|
32462
|
+
width: 32
|
|
32463
32463
|
}
|
|
32464
32464
|
},
|
|
32465
32465
|
avatar: {
|
|
32466
|
-
height:
|
|
32467
|
-
width:
|
|
32466
|
+
height: 32,
|
|
32467
|
+
width: 32,
|
|
32468
32468
|
marginRight: theme.spacing(1)
|
|
32469
32469
|
},
|
|
32470
32470
|
optionLabel: {
|
|
@@ -34047,6 +34047,11 @@ var useStyles$8 = makeStyles$1(function (theme) {
|
|
|
34047
34047
|
},
|
|
34048
34048
|
linkHelpLabel: {
|
|
34049
34049
|
paddingLeft: theme.spacing(0.5)
|
|
34050
|
+
},
|
|
34051
|
+
tooltipPopper: {
|
|
34052
|
+
'& a': {
|
|
34053
|
+
color: theme.palette.common.white
|
|
34054
|
+
}
|
|
34050
34055
|
}
|
|
34051
34056
|
};
|
|
34052
34057
|
});
|
|
@@ -34071,7 +34076,12 @@ function InputLabelHelp(_ref) {
|
|
|
34071
34076
|
),
|
|
34072
34077
|
type === 'tooltip' ? React__default.createElement(
|
|
34073
34078
|
Tooltip$1,
|
|
34074
|
-
{
|
|
34079
|
+
{
|
|
34080
|
+
interactive: true,
|
|
34081
|
+
title: React__default.createElement('div', { dangerouslySetInnerHTML: { __html: tooltipTitle } }),
|
|
34082
|
+
placement: tooltipPlacement,
|
|
34083
|
+
classes: { popper: classes.tooltipPopper }
|
|
34084
|
+
},
|
|
34075
34085
|
React__default.createElement(
|
|
34076
34086
|
'span',
|
|
34077
34087
|
{ className: classes.root },
|
|
@@ -34668,6 +34678,85 @@ UPeoplePicker.defaultProps = {
|
|
|
34668
34678
|
InputLabelHelpProps: {}
|
|
34669
34679
|
};
|
|
34670
34680
|
|
|
34681
|
+
/**
|
|
34682
|
+
* UIconPicker is a control for selecting icon from a list. Has the features below:
|
|
34683
|
+
*
|
|
34684
|
+
* * Select a single icon from a list.
|
|
34685
|
+
* * Select multiple icon from a list.
|
|
34686
|
+
* * Autocomplete.
|
|
34687
|
+
* * Clear current selection.
|
|
34688
|
+
*
|
|
34689
|
+
*/
|
|
34690
|
+
function UIconPicker(props) {
|
|
34691
|
+
return React__default.createElement(USelectPicker, _extends$1({}, props, { hideAvatar: false }));
|
|
34692
|
+
}
|
|
34693
|
+
|
|
34694
|
+
UIconPicker.propTypes = {
|
|
34695
|
+
/** Text to display when nothing is selected. */
|
|
34696
|
+
placeholder: PropTypes__default.string,
|
|
34697
|
+
/** Enables the multiple select. Default is false. */
|
|
34698
|
+
isMulti: PropTypes__default.bool,
|
|
34699
|
+
/** Label of the picker. */
|
|
34700
|
+
label: PropTypes__default.string,
|
|
34701
|
+
/** Variant of TextField to use. Default is outlined.*/
|
|
34702
|
+
variant: PropTypes__default.oneOf(['outlined', 'standard', 'filled']),
|
|
34703
|
+
/** Id to assign to the input element */
|
|
34704
|
+
inputId: PropTypes__default.string,
|
|
34705
|
+
/** Callback fired when the value is changed.
|
|
34706
|
+
*
|
|
34707
|
+
* `event`:
|
|
34708
|
+
* The event source of the callback. You can pull out the new value by accessing "event.target.value".
|
|
34709
|
+
*/
|
|
34710
|
+
onChange: PropTypes__default.func,
|
|
34711
|
+
/** Array of to display select on the dropdown.
|
|
34712
|
+
* Each option is an object with the following attributes:
|
|
34713
|
+
*
|
|
34714
|
+
* ```
|
|
34715
|
+
* {
|
|
34716
|
+
* value: 1,
|
|
34717
|
+
* label: 'Sample 1', //First line, typically the name
|
|
34718
|
+
* image: 'svg', // image svg string
|
|
34719
|
+
* avatar: ( //Avatar object to display.
|
|
34720
|
+
* <Avatar
|
|
34721
|
+
* src={'blob:http://...'} // SVG Icon
|
|
34722
|
+
* />
|
|
34723
|
+
* ),
|
|
34724
|
+
* }
|
|
34725
|
+
*```
|
|
34726
|
+
*
|
|
34727
|
+
*/
|
|
34728
|
+
options: PropTypes__default.array,
|
|
34729
|
+
/** Props passed to the TextField used in the picker. Use any value of Material UI TextField API.
|
|
34730
|
+
*
|
|
34731
|
+
* `TextFieldProps={{helperText:"text", onChange: {textFieldTargetValue}, inputProps:{className: classes.textField}}}`
|
|
34732
|
+
*
|
|
34733
|
+
*/
|
|
34734
|
+
TextFieldProps: PropTypes__default.object,
|
|
34735
|
+
/**
|
|
34736
|
+
* To show or hide the no options message on empty texfield value
|
|
34737
|
+
*/
|
|
34738
|
+
showNoOptionsWithEmptyTextField: PropTypes__default.bool,
|
|
34739
|
+
/**
|
|
34740
|
+
* To display error message on loading options
|
|
34741
|
+
*/
|
|
34742
|
+
errorLoadingOptions: PropTypes__default.string,
|
|
34743
|
+
/** To customize the components of select */
|
|
34744
|
+
components: PropTypes__default.object,
|
|
34745
|
+
/** Show label help */
|
|
34746
|
+
showLabelHelp: PropTypes__default.bool,
|
|
34747
|
+
/** 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}} */
|
|
34748
|
+
InputLabelHelpProps: PropTypes__default.object
|
|
34749
|
+
};
|
|
34750
|
+
|
|
34751
|
+
UIconPicker.defaultProps = {
|
|
34752
|
+
isMulti: false,
|
|
34753
|
+
placeholder: 'Select...',
|
|
34754
|
+
variant: 'outlined',
|
|
34755
|
+
showNoOptionsWithEmptyTextField: true,
|
|
34756
|
+
showLabelHelp: false,
|
|
34757
|
+
InputLabelHelpProps: {}
|
|
34758
|
+
};
|
|
34759
|
+
|
|
34671
34760
|
function toInteger(dirtyNumber) {
|
|
34672
34761
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
34673
34762
|
return NaN;
|
|
@@ -50870,9 +50959,22 @@ var filter$1 = createFilterOptions();
|
|
|
50870
50959
|
|
|
50871
50960
|
var useStyles$z = makeStyles$1(function (theme) {
|
|
50872
50961
|
return {
|
|
50873
|
-
|
|
50962
|
+
root: {
|
|
50874
50963
|
marginTop: theme.spacing(2),
|
|
50875
|
-
width: '100%'
|
|
50964
|
+
width: '100%',
|
|
50965
|
+
'& .UPopupIndicator': {
|
|
50966
|
+
visibility: 'hidden'
|
|
50967
|
+
},
|
|
50968
|
+
'&:hover': {
|
|
50969
|
+
'& .UPopupIndicator': {
|
|
50970
|
+
visibility: 'visible'
|
|
50971
|
+
}
|
|
50972
|
+
}
|
|
50973
|
+
},
|
|
50974
|
+
focused: {
|
|
50975
|
+
'& .UPopupIndicator': {
|
|
50976
|
+
visibility: 'visible'
|
|
50977
|
+
}
|
|
50876
50978
|
}
|
|
50877
50979
|
};
|
|
50878
50980
|
});
|
|
@@ -50996,7 +51098,11 @@ function ActiveAutoComplete(_ref) {
|
|
|
50996
51098
|
return option.text;
|
|
50997
51099
|
},
|
|
50998
51100
|
onBlur: handleOnBlur,
|
|
50999
|
-
|
|
51101
|
+
classes: {
|
|
51102
|
+
root: classes.root,
|
|
51103
|
+
focused: classes.focused,
|
|
51104
|
+
popupIndicator: 'UPopupIndicator'
|
|
51105
|
+
},
|
|
51000
51106
|
freeSolo: allowContextSpecific,
|
|
51001
51107
|
renderInput: function renderInput(params) {
|
|
51002
51108
|
return React__default.createElement(ActiveFormTextField, _extends$1({}, params, {
|
|
@@ -51093,6 +51199,7 @@ exports.UHeader = UHeader;
|
|
|
51093
51199
|
exports.UHeaderLeftMenu = UHeaderLeftMenu;
|
|
51094
51200
|
exports.UHeaderMainMenu = UHeaderMainMenu;
|
|
51095
51201
|
exports.UHeaderRightButtons = UHeaderRightButtons;
|
|
51202
|
+
exports.UIconPicker = UIconPicker;
|
|
51096
51203
|
exports.UInfiniteScroll = UInfiniteScroll;
|
|
51097
51204
|
exports.UKeyboardDatePicker = UKeyboardDatePicker;
|
|
51098
51205
|
exports.UKeyboardDateTimePicker = UKeyboardDateTimePicker;
|