@trackunit/react-filter-components 1.0.25 → 1.0.27
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +4 -4
- package/src/FilterBody/FilterBody.d.ts +3 -3
package/index.cjs.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
4
4
|
var cssClassVarianceUtilities = require('@trackunit/css-class-variance-utilities');
|
5
5
|
var reactComponents = require('@trackunit/react-components');
|
6
|
-
var
|
6
|
+
var react = require('react');
|
7
7
|
var tailwindMerge = require('tailwind-merge');
|
8
8
|
var reactFormComponents = require('@trackunit/react-form-components');
|
9
9
|
|
@@ -52,7 +52,7 @@ const cvaMenuListOverrides = cssClassVarianceUtilities.cvaMerge(["overflow-x-hid
|
|
52
52
|
* @param {FilterBodyProps} props - The props for the FilterBody component
|
53
53
|
* @returns {JSX.Element} FilterBody component
|
54
54
|
*/
|
55
|
-
const FilterBody =
|
55
|
+
const FilterBody = react.forwardRef(({ children, className, dataTestId, limitSize = false, ...rest }, ref) => {
|
56
56
|
return (jsxRuntime.jsx("div", { className: cvaFilterBody({ limitSize, className }), ref: ref, ...rest, "data-testid": dataTestId, children: children }));
|
57
57
|
});
|
58
58
|
FilterBody.displayName = "FilterBody";
|
package/index.esm.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
2
2
|
import { cvaMerge } from '@trackunit/css-class-variance-utilities';
|
3
3
|
import { Popover, PopoverTrigger, Button, PopoverContent, MenuList, Spinner, cvaInteractableItem, cvaMenuItemSuffix } from '@trackunit/react-components';
|
4
|
-
import
|
4
|
+
import { forwardRef } from 'react';
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
6
6
|
import { Checkbox, RadioItem } from '@trackunit/react-form-components';
|
7
7
|
|
@@ -50,7 +50,7 @@ const cvaMenuListOverrides = cvaMerge(["overflow-x-hidden", "relative", "!max-w-
|
|
50
50
|
* @param {FilterBodyProps} props - The props for the FilterBody component
|
51
51
|
* @returns {JSX.Element} FilterBody component
|
52
52
|
*/
|
53
|
-
const FilterBody =
|
53
|
+
const FilterBody = forwardRef(({ children, className, dataTestId, limitSize = false, ...rest }, ref) => {
|
54
54
|
return (jsx("div", { className: cvaFilterBody({ limitSize, className }), ref: ref, ...rest, "data-testid": dataTestId, children: children }));
|
55
55
|
});
|
56
56
|
FilterBody.displayName = "FilterBody";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@trackunit/react-filter-components",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.27",
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"engines": {
|
@@ -9,9 +9,9 @@
|
|
9
9
|
"dependencies": {
|
10
10
|
"react": "18.3.1",
|
11
11
|
"tailwind-merge": "^2.0.0",
|
12
|
-
"@trackunit/css-class-variance-utilities": "
|
13
|
-
"@trackunit/react-components": "
|
14
|
-
"@trackunit/react-form-components": "
|
12
|
+
"@trackunit/css-class-variance-utilities": "1.0.4",
|
13
|
+
"@trackunit/react-components": "1.1.7",
|
14
|
+
"@trackunit/react-form-components": "1.0.25"
|
15
15
|
},
|
16
16
|
"module": "./index.esm.js",
|
17
17
|
"main": "./index.cjs.js",
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { CommonProps } from "@trackunit/react-components";
|
2
|
-
import
|
2
|
+
import { ReactNode } from "react";
|
3
3
|
export interface FilterBodyProps extends CommonProps {
|
4
4
|
/**
|
5
5
|
* Children to render in the body of the filter.
|
6
6
|
* This is intended for FilterItems.
|
7
7
|
*/
|
8
|
-
children?:
|
8
|
+
children?: ReactNode;
|
9
9
|
limitSize?: boolean;
|
10
10
|
}
|
11
11
|
/**
|
@@ -16,4 +16,4 @@ export interface FilterBodyProps extends CommonProps {
|
|
16
16
|
* @param {FilterBodyProps} props - The props for the FilterBody component
|
17
17
|
* @returns {JSX.Element} FilterBody component
|
18
18
|
*/
|
19
|
-
export declare const FilterBody:
|
19
|
+
export declare const FilterBody: import("react").ForwardRefExoticComponent<FilterBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|