-
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: add paragraph and message list
- Loading branch information
Filipe Marins
committed
May 6, 2022
1 parent
18a4d7c
commit 2d459bc
Showing
8 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
packages/fuselage/src/components/Message/MessageOrderedList.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,10 @@ | ||
import type { ReactNode } from 'react'; | ||
import React from 'react'; | ||
|
||
type MessageOrderedListProps = { | ||
children?: ReactNode; | ||
}; | ||
|
||
export const MessageOrderedList = (props: MessageOrderedListProps) => ( | ||
<ol className='rcx-box rcx-box--full rcx-message-ordered-list' {...props} /> | ||
); |
13 changes: 13 additions & 0 deletions
13
packages/fuselage/src/components/Message/MessageOrderedListItem.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,13 @@ | ||
import type { ReactNode } from 'react'; | ||
import React from 'react'; | ||
|
||
type MessageOrderedListItemProps = { | ||
children?: ReactNode; | ||
}; | ||
|
||
export const MessageOrderedListItem = (props: MessageOrderedListItemProps) => ( | ||
<li | ||
className='rcx-box rcx-box--full rcx-message-ordered-list__item' | ||
{...props} | ||
/> | ||
); |
10 changes: 10 additions & 0 deletions
10
packages/fuselage/src/components/Message/MessageParagraph.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,10 @@ | ||
import type { ReactNode } from 'react'; | ||
import React from 'react'; | ||
|
||
type MessageParagraphProps = { | ||
children?: ReactNode; | ||
}; | ||
|
||
export const MessageParagraph = (props: MessageParagraphProps) => ( | ||
<p className='rcx-box rcx-box--full rcx-message-paragraph' {...props} /> | ||
); |
10 changes: 10 additions & 0 deletions
10
packages/fuselage/src/components/Message/MessageUnorderedList.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,10 @@ | ||
import type { ReactNode } from 'react'; | ||
import React from 'react'; | ||
|
||
type MessageUnorderedListProps = { | ||
children?: ReactNode; | ||
}; | ||
|
||
export const MessageUnorderedList = (props: MessageUnorderedListProps) => ( | ||
<ul className='rcx-box rcx-box--full rcx-message-unordered-list' {...props} /> | ||
); |
15 changes: 15 additions & 0 deletions
15
packages/fuselage/src/components/Message/MessageUnorderedListItem.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,15 @@ | ||
import type { ReactNode } from 'react'; | ||
import React from 'react'; | ||
|
||
type MessageUnorderedListItemProps = { | ||
children?: ReactNode; | ||
}; | ||
|
||
export const MessageUnorderedListItem = ( | ||
props: MessageUnorderedListItemProps | ||
) => ( | ||
<li | ||
className='rcx-box rcx-box--full rcx-message-unordered-list__item' | ||
{...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