-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π design: Text μ€νμΌμ λμμΈ ν ν° λ³ μ 리 (#44)
* π design: Text μ€νμΌμ λμμΈ ν ν°λ³ μ 리 * π design: λ³κ²½λ Text μ€νμΌμ λ°λΌ μ€ν λ¦¬λΆ μ¬μμ± * π design: Button μ€νμΌμ λμμΈ ν ν° λ°μ (#46) * π¦ chore: primary κ΄λ ¨ μμ μμ μ 리 * π design: Button μ»΄ν¬λνΈμ λμμΈ ν ν° μ μ© λ° size μμ± μΆκ° * π design: Button μ€ν 리λΆμ μλ‘μ΄ variant μ μ© * π design: Navbar μ€ν 리λΆμ λ²νΌμ μλ‘μ΄ variant μ μ© * π design: active νΈλμ§μ μ΄ disabled μμλ λνλμ§ μλλ‘ μμ * π design: Button μ€ν 리λΆμ size, disabled prop μΆκ° * π¦ chore: preview.yml λμ λΈλμΉμ feat/** μΆκ° * π style: BottomSheetμ buttonμ semi-transparent μμ± μ μ©
- Loading branch information
1 parent
059b758
commit 7332886
Showing
11 changed files
with
349 additions
and
143 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ env: | |
|
||
on: | ||
pull_request: | ||
branches: ['main'] | ||
branches: ['main', feat/**] | ||
|
||
jobs: | ||
build: | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
} | ||
], | ||
"rules": { | ||
"selector-max-type": null | ||
"selector-max-type": null, | ||
"no-descending-specificity": null | ||
} | ||
} |
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,20 +1,104 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { css } from '@emotion/react'; | ||
import { PencilLine } from '@/assets/icons'; | ||
import Button from './'; | ||
|
||
const meta = { | ||
title: 'Components/Button', | ||
component: Button, | ||
tags: ['autodocs'], | ||
argTypes: {}, | ||
argTypes: { | ||
disabled: { | ||
control: 'boolean', | ||
description: 'λ²νΌμ λΉνμ±ν μ¬λΆμ λλ€.', | ||
}, | ||
}, | ||
} satisfies Meta<typeof Button>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Primary: Story = { | ||
export const Default: Story = { | ||
args: { | ||
variant: 'primary', | ||
children: 'λ²νΌμ λλ€', | ||
size: 'md', | ||
children: 'button', | ||
disabled: false, | ||
}, | ||
}; | ||
|
||
const styles = { | ||
container: css` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
width: 21rem; | ||
`, | ||
semiTransparentContainer: css` | ||
display: flex; | ||
gap: 1rem; | ||
padding: 1rem; | ||
background-color: #fcecd0; | ||
`, | ||
}; | ||
|
||
export const Primary: Story = { | ||
render: () => ( | ||
<div css={styles.container}> | ||
<Button variant="primary"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
<Button disabled variant="primary"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
</div> | ||
), | ||
}; | ||
|
||
export const PrimaryOutline: Story = { | ||
render: () => ( | ||
<div css={styles.container}> | ||
<Button variant="primary-outline"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
<Button disabled variant="primary-outline"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
</div> | ||
), | ||
}; | ||
|
||
export const Secondary: Story = { | ||
render: () => ( | ||
<div css={styles.container}> | ||
<Button variant="secondary"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
<Button disabled variant="secondary"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
</div> | ||
), | ||
}; | ||
|
||
export const SemiTransparent: Story = { | ||
render: () => ( | ||
<div css={styles.semiTransparentContainer}> | ||
<Button variant="semi-transparent-unaccent"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
<Button variant="semi-transparent"> | ||
<PencilLine /> | ||
<p>button</p> | ||
</Button> | ||
</div> | ||
), | ||
}; |
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.