-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spacing in docs, remove react warnings (#607)
- Loading branch information
Showing
35 changed files
with
570 additions
and
615 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
const PAGE_NAME = 'BADGE_DOCS' | ||
import Documentation from "@/components/layout/Documentation/Documentation" | ||
import Documentation from '@/components/layout/Documentation/Documentation'; | ||
import Button from '@radui/ui/Button'; | ||
import SEO from '../../docsIndex'; | ||
import codeUsage from './docs/codeUsage'; | ||
|
||
const PAGE_NAME = 'BUTTON_DOCS'; | ||
|
||
import Button from "@radui/ui/Button" | ||
import SEO from "../../docsIndex" | ||
export const metadata = SEO.getMetadata(PAGE_NAME) | ||
|
||
import codeUsage from "./docs/codeUsage" | ||
export const metadata = SEO.getMetadata(PAGE_NAME); | ||
|
||
const Arrow = () => { | ||
return <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg> | ||
} | ||
return <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z" fill="currentColor" fillRule="evenodd" clipRule="evenodd"></path></svg>; | ||
}; | ||
|
||
const AvatarDocs = () => { | ||
const ButtonDocs = () => { | ||
return <div> | ||
<Documentation currentPage={PAGE_NAME} title='Button' description={` | ||
<Documentation | ||
currentPage={PAGE_NAME} title='Button' description={` | ||
Buttons are used to trigger an action. You can use them in forms, dialogs, and more. | ||
`}> | ||
<Documentation.ComponentHero codeUsage={codeUsage}> | ||
<div style={{ display: "flex", gap: 20 }}> | ||
<div style={{ display: 'flex', gap: 20 }}> | ||
<Button color="green" className="space-x-2" ><span>Click Me! </span><Arrow /></Button> | ||
</div> | ||
</Documentation.ComponentHero> | ||
|
||
</Documentation> | ||
</div> | ||
} | ||
</div>; | ||
}; | ||
|
||
export default AvatarDocs; | ||
export default ButtonDocs; |
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,38 +1,37 @@ | ||
const PAGE_NAME = 'Card' | ||
import Documentation from "@/components/layout/Documentation/Documentation" | ||
import Documentation from '@/components/layout/Documentation/Documentation'; | ||
import Callout from '@radui/ui/Callout'; | ||
import Text from '@radui/ui/Text'; | ||
import SEO from '../../docsIndex'; | ||
import codeUsage from './docs/codeUsage'; | ||
|
||
const PAGE_NAME = 'Callout'; | ||
|
||
import Callout from "@radui/ui/Callout" | ||
import Text from "@radui/ui/Text" | ||
import Avatar from "@radui/ui/Avatar" | ||
import SEO from "../../docsIndex" | ||
export const metadata = SEO.getMetadata(PAGE_NAME) | ||
export const metadata = SEO.getMetadata(PAGE_NAME); | ||
|
||
import codeUsage from "./docs/codeUsage" | ||
|
||
const Arrow = () => { | ||
return <svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 2C3.22386 2 3 2.22386 3 2.5V13.5C3 13.6818 3.09864 13.8492 3.25762 13.9373C3.41659 14.0254 3.61087 14.0203 3.765 13.924L7.5 11.5896L11.235 13.924C11.3891 14.0203 11.5834 14.0254 11.7424 13.9373C11.9014 13.8492 12 13.6818 12 13.5V2.5C12 2.22386 11.7761 2 11.5 2H3.5Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg> | ||
} | ||
const BookmarkIcon = () => { | ||
return <svg width="24" height="24" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 2C3.22386 2 3 2.22386 3 2.5V13.5C3 13.6818 3.09864 13.8492 3.25762 13.9373C3.41659 14.0254 3.61087 14.0203 3.765 13.924L7.5 11.5896L11.235 13.924C11.3891 14.0203 11.5834 14.0254 11.7424 13.9373C11.9014 13.8492 12 13.6818 12 13.5V2.5C12 2.22386 11.7761 2 11.5 2H3.5Z" fill="currentColor" fillRule="evenodd" clipRule="evenodd"></path></svg>; | ||
}; | ||
|
||
const CalloutDocs = () => { | ||
return <div> | ||
<Documentation currentPage={PAGE_NAME} title='Callout' description={` | ||
<Documentation | ||
currentPage={PAGE_NAME} title='Callout' description={` | ||
Callout is a component that can be used to display a message or a notification to the user. | ||
`}> | ||
<Documentation.ComponentHero codeUsage={codeUsage}> | ||
<Callout color="red"> | ||
<Callout color="red"> | ||
<div className="flex items-start"> | ||
<Arrow/> | ||
<BookmarkIcon /> | ||
|
||
<div className="ml-2"> | ||
<Text className="font-bold">Error</Text> | ||
<Text>Something went wrong. Please try again later.</Text> | ||
</div> | ||
</div> | ||
</Callout> | ||
</Callout> | ||
</Documentation.ComponentHero> | ||
|
||
</Documentation> | ||
</div> | ||
} | ||
</div>; | ||
}; | ||
|
||
export default CalloutDocs; | ||
export default CalloutDocs; |
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,39 +1,34 @@ | ||
const PAGE_NAME = 'Card' | ||
import Documentation from "@/components/layout/Documentation/Documentation" | ||
import Documentation from '@/components/layout/Documentation/Documentation'; | ||
|
||
import Card from '@radui/ui/Card'; | ||
import Avatar from '@radui/ui/Avatar'; | ||
import SEO from '../../docsIndex'; | ||
|
||
import Card from "@radui/ui/Card" | ||
import Avatar from "@radui/ui/Avatar" | ||
import SEO from "../../docsIndex" | ||
export const metadata = SEO.getMetadata(PAGE_NAME) | ||
import codeUsage from './docs/codeUsage'; | ||
const PAGE_NAME = 'Card'; | ||
export const metadata = SEO.getMetadata(PAGE_NAME); | ||
|
||
import codeUsage from "./docs/codeUsage" | ||
|
||
const Arrow = () => { | ||
return <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg> | ||
} | ||
|
||
const AvatarDocs = () => { | ||
const CardDocs = () => { | ||
return <div> | ||
<Documentation currentPage={PAGE_NAME} title='Card' description={` | ||
<Documentation | ||
currentPage={PAGE_NAME} title='Card' description={` | ||
Cards are used to group related information and actions. They are used to display information in a structured way. | ||
`}> | ||
<Documentation.ComponentHero codeUsage={codeUsage}> | ||
<Card data-accent-color="green" className="bg-gray-50 text-gray-950 flex items-center space-x-2"> | ||
<Avatar fallback="PK" /> | ||
<div> | ||
<div className="font-medium"> | ||
Peter Kowalsky | ||
</div> | ||
<div className="text-xs text-gray-800"> | ||
Content Engineer | ||
</div> | ||
<Avatar fallback="PK" /> | ||
<div> | ||
<div className="font-medium"> | ||
Peter Kowalsky | ||
</div> | ||
<div className="text-xs text-gray-800"> | ||
Content Engineer | ||
</div> | ||
</div> | ||
</Card> | ||
</Documentation.ComponentHero> | ||
|
||
</Documentation> | ||
</div> | ||
} | ||
</div>; | ||
}; | ||
|
||
export default AvatarDocs; | ||
export default CardDocs; |
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
Oops, something went wrong.