@kentico/xperience-admin-components 14.0.0-68025 → 14.0.0-87740

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 (144) hide show
  1. package/dist/components/ActionTile/ActionTile.d.ts +3 -0
  2. package/dist/components/ActionTile/ActionTile.types.d.ts +27 -0
  3. package/dist/components/ActionTile/index.d.ts +3 -0
  4. package/dist/components/ApplicationTile/ApplicationTile.types.d.ts +12 -1
  5. package/dist/components/AssetTile/AssetTile.types.d.ts +7 -3
  6. package/dist/components/AssetTile/index.d.ts +1 -1
  7. package/dist/components/Avatar/BaseAvatar.types.d.ts +4 -1
  8. package/dist/components/Avatar/index.d.ts +1 -0
  9. package/dist/components/BarItem/BarItemGroup.d.ts +0 -1
  10. package/dist/components/Buttons/BaseButton/BaseButton.d.ts +0 -1
  11. package/dist/components/Buttons/BaseButton/Button.types.d.ts +4 -1
  12. package/dist/components/Buttons/BaseButton/LinkButton/LinkButton.d.ts +1 -2
  13. package/dist/components/Buttons/ToggleButtons/IconToggleButtons/IconButton/IconButton.d.ts +2 -5
  14. package/dist/components/Buttons/ToggleButtons/IconToggleButtons/IconToggleButtons.types.d.ts +3 -0
  15. package/dist/components/Buttons/ToggleButtons/NameToggleButtons/NameButton/NameButton.d.ts +0 -1
  16. package/dist/components/Buttons/ToggleButtons/NameToggleButtons/NameButton/NameButton.types.d.ts +1 -0
  17. package/dist/components/Buttons/ToggleButtons/Shared/ToggleButtonBase/ToggleButtonBase.d.ts +2 -5
  18. package/dist/components/Buttons/ToggleButtons/Shared/ToggleButtonBase/ToggleButtonBase.types.d.ts +6 -0
  19. package/dist/components/Callout/Callout.types.d.ts +1 -0
  20. package/dist/components/Checkbox/CheckboxTickIcon.d.ts +0 -1
  21. package/dist/components/ConditionBuilder/Condition/Condition.types.d.ts +2 -1
  22. package/dist/components/ConditionBuilder/ConditionGroup/ConditionGroup.types.d.ts +0 -1
  23. package/dist/components/ConditionBuilder/ConditionOperatorSelect/ConditionOperatorSelect.types.d.ts +2 -0
  24. package/dist/components/ConditionBuilder/DeleteButton/DeleteButton.d.ts +5 -0
  25. package/dist/components/ConditionBuilder/DeleteButton/DeleteButtonTypes.d.ts +4 -0
  26. package/dist/components/ConditionBuilder/storybookUtils.d.ts +3 -2
  27. package/dist/components/Containers/Paper/Paper.types.d.ts +2 -1
  28. package/dist/components/Containers/Shelf/Shelf.types.d.ts +4 -0
  29. package/dist/components/Dialog/Dialog.types.d.ts +20 -3
  30. package/dist/components/Dialog/DialogContent/DialogContent.d.ts +0 -1
  31. package/dist/components/Dialog/DialogContent/DialogFooter/DialogFooter.d.ts +0 -1
  32. package/dist/components/Dialog/DialogContent/DialogFooter/DialogFooter.types.d.ts +2 -1
  33. package/dist/components/Dropdown/Dropdown.types.d.ts +3 -2
  34. package/dist/components/Dropdown/DropdownOnClick.d.ts +1 -2
  35. package/dist/components/Dropdown/DropdownOnHover.d.ts +0 -1
  36. package/dist/components/Headline/Headline.types.d.ts +2 -1
  37. package/dist/components/Icons/CustomizedIconExample.d.ts +0 -1
  38. package/dist/components/Icons/IconsLibrary.d.ts +0 -1
  39. package/dist/components/Input/Input.d.ts +2 -2
  40. package/dist/components/Input/InputBase.d.ts +4 -0
  41. package/dist/components/Input/{Input.types.d.ts → InputBase.types.d.ts} +5 -3
  42. package/dist/components/Input/index.d.ts +2 -1
  43. package/dist/components/Layout/Box/Box.types.d.ts +2 -1
  44. package/dist/components/Layout/Column/Column.types.d.ts +3 -1
  45. package/dist/components/Layout/Grid/Grid.types.d.ts +2 -1
  46. package/dist/components/Layout/Inline/Inline.types.d.ts +2 -1
  47. package/dist/components/Layout/Row/Row.types.d.ts +2 -0
  48. package/dist/components/Layout/Stack/Stack.types.d.ts +1 -0
  49. package/dist/components/MenuItem/MenuItem.types.d.ts +2 -1
  50. package/dist/components/MenuItem/MenuItemWithSubmenu.d.ts +0 -1
  51. package/dist/components/OptionTile/OptionTile.types.d.ts +1 -0
  52. package/dist/components/RadioGroup/RadioButton/RadioCircle/RadioCircle.d.ts +0 -1
  53. package/dist/components/RichTextEditor/RichTextEditor.d.ts +3 -0
  54. package/dist/components/RichTextEditor/RichTextEditor.types.d.ts +80 -13
  55. package/dist/components/RichTextEditor/RichTextEditorConfiguration.d.ts +6 -2
  56. package/dist/components/RichTextEditor/index.d.ts +3 -1
  57. package/dist/components/RichTextEditor/plugins/RichTextEditorPlugin.types.d.ts +18 -0
  58. package/dist/components/RichTextEditor/plugins/RichTextEditorPluginLoader.d.ts +2 -0
  59. package/dist/components/RichTextEditor/plugins/index.d.ts +1 -0
  60. package/dist/components/Select/Select.types.d.ts +3 -2
  61. package/dist/components/SelectGroup/SelectGroup.d.ts +3 -0
  62. package/dist/components/SelectGroup/SelectGroup.types.d.ts +15 -0
  63. package/dist/components/SelectGroup/SelectGroupCell.d.ts +3 -0
  64. package/dist/components/SelectGroup/index.d.ts +3 -0
  65. package/dist/components/SideMenu/SideMenu.types.d.ts +3 -4
  66. package/dist/components/SidePanel/SidePanel.types.d.ts +1 -0
  67. package/dist/components/SimpleStatus/SimpleStatus.types.d.ts +3 -0
  68. package/dist/components/Snackbar/SnackbarItem.d.ts +0 -1
  69. package/dist/components/Snackbar/SnackbarProvider.d.ts +0 -1
  70. package/dist/components/Spinner/Spinner.d.ts +5 -0
  71. package/dist/components/Spinner/Spinner.types.d.ts +4 -0
  72. package/dist/components/Spinner/index.d.ts +2 -0
  73. package/dist/components/Storybook/Placeholder.d.ts +1 -1
  74. package/dist/components/Table/SkeletonBody/SkeletonBody.d.ts +0 -1
  75. package/dist/components/Table/Table.types.d.ts +4 -2
  76. package/dist/components/Table/TableHeader/TableHeader.d.ts +1 -2
  77. package/dist/components/Table/TableHeader/TableHeader.types.d.ts +2 -1
  78. package/dist/components/Table/TableHeader/TableHeaderButton.d.ts +5 -0
  79. package/dist/components/Table/TableHeader/TableHeaderButton.types.d.ts +8 -0
  80. package/dist/components/Table/TableRow/CellComponents/ActionCell.d.ts +0 -1
  81. package/dist/components/Table/TableRow/CellComponents/ComponentCell.d.ts +0 -1
  82. package/dist/components/Table/TableRow/CellComponents/NamedComponentCell.d.ts +0 -1
  83. package/dist/components/Table/TableRow/CellComponents/NamedComponents/SimpleStatusTableCellComponent.d.ts +2 -0
  84. package/dist/components/Table/TableRow/CellComponents/NamedComponents/SimpleStatusTableCellComponentProps.d.ts +8 -0
  85. package/dist/components/Table/TableRow/CellComponents/NamedComponents/StringTableCellComponent.d.ts +2 -0
  86. package/dist/components/Table/TableRow/CellComponents/NamedComponents/StringTableCellComponentProps.d.ts +3 -0
  87. package/dist/components/Table/TableRow/CellComponents/NamedComponents/TagTableCellComponent.d.ts +2 -0
  88. package/dist/components/Table/TableRow/CellComponents/NamedComponents/TagTableCellComponentProps.d.ts +5 -0
  89. package/dist/components/Table/TableRow/CellComponents/NamedComponents/index.d.ts +6 -0
  90. package/dist/components/Table/TableRow/CellComponents/StringCell.d.ts +0 -1
  91. package/dist/components/Table/TableRow/TableRow.d.ts +1 -2
  92. package/dist/components/Table/TableRow/TableRow.types.d.ts +2 -1
  93. package/dist/components/Table/index.d.ts +1 -0
  94. package/dist/components/Tag/Tag.types.d.ts +2 -3
  95. package/dist/components/Textarea/Textarea.types.d.ts +4 -2
  96. package/dist/components/Tippy/Tippy.types.d.ts +14 -0
  97. package/dist/components/Tippy/TippyContext.d.ts +4 -0
  98. package/dist/components/Tippy/TippyProvider.d.ts +2 -0
  99. package/dist/components/Tippy/index.d.ts +4 -0
  100. package/dist/components/Tooltip/OptionalTooltip.d.ts +0 -1
  101. package/dist/components/Tooltip/Shortcuts/Shortcuts.d.ts +0 -1
  102. package/dist/components/Tooltip/Tooltip.d.ts +1 -2
  103. package/dist/components/Tooltip/Tooltip.types.d.ts +1 -0
  104. package/dist/components/Tooltip/index.d.ts +1 -0
  105. package/dist/components/Tooltip/tooltip.config.d.ts +4 -0
  106. package/dist/components/Tooltip/utils.d.ts +0 -2
  107. package/dist/components/TreeView/TreeNode.d.ts +7 -2
  108. package/dist/components/TreeView/TreeNodeLeadingIcon.d.ts +3 -0
  109. package/dist/components/TreeView/TreeNodeMenuAction.d.ts +6 -0
  110. package/dist/components/TreeView/TreeNodeMenuActions.d.ts +8 -0
  111. package/dist/components/TreeView/TreeNodeTitle.d.ts +4 -2
  112. package/dist/components/TreeView/TreeNodeTrailingIcon.d.ts +3 -0
  113. package/dist/components/TreeView/TreeView.d.ts +3 -0
  114. package/dist/components/TreeView/TreeView.types.d.ts +162 -12
  115. package/dist/components/TreeView/hooks/useTreeNavigationFocus.d.ts +9 -0
  116. package/dist/components/TreeView/hooks/useTreeNavigationFocus.types.d.ts +14 -0
  117. package/dist/components/TreeView/hooks/useTreeNodeHover.d.ts +9 -0
  118. package/dist/components/TreeView/index.d.ts +4 -1
  119. package/dist/components/UploadTile/UploadTile.d.ts +3 -0
  120. package/dist/components/UploadTile/UploadTile.types.d.ts +34 -0
  121. package/dist/components/UploadTile/index.d.ts +1 -0
  122. package/dist/components/VerticalMenu/ActionMenu/ActionMenu.types.d.ts +1 -1
  123. package/dist/components/VerticalMenu/Common/MenuDropdown/MenuDropdown.d.ts +0 -1
  124. package/dist/components/VerticalMenu/Common/VerticalMenu/VerticalMenu.types.d.ts +4 -2
  125. package/dist/components/index.d.ts +5 -0
  126. package/dist/components/types/UITests.types.d.ts +6 -0
  127. package/dist/components/types/index.d.ts +1 -0
  128. package/dist/entry.js +8 -8
  129. package/dist/hooks/index.d.ts +4 -0
  130. package/dist/hooks/useComponent.d.ts +1 -0
  131. package/dist/hooks/useFocusElementOnMount.d.ts +2 -0
  132. package/dist/hooks/useOnScreenDetect.d.ts +1 -0
  133. package/dist/hooks/useScrollToElementOnMount.d.ts +2 -0
  134. package/dist/hooks/useSliceOverflowingItems.d.ts +8 -0
  135. package/dist/hooks/useWindowDimensions.d.ts +4 -0
  136. package/dist/tokens/colors.d.ts +2 -0
  137. package/dist/tokens/dimensions.d.ts +3 -1
  138. package/dist/tokens/gradientUtils.d.ts +9 -0
  139. package/dist/tokens/index.d.ts +1 -0
  140. package/dist/tokens/zindex.d.ts +14 -0
  141. package/dist/utils/isTextElementHorizontallyOverflowing.d.ts +1 -0
  142. package/dist/utils/isTextElementVerticallyOverflowing.d.ts +1 -0
  143. package/dist/utils/loadModule.d.ts +10 -0
  144. package/package.json +43 -39
@@ -1,40 +1,107 @@
1
1
  import { RefObject } from 'react';
2
2
  import { IconName } from '../Icons';
3
- export interface RichTextEditorProps {
3
+ import { UITestProps } from '../types';
4
+ export interface RichTextEditorProps extends UITestProps {
5
+ /**
6
+ * HTML markup displayed in the editor.
7
+ */
4
8
  readonly value?: string;
9
+ /**
10
+ * Callback to bind a custom handler on a text change.
11
+ * @argument value changed value of HTML markup
12
+ */
5
13
  readonly onChange?: (value?: string) => void;
14
+ /**
15
+ * Indicates if the rich text editor is dsiabled.
16
+ */
6
17
  readonly disabled?: boolean;
18
+ /**
19
+ * Placeholder text.
20
+ */
7
21
  readonly placeholder?: string;
22
+ /**
23
+ * Label.
24
+ */
8
25
  readonly label?: string;
26
+ /**
27
+ * Validation message.
28
+ */
9
29
  readonly validationMessage?: string;
30
+ /**
31
+ * Indicates if the editor is in invalid state.
32
+ */
10
33
  readonly invalid?: boolean;
34
+ /**
35
+ * Tooltip displayed when the editor is disabled.
36
+ */
11
37
  readonly tooltipTextOnDisabled?: string;
38
+ /**
39
+ * Readonly variant RTE.
40
+ */
12
41
  readonly readOnly?: boolean;
13
- readonly customButtons?: RichTextEditorButton[];
42
+ /**
43
+ * Identifier of element where scrollbar should be displayed.
44
+ */
14
45
  readonly scrollableContainerId?: string;
46
+ /**
47
+ * Indicates if the user input is required.
48
+ */
15
49
  readonly markAsRequired?: boolean;
50
+ /**
51
+ * Explanation text for RTE.
52
+ */
16
53
  readonly explanationText?: string;
54
+ /**
55
+ * Tooltip text displayed when label is disabled.
56
+ */
17
57
  readonly labelDisabledTooltip?: string;
58
+ /**
59
+ * Label icon.
60
+ */
18
61
  readonly labelIcon?: IconName;
62
+ /**
63
+ * Tooltip text for label icon.
64
+ */
19
65
  readonly labelIconTooltip?: string;
66
+ /**
67
+ * Rich text editor ref.
68
+ */
20
69
  readonly inputRef?: RefObject<RichTextEditorRef>;
70
+ /**
71
+ * Custom overriding configuration.
72
+ */
73
+ readonly customConfiguration?: object;
74
+ /**
75
+ * Height has higher priority than min-height.
76
+ * If both are set then min-height will always be height.
77
+ * Height, minHeight, maxHeight - for long text options.
78
+ */
79
+ readonly height?: number | string;
80
+ readonly minHeight?: number | string;
81
+ readonly maxHeight?: number | string;
21
82
  }
22
- export interface RichTextEditorButtonIcon {
23
- readonly name: string;
24
- readonly svgKey: string;
25
- }
26
- export interface RichTextEditorButton {
27
- readonly name: string;
28
- readonly title: string;
29
- readonly icon: RichTextEditorButtonIcon;
30
- readonly disabled?: boolean;
31
- readonly disabledTitle?: string;
32
- readonly callback: () => void;
83
+ /**
84
+ * Describes custom plugin added to Rich text editor.
85
+ */
86
+ export interface RichTextEditorCustomPluginConfiguration {
87
+ /**
88
+ * Plugin name (project and component name).
89
+ */
90
+ readonly pluginName: string;
33
91
  }
92
+ /**
93
+ * Ref to provide rich text editor's methods.
94
+ */
34
95
  export interface RichTextEditorRef {
96
+ /**
97
+ * Insert image into the text on current caret position (required).
98
+ */
35
99
  readonly insertImage: (imageUrl: string, imageAttributes: {
36
100
  [key: string]: string;
37
101
  }) => void;
102
+ /**
103
+ * Insert link into the text on current caret position (required).
104
+ */
38
105
  readonly insertLink: (linkUrl: string, linkTitle: string, linkAttributes?: {
39
106
  [key: string]: string;
40
107
  }) => void;
@@ -1,8 +1,11 @@
1
- export declare const getRichTextEditorConfiguration: (events: object, placeholder: string | undefined, scrollableContainerId: string | undefined) => {
1
+ export declare const getRichTextEditorConfiguration: (events: object, placeholder: string | undefined, scrollableContainerId: string | undefined, height: number | string | undefined, minHeight: number | string | undefined, maxHeight: number | string | undefined, customConfiguration: object | undefined) => {
2
+ key: string;
3
+ height: string | number | null;
4
+ heightMin: string | number;
5
+ heightMax: string | number | null;
2
6
  scrollableContainer: string;
3
7
  placeholderText: string | undefined;
4
8
  events: object;
5
- key: string;
6
9
  attribution: boolean;
7
10
  linkEditButtons: string[];
8
11
  linkInsertButtons: string[];
@@ -29,4 +32,5 @@ export declare const getRichTextEditorConfiguration: (events: object, placeholde
29
32
  H5: string;
30
33
  H6: string;
31
34
  };
35
+ customPlugins: never[];
32
36
  };
@@ -1,2 +1,4 @@
1
1
  export { RichTextEditor } from './RichTextEditor';
2
- export type { RichTextEditorProps, RichTextEditorButtonIcon, RichTextEditorButton, RichTextEditorRef } from './RichTextEditor.types';
2
+ export type { RichTextEditorProps, RichTextEditorRef, RichTextEditorCustomPluginConfiguration } from './RichTextEditor.types';
3
+ export * from './plugins';
4
+ export type { RichTextEditorPluginProps } from './plugins';
@@ -0,0 +1,18 @@
1
+ import { RefObject } from 'react';
2
+ import { DefineIconParameters, RegisterCommandParameters } from 'froala-editor';
3
+ import { RichTextEditorRef } from '../RichTextEditor.types';
4
+ export interface RichTextEditorPluginProps {
5
+ readonly componentName: string;
6
+ readonly editorRef?: RefObject<RichTextEditorRef>;
7
+ readonly editorConfigurator: FroalaEditorConfigurator;
8
+ }
9
+ export interface FroalaEditorConfigurator {
10
+ readonly defineIcon: (iconName: string, parameters: Partial<DefineIconParameters>) => void;
11
+ readonly registerCommand: (buttonName: string, parameters: Partial<RegisterCommandParameters>) => void;
12
+ readonly disableButton: (buttonName: string, buttonTitle?: string) => void;
13
+ readonly enableButton: (buttonName: string, buttonTitle?: string) => void;
14
+ }
15
+ export interface FroalaToolbarButtonState {
16
+ readonly buttonTitle?: string;
17
+ readonly buttonEnabled: boolean;
18
+ }
@@ -0,0 +1,2 @@
1
+ import { RichTextEditorPluginProps } from './RichTextEditorPlugin.types';
2
+ export declare const RichTextEditorPluginLoader: (props: RichTextEditorPluginProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export type { RichTextEditorPluginProps } from './RichTextEditorPlugin.types';
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { InputProps } from '../Input';
3
- export interface SelectProps extends Omit<InputProps, 'type' | 'actionElement' | 'onChange'> {
2
+ import { InputBaseProps } from '../Input';
3
+ import { DropdownActionMenuProps } from '../VerticalMenu';
4
+ export interface SelectProps extends Omit<InputBaseProps, 'type' | 'actionElement' | 'onChange'>, Pick<DropdownActionMenuProps, 'maxContentHeight'> {
4
5
  readonly onChange: (value?: string) => void;
5
6
  readonly children: React.ReactNode;
6
7
  }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SelectGroupProps } from './SelectGroup.types';
3
+ export declare function createSelectGroup<Group>(): React.FC<SelectGroupProps<Group>>;
@@ -0,0 +1,15 @@
1
+ import { MouseEventHandler } from 'react';
2
+ import { IconName } from '../Icons';
3
+ export interface SelectGroupProps<SelectShape> {
4
+ readonly selects: SelectShape[];
5
+ readonly minWidth?: number;
6
+ readonly renderSelect: (select: SelectShape, onItemClick: () => void, visible: boolean, index: number) => React.ReactNode;
7
+ }
8
+ export interface SelectGroupCellProps {
9
+ readonly open?: boolean;
10
+ readonly label?: string;
11
+ readonly tooltipText?: string;
12
+ readonly icon?: IconName;
13
+ readonly ellipsis?: boolean;
14
+ readonly onClick?: MouseEventHandler<HTMLElement>;
15
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SelectGroupCellProps } from './SelectGroup.types';
3
+ export declare const SelectGroupCell: React.ForwardRefExoticComponent<SelectGroupCellProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ export { createSelectGroup } from './SelectGroup';
2
+ export { SelectGroupCell } from './SelectGroupCell';
3
+ export type { SelectGroupProps } from './SelectGroup.types';
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
+ import { UITestProps } from '../types';
2
3
  import { SideMenuItemTileProps } from './SideMenuItemTile';
3
- export interface SideMenuItemProps extends Omit<SideMenuItemTileProps, 'state'> {
4
+ export interface SideMenuItemProps extends Omit<SideMenuItemTileProps, 'state'>, UITestProps {
4
5
  readonly id: string;
5
6
  readonly disabled?: boolean;
6
7
  readonly onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
- readonly dataUIName?: string;
8
8
  }
9
- export interface SideMenuProps {
9
+ export interface SideMenuProps extends UITestProps {
10
10
  readonly items: SideMenuItemProps[];
11
11
  readonly selectedId?: string;
12
- readonly dataUIName?: string;
13
12
  }
@@ -11,4 +11,5 @@ export interface SidePanelProps {
11
11
  readonly autofocusCancelButton?: boolean;
12
12
  readonly size: SidePanelSize;
13
13
  readonly isVisible: boolean;
14
+ readonly className?: string;
14
15
  }
@@ -26,6 +26,7 @@ export interface SimpleStatusErrorProps extends Omit<BaseSimpleStatusProps, 'typ
26
26
  readonly iconAlign?: SimpleStatusAlign;
27
27
  readonly tooltipText?: string;
28
28
  readonly tooltipPlacement?: TooltipPlacement;
29
+ readonly tooltipAppendTo?: Element;
29
30
  };
30
31
  }
31
32
  export interface SimpleStatusSuccessProps extends Omit<BaseSimpleStatusProps, 'type' | 'labelColor' | 'iconColor'> {
@@ -38,11 +39,13 @@ declare type Content = {
38
39
  readonly iconName: IconName;
39
40
  readonly tooltipText: string;
40
41
  readonly tooltipPlacement?: TooltipPlacement;
42
+ readonly tooltipAppendTo?: Element;
41
43
  } | {
42
44
  readonly label: string;
43
45
  readonly iconAlign?: SimpleStatusAlign;
44
46
  readonly iconName?: IconName;
45
47
  readonly tooltipText?: string;
46
48
  readonly tooltipPlacement?: TooltipPlacement;
49
+ readonly tooltipAppendTo?: Element;
47
50
  };
48
51
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SnackbarItemProps } from './Snackbar.types';
3
2
  export declare const SnackbarItem: ({ onClose, message, id, duration, variant, position, ...props }: SnackbarItemProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SnackbarProviderProps } from './Snackbar.types';
3
2
  export declare const SnackbarProvider: ({ children, position, verticalSpacing, horizontalSpacing }: SnackbarProviderProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { SpinnerProps } from './Spinner.types';
2
+ export declare const Spinner: {
3
+ ({ className, ...props }: SpinnerProps): JSX.Element;
4
+ displayName: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ import { IconProps } from '../Icons/Icon.types';
2
+ export interface SpinnerProps extends Omit<IconProps, 'name'> {
3
+ className?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export { Spinner } from './Spinner';
2
+ export type { SpinnerProps } from './Spinner.types';
@@ -3,5 +3,5 @@ export interface PlaceholderProps extends React.HTMLProps<HTMLDivElement> {
3
3
  readonly text?: string;
4
4
  readonly width?: number;
5
5
  }
6
- declare const Placeholder: React.ForwardRefExoticComponent<Pick<PlaceholderProps, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "children" | "name" | "onClick" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "size" | "href" | "target" | "download" | "hrefLang" | "media" | "rel" | "list" | "height" | "max" | "method" | "min" | "width" | "crossOrigin" | "key" | "start" | "content" | "default" | "wrap" | "open" | "multiple" | "accept" | "selected" | "step" | "alt" | "autoComplete" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "src" | "rows" | "action" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoPlay" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "mediaGroup" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const Placeholder: React.ForwardRefExoticComponent<Pick<PlaceholderProps, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "name" | "size" | "color" | "disabled" | "tabIndex" | "onClick" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "href" | "target" | "download" | "hrefLang" | "media" | "rel" | "list" | "height" | "max" | "method" | "min" | "width" | "crossOrigin" | "key" | "start" | "content" | "default" | "wrap" | "open" | "multiple" | "accept" | "selected" | "step" | "rows" | "alt" | "autoComplete" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "src" | "action" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoPlay" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "mediaGroup" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode"> & React.RefAttributes<HTMLDivElement>>;
7
7
  export { Placeholder };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SkeletonBodyProps } from './SkeletonBody.types';
3
2
  export declare const SkeletonBody: {
4
3
  ({ rowCount, columns, selectable }: SkeletonBodyProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { UITestProps } from '../types';
1
2
  import { IconName } from '../Icons';
2
3
  declare enum CellType {
3
4
  Action = "action",
@@ -50,15 +51,16 @@ interface ComponentCell extends TableCell {
50
51
  }
51
52
  interface NamedComponentCell extends TableCell {
52
53
  name: string;
53
- value: any;
54
+ componentProps: Record<string, any>;
54
55
  }
55
- interface TableProps {
56
+ interface TableProps extends UITestProps {
56
57
  readonly columns: TableColumn[];
57
58
  readonly rows: TableRow[] | undefined;
58
59
  readonly selectable?: boolean;
59
60
  readonly sortModel?: SortModel;
60
61
  readonly selectRowLabel?: string;
61
62
  readonly selectAllRowsLabel?: string;
63
+ readonly isHeaderVisible?: boolean;
62
64
  readonly onSelectedItemsChange?: (selectedItems: Number[]) => void;
63
65
  readonly onSortChange?: (sortModel: SortModel) => void;
64
66
  readonly onRowClick?: (index: number) => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { TableHeaderProps } from './TableHeader.types';
3
- export declare const TableHeader: ({ selectable, columns, selection, selectLabel, onSortChange, onSelectAll, ...props }: TableHeaderProps) => JSX.Element;
2
+ export declare const TableHeader: ({ selectable, columns, selection, selectLabel, dataTestId, onSortChange, onSelectAll, ...props }: TableHeaderProps) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { TableColumn, SortModel } from '..';
2
- interface TableHeaderProps {
2
+ import { UITestProps } from '../../types';
3
+ interface TableHeaderProps extends UITestProps {
3
4
  readonly columns: TableColumn[];
4
5
  readonly selectable?: boolean;
5
6
  readonly selection?: HeaderSelection;
@@ -0,0 +1,5 @@
1
+ import { TableHeaderButtonProps } from './TableHeaderButton.types';
2
+ export declare const TableHeaderButton: {
3
+ ({ column, onClick, onKeyPress, sortDirection, }: TableHeaderButtonProps): JSX.Element;
4
+ displayName: string;
5
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { SortType, TableColumn } from '../Table.types';
3
+ export interface TableHeaderButtonProps {
4
+ readonly column: TableColumn;
5
+ readonly onClick?: () => void;
6
+ readonly onKeyPress?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
7
+ readonly sortDirection?: SortType;
8
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionCellProps } from './CellComponent.types';
3
2
  export declare const ActionCell: {
4
3
  ({ actions, disabled, onInvokeAction }: ActionCellProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComponentCellProps } from './CellComponent.types';
3
2
  export declare const ComponentCell: {
4
3
  (props: ComponentCellProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NamedComponentCellProps } from './CellComponent.types';
3
2
  export declare const NamedComponentCell: {
4
3
  (props: NamedComponentCellProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SimpleStatusTableCellComponentProps } from './SimpleStatusTableCellComponentProps';
2
+ export declare const SimpleStatusTableCellComponent: ({ iconName, label, iconColor, labelColor }: SimpleStatusTableCellComponentProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IconName } from '../../../../Icons';
2
+ import { Colors } from '../../../../../tokens/colors';
3
+ export interface SimpleStatusTableCellComponentProps {
4
+ readonly iconName: IconName;
5
+ readonly label: string;
6
+ readonly iconColor: keyof typeof Colors;
7
+ readonly labelColor: keyof typeof Colors;
8
+ }
@@ -0,0 +1,2 @@
1
+ import { StringTableCellComponentProps } from './StringTableCellComponentProps';
2
+ export declare const StringTableCellComponent: ({ value }: StringTableCellComponentProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export interface StringTableCellComponentProps {
2
+ readonly value: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ import { TagTableCellComponentProps } from './TagTableCellComponentProps';
2
+ export declare const TagTableCellComponent: ({ gradient, label }: TagTableCellComponentProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Gradients } from '../../../../../tokens/gradients';
2
+ export interface TagTableCellComponentProps {
3
+ readonly label: string;
4
+ readonly gradient: keyof typeof Gradients;
5
+ }
@@ -0,0 +1,6 @@
1
+ export { SimpleStatusTableCellComponent } from './SimpleStatusTableCellComponent';
2
+ export { TagTableCellComponent } from './TagTableCellComponent';
3
+ export { StringTableCellComponent } from './StringTableCellComponent';
4
+ export type { SimpleStatusTableCellComponentProps } from './SimpleStatusTableCellComponentProps';
5
+ export type { TagTableCellComponentProps } from './TagTableCellComponentProps';
6
+ export type { StringTableCellComponentProps } from './StringTableCellComponentProps';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StringCellProps } from './CellComponent.types';
3
2
  export declare const StringCell: {
4
3
  ({ value }: StringCellProps): JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { TableRowProps } from './TableRow.types';
3
2
  declare const TableRow: {
4
- ({ cells, columns, disabled, selectable, selected, skeleton, selectLabel, onRowSelect: onSelect, onRowClick }: TableRowProps): JSX.Element;
3
+ ({ cells, columns, disabled, selectable, selected, skeleton, selectLabel, dataTestId, onRowSelect: onSelect, onRowClick }: TableRowProps): JSX.Element;
5
4
  displayName: string;
6
5
  };
7
6
  export { TableRow };
@@ -1,5 +1,6 @@
1
+ import { UITestProps } from '../../types';
1
2
  import { TableCell as TableCell, TableColumn as TableColumn } from '../Table.types';
2
- interface TableRowProps {
3
+ interface TableRowProps extends UITestProps {
3
4
  readonly cells: TableCell[];
4
5
  readonly columns: TableColumn[];
5
6
  readonly disabled: boolean;
@@ -1,2 +1,3 @@
1
1
  export { Table } from './Table';
2
+ export * from './TableRow/CellComponents/NamedComponents';
2
3
  export * from './Table.types';
@@ -1,6 +1,5 @@
1
1
  import { Gradients } from '../../tokens';
2
2
  export declare type TagBackgroundType = {
3
- readonly isDark: boolean;
4
3
  readonly gradient: Gradients;
5
4
  };
6
5
  export interface TagProps {
@@ -10,6 +9,6 @@ export interface TagProps {
10
9
  readonly onRemoveClick?: () => void;
11
10
  readonly disabled?: boolean;
12
11
  readonly background?: TagBackgroundType;
13
- readonly dataUINameTagButton?: string;
14
- readonly dataUINameRemoveButton?: string;
12
+ readonly dataTestIdTagButton?: string;
13
+ readonly dataTestIdRemoveButton?: string;
15
14
  }
@@ -1,6 +1,7 @@
1
- import { RefObject } from 'react';
1
+ import React, { RefObject } from 'react';
2
2
  import { IconName } from '../Icons';
3
- export interface TextareaProps extends Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'disabled' | 'readOnly' | 'name' | 'onClick' | 'onKeyPress' | 'id' | 'placeholder'> {
3
+ import { UITestProps } from '../types';
4
+ export interface TextareaProps extends Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'disabled' | 'readOnly' | 'name' | 'onClick' | 'onKeyPress' | 'id' | 'placeholder'>, UITestProps {
4
5
  readonly label?: string;
5
6
  readonly validationMessage?: string;
6
7
  readonly invalid?: boolean;
@@ -13,4 +14,5 @@ export interface TextareaProps extends Pick<React.TextareaHTMLAttributes<HTMLTex
13
14
  readonly labelIconTooltip?: string;
14
15
  readonly markAsRequired?: boolean;
15
16
  readonly textAreaRef?: RefObject<HTMLTextAreaElement>;
17
+ readonly renderActions?: () => React.ReactNode;
16
18
  }
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Tippy context values.
4
+ */
5
+ export declare type TippyContextType = {
6
+ containerId: string | undefined;
7
+ };
8
+ /**
9
+ * Tippy context provider properties.
10
+ */
11
+ export interface TippyProviderProps {
12
+ readonly containerId?: string;
13
+ readonly children: React.ReactNode;
14
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TippyContextType } from './Tippy.types';
3
+ export declare const TippyContext: React.Context<TippyContextType>;
4
+ export declare const useTippy: () => HTMLElement | "parent";
@@ -0,0 +1,2 @@
1
+ import { TippyProviderProps } from './Tippy.types';
2
+ export declare const TippyProvider: ({ children, containerId }: TippyProviderProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export { TippyProvider } from './TippyProvider';
2
+ export * from './TippyContext';
3
+ export * from './Tippy.types';
4
+ export * from './TippyProvider';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OptionalTooltipProps } from './Tooltip.types';
3
2
  declare const OptionalTooltip: {
4
3
  ({ customRenderText, text, tooltipText, children, ...restProps }: OptionalTooltipProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ShortcutsProps } from './Shortcuts.types';
3
2
  declare const Shortcuts: {
4
3
  ({ shortcuts }: ShortcutsProps): JSX.Element | null;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { TooltipProps } from './Tooltip.types';
3
2
  declare const Tooltip: {
4
- ({ children, tooltipText, placement, shortcuts, maxGridUnitWidth, withoutShowDelay, visible, disabled, ...props }: TooltipProps): JSX.Element;
3
+ ({ children, tooltipText, placement, shortcuts, maxGridUnitWidth, withoutShowDelay, visible, disabled, appendTo, ...props }: TooltipProps): JSX.Element;
5
4
  displayName: string;
6
5
  };
7
6
  export { Tooltip };
@@ -8,6 +8,7 @@ export interface TooltipProps {
8
8
  readonly withoutShowDelay?: boolean;
9
9
  readonly visible?: boolean;
10
10
  readonly disabled?: boolean;
11
+ readonly appendTo?: Element;
11
12
  }
12
13
  export declare enum TooltipPlacement {
13
14
  Bottom = "bottom",
@@ -2,3 +2,4 @@ export { Tooltip } from './Tooltip';
2
2
  export { OptionalTooltip } from './OptionalTooltip';
3
3
  export type { TooltipProps, OptionalTooltipProps } from './Tooltip.types';
4
4
  export { TooltipPlacement } from './Tooltip.types';
5
+ export { default as tooltipConfig } from './tooltip.config';
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ containerId: string;
3
+ };
4
+ export default _default;
@@ -1,5 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { TooltipPlacement } from './Tooltip.types';
3
3
  export declare const getArrowIcon: (position: TooltipPlacement) => ({ ref: svgRef, ...props }: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
4
- export declare const isTextElementVerticallyOverflowing: (element: HTMLElement | undefined | null) => boolean;
5
- export declare const isTextElementHorizontallyOverflowing: (element: HTMLElement | undefined | null) => boolean;