-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react-components): rewrite React components using MUI (#1787)
- Loading branch information
Showing
110 changed files
with
1,860 additions
and
3,287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@remirror/react-components': minor | ||
--- | ||
|
||
Rewrite React components using MUI. |
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
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
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 +1,2 @@ | ||
export * from './callout-extension'; | ||
export type { CalloutExtensionAttributes, CalloutOptions } from './callout-types'; |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,9 @@ | |
}, | ||
{ | ||
"path": "../../remirror__pm/src" | ||
}, | ||
{ | ||
"path": "../../remirror/src" | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -72,6 +72,9 @@ | |
}, | ||
{ | ||
"path": "../../remirror__pm/src" | ||
}, | ||
{ | ||
"path": "../../remirror/src" | ||
} | ||
] | ||
} |
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
19 changes: 19 additions & 0 deletions
19
packages/remirror__react-components/src/button-groups/basic-formatting-button-group.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,19 @@ | ||
import React, { FC, ReactNode } from 'react'; | ||
|
||
import { ToggleBoldButton, ToggleItalicButton, ToggleUnderlineButton } from '../buttons'; | ||
import { CommandButtonGroup } from './command-button-group'; | ||
|
||
export interface BasicFormattingButtonGroupProps { | ||
children?: ReactNode | ReactNode[]; | ||
} | ||
|
||
export const BasicFormattingButtonGroup: FC<BasicFormattingButtonGroupProps> = ({ children }) => { | ||
return ( | ||
<CommandButtonGroup> | ||
<ToggleBoldButton /> | ||
<ToggleItalicButton /> | ||
<ToggleUnderlineButton /> | ||
{children} | ||
</CommandButtonGroup> | ||
); | ||
}; |
25 changes: 25 additions & 0 deletions
25
packages/remirror__react-components/src/button-groups/callout-type-button-group.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,25 @@ | ||
import React, { FC, ReactNode } from 'react'; | ||
|
||
import { ToggleCalloutButton } from '../buttons'; | ||
import { CommandButtonGroup } from './command-button-group'; | ||
|
||
export interface CalloutTypeButtonGroupProps { | ||
children?: ReactNode | ReactNode[]; | ||
} | ||
|
||
const INFO_CALLOUT = { type: 'info' }; | ||
const WARNING_CALLOUT = { type: 'warning' }; | ||
const ERROR_CALLOUT = { type: 'error' }; | ||
const SUCCESS_CALLOUT = { type: 'success' }; | ||
|
||
export const CalloutTypeButtonGroup: FC<CalloutTypeButtonGroupProps> = ({ children }) => { | ||
return ( | ||
<CommandButtonGroup> | ||
<ToggleCalloutButton attrs={INFO_CALLOUT} /> | ||
<ToggleCalloutButton attrs={WARNING_CALLOUT} /> | ||
<ToggleCalloutButton attrs={ERROR_CALLOUT} /> | ||
<ToggleCalloutButton attrs={SUCCESS_CALLOUT} /> | ||
{children} | ||
</CommandButtonGroup> | ||
); | ||
}; |
Oops, something went wrong.
22dc4de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://main--remirror.netlify.app