@panneau/filter-button 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 +3 -2
- package/dist/index.js +5 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { ButtonTheme } from '@panneau/core';
|
|
3
3
|
|
|
4
4
|
interface ButtonFilterProps {
|
|
5
|
+
onChange: (value: boolean | null) => void;
|
|
6
|
+
onClear: (() => void) | null;
|
|
5
7
|
label?: string | null;
|
|
6
8
|
name?: string;
|
|
7
9
|
value?: boolean | string | number | null;
|
|
@@ -9,9 +11,8 @@ interface ButtonFilterProps {
|
|
|
9
11
|
theme?: ButtonTheme;
|
|
10
12
|
activeTheme?: ButtonTheme;
|
|
11
13
|
disableOutline?: boolean;
|
|
12
|
-
onChange: (value: boolean | null) => void;
|
|
13
14
|
className?: string | null;
|
|
14
15
|
}
|
|
15
|
-
declare function ButtonFilter({ name, label, value, href, theme, activeTheme, disableOutline,
|
|
16
|
+
declare function ButtonFilter({ onChange, onClear, name, label, value, href, theme, activeTheme, disableOutline, className, ...props }: ButtonFilterProps): react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
export { ButtonFilter as default };
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,12 @@ import { useMemo, useCallback } from 'react';
|
|
|
6
6
|
import Button from '@panneau/element-button';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
|
-
var _excluded = ["name", "label", "value", "href", "theme", "activeTheme", "disableOutline", "
|
|
9
|
+
var _excluded = ["onChange", "onClear", "name", "label", "value", "href", "theme", "activeTheme", "disableOutline", "className"];
|
|
10
10
|
function ButtonFilter(_ref) {
|
|
11
|
-
var _ref$
|
|
11
|
+
var _ref$onChange = _ref.onChange,
|
|
12
|
+
onChange = _ref$onChange === void 0 ? null : _ref$onChange;
|
|
13
|
+
_ref.onClear;
|
|
14
|
+
var _ref$name = _ref.name,
|
|
12
15
|
name = _ref$name === void 0 ? 'button' : _ref$name,
|
|
13
16
|
_ref$label = _ref.label,
|
|
14
17
|
label = _ref$label === void 0 ? null : _ref$label,
|
|
@@ -22,7 +25,6 @@ function ButtonFilter(_ref) {
|
|
|
22
25
|
activeTheme = _ref$activeTheme === void 0 ? 'primary' : _ref$activeTheme,
|
|
23
26
|
_ref$disableOutline = _ref.disableOutline,
|
|
24
27
|
disableOutline = _ref$disableOutline === void 0 ? false : _ref$disableOutline,
|
|
25
|
-
onChange = _ref.onChange,
|
|
26
28
|
_ref$className = _ref.className,
|
|
27
29
|
className = _ref$className === void 0 ? null : _ref$className,
|
|
28
30
|
props = _objectWithoutProperties(_ref, _excluded);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/filter-button",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.33",
|
|
4
4
|
"description": "Button filter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.28.6",
|
|
63
63
|
"@panneau/core": "^4.0.27",
|
|
64
|
-
"@panneau/element-button": "^4.0.
|
|
65
|
-
"@panneau/themes": "^4.0.
|
|
64
|
+
"@panneau/element-button": "^4.0.33",
|
|
65
|
+
"@panneau/themes": "^4.0.33",
|
|
66
66
|
"classnames": "^2.5.1"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "c0e63d849207a4f77f9e6d8d2c9f4b51c3d892d5"
|
|
72
72
|
}
|