-
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.
Merge pull request #3 from TEAM-ALOM/feature/storybook
스토리북 세팅
- Loading branch information
Showing
34 changed files
with
4,402 additions
and
289 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,27 @@ | ||
name: 스토리북 Github Pages 배포 | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- uses: bitovi/[email protected] | ||
with: | ||
install_command: npm install | ||
build_command: npm run build-storybook | ||
path: storybook-static | ||
checkout: false |
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 |
---|---|---|
|
@@ -22,3 +22,6 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
*storybook.log | ||
storybook-static |
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,17 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite'; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@chromatic-com/storybook', | ||
'@storybook/addon-interactions', | ||
'@storybook/addon-themes', | ||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
}; | ||
export default config; |
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,10 @@ | ||
<title>Semo UI Components</title> | ||
<meta property="og:title" content="Semo UI Components" /> | ||
<meta charset="UTF-8" /> | ||
<meta name="description" content="Semo UI Components" /> | ||
<meta property="og:title" content="Semo UI Components" /> | ||
<meta property="og:image" content="/images/mainLogo.png" /> | ||
<meta property="og:description" content="Semo 의 UI Components 문서입니다!" /> | ||
<meta property="og:site_name" content="Semo UI Components" /> | ||
<meta property="title" content="Semo UI Components" /> | ||
<meta property="description" content="Semo 의 UI Components 문서입니다!" /> |
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,29 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import { themes } from '@storybook/theming'; | ||
|
||
addons.setConfig({ | ||
navSize: 300, | ||
bottomPanelHeight: 300, | ||
rightPanelWidth: 300, | ||
panelPosition: 'bottom', | ||
enableShortcuts: true, | ||
showToolbar: true, | ||
theme: { | ||
...themes.light, | ||
brandTitle: 'Semo UI Components ✨', | ||
base: 'light', | ||
}, | ||
selectedPanel: undefined, | ||
initialActive: 'sidebar', | ||
sidebar: { | ||
showRoots: false, | ||
collapsedRoots: ['other'], | ||
}, | ||
toolbar: { | ||
title: { hidden: false }, | ||
zoom: { hidden: false }, | ||
eject: { hidden: false }, | ||
copy: { hidden: false }, | ||
fullscreen: { hidden: false }, | ||
}, | ||
}); |
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,29 @@ | ||
import { ThemeProvider } from 'styled-components'; | ||
import { withThemeFromJSXProvider } from '@storybook/addon-themes'; | ||
import type { Preview } from '@storybook/react'; | ||
import { SemoGlobalStyles } from '../src/ui/styles/SemoGlobalStyles'; | ||
import { theme } from '../src/ui/styles/theme'; | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i, | ||
}, | ||
}, | ||
}, | ||
|
||
decorators: [ | ||
withThemeFromJSXProvider({ | ||
themes: { | ||
light: theme, | ||
}, | ||
defaultTheme: 'light', | ||
Provider: ThemeProvider, | ||
GlobalStyles: SemoGlobalStyles, | ||
}), | ||
], | ||
}; | ||
|
||
export default preview; |
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.