@hipay/hipay-material-ui 2.2.0-RC1 → 2.2.0-RC2

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/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
  */
@@ -52,7 +52,8 @@ var HiKPINotice = function HiKPINotice(_ref) {
52
52
  },
53
53
  active: activeKpi === key,
54
54
  minify: minify,
55
- disable: kpi.disable
55
+ disable: kpi.disable,
56
+ buttonId: kpi.buttonId
56
57
  });
57
58
  }));
58
59
  };
@@ -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
  */
@@ -37,7 +37,8 @@ const HiKPINotice = ({
37
37
  onClick: () => onClickOnKPI(key),
38
38
  active: activeKpi === key,
39
39
  minify: minify,
40
- disable: kpi.disable
40
+ disable: kpi.disable,
41
+ buttonId: kpi.buttonId
41
42
  });
42
43
  }));
43
44
  };
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.2.0-RC1
1
+ /** @license HiPay-Material-UI v2.2.0-RC2
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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.2.0-RC1
1
+ /** @license HiPay-Material-UI v2.2.0-RC2
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.
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
+ "private": false,
3
4
  "author": "HiPay PSYCHE Team",
4
- "version": "2.2.0-RC1",
5
+ "version": "2.2.0-RC2",
5
6
  "description": "React components that implement Google's Material Design.",
6
7
  "keywords": [
7
8
  "react",