@livechat/design-system-react-components 2.20.0 → 2.21.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.
@@ -1,3 +1,3 @@
1
- import { IAccordionAnimatedLabelProps } from '../types';
1
+ import { IAccordionAnimatedLabelProps } from '../../types';
2
2
  import * as React from 'react';
3
3
  export declare const AccordionAnimatedLabel: React.FC<IAccordionAnimatedLabelProps>;
@@ -0,0 +1,2 @@
1
+ export declare const baseStyles: (containerHeight?: number) => string;
2
+ export declare const element: (isVisible: boolean) => string;
@@ -0,0 +1,2 @@
1
+ export declare const baseStyles: string;
2
+ export declare const inner: string;
@@ -0,0 +1,2 @@
1
+ export { AccordionAnimatedLabel } from './AccordionAnimatedLabel/AccordionAnimatedLabel';
2
+ export { AccordionMultilineElement } from './AccordionMultilineElement/AccordionMultilineElement';
@@ -0,0 +1,8 @@
1
+ export declare const baseStyles: (isPromo?: boolean) => string;
2
+ export declare const kind: (kind?: string) => string;
3
+ export declare const open: string;
4
+ export declare const label: (isPromo?: boolean) => string;
5
+ export declare const chevron: (isOpen?: boolean, isPromo?: boolean) => string;
6
+ export declare const content: string;
7
+ export declare const contentInner: (isOpen?: boolean, isPromo?: boolean) => string;
8
+ export declare const footer: (isPromo?: boolean) => string;
@@ -1,5 +1,23 @@
1
1
  import * as React from 'react';
2
- export interface ActionCardProps {
2
+ export type ActionCardProps = ({
3
+ /**
4
+ * Specify if the card is in loading state
5
+ */
6
+ isLoading: true;
7
+ /**
8
+ * Specify if the card is in animated loading state
9
+ */
10
+ isLoadingAnimated?: boolean;
11
+ } | {
12
+ /**
13
+ * Specify if the card is in loading state
14
+ */
15
+ isLoading?: false;
16
+ /**
17
+ * Loading animation is not available when not loading
18
+ */
19
+ isLoadingAnimated?: never;
20
+ }) & {
3
21
  /**
4
22
  * The CSS class for main container
5
23
  */
@@ -20,4 +38,4 @@ export interface ActionCardProps {
20
38
  * Optional handler called on card click
21
39
  */
22
40
  onClick?: () => void;
23
- }
41
+ };
@@ -14,5 +14,6 @@ export interface PickerTriggerProps {
14
14
  isOpen: boolean;
15
15
  onClear: () => void;
16
16
  setTriggerFocus: (v: boolean) => void;
17
+ onToggle: () => void;
17
18
  }
18
19
  export declare const PickerTrigger: React.FC<React.PropsWithChildren<PickerTriggerProps>>;