@hipay/hipay-material-ui 2.0.0-beta.73 → 2.0.0-beta.75
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/CHANGELOG.md +228 -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 +16 -9
- package/HiPaymentMeans/HiPaymentMeans.js +667 -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 +15 -9
- package/es/HiPaymentMeans/HiPaymentMeans.js +621 -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 +3 -3
@@ -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
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { withStyles } from '../styles';
|
5
5
|
import ButtonBase from '@material-ui/core/ButtonBase';
|
6
|
+
import Collapse from '@material-ui/core/Collapse';
|
6
7
|
export const styles = theme => ({
|
7
8
|
root: {
|
8
9
|
background: theme.palette.background3,
|
@@ -45,32 +46,32 @@ export const styles = theme => ({
|
|
45
46
|
boxShadow: 'none'
|
46
47
|
},
|
47
48
|
body: {
|
48
|
-
height: '100%',
|
49
49
|
margin: 0,
|
50
50
|
display: 'inline-grid',
|
51
51
|
alignItems: 'center',
|
52
52
|
fontSize: 20,
|
53
|
-
fontWeight: theme.typography.fontWeightLight
|
53
|
+
fontWeight: theme.typography.fontWeightLight,
|
54
|
+
flex: '1 1 auto'
|
54
55
|
},
|
55
56
|
title: {
|
56
|
-
height: '100%',
|
57
57
|
maxHeight: 16,
|
58
58
|
maxWidth: '100%',
|
59
59
|
margin: '7px 0px',
|
60
60
|
whiteSpace: 'nowrap',
|
61
61
|
overflow: 'hidden',
|
62
62
|
fontSize: 14,
|
63
|
-
fontWeight: theme.typography.fontWeightLight
|
63
|
+
fontWeight: theme.typography.fontWeightLight,
|
64
|
+
flex: '0 1 16px'
|
64
65
|
},
|
65
66
|
subtitle: {
|
66
|
-
height: '100%',
|
67
67
|
maxHeight: 28,
|
68
68
|
margin: '2px 0px',
|
69
69
|
maxWidth: '100%',
|
70
70
|
color: theme.palette.neutral.main,
|
71
71
|
fontSize: 11,
|
72
72
|
lineHeight: '13px',
|
73
|
-
fontWeight: theme.typography.fontWeightMedium
|
73
|
+
fontWeight: theme.typography.fontWeightMedium,
|
74
|
+
flex: '0 1 28px'
|
74
75
|
},
|
75
76
|
minify: {
|
76
77
|
height: 72
|
@@ -110,7 +111,11 @@ class HiKPI extends React.Component {
|
|
110
111
|
[classes.active]: active,
|
111
112
|
[classes.minify]: minify
|
112
113
|
});
|
113
|
-
return React.createElement(
|
114
|
+
return React.createElement(Collapse, {
|
115
|
+
in: !minify,
|
116
|
+
timeout: "auto",
|
117
|
+
collapsedHeight: "88px"
|
118
|
+
}, React.createElement(ButtonBase, {
|
114
119
|
className: rootclass,
|
115
120
|
onClick: !disable ? this.handleClick(id) : undefined,
|
116
121
|
title: tooltip
|
@@ -120,14 +125,15 @@ class HiKPI extends React.Component {
|
|
120
125
|
className: classes.body
|
121
126
|
}, minify && bodyMinify ? bodyMinify : body), subtitle && minify === false && React.createElement("div", {
|
122
127
|
className: classes.subtitle
|
123
|
-
}, subtitle));
|
128
|
+
}, subtitle)));
|
124
129
|
}
|
125
130
|
|
126
131
|
}
|
127
132
|
|
128
133
|
HiKPI.defaultProps = {
|
129
134
|
active: false,
|
130
|
-
minify: false
|
135
|
+
minify: false,
|
136
|
+
color: 'inherit'
|
131
137
|
};
|
132
138
|
HiKPI.propTypes = process.env.NODE_ENV !== "production" ? {
|
133
139
|
/**
|