File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
mui-component-mapper/src/files/select Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import CreatableSelect from 'react-select/creatable';
6
6
import PropTypes from 'prop-types' ;
7
7
import clsx from 'clsx' ;
8
8
import isEqual from 'lodash/isEqual' ;
9
- import { input } from '../prop-types-templates' ;
10
9
import fnToString from '../utils/fn-to-string' ;
11
10
import reducer from './reducer' ;
12
11
import useIsMounted from '../hooks/use-is-mounted' ;
@@ -169,7 +168,15 @@ Select.propTypes = {
169
168
value : PropTypes . any ,
170
169
placeholder : PropTypes . string ,
171
170
loadOptionsChangeCounter : PropTypes . number ,
172
- ...input
171
+ isDisabled : PropTypes . bool ,
172
+ isReadOnly : PropTypes . bool ,
173
+ loadOptions : PropTypes . func ,
174
+ loadingMessage : PropTypes . node ,
175
+ loadingProps : PropTypes . object ,
176
+ selectVariant : PropTypes . string ,
177
+ updatingMessage : PropTypes . node ,
178
+ noOptionsMessage : PropTypes . node ,
179
+ isSearchable : PropTypes . bool
173
180
} ;
174
181
175
182
Select . defaultProps = {
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ Option.propTypes = {
158
158
*/
159
159
innerProps : PropTypes . shape ( {
160
160
id : PropTypes . string . isRequired ,
161
- key : PropTypes . string . isRequired ,
161
+ key : PropTypes . string ,
162
162
onClick : PropTypes . func . isRequired ,
163
163
onMouseMove : PropTypes . func . isRequired ,
164
164
onMouseOver : PropTypes . func . isRequired ,
@@ -173,7 +173,7 @@ Option.propTypes = {
173
173
PropTypes . shape ( {
174
174
current : PropTypes . any . isRequired
175
175
} )
176
- ] ) . isRequired ,
176
+ ] ) ,
177
177
/**
178
178
* Whether the option is focused.
179
179
*/
@@ -221,7 +221,7 @@ SingleValue.propTypes = {
221
221
/**
222
222
* Props passed to the wrapping element for the group.
223
223
*/
224
- innerProps : PropTypes . any . isRequired ,
224
+ innerProps : PropTypes . any ,
225
225
selectProps : PropTypes . object . isRequired
226
226
} ;
227
227
You can’t perform that action at this time.
0 commit comments