@panneau/filter-radios 4.0.27 → 4.0.33
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/dist/index.d.ts +2 -1
- package/dist/index.js +5 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ interface RadiosFilterProps {
|
|
|
6
6
|
options?: SelectOption[];
|
|
7
7
|
value?: string | null;
|
|
8
8
|
onChange: (value: unknown) => void;
|
|
9
|
+
onClear?: (() => void) | null;
|
|
9
10
|
className?: string | null;
|
|
10
11
|
}
|
|
11
|
-
declare function RadiosFilter({ name, value, options, onChange, className, ...props }: RadiosFilterProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function RadiosFilter({ name, value, options, onChange, onClear, className, ...props }: RadiosFilterProps): react_jsx_runtime.JSX.Element;
|
|
12
13
|
|
|
13
14
|
export { RadiosFilter as default };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import Radios from '@panneau/element-radios';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var _excluded = ["name", "value", "options", "onChange", "className"];
|
|
6
|
+
var _excluded = ["name", "value", "options", "onChange", "onClear", "className"];
|
|
7
7
|
var DEFAULT_OPTIONS = [];
|
|
8
8
|
function RadiosFilter(_ref) {
|
|
9
9
|
var _ref$name = _ref.name,
|
|
@@ -12,8 +12,10 @@ function RadiosFilter(_ref) {
|
|
|
12
12
|
value = _ref$value === void 0 ? null : _ref$value,
|
|
13
13
|
_ref$options = _ref.options,
|
|
14
14
|
options = _ref$options === void 0 ? DEFAULT_OPTIONS : _ref$options,
|
|
15
|
-
onChange = _ref.onChange,
|
|
16
|
-
_ref$
|
|
15
|
+
_ref$onChange = _ref.onChange,
|
|
16
|
+
onChange = _ref$onChange === void 0 ? null : _ref$onChange;
|
|
17
|
+
_ref.onClear;
|
|
18
|
+
var _ref$className = _ref.className,
|
|
17
19
|
className = _ref$className === void 0 ? null : _ref$className,
|
|
18
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
21
|
return /*#__PURE__*/jsx("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/filter-radios",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.33",
|
|
4
4
|
"description": "Radio buttons filter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
64
64
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
65
65
|
"@panneau/core": "^4.0.27",
|
|
66
|
-
"@panneau/element-radios": "^4.0.
|
|
66
|
+
"@panneau/element-radios": "^4.0.33",
|
|
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"
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "c0e63d849207a4f77f9e6d8d2c9f4b51c3d892d5"
|
|
75
75
|
}
|