-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9041c48
commit 8490251
Showing
8 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...gn-system/widgets/src/components/AIChat/src/ChatDescriptionModal/ChatDescriptionModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Modal, ModalBody, ModalContent, ModalHeader } from "@appsmith/wds"; | ||
import React from "react"; | ||
import type { ChatDescriptionModalProps } from "./types"; | ||
|
||
export const ChatDescriptionModal = ({ | ||
children, | ||
...rest | ||
}: ChatDescriptionModalProps) => { | ||
return ( | ||
<Modal {...rest}> | ||
<ModalContent> | ||
<ModalHeader title="Information about the bot" /> | ||
<ModalBody>{children}</ModalBody> | ||
</ModalContent> | ||
</Modal> | ||
); | ||
}; |
2 changes: 2 additions & 0 deletions
2
...nt/packages/design-system/widgets/src/components/AIChat/src/ChatDescriptionModal/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./ChatDescriptionModal"; | ||
export * from "./types"; |
22 changes: 22 additions & 0 deletions
22
...es/design-system/widgets/src/components/AIChat/src/ChatDescriptionModal/styles.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.root { | ||
display: flex; | ||
gap: 12px; | ||
align-items: center; | ||
/* TODO: --type-title doesn't exists. Define it */ | ||
font-size: var(--type-title, 22.499px); | ||
font-style: normal; | ||
font-weight: 500; | ||
/* TODO: --type-title-lineheight doesn't exists. Define it */ | ||
line-height: var(--type-title-lineheight, 31.7px); | ||
} | ||
|
||
.logo { | ||
display: inline-block; | ||
width: 48px; | ||
min-width: 48px; | ||
height: 48px; | ||
border-radius: 8px; | ||
/* TODO: --bd-neutral doesn't exists. Define it */ | ||
border: 1px solid var(--bd-neutral, #81858b); | ||
background: #f8f8f8; | ||
} |
3 changes: 3 additions & 0 deletions
3
...nt/packages/design-system/widgets/src/components/AIChat/src/ChatDescriptionModal/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { ModalProps } from "@appsmith/wds"; | ||
|
||
export interface ChatDescriptionModalProps extends ModalProps {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters