@unicef/material-ui 0.10.1 → 0.11.0
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 +84 -4
- package/lib/dev.js.map +1 -1
- package/lib/prod.js +84 -4
- 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: {
|
|
@@ -40820,6 +40820,85 @@ UPeoplePicker.defaultProps = {
|
|
|
40820
40820
|
InputLabelHelpProps: {}
|
|
40821
40821
|
};
|
|
40822
40822
|
|
|
40823
|
+
/**
|
|
40824
|
+
* UIconPicker is a control for selecting icon from a list. Has the features below:
|
|
40825
|
+
*
|
|
40826
|
+
* * Select a single icon from a list.
|
|
40827
|
+
* * Select multiple icon from a list.
|
|
40828
|
+
* * Autocomplete.
|
|
40829
|
+
* * Clear current selection.
|
|
40830
|
+
*
|
|
40831
|
+
*/
|
|
40832
|
+
function UIconPicker(props) {
|
|
40833
|
+
return React__default.createElement(USelectPicker, _extends$1({}, props, { hideAvatar: false }));
|
|
40834
|
+
}
|
|
40835
|
+
|
|
40836
|
+
UIconPicker.propTypes = {
|
|
40837
|
+
/** Text to display when nothing is selected. */
|
|
40838
|
+
placeholder: PropTypes__default.string,
|
|
40839
|
+
/** Enables the multiple select. Default is false. */
|
|
40840
|
+
isMulti: PropTypes__default.bool,
|
|
40841
|
+
/** Label of the picker. */
|
|
40842
|
+
label: PropTypes__default.string,
|
|
40843
|
+
/** Variant of TextField to use. Default is outlined.*/
|
|
40844
|
+
variant: PropTypes__default.oneOf(['outlined', 'standard', 'filled']),
|
|
40845
|
+
/** Id to assign to the input element */
|
|
40846
|
+
inputId: PropTypes__default.string,
|
|
40847
|
+
/** Callback fired when the value is changed.
|
|
40848
|
+
*
|
|
40849
|
+
* `event`:
|
|
40850
|
+
* The event source of the callback. You can pull out the new value by accessing "event.target.value".
|
|
40851
|
+
*/
|
|
40852
|
+
onChange: PropTypes__default.func,
|
|
40853
|
+
/** Array of to display select on the dropdown.
|
|
40854
|
+
* Each option is an object with the following attributes:
|
|
40855
|
+
*
|
|
40856
|
+
* ```
|
|
40857
|
+
* {
|
|
40858
|
+
* value: 1,
|
|
40859
|
+
* label: 'Sample 1', //First line, typically the name
|
|
40860
|
+
* image: 'svg', // image svg string
|
|
40861
|
+
* avatar: ( //Avatar object to display.
|
|
40862
|
+
* <Avatar
|
|
40863
|
+
* src={'blob:http://...'} // SVG Icon
|
|
40864
|
+
* />
|
|
40865
|
+
* ),
|
|
40866
|
+
* }
|
|
40867
|
+
*```
|
|
40868
|
+
*
|
|
40869
|
+
*/
|
|
40870
|
+
options: PropTypes__default.array,
|
|
40871
|
+
/** Props passed to the TextField used in the picker. Use any value of Material UI TextField API.
|
|
40872
|
+
*
|
|
40873
|
+
* `TextFieldProps={{helperText:"text", onChange: {textFieldTargetValue}, inputProps:{className: classes.textField}}}`
|
|
40874
|
+
*
|
|
40875
|
+
*/
|
|
40876
|
+
TextFieldProps: PropTypes__default.object,
|
|
40877
|
+
/**
|
|
40878
|
+
* To show or hide the no options message on empty texfield value
|
|
40879
|
+
*/
|
|
40880
|
+
showNoOptionsWithEmptyTextField: PropTypes__default.bool,
|
|
40881
|
+
/**
|
|
40882
|
+
* To display error message on loading options
|
|
40883
|
+
*/
|
|
40884
|
+
errorLoadingOptions: PropTypes__default.string,
|
|
40885
|
+
/** To customize the components of select */
|
|
40886
|
+
components: PropTypes__default.object,
|
|
40887
|
+
/** Show label help */
|
|
40888
|
+
showLabelHelp: PropTypes__default.bool,
|
|
40889
|
+
/** 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}} */
|
|
40890
|
+
InputLabelHelpProps: PropTypes__default.object
|
|
40891
|
+
};
|
|
40892
|
+
|
|
40893
|
+
UIconPicker.defaultProps = {
|
|
40894
|
+
isMulti: false,
|
|
40895
|
+
placeholder: 'Select...',
|
|
40896
|
+
variant: 'outlined',
|
|
40897
|
+
showNoOptionsWithEmptyTextField: true,
|
|
40898
|
+
showLabelHelp: false,
|
|
40899
|
+
InputLabelHelpProps: {}
|
|
40900
|
+
};
|
|
40901
|
+
|
|
40823
40902
|
function toInteger(dirtyNumber) {
|
|
40824
40903
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
40825
40904
|
return NaN;
|
|
@@ -58251,6 +58330,7 @@ exports.UHeader = UHeader;
|
|
|
58251
58330
|
exports.UHeaderLeftMenu = UHeaderLeftMenu;
|
|
58252
58331
|
exports.UHeaderMainMenu = UHeaderMainMenu;
|
|
58253
58332
|
exports.UHeaderRightButtons = UHeaderRightButtons;
|
|
58333
|
+
exports.UIconPicker = UIconPicker;
|
|
58254
58334
|
exports.UInfiniteScroll = UInfiniteScroll;
|
|
58255
58335
|
exports.UKeyboardDatePicker = UKeyboardDatePicker;
|
|
58256
58336
|
exports.UKeyboardDateTimePicker = UKeyboardDateTimePicker;
|