@hipay/hipay-material-ui 2.3.0-rc.2 → 2.3.0-rc.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ var _ExpansionPanelSummary = _interopRequireDefault(require("@material-ui/core/E
33
33
 
34
34
  var _ExpansionPanelDetails = _interopRequireDefault(require("@material-ui/core/ExpansionPanelDetails"));
35
35
 
36
- var _HiIcon = _interopRequireDefault(require("./../HiIcon"));
36
+ var _HiIcon = _interopRequireDefault(require("../HiIcon"));
37
37
 
38
38
  var _styles = require("@material-ui/core/styles");
39
39
 
@@ -120,7 +120,7 @@ var styles = function styles(theme) {
120
120
  exports.styles = styles;
121
121
 
122
122
  var _ref = _react.default.createElement(_HiIcon.default, {
123
- icon: "mdi_menu_up",
123
+ icon: 'mdi_menu_up',
124
124
  size: 24
125
125
  });
126
126
 
@@ -152,10 +152,11 @@ function (_React$PureComponent) {
152
152
  secondaryHeadingDisabled = _this$props.secondaryHeadingDisabled,
153
153
  secondaryHeadingIcon = _this$props.secondaryHeadingIcon,
154
154
  collapseDisable = _this$props.collapseDisable,
155
+ collapseProps = _this$props.collapseProps,
155
156
  children = _this$props.children,
156
157
  classes = _this$props.classes,
157
158
  expanded = _this$props.expanded,
158
- props = (0, _objectWithoutProperties2.default)(_this$props, ["disabled", "heading", "secondaryHeading", "secondaryHeadingDisabled", "secondaryHeadingIcon", "collapseDisable", "children", "classes", "expanded"]);
159
+ props = (0, _objectWithoutProperties2.default)(_this$props, ["disabled", "heading", "secondaryHeading", "secondaryHeadingDisabled", "secondaryHeadingIcon", "collapseDisable", "collapseProps", "children", "classes", "expanded"]);
159
160
  var effectiveDisabled = disabled || !children;
160
161
  return _react.default.createElement(_ExpansionPanel.default, (0, _extends2.default)({
161
162
  disabled: effectiveDisabled,
@@ -165,7 +166,7 @@ function (_React$PureComponent) {
165
166
  },
166
167
  expanded: collapseDisable || expanded
167
168
  }, props, {
168
- CollapseProps: {
169
+ TransitionProps: (0, _extends2.default)({
169
170
  onExited: function onExited() {
170
171
  _this2.setState({
171
172
  panelDetailsExited: true
@@ -176,7 +177,7 @@ function (_React$PureComponent) {
176
177
  panelDetailsExited: false
177
178
  });
178
179
  }
179
- }
180
+ }, collapseProps)
180
181
  }), _react.default.createElement(_ExpansionPanelSummary.default, {
181
182
  classes: {
182
183
  root: classes.summaryRoot,
@@ -222,11 +223,21 @@ HiExpansionPanel.propTypes = process.env.NODE_ENV !== "production" ? {
222
223
  */
223
224
  collapseDisable: _propTypes.default.bool,
224
225
 
226
+ /**
227
+ * Surcharge la prop CollapseProps du composant ExpansionPanel
228
+ */
229
+ collapseProps: _propTypes.default.object,
230
+
225
231
  /**
226
232
  * Désactivé
227
233
  */
228
234
  disabled: _propTypes.default.bool,
229
235
 
236
+ /**
237
+ * Expanded
238
+ */
239
+ expanded: _propTypes.default.bool,
240
+
230
241
  /**
231
242
  * Titre principal du panel
232
243
  */
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
7
7
  import ExpansionPanel from '@material-ui/core/ExpansionPanel';
8
8
  import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
9
9
  import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
10
- import HiIcon from './../HiIcon';
10
+ import HiIcon from '../HiIcon';
11
11
  import { withStyles } from '@material-ui/core/styles';
12
12
  import classNames from 'classnames';
13
13
  export const styles = theme => ({
@@ -86,7 +86,7 @@ export const styles = theme => ({
86
86
  });
87
87
 
88
88
  var _ref = React.createElement(HiIcon, {
89
- icon: "mdi_menu_up",
89
+ icon: 'mdi_menu_up',
90
90
  size: 24
91
91
  });
92
92
 
@@ -107,11 +107,12 @@ class HiExpansionPanel extends React.PureComponent {
107
107
  secondaryHeadingDisabled,
108
108
  secondaryHeadingIcon,
109
109
  collapseDisable,
110
+ collapseProps,
110
111
  children,
111
112
  classes,
112
113
  expanded
113
114
  } = _this$props,
114
- props = _objectWithoutProperties(_this$props, ["disabled", "heading", "secondaryHeading", "secondaryHeadingDisabled", "secondaryHeadingIcon", "collapseDisable", "children", "classes", "expanded"]);
115
+ props = _objectWithoutProperties(_this$props, ["disabled", "heading", "secondaryHeading", "secondaryHeadingDisabled", "secondaryHeadingIcon", "collapseDisable", "collapseProps", "children", "classes", "expanded"]);
115
116
 
116
117
  const effectiveDisabled = disabled || !children;
117
118
  return React.createElement(ExpansionPanel, _extends({
@@ -122,7 +123,7 @@ class HiExpansionPanel extends React.PureComponent {
122
123
  },
123
124
  expanded: collapseDisable || expanded
124
125
  }, props, {
125
- CollapseProps: {
126
+ TransitionProps: _objectSpread({
126
127
  onExited: () => {
127
128
  this.setState({
128
129
  panelDetailsExited: true
@@ -133,7 +134,7 @@ class HiExpansionPanel extends React.PureComponent {
133
134
  panelDetailsExited: false
134
135
  });
135
136
  }
136
- }
137
+ }, collapseProps)
137
138
  }), React.createElement(ExpansionPanelSummary, {
138
139
  classes: {
139
140
  root: classes.summaryRoot,
@@ -182,11 +183,21 @@ HiExpansionPanel.propTypes = process.env.NODE_ENV !== "production" ? {
182
183
  */
183
184
  collapseDisable: PropTypes.bool,
184
185
 
186
+ /**
187
+ * Surcharge la prop CollapseProps du composant ExpansionPanel
188
+ */
189
+ collapseProps: PropTypes.object,
190
+
185
191
  /**
186
192
  * Désactivé
187
193
  */
188
194
  disabled: PropTypes.bool,
189
195
 
196
+ /**
197
+ * Expanded
198
+ */
199
+ expanded: PropTypes.bool,
200
+
190
201
  /**
191
202
  * Titre principal du panel
192
203
  */
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.3.0-rc.2
1
+ /** @license HiPay-Material-UI v2.3.0-rc.4
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.3.0-rc.2
1
+ /** @license HiPay-Material-UI v2.3.0-rc.4
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
@@ -2,7 +2,7 @@
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
4
  "author": "HiPay PSYCHE Team",
5
- "version": "2.3.0-rc.2",
5
+ "version": "2.3.0-rc.4",
6
6
  "description": "React components that implement Google's Material Design.",
7
7
  "keywords": [
8
8
  "react",