@plesk/ui-library 3.35.6 → 3.35.8
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/cjs/components/AutoClosable/AutoClosable.js +1 -0
- package/cjs/components/InputNumber/InputNumber.js +2 -2
- package/cjs/components/Item/Item.js +64 -153
- package/cjs/components/Overlay/Overlay.js +35 -25
- package/cjs/components/Popover/Popover.js +1 -1
- package/cjs/components/SegmentedControl/SegmentedControl.js +1 -0
- package/cjs/components/Tabs/SearchBar.js +40 -147
- package/cjs/components/Tabs/Tab.js +2 -49
- package/cjs/components/Tabs/Tabs.js +48 -99
- package/cjs/components/Toolbar/ToolbarItem.js +1 -0
- package/cjs/components/index.js +14 -11
- package/cjs/index.js +1 -1
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +441 -626
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +8 -12
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/AutoClosable/AutoClosable.js +1 -0
- package/esm/components/InputNumber/InputNumber.js +2 -2
- package/esm/components/Item/Item.js +64 -153
- package/esm/components/Overlay/Overlay.js +35 -25
- package/esm/components/Popover/Popover.js +1 -1
- package/esm/components/SegmentedControl/SegmentedControl.js +1 -0
- package/esm/components/Tabs/SearchBar.js +40 -147
- package/esm/components/Tabs/Tab.js +1 -49
- package/esm/components/Tabs/Tabs.js +49 -99
- package/esm/components/Toolbar/ToolbarItem.js +1 -0
- package/esm/components/index.js +1 -2
- package/esm/index.js +1 -1
- package/package.json +28 -33
- package/styleguide/build/bundle.50841a29.js +2 -0
- package/styleguide/build/{bundle.8a07b2dd.js.LICENSE.txt → bundle.50841a29.js.LICENSE.txt} +27 -23
- package/styleguide/index.html +2 -2
- package/types/src/components/Action/Action.d.ts +1 -1
- package/types/src/components/Alert/Alert.d.ts +1 -1
- package/types/src/components/AutoClosable/AutoClosable.d.ts +23 -21
- package/types/src/components/AuxiliaryActions/AuxiliaryActions.d.ts +1 -1
- package/types/src/components/Badge/Badge.d.ts +1 -1
- package/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/src/components/Button/Button.d.ts +2 -2
- package/types/src/components/Button/ButtonContext.d.ts +1 -1
- package/types/src/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/components/Card/PreviewPanel.d.ts +2 -2
- package/types/src/components/Carousel/Carousel.d.ts +1 -1
- package/types/src/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +1 -1
- package/types/src/components/ComboBox/ComboBox.d.ts +2 -2
- package/types/src/components/ComboBox/ComboBoxOption.d.ts +1 -1
- package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +5 -5
- package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +2 -2
- package/types/src/components/ContentLoader/ContentLoader.d.ts +2 -2
- package/types/src/components/ContentLoader/IconsLoader.d.ts +2 -2
- package/types/src/components/Cuttable/Cuttable.d.ts +3 -3
- package/types/src/components/Dialog/Dialog.d.ts +3 -3
- package/types/src/components/DistractionFreeModeContext/DistractionFreeModeContext.d.ts +1 -1
- package/types/src/components/Drawer/Drawer.d.ts +1 -1
- package/types/src/components/Drawer/DrawerProgress.d.ts +4 -4
- package/types/src/components/Drawer/Header.d.ts +1 -1
- package/types/src/components/Dropdown/Dropdown.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessage.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageActions.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.d.ts +1 -1
- package/types/src/components/Figure/Figure.d.ts +1 -1
- package/types/src/components/Form/Form.d.ts +2 -2
- package/types/src/components/Form/types.d.ts +7 -7
- package/types/src/components/Form/utils.d.ts +3 -3
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.d.ts +1 -1
- package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +4 -4
- package/types/src/components/FormFieldPassword/PasswordMeter.d.ts +1 -1
- package/types/src/components/FormFieldPassword/estimatePassword.d.ts +2 -2
- package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +2 -2
- package/types/src/components/FormFieldText/FormFieldText.d.ts +4 -4
- package/types/src/components/Grid/Grid.d.ts +4 -4
- package/types/src/components/GridCol/GridCol.d.ts +2 -2
- package/types/src/components/Heading/Heading.d.ts +1 -1
- package/types/src/components/Hint/Hint.d.ts +1 -1
- package/types/src/components/Icon/Icon.d.ts +3 -3
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/InPlaceEdit/InPlaceEdit.d.ts +2 -2
- package/types/src/components/Input/Input.d.ts +4 -3
- package/types/src/components/InputFile/InputFile.d.ts +1 -1
- package/types/src/components/Item/Item.d.ts +79 -0
- package/types/src/components/Item/index.d.ts +2 -0
- package/types/src/components/ItemLink/ItemLink.d.ts +1 -1
- package/types/src/components/ItemList/ItemList.d.ts +7 -7
- package/types/src/components/Label/Label.d.ts +3 -3
- package/types/src/components/Layer/Layer.d.ts +1 -1
- package/types/src/components/Layout/Layout.d.ts +9 -9
- package/types/src/components/Link/Link.d.ts +3 -3
- package/types/src/components/List/ListAction.d.ts +3 -3
- package/types/src/components/List/ListActions.d.ts +2 -2
- package/types/src/components/List/ListActionsDivider.d.ts +2 -2
- package/types/src/components/List/ListEmptyView.d.ts +1 -1
- package/types/src/components/List/ListOperation.d.ts +9 -5
- package/types/src/components/List/ListOperationContext.d.ts +1 -1
- package/types/src/components/LocaleProvider/LocaleProvider.d.ts +5 -5
- package/types/src/components/Markdown/Markdown.d.ts +2 -2
- package/types/src/components/Media/Media.d.ts +1 -1
- package/types/src/components/Media/MediaSection.d.ts +1 -1
- package/types/src/components/Menu/Menu.d.ts +1 -1
- package/types/src/components/Menu/MenuBaseItem.d.ts +3 -3
- package/types/src/components/Menu/MenuDivider.d.ts +1 -1
- package/types/src/components/Menu/MenuHeader.d.ts +1 -1
- package/types/src/components/Menu/MenuItem.d.ts +2 -2
- package/types/src/components/Menu/MenuSelectableItem.d.ts +2 -2
- package/types/src/components/Overlay/Overlay.d.ts +2 -2
- package/types/src/components/PageHeader/PageHeader.d.ts +1 -1
- package/types/src/components/Pagination/Pagination.d.ts +2 -2
- package/types/src/components/Panel/Panel.d.ts +3 -3
- package/types/src/components/Paragraph/Paragraph.d.ts +1 -1
- package/types/src/components/Plaintext/Plaintext.d.ts +1 -1
- package/types/src/components/Popover/Popover.d.ts +5 -3
- package/types/src/components/Popper/Popper.d.ts +2 -2
- package/types/src/components/Progress/Progress.d.ts +2 -2
- package/types/src/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/types/src/components/ProgressBar/ProgressIndicator.d.ts +1 -1
- package/types/src/components/ProgressDialog/ProgressDialog.d.ts +2 -2
- package/types/src/components/ProgressStep/ProgressStep.d.ts +2 -2
- package/types/src/components/Radio/Radio.d.ts +1 -1
- package/types/src/components/Rating/Rating.d.ts +1 -1
- package/types/src/components/Section/Section.d.ts +5 -5
- package/types/src/components/Section/SectionItem.d.ts +1 -1
- package/types/src/components/SegmentedControl/SegmentedControl.d.ts +16 -12
- package/types/src/components/Select/MultiValue.d.ts +1 -1
- package/types/src/components/Select/Select.d.ts +1 -1
- package/types/src/components/Select/SelectControl.d.ts +1 -1
- package/types/src/components/Select/SelectOption.d.ts +1 -1
- package/types/src/components/Select/SelectOptionGroup.d.ts +1 -1
- package/types/src/components/Select/structures.d.ts +3 -3
- package/types/src/components/Skeleton/Skeleton.d.ts +1 -1
- package/types/src/components/Spinner/Spinner.d.ts +1 -1
- package/types/src/components/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/components/Spot/Spot.d.ts +1 -1
- package/types/src/components/Spot/SpotPopup.d.ts +5 -3
- package/types/src/components/Squeezer/Squeezer.d.ts +2 -2
- package/types/src/components/Status/Status.d.ts +3 -3
- package/types/src/components/StatusMessage/StatusMessage.d.ts +1 -1
- package/types/src/components/Subnav/Subnav.d.ts +1 -1
- package/types/src/components/Switch/Switch.d.ts +3 -2
- package/types/src/components/SwitchesPanel/SwitchesPanel.d.ts +1 -1
- package/types/src/components/SwitchesPanelItem/SwitchesPanelItem.d.ts +1 -1
- package/types/src/components/Tabs/SearchBar.d.ts +107 -0
- package/types/src/components/Tabs/Tab.d.ts +62 -0
- package/types/src/components/Tabs/Tabs.d.ts +111 -0
- package/types/src/components/Tabs/index.d.ts +6 -0
- package/types/src/components/Text/Text.d.ts +1 -1
- package/types/src/components/TextArea/TextArea.d.ts +4 -4
- package/types/src/components/Toast/Toast.d.ts +2 -2
- package/types/src/components/Toaster/Toaster.d.ts +4 -4
- package/types/src/components/Toolbar/RegistryContext.d.ts +2 -2
- package/types/src/components/Toolbar/Toolbar.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarExpander.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/types/src/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/src/components/Toolbar/ToolbarMenu.d.ts +1 -1
- package/types/src/components/Tooltip/Tooltip.d.ts +2 -2
- package/types/src/components/Tour/Tour.d.ts +2 -2
- package/types/src/components/Translate/Translate.d.ts +5 -3
- package/types/src/components/index.d.ts +3 -2
- package/types/src/components/utils.d.ts +5 -5
- package/types/src/utils/types/PolymorphicComponent.d.ts +5 -5
- package/styleguide/build/bundle.8a07b2dd.js +0 -2
|
@@ -38,24 +38,18 @@ object-assign
|
|
|
38
38
|
/*! svg4everybody v2.1.9 | github.com/jonathantneal/svg4everybody */
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* @license React
|
|
42
|
+
* react-dom.production.min.js
|
|
42
43
|
*
|
|
43
|
-
*
|
|
44
|
-
* @website https://github.com/cssinjs/jss
|
|
45
|
-
* @license MIT
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
44
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
45
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @namespace
|
|
54
|
-
* @public
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
48
|
*/
|
|
56
49
|
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
50
|
+
/**
|
|
51
|
+
* @license React
|
|
52
|
+
* react-jsx-runtime.production.min.js
|
|
59
53
|
*
|
|
60
54
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
61
55
|
*
|
|
@@ -63,8 +57,9 @@ object-assign
|
|
|
63
57
|
* LICENSE file in the root directory of this source tree.
|
|
64
58
|
*/
|
|
65
59
|
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
60
|
+
/**
|
|
61
|
+
* @license React
|
|
62
|
+
* react.production.min.js
|
|
68
63
|
*
|
|
69
64
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
70
65
|
*
|
|
@@ -72,8 +67,9 @@ object-assign
|
|
|
72
67
|
* LICENSE file in the root directory of this source tree.
|
|
73
68
|
*/
|
|
74
69
|
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
70
|
+
/**
|
|
71
|
+
* @license React
|
|
72
|
+
* scheduler.production.min.js
|
|
77
73
|
*
|
|
78
74
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
79
75
|
*
|
|
@@ -81,13 +77,21 @@ object-assign
|
|
|
81
77
|
* LICENSE file in the root directory of this source tree.
|
|
82
78
|
*/
|
|
83
79
|
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
80
|
+
/**
|
|
81
|
+
* A better abstraction over CSS.
|
|
86
82
|
*
|
|
87
|
-
*
|
|
83
|
+
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
84
|
+
* @website https://github.com/cssinjs/jss
|
|
85
|
+
* @license MIT
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
88
90
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
92
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
93
|
+
* @namespace
|
|
94
|
+
* @public
|
|
91
95
|
*/
|
|
92
96
|
|
|
93
97
|
/**!
|
package/styleguide/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
-
<title>Plesk UI Library 3.35.
|
|
7
|
+
<title>Plesk UI Library 3.35.8</title>
|
|
8
8
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
9
9
|
<meta name="theme-color" content="#ffffff">
|
|
10
10
|
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KWST26V"
|
|
27
27
|
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
|
28
28
|
<!-- End Google Tag Manager (noscript) -->
|
|
29
|
-
<script src="build/bundle.
|
|
29
|
+
<script src="build/bundle.50841a29.js"></script>
|
|
30
30
|
</body>
|
|
31
31
|
</html>
|
|
@@ -2,7 +2,7 @@ import { FunctionComponent, ReactNode, ReactElement, ElementType } from 'react';
|
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
3
|
import '../../helpers/base.less';
|
|
4
4
|
import './Action.less';
|
|
5
|
-
|
|
5
|
+
type ActionProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Content of the `Action`.
|
|
8
8
|
* @since 0.0.68
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Component, ReactElement, ReactInstance, RefObject, MutableRefObject } from 'react';
|
|
2
|
-
declare
|
|
1
|
+
import { Component, ReactElement, ReactInstance, RefObject, MutableRefObject, ContextType } from 'react';
|
|
2
|
+
declare const AutoClosableContext: import("react").Context<AutoClosable | null>;
|
|
3
|
+
type AutoClosableProps = {
|
|
3
4
|
/**
|
|
4
5
|
* onClose handler
|
|
5
6
|
* @since 0.0.42
|
|
@@ -28,32 +29,33 @@ declare type AutoClosableProps = {
|
|
|
28
29
|
declare class AutoClosable extends Component<AutoClosableProps> {
|
|
29
30
|
componentDidMount(): void;
|
|
30
31
|
componentWillUnmount(): void;
|
|
32
|
+
context: ContextType<typeof AutoClosableContext>;
|
|
31
33
|
children: AutoClosable[];
|
|
32
34
|
addChild: (child: AutoClosable) => void;
|
|
33
35
|
removeChild: (child: AutoClosable) => void;
|
|
34
36
|
getIgnoreNodes: () => (Text | {
|
|
35
37
|
new (): Node;
|
|
36
38
|
prototype: Node;
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
39
|
+
readonly ELEMENT_NODE: 1;
|
|
40
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
41
|
+
readonly TEXT_NODE: 3;
|
|
42
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
43
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
44
|
+
readonly ENTITY_NODE: 6;
|
|
45
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
46
|
+
readonly COMMENT_NODE: 8;
|
|
47
|
+
readonly DOCUMENT_NODE: 9;
|
|
48
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
49
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
50
|
+
readonly NOTATION_NODE: 12;
|
|
51
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
52
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
53
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
54
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
55
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
56
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
55
57
|
} | ReactInstance | RefObject<HTMLElement> | null | undefined)[];
|
|
56
58
|
onOutsideClick: (event: MouseEvent) => void;
|
|
57
|
-
render(): JSX.Element;
|
|
59
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
58
60
|
}
|
|
59
61
|
export default AutoClosable;
|
|
@@ -79,7 +79,7 @@ interface BaseButtonPops {
|
|
|
79
79
|
*/
|
|
80
80
|
baseClassName?: string;
|
|
81
81
|
}
|
|
82
|
-
export
|
|
82
|
+
export type ButtonProps<Component extends ElementType = 'button'> = {
|
|
83
83
|
/**
|
|
84
84
|
* Component to render as the root element. Useful when rendering a `Button` as `<a>` or `<Link>`.
|
|
85
85
|
* @since 0.0.42
|
|
@@ -88,7 +88,7 @@ export declare type ButtonProps<Component extends ElementType = 'button'> = {
|
|
|
88
88
|
*/
|
|
89
89
|
component?: Component;
|
|
90
90
|
} & PolymorphicComponentPropsWithRef<Component, BaseButtonPops> & DataAttributes;
|
|
91
|
-
|
|
91
|
+
type ButtonComponent<Component extends ElementType = 'button'> = {
|
|
92
92
|
defaultProps?: Partial<ButtonProps<Component>>;
|
|
93
93
|
displayName?: string;
|
|
94
94
|
} & (<C extends ElementType = Component>(props: ButtonProps<C>) => ReactElement | null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { DataAttributes } from '../../utils/types';
|
|
3
3
|
import './PreviewPanel.less';
|
|
4
|
-
|
|
4
|
+
type PreviewPanelProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Background image content.
|
|
7
7
|
* @since 0.3.0
|
|
@@ -50,5 +50,5 @@ declare type PreviewPanelProps = {
|
|
|
50
50
|
* `PreviewPanel` component is used for displaying website preview.
|
|
51
51
|
* @since 0.3.0
|
|
52
52
|
*/
|
|
53
|
-
declare const PreviewPanel: ({ background, image, padding, alt, children, className, baseClassName, html, ...props }: PreviewPanelProps) => JSX.Element;
|
|
53
|
+
declare const PreviewPanel: ({ background, image, padding, alt, children, className, baseClassName, html, ...props }: PreviewPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
54
|
export default PreviewPanel;
|
|
@@ -53,6 +53,6 @@ declare class Carousel extends Component<CarouselProps> {
|
|
|
53
53
|
setCurrentSlide(next: number): void;
|
|
54
54
|
handleResize({ bounds }: ContentRect): void;
|
|
55
55
|
listStyle(): CSSProperties;
|
|
56
|
-
render(): JSX.Element;
|
|
56
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
57
57
|
}
|
|
58
58
|
export default Carousel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, ReactElement } from 'react';
|
|
2
2
|
import ComboBoxOption from './ComboBoxOption';
|
|
3
3
|
import './ComboBox.less';
|
|
4
|
-
|
|
4
|
+
type ComboBoxProps = {
|
|
5
5
|
/**
|
|
6
6
|
* @ignore
|
|
7
7
|
*/
|
|
@@ -52,7 +52,7 @@ declare type ComboBoxProps = {
|
|
|
52
52
|
children: ReactElement<ComponentProps<typeof ComboBoxOption>>[];
|
|
53
53
|
};
|
|
54
54
|
declare const _default: {
|
|
55
|
-
(props: ComboBoxProps): JSX.Element;
|
|
55
|
+
(props: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
56
56
|
displayName: string;
|
|
57
57
|
};
|
|
58
58
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { EventEmitter } from '../utils';
|
|
3
3
|
import './ComboBoxDropdown.less';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ValueType = any;
|
|
5
|
+
type GroupType = {
|
|
6
6
|
label?: string;
|
|
7
7
|
options: OptionType[];
|
|
8
8
|
props?: {
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type OptionType = {
|
|
13
13
|
value: ValueType;
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
group?: GroupType;
|
|
@@ -19,7 +19,7 @@ declare type OptionType = {
|
|
|
19
19
|
children: ReactNode;
|
|
20
20
|
};
|
|
21
21
|
export declare const findNextSafeIndex: (currIndex: number, diff: number, options: OptionType[]) => number;
|
|
22
|
-
|
|
22
|
+
type ComboBoxDropdownProps = {
|
|
23
23
|
baseClassName?: string;
|
|
24
24
|
className?: string;
|
|
25
25
|
disabled: boolean;
|
|
@@ -36,5 +36,5 @@ declare type ComboBoxDropdownProps = {
|
|
|
36
36
|
noOptions?: ReactNode;
|
|
37
37
|
emitter?: EventEmitter;
|
|
38
38
|
};
|
|
39
|
-
declare const ComboBoxDropdown: ({ baseClassName, className, control, controlRef, opened, disabled, groups, options, onHighlightedIndexChange, onClose, value, highlightedIndex, onSelect, noOptions, emitter, ...props }: ComboBoxDropdownProps) => JSX.Element;
|
|
39
|
+
declare const ComboBoxDropdown: ({ baseClassName, className, control, controlRef, opened, disabled, groups, options, onHighlightedIndexChange, onClose, value, highlightedIndex, onSelect, noOptions, emitter, ...props }: ComboBoxDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
40
|
export default ComboBoxDropdown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent, ReactNode, RefObject } from 'react';
|
|
2
2
|
import './ConsoleOutput.less';
|
|
3
|
-
|
|
3
|
+
type ConsoleOutputProps = {
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
6
6
|
*/
|
|
@@ -47,6 +47,6 @@ declare class ConsoleOutput extends PureComponent<ConsoleOutputProps> {
|
|
|
47
47
|
prevScrollTop: number;
|
|
48
48
|
autoscrollCancelled: boolean;
|
|
49
49
|
handleScroll: () => void;
|
|
50
|
-
render(): JSX.Element;
|
|
50
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
51
51
|
}
|
|
52
52
|
export default ConsoleOutput;
|
|
@@ -2,12 +2,12 @@ import { FunctionComponent, ReactNode } from 'react';
|
|
|
2
2
|
import '../../helpers/base.less';
|
|
3
3
|
import './ContentLoader.less';
|
|
4
4
|
import { IconName } from '../Icon';
|
|
5
|
-
|
|
5
|
+
type Loader = 'spinner' | 'icons' | {
|
|
6
6
|
type: 'icons';
|
|
7
7
|
icons: IconName[];
|
|
8
8
|
[key: string]: unknown;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type ContentLoaderProps = {
|
|
11
11
|
/**
|
|
12
12
|
* Allows to set the text near the indicator.
|
|
13
13
|
* @since 1.1.0
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IconName, IconProps } from '../Icon';
|
|
3
3
|
import './IconsLoader.less';
|
|
4
|
-
|
|
4
|
+
type IconsLoaderProps = {
|
|
5
5
|
baseClassName?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: object;
|
|
8
8
|
icons?: (IconName | IconProps | ReactElement<any>)[];
|
|
9
9
|
size?: IconProps['size'];
|
|
10
10
|
};
|
|
11
|
-
declare const IconsLoader: ({ baseClassName, className, icons, size, style, ...props }: IconsLoaderProps) => JSX.Element;
|
|
11
|
+
declare const IconsLoader: ({ baseClassName, className, icons, size, style, ...props }: IconsLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default IconsLoader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
|
2
2
|
import './Cuttable.less';
|
|
3
|
-
|
|
3
|
+
type CuttableProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Content of the component.
|
|
6
6
|
* @since 0.0.42
|
|
@@ -33,7 +33,7 @@ declare type CuttableProps = {
|
|
|
33
33
|
*/
|
|
34
34
|
baseClassName?: string;
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
type CuttableState = {
|
|
37
37
|
collapsed?: boolean;
|
|
38
38
|
autofit: boolean;
|
|
39
39
|
};
|
|
@@ -58,6 +58,6 @@ declare class Cuttable extends Component<CuttableProps, CuttableState> {
|
|
|
58
58
|
contentRef: import("react").RefObject<HTMLDivElement>;
|
|
59
59
|
handleToggle: () => void;
|
|
60
60
|
handleResize: () => void;
|
|
61
|
-
render(): JSX.Element;
|
|
61
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
62
62
|
}
|
|
63
63
|
export default Cuttable;
|
|
@@ -4,8 +4,8 @@ import Form, { FormProps, FormValues } from '../Form';
|
|
|
4
4
|
import { ButtonProps } from '../Button';
|
|
5
5
|
import '../../helpers/base.less';
|
|
6
6
|
import './Dialog.less';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type ImageType = string | ReactElement | HTMLAttributes<HTMLImageElement>;
|
|
8
|
+
export type DialogProps<FV extends FormValues = FormValues> = {
|
|
9
9
|
/**
|
|
10
10
|
* Toggles visibility.
|
|
11
11
|
* @since 0.0.68
|
|
@@ -119,7 +119,7 @@ export declare type DialogProps<FV extends FormValues = FormValues> = {
|
|
|
119
119
|
* @since 0.0.68
|
|
120
120
|
*/
|
|
121
121
|
declare const Dialog: {
|
|
122
|
-
<FV extends FormValues = FormValues>({ baseClassName, className, children, actions, isOpen, banner, image, title, subtitle, cancelTitle, cancelButton, buttons, form, size, closable, onClose, closingConfirmation, canClose, ...props }: DialogProps<FV>): JSX.Element;
|
|
122
|
+
<FV extends FormValues = FormValues>({ baseClassName, className, children, actions, isOpen, banner, image, title, subtitle, cancelTitle, cancelButton, buttons, form, size, closable, onClose, closingConfirmation, canClose, ...props }: DialogProps<FV>): import("react/jsx-runtime").JSX.Element;
|
|
123
123
|
defaultProps: {
|
|
124
124
|
isOpen: boolean;
|
|
125
125
|
banner: undefined;
|
|
@@ -100,7 +100,7 @@ export interface DrawerProps<FV extends FormValues = FormValues> {
|
|
|
100
100
|
* @since 0.0.65
|
|
101
101
|
*/
|
|
102
102
|
declare const Drawer: {
|
|
103
|
-
<FV extends FormValues = FormValues>({ baseClassName, className, children, title, subtitle, backButton, hideButton, tabs, onClose, form, progress, closingConfirmation, ...props }: DrawerProps<FV>): JSX.Element;
|
|
103
|
+
<FV extends FormValues = FormValues>({ baseClassName, className, children, title, subtitle, backButton, hideButton, tabs, onClose, form, progress, closingConfirmation, ...props }: DrawerProps<FV>): import("react/jsx-runtime").JSX.Element;
|
|
104
104
|
defaultProps: Partial<DrawerProps<FormValues>>;
|
|
105
105
|
};
|
|
106
106
|
export default Drawer;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component, ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { ProgressStepProps, Status } from '../ProgressStep';
|
|
3
3
|
import './DrawerProgress.less';
|
|
4
|
-
|
|
4
|
+
type RenderParams = {
|
|
5
5
|
content: ReactElement;
|
|
6
6
|
footer?: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type DrawerProgressProps = {
|
|
9
9
|
baseClassName?: string;
|
|
10
10
|
title?: ReactNode;
|
|
11
11
|
steps: ProgressStepProps[];
|
|
@@ -21,7 +21,7 @@ export declare type DrawerProgressProps = {
|
|
|
21
21
|
onStatusChange?: (status: Status) => void;
|
|
22
22
|
render?: (params: RenderParams) => ReactNode;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type DrawerProgressState = {
|
|
25
25
|
status: ProgressStepProps['status'] | null;
|
|
26
26
|
};
|
|
27
27
|
declare class DrawerProgress extends Component<DrawerProgressProps, DrawerProgressState> {
|
|
@@ -40,6 +40,6 @@ declare class DrawerProgress extends Component<DrawerProgressProps, DrawerProgre
|
|
|
40
40
|
handleStatusChange: (status: Status) => void;
|
|
41
41
|
handleClose: () => void;
|
|
42
42
|
handleCancel: () => void;
|
|
43
|
-
render(): ReactNode;
|
|
43
|
+
render(): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
44
44
|
}
|
|
45
45
|
export default DrawerProgress;
|
|
@@ -8,5 +8,5 @@ interface HeaderProps {
|
|
|
8
8
|
hideButton?: boolean;
|
|
9
9
|
tabs?: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
declare const Header: ({ baseClassName, onClose, children, backButton, hideButton, tabs, ...props }: HeaderProps) => JSX.Element;
|
|
11
|
+
declare const Header: ({ baseClassName, onClose, children, backButton, hideButton, tabs, ...props }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default Header;
|
|
@@ -3,7 +3,7 @@ import '../../helpers/base.less';
|
|
|
3
3
|
import '../Menu/Menu.less';
|
|
4
4
|
import './Dropdown.less';
|
|
5
5
|
import { Placement } from 'popper.js';
|
|
6
|
-
export
|
|
6
|
+
export type PopoverPlacement = Placement;
|
|
7
7
|
export interface DropdownProps {
|
|
8
8
|
/**
|
|
9
9
|
* Dropdown [menu](#!/Menu).
|
|
@@ -24,5 +24,5 @@ export interface FigureProps extends HTMLAttributes<HTMLElement> {
|
|
|
24
24
|
* Figure component.
|
|
25
25
|
* @since 0.0.42
|
|
26
26
|
*/
|
|
27
|
-
declare const Figure: ({ baseClassName, className, href, caption, children, ...props }: FigureProps) => JSX.Element;
|
|
27
|
+
declare const Figure: ({ baseClassName, className, href, caption, children, ...props }: FigureProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default Figure;
|
|
@@ -2,7 +2,7 @@ import { ReactNode, ReactElement, MutableRefObject, HTMLProps, ForwardedRef } fr
|
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
3
|
import { FormInstanceHandles, FormValues, FormErrors } from './types';
|
|
4
4
|
import './Form.less';
|
|
5
|
-
export
|
|
5
|
+
export type FormProps<FV extends FormValues> = {
|
|
6
6
|
/**
|
|
7
7
|
* Required mark.
|
|
8
8
|
* @since 0.0.54
|
|
@@ -98,7 +98,7 @@ export declare type FormProps<FV extends FormValues> = {
|
|
|
98
98
|
innerRef?: MutableRefObject<null | HTMLFormElement>;
|
|
99
99
|
} & Omit<HTMLProps<HTMLFormElement>, 'onSubmit' | 'ref'>;
|
|
100
100
|
export type { FormValues, FormInstanceHandles };
|
|
101
|
-
|
|
101
|
+
type FormComponent = <FV extends FormValues>(props: FormProps<FV> & {
|
|
102
102
|
ref?: ForwardedRef<FormInstanceHandles>;
|
|
103
103
|
}) => ReactElement;
|
|
104
104
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type FormInstanceHandles = {
|
|
3
3
|
submit: () => void;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export type FormValues = Record<string, any>;
|
|
6
|
+
export type FormFieldErrors = Record<string, any>;
|
|
7
|
+
export type FormErrors = Record<string, any>;
|
|
8
|
+
export type FormState<FV> = {
|
|
9
9
|
values?: FV;
|
|
10
10
|
vertical: boolean;
|
|
11
11
|
requiredFields: string[];
|
|
@@ -14,10 +14,10 @@ export declare type FormState<FV> = {
|
|
|
14
14
|
prevErrors?: FormErrors;
|
|
15
15
|
prevRequiredMark?: ReactNode;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Field = {
|
|
18
18
|
focus: (errors: FormFieldErrors) => void;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type FormContextProps = {
|
|
21
21
|
getValues: () => Readonly<FormValues> | undefined;
|
|
22
22
|
getValue: (name: string, def?: any) => any;
|
|
23
23
|
setValue: (name: string, value: any) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
type Obj = {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
};
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type GetIn = <T extends Obj>(obj: T, name: string, def?: any) => any;
|
|
5
|
+
type SetIn = <T extends Obj>(obj: T, name: string, val: any) => T;
|
|
6
6
|
/**
|
|
7
7
|
* Deeply get a value from an object via its path.
|
|
8
8
|
*
|
|
@@ -49,5 +49,5 @@ export interface FormFieldCheckboxProps extends ComponentProps<typeof FormField>
|
|
|
49
49
|
* and selecting or deselecting an item.
|
|
50
50
|
* @since 0.0.58
|
|
51
51
|
*/
|
|
52
|
-
declare const FormFieldCheckbox: ({ className, label, autoFocus, required, checkedValue, uncheckedValue, baseClassName, ...props }: FormFieldCheckboxProps) => JSX.Element;
|
|
52
|
+
declare const FormFieldCheckbox: ({ className, label, autoFocus, required, checkedValue, uncheckedValue, baseClassName, ...props }: FormFieldCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
53
|
export default FormFieldCheckbox;
|