-
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.
✨ 크로마틱 배포 로직 추가 🔥 input 컴포넌트에서 textarea 제거 ✨ textarea 컴포넌트 추가 📝 아코디언 스토리북 추가 📝 textarea 스토리북 추가
- Loading branch information
Showing
11 changed files
with
422 additions
and
146 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Name of our action | ||
name: 'Chromatic Publish' | ||
# The event that will trigger the action | ||
on: | ||
workflow_run: | ||
workflows: ["update tag & package"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: yarn | ||
#👇 Adds Chromatic as a step in the workflow | ||
- uses: chromaui/action@v1 | ||
# Options required for Chromatic's GitHub Action | ||
with: | ||
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/design-systems-for-developers/react/ko/review/ to obtain it | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import type { Meta, StoryObj } from '@storybook/vue3'; | ||
|
||
import Accordion from '@/components/accordion/Accordion.vue'; | ||
import AccordionGroup from '@/components/accordion/AccordionGroup.vue'; | ||
|
||
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction | ||
const meta = { | ||
title: 'kyUI3/Accordion', | ||
component: Accordion, | ||
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs | ||
tags: ['autodocs'], | ||
argTypes: { | ||
title: { | ||
description: '아코디언 타이틀', | ||
defaultValue: 'title', | ||
}, | ||
isArrow: { | ||
description: '화살표 여부', | ||
defaultValue: false, | ||
}, | ||
}, | ||
} satisfies Meta<typeof Accordion>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
/* | ||
*👇 Render functions are a framework specific feature to allow you control on how the component renders. | ||
* See https://storybook.js.org/docs/vue/api/csf | ||
* to learn how to use render functions. | ||
*/ | ||
export const Default: Story = { | ||
render: (args) => ({ | ||
components: { Accordion }, | ||
setup() { | ||
return { args }; | ||
}, | ||
template: ` | ||
<Accordion v-bind="args"> | ||
<div>아코디언 내용</div> | ||
</Accordion> | ||
`, | ||
}), | ||
args: { | ||
title: 'accordion', | ||
isArrow: false, | ||
}, | ||
}; | ||
|
||
export const Group: Story = { | ||
parameters: { | ||
docs: { | ||
source: { | ||
code: ` | ||
<c-accordion-group> | ||
<c-accordion title="accordion1"> | ||
<div>여기에 내용을</div> | ||
</c-accordion> | ||
<c-accordion title="accordion2"> | ||
<div>꾸며 주시면</div> | ||
</c-accordion> | ||
<c-accordion title="accordion3"> | ||
<div>아름다운 아코디언이 완성됩니다.</div> | ||
</c-accordion> | ||
</c-accordion-group> | ||
`, | ||
}, | ||
}, | ||
}, | ||
render: (args) => ({ | ||
components: { Accordion, AccordionGroup }, | ||
setup() { | ||
return { args }; | ||
}, | ||
template: ` | ||
<AccordionGroup> | ||
<Accordion title="accordion1"> | ||
<div>여기에 내용을</div> | ||
</Accordion> | ||
<Accordion title="accordion2"> | ||
<div>꾸며 주시면</div> | ||
</Accordion> | ||
<Accordion title="accordion3"> | ||
<div>아름다운 아코디언이 완성됩니다.</div> | ||
</Accordion> | ||
</AccordionGroup> | ||
`, | ||
}), | ||
}; |
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.