-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fuselage): add message names wrapper and update system message (#…
…889) * refactor: message system timestamp * refactor: add message system variation * feat: add message names wrapper * chore: move example * refactor: rename component * chore: depends complete build to storybook Co-authored-by: gabriellsh <[email protected]>
- Loading branch information
1 parent
d6e7135
commit 97dd401
Showing
17 changed files
with
228 additions
and
61 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
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/fuselage/src/components/Message/MessageNameContainer.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 type { AllHTMLAttributes } from 'react'; | ||
import React from 'react'; | ||
|
||
type MessageNameContainerProps = AllHTMLAttributes<HTMLSpanElement>; | ||
|
||
export const MessageNameContainer = (props: MessageNameContainerProps) => ( | ||
<span | ||
className='rcx-box rcx-box--full rcx-message-header__name-container' | ||
{...props} | ||
/> | ||
); |
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
8 changes: 8 additions & 0 deletions
8
packages/fuselage/src/components/Message/MessageSystem/MessageSystemTimestamp.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,8 @@ | ||
import type { ReactNode } from 'react'; | ||
import React from 'react'; | ||
|
||
type MessageSystemTimestampProps = { children: ReactNode; title?: string }; | ||
|
||
export const MessageSystemTimestamp = (props: MessageSystemTimestampProps) => ( | ||
<span className='rcx-box rcx-box--full rcx-message-system__time' {...props} /> | ||
); |
3 changes: 1 addition & 2 deletions
3
packages/fuselage/src/components/Message/MessageSystem/index.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,10 +1,9 @@ | ||
import { MessageLeftContainer } from '../MessageLeftContainer'; | ||
import { MessageTimestamp } from '../MessageTimestamp'; | ||
|
||
export * from './MessageSystem'; | ||
export * from './MessageSystemBlock'; | ||
export * from './MessageSystemBody'; | ||
export * from './MessageSystemContainer'; | ||
export * from './MessageSystemName'; | ||
export * from './MessageSystemTimestamp'; | ||
export const MessageSystemLeftContainer = MessageLeftContainer; | ||
export const MessageSystemTimestamp = MessageTimestamp; |
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
Oops, something went wrong.