@trackunit/react-components 0.0.51 → 0.0.54
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 +5 -17
- 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 +0 -8
- package/components/{indicator → Indicator}/Indicator.d.ts +7 -9
- 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 +8 -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 +9 -1
- package/components/{spinner → Spinner}/index.d.ts +0 -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 +8 -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 +33 -33
- package/index.js +51 -16
- 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 +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseInputProps } from "../
|
|
2
|
+
import { BaseInputProps } from "../BaseInput/BaseInput";
|
|
3
3
|
declare type BaseInputExposedProps = Omit<BaseInputProps, "type">;
|
|
4
4
|
export interface TextInputProps extends BaseInputExposedProps {
|
|
5
5
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CommonProps } from "../../common";
|
|
3
|
-
import { IconProps } from "../
|
|
4
|
-
import { TooltipProps } from "../
|
|
3
|
+
import { IconProps } from "../Icon/Icon";
|
|
4
|
+
import { TooltipProps } from "../Tooltip";
|
|
5
5
|
export interface TipProps extends CommonProps {
|
|
6
6
|
/**
|
|
7
7
|
* Child nodes to render inside the tip.
|
|
8
|
-
*
|
|
9
|
-
* @memberof TipProps
|
|
10
8
|
*/
|
|
11
9
|
children: React.ReactNode;
|
|
12
10
|
iconProps?: Partial<IconProps>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,59 +1,41 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { PopoverPlacement } from "../
|
|
3
|
-
import { TextType } from "../
|
|
2
|
+
import { PopoverPlacement } from "../Popover";
|
|
3
|
+
import { TextType } from "../Text";
|
|
4
4
|
export interface TooltipProps {
|
|
5
5
|
/**
|
|
6
6
|
* The text to be displayed in the tooltip.
|
|
7
|
-
*
|
|
8
|
-
* @memberof TooltipProps
|
|
9
7
|
*/
|
|
10
8
|
label: string | React.ReactNode;
|
|
11
9
|
/**
|
|
12
10
|
* Where the tooltip should be placed.
|
|
13
|
-
*
|
|
14
|
-
* @memberof TooltipProps
|
|
15
11
|
*/
|
|
16
12
|
placement?: PopoverPlacement;
|
|
17
13
|
/**
|
|
18
14
|
* Child nodes
|
|
19
|
-
*
|
|
20
|
-
* @memberof TooltipProps
|
|
21
15
|
*/
|
|
22
16
|
children?: React.ReactNode;
|
|
23
17
|
/**
|
|
24
18
|
* Id of test component.
|
|
25
|
-
*
|
|
26
|
-
* @memberof TooltipProps
|
|
27
19
|
*/
|
|
28
20
|
dataTestId?: string;
|
|
29
21
|
/**
|
|
30
22
|
* Whether the tooltip is disabled or not.
|
|
31
|
-
*
|
|
32
|
-
* @memberof TooltipProps
|
|
33
23
|
*/
|
|
34
24
|
disabled?: boolean;
|
|
35
25
|
/**
|
|
36
26
|
* To select either "light" or "dark" mode.
|
|
37
|
-
*
|
|
38
|
-
* @memberof TooltipProps
|
|
39
27
|
*/
|
|
40
28
|
mode?: "light" | "dark";
|
|
41
29
|
/**
|
|
42
30
|
* Offset value of the tooltip.
|
|
43
|
-
*
|
|
44
|
-
* @memberof TooltipProps
|
|
45
31
|
*/
|
|
46
32
|
offset?: [number, number];
|
|
47
33
|
/**
|
|
48
34
|
* Additional classes to the component.
|
|
49
|
-
*
|
|
50
|
-
* @memberof TooltipProps
|
|
51
35
|
*/
|
|
52
36
|
className?: string;
|
|
53
37
|
/**
|
|
54
38
|
* Type of content.
|
|
55
|
-
*
|
|
56
|
-
* @memberof TooltipProps
|
|
57
39
|
*/
|
|
58
40
|
contentTextType?: TextType;
|
|
59
41
|
}
|
|
File without changes
|
|
@@ -11,38 +11,26 @@ export interface ButtonProps extends ButtonCommonProps {
|
|
|
11
11
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
12
12
|
/**
|
|
13
13
|
* Child nodes. Can be used to pass in text to be displayed on the button.
|
|
14
|
-
*
|
|
15
|
-
* @memberof ButtonProps
|
|
16
14
|
*/
|
|
17
15
|
children?: React.ReactNode;
|
|
18
16
|
/**
|
|
19
17
|
* Whether button is fullWidth or not.
|
|
20
|
-
*
|
|
21
|
-
* @memberof ButtonProps
|
|
22
18
|
*/
|
|
23
19
|
fullWidth?: boolean;
|
|
24
20
|
/**
|
|
25
21
|
* The button prefix.
|
|
26
|
-
*
|
|
27
|
-
* @memberof ButtonProps
|
|
28
22
|
*/
|
|
29
23
|
prefix?: React.ReactNode;
|
|
30
24
|
/**
|
|
31
25
|
* The button suffix.
|
|
32
|
-
*
|
|
33
|
-
* @memberof ButtonProps
|
|
34
26
|
*/
|
|
35
27
|
suffix?: React.ReactNode;
|
|
36
28
|
/**
|
|
37
29
|
* The type of the button. Values can be "submit" or "button".
|
|
38
|
-
*
|
|
39
|
-
* @memberof ButtonProps
|
|
40
30
|
*/
|
|
41
31
|
type?: ButtonType;
|
|
42
32
|
/**
|
|
43
33
|
* The element type the button will be rendered as.
|
|
44
|
-
*
|
|
45
|
-
* @memberof ButtonProps
|
|
46
34
|
*/
|
|
47
35
|
renderAs?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
|
|
48
36
|
/**
|
|
@@ -3,14 +3,10 @@ import { ButtonCommonProps, ButtonSize } from "../shared/ButtonProps";
|
|
|
3
3
|
export interface IconButtonProps extends ButtonCommonProps {
|
|
4
4
|
/**
|
|
5
5
|
* The icon to display.
|
|
6
|
-
*
|
|
7
|
-
* @memberof IconButtonProps
|
|
8
6
|
*/
|
|
9
7
|
icon: React.ReactNode;
|
|
10
8
|
/**
|
|
11
9
|
* Whether the button is circular or not.
|
|
12
|
-
*
|
|
13
|
-
* @memberof IconButtonProps
|
|
14
10
|
*/
|
|
15
11
|
circular?: boolean;
|
|
16
12
|
/**
|
|
@@ -22,8 +18,6 @@ export interface IconButtonProps extends ButtonCommonProps {
|
|
|
22
18
|
renderAs?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
|
|
23
19
|
/**
|
|
24
20
|
* The size of the button. Defaults to "small".
|
|
25
|
-
*
|
|
26
|
-
* @memberof IconButtonProps
|
|
27
21
|
*/
|
|
28
22
|
size?: ButtonSize;
|
|
29
23
|
}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./Button/Button";
|
|
2
|
+
export * from "./IconButton/IconButton";
|
|
3
3
|
export * from "./shared/ButtonProps";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./StarButton/StarButton";
|
|
@@ -8,44 +8,30 @@ export interface ButtonCommonProps extends CommonProps {
|
|
|
8
8
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
9
9
|
/**
|
|
10
10
|
* Whether the button is loading.
|
|
11
|
-
*
|
|
12
|
-
* @memberof ButtonCommonProps
|
|
13
11
|
*/
|
|
14
12
|
loading?: boolean;
|
|
15
13
|
/**
|
|
16
14
|
* Whether the button is disabled.
|
|
17
|
-
*
|
|
18
|
-
* @memberof ButtonCommonProps
|
|
19
15
|
*/
|
|
20
16
|
disabled?: boolean;
|
|
21
17
|
/**
|
|
22
18
|
* Button with square aspect ratio.
|
|
23
|
-
*
|
|
24
|
-
* @memberof ButtonCommonProps
|
|
25
19
|
*/
|
|
26
20
|
square?: boolean;
|
|
27
21
|
/**
|
|
28
22
|
* The button's variant. Values are filled, transparent, plain.
|
|
29
|
-
*
|
|
30
|
-
* @memberof ButtonCommonProps
|
|
31
23
|
*/
|
|
32
24
|
intent?: ButtonIntent;
|
|
33
25
|
/**
|
|
34
26
|
* The variant of the button.
|
|
35
|
-
*
|
|
36
|
-
* @memberof ButtonCommonProps
|
|
37
27
|
*/
|
|
38
28
|
variant?: ButtonVariant;
|
|
39
29
|
/**
|
|
40
30
|
* The size of the button.
|
|
41
|
-
*
|
|
42
|
-
* @memberof ButtonCommonProps
|
|
43
31
|
*/
|
|
44
32
|
size?: ButtonSize;
|
|
45
33
|
/**
|
|
46
34
|
* The link to be used for the button.
|
|
47
|
-
*
|
|
48
|
-
* @memberof ButtonCommonProps
|
|
49
35
|
*/
|
|
50
36
|
to?: string;
|
|
51
37
|
title?: string;
|
package/components/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./Alert";
|
|
2
|
+
export * from "./Badge";
|
|
3
|
+
export * from "./BaseInput";
|
|
4
4
|
export * from "./buttons";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
5
|
+
export * from "./Card";
|
|
6
|
+
export * from "./Chart";
|
|
7
|
+
export * from "./Checkbox";
|
|
8
|
+
export * from "./Collapse";
|
|
9
|
+
export * from "./CopyableText";
|
|
10
|
+
export * from "./DateField";
|
|
11
|
+
export * from "./DayPicker";
|
|
12
|
+
export * from "./FormGroup/FormGroup";
|
|
13
|
+
export * from "./Heading";
|
|
14
|
+
export * from "./Icon/Icon";
|
|
15
|
+
export * from "./Indicator";
|
|
16
|
+
export * from "./Label";
|
|
17
|
+
export * from "./LegendItem";
|
|
18
|
+
export * from "./Menu";
|
|
19
|
+
export * from "./Modal";
|
|
20
|
+
export * from "./MultiRowTableCell";
|
|
21
21
|
export * from "./NumberField/NumberField";
|
|
22
22
|
export * from "./NumberInput/NumberInput";
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./
|
|
23
|
+
export * from "./PageHeading";
|
|
24
|
+
export * from "./Popover";
|
|
25
|
+
export * from "./Prompt";
|
|
26
|
+
export * from "./RadioGroup";
|
|
27
|
+
export * from "./Select";
|
|
28
|
+
export * from "./SkeletonLines";
|
|
29
|
+
export * from "./Spacer";
|
|
30
|
+
export * from "./Spinner";
|
|
31
|
+
export * from "./Text";
|
|
32
|
+
export * from "./TextArea";
|
|
33
|
+
export * from "./TextField";
|
|
34
34
|
export * from "./TextInput/TextInput";
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./
|
|
37
|
-
export * from "./
|
|
35
|
+
export * from "./Tip";
|
|
36
|
+
export * from "./Toggle";
|
|
37
|
+
export * from "./Tooltip";
|
package/index.js
CHANGED
|
@@ -28,10 +28,10 @@ const docs = {
|
|
|
28
28
|
/**
|
|
29
29
|
* Utility for common props on containers.
|
|
30
30
|
*
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {UseContainerProps} ContainerProps - Props for the utility
|
|
32
32
|
* @param {string} ContainerProps.className - Optional custom className
|
|
33
33
|
* @param {string} ContainerProps.dataTestId - Optional custom data-TestId
|
|
34
|
-
* @returns {
|
|
34
|
+
* @returns {UseContainerProps} - Object with undefined values removed
|
|
35
35
|
*/
|
|
36
36
|
const useContainerProps = ({
|
|
37
37
|
className,
|
|
@@ -81,7 +81,15 @@ function __rest(s, e) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* The
|
|
84
|
+
* The spinner component provides visual feedback that data is being processed.
|
|
85
|
+
*
|
|
86
|
+
* 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.
|
|
87
|
+
*
|
|
88
|
+
* 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.
|
|
89
|
+
*
|
|
90
|
+
* 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.
|
|
91
|
+
*
|
|
92
|
+
* Use when retrieving or refreshing small data amounts, such as status.
|
|
85
93
|
*
|
|
86
94
|
* @param {SpinnerProps} props - The props for the Spinner component
|
|
87
95
|
* @returns {JSX.Element} Spinner component
|
|
@@ -670,7 +678,8 @@ const Alert = ({
|
|
|
670
678
|
className: className,
|
|
671
679
|
"data-testid": dataTestId,
|
|
672
680
|
"$inline": inline,
|
|
673
|
-
ref: ref
|
|
681
|
+
ref: ref,
|
|
682
|
+
role: "alert"
|
|
674
683
|
}, {
|
|
675
684
|
children: [jsx(IconContainer, Object.assign({
|
|
676
685
|
"$inline": inline
|
|
@@ -754,7 +763,11 @@ const IconContainer = tw.div`
|
|
|
754
763
|
`;
|
|
755
764
|
|
|
756
765
|
/**
|
|
757
|
-
* The Badge component us used to display states or similar short
|
|
766
|
+
* The Badge component us used to display states or similar short informative text.
|
|
767
|
+
*
|
|
768
|
+
* _**Do use** badges to show highlighted text based on the state._
|
|
769
|
+
*
|
|
770
|
+
* _**Do not use** badges for regular text in places where it makes no sense to use highlighted text._
|
|
758
771
|
*
|
|
759
772
|
* @param {BadgeProps} props - The props for the Badge component
|
|
760
773
|
* @returns {JSX.Element} Badge component
|
|
@@ -1288,7 +1301,7 @@ gap-4
|
|
|
1288
1301
|
* The Chart component is a wrapper component for ECharts.
|
|
1289
1302
|
* Handles events and click functionality.
|
|
1290
1303
|
*
|
|
1291
|
-
* @param {
|
|
1304
|
+
* @param {ChartProps} props - The props for the Chart component
|
|
1292
1305
|
* @returns {JSX.Element} Chart component
|
|
1293
1306
|
*/
|
|
1294
1307
|
|
|
@@ -2458,7 +2471,13 @@ const HelpAddon = tw.span`
|
|
|
2458
2471
|
`;
|
|
2459
2472
|
|
|
2460
2473
|
/**
|
|
2461
|
-
*
|
|
2474
|
+
* Indicators are non-interactive elements that communicate essential aspects of the state of an asset.
|
|
2475
|
+
*
|
|
2476
|
+
* Whenever an asset is presented, indicators provide the necessary information for a user to comprehend the state of the asset.
|
|
2477
|
+
*
|
|
2478
|
+
* _**Do use** indicators to communicate essential aspects of the state of an asset._
|
|
2479
|
+
*
|
|
2480
|
+
* _**Do not use** indicators for non-essential information, or to communicate information unrelated to the state of an asset._
|
|
2462
2481
|
*
|
|
2463
2482
|
* @param {IndicatorProps} props - The props for the Indicator component
|
|
2464
2483
|
* @returns {JSX.Element} Indicator component
|
|
@@ -2469,7 +2488,7 @@ const Indicator$1 = _a => {
|
|
|
2469
2488
|
dataTestId,
|
|
2470
2489
|
icon,
|
|
2471
2490
|
label,
|
|
2472
|
-
color,
|
|
2491
|
+
color = colors.UNKNOWN,
|
|
2473
2492
|
withBackground = true
|
|
2474
2493
|
} = _a,
|
|
2475
2494
|
rest = __rest(_a, ["dataTestId", "icon", "label", "color", "withBackground"]);
|
|
@@ -2690,7 +2709,7 @@ const MobileIconButton = tw(IconButton)`
|
|
|
2690
2709
|
/**
|
|
2691
2710
|
* The MenuItem component should be used to inform the user of important information.
|
|
2692
2711
|
*
|
|
2693
|
-
* @param {
|
|
2712
|
+
* @param {MenuItemProps} props - The props for the MenuItem component
|
|
2694
2713
|
* @returns {JSX.Element} MenuItem component
|
|
2695
2714
|
*/
|
|
2696
2715
|
|
|
@@ -2733,7 +2752,7 @@ const Label = tw.div`
|
|
|
2733
2752
|
/**
|
|
2734
2753
|
* The MenuList component is used for menus and selects.
|
|
2735
2754
|
*
|
|
2736
|
-
* @param {
|
|
2755
|
+
* @param {MenuListProps} props - The props for the MenuList component
|
|
2737
2756
|
* @returns {JSX.Element} MenuList component
|
|
2738
2757
|
*/
|
|
2739
2758
|
|
|
@@ -2954,7 +2973,7 @@ const useModal = ({
|
|
|
2954
2973
|
/**
|
|
2955
2974
|
* The MinTopFullContentLayout component.
|
|
2956
2975
|
*
|
|
2957
|
-
* @param {
|
|
2976
|
+
* @param {MinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
|
|
2958
2977
|
* @returns {JSX.Element} MinTopFullContentLayout component
|
|
2959
2978
|
*/
|
|
2960
2979
|
|
|
@@ -2987,7 +3006,7 @@ const Layout$5 = tw.span`
|
|
|
2987
3006
|
* on screens < mediaQuery.xxl
|
|
2988
3007
|
*
|
|
2989
3008
|
*
|
|
2990
|
-
* @param {
|
|
3009
|
+
* @param {FilterListMapLayoutProps} props - The props for the FilterListMapLayout component
|
|
2991
3010
|
* @returns {JSX.Element} FilterListMapLayout component
|
|
2992
3011
|
*/
|
|
2993
3012
|
|
|
@@ -3005,7 +3024,7 @@ const Layout$4 = tw.span`
|
|
|
3005
3024
|
* Row min height can optionally be set here or managed by children
|
|
3006
3025
|
* Scrolling happens if/when children's a min-height is reached
|
|
3007
3026
|
*
|
|
3008
|
-
* @param {
|
|
3027
|
+
* @param {FullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
|
|
3009
3028
|
* @returns {JSX.Element} FullWidthRepeatingLayout component
|
|
3010
3029
|
*/
|
|
3011
3030
|
|
|
@@ -3069,7 +3088,7 @@ const GridArea = ({
|
|
|
3069
3088
|
* A grid container that has a flexible number of columns.
|
|
3070
3089
|
* Adds more columns if constraints allow it, otherwise wraps to next row
|
|
3071
3090
|
*
|
|
3072
|
-
* @param {
|
|
3091
|
+
* @param {IntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
|
|
3073
3092
|
* @returns {JSX.Element} IntrinsicallyResponsiveGrid component
|
|
3074
3093
|
*/
|
|
3075
3094
|
|
|
@@ -3196,7 +3215,7 @@ const Layout = tw.div`
|
|
|
3196
3215
|
/**
|
|
3197
3216
|
* The MultiRowTableCell component extendins Table Cell component and formats your content supporting 2 rows.
|
|
3198
3217
|
*
|
|
3199
|
-
* @param {
|
|
3218
|
+
* @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
|
|
3200
3219
|
* @returns {JSX.Element} MultiRowTableCell component
|
|
3201
3220
|
*/
|
|
3202
3221
|
|
|
@@ -3241,6 +3260,14 @@ const NumberInput = forwardRef((props, ref) => jsx(BaseInput, Object.assign({
|
|
|
3241
3260
|
}, props)));
|
|
3242
3261
|
NumberInput.displayName = "NumberInput";
|
|
3243
3262
|
|
|
3263
|
+
/**
|
|
3264
|
+
* The number field component is used for entering numeric values and includes controls for incrementally increasing or decreasing the value.
|
|
3265
|
+
*
|
|
3266
|
+
* _**Do use**_ the NumberField when the controls to incrementally increase or decrease makes the task easier for the user.
|
|
3267
|
+
*
|
|
3268
|
+
* _**Do not use**_ this fields for non-serialized numbers. Use TextField instead.
|
|
3269
|
+
*/
|
|
3270
|
+
|
|
3244
3271
|
const NumberField = forwardRef((_a, ref) => {
|
|
3245
3272
|
var {
|
|
3246
3273
|
label,
|
|
@@ -3421,7 +3448,7 @@ function usePrompt(message, when = true) {
|
|
|
3421
3448
|
/**
|
|
3422
3449
|
* The Prompt function.
|
|
3423
3450
|
*
|
|
3424
|
-
* @param {
|
|
3451
|
+
* @param {PromptProps} Props -
|
|
3425
3452
|
* @returns {void} void
|
|
3426
3453
|
*/
|
|
3427
3454
|
|
|
@@ -3983,6 +4010,14 @@ const Root = tw.span`
|
|
|
3983
4010
|
font-mono
|
|
3984
4011
|
`;
|
|
3985
4012
|
|
|
4013
|
+
/**
|
|
4014
|
+
* Text fields enable the user to interact with and input content and data. This component can be used for long and short form entries. Allow the size of the text input box to reflect the length of the content you expect the user to enter.
|
|
4015
|
+
*
|
|
4016
|
+
* _**Do use** when the user has to input or edit simple text based information, such as metadata._
|
|
4017
|
+
*
|
|
4018
|
+
* _**Do not use** to confirm user actions, such as deleting. Use a checkbox for such flows._
|
|
4019
|
+
*/
|
|
4020
|
+
|
|
3986
4021
|
const TextField = React.forwardRef((_a, ref) => {
|
|
3987
4022
|
var {
|
|
3988
4023
|
label,
|
|
@@ -5,14 +5,14 @@ import { CommonProps } from "../../common/CommonProps";
|
|
|
5
5
|
* Useful when toy want the second child to have 100% height and be scrollable
|
|
6
6
|
* Example: FilterBar + Fleet List
|
|
7
7
|
*/
|
|
8
|
-
interface
|
|
8
|
+
interface MinTopFullContentLayoutProps extends CommonProps {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* The MinTopFullContentLayout component.
|
|
13
13
|
*
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {MinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
|
|
15
15
|
* @returns {JSX.Element} MinTopFullContentLayout component
|
|
16
16
|
*/
|
|
17
|
-
export declare const MinTopFullContentLayout: ({ children, className, dataTestId }:
|
|
17
|
+
export declare const MinTopFullContentLayout: ({ children, className, dataTestId }: MinTopFullContentLayoutProps) => JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface
|
|
2
|
+
interface FilterListMapLayoutProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -15,8 +15,8 @@ interface IProps {
|
|
|
15
15
|
* on screens < mediaQuery.xxl
|
|
16
16
|
*
|
|
17
17
|
*
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {FilterListMapLayoutProps} props - The props for the FilterListMapLayout component
|
|
19
19
|
* @returns {JSX.Element} FilterListMapLayout component
|
|
20
20
|
*/
|
|
21
|
-
export declare const FilterListMapLayout: ({ children }:
|
|
21
|
+
export declare const FilterListMapLayout: ({ children }: FilterListMapLayoutProps) => JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare type RowSizing = "Equal" | "MinContent" | "Unmanaged";
|
|
3
|
-
interface
|
|
3
|
+
interface FullWidthRepeatingLayoutProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
rowSizing?: RowSizing;
|
|
6
6
|
rowMinHeight?: number;
|
|
@@ -12,8 +12,8 @@ interface IFullWidthRepeatingLayoutProps {
|
|
|
12
12
|
* Row min height can optionally be set here or managed by children
|
|
13
13
|
* Scrolling happens if/when children's a min-height is reached
|
|
14
14
|
*
|
|
15
|
-
* @param {
|
|
15
|
+
* @param {FullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
|
|
16
16
|
* @returns {JSX.Element} FullWidthRepeatingLayout component
|
|
17
17
|
*/
|
|
18
|
-
export declare const FullWidthRepeatingLayout: ({ children, rowSizing, rowMinHeight, dataTestId, className, }:
|
|
18
|
+
export declare const FullWidthRepeatingLayout: ({ children, rowSizing, rowMinHeight, dataTestId, className, }: FullWidthRepeatingLayoutProps) => JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -3,7 +3,7 @@ import { CommonProps } from "../../common/CommonProps";
|
|
|
3
3
|
declare type ColumnWidth = "slim" | "narrow" | "normal" | "wide";
|
|
4
4
|
declare type Space = "inherit" | "auto" | "none" | "tiny" | "mini" | "small" | "medium" | "large" | "giant" | "enormous";
|
|
5
5
|
declare type Occupation = "auto-fill" | "auto-fit";
|
|
6
|
-
interface
|
|
6
|
+
interface IntrinsicallyResponsiveGridProps extends CommonProps {
|
|
7
7
|
/**
|
|
8
8
|
* The children to be laid out
|
|
9
9
|
*/
|
|
@@ -23,8 +23,8 @@ interface IIntrinsicallyResponsiveGridProps extends CommonProps {
|
|
|
23
23
|
* A grid container that has a flexible number of columns.
|
|
24
24
|
* Adds more columns if constraints allow it, otherwise wraps to next row
|
|
25
25
|
*
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {IntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
|
|
27
27
|
* @returns {JSX.Element} IntrinsicallyResponsiveGrid component
|
|
28
28
|
*/
|
|
29
|
-
export declare const IntrinsicallyResponsiveGrid: ({ children, occupation, minColumnWidth, gap, dataTestId, className, }:
|
|
29
|
+
export declare const IntrinsicallyResponsiveGrid: ({ children, occupation, minColumnWidth, gap, dataTestId, className, }: IntrinsicallyResponsiveGridProps) => JSX.Element;
|
|
30
30
|
export {};
|