@panneau/filter-button 4.0.2 → 4.0.4
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 +13 -10
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
1
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import { useMemo, useCallback } from 'react';
|
|
5
6
|
import Button from '@panneau/element-button';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
8
|
|
|
7
9
|
var _excluded = ["name", "label", "value", "href", "theme", "activeTheme", "disableOutline", "onChange", "className"];
|
|
8
10
|
function ButtonFilter(_ref) {
|
|
@@ -36,16 +38,17 @@ function ButtonFilter(_ref) {
|
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
}, [isActive, href, onChange]);
|
|
39
|
-
return /*#__PURE__*/
|
|
40
|
-
className: classNames([_defineProperty({}, className, className !== null)])
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
return /*#__PURE__*/jsx("div", {
|
|
42
|
+
className: classNames([_defineProperty({}, className, className !== null)]),
|
|
43
|
+
children: /*#__PURE__*/jsx(Button, _objectSpread({
|
|
44
|
+
href: href,
|
|
45
|
+
label: label,
|
|
46
|
+
name: name,
|
|
47
|
+
onClick: onClick,
|
|
48
|
+
outline: (!isActive || href !== null) && !disableOutline,
|
|
49
|
+
theme: isActive ? activeTheme : theme
|
|
50
|
+
}, props))
|
|
51
|
+
});
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
export { ButtonFilter as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/filter-button",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Button filter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7.12.5",
|
|
60
|
-
"@panneau/core": "^4.0.
|
|
61
|
-
"@panneau/element-button": "^4.0.
|
|
62
|
-
"@panneau/themes": "^4.0.
|
|
60
|
+
"@panneau/core": "^4.0.4",
|
|
61
|
+
"@panneau/element-button": "^4.0.4",
|
|
62
|
+
"@panneau/themes": "^4.0.4",
|
|
63
63
|
"classnames": "^2.5.1",
|
|
64
64
|
"prop-types": "^15.7.2"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
|
|
70
70
|
}
|