@trackunit/react-filter-components 2.6.32 → 2.6.34-alpha-7557f71cc7a.0
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 +5 -5
package/index.cjs.js
CHANGED
|
@@ -39,7 +39,7 @@ const Filter = ({ title = "", asIcon = undefined, children, popoverProps, isActi
|
|
|
39
39
|
};
|
|
40
40
|
const renderSubmenuContent = () => children !== undefined ? (jsxRuntime.jsx(reactComponents.MenuContent, { className: cvaMenuShellOverrides({ withStickyHeader }), "data-testid": dataTestId ? dataTestId : undefined, listClassName: cvaMenuListOverrides({ withStickyHeader }), ...menuListProps, children: children })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {}));
|
|
41
41
|
if (visualStyle === "list-item") {
|
|
42
|
-
return (jsxRuntime.jsx(reactComponents.MenuItem, { className: className, "data-testid": dataTestId, disabled: readOnly, stopPropagation: listItemStopPropagation, submenu: children !== undefined ? renderSubmenuContent() : undefined,
|
|
42
|
+
return (jsxRuntime.jsx(reactComponents.MenuItem, { className: className, "data-testid": dataTestId, disabled: readOnly, label: title, stopPropagation: listItemStopPropagation, submenu: children !== undefined ? renderSubmenuContent() : undefined,
|
|
43
43
|
// See the sizing comment on the button variant's `Popover` below -- same reasoning applies to the
|
|
44
44
|
// submenu Popover that `MenuItem` renders internally for this visual style.
|
|
45
45
|
submenuSizing: popoverProps?.sizing ?? { minWidth: 280 }, suffix: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isActive && activeLabel && activeOptionsCount === undefined ? (jsxRuntime.jsx(reactComponents.Badge, { className: "mx-2", compact: true })) : (jsxRuntime.jsx("div", { className: "flex min-w-[30px] shrink-0 items-center justify-center", children: isActive && activeLabel && activeOptionsCount !== undefined ? (jsxRuntime.jsx(reactComponents.Badge, { count: activeOptionsCount, size: "condensed" })) : null })), readOnly ? null : jsxRuntime.jsx(reactComponents.Icon, { ariaHidden: true, color: "neutral", name: "ChevronRight", size: "small" })] }), children: jsxRuntime.jsx("span", { className: "flex-grow truncate", children: title }) }));
|
package/index.esm.js
CHANGED
|
@@ -37,7 +37,7 @@ const Filter = ({ title = "", asIcon = undefined, children, popoverProps, isActi
|
|
|
37
37
|
};
|
|
38
38
|
const renderSubmenuContent = () => children !== undefined ? (jsx(MenuContent, { className: cvaMenuShellOverrides({ withStickyHeader }), "data-testid": dataTestId ? dataTestId : undefined, listClassName: cvaMenuListOverrides({ withStickyHeader }), ...menuListProps, children: children })) : (jsx(Fragment, {}));
|
|
39
39
|
if (visualStyle === "list-item") {
|
|
40
|
-
return (jsx(MenuItem, { className: className, "data-testid": dataTestId, disabled: readOnly, stopPropagation: listItemStopPropagation, submenu: children !== undefined ? renderSubmenuContent() : undefined,
|
|
40
|
+
return (jsx(MenuItem, { className: className, "data-testid": dataTestId, disabled: readOnly, label: title, stopPropagation: listItemStopPropagation, submenu: children !== undefined ? renderSubmenuContent() : undefined,
|
|
41
41
|
// See the sizing comment on the button variant's `Popover` below -- same reasoning applies to the
|
|
42
42
|
// submenu Popover that `MenuItem` renders internally for this visual style.
|
|
43
43
|
submenuSizing: popoverProps?.sizing ?? { minWidth: 280 }, suffix: jsxs(Fragment, { children: [isActive && activeLabel && activeOptionsCount === undefined ? (jsx(Badge, { className: "mx-2", compact: true })) : (jsx("div", { className: "flex min-w-[30px] shrink-0 items-center justify-center", children: isActive && activeLabel && activeOptionsCount !== undefined ? (jsx(Badge, { count: activeOptionsCount, size: "condensed" })) : null })), readOnly ? null : jsx(Icon, { ariaHidden: true, color: "neutral", name: "ChevronRight", size: "small" })] }), children: jsx("span", { className: "flex-grow truncate", children: title }) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-filter-components",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.34-alpha-7557f71cc7a.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tailwind-merge": "^2.0.0",
|
|
11
|
-
"@trackunit/ui-icons": "1.14.
|
|
12
|
-
"@trackunit/css-class-variance-utilities": "1.14.
|
|
13
|
-
"@trackunit/react-components": "2.10.
|
|
14
|
-
"@trackunit/react-form-components": "2.6.
|
|
11
|
+
"@trackunit/ui-icons": "1.14.22-alpha-7557f71cc7a.0",
|
|
12
|
+
"@trackunit/css-class-variance-utilities": "1.14.23-alpha-7557f71cc7a.0",
|
|
13
|
+
"@trackunit/react-components": "2.10.27-alpha-7557f71cc7a.0",
|
|
14
|
+
"@trackunit/react-form-components": "2.6.34-alpha-7557f71cc7a.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@tanstack/react-router": "^1.114.29",
|