@livechat/design-system-react-components 1.11.0 → 1.13.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.
@@ -14,6 +14,10 @@ export interface ActionMenuProps {
14
14
  * Array of menu options
15
15
  */
16
16
  options: IActionMenuOption[];
17
+ /**
18
+ * Array of selected menu options keys
19
+ */
20
+ selectedOptions?: string[];
17
21
  /**
18
22
  * Trigger element
19
23
  */
@@ -9,3 +9,4 @@ declare const _default: {
9
9
  export default _default;
10
10
  export declare const Default: () => React.ReactElement;
11
11
  export declare const KeepOpenOnItemClick: () => React.ReactElement;
12
+ export declare const WithSelectedOptions: () => React.ReactElement;
@@ -25,6 +25,18 @@ export interface IPromoBannerV2Props {
25
25
  label: string;
26
26
  kind?: ButtonKind;
27
27
  };
28
+ /**
29
+ * Set to true to display the banner vertically
30
+ */
31
+ vertical?: boolean;
32
+ /**
33
+ * Specify an optional className to be applied to the content node
34
+ */
35
+ contentClassName?: string;
36
+ /**
37
+ * Specify an optional className to be applied to the additional content node
38
+ */
39
+ additionalContentClassName?: string;
28
40
  /**
29
41
  * Event handler for close button press
30
42
  */
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
+ import noop from '../../utils/noop';
3
+ import { IPromoBannerV2Props } from './PromoBannerV2';
2
4
  declare const _default: {
3
5
  title: string;
4
- component: React.FC<React.PropsWithChildren<import("./PromoBannerV2").IPromoBannerV2Props>>;
6
+ component: React.FC<React.PropsWithChildren<IPromoBannerV2Props>>;
5
7
  argTypes: {
6
8
  primaryButton: {
7
9
  control: boolean;
@@ -18,6 +20,32 @@ declare const _default: {
18
20
  };
19
21
  };
20
22
  export default _default;
21
- export declare const Default: () => React.ReactElement;
22
- export declare const WithStyledAdditionalContent: () => React.ReactElement;
23
+ export declare const Default: {
24
+ (args: IPromoBannerV2Props): React.ReactElement;
25
+ args: {
26
+ primaryButton: {
27
+ label: string;
28
+ handleClick: typeof noop;
29
+ };
30
+ secondaryButton: {
31
+ label: string;
32
+ handleClick: typeof noop;
33
+ };
34
+ onClose: typeof noop;
35
+ };
36
+ };
37
+ export declare const WithStyledAdditionalContent: {
38
+ (args: IPromoBannerV2Props): React.ReactElement;
39
+ args: {
40
+ primaryButton: {
41
+ label: string;
42
+ handleClick: typeof noop;
43
+ };
44
+ secondaryButton: {
45
+ label: string;
46
+ handleClick: typeof noop;
47
+ };
48
+ onClose: typeof noop;
49
+ };
50
+ };
23
51
  export declare const WithStyledMainContent: () => React.ReactElement;