@plesk/ui-library 3.28.3 → 3.29.0

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.
@@ -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.28.3</title>
7
+ <title>Plesk UI Library 3.29.0</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.3b7e4d37.js"></script>
43
+ <script src="build/bundle.2a86713c.js"></script>
44
44
  </body>
45
45
  </html>
@@ -1,4 +1,5 @@
1
1
  import { Component, ReactElement, RefObject } from 'react';
2
+ import { IconName, IconProps } from '../Icon';
2
3
  import './Toast.less';
3
4
  export declare type ToastProps = {
4
5
  /**
@@ -12,6 +13,14 @@ export declare type ToastProps = {
12
13
  */
13
14
  autoCloseTimeout?: number;
14
15
  closable?: boolean;
16
+ /**
17
+ * @since 3.29.0
18
+ */
19
+ accent?: boolean;
20
+ /**
21
+ * @since 3.29.0
22
+ */
23
+ icon?: IconName | IconProps | ReactElement<any>;
15
24
  /**
16
25
  * @since 3.9.0
17
26
  */
@@ -55,6 +55,8 @@ export default class Toaster extends Component<ToasterProps, ToasterState> {
55
55
  * Add a new toast
56
56
  *
57
57
  * `intent` - Visual intent color to apply to component. (Type: `oneOf` 'info', 'success', 'warning', 'danger'. *Required*.)<br>
58
+ * `accent` - Contrast (light) version of the component. (Type: `boolean`. Default: 'undefined'.)<br>
59
+ * `icon` - Name of icon or [Icon](#!/Icon) component. (Type: `oneOfType` 'string', 'object', 'element'. Default: `undefined`.)<br>
58
60
  * `message` - Message to display in the body of the toast. (Type: `any`. Default: `undefined`.)<br>
59
61
  * `onClose` - onClose handler. (Type: `func`. Default: `undefined`.)<br>
60
62
  * `closable` - Show close control (cross mark). (Type: `boolean`. Default: `true`.)<br>