@xyd-js/storybook 0.0.1-build.167

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.
Files changed (171) hide show
  1. package/.storybook/main.ts +40 -0
  2. package/.storybook/manager-head.html +6 -0
  3. package/.storybook/manager.ts +18 -0
  4. package/.storybook/preview.ts +40 -0
  5. package/.storybook/styles.css +5 -0
  6. package/.storybook/theme.ts +34 -0
  7. package/CHANGELOG.md +2357 -0
  8. package/LICENSE +21 -0
  9. package/README.md +50 -0
  10. package/eslint.config.js +28 -0
  11. package/package.json +61 -0
  12. package/public/logo.svg +10 -0
  13. package/src/__fixtures__/Icons.tsx +83 -0
  14. package/src/__fixtures__/atlas-index/package-index.mdx +194 -0
  15. package/src/__fixtures__/atlas-index/wip1.mdx +131 -0
  16. package/src/__fixtures__/atlas-index.mdx +53 -0
  17. package/src/__fixtures__/code-sample.mdx +15 -0
  18. package/src/__fixtures__/example-source-uniform.ts +41 -0
  19. package/src/__fixtures__/hello-world.mdx +116 -0
  20. package/src/components/DemoDocs.tsx +235 -0
  21. package/src/components/logo.tsx +37 -0
  22. package/src/decorators/DocsTemplate.tsx +101 -0
  23. package/src/docs/atlas/Atlas.stories.tsx +51 -0
  24. package/src/docs/atlas/todo-app.uniform.json +625 -0
  25. package/src/docs/atlas/uniform-to-references.ts +101 -0
  26. package/src/docs/components/coder/CodeSample.stories.tsx +29 -0
  27. package/src/docs/components/pages/PageBlogHome.stories.tsx +52 -0
  28. package/src/docs/components/pages/PageFirstSlide.stories.tsx +124 -0
  29. package/src/docs/components/pages/PageHome.stories.tsx +127 -0
  30. package/src/docs/components/system/Baseline.stories.tsx +126 -0
  31. package/src/docs/components/writer/Badge.stories.tsx +132 -0
  32. package/src/docs/components/writer/Banner.stories.tsx +394 -0
  33. package/src/docs/components/writer/Blockquote.stories.tsx +415 -0
  34. package/src/docs/components/writer/Breadcrumbs.stories.tsx +282 -0
  35. package/src/docs/components/writer/Button.stories.tsx +405 -0
  36. package/src/docs/components/writer/Callout.stories.tsx +183 -0
  37. package/src/docs/components/writer/Card.stories.tsx +457 -0
  38. package/src/docs/components/writer/ColorSchemeButton.stories.tsx +322 -0
  39. package/src/docs/components/writer/Details.stories.tsx +333 -0
  40. package/src/docs/components/writer/GuideCard.stories.tsx +384 -0
  41. package/src/docs/components/writer/Heading.stories.tsx +379 -0
  42. package/src/docs/components/writer/Hr.stories.tsx +325 -0
  43. package/src/docs/components/writer/IconSocial.stories.tsx +591 -0
  44. package/src/docs/components/writer/Image.stories.tsx +430 -0
  45. package/src/docs/components/writer/List.stories.tsx +479 -0
  46. package/src/docs/components/writer/NavLinks.stories.tsx +380 -0
  47. package/src/docs/components/writer/Pre.stories.tsx +23 -0
  48. package/src/docs/components/writer/Steps.stories.tsx +914 -0
  49. package/src/docs/components/writer/Table.stories.tsx +608 -0
  50. package/src/docs/components/writer/Tabs.stories.tsx +760 -0
  51. package/src/docs/components/writer/TocCard.stories.tsx +407 -0
  52. package/src/docs/components/writer/Update.stories.tsx +457 -0
  53. package/src/docs/components/writer/VideoGuide.stories.tsx +17 -0
  54. package/src/docs/templates/CodeSample.stories.tsx +15 -0
  55. package/src/docs/themes/TODO.md +1 -0
  56. package/src/docs/themes/logo.tsx +37 -0
  57. package/src/docs/themes/themes.stories.tsx +269 -0
  58. package/src/docs/ui/Nav.stories.tsx +58 -0
  59. package/src/docs/ui/Sidebar.stories.tsx +167 -0
  60. package/src/docs/ui/SubNav.stories.tsx +29 -0
  61. package/src/utils/mdx.ts +31 -0
  62. package/storybook-static/assets/Atlas.stories-B3Ix52TV.js +153 -0
  63. package/storybook-static/assets/Badge.stories-D3nfVAAW.js +84 -0
  64. package/storybook-static/assets/Banner.stories-BHLs2WlR.js +394 -0
  65. package/storybook-static/assets/Baseline.stories-Bwx2zF_U.js +103 -0
  66. package/storybook-static/assets/Blockquote.stories-Cxf9fDVo.js +468 -0
  67. package/storybook-static/assets/Breadcrumbs.stories-CFjDJvdh.js +219 -0
  68. package/storybook-static/assets/Button-Cj99tk5U-Cn0Wrqkw.js +3 -0
  69. package/storybook-static/assets/Button.stories-DUfQIyn7.js +472 -0
  70. package/storybook-static/assets/Callout.stories-CIQWommc.js +134 -0
  71. package/storybook-static/assets/Card.stories-0mJDPE-f.js +278 -0
  72. package/storybook-static/assets/CodeSample.stories-1k1_b2U_.js +8 -0
  73. package/storybook-static/assets/CodeSample.stories-BEAQ3H6A.js +22 -0
  74. package/storybook-static/assets/Color-YHDXOIA2-BAq_yxd2.js +1 -0
  75. package/storybook-static/assets/ColorSchemeButton.stories-C1yuuA8O.js +384 -0
  76. package/storybook-static/assets/Details.stories-BacIPYUH.js +290 -0
  77. package/storybook-static/assets/DocsRenderer-CFRXHY34-BwJiFRuq.js +575 -0
  78. package/storybook-static/assets/DocsTemplate-B8_ZAKIZ.js +16 -0
  79. package/storybook-static/assets/GuideCard.stories-IJbjW-xe.js +253 -0
  80. package/storybook-static/assets/Heading.stories-C9rBwnlZ.js +337 -0
  81. package/storybook-static/assets/Hr.stories-bgwD4mmY.js +351 -0
  82. package/storybook-static/assets/IconSocial.stories-Bv3u90GB.js +715 -0
  83. package/storybook-static/assets/Icons-CjNNbMNR.js +1 -0
  84. package/storybook-static/assets/Image.stories-BlrJ8Th7.js +349 -0
  85. package/storybook-static/assets/List.stories-mzy4ZAGg.js +513 -0
  86. package/storybook-static/assets/Nav.stories-CZhCHFlj.js +13 -0
  87. package/storybook-static/assets/NavLinks.stories-DuFRhZLh.js +359 -0
  88. package/storybook-static/assets/PageBlogHome.stories-BnmA2r3q.js +14 -0
  89. package/storybook-static/assets/PageFirstSlide-D2kcGYmB-BWfslHla.js +1 -0
  90. package/storybook-static/assets/PageFirstSlide-SzOOIHx0.css +1 -0
  91. package/storybook-static/assets/PageFirstSlide.stories-CoKlxYlH.js +55 -0
  92. package/storybook-static/assets/PageHome.stories-DcgUrGxe.js +121 -0
  93. package/storybook-static/assets/Pre.stories-CKu9R4kn.js +11 -0
  94. package/storybook-static/assets/Sidebar.stories-BivU6MOT.js +9 -0
  95. package/storybook-static/assets/Steps.stories-fSa3Sw8j.js +1146 -0
  96. package/storybook-static/assets/SubNav.stories-CL_Th3oO.js +19 -0
  97. package/storybook-static/assets/Table.stories-BdNM7k9y.js +581 -0
  98. package/storybook-static/assets/Tabs.stories-A3NcBab_.js +873 -0
  99. package/storybook-static/assets/Text-BAwif7rv-BYvLGGQV.js +31 -0
  100. package/storybook-static/assets/TocCard.stories-BRB1SH6U.js +299 -0
  101. package/storybook-static/assets/Update-DflVXGGQ-qVV03FlC.js +1 -0
  102. package/storybook-static/assets/Update.stories-DG383caW.js +387 -0
  103. package/storybook-static/assets/VideoGuide.stories-BnCDLXK7.js +3 -0
  104. package/storybook-static/assets/__vite-browser-external-FmFgRqLi.js +1 -0
  105. package/storybook-static/assets/_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js +4 -0
  106. package/storybook-static/assets/chunk-EF7DTUVF-DPkwZaUR.js +12 -0
  107. package/storybook-static/assets/chunk-XP5HYGXS-BpfKkqn7.js +1 -0
  108. package/storybook-static/assets/content-BRdfAQPf.js +27 -0
  109. package/storybook-static/assets/entry-preview-D5WwyKaL.js +2 -0
  110. package/storybook-static/assets/entry-preview-docs-DU3GzdsG.js +46 -0
  111. package/storybook-static/assets/entry-preview-rsc-56ExrKd2.js +1 -0
  112. package/storybook-static/assets/github-BKgXy13-.js +6 -0
  113. package/storybook-static/assets/iframe-YbiB23cy.js +211 -0
  114. package/storybook-static/assets/index-Cf9b6H0j.js +8 -0
  115. package/storybook-static/assets/index-CrSc8wm9.js +240 -0
  116. package/storybook-static/assets/index-CzKwSnp0.js +9 -0
  117. package/storybook-static/assets/index-D6tQpKjq.js +12 -0
  118. package/storybook-static/assets/index-DUCcPMOf.js +1 -0
  119. package/storybook-static/assets/index-D_kTjGoR.js +9 -0
  120. package/storybook-static/assets/index-DgnBCu_c.js +1 -0
  121. package/storybook-static/assets/index-DrFu-skq.js +6 -0
  122. package/storybook-static/assets/index-H0MBf5rE.js +1 -0
  123. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
  124. package/storybook-static/assets/layouts-DBdGRyBm.js +1 -0
  125. package/storybook-static/assets/preview-B5edrxhc.js +1 -0
  126. package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
  127. package/storybook-static/assets/preview-C5EOgwJ9.js +2 -0
  128. package/storybook-static/assets/preview-DGZ5Qq08.js +34 -0
  129. package/storybook-static/assets/preview-DTyQTpzx.js +1 -0
  130. package/storybook-static/assets/preview-TqM3Oi8H.js +1 -0
  131. package/storybook-static/assets/preview-WIE65ICp.js +1 -0
  132. package/storybook-static/assets/preview-_Oh-njOd.css +1 -0
  133. package/storybook-static/assets/preview-caVMbCIR.js +7 -0
  134. package/storybook-static/assets/react-18-Tf4JhPOR.js +25 -0
  135. package/storybook-static/assets/system-CcsYyfSK.js +1 -0
  136. package/storybook-static/assets/test-utils-BaXAOqRT.js +9 -0
  137. package/storybook-static/assets/themes.stories-D1474P9U.js +41 -0
  138. package/storybook-static/assets/writer-DkrWmB39.js +1 -0
  139. package/storybook-static/favicon.svg +1 -0
  140. package/storybook-static/iframe.html +666 -0
  141. package/storybook-static/index.html +183 -0
  142. package/storybook-static/index.json +1 -0
  143. package/storybook-static/logo.svg +10 -0
  144. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  145. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  146. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  147. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  148. package/storybook-static/project.json +1 -0
  149. package/storybook-static/sb-addons/docs-9/manager-bundle.js +242 -0
  150. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  151. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  152. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +402 -0
  153. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
  154. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
  155. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
  156. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
  157. package/storybook-static/sb-addons/storybook-10/manager-bundle.js +3 -0
  158. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  159. package/storybook-static/sb-addons/storysource-8/manager-bundle.js +3 -0
  160. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  161. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  162. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  163. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  164. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  165. package/storybook-static/sb-manager/globals-module-info.js +1052 -0
  166. package/storybook-static/sb-manager/globals-runtime.js +42127 -0
  167. package/storybook-static/sb-manager/globals.js +48 -0
  168. package/storybook-static/sb-manager/runtime.js +12048 -0
  169. package/tsconfig.json +39 -0
  170. package/tsconfig.tsbuildinfo +1 -0
  171. package/vite.config.ts +8 -0
@@ -0,0 +1,290 @@
1
+ import{j as e}from"./jsx-runtime-D_zvdyIk.js";import"./writer-DkrWmB39.js";import{N as t}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 T={title:"Components/Writer/Details",component:t,parameters:{docs:{description:{component:"Details component provides collapsible content sections with three variants: primary, secondary, and tertiary. Each variant has different visual styling and structure."}}},argTypes:{children:{description:"The content to be displayed inside the details element",control:"text"},label:{description:"Label text displayed in the summary",control:"text"},title:{description:"Title text or element displayed in the summary (for secondary and tertiary variants)",control:"text"},kind:{description:"The variant of the details component",control:{type:"select"},options:["primary","secondary","tertiary"]},icon:{description:"Optional icon element to be displayed in the summary",control:!1},className:{description:"Optional CSS class name for custom styling",control:"text"}}},n={args:{label:"Getting Started",children:"This is the primary variant of the Details component. It has a simple structure with just a label and content."},render:i=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(t,{...i})})},s={args:{kind:"secondary",title:"API Reference",label:"Complete documentation for all endpoints",children:"This is the secondary variant with both a title and label. It provides more detailed information in the summary."},render:i=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(t,{...i})})},a={args:{kind:"tertiary",title:"Advanced Configuration",label:"For experienced users",children:"This is the tertiary variant, which also includes both title and label but with different styling."},render:i=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(t,{...i})})},r={args:{kind:"secondary",title:"Comprehensive Guide",label:"Detailed step-by-step instructions",children:e.jsxs("div",{children:[e.jsx("p",{children:"This details component contains a substantial amount of content to demonstrate how it handles longer text and multiple paragraphs."}),e.jsx("p",{children:"The content can include various HTML elements like paragraphs, lists, and other components. This makes it perfect for organizing documentation and providing expandable sections."}),e.jsxs("ul",{children:[e.jsx("li",{children:"First step in the process"}),e.jsx("li",{children:"Second step with additional details"}),e.jsx("li",{children:"Third step with important notes"})]}),e.jsx("p",{children:"You can include any type of content within the details component, making it very flexible for different use cases."})]})},render:i=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(t,{...i})})},o={render:()=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsx("div",{style:{marginBottom:"20px"},children:e.jsxs(t,{label:"Installation",children:[e.jsx("p",{children:"Follow these steps to install the package:"}),e.jsxs("ol",{children:[e.jsxs("li",{children:["Run ",e.jsx("code",{children:"npm install package-name"})]}),e.jsx("li",{children:"Import the component in your file"}),e.jsx("li",{children:"Start using it in your application"})]})]})}),e.jsx("div",{style:{marginBottom:"20px"},children:e.jsxs(t,{kind:"secondary",title:"Configuration",label:"Optional settings",children:[e.jsx("p",{children:"Configure the component with these options:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Set the theme property"}),e.jsx("li",{children:"Configure the layout"}),e.jsx("li",{children:"Customize the styling"})]})]})}),e.jsx("div",{style:{marginBottom:"20px"},children:e.jsxs(t,{kind:"tertiary",title:"Advanced Usage",label:"For power users",children:[e.jsx("p",{children:"Advanced techniques and best practices:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Custom styling approaches"}),e.jsx("li",{children:"Performance optimization"}),e.jsx("li",{children:"Integration patterns"})]})]})})]})},l={args:{kind:"secondary",title:"Custom Icon Example",label:"Shows custom icon usage",icon:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})}),children:"This details component uses a custom star icon instead of the default icon."},render:i=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(t,{...i})})},d={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 Variant"}),e.jsx(t,{label:"Simple collapsible content",children:e.jsx("p",{children:"This is the primary variant with just a label. It's the simplest form of the Details component."})})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Secondary Variant"}),e.jsx(t,{kind:"secondary",title:"Enhanced Details",label:"With title and label",children:e.jsx("p",{children:"This secondary variant includes both a title and label, providing more context in the summary."})})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Tertiary Variant"}),e.jsx(t,{kind:"tertiary",title:"Advanced Details",label:"For complex content",children:e.jsx("p",{children:"This tertiary variant also has title and label but with different visual styling."})})]})]})},c={render:()=>e.jsxs("div",{style:{padding:"20px",maxWidth:"800px"},children:[e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"FAQ Section"}),e.jsx("p",{children:"Details components are perfect for FAQ sections and frequently asked questions."}),e.jsxs("div",{style:{marginTop:"20px"},children:[e.jsx(t,{label:"How do I get started?",children:e.jsx("p",{children:"Getting started is easy! Simply follow our quick start guide which will walk you through the basic setup process."})}),e.jsxs(t,{kind:"secondary",title:"Installation",label:"Step-by-step guide",children:[e.jsx("p",{children:"Install the package using npm or yarn:"}),e.jsx("pre",{children:e.jsx("code",{children:"npm install @xyd-js/components"})}),e.jsx("p",{children:"Then import and use the components in your project."})]}),e.jsx(t,{kind:"tertiary",title:"Troubleshooting",label:"Common issues",children:e.jsx("p",{children:"If you encounter any issues, check our troubleshooting guide or contact support."})})]})]}),e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"Documentation Sections"}),e.jsx("p",{children:"Organize documentation into collapsible sections for better navigation."}),e.jsxs("div",{style:{marginTop:"20px"},children:[e.jsx(t,{label:"Basic Concepts",children:e.jsx("p",{children:"Learn the fundamental concepts and principles that underpin our framework."})}),e.jsx(t,{kind:"secondary",title:"API Reference",label:"Complete documentation",children:e.jsx("p",{children:"Comprehensive API documentation with examples and usage patterns."})}),e.jsx(t,{kind:"tertiary",title:"Advanced Topics",label:"For experienced users",children:e.jsx("p",{children:"Advanced concepts and techniques for power users and complex use cases."})})]})]}),e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"Feature Documentation"}),e.jsx("p",{children:"Use details components to organize feature documentation and tutorials."}),e.jsxs("div",{style:{marginTop:"20px"},children:[e.jsx(t,{label:"Getting Started",children:e.jsx("p",{children:"Quick start guide to get you up and running in minutes."})}),e.jsx(t,{kind:"secondary",title:"Core Features",label:"Essential functionality",children:e.jsx("p",{children:"Overview of the core features and how to use them effectively."})}),e.jsx(t,{kind:"tertiary",title:"Advanced Features",label:"Optional capabilities",children:e.jsx("p",{children:"Advanced features and customization options for complex requirements."})})]})]})]}),parameters:{docs:{description:{story:"This example shows how Details components are typically used in real applications for organizing content."}}}},p={args:{kind:"secondary",title:"Interactive Details",label:"Click to expand",children:e.jsxs("div",{children:[e.jsx("p",{children:"This details component demonstrates the interactive behavior. Click the summary to expand or collapse the content."}),e.jsx("p",{children:"The component automatically handles the open/closed state and provides appropriate visual feedback."})]})},render:i=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsx(t,{...i}),e.jsx("p",{style:{marginTop:"10px",fontSize:"14px",color:"#666"},children:"The Details component provides semantic HTML structure and accessible collapsible content."})]}),parameters:{docs:{description:{story:"This details component demonstrates the interactive behavior and accessibility features."}}}},h={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs(t,{kind:"secondary",title:"Main Section",label:"Contains subsections",children:[e.jsx("p",{children:"This main section contains several subsections organized with nested details components."}),e.jsx(t,{label:"Subsection 1",children:e.jsx("p",{children:"This is the first subsection with its own content."})}),e.jsx(t,{kind:"secondary",title:"Subsection 2",label:"With title",children:e.jsx("p",{children:"This subsection has both a title and label."})}),e.jsx(t,{kind:"tertiary",title:"Subsection 3",label:"Tertiary style",children:e.jsx("p",{children:"This subsection uses the tertiary variant styling."})})]})}),parameters:{docs:{description:{story:"This example shows how Details components can be nested to create hierarchical content structures."}}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
2
+ args: {
3
+ label: 'Getting Started',
4
+ children: 'This is the primary variant of the Details component. It has a simple structure with just a label and content.'
5
+ },
6
+ render: args => <div style={{
7
+ padding: '20px'
8
+ }}>
9
+ <Details {...args} />
10
+ </div>
11
+ }`,...n.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
12
+ args: {
13
+ kind: 'secondary',
14
+ title: 'API Reference',
15
+ label: 'Complete documentation for all endpoints',
16
+ children: 'This is the secondary variant with both a title and label. It provides more detailed information in the summary.'
17
+ },
18
+ render: args => <div style={{
19
+ padding: '20px'
20
+ }}>
21
+ <Details {...args} />
22
+ </div>
23
+ }`,...s.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
24
+ args: {
25
+ kind: 'tertiary',
26
+ title: 'Advanced Configuration',
27
+ label: 'For experienced users',
28
+ children: 'This is the tertiary variant, which also includes both title and label but with different styling.'
29
+ },
30
+ render: args => <div style={{
31
+ padding: '20px'
32
+ }}>
33
+ <Details {...args} />
34
+ </div>
35
+ }`,...a.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
36
+ args: {
37
+ kind: 'secondary',
38
+ title: 'Comprehensive Guide',
39
+ label: 'Detailed step-by-step instructions',
40
+ children: <div>
41
+ <p>This details component contains a substantial amount of content to demonstrate how it handles longer text and multiple paragraphs.</p>
42
+ <p>The content can include various HTML elements like paragraphs, lists, and other components. This makes it perfect for organizing documentation and providing expandable sections.</p>
43
+ <ul>
44
+ <li>First step in the process</li>
45
+ <li>Second step with additional details</li>
46
+ <li>Third step with important notes</li>
47
+ </ul>
48
+ <p>You can include any type of content within the details component, making it very flexible for different use cases.</p>
49
+ </div>
50
+ },
51
+ render: args => <div style={{
52
+ padding: '20px'
53
+ }}>
54
+ <Details {...args} />
55
+ </div>
56
+ }`,...r.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
57
+ render: () => <div style={{
58
+ padding: '20px'
59
+ }}>
60
+ <div style={{
61
+ marginBottom: '20px'
62
+ }}>
63
+ <Details label="Installation">
64
+ <p>Follow these steps to install the package:</p>
65
+ <ol>
66
+ <li>Run <code>npm install package-name</code></li>
67
+ <li>Import the component in your file</li>
68
+ <li>Start using it in your application</li>
69
+ </ol>
70
+ </Details>
71
+ </div>
72
+
73
+ <div style={{
74
+ marginBottom: '20px'
75
+ }}>
76
+ <Details kind="secondary" title="Configuration" label="Optional settings">
77
+ <p>Configure the component with these options:</p>
78
+ <ul>
79
+ <li>Set the theme property</li>
80
+ <li>Configure the layout</li>
81
+ <li>Customize the styling</li>
82
+ </ul>
83
+ </Details>
84
+ </div>
85
+
86
+ <div style={{
87
+ marginBottom: '20px'
88
+ }}>
89
+ <Details kind="tertiary" title="Advanced Usage" label="For power users">
90
+ <p>Advanced techniques and best practices:</p>
91
+ <ul>
92
+ <li>Custom styling approaches</li>
93
+ <li>Performance optimization</li>
94
+ <li>Integration patterns</li>
95
+ </ul>
96
+ </Details>
97
+ </div>
98
+ </div>
99
+ }`,...o.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
100
+ args: {
101
+ kind: 'secondary',
102
+ title: 'Custom Icon Example',
103
+ label: 'Shows custom icon usage',
104
+ icon: <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
105
+ <path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" />
106
+ </svg>,
107
+ children: 'This details component uses a custom star icon instead of the default icon.'
108
+ },
109
+ render: args => <div style={{
110
+ padding: '20px'
111
+ }}>
112
+ <Details {...args} />
113
+ </div>
114
+ }`,...l.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
115
+ render: () => <div style={{
116
+ padding: '20px'
117
+ }}>
118
+ <div style={{
119
+ marginBottom: '30px'
120
+ }}>
121
+ <h3 style={{
122
+ marginBottom: '10px',
123
+ color: '#666'
124
+ }}>Primary Variant</h3>
125
+ <Details label="Simple collapsible content">
126
+ <p>This is the primary variant with just a label. It's the simplest form of the Details component.</p>
127
+ </Details>
128
+ </div>
129
+
130
+ <div style={{
131
+ marginBottom: '30px'
132
+ }}>
133
+ <h3 style={{
134
+ marginBottom: '10px',
135
+ color: '#666'
136
+ }}>Secondary Variant</h3>
137
+ <Details kind="secondary" title="Enhanced Details" label="With title and label">
138
+ <p>This secondary variant includes both a title and label, providing more context in the summary.</p>
139
+ </Details>
140
+ </div>
141
+
142
+ <div style={{
143
+ marginBottom: '30px'
144
+ }}>
145
+ <h3 style={{
146
+ marginBottom: '10px',
147
+ color: '#666'
148
+ }}>Tertiary Variant</h3>
149
+ <Details kind="tertiary" title="Advanced Details" label="For complex content">
150
+ <p>This tertiary variant also has title and label but with different visual styling.</p>
151
+ </Details>
152
+ </div>
153
+ </div>
154
+ }`,...d.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
155
+ render: () => <div style={{
156
+ padding: '20px',
157
+ maxWidth: '800px'
158
+ }}>
159
+ <div style={{
160
+ marginBottom: '40px'
161
+ }}>
162
+ <h2>FAQ Section</h2>
163
+ <p>Details components are perfect for FAQ sections and frequently asked questions.</p>
164
+ <div style={{
165
+ marginTop: '20px'
166
+ }}>
167
+ <Details label="How do I get started?">
168
+ <p>Getting started is easy! Simply follow our quick start guide which will walk you through the basic setup process.</p>
169
+ </Details>
170
+
171
+ <Details kind="secondary" title="Installation" label="Step-by-step guide">
172
+ <p>Install the package using npm or yarn:</p>
173
+ <pre><code>npm install @xyd-js/components</code></pre>
174
+ <p>Then import and use the components in your project.</p>
175
+ </Details>
176
+
177
+ <Details kind="tertiary" title="Troubleshooting" label="Common issues">
178
+ <p>If you encounter any issues, check our troubleshooting guide or contact support.</p>
179
+ </Details>
180
+ </div>
181
+ </div>
182
+
183
+ <div style={{
184
+ marginBottom: '40px'
185
+ }}>
186
+ <h2>Documentation Sections</h2>
187
+ <p>Organize documentation into collapsible sections for better navigation.</p>
188
+ <div style={{
189
+ marginTop: '20px'
190
+ }}>
191
+ <Details label="Basic Concepts">
192
+ <p>Learn the fundamental concepts and principles that underpin our framework.</p>
193
+ </Details>
194
+
195
+ <Details kind="secondary" title="API Reference" label="Complete documentation">
196
+ <p>Comprehensive API documentation with examples and usage patterns.</p>
197
+ </Details>
198
+
199
+ <Details kind="tertiary" title="Advanced Topics" label="For experienced users">
200
+ <p>Advanced concepts and techniques for power users and complex use cases.</p>
201
+ </Details>
202
+ </div>
203
+ </div>
204
+
205
+ <div style={{
206
+ marginBottom: '40px'
207
+ }}>
208
+ <h2>Feature Documentation</h2>
209
+ <p>Use details components to organize feature documentation and tutorials.</p>
210
+ <div style={{
211
+ marginTop: '20px'
212
+ }}>
213
+ <Details label="Getting Started">
214
+ <p>Quick start guide to get you up and running in minutes.</p>
215
+ </Details>
216
+
217
+ <Details kind="secondary" title="Core Features" label="Essential functionality">
218
+ <p>Overview of the core features and how to use them effectively.</p>
219
+ </Details>
220
+
221
+ <Details kind="tertiary" title="Advanced Features" label="Optional capabilities">
222
+ <p>Advanced features and customization options for complex requirements.</p>
223
+ </Details>
224
+ </div>
225
+ </div>
226
+ </div>,
227
+ parameters: {
228
+ docs: {
229
+ description: {
230
+ story: 'This example shows how Details components are typically used in real applications for organizing content.'
231
+ }
232
+ }
233
+ }
234
+ }`,...c.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
235
+ args: {
236
+ kind: 'secondary',
237
+ title: 'Interactive Details',
238
+ label: 'Click to expand',
239
+ children: <div>
240
+ <p>This details component demonstrates the interactive behavior. Click the summary to expand or collapse the content.</p>
241
+ <p>The component automatically handles the open/closed state and provides appropriate visual feedback.</p>
242
+ </div>
243
+ },
244
+ render: args => <div style={{
245
+ padding: '20px'
246
+ }}>
247
+ <Details {...args} />
248
+ <p style={{
249
+ marginTop: '10px',
250
+ fontSize: '14px',
251
+ color: '#666'
252
+ }}>
253
+ The Details component provides semantic HTML structure and accessible collapsible content.
254
+ </p>
255
+ </div>,
256
+ parameters: {
257
+ docs: {
258
+ description: {
259
+ story: 'This details component demonstrates the interactive behavior and accessibility features.'
260
+ }
261
+ }
262
+ }
263
+ }`,...p.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
264
+ render: () => <div style={{
265
+ padding: '20px'
266
+ }}>
267
+ <Details kind="secondary" title="Main Section" label="Contains subsections">
268
+ <p>This main section contains several subsections organized with nested details components.</p>
269
+
270
+ <Details label="Subsection 1">
271
+ <p>This is the first subsection with its own content.</p>
272
+ </Details>
273
+
274
+ <Details kind="secondary" title="Subsection 2" label="With title">
275
+ <p>This subsection has both a title and label.</p>
276
+ </Details>
277
+
278
+ <Details kind="tertiary" title="Subsection 3" label="Tertiary style">
279
+ <p>This subsection uses the tertiary variant styling.</p>
280
+ </Details>
281
+ </Details>
282
+ </div>,
283
+ parameters: {
284
+ docs: {
285
+ description: {
286
+ story: 'This example shows how Details components can be nested to create hierarchical content structures.'
287
+ }
288
+ }
289
+ }
290
+ }`,...h.parameters?.docs?.source}}};const k=["Primary","Secondary","Tertiary","LongContent","MultipleDetails","WithCustomIcon","AllVariants","RealWorldExamples","Interactive","NestedDetails"];export{d as AllVariants,p as Interactive,r as LongContent,o as MultipleDetails,h as NestedDetails,n as Primary,c as RealWorldExamples,s as Secondary,a as Tertiary,l as WithCustomIcon,k as __namedExportsOrder,T as default};