diff --git a/app/frontend/src/components/Button/index.css.ts b/app/frontend/src/components/Button/index.css.ts deleted file mode 100644 index 8253eeb3d..000000000 --- a/app/frontend/src/components/Button/index.css.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { recipe } from '@vanilla-extract/recipes'; - -import { vars } from '@/styles'; - -export const button = recipe({ - base: { - display: 'flex', - justifyContent: 'center', - alignItems: 'center', - gap: '1rem', - fontFamily: vars.font.family.pretendard, - fontWeight: vars.font.weight.semibold, - border: '1px solid transparent', - borderRadius: '0.8rem', - cursor: 'pointer', - }, - - variants: { - theme: { - primary: {}, - danger: {}, - }, - shape: { - fill: {}, - line: {}, - text: {}, - }, - size: { - small: { - padding: '0.2rem 0.4rem', - fontSize: '1.4rem', - minWidth: '5.8rem', - }, - medium: { - padding: '0.4rem 0.8rem', - fontSize: '1.4rem', - minWidth: '7.4rem', - }, - large: { - padding: '0.8rem 1.6rem', - fontSize: '1.6rem', - minWidth: '10.2rem', - }, - }, - disabled: { - true: { cursor: 'not-allowed' }, - false: { - ':hover': { - filter: 'brightness(1.1)', - }, - ':active': { - filter: 'brightness(0.9)', - }, - }, - }, - fullWidth: { - true: { - width: '100%', - }, - }, - }, - - compoundVariants: [ - { - variants: { - theme: 'primary', - shape: 'fill', - }, - style: { - background: vars.color.morakGreen, - color: vars.color.grayscaleWhite, - }, - }, - { - variants: { - theme: 'danger', - shape: 'fill', - }, - style: { - background: vars.color.morakRed, - color: vars.color.grayscaleWhite, - }, - }, - { - variants: { - theme: 'primary', - shape: 'line', - }, - style: { - border: `1px solid ${vars.color.morakGreen}`, - background: vars.color.grayscale50, - color: vars.color.morakGreen, - }, - }, - { - variants: { - theme: 'danger', - shape: 'line', - }, - style: { - border: `1px solid ${vars.color.morakRed}`, - background: vars.color.subRed, - color: vars.color.morakRed, - }, - }, - { - variants: { - theme: 'primary', - shape: 'text', - }, - style: { - color: vars.color.morakGreen, - background: 'none', - }, - }, - { - variants: { - theme: 'danger', - shape: 'text', - }, - style: { - color: vars.color.morakRed, - background: 'none', - }, - }, - { - variants: { - disabled: true, - shape: 'fill', - }, - style: { - background: vars.color.grayscale200, - color: vars.color.grayscaleWhite, - }, - }, - { - variants: { - disabled: true, - shape: 'line', - }, - style: { - border: `1px solid ${vars.color.grayscale200}`, - background: vars.color.grayscaleWhite, - color: vars.color.grayscale200, - }, - }, - { - variants: { - disabled: true, - shape: 'text', - }, - style: { - color: vars.color.grayscale200, - }, - }, - ], -}); diff --git a/app/frontend/src/components/Button/index.tsx b/app/frontend/src/components/Button/index.tsx deleted file mode 100644 index 3a2ee6e94..000000000 --- a/app/frontend/src/components/Button/index.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import * as styles from './index.css'; - -type ButtonProps = { - type?: 'button' | 'submit' | 'reset'; - theme: 'primary' | 'danger'; - shape: 'fill' | 'line' | 'text'; - size: 'small' | 'medium' | 'large'; - disabled?: boolean; - fullWidth?: boolean; - onClick?: React.MouseEventHandler; - children: React.ReactNode; - className?: string; -}; - -export function Button({ - type = 'button', - theme, - shape, - size, - disabled = false, - fullWidth = false, - onClick, - children, - className, -}: ButtonProps) { - return ( - - ); -} diff --git a/app/frontend/src/components/index.ts b/app/frontend/src/components/index.ts index 55c3206b6..813215dcf 100644 --- a/app/frontend/src/components/index.ts +++ b/app/frontend/src/components/index.ts @@ -1,5 +1,4 @@ export * from './Auth'; -export * from './Button'; export * from './Divider'; export * from './Error'; export * from './Group';