@livechat/design-system-react-components 1.0.0-alpha.53 → 1.0.0-alpha.54
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/dsrc.cjs.js +4 -4
- package/dist/dsrc.es.js +217 -186
- package/dist/dsrc.umd.js +4 -4
- package/dist/shadow/spacing.css +1 -0
- package/dist/shadow/spacing.css.map +1 -1
- package/dist/spacing/spacing.css +1 -0
- package/dist/spacing/spacing.css.map +1 -1
- package/dist/src/components/Alert/Alert.d.ts +14 -0
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/Card/Card.d.ts +18 -0
- package/dist/src/foundations/spacing-token.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/shadow/spacing.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/foundations/spacing.css"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"spacing.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/foundations/spacing.css"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"spacing.css"}
|
package/dist/spacing/spacing.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/foundations/spacing.css"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"spacing.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/foundations/spacing.css"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"spacing.css"}
|
|
@@ -9,6 +9,20 @@ export interface AlertProps {
|
|
|
9
9
|
* Specify the kind of Alert
|
|
10
10
|
*/
|
|
11
11
|
kind?: AlertKind;
|
|
12
|
+
/**
|
|
13
|
+
* Shows the primary CTA button
|
|
14
|
+
*/
|
|
15
|
+
primaryButton?: {
|
|
16
|
+
handleClick: () => void;
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Shows the secondary CTA button
|
|
21
|
+
*/
|
|
22
|
+
secondaryButton?: {
|
|
23
|
+
handleClick: () => void;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
12
26
|
/**
|
|
13
27
|
* The optional event handler for close button
|
|
14
28
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Size } from 'utils';
|
|
3
|
-
export declare type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'text' | 'plain' | 'plain-light' | 'subtle' | 'float';
|
|
3
|
+
export declare type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'text' | 'plain' | 'plain-light' | 'subtle' | 'float' | 'dotted';
|
|
4
4
|
export declare type ButtonProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Specify the button kind
|
|
@@ -2,11 +2,29 @@ import * as React from 'react';
|
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
3
|
export declare type CardButtonOptions = Pick<ButtonProps, 'children' | 'kind' | 'onClick'>;
|
|
4
4
|
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Alternate text for an image card
|
|
7
|
+
*/
|
|
5
8
|
alt?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Array of card buttons
|
|
11
|
+
*/
|
|
6
12
|
buttonsOptions?: CardButtonOptions[];
|
|
13
|
+
/**
|
|
14
|
+
* Card description
|
|
15
|
+
*/
|
|
7
16
|
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Element to display in the expandable area
|
|
19
|
+
*/
|
|
8
20
|
expandableContent?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Image source for the image card
|
|
23
|
+
*/
|
|
9
24
|
src?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Card title
|
|
27
|
+
*/
|
|
10
28
|
title?: string;
|
|
11
29
|
}
|
|
12
30
|
export declare const Card: React.FC<CardProps>;
|