sestek-component 0.0.7 → 0.0.9
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/index.cjs.js +1 -1
- package/dist/index.es.d.ts +57 -4
- package/dist/index.es.js +1660 -1341
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
2
3
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
4
|
import { FunctionComponent } from 'react';
|
|
4
5
|
import { JSX } from 'react/jsx-runtime';
|
|
5
6
|
import { MemoExoticComponent } from 'react';
|
|
6
7
|
import * as React_2 from 'react';
|
|
7
|
-
import { ReactElement } from 'react';
|
|
8
8
|
import { ReactNode } from 'react';
|
|
9
9
|
import { RefAttributes } from 'react';
|
|
10
10
|
import { SVGAttributes } from 'react';
|
|
11
11
|
import { SVGProps } from 'react';
|
|
12
12
|
import { VariantProps } from 'class-variance-authority';
|
|
13
13
|
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const AsistantItem: ({ label, checked, onClick, id, }: AsistantItemProps) => JSX.Element;
|
|
15
|
+
|
|
16
|
+
export declare interface AsistantItemProps {
|
|
17
|
+
label: string;
|
|
18
|
+
checked: boolean;
|
|
19
|
+
id: string;
|
|
20
|
+
onClick: (id: string) => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export declare const Avatar: ({ url, fullName, type, isActive, }: AvatarProps) => JSX.Element;
|
|
15
24
|
|
|
16
25
|
export declare interface AvatarProps {
|
|
17
26
|
url?: string;
|
|
18
27
|
fullName: string;
|
|
19
28
|
type?: "primary" | "secondary";
|
|
29
|
+
isActive?: boolean;
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
@@ -34,6 +44,14 @@ export declare const buttonVariants: (props?: ({
|
|
|
34
44
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
35
45
|
} & ClassProp) | undefined) => string;
|
|
36
46
|
|
|
47
|
+
export declare const ChatList: ({ isShown, personList, onClick }: ChatListProps) => JSX.Element | null;
|
|
48
|
+
|
|
49
|
+
export declare interface ChatListProps {
|
|
50
|
+
isShown: boolean;
|
|
51
|
+
personList: PersonListProps[];
|
|
52
|
+
onClick: (id: string) => void;
|
|
53
|
+
}
|
|
54
|
+
|
|
37
55
|
export declare const GenAISupportMoment: ({ id, message, timestamp, }: GenAISupportMomentProps) => JSX.Element;
|
|
38
56
|
|
|
39
57
|
export declare interface GenAISupportMomentProps {
|
|
@@ -61,6 +79,7 @@ declare const icons: {
|
|
|
61
79
|
Square2Stack: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
62
80
|
Language: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
63
81
|
HandRaised: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
82
|
+
Check: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
64
83
|
ChevronDown: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
65
84
|
Robot: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
66
85
|
Done: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
@@ -69,6 +88,11 @@ declare const icons: {
|
|
|
69
88
|
PoutingFace: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
70
89
|
PountingFace: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
71
90
|
Smiling: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
91
|
+
AngryFace: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
92
|
+
ConfusedFace: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
93
|
+
NeutralFace: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
94
|
+
SmilingWithHearts: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
95
|
+
Send: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
72
96
|
};
|
|
73
97
|
|
|
74
98
|
declare interface IIcon extends SVGProps<SVGSVGElement> {
|
|
@@ -109,6 +133,11 @@ export declare interface MessageBubbleProps {
|
|
|
109
133
|
managerReplyMessage?: ReactNode;
|
|
110
134
|
}
|
|
111
135
|
|
|
136
|
+
export declare const MessageSendBox: ({ ...props }: MessageSendBoxProps) => JSX.Element;
|
|
137
|
+
|
|
138
|
+
export declare interface MessageSendBoxProps extends ComponentProps<"textarea"> {
|
|
139
|
+
}
|
|
140
|
+
|
|
112
141
|
export declare const Moment: ({ items, isDefaultOpen }: MomentProps) => JSX.Element;
|
|
113
142
|
|
|
114
143
|
export declare const MomentItem: ForwardRefExoticComponent<MomentItemProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -127,13 +156,37 @@ export declare interface MomentItemProps {
|
|
|
127
156
|
className?: string;
|
|
128
157
|
}
|
|
129
158
|
|
|
130
|
-
export declare
|
|
159
|
+
export declare interface MomentItemType {
|
|
160
|
+
id: string;
|
|
161
|
+
message: string;
|
|
162
|
+
timestamp: string;
|
|
163
|
+
taskCount?: number;
|
|
164
|
+
completedTaskCount?: number;
|
|
165
|
+
type: MomentType;
|
|
166
|
+
showHelperButtons?: boolean;
|
|
167
|
+
onClickAskGenAI?: () => void;
|
|
168
|
+
onClickAskManager?: () => void;
|
|
169
|
+
}
|
|
131
170
|
|
|
132
171
|
export declare interface MomentProps {
|
|
133
|
-
items:
|
|
172
|
+
items: MomentItemType[];
|
|
134
173
|
isDefaultOpen?: boolean;
|
|
135
174
|
}
|
|
136
175
|
|
|
176
|
+
declare type MomentType = "task-done" | "good-job" | "legal-thread" | "unhappy-customer" | "genai-support";
|
|
177
|
+
|
|
178
|
+
export declare interface PersonListProps {
|
|
179
|
+
fullName: string;
|
|
180
|
+
id: string;
|
|
181
|
+
isActive: boolean;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export declare const SentimentMeter: ({ rate }: SentimentMeterProps) => JSX.Element;
|
|
185
|
+
|
|
186
|
+
export declare interface SentimentMeterProps {
|
|
187
|
+
rate: number;
|
|
188
|
+
}
|
|
189
|
+
|
|
137
190
|
export declare const Tab: () => JSX.Element;
|
|
138
191
|
|
|
139
192
|
export declare const TaskDoneMoment: ({ message, timestamp, id, taskCount, completedTaskCount, }: TaskDoneMomentProps) => JSX.Element;
|