@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
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BaseInputProps } from "../baseInput/BaseInput";
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 "../icon/Icon";
4
- import { TooltipProps } from "../tooltip";
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 "../popover";
3
- import { TextType } from "../text";
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
  }
@@ -1,4 +1,4 @@
1
- export * from "./button/Button";
2
- export * from "./icon-button/IconButton";
1
+ export * from "./Button/Button";
2
+ export * from "./IconButton/IconButton";
3
3
  export * from "./shared/ButtonProps";
4
- export * from "./star-button/StarButton";
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;
@@ -1,4 +1,4 @@
1
- import { ButtonIntent, ButtonSize, ButtonVariant } from "../shared/ButtonProps";
1
+ import { ButtonIntent, ButtonSize, ButtonVariant } from "./ButtonProps";
2
2
  interface ButtonProps {
3
3
  $intent: ButtonIntent;
4
4
  $variant: ButtonVariant;
@@ -1,37 +1,37 @@
1
- export * from "./alert";
2
- export * from "./badge";
3
- export * from "./baseInput";
1
+ export * from "./Alert";
2
+ export * from "./Badge";
3
+ export * from "./BaseInput";
4
4
  export * from "./buttons";
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";
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 "./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";
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 "./tip";
36
- export * from "./toggle";
37
- export * from "./tooltip";
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 {IUseContainerProps} ContainerProps - Props for the utility
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 {IUseContainerProps} - Object with undefined values removed
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 Spinner component should be used st show a loading state.
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 form information.
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 {IChartProps} props - The props for the Chart component
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
- * The Indicator components are non-interactive elements that communicate essential aspects of the state of an asset.
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 {IMenuItemProps} props - The props for the MenuItem component
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 {IMenuListProps} props - The props for the MenuList component
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 {IMinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
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 {IProps} props - The props for the FilterListMapLayout component
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 {IFullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
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 {IIntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
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 {IMultiRowTableCellProps} props - The props for the MultiRowTableCell component
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 {IPromptProps} Props -
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 IMinTopFullContentLayoutProps extends CommonProps {
8
+ interface MinTopFullContentLayoutProps extends CommonProps {
9
9
  children: ReactNode;
10
10
  }
11
11
  /**
12
12
  * The MinTopFullContentLayout component.
13
13
  *
14
- * @param {IMinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
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 }: IMinTopFullContentLayoutProps) => JSX.Element;
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 IProps {
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 {IProps} props - The props for the FilterListMapLayout component
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 }: IProps) => JSX.Element;
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 IFullWidthRepeatingLayoutProps {
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 {IFullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
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, }: IFullWidthRepeatingLayoutProps) => JSX.Element;
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 IIntrinsicallyResponsiveGridProps extends CommonProps {
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 {IIntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
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, }: IIntrinsicallyResponsiveGridProps) => JSX.Element;
29
+ export declare const IntrinsicallyResponsiveGrid: ({ children, occupation, minColumnWidth, gap, dataTestId, className, }: IntrinsicallyResponsiveGridProps) => JSX.Element;
30
30
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.51",
3
+ "version": "0.0.54",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "MIT",
6
6
  "dependencies": {