@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
|
@@ -3,7 +3,7 @@ import Button from '../Button';
|
|
|
3
3
|
import FormField from '../FormField';
|
|
4
4
|
import { PasswordMeterProps } from './PasswordMeter';
|
|
5
5
|
import './FormFieldPassword.less';
|
|
6
|
-
export
|
|
6
|
+
export type FormFieldPasswordProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Is show button hidden?
|
|
9
9
|
* @since 0.0.59
|
|
@@ -53,7 +53,7 @@ export declare type FormFieldPasswordProps = {
|
|
|
53
53
|
*/
|
|
54
54
|
baseClassName?: string;
|
|
55
55
|
} & ComponentProps<typeof FormField>;
|
|
56
|
-
|
|
56
|
+
type FormFieldPasswordState = {
|
|
57
57
|
visible: boolean;
|
|
58
58
|
passwordMeterVisible: boolean;
|
|
59
59
|
};
|
|
@@ -85,7 +85,7 @@ declare class FormFieldPassword extends Component<FormFieldPasswordProps, FormFi
|
|
|
85
85
|
renderGenerateButton({ setValue, isDisabled, }: {
|
|
86
86
|
setValue: (value: any) => void;
|
|
87
87
|
isDisabled: () => boolean;
|
|
88
|
-
}): JSX.Element;
|
|
89
|
-
render(): JSX.Element;
|
|
88
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
90
90
|
}
|
|
91
91
|
export default FormFieldPassword;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent, ReactElement } from 'react';
|
|
2
2
|
import { PopoverProps } from '../Popover';
|
|
3
3
|
import estimatePassword, { EstimateResult, EstimateRule } from './estimatePassword';
|
|
4
|
-
export
|
|
4
|
+
export type PasswordMeterProps = {
|
|
5
5
|
children: ReactElement;
|
|
6
6
|
value: string;
|
|
7
7
|
onEstimate?: (password: string, defaultEstimateFn: typeof estimatePassword, defaultEstimateRules: EstimateRule[]) => EstimateResult;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type EstimateRule = {
|
|
3
3
|
name: string;
|
|
4
4
|
suggestion?: ReactNode;
|
|
5
5
|
score: (password: string) => number;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type EstimateResult = {
|
|
8
8
|
strength: 'VeryWeak' | 'Weak' | 'Medium' | 'Strong' | 'VeryStrong';
|
|
9
9
|
suggestions: ReactNode[];
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent, ComponentProps } from 'react';
|
|
2
2
|
import Select from '../Select';
|
|
3
3
|
import './FormFieldSelect.less';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type SelectProps = ComponentProps<typeof Select>;
|
|
5
|
+
export type FormFieldSelectProps = Omit<SelectProps, 'value' | 'defaultValue' | 'onChange'>;
|
|
6
6
|
/**
|
|
7
7
|
* `FormFieldSelect` componentis is used for making a choice among a set of related options.
|
|
8
8
|
* See description of `Select` for [the full list of properties](#!/Select) of this component.
|
|
@@ -3,16 +3,16 @@ import FormField from '../FormField';
|
|
|
3
3
|
import { InputProps } from '../Input';
|
|
4
4
|
import { TextAreaProps } from '../TextArea';
|
|
5
5
|
import './FormFieldText.less';
|
|
6
|
-
|
|
6
|
+
type MultilineProps = {
|
|
7
7
|
multiline: true;
|
|
8
8
|
inputProps?: Partial<TextAreaProps>;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type SingleLineProps = {
|
|
11
11
|
multiline?: false;
|
|
12
12
|
inputProps?: Partial<InputProps>;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
export
|
|
14
|
+
type LinePropsBase = MultilineProps | SingleLineProps;
|
|
15
|
+
export type FormFieldTextProps = ComponentProps<typeof FormField> & {
|
|
16
16
|
/**
|
|
17
17
|
* Size of the input
|
|
18
18
|
* @since 0.0.58
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
|
2
2
|
import { ContentRect } from 'react-measure';
|
|
3
3
|
import './Grid.less';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ColumnsNumber = 1 | 2 | 3 | 4 | 5 | 6 | 'auto';
|
|
5
|
+
type CalculateMaxColumns = (options: {
|
|
6
6
|
width: number;
|
|
7
7
|
}) => number;
|
|
8
8
|
export interface GridProps {
|
|
@@ -91,7 +91,7 @@ declare class Grid extends Component<GridProps, GridState> {
|
|
|
91
91
|
xs: ColumnsNumber | undefined;
|
|
92
92
|
};
|
|
93
93
|
handleResize: ({ bounds }: ContentRect) => void;
|
|
94
|
-
getGapSize(): 0 | 8 |
|
|
95
|
-
render(): JSX.Element;
|
|
94
|
+
getGapSize(): 0 | 8 | 16 | 32 | 12 | 24;
|
|
95
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
96
96
|
}
|
|
97
97
|
export default Grid;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
type GridColSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
3
3
|
export interface GridColProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/**
|
|
5
5
|
* Content of the `GridCol`.
|
|
@@ -49,5 +49,5 @@ export interface GridColProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
49
49
|
* `GridCol` component is a part of [Grid](#!/Grid) component.
|
|
50
50
|
* @since 0.0.48
|
|
51
51
|
*/
|
|
52
|
-
declare const GridCol: ({ baseClassName, className, children, xs, sm, md, lg, xl, ...props }: GridColProps) => JSX.Element;
|
|
52
|
+
declare const GridCol: ({ baseClassName, className, children, xs, sm, md, lg, xl, ...props }: GridColProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
53
|
export default GridCol;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ReactElement, ElementType, FunctionComponent } from 'react';
|
|
2
2
|
import { IconName, IconProps } from '../Icon';
|
|
3
3
|
import './Heading.less';
|
|
4
|
-
|
|
4
|
+
type HeadingProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Importance of the `Title`. Render as h1, h2, etc.
|
|
7
7
|
* @since 2.3.0
|
|
@@ -3,7 +3,7 @@ import { IconName } from './constants';
|
|
|
3
3
|
import '../../helpers/base.less';
|
|
4
4
|
import './Icon.less';
|
|
5
5
|
export * from './constants';
|
|
6
|
-
export
|
|
6
|
+
export type IconSize = '12' | '16' | '24' | '32' | '48' | '64' | '96' | '128' | '192';
|
|
7
7
|
export declare const ICON_SIZE_12: IconSize;
|
|
8
8
|
export declare const ICON_SIZE_16: IconSize;
|
|
9
9
|
export declare const ICON_SIZE_24: IconSize;
|
|
@@ -13,7 +13,7 @@ export declare const ICON_SIZE_64: IconSize;
|
|
|
13
13
|
export declare const ICON_SIZE_96: IconSize;
|
|
14
14
|
export declare const ICON_SIZE_128: IconSize;
|
|
15
15
|
export declare const ICON_SIZE_192: IconSize;
|
|
16
|
-
export
|
|
16
|
+
export type IconProps = {
|
|
17
17
|
/**
|
|
18
18
|
* @ignore
|
|
19
19
|
*/
|
|
@@ -73,7 +73,7 @@ export declare type IconProps = {
|
|
|
73
73
|
*/
|
|
74
74
|
children?: ReactNode;
|
|
75
75
|
} & Omit<HTMLProps<HTMLSpanElement>, 'size'>;
|
|
76
|
-
|
|
76
|
+
type StaticMethods = {
|
|
77
77
|
create: (...args: any) => any;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const NAMES_12: IconName[];
|
|
2
|
-
export
|
|
2
|
+
export type IconName = 'archive' | 'arrow-back' | 'arrow-diagonal-out' | 'arrow-down' | 'arrow-down-circle-filled' | 'arrow-down-in' | 'arrow-down-out' | 'arrow-down-tray' | 'arrow-left' | 'arrow-left-circle-filled' | 'arrow-right' | 'arrow-right-circle-filled' | 'arrow-right-in' | 'arrow-right-out' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-circle-filled' | 'arrow-up-in' | 'arrow-up-in-cloud' | 'arrow-up-out' | 'arrow-up-tray' | 'arrows-four-directions' | 'arrows-inward' | 'arrows-loop' | 'arrows-opposite' | 'arrows-outward' | 'backup' | 'backup2' | 'bar-chart-vertical' | 'bar-chart-vertical-arrow-up' | 'bar-chart-vertical-lock' | 'bell' | 'book-email' | 'boundary' | 'box-diagonal-bottom-in' | 'box-diagonal-top-in' | 'brush' | 'bug' | 'calendar' | 'calendar-clock' | 'camera' | 'card' | 'card-ribbon' | 'card-row' | 'card-tile' | 'cd' | 'cd-up-in-cloud' | 'chain' | 'chain-broken' | 'chat' | 'check-list' | 'check-mark' | 'check-mark-circle' | 'check-mark-circle-filled' | 'chevron-double-down' | 'chevron-double-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-diagonal' | 'clean' | 'clip' | 'clock' | 'clone' | 'cloud' | 'cloud-checkmark' | 'cloud-crossed' | 'cloud-graph' | 'code' | 'connection' | 'console' | 'console-filled' | 'copy' | 'copy-indicator' | 'cpu' | 'crane' | 'credit-cards' | 'cross-mark' | 'cross-mark-circle' | 'cross-mark-circle-filled' | 'crown-transfer' | 'dashboard' | 'database' | 'database-box' | 'database-filled' | 'database-plus' | 'deploy' | 'docker-filled' | 'dollar' | 'dollar-filled' | 'dot' | 'dot-big' | 'emoticon-confused' | 'emoticon-dead' | 'emoticon-excited' | 'emoticon-happy' | 'emoticon-neutral' | 'emoticon-sad' | 'emoticon-smile' | 'enter' | 'exclamation-mark-circle' | 'exclamation-mark-circle-filled' | 'eye' | 'eye-closed' | 'facebook' | 'facebook-filled' | 'feedback' | 'filter' | 'filter-check-mark' | 'fire' | 'flag' | 'flag-filled' | 'flag-globe' | 'floppy-disk' | 'folder-closed' | 'folder-key' | 'folder-network' | 'folder-open' | 'folders-tree' | 'forward-circle-filled' | 'four-squares' | 'gear' | 'git' | 'github' | 'globe' | 'hard-drive' | 'hard-drive-key' | 'hat' | 'hexagons' | 'home' | 'info-circle' | 'info-circle-filled' | 'ip-addresses' | 'joomla' | 'kebab' | 'key' | 'laravel' | 'lifebuoy' | 'lightbulb' | 'limit' | 'linux' | 'list' | 'list-check-mark' | 'location' | 'lock-closed' | 'lock-closed-check' | 'lock-closed-filled' | 'lock-open' | 'lock-open-cross' | 'lock-open-filled' | 'mail' | 'mail-circle-filled' | 'mail-settings' | 'megaphone' | 'menu' | 'menu-thin' | 'microsoft' | 'minimize' | 'minus' | 'minus-circle' | 'minus-circle-filled' | 'monitoring' | 'monitoring-off' | 'my-little-admin' | 'net' | 'nine-dots' | 'node-js' | 'package' | 'panel' | 'panel-check' | 'panel-eye' | 'panel-key' | 'panel-settings' | 'panels' | 'pause-circle' | 'pencil' | 'pencil-dialog' | 'php' | 'phpmyadmin' | 'pin' | 'pipette' | 'plans' | 'plugins' | 'plus' | 'plus-circle' | 'plus-circle-filled' | 'power' | 'projects' | 'puzzle' | 'python' | 'question-mark-circle' | 'question-mark-circle-filled' | 'ram' | 'react-js' | 'recycle' | 'redirect-circle-filled' | 'refresh' | 'reload' | 'remove' | 'reset' | 'resource' | 'ribbon' | 'rocket' | 'ruby' | 'sand-clock' | 'scan' | 'screen' | 'search' | 'security-check' | 'send' | 'server' | 'servers' | 'share' | 'shield' | 'shield-attention-filled' | 'shield-chain' | 'shield-filled' | 'shopping-cart' | 'sidebar-right-hide' | 'sidebar-right-show' | 'signal-light' | 'site-page' | 'sleep' | 'sliders' | 'square-with-circles' | 'star' | 'star-circle-filled' | 'star-filled' | 'star-half-filled' | 'start' | 'start-circle' | 'start-filled' | 'stop' | 'stop-circle' | 'storage' | 'themes' | 'three-dots-horizontal' | 'three-dots-vertical' | 'tools' | 'transfer' | 'triangle-exclamation-mark' | 'triangle-exclamation-mark-filled' | 'unarchive' | 'user' | 'volume' | 'web' | 'web-plus' | 'web-settings' | 'windows' | 'woocommerce' | 'wordpress' | 'zero-circle-filled';
|
|
3
3
|
export declare const NAMES: IconName[];
|
|
@@ -20,7 +20,7 @@ export interface InPlaceEditProps extends Omit<HTMLAttributes<HTMLDivElement>, '
|
|
|
20
20
|
*/
|
|
21
21
|
baseClassName?: string;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
type InPlaceEditState = {
|
|
24
24
|
editing: boolean;
|
|
25
25
|
draft: ReactNode;
|
|
26
26
|
};
|
|
@@ -45,6 +45,6 @@ declare class InPlaceEdit extends Component<InPlaceEditProps, InPlaceEditState>
|
|
|
45
45
|
handleEditKey: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
46
46
|
handleChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
47
47
|
handleEditOk: () => void;
|
|
48
|
-
render(): JSX.Element;
|
|
48
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
}
|
|
50
50
|
export default InPlaceEdit;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent, HTMLProps, ReactNode, MutableRefObject } from 'react';
|
|
2
|
+
import { DataAttributes } from '../../utils/types';
|
|
2
3
|
import '../../helpers/base.less';
|
|
3
4
|
import './Input.less';
|
|
4
|
-
|
|
5
|
+
type RootProps = {
|
|
5
6
|
[k: string]: any;
|
|
6
7
|
} & HTMLProps<HTMLSpanElement>;
|
|
7
|
-
export
|
|
8
|
+
export type InputProps = {
|
|
8
9
|
/**
|
|
9
10
|
* The HTML input type.
|
|
10
11
|
* @since 0.0.57
|
|
@@ -47,7 +48,7 @@ export declare type InputProps = {
|
|
|
47
48
|
* @ignore
|
|
48
49
|
*/
|
|
49
50
|
innerRef?: MutableRefObject<null | HTMLInputElement> | ((el: HTMLInputElement) => void);
|
|
50
|
-
} & Omit<HTMLProps<HTMLInputElement>, 'size' | 'prefix'>;
|
|
51
|
+
} & DataAttributes & Omit<HTMLProps<HTMLInputElement>, 'size' | 'prefix'>;
|
|
51
52
|
/**
|
|
52
53
|
* `Input` component is used for entering short text (like user name or email address).
|
|
53
54
|
* @since 0.0.57
|
|
@@ -51,5 +51,5 @@ export interface InputFileProps extends DataAttributes {
|
|
|
51
51
|
* `InputFile` component is used for browsing and choosing a file from the local disk.
|
|
52
52
|
* @since 3.2.0
|
|
53
53
|
*/
|
|
54
|
-
declare const InputFile: ({ baseClassName, className, onChange, name, disabled, locale, testId, accept, ...props }: InputFileProps) => JSX.Element;
|
|
54
|
+
declare const InputFile: ({ baseClassName, className, onChange, name, disabled, locale, testId, accept, ...props }: InputFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
export default InputFile;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ElementType, ReactNode, ReactElement, AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { IconName, IconProps } from '../Icon';
|
|
3
|
+
import { PolymorphicComponentProps } from '../../utils/types';
|
|
4
|
+
import './Item.less';
|
|
5
|
+
export type ItemView = 'simple' | 'card';
|
|
6
|
+
interface ItemBaseProps {
|
|
7
|
+
/**
|
|
8
|
+
* View mode.
|
|
9
|
+
* @since 2.1.0
|
|
10
|
+
*/
|
|
11
|
+
view?: ItemView;
|
|
12
|
+
/**
|
|
13
|
+
* Icon.
|
|
14
|
+
* @since 0.0.48
|
|
15
|
+
* @type IconName | IconProps | ReactNode
|
|
16
|
+
*/
|
|
17
|
+
icon?: IconName | IconProps | ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Title.
|
|
20
|
+
* @since 0.0.48
|
|
21
|
+
* @type string | ReactElement | AnchorHTMLAttributes<HTMLAnchorElement>
|
|
22
|
+
*/
|
|
23
|
+
title?: string | ReactElement<unknown> | AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
24
|
+
/**
|
|
25
|
+
* Content for footer.
|
|
26
|
+
* @since 2.1.0
|
|
27
|
+
*/
|
|
28
|
+
footer?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Description. Renders as small grey text.
|
|
31
|
+
* @since 2.1.0
|
|
32
|
+
*/
|
|
33
|
+
description?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Content of the `Item`.
|
|
36
|
+
* @since 0.0.48
|
|
37
|
+
*/
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* An unique value. It needs only in ItemList with selectable view.
|
|
41
|
+
* @since 2.3.0
|
|
42
|
+
*/
|
|
43
|
+
value?: string | number;
|
|
44
|
+
/**
|
|
45
|
+
* Tooltip for component.
|
|
46
|
+
* @since 2.5.1
|
|
47
|
+
*/
|
|
48
|
+
tooltip?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
baseClassName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether disabled or not.
|
|
55
|
+
* @since 3.15.0
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Add hover shadow and pointer cursor.
|
|
60
|
+
* @since 3.26.0
|
|
61
|
+
*/
|
|
62
|
+
hoverable?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export type ItemProps<Component extends ElementType = 'div'> = {
|
|
65
|
+
/**
|
|
66
|
+
* Component to render as the root element. Useful when rendering a `Button` as `<a>` or `<Link>`.
|
|
67
|
+
* @since 0.0.42
|
|
68
|
+
* @type ElementType
|
|
69
|
+
* @default div
|
|
70
|
+
*/
|
|
71
|
+
component?: Component;
|
|
72
|
+
} & PolymorphicComponentProps<Component, ItemBaseProps>;
|
|
73
|
+
/**
|
|
74
|
+
* `Item` component is element of [ItemList](#!/ItemList) and it is presented as
|
|
75
|
+
* a combination of icon, text title and content (similar to [Media](#!/Media)).
|
|
76
|
+
* @since 0.0.48
|
|
77
|
+
*/
|
|
78
|
+
declare const Item: <Component extends ElementType = "div">({ children, baseClassName, component, view, className, icon, title, description, footer, value, tooltip, disabled, hoverable, ...props }: ItemProps<Component>) => import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
export default Item;
|
|
@@ -2,8 +2,8 @@ import { Component, ComponentProps, ReactElement, MouseEvent, ReactNode } from '
|
|
|
2
2
|
import Grid from '../Grid';
|
|
3
3
|
import '../Item/Item.less';
|
|
4
4
|
import './ItemList.less';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type ItemValue = string | number;
|
|
6
|
+
type ItemProps = {
|
|
7
7
|
className?: string;
|
|
8
8
|
onClick?: (e: MouseEvent<ReactElement>) => void;
|
|
9
9
|
value?: ItemValue;
|
|
@@ -12,7 +12,7 @@ declare type ItemProps = {
|
|
|
12
12
|
hoverable?: boolean;
|
|
13
13
|
footer?: ReactNode;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type ItemListProps = {
|
|
16
16
|
/**
|
|
17
17
|
* Add hover styles for `Item` inside `ItemList`.
|
|
18
18
|
* @since 2.1.0
|
|
@@ -74,7 +74,7 @@ declare type ItemListProps = {
|
|
|
74
74
|
*/
|
|
75
75
|
baseClassName?: string;
|
|
76
76
|
} & Pick<ComponentProps<typeof Grid>, 'gap'>;
|
|
77
|
-
|
|
77
|
+
type ItemListState = {
|
|
78
78
|
ReorderableGrid: null | any;
|
|
79
79
|
ReorderableGridCol: null | any;
|
|
80
80
|
value: null | ItemValue | ItemValue[];
|
|
@@ -98,7 +98,7 @@ declare class ItemList extends Component<ItemListProps, ItemListState> {
|
|
|
98
98
|
} | null;
|
|
99
99
|
componentDidMount(): void;
|
|
100
100
|
createItemProps: (item: ReactElement<ItemProps>) => ItemProps;
|
|
101
|
-
renderNormal({ baseClassName, children, ...props }: ItemListProps): JSX.Element;
|
|
101
|
+
renderNormal({ baseClassName, children, ...props }: ItemListProps): import("react/jsx-runtime").JSX.Element;
|
|
102
102
|
someChild(predicate: (child: ReactElement<ItemProps>) => boolean): boolean;
|
|
103
103
|
/**
|
|
104
104
|
* There are some states where we can't manage hoverable state
|
|
@@ -107,7 +107,7 @@ declare class ItemList extends Component<ItemListProps, ItemListState> {
|
|
|
107
107
|
isHoverable(): boolean;
|
|
108
108
|
hasViewCard(): boolean;
|
|
109
109
|
hasHoverableCard(): boolean;
|
|
110
|
-
renderReorderable({ baseClassName, onReorderEnd, children, ...props }: ItemListProps): JSX.Element | null;
|
|
111
|
-
render(): JSX.Element;
|
|
110
|
+
renderReorderable({ baseClassName, onReorderEnd, children, ...props }: ItemListProps): import("react/jsx-runtime").JSX.Element | null;
|
|
111
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
112
112
|
}
|
|
113
113
|
export default ItemList;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ReactElement, ComponentPropsWithoutRef, ElementType } from 'react';
|
|
2
2
|
import { IconName, IconProps } from '../Icon';
|
|
3
3
|
import './Label.less';
|
|
4
|
-
|
|
4
|
+
type BaseLabelProps<T extends ElementType> = {
|
|
5
5
|
/**
|
|
6
6
|
* Content of the Label.
|
|
7
7
|
* @since 0.0.42
|
|
@@ -46,10 +46,10 @@ declare type BaseLabelProps<T extends ElementType> = {
|
|
|
46
46
|
*/
|
|
47
47
|
baseClassName?: string;
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
type LabelProps<T extends ElementType> = BaseLabelProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof BaseLabelProps<T>>;
|
|
50
50
|
/**
|
|
51
51
|
* `Label` component is used for showing multiple characteristics or attributes of an object.
|
|
52
52
|
* @since 0.0.42
|
|
53
53
|
*/
|
|
54
|
-
declare const Label: <T extends ElementType
|
|
54
|
+
declare const Label: <T extends ElementType = "button" | "span">({ baseClassName, children, className, component, icon, intent, view, size, caps, ...props }: LabelProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
export default Label;
|
|
@@ -2,7 +2,7 @@ import { Component, ReactNode } from 'react';
|
|
|
2
2
|
import { ContentRect } from 'react-measure';
|
|
3
3
|
import '../../helpers/base.less';
|
|
4
4
|
import './Layout.less';
|
|
5
|
-
|
|
5
|
+
type CollapsedState = 'responsive' | 'desktop';
|
|
6
6
|
export interface LayoutProps {
|
|
7
7
|
/**
|
|
8
8
|
* Type of the `Layout`
|
|
@@ -90,7 +90,7 @@ export interface LayoutProps {
|
|
|
90
90
|
*/
|
|
91
91
|
baseClassName?: string;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
type LayoutState = {
|
|
94
94
|
isSidebarClosedDesktop?: boolean;
|
|
95
95
|
isSidebarClosedResponsive?: boolean;
|
|
96
96
|
headerHeight?: number | null;
|
|
@@ -140,22 +140,22 @@ export default class Layout extends Component<LayoutProps, LayoutState> {
|
|
|
140
140
|
getSidebarClosed: () => boolean;
|
|
141
141
|
renderHeader({ header }: {
|
|
142
142
|
header: ReactNode;
|
|
143
|
-
}): JSX.Element | null;
|
|
143
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
144
144
|
renderContentAddon({ contentAddon }: {
|
|
145
145
|
contentAddon: ReactNode;
|
|
146
|
-
}): JSX.Element | null;
|
|
146
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
147
147
|
renderContentHeader({ contentHeader }: {
|
|
148
148
|
contentHeader: ReactNode;
|
|
149
|
-
}): JSX.Element | null;
|
|
149
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
150
150
|
renderSidebar({ sidebar }: {
|
|
151
151
|
sidebar: ReactNode;
|
|
152
|
-
}): JSX.Element | null;
|
|
152
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
153
153
|
renderMainContent({ children }: {
|
|
154
154
|
children: ReactNode;
|
|
155
|
-
}): JSX.Element;
|
|
155
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
156
156
|
renderFooter({ footer }: {
|
|
157
157
|
footer: ReactNode;
|
|
158
|
-
}): JSX.Element | null;
|
|
159
|
-
render(): JSX.Element;
|
|
158
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
159
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
160
160
|
}
|
|
161
161
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementType, SyntheticEvent, ReactNode } from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '../../utils/types';
|
|
3
3
|
import './Link.less';
|
|
4
|
-
export
|
|
4
|
+
export type BaseLinkProps = {
|
|
5
5
|
/**
|
|
6
6
|
* @ignore
|
|
7
7
|
*/
|
|
@@ -31,7 +31,7 @@ export declare type BaseLinkProps = {
|
|
|
31
31
|
*/
|
|
32
32
|
pseudo?: boolean;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type LinkProps<Component extends ElementType = 'a'> = {
|
|
35
35
|
/**
|
|
36
36
|
* Component to render as the root element. Useful when rendering a `Link` as other component or tag.
|
|
37
37
|
* @since 0.0.42
|
|
@@ -44,5 +44,5 @@ export declare type LinkProps<Component extends ElementType = 'a'> = {
|
|
|
44
44
|
* `Link` is used for navigation purposes.
|
|
45
45
|
* @since 1.9.0
|
|
46
46
|
*/
|
|
47
|
-
declare const Link: <Component extends ElementType
|
|
47
|
+
declare const Link: <Component extends ElementType = "a">({ baseClassName, className, onClick, disabled, pseudo, component, children, ...other }: LinkProps<Component>) => import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
export default Link;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
|
-
export
|
|
3
|
+
export type ListActionRenderFn = (props: {
|
|
4
4
|
wrap: (children: ReactNode) => ReactNode;
|
|
5
5
|
}) => ReactElement | null;
|
|
6
|
-
|
|
6
|
+
type ListActionProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Should render as a ghost button in List's default mode. Icon is required for the ListAction with this property.
|
|
9
9
|
* @since 3.3.0
|
|
@@ -35,5 +35,5 @@ declare type ListActionProps = {
|
|
|
35
35
|
* It accepts the props of [Button](#!/Button) and [MenuItem](#!/MenuItem) components.
|
|
36
36
|
* @since 3.3.0
|
|
37
37
|
*/
|
|
38
|
-
declare const ListAction: ({ primary, children, tooltip, ...props }: ListActionProps) => JSX.Element | null;
|
|
38
|
+
declare const ListAction: ({ primary, children, tooltip, ...props }: ListActionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
39
39
|
export default ListAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import './ListActions.less';
|
|
3
|
-
export
|
|
3
|
+
export type ListActionsProps = {
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
6
6
|
*/
|
|
@@ -26,5 +26,5 @@ export declare type ListActionsProps = {
|
|
|
26
26
|
* `ListActions` component is used for performing operations on individual objects in [List](#!/List).
|
|
27
27
|
* @since 3.3.0
|
|
28
28
|
*/
|
|
29
|
-
declare const ListActions: ({ baseClassName, className, children, locale, ...props }: ListActionsProps) => JSX.Element;
|
|
29
|
+
declare const ListActions: ({ baseClassName, className, children, locale, ...props }: ListActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export default ListActions;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { MenuDivider } from '../Menu';
|
|
3
|
-
|
|
3
|
+
type ListActionsDividerProps = ComponentProps<typeof MenuDivider>;
|
|
4
4
|
/**
|
|
5
5
|
* `ListActionsDivider` component is a part of [ListActions](#!/ListActions) component.
|
|
6
6
|
* It accepts the props of [MenuDivider](#!/MenuDivider) component.
|
|
7
7
|
* @since 3.10.0
|
|
8
8
|
*/
|
|
9
|
-
declare const ListActionsDivider: (props: ListActionsDividerProps) => JSX.Element;
|
|
9
|
+
declare const ListActionsDivider: (props: ListActionsDividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default ListActionsDivider;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { FunctionComponent, ReactElement, ReactNode, MouseEvent } from 'react';
|
|
2
|
-
|
|
2
|
+
type TextFunction = (params: {
|
|
3
|
+
selectedRows: ReactNode;
|
|
4
|
+
selectedRowTitle: ReactNode;
|
|
5
|
+
}) => ReactNode;
|
|
6
|
+
export type ListOperationProps = {
|
|
3
7
|
/**
|
|
4
8
|
* Whether a critical operation or not. E.g. updating, deleting are critical operations.
|
|
5
9
|
* @since 2.4.0
|
|
@@ -9,22 +13,22 @@ export declare type ListOperationProps = {
|
|
|
9
13
|
* The text displayed when the action for selected items needs to be confirmed.
|
|
10
14
|
* @since 2.4.0
|
|
11
15
|
*/
|
|
12
|
-
confirmationText?: ReactNode;
|
|
16
|
+
confirmationText?: ReactNode | TextFunction;
|
|
13
17
|
/**
|
|
14
18
|
* The text displayed when no item is selected.
|
|
15
19
|
* @since 2.4.0
|
|
16
20
|
*/
|
|
17
|
-
noSelectionText?: ReactNode;
|
|
21
|
+
noSelectionText?: ReactNode | TextFunction;
|
|
18
22
|
/**
|
|
19
23
|
* The text for the action button.
|
|
20
24
|
* @since 2.4.0
|
|
21
25
|
*/
|
|
22
|
-
actionButtonText?: ReactNode;
|
|
26
|
+
actionButtonText?: ReactNode | TextFunction;
|
|
23
27
|
/**
|
|
24
28
|
* The text for the cancel button.
|
|
25
29
|
* @since 2.4.0
|
|
26
30
|
*/
|
|
27
|
-
cancelButtonText?: ReactNode;
|
|
31
|
+
cancelButtonText?: ReactNode | TextFunction;
|
|
28
32
|
/**
|
|
29
33
|
* A wrapped element.
|
|
30
34
|
* @since 2.4.0
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PureComponent, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Message = string | Messages;
|
|
4
|
+
type Messages = {
|
|
5
5
|
[key: string]: Message;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type Translate = (key: string, params?: {
|
|
8
8
|
[key: string]: unknown;
|
|
9
9
|
}, fallback?: string) => string | ReactNode[];
|
|
10
10
|
export declare const useTranslate: (namespace?: string) => Translate;
|
|
11
|
-
|
|
11
|
+
type LocaleProviderProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Localization messages
|
|
14
14
|
* @since 0.0.42
|
|
@@ -32,6 +32,6 @@ declare class LocaleProvider extends PureComponent<LocaleProviderProps> {
|
|
|
32
32
|
lmsg: Translate;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
render(): JSX.Element;
|
|
35
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
}
|
|
37
37
|
export default LocaleProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import './Markdown.less';
|
|
3
|
-
export
|
|
3
|
+
export type MarkdownProps = {
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
6
6
|
*/
|
|
@@ -24,5 +24,5 @@ export declare type MarkdownProps = {
|
|
|
24
24
|
* `Markdown` component is used for creating content with rich text formatting.
|
|
25
25
|
* @since 0.0.42
|
|
26
26
|
*/
|
|
27
|
-
declare const Markdown: ({ baseClassName, className, compact, children, ...props }: MarkdownProps) => JSX.Element;
|
|
27
|
+
declare const Markdown: ({ baseClassName, className, compact, children, ...props }: MarkdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default Markdown;
|