@plesk/ui-library 3.31.2 → 3.31.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/cjs/components/Button/Button.js +4 -1
  2. package/cjs/components/Button/ButtonContext.js +28 -0
  3. package/cjs/components/Drawer/Drawer.js +7 -14
  4. package/cjs/components/Drawer/DrawerProgress.js +9 -12
  5. package/cjs/components/Form/Form.js +24 -22
  6. package/cjs/components/List/ListEmptyView.js +10 -2
  7. package/cjs/index.js +1 -1
  8. package/dist/plesk-ui-library-rtl.css +1 -1
  9. package/dist/plesk-ui-library-rtl.css.map +1 -1
  10. package/dist/plesk-ui-library.css +1 -1
  11. package/dist/plesk-ui-library.css.map +1 -1
  12. package/dist/plesk-ui-library.js +331 -232
  13. package/dist/plesk-ui-library.js.map +1 -1
  14. package/dist/plesk-ui-library.min.js +5 -5
  15. package/dist/plesk-ui-library.min.js.map +1 -1
  16. package/esm/components/Button/Button.js +4 -1
  17. package/esm/components/Button/ButtonContext.js +18 -0
  18. package/esm/components/Drawer/Drawer.js +7 -14
  19. package/esm/components/Drawer/DrawerProgress.js +10 -13
  20. package/esm/components/Form/Form.js +25 -23
  21. package/esm/components/List/ListEmptyView.js +10 -2
  22. package/esm/index.js +1 -1
  23. package/package.json +38 -43
  24. package/styleguide/build/bundle.bab12e1d.js +2 -0
  25. package/styleguide/build/{bundle.26082873.js.LICENSE.txt → bundle.bab12e1d.js.LICENSE.txt} +1 -1
  26. package/styleguide/index.html +2 -2
  27. package/types/package.d.ts +0 -3
  28. package/types/src/components/Alert/Alert.stories.d.ts +2 -2
  29. package/types/src/components/AutoClosable/AutoClosable.d.ts +1 -1
  30. package/types/src/components/Button/Button.stories.d.ts +6 -5
  31. package/types/src/components/Button/ButtonContext.d.ts +9 -0
  32. package/types/src/components/Card/PreviewPanel.d.ts +2 -2
  33. package/types/src/components/ComboBox/ComboBox.d.ts +2 -2
  34. package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +2 -2
  35. package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +2 -2
  36. package/types/src/components/ContentLoader/IconsLoader.d.ts +2 -2
  37. package/types/src/components/Cuttable/Cuttable.d.ts +1 -1
  38. package/types/src/components/Cuttable/Cuttable.stories.d.ts +4 -4
  39. package/types/src/components/Dialog/Dialog.stories.d.ts +4 -3
  40. package/types/src/components/Drawer/Drawer.stories.d.ts +6 -5
  41. package/types/src/components/Form/Form.d.ts +6 -6
  42. package/types/src/components/Form/Form.stories.d.ts +3 -2
  43. package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +3 -2
  44. package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +3 -3
  45. package/types/src/components/Icon/Icon.stories.d.ts +3 -2
  46. package/types/src/components/InputFile/InputFile.d.ts +2 -2
  47. package/types/src/components/ItemLink/ItemLink.stories.d.ts +1 -1
  48. package/types/src/components/ItemList/ItemList.d.ts +3 -3
  49. package/types/src/components/ItemList/ItemList.stories.d.ts +6 -6
  50. package/types/src/components/Link/Link.d.ts +2 -2
  51. package/types/src/components/List/List.stories.d.ts +8 -7
  52. package/types/src/components/List/ListAction.d.ts +2 -2
  53. package/types/src/components/List/ListActions.d.ts +2 -2
  54. package/types/src/components/List/ListActionsDivider.d.ts +1 -1
  55. package/types/src/components/LocaleProvider/LocaleProvider.d.ts +2 -2
  56. package/types/src/components/Menu/Menu.stories.d.ts +7 -6
  57. package/types/src/components/Panel/Panel.d.ts +1 -1
  58. package/types/src/components/Popover/Popover.stories.d.ts +9 -8
  59. package/types/src/components/Select/Select.stories.d.ts +3 -3
  60. package/types/src/components/Skeleton/Skeleton.stories.d.ts +2 -2
  61. package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +1 -1
  62. package/types/src/components/Skeleton/SkeletonText.stories.d.ts +3 -3
  63. package/types/src/components/Spot/Spot.d.ts +2 -2
  64. package/types/src/components/Spot/SpotPopup.d.ts +2 -2
  65. package/types/src/components/Squeezer/Squeezer.d.ts +2 -2
  66. package/types/src/components/Status/Status.stories.d.ts +1 -1
  67. package/types/src/components/Tabs/Tabs.stories.d.ts +3 -2
  68. package/types/src/components/TextArea/TextArea.d.ts +1 -1
  69. package/types/src/components/Toast/Toast.d.ts +2 -2
  70. package/types/src/components/Toaster/Toaster.d.ts +2 -2
  71. package/types/src/components/Toolbar/ToolbarExpander.d.ts +2 -2
  72. package/types/src/components/Tour/Tour.d.ts +2 -2
  73. package/types/src/components/utils.d.ts +1 -1
  74. package/cjs/components/Drawer/ScrollDirection.js +0 -45
  75. package/dist/images/default.svg +0 -1
  76. package/dist/images/filtered.svg +0 -1
  77. package/esm/components/Drawer/ScrollDirection.js +0 -37
  78. package/styleguide/build/bundle.26082873.js +0 -2
  79. package/styleguide/images/default.svg +0 -1
  80. package/styleguide/images/empty-list_256.png +0 -0
  81. package/styleguide/images/filtered.svg +0 -1
  82. package/styleguide/patterns/controls/control-button-tooltip-1-do.png +0 -0
  83. package/styleguide/patterns/controls/control-button-tooltip-1-dont.png +0 -0
  84. package/styleguide/patterns/controls/control-button-tooltip-2-do.png +0 -0
  85. package/styleguide/patterns/controls/control-button-tooltip-2-dont.png +0 -0
  86. package/styleguide/patterns/controls/control-button-tooltip-3-do.png +0 -0
  87. package/styleguide/patterns/controls/control-button-tooltip-3-dont.png +0 -0
  88. package/styleguide/patterns/dialogsWindows/autoclose.png +0 -0
  89. package/styleguide/patterns/dialogsWindows/focus.png +0 -0
  90. package/styleguide/patterns/dialogsWindows/header.png +0 -0
  91. package/styleguide/patterns/dialogsWindows/image.png +0 -0
  92. package/styleguide/patterns/dialogsWindows/list_submit.png +0 -0
  93. package/styleguide/patterns/dialogsWindows/new_object.png +0 -0
  94. package/styleguide/patterns/dialogsWindows/popover-confirm.png +0 -0
  95. package/styleguide/patterns/dialogsWindows/popover.png +0 -0
  96. package/styleguide/patterns/dialogsWindows/similar_buttons.png +0 -0
  97. package/styleguide/patterns/dialogsWindows/submit.png +0 -0
  98. package/styleguide/patterns/dialogsWindows/toast_controls.png +0 -0
  99. package/styleguide/patterns/dialogsWindows/toaster_intent.png +0 -0
  100. package/styleguide/patterns/dialogsWindows/tooltip.png +0 -0
  101. package/styleguide/patterns/dialogsWindows/tour.png +0 -0
  102. package/styleguide/patterns/dialogsWindows/when_to_show.png +0 -0
  103. package/styleguide/patterns/dialogsWindows/width.png +0 -0
@@ -83,7 +83,7 @@ object-assign
83
83
 
84
84
  /**!
85
85
  * @fileOverview Kickass library to create and place poppers near their reference elements.
86
- * @version 1.14.3
86
+ * @version 1.16.1
87
87
  * @license
88
88
  * Copyright (c) 2016 Federico Zivolo and contributors
89
89
  *
@@ -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.31.2</title>
7
+ <title>Plesk UI Library 3.31.3</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">
@@ -40,6 +40,6 @@
40
40
  </script>
41
41
  <noscript><div><img src="https://mc.yandex.ru/watch/56446840" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
42
42
  <!-- /Yandex.Metrika counter -->
43
- <script src="build/bundle.26082873.js"></script>
43
+ <script src="build/bundle.bab12e1d.js"></script>
44
44
  </body>
45
45
  </html>
@@ -108,7 +108,6 @@ declare const _exports: {
108
108
  "rtlcss": string;
109
109
  "style-loader": string;
110
110
  "stylelint": string;
111
- "stylelint-config-prettier": string;
112
111
  "stylelint-declaration-block-no-ignored-properties": string;
113
112
  "stylelint-no-unsupported-browser-features": string;
114
113
  "stylelint-prettier": string;
@@ -125,9 +124,7 @@ declare const _exports: {
125
124
  };
126
125
  "resolutions": {
127
126
  "@babel/types": string;
128
- "@types/node": string;
129
127
  "@types/react": string;
130
- "**/caniuse-lite": string;
131
128
  "trim": string;
132
129
  "postcss": string;
133
130
  };
@@ -6,9 +6,9 @@ export declare const Basic: {
6
6
  intent?: "success" | "info" | "warning" | "danger" | undefined;
7
7
  children?: React.ReactNode;
8
8
  onClose?: ((e: React.SyntheticEvent<HTMLElement, Event>) => void) | undefined;
9
- }>): JSX.Element;
9
+ }>): React.JSX.Element;
10
10
  args: {
11
11
  children: string;
12
12
  };
13
13
  };
14
- export declare const Intents: () => JSX.Element;
14
+ export declare const Intents: () => React.JSX.Element;
@@ -54,6 +54,6 @@ declare class AutoClosable extends Component<AutoClosableProps> {
54
54
  readonly TEXT_NODE: number;
55
55
  } | React.Component<any, {}, any> | React.RefObject<HTMLElement> | null)[];
56
56
  onOutsideClick: (event: MouseEvent) => void;
57
- render(): JSX.Element;
57
+ render(): React.JSX.Element;
58
58
  }
59
59
  export default AutoClosable;
@@ -1,15 +1,16 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {
4
5
  children: string;
5
6
  };
6
7
  };
7
8
  export declare const Ghost: {
8
- (args: any): JSX.Element;
9
+ (args: any): React.JSX.Element;
9
10
  args: {
10
11
  icon: string;
11
12
  };
12
13
  };
13
- export declare const Intents: () => JSX.Element;
14
- export declare const Arrows: () => JSX.Element;
15
- export declare const States: () => JSX.Element[];
14
+ export declare const Intents: () => React.JSX.Element;
15
+ export declare const Arrows: () => React.JSX.Element;
16
+ export declare const States: () => React.JSX.Element[];
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare type ButtonContextValue = {
3
+ defaultProps: {
4
+ size?: 'md' | 'lg';
5
+ };
6
+ };
7
+ export declare const ButtonContext: React.Context<ButtonContextValue>;
8
+ export declare const getButtonContextValue: (value: Partial<ButtonContextValue>) => ButtonContextValue;
9
+ export default ButtonContext;
@@ -1,4 +1,4 @@
1
- import { ReactNode, CSSProperties } from 'react';
1
+ import React, { ReactNode, CSSProperties } from 'react';
2
2
  import './PreviewPanel.less';
3
3
  declare type PreviewPanelProps = {
4
4
  /**
@@ -49,5 +49,5 @@ declare type PreviewPanelProps = {
49
49
  * `PreviewPanel` component is used for displaying website preview.
50
50
  * @since 0.3.0
51
51
  */
52
- declare const PreviewPanel: ({ background, image, padding, alt, children, className, baseClassName, html, ...props }: PreviewPanelProps) => JSX.Element;
52
+ declare const PreviewPanel: ({ background, image, padding, alt, children, className, baseClassName, html, ...props }: PreviewPanelProps) => React.JSX.Element;
53
53
  export default PreviewPanel;
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ReactElement } from 'react';
1
+ import React, { ComponentProps, ReactElement } from 'react';
2
2
  import ComboBoxOption from './ComboBoxOption';
3
3
  import './ComboBox.less';
4
4
  declare type ComboBoxProps = {
@@ -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): React.JSX.Element;
56
56
  displayName: string;
57
57
  };
58
58
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode, RefObject } from 'react';
1
+ import React, { ReactElement, ReactNode, RefObject } from 'react';
2
2
  import { EventEmitter } from '../utils';
3
3
  import './ComboBoxDropdown.less';
4
4
  declare type ValueType = any;
@@ -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) => React.JSX.Element;
40
40
  export default ComboBoxDropdown;
@@ -1,4 +1,4 @@
1
- import { PureComponent, ReactNode, RefObject } from 'react';
1
+ import React, { PureComponent, ReactNode, RefObject } from 'react';
2
2
  import './ConsoleOutput.less';
3
3
  declare type ConsoleOutputProps = {
4
4
  /**
@@ -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(): React.JSX.Element;
51
51
  }
52
52
  export default ConsoleOutput;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  import { IconName, IconProps } from '../Icon';
3
3
  import './IconsLoader.less';
4
4
  declare type IconsLoaderProps = {
@@ -8,5 +8,5 @@ declare type IconsLoaderProps = {
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) => React.JSX.Element;
12
12
  export default IconsLoader;
@@ -58,6 +58,6 @@ declare class Cuttable extends Component<CuttableProps, CuttableState> {
58
58
  contentRef: React.RefObject<HTMLDivElement>;
59
59
  handleToggle: () => void;
60
60
  handleResize: () => void;
61
- render(): JSX.Element;
61
+ render(): React.JSX.Element;
62
62
  }
63
63
  export default Cuttable;
@@ -10,9 +10,9 @@ export declare const Basic: {
10
10
  };
11
11
  className?: string | undefined;
12
12
  baseClassName?: string | undefined;
13
- }): JSX.Element;
13
+ }): React.JSX.Element;
14
14
  args: {
15
- children: JSX.Element;
15
+ children: React.JSX.Element;
16
16
  };
17
17
  };
18
18
  export declare const WithItemList: {
@@ -26,9 +26,9 @@ export declare const WithItemList: {
26
26
  };
27
27
  className?: string | undefined;
28
28
  baseClassName?: string | undefined;
29
- }): JSX.Element;
29
+ }): React.JSX.Element;
30
30
  args: {
31
31
  maxHeight: number;
32
- children: JSX.Element;
32
+ children: React.JSX.Element;
33
33
  };
34
34
  };
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {
4
5
  children: string;
5
6
  title: string;
@@ -7,10 +8,10 @@ export declare const Basic: {
7
8
  };
8
9
  };
9
10
  export declare const WithSideBanner: {
10
- (args: any): JSX.Element;
11
+ (args: any): React.JSX.Element;
11
12
  args: {
12
13
  size: string;
13
- sideBanner: JSX.Element;
14
+ sideBanner: React.JSX.Element;
14
15
  sideBannerContainer: {
15
16
  background: string;
16
17
  };
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {
4
5
  children: string;
5
6
  title: string;
@@ -7,7 +8,7 @@ export declare const Basic: {
7
8
  };
8
9
  };
9
10
  export declare const WithForm: {
10
- (args: any): JSX.Element;
11
+ (args: any): React.JSX.Element;
11
12
  args: {
12
13
  form: {};
13
14
  children: string;
@@ -16,10 +17,10 @@ export declare const WithForm: {
16
17
  };
17
18
  };
18
19
  export declare const WithSideBanner: {
19
- (args: any): JSX.Element;
20
+ (args: any): React.JSX.Element;
20
21
  args: {
21
22
  size: string;
22
- sideBanner: JSX.Element;
23
+ sideBanner: React.JSX.Element;
23
24
  sideBannerContainer: {
24
25
  background: string;
25
26
  };
@@ -29,7 +30,7 @@ export declare const WithSideBanner: {
29
30
  };
30
31
  };
31
32
  export declare const WithClosingConfirmation: {
32
- (args: any): JSX.Element;
33
+ (args: any): React.JSX.Element;
33
34
  args: {
34
35
  closingConfirmation: boolean;
35
36
  children: string;
@@ -38,17 +38,17 @@ export declare type FormProps<FV extends FormValues> = {
38
38
  * Submit button visibility or custom configuration
39
39
  * @since 0.0.58
40
40
  */
41
- submitButton?: boolean | ComponentPropsWithRef<typeof Button>;
41
+ submitButton?: boolean | Partial<ComponentPropsWithRef<typeof Button>>;
42
42
  /**
43
43
  * Apply button visibility or custom configuration
44
44
  * @since 0.0.58
45
45
  */
46
- applyButton?: boolean | ComponentPropsWithRef<typeof Button>;
46
+ applyButton?: boolean | Partial<ComponentPropsWithRef<typeof Button>>;
47
47
  /**
48
48
  * Cancel button visibility or custom configuration
49
49
  * @since 0.0.58
50
50
  */
51
- cancelButton?: boolean | ComponentPropsWithRef<typeof Button>;
51
+ cancelButton?: boolean | Partial<ComponentPropsWithRef<typeof Button>>;
52
52
  /**
53
53
  * Additional buttons
54
54
  * @since 0.0.58
@@ -138,17 +138,17 @@ declare const RefForwardingForm: React.ForwardRefExoticComponent<{
138
138
  * Submit button visibility or custom configuration
139
139
  * @since 0.0.58
140
140
  */
141
- submitButton?: boolean | {} | undefined;
141
+ submitButton?: boolean | Partial<{}> | undefined;
142
142
  /**
143
143
  * Apply button visibility or custom configuration
144
144
  * @since 0.0.58
145
145
  */
146
- applyButton?: boolean | {} | undefined;
146
+ applyButton?: boolean | Partial<{}> | undefined;
147
147
  /**
148
148
  * Cancel button visibility or custom configuration
149
149
  * @since 0.0.58
150
150
  */
151
- cancelButton?: boolean | {} | undefined;
151
+ cancelButton?: boolean | Partial<{}> | undefined;
152
152
  /**
153
153
  * Additional buttons
154
154
  * @since 0.0.58
@@ -1,11 +1,12 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {
4
5
  values: {
5
6
  field1: string;
6
7
  field2: string;
7
8
  field3: boolean;
8
9
  };
9
- children: JSX.Element[];
10
+ children: React.JSX.Element[];
10
11
  };
11
12
  };
@@ -1,12 +1,13 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {
4
5
  name: string;
5
6
  label: string;
6
7
  };
7
8
  };
8
9
  export declare const WithFullDescription: {
9
- (args: any): JSX.Element;
10
+ (args: any): React.JSX.Element;
10
11
  args: {
11
12
  label: string;
12
13
  fullDescription: string;
@@ -1,4 +1,4 @@
1
- import { Component, ComponentProps, ComponentPropsWithRef, ReactElement, RefObject } from 'react';
1
+ import React, { Component, ComponentProps, ComponentPropsWithRef, ReactElement, RefObject } from 'react';
2
2
  import Button from '../Button';
3
3
  import FormField from '../FormField';
4
4
  import { PasswordMeterProps } from './PasswordMeter';
@@ -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
+ }): React.JSX.Element;
89
+ render(): React.JSX.Element;
90
90
  }
91
91
  export default FormFieldPassword;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {};
4
5
  };
5
- export declare const All: () => JSX.Element;
6
+ export declare const All: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import './InputFile.less';
3
3
  declare type InputFileProps = {
4
4
  /**
@@ -50,5 +50,5 @@ declare type InputFileProps = {
50
50
  * `InputFile` component is used for browsing and choosing a file from the local disk.
51
51
  * @since 3.2.0
52
52
  */
53
- declare const InputFile: ({ baseClassName, className, onChange, name, disabled, locale, testId, accept, ...props }: InputFileProps) => JSX.Element;
53
+ declare const InputFile: ({ baseClassName, className, onChange, name, disabled, locale, testId, accept, ...props }: InputFileProps) => React.JSX.Element;
54
54
  export default InputFile;
@@ -5,7 +5,7 @@ export declare const Basic: {
5
5
  className?: string | undefined;
6
6
  hoverable?: boolean | undefined;
7
7
  children: React.ReactNode;
8
- } & React.HTMLProps<HTMLDivElement>>): JSX.Element;
8
+ } & React.HTMLProps<HTMLDivElement>>): React.JSX.Element;
9
9
  args: {
10
10
  children: string;
11
11
  onClick: () => void;
@@ -98,7 +98,7 @@ declare class ItemList extends Component<ItemListProps, ItemListState> {
98
98
  } | null;
99
99
  componentDidMount(): void;
100
100
  createItemProps: (item: React.ReactElement<ItemProps, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>) => ItemProps;
101
- renderNormal({ baseClassName, children, ...props }: ItemListProps): JSX.Element;
101
+ renderNormal({ baseClassName, children, ...props }: ItemListProps): React.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): React.JSX.Element | null;
111
+ render(): React.JSX.Element;
112
112
  }
113
113
  export default ItemList;
@@ -22,7 +22,7 @@ export declare const Basic: {
22
22
  baseClassName?: string | undefined;
23
23
  } & Pick<React.PropsWithChildren<{
24
24
  gap?: "md" | "lg" | "xs" | "sm" | "xl" | undefined;
25
- }>, "gap">): JSX.Element;
25
+ }>, "gap">): React.JSX.Element;
26
26
  args: {
27
27
  hoverable?: boolean | undefined;
28
28
  stretchable?: boolean | undefined;
@@ -70,7 +70,7 @@ export declare const Cards: {
70
70
  baseClassName?: string | undefined;
71
71
  } & Pick<React.PropsWithChildren<{
72
72
  gap?: "md" | "lg" | "xs" | "sm" | "xl" | undefined;
73
- }>, "gap">): JSX.Element;
73
+ }>, "gap">): React.JSX.Element;
74
74
  args: {
75
75
  hoverable?: boolean | undefined;
76
76
  stretchable?: boolean | undefined;
@@ -118,7 +118,7 @@ export declare const Reorderables: {
118
118
  baseClassName?: string | undefined;
119
119
  } & Pick<React.PropsWithChildren<{
120
120
  gap?: "md" | "lg" | "xs" | "sm" | "xl" | undefined;
121
- }>, "gap">): JSX.Element;
121
+ }>, "gap">): React.JSX.Element;
122
122
  args: {
123
123
  hoverable?: boolean | undefined;
124
124
  stretchable?: boolean | undefined;
@@ -166,7 +166,7 @@ export declare const Selectables: {
166
166
  baseClassName?: string | undefined;
167
167
  } & Pick<React.PropsWithChildren<{
168
168
  gap?: "md" | "lg" | "xs" | "sm" | "xl" | undefined;
169
- }>, "gap">): JSX.Element;
169
+ }>, "gap">): React.JSX.Element;
170
170
  args: {
171
171
  hoverable?: boolean | undefined;
172
172
  stretchable?: boolean | undefined;
@@ -214,7 +214,7 @@ export declare const HoverableItemList: {
214
214
  baseClassName?: string | undefined;
215
215
  } & Pick<React.PropsWithChildren<{
216
216
  gap?: "md" | "lg" | "xs" | "sm" | "xl" | undefined;
217
- }>, "gap">): JSX.Element;
217
+ }>, "gap">): React.JSX.Element;
218
218
  args: {
219
219
  hoverable?: boolean | undefined;
220
220
  stretchable?: boolean | undefined;
@@ -262,7 +262,7 @@ export declare const HoverableItems: {
262
262
  baseClassName?: string | undefined;
263
263
  } & Pick<React.PropsWithChildren<{
264
264
  gap?: "md" | "lg" | "xs" | "sm" | "xl" | undefined;
265
- }>, "gap">): JSX.Element;
265
+ }>, "gap">): React.JSX.Element;
266
266
  args: {
267
267
  hoverable?: boolean | undefined;
268
268
  stretchable?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { ReactNode, SyntheticEvent, ComponentType, HTMLProps } from 'react';
1
+ import React, { ReactNode, SyntheticEvent, ComponentType, HTMLProps } from 'react';
2
2
  import './Link.less';
3
3
  export declare type LinkProps<P> = {
4
4
  /**
@@ -43,5 +43,5 @@ export declare type LinkProps<P> = {
43
43
  * `Link` is used for navigation purposes.
44
44
  * @since 1.9.0
45
45
  */
46
- declare const Link: <P>({ baseClassName, className, onClick, disabled, pseudo, component, children, ...other }: LinkProps<P>) => JSX.Element;
46
+ declare const Link: <P>({ baseClassName, className, onClick, disabled, pseudo, component, children, ...other }: LinkProps<P>) => React.JSX.Element;
47
47
  export default Link;
@@ -1,28 +1,29 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: any;
4
5
  };
5
6
  export declare const Vertical: {
6
- (args: any): JSX.Element;
7
+ (args: any): React.JSX.Element;
7
8
  args: any;
8
9
  };
9
10
  export declare const Nested: {
10
- (args: any): JSX.Element;
11
+ (args: any): React.JSX.Element;
11
12
  args: any;
12
13
  };
13
14
  export declare const NestedFullFeatured: {
14
- (args: any): JSX.Element;
15
+ (args: any): React.JSX.Element;
15
16
  args: any;
16
17
  };
17
18
  export declare const ExpandedList: {
18
- (args: any): JSX.Element;
19
+ (args: any): React.JSX.Element;
19
20
  args: any;
20
21
  };
21
22
  export declare const Reorderable: {
22
- (args: any): JSX.Element;
23
+ (args: any): React.JSX.Element;
23
24
  args: any;
24
25
  };
25
26
  export declare const ReorderableFullFeatured: {
26
- (args: any): JSX.Element;
27
+ (args: any): React.JSX.Element;
27
28
  args: any;
28
29
  };
@@ -1,4 +1,4 @@
1
- import { ReactNode, ReactElement } from 'react';
1
+ import React, { ReactNode, ReactElement } from 'react';
2
2
  import { IconProps } from '../Icon';
3
3
  declare type RenderFn = (props: {
4
4
  wrap: (children: ReactNode) => ReactNode;
@@ -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) => React.JSX.Element | null;
39
39
  export default ListAction;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import './ListActions.less';
3
3
  declare type ListActionsProps = {
4
4
  /**
@@ -26,5 +26,5 @@ 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) => React.JSX.Element;
30
30
  export default ListActions;
@@ -6,5 +6,5 @@ import React from 'react';
6
6
  */
7
7
  declare const ListActionsDivider: (props: React.PropsWithChildren<{
8
8
  className?: string | undefined;
9
- }>) => JSX.Element;
9
+ }>) => React.JSX.Element;
10
10
  export default ListActionsDivider;
@@ -1,4 +1,4 @@
1
- import { PureComponent, ReactNode } from 'react';
1
+ import React, { PureComponent, ReactNode } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  declare type Message = string | Messages;
4
4
  declare type Messages = {
@@ -32,6 +32,6 @@ declare class LocaleProvider extends PureComponent<LocaleProviderProps> {
32
32
  lmsg: Translate;
33
33
  };
34
34
  };
35
- render(): JSX.Element;
35
+ render(): React.JSX.Element;
36
36
  }
37
37
  export default LocaleProvider;
@@ -1,18 +1,19 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {
4
- children: JSX.Element[];
5
+ children: React.JSX.Element[];
5
6
  };
6
7
  };
7
8
  export declare const Tooltip: {
8
- (args: any): JSX.Element;
9
+ (args: any): React.JSX.Element;
9
10
  args: {
10
- children: JSX.Element[];
11
+ children: React.JSX.Element[];
11
12
  };
12
13
  };
13
14
  export declare const FullFeatured: {
14
- (args: any): JSX.Element;
15
+ (args: any): React.JSX.Element;
15
16
  args: {
16
- children: JSX.Element[];
17
+ children: React.JSX.Element[];
17
18
  };
18
19
  };
@@ -60,6 +60,6 @@ declare class Panel extends Component<PanelProps, PanelState> {
60
60
  prevPropsCollapsed: boolean | undefined;
61
61
  } | null;
62
62
  handleToggle: (e: React.SyntheticEvent<HTMLElement, MouseEvent>) => void;
63
- render(): JSX.Element;
63
+ render(): React.JSX.Element;
64
64
  }
65
65
  export default Panel;
@@ -1,21 +1,22 @@
1
+ import React from 'react';
1
2
  export declare const Basic: {
2
- (args: any): JSX.Element;
3
+ (args: any): React.JSX.Element;
3
4
  args: {
4
- target: JSX.Element;
5
+ target: React.JSX.Element;
5
6
  children: string;
6
7
  };
7
8
  };
8
9
  export declare const ThreeButtons: {
9
- (args: any): JSX.Element;
10
+ (args: any): React.JSX.Element;
10
11
  args: {
11
- children: JSX.Element;
12
- target: JSX.Element;
12
+ children: React.JSX.Element;
13
+ target: React.JSX.Element;
13
14
  };
14
15
  };
15
16
  export declare const Autofocus: {
16
- (args: any): JSX.Element;
17
+ (args: any): React.JSX.Element;
17
18
  args: {
18
- children: JSX.Element;
19
- target: JSX.Element;
19
+ children: React.JSX.Element;
20
+ target: React.JSX.Element;
20
21
  };
21
22
  };