@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,3 +1,8 @@
1
- import React from 'react';
2
1
  import { TreeNodeProps } from './TreeView.types';
3
- export declare const TreeNode: React.ForwardRefExoticComponent<TreeNodeProps & React.RefAttributes<HTMLLIElement>>;
2
+ /**
3
+ * Tree node component.
4
+ */
5
+ export declare const TreeNode: {
6
+ ({ nodeIdentifier, children, level, renderNode, renderTrailing, loading, onNodeToggle, onNodeClick, isExpanded, dataTestIdNode, dataTestIdNodeChildren, dataTestIdNodeRow, isToggleable, isSelectable, toggleDisabled, disabled, ...props }: TreeNodeProps): JSX.Element;
7
+ displayName: string;
8
+ };
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TreeNodeLeadingIconProps } from './TreeView.types';
3
+ /**
4
+ * Tree node leading icon component.
5
+ */
3
6
  export declare const TreeNodeLeadingIcon: React.ForwardRefExoticComponent<TreeNodeLeadingIconProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { TreeNodeMenuActionProps } from './TreeView.types';
3
+ /**
4
+ * Tree node menu action component.
5
+ */
6
+ export declare const TreeNodeMenuAction: React.ForwardRefExoticComponent<TreeNodeMenuActionProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import { TreeNodeMenuActionsProps } from './TreeView.types';
2
+ /**
3
+ * Tree node menu actions component.
4
+ */
5
+ export declare const TreeNodeMenuActions: {
6
+ ({ title, disabled, isOpen, dataTestIdMenu, dataTestIdMenuButton, onToggle, children }: TreeNodeMenuActionsProps): JSX.Element;
7
+ displayName: string;
8
+ };
@@ -1,3 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { TreeNodeTitleProps } from './TreeView.types';
3
- export declare const TreeNodeTitle: (props: TreeNodeTitleProps) => JSX.Element;
2
+ /**
3
+ * Tree node title component.
4
+ */
5
+ export declare const TreeNodeTitle: ({ isSelected, disabled, children, dataTestId, ...props }: TreeNodeTitleProps) => JSX.Element;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TreeNodeTrailingIconProps } from './TreeView.types';
3
+ /**
4
+ * Tree node trailing icon component.
5
+ */
3
6
  export declare const TreeNodeTrailingIcon: React.ForwardRefExoticComponent<TreeNodeTrailingIconProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TreeViewProps } from './TreeView.types';
3
+ /**
4
+ * Tree view component.
5
+ */
3
6
  export declare const TreeView: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<HTMLUListElement>>;
@@ -1,32 +1,182 @@
1
1
  /// <reference types="react" />
2
- export interface TreeViewProps {
3
- readonly selected?: string;
2
+ import { UITestProps } from '../types';
3
+ export interface TreeViewProps extends UITestProps {
4
+ /**
5
+ * Identifier of the selected node.
6
+ */
7
+ readonly selectedIdentifier?: string;
8
+ /**
9
+ * Children components of the tree.
10
+ */
4
11
  readonly children: React.ReactNode;
5
- readonly dataUINameTree?: string;
12
+ /**
13
+ * Name of the CSS class passed to the tree element.
14
+ */
15
+ readonly className?: string;
6
16
  }
7
17
  export interface TreeNodeProps {
18
+ /**
19
+ * Indicates level of nesting of this node.
20
+ */
8
21
  readonly level: number;
9
- readonly nodeId: string;
10
- readonly onToggleClick?: (val: boolean) => void;
11
- readonly onNodeClick?: (id: string) => void;
22
+ /**
23
+ * Identifier of the node.
24
+ */
25
+ readonly nodeIdentifier: string;
26
+ /**
27
+ * Event fired when the node state is toggled.
28
+ * @param isExpanded Indicates if node is currently expanded.
29
+ */
30
+ readonly onNodeToggle?: (isExpanded: boolean) => void;
31
+ /**
32
+ * Event fired when the node is clicked.
33
+ * @param identifier ID of the clicked node.
34
+ */
35
+ readonly onNodeClick?: (identifier: string) => void;
36
+ /**
37
+ * Direct children nodes of the current node.
38
+ */
12
39
  readonly children?: React.ReactNode;
40
+ /**
41
+ * Indicates if node is in the loading state. Defaults to `false`.
42
+ */
13
43
  readonly loading?: boolean;
14
- readonly isOpened?: boolean;
15
- readonly disableCollapse?: boolean;
44
+ /**
45
+ * Indicates if node is expanded. Defaults to `false`.
46
+ */
47
+ readonly isExpanded?: boolean;
48
+ /**
49
+ * Indicates if node can be toggled. Defaults to `true`.
50
+ */
51
+ readonly isToggleable?: boolean;
52
+ /**
53
+ * Indicates if node can be selected. Defaults to `true`.
54
+ */
55
+ readonly isSelectable?: boolean;
56
+ /**
57
+ * Indicates if node can be toggled. Defaults to `false`.
58
+ */
59
+ readonly toggleDisabled?: boolean;
60
+ /**
61
+ * Function to render main part of the node. Components rendered with this function are wrapped by element ensuring proper background color when node is selected, hovered or disabled.
62
+ * @param isNodeSelected Indicates if node is currently selected.
63
+ */
16
64
  readonly renderNode: (isNodeSelected: boolean) => React.ReactNode;
17
- readonly dataUINameNode?: string;
18
- readonly dataUINameNodeChildren?: string;
65
+ /**
66
+ * Function to render trailing sticky part of the node. Ensures only proper position of rendered components.
67
+ * @param nodeRef Reference to the node HTML element.
68
+ * @param isNodeSelected Indicates if node is currently selected.
69
+ * @param isNodeHovered Indicates if node is currently hovered.
70
+ * @param onActionableclick Event to fire when actionable element is clicked to notify the tree node component.
71
+ */
72
+ readonly renderTrailing?: (nodeRef: Element | null, isNodeSelected: boolean, isNodeHovered: boolean, onActionableClick: () => void) => React.ReactNode;
73
+ /**
74
+ * Indicates if node is disabled. Defaults to `false`.
75
+ */
76
+ readonly disabled?: boolean;
77
+ /**
78
+ * Test-id attribute of the current node.
79
+ */
80
+ readonly dataTestIdNode?: string;
81
+ /**
82
+ * Test-id of the row of the node.
83
+ */
84
+ readonly dataTestIdNodeRow?: string;
85
+ /**
86
+ * Test-id attribute of the node's children.
87
+ */
88
+ readonly dataTestIdNodeChildren?: string;
19
89
  }
20
- interface TreeNodeContentSharedProps {
90
+ interface TreeNodeContentSharedProps extends UITestProps {
91
+ /**
92
+ * Indicates if current node is selected. Defaults to `false`.
93
+ */
21
94
  readonly isSelected: boolean;
95
+ /**
96
+ * Indicates if current node is disabled. Defaults to `false`.
97
+ */
98
+ readonly disabled?: boolean;
22
99
  }
23
100
  export interface TreeNodeLeadingIconProps extends TreeNodeContentSharedProps {
101
+ /**
102
+ * Children component.
103
+ */
24
104
  readonly children: React.ReactNode;
25
105
  }
26
106
  export interface TreeNodeTitleProps extends TreeNodeContentSharedProps {
107
+ /**
108
+ * Tree node title string.
109
+ */
27
110
  readonly children: string;
28
111
  }
29
- export interface TreeNodeTrailingIconProps extends TreeNodeContentSharedProps {
112
+ export interface TreeNodeTrailingIconProps extends UITestProps {
113
+ /**
114
+ * Children component.
115
+ */
30
116
  readonly children: React.ReactNode;
117
+ /**
118
+ * Indicates if icon is disabled. Defaults to `false`.
119
+ */
120
+ readonly disabled?: boolean;
121
+ }
122
+ export interface TreeNodeMenuActionsProps {
123
+ /**
124
+ * Title of the actions button.
125
+ */
126
+ readonly title: string;
127
+ /**
128
+ * Indicates if the actions button is disabled. Defaults to `false`.
129
+ */
130
+ readonly disabled?: boolean;
131
+ /**
132
+ * Indicates if the menu is opened. Defaults to `false`.
133
+ */
134
+ readonly isOpen: boolean;
135
+ /**
136
+ * Event fired when menu is toggled.
137
+ * @param isOpen Indicates if the menu is opened.
138
+ */
139
+ readonly onToggle?: (isOpen: boolean) => void;
140
+ /**
141
+ * Children component.
142
+ */
143
+ readonly children: React.ReactNode;
144
+ /**
145
+ * Test-id attribute of the menu.
146
+ */
147
+ readonly dataTestIdMenu?: string;
148
+ /**
149
+ * Test-id attribute of the menus button.
150
+ */
151
+ readonly dataTestIdMenuButton?: string;
152
+ }
153
+ export interface TreeNodeMenuActionProps extends UITestProps {
154
+ /**
155
+ * Label of the action.
156
+ */
157
+ readonly label: string;
158
+ /**
159
+ * Indicates if the action is disabled. Defaults to `false`.
160
+ */
161
+ readonly disabled?: boolean;
162
+ /**
163
+ * Event fired on action click.
164
+ */
165
+ readonly onClick: () => void;
166
+ }
167
+ export interface TreeNodeAction {
168
+ /**
169
+ * Label of the action.
170
+ */
171
+ readonly label: string;
172
+ /**
173
+ * Indicates if the action is disabled. Defaults to `false`.
174
+ */
175
+ readonly disabled?: boolean;
176
+ /**
177
+ * Event handler fired when action of certain type is executed.
178
+ * @param action Action that was executed.
179
+ */
180
+ readonly actionExecutor: (action: TreeNodeAction) => void;
31
181
  }
32
182
  export {};
@@ -0,0 +1,9 @@
1
+ import { TreeNodeAction } from '../TreeView.types';
2
+ import { UseTreeNavigationFocusProps } from './useTreeNavigationFocus.types';
3
+ /**
4
+ * Handles focus in the tree navigation.
5
+ */
6
+ export declare const useTreeNavigationFocus: ({ onFocus, onBlur, isNavigationOpened }: UseTreeNavigationFocusProps) => {
7
+ initNavigationFocus: (actions: TreeNodeAction[], currentlyFocusedElement: HTMLElement) => void;
8
+ navigationButtonElement: HTMLElement | undefined;
9
+ };
@@ -0,0 +1,14 @@
1
+ export interface UseTreeNavigationFocusProps {
2
+ /**
3
+ * Function that is called when the navigation gains focus.
4
+ */
5
+ readonly onFocus: () => void;
6
+ /**
7
+ * Function that is called when the navigation looses focus.
8
+ */
9
+ readonly onBlur: () => void;
10
+ /**
11
+ * Indicates if the navigation is opened and focus is handled in this hook.
12
+ */
13
+ readonly isNavigationOpened: boolean;
14
+ }
@@ -0,0 +1,9 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * Simplified hook for node hover to ensure correct hover even for the node menu.
4
+ */
5
+ export declare function useTreeNodeHover(): {
6
+ hoverProps: HTMLAttributes<HTMLElement>;
7
+ isHovered: boolean;
8
+ removeHover: () => void;
9
+ };
@@ -1,6 +1,9 @@
1
1
  export { TreeView } from './TreeView';
2
- export type { TreeViewProps, TreeNodeProps, TreeNodeLeadingIconProps, TreeNodeTitleProps, TreeNodeTrailingIconProps } from './TreeView.types';
2
+ export type { TreeViewProps, TreeNodeProps, TreeNodeLeadingIconProps, TreeNodeTitleProps, TreeNodeTrailingIconProps, TreeNodeMenuActionsProps, TreeNodeMenuActionProps, TreeNodeAction } from './TreeView.types';
3
3
  export { TreeNode } from './TreeNode';
4
4
  export { TreeNodeLeadingIcon } from './TreeNodeLeadingIcon';
5
5
  export { TreeNodeTitle } from './TreeNodeTitle';
6
6
  export { TreeNodeTrailingIcon } from './TreeNodeTrailingIcon';
7
+ export { TreeNodeMenuActions } from './TreeNodeMenuActions';
8
+ export { TreeNodeMenuAction } from './TreeNodeMenuAction';
9
+ export { useTreeNavigationFocus } from './hooks/useTreeNavigationFocus';
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
2
  import { UploadTileProps } from './UploadTile.types';
3
+ /**
4
+ * Upload tile component.
5
+ */
3
6
  export declare const UploadTile: React.ForwardRefExoticComponent<UploadTileProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,42 @@
1
+ /**
2
+ * Indicates the size of the upload tile
3
+ */
4
+ export declare enum UploadTileSize {
5
+ Full = "Full",
6
+ Compact = "Compact"
7
+ }
1
8
  export interface UploadTileProps {
9
+ /**
10
+ * Event handler fired when file is being uploaded.
11
+ * @param files list of uploaded files.
12
+ */
2
13
  readonly onUpload: (files: FileList) => void;
14
+ /**
15
+ * Text displayed in the first line of the label.
16
+ */
3
17
  readonly firstLineLabel: string;
18
+ /**
19
+ * Text displayed in the second line of the label.
20
+ */
4
21
  readonly secondLineLabel: string;
22
+ /**
23
+ * Text displayed in button label.
24
+ */
5
25
  readonly buttonLabel: string;
26
+ /**
27
+ * Indicates if the upload tile is disabled. Defaults to `false`.
28
+ */
6
29
  readonly disabled?: boolean;
30
+ /**
31
+ * Indicates if the tooltip is disabled. Defaults to `false`.
32
+ */
7
33
  readonly disabledTooltip?: string;
34
+ /**
35
+ * Size of the upload tile.
36
+ */
37
+ readonly size: UploadTileSize;
38
+ /**
39
+ * File types which tile should accept
40
+ */
41
+ readonly acceptFiles?: string;
8
42
  }
@@ -1,2 +1,3 @@
1
1
  export { UploadTile } from './UploadTile';
2
+ export { UploadTileSize } from './UploadTile.types';
2
3
  export type { UploadTileProps } from './UploadTile.types';
@@ -1,5 +1,5 @@
1
1
  import { VerticalMenuProps } from '../Common/VerticalMenu';
2
- export interface ActionMenuProps extends Omit<VerticalMenuProps, 'menuType' | 'pinnedItem'> {
2
+ export interface ActionMenuProps extends Omit<VerticalMenuProps, 'pinnedItem'> {
3
3
  }
4
4
  export interface ActionMenuHeadlineProps {
5
5
  readonly label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuDropdownProps } from './MenuDropdown.types';
3
2
  declare const MenuDropdown: {
4
3
  (props: MenuDropdownProps): JSX.Element;
@@ -1,10 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  export declare enum VerticalMenuType {
3
3
  ActionMenu = "action-menu",
4
- SelectMenu = "select-menu"
4
+ SelectMenu = "select-menu",
5
+ SelectGroupMenu = "select-group-menu"
5
6
  }
6
7
  export interface VerticalMenuProps {
7
8
  readonly pinnedItem?: () => React.ReactNode;
8
- readonly menuType: VerticalMenuType;
9
+ readonly menuType?: VerticalMenuType;
9
10
  readonly children: React.ReactNode;
11
+ readonly maxContentHeight?: string;
10
12
  }
@@ -40,3 +40,8 @@ export * from './RadioGroup';
40
40
  export * from './NotificationBar';
41
41
  export * from './FormItemWrapper';
42
42
  export * from './Breadcrumbs';
43
+ export * from './Spinner';
44
+ export * from './ActionTile';
45
+ export * from './SelectGroup';
46
+ export * from './Tippy';
47
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ export interface UITestProps {
2
+ /**
3
+ * Test id data attribute.
4
+ */
5
+ readonly dataTestId?: string;
6
+ }
@@ -0,0 +1 @@
1
+ export type { UITestProps } from './UITests.types';