@hipay/hipay-material-ui 2.0.0-beta.73 → 2.0.0-beta.74
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +152 -0
- package/HiAlertModal/HiAlertModal.js +5 -2
- package/HiBreadcrumb/HiBreadcrumb.js +7 -0
- package/HiBreadcrumb/HiStepLabel.js +2 -4
- package/HiExpansionPanel/HiExpansionPanel.js +1 -1
- package/HiIcon/HiIcon.js +1 -1
- package/HiMap/HiMapExpand.js +26 -8
- package/HiNotice/HiKPI.js +2 -1
- package/HiPaymentMeans/HiPaymentMeans.js +666 -0
- package/HiPaymentMeans/index.js +15 -0
- package/HiRadio/HiRadio.js +5 -0
- package/HiSelect/HiSelect.js +1 -1
- package/HiSelect/HiSelectField.js +10 -3
- package/HiTable/HiCellBuilder.js +1 -1
- package/es/HiAlertModal/HiAlertModal.js +7 -4
- package/es/HiBreadcrumb/HiBreadcrumb.js +7 -0
- package/es/HiBreadcrumb/HiStepLabel.js +2 -4
- package/es/HiExpansionPanel/HiExpansionPanel.js +1 -1
- package/es/HiIcon/HiIcon.js +1 -1
- package/es/HiMap/HiMapExpand.js +26 -8
- package/es/HiNotice/HiKPI.js +2 -1
- package/es/HiPaymentMeans/HiPaymentMeans.js +620 -0
- package/es/HiPaymentMeans/index.js +1 -0
- package/es/HiRadio/HiRadio.js +5 -0
- package/es/HiSelect/HiSelect.js +1 -1
- package/es/HiSelect/HiSelectField.js +11 -4
- package/es/HiTable/HiCellBuilder.js +1 -1
- package/es/hi-svg-icons/HiDownload.js +13 -7
- package/hi-svg-icons/HiDownload.js +8 -6
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -4
@@ -66,7 +66,8 @@ function (_React$PureComponent) {
|
|
66
66
|
searchable = _this$props.searchable,
|
67
67
|
translations = _this$props.translations,
|
68
68
|
className = _this$props.className,
|
69
|
-
|
69
|
+
HiInputLabelProps = _this$props.HiInputLabelProps,
|
70
|
+
others = (0, _objectWithoutProperties2.default)(_this$props, ["label", "required", "disabled", "error", "errorText", "helperText", "helperIcon", "id", "name", "value", "options", "type", "multiple", "iconAll", "checkbox", "searchable", "translations", "className", "HiInputLabelProps"]);
|
70
71
|
return _react.default.createElement(_HiFormControl.default, {
|
71
72
|
id: id,
|
72
73
|
label: label,
|
@@ -76,7 +77,8 @@ function (_React$PureComponent) {
|
|
76
77
|
errorText: errorText,
|
77
78
|
helperText: helperText,
|
78
79
|
helperIcon: helperIcon,
|
79
|
-
className: className
|
80
|
+
className: className,
|
81
|
+
InputLabelProps: HiInputLabelProps
|
80
82
|
}, _react.default.createElement(_HiSelect.default, (0, _extends2.default)({
|
81
83
|
id: id,
|
82
84
|
name: name,
|
@@ -140,7 +142,12 @@ HiSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
140
142
|
/**
|
141
143
|
* true si champs obligatoire
|
142
144
|
*/
|
143
|
-
required: _propTypes.default.bool
|
145
|
+
required: _propTypes.default.bool,
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Propriétés appliquées au composant HiFormLabel
|
149
|
+
*/
|
150
|
+
HiInputLabelProps: _propTypes.default.object
|
144
151
|
} : {};
|
145
152
|
var _default = HiSelectField;
|
146
153
|
exports.default = _default;
|
package/HiTable/HiCellBuilder.js
CHANGED
@@ -8,7 +8,7 @@ import DialogActions from '@material-ui/core/DialogActions';
|
|
8
8
|
import DialogContent from '@material-ui/core/DialogContent';
|
9
9
|
import DialogContentText from '@material-ui/core/DialogContentText';
|
10
10
|
import DialogTitle from '@material-ui/core/DialogTitle';
|
11
|
-
import { withStyles } from '../styles';
|
11
|
+
import { withStyles, withTheme } from '../styles';
|
12
12
|
import HiButton from '../HiButton';
|
13
13
|
import HiIcon from '../HiIcon';
|
14
14
|
import { escapeHTML } from '../utils/helpers';
|
@@ -86,9 +86,10 @@ class HiAlertModal extends React.PureComponent {
|
|
86
86
|
open,
|
87
87
|
cancelColor,
|
88
88
|
submitColor,
|
89
|
-
title
|
89
|
+
title,
|
90
|
+
theme
|
90
91
|
} = _this$props,
|
91
|
-
props = _objectWithoutProperties(_this$props, ["backgroundIcon", "iconSize", "classes", "content", "labelCancelButton", "labelSubmitButton", "onCancelClick", "onSubmitClick", "open", "cancelColor", "submitColor", "title"]);
|
92
|
+
props = _objectWithoutProperties(_this$props, ["backgroundIcon", "iconSize", "classes", "content", "labelCancelButton", "labelSubmitButton", "onCancelClick", "onSubmitClick", "open", "cancelColor", "submitColor", "title", "theme"]);
|
92
93
|
|
93
94
|
let dialogContent = content;
|
94
95
|
|
@@ -111,6 +112,7 @@ class HiAlertModal extends React.PureComponent {
|
|
111
112
|
}, props), backgroundIcon && React.createElement("div", {
|
112
113
|
className: classes.classBackgroundIcon
|
113
114
|
}, React.createElement(HiIcon, {
|
115
|
+
color: theme.palette.background2,
|
114
116
|
icon: backgroundIcon,
|
115
117
|
size: iconSize
|
116
118
|
})), React.createElement(DialogTitle, {
|
@@ -211,5 +213,6 @@ HiAlertModal.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
211
213
|
} : {};
|
212
214
|
export default withStyles(styles, {
|
213
215
|
hiComponent: true,
|
214
|
-
name: 'HmuiHiAlertModal'
|
216
|
+
name: 'HmuiHiAlertModal',
|
217
|
+
withTheme: true
|
215
218
|
})(HiAlertModal);
|
@@ -18,6 +18,7 @@ class HiBreadcrumb extends React.PureComponent {
|
|
18
18
|
render() {
|
19
19
|
const {
|
20
20
|
activeStep,
|
21
|
+
classes,
|
21
22
|
steps,
|
22
23
|
type,
|
23
24
|
disableNavigation
|
@@ -38,6 +39,7 @@ class HiBreadcrumb extends React.PureComponent {
|
|
38
39
|
steps: steps,
|
39
40
|
active: activeStep === step.id
|
40
41
|
}, React.createElement(HiStepLabel, {
|
42
|
+
classes: classes,
|
41
43
|
active: activeStep === step.id,
|
42
44
|
status: step.status,
|
43
45
|
notificationNumber: step.notificationNumber,
|
@@ -60,6 +62,11 @@ HiBreadcrumb.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
60
62
|
*/
|
61
63
|
activeStep: PropTypes.number,
|
62
64
|
|
65
|
+
/**
|
66
|
+
* Custom styles for component.
|
67
|
+
*/
|
68
|
+
classes: PropTypes.object.isRequired,
|
69
|
+
|
63
70
|
/**
|
64
71
|
* Disable navigation in steps
|
65
72
|
*/
|
@@ -76,15 +76,13 @@ export const styles = theme => ({
|
|
76
76
|
display: 'inline-block',
|
77
77
|
overflow: 'hidden',
|
78
78
|
textOverflow: 'ellipsis',
|
79
|
-
whiteSpace: 'pre'
|
80
|
-
maxWidth: 51
|
79
|
+
whiteSpace: 'pre'
|
81
80
|
},
|
82
81
|
longEllipsis: {
|
83
82
|
display: 'inline-block',
|
84
83
|
overflow: 'hidden',
|
85
84
|
textOverflow: 'ellipsis',
|
86
|
-
whiteSpace: 'pre'
|
87
|
-
maxWidth: 90
|
85
|
+
whiteSpace: 'pre'
|
88
86
|
}
|
89
87
|
});
|
90
88
|
|
package/es/HiIcon/HiIcon.js
CHANGED
@@ -85,7 +85,7 @@ function HiIcon(props) {
|
|
85
85
|
const IconName = hiSvgIcons[capitalize(camelize(iconName))];
|
86
86
|
return React.createElement(IconName, _extends({
|
87
87
|
className: classNames(classes.root, className),
|
88
|
-
color: isHiColor || color === 'primary' || color === 'secondary' ? theme.palette[color].main :
|
88
|
+
color: isHiColor || color === 'primary' || color === 'secondary' ? theme.palette[color].main : color,
|
89
89
|
width: size,
|
90
90
|
height: size
|
91
91
|
}, other));
|
package/es/HiMap/HiMapExpand.js
CHANGED
@@ -87,7 +87,9 @@ class HiMapExpand extends React.PureComponent {
|
|
87
87
|
const {
|
88
88
|
classes,
|
89
89
|
address,
|
90
|
-
countryFlagPath
|
90
|
+
countryFlagPath,
|
91
|
+
hideLabel,
|
92
|
+
translations
|
91
93
|
} = this.props;
|
92
94
|
const {
|
93
95
|
addressNotFound,
|
@@ -118,13 +120,14 @@ class HiMapExpand extends React.PureComponent {
|
|
118
120
|
},
|
119
121
|
className: classNames({
|
120
122
|
[classes.disabledIcon]: addressNotFound
|
121
|
-
})
|
123
|
+
}),
|
124
|
+
title: addressNotFound ? translations.notFound : ''
|
122
125
|
})
|
123
|
-
}, React.createElement("div", {
|
126
|
+
}, hideLabel || React.createElement("div", {
|
124
127
|
className: classes.column
|
125
128
|
}, React.createElement("p", {
|
126
129
|
className: classes.secondaryHeading
|
127
|
-
},
|
130
|
+
}, translations.label)), React.createElement("div", null, React.createElement("p", {
|
128
131
|
className: classes.heading
|
129
132
|
}, flag, address))), React.createElement(ExpansionPanelDetails, {
|
130
133
|
style: {
|
@@ -138,9 +141,6 @@ class HiMapExpand extends React.PureComponent {
|
|
138
141
|
|
139
142
|
}
|
140
143
|
|
141
|
-
HiMapExpand.defaultProps = {
|
142
|
-
countryFlagPath: ''
|
143
|
-
};
|
144
144
|
HiMapExpand.propTypes = process.env.NODE_ENV !== "production" ? {
|
145
145
|
/**
|
146
146
|
* The address to see in the Map component.
|
@@ -155,8 +155,26 @@ HiMapExpand.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
155
155
|
/**
|
156
156
|
* The path to the country flag image.
|
157
157
|
*/
|
158
|
-
countryFlagPath: PropTypes.string
|
158
|
+
countryFlagPath: PropTypes.string,
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Don't display label
|
162
|
+
*/
|
163
|
+
hideLabel: PropTypes.bool,
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Translations object, see used keys in defaultProps
|
167
|
+
*/
|
168
|
+
translations: PropTypes.object
|
159
169
|
} : {};
|
170
|
+
HiMapExpand.defaultProps = {
|
171
|
+
countryFlagPath: '',
|
172
|
+
hideLabel: false,
|
173
|
+
translations: {
|
174
|
+
label: 'Adresse',
|
175
|
+
notFound: 'Adresse inconnue'
|
176
|
+
}
|
177
|
+
};
|
160
178
|
export default withStyles(styles, {
|
161
179
|
name: 'HmuiHiMapExpand'
|
162
180
|
})(HiMapExpand);
|
package/es/HiNotice/HiKPI.js
CHANGED