@trackunit/react-components 0.0.53 → 0.0.56-abo-fuel-consumption-rest-api.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/CommonProps.d.ts +0 -4
- package/common/useContainerProps.d.ts +4 -4
- package/components/{alert → Alert}/Alert.d.ts +0 -16
- package/components/{alert → Alert}/index.d.ts +0 -0
- package/components/{badge → Badge}/Badge.d.ts +3 -31
- package/components/{badge → Badge}/index.d.ts +0 -0
- package/components/{baseInput → BaseInput}/BaseInput.d.ts +0 -16
- package/components/{baseInput → BaseInput}/index.d.ts +0 -0
- package/components/{card → Card}/Card.d.ts +0 -4
- package/components/{card → Card}/CardBody.d.ts +0 -0
- package/components/{card → Card}/CardFooter.d.ts +0 -0
- package/components/{card → Card}/CardHeader.d.ts +1 -1
- package/components/{card → Card}/DensityContainer.d.ts +0 -6
- package/components/{card → Card}/index.d.ts +0 -0
- package/components/{chart → Chart}/Chart.d.ts +3 -31
- package/components/{chart → Chart}/index.d.ts +0 -0
- package/components/{checkbox → Checkbox}/CheckIcon.d.ts +0 -0
- package/components/{checkbox → Checkbox}/Checkbox.d.ts +0 -12
- package/components/{checkbox → Checkbox}/IndeterminateIcon.d.ts +0 -0
- package/components/{checkbox → Checkbox}/index.d.ts +0 -0
- package/components/{collapse → Collapse}/Collapse.d.ts +0 -8
- package/components/{collapse → Collapse}/index.d.ts +0 -0
- package/components/{copyableText → CopyableText}/CopyableText.d.ts +0 -6
- package/components/{copyableText → CopyableText}/index.d.ts +0 -0
- package/components/{dateField → DateField}/DateField.d.ts +1 -13
- package/components/{dateField → DateField}/index.d.ts +0 -0
- package/components/{dayPicker → DayPicker}/DayPicker.d.ts +0 -0
- package/components/{dayPicker → DayPicker}/DayPickerPopover.d.ts +1 -1
- package/components/{dayPicker → DayPicker}/DayRangePicker.d.ts +0 -0
- package/components/{dayPicker → DayPicker}/index.d.ts +0 -0
- package/components/{dayPicker → DayPicker}/useLocale.d.ts +0 -0
- package/components/{formGroup → FormGroup}/FormGroup.d.ts +0 -10
- package/components/{heading → Heading}/Heading.d.ts +0 -8
- package/components/{heading → Heading}/index.d.ts +0 -0
- package/components/{icon → Icon}/Icon.d.ts +7 -9
- package/components/{indicator → Indicator}/Indicator.d.ts +0 -0
- package/components/{indicator → Indicator}/index.d.ts +0 -0
- package/components/{label → Label}/Label.d.ts +0 -8
- package/components/{label → Label}/index.d.ts +0 -0
- package/components/{legendItem → LegendItem}/LegendItem.d.ts +0 -0
- package/components/{legendItem → LegendItem}/index.d.ts +0 -0
- package/components/{menu → Menu}/MenuButton.d.ts +0 -0
- package/components/{menu → Menu}/MenuItem.d.ts +3 -13
- package/components/{menu → Menu}/MenuList.d.ts +6 -12
- package/components/{menu → Menu}/index.d.ts +0 -0
- package/components/{modal → Modal}/Modal.d.ts +0 -10
- package/components/{modal → Modal}/ModalBackdrop.d.ts +0 -0
- package/components/{modal → Modal}/index.d.ts +0 -0
- package/components/{modal → Modal}/useModal.d.ts +0 -0
- package/components/{multiRowTableCell → MultiRowTableCell}/MultiRowTableCell.d.ts +3 -9
- package/components/{multiRowTableCell → MultiRowTableCell}/index.d.ts +0 -0
- package/components/NumberField/NumberField.d.ts +1 -3
- package/components/NumberInput/NumberInput.d.ts +1 -1
- package/components/{pageHeading → PageHeading}/PageHeading.d.ts +0 -6
- package/components/{pageHeading → PageHeading}/index.d.ts +0 -0
- package/components/{popover → Popover}/AnimatedPopover.d.ts +0 -0
- package/components/{popover → Popover}/PopoverList.d.ts +0 -0
- package/components/{popover → Popover}/PopoverListItem.d.ts +0 -0
- package/components/{popover → Popover}/PopoverTitle.d.ts +0 -0
- package/components/{popover → Popover}/index.d.ts +0 -0
- package/components/{popover → Popover}/usePopover.d.ts +0 -0
- package/components/{prompt → Prompt}/Prompt.d.ts +3 -3
- package/components/{prompt → Prompt}/index.d.ts +0 -0
- package/components/{radioGroup → RadioGroup}/RadioGroup.d.ts +0 -16
- package/components/{radioGroup → RadioGroup}/RadioGroupContext.d.ts +0 -0
- package/components/{radioGroup → RadioGroup}/RadioItem.d.ts +0 -4
- package/components/{radioGroup → RadioGroup}/index.d.ts +0 -0
- package/components/{select → Select}/CreatableSelect.d.ts +0 -0
- package/components/{select → Select}/FieldContainer.d.ts +0 -0
- package/components/{select → Select}/Select.d.ts +0 -0
- package/components/{select → Select}/index.d.ts +0 -0
- package/components/{select → Select}/shared.d.ts +0 -18
- package/components/{skeletonLines → SkeletonLines}/SkeletonLines.d.ts +2 -12
- package/components/{skeletonLines → SkeletonLines}/index.d.ts +0 -0
- package/components/{spacer → Spacer}/Spacer.d.ts +0 -4
- package/components/{spacer → Spacer}/index.d.ts +0 -0
- package/components/{spinner → Spinner}/Spinner.d.ts +0 -0
- package/components/{spinner → Spinner}/index.d.ts +0 -0
- package/components/Tag/Tag.d.ts +44 -0
- package/components/Tag/index.d.ts +1 -0
- package/components/{text → Text}/Text.d.ts +0 -20
- package/components/{text → Text}/index.d.ts +0 -0
- package/components/{textArea → TextArea}/TextArea.d.ts +0 -0
- package/components/{textArea → TextArea}/index.d.ts +0 -0
- package/components/{textField → TextField}/TextField.d.ts +1 -5
- package/components/{textField → TextField}/TextLenghtIndicator.d.ts +0 -0
- package/components/{textField → TextField}/index.d.ts +0 -0
- package/components/TextInput/TextInput.d.ts +1 -1
- package/components/{tip → Tip}/Tip.d.ts +2 -4
- package/components/{tip → Tip}/index.d.ts +0 -0
- package/components/{toggle → Toggle}/Toggle.d.ts +0 -0
- package/components/{toggle → Toggle}/index.d.ts +0 -0
- package/components/{tooltip → Tooltip}/Tooltip.d.ts +2 -20
- package/components/{tooltip → Tooltip}/index.d.ts +0 -0
- package/components/buttons/{button → Button}/Button.d.ts +0 -12
- package/components/buttons/{icon-button → IconButton}/IconButton.d.ts +0 -6
- package/components/buttons/{star-button → StarButton}/StarButton.d.ts +0 -0
- package/components/buttons/index.d.ts +3 -3
- package/components/buttons/shared/ButtonProps.d.ts +0 -14
- package/components/buttons/shared/helpers.d.ts +1 -1
- package/components/index.d.ts +34 -33
- package/index.js +121 -52
- package/layout/helper/MinTopFullContentLayout.d.ts +3 -3
- package/layout/responsive/FilterListMapLayout.d.ts +3 -3
- package/layout/responsive/FullWidthRepeatingLayout.d.ts +3 -3
- package/layout/responsive/IntrinsicallyResponsiveGrid.d.ts +3 -3
- package/package.json +5 -5
package/common/CommonProps.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
export interface CommonProps {
|
|
2
2
|
/**
|
|
3
3
|
* A custom class name to be attached to root element
|
|
4
|
-
*
|
|
5
|
-
* @memberof CommonProps
|
|
6
4
|
*/
|
|
7
5
|
className?: string;
|
|
8
6
|
/**
|
|
9
7
|
* A id that can be used in tests to get the component
|
|
10
|
-
*
|
|
11
|
-
* @memberof CommonProps
|
|
12
8
|
*/
|
|
13
9
|
dataTestId?: string;
|
|
14
10
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface UseContainerProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
dataTestId?: string;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Utility for common props on containers.
|
|
7
7
|
*
|
|
8
|
-
* @param {
|
|
8
|
+
* @param {UseContainerProps} ContainerProps - Props for the utility
|
|
9
9
|
* @param {string} ContainerProps.className - Optional custom className
|
|
10
10
|
* @param {string} ContainerProps.dataTestId - Optional custom data-TestId
|
|
11
|
-
* @returns {
|
|
11
|
+
* @returns {UseContainerProps} - Object with undefined values removed
|
|
12
12
|
*/
|
|
13
|
-
export declare const useContainerProps: ({ className, dataTestId }:
|
|
13
|
+
export declare const useContainerProps: ({ className, dataTestId }: UseContainerProps) => {
|
|
14
14
|
className: string | undefined;
|
|
15
15
|
"data-testid": string | undefined;
|
|
16
16
|
};
|
|
@@ -10,52 +10,36 @@ export declare type AlertAction = {
|
|
|
10
10
|
export interface AlertProps extends CommonProps {
|
|
11
11
|
/**
|
|
12
12
|
* Child nodes.
|
|
13
|
-
*
|
|
14
|
-
* @memberof AlertProps
|
|
15
13
|
*/
|
|
16
14
|
children: React.ReactNode;
|
|
17
15
|
/**
|
|
18
16
|
* Intent of the alert component.
|
|
19
|
-
*
|
|
20
|
-
* @memberof AlertProps
|
|
21
17
|
*/
|
|
22
18
|
intent?: AlertIntent;
|
|
23
19
|
/**
|
|
24
20
|
* Title of the alert component.
|
|
25
|
-
*
|
|
26
|
-
* @memberof AlertProps
|
|
27
21
|
*/
|
|
28
22
|
title?: string;
|
|
29
23
|
/**
|
|
30
24
|
* Action to be performed on clicking the primary button.
|
|
31
|
-
*
|
|
32
|
-
* @memberof AlertProps
|
|
33
25
|
*/
|
|
34
26
|
primaryAction?: AlertAction;
|
|
35
27
|
/**
|
|
36
28
|
* Action to be performed on clicking the secondary button.
|
|
37
|
-
*
|
|
38
|
-
* @memberof AlertProps
|
|
39
29
|
*/
|
|
40
30
|
secondaryAction?: AlertAction;
|
|
41
31
|
/**
|
|
42
32
|
* OnClose Event.
|
|
43
|
-
*
|
|
44
|
-
* @memberof AlertProps
|
|
45
33
|
*/
|
|
46
34
|
onClose?: () => void;
|
|
47
35
|
/**
|
|
48
36
|
* Whether the contents should be displayed inline or not.
|
|
49
|
-
*
|
|
50
|
-
* @memberof AlertProps
|
|
51
37
|
*/
|
|
52
38
|
inline?: boolean;
|
|
53
39
|
/**
|
|
54
40
|
* A prop to enable autoscroll to alert element
|
|
55
41
|
*
|
|
56
42
|
* could be used for displaying errors on long scrollable forms
|
|
57
|
-
*
|
|
58
|
-
* @memberof AlertProps
|
|
59
43
|
*/
|
|
60
44
|
autoScroll?: boolean;
|
|
61
45
|
}
|
|
File without changes
|
|
@@ -2,67 +2,39 @@ import * as React from "react";
|
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
3
|
import { Colors } from "../../constants/colors";
|
|
4
4
|
export declare type BadgeSize = "default" | "large";
|
|
5
|
-
declare type BadgeVariant = "badge" | "pill"
|
|
6
|
-
interface TagProps extends BaseBadgeProps {
|
|
7
|
-
/**
|
|
8
|
-
* The name of the variant.
|
|
9
|
-
*
|
|
10
|
-
* @memberof TagProps
|
|
11
|
-
*/
|
|
12
|
-
variant: "tag";
|
|
13
|
-
/**
|
|
14
|
-
* A handler for a click event triggered on x icon
|
|
15
|
-
* if not passed then x icon won't be visible
|
|
16
|
-
*
|
|
17
|
-
* @memberof TagProps
|
|
18
|
-
*/
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
}
|
|
5
|
+
declare type BadgeVariant = "badge" | "pill";
|
|
21
6
|
interface BaseBadgeProps extends CommonProps {
|
|
22
7
|
/**
|
|
23
8
|
* The color of the badge.
|
|
24
|
-
*
|
|
25
|
-
* @memberof BadgeProps
|
|
26
9
|
*/
|
|
27
10
|
color?: Colors;
|
|
28
11
|
/**
|
|
29
12
|
* Specifies whether the badge is subtle or not.
|
|
30
13
|
* Subtle badges have a light background color wither a darker text color.
|
|
31
|
-
*
|
|
32
|
-
* @memberof BadgeProps
|
|
33
14
|
*/
|
|
34
15
|
subtle?: boolean;
|
|
35
16
|
/**
|
|
36
|
-
* Whether badge should be displayed as a pill
|
|
17
|
+
* Whether badge should be displayed as a pill or badge.
|
|
37
18
|
* For the pill variant, numeric values above 99 will be displayed as 99+.
|
|
38
|
-
* Tag will display x icon if you provide onClose handler.
|
|
39
19
|
* Badge is subtle by default.
|
|
40
|
-
*
|
|
41
|
-
* @memberof BadgeProps
|
|
42
20
|
*/
|
|
43
21
|
variant?: BadgeVariant;
|
|
44
22
|
/**
|
|
45
23
|
* Custom classNames can be added to make adjustments where needed.
|
|
46
24
|
* Example: Set a maximum width of the badge by adding the className "max-w-[your-max-width]" or similar tailwind max-w class.
|
|
47
25
|
* This will make the badge truncate the text if it is too long.
|
|
48
|
-
*
|
|
49
|
-
* @memberof BadgeProps
|
|
50
26
|
*/
|
|
51
27
|
className?: string;
|
|
52
28
|
/**
|
|
53
29
|
* Child nodes of the Badge.
|
|
54
|
-
*
|
|
55
|
-
* @memberof BadgeProps
|
|
56
30
|
*/
|
|
57
31
|
children?: React.ReactNode;
|
|
58
32
|
/**
|
|
59
33
|
* Size of the badge.
|
|
60
|
-
*
|
|
61
|
-
* @memberof BadgeProps
|
|
62
34
|
*/
|
|
63
35
|
size?: BadgeSize;
|
|
64
36
|
}
|
|
65
|
-
export declare type BadgeProps = BaseBadgeProps
|
|
37
|
+
export declare type BadgeProps = BaseBadgeProps;
|
|
66
38
|
/**
|
|
67
39
|
* The Badge component us used to display states or similar short informative text.
|
|
68
40
|
*
|
|
File without changes
|
|
@@ -7,58 +7,42 @@ export interface BaseInputProps extends FilteredInputProps, CommonProps {
|
|
|
7
7
|
* An React element to render before the text in the input.
|
|
8
8
|
* This is typically used to render an icon.
|
|
9
9
|
* For other elements than icons, please concider using the addonBefore prop.
|
|
10
|
-
*
|
|
11
|
-
* @memberof BaseInputProps
|
|
12
10
|
*/
|
|
13
11
|
prefix?: React.ReactNode;
|
|
14
12
|
/**
|
|
15
13
|
* An React element to render after the text in the input.
|
|
16
14
|
* This is typically used to render an icon.
|
|
17
15
|
* For other elements than icons, please concider using the addonAfter prop.
|
|
18
|
-
*
|
|
19
|
-
* @memberof BaseInputProps
|
|
20
16
|
*/
|
|
21
17
|
suffix?: React.ReactNode;
|
|
22
18
|
/**
|
|
23
19
|
* An React element to render in a seperate container before the text in the input.
|
|
24
20
|
* This is typically used to render text.
|
|
25
21
|
* For icons, please concider using the prefix prop.
|
|
26
|
-
*
|
|
27
|
-
* @memberof BaseInputProps
|
|
28
22
|
*/
|
|
29
23
|
addonBefore?: React.ReactNode;
|
|
30
24
|
/**
|
|
31
25
|
* An React element to render in a seperate container after the text in the input.
|
|
32
26
|
* This is typically used to render text.
|
|
33
27
|
* For icons, please concider using the suffix prop.
|
|
34
|
-
*
|
|
35
|
-
* @memberof BaseInputProps
|
|
36
28
|
*/
|
|
37
29
|
addonAfter?: React.ReactNode;
|
|
38
30
|
/**
|
|
39
31
|
* An ReactNode to render at the end of the input field befire the addonAfter.
|
|
40
32
|
* Mainly meant for the icon button actions for special input types.
|
|
41
|
-
*
|
|
42
|
-
* @memberof BaseInputProps
|
|
43
33
|
*/
|
|
44
34
|
actions?: React.ReactNode;
|
|
45
35
|
/**
|
|
46
36
|
* The size of the input.
|
|
47
37
|
* Default == 40px, Small == 32px.
|
|
48
|
-
*
|
|
49
|
-
* @memberof BaseInputProps
|
|
50
38
|
*/
|
|
51
39
|
fieldSize?: FieldSize;
|
|
52
40
|
/**
|
|
53
41
|
* If ture the field is rendered in its invalid state.
|
|
54
|
-
*
|
|
55
|
-
* @memberof BaseInputProps
|
|
56
42
|
*/
|
|
57
43
|
isInvalid?: boolean;
|
|
58
44
|
/**
|
|
59
45
|
* The Placeholder text for the input.
|
|
60
|
-
*
|
|
61
|
-
* @memberof BaseInputProps
|
|
62
46
|
*/
|
|
63
47
|
placeholder?: string;
|
|
64
48
|
}
|
|
File without changes
|
|
@@ -9,14 +9,10 @@ export interface CardProps extends CommonProps {
|
|
|
9
9
|
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
10
10
|
/**
|
|
11
11
|
* Whether the card should have full height or not.
|
|
12
|
-
*
|
|
13
|
-
* @memberof CardProps
|
|
14
12
|
*/
|
|
15
13
|
fullHeight?: boolean;
|
|
16
14
|
/**
|
|
17
15
|
* Whether the card should overflow contents.
|
|
18
|
-
*
|
|
19
|
-
* @memberof CardProps
|
|
20
16
|
*/
|
|
21
17
|
overflow?: Overflow;
|
|
22
18
|
/**
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CommonProps, Density } from "../../common/CommonProps";
|
|
3
|
-
import { HeadingVariant } from "../
|
|
3
|
+
import { HeadingVariant } from "../Heading/Heading";
|
|
4
4
|
interface CardHeaderProps extends CommonProps {
|
|
5
5
|
/** The text to show in the modal main heading */
|
|
6
6
|
heading: string;
|
|
@@ -6,20 +6,14 @@ interface ContainerProps extends CommonProps {
|
|
|
6
6
|
* "compact" = 12px gap and padding.
|
|
7
7
|
* "comfortable" = 16px gap and padding.
|
|
8
8
|
* "spacious" = 16px gap, 26px padding.
|
|
9
|
-
*
|
|
10
|
-
* @memberof ContainerProps
|
|
11
9
|
*/
|
|
12
10
|
$density?: Density;
|
|
13
11
|
/**
|
|
14
12
|
* Set gap to be 0px (not preferable)
|
|
15
|
-
*
|
|
16
|
-
* @memberof ContainerProps
|
|
17
13
|
*/
|
|
18
14
|
$disableGap?: boolean;
|
|
19
15
|
/**
|
|
20
16
|
* The flex direction of the Card. Defaults to "column".
|
|
21
|
-
*
|
|
22
|
-
* @memberof ContainerProps
|
|
23
17
|
*/
|
|
24
18
|
$direction?: "row" | "row-reverse" | "column" | "column-reverse";
|
|
25
19
|
children?: React.ReactNode;
|
|
File without changes
|
|
@@ -2,91 +2,63 @@ import * as React from "react";
|
|
|
2
2
|
export interface IOptionsType {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface ChartProps {
|
|
6
6
|
/**
|
|
7
7
|
* Option values for EChart.
|
|
8
|
-
*
|
|
9
|
-
* @memberof IChartProps
|
|
10
8
|
*/
|
|
11
9
|
options: IOptionsType;
|
|
12
10
|
/**
|
|
13
11
|
* Whether or not to low the preloader.
|
|
14
|
-
*
|
|
15
|
-
* @memberof IChartProps
|
|
16
12
|
*/
|
|
17
13
|
showLoading?: boolean;
|
|
18
14
|
/**
|
|
19
15
|
* onClick event.
|
|
20
|
-
*
|
|
21
|
-
* @memberof IChartProps
|
|
22
16
|
*/
|
|
23
17
|
onClick?: (event: any) => void;
|
|
24
18
|
/**
|
|
25
19
|
* onDataZoom event.
|
|
26
|
-
*
|
|
27
|
-
* @memberof IChartProps
|
|
28
20
|
*/
|
|
29
21
|
onDataZoom?: (event: any) => void;
|
|
30
22
|
/**
|
|
31
23
|
* onBrush event.
|
|
32
|
-
*
|
|
33
|
-
* @memberof IChartProps
|
|
34
24
|
*/
|
|
35
25
|
onBrush?: (event: any) => void;
|
|
36
26
|
/**
|
|
37
27
|
* Event fired when brush is selected.
|
|
38
|
-
*
|
|
39
|
-
* @memberof IChartProps
|
|
40
28
|
*/
|
|
41
29
|
onBrushSelected?: (event: any) => void;
|
|
42
30
|
/**
|
|
43
31
|
* Event fired when mouse leaves the chart.
|
|
44
|
-
*
|
|
45
|
-
* @memberof IChartProps
|
|
46
32
|
*/
|
|
47
33
|
mouseLeaveChart?: () => void;
|
|
48
34
|
/**
|
|
49
35
|
* Class values to be passed to the component.
|
|
50
|
-
*
|
|
51
|
-
* @memberof IChartProps
|
|
52
36
|
*/
|
|
53
37
|
className?: string;
|
|
54
38
|
/**
|
|
55
39
|
* CSS styles for the chart.
|
|
56
|
-
*
|
|
57
|
-
* @memberof IChartProps
|
|
58
40
|
*/
|
|
59
41
|
style?: Record<string, string | number>;
|
|
60
42
|
/**
|
|
61
43
|
* To denote of chart is ready or not.
|
|
62
|
-
*
|
|
63
|
-
* @memberof IChartProps
|
|
64
44
|
*/
|
|
65
45
|
onChartReady?: (chart: any) => void;
|
|
66
46
|
/**
|
|
67
47
|
* Whether to merge with previous option.
|
|
68
|
-
*
|
|
69
|
-
* @memberof IChartProps
|
|
70
48
|
*/
|
|
71
49
|
merge?: boolean;
|
|
72
50
|
/**
|
|
73
51
|
* Values for the loading component.
|
|
74
|
-
*
|
|
75
|
-
* @memberof IChartProps
|
|
76
52
|
*/
|
|
77
53
|
loadingOption?: {
|
|
78
54
|
text: string;
|
|
79
55
|
};
|
|
80
56
|
/**
|
|
81
57
|
* Time-zone label.
|
|
82
|
-
*
|
|
83
|
-
* @memberof IChartProps
|
|
84
58
|
*/
|
|
85
59
|
timezoneLabel?: React.ReactNode;
|
|
86
60
|
/**
|
|
87
61
|
* Type of rendered used. Either "svg" or "canvas".
|
|
88
|
-
*
|
|
89
|
-
* @memberof IChartProps
|
|
90
62
|
*/
|
|
91
63
|
renderer?: "svg" | "canvas";
|
|
92
64
|
}
|
|
@@ -94,7 +66,7 @@ export interface IChartProps {
|
|
|
94
66
|
* The Chart component is a wrapper component for ECharts.
|
|
95
67
|
* Handles events and click functionality.
|
|
96
68
|
*
|
|
97
|
-
* @param {
|
|
69
|
+
* @param {ChartProps} props - The props for the Chart component
|
|
98
70
|
* @returns {JSX.Element} Chart component
|
|
99
71
|
*/
|
|
100
|
-
export declare const Chart: ({ options, showLoading, className, style, onChartReady, onClick, onDataZoom, onBrush, onBrushSelected, mouseLeaveChart, merge, loadingOption, timezoneLabel, renderer, }:
|
|
72
|
+
export declare const Chart: ({ options, showLoading, className, style, onChartReady, onClick, onDataZoom, onBrush, onBrushSelected, mouseLeaveChart, merge, loadingOption, timezoneLabel, renderer, }: ChartProps) => JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -3,39 +3,27 @@ import { CommonProps } from "../../common/CommonProps";
|
|
|
3
3
|
export interface CheckboxProps extends CommonProps, React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
/**
|
|
5
5
|
* A string element to be displayed as a label
|
|
6
|
-
*
|
|
7
|
-
* @memberof CheckboxProps
|
|
8
6
|
*/
|
|
9
7
|
label?: React.ReactNode;
|
|
10
8
|
/**
|
|
11
9
|
* An boolean flag to set checkbox to disabled state
|
|
12
|
-
*
|
|
13
|
-
* @memberof CheckboxProps
|
|
14
10
|
*/
|
|
15
11
|
disabled?: boolean;
|
|
16
12
|
/**
|
|
17
13
|
* An boolean flag to set invalid mode
|
|
18
14
|
* can be used for handling errors
|
|
19
|
-
*
|
|
20
|
-
* @memberof CheckboxProps
|
|
21
15
|
*/
|
|
22
16
|
isInvalid?: boolean;
|
|
23
17
|
/**
|
|
24
18
|
* An boolean flag to set checkbox to readonly mode
|
|
25
|
-
*
|
|
26
|
-
* @memberof CheckboxProps
|
|
27
19
|
*/
|
|
28
20
|
readOnly?: boolean;
|
|
29
21
|
/**
|
|
30
22
|
* An string element to be used as input name
|
|
31
|
-
*
|
|
32
|
-
* @memberof CheckboxProps
|
|
33
23
|
*/
|
|
34
24
|
name?: string;
|
|
35
25
|
/**
|
|
36
26
|
* An boolean flag to set checkbox to intermediate state
|
|
37
|
-
*
|
|
38
|
-
* @memberof CheckboxProps
|
|
39
27
|
*/
|
|
40
28
|
indeterminate?: boolean;
|
|
41
29
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -4,26 +4,18 @@ export interface CollapseProps extends CommonProps {
|
|
|
4
4
|
id: string;
|
|
5
5
|
/**
|
|
6
6
|
* Expands the collapse component during initialization.
|
|
7
|
-
*
|
|
8
|
-
* @memberof CollapseProps
|
|
9
7
|
*/
|
|
10
8
|
initialExpanded?: boolean;
|
|
11
9
|
/**
|
|
12
10
|
* onToggle event.
|
|
13
|
-
*
|
|
14
|
-
* @memberof CollapseProps
|
|
15
11
|
*/
|
|
16
12
|
onToggle?: (event: React.MouseEvent<HTMLDivElement>, expanded: boolean) => void;
|
|
17
13
|
/**
|
|
18
14
|
* Child nodes.
|
|
19
|
-
*
|
|
20
|
-
* @memberof CollapseProps
|
|
21
15
|
*/
|
|
22
16
|
children: React.ReactNode;
|
|
23
17
|
/**
|
|
24
18
|
* Label to be displayed.
|
|
25
|
-
*
|
|
26
|
-
* @memberof CollapseProps
|
|
27
19
|
*/
|
|
28
20
|
label: React.ReactNode;
|
|
29
21
|
}
|
|
File without changes
|
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
interface CopyableTextProps {
|
|
3
3
|
/**
|
|
4
4
|
* The text to be displayed.
|
|
5
|
-
*
|
|
6
|
-
* @memberof CopyableTextProps
|
|
7
5
|
*/
|
|
8
6
|
text?: string;
|
|
9
7
|
/**
|
|
10
8
|
* Alternative text to be displayed.
|
|
11
|
-
*
|
|
12
|
-
* @memberof CopyableTextProps
|
|
13
9
|
*/
|
|
14
10
|
alternativeText?: string;
|
|
15
11
|
/**
|
|
16
12
|
* ID of the component to be used while testing.
|
|
17
|
-
*
|
|
18
|
-
* @memberof CopyableTextProps
|
|
19
13
|
*/
|
|
20
14
|
dataTestId?: string;
|
|
21
15
|
}
|
|
File without changes
|
|
@@ -1,41 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Matcher } from "react-day-picker";
|
|
3
|
-
import { BaseInputProps } from "../
|
|
3
|
+
import { BaseInputProps } from "../BaseInput";
|
|
4
4
|
export interface DateFieldProps extends Pick<BaseInputProps, "placeholder" | "id" | "dataTestId" | "onChange"> {
|
|
5
5
|
/**
|
|
6
6
|
* A text label to be displayed next to the indicator
|
|
7
|
-
*
|
|
8
|
-
* @memberof DateFieldProps
|
|
9
7
|
*/
|
|
10
8
|
label?: string;
|
|
11
9
|
/**
|
|
12
10
|
* A text to be displayed under the input with a short description of field purpose
|
|
13
|
-
*
|
|
14
|
-
* @memberof DateFieldProps
|
|
15
11
|
*/
|
|
16
12
|
description?: string;
|
|
17
13
|
/**
|
|
18
14
|
* A default value to be displayed by a input field
|
|
19
|
-
*
|
|
20
|
-
* @memberof DateFieldProps
|
|
21
15
|
*/
|
|
22
16
|
defaultValue?: string;
|
|
23
17
|
/**
|
|
24
18
|
* A flag that can be used to disable the input, default value is false
|
|
25
|
-
*
|
|
26
|
-
* @memberof DateFieldProps
|
|
27
19
|
*/
|
|
28
20
|
disabled?: boolean;
|
|
29
21
|
/**
|
|
30
22
|
* Specification of dates not allowed to be selected - i the form of react-day-picker matcher
|
|
31
|
-
*
|
|
32
|
-
* @memberof DateFieldProps
|
|
33
23
|
*/
|
|
34
24
|
disabledDays?: Matcher | Matcher[] | undefined;
|
|
35
25
|
/**
|
|
36
26
|
* A flag that can be set to true to disallow the user to deselect a date. (if false the user can click the selected date to deselect)
|
|
37
|
-
*
|
|
38
|
-
* @memberof DateFieldProps
|
|
39
27
|
*/
|
|
40
28
|
preventDeselect?: boolean;
|
|
41
29
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Matcher } from "react-day-picker";
|
|
3
3
|
import { ButtonIntent, ButtonSize } from "../buttons";
|
|
4
|
-
import { PopoverPlacement } from "../
|
|
4
|
+
import { PopoverPlacement } from "../Popover";
|
|
5
5
|
export interface DayPickerPopoverProps {
|
|
6
6
|
disabledDays?: Matcher | Matcher[] | undefined;
|
|
7
7
|
className?: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,33 +3,23 @@ import { CommonProps } from "../../common";
|
|
|
3
3
|
export interface FormGroupProps extends CommonProps {
|
|
4
4
|
/**
|
|
5
5
|
* The label for the form group.
|
|
6
|
-
*
|
|
7
|
-
* @memberof FormGroupProps
|
|
8
6
|
*/
|
|
9
7
|
label: string | React.ReactNode;
|
|
10
8
|
/**
|
|
11
9
|
* Content to display in the tooltip when hovering the ? icon next to the label.
|
|
12
|
-
*
|
|
13
|
-
* @memberof FormGroupProps
|
|
14
10
|
*/
|
|
15
11
|
tip?: string | React.ReactNode;
|
|
16
12
|
/**
|
|
17
13
|
* A string to display under the input element to help the user understand the input.
|
|
18
|
-
*
|
|
19
|
-
* @memberof FormGroupProps
|
|
20
14
|
*/
|
|
21
15
|
helpText?: string;
|
|
22
16
|
/**
|
|
23
17
|
* An addon element to render to the right under the input element.
|
|
24
18
|
* Used for displaying maxLength etc.
|
|
25
|
-
*
|
|
26
|
-
* @memberof FormGroupProps
|
|
27
19
|
*/
|
|
28
20
|
helpAddon?: string | React.ReactNode;
|
|
29
21
|
/**
|
|
30
22
|
* If true the input is rendered in its invalid state.
|
|
31
|
-
*
|
|
32
|
-
* @memberof FormGroupProps
|
|
33
23
|
*/
|
|
34
24
|
isInvalid?: boolean;
|
|
35
25
|
children?: React.ReactNode;
|
|
@@ -4,26 +4,18 @@ export declare type HeadingVariant = "primary" | "secondary" | "tertiary" | "sub
|
|
|
4
4
|
export interface HeadingProps extends CommonProps {
|
|
5
5
|
/**
|
|
6
6
|
* Child Nodes.
|
|
7
|
-
*
|
|
8
|
-
* @memberof HeadingProps
|
|
9
7
|
*/
|
|
10
8
|
children: React.ReactNode;
|
|
11
9
|
/**
|
|
12
10
|
* Size of heading.
|
|
13
|
-
*
|
|
14
|
-
* @memberof HeadingProps
|
|
15
11
|
*/
|
|
16
12
|
variant: HeadingVariant;
|
|
17
13
|
/**
|
|
18
14
|
* Whether the heading uses inverted styles or not.
|
|
19
|
-
*
|
|
20
|
-
* @memberof HeadingProps
|
|
21
15
|
*/
|
|
22
16
|
inverted?: boolean;
|
|
23
17
|
/**
|
|
24
18
|
* Whether the heading is a subtitle or not.
|
|
25
|
-
*
|
|
26
|
-
* @memberof HeadingProps
|
|
27
19
|
*/
|
|
28
20
|
subtle?: boolean;
|
|
29
21
|
}
|
|
File without changes
|
|
@@ -6,16 +6,12 @@ export interface IconProps extends CommonProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* The name of the icon to be rendered.
|
|
8
8
|
* HeroIconName and TrackunitIconName are supported.
|
|
9
|
-
*
|
|
10
|
-
* @memberof IconProps
|
|
11
9
|
*/
|
|
12
10
|
name: TrackunitIconName | HeroIconName;
|
|
13
11
|
/**
|
|
14
12
|
* The color of the icon.
|
|
15
13
|
* Supports any colors from the theme.
|
|
16
14
|
* Custom colors can be used by setting a text color in the className.
|
|
17
|
-
*
|
|
18
|
-
* @memberof IconProps
|
|
19
15
|
*/
|
|
20
16
|
color?: Colors;
|
|
21
17
|
/**
|
|
@@ -23,16 +19,12 @@ export interface IconProps extends CommonProps {
|
|
|
23
19
|
* Small = 16x16px, Normal = 20x20px, Large = 24x24px.
|
|
24
20
|
* Default value is Large.
|
|
25
21
|
* If a custom size is needed, set it in the className.
|
|
26
|
-
*
|
|
27
|
-
* @memberof IconProps
|
|
28
22
|
*/
|
|
29
23
|
size?: "small" | "normal" | "large";
|
|
30
24
|
/**
|
|
31
25
|
* Select if the icon should be rendered as solid or outline.
|
|
32
26
|
* Default value depends on the Size prop, small == solid, normal == solid, large == outline.
|
|
33
27
|
* Trackunit icons might not support both outline and Solid.
|
|
34
|
-
*
|
|
35
|
-
* @memberof IconProps
|
|
36
28
|
*/
|
|
37
29
|
type?: "solid" | "outline";
|
|
38
30
|
onClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
@@ -41,6 +33,12 @@ export interface IconProps extends CommonProps {
|
|
|
41
33
|
*/
|
|
42
34
|
fillColor?: string;
|
|
43
35
|
forwardedRef?: React.RefObject<HTMLSpanElement>;
|
|
36
|
+
/**
|
|
37
|
+
* Custom styles object used to override existing styles or add some extra styling
|
|
38
|
+
*
|
|
39
|
+
* @memberof IconProps
|
|
40
|
+
*/
|
|
41
|
+
style?: Record<string, string>;
|
|
44
42
|
}
|
|
45
43
|
/**
|
|
46
44
|
* The Icon component is ued to display an Icon.
|
|
@@ -48,4 +46,4 @@ export interface IconProps extends CommonProps {
|
|
|
48
46
|
* @param {IconProps} props - The props for the Icon component
|
|
49
47
|
* @returns {JSX.Element} Icon component
|
|
50
48
|
*/
|
|
51
|
-
export declare const Icon: ({ name, size, className, dataTestId, color, onClick, fillColor, type, forwardedRef, }: IconProps) => JSX.Element | null;
|
|
49
|
+
export declare const Icon: ({ name, size, className, dataTestId, color, onClick, fillColor, type, style, forwardedRef, }: IconProps) => JSX.Element | null;
|
|
File without changes
|
|
File without changes
|