-
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 #35 from ssi02014/dev
Dev
- Loading branch information
Showing
18 changed files
with
296 additions
and
236 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,38 @@ | ||
name: Publish Package to npmjs | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
npm-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🔔 | ||
uses: actions/checkout@v3 | ||
- name: Node Setup 🔔 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install & Build 🔨 | ||
run: | | ||
yarn | ||
yarn build | ||
- name: Publish 🚀 | ||
run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
storybook-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🔔 | ||
uses: actions/checkout@v3 | ||
- name: Install & Build 🔨 | ||
run: | | ||
yarn | ||
yarn build:storybook | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
token: ${{ secrets.PUBLISH_TOKEN }} | ||
folder: 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
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
File renamed without changes.
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
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,91 @@ | ||
import { getModalPosition } from '@utils/style'; | ||
import styled from 'styled-components'; | ||
|
||
export const HeaderWrapper = styled.div` | ||
display: flex; | ||
position: sticky; | ||
top: 0; | ||
flex-direction: column; | ||
padding: 10px; | ||
padding-bottom: 0; | ||
background-color: #fff; | ||
& > div:first-child { | ||
justify-content: space-between; | ||
align-items: center; | ||
display: flex; | ||
} | ||
a { | ||
color: #111111; | ||
padding: 0; | ||
margin: 0; | ||
font-size: 0.875rem; | ||
font-weight: bold; | ||
text-decoration: none; | ||
&:hover { | ||
color: #3264b5; | ||
} | ||
} | ||
button { | ||
cursor: pointer; | ||
transition: transform 0.2s; | ||
&:hover { | ||
transform: rotate(90deg); | ||
} | ||
} | ||
`; | ||
|
||
export const LimitSizeText = styled.div` | ||
font-size: 0.85rem; | ||
margin-top: 5px; | ||
text-align: center; | ||
span { | ||
font-weight: bold; | ||
} | ||
`; | ||
|
||
export const BodyWrapper = styled.section<{ | ||
modalPosition: 'left' | 'right' | 'center'; | ||
isFullWidth: boolean; | ||
}>` | ||
position: fixed; | ||
display: flex; | ||
justify-content: center; | ||
min-width: ${({ isFullWidth }) => (isFullWidth ? '100%' : '600px')}; | ||
border-radius: 7px; | ||
box-shadow: 1px 1px 10px #cccccc; | ||
z-index: 9999; | ||
background-color: #ffffff; | ||
flex-direction: column; | ||
overflow: hidden; | ||
font-family: Arial; | ||
* { | ||
box-sizing: border-box; | ||
} | ||
${({ modalPosition }) => getModalPosition(modalPosition)} | ||
`; | ||
|
||
export const InnerWrapper = styled.div` | ||
flex-direction: column; | ||
width: 100%; | ||
max-height: calc(100vh - 78px); | ||
overflow-y: scroll; | ||
overflow-x: auto; | ||
`; | ||
|
||
export const ContentWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
margin-bottom: 20px; | ||
canvas + textarea { | ||
margin-top: 10px; | ||
} | ||
`; |
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
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,58 @@ | ||
import styled from 'styled-components'; | ||
|
||
// TG Select | ||
export const SelectWrapper = styled.div` | ||
position: relative; | ||
min-width: 150px; | ||
max-width: 150px; | ||
label { | ||
font-size: 0.7rem; | ||
color: #969696; | ||
} | ||
`; | ||
|
||
export const SelectInput = styled.div<{ isOpenSelect: boolean }>` | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
cursor: pointer; | ||
border: ${({ isOpenSelect }) => | ||
isOpenSelect ? `1px solid #0e1b30` : `1px solid #cccccc`}; | ||
border-radius: 5px; | ||
padding: 6px 12px; | ||
p { | ||
margin: 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 0.9rem; | ||
} | ||
&:hover { | ||
border: 1px solid #0e1b30; | ||
} | ||
`; | ||
|
||
export const SelectItemContainer = styled.ul` | ||
position: absolute; | ||
bottom: 20px; | ||
width: 100%; | ||
background-color: #fff; | ||
box-shadow: 0 0 3px 0.5px #afafaf; | ||
overflow-y: scroll; | ||
list-style: none; | ||
padding: 0; | ||
max-height: 200px; | ||
`; | ||
|
||
export const SelectListItem = styled.li` | ||
cursor: pointer; | ||
padding: 10px 15px; | ||
font-size: 0.9rem; | ||
&:hover { | ||
background-color: #ededed; | ||
} | ||
`; |
Oops, something went wrong.