-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d89f25
commit 53929e0
Showing
16 changed files
with
3,538 additions
and
3,672 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3,092 changes: 1,546 additions & 1,546 deletions
3,092
docs/component-library/new/TimeLine/index.mdx
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"prettier.prettierPath": ".yarn/sdks/prettier", | ||
"typescript.tsdk": ".yarn/sdks/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"cSpell.words": [ | ||
"deflist", | ||
"iconify", | ||
"katex", | ||
"rehype" | ||
], | ||
"discord.enabled": true | ||
} | ||
} | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"prettier.prettierPath": ".yarn/sdks/prettier", | ||
"typescript.tsdk": ".yarn/sdks/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"cSpell.words": [ | ||
"deflist", | ||
"iconify", | ||
"katex", | ||
"rehype" | ||
], | ||
"discord.enabled": true | ||
} | ||
} |
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
126 changes: 63 additions & 63 deletions
126
src/components/SimpleCard/CardBody/index.tsx → src/components/Card/CardBody/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,63 +1,63 @@ | ||
import React, { CSSProperties, ReactNode } from 'react'; | ||
import clsx from 'clsx'; | ||
|
||
interface CardBodyProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
children: ReactNode; | ||
textAlign?: string; | ||
variant?: string; | ||
italic?: boolean; | ||
noDecoration?: boolean; | ||
transform?: string; | ||
breakWord?: boolean; | ||
truncate?: boolean; | ||
weight?: string; | ||
} | ||
|
||
const CardBody: React.FC<CardBodyProps> = ({ | ||
className, | ||
style, | ||
children, | ||
textAlign, | ||
variant, | ||
italic = false, | ||
noDecoration = false, | ||
transform, | ||
breakWord = false, | ||
truncate = false, | ||
weight, | ||
}) => { | ||
const text = textAlign ? `text--${textAlign}` : ''; | ||
const textColor = variant ? `text--${variant}` : ''; | ||
const textItalic = italic ? 'text--italic' : ''; | ||
const textDecoration = noDecoration ? 'text-no-decoration' : ''; | ||
const textType = transform ? `text--${transform}` : ''; | ||
const textBreak = breakWord ? 'text--break' : ''; | ||
const textTruncate = truncate ? 'text--truncate' : ''; | ||
const textWeight = weight ? `text--${weight}` : ''; | ||
|
||
return ( | ||
<div | ||
className={clsx( | ||
'card__body', | ||
className, | ||
text, | ||
textType, | ||
textColor, | ||
textItalic, | ||
textDecoration, | ||
textBreak, | ||
textTruncate, | ||
textWeight | ||
)} | ||
style={style} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export default CardBody; | ||
|
||
|
||
import React, { CSSProperties, ReactNode } from 'react'; | ||
import clsx from 'clsx'; | ||
|
||
interface CardBodyProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
children: ReactNode; | ||
textAlign?: string; | ||
variant?: string; | ||
italic?: boolean; | ||
noDecoration?: boolean; | ||
transform?: string; | ||
breakWord?: boolean; | ||
truncate?: boolean; | ||
weight?: string; | ||
} | ||
|
||
const CardBody: React.FC<CardBodyProps> = ({ | ||
className, | ||
style, | ||
children, | ||
textAlign, | ||
variant, | ||
italic = false, | ||
noDecoration = false, | ||
transform, | ||
breakWord = false, | ||
truncate = false, | ||
weight, | ||
}) => { | ||
const text = textAlign ? `text--${textAlign}` : ''; | ||
const textColor = variant ? `text--${variant}` : ''; | ||
const textItalic = italic ? 'text--italic' : ''; | ||
const textDecoration = noDecoration ? 'text-no-decoration' : ''; | ||
const textType = transform ? `text--${transform}` : ''; | ||
const textBreak = breakWord ? 'text--break' : ''; | ||
const textTruncate = truncate ? 'text--truncate' : ''; | ||
const textWeight = weight ? `text--${weight}` : ''; | ||
|
||
return ( | ||
<div | ||
className={clsx( | ||
'card__body', | ||
className, | ||
text, | ||
textType, | ||
textColor, | ||
textItalic, | ||
textDecoration, | ||
textBreak, | ||
textTruncate, | ||
textWeight | ||
)} | ||
style={style} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export default CardBody; | ||
|
||
128 changes: 64 additions & 64 deletions
128
...omponents/SimpleCard/CardFooter/index.tsx → src/components/Card/CardFooter/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,64 +1,64 @@ | ||
import React, { CSSProperties, ReactNode } from 'react'; | ||
import clsx from 'clsx'; | ||
|
||
interface CardFooterProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
children: ReactNode; | ||
textAlign?: string; | ||
variant?: string; | ||
italic?: boolean; | ||
noDecoration?: boolean; | ||
transform?: string; | ||
breakWord?: boolean; | ||
truncate?: boolean; | ||
weight?: string; | ||
} | ||
|
||
const CardFooter: React.FC<CardFooterProps> = ({ | ||
className, | ||
style, | ||
children, | ||
textAlign, | ||
variant, | ||
italic = false, | ||
noDecoration = false, | ||
transform, | ||
breakWord = false, | ||
truncate = false, | ||
weight, | ||
}) => { | ||
const text = textAlign ? `text--${textAlign}` : ''; | ||
const textColor = variant ? `text--${variant}` : ''; | ||
const textItalic = italic ? 'text--italic' : ''; | ||
const textDecoration = noDecoration ? 'text-no-decoration' : ''; | ||
const textType = transform ? `text--${transform}` : ''; | ||
const textBreak = breakWord ? 'text--break' : ''; | ||
const textTruncate = truncate ? 'text--truncate' : ''; | ||
const textWeight = weight ? `text--${weight}` : ''; | ||
|
||
return ( | ||
<div | ||
className={clsx( | ||
'card__footer', | ||
className, | ||
text, | ||
textType, | ||
textColor, | ||
textItalic, | ||
textDecoration, | ||
textBreak, | ||
textTruncate, | ||
textWeight | ||
)} | ||
style={style} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export default CardFooter; | ||
|
||
|
||
|
||
import React, { CSSProperties, ReactNode } from 'react'; | ||
import clsx from 'clsx'; | ||
|
||
interface CardFooterProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
children: ReactNode; | ||
textAlign?: string; | ||
variant?: string; | ||
italic?: boolean; | ||
noDecoration?: boolean; | ||
transform?: string; | ||
breakWord?: boolean; | ||
truncate?: boolean; | ||
weight?: string; | ||
} | ||
|
||
const CardFooter: React.FC<CardFooterProps> = ({ | ||
className, | ||
style, | ||
children, | ||
textAlign, | ||
variant, | ||
italic = false, | ||
noDecoration = false, | ||
transform, | ||
breakWord = false, | ||
truncate = false, | ||
weight, | ||
}) => { | ||
const text = textAlign ? `text--${textAlign}` : ''; | ||
const textColor = variant ? `text--${variant}` : ''; | ||
const textItalic = italic ? 'text--italic' : ''; | ||
const textDecoration = noDecoration ? 'text-no-decoration' : ''; | ||
const textType = transform ? `text--${transform}` : ''; | ||
const textBreak = breakWord ? 'text--break' : ''; | ||
const textTruncate = truncate ? 'text--truncate' : ''; | ||
const textWeight = weight ? `text--${weight}` : ''; | ||
|
||
return ( | ||
<div | ||
className={clsx( | ||
'card__footer', | ||
className, | ||
text, | ||
textType, | ||
textColor, | ||
textItalic, | ||
textDecoration, | ||
textBreak, | ||
textTruncate, | ||
textWeight | ||
)} | ||
style={style} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export default CardFooter; | ||
|
||
|
||
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,32 @@ | ||
import React, { CSSProperties } from 'react'; | ||
import clsx from 'clsx'; | ||
|
||
const CardHeader = ({ | ||
className, // Custom CSS classes for the component | ||
style, // Custom CSS styles for the component | ||
children, // The content of the component | ||
textAlign, // Text alignment | ||
variant, // Text color variant | ||
italic = false, // Italic text | ||
noDecoration = false, // No text decoration | ||
transform, // Text transformation | ||
breakWord = false, // Break word | ||
truncate = false, // Truncate text | ||
weight, // Text weight | ||
}) => { | ||
const text = textAlign ? `text--${textAlign}` :''; | ||
const textColor = variant ? `text--${variant}` : ''; | ||
const textItalic = italic ? 'text--italic' : ''; | ||
const textDecoration = noDecoration ? 'text-no-decoration' : ''; | ||
const textType = transform ? `text--${transform}` : ''; | ||
const textBreak = breakWord ? 'text--break' : ''; | ||
const textTruncate = truncate ? 'text--truncate' : ''; | ||
const textWeight = weight ? `text--${weight}` : ''; | ||
return ( | ||
<div className={clsx('card__header', className, text, textType, textColor, textItalic, textDecoration, textBreak, textTruncate, textWeight)} style={style} > | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
export default CardHeader; |
58 changes: 29 additions & 29 deletions
58
...components/SimpleCard/CardImage/index.tsx → src/components/Card/CardImage/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,29 +1,29 @@ | ||
import React, { CSSProperties } from 'react'; | ||
import clsx from 'clsx'; | ||
import useBaseUrl from '@docusaurus/useBaseUrl'; | ||
|
||
interface CardImageProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
cardImageUrl: string; | ||
alt: string; | ||
title: string; | ||
} | ||
|
||
const CardImage: React.FC<CardImageProps> = ({ | ||
className, | ||
style, | ||
cardImageUrl, | ||
alt, | ||
title, | ||
}) => { | ||
const generatedCardImageUrl = useBaseUrl(cardImageUrl); | ||
|
||
return ( | ||
|
||
<img className={clsx('card__image', className)} style={style} src={generatedCardImageUrl} alt={alt} title={title} /> | ||
|
||
); | ||
}; | ||
|
||
export default CardImage; | ||
import React, { CSSProperties } from 'react'; | ||
import clsx from 'clsx'; | ||
import useBaseUrl from '@docusaurus/useBaseUrl'; | ||
|
||
interface CardImageProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
cardImageUrl: string; | ||
alt: string; | ||
title: string; | ||
} | ||
|
||
const CardImage: React.FC<CardImageProps> = ({ | ||
className, | ||
style, | ||
cardImageUrl, | ||
alt, | ||
title, | ||
}) => { | ||
const generatedCardImageUrl = useBaseUrl(cardImageUrl); | ||
|
||
return ( | ||
|
||
<img className={clsx('card__image', className)} style={style} src={generatedCardImageUrl} alt={alt} title={title} /> | ||
|
||
); | ||
}; | ||
|
||
export default CardImage; |
Oops, something went wrong.