@panneau/filter-radios 4.0.2 → 4.0.5

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.
Files changed (2) hide show
  1. package/es/index.js +12 -9
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -1,5 +1,7 @@
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
1
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
2
3
  import Radios from '@panneau/element-radios';
4
+ import { jsx } from 'react/jsx-runtime';
3
5
 
4
6
  var _excluded = ["name", "value", "options", "onChange", "className"];
5
7
  var DEFAULT_OPTIONS = [];
@@ -14,15 +16,16 @@ function RadiosFilter(_ref) {
14
16
  _ref$className = _ref.className,
15
17
  className = _ref$className === void 0 ? null : _ref$className,
16
18
  props = _objectWithoutProperties(_ref, _excluded);
17
- return /*#__PURE__*/React.createElement("div", {
18
- className: className || undefined
19
- }, /*#__PURE__*/React.createElement(Radios, Object.assign({}, props, {
20
- name: name,
21
- value: value,
22
- options: options,
23
- onChange: onChange,
24
- uncheckable: true
25
- })));
19
+ return /*#__PURE__*/jsx("div", {
20
+ className: className || undefined,
21
+ children: /*#__PURE__*/jsx(Radios, _objectSpread(_objectSpread({}, props), {}, {
22
+ name: name,
23
+ value: value,
24
+ options: options,
25
+ onChange: onChange,
26
+ uncheckable: true
27
+ }))
28
+ });
26
29
  }
27
30
 
28
31
  export { RadiosFilter as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/filter-radios",
3
- "version": "4.0.2",
3
+ "version": "4.0.5",
4
4
  "description": "Radio buttons filter",
5
5
  "keywords": [
6
6
  "javascript"
@@ -59,8 +59,8 @@
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": "^4.0.2",
63
- "@panneau/element-radios": "^4.0.2",
62
+ "@panneau/core": "^4.0.5",
63
+ "@panneau/element-radios": "^4.0.5",
64
64
  "classnames": "^2.5.1",
65
65
  "lodash-es": "^4.17.21",
66
66
  "prop-types": "^15.7.2",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "53ad0f27e467992c23158732e0f7d39d8615780b"
72
+ "gitHead": "ac8b065e8c7ada1d176d15eff1c0fa53599ad31f"
73
73
  }