@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/dev.js
CHANGED
|
@@ -38610,13 +38610,13 @@ var useStyles$6 = makeStyles$1(function (theme) {
|
|
|
38610
38610
|
display: 'inline-flex',
|
|
38611
38611
|
marginRight: theme.spacing(1),
|
|
38612
38612
|
'& .MuiAvatar-root': {
|
|
38613
|
-
height:
|
|
38614
|
-
width:
|
|
38613
|
+
height: 32,
|
|
38614
|
+
width: 32
|
|
38615
38615
|
}
|
|
38616
38616
|
},
|
|
38617
38617
|
avatar: {
|
|
38618
|
-
height:
|
|
38619
|
-
width:
|
|
38618
|
+
height: 32,
|
|
38619
|
+
width: 32,
|
|
38620
38620
|
marginRight: theme.spacing(1)
|
|
38621
38621
|
},
|
|
38622
38622
|
optionLabel: {
|
|
@@ -40199,6 +40199,11 @@ var useStyles$8 = makeStyles$1(function (theme) {
|
|
|
40199
40199
|
},
|
|
40200
40200
|
linkHelpLabel: {
|
|
40201
40201
|
paddingLeft: theme.spacing(0.5)
|
|
40202
|
+
},
|
|
40203
|
+
tooltipPopper: {
|
|
40204
|
+
'& a': {
|
|
40205
|
+
color: theme.palette.common.white
|
|
40206
|
+
}
|
|
40202
40207
|
}
|
|
40203
40208
|
};
|
|
40204
40209
|
});
|
|
@@ -40223,7 +40228,12 @@ function InputLabelHelp(_ref) {
|
|
|
40223
40228
|
),
|
|
40224
40229
|
type === 'tooltip' ? React__default.createElement(
|
|
40225
40230
|
Tooltip$1,
|
|
40226
|
-
{
|
|
40231
|
+
{
|
|
40232
|
+
interactive: true,
|
|
40233
|
+
title: React__default.createElement('div', { dangerouslySetInnerHTML: { __html: tooltipTitle } }),
|
|
40234
|
+
placement: tooltipPlacement,
|
|
40235
|
+
classes: { popper: classes.tooltipPopper }
|
|
40236
|
+
},
|
|
40227
40237
|
React__default.createElement(
|
|
40228
40238
|
'span',
|
|
40229
40239
|
{ className: classes.root },
|
|
@@ -40820,6 +40830,85 @@ UPeoplePicker.defaultProps = {
|
|
|
40820
40830
|
InputLabelHelpProps: {}
|
|
40821
40831
|
};
|
|
40822
40832
|
|
|
40833
|
+
/**
|
|
40834
|
+
* UIconPicker is a control for selecting icon from a list. Has the features below:
|
|
40835
|
+
*
|
|
40836
|
+
* * Select a single icon from a list.
|
|
40837
|
+
* * Select multiple icon from a list.
|
|
40838
|
+
* * Autocomplete.
|
|
40839
|
+
* * Clear current selection.
|
|
40840
|
+
*
|
|
40841
|
+
*/
|
|
40842
|
+
function UIconPicker(props) {
|
|
40843
|
+
return React__default.createElement(USelectPicker, _extends$1({}, props, { hideAvatar: false }));
|
|
40844
|
+
}
|
|
40845
|
+
|
|
40846
|
+
UIconPicker.propTypes = {
|
|
40847
|
+
/** Text to display when nothing is selected. */
|
|
40848
|
+
placeholder: PropTypes__default.string,
|
|
40849
|
+
/** Enables the multiple select. Default is false. */
|
|
40850
|
+
isMulti: PropTypes__default.bool,
|
|
40851
|
+
/** Label of the picker. */
|
|
40852
|
+
label: PropTypes__default.string,
|
|
40853
|
+
/** Variant of TextField to use. Default is outlined.*/
|
|
40854
|
+
variant: PropTypes__default.oneOf(['outlined', 'standard', 'filled']),
|
|
40855
|
+
/** Id to assign to the input element */
|
|
40856
|
+
inputId: PropTypes__default.string,
|
|
40857
|
+
/** Callback fired when the value is changed.
|
|
40858
|
+
*
|
|
40859
|
+
* `event`:
|
|
40860
|
+
* The event source of the callback. You can pull out the new value by accessing "event.target.value".
|
|
40861
|
+
*/
|
|
40862
|
+
onChange: PropTypes__default.func,
|
|
40863
|
+
/** Array of to display select on the dropdown.
|
|
40864
|
+
* Each option is an object with the following attributes:
|
|
40865
|
+
*
|
|
40866
|
+
* ```
|
|
40867
|
+
* {
|
|
40868
|
+
* value: 1,
|
|
40869
|
+
* label: 'Sample 1', //First line, typically the name
|
|
40870
|
+
* image: 'svg', // image svg string
|
|
40871
|
+
* avatar: ( //Avatar object to display.
|
|
40872
|
+
* <Avatar
|
|
40873
|
+
* src={'blob:http://...'} // SVG Icon
|
|
40874
|
+
* />
|
|
40875
|
+
* ),
|
|
40876
|
+
* }
|
|
40877
|
+
*```
|
|
40878
|
+
*
|
|
40879
|
+
*/
|
|
40880
|
+
options: PropTypes__default.array,
|
|
40881
|
+
/** Props passed to the TextField used in the picker. Use any value of Material UI TextField API.
|
|
40882
|
+
*
|
|
40883
|
+
* `TextFieldProps={{helperText:"text", onChange: {textFieldTargetValue}, inputProps:{className: classes.textField}}}`
|
|
40884
|
+
*
|
|
40885
|
+
*/
|
|
40886
|
+
TextFieldProps: PropTypes__default.object,
|
|
40887
|
+
/**
|
|
40888
|
+
* To show or hide the no options message on empty texfield value
|
|
40889
|
+
*/
|
|
40890
|
+
showNoOptionsWithEmptyTextField: PropTypes__default.bool,
|
|
40891
|
+
/**
|
|
40892
|
+
* To display error message on loading options
|
|
40893
|
+
*/
|
|
40894
|
+
errorLoadingOptions: PropTypes__default.string,
|
|
40895
|
+
/** To customize the components of select */
|
|
40896
|
+
components: PropTypes__default.object,
|
|
40897
|
+
/** Show label help */
|
|
40898
|
+
showLabelHelp: PropTypes__default.bool,
|
|
40899
|
+
/** 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}} */
|
|
40900
|
+
InputLabelHelpProps: PropTypes__default.object
|
|
40901
|
+
};
|
|
40902
|
+
|
|
40903
|
+
UIconPicker.defaultProps = {
|
|
40904
|
+
isMulti: false,
|
|
40905
|
+
placeholder: 'Select...',
|
|
40906
|
+
variant: 'outlined',
|
|
40907
|
+
showNoOptionsWithEmptyTextField: true,
|
|
40908
|
+
showLabelHelp: false,
|
|
40909
|
+
InputLabelHelpProps: {}
|
|
40910
|
+
};
|
|
40911
|
+
|
|
40823
40912
|
function toInteger(dirtyNumber) {
|
|
40824
40913
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
40825
40914
|
return NaN;
|
|
@@ -58011,9 +58100,22 @@ var filter$1 = createFilterOptions();
|
|
|
58011
58100
|
|
|
58012
58101
|
var useStyles$z = makeStyles$1(function (theme) {
|
|
58013
58102
|
return {
|
|
58014
|
-
|
|
58103
|
+
root: {
|
|
58015
58104
|
marginTop: theme.spacing(2),
|
|
58016
|
-
width: '100%'
|
|
58105
|
+
width: '100%',
|
|
58106
|
+
'& .UPopupIndicator': {
|
|
58107
|
+
visibility: 'hidden'
|
|
58108
|
+
},
|
|
58109
|
+
'&:hover': {
|
|
58110
|
+
'& .UPopupIndicator': {
|
|
58111
|
+
visibility: 'visible'
|
|
58112
|
+
}
|
|
58113
|
+
}
|
|
58114
|
+
},
|
|
58115
|
+
focused: {
|
|
58116
|
+
'& .UPopupIndicator': {
|
|
58117
|
+
visibility: 'visible'
|
|
58118
|
+
}
|
|
58017
58119
|
}
|
|
58018
58120
|
};
|
|
58019
58121
|
});
|
|
@@ -58137,7 +58239,11 @@ function ActiveAutoComplete(_ref) {
|
|
|
58137
58239
|
return option.text;
|
|
58138
58240
|
},
|
|
58139
58241
|
onBlur: handleOnBlur,
|
|
58140
|
-
|
|
58242
|
+
classes: {
|
|
58243
|
+
root: classes.root,
|
|
58244
|
+
focused: classes.focused,
|
|
58245
|
+
popupIndicator: 'UPopupIndicator'
|
|
58246
|
+
},
|
|
58141
58247
|
freeSolo: allowContextSpecific,
|
|
58142
58248
|
renderInput: function renderInput(params) {
|
|
58143
58249
|
return React__default.createElement(ActiveFormTextField, _extends$1({}, params, {
|
|
@@ -58234,6 +58340,7 @@ exports.UHeader = UHeader;
|
|
|
58234
58340
|
exports.UHeaderLeftMenu = UHeaderLeftMenu;
|
|
58235
58341
|
exports.UHeaderMainMenu = UHeaderMainMenu;
|
|
58236
58342
|
exports.UHeaderRightButtons = UHeaderRightButtons;
|
|
58343
|
+
exports.UIconPicker = UIconPicker;
|
|
58237
58344
|
exports.UInfiniteScroll = UInfiniteScroll;
|
|
58238
58345
|
exports.UKeyboardDatePicker = UKeyboardDatePicker;
|
|
58239
58346
|
exports.UKeyboardDateTimePicker = UKeyboardDateTimePicker;
|