forked from Chainlit/chainlit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add @chainlit/components (Chainlit#346)
* move ui build out of test command * rebase copy ui dir * fix build command on windows * fix build command on windows * fix path * fix build ui command * prioritize local frontend * force auth0 version (mypy issue) * feat: Add new library @chainlit/components * refactor: Move theme and palette into @chainlit/components * refactor: Update all theme imports * refactor: Move <AudioElement/> to @chainlit/components * refactor: Import element types from @chainlit/components * refactor: Move <InlineAudioList/> to @chainlit/components * refactor: Move <GreyButton/> to @chainlit/components * refactor: Move <FileElement/> to @chainlit/components * refactor: Move <InlintFileList/> to @chainlit/components * refactor: Move <Frame/> to @chainlit/components * refactor: Move <ImageElement/> to @chainlit/components * refactor: Move <ListWithSize/> to @chainlit/components * refactor: Move <InlinedImageList/> to @chainlit/components * refactor: Move <VideoElement/> to @chainlit/components * refactor: Move <InlinedVideoList/> to @chainlit/components * refactor: Move <AvatarElement/> to @chainlit/components * refactor: Move <PDFElement/> to @chainlit/components * refactor: Move <InlinedPDFList/> to @chainlit/components * fix: Errors since we had react-hooks rules * fix: Conflict between shared dependencies * refactor: Move <NotificationCount/> to @chainlit/components * refactor: Move IInput type to @chainlit/components * feat: Add <Link/> * refactor: Move <InputLabel/> to @chainlit/components * refactor: Move <InputStateHandler/> to @chainlit/components * refactor: Move <TextInput/> to @chainlit/components * chore: Remove useless vite.env.d.ts * feat: Add Auth pages to @chainlit/components * chore: Remove useless auto-generated stuff * build: Update UI build scripts * fix: tsconfig.node.json need an include (wtf) * fix: CI not building on windows --------- Co-authored-by: Willy Douhard <[email protected]>
- Loading branch information
1 parent
590c1d5
commit 04973f4
Showing
96 changed files
with
2,923 additions
and
420 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { Link as RRLink, LinkProps as RRLinkProps } from 'react-router-dom'; | ||
|
||
import { Link as MLink, LinkProps as MLinkProps } from '@mui/material'; | ||
|
||
type LinkProps = { | ||
children: React.ReactNode; | ||
} & RRLinkProps & | ||
MLinkProps; | ||
|
||
const Link = ({ children, ...rest }: LinkProps): JSX.Element => { | ||
return ( | ||
<MLink component={RRLink} {...rest}> | ||
{children} | ||
</MLink> | ||
); | ||
}; | ||
|
||
export default Link; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.