Skip to content

Commit

Permalink
storybook: 필요없는 애드온 control false 일괄 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 committed Jan 11, 2024
1 parent 301e310 commit efc8d1f
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 24 deletions.
3 changes: 1 addition & 2 deletions src/components/Badge/Badge.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const meta = {
tags: ['autodocs'],
argTypes: {
as: {
control: 'inline-radio',
options: ['div'],
control: false,
description: 'Badge 컴포넌트의 DOM tag를 설정합니다.',
},
fontColor: {
Expand Down
7 changes: 5 additions & 2 deletions src/components/Box/Box.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ const meta = {
tags: ['autodocs'],
argTypes: {
as: {
control: 'inline-radio',
options: ['div', 'section', 'article'],
control: false,
description: 'Flex 컴포넌트의 DOM tag를 설정합니다.',
},
theme: {
control: false,
description: 'Emotion theme 값입니다.',
},
width: {
control: 'number',
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const meta = {
tags: ['autodocs'],
argTypes: {
as: {
control: 'inline-radio',
options: ['div'],
control: false,
description: 'Button 컴포넌트의 DOM tag를 설정합니다.',
},
isGrayOut: {
Expand All @@ -21,6 +20,7 @@ const meta = {
'Button 컴포넌트의 그레이 아웃 여부를 설정합니다. 기본 값은 false 입니다.',
},
onClick: {
control: false,
description: 'Button 컴포넌트 클릭 시 설정된 동작을 수행합니다.',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const meta = {
nameKey: {
control: 'text',
description:
'CheckboxContainer에 적용되는 name을 설정합니다. useCheckbox를 통해 전달한 초기화 객체의 프로퍼티를 전달하면 됩니다. 제어 컴포넌트 방식이라 잘못된 값을 전달해도 정상 동작하나, 안정성을 위하여 만들어 놓았습니다.',
'CheckboxContainer에 적용되는 name을 설정합니다. useCheckbox훅을 통해 전달한 초기화 객체의 프로퍼티를 전달하면 됩니다. 제어 컴포넌트 방식이라 잘못된 값을 전달해도 정상 동작하나, 안정성을 위하여 만들어 놓았습니다.',
},
options: {
control: 'object',
control: false,
description:
'CheckboxContainer에 표시되는 id, name, checked를 설정합니다.',
'CheckboxContainer 컴포넌트를 통해 선택된 체크박스를 화면에 표시합니다. useCheckbox 훅의 checkboxValue의 name 프로퍼티에 해당하는 값을 전달하면 됩니다.',
},
onChange: {
description:
Expand Down
7 changes: 5 additions & 2 deletions src/components/Divider/Divider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ const meta = {
description: 'Divider 컴포넌트의 색상을 설정합니다. 기본 값은 b 입니다.',
},
as: {
control: 'inline-radio',
options: ['div'],
control: false,
description: 'Text 컴포넌트의 DOM tag를 설정합니다.',
},
theme: {
control: false,
description: 'Emotion theme 값입니다.',
},
},
} as Meta<typeof Divider>;

Expand Down
4 changes: 2 additions & 2 deletions src/components/Dropdown/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const meta = {
description: 'Dropdown 컴포넌트의 초기값을 설정합니다.',
},
selectedValue: {
control: 'text',
control: false,
description:
'Dropdown.Item 컴포넌트를 통해 선택된 요소를 화면에 표시합니다.',
'Dropdown.Item 컴포넌트를 통해 선택된 요소를 화면에 표시합니다. useDropdown 훅의 dropdownValue의 name 프로퍼티에 해당하는 값을 전달하면 됩니다.',
},
disabled: {
control: 'boolean',
Expand Down
7 changes: 5 additions & 2 deletions src/components/Flex/Flex.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ const meta = {
tags: ['autodocs'],
argTypes: {
as: {
control: 'inline-radio',
options: ['div', 'section', 'article'],
control: false,
description: 'Flex 컴포넌트의 DOM tag를 설정합니다.',
},
theme: {
control: false,
description: 'Emotion theme 값입니다.',
},
flex: {
control: 'select',
options: ['auto', '1', '2'],
Expand Down
7 changes: 4 additions & 3 deletions src/components/RadioContainer/RadioContainer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ const meta = {
'Radio Input에 적용되는 name을 설정합니다. useRadio를 통해 전달한 초기화 객체의 프로퍼티를 전달하면 됩니다. 제어 컴포넌트 방식이라 잘못된 값을 전달해도 정상 동작하나, 안정성을 위하여 만들어 놓았습니다.',
},
options: {
control: 'object',
description: 'Radio Input에 표시되는 id, name, checked를 설정합니다.',
control: false,
description:
'RadioContainer 컴포넌트를 통해 선택된 체크박스를 화면에 표시합니다. useRadio 훅의 radioValue의 name 프로퍼티에 해당하는 값을 전달하면 됩니다.',
},
onChange: {
description: 'Radio를 클릭하면 체크 상태로 변경해줍니다.',
},
gap: {
control: 'radio',
control: 'inline-radio',
description: 'Radio간 간격을 설정합니다. 기본값은 small 입니다.',
},
},
Expand Down
7 changes: 5 additions & 2 deletions src/components/Spacer/Spacer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ const meta = {
description: 'Spacer 컴포넌트의 가로 세로 크기를 설정합니다.',
},
as: {
control: 'inline-radio',
options: ['div'],
control: false,
description: 'Spacer 컴포넌트의 DOM tag를 설정합니다.',
},
theme: {
control: false,
description: 'Emotion theme 값입니다.',
},
},
} as Meta<typeof Spacer>;

Expand Down
3 changes: 1 addition & 2 deletions src/components/Text/Text.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ const meta = {
description: 'Text 컴포넌트의 폰트 색상을 설정합니다.',
},
as: {
control: 'inline-radio',
options: ['span', 'a', 'button', 'p'],
control: false,
description: 'Text 컴포넌트의 DOM tag를 설정합니다.',
},
},
Expand Down
7 changes: 5 additions & 2 deletions src/components/TextDivider/TextDivider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ const meta = {
'TextDivider 컴포넌트의 색상을 설정합니다. 기본 값은 b 입니다.',
},
as: {
control: 'inline-radio',
options: ['div'],
control: false,
description: 'Text 컴포넌트의 DOM tag를 설정합니다.',
},
theme: {
control: false,
description: 'Emotion theme 값입니다.',
},
},
} as Meta<typeof TextDivider>;

Expand Down

0 comments on commit efc8d1f

Please sign in to comment.