@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.
Files changed (105) hide show
  1. package/common/CommonProps.d.ts +0 -4
  2. package/common/useContainerProps.d.ts +4 -4
  3. package/components/{alert → Alert}/Alert.d.ts +0 -16
  4. package/components/{alert → Alert}/index.d.ts +0 -0
  5. package/components/{badge → Badge}/Badge.d.ts +5 -17
  6. package/components/{badge → Badge}/index.d.ts +0 -0
  7. package/components/{baseInput → BaseInput}/BaseInput.d.ts +0 -16
  8. package/components/{baseInput → BaseInput}/index.d.ts +0 -0
  9. package/components/{card → Card}/Card.d.ts +0 -4
  10. package/components/{card → Card}/CardBody.d.ts +0 -0
  11. package/components/{card → Card}/CardFooter.d.ts +0 -0
  12. package/components/{card → Card}/CardHeader.d.ts +1 -1
  13. package/components/{card → Card}/DensityContainer.d.ts +0 -6
  14. package/components/{card → Card}/index.d.ts +0 -0
  15. package/components/{chart → Chart}/Chart.d.ts +3 -31
  16. package/components/{chart → Chart}/index.d.ts +0 -0
  17. package/components/{checkbox → Checkbox}/CheckIcon.d.ts +0 -0
  18. package/components/{checkbox → Checkbox}/Checkbox.d.ts +0 -12
  19. package/components/{checkbox → Checkbox}/IndeterminateIcon.d.ts +0 -0
  20. package/components/{checkbox → Checkbox}/index.d.ts +0 -0
  21. package/components/{collapse → Collapse}/Collapse.d.ts +0 -8
  22. package/components/{collapse → Collapse}/index.d.ts +0 -0
  23. package/components/{copyableText → CopyableText}/CopyableText.d.ts +0 -6
  24. package/components/{copyableText → CopyableText}/index.d.ts +0 -0
  25. package/components/{dateField → DateField}/DateField.d.ts +1 -13
  26. package/components/{dateField → DateField}/index.d.ts +0 -0
  27. package/components/{dayPicker → DayPicker}/DayPicker.d.ts +0 -0
  28. package/components/{dayPicker → DayPicker}/DayPickerPopover.d.ts +1 -1
  29. package/components/{dayPicker → DayPicker}/DayRangePicker.d.ts +0 -0
  30. package/components/{dayPicker → DayPicker}/index.d.ts +0 -0
  31. package/components/{dayPicker → DayPicker}/useLocale.d.ts +0 -0
  32. package/components/{formGroup → FormGroup}/FormGroup.d.ts +0 -10
  33. package/components/{heading → Heading}/Heading.d.ts +0 -8
  34. package/components/{heading → Heading}/index.d.ts +0 -0
  35. package/components/{icon → Icon}/Icon.d.ts +0 -8
  36. package/components/{indicator → Indicator}/Indicator.d.ts +7 -9
  37. package/components/{indicator → Indicator}/index.d.ts +0 -0
  38. package/components/{label → Label}/Label.d.ts +0 -8
  39. package/components/{label → Label}/index.d.ts +0 -0
  40. package/components/{legendItem → LegendItem}/LegendItem.d.ts +0 -0
  41. package/components/{legendItem → LegendItem}/index.d.ts +0 -0
  42. package/components/{menu → Menu}/MenuButton.d.ts +0 -0
  43. package/components/{menu → Menu}/MenuItem.d.ts +3 -13
  44. package/components/{menu → Menu}/MenuList.d.ts +6 -12
  45. package/components/{menu → Menu}/index.d.ts +0 -0
  46. package/components/{modal → Modal}/Modal.d.ts +0 -10
  47. package/components/{modal → Modal}/ModalBackdrop.d.ts +0 -0
  48. package/components/{modal → Modal}/index.d.ts +0 -0
  49. package/components/{modal → Modal}/useModal.d.ts +0 -0
  50. package/components/{multiRowTableCell → MultiRowTableCell}/MultiRowTableCell.d.ts +3 -9
  51. package/components/{multiRowTableCell → MultiRowTableCell}/index.d.ts +0 -0
  52. package/components/NumberField/NumberField.d.ts +8 -3
  53. package/components/NumberInput/NumberInput.d.ts +1 -1
  54. package/components/{pageHeading → PageHeading}/PageHeading.d.ts +0 -6
  55. package/components/{pageHeading → PageHeading}/index.d.ts +0 -0
  56. package/components/{popover → Popover}/AnimatedPopover.d.ts +0 -0
  57. package/components/{popover → Popover}/PopoverList.d.ts +0 -0
  58. package/components/{popover → Popover}/PopoverListItem.d.ts +0 -0
  59. package/components/{popover → Popover}/PopoverTitle.d.ts +0 -0
  60. package/components/{popover → Popover}/index.d.ts +0 -0
  61. package/components/{popover → Popover}/usePopover.d.ts +0 -0
  62. package/components/{prompt → Prompt}/Prompt.d.ts +3 -3
  63. package/components/{prompt → Prompt}/index.d.ts +0 -0
  64. package/components/{radioGroup → RadioGroup}/RadioGroup.d.ts +0 -16
  65. package/components/{radioGroup → RadioGroup}/RadioGroupContext.d.ts +0 -0
  66. package/components/{radioGroup → RadioGroup}/RadioItem.d.ts +0 -4
  67. package/components/{radioGroup → RadioGroup}/index.d.ts +0 -0
  68. package/components/{select → Select}/CreatableSelect.d.ts +0 -0
  69. package/components/{select → Select}/FieldContainer.d.ts +0 -0
  70. package/components/{select → Select}/Select.d.ts +0 -0
  71. package/components/{select → Select}/index.d.ts +0 -0
  72. package/components/{select → Select}/shared.d.ts +0 -18
  73. package/components/{skeletonLines → SkeletonLines}/SkeletonLines.d.ts +2 -12
  74. package/components/{skeletonLines → SkeletonLines}/index.d.ts +0 -0
  75. package/components/{spacer → Spacer}/Spacer.d.ts +0 -4
  76. package/components/{spacer → Spacer}/index.d.ts +0 -0
  77. package/components/{spinner → Spinner}/Spinner.d.ts +9 -1
  78. package/components/{spinner → Spinner}/index.d.ts +0 -0
  79. package/components/{text → Text}/Text.d.ts +0 -20
  80. package/components/{text → Text}/index.d.ts +0 -0
  81. package/components/{textArea → TextArea}/TextArea.d.ts +0 -0
  82. package/components/{textArea → TextArea}/index.d.ts +0 -0
  83. package/components/{textField → TextField}/TextField.d.ts +8 -5
  84. package/components/{textField → TextField}/TextLenghtIndicator.d.ts +0 -0
  85. package/components/{textField → TextField}/index.d.ts +0 -0
  86. package/components/TextInput/TextInput.d.ts +1 -1
  87. package/components/{tip → Tip}/Tip.d.ts +2 -4
  88. package/components/{tip → Tip}/index.d.ts +0 -0
  89. package/components/{toggle → Toggle}/Toggle.d.ts +0 -0
  90. package/components/{toggle → Toggle}/index.d.ts +0 -0
  91. package/components/{tooltip → Tooltip}/Tooltip.d.ts +2 -20
  92. package/components/{tooltip → Tooltip}/index.d.ts +0 -0
  93. package/components/buttons/{button → Button}/Button.d.ts +0 -12
  94. package/components/buttons/{icon-button → IconButton}/IconButton.d.ts +0 -6
  95. package/components/buttons/{star-button → StarButton}/StarButton.d.ts +0 -0
  96. package/components/buttons/index.d.ts +3 -3
  97. package/components/buttons/shared/ButtonProps.d.ts +0 -14
  98. package/components/buttons/shared/helpers.d.ts +1 -1
  99. package/components/index.d.ts +33 -33
  100. package/index.js +51 -16
  101. package/layout/helper/MinTopFullContentLayout.d.ts +3 -3
  102. package/layout/responsive/FilterListMapLayout.d.ts +3 -3
  103. package/layout/responsive/FullWidthRepeatingLayout.d.ts +3 -3
  104. package/layout/responsive/IntrinsicallyResponsiveGrid.d.ts +3 -3
  105. package/package.json +1 -1
@@ -4,31 +4,29 @@ import { Colors } from "../../constants/colors";
4
4
  export interface IndicatorProps extends CommonProps {
5
5
  /**
6
6
  * The icon to be rendered inside the indicator component
7
- *
8
- * @memberof IndicatorProps
9
7
  */
10
8
  icon: JSX.Element;
11
9
  /**
12
10
  * A color token used to style the icon and the icon background
13
- *
14
- * @memberof IndicatorProps
15
11
  */
16
12
  color?: Colors;
17
13
  /**
18
14
  * A text label to be displayed next to the indicator
19
- *
20
- * @memberof IndicatorProps
21
15
  */
22
16
  label?: string;
23
17
  /**
24
18
  * A boolean parameter to display or hide icon background, default value is true
25
- *
26
- * @memberof IndicatorProps
27
19
  */
28
20
  withBackground?: boolean;
29
21
  }
30
22
  /**
31
- * The Indicator components are non-interactive elements that communicate essential aspects of the state of an asset.
23
+ * Indicators are non-interactive elements that communicate essential aspects of the state of an asset.
24
+ *
25
+ * Whenever an asset is presented, indicators provide the necessary information for a user to comprehend the state of the asset.
26
+ *
27
+ * _**Do use** indicators to communicate essential aspects of the state of an asset._
28
+ *
29
+ * _**Do not use** indicators for non-essential information, or to communicate information unrelated to the state of an asset._
32
30
  *
33
31
  * @param {IndicatorProps} props - The props for the Indicator component
34
32
  * @returns {JSX.Element} Indicator component
File without changes
@@ -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
@@ -1,40 +1,30 @@
1
1
  /// <reference types="react" />
2
- export interface IMenuItemProps {
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 {IMenuItemProps} props - The props for the MenuItem component
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 }: IMenuItemProps) => JSX.Element;
30
+ export declare const MenuItem: ({ className, dataTestId, label, icon, onClick }: MenuItemProps) => JSX.Element;
@@ -1,32 +1,26 @@
1
1
  /// <reference types="react" />
2
- import { IMenuItemProps } from "./MenuItem";
3
- export interface IMenuListItemProps extends IMenuItemProps {
2
+ import { MenuItemProps } from "./MenuItem";
3
+ export interface MenuListItemProps extends MenuItemProps {
4
4
  showDivider?: boolean;
5
5
  }
6
- export interface IMenuListProps {
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: IMenuListItemProps[];
18
+ menuItems: MenuListItemProps[];
25
19
  }
26
20
  /**
27
21
  * The MenuList component is used for menus and selects.
28
22
  *
29
- * @param {IMenuListProps} props - The props for the MenuList component
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 }: IMenuListProps) => JSX.Element;
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 IMultiRowTableCellProps extends CommonProps {
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 {IMultiRowTableCellProps} props - The props for the MultiRowTableCell component
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 }: IMultiRowTableCellProps) => JSX.Element;
23
+ export declare const MultiRowTableCell: ({ main, secondary, area, dataTestId }: MultiRowTableCellProps) => JSX.Element;
30
24
  export {};
@@ -1,14 +1,19 @@
1
1
  /// <reference types="react" />
2
- import { FormGroupProps } from "../formGroup/FormGroup";
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
  }
11
+ /**
12
+ * The number field component is used for entering numeric values and includes controls for incrementally increasing or decreasing the value.
13
+ *
14
+ * _**Do use**_ the NumberField when the controls to incrementally increase or decrease makes the task easier for the user.
15
+ *
16
+ * _**Do not use**_ this fields for non-serialized numbers. Use TextField instead.
17
+ */
13
18
  export declare const NumberField: import("react").ForwardRefExoticComponent<NumberFieldProps & import("react").RefAttributes<HTMLInputElement>>;
14
19
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BaseInputProps } from "../baseInput";
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
@@ -1,4 +1,4 @@
1
- interface IPromptProps {
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 {IPromptProps} Props -
16
+ * @param {PromptProps} Props -
17
17
  * @returns {void} void
18
18
  */
19
- export declare const Prompt: ({ when, message }: IPromptProps) => null;
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
  }
@@ -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
@@ -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 ISkeletonLinesProps extends CommonProps {
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 }: ISkeletonLinesProps) => JSX.Element>;
25
+ export declare const SkeletonLines: import("react").MemoExoticComponent<({ margin, lines, height, width, className, dataTestId }: SkeletonLinesProps) => JSX.Element>;
36
26
  export default SkeletonLines;
@@ -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
@@ -22,7 +22,15 @@ export interface SpinnerProps extends CommonProps {
22
22
  containerClassName?: string;
23
23
  }
24
24
  /**
25
- * The Spinner component should be used st show a loading state.
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.
26
34
  *
27
35
  * @param {SpinnerProps} props - The props for the Spinner component
28
36
  * @returns {JSX.Element} Spinner component
File without changes
@@ -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,21 +1,24 @@
1
1
  import * as React from "react";
2
- import { FormGroupProps } from "../formGroup/FormGroup";
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
  }
16
+ /**
17
+ * 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.
18
+ *
19
+ * _**Do use** when the user has to input or edit simple text based information, such as metadata._
20
+ *
21
+ * _**Do not use** to confirm user actions, such as deleting. Use a checkbox for such flows._
22
+ */
20
23
  export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
21
24
  export {};
File without changes