@trackunit/react-filter-components 1.3.160-alpha-0a9c5dd27bf.0 → 1.3.161
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +6 -6
package/index.cjs.js
CHANGED
@@ -37,7 +37,7 @@ const Filter = ({ title, asIcon, children, popoverProps, isActive, activeLabel,
|
|
37
37
|
}, []);
|
38
38
|
const renderButton = () => {
|
39
39
|
if (asIcon) {
|
40
|
-
return (jsxRuntime.jsx(reactComponents.IconButton, { className: className, dataTestId: dataTestId, disabled: readOnly, icon: jsxRuntime.jsx(reactComponents.Icon, {
|
40
|
+
return (jsxRuntime.jsx(reactComponents.IconButton, { className: className, dataTestId: dataTestId, disabled: readOnly, icon: jsxRuntime.jsx(reactComponents.Icon, { name: asIcon, size: "small" }), onClick: handleClick, size: size, variant: isActive ? "filled" : "ghost-neutral" }));
|
41
41
|
}
|
42
42
|
return (jsxRuntime.jsxs(reactComponents.Button, { className: cvaFilterCustomButton({ isActive, className }), dataTestId: dataTestId, disabled: readOnly, onClick: handleClick, size: size, variant: "secondary", children: [title, isActive ? (jsxRuntime.jsx("div", { className: "grid overflow-hidden text-ellipsis whitespace-nowrap", children: jsxRuntime.jsx("span", { className: "text-primary-600 truncate", children: activeLabel }) })) : null] }));
|
43
43
|
};
|
package/index.esm.js
CHANGED
@@ -35,7 +35,7 @@ const Filter = ({ title, asIcon, children, popoverProps, isActive, activeLabel,
|
|
35
35
|
}, []);
|
36
36
|
const renderButton = () => {
|
37
37
|
if (asIcon) {
|
38
|
-
return (jsx(IconButton, { className: className, dataTestId: dataTestId, disabled: readOnly, icon: jsx(Icon, {
|
38
|
+
return (jsx(IconButton, { className: className, dataTestId: dataTestId, disabled: readOnly, icon: jsx(Icon, { name: asIcon, size: "small" }), onClick: handleClick, size: size, variant: isActive ? "filled" : "ghost-neutral" }));
|
39
39
|
}
|
40
40
|
return (jsxs(Button, { className: cvaFilterCustomButton({ isActive, className }), dataTestId: dataTestId, disabled: readOnly, onClick: handleClick, size: size, variant: "secondary", children: [title, isActive ? (jsx("div", { className: "grid overflow-hidden text-ellipsis whitespace-nowrap", children: jsx("span", { className: "text-primary-600 truncate", children: activeLabel }) })) : null] }));
|
41
41
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@trackunit/react-filter-components",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.161",
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"engines": {
|
@@ -9,11 +9,11 @@
|
|
9
9
|
"dependencies": {
|
10
10
|
"react": "19.0.0",
|
11
11
|
"tailwind-merge": "^2.0.0",
|
12
|
-
"@trackunit/ui-icons": "1.3.120
|
13
|
-
"@trackunit/css-class-variance-utilities": "1.3.119
|
14
|
-
"@trackunit/react-components": "1.4.
|
15
|
-
"@trackunit/react-form-components": "1.3.
|
16
|
-
"@trackunit/react-test-setup": "1.0.9
|
12
|
+
"@trackunit/ui-icons": "1.3.120",
|
13
|
+
"@trackunit/css-class-variance-utilities": "1.3.119",
|
14
|
+
"@trackunit/react-components": "1.4.143",
|
15
|
+
"@trackunit/react-form-components": "1.3.161",
|
16
|
+
"@trackunit/react-test-setup": "1.0.9"
|
17
17
|
},
|
18
18
|
"module": "./index.esm.js",
|
19
19
|
"main": "./index.cjs.js",
|