@trackunit/react-components 0.0.53 → 0.0.56
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 +1 -1
|
@@ -3,26 +3,18 @@ import { CommonProps } from "../../common/CommonProps";
|
|
|
3
3
|
export interface LabelProps extends CommonProps {
|
|
4
4
|
/**
|
|
5
5
|
* ID of the label.
|
|
6
|
-
*
|
|
7
|
-
* @memberof LabelProps
|
|
8
6
|
*/
|
|
9
7
|
id?: string;
|
|
10
8
|
/**
|
|
11
9
|
* Specifies the element to which the label belongs to.
|
|
12
|
-
*
|
|
13
|
-
* @memberof LabelProps
|
|
14
10
|
*/
|
|
15
11
|
htmlFor: string | false;
|
|
16
12
|
/**
|
|
17
13
|
* The label value.
|
|
18
|
-
*
|
|
19
|
-
* @memberof LabelProps
|
|
20
14
|
*/
|
|
21
15
|
label?: React.ReactNode;
|
|
22
16
|
/**
|
|
23
17
|
* Description for the label.
|
|
24
|
-
*
|
|
25
|
-
* @memberof LabelProps
|
|
26
18
|
*/
|
|
27
19
|
description?: React.ReactNode;
|
|
28
20
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,40 +1,30 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export interface
|
|
2
|
+
export interface MenuItemProps {
|
|
3
3
|
/**
|
|
4
4
|
* The icon to be rendered in the menu item.
|
|
5
|
-
*
|
|
6
|
-
* @memberof IMenuItemProps
|
|
7
5
|
*/
|
|
8
6
|
icon?: JSX.Element;
|
|
9
7
|
/**
|
|
10
8
|
* Label of the menu item
|
|
11
|
-
*
|
|
12
|
-
* @memberof IMenuItemProps
|
|
13
9
|
*/
|
|
14
10
|
label?: string;
|
|
15
11
|
/**
|
|
16
12
|
* Additional tailwind classes to be applied to the component.
|
|
17
|
-
*
|
|
18
|
-
* @memberof IMenuItemProps
|
|
19
13
|
*/
|
|
20
14
|
className?: string;
|
|
21
15
|
/**
|
|
22
16
|
* Test id to be used for the component.
|
|
23
|
-
*
|
|
24
|
-
* @memberof IMenuItemProps
|
|
25
17
|
*/
|
|
26
18
|
dataTestId?: string;
|
|
27
19
|
/**
|
|
28
20
|
* onClick event.
|
|
29
|
-
*
|
|
30
|
-
* @memberof IMenuItemProps
|
|
31
21
|
*/
|
|
32
22
|
onClick: () => void;
|
|
33
23
|
}
|
|
34
24
|
/**
|
|
35
25
|
* The MenuItem component should be used to inform the user of important information.
|
|
36
26
|
*
|
|
37
|
-
* @param {
|
|
27
|
+
* @param {MenuItemProps} props - The props for the MenuItem component
|
|
38
28
|
* @returns {JSX.Element} MenuItem component
|
|
39
29
|
*/
|
|
40
|
-
export declare const MenuItem: ({ className, dataTestId, label, icon, onClick }:
|
|
30
|
+
export declare const MenuItem: ({ className, dataTestId, label, icon, onClick }: MenuItemProps) => JSX.Element;
|
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { MenuItemProps } from "./MenuItem";
|
|
3
|
+
export interface MenuListItemProps extends MenuItemProps {
|
|
4
4
|
showDivider?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface MenuListProps {
|
|
7
7
|
/**
|
|
8
8
|
* Additional tailwind classes to be applied to the component.
|
|
9
|
-
*
|
|
10
|
-
* @memberof IMenuListProps
|
|
11
9
|
*/
|
|
12
10
|
className?: string;
|
|
13
11
|
/**
|
|
14
12
|
* Test id to be used for the component.
|
|
15
|
-
*
|
|
16
|
-
* @memberof IMenuListProps
|
|
17
13
|
*/
|
|
18
14
|
dataTestId?: string;
|
|
19
15
|
/**
|
|
20
16
|
* List of menu items to be rendered.
|
|
21
|
-
*
|
|
22
|
-
* @memberof IMenuListProps
|
|
23
17
|
*/
|
|
24
|
-
menuItems:
|
|
18
|
+
menuItems: MenuListItemProps[];
|
|
25
19
|
}
|
|
26
20
|
/**
|
|
27
21
|
* The MenuList component is used for menus and selects.
|
|
28
22
|
*
|
|
29
|
-
* @param {
|
|
23
|
+
* @param {MenuListProps} props - The props for the MenuList component
|
|
30
24
|
* @returns {JSX.Element} MenuList component
|
|
31
25
|
*/
|
|
32
|
-
export declare const MenuList: ({ dataTestId, className, menuItems, ...args }:
|
|
26
|
+
export declare const MenuList: ({ dataTestId, className, menuItems, ...args }: MenuListProps) => JSX.Element;
|
|
File without changes
|
|
@@ -4,32 +4,22 @@ declare type ModalWidth = "slim" | "narrow" | "normal" | "wide" | "full";
|
|
|
4
4
|
export interface ModalProps extends CommonProps {
|
|
5
5
|
/**
|
|
6
6
|
* Whether modal is open or not.
|
|
7
|
-
*
|
|
8
|
-
* @memberof ModalProps
|
|
9
7
|
*/
|
|
10
8
|
isOpen?: boolean;
|
|
11
9
|
/**
|
|
12
10
|
* Whether modal should be closed when clicked outside of it.
|
|
13
|
-
*
|
|
14
|
-
* @memberof ModalProps
|
|
15
11
|
*/
|
|
16
12
|
onDismissClick?: () => void;
|
|
17
13
|
/**
|
|
18
14
|
* Child elements to be rendered inside the modal.
|
|
19
|
-
*
|
|
20
|
-
* @memberof ModalProps
|
|
21
15
|
*/
|
|
22
16
|
children: React.ReactNode;
|
|
23
17
|
/**
|
|
24
18
|
* Test id to be applied to the modal.
|
|
25
|
-
*
|
|
26
|
-
* @memberof ModalProps
|
|
27
19
|
*/
|
|
28
20
|
dataTestId?: string;
|
|
29
21
|
/**
|
|
30
22
|
* Maximum width of the modal.
|
|
31
|
-
*
|
|
32
|
-
* @memberof ModalProps
|
|
33
23
|
*/
|
|
34
24
|
maxWidth?: ModalWidth;
|
|
35
25
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
-
interface
|
|
3
|
+
interface MultiRowTableCellProps extends CommonProps {
|
|
4
4
|
/**
|
|
5
5
|
* Main header.
|
|
6
|
-
*
|
|
7
|
-
* @memberof IMultiRowTableCellProps
|
|
8
6
|
*/
|
|
9
7
|
main: string;
|
|
10
8
|
/**
|
|
11
9
|
* Secondary string.
|
|
12
|
-
*
|
|
13
|
-
* @memberof IMultiRowTableCellProps
|
|
14
10
|
*/
|
|
15
11
|
secondary?: string;
|
|
16
12
|
/**
|
|
17
13
|
* Grid area.
|
|
18
|
-
*
|
|
19
|
-
* @memberof IMultiRowTableCellProps
|
|
20
14
|
*/
|
|
21
15
|
area?: string;
|
|
22
16
|
}
|
|
23
17
|
/**
|
|
24
18
|
* The MultiRowTableCell component extendins Table Cell component and formats your content supporting 2 rows.
|
|
25
19
|
*
|
|
26
|
-
* @param {
|
|
20
|
+
* @param {MultiRowTableCellProps} props - The props for the MultiRowTableCell component
|
|
27
21
|
* @returns {JSX.Element} MultiRowTableCell component
|
|
28
22
|
*/
|
|
29
|
-
export declare const MultiRowTableCell: ({ main, secondary, area, dataTestId }:
|
|
23
|
+
export declare const MultiRowTableCell: ({ main, secondary, area, dataTestId }: MultiRowTableCellProps) => JSX.Element;
|
|
30
24
|
export {};
|
|
File without changes
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FormGroupProps } from "../
|
|
2
|
+
import { FormGroupProps } from "../FormGroup/FormGroup";
|
|
3
3
|
import { NumberInputProps } from "../NumberInput/NumberInput";
|
|
4
4
|
declare type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
|
|
5
5
|
export interface NumberFieldProps extends NumberInputProps, FormGroupExposedProps {
|
|
6
6
|
/**
|
|
7
7
|
* If a value is set, the field is rendered in its invalid state.
|
|
8
|
-
*
|
|
9
|
-
* @memberof NumberFieldProps
|
|
10
8
|
*/
|
|
11
9
|
errorMessage?: string;
|
|
12
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseInputProps } from "../
|
|
2
|
+
import { BaseInputProps } from "../BaseInput";
|
|
3
3
|
declare type BaseInputExposedProps = Omit<BaseInputProps, "type">;
|
|
4
4
|
export interface NumberInputProps extends BaseInputExposedProps {
|
|
5
5
|
}
|
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
interface PageHeadingProps {
|
|
3
3
|
/**
|
|
4
4
|
* The title of the page.
|
|
5
|
-
*
|
|
6
|
-
* @memberof PageHeadingProps
|
|
7
5
|
*/
|
|
8
6
|
title: string;
|
|
9
7
|
/**
|
|
10
8
|
* Subtitle of the page.
|
|
11
|
-
*
|
|
12
|
-
* @memberof PageHeadingProps
|
|
13
9
|
*/
|
|
14
10
|
subtitle?: string;
|
|
15
11
|
/**
|
|
16
12
|
* Test id to be used for the component.
|
|
17
|
-
*
|
|
18
|
-
* @memberof PageHeadingProps
|
|
19
13
|
*/
|
|
20
14
|
dataTestId?: string;
|
|
21
15
|
badge?: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface PromptProps {
|
|
2
2
|
when: boolean;
|
|
3
3
|
message: string;
|
|
4
4
|
}
|
|
@@ -13,8 +13,8 @@ export declare function usePrompt(message: string, when?: boolean): void;
|
|
|
13
13
|
/**
|
|
14
14
|
* The Prompt function.
|
|
15
15
|
*
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {PromptProps} Props -
|
|
17
17
|
* @returns {void} void
|
|
18
18
|
*/
|
|
19
|
-
export declare const Prompt: ({ when, message }:
|
|
19
|
+
export declare const Prompt: ({ when, message }: PromptProps) => null;
|
|
20
20
|
export {};
|
|
File without changes
|
|
@@ -2,50 +2,34 @@ import * as React from "react";
|
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
3
|
interface RadioGroupProps extends CommonProps {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* @memberof RadioGroupProps
|
|
7
5
|
*/
|
|
8
6
|
children: React.ReactNode;
|
|
9
7
|
/**
|
|
10
8
|
* The id of the radio group.
|
|
11
|
-
*
|
|
12
|
-
* @memberof RadioGroupProps
|
|
13
9
|
*/
|
|
14
10
|
id: string;
|
|
15
11
|
/**
|
|
16
12
|
* onChange handler for the radio group.
|
|
17
|
-
*
|
|
18
|
-
* @memberof RadioGroupProps
|
|
19
13
|
*/
|
|
20
14
|
onChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
21
15
|
/**
|
|
22
16
|
* The value of the radio group.
|
|
23
|
-
*
|
|
24
|
-
* @memberof RadioGroupProps
|
|
25
17
|
*/
|
|
26
18
|
value: string | number;
|
|
27
19
|
/**
|
|
28
20
|
* The name of the radio group.
|
|
29
|
-
*
|
|
30
|
-
* @memberof RadioGroupProps
|
|
31
21
|
*/
|
|
32
22
|
name?: string;
|
|
33
23
|
/**
|
|
34
24
|
* The label of the radio group.
|
|
35
|
-
*
|
|
36
|
-
* @memberof RadioGroupProps
|
|
37
25
|
*/
|
|
38
26
|
label?: string;
|
|
39
27
|
/**
|
|
40
28
|
* Whether the radiogroup is inline or not.
|
|
41
|
-
*
|
|
42
|
-
* @memberof RadioGroupProps
|
|
43
29
|
*/
|
|
44
30
|
inline?: boolean;
|
|
45
31
|
/**
|
|
46
32
|
* Whether the radio group is disabled or not.
|
|
47
|
-
*
|
|
48
|
-
* @memberof RadioGroupProps
|
|
49
33
|
*/
|
|
50
34
|
disabled?: boolean;
|
|
51
35
|
}
|
|
File without changes
|
|
@@ -3,14 +3,10 @@ import { CommonProps } from "../../common/CommonProps";
|
|
|
3
3
|
interface RadioItemProps extends CommonProps {
|
|
4
4
|
/**
|
|
5
5
|
* The label of the radio item.
|
|
6
|
-
*
|
|
7
|
-
* @memberof RadioItemProps
|
|
8
6
|
*/
|
|
9
7
|
label: React.ReactNode;
|
|
10
8
|
/**
|
|
11
9
|
* The value of the radio item.
|
|
12
|
-
*
|
|
13
|
-
* @memberof RadioItemProps
|
|
14
10
|
*/
|
|
15
11
|
value: string | number;
|
|
16
12
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,56 +12,38 @@ export declare type SelectSize = "small" | "default";
|
|
|
12
12
|
export interface ISelectProps<Option, IsAsync extends boolean, IsMulti extends boolean, GroupType extends GroupBase<Option>> extends CommonProps, Props<Option, IsMulti, GroupType> {
|
|
13
13
|
/**
|
|
14
14
|
* Label to be displayed.
|
|
15
|
-
*
|
|
16
|
-
* @memberof ISelectProps
|
|
17
15
|
*/
|
|
18
16
|
label?: string;
|
|
19
17
|
/**
|
|
20
18
|
* To hide the label.
|
|
21
|
-
*
|
|
22
|
-
* @memberof ISelectProps
|
|
23
19
|
*/
|
|
24
20
|
hideLabel?: boolean;
|
|
25
21
|
/**
|
|
26
22
|
* Description for the select component.
|
|
27
|
-
*
|
|
28
|
-
* @memberof ISelectProps
|
|
29
23
|
*/
|
|
30
24
|
description?: string;
|
|
31
25
|
/**
|
|
32
26
|
* Whether the component is invalid.
|
|
33
|
-
*
|
|
34
|
-
* @memberof ISelectProps
|
|
35
27
|
*/
|
|
36
28
|
isInvalid?: boolean;
|
|
37
29
|
/**
|
|
38
30
|
* Whether the component is disabled.
|
|
39
|
-
*
|
|
40
|
-
* @memberof ISelectProps
|
|
41
31
|
*/
|
|
42
32
|
isDisabled?: boolean;
|
|
43
33
|
/**
|
|
44
34
|
* Info of the select component.
|
|
45
|
-
*
|
|
46
|
-
* @memberof ISelectProps
|
|
47
35
|
*/
|
|
48
36
|
info?: React.ReactNode;
|
|
49
37
|
/**
|
|
50
38
|
* Error of the select component.
|
|
51
|
-
*
|
|
52
|
-
* @memberof ISelectProps
|
|
53
39
|
*/
|
|
54
40
|
error?: React.ReactNode;
|
|
55
41
|
/**
|
|
56
42
|
* Size of the component.
|
|
57
|
-
*
|
|
58
|
-
* @memberof ISelectProps
|
|
59
43
|
*/
|
|
60
44
|
size?: SelectSize;
|
|
61
45
|
/**
|
|
62
46
|
* Whether component is asynchronous or not.
|
|
63
|
-
*
|
|
64
|
-
* @memberof ISelectProps
|
|
65
47
|
*/
|
|
66
48
|
isAsync?: IsAsync;
|
|
67
49
|
}
|
|
@@ -1,36 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
-
export interface
|
|
3
|
+
export interface SkeletonLinesProps extends CommonProps {
|
|
4
4
|
/**
|
|
5
5
|
* The number of lines to display.
|
|
6
|
-
*
|
|
7
|
-
* @memberof ISkeletonLinesProps
|
|
8
6
|
*/
|
|
9
7
|
lines?: number;
|
|
10
8
|
/**
|
|
11
9
|
* The height of lines. Can be a number or an array of numbers or string.
|
|
12
|
-
*
|
|
13
|
-
* @memberof ISkeletonLinesProps
|
|
14
10
|
*/
|
|
15
11
|
height?: number | number[] | string;
|
|
16
12
|
/**
|
|
17
13
|
* The width of each lines. Can be a number or an array of numbers or string.
|
|
18
|
-
*
|
|
19
|
-
* @memberof ISkeletonLinesProps
|
|
20
14
|
*/
|
|
21
15
|
width?: number | number[] | string;
|
|
22
16
|
/**
|
|
23
17
|
* Margin of lines.
|
|
24
|
-
*
|
|
25
|
-
* @memberof ISkeletonLinesProps
|
|
26
18
|
*/
|
|
27
19
|
margin?: string;
|
|
28
20
|
/**
|
|
29
21
|
* Additional CSS classes.
|
|
30
|
-
*
|
|
31
|
-
* @memberof ISkeletonLinesProps
|
|
32
22
|
*/
|
|
33
23
|
className?: string;
|
|
34
24
|
}
|
|
35
|
-
export declare const SkeletonLines: import("react").MemoExoticComponent<({ margin, lines, height, width, className, dataTestId }:
|
|
25
|
+
export declare const SkeletonLines: import("react").MemoExoticComponent<({ margin, lines, height, width, className, dataTestId }: SkeletonLinesProps) => JSX.Element>;
|
|
36
26
|
export default SkeletonLines;
|
|
File without changes
|
|
@@ -4,14 +4,10 @@ interface SpacerProps extends CommonProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* The minimum height of the spacer. Defaults to 1px.
|
|
6
6
|
* Possible values are "normal"(8px), and "large" (32px). Use className prop to use custom min-height values, example: min-h-[100px].
|
|
7
|
-
*
|
|
8
|
-
* @memberof SpacerProps
|
|
9
7
|
*/
|
|
10
8
|
minHeight?: string;
|
|
11
9
|
/**
|
|
12
10
|
* The border of the spacer.
|
|
13
|
-
*
|
|
14
|
-
* @memberof SpacerProps
|
|
15
11
|
*/
|
|
16
12
|
border?: boolean;
|
|
17
13
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
+
import { Colors } from "../../constants/colors";
|
|
4
|
+
export declare type TagSize = "default" | "small";
|
|
5
|
+
interface TagProps extends CommonProps {
|
|
6
|
+
/**
|
|
7
|
+
* The color of the tag
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
color?: Colors;
|
|
11
|
+
/**
|
|
12
|
+
* A handler for a click event triggered on x icon
|
|
13
|
+
* if not passed then x icon won't be visible
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
onClose?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Custom classNames can be added to make adjustments where needed.
|
|
19
|
+
* Example: Set a maximum width of the badge by adding the className "max-w-[your-max-width]" or similar tailwind max-w class.
|
|
20
|
+
* This will make the badge truncate the text if it is too long.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Child nodes of the tag.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Size of the tag.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
size?: TagSize;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Tags allow users to enter information and filter content.
|
|
37
|
+
* Multiple or single tags can be used to categorise items.
|
|
38
|
+
* Use short labels for easy scanning. Use two words only if necessary to describe the status and differentiate it from other tags.
|
|
39
|
+
*
|
|
40
|
+
* @param {TagProps} props - The props for the tag component
|
|
41
|
+
* @returns {JSX.Element} tag component
|
|
42
|
+
*/
|
|
43
|
+
export declare const Tag: ({ className, dataTestId, children, size, onClose, color, ...rest }: TagProps) => JSX.Element;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Tag";
|
|
@@ -7,62 +7,42 @@ export declare type TextWeight = "default" | "thick" | "bold";
|
|
|
7
7
|
export interface TextProps extends CommonProps {
|
|
8
8
|
/**
|
|
9
9
|
* Child nodes.
|
|
10
|
-
*
|
|
11
|
-
* @memberof TextProps
|
|
12
10
|
*/
|
|
13
11
|
children: React.ReactNode;
|
|
14
12
|
/**
|
|
15
13
|
* Type of element. Element can be of types "p", "span", or "div".
|
|
16
|
-
*
|
|
17
|
-
* @memberof TextProps
|
|
18
14
|
*/
|
|
19
15
|
type?: TextType;
|
|
20
16
|
/**
|
|
21
17
|
* Size of element. Values can be "default", "small", or "large".
|
|
22
|
-
*
|
|
23
|
-
* @memberof TextProps
|
|
24
18
|
*/
|
|
25
19
|
size?: TextSize;
|
|
26
20
|
/**
|
|
27
21
|
* Alignment of the text. Values can be "left", "center", or "right".
|
|
28
|
-
*
|
|
29
|
-
* @memberof TextProps
|
|
30
22
|
*/
|
|
31
23
|
align?: TextAlign;
|
|
32
24
|
/**
|
|
33
25
|
* Weight of the text. Values can be "default", "thick", or "bold".
|
|
34
|
-
*
|
|
35
|
-
* @memberof TextProps
|
|
36
26
|
*/
|
|
37
27
|
weight?: TextWeight;
|
|
38
28
|
/**
|
|
39
29
|
* Whether font styles are inverted.
|
|
40
|
-
*
|
|
41
|
-
* @memberof TextProps
|
|
42
30
|
*/
|
|
43
31
|
inverted?: boolean;
|
|
44
32
|
/**
|
|
45
33
|
* Whether font styles are subtle or not.
|
|
46
|
-
*
|
|
47
|
-
* @memberof TextProps
|
|
48
34
|
*/
|
|
49
35
|
subtle?: boolean;
|
|
50
36
|
/**
|
|
51
37
|
* Whether text is italicized.
|
|
52
|
-
*
|
|
53
|
-
* @memberof TextProps
|
|
54
38
|
*/
|
|
55
39
|
italicize?: boolean;
|
|
56
40
|
/**
|
|
57
41
|
* Whether text is uppercase.
|
|
58
|
-
*
|
|
59
|
-
* @memberof TextProps
|
|
60
42
|
*/
|
|
61
43
|
uppercase?: boolean;
|
|
62
44
|
/**
|
|
63
45
|
* Whether text is underlined or not.
|
|
64
|
-
*
|
|
65
|
-
* @memberof TextProps
|
|
66
46
|
*/
|
|
67
47
|
underline?: boolean;
|
|
68
48
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { FormGroupProps } from "../
|
|
2
|
+
import { FormGroupProps } from "../FormGroup/FormGroup";
|
|
3
3
|
import { TextInputProps } from "../TextInput/TextInput";
|
|
4
4
|
declare type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
|
|
5
5
|
export interface TextFieldProps extends TextInputProps, FormGroupExposedProps {
|
|
6
6
|
/**
|
|
7
7
|
* Set the Maximal length of the value for the input.
|
|
8
8
|
* Adds a TextLenghtIndicator to the right of the helpText.
|
|
9
|
-
*
|
|
10
|
-
* @memberof TextFieldProps
|
|
11
9
|
*/
|
|
12
10
|
maxLength?: number;
|
|
13
11
|
/**
|
|
14
12
|
* If a value is set, the field is rendered in its invalid state.
|
|
15
|
-
*
|
|
16
|
-
* @memberof TextFieldProps
|
|
17
13
|
*/
|
|
18
14
|
errorMessage?: string;
|
|
19
15
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|