@woosmap/ui 4.236.9 → 4.236.11
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/.eslintrc
CHANGED
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
"react/jsx-no-bind": 0,
|
|
30
30
|
"react/prefer-stateless-function": 0,
|
|
31
31
|
"react/no-unused-class-component-methods": 0,
|
|
32
|
+
"react/require-default-props": ["error", {
|
|
33
|
+
"ignoreFunctionalComponents": true
|
|
34
|
+
}],
|
|
32
35
|
"class-methods-use-this": 0,
|
|
33
36
|
"react/jsx-filename-extension": [
|
|
34
37
|
1,
|
package/package.json
CHANGED
|
@@ -235,7 +235,7 @@ export default class Input extends Component {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
Input.propTypes = {
|
|
238
|
-
value: PropTypes.string,
|
|
238
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
239
239
|
size: PropTypes.oneOf(['large', 'normal', 'small', 'mini']),
|
|
240
240
|
isFilter: PropTypes.bool,
|
|
241
241
|
isNoBorder: PropTypes.bool,
|
|
@@ -107,11 +107,6 @@ function withLayer(MyComponent) {
|
|
|
107
107
|
placement: PropTypes.string,
|
|
108
108
|
disableClickOutside: PropTypes.bool,
|
|
109
109
|
};
|
|
110
|
-
WrappedComponent.defaultProps = {
|
|
111
|
-
container: null,
|
|
112
|
-
placement: 'bottom-center',
|
|
113
|
-
disableClickOutside: false,
|
|
114
|
-
};
|
|
115
110
|
return React.forwardRef((props, ref) => <WrappedComponent {...props} forwardedRef={ref} />);
|
|
116
111
|
}
|
|
117
112
|
|