@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.
- package/dist/components/ActionMenu/ActionMenu.d.ts +4 -0
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +1 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +12 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.stories.d.ts +31 -3
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +1165 -1130
- package/dist/foundations/transition-token.d.ts +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/preview-stats.json +642 -636
- package/dist/stories/components/Transition/TransitionTable.d.ts +10 -0
- package/dist/stories/components/Transition/transitionDelay.d.ts +6 -0
- package/dist/stories/components/Transition/transitionDuration.d.ts +5 -0
- package/dist/stories/components/Transition/transitionTiming.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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<
|
|
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:
|
|
22
|
-
|
|
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;
|