@hipay/hipay-material-ui 2.0.0-beta.60 → 2.0.0-beta.62
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +126 -0
- package/HiDatePicker/HiDatePicker.js +37 -12
- package/HiDatePicker/HiDateRangePicker.js +71 -57
- package/HiDatePicker/HiDateRangeSelector.js +34 -20
- package/HiDatePicker/stylesheet.js +32 -17
- package/HiSelect/HiSelect.js +489 -607
- package/HiSelect/index.js +41 -3
- package/HiSelectableList/HiSelectableList.js +68 -3
- package/HiSelectableList/HiSelectableListItem.js +22 -10
- package/README.md +15 -0
- package/es/HiDatePicker/HiDatePicker.js +30 -10
- package/es/HiDatePicker/HiDateRangePicker.js +38 -21
- package/es/HiDatePicker/HiDateRangeSelector.js +24 -13
- package/es/HiDatePicker/stylesheet.js +32 -17
- package/es/{HiSelectNew → HiSelect}/HiNestedSelect.js +1 -1
- package/es/{HiSelectNew → HiSelect}/HiNestedSelectContent.js +1 -1
- package/es/HiSelect/HiSelect.js +441 -564
- package/es/{HiSelectNew → HiSelect}/HiSelectContent.js +1 -1
- package/es/HiSelect/index.js +4 -1
- package/es/HiSelectableList/HiSelectableList.js +65 -4
- package/es/HiSelectableList/HiSelectableListItem.js +18 -10
- package/es/styles/createPalette.js +1 -1
- package/es/utils/helpers.js +9 -1
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/styles/createPalette.js +1 -1
- package/umd/hipay-material-ui.development.js +7860 -7749
- package/umd/hipay-material-ui.production.min.js +2 -2
- package/utils/helpers.js +9 -1
- package/HiSelect/SelectInput.js +0 -369
- package/HiSelectNew/HiSelect.js +0 -929
- package/HiSelectNew/HiSelectField.js +0 -146
- package/HiSelectNew/index.js +0 -69
- package/es/HiSelect/SelectInput.js +0 -321
- package/es/HiSelectNew/HiSelect.js +0 -852
- package/es/HiSelectNew/HiSelectField.js +0 -111
- package/es/HiSelectNew/index.js +0 -6
- /package/{HiSelectNew → HiSelect}/HiDynamicSelect.js +0 -0
- /package/{HiSelectNew → HiSelect}/HiDynamicSelectField.js +0 -0
- /package/{HiSelectNew → HiSelect}/HiNestedSelect.js +0 -0
- /package/{HiSelectNew → HiSelect}/HiNestedSelectContent.js +0 -0
- /package/{HiSelectNew → HiSelect}/HiNestedSelectField.js +0 -0
- /package/{HiSelectNew → HiSelect}/HiSelectContent.js +0 -0
- /package/{HiSelectNew → HiSelect}/HiSelectInput.js +0 -0
- /package/es/{HiSelectNew → HiSelect}/HiDynamicSelect.js +0 -0
- /package/es/{HiSelectNew → HiSelect}/HiDynamicSelectField.js +0 -0
- /package/es/{HiSelectNew → HiSelect}/HiNestedSelectField.js +0 -0
- /package/es/{HiSelectNew → HiSelect}/HiSelectInput.js +0 -0
@@ -1,146 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.default = void 0;
|
9
|
-
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
-
|
12
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
13
|
-
|
14
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
15
|
-
|
16
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
17
|
-
|
18
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
19
|
-
|
20
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
21
|
-
|
22
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
23
|
-
|
24
|
-
var _react = _interopRequireDefault(require("react"));
|
25
|
-
|
26
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
27
|
-
|
28
|
-
var _HiFormControl = _interopRequireDefault(require("../HiForm/HiFormControl"));
|
29
|
-
|
30
|
-
var _HiSelect = _interopRequireDefault(require("./HiSelect"));
|
31
|
-
|
32
|
-
// @inheritedComponent HiSelect
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Champs input pour formulaire
|
36
|
-
*/
|
37
|
-
var HiSelectField =
|
38
|
-
/*#__PURE__*/
|
39
|
-
function (_React$PureComponent) {
|
40
|
-
(0, _inherits2.default)(HiSelectField, _React$PureComponent);
|
41
|
-
|
42
|
-
function HiSelectField() {
|
43
|
-
(0, _classCallCheck2.default)(this, HiSelectField);
|
44
|
-
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiSelectField).apply(this, arguments));
|
45
|
-
}
|
46
|
-
|
47
|
-
(0, _createClass2.default)(HiSelectField, [{
|
48
|
-
key: "render",
|
49
|
-
value: function render() {
|
50
|
-
var _this$props = this.props,
|
51
|
-
label = _this$props.label,
|
52
|
-
required = _this$props.required,
|
53
|
-
disabled = _this$props.disabled,
|
54
|
-
error = _this$props.error,
|
55
|
-
errorText = _this$props.errorText,
|
56
|
-
helperText = _this$props.helperText,
|
57
|
-
helperIcon = _this$props.helperIcon,
|
58
|
-
id = _this$props.id,
|
59
|
-
name = _this$props.name,
|
60
|
-
value = _this$props.value,
|
61
|
-
options = _this$props.options,
|
62
|
-
type = _this$props.type,
|
63
|
-
multiple = _this$props.multiple,
|
64
|
-
iconAll = _this$props.iconAll,
|
65
|
-
checkbox = _this$props.checkbox,
|
66
|
-
searchable = _this$props.searchable,
|
67
|
-
translations = _this$props.translations,
|
68
|
-
className = _this$props.className,
|
69
|
-
others = (0, _objectWithoutProperties2.default)(_this$props, ["label", "required", "disabled", "error", "errorText", "helperText", "helperIcon", "id", "name", "value", "options", "type", "multiple", "iconAll", "checkbox", "searchable", "translations", "className"]);
|
70
|
-
return _react.default.createElement(_HiFormControl.default, {
|
71
|
-
id: id,
|
72
|
-
label: label,
|
73
|
-
required: required,
|
74
|
-
disabled: disabled,
|
75
|
-
error: error,
|
76
|
-
errorText: errorText,
|
77
|
-
helperText: helperText,
|
78
|
-
helperIcon: helperIcon,
|
79
|
-
className: className
|
80
|
-
}, _react.default.createElement(_HiSelect.default, (0, _extends2.default)({
|
81
|
-
id: id,
|
82
|
-
name: name,
|
83
|
-
value: value,
|
84
|
-
options: options,
|
85
|
-
type: type,
|
86
|
-
multiple: multiple,
|
87
|
-
iconAll: iconAll,
|
88
|
-
checkbox: checkbox,
|
89
|
-
searchable: searchable,
|
90
|
-
translations: translations,
|
91
|
-
disabled: disabled,
|
92
|
-
error: error
|
93
|
-
}, others)));
|
94
|
-
}
|
95
|
-
}]);
|
96
|
-
return HiSelectField;
|
97
|
-
}(_react.default.PureComponent);
|
98
|
-
|
99
|
-
HiSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
100
|
-
/**
|
101
|
-
* Surcharge des styles
|
102
|
-
*/
|
103
|
-
className: _propTypes.default.string,
|
104
|
-
|
105
|
-
/**
|
106
|
-
* Si `true`, l'input sera inactif.
|
107
|
-
*/
|
108
|
-
disabled: _propTypes.default.bool,
|
109
|
-
|
110
|
-
/**
|
111
|
-
* Si `true`, le champs sera en erreur.
|
112
|
-
*/
|
113
|
-
error: _propTypes.default.bool,
|
114
|
-
|
115
|
-
/**
|
116
|
-
* Texte de l'erreur
|
117
|
-
*/
|
118
|
-
errorText: _propTypes.default.string,
|
119
|
-
|
120
|
-
/**
|
121
|
-
* Si "true", le texte d'aide s'affichera seulement au clic sur l'icône "Information"
|
122
|
-
*/
|
123
|
-
helperIcon: _propTypes.default.bool,
|
124
|
-
|
125
|
-
/**
|
126
|
-
* Texte de l'aide
|
127
|
-
*/
|
128
|
-
helperText: _propTypes.default.string,
|
129
|
-
|
130
|
-
/**
|
131
|
-
* id de l'élément input
|
132
|
-
*/
|
133
|
-
id: _propTypes.default.string.isRequired,
|
134
|
-
|
135
|
-
/**
|
136
|
-
* Label du champs
|
137
|
-
*/
|
138
|
-
label: _propTypes.default.string,
|
139
|
-
|
140
|
-
/**
|
141
|
-
* true si champs obligatoire
|
142
|
-
*/
|
143
|
-
required: _propTypes.default.bool
|
144
|
-
} : {};
|
145
|
-
var _default = HiSelectField;
|
146
|
-
exports.default = _default;
|
package/HiSelectNew/index.js
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
4
|
-
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
6
|
-
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
8
|
-
value: true
|
9
|
-
});
|
10
|
-
Object.defineProperty(exports, "default", {
|
11
|
-
enumerable: true,
|
12
|
-
get: function get() {
|
13
|
-
return _HiSelect.default;
|
14
|
-
}
|
15
|
-
});
|
16
|
-
Object.defineProperty(exports, "HiNestedSelect", {
|
17
|
-
enumerable: true,
|
18
|
-
get: function get() {
|
19
|
-
return _HiNestedSelect.default;
|
20
|
-
}
|
21
|
-
});
|
22
|
-
Object.defineProperty(exports, "HiSelectField", {
|
23
|
-
enumerable: true,
|
24
|
-
get: function get() {
|
25
|
-
return _HiSelectField.default;
|
26
|
-
}
|
27
|
-
});
|
28
|
-
Object.defineProperty(exports, "HiSelectInput", {
|
29
|
-
enumerable: true,
|
30
|
-
get: function get() {
|
31
|
-
return _HiSelectInput.default;
|
32
|
-
}
|
33
|
-
});
|
34
|
-
Object.defineProperty(exports, "HiSelectContent", {
|
35
|
-
enumerable: true,
|
36
|
-
get: function get() {
|
37
|
-
return _HiSelectContent.default;
|
38
|
-
}
|
39
|
-
});
|
40
|
-
Object.defineProperty(exports, "HiNestedSelectContent", {
|
41
|
-
enumerable: true,
|
42
|
-
get: function get() {
|
43
|
-
return _HiNestedSelectContent.default;
|
44
|
-
}
|
45
|
-
});
|
46
|
-
Object.defineProperty(exports, "findFinalItemRecursively", {
|
47
|
-
enumerable: true,
|
48
|
-
get: function get() {
|
49
|
-
return _HiNestedSelectContent.findFinalItemRecursively;
|
50
|
-
}
|
51
|
-
});
|
52
|
-
Object.defineProperty(exports, "getRecursiveFinalItemIdList", {
|
53
|
-
enumerable: true,
|
54
|
-
get: function get() {
|
55
|
-
return _HiNestedSelectContent.getRecursiveFinalItemIdList;
|
56
|
-
}
|
57
|
-
});
|
58
|
-
|
59
|
-
var _HiSelect = _interopRequireDefault(require("./HiSelect"));
|
60
|
-
|
61
|
-
var _HiNestedSelect = _interopRequireDefault(require("./HiNestedSelect"));
|
62
|
-
|
63
|
-
var _HiSelectField = _interopRequireDefault(require("./HiSelectField"));
|
64
|
-
|
65
|
-
var _HiSelectInput = _interopRequireDefault(require("./HiSelectInput"));
|
66
|
-
|
67
|
-
var _HiSelectContent = _interopRequireDefault(require("./HiSelectContent"));
|
68
|
-
|
69
|
-
var _HiNestedSelectContent = _interopRequireWildcard(require("./HiNestedSelectContent"));
|
@@ -1,321 +0,0 @@
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/objectSpread";
|
2
|
-
import React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
|
-
import classNames from 'classnames';
|
5
|
-
import keycode from 'keycode';
|
6
|
-
import HiIcon from '../HiIcon';
|
7
|
-
import { withStyles } from '../styles';
|
8
|
-
import ButtonBase from '@material-ui/core/ButtonBase';
|
9
|
-
export const styles = theme => ({
|
10
|
-
root: {
|
11
|
-
width: '100%',
|
12
|
-
height: 40,
|
13
|
-
maxWidth: 500,
|
14
|
-
display: 'flex',
|
15
|
-
justifyContent: 'center',
|
16
|
-
paddingTop: 7,
|
17
|
-
paddingBottom: 9,
|
18
|
-
paddingRight: 8,
|
19
|
-
paddingLeft: 8,
|
20
|
-
cursor: 'pointer'
|
21
|
-
},
|
22
|
-
underline: {
|
23
|
-
'&:before': {
|
24
|
-
backgroundColor: theme.palette.input.bottomLine,
|
25
|
-
left: 0,
|
26
|
-
bottom: 0,
|
27
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
28
|
-
content: '""',
|
29
|
-
height: 1,
|
30
|
-
position: 'absolute',
|
31
|
-
right: 0,
|
32
|
-
transition: theme.transitions.create('background-color', {
|
33
|
-
duration: theme.transitions.duration.shorter,
|
34
|
-
easing: theme.transitions.easing.ease
|
35
|
-
}),
|
36
|
-
pointerEvents: 'none' // Transparent to the hover style.
|
37
|
-
|
38
|
-
},
|
39
|
-
'&:hover:not($disabled):before': {
|
40
|
-
backgroundColor: theme.palette.input.bottomLine,
|
41
|
-
height: 2
|
42
|
-
},
|
43
|
-
'&$disabled:before': {
|
44
|
-
background: 'transparent',
|
45
|
-
backgroundImage: `linear-gradient(to right, ${theme.palette.input.bottomLine} 33%, transparent 0%)`,
|
46
|
-
backgroundPosition: 'left top',
|
47
|
-
backgroundRepeat: 'repeat-x',
|
48
|
-
backgroundSize: '5px 1px'
|
49
|
-
}
|
50
|
-
},
|
51
|
-
inkbar: {
|
52
|
-
'&:not($disabled)': {
|
53
|
-
'&:not($error):after': {
|
54
|
-
backgroundColor: theme.palette.primary.main,
|
55
|
-
left: 0,
|
56
|
-
bottom: 0,
|
57
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
58
|
-
content: '""',
|
59
|
-
height: 1,
|
60
|
-
position: 'absolute',
|
61
|
-
right: 0,
|
62
|
-
transform: 'scaleX(0)',
|
63
|
-
transition: theme.transitions.create('transform', {
|
64
|
-
duration: theme.transitions.duration.shorter,
|
65
|
-
easing: theme.transitions.easing.easeOut
|
66
|
-
}),
|
67
|
-
pointerEvents: 'none' // Transparent to the hover style.
|
68
|
-
|
69
|
-
},
|
70
|
-
'&:hover:after': {
|
71
|
-
transform: 'scaleX(1)'
|
72
|
-
},
|
73
|
-
'&$focused:after': {
|
74
|
-
transform: 'scaleX(1)'
|
75
|
-
},
|
76
|
-
'&$error': {
|
77
|
-
border: `1px solid ${theme.palette.negative.normal}`,
|
78
|
-
borderRadius: 2
|
79
|
-
}
|
80
|
-
}
|
81
|
-
},
|
82
|
-
disabled: {
|
83
|
-
color: `${theme.palette.text.disabled}`,
|
84
|
-
'&:before': {
|
85
|
-
display: 'none'
|
86
|
-
}
|
87
|
-
},
|
88
|
-
focused: {
|
89
|
-
backgroundColor: theme.palette.background3
|
90
|
-
},
|
91
|
-
error: {},
|
92
|
-
label: _objectSpread({
|
93
|
-
whiteSpace: 'nowrap',
|
94
|
-
overflow: 'hidden',
|
95
|
-
textOverflow: 'ellipsis'
|
96
|
-
}, theme.typography.b1, {
|
97
|
-
display: 'inline-flex',
|
98
|
-
width: '100%'
|
99
|
-
}),
|
100
|
-
icon: {
|
101
|
-
transition: theme.transitions.create(['opacity', 'transform'], {
|
102
|
-
duration: theme.transitions.duration.shorter
|
103
|
-
})
|
104
|
-
},
|
105
|
-
iconOpen: {
|
106
|
-
transform: 'rotate(90deg)'
|
107
|
-
},
|
108
|
-
iconClose: {
|
109
|
-
transform: 'rotate(0deg)'
|
110
|
-
}
|
111
|
-
});
|
112
|
-
/**
|
113
|
-
* @ignore - internal component.
|
114
|
-
*/
|
115
|
-
|
116
|
-
class SelectInput extends React.PureComponent {
|
117
|
-
constructor(props) {
|
118
|
-
super(props);
|
119
|
-
|
120
|
-
this.handleKeyDown = event => {
|
121
|
-
const key = keycode(event);
|
122
|
-
|
123
|
-
if (['up', 'down', 'space'].includes(key)) {
|
124
|
-
event.preventDefault();
|
125
|
-
this.props.onClick();
|
126
|
-
} else if (key === 'enter' && this.props.onSubmit) {
|
127
|
-
event.preventDefault();
|
128
|
-
this.props.onSubmit(event);
|
129
|
-
}
|
130
|
-
};
|
131
|
-
|
132
|
-
this.handleClick = event => {
|
133
|
-
if ((!this.resetIcon || !this.resetIcon.contains(event.target)) && this.props.onClick) {
|
134
|
-
this.props.onClick(event);
|
135
|
-
}
|
136
|
-
};
|
137
|
-
|
138
|
-
this.handleKeyDown = this.handleKeyDown.bind(this);
|
139
|
-
this.handleClick = this.handleClick.bind(this);
|
140
|
-
}
|
141
|
-
|
142
|
-
render() {
|
143
|
-
const {
|
144
|
-
classes,
|
145
|
-
noButton,
|
146
|
-
disabled,
|
147
|
-
onClick,
|
148
|
-
onReset,
|
149
|
-
value,
|
150
|
-
open,
|
151
|
-
focused,
|
152
|
-
error,
|
153
|
-
id,
|
154
|
-
refElement,
|
155
|
-
theme
|
156
|
-
} = this.props; // On utilise classNames pour variabiliser les styles et merge les classes appliquées
|
157
|
-
|
158
|
-
const rootClass = classNames(classes.root, classes.inkbar, classes.underline, {
|
159
|
-
[classes.disabled]: disabled,
|
160
|
-
[classes.focused]: focused,
|
161
|
-
[classes.error]: error && !focused
|
162
|
-
});
|
163
|
-
const iconClass = classNames(classes.icon, {
|
164
|
-
[classes.iconOpen]: open,
|
165
|
-
[classes.iconClose]: !open
|
166
|
-
});
|
167
|
-
const render = noButton ? React.createElement("div", {
|
168
|
-
id: id,
|
169
|
-
className: rootClass,
|
170
|
-
onClick: onClick,
|
171
|
-
disabled: disabled,
|
172
|
-
onMouseEnter: this.props.onMouseEnter,
|
173
|
-
onMouseLeave: this.props.onMouseLeave,
|
174
|
-
onKeyDown: this.handleKeyDown,
|
175
|
-
onFocus: this.props.onFocus,
|
176
|
-
onBlur: this.props.onBlur,
|
177
|
-
role: "button",
|
178
|
-
tabIndex: "0",
|
179
|
-
ref: el => {
|
180
|
-
if (refElement) refElement(el);
|
181
|
-
}
|
182
|
-
}, React.createElement("span", {
|
183
|
-
className: classes.label
|
184
|
-
}, value), React.createElement(HiIcon, {
|
185
|
-
className: iconClass,
|
186
|
-
icon: "arrow_drop_down"
|
187
|
-
})) : React.createElement(ButtonBase, {
|
188
|
-
component: "div",
|
189
|
-
id: id,
|
190
|
-
classes: {
|
191
|
-
root: rootClass
|
192
|
-
},
|
193
|
-
onClick: this.handleClick,
|
194
|
-
disabled: disabled,
|
195
|
-
onMouseEnter: this.props.onMouseEnter,
|
196
|
-
onMouseLeave: this.props.onMouseLeave,
|
197
|
-
onKeyDown: this.handleKeyDown,
|
198
|
-
onFocus: this.props.onFocus,
|
199
|
-
onBlur: this.props.onBlur,
|
200
|
-
buttonRef: el => {
|
201
|
-
if (refElement) refElement(el);
|
202
|
-
}
|
203
|
-
}, React.createElement("span", {
|
204
|
-
className: classes.label
|
205
|
-
}, value), onReset && focused && React.createElement("div", {
|
206
|
-
ref: el => {
|
207
|
-
this.resetIcon = el;
|
208
|
-
}
|
209
|
-
}, React.createElement(HiIcon, {
|
210
|
-
icon: "close",
|
211
|
-
size: 24,
|
212
|
-
color: theme.palette.neutral.main,
|
213
|
-
onClick: onReset
|
214
|
-
})), React.createElement(HiIcon, {
|
215
|
-
className: iconClass,
|
216
|
-
icon: "arrow_drop_down"
|
217
|
-
}));
|
218
|
-
return render;
|
219
|
-
}
|
220
|
-
|
221
|
-
}
|
222
|
-
|
223
|
-
SelectInput.defaultProps = {
|
224
|
-
disabled: false,
|
225
|
-
open: false,
|
226
|
-
focused: false,
|
227
|
-
noButton: false,
|
228
|
-
error: false
|
229
|
-
};
|
230
|
-
SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
231
|
-
/**
|
232
|
-
* Useful to extend the style applied to components.
|
233
|
-
*/
|
234
|
-
classes: PropTypes.object,
|
235
|
-
|
236
|
-
/**
|
237
|
-
* If `true`, the select will be disabled.
|
238
|
-
*/
|
239
|
-
disabled: PropTypes.bool,
|
240
|
-
|
241
|
-
/**
|
242
|
-
* Applique le style error
|
243
|
-
*/
|
244
|
-
error: PropTypes.bool,
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Applique le style focused
|
248
|
-
*/
|
249
|
-
focused: PropTypes.bool,
|
250
|
-
|
251
|
-
/**
|
252
|
-
* id du select
|
253
|
-
*/
|
254
|
-
id: PropTypes.string,
|
255
|
-
|
256
|
-
/**
|
257
|
-
* Affiche sous forme de div à la place d'un bouton.
|
258
|
-
* Si des éléments cliquables sont à l'intérieur.
|
259
|
-
*/
|
260
|
-
noButton: PropTypes.bool,
|
261
|
-
|
262
|
-
/**
|
263
|
-
* Fonction de callback au blur du bouton
|
264
|
-
*/
|
265
|
-
onBlur: PropTypes.func,
|
266
|
-
|
267
|
-
/**
|
268
|
-
* Fonction de callback au click sur l'input/bouton
|
269
|
-
*/
|
270
|
-
onClick: PropTypes.func,
|
271
|
-
|
272
|
-
/**
|
273
|
-
* Fonction de callback au focus l'input/bouton
|
274
|
-
*/
|
275
|
-
onFocus: PropTypes.func,
|
276
|
-
|
277
|
-
/**
|
278
|
-
* Fonction de callback appelée lorsqu'on survole le champs
|
279
|
-
*/
|
280
|
-
onMouseEnter: PropTypes.func,
|
281
|
-
|
282
|
-
/**
|
283
|
-
* Fonction de callback appelée lorsque le curseur quitte le champs
|
284
|
-
*/
|
285
|
-
onMouseLeave: PropTypes.func,
|
286
|
-
|
287
|
-
/**
|
288
|
-
* Fonction de callback appelée lorsqu'on vide le champs
|
289
|
-
*/
|
290
|
-
onReset: PropTypes.func,
|
291
|
-
|
292
|
-
/**
|
293
|
-
* Fonction de callback à la pression de la touche "Entrée"
|
294
|
-
*/
|
295
|
-
onSubmit: PropTypes.func,
|
296
|
-
|
297
|
-
/**
|
298
|
-
* Applique le style open et effectue une rotation de l'icône
|
299
|
-
*/
|
300
|
-
open: PropTypes.bool,
|
301
|
-
|
302
|
-
/**
|
303
|
-
* Use that property to pass a ref callback to the native component.
|
304
|
-
*/
|
305
|
-
refElement: PropTypes.func,
|
306
|
-
|
307
|
-
/**
|
308
|
-
* Theme object
|
309
|
-
*/
|
310
|
-
theme: PropTypes.object,
|
311
|
-
|
312
|
-
/**
|
313
|
-
* Valeur à afficher (déjà formattée)
|
314
|
-
*/
|
315
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node])
|
316
|
-
} : {};
|
317
|
-
export default withStyles(styles, {
|
318
|
-
hiComponent: true,
|
319
|
-
name: 'HmuiSelectInput',
|
320
|
-
withTheme: true
|
321
|
-
})(SelectInput);
|