@hipay/hipay-material-ui 2.0.0-beta.54 → 2.0.0-beta.56
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 +57 -0
- package/HiBreadcrumb/HiBreadcrumb.js +14 -4
- package/HiBreadcrumb/HiStep.js +4 -1
- package/HiBreadcrumb/HiStepContent.js +0 -1
- package/HiBreadcrumb/HiStepLabel.js +12 -4
- package/HiBreadcrumb/HiStepper.js +1 -1
- package/HiButton/HiButton.js +7 -1
- package/HiCell/CellIcon.js +4 -4
- package/HiCell/CellImage.js +28 -4
- package/HiCell/CellNumeric.js +1 -2
- package/HiCell/CellRate.js +6 -3
- package/HiCell/CellSentinel.js +7 -10
- package/HiCell/CellSentinelScore.js +4 -4
- package/HiCell/CellTextStyled.js +99 -0
- package/HiCell/index.js +9 -1
- package/HiChip/HiChip.js +1 -0
- package/HiDatePicker/Caption.js +8 -9
- package/HiDatePicker/HiDateRangePicker.js +37 -19
- package/HiDatePicker/HiDateRangeSelector.js +24 -22
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +26 -17
- package/HiDatePicker/Overlays/MonthPickerOverlay.spec.js +1 -0
- package/HiDatePicker/Overlays/Overlay.js +15 -8
- package/HiDatePicker/Overlays/Overlay.spec.js +1 -0
- package/HiDatePicker/Overlays/TimePickerOverlay.js +2 -2
- package/HiDatePicker/Overlays/TimePickerOverlay.spec.js +1 -0
- package/HiDatePicker/Overlays/YearPickerOverlay.js +2 -4
- package/HiDatePicker/Overlays/YearPickerOverlay.spec.js +1 -0
- package/HiDatePicker/stylesheet.js +3 -2
- package/HiDotsStepper/HiDot.js +108 -0
- package/HiDotsStepper/HiDotsStepper.js +121 -0
- package/HiExpansionPanel/HiExpansionPanel.js +1 -1
- package/HiForm/HiAddressField.js +176 -0
- package/HiForm/HiSlider.js +352 -0
- package/HiForm/HiUpload.js +204 -0
- package/HiForm/HiUploadField.js +182 -0
- package/HiForm/HiUploadInput.js +459 -0
- package/HiForm/index.js +16 -0
- package/HiMap/HiMap.js +345 -0
- package/HiMap/HiMapExpand.js +210 -0
- package/HiMap/index.js +23 -0
- package/HiNotice/HiKPI.js +238 -0
- package/HiNotice/HiKPINotice.js +93 -0
- package/HiNotice/index.js +23 -0
- package/HiPdfReader/HiPdfReader.js +269 -0
- package/HiPdfReader/index.js +15 -0
- package/HiRadio/HiRadio.js +74 -0
- package/HiRadio/index.js +15 -0
- package/HiSelect/HiSelect.js +73 -84
- package/HiSelect/HiSuggestSelect.js +32 -5
- package/HiSelect/SelectInput.js +5 -0
- package/HiSelectNew/HiNestedSelectContent.js +5 -1
- package/HiSelectNew/HiSelect.js +174 -137
- package/HiSelectNew/HiSelectContent.js +0 -8
- package/HiSelectNew/HiSelectInput.js +8 -9
- package/HiSelectableList/HiSelectableList.js +32 -4
- package/HiSelectableList/HiSelectableListItem.js +62 -24
- package/HiTable/HiCellBuilder.js +42 -32
- package/HiTable/HiTableHeader.js +28 -21
- package/HiTable/constants.js +3 -1
- package/README.md +249 -98
- package/es/HiBreadcrumb/HiBreadcrumb.js +14 -4
- package/es/HiBreadcrumb/HiStep.js +4 -1
- package/es/HiBreadcrumb/HiStepContent.js +0 -1
- package/es/HiBreadcrumb/HiStepLabel.js +13 -4
- package/es/HiBreadcrumb/HiStepper.js +1 -1
- package/es/HiButton/HiButton.js +7 -0
- package/es/HiCell/CellIcon.js +5 -5
- package/es/HiCell/CellImage.js +25 -2
- package/es/HiCell/CellNumeric.js +1 -2
- package/es/HiCell/CellRate.js +6 -3
- package/es/HiCell/CellSentinel.js +7 -10
- package/es/HiCell/CellSentinelScore.js +4 -4
- package/es/HiCell/CellTextStyled.js +84 -0
- package/es/HiCell/index.js +2 -1
- package/es/HiChip/HiChip.js +1 -0
- package/es/HiDatePicker/Caption.js +7 -9
- package/es/HiDatePicker/HiDateRangePicker.js +41 -25
- package/es/HiDatePicker/HiDateRangeSelector.js +24 -22
- package/es/HiDatePicker/ListPicker.js +1 -1
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +30 -19
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +2 -2
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.spec.js +1 -0
- package/es/HiDatePicker/Overlays/Overlay.js +16 -9
- package/es/HiDatePicker/Overlays/Overlay.spec.js +1 -0
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +2 -2
- package/es/HiDatePicker/Overlays/TimePickerOverlay.spec.js +1 -0
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +2 -4
- package/es/HiDatePicker/Overlays/YearPickerOverlay.spec.js +1 -0
- package/es/HiDatePicker/stylesheet.js +3 -2
- package/es/HiDotsStepper/HiDot.js +66 -0
- package/es/HiDotsStepper/HiDotsStepper.js +73 -0
- package/es/HiExpansionPanel/HiExpansionPanel.js +1 -1
- package/es/HiForm/HiAddressField.js +134 -0
- package/es/HiForm/HiSlider.js +302 -0
- package/es/HiForm/HiUpload.js +158 -0
- package/es/HiForm/HiUploadField.js +140 -0
- package/es/HiForm/HiUploadInput.js +411 -0
- package/es/HiForm/index.js +2 -0
- package/es/HiMap/HiMap.js +290 -0
- package/es/HiMap/HiMapExpand.js +162 -0
- package/es/HiMap/index.js +2 -0
- package/es/HiNotice/HiKPI.js +196 -0
- package/es/HiNotice/HiKPINotice.js +77 -0
- package/es/HiNotice/index.js +2 -0
- package/es/HiPdfReader/HiPdfReader.js +214 -0
- package/es/HiPdfReader/index.js +1 -0
- package/es/HiRadio/HiRadio.js +55 -0
- package/es/HiRadio/index.js +1 -0
- package/es/HiSelect/HiSelect.js +68 -78
- package/es/HiSelect/HiSuggestSelect.js +27 -6
- package/es/HiSelect/SelectInput.js +5 -0
- package/es/HiSelectNew/HiNestedSelectContent.js +5 -1
- package/es/HiSelectNew/HiSelect.js +156 -120
- package/es/HiSelectNew/HiSelectContent.js +0 -7
- package/es/HiSelectNew/HiSelectInput.js +8 -9
- package/es/HiSelectableList/HiSelectableList.js +28 -6
- package/es/HiSelectableList/HiSelectableListItem.js +71 -24
- package/es/HiTable/HiCellBuilder.js +140 -136
- package/es/HiTable/HiTableHeader.js +26 -18
- package/es/HiTable/constants.js +1 -0
- package/es/index.js +7 -0
- package/es/utils/helpers.js +1 -1
- package/index.es.js +8 -1
- package/index.js +57 -1
- package/package.json +6 -3
- package/umd/hipay-material-ui.development.js +42114 -35120
- package/umd/hipay-material-ui.production.min.js +2 -2
- package/utils/helpers.js +1 -1
package/HiRadio/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _HiRadio.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _HiRadio = _interopRequireDefault(require("./HiRadio"));
|
package/HiSelect/HiSelect.js
CHANGED
|
@@ -23,8 +23,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
23
23
|
|
|
24
24
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
25
25
|
|
|
26
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
27
|
-
|
|
28
26
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
29
27
|
|
|
30
28
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -126,30 +124,6 @@ function (_React$PureComponent) {
|
|
|
126
124
|
(0, _classCallCheck2.default)(this, HiSelect);
|
|
127
125
|
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiSelect).call(this, _props));
|
|
128
126
|
|
|
129
|
-
_this.handleClick = function () {
|
|
130
|
-
if (_this.state.open) {
|
|
131
|
-
_this.handleClose();
|
|
132
|
-
} else {
|
|
133
|
-
_this.setState({
|
|
134
|
-
open: true
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
var options = _this.props.options.slice();
|
|
138
|
-
|
|
139
|
-
_this.handleSuggestions(options);
|
|
140
|
-
|
|
141
|
-
if (_this.props.onClick) {
|
|
142
|
-
_this.props.onClick();
|
|
143
|
-
} // Gestion du focus
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
if (!_this.props.searchable) {
|
|
147
|
-
// sinon focus sur le dernier élément selectionné
|
|
148
|
-
_this.focusOnSelectedItem();
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
|
|
153
127
|
_this.buildHierarchyTrees = function (props) {
|
|
154
128
|
// Construct two associative arrays
|
|
155
129
|
// hierarchy[parentId] => children
|
|
@@ -211,6 +185,63 @@ function (_React$PureComponent) {
|
|
|
211
185
|
}, 1);
|
|
212
186
|
};
|
|
213
187
|
|
|
188
|
+
_this.handleBlur = function () {
|
|
189
|
+
_this.setState({
|
|
190
|
+
focused: false
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
_this.handleClick = function () {
|
|
195
|
+
if (_this.state.open) {
|
|
196
|
+
_this.handleClose();
|
|
197
|
+
} else {
|
|
198
|
+
_this.setState({
|
|
199
|
+
open: true
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
var options = _this.props.options.slice();
|
|
203
|
+
|
|
204
|
+
_this.handleSuggestions(options);
|
|
205
|
+
|
|
206
|
+
if (_this.props.onClick) {
|
|
207
|
+
_this.props.onClick();
|
|
208
|
+
} // Gestion du focus
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
if (!_this.props.searchable) {
|
|
212
|
+
// sinon focus sur le dernier élément selectionné
|
|
213
|
+
_this.focusOnSelectedItem();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
_this.handleClickAway = function (event) {
|
|
219
|
+
// Au clic sur le bouton, on laisse le handleClick fermer le select
|
|
220
|
+
if (!_this.selectInputElement.contains(event.target)) {
|
|
221
|
+
_this.handleClose(event);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
_this.handleClose = function () {
|
|
226
|
+
if (_this.props.onClose) {
|
|
227
|
+
_this.props.onClose();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (_this.selectInputElement) {
|
|
231
|
+
_this.selectInputElement.focus();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
_this.setState({
|
|
235
|
+
open: false
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
_this.handleFocus = function () {
|
|
240
|
+
_this.setState({
|
|
241
|
+
focused: true
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
|
|
214
245
|
_this.handleKeyDown = function (event) {
|
|
215
246
|
var nextItem;
|
|
216
247
|
|
|
@@ -244,36 +275,29 @@ function (_React$PureComponent) {
|
|
|
244
275
|
}
|
|
245
276
|
};
|
|
246
277
|
|
|
247
|
-
_this.
|
|
248
|
-
|
|
249
|
-
focused: true
|
|
250
|
-
});
|
|
251
|
-
};
|
|
278
|
+
_this.handleRequestDelete = function (event) {
|
|
279
|
+
event.stopPropagation();
|
|
252
280
|
|
|
253
|
-
|
|
254
|
-
_this.setState({
|
|
255
|
-
focused: false
|
|
256
|
-
});
|
|
281
|
+
_this.props.onChange(_this.props.name, []);
|
|
257
282
|
};
|
|
258
283
|
|
|
259
|
-
_this.
|
|
260
|
-
if (_this.props.
|
|
261
|
-
|
|
262
|
-
}
|
|
284
|
+
_this.handleReset = function (event) {
|
|
285
|
+
if (_this.props.onReset) {
|
|
286
|
+
event.stopPropagation();
|
|
263
287
|
|
|
264
|
-
|
|
265
|
-
_this.selectInputElement.focus();
|
|
288
|
+
_this.props.onReset(event);
|
|
266
289
|
}
|
|
267
|
-
|
|
268
|
-
_this.setState({
|
|
269
|
-
open: false
|
|
270
|
-
});
|
|
271
290
|
};
|
|
272
291
|
|
|
273
|
-
_this.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
292
|
+
_this.handleScroll = function (event) {
|
|
293
|
+
if (!_this.props.loadingMoreResults && _this.props.hasMore && event.target.scrollHeight - event.target.clientHeight - event.target.scrollTop < 15) {
|
|
294
|
+
_this.props.loadMoreResults(_this.state.resultsPageNumber + 1);
|
|
295
|
+
|
|
296
|
+
_this.setState(function (prevState) {
|
|
297
|
+
return {
|
|
298
|
+
resultsPageNumber: prevState.resultsPageNumber + 1
|
|
299
|
+
};
|
|
300
|
+
});
|
|
277
301
|
}
|
|
278
302
|
};
|
|
279
303
|
|
|
@@ -446,24 +470,6 @@ function (_React$PureComponent) {
|
|
|
446
470
|
});
|
|
447
471
|
};
|
|
448
472
|
|
|
449
|
-
_this.handleRequestDelete = function (evt) {
|
|
450
|
-
evt.stopPropagation();
|
|
451
|
-
|
|
452
|
-
_this.props.onChange(_this.props.name, []);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
_this.handleScroll = function (event) {
|
|
456
|
-
if (!_this.props.loadingMoreResults && _this.props.hasMore && event.target.scrollHeight - event.target.clientHeight - event.target.scrollTop < 15) {
|
|
457
|
-
_this.props.loadMoreResults(_this.state.resultsPageNumber + 1);
|
|
458
|
-
|
|
459
|
-
_this.setState(function (prevState) {
|
|
460
|
-
return {
|
|
461
|
-
resultsPageNumber: prevState.resultsPageNumber + 1
|
|
462
|
-
};
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
|
|
467
473
|
_this.state = {
|
|
468
474
|
open: false,
|
|
469
475
|
focused: false,
|
|
@@ -521,15 +527,6 @@ function (_React$PureComponent) {
|
|
|
521
527
|
_this.state.dynamic = true;
|
|
522
528
|
}
|
|
523
529
|
|
|
524
|
-
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
525
|
-
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
526
|
-
_this.handleClose = _this.handleClose.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
527
|
-
_this.handleClickAway = _this.handleClickAway.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
528
|
-
_this.handleRequestDelete = _this.handleRequestDelete.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
529
|
-
_this.handleSuggestions = _this.handleSuggestions.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
530
|
-
_this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
531
|
-
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
532
|
-
_this.handleScroll = _this.handleScroll.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
533
530
|
return _this;
|
|
534
531
|
}
|
|
535
532
|
|
|
@@ -557,14 +554,6 @@ function (_React$PureComponent) {
|
|
|
557
554
|
});
|
|
558
555
|
}
|
|
559
556
|
}
|
|
560
|
-
}, {
|
|
561
|
-
key: "handleReset",
|
|
562
|
-
value: function handleReset(event) {
|
|
563
|
-
if (this.props.onReset) {
|
|
564
|
-
event.stopPropagation();
|
|
565
|
-
this.props.onReset(event);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
557
|
}, {
|
|
569
558
|
key: "render",
|
|
570
559
|
value: function render() {
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.styles = void 0;
|
|
9
9
|
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
|
|
10
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
13
|
|
|
12
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
@@ -33,6 +35,8 @@ var _Grow = _interopRequireDefault(require("@material-ui/core/Grow"));
|
|
|
33
35
|
|
|
34
36
|
var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
|
|
35
37
|
|
|
38
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
39
|
+
|
|
36
40
|
var _HiSelectableList = _interopRequireDefault(require("../HiSelectableList"));
|
|
37
41
|
|
|
38
42
|
var _HiInput = _interopRequireDefault(require("../HiForm/HiInput"));
|
|
@@ -43,6 +47,8 @@ var _Popper = _interopRequireDefault(require("@material-ui/core/Popper"));
|
|
|
43
47
|
|
|
44
48
|
var _helpers = require("../utils/helpers");
|
|
45
49
|
|
|
50
|
+
var _keycode = _interopRequireDefault(require("keycode"));
|
|
51
|
+
|
|
46
52
|
// @inheritedComponent HiInput
|
|
47
53
|
var styles = function styles(theme) {
|
|
48
54
|
return {
|
|
@@ -62,6 +68,9 @@ var styles = function styles(theme) {
|
|
|
62
68
|
borderRadius: '0px 2px',
|
|
63
69
|
maxHeight: 440,
|
|
64
70
|
transition: 'none'
|
|
71
|
+
},
|
|
72
|
+
alignRight: {
|
|
73
|
+
right: 0
|
|
65
74
|
}
|
|
66
75
|
};
|
|
67
76
|
};
|
|
@@ -108,13 +117,24 @@ function (_React$PureComponent) {
|
|
|
108
117
|
|
|
109
118
|
_this.handleKeyDown = function (event) {
|
|
110
119
|
var nextItem;
|
|
120
|
+
var key = (0, _keycode.default)(event);
|
|
111
121
|
|
|
112
|
-
if (
|
|
122
|
+
if (key === 'down') {
|
|
123
|
+
event.preventDefault();
|
|
113
124
|
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'down');
|
|
114
|
-
} else if (
|
|
125
|
+
} else if (key === 'up') {
|
|
126
|
+
event.preventDefault();
|
|
115
127
|
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'up');
|
|
116
|
-
} else if (
|
|
128
|
+
} else if (key === 'tab') {
|
|
117
129
|
document.body.style.overflow = 'auto';
|
|
130
|
+
} else if (key === 'escape' || 'enter') {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
|
|
133
|
+
var item = _this.props.options.find(function (elem) {
|
|
134
|
+
return String(elem.id) === event.target.id;
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
_this.handleSelect(null, item);
|
|
118
138
|
}
|
|
119
139
|
|
|
120
140
|
if (nextItem) {
|
|
@@ -195,7 +215,8 @@ function (_React$PureComponent) {
|
|
|
195
215
|
showNoResults = _this$props.showNoResults,
|
|
196
216
|
onSearch = _this$props.onSearch,
|
|
197
217
|
translations = _this$props.translations,
|
|
198
|
-
|
|
218
|
+
align = _this$props.align,
|
|
219
|
+
otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "id", "loading", "showMinLength", "showNoResults", "onSearch", "translations", "align"]);
|
|
199
220
|
var _this$state = this.state,
|
|
200
221
|
focused = _this$state.focused,
|
|
201
222
|
options = _this$state.options;
|
|
@@ -240,7 +261,7 @@ function (_React$PureComponent) {
|
|
|
240
261
|
disablePortal: true,
|
|
241
262
|
anchorEl: this.textInput,
|
|
242
263
|
placement: "bottom-start",
|
|
243
|
-
className: classes.popper,
|
|
264
|
+
className: (0, _classnames.default)(classes.popper, (0, _defineProperty2.default)({}, classes.alignRight, align === 'right')),
|
|
244
265
|
open: true
|
|
245
266
|
}, _react.default.createElement(_Grow.default, {
|
|
246
267
|
in: open,
|
|
@@ -264,6 +285,7 @@ function (_React$PureComponent) {
|
|
|
264
285
|
}(_react.default.PureComponent);
|
|
265
286
|
|
|
266
287
|
HiSuggestSelect.defaultProps = {
|
|
288
|
+
align: 'left',
|
|
267
289
|
showMinLength: false,
|
|
268
290
|
showNoResults: false,
|
|
269
291
|
translations: {
|
|
@@ -273,6 +295,11 @@ HiSuggestSelect.defaultProps = {
|
|
|
273
295
|
options: []
|
|
274
296
|
};
|
|
275
297
|
HiSuggestSelect.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
298
|
+
/**
|
|
299
|
+
* Align popper on right or left of container
|
|
300
|
+
*/
|
|
301
|
+
align: _propTypes.default.oneOf(['left', 'right']),
|
|
302
|
+
|
|
276
303
|
/**
|
|
277
304
|
* Useful to extend the style applied to components.
|
|
278
305
|
*/
|
package/HiSelect/SelectInput.js
CHANGED
|
@@ -345,6 +345,11 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
345
345
|
*/
|
|
346
346
|
refElement: _propTypes.default.func,
|
|
347
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Theme object
|
|
350
|
+
*/
|
|
351
|
+
theme: _propTypes.default.object,
|
|
352
|
+
|
|
348
353
|
/**
|
|
349
354
|
* Valeur à afficher (déjà formattée)
|
|
350
355
|
*/
|
|
@@ -235,7 +235,6 @@ function (_React$PureComponent) {
|
|
|
235
235
|
var search = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
236
236
|
var loading = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
237
237
|
var _this$props2 = _this.props,
|
|
238
|
-
classes = _this$props2.classes,
|
|
239
238
|
disabledParent = _this$props2.disabledParent,
|
|
240
239
|
hasAll = _this$props2.hasAll,
|
|
241
240
|
iconAll = _this$props2.iconAll,
|
|
@@ -353,6 +352,11 @@ HiNestedSelectContent.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
353
352
|
*/
|
|
354
353
|
hasAll: _propTypes.default.bool,
|
|
355
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Propriétés du composant HiSelectableList
|
|
357
|
+
*/
|
|
358
|
+
hiSelectableListProps: _propTypes.default.object,
|
|
359
|
+
|
|
356
360
|
/**
|
|
357
361
|
* id du select
|
|
358
362
|
*/
|