diff --git a/.github/ISSUE_TEMPLATE/modify.md b/.github/ISSUE_TEMPLATE/modify.md new file mode 100644 index 0000000..df08443 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/modify.md @@ -0,0 +1,14 @@ +--- +name: Modify +about: 수정사항 / 리팩토링 관련 +title: '' +labels: refactor +assignees: '' +--- + +## 수정할 부분 설명 + +## 진행 사항 + +- [ ] todo1 +- [ ] todo2 diff --git a/.pnp.cjs b/.pnp.cjs index f17bc04..a0996c4 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -35,6 +35,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@babel/preset-react", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:7.18.6"],\ ["@babel/preset-typescript", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:7.18.6"],\ ["@babel/runtime-corejs3", "npm:7.20.6"],\ + ["@semantic-release/changelog", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.0.2"],\ ["@semantic-release/git", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:10.0.1"],\ ["@storybook/addon-actions", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.5.14"],\ ["@storybook/addon-essentials", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.5.14"],\ @@ -4995,6 +4996,32 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["@semantic-release/changelog", [\ + ["npm:6.0.2", {\ + "packageLocation": "./.yarn/cache/@semantic-release-changelog-npm-6.0.2-63a61e6d7f-e116a1ac25.zip/node_modules/@semantic-release/changelog/",\ + "packageDependencies": [\ + ["@semantic-release/changelog", "npm:6.0.2"]\ + ],\ + "linkType": "SOFT"\ + }],\ + ["virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.0.2", {\ + "packageLocation": "./.yarn/__virtual__/@semantic-release-changelog-virtual-2bbe6e49df/0/cache/@semantic-release-changelog-npm-6.0.2-63a61e6d7f-e116a1ac25.zip/node_modules/@semantic-release/changelog/",\ + "packageDependencies": [\ + ["@semantic-release/changelog", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.0.2"],\ + ["@semantic-release/error", "npm:3.0.0"],\ + ["@types/semantic-release", null],\ + ["aggregate-error", "npm:3.1.0"],\ + ["fs-extra", "npm:11.1.0"],\ + ["lodash", "npm:4.17.21"],\ + ["semantic-release", "npm:19.0.5"]\ + ],\ + "packagePeers": [\ + "@types/semantic-release",\ + "semantic-release"\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@semantic-release/commit-analyzer", [\ ["npm:9.0.2", {\ "packageLocation": "./.yarn/cache/@semantic-release-commit-analyzer-npm-9.0.2-6c1ff15dac-f7f759e608.zip/node_modules/@semantic-release/commit-analyzer/",\ @@ -7291,6 +7318,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@babel/preset-react", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:7.18.6"],\ ["@babel/preset-typescript", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:7.18.6"],\ ["@babel/runtime-corejs3", "npm:7.20.6"],\ + ["@semantic-release/changelog", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.0.2"],\ ["@semantic-release/git", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:10.0.1"],\ ["@storybook/addon-actions", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.5.14"],\ ["@storybook/addon-essentials", "virtual:b0d518511dfed8af74ef0d3f20cbd99e96f80fb73f1cbed99970830850498ee6c3564bc4e05770b20cb3e2e8b58f31a0dc4902f2cdcb1a32c4d390e101925948#npm:6.5.14"],\ diff --git a/.releaserc b/.releaserc index 324cc2d..783668b 100644 --- a/.releaserc +++ b/.releaserc @@ -44,8 +44,21 @@ } ], "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "docs/CHANGELOG.md" + } + ], "@semantic-release/npm", - "@semantic-release/git", + [ + "@semantic-release/git", + { + "assets": [ + "docs/CHANGELOG.md" + ] + } + ], "@semantic-release/github" ] } diff --git a/.yarn/cache/@semantic-release-changelog-npm-6.0.2-63a61e6d7f-e116a1ac25.zip b/.yarn/cache/@semantic-release-changelog-npm-6.0.2-63a61e6d7f-e116a1ac25.zip new file mode 100644 index 0000000..ba382aa Binary files /dev/null and b/.yarn/cache/@semantic-release-changelog-npm-6.0.2-63a61e6d7f-e116a1ac25.zip differ diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 169b0cc..61f6eb1 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/package.json b/package.json index 951bfca..46589be 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@babel/runtime-corejs3": "^7.19.4", + "@semantic-release/changelog": "^6.0.2", "@semantic-release/git": "^10.0.1", "@storybook/addon-actions": "^6.5.12", "@storybook/addon-essentials": "^6.5.12", diff --git a/src/components/input/Label.tsx b/src/components/input/Label.tsx index e3e745f..295253a 100644 --- a/src/components/input/Label.tsx +++ b/src/components/input/Label.tsx @@ -6,7 +6,7 @@ export interface labelPropsType { export const Label = ({ label }: labelPropsType) => { return ( - + {label} ); diff --git a/src/components/input/index.tsx b/src/components/input/index.tsx index 6a0bbc4..1b06f03 100644 --- a/src/components/input/index.tsx +++ b/src/components/input/index.tsx @@ -1,12 +1,12 @@ import styled from 'styled-components'; -import { ChangeEvent, Dispatch, SetStateAction, useState } from 'react'; +import { useState } from 'react'; import { Eye } from '../styleGuide/icon/Eye'; import { Label, labelPropsType } from './Label'; import { ErrorMsg, errorMsgPropsType } from './ErrorMsg'; import { marginCssType, _Wrapper } from '../../utils/distance'; interface PropsType extends marginCssType, errorMsgPropsType, labelPropsType { - setState: Dispatch>; + onChange: (e: React.ChangeEvent) => {}; type?: 'text' | 'password'; placeholder?: string; width?: number; @@ -17,7 +17,7 @@ interface PropsType extends marginCssType, errorMsgPropsType, labelPropsType { /** input 에러 상태일 때에는 포커싱이 파란색..? */ export const Input = ({ - setState, + onChange, label, placeholder, width, @@ -34,7 +34,7 @@ export const Input = ({