-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import{j as s}from"./jsx-runtime-DtaoT6pD.js";import{A as u}from"./alert-RV1XQKHJ.js";import{g as x,h as f}from"./storybook-utils-94J-CLQK.js";import"./index-OjgoNOWw.js";import"./class-names-xhKKfcKT.js";import"./zoom-to-fit-icon-65magoHv.js";const A=["info","success","warning","danger"],C={title:"Alert",component:u,parameters:{layout:"fullscreen",...x("Wide and big alert bar to inform user about important things")},args:{title:"Alert Title",children:"Alert content",intent:"info"}},r={},e={argTypes:{intent:f},render:({children:h,...y})=>s.jsx("div",{className:"flex flex-col gap-4",children:A.map(t=>s.jsx(u,{...y,intent:t,children:h},t))})},n={...e,args:{children:void 0},argTypes:{...e.argTypes,children:f}};var a,o,i;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:"{}",...(i=(o=r.parameters)==null?void 0:o.docs)==null?void 0:i.source}}};var c,l,d;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`{ | ||
argTypes: { | ||
intent: hiddenArgControl | ||
}, | ||
render: ({ | ||
children, | ||
...args | ||
}) => <div className="flex flex-col gap-4"> | ||
{intents.map(intent => <Alert key={intent} {...args} intent={intent}> | ||
{children} | ||
</Alert>)} | ||
</div> | ||
}`,...(d=(l=e.parameters)==null?void 0:l.docs)==null?void 0:d.source}}};var p,m,g;n.parameters={...n.parameters,docs:{...(p=n.parameters)==null?void 0:p.docs,source:{originalSource:`{ | ||
...Intents, | ||
args: { | ||
children: undefined | ||
}, | ||
argTypes: { | ||
...Intents.argTypes, | ||
children: hiddenArgControl | ||
} | ||
}`,...(g=(m=n.parameters)==null?void 0:m.docs)==null?void 0:g.source}}};const O=["Basic","Intents","OnlyTitles"];export{r as Basic,e as Intents,n as OnlyTitles,O as __namedExportsOrder,C as default}; |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import{j as s}from"./jsx-runtime-DtaoT6pD.js";import{A as m}from"./avatar-zyahZRnX.js";import{g as f,h as d}from"./storybook-utils-94J-CLQK.js";import"./index-OjgoNOWw.js";const o=["primary","success","neutral","warning","danger"],A={title:"Avatar",component:m,parameters:f("Circular user icon. It displays first 2 characters from the passed children text "),args:{children:"Name Lastname",color:o[0]},argTypes:{color:{options:o},onClick:d}},r={},e={argTypes:{color:d},render:({children:g,...u})=>s.jsx("div",{className:"flex flex-col gap-4",children:o.map(a=>s.jsx(m,{...u,color:a,children:g},a))})};var t,c,n;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(n=(c=r.parameters)==null?void 0:c.docs)==null?void 0:n.source}}};var l,i,p;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ | ||
argTypes: { | ||
color: hiddenArgControl | ||
}, | ||
render: ({ | ||
children, | ||
...args | ||
}) => <div className="flex flex-col gap-4"> | ||
{colors.map(color => <Avatar key={color} {...args} color={color}> | ||
{children} | ||
</Avatar>)} | ||
</div> | ||
}`,...(p=(i=e.parameters)==null?void 0:i.docs)==null?void 0:p.source}}};const C=["Default","Colors"];export{e as Colors,r as Default,C as __namedExportsOrder,A as default}; |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.