@trackunit/react-components 1.10.48 → 1.10.51
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 +100 -99
- package/index.esm.js +100 -99
- package/package.json +5 -5
- package/src/common/CommonProps.d.ts +1 -1
- package/src/components/Alert/Alert.d.ts +1 -1
- package/src/components/Badge/Badge.d.ts +1 -1
- package/src/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/src/components/Breadcrumb/BreadcrumbForLargeScreen.d.ts +1 -1
- package/src/components/Breadcrumb/BreadcrumbForMediumScreen.d.ts +1 -1
- package/src/components/Breadcrumb/BreadcrumbForSmallScreen.d.ts +1 -1
- package/src/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/src/components/Card/CardBody.d.ts +1 -1
- package/src/components/Card/CardFooter.d.ts +1 -1
- package/src/components/Card/CardHeader.d.ts +1 -1
- package/src/components/Collapse/Collapse.d.ts +1 -1
- package/src/components/CopyableText/CopyableText.d.ts +1 -1
- package/src/components/EmptyState/EmptyState.d.ts +1 -1
- package/src/components/EmptyValue/EmptyValue.d.ts +1 -1
- package/src/components/ExternalLink/ExternalLink.d.ts +1 -1
- package/src/components/Heading/Heading.d.ts +1 -1
- package/src/components/Highlight/Highlight.d.ts +1 -1
- package/src/components/HorizontalOverflowScroller/HorizontalOverflowScroller.d.ts +2 -2
- package/src/components/HorizontalOverflowScroller/OverflowIndicator.d.ts +1 -1
- package/src/components/Icon/Icon.d.ts +1 -1
- package/src/components/Indicator/Indicator.d.ts +1 -1
- package/src/components/KPI/KPI.d.ts +1 -1
- package/src/components/KPICard/KPICard.d.ts +1 -1
- package/src/components/List/List.d.ts +1 -1
- package/src/components/ListItem/ListItem.d.ts +1 -1
- package/src/components/Menu/MenuItem/MenuItem.d.ts +1 -1
- package/src/components/Menu/MenuList/MenuList.d.ts +1 -1
- package/src/components/Menu/MoreMenu/MoreMenu.d.ts +1 -1
- package/src/components/Notice/Notice.d.ts +1 -1
- package/src/components/Page/Page.d.ts +2 -2
- package/src/components/Page/PageContent.d.ts +1 -1
- package/src/components/PageHeader/PageHeader.d.ts +1 -1
- package/src/components/PageHeader/components/PageHeaderTitle.d.ts +11 -5
- package/src/components/Pagination/Pagination.d.ts +2 -2
- package/src/components/Polygon/Polygon.d.ts +1 -1
- package/src/components/Popover/PopoverContent.d.ts +1 -1
- package/src/components/Popover/PopoverTitle.d.ts +1 -1
- package/src/components/SectionHeader/SectionHeader.d.ts +1 -1
- package/src/components/Sidebar/Sidebar.d.ts +1 -1
- package/src/components/Spacer/Spacer.d.ts +1 -1
- package/src/components/Spinner/Spinner.d.ts +1 -1
- package/src/components/Tabs/Tab.d.ts +2 -2
- package/src/components/Tabs/TabContent.d.ts +2 -2
- package/src/components/Tabs/TabList.d.ts +2 -2
- package/src/components/Tabs/Tabs.d.ts +2 -2
- package/src/components/Tag/Tag.d.ts +1 -1
- package/src/components/Text/Text.d.ts +1 -1
- package/src/components/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/src/components/ValueBar/ValueBar.d.ts +1 -1
- package/src/components/ZStack/ZStack.d.ts +1 -1
- package/src/components/buttons/Button/Button.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.51",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"@floating-ui/react": "^0.26.25",
|
|
16
16
|
"string-ts": "^2.0.0",
|
|
17
17
|
"tailwind-merge": "^2.0.0",
|
|
18
|
-
"@trackunit/ui-design-tokens": "1.7.
|
|
19
|
-
"@trackunit/css-class-variance-utilities": "1.7.
|
|
20
|
-
"@trackunit/shared-utils": "1.9.
|
|
21
|
-
"@trackunit/ui-icons": "1.7.
|
|
18
|
+
"@trackunit/ui-design-tokens": "1.7.77",
|
|
19
|
+
"@trackunit/css-class-variance-utilities": "1.7.77",
|
|
20
|
+
"@trackunit/shared-utils": "1.9.77",
|
|
21
|
+
"@trackunit/ui-icons": "1.7.78",
|
|
22
22
|
"@tanstack/react-router": "1.114.29",
|
|
23
23
|
"es-toolkit": "^1.39.10",
|
|
24
24
|
"@tanstack/react-virtual": "3.13.12"
|
|
@@ -50,4 +50,4 @@ export interface AlertProps extends CommonProps {
|
|
|
50
50
|
* @param {AlertProps} props - The props for the Alert component
|
|
51
51
|
* @returns {ReactElement} Alert component
|
|
52
52
|
*/
|
|
53
|
-
export declare const Alert: ({ color, title, className, children, primaryAction, secondaryAction, onClose, dataTestId, autoScroll, actionsInline, }: AlertProps) => ReactElement;
|
|
53
|
+
export declare const Alert: ({ color, title, className, children, primaryAction, secondaryAction, onClose, "data-testid": dataTestId, autoScroll, actionsInline, }: AlertProps) => ReactElement;
|
|
@@ -48,5 +48,5 @@ export type BadgeProps = BaseBadgeProps;
|
|
|
48
48
|
* @param {BadgeProps} props - The props for the Badge component
|
|
49
49
|
* @returns {ReactElement} Badge component
|
|
50
50
|
*/
|
|
51
|
-
export declare const Badge: ({ color, size, compact, className, count, max, hideZero, dataTestId, }: BadgeProps) => ReactElement | null;
|
|
51
|
+
export declare const Badge: ({ color, size, compact, className, count, max, hideZero, "data-testid": dataTestId, }: BadgeProps) => ReactElement | null;
|
|
52
52
|
export {};
|
|
@@ -13,10 +13,10 @@ import { BreadcrumbContainerProps, BreadcrumbProps } from "./utils/types";
|
|
|
13
13
|
* @param {BreadcrumbProps} props - The props for the Breadcrumb component
|
|
14
14
|
* @returns {ReactElement} Breadcrumb component
|
|
15
15
|
*/
|
|
16
|
-
export declare const Breadcrumb: ({ className, dataTestId, breadcrumbItems, back }: BreadcrumbProps) => ReactElement;
|
|
16
|
+
export declare const Breadcrumb: ({ className, "data-testid": dataTestId, breadcrumbItems, back, }: BreadcrumbProps) => ReactElement;
|
|
17
17
|
/**
|
|
18
18
|
* BreadcrumbContainer is a helper component that renders the breadcrumb items based on the screen size.
|
|
19
19
|
*
|
|
20
20
|
* @param {BreadcrumbContainerProps} props - The props for the BreadcrumbContainer component
|
|
21
21
|
*/
|
|
22
|
-
export declare const BreadcrumbContainer: ({ dataTestId, breadcrumbItems }: BreadcrumbContainerProps) => ReactElement;
|
|
22
|
+
export declare const BreadcrumbContainer: ({ "data-testid": dataTestId, breadcrumbItems, }: BreadcrumbContainerProps) => ReactElement;
|
|
@@ -3,4 +3,4 @@ import { BreadcrumbContainerProps } from "./utils/types";
|
|
|
3
3
|
/**
|
|
4
4
|
* BreadcrumbForLargeScreen is a helper component that renders the breadcrumb items for large screens.
|
|
5
5
|
*/
|
|
6
|
-
export declare const BreadcrumbForLargeScreen: ({ dataTestId, breadcrumbItems }: BreadcrumbContainerProps) => ReactElement;
|
|
6
|
+
export declare const BreadcrumbForLargeScreen: ({ "data-testid": dataTestId, breadcrumbItems, }: BreadcrumbContainerProps) => ReactElement;
|
|
@@ -3,4 +3,4 @@ import { BreadcrumbContainerProps } from "./utils/types";
|
|
|
3
3
|
/**
|
|
4
4
|
* BreadcrumbForMediumScreen is a helper component that renders the breadcrumb items for medium screens.
|
|
5
5
|
*/
|
|
6
|
-
export declare const BreadcrumbForMediumScreen: ({ dataTestId, breadcrumbItems }: BreadcrumbContainerProps) => ReactElement;
|
|
6
|
+
export declare const BreadcrumbForMediumScreen: ({ "data-testid": dataTestId, breadcrumbItems, }: BreadcrumbContainerProps) => ReactElement;
|
|
@@ -3,4 +3,4 @@ import { BreadcrumbContainerProps } from "./utils/types";
|
|
|
3
3
|
/**
|
|
4
4
|
* BreadcrumbForSmallScreen is a helper component that renders the breadcrumb items for small screens.
|
|
5
5
|
*/
|
|
6
|
-
export declare const BreadcrumbForSmallScreen: ({ dataTestId, breadcrumbItems }: BreadcrumbContainerProps) => ReactElement;
|
|
6
|
+
export declare const BreadcrumbForSmallScreen: ({ "data-testid": dataTestId, breadcrumbItems, }: BreadcrumbContainerProps) => ReactElement;
|
|
@@ -3,4 +3,4 @@ import { BreadcrumbItemRenderProps } from "./utils/types";
|
|
|
3
3
|
/**
|
|
4
4
|
* BreadcrumbItem is a helper component that renders the individual breadcrumb item.
|
|
5
5
|
*/
|
|
6
|
-
export declare const BreadcrumbItem: ({ item, dataTestId }: BreadcrumbItemRenderProps) => ReactElement;
|
|
6
|
+
export declare const BreadcrumbItem: ({ item, "data-testid": dataTestId }: BreadcrumbItemRenderProps) => ReactElement;
|
|
@@ -30,4 +30,4 @@ export interface CardBodyProps extends CommonProps {
|
|
|
30
30
|
* @param {CardBodyProps} props - The props for the CardBody component
|
|
31
31
|
* @returns {ReactElement} CardBody component
|
|
32
32
|
*/
|
|
33
|
-
export declare const CardBody: ({ density, children, dataTestId, className, direction, disableGap, id, }: CardBodyProps) => ReactElement;
|
|
33
|
+
export declare const CardBody: ({ density, children, "data-testid": dataTestId, className, direction, disableGap, id, }: CardBodyProps) => ReactElement;
|
|
@@ -22,4 +22,4 @@ export interface CardFooterProps extends CommonProps {
|
|
|
22
22
|
* @param {CardFooterProps} props - The props for the CardFooter component
|
|
23
23
|
* @returns {ReactElement} CardFooter component
|
|
24
24
|
*/
|
|
25
|
-
export declare const CardFooter: ({ dataTestId, className, children, density, hideSeparator, }: CardFooterProps) => ReactElement;
|
|
25
|
+
export declare const CardFooter: ({ "data-testid": dataTestId, className, children, density, hideSeparator, }: CardFooterProps) => ReactElement;
|
|
@@ -44,4 +44,4 @@ export interface CardHeaderProps extends CommonProps {
|
|
|
44
44
|
* @param {CardHeaderProps} props - The props for the CardHeader component
|
|
45
45
|
* @returns {ReactElement} CardHeader component
|
|
46
46
|
*/
|
|
47
|
-
export declare const CardHeader: ({ heading, headingVariant, subHeading, onClose, dataTestId, className, children, accessories, actions, density, hideSeparator, }: CardHeaderProps) => ReactElement;
|
|
47
|
+
export declare const CardHeader: ({ heading, headingVariant, subHeading, onClose, "data-testid": dataTestId, className, children, accessories, actions, density, hideSeparator, }: CardHeaderProps) => ReactElement;
|
|
@@ -54,4 +54,4 @@ export interface CollapseProps extends CommonProps {
|
|
|
54
54
|
* @param {CollapseProps} props - The props for the Collapse component
|
|
55
55
|
* @returns {ReactElement} Collapse component
|
|
56
56
|
*/
|
|
57
|
-
export declare const Collapse: ({ id, variant, initialExpanded, onToggle, label, children, className, headerClassName, headerAddon, dataTestId, animate, extraPadding, }: CollapseProps) => ReactElement;
|
|
57
|
+
export declare const Collapse: ({ id, variant, initialExpanded, onToggle, label, children, className, headerClassName, headerAddon, "data-testid": dataTestId, animate, extraPadding, }: CollapseProps) => ReactElement;
|
|
@@ -18,4 +18,4 @@ export interface CopyableTextProps extends CommonProps {
|
|
|
18
18
|
* @param {CopyableTextProps} props - The props for the CopyableText component
|
|
19
19
|
* @returns {ReactElement} CopyableText component
|
|
20
20
|
*/
|
|
21
|
-
export declare const CopyableText: ({ text, alternativeText, dataTestId, className }: CopyableTextProps) => ReactElement;
|
|
21
|
+
export declare const CopyableText: ({ text, alternativeText, "data-testid": dataTestId, className, }: CopyableTextProps) => ReactElement;
|
|
@@ -31,5 +31,5 @@ export interface EmptyStateProps extends CommonProps {
|
|
|
31
31
|
* - For guidance purposes (e.g., onboarding, adjusting filters, exploring alternative approaches).
|
|
32
32
|
* - In celebratory instances (e.g., no new notifications, services up to date).
|
|
33
33
|
*/
|
|
34
|
-
export declare const EmptyState: ({ description, altText, image, customImageSrc, loading, dataTestId, className, primaryAction, secondaryAction, additionalHelpAction, }: EmptyStateProps) => ReactElement;
|
|
34
|
+
export declare const EmptyState: ({ description, altText, image, customImageSrc, loading, "data-testid": dataTestId, className, primaryAction, secondaryAction, additionalHelpAction, }: EmptyStateProps) => ReactElement;
|
|
35
35
|
export {};
|
|
@@ -7,4 +7,4 @@ export type EmptyValueProps = CommonProps;
|
|
|
7
7
|
* @param {EmptyValueProps} props - The props for the EmptyValue component
|
|
8
8
|
* @returns {ReactElement} EmptyValue component
|
|
9
9
|
*/
|
|
10
|
-
export declare const EmptyValue: ({ className, dataTestId }: EmptyValueProps) => ReactElement;
|
|
10
|
+
export declare const EmptyValue: ({ className, "data-testid": dataTestId }: EmptyValueProps) => ReactElement;
|
|
@@ -33,4 +33,4 @@ export interface ExternalLinkProps extends CommonProps {
|
|
|
33
33
|
* @param {ExternalLinkProps} props - The props for the external link component
|
|
34
34
|
* @returns {ReactElement} External Link component
|
|
35
35
|
*/
|
|
36
|
-
export declare const ExternalLink: ({ rel, target, href, className, children, title, dataTestId, onClick, color, }: ExternalLinkProps) => ReactElement;
|
|
36
|
+
export declare const ExternalLink: ({ rel, target, href, className, children, title, "data-testid": dataTestId, onClick, color, }: ExternalLinkProps) => ReactElement;
|
|
@@ -25,4 +25,4 @@ export interface HeadingProps extends CommonProps {
|
|
|
25
25
|
* @param {HeadingProps} props - The props for the Heading component
|
|
26
26
|
* @returns {ReactElement} Heading component
|
|
27
27
|
*/
|
|
28
|
-
export declare const Heading: ({ variant, inverted, subtle, className, dataTestId, ...rest }: HeadingProps) => ReactElement;
|
|
28
|
+
export declare const Heading: ({ variant, inverted, subtle, className, "data-testid": dataTestId, ...rest }: HeadingProps) => ReactElement;
|
|
@@ -31,6 +31,6 @@ export interface HighlightProps extends CommonProps {
|
|
|
31
31
|
* @returns {ReactElement} highlight component
|
|
32
32
|
*/
|
|
33
33
|
export declare const Highlight: {
|
|
34
|
-
({ className, dataTestId, children, size, color, ref, }: HighlightProps): ReactElement;
|
|
34
|
+
({ className, "data-testid": dataTestId, children, size, color, ref, }: HighlightProps): ReactElement;
|
|
35
35
|
displayName: string;
|
|
36
36
|
};
|
|
@@ -19,8 +19,8 @@ export interface HorizontalOverflowScrollerProps extends CommonProps, Styleable
|
|
|
19
19
|
* @param props - Component properties
|
|
20
20
|
* @param props.children - The content to display in the horizontal scroller
|
|
21
21
|
* @param props.className - Optional CSS class name for styling
|
|
22
|
-
* @param props.
|
|
22
|
+
* @param props."data-testid" - Optional test ID for testing purposes
|
|
23
23
|
* @param props.onScrollStateChange - Optional callback fired when scroll state changes
|
|
24
24
|
* @returns {ReactElement} A horizontal overflow scroller component with visual indicators
|
|
25
25
|
*/
|
|
26
|
-
export declare const HorizontalOverflowScroller: ({ className, dataTestId, children, onScrollStateChange, }: HorizontalOverflowScrollerProps) => ReactElement;
|
|
26
|
+
export declare const HorizontalOverflowScroller: ({ className, "data-testid": dataTestId, children, onScrollStateChange, }: HorizontalOverflowScrollerProps) => ReactElement;
|
|
@@ -18,5 +18,5 @@ export interface OverflowIndicatorProps extends CommonProps {
|
|
|
18
18
|
* @param {OverflowIndicatorProps} props - The props for the component
|
|
19
19
|
* @returns {ReactElement} OverflowIndicator component
|
|
20
20
|
*/
|
|
21
|
-
export declare const OverflowIndicator: ({ className, dataTestId, direction, onClickScroll, }: OverflowIndicatorProps) => ReactElement;
|
|
21
|
+
export declare const OverflowIndicator: ({ className, "data-testid": dataTestId, direction, onClickScroll, }: OverflowIndicatorProps) => ReactElement;
|
|
22
22
|
export {};
|
|
@@ -305,5 +305,5 @@ export type IconProps = DiscriminatedIconProps & CommonProps & AriaProps & {
|
|
|
305
305
|
* @param {IconProps} props - The props for the Icon component
|
|
306
306
|
* @returns {ReactElement} Icon component
|
|
307
307
|
*/
|
|
308
|
-
export declare const Icon: ({ name, size, className, dataTestId, color, onClick, type, style, forwardedRef, ariaLabel, fontSize, ariaLabelledBy, ariaDescribedBy, ariaHidden, }: IconProps) => ReactElement;
|
|
308
|
+
export declare const Icon: ({ name, size, className, "data-testid": dataTestId, color, onClick, type, style, forwardedRef, ariaLabel, fontSize, ariaLabelledBy, ariaDescribedBy, ariaHidden, }: IconProps) => ReactElement;
|
|
309
309
|
export {};
|
|
@@ -47,4 +47,4 @@ export interface IndicatorProps extends CommonProps {
|
|
|
47
47
|
* @param {IndicatorProps} props - The props for the Indicator component
|
|
48
48
|
* @returns {ReactElement} Indicator component
|
|
49
49
|
*/
|
|
50
|
-
export declare const Indicator: ({ dataTestId, icon, label, color, withBackground, withLabel, ping, size, weight, className, ...rest }: IndicatorProps) => ReactElement;
|
|
50
|
+
export declare const Indicator: ({ "data-testid": dataTestId, icon, label, color, withBackground, withLabel, ping, size, weight, className, ...rest }: IndicatorProps) => ReactElement;
|
|
@@ -58,4 +58,4 @@ export interface KPIProps extends CommonProps, Styleable {
|
|
|
58
58
|
* @param {KPIProps} props - The props for the KPI component
|
|
59
59
|
* @returns {ReactElement} KPI component
|
|
60
60
|
*/
|
|
61
|
-
export declare const KPI: ({ title, value, loading, unit, className, dataTestId, tooltipLabel, variant, trend, style, ...rest }: KPIProps) => ReactElement;
|
|
61
|
+
export declare const KPI: ({ title, value, loading, unit, className, "data-testid": dataTestId, tooltipLabel, variant, trend, style, ...rest }: KPIProps) => ReactElement;
|
|
@@ -30,4 +30,4 @@ export interface KPICardProps extends MappedOmit<KPIProps, "variant"> {
|
|
|
30
30
|
* @param {KPICardProps} props - The props for the KPICard component
|
|
31
31
|
* @returns {ReactElement} KPICard component
|
|
32
32
|
*/
|
|
33
|
-
export declare const KPICard: ({ isActive, onClick, className, dataTestId, children, iconName, iconColor, loading, ...rest }: KPICardProps) => ReactElement;
|
|
33
|
+
export declare const KPICard: ({ isActive, onClick, className, "data-testid": dataTestId, children, iconName, iconColor, loading, ...rest }: KPICardProps) => ReactElement;
|
|
@@ -89,4 +89,4 @@ export interface ListProps<TItem = unknown> extends CommonProps, UseListResult<T
|
|
|
89
89
|
* );
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
|
-
export declare const List: <TItem = unknown>({ children, className, dataTestId, containerRef, listRef, rows, getListItemProps, header, loadingIndicator, shouldShowLoaderAtIndex, count, isScrolling, separator, topSeparatorOnScroll, isAtTop, contentFillsContainer, scrollOffset: _scrollOffset, getTotalSize: _getTotalSize, getVirtualItems: _getVirtualItems, scrollToOffset: _scrollToOffset, scrollToIndex: _scrollToIndex, measure: _measure, }: ListProps<TItem>) => ReactElement;
|
|
92
|
+
export declare const List: <TItem = unknown>({ children, className, "data-testid": dataTestId, containerRef, listRef, rows, getListItemProps, header, loadingIndicator, shouldShowLoaderAtIndex, count, isScrolling, separator, topSeparatorOnScroll, isAtTop, contentFillsContainer, scrollOffset: _scrollOffset, getTotalSize: _getTotalSize, getVirtualItems: _getVirtualItems, scrollToOffset: _scrollToOffset, scrollToIndex: _scrollToIndex, measure: _measure, }: ListProps<TItem>) => ReactElement;
|
|
@@ -41,5 +41,5 @@ export interface ListItemProps extends CommonProps, ListItemVirtualizationProps,
|
|
|
41
41
|
* @param { ListItemProps} props - The props for the ListItem component
|
|
42
42
|
* @returns {Element} ListItem component
|
|
43
43
|
*/
|
|
44
|
-
export declare const ListItem: ({ className, dataTestId, onClick, details, title, description, meta, thumbnail, thumbnailColor, thumbnailBackground, ...rest }: ListItemProps) => ReactElement;
|
|
44
|
+
export declare const ListItem: ({ className, "data-testid": dataTestId, onClick, details, title, description, meta, thumbnail, thumbnailColor, thumbnailBackground, ...rest }: ListItemProps) => ReactElement;
|
|
45
45
|
export {};
|
|
@@ -90,4 +90,4 @@ export interface MenuItemProps extends CommonProps {
|
|
|
90
90
|
* @param {MenuItemProps} props - The props for the MenuItem component
|
|
91
91
|
* @returns {ReactElement} MenuItem component
|
|
92
92
|
*/
|
|
93
|
-
export declare const MenuItem: ({ className, dataTestId, label, children, selected, focused, prefix, suffix, disabled, onClick, stopPropagation, id, tabIndex, optionLabelDescription, optionPrefix, fieldSize, variant, }: MenuItemProps) => ReactElement;
|
|
93
|
+
export declare const MenuItem: ({ className, "data-testid": dataTestId, label, children, selected, focused, prefix, suffix, disabled, onClick, stopPropagation, id, tabIndex, optionLabelDescription, optionPrefix, fieldSize, variant, }: MenuItemProps) => ReactElement;
|
|
@@ -33,4 +33,4 @@ export interface MenuListProps extends CommonProps {
|
|
|
33
33
|
* @param {MenuListProps} props - The props for the MenuList component
|
|
34
34
|
* @returns {ReactElement} MenuList component
|
|
35
35
|
*/
|
|
36
|
-
export declare const MenuList: ({ dataTestId, className, children, isMulti, selectedItems: controlledSelectedItems, onSelectionChange, ...args }: MenuListProps) => ReactElement;
|
|
36
|
+
export declare const MenuList: ({ "data-testid": dataTestId, className, children, isMulti, selectedItems: controlledSelectedItems, onSelectionChange, ...args }: MenuListProps) => ReactElement;
|
|
@@ -22,5 +22,5 @@ export interface MoreMenuProps extends CommonProps {
|
|
|
22
22
|
* @param {MoreMenuProps} props - The props for the MoreMenu component
|
|
23
23
|
* @returns {ReactElement} MoreMenu component
|
|
24
24
|
*/
|
|
25
|
-
export declare const MoreMenu: ({ className, dataTestId, popoverProps, iconProps, iconButtonProps, customButton, customPortalId, children, }: MoreMenuProps) => ReactElement;
|
|
25
|
+
export declare const MoreMenu: ({ className, "data-testid": dataTestId, popoverProps, iconProps, iconButtonProps, customButton, customPortalId, children, }: MoreMenuProps) => ReactElement;
|
|
26
26
|
export {};
|
|
@@ -41,4 +41,4 @@ export interface NoticeProps extends CommonProps {
|
|
|
41
41
|
* @param {NoticeProps} props - The props for the Notice component
|
|
42
42
|
* @returns {ReactElement} Notice component
|
|
43
43
|
*/
|
|
44
|
-
export declare const Notice: ({ dataTestId, icon, label, color, withLabel, className, tooltipLabel, withTooltip, size, ...rest }: NoticeProps) => ReactElement;
|
|
44
|
+
export declare const Notice: ({ "data-testid": dataTestId, icon, label, color, withLabel, className, tooltipLabel, withTooltip, size, ...rest }: NoticeProps) => ReactElement;
|
|
@@ -12,9 +12,9 @@ export type Layout = VariantProps<typeof cvaPage>["layout"];
|
|
|
12
12
|
export interface PageProps extends CommonProps {
|
|
13
13
|
layout: Layout;
|
|
14
14
|
children?: ReactNode;
|
|
15
|
-
|
|
15
|
+
"data-testid"?: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Renders the page component. Adds padding and layout to the page.
|
|
19
19
|
*/
|
|
20
|
-
export declare const Page: ({ layout, className, children, dataTestId }: PageProps) => ReactElement;
|
|
20
|
+
export declare const Page: ({ layout, className, children, "data-testid": dataTestId }: PageProps) => ReactElement;
|
|
@@ -20,5 +20,5 @@ interface PageContentProps extends CommonProps {
|
|
|
20
20
|
* @param {PageContentProps} props - The component props.
|
|
21
21
|
* @returns {ReactNode} - The rendered component.
|
|
22
22
|
*/
|
|
23
|
-
export declare const PageContent: ({ className, children, dataTestId, layout }: PageContentProps) => ReactElement;
|
|
23
|
+
export declare const PageContent: ({ className, children, "data-testid": dataTestId, layout, }: PageContentProps) => ReactElement;
|
|
24
24
|
export {};
|
|
@@ -10,4 +10,4 @@ import { PageHeaderProps } from "./types";
|
|
|
10
10
|
* @param {PageHeaderProps} props - The props for the PageHeader component
|
|
11
11
|
* @returns {ReactElement} PageHeader component
|
|
12
12
|
*/
|
|
13
|
-
export declare const PageHeader: ({ className, dataTestId, showLoading, description, title, tagLabel, backTo, tagColor, tabsList, descriptionIcon, tagTooltipLabel, ...discriminatedProps }: PageHeaderProps) => ReactElement;
|
|
13
|
+
export declare const PageHeader: ({ className, "data-testid": dataTestId, showLoading, description, title, tagLabel, backTo, tagColor, tabsList, descriptionIcon, tagTooltipLabel, ...discriminatedProps }: PageHeaderProps) => ReactElement;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
+
import { CommonProps } from "../../../common";
|
|
3
|
+
interface PageHeaderTitleProps extends CommonProps {
|
|
4
|
+
/**
|
|
5
|
+
* The title of the page header
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
10
|
* The PageHeaderTitle component is used to display the title of the page header.
|
|
4
11
|
*
|
|
5
12
|
* @param {object} props - The props for the PageHeaderTitle component
|
|
6
13
|
* @param {string} props.title - The title of the page header
|
|
7
|
-
* @param {string}
|
|
14
|
+
* @param {string} props.className - The class name of the page header title
|
|
15
|
+
* @param {string} [props."data-testid"] - The data test id of the page header title
|
|
8
16
|
* @returns {ReactElement} PageHeaderTitle component
|
|
9
17
|
*/
|
|
10
|
-
export declare const PageHeaderTitle: ({ title, dataTestId }:
|
|
11
|
-
|
|
12
|
-
dataTestId?: string;
|
|
13
|
-
}) => ReactElement;
|
|
18
|
+
export declare const PageHeaderTitle: ({ title, "data-testid": dataTestId, className, }: PageHeaderTitleProps) => ReactElement;
|
|
19
|
+
export {};
|
|
@@ -35,7 +35,7 @@ export interface PaginationProps {
|
|
|
35
35
|
/**
|
|
36
36
|
* A data test id
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
"data-testid"?: string;
|
|
39
39
|
/**
|
|
40
40
|
* An helper to get translation for count.
|
|
41
41
|
*/
|
|
@@ -59,4 +59,4 @@ export interface PaginationProps {
|
|
|
59
59
|
* @param {PaginationProps} props - The props for the Pagination component
|
|
60
60
|
* @returns {ReactElement} Pagination component
|
|
61
61
|
*/
|
|
62
|
-
export declare const Pagination: ({ previousPage, nextPage, canPreviousPage, canNextPage, pageCount, pageIndex, loading, className, dataTestId, getTranslatedCount, onPageChange, cursorBase, }: PaginationProps) => ReactElement;
|
|
62
|
+
export declare const Pagination: ({ previousPage, nextPage, canPreviousPage, canNextPage, pageCount, pageIndex, loading, className, "data-testid": dataTestId, getTranslatedCount, onPageChange, cursorBase, }: PaginationProps) => ReactElement;
|
|
@@ -13,5 +13,5 @@ export interface PolygonProps extends CommonProps {
|
|
|
13
13
|
* @param { PolygonProps} props - The props for the Polygon component
|
|
14
14
|
* @returns {ReactElement} Polygon component
|
|
15
15
|
*/
|
|
16
|
-
export declare const Polygon: ({ points, size, color, opaque, className, dataTestId, }: PolygonProps) => ReactElement;
|
|
16
|
+
export declare const Polygon: ({ points, size, color, opaque, className, "data-testid": dataTestId, }: PolygonProps) => ReactElement;
|
|
17
17
|
export {};
|
|
@@ -45,4 +45,4 @@ export interface PopoverContentProps extends Omit<HTMLProps<HTMLDivElement>, "ch
|
|
|
45
45
|
* @param {PopoverContentProps} props - The props for the PopoverContent component
|
|
46
46
|
* @returns {ReactElement} The popover content element
|
|
47
47
|
*/
|
|
48
|
-
export declare const PopoverContent: ({ className, dataTestId, children, portalId, ref: propRef, ...props }: PopoverContentProps) => ReactElement;
|
|
48
|
+
export declare const PopoverContent: ({ className, "data-testid": dataTestId, children, portalId, ref: propRef, ...props }: PopoverContentProps) => ReactElement;
|
|
@@ -17,4 +17,4 @@ export interface PopoverTitleProps extends CommonProps {
|
|
|
17
17
|
* @param {PopoverTitleProps} props - The props for the PopoverTitle component
|
|
18
18
|
* @returns {ReactElement} PopoverTitle component
|
|
19
19
|
*/
|
|
20
|
-
export declare const PopoverTitle: ({ children, action, divider, className, dataTestId, }: PopoverTitleProps) => ReactElement;
|
|
20
|
+
export declare const PopoverTitle: ({ children, action, divider, className, "data-testid": dataTestId, }: PopoverTitleProps) => ReactElement;
|
|
@@ -20,4 +20,4 @@ export interface SectionHeaderProps extends CommonProps {
|
|
|
20
20
|
* @param {SectionHeaderProps} props - The props for the section header component
|
|
21
21
|
* @returns {ReactElement} SectionHeader component
|
|
22
22
|
*/
|
|
23
|
-
export declare const SectionHeader: ({ title, subtitle, dataTestId, addons }: SectionHeaderProps) => ReactElement;
|
|
23
|
+
export declare const SectionHeader: ({ title, subtitle, "data-testid": dataTestId, addons, }: SectionHeaderProps) => ReactElement;
|
|
@@ -54,4 +54,4 @@ export interface SidebarProps extends CommonProps {
|
|
|
54
54
|
* @param {SidebarProps} props - The props for the Sidebar component
|
|
55
55
|
* @returns {ReactElement} Sidebar component
|
|
56
56
|
*/
|
|
57
|
-
export declare const Sidebar: ({ childContainerClassName, children, breakpoint, className, dataTestId, moreMenuProps, menuListProps, overflowThreshold, }: SidebarProps) => ReactElement;
|
|
57
|
+
export declare const Sidebar: ({ childContainerClassName, children, breakpoint, className, "data-testid": dataTestId, moreMenuProps, menuListProps, overflowThreshold, }: SidebarProps) => ReactElement;
|
|
@@ -17,4 +17,4 @@ export interface SpacerProps extends CommonProps {
|
|
|
17
17
|
* @param {SpacerProps} props - The props for the Spacer component
|
|
18
18
|
* @returns {ReactElement} Spacer component
|
|
19
19
|
*/
|
|
20
|
-
export declare const Spacer: ({ size, border, dataTestId, className }: SpacerProps) => ReactElement;
|
|
20
|
+
export declare const Spacer: ({ size, border, "data-testid": dataTestId, className, }: SpacerProps) => ReactElement;
|
|
@@ -40,5 +40,5 @@ export interface SpinnerProps extends CommonProps {
|
|
|
40
40
|
* @param {SpinnerProps} props - The props for the Spinner component
|
|
41
41
|
* @returns {ReactElement} Spinner component
|
|
42
42
|
*/
|
|
43
|
-
export declare const Spinner: ({ mode, size, centering, className, containerClassName, dataTestId, label, }: SpinnerProps) => ReactElement;
|
|
43
|
+
export declare const Spinner: ({ mode, size, centering, className, containerClassName, "data-testid": dataTestId, label, }: SpinnerProps) => ReactElement;
|
|
44
44
|
export {};
|
|
@@ -13,7 +13,7 @@ export interface TabProps extends TabsTriggerProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* A data-testid attribute for testing purposes.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
"data-testid"?: string;
|
|
17
17
|
/**
|
|
18
18
|
* The text content of the tab.
|
|
19
19
|
*/
|
|
@@ -43,4 +43,4 @@ export interface TabProps extends TabsTriggerProps {
|
|
|
43
43
|
* Wrapper for radix tab component.
|
|
44
44
|
* We add a custom implementation of the asChild prop to make it easy to make the child element look like other tabs.
|
|
45
45
|
*/
|
|
46
|
-
export declare const Tab: ({ value, isFullWidth, iconName, dataTestId, className, children, suffix, asChild, appendTabStylesToChildIfAsChild, ...rest }: TabProps) => ReactElement;
|
|
46
|
+
export declare const Tab: ({ value, isFullWidth, iconName, "data-testid": dataTestId, className, children, suffix, asChild, appendTabStylesToChildIfAsChild, ...rest }: TabProps) => ReactElement;
|
|
@@ -3,7 +3,7 @@ import { IconName } from "@trackunit/ui-icons";
|
|
|
3
3
|
import { ReactElement, ReactNode } from "react";
|
|
4
4
|
export interface TabContentProps extends TabsContentProps {
|
|
5
5
|
className?: string;
|
|
6
|
-
|
|
6
|
+
"data-testid"?: string;
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
suffix?: ReactNode;
|
|
9
9
|
iconName?: IconName;
|
|
@@ -11,4 +11,4 @@ export interface TabContentProps extends TabsContentProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* Wrapper for radix tab content component.
|
|
13
13
|
*/
|
|
14
|
-
export declare const TabContent: ({ className, dataTestId, children, ...rest }: TabContentProps) => ReactElement;
|
|
14
|
+
export declare const TabContent: ({ className, "data-testid": dataTestId, children, ...rest }: TabContentProps) => ReactElement;
|
|
@@ -13,7 +13,7 @@ export interface TabListProps extends TabsListProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* An ID that can be used in tests to locate the component.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
"data-testid"?: string;
|
|
17
17
|
/**
|
|
18
18
|
* If set to true, automatically scrolls the active tab into view when changed.
|
|
19
19
|
*
|
|
@@ -24,4 +24,4 @@ export interface TabListProps extends TabsListProps {
|
|
|
24
24
|
/**
|
|
25
25
|
* Wrapper for radix tab list component.
|
|
26
26
|
*/
|
|
27
|
-
export declare const TabList: ({ className, dataTestId, children, autoScrollToActive, ...rest }: TabListProps) => ReactElement;
|
|
27
|
+
export declare const TabList: ({ className, "data-testid": dataTestId, children, autoScrollToActive, ...rest }: TabListProps) => ReactElement;
|
|
@@ -20,9 +20,9 @@ export interface TabsProps extends TabsRootProps {
|
|
|
20
20
|
/**
|
|
21
21
|
* An ID that can be used in tests to locate the component.
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
"data-testid"?: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Tabs are used to group different but related content, allowing users to navigate views without leaving the page. They always contain at least two items and one tab is active at a time. Tabs can be used on full page layouts or in components such as modals or tables.
|
|
27
27
|
*/
|
|
28
|
-
export declare const Tabs: ({ children, forceRender, className, dataTestId, fullWidth, ...rest }: TabsProps) => ReactElement;
|
|
28
|
+
export declare const Tabs: ({ children, forceRender, className, "data-testid": dataTestId, fullWidth, ...rest }: TabsProps) => ReactElement;
|
|
@@ -58,6 +58,6 @@ export interface TagProps extends CommonProps {
|
|
|
58
58
|
* @returns {ReactElement} The rendered Tag component.
|
|
59
59
|
*/
|
|
60
60
|
export declare const Tag: {
|
|
61
|
-
({ className, dataTestId, children, size, onClose, color, disabled, ref, icon, onMouseEnter, }: TagProps): ReactElement;
|
|
61
|
+
({ className, "data-testid": dataTestId, children, size, onClose, color, disabled, ref, icon, onMouseEnter, }: TagProps): ReactElement;
|
|
62
62
|
displayName: string;
|
|
63
63
|
};
|
|
@@ -72,6 +72,6 @@ export interface TextProps extends CommonProps {
|
|
|
72
72
|
* @returns {ReactElement} Text component
|
|
73
73
|
*/
|
|
74
74
|
export declare const Text: {
|
|
75
|
-
({ children, type, size, align, weight, underline, inverted, subtle, italicize, uppercase, disabled, className, dataTestId, ref, ...rest }: TextProps): ReactElement;
|
|
75
|
+
({ children, type, size, align, weight, underline, inverted, subtle, italicize, uppercase, disabled, className, "data-testid": dataTestId, ref, ...rest }: TextProps): ReactElement;
|
|
76
76
|
displayName: string;
|
|
77
77
|
};
|
|
@@ -62,7 +62,7 @@ export type ToggleGroupProps<TSelectedId extends string = string> = CommonProps
|
|
|
62
62
|
* @param {ToggleGroupProps} props - The props for the ToggleGroup component
|
|
63
63
|
* @returns {ReactElement} ToggleGroup component
|
|
64
64
|
*/
|
|
65
|
-
export declare const ToggleGroup: <TSelectedId extends string = string>({ list, selected, setSelected, onChange, disabled, size, isIconOnly, className, dataTestId, }: ToggleGroupProps<TSelectedId>) => ReactElement;
|
|
65
|
+
export declare const ToggleGroup: <TSelectedId extends string = string>({ list, selected, setSelected, onChange, disabled, size, isIconOnly, className, "data-testid": dataTestId, }: ToggleGroupProps<TSelectedId>) => ReactElement;
|
|
66
66
|
export interface ToggleItemProps extends CommonProps, MappedOmit<BasicToggleGroupListProps<string>, "id"> {
|
|
67
67
|
title: string;
|
|
68
68
|
text?: {
|
|
@@ -80,6 +80,6 @@ export interface ToggleItemProps extends CommonProps, MappedOmit<BasicToggleGrou
|
|
|
80
80
|
isIconOnly: boolean;
|
|
81
81
|
iconName?: IconName;
|
|
82
82
|
className?: string;
|
|
83
|
-
|
|
83
|
+
"data-testid"?: string;
|
|
84
84
|
ref?: (el: HTMLButtonElement | null) => void;
|
|
85
85
|
}
|
|
@@ -45,4 +45,4 @@ export interface TooltipProps extends CommonProps, Styleable {
|
|
|
45
45
|
* @param {TooltipProps} props - The props for the Tooltip component
|
|
46
46
|
* @returns {ReactElement} Tooltip component
|
|
47
47
|
*/
|
|
48
|
-
export declare const Tooltip: ({ children, dataTestId, disabled, className, label, placement, mode, iconProps, id, style, }: TooltipProps) => ReactElement;
|
|
48
|
+
export declare const Tooltip: ({ children, "data-testid": dataTestId, disabled, className, label, placement, mode, iconProps, id, style, }: TooltipProps) => ReactElement;
|
|
@@ -48,5 +48,5 @@ export interface ValueBarProps extends CommonProps {
|
|
|
48
48
|
* @param {ValueBarProps} props - The props for the ValueBar component
|
|
49
49
|
* @returns {ReactElement} ValueBar component
|
|
50
50
|
*/
|
|
51
|
-
export declare const ValueBar: ({ value, min, max, unit, size, levelColors, valueColor, showValue, className, dataTestId, zeroScoreAllowed, }: ValueBarProps) => ReactElement;
|
|
51
|
+
export declare const ValueBar: ({ value, min, max, unit, size, levelColors, valueColor, showValue, className, "data-testid": dataTestId, zeroScoreAllowed, }: ValueBarProps) => ReactElement;
|
|
52
52
|
export {};
|
|
@@ -10,4 +10,4 @@ export type ZStackProps = CommonProps & {
|
|
|
10
10
|
* @param { ZStackProps} props - The props for the ZStack component
|
|
11
11
|
* @returns {Element} ZStack component
|
|
12
12
|
*/
|
|
13
|
-
export declare const ZStack: ({ children, className, dataTestId }: ZStackProps) => ReactElement;
|
|
13
|
+
export declare const ZStack: ({ children, className, "data-testid": dataTestId }: ZStackProps) => ReactElement;
|
|
@@ -57,6 +57,6 @@ export interface ButtonProps extends Omit<ButtonCommonProps, "size"> {
|
|
|
57
57
|
* @returns {ReactElement} Button component
|
|
58
58
|
*/
|
|
59
59
|
export declare const Button: {
|
|
60
|
-
({ onClick, children, loading, disabled, className, fullWidth, prefix, suffix, variant, type, size, square, dataTestId, title, role, tabIndex, asChild, ref, ...rest }: ButtonProps): ReactElement;
|
|
60
|
+
({ onClick, children, loading, disabled, className, fullWidth, prefix, suffix, variant, type, size, square, "data-testid": dataTestId, title, role, tabIndex, asChild, ref, ...rest }: ButtonProps): ReactElement;
|
|
61
61
|
displayName: string;
|
|
62
62
|
};
|