@hipay/hipay-material-ui 2.2.0-RC1 → 2.2.0-RC2
Sign up to get free protection for your applications and to get access to all the features.
- package/HiNotice/HiKPI.js +8 -1
- package/HiNotice/HiKPINotice.js +2 -1
- package/es/HiNotice/HiKPI.js +8 -1
- package/es/HiNotice/HiKPINotice.js +2 -1
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -1
package/HiNotice/HiKPI.js
CHANGED
@@ -152,9 +152,11 @@ function (_React$Component) {
|
|
152
152
|
color = _this$props.color,
|
153
153
|
id = _this$props.id,
|
154
154
|
tooltip = _this$props.tooltip,
|
155
|
-
disable = _this$props.disable
|
155
|
+
disable = _this$props.disable,
|
156
|
+
buttonId = _this$props.buttonId;
|
156
157
|
var rootclass = (0, _classnames.default)(classes.root, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.inherit, color === 'inherit'), (0, _defineProperty2.default)(_classNames, classes.warning, color === 'warning' && !disable), (0, _defineProperty2.default)(_classNames, classes.error, color === 'error' && !disable), (0, _defineProperty2.default)(_classNames, classes.positive, color === 'positive' && !disable), (0, _defineProperty2.default)(_classNames, classes.active, active), (0, _defineProperty2.default)(_classNames, classes.minify, minify), (0, _defineProperty2.default)(_classNames, classes.rootDisable, disable), _classNames));
|
157
158
|
return _react.default.createElement(_ButtonBase.default, {
|
159
|
+
id: buttonId,
|
158
160
|
className: rootclass,
|
159
161
|
onClick: !disable ? this.handleClick(id) : undefined,
|
160
162
|
title: tooltip,
|
@@ -195,6 +197,11 @@ HiKPI.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
195
197
|
*/
|
196
198
|
bodyMinify: _propTypes.default.any,
|
197
199
|
|
200
|
+
/**
|
201
|
+
* Id of the button
|
202
|
+
*/
|
203
|
+
buttonId: _propTypes.default.string,
|
204
|
+
|
198
205
|
/**
|
199
206
|
* Fonction appelée au clic sur le KPI
|
200
207
|
*/
|
package/HiNotice/HiKPINotice.js
CHANGED
package/es/HiNotice/HiKPI.js
CHANGED
@@ -105,7 +105,8 @@ class HiKPI extends React.Component {
|
|
105
105
|
color,
|
106
106
|
id,
|
107
107
|
tooltip,
|
108
|
-
disable
|
108
|
+
disable,
|
109
|
+
buttonId
|
109
110
|
} = this.props;
|
110
111
|
const rootclass = classNames(classes.root, {
|
111
112
|
[classes.inherit]: color === 'inherit',
|
@@ -117,6 +118,7 @@ class HiKPI extends React.Component {
|
|
117
118
|
[classes.rootDisable]: disable
|
118
119
|
});
|
119
120
|
return React.createElement(ButtonBase, {
|
121
|
+
id: buttonId,
|
120
122
|
className: rootclass,
|
121
123
|
onClick: !disable ? this.handleClick(id) : undefined,
|
122
124
|
title: tooltip,
|
@@ -156,6 +158,11 @@ HiKPI.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
156
158
|
*/
|
157
159
|
bodyMinify: PropTypes.any,
|
158
160
|
|
161
|
+
/**
|
162
|
+
* Id of the button
|
163
|
+
*/
|
164
|
+
buttonId: PropTypes.string,
|
165
|
+
|
159
166
|
/**
|
160
167
|
* Fonction appelée au clic sur le KPI
|
161
168
|
*/
|
package/index.es.js
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED