@trackunit/react-components 0.1.385 → 0.1.388
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 +125 -133
- package/index.esm.js +112 -109
- package/package.json +6 -5
- package/src/common/PackageNameStoryComponent.d.ts +1 -2
- package/src/components/Alert/Alert.d.ts +1 -1
- package/src/components/Badge/Badge.d.ts +1 -2
- package/src/components/Breadcrumb/Breadcrumb.d.ts +3 -4
- package/src/components/Breadcrumb/BreadcrumbForLargeScreen.d.ts +1 -2
- package/src/components/Breadcrumb/BreadcrumbForMediumScreen.d.ts +1 -2
- package/src/components/Breadcrumb/BreadcrumbForSmallScreen.d.ts +1 -2
- package/src/components/Breadcrumb/utils/types.d.ts +0 -1
- package/src/components/Card/Card.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/CompletionStatusIndicator/CompletionStatusIndicator.d.ts +1 -2
- package/src/components/CopyableText/CopyableText.d.ts +1 -2
- package/src/components/Drawer/Drawer.d.ts +1 -1
- package/src/components/EmptyState/EmptyState.d.ts +1 -2
- package/src/components/EmptyValue/EmptyValue.d.ts +0 -1
- package/src/components/ExternalLink/ExternalLink.d.ts +0 -1
- package/src/components/Icon/Icon.d.ts +2 -6
- package/src/components/Indicator/Indicator.d.ts +0 -1
- package/src/components/Menu/MenuList/MenuList.d.ts +0 -1
- package/src/components/Menu/MoreMenu/MoreMenu.d.ts +1 -1
- package/src/components/Notice/Notice.d.ts +0 -1
- package/src/components/Page/Page.d.ts +1 -1
- package/src/components/Page/PageContent.d.ts +1 -1
- package/src/components/PageHeader/PageHeader.d.ts +1 -1
- package/src/components/Pagination/Pagination.d.ts +1 -2
- package/src/components/Popover/Popover.d.ts +1 -2
- package/src/components/Popover/PopoverContent.d.ts +1 -1
- package/src/components/Popover/PopoverTitle.d.ts +1 -1
- package/src/components/Popover/PopoverTrigger.d.ts +1 -2
- package/src/components/Popover/PopoverTypes.d.ts +0 -1
- package/src/components/Sidebar/Sidebar.d.ts +1 -1
- package/src/components/SkeletonLines/SkeletonLines.d.ts +1 -2
- package/src/components/Spacer/Spacer.d.ts +1 -2
- package/src/components/Spinner/Spinner.d.ts +1 -2
- package/src/components/Tabs/Tab.d.ts +1 -1
- package/src/components/Tabs/TabContent.d.ts +1 -1
- package/src/components/Tabs/TabList.d.ts +1 -1
- package/src/components/Tabs/Tabs.d.ts +1 -1
- package/src/components/Timeline/Timeline.d.ts +2 -3
- package/src/components/ToggleGroup/ToggleGroup.d.ts +1 -2
- package/src/components/ValueBar/ValueBar.d.ts +1 -2
- package/src/components/VirtualizedList/VirtualizedList.d.ts +1 -2
- package/src/components/Widget/WidgetBody.d.ts +1 -1
- package/src/components/buttons/BackToTopButton/BackToTopButton.d.ts +1 -2
- package/src/components/buttons/StarButton/StarButton.d.ts +1 -1
- package/src/components/buttons/shared/ButtonProps.d.ts +0 -1
- package/src/hooks/useSelfUpdatingRef.d.ts +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BreadcrumbContainerProps } from "./utils/types";
|
|
3
2
|
/**
|
|
4
3
|
* BreadcrumbForSmallScreen is a helper component that renders the breadcrumb items for small screens.
|
|
5
4
|
*/
|
|
6
|
-
export declare const BreadcrumbForSmallScreen: ({ dataTestId, breadcrumbItems }: BreadcrumbContainerProps) => JSX.Element;
|
|
5
|
+
export declare const BreadcrumbForSmallScreen: ({ dataTestId, breadcrumbItems }: BreadcrumbContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,4 +30,4 @@ export interface CardProps extends CommonProps, React.InputHTMLAttributes<HTMLDi
|
|
|
30
30
|
* @param {CardProps} props - The props for the Card component
|
|
31
31
|
* @returns {JSX.Element} Card component
|
|
32
32
|
*/
|
|
33
|
-
export declare const Card: ({ children, onClick, fullHeight, onMouseEnter, onMouseLeave, className, dataTestId, ...rest }: CardProps) => JSX.Element;
|
|
33
|
+
export declare const Card: ({ children, onClick, fullHeight, onMouseEnter, onMouseLeave, className, dataTestId, ...rest }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,4 +26,4 @@ export interface CardBodyProps extends CommonProps {
|
|
|
26
26
|
* @param {CardBodyProps} props - The props for the CardBody component
|
|
27
27
|
* @returns {JSX.Element} CardBody component
|
|
28
28
|
*/
|
|
29
|
-
export declare const CardBody: ({ density, children, dataTestId, className, disableGap, id }: CardBodyProps) => JSX.Element;
|
|
29
|
+
export declare const CardBody: ({ density, children, dataTestId, className, disableGap, id }: CardBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,4 +22,4 @@ export interface CardFooterProps extends CommonProps {
|
|
|
22
22
|
* @param {CardFooterProps} props - The props for the CardFooter component
|
|
23
23
|
* @returns {JSX.Element} CardFooter component
|
|
24
24
|
*/
|
|
25
|
-
export declare const CardFooter: ({ dataTestId, className, children, density, hideSeparator }: CardFooterProps) => JSX.Element;
|
|
25
|
+
export declare const CardFooter: ({ dataTestId, className, children, density, hideSeparator }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,4 +44,4 @@ export interface CardHeaderProps extends CommonProps {
|
|
|
44
44
|
* @param {CardHeaderProps} props - The props for the CardHeader component
|
|
45
45
|
* @returns {JSX.Element} CardHeader component
|
|
46
46
|
*/
|
|
47
|
-
export declare const CardHeader: ({ heading, headingVariant, subHeading, onClose, dataTestId, className, children, accessories, actions, density, hideSeparator, }: CardHeaderProps) => JSX.Element;
|
|
47
|
+
export declare const CardHeader: ({ heading, headingVariant, subHeading, onClose, dataTestId, className, children, accessories, actions, density, hideSeparator, }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,4 +44,4 @@ export interface CollapseProps extends CommonProps {
|
|
|
44
44
|
* @param {CollapseProps} props - The props for the Collapse component
|
|
45
45
|
* @returns {JSX.Element} Collapse component
|
|
46
46
|
*/
|
|
47
|
-
export declare const Collapse: ({ id, initialExpanded, onToggle, label, children, className, headerClassName, headerAddon, dataTestId, }: CollapseProps) => JSX.Element;
|
|
47
|
+
export declare const Collapse: ({ id, initialExpanded, onToggle, label, children, className, headerClassName, headerAddon, dataTestId, }: CollapseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
2
|
export interface CompletionStatusIndicatorProps extends CommonProps {
|
|
4
3
|
loading: boolean;
|
|
@@ -18,4 +17,4 @@ export interface CompletionStatusIndicatorProps extends CommonProps {
|
|
|
18
17
|
* @param {boolean} props.warning - Indicates if the process has a warning.
|
|
19
18
|
* @param {boolean} props.success - Indicates if the process was successful.
|
|
20
19
|
*/
|
|
21
|
-
export declare const CompletionStatusIndicator: ({ loading, error, success, ...rest }: CompletionStatusIndicatorProps) => JSX.Element | null;
|
|
20
|
+
export declare const CompletionStatusIndicator: ({ loading, error, success, ...rest }: CompletionStatusIndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "../../common";
|
|
3
2
|
export interface CopyableTextProps extends CommonProps {
|
|
4
3
|
/**
|
|
@@ -18,4 +17,4 @@ export interface CopyableTextProps extends CommonProps {
|
|
|
18
17
|
* @param {CopyableTextProps} props - The props for the CopyableText component
|
|
19
18
|
* @returns {JSX.Element} CopyableText component
|
|
20
19
|
*/
|
|
21
|
-
export declare const CopyableText: ({ text, alternativeText, dataTestId, className }: CopyableTextProps) => JSX.Element;
|
|
20
|
+
export declare const CopyableText: ({ text, alternativeText, dataTestId, className }: CopyableTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,4 +29,4 @@ export interface DrawerProps extends CommonProps {
|
|
|
29
29
|
* @param {DrawerProps} props - The props for the Drawer component
|
|
30
30
|
* @returns {JSX.Element} Drawer component
|
|
31
31
|
*/
|
|
32
|
-
export declare const Drawer: ({ open, onClose, children, disableOverlay, position, className, dataTestId, }: DrawerProps) => JSX.Element;
|
|
32
|
+
export declare const Drawer: ({ open, onClose, children, disableOverlay, position, className, dataTestId, }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "../../common";
|
|
3
2
|
type Image = "WORKER_WITH_SIGN" | "ROAD_BLOCK" | "BUILDING_ERROR" | "WALL_CONSTRUCTION" | "PHONE_LOCK_SECURITY" | "SEARCH_DOCUMENT";
|
|
4
3
|
export interface EmptyStateProps extends CommonProps {
|
|
@@ -24,5 +23,5 @@ export interface EmptyStateProps extends CommonProps {
|
|
|
24
23
|
* image="BUILDING_ERROR"
|
|
25
24
|
* />
|
|
26
25
|
*/
|
|
27
|
-
export declare const EmptyState: ({ title, description, altText, image, customImageSrc, action, loading, dataTestId, className, }: EmptyStateProps) => JSX.Element;
|
|
26
|
+
export declare const EmptyState: ({ title, description, altText, image, customImageSrc, action, loading, dataTestId, className, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
export {};
|
|
@@ -206,11 +206,7 @@ export declare const iconPalette: {
|
|
|
206
206
|
readonly 50: "239 246 255";
|
|
207
207
|
readonly 100: "219 234 254";
|
|
208
208
|
readonly 200: "191 219 254";
|
|
209
|
-
readonly 300: "147 197 253";
|
|
210
|
-
* Select if the icon should be rendered as solid or outline.
|
|
211
|
-
* Default value depends on the Size prop, mini == solid, medium == solid, large == outline.
|
|
212
|
-
* Trackunit icons might not support both outline and Solid.
|
|
213
|
-
*/
|
|
209
|
+
readonly 300: "147 197 253";
|
|
214
210
|
readonly 400: "96 165 250";
|
|
215
211
|
readonly 500: "59 130 246";
|
|
216
212
|
readonly 600: "37 99 235";
|
|
@@ -320,5 +316,5 @@ export type IconProps = DiscriminatedIconProps & CommonProps & AriaProps & {
|
|
|
320
316
|
* @param {IconProps} props - The props for the Icon component
|
|
321
317
|
* @returns {JSX.Element} Icon component
|
|
322
318
|
*/
|
|
323
|
-
export declare const Icon: ({ name, size, className, dataTestId, color, onClick, type, style, forwardedRef, ariaLabel, ariaLabelledBy, ariaDescribedBy, }: IconProps) => JSX.Element;
|
|
319
|
+
export declare const Icon: ({ name, size, className, dataTestId, color, onClick, type, style, forwardedRef, ariaLabel, ariaLabelledBy, ariaDescribedBy, }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
324
320
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ActivityColors, CriticalityColors, GeneralColors, IntentColors, RentalStatusColors, SitesColors, UtilizationColors } from "@trackunit/ui-design-tokens";
|
|
3
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
4
3
|
export interface IndicatorProps extends CommonProps {
|
|
@@ -22,5 +22,5 @@ export interface MoreMenuProps extends CommonProps {
|
|
|
22
22
|
* @param {MoreMenuProps} props - The props for the MoreMenu component
|
|
23
23
|
* @returns {JSX.Element} MoreMenu component
|
|
24
24
|
*/
|
|
25
|
-
export declare const MoreMenu: ({ className, dataTestId, popoverProps, iconProps, iconButtonProps, customButton, customPortalId, children, }: MoreMenuProps) => JSX.Element;
|
|
25
|
+
export declare const MoreMenu: ({ className, dataTestId, popoverProps, iconProps, iconButtonProps, customButton, customPortalId, children, }: MoreMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -17,4 +17,4 @@ export interface PageProps extends CommonProps {
|
|
|
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) => JSX.Element;
|
|
20
|
+
export declare const Page: ({ layout, className, children, dataTestId }: PageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,5 +13,5 @@ interface PageContentProps extends CommonProps {
|
|
|
13
13
|
* @param {PageContentProps} props - The component props.
|
|
14
14
|
* @returns {React.ReactNode} - The rendered component.
|
|
15
15
|
*/
|
|
16
|
-
export declare const PageContent: ({ className, children, dataTestId }: PageContentProps) => JSX.Element;
|
|
16
|
+
export declare const PageContent: ({ className, children, dataTestId }: PageContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -55,4 +55,4 @@ export interface PageHeaderProps extends CommonProps {
|
|
|
55
55
|
* @param {PageHeaderProps} props - The props for the PageHeader component
|
|
56
56
|
* @returns {JSX.Element} PageHeader component
|
|
57
57
|
*/
|
|
58
|
-
export declare const PageHeader: ({ className, dataTestId, action, showLoading, description, link, title, tag, backTo, tagColor, children, tabsList, linkText, }: PageHeaderProps) => JSX.Element;
|
|
58
|
+
export declare const PageHeader: ({ className, dataTestId, action, showLoading, description, link, title, tag, backTo, tagColor, children, tabsList, linkText, }: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface PaginationProps {
|
|
3
2
|
/**
|
|
4
3
|
* A go to previous page handler
|
|
@@ -59,4 +58,4 @@ export interface PaginationProps {
|
|
|
59
58
|
* @param {PaginationProps} props - The props for the Pagination component
|
|
60
59
|
* @returns {JSX.Element} Pagination component
|
|
61
60
|
*/
|
|
62
|
-
export declare const Pagination: ({ previousPage, nextPage, canPreviousPage, canNextPage, pageCount, pageIndex, loading, className, dataTestId, getTranslatedCount, onPageChange, cursorBase, }: PaginationProps) => JSX.Element;
|
|
61
|
+
export declare const Pagination: ({ previousPage, nextPage, canPreviousPage, canNextPage, pageCount, pageIndex, loading, className, dataTestId, getTranslatedCount, onPageChange, cursorBase, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PopoverProps, UsePopoverType } from "./PopoverTypes";
|
|
3
2
|
export type ContextType = UsePopoverType | null;
|
|
4
3
|
/**
|
|
@@ -23,4 +22,4 @@ export declare const usePopoverContext: () => UsePopoverType;
|
|
|
23
22
|
*/
|
|
24
23
|
export declare const Popover: ({ children, isModal, ...restOptions }: {
|
|
25
24
|
children: React.ReactNode;
|
|
26
|
-
} & PopoverProps) => JSX.Element;
|
|
25
|
+
} & PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface PopoverContentProps extends Omit<React.HTMLProps<HTMLDivElement
|
|
|
8
8
|
*/
|
|
9
9
|
portalId?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const PopoverContent: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -17,4 +17,4 @@ export interface PopoverTitleProps extends CommonProps {
|
|
|
17
17
|
* @param {PopoverTitleProps} props - The props for the PopoverTitle component
|
|
18
18
|
* @returns {JSX.Element} PopoverTitle component
|
|
19
19
|
*/
|
|
20
|
-
export declare const PopoverTitle: ({ children, action, divider, className, dataTestId }: PopoverTitleProps) => JSX.Element;
|
|
20
|
+
export declare const PopoverTitle: ({ children, action, divider, className, dataTestId }: PopoverTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface PopoverTriggerProps {
|
|
3
2
|
/** Any elements that when clicked should open the popover */
|
|
4
3
|
children: React.ReactNode;
|
|
@@ -8,5 +7,5 @@ interface PopoverTriggerProps {
|
|
|
8
7
|
*/
|
|
9
8
|
renderButton?: boolean;
|
|
10
9
|
}
|
|
11
|
-
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<
|
|
10
|
+
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLProps<HTMLElement> & PopoverTriggerProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
12
11
|
export {};
|
|
@@ -54,4 +54,4 @@ export interface SidebarProps extends CommonProps {
|
|
|
54
54
|
* @param {SidebarProps} props - The props for the Sidebar component
|
|
55
55
|
* @returns {JSX.Element} Sidebar component
|
|
56
56
|
*/
|
|
57
|
-
export declare const Sidebar: ({ childContainerClassName, children, breakpoint, className, dataTestId, moreMenuProps, menuListProps, overflowThreshold, }: SidebarProps) => JSX.Element;
|
|
57
|
+
export declare const Sidebar: ({ childContainerClassName, children, breakpoint, className, dataTestId, moreMenuProps, menuListProps, overflowThreshold, }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
2
|
export interface SkeletonLinesProps extends CommonProps {
|
|
4
3
|
/**
|
|
@@ -21,4 +20,4 @@ export interface SkeletonLinesProps extends CommonProps {
|
|
|
21
20
|
/**
|
|
22
21
|
* Display placeholder lines before the data gets loaded to reduce load-time frustration.
|
|
23
22
|
*/
|
|
24
|
-
export declare const SkeletonLines: import("react").MemoExoticComponent<({ margin, lines, height, width, className, dataTestId }: SkeletonLinesProps) => JSX.Element>;
|
|
23
|
+
export declare const SkeletonLines: import("react").MemoExoticComponent<({ margin, lines, height, width, className, dataTestId }: SkeletonLinesProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps, Size } from "../../common";
|
|
3
2
|
export interface SpacerProps extends CommonProps {
|
|
4
3
|
/**
|
|
@@ -17,4 +16,4 @@ export interface SpacerProps extends CommonProps {
|
|
|
17
16
|
* @param {SpacerProps} props - The props for the Spacer component
|
|
18
17
|
* @returns {JSX.Element} Spacer component
|
|
19
18
|
*/
|
|
20
|
-
export declare const Spacer: ({ size, border, dataTestId, className }: SpacerProps) => JSX.Element;
|
|
19
|
+
export declare const Spacer: ({ size, border, dataTestId, className }: SpacerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps, Size } from "../../common";
|
|
3
2
|
type Centering = "horizontally" | "vertically" | "centered";
|
|
4
3
|
export interface SpinnerProps extends CommonProps {
|
|
@@ -35,5 +34,5 @@ export interface SpinnerProps extends CommonProps {
|
|
|
35
34
|
* @param {SpinnerProps} props - The props for the Spinner component
|
|
36
35
|
* @returns {JSX.Element} Spinner component
|
|
37
36
|
*/
|
|
38
|
-
export declare const Spinner: ({ mode, size, centering, className, containerClassName, dataTestId, }: SpinnerProps) => JSX.Element;
|
|
37
|
+
export declare const Spinner: ({ mode, size, centering, className, containerClassName, dataTestId, }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
38
|
export {};
|
|
@@ -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) => JSX.Element;
|
|
46
|
+
export declare const Tab: ({ value, isFullWidth, iconName, dataTestId, className, children, suffix, asChild, appendTabStylesToChildIfAsChild, ...rest }: TabProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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) => JSX.Element;
|
|
14
|
+
export declare const TabContent: ({ className, dataTestId, children, ...rest }: TabContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,4 +18,4 @@ export interface TabListProps extends TabsListProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* Wrapper for radix tab list component.
|
|
20
20
|
*/
|
|
21
|
-
export declare const TabList: ({ className, dataTestId, children, ...rest }: TabListProps) => JSX.Element;
|
|
21
|
+
export declare const TabList: ({ className, dataTestId, children, ...rest }: TabListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,4 +25,4 @@ export interface TabsProps extends TabsRootProps {
|
|
|
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) => JSX.Element;
|
|
28
|
+
export declare const Tabs: ({ children, forceRender, className, dataTestId, fullWidth, ...rest }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
2
|
export interface TimelineProps extends CommonProps {
|
|
4
3
|
children: React.ReactNode;
|
|
@@ -12,7 +11,7 @@ export interface TimelineProps extends CommonProps {
|
|
|
12
11
|
* @param {TimelineProps} props - The props for the Timeline component
|
|
13
12
|
* @returns {JSX.Element} Timeline component
|
|
14
13
|
*/
|
|
15
|
-
export declare const Timeline: ({ className, dataTestId, children }: TimelineProps) => JSX.Element;
|
|
14
|
+
export declare const Timeline: ({ className, dataTestId, children }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
15
|
interface TimeLineElementProps extends CommonProps {
|
|
17
16
|
date: Date;
|
|
18
17
|
showTime?: boolean;
|
|
@@ -28,5 +27,5 @@ interface TimeLineElementProps extends CommonProps {
|
|
|
28
27
|
* @param {TimeLineElementProps} props the props
|
|
29
28
|
* @returns {JSX.Element} component
|
|
30
29
|
*/
|
|
31
|
-
export declare const TimelineElement: ({ date, showTime, children, className, dataTestId, dot, header, onClick, }: TimeLineElementProps) => JSX.Element;
|
|
30
|
+
export declare const TimelineElement: ({ date, showTime, children, className, dataTestId, dot, header, onClick, }: TimeLineElementProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
31
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { VariantProps } from "@trackunit/css-class-variance-utilities";
|
|
3
2
|
import { IconName } from "@trackunit/ui-icons";
|
|
4
3
|
import { CommonProps } from "../../common/CommonProps";
|
|
@@ -62,7 +61,7 @@ export interface ToggleGroupProps extends CommonProps, Omit<VariantProps<typeof
|
|
|
62
61
|
* @param {ToggleGroupProps} props - The props for the ToggleGroup component
|
|
63
62
|
* @returns {JSX.Element} ToggleGroup component
|
|
64
63
|
*/
|
|
65
|
-
export declare const ToggleGroup: ({ list, selected, setSelected, onClick, disabled, size, isIconOnly, className, dataTestId, }: ToggleGroupProps) => JSX.Element;
|
|
64
|
+
export declare const ToggleGroup: ({ list, selected, setSelected, onClick, disabled, size, isIconOnly, className, dataTestId, }: ToggleGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
65
|
export interface ToggleItemProps extends CommonProps, Omit<BasicToggleGroupListProps, "id"> {
|
|
67
66
|
onClick: () => void;
|
|
68
67
|
disabled: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps, Size } from "../../common";
|
|
3
2
|
import { LevelColors } from "./ValueBarTypes";
|
|
4
3
|
type ValueBarSize = Extract<Size, "small" | "large">;
|
|
@@ -42,5 +41,5 @@ export interface ValueBarProps extends CommonProps {
|
|
|
42
41
|
* @param {ValueBarProps} props - The props for the ValueBar component
|
|
43
42
|
* @returns {JSX.Element} ValueBar component
|
|
44
43
|
*/
|
|
45
|
-
export declare const ValueBar: ({ value, min, max, unit, size, levelColors, valueColor, showValue, className, dataTestId, }: ValueBarProps) => JSX.Element;
|
|
44
|
+
export declare const ValueBar: ({ value, min, max, unit, size, levelColors, valueColor, showValue, className, dataTestId, }: ValueBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
45
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { VariantProps } from "@trackunit/css-class-variance-utilities";
|
|
3
2
|
import { RelayPagination } from "@trackunit/react-table-pagination";
|
|
4
3
|
import { CommonProps } from "../../common/CommonProps";
|
|
@@ -26,5 +25,5 @@ export interface VirtualizedListProps extends CommonProps {
|
|
|
26
25
|
* @property {loadingIndicator} [loadingIndicator="spinner"] - The type of loading indicator in the list.
|
|
27
26
|
* @property {skeletonLinesHeight} [skeletonLinesHeight="2rem"] - The height of the skeleton lines.
|
|
28
27
|
*/
|
|
29
|
-
export declare const VirtualizedList: ({ count, rowHeight, pagination, children, className, dataTestId, separator, loadingIndicator, skeletonLinesHeight, onRowClick, }: VirtualizedListProps) => JSX.Element;
|
|
28
|
+
export declare const VirtualizedList: ({ count, rowHeight, pagination, children, className, dataTestId, separator, loadingIndicator, skeletonLinesHeight, onRowClick, }: VirtualizedListProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
29
|
export {};
|
|
@@ -22,4 +22,4 @@ export interface WidgetBodyProps extends CommonProps {
|
|
|
22
22
|
* @param {WidgetBodyProps} props - The props for the WidgetBody component
|
|
23
23
|
* @returns {JSX.Element} WidgetBody component
|
|
24
24
|
*/
|
|
25
|
-
export declare const WidgetBody: ({ density, children, dataTestId, className, disableGap }: WidgetBodyProps) => JSX.Element;
|
|
25
|
+
export declare const WidgetBody: ({ density, children, dataTestId, className, disableGap }: WidgetBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps, Size } from "../../../common";
|
|
3
2
|
export type BackToTopColor = "primary" | "secondary";
|
|
4
3
|
export interface StyledBackToTopProps {
|
|
@@ -12,4 +11,4 @@ export interface BackToTopProps extends CommonProps {
|
|
|
12
11
|
* BackToTopButton appears at the bottom-right corner of the screen when the user scrolls down the page. When clicked, the page scrolls smoothly to the top.
|
|
13
12
|
|
|
14
13
|
*/
|
|
15
|
-
export declare const BackToTopButton: ({ color, size, dataTestId, className }: BackToTopProps) => JSX.Element;
|
|
14
|
+
export declare const BackToTopButton: ({ color, size, dataTestId, className }: BackToTopProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,5 +9,5 @@ interface StarButtonProps {
|
|
|
9
9
|
* @param {StarButtonProps} props - The props for the StarButton component
|
|
10
10
|
* @returns {JSX.Element} StarButton component
|
|
11
11
|
*/
|
|
12
|
-
export declare const StarButton: ({ starred, onClick }: StarButtonProps) => JSX.Element;
|
|
12
|
+
export declare const StarButton: ({ starred, onClick }: StarButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { GeneralColors } from "@trackunit/ui-design-tokens";
|
|
3
2
|
import { CommonProps, Size } from "../../../common";
|
|
4
3
|
export type ButtonVariant = Extract<GeneralColors, "primary" | "secondary"> | "primary-danger" | "secondary-danger" | "ghost" | "ghost-neutral";
|