Skip to content

Commit 0fef9b8

Browse files
committed
docs: deploy storybook-preview db2c431
1 parent 64c4468 commit 0fef9b8

File tree

90 files changed

+65745
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+65745
-0
lines changed
26.7 KB
Loading
103 KB
Loading
24.3 KB
Loading

storybook/preview-55/assets/Button.stories-CmYQSRGO.js

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import{j as e}from"./jsx-runtime-CkxqCPlQ.js";import{r as M}from"./index-DJO9vBfz.js";import{c as k}from"./index-Bb4qSo10.js";import{c as i}from"./cn-BM_CldAA.js";const B=k("select-text break-all px-2.5 inline-flex max-w-[85%] items-center justify-center rounded-lg border-2 border-violet-950 text-violet-950 text-base min-h-8 lg:text-lg 2xl:py-0.5 2xl:text-xl",{variants:{variant:{default:"bg-halfbaked-200",secondary:"bg-chartreuseyellow-200"}},defaultVariants:{variant:"default"}}),f=M.memo(({className:a,variant:h,content:n,nickname:o,...v})=>{const c=!!o,j=c?`${o}님의 메시지: ${n}`:`내 메시지: ${n}`;return e.jsxs("div",{"aria-label":j,tabIndex:0,className:i("flex",c?"flex-col items-start gap-0.5":"justify-end"),children:[c&&e.jsx("span",{className:"text-sm text-stroke-sm lg:text-base 2xl:text-lg","aria-hidden":"true",children:o}),e.jsx("p",{className:i(B({variant:h,className:a})),...v,children:n})]})});f.__docgenInfo={description:"",methods:[],displayName:"ChatBubble",props:{content:{required:!0,tsType:{name:"string"},description:""},nickname:{required:!1,tsType:{name:"string"},description:""}},composes:["HTMLAttributes","VariantProps"]};const O={component:f,title:"components/chat/ChatBubbleUI",argTypes:{content:{control:"text",description:"채팅 메시지 내용",table:{type:{summary:"string"}}},nickname:{control:"text",description:"사용자 닉네임 (있으면 다른 사용자의 메시지)",table:{type:{summary:"string"}}},variant:{control:"select",options:["default","secondary"],description:"채팅 버블 스타일"},className:{control:"text",description:"추가 스타일링"}},parameters:{docs:{description:{component:`
2+
채팅 메시지를 표시하는 버블 컴포넌트입니다.
3+
4+
### 특징
5+
- 내 메시지와 다른 사용자의 메시지를 구분하여 표시
6+
- 다른 사용자의 메시지일 경우 닉네임 표시
7+
- 두 가지 스타일 variant 지원 (default: 하늘색, secondary: 노란색)
8+
`}}},decorators:[a=>e.jsx("div",{className:"min-h-[200px] w-full bg-eastbay-950 p-4",children:e.jsx(a,{})})],tags:["autodocs"]},t={args:{content:"안녕하세요!",variant:"secondary"},parameters:{docs:{description:{story:"내가 보낸 메시지입니다. 오른쪽 정렬되며 닉네임이 표시되지 않습니다."}}}},s={args:{content:"반갑습니다!",nickname:"사용자1",variant:"default"},parameters:{docs:{description:{story:"다른 사용자가 보낸 메시지입니다. 왼쪽 정렬되며 닉네임이 표시됩니다."}}}},r={args:{content:"이것은 매우 긴 메시지입니다. 채팅 버블이 어떻게 긴 텍스트를 처리하는지 보여주기 위한 예시입니다. 최대 너비는 85%로 제한됩니다.",nickname:"사용자2",variant:"default"},parameters:{docs:{description:{story:"긴 메시지가 주어졌을 때의 레이아웃을 보여줍니다."}}}};var d,l,p;t.parameters={...t.parameters,docs:{...(d=t.parameters)==null?void 0:d.docs,source:{originalSource:`{
9+
args: {
10+
content: '안녕하세요!',
11+
variant: 'secondary'
12+
},
13+
parameters: {
14+
docs: {
15+
description: {
16+
story: '내가 보낸 메시지입니다. 오른쪽 정렬되며 닉네임이 표시되지 않습니다.'
17+
}
18+
}
19+
}
20+
}`,...(p=(l=t.parameters)==null?void 0:l.docs)==null?void 0:p.source}}};var m,u,g;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{
21+
args: {
22+
content: '반갑습니다!',
23+
nickname: '사용자1',
24+
variant: 'default'
25+
},
26+
parameters: {
27+
docs: {
28+
description: {
29+
story: '다른 사용자가 보낸 메시지입니다. 왼쪽 정렬되며 닉네임이 표시됩니다.'
30+
}
31+
}
32+
}
33+
}`,...(g=(u=s.parameters)==null?void 0:u.docs)==null?void 0:g.source}}};var x,y,b;r.parameters={...r.parameters,docs:{...(x=r.parameters)==null?void 0:x.docs,source:{originalSource:`{
34+
args: {
35+
content: '이것은 매우 긴 메시지입니다. 채팅 버블이 어떻게 긴 텍스트를 처리하는지 보여주기 위한 예시입니다. 최대 너비는 85%로 제한됩니다.',
36+
nickname: '사용자2',
37+
variant: 'default'
38+
},
39+
parameters: {
40+
docs: {
41+
description: {
42+
story: '긴 메시지가 주어졌을 때의 레이아웃을 보여줍니다.'
43+
}
44+
}
45+
}
46+
}`,...(b=(y=r.parameters)==null?void 0:y.docs)==null?void 0:b.source}}};const T=["MyMessage","OtherUserMessage","LongMessage"];export{r as LongMessage,t as MyMessage,s as OtherUserMessage,T as __namedExportsOrder,O as default};

storybook/preview-55/assets/Color-F6OSRLHC-Cc3oC76a.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/preview-55/assets/DocsRenderer-CFRXHY34-BFIaM17W.js

Lines changed: 730 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/preview-55/assets/Dropdown.stories-kSM4r8R0.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/preview-55/assets/Input.stories-Dd8FCpML.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook/preview-55/assets/Logo.stories-CCZvf91K.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)