@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.
Files changed (107) 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 +3 -31
  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 +7 -9
  36. package/components/{indicator → Indicator}/Indicator.d.ts +0 -0
  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 +1 -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 +0 -0
  78. package/components/{spinner → Spinner}/index.d.ts +0 -0
  79. package/components/Tag/Tag.d.ts +44 -0
  80. package/components/Tag/index.d.ts +1 -0
  81. package/components/{text → Text}/Text.d.ts +0 -20
  82. package/components/{text → Text}/index.d.ts +0 -0
  83. package/components/{textArea → TextArea}/TextArea.d.ts +0 -0
  84. package/components/{textArea → TextArea}/index.d.ts +0 -0
  85. package/components/{textField → TextField}/TextField.d.ts +1 -5
  86. package/components/{textField → TextField}/TextLenghtIndicator.d.ts +0 -0
  87. package/components/{textField → TextField}/index.d.ts +0 -0
  88. package/components/TextInput/TextInput.d.ts +1 -1
  89. package/components/{tip → Tip}/Tip.d.ts +2 -4
  90. package/components/{tip → Tip}/index.d.ts +0 -0
  91. package/components/{toggle → Toggle}/Toggle.d.ts +0 -0
  92. package/components/{toggle → Toggle}/index.d.ts +0 -0
  93. package/components/{tooltip → Tooltip}/Tooltip.d.ts +2 -20
  94. package/components/{tooltip → Tooltip}/index.d.ts +0 -0
  95. package/components/buttons/{button → Button}/Button.d.ts +0 -12
  96. package/components/buttons/{icon-button → IconButton}/IconButton.d.ts +0 -6
  97. package/components/buttons/{star-button → StarButton}/StarButton.d.ts +0 -0
  98. package/components/buttons/index.d.ts +3 -3
  99. package/components/buttons/shared/ButtonProps.d.ts +0 -14
  100. package/components/buttons/shared/helpers.d.ts +1 -1
  101. package/components/index.d.ts +34 -33
  102. package/index.js +121 -52
  103. package/layout/helper/MinTopFullContentLayout.d.ts +3 -3
  104. package/layout/responsive/FilterListMapLayout.d.ts +3 -3
  105. package/layout/responsive/FullWidthRepeatingLayout.d.ts +3 -3
  106. package/layout/responsive/IntrinsicallyResponsiveGrid.d.ts +3 -3
  107. 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
@@ -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,12 +1,10 @@
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
  }
@@ -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
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 "../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
  }
File without changes
@@ -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