@panneau/filter-radios 4.0.38 → 4.0.40-alpha.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.
Files changed (2) hide show
  1. package/dist/index.js +71 -22
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,33 +1,82 @@
1
- import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
1
+ import { c } from 'react/compiler-runtime';
3
2
  import Radios from '@panneau/element-radios';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
- var _excluded = ["name", "value", "options", "onChange", "onClear", "className"];
7
- var DEFAULT_OPTIONS = [];
8
- function RadiosFilter(_ref) {
9
- var _ref$name = _ref.name,
10
- name = _ref$name === void 0 ? 'radios' : _ref$name,
11
- _ref$value = _ref.value,
12
- value = _ref$value === void 0 ? null : _ref$value,
13
- _ref$options = _ref.options,
14
- options = _ref$options === void 0 ? DEFAULT_OPTIONS : _ref$options,
15
- _ref$onChange = _ref.onChange,
16
- onChange = _ref$onChange === void 0 ? null : _ref$onChange;
17
- _ref.onClear;
18
- var _ref$className = _ref.className,
19
- className = _ref$className === void 0 ? null : _ref$className,
20
- props = _objectWithoutProperties(_ref, _excluded);
21
- return /*#__PURE__*/jsx("div", {
22
- className: className || undefined,
23
- children: /*#__PURE__*/jsx(Radios, _objectSpread(_objectSpread({}, props), {}, {
5
+ const DEFAULT_OPTIONS = [];
6
+ function RadiosFilter(t0) {
7
+ const $ = c(17);
8
+ let props;
9
+ let t1;
10
+ let t2;
11
+ let t3;
12
+ let t4;
13
+ let t5;
14
+ let t6;
15
+ if ($[0] !== t0) {
16
+ ({
17
+ name: t1,
18
+ value: t2,
19
+ options: t3,
20
+ onChange: t4,
21
+ onClear: t5,
22
+ className: t6,
23
+ ...props
24
+ } = t0);
25
+ $[0] = t0;
26
+ $[1] = props;
27
+ $[2] = t1;
28
+ $[3] = t2;
29
+ $[4] = t3;
30
+ $[5] = t4;
31
+ $[6] = t5;
32
+ $[7] = t6;
33
+ } else {
34
+ props = $[1];
35
+ t1 = $[2];
36
+ t2 = $[3];
37
+ t3 = $[4];
38
+ t4 = $[5];
39
+ t5 = $[6];
40
+ t6 = $[7];
41
+ }
42
+ const name = t1 === undefined ? "radios" : t1;
43
+ const value = t2 === undefined ? null : t2;
44
+ const options = t3 === undefined ? DEFAULT_OPTIONS : t3;
45
+ const onChange = t4 === undefined ? null : t4;
46
+ const className = t6 === undefined ? null : t6;
47
+ const t7 = className || undefined;
48
+ let t8;
49
+ if ($[8] !== name || $[9] !== onChange || $[10] !== options || $[11] !== props || $[12] !== value) {
50
+ t8 = /*#__PURE__*/jsx(Radios, {
51
+ ...props,
24
52
  name: name,
25
53
  value: value,
26
54
  options: options,
27
55
  onChange: onChange,
28
56
  uncheckable: true
29
- }))
30
- });
57
+ });
58
+ $[8] = name;
59
+ $[9] = onChange;
60
+ $[10] = options;
61
+ $[11] = props;
62
+ $[12] = value;
63
+ $[13] = t8;
64
+ } else {
65
+ t8 = $[13];
66
+ }
67
+ let t9;
68
+ if ($[14] !== t7 || $[15] !== t8) {
69
+ t9 = /*#__PURE__*/jsx("div", {
70
+ className: t7,
71
+ children: t8
72
+ });
73
+ $[14] = t7;
74
+ $[15] = t8;
75
+ $[16] = t9;
76
+ } else {
77
+ t9 = $[16];
78
+ }
79
+ return t9;
31
80
  }
32
81
 
33
82
  export { RadiosFilter as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/filter-radios",
3
- "version": "4.0.38",
3
+ "version": "4.0.40-alpha.1",
4
4
  "description": "Radio buttons filter",
5
5
  "keywords": [
6
6
  "javascript"
@@ -62,8 +62,8 @@
62
62
  "@babel/runtime": "^7.28.6",
63
63
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
64
64
  "@fortawesome/react-fontawesome": "^0.2.0",
65
- "@panneau/core": "^4.0.38",
66
- "@panneau/element-radios": "^4.0.38",
65
+ "@panneau/core": "^4.0.40-alpha.1",
66
+ "@panneau/element-radios": "^4.0.40-alpha.1",
67
67
  "classnames": "^2.5.1",
68
68
  "lodash": "^4.17.21",
69
69
  "react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "fa4b9c4ec7fe5c0e360dda5a40f8b5d8c7ada651"
74
+ "gitHead": "66520f92373b3aa371222b354d60ed3cf3d20c96"
75
75
  }