-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Showing
8 changed files
with
115 additions
and
53 deletions.
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
11 changes: 11 additions & 0 deletions
11
packages/ui-video-conf/src/VideoConfMessage/VideoConfMessageAction.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,11 @@ | ||
import { Box, Button } from '@rocket.chat/fuselage'; | ||
import type { ReactElement, ReactNode } from 'react'; | ||
|
||
const VideoConfMessageAction = ({ children, primary }: { children: ReactNode; primary?: boolean }): ReactElement => ( | ||
<Box mi='x4'> | ||
<Button small primary={primary}> | ||
{children} | ||
</Button> | ||
</Box> | ||
); | ||
export default VideoConfMessageAction; |
14 changes: 14 additions & 0 deletions
14
packages/ui-video-conf/src/VideoConfMessage/VideoConfMessageFooter.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,14 @@ | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import type { ReactElement, ReactNode } from 'react'; | ||
|
||
import VideoConfMessageRow from './VideoConfMessageRow'; | ||
|
||
const VideoConfMessageFooter = ({ children, ...props }: { children: ReactNode }): ReactElement => ( | ||
<VideoConfMessageRow backgroundColor='neutral-100' {...props}> | ||
<Box mi='neg-x4' display='flex' alignItems='center'> | ||
{children} | ||
</Box> | ||
</VideoConfMessageRow> | ||
); | ||
|
||
export default VideoConfMessageFooter; |
9 changes: 9 additions & 0 deletions
9
packages/ui-video-conf/src/VideoConfMessage/VideoConfMessageFooterText.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,9 @@ | ||
import { Box, Button } from '@rocket.chat/fuselage'; | ||
import type { ReactElement, ReactNode } from 'react'; | ||
|
||
const VideoConfMessageFooterText = ({ children }: { children: ReactNode }): ReactElement => ( | ||
<Box fontScale='c1' mi='x4'> | ||
{children} | ||
</Box> | ||
); | ||
export default VideoConfMessageFooterText; |
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
4 changes: 1 addition & 3 deletions
4
packages/ui-video-conf/src/VideoConfMessage/VideoConfMessageText.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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import type { ReactElement, ComponentProps } from 'react'; | ||
|
||
const VideoConfMessageText = ({ fontScale = 'c1', ...props }: ComponentProps<typeof Box>): ReactElement => ( | ||
<Box fontScale={fontScale} mis='x8' {...props} /> | ||
); | ||
const VideoConfMessageText = ({ ...props }: ComponentProps<typeof Box>): ReactElement => <Box fontScale='c2' mis='x8' {...props} />; | ||
|
||
export default VideoConfMessageText; |
16 changes: 16 additions & 0 deletions
16
packages/ui-video-conf/src/VideoConfMessage/VideoConfMessageUserStack.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,16 @@ | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import { Children, ReactElement } from 'react'; | ||
|
||
import VideoConfMessageRow from './VideoConfMessageRow'; | ||
|
||
const VideoConfMessageUserStack = ({ children }: { children: ReactElement | ReactElement[] }): ReactElement => ( | ||
<Box mi='x4'> | ||
<Box display='flex' alignItems='center' mi='neg-x2'> | ||
{Children.map(Children.toArray(children), (child) => ( | ||
<Box mi='x2'> {child}</Box> | ||
))} | ||
</Box> | ||
</Box> | ||
); | ||
|
||
export default VideoConfMessageUserStack; |