@hipay/hipay-material-ui 2.0.0-beta.35 → 2.0.0-beta.36
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/HiCheckbox/HiCheckbox.js +15 -9
- package/HiIcon/HiIcon.js +7 -23
- package/HiSelectableList/HiSelectableListItem.js +12 -8
- package/es/HiCheckbox/HiCheckbox.js +16 -10
- package/es/HiDatePicker/HiDatePicker.js +2 -2
- package/es/HiIcon/HiIcon.js +7 -23
- package/es/HiSelectableList/HiSelectableListItem.js +12 -8
- package/es/styles/createPalette.js +2 -2
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +3 -1
- package/styles/createPalette.js +2 -2
- package/umd/hipay-material-ui.development.js +27 -37
- package/umd/hipay-material-ui.production.min.js +2 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
/** @license HiPay-Material-UI v2.0.0-beta.
|
1
|
+
/** @license HiPay-Material-UI v2.0.0-beta.36
|
2
2
|
*
|
3
3
|
* This source code is licensed under the MIT license found in the
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
@@ -987,9 +987,9 @@
|
|
987
987
|
hover: 'rgba(0, 0, 0, 0.08)',
|
988
988
|
hoverOpacity: 0.08,
|
989
989
|
// The color of a selected action.
|
990
|
-
selected: '
|
990
|
+
selected: '#F8F9FB',
|
991
991
|
// The color of a disabled action.
|
992
|
-
disabled: '
|
992
|
+
disabled: '#E0E0E0',
|
993
993
|
// The background color of a disabled action.
|
994
994
|
disabledBackground: 'rgba(0, 0, 0, 0.12)'
|
995
995
|
},
|
@@ -65988,7 +65988,7 @@
|
|
65988
65988
|
|
65989
65989
|
/* Styles applied to the root element. */
|
65990
65990
|
faIcon: {
|
65991
|
-
fontSize:
|
65991
|
+
fontSize: 20
|
65992
65992
|
},
|
65993
65993
|
|
65994
65994
|
/* Styles applied to the root element if `color="primary"`. */
|
@@ -66028,11 +66028,10 @@
|
|
66028
66028
|
classes = props.classes,
|
66029
66029
|
className = props.className,
|
66030
66030
|
color = props.color,
|
66031
|
-
fontSize = props.fontSize,
|
66032
66031
|
icon = props.icon,
|
66033
66032
|
size = props.size,
|
66034
66033
|
theme = props.theme,
|
66035
|
-
other = objectWithoutProperties(props, ["children", "classes", "className", "color", "
|
66034
|
+
other = objectWithoutProperties(props, ["children", "classes", "className", "color", "icon", "size", "theme"]);
|
66036
66035
|
|
66037
66036
|
var iconName = icon !== null ? icon : children;
|
66038
66037
|
var isHiColor = ['positive', 'negative', 'middle', 'neutral'].includes(color); // Line Awesome icons
|
@@ -66041,7 +66040,7 @@
|
|
66041
66040
|
return React.createElement("i", _extends_1({
|
66042
66041
|
className: classnames('fa', iconName, classes.root, defineProperty({}, classes["color".concat(capitalize(color))], color !== 'inherit'), className),
|
66043
66042
|
style: {
|
66044
|
-
fontSize:
|
66043
|
+
fontSize: size
|
66045
66044
|
}
|
66046
66045
|
}, other));
|
66047
66046
|
} // Specific HiPay icons
|
@@ -66051,12 +66050,9 @@
|
|
66051
66050
|
var IconName = hiSvgIcons[capitalize(camelize$2(iconName))];
|
66052
66051
|
return React.createElement(IconName, _extends_1({
|
66053
66052
|
className: classnames(classes.root, className),
|
66054
|
-
color: isHiColor || color === 'primary' || color === 'secondary' ? theme.palette[color].main : theme.palette.primary.main
|
66055
|
-
}, fontSize === 'default' ? {
|
66053
|
+
color: isHiColor || color === 'primary' || color === 'secondary' ? theme.palette[color].main : theme.palette.primary.main,
|
66056
66054
|
width: size,
|
66057
66055
|
height: size
|
66058
|
-
} : {
|
66059
|
-
fontSize: fontSize
|
66060
66056
|
}, other));
|
66061
66057
|
} // MDI - Material Design Icons - https://materialdesignicons.com
|
66062
66058
|
|
@@ -66065,26 +66061,20 @@
|
|
66065
66061
|
var _IconName = mdi[capitalize(camelize$2(iconName.slice(4)))];
|
66066
66062
|
return React.createElement(_IconName, _extends_1({
|
66067
66063
|
className: classnames(classes.root, defineProperty({}, classes["color".concat(capitalize(color))], isHiColor), className),
|
66068
|
-
color: isHiColor ? 'inherit' : color
|
66069
|
-
}, fontSize === 'default' ? {
|
66064
|
+
color: isHiColor ? 'inherit' : color,
|
66070
66065
|
style: {
|
66071
66066
|
fontSize: size
|
66072
66067
|
}
|
66073
|
-
} : {
|
66074
|
-
fontSize: fontSize
|
66075
66068
|
}, other));
|
66076
66069
|
} // @material-ui/icons
|
66077
66070
|
|
66078
66071
|
|
66079
66072
|
return React.createElement(Icon$2, _extends_1({
|
66080
66073
|
className: classnames(classes.root, defineProperty({}, classes["color".concat(capitalize(color))], isHiColor), className),
|
66081
|
-
color: isHiColor ? 'inherit' : color
|
66082
|
-
}, fontSize === 'default' ? {
|
66074
|
+
color: isHiColor ? 'inherit' : color,
|
66083
66075
|
style: {
|
66084
66076
|
fontSize: size
|
66085
66077
|
}
|
66086
|
-
} : {
|
66087
|
-
fontSize: fontSize
|
66088
66078
|
}, other), iconName);
|
66089
66079
|
}
|
66090
66080
|
|
@@ -66110,11 +66100,6 @@
|
|
66110
66100
|
*/
|
66111
66101
|
color: propTypes.oneOf(['inherit', 'primary', 'secondary', 'action', 'error', 'disabled', 'positive', 'negative', 'middle', 'neutral']),
|
66112
66102
|
|
66113
|
-
/**
|
66114
|
-
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
66115
|
-
*/
|
66116
|
-
fontSize: propTypes.oneOf(['inherit', 'default']),
|
66117
|
-
|
66118
66103
|
/**
|
66119
66104
|
* Deprecated use (same as children)
|
66120
66105
|
* The name of the icon font ligature.
|
@@ -66128,9 +66113,8 @@
|
|
66128
66113
|
};
|
66129
66114
|
HiIcon.defaultProps = {
|
66130
66115
|
color: 'inherit',
|
66131
|
-
fontSize: 'default',
|
66132
66116
|
icon: null,
|
66133
|
-
size:
|
66117
|
+
size: 20
|
66134
66118
|
};
|
66135
66119
|
HiIcon.muiName = 'HiIcon';
|
66136
66120
|
var HiIcon$1 = withStyles(styles$2, {
|
@@ -66142,8 +66126,9 @@
|
|
66142
66126
|
var styles$3 = function styles(theme) {
|
66143
66127
|
return {
|
66144
66128
|
root: {
|
66145
|
-
marginRight:
|
66146
|
-
marginLeft:
|
66129
|
+
marginRight: 6,
|
66130
|
+
marginLeft: 6,
|
66131
|
+
padding: 0
|
66147
66132
|
},
|
66148
66133
|
checked: {},
|
66149
66134
|
checkedPrimary: {
|
@@ -66217,18 +66202,19 @@
|
|
66217
66202
|
indeterminateIcon = _this$props.indeterminateIcon,
|
66218
66203
|
style = _this$props.style,
|
66219
66204
|
size = _this$props.size,
|
66220
|
-
|
66205
|
+
className = _this$props.className,
|
66206
|
+
other = objectWithoutProperties(_this$props, ["classes", "color", "checkedIcon", "icon", "indeterminateIcon", "style", "size", "className"]);
|
66221
66207
|
|
66222
66208
|
var iconStyles = _extends_1({
|
66223
66209
|
width: size,
|
66224
66210
|
height: size
|
66225
66211
|
}, style);
|
66226
66212
|
|
66227
|
-
var hcolor = ['positive', 'negative', 'middle', 'neutral'].includes(color) ? '
|
66213
|
+
var hcolor = ['positive', 'negative', 'middle', 'neutral'].includes(color) ? 'inherit' : color;
|
66228
66214
|
return React.createElement(Checkbox$2, _extends_1({
|
66229
66215
|
classes: {
|
66230
66216
|
root: classes.root,
|
66231
|
-
checked: classnames(classes.checked, (_classNames = {}, defineProperty(_classNames, classes.checkedPrimary, color === 'primary' || color === '
|
66217
|
+
checked: classnames(classes.checked, (_classNames = {}, defineProperty(_classNames, classes.checkedPrimary, color === 'primary' || color === 'inherit'), defineProperty(_classNames, classes.checkedSecondary, color === 'secondary'), defineProperty(_classNames, classes.checkedPositive, color === 'positive'), defineProperty(_classNames, classes.checkedNegative, color === 'negative'), defineProperty(_classNames, classes.checkedMiddle, color === 'middle'), defineProperty(_classNames, classes.checkedNeutral, color === 'neutral'), _classNames)),
|
66232
66218
|
disabled: classes.disabled
|
66233
66219
|
},
|
66234
66220
|
style: iconStyles,
|
@@ -66237,19 +66223,22 @@
|
|
66237
66223
|
}, icon && {
|
66238
66224
|
icon: React.createElement(HiIcon$1, {
|
66239
66225
|
className: classes.root,
|
66240
|
-
icon: icon
|
66226
|
+
icon: icon,
|
66227
|
+
size: 20
|
66241
66228
|
})
|
66242
66229
|
}, checkedIcon && {
|
66243
66230
|
checkedIcon: React.createElement(HiIcon$1, {
|
66244
66231
|
className: classes.root,
|
66245
66232
|
icon: checkedIcon,
|
66246
|
-
color: color
|
66233
|
+
color: color,
|
66234
|
+
size: 20
|
66247
66235
|
})
|
66248
66236
|
}, indeterminateIcon && {
|
66249
66237
|
indeterminateIcon: React.createElement(HiIcon$1, {
|
66250
66238
|
className: classes.root,
|
66251
66239
|
icon: indeterminateIcon,
|
66252
|
-
color: color
|
66240
|
+
color: color,
|
66241
|
+
size: 20
|
66253
66242
|
})
|
66254
66243
|
}, other));
|
66255
66244
|
}
|
@@ -66261,7 +66250,8 @@
|
|
66261
66250
|
HiCheckbox.defaultProps = {
|
66262
66251
|
checked: false,
|
66263
66252
|
color: 'default',
|
66264
|
-
size: 20
|
66253
|
+
size: 20,
|
66254
|
+
icon: 'check_box_outline_blank'
|
66265
66255
|
};
|
66266
66256
|
HiCheckbox.propTypes = {
|
66267
66257
|
/**
|
@@ -88863,8 +88853,8 @@
|
|
88863
88853
|
inputProps: inputProps,
|
88864
88854
|
placeholder: '',
|
88865
88855
|
format: enableTime ? "".concat(format, " HH:mm") : format,
|
88866
|
-
formatDate:
|
88867
|
-
parseDate:
|
88856
|
+
formatDate: moment$1.formatDate,
|
88857
|
+
parseDate: moment$1.parseDate,
|
88868
88858
|
onDayChange: this.handleDayChange
|
88869
88859
|
}));
|
88870
88860
|
}
|