@xyd-js/storybook 0.0.1-build.179 → 0.0.1-build.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -2534
- package/package.json +9 -9
- package/storybook-static/assets/Atlas.stories-B3Ix52TV.js +0 -153
- package/storybook-static/assets/Badge.stories-D3nfVAAW.js +0 -84
- package/storybook-static/assets/Banner.stories-BHLs2WlR.js +0 -394
- package/storybook-static/assets/Baseline.stories-Bwx2zF_U.js +0 -103
- package/storybook-static/assets/Blockquote.stories-Cxf9fDVo.js +0 -468
- package/storybook-static/assets/Breadcrumbs.stories-CFjDJvdh.js +0 -219
- package/storybook-static/assets/Button-Cj99tk5U-Cn0Wrqkw.js +0 -3
- package/storybook-static/assets/Button.stories-DUfQIyn7.js +0 -472
- package/storybook-static/assets/Callout.stories-CIQWommc.js +0 -134
- package/storybook-static/assets/Card.stories-0mJDPE-f.js +0 -278
- package/storybook-static/assets/CodeSample.stories-1k1_b2U_.js +0 -8
- package/storybook-static/assets/CodeSample.stories-BEAQ3H6A.js +0 -22
- package/storybook-static/assets/Color-YHDXOIA2-BAq_yxd2.js +0 -1
- package/storybook-static/assets/ColorSchemeButton.stories-C1yuuA8O.js +0 -384
- package/storybook-static/assets/Details.stories-BacIPYUH.js +0 -290
- package/storybook-static/assets/DocsRenderer-CFRXHY34-BwJiFRuq.js +0 -575
- package/storybook-static/assets/DocsTemplate-B8_ZAKIZ.js +0 -16
- package/storybook-static/assets/GuideCard.stories-IJbjW-xe.js +0 -253
- package/storybook-static/assets/Heading.stories-C9rBwnlZ.js +0 -337
- package/storybook-static/assets/Hr.stories-bgwD4mmY.js +0 -351
- package/storybook-static/assets/IconSocial.stories-Bv3u90GB.js +0 -715
- package/storybook-static/assets/Icons-CjNNbMNR.js +0 -1
- package/storybook-static/assets/Image.stories-BlrJ8Th7.js +0 -349
- package/storybook-static/assets/List.stories-mzy4ZAGg.js +0 -513
- package/storybook-static/assets/Nav.stories-CZhCHFlj.js +0 -13
- package/storybook-static/assets/NavLinks.stories-DuFRhZLh.js +0 -359
- package/storybook-static/assets/PageBlogHome.stories-BnmA2r3q.js +0 -14
- package/storybook-static/assets/PageFirstSlide-D2kcGYmB-BWfslHla.js +0 -1
- package/storybook-static/assets/PageFirstSlide-SzOOIHx0.css +0 -1
- package/storybook-static/assets/PageFirstSlide.stories-CoKlxYlH.js +0 -55
- package/storybook-static/assets/PageHome.stories-DcgUrGxe.js +0 -121
- package/storybook-static/assets/Pre.stories-CKu9R4kn.js +0 -11
- package/storybook-static/assets/Sidebar.stories-BivU6MOT.js +0 -9
- package/storybook-static/assets/Steps.stories-fSa3Sw8j.js +0 -1146
- package/storybook-static/assets/SubNav.stories-CL_Th3oO.js +0 -19
- package/storybook-static/assets/Table.stories-BdNM7k9y.js +0 -581
- package/storybook-static/assets/Tabs.stories-A3NcBab_.js +0 -873
- package/storybook-static/assets/Text-BAwif7rv-BYvLGGQV.js +0 -31
- package/storybook-static/assets/TocCard.stories-BRB1SH6U.js +0 -299
- package/storybook-static/assets/Update-DflVXGGQ-qVV03FlC.js +0 -1
- package/storybook-static/assets/Update.stories-DG383caW.js +0 -387
- package/storybook-static/assets/VideoGuide.stories-BnCDLXK7.js +0 -3
- package/storybook-static/assets/__vite-browser-external-FmFgRqLi.js +0 -1
- package/storybook-static/assets/_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js +0 -4
- package/storybook-static/assets/chunk-EF7DTUVF-DPkwZaUR.js +0 -12
- package/storybook-static/assets/chunk-XP5HYGXS-BpfKkqn7.js +0 -1
- package/storybook-static/assets/content-BRdfAQPf.js +0 -27
- package/storybook-static/assets/entry-preview-D5WwyKaL.js +0 -2
- package/storybook-static/assets/entry-preview-docs-DU3GzdsG.js +0 -46
- package/storybook-static/assets/entry-preview-rsc-56ExrKd2.js +0 -1
- package/storybook-static/assets/github-BKgXy13-.js +0 -6
- package/storybook-static/assets/iframe-YbiB23cy.js +0 -211
- package/storybook-static/assets/index-Cf9b6H0j.js +0 -8
- package/storybook-static/assets/index-CrSc8wm9.js +0 -240
- package/storybook-static/assets/index-CzKwSnp0.js +0 -9
- package/storybook-static/assets/index-D6tQpKjq.js +0 -12
- package/storybook-static/assets/index-DUCcPMOf.js +0 -1
- package/storybook-static/assets/index-D_kTjGoR.js +0 -9
- package/storybook-static/assets/index-DgnBCu_c.js +0 -1
- package/storybook-static/assets/index-DrFu-skq.js +0 -6
- package/storybook-static/assets/index-H0MBf5rE.js +0 -1
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +0 -9
- package/storybook-static/assets/layouts-DBdGRyBm.js +0 -1
- package/storybook-static/assets/preview-B5edrxhc.js +0 -1
- package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
- package/storybook-static/assets/preview-C5EOgwJ9.js +0 -2
- package/storybook-static/assets/preview-DGZ5Qq08.js +0 -34
- package/storybook-static/assets/preview-DTyQTpzx.js +0 -1
- package/storybook-static/assets/preview-TqM3Oi8H.js +0 -1
- package/storybook-static/assets/preview-WIE65ICp.js +0 -1
- package/storybook-static/assets/preview-_Oh-njOd.css +0 -1
- package/storybook-static/assets/preview-caVMbCIR.js +0 -7
- package/storybook-static/assets/react-18-Tf4JhPOR.js +0 -25
- package/storybook-static/assets/system-CcsYyfSK.js +0 -1
- package/storybook-static/assets/test-utils-BaXAOqRT.js +0 -9
- package/storybook-static/assets/themes.stories-D1474P9U.js +0 -41
- package/storybook-static/assets/writer-DkrWmB39.js +0 -1
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -666
- package/storybook-static/index.html +0 -183
- package/storybook-static/index.json +0 -1
- package/storybook-static/logo.svg +0 -10
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/docs-9/manager-bundle.js +0 -242
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -402
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storysource-8/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -1052
- package/storybook-static/sb-manager/globals-runtime.js +0 -42127
- package/storybook-static/sb-manager/globals.js +0 -48
- package/storybook-static/sb-manager/runtime.js +0 -12048
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-D_zvdyIk.js";import"./writer-DkrWmB39.js";import{I as i,b as n,a as s}from"./Icons-CjNNbMNR.js";import{a as t}from"./Button-Cj99tk5U-Cn0Wrqkw.js";import"./Text-BAwif7rv-BYvLGGQV.js";import"./index-CzKwSnp0.js";import"./_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js";import"./index-DUCcPMOf.js";import"./index-DgnBCu_c.js";import"./index-D_kTjGoR.js";import"./Update-DflVXGGQ-qVV03FlC.js";const T={title:"Components/Writer/Button",component:t,parameters:{docs:{description:{component:"Button component provides interactive elements with various styles, sizes, and states. Supports icons, links, and different visual themes."}}},argTypes:{children:{description:"The content to display inside the button",control:"text"},kind:{description:"The visual style variant of the button",control:{type:"select"},options:["primary","secondary","tertiary"]},theme:{description:"The theme variant of the button",control:{type:"select"},options:["ghost"]},size:{description:"The size of the button",control:{type:"select"},options:["xs","sm","md","lg"]},className:{description:"Additional CSS class name",control:"text"},onClick:{description:"Click event handler",control:!1},disabled:{description:"Whether the button is disabled",control:"boolean"},icon:{description:"Icon to display in the button",control:!1},iconPosition:{description:"Position of the icon relative to the text",control:{type:"select"},options:["left","right"]},href:{description:"URL to navigate to (renders as anchor tag)",control:"text"}}},r={args:{children:"Button",kind:"primary",size:"md"},render:g=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(t,{...g})})},o={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{kind:"primary",children:"Primary"}),e.jsx(t,{kind:"secondary",children:"Secondary"}),e.jsx(t,{kind:"tertiary",children:"Tertiary"})]})})},a={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{size:"xs",children:"Extra Small"}),e.jsx(t,{size:"sm",children:"Small"}),e.jsx(t,{size:"md",children:"Medium"}),e.jsx(t,{size:"lg",children:"Large"})]})})},d={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{icon:e.jsx(i,{}),iconPosition:"left",children:"Play Video"}),e.jsx(t,{icon:e.jsx(n,{}),iconPosition:"right",children:"View Analytics"}),e.jsx(t,{icon:e.jsx(s,{}),iconPosition:"left",children:"Funnel Analysis"})]})})},l={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{icon:e.jsx(i,{})}),e.jsx(t,{icon:e.jsx(n,{})}),e.jsx(t,{icon:e.jsx(s,{})})]})})},c={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{theme:"ghost",icon:e.jsx(i,{})}),e.jsx(t,{theme:"ghost",icon:e.jsx(n,{})}),e.jsx(t,{theme:"ghost",icon:e.jsx(s,{})})]})})},p={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{disabled:!0,children:"Disabled Primary"}),e.jsx(t,{kind:"secondary",disabled:!0,children:"Disabled Secondary"}),e.jsx(t,{kind:"tertiary",disabled:!0,children:"Disabled Tertiary"}),e.jsx(t,{disabled:!0,icon:e.jsx(i,{}),children:"Disabled with Icon"})]})})},x={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{href:"/docs/getting-started",children:"Get Started"}),e.jsx(t,{href:"https://github.com",kind:"secondary",children:"View on GitHub"}),e.jsx(t,{href:"/api",kind:"tertiary",icon:e.jsx(n,{}),children:"API Reference"})]})})},m={args:{children:"Click Me!",kind:"primary",size:"md"},render:g=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsx(t,{...g,onClick:()=>alert("Button clicked!")}),e.jsx("p",{style:{marginTop:"10px",fontSize:"14px",color:"#666"},children:"Try clicking the button above to see the interactive behavior."})]}),parameters:{docs:{description:{story:"This button demonstrates interactive behavior. Click it to see the onClick handler in action."}}}},y={render:()=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Primary Buttons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{size:"xs",children:"XS Primary"}),e.jsx(t,{size:"sm",children:"Small Primary"}),e.jsx(t,{size:"md",children:"Medium Primary"}),e.jsx(t,{size:"lg",children:"Large Primary"})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Secondary Buttons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{kind:"secondary",size:"xs",children:"XS Secondary"}),e.jsx(t,{kind:"secondary",size:"sm",children:"Small Secondary"}),e.jsx(t,{kind:"secondary",size:"md",children:"Medium Secondary"}),e.jsx(t,{kind:"secondary",size:"lg",children:"Large Secondary"})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Tertiary Buttons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{kind:"tertiary",size:"xs",children:"XS Tertiary"}),e.jsx(t,{kind:"tertiary",size:"sm",children:"Small Tertiary"}),e.jsx(t,{kind:"tertiary",size:"md",children:"Medium Tertiary"}),e.jsx(t,{kind:"tertiary",size:"lg",children:"Large Tertiary"})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Buttons with Icons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{icon:e.jsx(i,{}),iconPosition:"left",children:"Left Icon"}),e.jsx(t,{icon:e.jsx(n,{}),iconPosition:"right",children:"Right Icon"}),e.jsx(t,{icon:e.jsx(s,{})})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Ghost Theme"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{theme:"ghost",icon:e.jsx(i,{})}),e.jsx(t,{theme:"ghost",icon:e.jsx(n,{})}),e.jsx(t,{theme:"ghost",icon:e.jsx(s,{})})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Disabled Buttons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{disabled:!0,children:"Disabled Primary"}),e.jsx(t,{kind:"secondary",disabled:!0,children:"Disabled Secondary"}),e.jsx(t,{kind:"tertiary",disabled:!0,children:"Disabled Tertiary"})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Link Buttons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{href:"/docs",children:"Documentation"}),e.jsx(t,{href:"https://github.com",kind:"secondary",children:"GitHub"}),e.jsx(t,{href:"/api",kind:"tertiary",children:"API"})]})]})]})},h={render:()=>e.jsxs("div",{style:{padding:"20px",maxWidth:"800px"},children:[e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h2",{children:"Documentation Actions"}),e.jsx("p",{children:"Common button patterns used in documentation sites."}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center",marginTop:"16px"},children:[e.jsx(t,{href:"/docs/getting-started",icon:e.jsx(i,{}),children:"Get Started"}),e.jsx(t,{href:"https://github.com",kind:"secondary",children:"View on GitHub"}),e.jsx(t,{href:"/api",kind:"tertiary",children:"API Reference"})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h2",{children:"Form Actions"}),e.jsx("p",{children:"Buttons commonly used in forms and interactive elements."}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center",marginTop:"16px"},children:[e.jsx(t,{icon:e.jsx(n,{}),children:"Save Changes"}),e.jsx(t,{kind:"secondary",children:"Cancel"}),e.jsx(t,{kind:"tertiary",children:"Reset"})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h2",{children:"Navigation Actions"}),e.jsx("p",{children:"Buttons used for navigation and user actions."}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center",marginTop:"16px"},children:[e.jsx(t,{href:"/next-page",children:"Continue"}),e.jsx(t,{href:"/previous-page",kind:"secondary",children:"Back"}),e.jsx(t,{theme:"ghost",icon:e.jsx(s,{})})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h2",{children:"Status Actions"}),e.jsx("p",{children:"Buttons that reflect different states and actions."}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center",marginTop:"16px"},children:[e.jsx(t,{children:"Active Action"}),e.jsx(t,{disabled:!0,children:"Disabled Action"}),e.jsx(t,{kind:"secondary",icon:e.jsx(i,{}),children:"Loading..."})]})]})]}),parameters:{docs:{description:{story:"This example shows how buttons are typically used in real-world applications, demonstrating common patterns and use cases."}}}},u={render:()=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsxs("div",{style:{marginBottom:"20px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Primary Buttons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{size:"xs",children:"Extra Small"}),e.jsx(t,{size:"sm",children:"Small"}),e.jsx(t,{size:"md",children:"Medium"}),e.jsx(t,{size:"lg",children:"Large"})]})]}),e.jsxs("div",{style:{marginBottom:"20px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"With Icons"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{size:"xs",icon:e.jsx(i,{}),children:"XS"}),e.jsx(t,{size:"sm",icon:e.jsx(i,{}),children:"Small"}),e.jsx(t,{size:"md",icon:e.jsx(i,{}),children:"Medium"}),e.jsx(t,{size:"lg",icon:e.jsx(i,{}),children:"Large"})]})]}),e.jsxs("div",{style:{marginBottom:"20px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Icon Only"}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[e.jsx(t,{size:"xs",icon:e.jsx(i,{})}),e.jsx(t,{size:"sm",icon:e.jsx(i,{})}),e.jsx(t,{size:"md",icon:e.jsx(i,{})}),e.jsx(t,{size:"lg",icon:e.jsx(i,{})})]})]})]})};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
children: 'Button',
|
|
4
|
-
kind: 'primary',
|
|
5
|
-
size: 'md'
|
|
6
|
-
},
|
|
7
|
-
render: args => <div style={{
|
|
8
|
-
padding: '20px'
|
|
9
|
-
}}>
|
|
10
|
-
<Button {...args} />
|
|
11
|
-
</div>
|
|
12
|
-
}`,...r.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
13
|
-
render: () => <div style={{
|
|
14
|
-
padding: '20px'
|
|
15
|
-
}}>
|
|
16
|
-
<div style={{
|
|
17
|
-
display: 'flex',
|
|
18
|
-
gap: '12px',
|
|
19
|
-
flexWrap: 'wrap',
|
|
20
|
-
alignItems: 'center'
|
|
21
|
-
}}>
|
|
22
|
-
<Button kind="primary">Primary</Button>
|
|
23
|
-
<Button kind="secondary">Secondary</Button>
|
|
24
|
-
<Button kind="tertiary">Tertiary</Button>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
}`,...o.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
28
|
-
render: () => <div style={{
|
|
29
|
-
padding: '20px'
|
|
30
|
-
}}>
|
|
31
|
-
<div style={{
|
|
32
|
-
display: 'flex',
|
|
33
|
-
gap: '12px',
|
|
34
|
-
flexWrap: 'wrap',
|
|
35
|
-
alignItems: 'center'
|
|
36
|
-
}}>
|
|
37
|
-
<Button size="xs">Extra Small</Button>
|
|
38
|
-
<Button size="sm">Small</Button>
|
|
39
|
-
<Button size="md">Medium</Button>
|
|
40
|
-
<Button size="lg">Large</Button>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
}`,...a.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
44
|
-
render: () => <div style={{
|
|
45
|
-
padding: '20px'
|
|
46
|
-
}}>
|
|
47
|
-
<div style={{
|
|
48
|
-
display: 'flex',
|
|
49
|
-
gap: '12px',
|
|
50
|
-
flexWrap: 'wrap',
|
|
51
|
-
alignItems: 'center'
|
|
52
|
-
}}>
|
|
53
|
-
<Button icon={<IconSessionReplay />} iconPosition="left">
|
|
54
|
-
Play Video
|
|
55
|
-
</Button>
|
|
56
|
-
<Button icon={<IconMetrics />} iconPosition="right">
|
|
57
|
-
View Analytics
|
|
58
|
-
</Button>
|
|
59
|
-
<Button icon={<IconFunnels />} iconPosition="left">
|
|
60
|
-
Funnel Analysis
|
|
61
|
-
</Button>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
}`,...d.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
65
|
-
render: () => <div style={{
|
|
66
|
-
padding: '20px'
|
|
67
|
-
}}>
|
|
68
|
-
<div style={{
|
|
69
|
-
display: 'flex',
|
|
70
|
-
gap: '12px',
|
|
71
|
-
flexWrap: 'wrap',
|
|
72
|
-
alignItems: 'center'
|
|
73
|
-
}}>
|
|
74
|
-
<Button icon={<IconSessionReplay />} />
|
|
75
|
-
<Button icon={<IconMetrics />} />
|
|
76
|
-
<Button icon={<IconFunnels />} />
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
}`,...l.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
80
|
-
render: () => <div style={{
|
|
81
|
-
padding: '20px'
|
|
82
|
-
}}>
|
|
83
|
-
<div style={{
|
|
84
|
-
display: 'flex',
|
|
85
|
-
gap: '12px',
|
|
86
|
-
flexWrap: 'wrap',
|
|
87
|
-
alignItems: 'center'
|
|
88
|
-
}}>
|
|
89
|
-
<Button theme="ghost" icon={<IconSessionReplay />} />
|
|
90
|
-
<Button theme="ghost" icon={<IconMetrics />} />
|
|
91
|
-
<Button theme="ghost" icon={<IconFunnels />} />
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
}`,...c.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
95
|
-
render: () => <div style={{
|
|
96
|
-
padding: '20px'
|
|
97
|
-
}}>
|
|
98
|
-
<div style={{
|
|
99
|
-
display: 'flex',
|
|
100
|
-
gap: '12px',
|
|
101
|
-
flexWrap: 'wrap',
|
|
102
|
-
alignItems: 'center'
|
|
103
|
-
}}>
|
|
104
|
-
<Button disabled>Disabled Primary</Button>
|
|
105
|
-
<Button kind="secondary" disabled>Disabled Secondary</Button>
|
|
106
|
-
<Button kind="tertiary" disabled>Disabled Tertiary</Button>
|
|
107
|
-
<Button disabled icon={<IconSessionReplay />}>
|
|
108
|
-
Disabled with Icon
|
|
109
|
-
</Button>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
}`,...p.parameters?.docs?.source}}};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
113
|
-
render: () => <div style={{
|
|
114
|
-
padding: '20px'
|
|
115
|
-
}}>
|
|
116
|
-
<div style={{
|
|
117
|
-
display: 'flex',
|
|
118
|
-
gap: '12px',
|
|
119
|
-
flexWrap: 'wrap',
|
|
120
|
-
alignItems: 'center'
|
|
121
|
-
}}>
|
|
122
|
-
<Button href="/docs/getting-started">
|
|
123
|
-
Get Started
|
|
124
|
-
</Button>
|
|
125
|
-
<Button href="https://github.com" kind="secondary">
|
|
126
|
-
View on GitHub
|
|
127
|
-
</Button>
|
|
128
|
-
<Button href="/api" kind="tertiary" icon={<IconMetrics />}>
|
|
129
|
-
API Reference
|
|
130
|
-
</Button>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
}`,...x.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
134
|
-
args: {
|
|
135
|
-
children: 'Click Me!',
|
|
136
|
-
kind: 'primary',
|
|
137
|
-
size: 'md'
|
|
138
|
-
},
|
|
139
|
-
render: args => <div style={{
|
|
140
|
-
padding: '20px'
|
|
141
|
-
}}>
|
|
142
|
-
<Button {...args} onClick={() => alert('Button clicked!')} />
|
|
143
|
-
<p style={{
|
|
144
|
-
marginTop: '10px',
|
|
145
|
-
fontSize: '14px',
|
|
146
|
-
color: '#666'
|
|
147
|
-
}}>
|
|
148
|
-
Try clicking the button above to see the interactive behavior.
|
|
149
|
-
</p>
|
|
150
|
-
</div>,
|
|
151
|
-
parameters: {
|
|
152
|
-
docs: {
|
|
153
|
-
description: {
|
|
154
|
-
story: 'This button demonstrates interactive behavior. Click it to see the onClick handler in action.'
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}`,...m.parameters?.docs?.source}}};y.parameters={...y.parameters,docs:{...y.parameters?.docs,source:{originalSource:`{
|
|
159
|
-
render: () => <div style={{
|
|
160
|
-
padding: '20px'
|
|
161
|
-
}}>
|
|
162
|
-
<div style={{
|
|
163
|
-
marginBottom: '30px'
|
|
164
|
-
}}>
|
|
165
|
-
<h3 style={{
|
|
166
|
-
marginBottom: '10px',
|
|
167
|
-
color: '#666'
|
|
168
|
-
}}>Primary Buttons</h3>
|
|
169
|
-
<div style={{
|
|
170
|
-
display: 'flex',
|
|
171
|
-
gap: '12px',
|
|
172
|
-
flexWrap: 'wrap',
|
|
173
|
-
alignItems: 'center'
|
|
174
|
-
}}>
|
|
175
|
-
<Button size="xs">XS Primary</Button>
|
|
176
|
-
<Button size="sm">Small Primary</Button>
|
|
177
|
-
<Button size="md">Medium Primary</Button>
|
|
178
|
-
<Button size="lg">Large Primary</Button>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
<div style={{
|
|
183
|
-
marginBottom: '30px'
|
|
184
|
-
}}>
|
|
185
|
-
<h3 style={{
|
|
186
|
-
marginBottom: '10px',
|
|
187
|
-
color: '#666'
|
|
188
|
-
}}>Secondary Buttons</h3>
|
|
189
|
-
<div style={{
|
|
190
|
-
display: 'flex',
|
|
191
|
-
gap: '12px',
|
|
192
|
-
flexWrap: 'wrap',
|
|
193
|
-
alignItems: 'center'
|
|
194
|
-
}}>
|
|
195
|
-
<Button kind="secondary" size="xs">XS Secondary</Button>
|
|
196
|
-
<Button kind="secondary" size="sm">Small Secondary</Button>
|
|
197
|
-
<Button kind="secondary" size="md">Medium Secondary</Button>
|
|
198
|
-
<Button kind="secondary" size="lg">Large Secondary</Button>
|
|
199
|
-
</div>
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
<div style={{
|
|
203
|
-
marginBottom: '30px'
|
|
204
|
-
}}>
|
|
205
|
-
<h3 style={{
|
|
206
|
-
marginBottom: '10px',
|
|
207
|
-
color: '#666'
|
|
208
|
-
}}>Tertiary Buttons</h3>
|
|
209
|
-
<div style={{
|
|
210
|
-
display: 'flex',
|
|
211
|
-
gap: '12px',
|
|
212
|
-
flexWrap: 'wrap',
|
|
213
|
-
alignItems: 'center'
|
|
214
|
-
}}>
|
|
215
|
-
<Button kind="tertiary" size="xs">XS Tertiary</Button>
|
|
216
|
-
<Button kind="tertiary" size="sm">Small Tertiary</Button>
|
|
217
|
-
<Button kind="tertiary" size="md">Medium Tertiary</Button>
|
|
218
|
-
<Button kind="tertiary" size="lg">Large Tertiary</Button>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
|
|
222
|
-
<div style={{
|
|
223
|
-
marginBottom: '30px'
|
|
224
|
-
}}>
|
|
225
|
-
<h3 style={{
|
|
226
|
-
marginBottom: '10px',
|
|
227
|
-
color: '#666'
|
|
228
|
-
}}>Buttons with Icons</h3>
|
|
229
|
-
<div style={{
|
|
230
|
-
display: 'flex',
|
|
231
|
-
gap: '12px',
|
|
232
|
-
flexWrap: 'wrap',
|
|
233
|
-
alignItems: 'center'
|
|
234
|
-
}}>
|
|
235
|
-
<Button icon={<IconSessionReplay />} iconPosition="left">
|
|
236
|
-
Left Icon
|
|
237
|
-
</Button>
|
|
238
|
-
<Button icon={<IconMetrics />} iconPosition="right">
|
|
239
|
-
Right Icon
|
|
240
|
-
</Button>
|
|
241
|
-
<Button icon={<IconFunnels />} />
|
|
242
|
-
</div>
|
|
243
|
-
</div>
|
|
244
|
-
|
|
245
|
-
<div style={{
|
|
246
|
-
marginBottom: '30px'
|
|
247
|
-
}}>
|
|
248
|
-
<h3 style={{
|
|
249
|
-
marginBottom: '10px',
|
|
250
|
-
color: '#666'
|
|
251
|
-
}}>Ghost Theme</h3>
|
|
252
|
-
<div style={{
|
|
253
|
-
display: 'flex',
|
|
254
|
-
gap: '12px',
|
|
255
|
-
flexWrap: 'wrap',
|
|
256
|
-
alignItems: 'center'
|
|
257
|
-
}}>
|
|
258
|
-
<Button theme="ghost" icon={<IconSessionReplay />} />
|
|
259
|
-
<Button theme="ghost" icon={<IconMetrics />} />
|
|
260
|
-
<Button theme="ghost" icon={<IconFunnels />} />
|
|
261
|
-
</div>
|
|
262
|
-
</div>
|
|
263
|
-
|
|
264
|
-
<div style={{
|
|
265
|
-
marginBottom: '30px'
|
|
266
|
-
}}>
|
|
267
|
-
<h3 style={{
|
|
268
|
-
marginBottom: '10px',
|
|
269
|
-
color: '#666'
|
|
270
|
-
}}>Disabled Buttons</h3>
|
|
271
|
-
<div style={{
|
|
272
|
-
display: 'flex',
|
|
273
|
-
gap: '12px',
|
|
274
|
-
flexWrap: 'wrap',
|
|
275
|
-
alignItems: 'center'
|
|
276
|
-
}}>
|
|
277
|
-
<Button disabled>Disabled Primary</Button>
|
|
278
|
-
<Button kind="secondary" disabled>Disabled Secondary</Button>
|
|
279
|
-
<Button kind="tertiary" disabled>Disabled Tertiary</Button>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
|
|
283
|
-
<div style={{
|
|
284
|
-
marginBottom: '30px'
|
|
285
|
-
}}>
|
|
286
|
-
<h3 style={{
|
|
287
|
-
marginBottom: '10px',
|
|
288
|
-
color: '#666'
|
|
289
|
-
}}>Link Buttons</h3>
|
|
290
|
-
<div style={{
|
|
291
|
-
display: 'flex',
|
|
292
|
-
gap: '12px',
|
|
293
|
-
flexWrap: 'wrap',
|
|
294
|
-
alignItems: 'center'
|
|
295
|
-
}}>
|
|
296
|
-
<Button href="/docs">Documentation</Button>
|
|
297
|
-
<Button href="https://github.com" kind="secondary">GitHub</Button>
|
|
298
|
-
<Button href="/api" kind="tertiary">API</Button>
|
|
299
|
-
</div>
|
|
300
|
-
</div>
|
|
301
|
-
</div>
|
|
302
|
-
}`,...y.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
|
|
303
|
-
render: () => <div style={{
|
|
304
|
-
padding: '20px',
|
|
305
|
-
maxWidth: '800px'
|
|
306
|
-
}}>
|
|
307
|
-
<div style={{
|
|
308
|
-
marginBottom: '30px'
|
|
309
|
-
}}>
|
|
310
|
-
<h2>Documentation Actions</h2>
|
|
311
|
-
<p>Common button patterns used in documentation sites.</p>
|
|
312
|
-
<div style={{
|
|
313
|
-
display: 'flex',
|
|
314
|
-
gap: '12px',
|
|
315
|
-
flexWrap: 'wrap',
|
|
316
|
-
alignItems: 'center',
|
|
317
|
-
marginTop: '16px'
|
|
318
|
-
}}>
|
|
319
|
-
<Button href="/docs/getting-started" icon={<IconSessionReplay />}>
|
|
320
|
-
Get Started
|
|
321
|
-
</Button>
|
|
322
|
-
<Button href="https://github.com" kind="secondary">
|
|
323
|
-
View on GitHub
|
|
324
|
-
</Button>
|
|
325
|
-
<Button href="/api" kind="tertiary">
|
|
326
|
-
API Reference
|
|
327
|
-
</Button>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
|
|
331
|
-
<div style={{
|
|
332
|
-
marginBottom: '30px'
|
|
333
|
-
}}>
|
|
334
|
-
<h2>Form Actions</h2>
|
|
335
|
-
<p>Buttons commonly used in forms and interactive elements.</p>
|
|
336
|
-
<div style={{
|
|
337
|
-
display: 'flex',
|
|
338
|
-
gap: '12px',
|
|
339
|
-
flexWrap: 'wrap',
|
|
340
|
-
alignItems: 'center',
|
|
341
|
-
marginTop: '16px'
|
|
342
|
-
}}>
|
|
343
|
-
<Button icon={<IconMetrics />}>
|
|
344
|
-
Save Changes
|
|
345
|
-
</Button>
|
|
346
|
-
<Button kind="secondary">
|
|
347
|
-
Cancel
|
|
348
|
-
</Button>
|
|
349
|
-
<Button kind="tertiary">
|
|
350
|
-
Reset
|
|
351
|
-
</Button>
|
|
352
|
-
</div>
|
|
353
|
-
</div>
|
|
354
|
-
|
|
355
|
-
<div style={{
|
|
356
|
-
marginBottom: '30px'
|
|
357
|
-
}}>
|
|
358
|
-
<h2>Navigation Actions</h2>
|
|
359
|
-
<p>Buttons used for navigation and user actions.</p>
|
|
360
|
-
<div style={{
|
|
361
|
-
display: 'flex',
|
|
362
|
-
gap: '12px',
|
|
363
|
-
flexWrap: 'wrap',
|
|
364
|
-
alignItems: 'center',
|
|
365
|
-
marginTop: '16px'
|
|
366
|
-
}}>
|
|
367
|
-
<Button href="/next-page">
|
|
368
|
-
Continue
|
|
369
|
-
</Button>
|
|
370
|
-
<Button href="/previous-page" kind="secondary">
|
|
371
|
-
Back
|
|
372
|
-
</Button>
|
|
373
|
-
<Button theme="ghost" icon={<IconFunnels />} />
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
|
|
377
|
-
<div style={{
|
|
378
|
-
marginBottom: '30px'
|
|
379
|
-
}}>
|
|
380
|
-
<h2>Status Actions</h2>
|
|
381
|
-
<p>Buttons that reflect different states and actions.</p>
|
|
382
|
-
<div style={{
|
|
383
|
-
display: 'flex',
|
|
384
|
-
gap: '12px',
|
|
385
|
-
flexWrap: 'wrap',
|
|
386
|
-
alignItems: 'center',
|
|
387
|
-
marginTop: '16px'
|
|
388
|
-
}}>
|
|
389
|
-
<Button>
|
|
390
|
-
Active Action
|
|
391
|
-
</Button>
|
|
392
|
-
<Button disabled>
|
|
393
|
-
Disabled Action
|
|
394
|
-
</Button>
|
|
395
|
-
<Button kind="secondary" icon={<IconSessionReplay />}>
|
|
396
|
-
Loading...
|
|
397
|
-
</Button>
|
|
398
|
-
</div>
|
|
399
|
-
</div>
|
|
400
|
-
</div>,
|
|
401
|
-
parameters: {
|
|
402
|
-
docs: {
|
|
403
|
-
description: {
|
|
404
|
-
story: 'This example shows how buttons are typically used in real-world applications, demonstrating common patterns and use cases.'
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
}`,...h.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
409
|
-
render: () => <div style={{
|
|
410
|
-
padding: '20px'
|
|
411
|
-
}}>
|
|
412
|
-
<div style={{
|
|
413
|
-
marginBottom: '20px'
|
|
414
|
-
}}>
|
|
415
|
-
<h3 style={{
|
|
416
|
-
marginBottom: '10px',
|
|
417
|
-
color: '#666'
|
|
418
|
-
}}>Primary Buttons</h3>
|
|
419
|
-
<div style={{
|
|
420
|
-
display: 'flex',
|
|
421
|
-
gap: '12px',
|
|
422
|
-
flexWrap: 'wrap',
|
|
423
|
-
alignItems: 'center'
|
|
424
|
-
}}>
|
|
425
|
-
<Button size="xs">Extra Small</Button>
|
|
426
|
-
<Button size="sm">Small</Button>
|
|
427
|
-
<Button size="md">Medium</Button>
|
|
428
|
-
<Button size="lg">Large</Button>
|
|
429
|
-
</div>
|
|
430
|
-
</div>
|
|
431
|
-
|
|
432
|
-
<div style={{
|
|
433
|
-
marginBottom: '20px'
|
|
434
|
-
}}>
|
|
435
|
-
<h3 style={{
|
|
436
|
-
marginBottom: '10px',
|
|
437
|
-
color: '#666'
|
|
438
|
-
}}>With Icons</h3>
|
|
439
|
-
<div style={{
|
|
440
|
-
display: 'flex',
|
|
441
|
-
gap: '12px',
|
|
442
|
-
flexWrap: 'wrap',
|
|
443
|
-
alignItems: 'center'
|
|
444
|
-
}}>
|
|
445
|
-
<Button size="xs" icon={<IconSessionReplay />}>XS</Button>
|
|
446
|
-
<Button size="sm" icon={<IconSessionReplay />}>Small</Button>
|
|
447
|
-
<Button size="md" icon={<IconSessionReplay />}>Medium</Button>
|
|
448
|
-
<Button size="lg" icon={<IconSessionReplay />}>Large</Button>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
|
|
452
|
-
<div style={{
|
|
453
|
-
marginBottom: '20px'
|
|
454
|
-
}}>
|
|
455
|
-
<h3 style={{
|
|
456
|
-
marginBottom: '10px',
|
|
457
|
-
color: '#666'
|
|
458
|
-
}}>Icon Only</h3>
|
|
459
|
-
<div style={{
|
|
460
|
-
display: 'flex',
|
|
461
|
-
gap: '12px',
|
|
462
|
-
flexWrap: 'wrap',
|
|
463
|
-
alignItems: 'center'
|
|
464
|
-
}}>
|
|
465
|
-
<Button size="xs" icon={<IconSessionReplay />} />
|
|
466
|
-
<Button size="sm" icon={<IconSessionReplay />} />
|
|
467
|
-
<Button size="md" icon={<IconSessionReplay />} />
|
|
468
|
-
<Button size="lg" icon={<IconSessionReplay />} />
|
|
469
|
-
</div>
|
|
470
|
-
</div>
|
|
471
|
-
</div>
|
|
472
|
-
}`,...u.parameters?.docs?.source}}};const P=["Default","AllKinds","AllSizes","WithIcons","IconOnly","GhostTheme","Disabled","LinkButtons","Interactive","AllCombinations","RealWorldExamples","SizeComparison"];export{y as AllCombinations,o as AllKinds,a as AllSizes,r as Default,p as Disabled,c as GhostTheme,l as IconOnly,m as Interactive,x as LinkButtons,h as RealWorldExamples,u as SizeComparison,d as WithIcons,P as __namedExportsOrder,T as default};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-D_zvdyIk.js";import"./writer-DkrWmB39.js";import{p as i}from"./Update-DflVXGGQ-qVV03FlC.js";import"./Text-BAwif7rv-BYvLGGQV.js";import"./index-CzKwSnp0.js";import"./Button-Cj99tk5U-Cn0Wrqkw.js";import"./_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js";import"./index-DUCcPMOf.js";import"./index-DgnBCu_c.js";import"./index-D_kTjGoR.js";const j={title:"Components/Writer/Callout",component:i,parameters:{docs:{description:{component:"Callout component is used to display important information, notices, or warnings in a visually distinct way."}}},argTypes:{children:{description:"The content to display inside the callout",control:"text"},kind:{description:"The visual style variant of the callout",control:{type:"select"},options:["note","tip","check","warning","danger"]},className:{description:"Additional CSS classes to apply",control:"text"}}},n={args:{children:"This is a default callout with informational content. It provides important context or notes to the user."},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})},r={args:{children:"This is a note callout. Use this for general information, context, or helpful details that users should be aware of.",kind:"note"},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})},s={args:{children:"This is a tip callout. Use this for helpful suggestions, best practices, or pro tips that can improve the user experience.",kind:"tip"},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})},o={args:{children:"This is a check callout. Use this for confirmation messages, successful actions, or positive feedback.",kind:"check"},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})},a={args:{children:"This is a warning callout. Use this for important notices, potential issues, or actions that require attention.",kind:"warning"},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})},l={args:{children:"This is a danger callout. Use this for critical errors, destructive actions, or situations that require immediate attention.",kind:"danger"},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})},c={render:()=>e.jsxs("div",{style:{width:700},children:[e.jsx("div",{style:{marginBottom:"20px"},children:e.jsx(i,{children:"Default callout with informational content"})}),e.jsx("div",{style:{marginBottom:"20px"},children:e.jsx(i,{kind:"note",children:"Note callout for general information and context"})}),e.jsx("div",{style:{marginBottom:"20px"},children:e.jsx(i,{kind:"tip",children:"Tip callout for helpful suggestions and best practices"})}),e.jsx("div",{style:{marginBottom:"20px"},children:e.jsx(i,{kind:"check",children:"Check callout for confirmation and success messages"})}),e.jsx("div",{style:{marginBottom:"20px"},children:e.jsx(i,{kind:"warning",children:"Warning callout for important notices and potential issues"})}),e.jsx("div",{style:{marginBottom:"20px"},children:e.jsx(i,{kind:"danger",children:"Danger callout for critical errors and destructive actions"})})]})},d={args:{children:"This is a callout with longer content that demonstrates how the component handles multi-line text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",kind:"note"},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})},u={args:{children:e.jsxs(e.Fragment,{children:["This callout contains ",e.jsx("strong",{children:"bold text"}),", ",e.jsx("em",{children:"italic text"}),", and a ",e.jsx("a",{href:"#",style:{color:"inherit",textDecoration:"underline"},children:"link"}),".",e.jsx("br",{}),"It also demonstrates how the component handles HTML elements and line breaks."]}),kind:"tip"},render:t=>e.jsx("div",{style:{width:700},children:e.jsx(i,{...t})})};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
children: 'This is a default callout with informational content. It provides important context or notes to the user.'
|
|
4
|
-
},
|
|
5
|
-
render: args => <div style={{
|
|
6
|
-
width: 700
|
|
7
|
-
}}>
|
|
8
|
-
<Callout {...args} />
|
|
9
|
-
</div>
|
|
10
|
-
}`,...n.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
11
|
-
args: {
|
|
12
|
-
children: 'This is a note callout. Use this for general information, context, or helpful details that users should be aware of.',
|
|
13
|
-
kind: 'note'
|
|
14
|
-
},
|
|
15
|
-
render: args => <div style={{
|
|
16
|
-
width: 700
|
|
17
|
-
}}>
|
|
18
|
-
<Callout {...args} />
|
|
19
|
-
</div>
|
|
20
|
-
}`,...r.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
|
|
21
|
-
args: {
|
|
22
|
-
children: 'This is a tip callout. Use this for helpful suggestions, best practices, or pro tips that can improve the user experience.',
|
|
23
|
-
kind: 'tip'
|
|
24
|
-
},
|
|
25
|
-
render: args => <div style={{
|
|
26
|
-
width: 700
|
|
27
|
-
}}>
|
|
28
|
-
<Callout {...args} />
|
|
29
|
-
</div>
|
|
30
|
-
}`,...s.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
31
|
-
args: {
|
|
32
|
-
children: 'This is a check callout. Use this for confirmation messages, successful actions, or positive feedback.',
|
|
33
|
-
kind: 'check'
|
|
34
|
-
},
|
|
35
|
-
render: args => <div style={{
|
|
36
|
-
width: 700
|
|
37
|
-
}}>
|
|
38
|
-
<Callout {...args} />
|
|
39
|
-
</div>
|
|
40
|
-
}`,...o.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
41
|
-
args: {
|
|
42
|
-
children: 'This is a warning callout. Use this for important notices, potential issues, or actions that require attention.',
|
|
43
|
-
kind: 'warning'
|
|
44
|
-
},
|
|
45
|
-
render: args => <div style={{
|
|
46
|
-
width: 700
|
|
47
|
-
}}>
|
|
48
|
-
<Callout {...args} />
|
|
49
|
-
</div>
|
|
50
|
-
}`,...a.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
51
|
-
args: {
|
|
52
|
-
children: 'This is a danger callout. Use this for critical errors, destructive actions, or situations that require immediate attention.',
|
|
53
|
-
kind: 'danger'
|
|
54
|
-
},
|
|
55
|
-
render: args => <div style={{
|
|
56
|
-
width: 700
|
|
57
|
-
}}>
|
|
58
|
-
<Callout {...args} />
|
|
59
|
-
</div>
|
|
60
|
-
}`,...l.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
61
|
-
render: () => <div style={{
|
|
62
|
-
width: 700
|
|
63
|
-
}}>
|
|
64
|
-
<div style={{
|
|
65
|
-
marginBottom: '20px'
|
|
66
|
-
}}>
|
|
67
|
-
<Callout>
|
|
68
|
-
Default callout with informational content
|
|
69
|
-
</Callout>
|
|
70
|
-
</div>
|
|
71
|
-
<div style={{
|
|
72
|
-
marginBottom: '20px'
|
|
73
|
-
}}>
|
|
74
|
-
<Callout kind="note">
|
|
75
|
-
Note callout for general information and context
|
|
76
|
-
</Callout>
|
|
77
|
-
</div>
|
|
78
|
-
<div style={{
|
|
79
|
-
marginBottom: '20px'
|
|
80
|
-
}}>
|
|
81
|
-
<Callout kind="tip">
|
|
82
|
-
Tip callout for helpful suggestions and best practices
|
|
83
|
-
</Callout>
|
|
84
|
-
</div>
|
|
85
|
-
<div style={{
|
|
86
|
-
marginBottom: '20px'
|
|
87
|
-
}}>
|
|
88
|
-
<Callout kind="check">
|
|
89
|
-
Check callout for confirmation and success messages
|
|
90
|
-
</Callout>
|
|
91
|
-
</div>
|
|
92
|
-
<div style={{
|
|
93
|
-
marginBottom: '20px'
|
|
94
|
-
}}>
|
|
95
|
-
<Callout kind="warning">
|
|
96
|
-
Warning callout for important notices and potential issues
|
|
97
|
-
</Callout>
|
|
98
|
-
</div>
|
|
99
|
-
<div style={{
|
|
100
|
-
marginBottom: '20px'
|
|
101
|
-
}}>
|
|
102
|
-
<Callout kind="danger">
|
|
103
|
-
Danger callout for critical errors and destructive actions
|
|
104
|
-
</Callout>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
}`,...c.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
108
|
-
args: {
|
|
109
|
-
children: 'This is a callout with longer content that demonstrates how the component handles multi-line text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
110
|
-
kind: 'note'
|
|
111
|
-
},
|
|
112
|
-
render: args => <div style={{
|
|
113
|
-
width: 700
|
|
114
|
-
}}>
|
|
115
|
-
<Callout {...args} />
|
|
116
|
-
</div>
|
|
117
|
-
}`,...d.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
118
|
-
args: {
|
|
119
|
-
children: <>
|
|
120
|
-
This callout contains <strong>bold text</strong>, <em>italic text</em>, and a <a href="#" style={{
|
|
121
|
-
color: 'inherit',
|
|
122
|
-
textDecoration: 'underline'
|
|
123
|
-
}}>link</a>.
|
|
124
|
-
<br />
|
|
125
|
-
It also demonstrates how the component handles HTML elements and line breaks.
|
|
126
|
-
</>,
|
|
127
|
-
kind: 'tip'
|
|
128
|
-
},
|
|
129
|
-
render: args => <div style={{
|
|
130
|
-
width: 700
|
|
131
|
-
}}>
|
|
132
|
-
<Callout {...args} />
|
|
133
|
-
</div>
|
|
134
|
-
}`,...u.parameters?.docs?.source}}};const C=["Default","Note","Tip","Check","Warning","Danger","AllVariants","WithLongContent","WithHTMLContent"];export{c as AllVariants,o as Check,l as Danger,n as Default,r as Note,s as Tip,a as Warning,u as WithHTMLContent,d as WithLongContent,C as __namedExportsOrder,j as default};
|