@yext/chat-ui-react 0.2.2 → 0.3.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/lib/bundle-no-resets.css +1 -1
- package/lib/bundle.css +1 -1
- package/lib/commonjs/components/ChatHeader.d.ts +2 -0
- package/lib/commonjs/components/ChatHeader.d.ts.map +1 -1
- package/lib/commonjs/components/ChatHeader.js +8 -6
- package/lib/commonjs/components/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/ChatInput.d.ts +5 -0
- package/lib/commonjs/components/ChatInput.d.ts.map +1 -1
- package/lib/commonjs/components/ChatInput.js +14 -8
- package/lib/commonjs/components/ChatInput.js.map +1 -1
- package/lib/commonjs/components/ChatPanel.d.ts.map +1 -1
- package/lib/commonjs/components/ChatPanel.js +2 -2
- package/lib/commonjs/components/ChatPanel.js.map +1 -1
- package/lib/commonjs/components/ChatPopUp.d.ts +1 -0
- package/lib/commonjs/components/ChatPopUp.d.ts.map +1 -1
- package/lib/commonjs/components/ChatPopUp.js +13 -4
- package/lib/commonjs/components/ChatPopUp.js.map +1 -1
- package/lib/commonjs/components/MessageBubble.d.ts +1 -1
- package/lib/commonjs/components/MessageBubble.js +2 -3
- package/lib/commonjs/components/MessageBubble.js.map +1 -1
- package/lib/commonjs/icons/Chat.d.ts +5 -0
- package/lib/commonjs/icons/Chat.d.ts.map +1 -0
- package/lib/commonjs/icons/Chat.js +9 -0
- package/lib/commonjs/icons/Chat.js.map +1 -0
- package/lib/commonjs/icons/Cross.d.ts +3 -1
- package/lib/commonjs/icons/Cross.d.ts.map +1 -1
- package/lib/commonjs/icons/Cross.js +2 -2
- package/lib/commonjs/icons/Cross.js.map +1 -1
- package/lib/commonjs/icons/DualSync.d.ts +3 -1
- package/lib/commonjs/icons/DualSync.d.ts.map +1 -1
- package/lib/commonjs/icons/DualSync.js +2 -2
- package/lib/commonjs/icons/DualSync.js.map +1 -1
- package/lib/commonjs/utils/withStylelessCssClasses.d.ts.map +1 -1
- package/lib/commonjs/utils/withStylelessCssClasses.js +3 -1
- package/lib/commonjs/utils/withStylelessCssClasses.js.map +1 -1
- package/lib/esm/components/ChatHeader.d.ts +2 -0
- package/lib/esm/components/ChatHeader.d.ts.map +1 -1
- package/lib/esm/components/ChatHeader.js +8 -6
- package/lib/esm/components/ChatHeader.js.map +1 -1
- package/lib/esm/components/ChatInput.d.ts +5 -0
- package/lib/esm/components/ChatInput.d.ts.map +1 -1
- package/lib/esm/components/ChatInput.js +14 -8
- package/lib/esm/components/ChatInput.js.map +1 -1
- package/lib/esm/components/ChatPanel.d.ts.map +1 -1
- package/lib/esm/components/ChatPanel.js +2 -2
- package/lib/esm/components/ChatPanel.js.map +1 -1
- package/lib/esm/components/ChatPopUp.d.ts +1 -0
- package/lib/esm/components/ChatPopUp.d.ts.map +1 -1
- package/lib/esm/components/ChatPopUp.js +13 -4
- package/lib/esm/components/ChatPopUp.js.map +1 -1
- package/lib/esm/components/MessageBubble.d.ts +1 -1
- package/lib/esm/components/MessageBubble.js +2 -3
- package/lib/esm/components/MessageBubble.js.map +1 -1
- package/lib/esm/icons/Chat.d.ts +5 -0
- package/lib/esm/icons/Chat.d.ts.map +1 -0
- package/lib/esm/icons/Chat.js +5 -0
- package/lib/esm/icons/Chat.js.map +1 -0
- package/lib/esm/icons/Cross.d.ts +3 -1
- package/lib/esm/icons/Cross.d.ts.map +1 -1
- package/lib/esm/icons/Cross.js +2 -2
- package/lib/esm/icons/Cross.js.map +1 -1
- package/lib/esm/icons/DualSync.d.ts +3 -1
- package/lib/esm/icons/DualSync.d.ts.map +1 -1
- package/lib/esm/icons/DualSync.js +2 -2
- package/lib/esm/icons/DualSync.js.map +1 -1
- package/lib/esm/index.d.ts +9 -1
- package/lib/esm/utils/withStylelessCssClasses.d.ts.map +1 -1
- package/lib/esm/utils/withStylelessCssClasses.js +3 -1
- package/lib/esm/utils/withStylelessCssClasses.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChatHeader.tsx +17 -8
- package/src/components/ChatInput.tsx +14 -12
- package/src/components/ChatPanel.tsx +2 -4
- package/src/components/ChatPopUp.tsx +15 -4
- package/src/components/MessageBubble.tsx +3 -4
- package/src/icons/Chat.tsx +39 -0
- package/src/icons/Cross.tsx +2 -1
- package/src/icons/DualSync.tsx +6 -1
- package/src/utils/withStylelessCssClasses.ts +5 -3
- package/lib/commonjs/icons/Message.d.ts +0 -3
- package/lib/commonjs/icons/Message.d.ts.map +0 -1
- package/lib/commonjs/icons/Message.js +0 -9
- package/lib/commonjs/icons/Message.js.map +0 -1
- package/lib/esm/icons/Message.d.ts +0 -3
- package/lib/esm/icons/Message.d.ts.map +0 -1
- package/lib/esm/icons/Message.js +0 -5
- package/lib/esm/icons/Message.js.map +0 -1
- package/src/icons/Message.tsx +0 -16
|
@@ -3,7 +3,6 @@ import { useChatActions, useChatState } from "@yext/chat-headless-react";
|
|
|
3
3
|
import { ArrowIcon } from "../icons/Arrow";
|
|
4
4
|
import { useComposedCssClasses } from "../hooks";
|
|
5
5
|
import Textarea from "react-expanding-textarea";
|
|
6
|
-
import { twMerge } from "tailwind-merge";
|
|
7
6
|
import { useDefaultHandleApiError } from "../hooks/useDefaultHandleApiError";
|
|
8
7
|
import { withStylelessCssClasses } from "../utils/withStylelessCssClasses";
|
|
9
8
|
|
|
@@ -23,9 +22,9 @@ const builtInCssClasses: ChatInputCssClasses = withStylelessCssClasses(
|
|
|
23
22
|
{
|
|
24
23
|
container: "w-full h-fit flex flex-row relative @container",
|
|
25
24
|
textArea:
|
|
26
|
-
"w-full p-4 pr-
|
|
25
|
+
"w-full p-4 pr-12 border border-slate-300 rounded-3xl resize-none text-[13px] @[480px]:text-base",
|
|
27
26
|
sendButton:
|
|
28
|
-
"rounded-full p-1.5 w-8 h-8 stroke-2 text-white bg-blue-600 disabled:bg-slate-
|
|
27
|
+
"rounded-full p-1.5 w-8 h-8 stroke-2 text-white bg-blue-600 disabled:bg-slate-200 hover:bg-blue-800 active:scale-90 transition-all absolute right-4 bottom-2.5 @[480px]:bottom-3.5",
|
|
29
28
|
}
|
|
30
29
|
);
|
|
31
30
|
|
|
@@ -60,6 +59,11 @@ export interface ChatInputProps {
|
|
|
60
59
|
|
|
61
60
|
/**
|
|
62
61
|
* A component that allows user to input message and send to Chat API.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* Pressing "Enter" key will send the current message.
|
|
65
|
+
* To add a newline, press "Shift" and "Enter".
|
|
66
|
+
*
|
|
63
67
|
* @public
|
|
64
68
|
*
|
|
65
69
|
* @param props - {@link ChatInputProps}
|
|
@@ -80,10 +84,6 @@ export function ChatInput({
|
|
|
80
84
|
const defaultHandleApiError = useDefaultHandleApiError();
|
|
81
85
|
|
|
82
86
|
const cssClasses = useComposedCssClasses(builtInCssClasses, customCssClasses);
|
|
83
|
-
const sendButtonClassNames = twMerge(
|
|
84
|
-
cssClasses.sendButton,
|
|
85
|
-
input.length === 0 && "opacity-0 invisible"
|
|
86
|
-
);
|
|
87
87
|
|
|
88
88
|
const sendMessage = useCallback(async () => {
|
|
89
89
|
const res = stream
|
|
@@ -95,11 +95,14 @@ export function ChatInput({
|
|
|
95
95
|
|
|
96
96
|
const handleKeyDown = useCallback(
|
|
97
97
|
(e: React.KeyboardEvent<HTMLTextAreaElement>) => {
|
|
98
|
-
if (e.key === "Enter") {
|
|
99
|
-
|
|
98
|
+
if (!e.shiftKey && e.key === "Enter") {
|
|
99
|
+
e.preventDefault();
|
|
100
|
+
if (canSendMessage) {
|
|
101
|
+
sendMessage();
|
|
102
|
+
}
|
|
100
103
|
}
|
|
101
104
|
},
|
|
102
|
-
[sendMessage]
|
|
105
|
+
[sendMessage, canSendMessage]
|
|
103
106
|
);
|
|
104
107
|
|
|
105
108
|
const onInputChange = useCallback(
|
|
@@ -113,7 +116,6 @@ export function ChatInput({
|
|
|
113
116
|
<div className={cssClasses.container}>
|
|
114
117
|
<Textarea
|
|
115
118
|
autoFocus={inputAutoFocus}
|
|
116
|
-
disabled={!canSendMessage}
|
|
117
119
|
onKeyDown={handleKeyDown}
|
|
118
120
|
value={input}
|
|
119
121
|
onChange={onInputChange}
|
|
@@ -124,7 +126,7 @@ export function ChatInput({
|
|
|
124
126
|
aria-label="Send Message"
|
|
125
127
|
disabled={!canSendMessage}
|
|
126
128
|
onClick={sendMessage}
|
|
127
|
-
className={
|
|
129
|
+
className={cssClasses.sendButton}
|
|
128
130
|
>
|
|
129
131
|
{sendButtonIcon}
|
|
130
132
|
</button>
|
|
@@ -27,12 +27,10 @@ export interface ChatPanelCssClasses {
|
|
|
27
27
|
const builtInCssClasses: ChatPanelCssClasses = withStylelessCssClasses(
|
|
28
28
|
"Panel",
|
|
29
29
|
{
|
|
30
|
-
container:
|
|
31
|
-
"h-full w-full flex flex-col relative rounded-3xl shadow-2xl bg-white",
|
|
30
|
+
container: "h-full w-full flex flex-col relative shadow-2xl bg-white",
|
|
32
31
|
messagesContainer:
|
|
33
32
|
"flex flex-col gap-y-1 mt-auto px-4 pb-[85px] overflow-auto",
|
|
34
|
-
inputContainer:
|
|
35
|
-
"w-full absolute bottom-0 p-4 rounded-b-3xl backdrop-blur-lg",
|
|
33
|
+
inputContainer: "w-full absolute bottom-0 p-4 backdrop-blur-lg",
|
|
36
34
|
}
|
|
37
35
|
);
|
|
38
36
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ChatIcon } from "../icons/Chat";
|
|
3
3
|
import { ChatPanel, ChatPanelCssClasses, ChatPanelProps } from "./ChatPanel";
|
|
4
4
|
import {
|
|
5
5
|
ChatHeader,
|
|
@@ -23,6 +23,7 @@ export interface ChatPopUpCssClasses {
|
|
|
23
23
|
button?: string;
|
|
24
24
|
button__display?: string;
|
|
25
25
|
button__hidden?: string;
|
|
26
|
+
buttonIcon?: string;
|
|
26
27
|
headerCssClasses?: ChatHeaderCssClasses;
|
|
27
28
|
panelCssClasses?: ChatPanelCssClasses;
|
|
28
29
|
}
|
|
@@ -32,7 +33,9 @@ const builtInCssClasses: ChatPopUpCssClasses = withStylelessCssClasses(
|
|
|
32
33
|
"PopUp",
|
|
33
34
|
{
|
|
34
35
|
container: "transition-all",
|
|
35
|
-
panel:
|
|
36
|
+
panel:
|
|
37
|
+
fixedPosition +
|
|
38
|
+
"w-80 max-[480px]:right-0 max-[480px]:bottom-0 max-[480px]:w-full max-[480px]:h-full lg:w-96 h-[75vh]",
|
|
36
39
|
panel__display: "duration-300 translate-y-0",
|
|
37
40
|
panel__hidden: "duration-300 translate-y-[20%] opacity-0 invisible",
|
|
38
41
|
button:
|
|
@@ -41,6 +44,14 @@ const builtInCssClasses: ChatPopUpCssClasses = withStylelessCssClasses(
|
|
|
41
44
|
button__display: "duration-300 transform translate-y-0",
|
|
42
45
|
button__hidden:
|
|
43
46
|
"duration-300 transform translate-y-[20%] opacity-0 invisible",
|
|
47
|
+
buttonIcon: "text-blue-600 w-[28px] h-[28px] lg:w-[40px] lg:h-[40px]",
|
|
48
|
+
headerCssClasses: {
|
|
49
|
+
container: "max-[480px]:rounded-none rounded-t-3xl",
|
|
50
|
+
},
|
|
51
|
+
panelCssClasses: {
|
|
52
|
+
container: "max-[480px]:rounded-none rounded-b-3xl",
|
|
53
|
+
inputContainer: "max-[480px]:rounded-none rounded-b-3xl",
|
|
54
|
+
},
|
|
44
55
|
}
|
|
45
56
|
);
|
|
46
57
|
|
|
@@ -70,7 +81,7 @@ export interface ChatPopUpProps
|
|
|
70
81
|
*/
|
|
71
82
|
export function ChatPopUp(props: ChatPopUpProps) {
|
|
72
83
|
const {
|
|
73
|
-
openPanelButtonIcon
|
|
84
|
+
openPanelButtonIcon,
|
|
74
85
|
customCssClasses,
|
|
75
86
|
showRestartButton = true,
|
|
76
87
|
onClose: customOnClose,
|
|
@@ -118,7 +129,7 @@ export function ChatPopUp(props: ChatPopUpProps) {
|
|
|
118
129
|
onClick={onClick}
|
|
119
130
|
className={buttonCssClasses}
|
|
120
131
|
>
|
|
121
|
-
{openPanelButtonIcon}
|
|
132
|
+
{openPanelButtonIcon ?? <ChatIcon className={cssClasses.buttonIcon} />}
|
|
122
133
|
</button>
|
|
123
134
|
</div>
|
|
124
135
|
);
|
|
@@ -36,7 +36,7 @@ const builtInCssClasses: MessageBubbleCssClasses = withStylelessCssClasses(
|
|
|
36
36
|
message__user:
|
|
37
37
|
"ml-auto @lg:ml-0 text-white bg-gradient-to-tr from-blue-600 to-blue-700",
|
|
38
38
|
timestamp:
|
|
39
|
-
"w-fit my-0.5 text-slate-400 text-[13px] opacity-0 peer-hover:opacity-100 duration-200 whitespace-pre-wrap",
|
|
39
|
+
"w-fit my-0.5 ml-4 @lg:ml-0 text-slate-400 text-[10px] @[480px]:text-[13px] opacity-0 peer-hover:opacity-100 duration-200 whitespace-pre-wrap",
|
|
40
40
|
timestamp__bot: "",
|
|
41
41
|
timestamp__user: "ml-auto",
|
|
42
42
|
}
|
|
@@ -58,7 +58,7 @@ export interface MessageBubbleProps {
|
|
|
58
58
|
/**
|
|
59
59
|
* A function which is called to format the message's timestamp given in
|
|
60
60
|
* ISO format (e.g. "2023-05-18T19:33:34.553Z").
|
|
61
|
-
* Defaults to "HH:MM
|
|
61
|
+
* Defaults to "HH:MM A" (e.g. "7:33 PM").
|
|
62
62
|
*/
|
|
63
63
|
formatTimestamp?: (timestamp: string) => string;
|
|
64
64
|
/** CSS classes for customizing the component styling. */
|
|
@@ -116,7 +116,7 @@ export function MessageBubble({
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* Formats message's timestamp from "2023-05-18T19:33:34.553Z" to "7:33
|
|
119
|
+
* Formats message's timestamp from "2023-05-18T19:33:34.553Z" to "7:33 PM"
|
|
120
120
|
*
|
|
121
121
|
* @param timestamp - the timestamp to convert from
|
|
122
122
|
* @returns formatted timestamp
|
|
@@ -125,7 +125,6 @@ function defaultFormatTimestamp(timestamp: string): string {
|
|
|
125
125
|
return new Date(timestamp).toLocaleString(undefined, {
|
|
126
126
|
hour: "numeric",
|
|
127
127
|
minute: "numeric",
|
|
128
|
-
second: "numeric",
|
|
129
128
|
hour12: true,
|
|
130
129
|
});
|
|
131
130
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function ChatIcon({ className }: { className?: string }): JSX.Element {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
width="100%"
|
|
5
|
+
height="100%"
|
|
6
|
+
viewBox="0 0 20 20"
|
|
7
|
+
fill="none"
|
|
8
|
+
className={className}
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
d="M15.3028 12.8082L15.1553 12.9342L15.1729 13.1273L15.3973 15.5959C15.3983 15.6063 15.3964 15.6126 15.3943 15.617C15.3918 15.6223 15.3873 15.6283 15.3805 15.6332C15.3737 15.6382 15.3667 15.6408 15.3608 15.6416C15.356 15.6422 15.3495 15.6422 15.3398 15.6381L12.3578 14.3956L12.245 14.3486L12.1261 14.3771C11.4553 14.5381 10.7412 14.625 10 14.625C5.9718 14.625 2.875 12.099 2.875 9.16667C2.875 6.23436 5.9718 3.70834 10 3.70834C14.0282 3.70834 17.125 6.23436 17.125 9.16667C17.125 10.5493 16.4496 11.8289 15.3028 12.8082Z"
|
|
13
|
+
fill="white"
|
|
14
|
+
stroke="white"
|
|
15
|
+
strokeWidth="0.75"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
d="M7 7.54584C7 7.38015 7.13431 7.24584 7.3 7.24584H8.725C8.89069 7.24584 9.025 7.38015 9.025 7.54584C9.025 7.71152 8.89069 7.84584 8.725 7.84584H7.3C7.13431 7.84584 7 7.71152 7 7.54584Z"
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M9.625 7.54584C9.625 7.15233 9.944 6.83334 10.3375 6.83334H12.2875C12.681 6.83334 13 7.15233 13 7.54584C13 7.93934 12.681 8.25834 12.2875 8.25834H10.3375C9.944 8.25834 9.625 7.93934 9.625 7.54584Z"
|
|
23
|
+
fill="currentColor"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
d="M7 9.30834C7 9.14265 7.13431 9.00834 7.3 9.00834H12.7C12.8657 9.00834 13 9.14265 13 9.30834C13 9.47402 12.8657 9.60834 12.7 9.60834H7.3C7.13431 9.60834 7 9.47402 7 9.30834Z"
|
|
27
|
+
fill="currentColor"
|
|
28
|
+
/>
|
|
29
|
+
<path
|
|
30
|
+
d="M7 11.0708C7 10.6773 7.319 10.3583 7.7125 10.3583H8.1625C8.556 10.3583 8.875 10.6773 8.875 11.0708C8.875 11.4643 8.556 11.7833 8.1625 11.7833H7.7125C7.319 11.7833 7 11.4643 7 11.0708Z"
|
|
31
|
+
fill="currentColor"
|
|
32
|
+
/>
|
|
33
|
+
<path
|
|
34
|
+
d="M9.475 11.0708C9.475 10.9052 9.60931 10.7708 9.775 10.7708H12.7C12.8657 10.7708 13 10.9052 13 11.0708C13 11.2365 12.8657 11.3708 12.7 11.3708H9.775C9.60931 11.3708 9.475 11.2365 9.475 11.0708Z"
|
|
35
|
+
fill="currentColor"
|
|
36
|
+
/>
|
|
37
|
+
</svg>
|
|
38
|
+
);
|
|
39
|
+
}
|
package/src/icons/Cross.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export function CrossIcon(): JSX.Element {
|
|
1
|
+
export function CrossIcon({ className }: { className?: string }): JSX.Element {
|
|
2
2
|
return (
|
|
3
3
|
<svg
|
|
4
4
|
width="100%"
|
|
5
5
|
height="100%"
|
|
6
6
|
viewBox="0 0 20 20"
|
|
7
7
|
stroke="currentColor"
|
|
8
|
+
className={className}
|
|
8
9
|
xmlns="http://www.w3.org/2000/svg"
|
|
9
10
|
>
|
|
10
11
|
<path d="M14 14L6 6" strokeLinecap="square" strokeLinejoin="round" />
|
package/src/icons/DualSync.tsx
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export function DualSyncIcon(
|
|
1
|
+
export function DualSyncIcon({
|
|
2
|
+
className,
|
|
3
|
+
}: {
|
|
4
|
+
className?: string;
|
|
5
|
+
}): JSX.Element {
|
|
2
6
|
return (
|
|
3
7
|
<svg
|
|
4
8
|
width="100%"
|
|
@@ -6,6 +10,7 @@ export function DualSyncIcon(): JSX.Element {
|
|
|
6
10
|
viewBox="0 0 20 20"
|
|
7
11
|
fill="currentColor"
|
|
8
12
|
stroke="currentColor"
|
|
13
|
+
className={className}
|
|
9
14
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
15
|
>
|
|
11
16
|
<path d="M14.3148 6.47397C14.9074 7.36266 15.2593 8.46858 15.2593 9.63375C15.2593 12.675 12.9259 15.1634 10.0741 15.1634C9.11111 15.1634 8.2037 14.8671 7.42593 14.3734L9.05556 13.8995L8.87037 13.1293L6 13.939L6.75926 17L7.48148 16.8025L7.03704 15.0449C7.92593 15.6176 8.96296 15.9336 10.0741 15.9336C13.3519 15.9336 16 13.1095 16 9.614C16 8.2711 15.6111 7.02693 14.9259 6L14.3148 6.47397Z" />
|
|
@@ -23,9 +23,11 @@ export function withStylelessCssClasses<
|
|
|
23
23
|
str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
|
24
24
|
const classes = { ...builtInClasses };
|
|
25
25
|
Object.keys(builtInClasses).forEach((key) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
if (typeof classes[key] === "string") {
|
|
27
|
+
classes[key] = `${classes[key]} yext-chat${formatString(
|
|
28
|
+
componentName
|
|
29
|
+
)}__${formatString(key)}`;
|
|
30
|
+
}
|
|
29
31
|
});
|
|
30
32
|
return classes;
|
|
31
33
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/icons/Message.tsx"],"names":[],"mappings":";AAAA,wBAAgB,WAAW,IAAI,GAAG,CAAC,OAAO,CAezC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageIcon = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
function MessageIcon() {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M3.37424 17.1166L6.31902 14.1718H16.6258V4.84663H3.37424V17.1166ZM3.86503 5.33742H16.135V13.681H6.31902H6.11043L5.96319 13.8282L3.85276 15.9386V5.33742H3.86503Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M14.4172 9.2638H6.07362V9.7546H14.4172V9.2638Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M13.9264 10.7362H6.07362V11.227H13.9264V10.7362Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M13.4356 7.79141H6.07362V8.28221H13.4356V7.79141Z" })] }));
|
|
7
|
-
}
|
|
8
|
-
exports.MessageIcon = MessageIcon;
|
|
9
|
-
//# sourceMappingURL=Message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../../src/icons/Message.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,WAAW;IACzB,OAAO,CACL,iCACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAC,4BAA4B,aAElC,iCAAM,CAAC,EAAC,kKAAkK,GAAG,EAC7K,iCAAM,CAAC,EAAC,gDAAgD,GAAG,EAC3D,iCAAM,CAAC,EAAC,kDAAkD,GAAG,EAC7D,iCAAM,CAAC,EAAC,mDAAmD,GAAG,IAC1D,CACP,CAAC;AACJ,CAAC;AAfD,kCAeC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/icons/Message.tsx"],"names":[],"mappings":";AAAA,wBAAgB,WAAW,IAAI,GAAG,CAAC,OAAO,CAezC"}
|
package/lib/esm/icons/Message.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function MessageIcon() {
|
|
3
|
-
return (_jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M3.37424 17.1166L6.31902 14.1718H16.6258V4.84663H3.37424V17.1166ZM3.86503 5.33742H16.135V13.681H6.31902H6.11043L5.96319 13.8282L3.85276 15.9386V5.33742H3.86503Z" }), _jsx("path", { d: "M14.4172 9.2638H6.07362V9.7546H14.4172V9.2638Z" }), _jsx("path", { d: "M13.9264 10.7362H6.07362V11.227H13.9264V10.7362Z" }), _jsx("path", { d: "M13.4356 7.79141H6.07362V8.28221H13.4356V7.79141Z" })] }));
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=Message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../../src/icons/Message.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,eACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAC,4BAA4B,aAElC,eAAM,CAAC,EAAC,kKAAkK,GAAG,EAC7K,eAAM,CAAC,EAAC,gDAAgD,GAAG,EAC3D,eAAM,CAAC,EAAC,kDAAkD,GAAG,EAC7D,eAAM,CAAC,EAAC,mDAAmD,GAAG,IAC1D,CACP,CAAC;AACJ,CAAC"}
|
package/src/icons/Message.tsx
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export function MessageIcon(): JSX.Element {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
width="100%"
|
|
5
|
-
height="100%"
|
|
6
|
-
viewBox="0 0 20 20"
|
|
7
|
-
fill="currentColor"
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
>
|
|
10
|
-
<path d="M3.37424 17.1166L6.31902 14.1718H16.6258V4.84663H3.37424V17.1166ZM3.86503 5.33742H16.135V13.681H6.31902H6.11043L5.96319 13.8282L3.85276 15.9386V5.33742H3.86503Z" />
|
|
11
|
-
<path d="M14.4172 9.2638H6.07362V9.7546H14.4172V9.2638Z" />
|
|
12
|
-
<path d="M13.9264 10.7362H6.07362V11.227H13.9264V10.7362Z" />
|
|
13
|
-
<path d="M13.4356 7.79141H6.07362V8.28221H13.4356V7.79141Z" />
|
|
14
|
-
</svg>
|
|
15
|
-
);
|
|
16
|
-
}
|