@panneau/filter-radios 3.0.308 → 4.0.1
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/es/index.js +12 -24
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { PropTypes as PropTypes$1 } from '@panneau/core';
|
|
5
3
|
import Radios from '@panneau/element-radios';
|
|
6
4
|
|
|
7
5
|
var _excluded = ["name", "value", "options", "onChange", "className"];
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
name: 'radios',
|
|
17
|
-
value: null,
|
|
18
|
-
options: [],
|
|
19
|
-
className: null
|
|
20
|
-
};
|
|
21
|
-
var RadiosFilter = function RadiosFilter(_ref) {
|
|
22
|
-
var name = _ref.name,
|
|
23
|
-
value = _ref.value,
|
|
24
|
-
options = _ref.options,
|
|
6
|
+
var DEFAULT_OPTIONS = [];
|
|
7
|
+
function RadiosFilter(_ref) {
|
|
8
|
+
var _ref$name = _ref.name,
|
|
9
|
+
name = _ref$name === void 0 ? 'radios' : _ref$name,
|
|
10
|
+
_ref$value = _ref.value,
|
|
11
|
+
value = _ref$value === void 0 ? null : _ref$value,
|
|
12
|
+
_ref$options = _ref.options,
|
|
13
|
+
options = _ref$options === void 0 ? DEFAULT_OPTIONS : _ref$options,
|
|
25
14
|
onChange = _ref.onChange,
|
|
26
|
-
className = _ref.className,
|
|
15
|
+
_ref$className = _ref.className,
|
|
16
|
+
className = _ref$className === void 0 ? null : _ref$className,
|
|
27
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
18
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
-
className: className
|
|
19
|
+
className: className || undefined
|
|
30
20
|
}, /*#__PURE__*/React.createElement(Radios, Object.assign({}, props, {
|
|
31
21
|
name: name,
|
|
32
22
|
value: value,
|
|
@@ -34,8 +24,6 @@ var RadiosFilter = function RadiosFilter(_ref) {
|
|
|
34
24
|
onChange: onChange,
|
|
35
25
|
uncheckable: true
|
|
36
26
|
})));
|
|
37
|
-
}
|
|
38
|
-
RadiosFilter.propTypes = propTypes;
|
|
39
|
-
RadiosFilter.defaultProps = defaultProps;
|
|
27
|
+
}
|
|
40
28
|
|
|
41
29
|
export { RadiosFilter as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/filter-radios",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Radio buttons filter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
"@babel/runtime": "^7.12.5",
|
|
60
60
|
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
61
61
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
62
|
-
"@panneau/core": "^
|
|
63
|
-
"@panneau/element-radios": "^
|
|
62
|
+
"@panneau/core": "^4.0.1",
|
|
63
|
+
"@panneau/element-radios": "^4.0.1",
|
|
64
64
|
"classnames": "^2.5.1",
|
|
65
65
|
"lodash-es": "^4.17.21",
|
|
66
66
|
"prop-types": "^15.7.2",
|
|
67
|
-
"react-intl": "^5.15.8
|
|
67
|
+
"react-intl": "^5.15.8 || ^6.0.0 || ^7.0.0"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "dbdf65640625c027ecd56cf2b816b80a5c38cb8d"
|
|
73
73
|
}
|