@livechat/design-system-react-components 2.0.0 → 2.1.1
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/InviteAgents/InviteAgents.d.ts +3 -0
- package/dist/components/InviteAgents/components/AnimatedButton/AnimatedButton.d.ts +24 -0
- package/dist/components/InviteAgents/helpers.d.ts +4 -0
- package/dist/components/InviteAgents/index.d.ts +2 -0
- package/dist/components/InviteAgents/types.d.ts +30 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3087 -2872
- package/dist/style.css +1 -1
- package/dist/utils/types.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface AnimatedIconButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* The icon to display inside the button.
|
|
5
|
+
*/
|
|
6
|
+
icon: React.ReactElement;
|
|
7
|
+
/**
|
|
8
|
+
* The text to display alongside the icon.
|
|
9
|
+
*/
|
|
10
|
+
text: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional click handler.
|
|
13
|
+
*/
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Optional className to apply to the button.
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional prop to control the expanded state of the button.
|
|
21
|
+
*/
|
|
22
|
+
isExpanded?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const AnimatedButton: React.FC<AnimatedIconButtonProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentCoreProps } from '../../utils/types';
|
|
2
|
+
|
|
3
|
+
export interface Agent {
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
status: 'available' | 'unavailable' | 'unknown';
|
|
7
|
+
avatar: string;
|
|
8
|
+
}
|
|
9
|
+
export interface InviteAgentsProps extends ComponentCoreProps {
|
|
10
|
+
/**
|
|
11
|
+
* The list of invited agents
|
|
12
|
+
*/
|
|
13
|
+
agents: Agent[];
|
|
14
|
+
/**
|
|
15
|
+
* The function to call when the "Set up Chatbot" button is clicked
|
|
16
|
+
*/
|
|
17
|
+
onSetUpChatbotClick: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* The function to call when the "Invite Teammate" button is clicked
|
|
20
|
+
*/
|
|
21
|
+
onAddTeammateClick: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the invite button should be animated
|
|
24
|
+
*/
|
|
25
|
+
animatedInviteButton?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Offset for the tooltip arrow
|
|
28
|
+
*/
|
|
29
|
+
tooltipArrowOffset?: number;
|
|
30
|
+
}
|