@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/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: {
|
|
@@ -34668,6 +34668,85 @@ UPeoplePicker.defaultProps = {
|
|
|
34668
34668
|
InputLabelHelpProps: {}
|
|
34669
34669
|
};
|
|
34670
34670
|
|
|
34671
|
+
/**
|
|
34672
|
+
* UIconPicker is a control for selecting icon from a list. Has the features below:
|
|
34673
|
+
*
|
|
34674
|
+
* * Select a single icon from a list.
|
|
34675
|
+
* * Select multiple icon from a list.
|
|
34676
|
+
* * Autocomplete.
|
|
34677
|
+
* * Clear current selection.
|
|
34678
|
+
*
|
|
34679
|
+
*/
|
|
34680
|
+
function UIconPicker(props) {
|
|
34681
|
+
return React__default.createElement(USelectPicker, _extends$1({}, props, { hideAvatar: false }));
|
|
34682
|
+
}
|
|
34683
|
+
|
|
34684
|
+
UIconPicker.propTypes = {
|
|
34685
|
+
/** Text to display when nothing is selected. */
|
|
34686
|
+
placeholder: PropTypes__default.string,
|
|
34687
|
+
/** Enables the multiple select. Default is false. */
|
|
34688
|
+
isMulti: PropTypes__default.bool,
|
|
34689
|
+
/** Label of the picker. */
|
|
34690
|
+
label: PropTypes__default.string,
|
|
34691
|
+
/** Variant of TextField to use. Default is outlined.*/
|
|
34692
|
+
variant: PropTypes__default.oneOf(['outlined', 'standard', 'filled']),
|
|
34693
|
+
/** Id to assign to the input element */
|
|
34694
|
+
inputId: PropTypes__default.string,
|
|
34695
|
+
/** Callback fired when the value is changed.
|
|
34696
|
+
*
|
|
34697
|
+
* `event`:
|
|
34698
|
+
* The event source of the callback. You can pull out the new value by accessing "event.target.value".
|
|
34699
|
+
*/
|
|
34700
|
+
onChange: PropTypes__default.func,
|
|
34701
|
+
/** Array of to display select on the dropdown.
|
|
34702
|
+
* Each option is an object with the following attributes:
|
|
34703
|
+
*
|
|
34704
|
+
* ```
|
|
34705
|
+
* {
|
|
34706
|
+
* value: 1,
|
|
34707
|
+
* label: 'Sample 1', //First line, typically the name
|
|
34708
|
+
* image: 'svg', // image svg string
|
|
34709
|
+
* avatar: ( //Avatar object to display.
|
|
34710
|
+
* <Avatar
|
|
34711
|
+
* src={'blob:http://...'} // SVG Icon
|
|
34712
|
+
* />
|
|
34713
|
+
* ),
|
|
34714
|
+
* }
|
|
34715
|
+
*```
|
|
34716
|
+
*
|
|
34717
|
+
*/
|
|
34718
|
+
options: PropTypes__default.array,
|
|
34719
|
+
/** Props passed to the TextField used in the picker. Use any value of Material UI TextField API.
|
|
34720
|
+
*
|
|
34721
|
+
* `TextFieldProps={{helperText:"text", onChange: {textFieldTargetValue}, inputProps:{className: classes.textField}}}`
|
|
34722
|
+
*
|
|
34723
|
+
*/
|
|
34724
|
+
TextFieldProps: PropTypes__default.object,
|
|
34725
|
+
/**
|
|
34726
|
+
* To show or hide the no options message on empty texfield value
|
|
34727
|
+
*/
|
|
34728
|
+
showNoOptionsWithEmptyTextField: PropTypes__default.bool,
|
|
34729
|
+
/**
|
|
34730
|
+
* To display error message on loading options
|
|
34731
|
+
*/
|
|
34732
|
+
errorLoadingOptions: PropTypes__default.string,
|
|
34733
|
+
/** To customize the components of select */
|
|
34734
|
+
components: PropTypes__default.object,
|
|
34735
|
+
/** Show label help */
|
|
34736
|
+
showLabelHelp: PropTypes__default.bool,
|
|
34737
|
+
/** 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}} */
|
|
34738
|
+
InputLabelHelpProps: PropTypes__default.object
|
|
34739
|
+
};
|
|
34740
|
+
|
|
34741
|
+
UIconPicker.defaultProps = {
|
|
34742
|
+
isMulti: false,
|
|
34743
|
+
placeholder: 'Select...',
|
|
34744
|
+
variant: 'outlined',
|
|
34745
|
+
showNoOptionsWithEmptyTextField: true,
|
|
34746
|
+
showLabelHelp: false,
|
|
34747
|
+
InputLabelHelpProps: {}
|
|
34748
|
+
};
|
|
34749
|
+
|
|
34671
34750
|
function toInteger(dirtyNumber) {
|
|
34672
34751
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
34673
34752
|
return NaN;
|
|
@@ -51110,6 +51189,7 @@ exports.UHeader = UHeader;
|
|
|
51110
51189
|
exports.UHeaderLeftMenu = UHeaderLeftMenu;
|
|
51111
51190
|
exports.UHeaderMainMenu = UHeaderMainMenu;
|
|
51112
51191
|
exports.UHeaderRightButtons = UHeaderRightButtons;
|
|
51192
|
+
exports.UIconPicker = UIconPicker;
|
|
51113
51193
|
exports.UInfiniteScroll = UInfiniteScroll;
|
|
51114
51194
|
exports.UKeyboardDatePicker = UKeyboardDatePicker;
|
|
51115
51195
|
exports.UKeyboardDateTimePicker = UKeyboardDateTimePicker;
|