@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.
- package/dist/components/ActionTile/ActionTile.d.ts +3 -0
- package/dist/components/ActionTile/ActionTile.types.d.ts +27 -0
- package/dist/components/ActionTile/index.d.ts +3 -0
- package/dist/components/ApplicationTile/ApplicationTile.types.d.ts +12 -1
- package/dist/components/AssetTile/AssetTile.types.d.ts +7 -3
- package/dist/components/AssetTile/index.d.ts +1 -1
- package/dist/components/Avatar/BaseAvatar.types.d.ts +4 -1
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/BarItem/BarItemGroup.d.ts +0 -1
- package/dist/components/Buttons/BaseButton/BaseButton.d.ts +0 -1
- package/dist/components/Buttons/BaseButton/Button.types.d.ts +4 -1
- package/dist/components/Buttons/BaseButton/LinkButton/LinkButton.d.ts +1 -2
- package/dist/components/Buttons/ToggleButtons/IconToggleButtons/IconButton/IconButton.d.ts +2 -5
- package/dist/components/Buttons/ToggleButtons/IconToggleButtons/IconToggleButtons.types.d.ts +3 -0
- package/dist/components/Buttons/ToggleButtons/NameToggleButtons/NameButton/NameButton.d.ts +0 -1
- package/dist/components/Buttons/ToggleButtons/NameToggleButtons/NameButton/NameButton.types.d.ts +1 -0
- package/dist/components/Buttons/ToggleButtons/Shared/ToggleButtonBase/ToggleButtonBase.d.ts +2 -5
- package/dist/components/Buttons/ToggleButtons/Shared/ToggleButtonBase/ToggleButtonBase.types.d.ts +6 -0
- package/dist/components/Callout/Callout.types.d.ts +1 -0
- package/dist/components/Checkbox/CheckboxTickIcon.d.ts +0 -1
- package/dist/components/ConditionBuilder/Condition/Condition.types.d.ts +2 -1
- package/dist/components/ConditionBuilder/ConditionGroup/ConditionGroup.types.d.ts +0 -1
- package/dist/components/ConditionBuilder/ConditionOperatorSelect/ConditionOperatorSelect.types.d.ts +2 -0
- package/dist/components/ConditionBuilder/DeleteButton/DeleteButton.d.ts +5 -0
- package/dist/components/ConditionBuilder/DeleteButton/DeleteButtonTypes.d.ts +4 -0
- package/dist/components/ConditionBuilder/storybookUtils.d.ts +3 -2
- package/dist/components/Containers/Paper/Paper.types.d.ts +2 -1
- package/dist/components/Containers/Shelf/Shelf.types.d.ts +4 -0
- package/dist/components/Dialog/Dialog.types.d.ts +20 -3
- package/dist/components/Dialog/DialogContent/DialogContent.d.ts +0 -1
- package/dist/components/Dialog/DialogContent/DialogFooter/DialogFooter.d.ts +0 -1
- package/dist/components/Dialog/DialogContent/DialogFooter/DialogFooter.types.d.ts +2 -1
- package/dist/components/Dropdown/Dropdown.types.d.ts +3 -2
- package/dist/components/Dropdown/DropdownOnClick.d.ts +1 -2
- package/dist/components/Dropdown/DropdownOnHover.d.ts +0 -1
- package/dist/components/Headline/Headline.types.d.ts +2 -1
- package/dist/components/Icons/CustomizedIconExample.d.ts +0 -1
- package/dist/components/Icons/IconsLibrary.d.ts +0 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/InputBase.d.ts +4 -0
- package/dist/components/Input/{Input.types.d.ts → InputBase.types.d.ts} +5 -3
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/Layout/Box/Box.types.d.ts +2 -1
- package/dist/components/Layout/Column/Column.types.d.ts +3 -1
- package/dist/components/Layout/Grid/Grid.types.d.ts +2 -1
- package/dist/components/Layout/Inline/Inline.types.d.ts +2 -1
- package/dist/components/Layout/Row/Row.types.d.ts +2 -0
- package/dist/components/Layout/Stack/Stack.types.d.ts +1 -0
- package/dist/components/MenuItem/MenuItem.types.d.ts +2 -1
- package/dist/components/MenuItem/MenuItemWithSubmenu.d.ts +0 -1
- package/dist/components/OptionTile/OptionTile.types.d.ts +1 -0
- package/dist/components/RadioGroup/RadioButton/RadioCircle/RadioCircle.d.ts +0 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/dist/components/RichTextEditor/RichTextEditor.types.d.ts +80 -13
- package/dist/components/RichTextEditor/RichTextEditorConfiguration.d.ts +6 -2
- package/dist/components/RichTextEditor/index.d.ts +3 -1
- package/dist/components/RichTextEditor/plugins/RichTextEditorPlugin.types.d.ts +18 -0
- package/dist/components/RichTextEditor/plugins/RichTextEditorPluginLoader.d.ts +2 -0
- package/dist/components/RichTextEditor/plugins/index.d.ts +1 -0
- package/dist/components/Select/Select.types.d.ts +3 -2
- package/dist/components/SelectGroup/SelectGroup.d.ts +3 -0
- package/dist/components/SelectGroup/SelectGroup.types.d.ts +15 -0
- package/dist/components/SelectGroup/SelectGroupCell.d.ts +3 -0
- package/dist/components/SelectGroup/index.d.ts +3 -0
- package/dist/components/SideMenu/SideMenu.types.d.ts +3 -4
- package/dist/components/SidePanel/SidePanel.types.d.ts +1 -0
- package/dist/components/SimpleStatus/SimpleStatus.types.d.ts +3 -0
- package/dist/components/Snackbar/SnackbarItem.d.ts +0 -1
- package/dist/components/Snackbar/SnackbarProvider.d.ts +0 -1
- package/dist/components/Spinner/Spinner.d.ts +5 -0
- package/dist/components/Spinner/Spinner.types.d.ts +4 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Storybook/Placeholder.d.ts +1 -1
- package/dist/components/Table/SkeletonBody/SkeletonBody.d.ts +0 -1
- package/dist/components/Table/Table.types.d.ts +4 -2
- package/dist/components/Table/TableHeader/TableHeader.d.ts +1 -2
- package/dist/components/Table/TableHeader/TableHeader.types.d.ts +2 -1
- package/dist/components/Table/TableHeader/TableHeaderButton.d.ts +5 -0
- package/dist/components/Table/TableHeader/TableHeaderButton.types.d.ts +8 -0
- package/dist/components/Table/TableRow/CellComponents/ActionCell.d.ts +0 -1
- package/dist/components/Table/TableRow/CellComponents/ComponentCell.d.ts +0 -1
- package/dist/components/Table/TableRow/CellComponents/NamedComponentCell.d.ts +0 -1
- package/dist/components/Table/TableRow/CellComponents/NamedComponents/SimpleStatusTableCellComponent.d.ts +2 -0
- package/dist/components/Table/TableRow/CellComponents/NamedComponents/SimpleStatusTableCellComponentProps.d.ts +8 -0
- package/dist/components/Table/TableRow/CellComponents/NamedComponents/StringTableCellComponent.d.ts +2 -0
- package/dist/components/Table/TableRow/CellComponents/NamedComponents/StringTableCellComponentProps.d.ts +3 -0
- package/dist/components/Table/TableRow/CellComponents/NamedComponents/TagTableCellComponent.d.ts +2 -0
- package/dist/components/Table/TableRow/CellComponents/NamedComponents/TagTableCellComponentProps.d.ts +5 -0
- package/dist/components/Table/TableRow/CellComponents/NamedComponents/index.d.ts +6 -0
- package/dist/components/Table/TableRow/CellComponents/StringCell.d.ts +0 -1
- package/dist/components/Table/TableRow/TableRow.d.ts +1 -2
- package/dist/components/Table/TableRow/TableRow.types.d.ts +2 -1
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Tag/Tag.types.d.ts +2 -3
- package/dist/components/Textarea/Textarea.types.d.ts +4 -2
- package/dist/components/Tippy/Tippy.types.d.ts +14 -0
- package/dist/components/Tippy/TippyContext.d.ts +4 -0
- package/dist/components/Tippy/TippyProvider.d.ts +2 -0
- package/dist/components/Tippy/index.d.ts +4 -0
- package/dist/components/Tooltip/OptionalTooltip.d.ts +0 -1
- package/dist/components/Tooltip/Shortcuts/Shortcuts.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -2
- package/dist/components/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/tooltip.config.d.ts +4 -0
- package/dist/components/Tooltip/utils.d.ts +0 -2
- package/dist/components/TreeView/TreeNode.d.ts +7 -2
- package/dist/components/TreeView/TreeNodeLeadingIcon.d.ts +3 -0
- package/dist/components/TreeView/TreeNodeMenuAction.d.ts +6 -0
- package/dist/components/TreeView/TreeNodeMenuActions.d.ts +8 -0
- package/dist/components/TreeView/TreeNodeTitle.d.ts +4 -2
- package/dist/components/TreeView/TreeNodeTrailingIcon.d.ts +3 -0
- package/dist/components/TreeView/TreeView.d.ts +3 -0
- package/dist/components/TreeView/TreeView.types.d.ts +162 -12
- package/dist/components/TreeView/hooks/useTreeNavigationFocus.d.ts +9 -0
- package/dist/components/TreeView/hooks/useTreeNavigationFocus.types.d.ts +14 -0
- package/dist/components/TreeView/hooks/useTreeNodeHover.d.ts +9 -0
- package/dist/components/TreeView/index.d.ts +4 -1
- package/dist/components/UploadTile/UploadTile.d.ts +3 -0
- package/dist/components/UploadTile/UploadTile.types.d.ts +34 -0
- package/dist/components/UploadTile/index.d.ts +1 -0
- package/dist/components/VerticalMenu/ActionMenu/ActionMenu.types.d.ts +1 -1
- package/dist/components/VerticalMenu/Common/MenuDropdown/MenuDropdown.d.ts +0 -1
- package/dist/components/VerticalMenu/Common/VerticalMenu/VerticalMenu.types.d.ts +4 -2
- package/dist/components/index.d.ts +5 -0
- package/dist/components/types/UITests.types.d.ts +6 -0
- package/dist/components/types/index.d.ts +1 -0
- package/dist/entry.js +8 -8
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useComponent.d.ts +1 -0
- package/dist/hooks/useFocusElementOnMount.d.ts +2 -0
- package/dist/hooks/useOnScreenDetect.d.ts +1 -0
- package/dist/hooks/useScrollToElementOnMount.d.ts +2 -0
- package/dist/hooks/useSliceOverflowingItems.d.ts +8 -0
- package/dist/hooks/useWindowDimensions.d.ts +4 -0
- package/dist/tokens/colors.d.ts +2 -0
- package/dist/tokens/dimensions.d.ts +3 -1
- package/dist/tokens/gradientUtils.d.ts +9 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/zindex.d.ts +14 -0
- package/dist/utils/isTextElementHorizontallyOverflowing.d.ts +1 -0
- package/dist/utils/isTextElementVerticallyOverflowing.d.ts +1 -0
- package/dist/utils/loadModule.d.ts +10 -0
- package/package.json +43 -39
|
@@ -1,40 +1,107 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { IconName } from '../Icons';
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
readonly
|
|
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,
|
|
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 @@
|
|
|
1
|
+
export type { RichTextEditorPluginProps } from './RichTextEditorPlugin.types';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
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,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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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 {};
|
|
@@ -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" | "
|
|
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,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
|
-
|
|
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
|
-
|
|
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,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
|
+
}
|
|
@@ -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,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,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,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
|
|
14
|
-
readonly
|
|
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
|
-
|
|
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
|
+
}
|
|
@@ -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 };
|
|
@@ -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';
|
|
@@ -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;
|