@plesk/ui-library 3.31.1 → 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 (122) hide show
  1. package/cjs/components/Button/Button.js +4 -1
  2. package/cjs/components/Button/ButtonContext.js +28 -0
  3. package/cjs/components/CodeEditor/CodeEditor.js +2 -1
  4. package/cjs/components/ComboBox/ComboBoxOption.js +1 -2
  5. package/cjs/components/Dialog/Dialog.js +17 -9
  6. package/cjs/components/Drawer/Drawer.js +7 -14
  7. package/cjs/components/Drawer/DrawerProgress.js +9 -12
  8. package/cjs/components/Form/Form.js +25 -23
  9. package/cjs/components/ItemList/ItemList.js +1 -1
  10. package/cjs/components/Link/Link.js +2 -1
  11. package/cjs/components/List/List.js +16 -9
  12. package/cjs/components/List/ListEmptyView.js +10 -2
  13. package/cjs/components/Markdown/Markdown.js +1 -3
  14. package/cjs/components/Select/SelectOption.js +1 -2
  15. package/cjs/components/Spot/SpotPopup.js +2 -0
  16. package/cjs/index.js +1 -1
  17. package/dist/plesk-ui-library-rtl.css +1 -1
  18. package/dist/plesk-ui-library-rtl.css.map +1 -1
  19. package/dist/plesk-ui-library.css +1 -1
  20. package/dist/plesk-ui-library.css.map +1 -1
  21. package/dist/plesk-ui-library.js +514 -379
  22. package/dist/plesk-ui-library.js.map +1 -1
  23. package/dist/plesk-ui-library.min.js +6 -6
  24. package/dist/plesk-ui-library.min.js.map +1 -1
  25. package/esm/components/Button/Button.js +4 -1
  26. package/esm/components/Button/ButtonContext.js +18 -0
  27. package/esm/components/ComboBox/ComboBoxOption.js +1 -2
  28. package/esm/components/Dialog/Dialog.js +18 -10
  29. package/esm/components/Drawer/Drawer.js +7 -14
  30. package/esm/components/Drawer/DrawerProgress.js +10 -13
  31. package/esm/components/Form/Form.js +26 -24
  32. package/esm/components/Link/Link.js +3 -1
  33. package/esm/components/List/List.js +14 -8
  34. package/esm/components/List/ListEmptyView.js +10 -2
  35. package/esm/components/Markdown/Markdown.js +1 -3
  36. package/esm/components/Select/SelectOption.js +1 -2
  37. package/esm/components/Spot/SpotPopup.js +3 -0
  38. package/esm/index.js +1 -1
  39. package/package.json +70 -74
  40. package/styleguide/build/bundle.bab12e1d.js +2 -0
  41. package/styleguide/build/{bundle.a0fc0411.js.LICENSE.txt → bundle.bab12e1d.js.LICENSE.txt} +4 -4
  42. package/styleguide/images/empty-list.png +0 -0
  43. package/styleguide/index.html +2 -2
  44. package/types/package.d.ts +12 -14
  45. package/types/src/components/Alert/Alert.stories.d.ts +2 -2
  46. package/types/src/components/AutoClosable/AutoClosable.d.ts +1 -1
  47. package/types/src/components/Button/Button.stories.d.ts +6 -5
  48. package/types/src/components/Button/ButtonContext.d.ts +9 -0
  49. package/types/src/components/Card/PreviewPanel.d.ts +2 -2
  50. package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +1 -1
  51. package/types/src/components/ComboBox/ComboBox.d.ts +2 -2
  52. package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +2 -2
  53. package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +2 -2
  54. package/types/src/components/ContentLoader/IconsLoader.d.ts +2 -2
  55. package/types/src/components/Cuttable/Cuttable.d.ts +1 -1
  56. package/types/src/components/Cuttable/Cuttable.stories.d.ts +4 -4
  57. package/types/src/components/Dialog/Dialog.stories.d.ts +4 -3
  58. package/types/src/components/Drawer/Drawer.stories.d.ts +6 -5
  59. package/types/src/components/Form/Form.d.ts +9 -9
  60. package/types/src/components/Form/Form.stories.d.ts +3 -2
  61. package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +3 -2
  62. package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +3 -3
  63. package/types/src/components/Icon/Icon.stories.d.ts +3 -2
  64. package/types/src/components/InputFile/InputFile.d.ts +2 -2
  65. package/types/src/components/ItemLink/ItemLink.stories.d.ts +1 -1
  66. package/types/src/components/ItemList/ItemList.d.ts +4 -4
  67. package/types/src/components/ItemList/ItemList.stories.d.ts +30 -30
  68. package/types/src/components/Link/Link.d.ts +2 -2
  69. package/types/src/components/List/List.stories.d.ts +8 -7
  70. package/types/src/components/List/ListAction.d.ts +2 -2
  71. package/types/src/components/List/ListActions.d.ts +2 -2
  72. package/types/src/components/List/ListActionsDivider.d.ts +1 -1
  73. package/types/src/components/LocaleProvider/LocaleProvider.d.ts +2 -2
  74. package/types/src/components/Menu/Menu.stories.d.ts +7 -6
  75. package/types/src/components/Panel/Panel.d.ts +1 -1
  76. package/types/src/components/Popover/Popover.stories.d.ts +9 -8
  77. package/types/src/components/Select/Select.stories.d.ts +3 -3
  78. package/types/src/components/Skeleton/Skeleton.stories.d.ts +2 -2
  79. package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +1 -1
  80. package/types/src/components/Skeleton/SkeletonText.stories.d.ts +6 -6
  81. package/types/src/components/Spot/Spot.d.ts +2 -2
  82. package/types/src/components/Spot/SpotPopup.d.ts +2 -2
  83. package/types/src/components/Squeezer/Squeezer.d.ts +2 -2
  84. package/types/src/components/Status/Status.stories.d.ts +3 -3
  85. package/types/src/components/Tabs/Tabs.stories.d.ts +3 -2
  86. package/types/src/components/TextArea/TextArea.d.ts +1 -1
  87. package/types/src/components/Toast/Toast.d.ts +2 -2
  88. package/types/src/components/Toaster/Toaster.d.ts +2 -2
  89. package/types/src/components/Toolbar/ToolbarExpander.d.ts +2 -2
  90. package/types/src/components/Toolbar/ToolbarItem.d.ts +1 -1
  91. package/types/src/components/Tour/Tour.d.ts +2 -2
  92. package/types/src/components/utils.d.ts +1 -1
  93. package/cjs/components/Drawer/ScrollDirection.js +0 -45
  94. package/dist/images/default.svg +0 -1
  95. package/dist/images/filtered.svg +0 -1
  96. package/esm/components/Drawer/ScrollDirection.js +0 -37
  97. package/styleguide/build/bundle.a0fc0411.js +0 -2
  98. package/styleguide/images/default.svg +0 -1
  99. package/styleguide/images/empty-list_256.png +0 -0
  100. package/styleguide/images/filtered.svg +0 -1
  101. package/styleguide/patterns/controls/control-button-tooltip-1-do.png +0 -0
  102. package/styleguide/patterns/controls/control-button-tooltip-1-dont.png +0 -0
  103. package/styleguide/patterns/controls/control-button-tooltip-2-do.png +0 -0
  104. package/styleguide/patterns/controls/control-button-tooltip-2-dont.png +0 -0
  105. package/styleguide/patterns/controls/control-button-tooltip-3-do.png +0 -0
  106. package/styleguide/patterns/controls/control-button-tooltip-3-dont.png +0 -0
  107. package/styleguide/patterns/dialogsWindows/autoclose.png +0 -0
  108. package/styleguide/patterns/dialogsWindows/focus.png +0 -0
  109. package/styleguide/patterns/dialogsWindows/header.png +0 -0
  110. package/styleguide/patterns/dialogsWindows/image.png +0 -0
  111. package/styleguide/patterns/dialogsWindows/list_submit.png +0 -0
  112. package/styleguide/patterns/dialogsWindows/new_object.png +0 -0
  113. package/styleguide/patterns/dialogsWindows/popover-confirm.png +0 -0
  114. package/styleguide/patterns/dialogsWindows/popover.png +0 -0
  115. package/styleguide/patterns/dialogsWindows/similar_buttons.png +0 -0
  116. package/styleguide/patterns/dialogsWindows/submit.png +0 -0
  117. package/styleguide/patterns/dialogsWindows/toast_controls.png +0 -0
  118. package/styleguide/patterns/dialogsWindows/toaster_intent.png +0 -0
  119. package/styleguide/patterns/dialogsWindows/tooltip.png +0 -0
  120. package/styleguide/patterns/dialogsWindows/tour.png +0 -0
  121. package/styleguide/patterns/dialogsWindows/when_to_show.png +0 -0
  122. package/styleguide/patterns/dialogsWindows/width.png +0 -0
@@ -63,8 +63,8 @@ object-assign
63
63
  * LICENSE file in the root directory of this source tree.
64
64
  */
65
65
 
66
- /** @license React v16.11.0
67
- * react.production.min.js
66
+ /** @license React v16.14.0
67
+ * react-dom.production.min.js
68
68
  *
69
69
  * Copyright (c) Facebook, Inc. and its affiliates.
70
70
  *
@@ -73,7 +73,7 @@ object-assign
73
73
  */
74
74
 
75
75
  /** @license React v16.14.0
76
- * react-dom.production.min.js
76
+ * react.production.min.js
77
77
  *
78
78
  * Copyright (c) Facebook, Inc. and its affiliates.
79
79
  *
@@ -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
  *
Binary file
@@ -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.1</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.a0fc0411.js"></script>
43
+ <script src="build/bundle.bab12e1d.js"></script>
44
44
  </body>
45
45
  </html>
@@ -30,20 +30,9 @@ declare const _exports: {
30
30
  "files": string[];
31
31
  "dependencies": {
32
32
  "@babel/runtime": string;
33
- "@babel/types": string;
34
33
  "@plesk/react-movable": string;
35
- "@types/classnames": string;
36
- "@types/jest": string;
37
- "@types/marked": string;
38
- "@types/node": string;
39
- "@types/react": string;
40
- "@types/react-dom": string;
41
- "@types/react-measure": string;
42
- "@types/react-transition-group": string;
43
- "@types/svg4everybody": string;
44
34
  "classnames": string;
45
35
  "codemirror": string;
46
- "jest": string;
47
36
  "marked": string;
48
37
  "memoize-one": string;
49
38
  "popper.js": string;
@@ -63,13 +52,23 @@ declare const _exports: {
63
52
  "@babel/preset-env": string;
64
53
  "@babel/preset-react": string;
65
54
  "@babel/preset-typescript": string;
55
+ "@babel/types": string;
66
56
  "@csstools/postcss-logical-float-and-clear": string;
67
57
  "@plesk/eslint-config": string;
68
58
  "@plesk/stylelint-config": string;
69
59
  "@types/buble": string;
70
60
  "@types/cheerio": string;
61
+ "@types/classnames": string;
71
62
  "@types/doctrine": string;
72
63
  "@types/enzyme": string;
64
+ "@types/jest": string;
65
+ "@types/marked": string;
66
+ "@types/node": string;
67
+ "@types/react": string;
68
+ "@types/react-dom": string;
69
+ "@types/react-measure": string;
70
+ "@types/react-transition-group": string;
71
+ "@types/svg4everybody": string;
73
72
  "@typescript-eslint/eslint-plugin": string;
74
73
  "@typescript-eslint/parser": string;
75
74
  "autoprefixer": string;
@@ -89,6 +88,7 @@ declare const _exports: {
89
88
  "fs-extra": string;
90
89
  "html-webpack-plugin": string;
91
90
  "inquirer": string;
91
+ "jest": string;
92
92
  "jest-dev-server": string;
93
93
  "jest-image-snapshot": string;
94
94
  "less": string;
@@ -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,8 +124,7 @@ declare const _exports: {
125
124
  };
126
125
  "resolutions": {
127
126
  "@babel/types": string;
128
- "@types/node": string;
129
- "**/caniuse-lite": string;
127
+ "@types/react": string;
130
128
  "trim": string;
131
129
  "postcss": string;
132
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;
@@ -5,6 +5,6 @@ declare type ClosingConfirmationProps = {
5
5
  };
6
6
  declare const useClosingConfirmation: ({ onClose, closingConfirmation }: ClosingConfirmationProps) => {
7
7
  onCloseWithConfirmation: any;
8
- closingConfirmationDialog: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null;
8
+ closingConfirmationDialog: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | null;
9
9
  };
10
10
  export default useClosingConfirmation;
@@ -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
@@ -189,12 +189,12 @@ declare const RefForwardingForm: React.ForwardRefExoticComponent<{
189
189
  render?: ((params: {
190
190
  renderForm: (params: {
191
191
  actionButtons?: React.ReactNode;
192
- }) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
193
- renderActionButtons: () => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
192
+ }) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
193
+ renderActionButtons: () => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
194
194
  }) => React.ReactNode) | undefined;
195
195
  /**
196
196
  * @ignore
197
197
  */
198
198
  innerRef?: React.MutableRefObject<HTMLFormElement | null> | undefined;
199
- } & Pick<React.HTMLProps<HTMLFormElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "key" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<FormInstanceHandles>>;
199
+ } & Pick<React.HTMLProps<HTMLFormElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "height" | "translate" | "width" | "children" | "className" | "id" | "lang" | "method" | "min" | "name" | "target" | "type" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "list" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "value" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "step" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "poster" | "challenge" | "keyType" | "keyParams"> & React.RefAttributes<FormInstanceHandles>>;
200
200
  export default RefForwardingForm;
@@ -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;
@@ -97,8 +97,8 @@ declare class ItemList extends Component<ItemListProps, ItemListState> {
97
97
  value: string | number | (string | number)[] | null;
98
98
  } | null;
99
99
  componentDidMount(): void;
100
- createItemProps: (item: React.ReactElement<ItemProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) => ItemProps;
101
- renderNormal({ baseClassName, children, ...props }: ItemListProps): JSX.Element;
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): 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;