@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,14 +1,10 @@
1
1
  export interface CommonProps {
2
2
  /**
3
3
  * A custom class name to be attached to root element
4
- *
5
- * @memberof CommonProps
6
4
  */
7
5
  className?: string;
8
6
  /**
9
7
  * A id that can be used in tests to get the component
10
- *
11
- * @memberof CommonProps
12
8
  */
13
9
  dataTestId?: string;
14
10
  }
@@ -1,16 +1,16 @@
1
- export interface IUseContainerProps {
1
+ export interface UseContainerProps {
2
2
  className?: string;
3
3
  dataTestId?: string;
4
4
  }
5
5
  /**
6
6
  * Utility for common props on containers.
7
7
  *
8
- * @param {IUseContainerProps} ContainerProps - Props for the utility
8
+ * @param {UseContainerProps} ContainerProps - Props for the utility
9
9
  * @param {string} ContainerProps.className - Optional custom className
10
10
  * @param {string} ContainerProps.dataTestId - Optional custom data-TestId
11
- * @returns {IUseContainerProps} - Object with undefined values removed
11
+ * @returns {UseContainerProps} - Object with undefined values removed
12
12
  */
13
- export declare const useContainerProps: ({ className, dataTestId }: IUseContainerProps) => {
13
+ export declare const useContainerProps: ({ className, dataTestId }: UseContainerProps) => {
14
14
  className: string | undefined;
15
15
  "data-testid": string | undefined;
16
16
  };
@@ -10,52 +10,36 @@ export declare type AlertAction = {
10
10
  export interface AlertProps extends CommonProps {
11
11
  /**
12
12
  * Child nodes.
13
- *
14
- * @memberof AlertProps
15
13
  */
16
14
  children: React.ReactNode;
17
15
  /**
18
16
  * Intent of the alert component.
19
- *
20
- * @memberof AlertProps
21
17
  */
22
18
  intent?: AlertIntent;
23
19
  /**
24
20
  * Title of the alert component.
25
- *
26
- * @memberof AlertProps
27
21
  */
28
22
  title?: string;
29
23
  /**
30
24
  * Action to be performed on clicking the primary button.
31
- *
32
- * @memberof AlertProps
33
25
  */
34
26
  primaryAction?: AlertAction;
35
27
  /**
36
28
  * Action to be performed on clicking the secondary button.
37
- *
38
- * @memberof AlertProps
39
29
  */
40
30
  secondaryAction?: AlertAction;
41
31
  /**
42
32
  * OnClose Event.
43
- *
44
- * @memberof AlertProps
45
33
  */
46
34
  onClose?: () => void;
47
35
  /**
48
36
  * Whether the contents should be displayed inline or not.
49
- *
50
- * @memberof AlertProps
51
37
  */
52
38
  inline?: boolean;
53
39
  /**
54
40
  * A prop to enable autoscroll to alert element
55
41
  *
56
42
  * could be used for displaying errors on long scrollable forms
57
- *
58
- * @memberof AlertProps
59
43
  */
60
44
  autoScroll?: boolean;
61
45
  }
File without changes
@@ -6,30 +6,22 @@ declare type BadgeVariant = "badge" | "pill" | "tag";
6
6
  interface TagProps extends BaseBadgeProps {
7
7
  /**
8
8
  * The name of the variant.
9
- *
10
- * @memberof TagProps
11
9
  */
12
10
  variant: "tag";
13
11
  /**
14
12
  * A handler for a click event triggered on x icon
15
13
  * if not passed then x icon won't be visible
16
- *
17
- * @memberof TagProps
18
14
  */
19
15
  onClose?: () => void;
20
16
  }
21
17
  interface BaseBadgeProps extends CommonProps {
22
18
  /**
23
19
  * The color of the badge.
24
- *
25
- * @memberof BadgeProps
26
20
  */
27
21
  color?: Colors;
28
22
  /**
29
23
  * Specifies whether the badge is subtle or not.
30
24
  * Subtle badges have a light background color wither a darker text color.
31
- *
32
- * @memberof BadgeProps
33
25
  */
34
26
  subtle?: boolean;
35
27
  /**
@@ -37,34 +29,30 @@ interface BaseBadgeProps extends CommonProps {
37
29
  * For the pill variant, numeric values above 99 will be displayed as 99+.
38
30
  * Tag will display x icon if you provide onClose handler.
39
31
  * Badge is subtle by default.
40
- *
41
- * @memberof BadgeProps
42
32
  */
43
33
  variant?: BadgeVariant;
44
34
  /**
45
35
  * Custom classNames can be added to make adjustments where needed.
46
36
  * Example: Set a maximum width of the badge by adding the className "max-w-[your-max-width]" or similar tailwind max-w class.
47
37
  * This will make the badge truncate the text if it is too long.
48
- *
49
- * @memberof BadgeProps
50
38
  */
51
39
  className?: string;
52
40
  /**
53
41
  * Child nodes of the Badge.
54
- *
55
- * @memberof BadgeProps
56
42
  */
57
43
  children?: React.ReactNode;
58
44
  /**
59
45
  * Size of the badge.
60
- *
61
- * @memberof BadgeProps
62
46
  */
63
47
  size?: BadgeSize;
64
48
  }
65
49
  export declare type BadgeProps = BaseBadgeProps | TagProps;
66
50
  /**
67
- * The Badge component us used to display states or similar short form information.
51
+ * The Badge component us used to display states or similar short informative text.
52
+ *
53
+ * _**Do use** badges to show highlighted text based on the state._
54
+ *
55
+ * _**Do not use** badges for regular text in places where it makes no sense to use highlighted text._
68
56
  *
69
57
  * @param {BadgeProps} props - The props for the Badge component
70
58
  * @returns {JSX.Element} Badge component
File without changes
@@ -7,58 +7,42 @@ export interface BaseInputProps extends FilteredInputProps, CommonProps {
7
7
  * An React element to render before the text in the input.
8
8
  * This is typically used to render an icon.
9
9
  * For other elements than icons, please concider using the addonBefore prop.
10
- *
11
- * @memberof BaseInputProps
12
10
  */
13
11
  prefix?: React.ReactNode;
14
12
  /**
15
13
  * An React element to render after the text in the input.
16
14
  * This is typically used to render an icon.
17
15
  * For other elements than icons, please concider using the addonAfter prop.
18
- *
19
- * @memberof BaseInputProps
20
16
  */
21
17
  suffix?: React.ReactNode;
22
18
  /**
23
19
  * An React element to render in a seperate container before the text in the input.
24
20
  * This is typically used to render text.
25
21
  * For icons, please concider using the prefix prop.
26
- *
27
- * @memberof BaseInputProps
28
22
  */
29
23
  addonBefore?: React.ReactNode;
30
24
  /**
31
25
  * An React element to render in a seperate container after the text in the input.
32
26
  * This is typically used to render text.
33
27
  * For icons, please concider using the suffix prop.
34
- *
35
- * @memberof BaseInputProps
36
28
  */
37
29
  addonAfter?: React.ReactNode;
38
30
  /**
39
31
  * An ReactNode to render at the end of the input field befire the addonAfter.
40
32
  * Mainly meant for the icon button actions for special input types.
41
- *
42
- * @memberof BaseInputProps
43
33
  */
44
34
  actions?: React.ReactNode;
45
35
  /**
46
36
  * The size of the input.
47
37
  * Default == 40px, Small == 32px.
48
- *
49
- * @memberof BaseInputProps
50
38
  */
51
39
  fieldSize?: FieldSize;
52
40
  /**
53
41
  * If ture the field is rendered in its invalid state.
54
- *
55
- * @memberof BaseInputProps
56
42
  */
57
43
  isInvalid?: boolean;
58
44
  /**
59
45
  * The Placeholder text for the input.
60
- *
61
- * @memberof BaseInputProps
62
46
  */
63
47
  placeholder?: string;
64
48
  }
File without changes
@@ -9,14 +9,10 @@ export interface CardProps extends CommonProps {
9
9
  onMouseLeave?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
10
10
  /**
11
11
  * Whether the card should have full height or not.
12
- *
13
- * @memberof CardProps
14
12
  */
15
13
  fullHeight?: boolean;
16
14
  /**
17
15
  * Whether the card should overflow contents.
18
- *
19
- * @memberof CardProps
20
16
  */
21
17
  overflow?: Overflow;
22
18
  /**
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { CommonProps, Density } from "../../common/CommonProps";
3
- import { HeadingVariant } from "../heading/Heading";
3
+ import { HeadingVariant } from "../Heading/Heading";
4
4
  interface CardHeaderProps extends CommonProps {
5
5
  /** The text to show in the modal main heading */
6
6
  heading: string;
@@ -6,20 +6,14 @@ interface ContainerProps extends CommonProps {
6
6
  * "compact" = 12px gap and padding.
7
7
  * "comfortable" = 16px gap and padding.
8
8
  * "spacious" = 16px gap, 26px padding.
9
- *
10
- * @memberof ContainerProps
11
9
  */
12
10
  $density?: Density;
13
11
  /**
14
12
  * Set gap to be 0px (not preferable)
15
- *
16
- * @memberof ContainerProps
17
13
  */
18
14
  $disableGap?: boolean;
19
15
  /**
20
16
  * The flex direction of the Card. Defaults to "column".
21
- *
22
- * @memberof ContainerProps
23
17
  */
24
18
  $direction?: "row" | "row-reverse" | "column" | "column-reverse";
25
19
  children?: React.ReactNode;
File without changes
@@ -2,91 +2,63 @@ import * as React from "react";
2
2
  export interface IOptionsType {
3
3
  [key: string]: any;
4
4
  }
5
- export interface IChartProps {
5
+ export interface ChartProps {
6
6
  /**
7
7
  * Option values for EChart.
8
- *
9
- * @memberof IChartProps
10
8
  */
11
9
  options: IOptionsType;
12
10
  /**
13
11
  * Whether or not to low the preloader.
14
- *
15
- * @memberof IChartProps
16
12
  */
17
13
  showLoading?: boolean;
18
14
  /**
19
15
  * onClick event.
20
- *
21
- * @memberof IChartProps
22
16
  */
23
17
  onClick?: (event: any) => void;
24
18
  /**
25
19
  * onDataZoom event.
26
- *
27
- * @memberof IChartProps
28
20
  */
29
21
  onDataZoom?: (event: any) => void;
30
22
  /**
31
23
  * onBrush event.
32
- *
33
- * @memberof IChartProps
34
24
  */
35
25
  onBrush?: (event: any) => void;
36
26
  /**
37
27
  * Event fired when brush is selected.
38
- *
39
- * @memberof IChartProps
40
28
  */
41
29
  onBrushSelected?: (event: any) => void;
42
30
  /**
43
31
  * Event fired when mouse leaves the chart.
44
- *
45
- * @memberof IChartProps
46
32
  */
47
33
  mouseLeaveChart?: () => void;
48
34
  /**
49
35
  * Class values to be passed to the component.
50
- *
51
- * @memberof IChartProps
52
36
  */
53
37
  className?: string;
54
38
  /**
55
39
  * CSS styles for the chart.
56
- *
57
- * @memberof IChartProps
58
40
  */
59
41
  style?: Record<string, string | number>;
60
42
  /**
61
43
  * To denote of chart is ready or not.
62
- *
63
- * @memberof IChartProps
64
44
  */
65
45
  onChartReady?: (chart: any) => void;
66
46
  /**
67
47
  * Whether to merge with previous option.
68
- *
69
- * @memberof IChartProps
70
48
  */
71
49
  merge?: boolean;
72
50
  /**
73
51
  * Values for the loading component.
74
- *
75
- * @memberof IChartProps
76
52
  */
77
53
  loadingOption?: {
78
54
  text: string;
79
55
  };
80
56
  /**
81
57
  * Time-zone label.
82
- *
83
- * @memberof IChartProps
84
58
  */
85
59
  timezoneLabel?: React.ReactNode;
86
60
  /**
87
61
  * Type of rendered used. Either "svg" or "canvas".
88
- *
89
- * @memberof IChartProps
90
62
  */
91
63
  renderer?: "svg" | "canvas";
92
64
  }
@@ -94,7 +66,7 @@ export interface IChartProps {
94
66
  * The Chart component is a wrapper component for ECharts.
95
67
  * Handles events and click functionality.
96
68
  *
97
- * @param {IChartProps} props - The props for the Chart component
69
+ * @param {ChartProps} props - The props for the Chart component
98
70
  * @returns {JSX.Element} Chart component
99
71
  */
100
- export declare const Chart: ({ options, showLoading, className, style, onChartReady, onClick, onDataZoom, onBrush, onBrushSelected, mouseLeaveChart, merge, loadingOption, timezoneLabel, renderer, }: IChartProps) => JSX.Element;
72
+ export declare const Chart: ({ options, showLoading, className, style, onChartReady, onClick, onDataZoom, onBrush, onBrushSelected, mouseLeaveChart, merge, loadingOption, timezoneLabel, renderer, }: ChartProps) => JSX.Element;
File without changes
File without changes
@@ -3,39 +3,27 @@ import { CommonProps } from "../../common/CommonProps";
3
3
  export interface CheckboxProps extends CommonProps, React.InputHTMLAttributes<HTMLInputElement> {
4
4
  /**
5
5
  * A string element to be displayed as a label
6
- *
7
- * @memberof CheckboxProps
8
6
  */
9
7
  label?: React.ReactNode;
10
8
  /**
11
9
  * An boolean flag to set checkbox to disabled state
12
- *
13
- * @memberof CheckboxProps
14
10
  */
15
11
  disabled?: boolean;
16
12
  /**
17
13
  * An boolean flag to set invalid mode
18
14
  * can be used for handling errors
19
- *
20
- * @memberof CheckboxProps
21
15
  */
22
16
  isInvalid?: boolean;
23
17
  /**
24
18
  * An boolean flag to set checkbox to readonly mode
25
- *
26
- * @memberof CheckboxProps
27
19
  */
28
20
  readOnly?: boolean;
29
21
  /**
30
22
  * An string element to be used as input name
31
- *
32
- * @memberof CheckboxProps
33
23
  */
34
24
  name?: string;
35
25
  /**
36
26
  * An boolean flag to set checkbox to intermediate state
37
- *
38
- * @memberof CheckboxProps
39
27
  */
40
28
  indeterminate?: boolean;
41
29
  }
File without changes
@@ -4,26 +4,18 @@ export interface CollapseProps extends CommonProps {
4
4
  id: string;
5
5
  /**
6
6
  * Expands the collapse component during initialization.
7
- *
8
- * @memberof CollapseProps
9
7
  */
10
8
  initialExpanded?: boolean;
11
9
  /**
12
10
  * onToggle event.
13
- *
14
- * @memberof CollapseProps
15
11
  */
16
12
  onToggle?: (event: React.MouseEvent<HTMLDivElement>, expanded: boolean) => void;
17
13
  /**
18
14
  * Child nodes.
19
- *
20
- * @memberof CollapseProps
21
15
  */
22
16
  children: React.ReactNode;
23
17
  /**
24
18
  * Label to be displayed.
25
- *
26
- * @memberof CollapseProps
27
19
  */
28
20
  label: React.ReactNode;
29
21
  }
File without changes
@@ -2,20 +2,14 @@
2
2
  interface CopyableTextProps {
3
3
  /**
4
4
  * The text to be displayed.
5
- *
6
- * @memberof CopyableTextProps
7
5
  */
8
6
  text?: string;
9
7
  /**
10
8
  * Alternative text to be displayed.
11
- *
12
- * @memberof CopyableTextProps
13
9
  */
14
10
  alternativeText?: string;
15
11
  /**
16
12
  * ID of the component to be used while testing.
17
- *
18
- * @memberof CopyableTextProps
19
13
  */
20
14
  dataTestId?: string;
21
15
  }
@@ -1,41 +1,29 @@
1
1
  /// <reference types="react" />
2
2
  import { Matcher } from "react-day-picker";
3
- import { BaseInputProps } from "../baseInput";
3
+ import { BaseInputProps } from "../BaseInput";
4
4
  export interface DateFieldProps extends Pick<BaseInputProps, "placeholder" | "id" | "dataTestId" | "onChange"> {
5
5
  /**
6
6
  * A text label to be displayed next to the indicator
7
- *
8
- * @memberof DateFieldProps
9
7
  */
10
8
  label?: string;
11
9
  /**
12
10
  * A text to be displayed under the input with a short description of field purpose
13
- *
14
- * @memberof DateFieldProps
15
11
  */
16
12
  description?: string;
17
13
  /**
18
14
  * A default value to be displayed by a input field
19
- *
20
- * @memberof DateFieldProps
21
15
  */
22
16
  defaultValue?: string;
23
17
  /**
24
18
  * A flag that can be used to disable the input, default value is false
25
- *
26
- * @memberof DateFieldProps
27
19
  */
28
20
  disabled?: boolean;
29
21
  /**
30
22
  * Specification of dates not allowed to be selected - i the form of react-day-picker matcher
31
- *
32
- * @memberof DateFieldProps
33
23
  */
34
24
  disabledDays?: Matcher | Matcher[] | undefined;
35
25
  /**
36
26
  * A flag that can be set to true to disallow the user to deselect a date. (if false the user can click the selected date to deselect)
37
- *
38
- * @memberof DateFieldProps
39
27
  */
40
28
  preventDeselect?: boolean;
41
29
  }
File without changes
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Matcher } from "react-day-picker";
3
3
  import { ButtonIntent, ButtonSize } from "../buttons";
4
- import { PopoverPlacement } from "../popover";
4
+ import { PopoverPlacement } from "../Popover";
5
5
  export interface DayPickerPopoverProps {
6
6
  disabledDays?: Matcher | Matcher[] | undefined;
7
7
  className?: string;
File without changes
@@ -3,33 +3,23 @@ import { CommonProps } from "../../common";
3
3
  export interface FormGroupProps extends CommonProps {
4
4
  /**
5
5
  * The label for the form group.
6
- *
7
- * @memberof FormGroupProps
8
6
  */
9
7
  label: string | React.ReactNode;
10
8
  /**
11
9
  * Content to display in the tooltip when hovering the ? icon next to the label.
12
- *
13
- * @memberof FormGroupProps
14
10
  */
15
11
  tip?: string | React.ReactNode;
16
12
  /**
17
13
  * A string to display under the input element to help the user understand the input.
18
- *
19
- * @memberof FormGroupProps
20
14
  */
21
15
  helpText?: string;
22
16
  /**
23
17
  * An addon element to render to the right under the input element.
24
18
  * Used for displaying maxLength etc.
25
- *
26
- * @memberof FormGroupProps
27
19
  */
28
20
  helpAddon?: string | React.ReactNode;
29
21
  /**
30
22
  * If true the input is rendered in its invalid state.
31
- *
32
- * @memberof FormGroupProps
33
23
  */
34
24
  isInvalid?: boolean;
35
25
  children?: React.ReactNode;
@@ -4,26 +4,18 @@ export declare type HeadingVariant = "primary" | "secondary" | "tertiary" | "sub
4
4
  export interface HeadingProps extends CommonProps {
5
5
  /**
6
6
  * Child Nodes.
7
- *
8
- * @memberof HeadingProps
9
7
  */
10
8
  children: React.ReactNode;
11
9
  /**
12
10
  * Size of heading.
13
- *
14
- * @memberof HeadingProps
15
11
  */
16
12
  variant: HeadingVariant;
17
13
  /**
18
14
  * Whether the heading uses inverted styles or not.
19
- *
20
- * @memberof HeadingProps
21
15
  */
22
16
  inverted?: boolean;
23
17
  /**
24
18
  * Whether the heading is a subtitle or not.
25
- *
26
- * @memberof HeadingProps
27
19
  */
28
20
  subtle?: boolean;
29
21
  }
File without changes
@@ -6,16 +6,12 @@ export interface IconProps extends CommonProps {
6
6
  /**
7
7
  * The name of the icon to be rendered.
8
8
  * HeroIconName and TrackunitIconName are supported.
9
- *
10
- * @memberof IconProps
11
9
  */
12
10
  name: TrackunitIconName | HeroIconName;
13
11
  /**
14
12
  * The color of the icon.
15
13
  * Supports any colors from the theme.
16
14
  * Custom colors can be used by setting a text color in the className.
17
- *
18
- * @memberof IconProps
19
15
  */
20
16
  color?: Colors;
21
17
  /**
@@ -23,16 +19,12 @@ export interface IconProps extends CommonProps {
23
19
  * Small = 16x16px, Normal = 20x20px, Large = 24x24px.
24
20
  * Default value is Large.
25
21
  * If a custom size is needed, set it in the className.
26
- *
27
- * @memberof IconProps
28
22
  */
29
23
  size?: "small" | "normal" | "large";
30
24
  /**
31
25
  * Select if the icon should be rendered as solid or outline.
32
26
  * Default value depends on the Size prop, small == solid, normal == solid, large == outline.
33
27
  * Trackunit icons might not support both outline and Solid.
34
- *
35
- * @memberof IconProps
36
28
  */
37
29
  type?: "solid" | "outline";
38
30
  onClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;