@trackunit/react-components 0.1.116 → 0.1.119

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.
Files changed (128) hide show
  1. package/index.cjs +38907 -2449
  2. package/index.js +38914 -2455
  3. package/package.json +7 -7
  4. package/src/common/CommonProps.d.ts +12 -12
  5. package/src/common/StorybookProps.d.ts +6 -6
  6. package/src/common/index.d.ts +3 -3
  7. package/src/common/useContainerProps.d.ts +16 -16
  8. package/src/components/Alert/Alert.d.ts +53 -53
  9. package/src/components/Alert/Alert.variants.d.ts +18 -18
  10. package/src/components/Alert/index.d.ts +1 -1
  11. package/src/components/Badge/Badge.d.ts +38 -38
  12. package/src/components/Badge/Badge.variants.d.ts +3 -3
  13. package/src/components/Badge/index.d.ts +1 -1
  14. package/src/components/Card/Card.d.ts +39 -39
  15. package/src/components/Card/Card.variants.d.ts +13 -13
  16. package/src/components/Card/CardBody.d.ts +25 -25
  17. package/src/components/Card/CardFooter.d.ts +25 -25
  18. package/src/components/Card/CardHeader.d.ts +47 -47
  19. package/src/components/Card/DensityContainer.d.ts +30 -30
  20. package/src/components/Card/index.d.ts +5 -5
  21. package/src/components/Clickable/Clickable.variants.d.ts +3 -3
  22. package/src/components/Collapse/Collapse.d.ts +28 -28
  23. package/src/components/Collapse/Collapse.variants.d.ts +8 -8
  24. package/src/components/Collapse/index.d.ts +1 -1
  25. package/src/components/CopyableText/CopyableText.d.ts +21 -21
  26. package/src/components/CopyableText/CopyableText.variants.d.ts +3 -3
  27. package/src/components/CopyableText/index.d.ts +1 -1
  28. package/src/components/DayPicker/DayPicker.d.ts +32 -32
  29. package/src/components/DayPicker/DayPickerPopover.d.ts +22 -22
  30. package/src/components/DayPicker/DayRangePicker.d.ts +33 -33
  31. package/src/components/DayPicker/index.d.ts +21 -21
  32. package/src/components/DayPicker/useLocale.d.ts +8 -8
  33. package/src/components/Drawer/Drawer.d.ts +32 -32
  34. package/src/components/Drawer/Drawer.variants.d.ts +4 -4
  35. package/src/components/ExternalLink/ExternalLink.d.ts +31 -31
  36. package/src/components/Heading/Heading.d.ts +28 -28
  37. package/src/components/Heading/Heading.variants.d.ts +5 -5
  38. package/src/components/Heading/index.d.ts +1 -1
  39. package/src/components/Icon/Icon.d.ts +52 -52
  40. package/src/components/Icon/Icon.variants.d.ts +8 -8
  41. package/src/components/Indicator/Indicator.d.ts +42 -42
  42. package/src/components/Indicator/Indicator.variants.d.ts +10 -10
  43. package/src/components/Indicator/index.d.ts +1 -1
  44. package/src/components/Menu/MenuItem/MenuItem.d.ts +65 -65
  45. package/src/components/Menu/MenuList/MenuList.d.ts +36 -36
  46. package/src/components/Menu/MoreMenu/MoreMenu.d.ts +24 -24
  47. package/src/components/Menu/index.d.ts +3 -3
  48. package/src/components/Modal/Modal.d.ts +30 -30
  49. package/src/components/Modal/ModalBackdrop.d.ts +13 -13
  50. package/src/components/Modal/index.d.ts +3 -3
  51. package/src/components/Modal/useModal.d.ts +21 -21
  52. package/src/components/PageHeader/PageHeader.d.ts +47 -47
  53. package/src/components/PageHeader/PageHeader.variants.d.ts +5 -5
  54. package/src/components/PageHeader/index.d.ts +1 -1
  55. package/src/components/Pagination/Pagination.d.ts +62 -62
  56. package/src/components/Pagination/Pagination.variants.d.ts +2 -2
  57. package/src/components/Popover/Popover.d.ts +72 -72
  58. package/src/components/Popover/Popover.variants.d.ts +5 -5
  59. package/src/components/Popover/PopoverContent.d.ts +7 -7
  60. package/src/components/Popover/PopoverTitle.d.ts +20 -20
  61. package/src/components/Popover/PopoverTrigger.d.ts +12 -12
  62. package/src/components/Popover/PopoverTypes.d.ts +33 -33
  63. package/src/components/Popover/index.d.ts +5 -5
  64. package/src/components/Popover/usePopover.d.ts +56 -56
  65. package/src/components/Prompt/Prompt.d.ts +20 -20
  66. package/src/components/Prompt/index.d.ts +1 -1
  67. package/src/components/SectionHeader/SectionHeader.d.ts +23 -23
  68. package/src/components/SectionHeader/index.d.ts +1 -1
  69. package/src/components/Sidebar/Sidebar.d.ts +57 -57
  70. package/src/components/Sidebar/Sidebar.variants.d.ts +4 -4
  71. package/src/components/Sidebar/useOverflowItems.d.ts +39 -39
  72. package/src/components/SkeletonLines/SkeletonLines.d.ts +25 -25
  73. package/src/components/SkeletonLines/SkeletonLines.variants.d.ts +1 -1
  74. package/src/components/SkeletonLines/index.d.ts +1 -1
  75. package/src/components/Spacer/Spacer.d.ts +20 -20
  76. package/src/components/Spacer/Spacer.variants.d.ts +4 -4
  77. package/src/components/Spacer/index.d.ts +1 -1
  78. package/src/components/Spinner/Spinner.d.ts +39 -39
  79. package/src/components/Spinner/Spinner.variants.d.ts +7 -7
  80. package/src/components/Spinner/index.d.ts +1 -1
  81. package/src/components/Tag/Tag.d.ts +40 -40
  82. package/src/components/Tag/Tag.variants.d.ts +7 -7
  83. package/src/components/Tag/index.d.ts +1 -1
  84. package/src/components/Text/Text.d.ts +58 -58
  85. package/src/components/Text/index.d.ts +1 -1
  86. package/src/components/Timeline/Timeline.d.ts +33 -33
  87. package/src/components/Timeline/Timeline.variants.d.ts +3 -3
  88. package/src/components/Tip/Tip.d.ts +26 -26
  89. package/src/components/Tip/Tip.variants.d.ts +4 -4
  90. package/src/components/Tip/index.d.ts +1 -1
  91. package/src/components/Tooltip/Tooltip.d.ts +37 -37
  92. package/src/components/Tooltip/Tooltip.variants.d.ts +6 -6
  93. package/src/components/Tooltip/index.d.ts +1 -1
  94. package/src/components/ValueBar/ValueBar.d.ts +44 -44
  95. package/src/components/ValueBar/ValueBar.variants.d.ts +9 -9
  96. package/src/components/ValueBar/ValueBarHelper.d.ts +35 -35
  97. package/src/components/ValueBar/ValueBarTypes.d.ts +9 -9
  98. package/src/components/ValueBar/index.d.ts +3 -3
  99. package/src/components/buttons/BackToTopButton/BackToTopButton.d.ts +14 -14
  100. package/src/components/buttons/BackToTopButton/BackToTopButton.variants.d.ts +3 -3
  101. package/src/components/buttons/Button/Button.d.ts +44 -44
  102. package/src/components/buttons/IconButton/IconButton.d.ts +20 -20
  103. package/src/components/buttons/StarButton/StarButton.d.ts +13 -13
  104. package/src/components/buttons/index.d.ts +4 -4
  105. package/src/components/buttons/shared/Button.variants.d.ts +13 -13
  106. package/src/components/buttons/shared/ButtonProps.d.ts +48 -48
  107. package/src/components/index.d.ts +30 -30
  108. package/src/hooks/index.d.ts +9 -9
  109. package/src/hooks/useClickOutside.d.ts +12 -12
  110. package/src/hooks/useDebounce.d.ts +13 -13
  111. package/src/hooks/useDevicePixelRatio.d.ts +37 -37
  112. package/src/hooks/useHover.d.ts +24 -24
  113. package/src/hooks/useIsFirstRender.d.ts +6 -6
  114. package/src/hooks/useLocalStorage.d.ts +9 -9
  115. package/src/hooks/useLocalStorageReducer.d.ts +7 -7
  116. package/src/hooks/useResize.d.ts +10 -10
  117. package/src/hooks/useTimeout.d.ts +11 -11
  118. package/src/index.d.ts +7 -7
  119. package/src/layout/helper/MinTopFullContentLayout.d.ts +18 -18
  120. package/src/layout/index.d.ts +6 -7
  121. package/src/layout/responsive/FilterListMapLayout.d.ts +15 -22
  122. package/src/layout/responsive/FullWidthRepeatingLayout.d.ts +19 -19
  123. package/src/layout/responsive/GridArea.d.ts +13 -13
  124. package/src/layout/responsive/IntrinsicallyResponsiveGrid.d.ts +32 -32
  125. package/src/layout/responsive/TitleNavContentLayout.d.ts +28 -28
  126. package/src/test-utils/hooks.d.ts +4 -4
  127. package/src/test-utils/test-utils.d.ts +5 -5
  128. package/src/layout/responsive/TwoColumnLayout.d.ts +0 -12
@@ -1,20 +1,20 @@
1
- /// <reference types="react" />
2
- import { CommonProps, Size } from "../../common";
3
- export interface SpacerProps extends CommonProps {
4
- /**
5
- * The minimum height of the spacer. Defaults to 1px.
6
- * Possible values are "normal"(8px), and "large" (32px).
7
- */
8
- size?: Size;
9
- /**
10
- * The border of the spacer.
11
- */
12
- border?: boolean;
13
- }
14
- /**
15
- * The Spacer component is used for adding a bit of space in the ui.
16
- *
17
- * @param {SpacerProps} props - The props for the Spacer component
18
- * @returns {JSX.Element} Spacer component
19
- */
20
- export declare const Spacer: ({ size, border, dataTestId, className }: SpacerProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { CommonProps, Size } from "../../common";
3
+ export interface SpacerProps extends CommonProps {
4
+ /**
5
+ * The minimum height of the spacer. Defaults to 1px.
6
+ * Possible values are "normal"(8px), and "large" (32px).
7
+ */
8
+ size?: Size;
9
+ /**
10
+ * The border of the spacer.
11
+ */
12
+ border?: boolean;
13
+ }
14
+ /**
15
+ * The Spacer component is used for adding a bit of space in the ui.
16
+ *
17
+ * @param {SpacerProps} props - The props for the Spacer component
18
+ * @returns {JSX.Element} Spacer component
19
+ */
20
+ export declare const Spacer: ({ size, border, dataTestId, className }: SpacerProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const cvaSpacer: (props?: ({
2
- border?: boolean | null | undefined;
3
- size?: "small" | "medium" | "large" | null | undefined;
4
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
1
+ export declare const cvaSpacer: (props?: ({
2
+ border?: boolean | null | undefined;
3
+ size?: "small" | "medium" | "large" | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- export * from "./Spacer";
1
+ export * from "./Spacer";
@@ -1,39 +1,39 @@
1
- /// <reference types="react" />
2
- import { CommonProps, Size } from "../../common/CommonProps";
3
- type Centering = "horizontally" | "vertically" | "centered";
4
- export interface SpinnerProps extends CommonProps {
5
- /**
6
- * Defines the size of the spinner.
7
- */
8
- size?: Size;
9
- /**
10
- * When true, the spinner will be centered in the parent element using css grid.
11
- */
12
- centering?: Centering;
13
- /**
14
- * Select either "light" or "dark" mode.
15
- * Use "dark" when the spinner is used on a dark background.
16
- */
17
- mode?: "light" | "dark";
18
- /**
19
- * Add custom className to the spinners container element.
20
- * Useful for sizing to minimize jumping on load.
21
- */
22
- containerClassName?: string;
23
- }
24
- /**
25
- * The spinner component provides visual feedback that data is being processed.
26
- *
27
- * Spinners are used when performing actions. They notify to the user that their request is being processed. Although they do not provide details about what is occurring on the back-end, they reassure the user that their action is being processed.
28
- *
29
- * Common actions that benefit from spinners include any create, update, or delete actions that may have a lot of data to process. It can be used in a table, after a primary or secondary button click, or even in a modal.
30
- *
31
- * Use a spinner component for any action that cannot be performed instantly and will only require a short time (between 1 to 5 seconds) to process.
32
- *
33
- * Use when retrieving or refreshing small data amounts, such as status.
34
- *
35
- * @param {SpinnerProps} props - The props for the Spinner component
36
- * @returns {JSX.Element} Spinner component
37
- */
38
- export declare const Spinner: ({ mode, size, centering, className, containerClassName, dataTestId, }: SpinnerProps) => JSX.Element;
39
- export {};
1
+ /// <reference types="react" />
2
+ import { CommonProps, Size } from "../../common/CommonProps";
3
+ type Centering = "horizontally" | "vertically" | "centered";
4
+ export interface SpinnerProps extends CommonProps {
5
+ /**
6
+ * Defines the size of the spinner.
7
+ */
8
+ size?: Size;
9
+ /**
10
+ * When true, the spinner will be centered in the parent element using css grid.
11
+ */
12
+ centering?: Centering;
13
+ /**
14
+ * Select either "light" or "dark" mode.
15
+ * Use "dark" when the spinner is used on a dark background.
16
+ */
17
+ mode?: "light" | "dark";
18
+ /**
19
+ * Add custom className to the spinners container element.
20
+ * Useful for sizing to minimize jumping on load.
21
+ */
22
+ containerClassName?: string;
23
+ }
24
+ /**
25
+ * The spinner component provides visual feedback that data is being processed.
26
+ *
27
+ * Spinners are used when performing actions. They notify to the user that their request is being processed. Although they do not provide details about what is occurring on the back-end, they reassure the user that their action is being processed.
28
+ *
29
+ * Common actions that benefit from spinners include any create, update, or delete actions that may have a lot of data to process. It can be used in a table, after a primary or secondary button click, or even in a modal.
30
+ *
31
+ * Use a spinner component for any action that cannot be performed instantly and will only require a short time (between 1 to 5 seconds) to process.
32
+ *
33
+ * Use when retrieving or refreshing small data amounts, such as status.
34
+ *
35
+ * @param {SpinnerProps} props - The props for the Spinner component
36
+ * @returns {JSX.Element} Spinner component
37
+ */
38
+ export declare const Spinner: ({ mode, size, centering, className, containerClassName, dataTestId, }: SpinnerProps) => JSX.Element;
39
+ export {};
@@ -1,7 +1,7 @@
1
- export declare const cvaSpinner: (props?: ({
2
- size?: "small" | "medium" | "large" | null | undefined;
3
- mode?: "dark" | "light" | null | undefined;
4
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
- export declare const cvaSpinnerContainer: (props?: ({
6
- centering?: "centered" | "vertically" | "horizontally" | null | undefined;
7
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
1
+ export declare const cvaSpinner: (props?: ({
2
+ size?: "small" | "medium" | "large" | null | undefined;
3
+ mode?: "dark" | "light" | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ export declare const cvaSpinnerContainer: (props?: ({
6
+ centering?: "centered" | "vertically" | "horizontally" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- export * from "./Spinner";
1
+ export * from "./Spinner";
@@ -1,40 +1,40 @@
1
- import { ActivityColors, CriticalityColors, GeneralColors, IntentColors } from "@trackunit/ui-design-tokens";
2
- import * as React from "react";
3
- import { CommonProps } from "../../common/CommonProps";
4
- export type TagSize = "small" | "medium";
5
- export type TagColors = IntentColors | GeneralColors | CriticalityColors | ActivityColors;
6
- export interface TagProps extends CommonProps {
7
- /**
8
- * The color of the tag.
9
- *
10
- */
11
- color?: TagColors;
12
- /**
13
- * A handler for a click event triggered on X icon.
14
- * If not passed then x icon won't be visible.
15
- *
16
- */
17
- onClose?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
18
- /**
19
- * Child nodes of the tag.
20
- *
21
- */
22
- children?: React.ReactNode;
23
- /**
24
- * Size of the tag.
25
- */
26
- size?: TagSize;
27
- }
28
- /**
29
- * The tag component is used to categorize elements in the ui.
30
- *
31
- * This could be to tell the state of an asset, or label a page as Beta.
32
- *
33
- * The tag is also used in multiselect components to show selected options.
34
- *
35
- * **Do:** Use short labels for easy scanning.
36
- *
37
- * @param {TagProps} props - The props for the tag component
38
- * @returns {JSX.Element} tag component
39
- */
40
- export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLElement>>;
1
+ import { ActivityColors, CriticalityColors, GeneralColors, IntentColors } from "@trackunit/ui-design-tokens";
2
+ import * as React from "react";
3
+ import { CommonProps } from "../../common/CommonProps";
4
+ export type TagSize = "small" | "medium";
5
+ export type TagColors = IntentColors | GeneralColors | CriticalityColors | ActivityColors;
6
+ export interface TagProps extends CommonProps {
7
+ /**
8
+ * The color of the tag.
9
+ *
10
+ */
11
+ color?: TagColors;
12
+ /**
13
+ * A handler for a click event triggered on X icon.
14
+ * If not passed then x icon won't be visible.
15
+ *
16
+ */
17
+ onClose?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
18
+ /**
19
+ * Child nodes of the tag.
20
+ *
21
+ */
22
+ children?: React.ReactNode;
23
+ /**
24
+ * Size of the tag.
25
+ */
26
+ size?: TagSize;
27
+ }
28
+ /**
29
+ * The tag component is used to categorize elements in the ui.
30
+ *
31
+ * This could be to tell the state of an asset, or label a page as Beta.
32
+ *
33
+ * The tag is also used in multiselect components to show selected options.
34
+ *
35
+ * **Do:** Use short labels for easy scanning.
36
+ *
37
+ * @param {TagProps} props - The props for the tag component
38
+ * @returns {JSX.Element} tag component
39
+ */
40
+ export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLElement>>;
@@ -1,7 +1,7 @@
1
- export declare const cvaTag: (props?: ({
2
- size?: "small" | "medium" | null | undefined;
3
- layout?: "withIcon" | "default" | null | undefined;
4
- color?: "primary" | "secondary" | "accent" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
- export declare const cvaTagIconContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
7
- export declare const cvaTagIcon: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
1
+ export declare const cvaTag: (props?: ({
2
+ size?: "small" | "medium" | null | undefined;
3
+ layout?: "withIcon" | "default" | null | undefined;
4
+ color?: "primary" | "secondary" | "accent" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ export declare const cvaTagIconContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
7
+ export declare const cvaTagIcon: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
@@ -1 +1 @@
1
- export * from "./Tag";
1
+ export * from "./Tag";
@@ -1,58 +1,58 @@
1
- import * as React from "react";
2
- import { CommonProps, Size } from "../../common/CommonProps";
3
- export type TextType = "p" | "span" | "div";
4
- export type TextAlign = "left" | "center" | "right";
5
- export type TextWeight = "normal" | "thick" | "bold";
6
- export interface TextProps extends CommonProps {
7
- /**
8
- * Child nodes.
9
- */
10
- children: React.ReactNode;
11
- /**
12
- * Type of element. Element can be of types "p", "span", or "div".
13
- */
14
- type?: TextType;
15
- /**
16
- * Size of element. Values can be "small", "medium", or "large".
17
- */
18
- size?: Size;
19
- /**
20
- * Alignment of the text. Values can be "left", "center", or "right".
21
- */
22
- align?: TextAlign;
23
- /**
24
- * Weight of the text. Values can be "normal", "thick", or "bold".
25
- */
26
- weight?: TextWeight;
27
- /**
28
- * Whether font styles are inverted.
29
- */
30
- inverted?: boolean;
31
- /**
32
- * Whether font styles are subtle or not.
33
- */
34
- subtle?: boolean;
35
- /**
36
- * Whether text is italicized.
37
- */
38
- italicize?: boolean;
39
- /**
40
- * Whether text is uppercase.
41
- */
42
- uppercase?: boolean;
43
- /**
44
- * Whether text is underlined or not.
45
- */
46
- underline?: boolean;
47
- }
48
- /**
49
- * The Text component is used to apply Trackunit default typography styles to text.
50
- *
51
- * ### When to use
52
- *
53
- * Use Text when you want to show a text section, use Heading if you want to show a heading.
54
- *
55
- * @param {TextProps} props - The props for the Text component
56
- * @returns {JSX.Element} Text component
57
- */
58
- export declare const Text: ({ children, type, size, align, weight, underline, inverted, subtle, italicize, uppercase, className, dataTestId, }: TextProps) => JSX.Element;
1
+ import * as React from "react";
2
+ import { CommonProps, Size } from "../../common/CommonProps";
3
+ export type TextType = "p" | "span" | "div";
4
+ export type TextAlign = "left" | "center" | "right";
5
+ export type TextWeight = "normal" | "thick" | "bold";
6
+ export interface TextProps extends CommonProps {
7
+ /**
8
+ * Child nodes.
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * Type of element. Element can be of types "p", "span", or "div".
13
+ */
14
+ type?: TextType;
15
+ /**
16
+ * Size of element. Values can be "small", "medium", or "large".
17
+ */
18
+ size?: Size;
19
+ /**
20
+ * Alignment of the text. Values can be "left", "center", or "right".
21
+ */
22
+ align?: TextAlign;
23
+ /**
24
+ * Weight of the text. Values can be "normal", "thick", or "bold".
25
+ */
26
+ weight?: TextWeight;
27
+ /**
28
+ * Whether font styles are inverted.
29
+ */
30
+ inverted?: boolean;
31
+ /**
32
+ * Whether font styles are subtle or not.
33
+ */
34
+ subtle?: boolean;
35
+ /**
36
+ * Whether text is italicized.
37
+ */
38
+ italicize?: boolean;
39
+ /**
40
+ * Whether text is uppercase.
41
+ */
42
+ uppercase?: boolean;
43
+ /**
44
+ * Whether text is underlined or not.
45
+ */
46
+ underline?: boolean;
47
+ }
48
+ /**
49
+ * The Text component is used to apply Trackunit default typography styles to text.
50
+ *
51
+ * ### When to use
52
+ *
53
+ * Use Text when you want to show a text section, use Heading if you want to show a heading.
54
+ *
55
+ * @param {TextProps} props - The props for the Text component
56
+ * @returns {JSX.Element} Text component
57
+ */
58
+ export declare const Text: ({ children, type, size, align, weight, underline, inverted, subtle, italicize, uppercase, className, dataTestId, }: TextProps) => JSX.Element;
@@ -1 +1 @@
1
- export * from "./Text";
1
+ export * from "./Text";
@@ -1,33 +1,33 @@
1
- /// <reference types="react" />
2
- import { CommonProps } from "../../common/CommonProps";
3
- export interface TimelineProps extends CommonProps {
4
- children: React.ReactNode;
5
- }
6
- /**
7
- * Timeline - used to contain TimelineElements for building a sequence of timed entries - each rendered on a line
8
- * - with an indicator (dot)
9
- * - a header (next to the dot)
10
- * - and a body.
11
- *
12
- * @param {TimelineProps} props - The props for the Timeline component
13
- * @returns {JSX.Element} Timeline component
14
- */
15
- export declare const Timeline: ({ className, dataTestId, children }: TimelineProps) => JSX.Element;
16
- interface TimeLineElementProps extends CommonProps {
17
- date: Date;
18
- showTime?: boolean;
19
- header?: React.ReactNode;
20
- children: React.ReactNode;
21
- dot?: React.ReactNode;
22
- onClick?: () => void;
23
- headerClassName?: string;
24
- }
25
- /**
26
- * TimelineElement - entry on a timeline - rendered with an icon on the timeline
27
- * - a date as the header and the children provided as body.
28
- *
29
- * @param {TimeLineElementProps} props the props
30
- * @returns {JSX.Element} component
31
- */
32
- export declare const TimelineElement: ({ date, showTime, children, className, dataTestId, headerClassName, dot, header, onClick, }: TimeLineElementProps) => JSX.Element;
33
- export {};
1
+ /// <reference types="react" />
2
+ import { CommonProps } from "../../common/CommonProps";
3
+ export interface TimelineProps extends CommonProps {
4
+ children: React.ReactNode;
5
+ }
6
+ /**
7
+ * Timeline - used to contain TimelineElements for building a sequence of timed entries - each rendered on a line
8
+ * - with an indicator (dot)
9
+ * - a header (next to the dot)
10
+ * - and a body.
11
+ *
12
+ * @param {TimelineProps} props - The props for the Timeline component
13
+ * @returns {JSX.Element} Timeline component
14
+ */
15
+ export declare const Timeline: ({ className, dataTestId, children }: TimelineProps) => JSX.Element;
16
+ interface TimeLineElementProps extends CommonProps {
17
+ date: Date;
18
+ showTime?: boolean;
19
+ header?: React.ReactNode;
20
+ children: React.ReactNode;
21
+ dot?: React.ReactNode;
22
+ onClick?: () => void;
23
+ headerClassName?: string;
24
+ }
25
+ /**
26
+ * TimelineElement - entry on a timeline - rendered with an icon on the timeline
27
+ * - a date as the header and the children provided as body.
28
+ *
29
+ * @param {TimeLineElementProps} props the props
30
+ * @returns {JSX.Element} component
31
+ */
32
+ export declare const TimelineElement: ({ date, showTime, children, className, dataTestId, headerClassName, dot, header, onClick, }: TimeLineElementProps) => JSX.Element;
33
+ export {};
@@ -1,3 +1,3 @@
1
- export declare const cvaTimeline: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
- export declare const cvaTimelineElement: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
- export declare const cvaTimelineDot: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
1
+ export declare const cvaTimeline: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const cvaTimelineElement: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
+ export declare const cvaTimelineDot: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
@@ -1,26 +1,26 @@
1
- import * as React from "react";
2
- import { CommonProps } from "../../common";
3
- import { IconProps } from "../Icon/Icon";
4
- import { TooltipProps } from "../Tooltip";
5
- export interface TipProps extends CommonProps, Pick<TooltipProps, "placement" | "mode"> {
6
- /**
7
- * Child nodes to render inside the tip.
8
- */
9
- children: React.ReactNode | string;
10
- /**
11
- * The props for setting the icon on this tip.
12
- */
13
- iconProps?: Partial<IconProps>;
14
- /**
15
- * Shows an icon with link as the href attribute inside the tip.
16
- */
17
- link?: string;
18
- }
19
- /**
20
- * The Tip component is used to show helpful tips or contextual information to the users.
21
- * The tip can optionally be rendered as an anchor tag, which redirects to users to an external link on click.
22
- *
23
- * @param {TipProps} props - The props for the Tip component
24
- * @returns {JSX.Element} Tip component
25
- */
26
- export declare const Tip: ({ children, iconProps, dataTestId, className, placement, mode, link, }: TipProps) => JSX.Element;
1
+ import * as React from "react";
2
+ import { CommonProps } from "../../common";
3
+ import { IconProps } from "../Icon/Icon";
4
+ import { TooltipProps } from "../Tooltip";
5
+ export interface TipProps extends CommonProps, Pick<TooltipProps, "placement" | "mode"> {
6
+ /**
7
+ * Child nodes to render inside the tip.
8
+ */
9
+ children: React.ReactNode | string;
10
+ /**
11
+ * The props for setting the icon on this tip.
12
+ */
13
+ iconProps?: Partial<IconProps>;
14
+ /**
15
+ * Shows an icon with link as the href attribute inside the tip.
16
+ */
17
+ link?: string;
18
+ }
19
+ /**
20
+ * The Tip component is used to show helpful tips or contextual information to the users.
21
+ * The tip can optionally be rendered as an anchor tag, which redirects to users to an external link on click.
22
+ *
23
+ * @param {TipProps} props - The props for the Tip component
24
+ * @returns {JSX.Element} Tip component
25
+ */
26
+ export declare const Tip: ({ children, iconProps, dataTestId, className, placement, mode, link, }: TipProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const cvaTip: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
- export declare const cvaTipContent: (props?: ({
3
- color?: "light" | "dark" | null | undefined;
4
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
1
+ export declare const cvaTip: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const cvaTipContent: (props?: ({
3
+ color?: "light" | "dark" | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- export * from "./Tip";
1
+ export * from "./Tip";
@@ -1,37 +1,37 @@
1
- import * as React from "react";
2
- import { CommonProps } from "../../common";
3
- import { PopoverPlacement } from "../Popover";
4
- import { TextType } from "../Text";
5
- export interface TooltipProps extends CommonProps {
6
- /**
7
- * The text to be displayed in the tooltip.
8
- */
9
- label: string | React.ReactNode;
10
- /**
11
- * Where the tooltip should preferentially be placed.
12
- */
13
- placement?: PopoverPlacement;
14
- /**
15
- * Child nodes
16
- */
17
- children?: React.ReactNode;
18
- /**
19
- * Whether the tooltip is disabled or not.
20
- */
21
- disabled?: boolean;
22
- /**
23
- * To select either "light" or "dark" mode.
24
- */
25
- mode?: "light" | "dark";
26
- /**
27
- * Type of content.
28
- */
29
- contentTextType?: TextType;
30
- }
31
- /**
32
- * The Tooltip component is used to show helpful tips or contextual information to the users.
33
- *
34
- * @param {TooltipProps} props - The props for the Tooltip component
35
- * @returns {JSX.Element} Tooltip component
36
- */
37
- export declare const Tooltip: ({ children, dataTestId, disabled, className, ...rest }: TooltipProps) => JSX.Element;
1
+ import * as React from "react";
2
+ import { CommonProps } from "../../common";
3
+ import { PopoverPlacement } from "../Popover";
4
+ import { TextType } from "../Text";
5
+ export interface TooltipProps extends CommonProps {
6
+ /**
7
+ * The text to be displayed in the tooltip.
8
+ */
9
+ label: string | React.ReactNode;
10
+ /**
11
+ * Where the tooltip should preferentially be placed.
12
+ */
13
+ placement?: PopoverPlacement;
14
+ /**
15
+ * Child nodes
16
+ */
17
+ children?: React.ReactNode;
18
+ /**
19
+ * Whether the tooltip is disabled or not.
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * To select either "light" or "dark" mode.
24
+ */
25
+ mode?: "light" | "dark";
26
+ /**
27
+ * Type of content.
28
+ */
29
+ contentTextType?: TextType;
30
+ }
31
+ /**
32
+ * The Tooltip component is used to show helpful tips or contextual information to the users.
33
+ *
34
+ * @param {TooltipProps} props - The props for the Tooltip component
35
+ * @returns {JSX.Element} Tooltip component
36
+ */
37
+ export declare const Tooltip: ({ children, dataTestId, disabled, className, ...rest }: TooltipProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
- export declare const cvaTooltipFlexContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
- export declare const cvaTooltipPopover: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
- export declare const cvaTooltipContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
4
- export declare const cvaTooltipContent: (props?: ({
5
- color?: "light" | "dark" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
1
+ export declare const cvaTooltipFlexContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const cvaTooltipPopover: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
+ export declare const cvaTooltipContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
4
+ export declare const cvaTooltipContent: (props?: ({
5
+ color?: "light" | "dark" | null | undefined;
6
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- export * from "./Tooltip";
1
+ export * from "./Tooltip";