@trackunit/react-components 0.1.27 → 0.1.28
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.js
CHANGED
|
@@ -1001,9 +1001,9 @@ const StyledCardBody = twx(CardBody) `
|
|
|
1001
1001
|
* @param {PopoverListItemProps} props - The props for the PopoverListItem component
|
|
1002
1002
|
* @returns {JSX.Element} PopoverListItem component
|
|
1003
1003
|
*/
|
|
1004
|
-
const PopoverListItem = ({ selected, children, disabled, ariaLabel, url, onClick, prefix, suffix, dataTestId, }) => {
|
|
1004
|
+
const PopoverListItem = ({ selected, children, disabled, ariaLabel, url, onClick, prefix, suffix, dataTestId, className, }) => {
|
|
1005
1005
|
const content = (jsxs("div", Object.assign({ className: "flex items-center gap-3" }, { children: [prefix && jsx("div", { children: prefix }), jsx(StyledText$2, Object.assign({ weight: selected ? "bold" : "normal", "$selected": selected }, { children: children })), suffix && jsx("div", { children: suffix })] })));
|
|
1006
|
-
return (jsx(ListItem, Object.assign({ "$selected": selected, disabled: disabled, onClick: onClick, "aria-label": ariaLabel, "data-testid": dataTestId }, { children: url ? jsx(PopoverLink, Object.assign({ to: url }, { children: content })) : content })));
|
|
1006
|
+
return (jsx(ListItem, Object.assign({ "$selected": selected, disabled: disabled, onClick: onClick, "aria-label": ariaLabel, "data-testid": dataTestId, className: className }, { children: url ? jsx(PopoverLink, Object.assign({ to: url }, { children: content })) : content })));
|
|
1007
1007
|
};
|
|
1008
1008
|
const StyledText$2 = twx(Text$1) `
|
|
1009
1009
|
tu-popover-list-item__text
|
package/package.json
CHANGED
|
@@ -27,4 +27,4 @@ export interface PopoverListItemProps extends CommonProps {
|
|
|
27
27
|
* @param {PopoverListItemProps} props - The props for the PopoverListItem component
|
|
28
28
|
* @returns {JSX.Element} PopoverListItem component
|
|
29
29
|
*/
|
|
30
|
-
export declare const PopoverListItem: ({ selected, children, disabled, ariaLabel, url, onClick, prefix, suffix, dataTestId, }: PopoverListItemProps) => JSX.Element;
|
|
30
|
+
export declare const PopoverListItem: ({ selected, children, disabled, ariaLabel, url, onClick, prefix, suffix, dataTestId, className, }: PopoverListItemProps) => JSX.Element;
|