@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.
- package/.storybook/main.ts +40 -0
- package/.storybook/manager-head.html +6 -0
- package/.storybook/manager.ts +18 -0
- package/.storybook/preview.ts +40 -0
- package/.storybook/styles.css +5 -0
- package/.storybook/theme.ts +34 -0
- package/CHANGELOG.md +2357 -0
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/eslint.config.js +28 -0
- package/package.json +61 -0
- package/public/logo.svg +10 -0
- package/src/__fixtures__/Icons.tsx +83 -0
- package/src/__fixtures__/atlas-index/package-index.mdx +194 -0
- package/src/__fixtures__/atlas-index/wip1.mdx +131 -0
- package/src/__fixtures__/atlas-index.mdx +53 -0
- package/src/__fixtures__/code-sample.mdx +15 -0
- package/src/__fixtures__/example-source-uniform.ts +41 -0
- package/src/__fixtures__/hello-world.mdx +116 -0
- package/src/components/DemoDocs.tsx +235 -0
- package/src/components/logo.tsx +37 -0
- package/src/decorators/DocsTemplate.tsx +101 -0
- package/src/docs/atlas/Atlas.stories.tsx +51 -0
- package/src/docs/atlas/todo-app.uniform.json +625 -0
- package/src/docs/atlas/uniform-to-references.ts +101 -0
- package/src/docs/components/coder/CodeSample.stories.tsx +29 -0
- package/src/docs/components/pages/PageBlogHome.stories.tsx +52 -0
- package/src/docs/components/pages/PageFirstSlide.stories.tsx +124 -0
- package/src/docs/components/pages/PageHome.stories.tsx +127 -0
- package/src/docs/components/system/Baseline.stories.tsx +126 -0
- package/src/docs/components/writer/Badge.stories.tsx +132 -0
- package/src/docs/components/writer/Banner.stories.tsx +394 -0
- package/src/docs/components/writer/Blockquote.stories.tsx +415 -0
- package/src/docs/components/writer/Breadcrumbs.stories.tsx +282 -0
- package/src/docs/components/writer/Button.stories.tsx +405 -0
- package/src/docs/components/writer/Callout.stories.tsx +183 -0
- package/src/docs/components/writer/Card.stories.tsx +457 -0
- package/src/docs/components/writer/ColorSchemeButton.stories.tsx +322 -0
- package/src/docs/components/writer/Details.stories.tsx +333 -0
- package/src/docs/components/writer/GuideCard.stories.tsx +384 -0
- package/src/docs/components/writer/Heading.stories.tsx +379 -0
- package/src/docs/components/writer/Hr.stories.tsx +325 -0
- package/src/docs/components/writer/IconSocial.stories.tsx +591 -0
- package/src/docs/components/writer/Image.stories.tsx +430 -0
- package/src/docs/components/writer/List.stories.tsx +479 -0
- package/src/docs/components/writer/NavLinks.stories.tsx +380 -0
- package/src/docs/components/writer/Pre.stories.tsx +23 -0
- package/src/docs/components/writer/Steps.stories.tsx +914 -0
- package/src/docs/components/writer/Table.stories.tsx +608 -0
- package/src/docs/components/writer/Tabs.stories.tsx +760 -0
- package/src/docs/components/writer/TocCard.stories.tsx +407 -0
- package/src/docs/components/writer/Update.stories.tsx +457 -0
- package/src/docs/components/writer/VideoGuide.stories.tsx +17 -0
- package/src/docs/templates/CodeSample.stories.tsx +15 -0
- package/src/docs/themes/TODO.md +1 -0
- package/src/docs/themes/logo.tsx +37 -0
- package/src/docs/themes/themes.stories.tsx +269 -0
- package/src/docs/ui/Nav.stories.tsx +58 -0
- package/src/docs/ui/Sidebar.stories.tsx +167 -0
- package/src/docs/ui/SubNav.stories.tsx +29 -0
- package/src/utils/mdx.ts +31 -0
- package/storybook-static/assets/Atlas.stories-B3Ix52TV.js +153 -0
- package/storybook-static/assets/Badge.stories-D3nfVAAW.js +84 -0
- package/storybook-static/assets/Banner.stories-BHLs2WlR.js +394 -0
- package/storybook-static/assets/Baseline.stories-Bwx2zF_U.js +103 -0
- package/storybook-static/assets/Blockquote.stories-Cxf9fDVo.js +468 -0
- package/storybook-static/assets/Breadcrumbs.stories-CFjDJvdh.js +219 -0
- package/storybook-static/assets/Button-Cj99tk5U-Cn0Wrqkw.js +3 -0
- package/storybook-static/assets/Button.stories-DUfQIyn7.js +472 -0
- package/storybook-static/assets/Callout.stories-CIQWommc.js +134 -0
- package/storybook-static/assets/Card.stories-0mJDPE-f.js +278 -0
- package/storybook-static/assets/CodeSample.stories-1k1_b2U_.js +8 -0
- package/storybook-static/assets/CodeSample.stories-BEAQ3H6A.js +22 -0
- package/storybook-static/assets/Color-YHDXOIA2-BAq_yxd2.js +1 -0
- package/storybook-static/assets/ColorSchemeButton.stories-C1yuuA8O.js +384 -0
- package/storybook-static/assets/Details.stories-BacIPYUH.js +290 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-BwJiFRuq.js +575 -0
- package/storybook-static/assets/DocsTemplate-B8_ZAKIZ.js +16 -0
- package/storybook-static/assets/GuideCard.stories-IJbjW-xe.js +253 -0
- package/storybook-static/assets/Heading.stories-C9rBwnlZ.js +337 -0
- package/storybook-static/assets/Hr.stories-bgwD4mmY.js +351 -0
- package/storybook-static/assets/IconSocial.stories-Bv3u90GB.js +715 -0
- package/storybook-static/assets/Icons-CjNNbMNR.js +1 -0
- package/storybook-static/assets/Image.stories-BlrJ8Th7.js +349 -0
- package/storybook-static/assets/List.stories-mzy4ZAGg.js +513 -0
- package/storybook-static/assets/Nav.stories-CZhCHFlj.js +13 -0
- package/storybook-static/assets/NavLinks.stories-DuFRhZLh.js +359 -0
- package/storybook-static/assets/PageBlogHome.stories-BnmA2r3q.js +14 -0
- package/storybook-static/assets/PageFirstSlide-D2kcGYmB-BWfslHla.js +1 -0
- package/storybook-static/assets/PageFirstSlide-SzOOIHx0.css +1 -0
- package/storybook-static/assets/PageFirstSlide.stories-CoKlxYlH.js +55 -0
- package/storybook-static/assets/PageHome.stories-DcgUrGxe.js +121 -0
- package/storybook-static/assets/Pre.stories-CKu9R4kn.js +11 -0
- package/storybook-static/assets/Sidebar.stories-BivU6MOT.js +9 -0
- package/storybook-static/assets/Steps.stories-fSa3Sw8j.js +1146 -0
- package/storybook-static/assets/SubNav.stories-CL_Th3oO.js +19 -0
- package/storybook-static/assets/Table.stories-BdNM7k9y.js +581 -0
- package/storybook-static/assets/Tabs.stories-A3NcBab_.js +873 -0
- package/storybook-static/assets/Text-BAwif7rv-BYvLGGQV.js +31 -0
- package/storybook-static/assets/TocCard.stories-BRB1SH6U.js +299 -0
- package/storybook-static/assets/Update-DflVXGGQ-qVV03FlC.js +1 -0
- package/storybook-static/assets/Update.stories-DG383caW.js +387 -0
- package/storybook-static/assets/VideoGuide.stories-BnCDLXK7.js +3 -0
- package/storybook-static/assets/__vite-browser-external-FmFgRqLi.js +1 -0
- package/storybook-static/assets/_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js +4 -0
- package/storybook-static/assets/chunk-EF7DTUVF-DPkwZaUR.js +12 -0
- package/storybook-static/assets/chunk-XP5HYGXS-BpfKkqn7.js +1 -0
- package/storybook-static/assets/content-BRdfAQPf.js +27 -0
- package/storybook-static/assets/entry-preview-D5WwyKaL.js +2 -0
- package/storybook-static/assets/entry-preview-docs-DU3GzdsG.js +46 -0
- package/storybook-static/assets/entry-preview-rsc-56ExrKd2.js +1 -0
- package/storybook-static/assets/github-BKgXy13-.js +6 -0
- package/storybook-static/assets/iframe-YbiB23cy.js +211 -0
- package/storybook-static/assets/index-Cf9b6H0j.js +8 -0
- package/storybook-static/assets/index-CrSc8wm9.js +240 -0
- package/storybook-static/assets/index-CzKwSnp0.js +9 -0
- package/storybook-static/assets/index-D6tQpKjq.js +12 -0
- package/storybook-static/assets/index-DUCcPMOf.js +1 -0
- package/storybook-static/assets/index-D_kTjGoR.js +9 -0
- package/storybook-static/assets/index-DgnBCu_c.js +1 -0
- package/storybook-static/assets/index-DrFu-skq.js +6 -0
- package/storybook-static/assets/index-H0MBf5rE.js +1 -0
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
- package/storybook-static/assets/layouts-DBdGRyBm.js +1 -0
- package/storybook-static/assets/preview-B5edrxhc.js +1 -0
- package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
- package/storybook-static/assets/preview-C5EOgwJ9.js +2 -0
- package/storybook-static/assets/preview-DGZ5Qq08.js +34 -0
- package/storybook-static/assets/preview-DTyQTpzx.js +1 -0
- package/storybook-static/assets/preview-TqM3Oi8H.js +1 -0
- package/storybook-static/assets/preview-WIE65ICp.js +1 -0
- package/storybook-static/assets/preview-_Oh-njOd.css +1 -0
- package/storybook-static/assets/preview-caVMbCIR.js +7 -0
- package/storybook-static/assets/react-18-Tf4JhPOR.js +25 -0
- package/storybook-static/assets/system-CcsYyfSK.js +1 -0
- package/storybook-static/assets/test-utils-BaXAOqRT.js +9 -0
- package/storybook-static/assets/themes.stories-D1474P9U.js +41 -0
- package/storybook-static/assets/writer-DkrWmB39.js +1 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +666 -0
- package/storybook-static/index.html +183 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/logo.svg +10 -0
- 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 +1 -0
- package/storybook-static/sb-addons/docs-9/manager-bundle.js +242 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +402 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-10/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storysource-8/manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- 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 +1052 -0
- package/storybook-static/sb-manager/globals-runtime.js +42127 -0
- package/storybook-static/sb-manager/globals.js +48 -0
- package/storybook-static/sb-manager/runtime.js +12048 -0
- package/tsconfig.json +39 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +8 -0
|
@@ -0,0 +1,715 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-D_zvdyIk.js";import"./writer-DkrWmB39.js";import{j as i}from"./Text-BAwif7rv-BYvLGGQV.js";import"./Update-DflVXGGQ-qVV03FlC.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 D={title:"Components/Writer/IconSocial",component:i,parameters:{docs:{description:{component:"IconSocial component provides social media icons for various platforms. Each icon is optimized for consistent styling and accessibility."}}},argTypes:{kind:{description:"The social media platform for the icon",control:{type:"select"},options:["x","facebook","youtube","discord","slack","github","linkedin","instagram","hackernews","medium","telegram","bluesky","reddit"]},width:{description:"Width of the icon",control:"number"},height:{description:"Height of the icon",control:"number"},style:{description:"Additional CSS styles",control:"object"}}},d={args:{kind:"x"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},o={args:{kind:"facebook"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},n={args:{kind:"youtube"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},t={args:{kind:"discord"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},s={args:{kind:"slack"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},a={args:{kind:"github"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},l={args:{kind:"linkedin"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},c={args:{kind:"instagram"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},x={args:{kind:"hackernews"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},p={args:{kind:"medium"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},g={args:{kind:"telegram"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},y={args:{kind:"bluesky"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},h={args:{kind:"reddit"},render:r=>e.jsx("div",{style:{padding:"20px"},children:e.jsx(i,{...r})})},m={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))",gap:"20px",maxWidth:"800px"},children:[e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"x"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Twitter/X"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"facebook"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Facebook"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"youtube"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"YouTube"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"discord"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Discord"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"slack"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Slack"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"github"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"GitHub"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"linkedin"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"LinkedIn"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"instagram"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Instagram"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"hackernews"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Hacker News"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"medium"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Medium"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"telegram"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Telegram"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"bluesky"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Bluesky"})]}),e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx(i,{kind:"reddit"}),e.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:"Reddit"})]})]})})},v={render:()=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Small Icons (16px)"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(i,{kind:"github",width:16,height:16}),e.jsx(i,{kind:"x",width:16,height:16}),e.jsx(i,{kind:"linkedin",width:16,height:16}),e.jsx(i,{kind:"discord",width:16,height:16})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Medium Icons (24px)"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(i,{kind:"github",width:24,height:24}),e.jsx(i,{kind:"x",width:24,height:24}),e.jsx(i,{kind:"linkedin",width:24,height:24}),e.jsx(i,{kind:"discord",width:24,height:24})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Large Icons (32px)"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(i,{kind:"github",width:32,height:32}),e.jsx(i,{kind:"x",width:32,height:32}),e.jsx(i,{kind:"linkedin",width:32,height:32}),e.jsx(i,{kind:"discord",width:32,height:32})]})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Extra Large Icons (48px)"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(i,{kind:"github",width:48,height:48}),e.jsx(i,{kind:"x",width:48,height:48}),e.jsx(i,{kind:"linkedin",width:48,height:48}),e.jsx(i,{kind:"discord",width:48,height:48})]})]})]})},u={render:()=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Footer Social Links"}),e.jsx("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("span",{children:"© 2024 Documentation"}),e.jsxs("div",{style:{display:"flex",gap:"12px"},children:[e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"github"})}),e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"x"})}),e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"discord"})}),e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"linkedin"})})]})]})})]}),e.jsxs("div",{style:{marginBottom:"30px"},children:[e.jsx("h3",{style:{marginBottom:"10px",color:"#666"},children:"Share Buttons"}),e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:[e.jsx("h4",{style:{marginBottom:"16px"},children:"Share this page"}),e.jsxs("div",{style:{display:"flex",gap:"12px"},children:[e.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:"8px",borderRadius:"4px",color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"x"})}),e.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:"8px",borderRadius:"4px",color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"facebook"})}),e.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:"8px",borderRadius:"4px",color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"linkedin"})}),e.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:"8px",borderRadius:"4px",color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"reddit"})})]})]})]})]})},k={render:()=>e.jsxs("div",{style:{padding:"20px",maxWidth:"800px"},children:[e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"Documentation Footer"}),e.jsx("p",{children:"Social media icons are commonly used in documentation site footers."}),e.jsx("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"16px"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:"bold",marginBottom:"4px"},children:"Documentation"}),e.jsx("div",{style:{fontSize:"14px",color:"var(--xyd-text-color-secondary)"},children:"Built with ❤️ by the community"})]}),e.jsxs("div",{style:{display:"flex",gap:"12px"},children:[e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"github"})}),e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"discord"})}),e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"x"})}),e.jsx("a",{href:"#",style:{color:"var(--xyd-text-color)"},children:e.jsx(i,{kind:"youtube"})})]})]})})]}),e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"Community Links"}),e.jsx("p",{children:"Social icons for community engagement and support."}),e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:[e.jsx("h3",{style:{marginBottom:"16px"},children:"Join Our Community"}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[e.jsxs("a",{href:"#",style:{display:"flex",alignItems:"center",gap:"8px",color:"var(--xyd-text-color)",textDecoration:"none",padding:"8px",borderRadius:"4px",border:"1px solid var(--xyd-border-color)"},children:[e.jsx(i,{kind:"discord"}),e.jsx("span",{children:"Discord"})]}),e.jsxs("a",{href:"#",style:{display:"flex",alignItems:"center",gap:"8px",color:"var(--xyd-text-color)",textDecoration:"none",padding:"8px",borderRadius:"4px",border:"1px solid var(--xyd-border-color)"},children:[e.jsx(i,{kind:"slack"}),e.jsx("span",{children:"Slack"})]}),e.jsxs("a",{href:"#",style:{display:"flex",alignItems:"center",gap:"8px",color:"var(--xyd-text-color)",textDecoration:"none",padding:"8px",borderRadius:"4px",border:"1px solid var(--xyd-border-color)"},children:[e.jsx(i,{kind:"github"}),e.jsx("span",{children:"GitHub"})]})]})]})]}),e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"Social Media Feed"}),e.jsx("p",{children:"Social icons in a content feed or news section."}),e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:[e.jsx("h3",{style:{marginBottom:"16px"},children:"Latest Updates"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(i,{kind:"x"}),e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:"bold"},children:"New feature released!"}),e.jsx("div",{style:{fontSize:"14px",color:"var(--xyd-text-color-secondary)"},children:"Check out our latest updates on Twitter"})]})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(i,{kind:"youtube"}),e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:"bold"},children:"Video tutorial available"}),e.jsx("div",{style:{fontSize:"14px",color:"var(--xyd-text-color-secondary)"},children:"Watch our latest tutorial on YouTube"})]})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(i,{kind:"medium"}),e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:"bold"},children:"Blog post published"}),e.jsx("div",{style:{fontSize:"14px",color:"var(--xyd-text-color-secondary)"},children:"Read our latest insights on Medium"})]})]})]})]})]})]}),parameters:{docs:{description:{story:"This example shows how social media icons are typically used in real applications."}}}},b={args:{kind:"github"},render:r=>e.jsxs("div",{style:{padding:"20px"},children:[e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px",marginBottom:"20px"},children:[e.jsx("h3",{style:{marginBottom:"16px"},children:"Social Icon Demo"}),e.jsx("p",{style:{marginBottom:"16px",color:"var(--xyd-text-color)"},children:"This example demonstrates the IconSocial component with different platforms and sizes."}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(i,{...r}),e.jsx(i,{kind:"x"}),e.jsx(i,{kind:"linkedin"}),e.jsx(i,{kind:"discord"})]})]}),e.jsxs("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:[e.jsx("h4",{style:{marginBottom:"12px"},children:"Features"}),e.jsxs("ul",{style:{color:"var(--xyd-text-color)"},children:[e.jsx("li",{children:"Consistent styling across all platforms"}),e.jsx("li",{children:"Scalable vector graphics"}),e.jsx("li",{children:"Accessible design"}),e.jsx("li",{children:"Theme-aware colors"}),e.jsx("li",{children:"Customizable size and styling"})]})]})]}),parameters:{docs:{description:{story:"This interactive example demonstrates the IconSocial component functionality and styling."}}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
2
|
+
args: {
|
|
3
|
+
kind: 'x'
|
|
4
|
+
},
|
|
5
|
+
render: args => <div style={{
|
|
6
|
+
padding: '20px'
|
|
7
|
+
}}>
|
|
8
|
+
<IconSocial {...args} />
|
|
9
|
+
</div>
|
|
10
|
+
}`,...d.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
11
|
+
args: {
|
|
12
|
+
kind: 'facebook'
|
|
13
|
+
},
|
|
14
|
+
render: args => <div style={{
|
|
15
|
+
padding: '20px'
|
|
16
|
+
}}>
|
|
17
|
+
<IconSocial {...args} />
|
|
18
|
+
</div>
|
|
19
|
+
}`,...o.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
|
|
20
|
+
args: {
|
|
21
|
+
kind: 'youtube'
|
|
22
|
+
},
|
|
23
|
+
render: args => <div style={{
|
|
24
|
+
padding: '20px'
|
|
25
|
+
}}>
|
|
26
|
+
<IconSocial {...args} />
|
|
27
|
+
</div>
|
|
28
|
+
}`,...n.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
29
|
+
args: {
|
|
30
|
+
kind: 'discord'
|
|
31
|
+
},
|
|
32
|
+
render: args => <div style={{
|
|
33
|
+
padding: '20px'
|
|
34
|
+
}}>
|
|
35
|
+
<IconSocial {...args} />
|
|
36
|
+
</div>
|
|
37
|
+
}`,...t.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
|
|
38
|
+
args: {
|
|
39
|
+
kind: 'slack'
|
|
40
|
+
},
|
|
41
|
+
render: args => <div style={{
|
|
42
|
+
padding: '20px'
|
|
43
|
+
}}>
|
|
44
|
+
<IconSocial {...args} />
|
|
45
|
+
</div>
|
|
46
|
+
}`,...s.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
47
|
+
args: {
|
|
48
|
+
kind: 'github'
|
|
49
|
+
},
|
|
50
|
+
render: args => <div style={{
|
|
51
|
+
padding: '20px'
|
|
52
|
+
}}>
|
|
53
|
+
<IconSocial {...args} />
|
|
54
|
+
</div>
|
|
55
|
+
}`,...a.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
56
|
+
args: {
|
|
57
|
+
kind: 'linkedin'
|
|
58
|
+
},
|
|
59
|
+
render: args => <div style={{
|
|
60
|
+
padding: '20px'
|
|
61
|
+
}}>
|
|
62
|
+
<IconSocial {...args} />
|
|
63
|
+
</div>
|
|
64
|
+
}`,...l.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
65
|
+
args: {
|
|
66
|
+
kind: 'instagram'
|
|
67
|
+
},
|
|
68
|
+
render: args => <div style={{
|
|
69
|
+
padding: '20px'
|
|
70
|
+
}}>
|
|
71
|
+
<IconSocial {...args} />
|
|
72
|
+
</div>
|
|
73
|
+
}`,...c.parameters?.docs?.source}}};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
74
|
+
args: {
|
|
75
|
+
kind: 'hackernews'
|
|
76
|
+
},
|
|
77
|
+
render: args => <div style={{
|
|
78
|
+
padding: '20px'
|
|
79
|
+
}}>
|
|
80
|
+
<IconSocial {...args} />
|
|
81
|
+
</div>
|
|
82
|
+
}`,...x.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
83
|
+
args: {
|
|
84
|
+
kind: 'medium'
|
|
85
|
+
},
|
|
86
|
+
render: args => <div style={{
|
|
87
|
+
padding: '20px'
|
|
88
|
+
}}>
|
|
89
|
+
<IconSocial {...args} />
|
|
90
|
+
</div>
|
|
91
|
+
}`,...p.parameters?.docs?.source}}};g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
|
|
92
|
+
args: {
|
|
93
|
+
kind: 'telegram'
|
|
94
|
+
},
|
|
95
|
+
render: args => <div style={{
|
|
96
|
+
padding: '20px'
|
|
97
|
+
}}>
|
|
98
|
+
<IconSocial {...args} />
|
|
99
|
+
</div>
|
|
100
|
+
}`,...g.parameters?.docs?.source}}};y.parameters={...y.parameters,docs:{...y.parameters?.docs,source:{originalSource:`{
|
|
101
|
+
args: {
|
|
102
|
+
kind: 'bluesky'
|
|
103
|
+
},
|
|
104
|
+
render: args => <div style={{
|
|
105
|
+
padding: '20px'
|
|
106
|
+
}}>
|
|
107
|
+
<IconSocial {...args} />
|
|
108
|
+
</div>
|
|
109
|
+
}`,...y.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
|
|
110
|
+
args: {
|
|
111
|
+
kind: 'reddit'
|
|
112
|
+
},
|
|
113
|
+
render: args => <div style={{
|
|
114
|
+
padding: '20px'
|
|
115
|
+
}}>
|
|
116
|
+
<IconSocial {...args} />
|
|
117
|
+
</div>
|
|
118
|
+
}`,...h.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
119
|
+
render: () => <div style={{
|
|
120
|
+
padding: '20px'
|
|
121
|
+
}}>
|
|
122
|
+
<div style={{
|
|
123
|
+
display: 'grid',
|
|
124
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(120px, 1fr))',
|
|
125
|
+
gap: '20px',
|
|
126
|
+
maxWidth: '800px'
|
|
127
|
+
}}>
|
|
128
|
+
<div style={{
|
|
129
|
+
textAlign: 'center'
|
|
130
|
+
}}>
|
|
131
|
+
<IconSocial kind="x" />
|
|
132
|
+
<div style={{
|
|
133
|
+
marginTop: '8px',
|
|
134
|
+
fontSize: '12px'
|
|
135
|
+
}}>Twitter/X</div>
|
|
136
|
+
</div>
|
|
137
|
+
<div style={{
|
|
138
|
+
textAlign: 'center'
|
|
139
|
+
}}>
|
|
140
|
+
<IconSocial kind="facebook" />
|
|
141
|
+
<div style={{
|
|
142
|
+
marginTop: '8px',
|
|
143
|
+
fontSize: '12px'
|
|
144
|
+
}}>Facebook</div>
|
|
145
|
+
</div>
|
|
146
|
+
<div style={{
|
|
147
|
+
textAlign: 'center'
|
|
148
|
+
}}>
|
|
149
|
+
<IconSocial kind="youtube" />
|
|
150
|
+
<div style={{
|
|
151
|
+
marginTop: '8px',
|
|
152
|
+
fontSize: '12px'
|
|
153
|
+
}}>YouTube</div>
|
|
154
|
+
</div>
|
|
155
|
+
<div style={{
|
|
156
|
+
textAlign: 'center'
|
|
157
|
+
}}>
|
|
158
|
+
<IconSocial kind="discord" />
|
|
159
|
+
<div style={{
|
|
160
|
+
marginTop: '8px',
|
|
161
|
+
fontSize: '12px'
|
|
162
|
+
}}>Discord</div>
|
|
163
|
+
</div>
|
|
164
|
+
<div style={{
|
|
165
|
+
textAlign: 'center'
|
|
166
|
+
}}>
|
|
167
|
+
<IconSocial kind="slack" />
|
|
168
|
+
<div style={{
|
|
169
|
+
marginTop: '8px',
|
|
170
|
+
fontSize: '12px'
|
|
171
|
+
}}>Slack</div>
|
|
172
|
+
</div>
|
|
173
|
+
<div style={{
|
|
174
|
+
textAlign: 'center'
|
|
175
|
+
}}>
|
|
176
|
+
<IconSocial kind="github" />
|
|
177
|
+
<div style={{
|
|
178
|
+
marginTop: '8px',
|
|
179
|
+
fontSize: '12px'
|
|
180
|
+
}}>GitHub</div>
|
|
181
|
+
</div>
|
|
182
|
+
<div style={{
|
|
183
|
+
textAlign: 'center'
|
|
184
|
+
}}>
|
|
185
|
+
<IconSocial kind="linkedin" />
|
|
186
|
+
<div style={{
|
|
187
|
+
marginTop: '8px',
|
|
188
|
+
fontSize: '12px'
|
|
189
|
+
}}>LinkedIn</div>
|
|
190
|
+
</div>
|
|
191
|
+
<div style={{
|
|
192
|
+
textAlign: 'center'
|
|
193
|
+
}}>
|
|
194
|
+
<IconSocial kind="instagram" />
|
|
195
|
+
<div style={{
|
|
196
|
+
marginTop: '8px',
|
|
197
|
+
fontSize: '12px'
|
|
198
|
+
}}>Instagram</div>
|
|
199
|
+
</div>
|
|
200
|
+
<div style={{
|
|
201
|
+
textAlign: 'center'
|
|
202
|
+
}}>
|
|
203
|
+
<IconSocial kind="hackernews" />
|
|
204
|
+
<div style={{
|
|
205
|
+
marginTop: '8px',
|
|
206
|
+
fontSize: '12px'
|
|
207
|
+
}}>Hacker News</div>
|
|
208
|
+
</div>
|
|
209
|
+
<div style={{
|
|
210
|
+
textAlign: 'center'
|
|
211
|
+
}}>
|
|
212
|
+
<IconSocial kind="medium" />
|
|
213
|
+
<div style={{
|
|
214
|
+
marginTop: '8px',
|
|
215
|
+
fontSize: '12px'
|
|
216
|
+
}}>Medium</div>
|
|
217
|
+
</div>
|
|
218
|
+
<div style={{
|
|
219
|
+
textAlign: 'center'
|
|
220
|
+
}}>
|
|
221
|
+
<IconSocial kind="telegram" />
|
|
222
|
+
<div style={{
|
|
223
|
+
marginTop: '8px',
|
|
224
|
+
fontSize: '12px'
|
|
225
|
+
}}>Telegram</div>
|
|
226
|
+
</div>
|
|
227
|
+
<div style={{
|
|
228
|
+
textAlign: 'center'
|
|
229
|
+
}}>
|
|
230
|
+
<IconSocial kind="bluesky" />
|
|
231
|
+
<div style={{
|
|
232
|
+
marginTop: '8px',
|
|
233
|
+
fontSize: '12px'
|
|
234
|
+
}}>Bluesky</div>
|
|
235
|
+
</div>
|
|
236
|
+
<div style={{
|
|
237
|
+
textAlign: 'center'
|
|
238
|
+
}}>
|
|
239
|
+
<IconSocial kind="reddit" />
|
|
240
|
+
<div style={{
|
|
241
|
+
marginTop: '8px',
|
|
242
|
+
fontSize: '12px'
|
|
243
|
+
}}>Reddit</div>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
}`,...m.parameters?.docs?.source}}};v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
|
|
248
|
+
render: () => <div style={{
|
|
249
|
+
padding: '20px'
|
|
250
|
+
}}>
|
|
251
|
+
<div style={{
|
|
252
|
+
marginBottom: '30px'
|
|
253
|
+
}}>
|
|
254
|
+
<h3 style={{
|
|
255
|
+
marginBottom: '10px',
|
|
256
|
+
color: '#666'
|
|
257
|
+
}}>Small Icons (16px)</h3>
|
|
258
|
+
<div style={{
|
|
259
|
+
display: 'flex',
|
|
260
|
+
gap: '16px',
|
|
261
|
+
alignItems: 'center'
|
|
262
|
+
}}>
|
|
263
|
+
<IconSocial kind="github" width={16} height={16} />
|
|
264
|
+
<IconSocial kind="x" width={16} height={16} />
|
|
265
|
+
<IconSocial kind="linkedin" width={16} height={16} />
|
|
266
|
+
<IconSocial kind="discord" width={16} height={16} />
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<div style={{
|
|
271
|
+
marginBottom: '30px'
|
|
272
|
+
}}>
|
|
273
|
+
<h3 style={{
|
|
274
|
+
marginBottom: '10px',
|
|
275
|
+
color: '#666'
|
|
276
|
+
}}>Medium Icons (24px)</h3>
|
|
277
|
+
<div style={{
|
|
278
|
+
display: 'flex',
|
|
279
|
+
gap: '16px',
|
|
280
|
+
alignItems: 'center'
|
|
281
|
+
}}>
|
|
282
|
+
<IconSocial kind="github" width={24} height={24} />
|
|
283
|
+
<IconSocial kind="x" width={24} height={24} />
|
|
284
|
+
<IconSocial kind="linkedin" width={24} height={24} />
|
|
285
|
+
<IconSocial kind="discord" width={24} height={24} />
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<div style={{
|
|
290
|
+
marginBottom: '30px'
|
|
291
|
+
}}>
|
|
292
|
+
<h3 style={{
|
|
293
|
+
marginBottom: '10px',
|
|
294
|
+
color: '#666'
|
|
295
|
+
}}>Large Icons (32px)</h3>
|
|
296
|
+
<div style={{
|
|
297
|
+
display: 'flex',
|
|
298
|
+
gap: '16px',
|
|
299
|
+
alignItems: 'center'
|
|
300
|
+
}}>
|
|
301
|
+
<IconSocial kind="github" width={32} height={32} />
|
|
302
|
+
<IconSocial kind="x" width={32} height={32} />
|
|
303
|
+
<IconSocial kind="linkedin" width={32} height={32} />
|
|
304
|
+
<IconSocial kind="discord" width={32} height={32} />
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<div style={{
|
|
309
|
+
marginBottom: '30px'
|
|
310
|
+
}}>
|
|
311
|
+
<h3 style={{
|
|
312
|
+
marginBottom: '10px',
|
|
313
|
+
color: '#666'
|
|
314
|
+
}}>Extra Large Icons (48px)</h3>
|
|
315
|
+
<div style={{
|
|
316
|
+
display: 'flex',
|
|
317
|
+
gap: '16px',
|
|
318
|
+
alignItems: 'center'
|
|
319
|
+
}}>
|
|
320
|
+
<IconSocial kind="github" width={48} height={48} />
|
|
321
|
+
<IconSocial kind="x" width={48} height={48} />
|
|
322
|
+
<IconSocial kind="linkedin" width={48} height={48} />
|
|
323
|
+
<IconSocial kind="discord" width={48} height={48} />
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
}`,...v.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
328
|
+
render: () => <div style={{
|
|
329
|
+
padding: '20px'
|
|
330
|
+
}}>
|
|
331
|
+
<div style={{
|
|
332
|
+
marginBottom: '30px'
|
|
333
|
+
}}>
|
|
334
|
+
<h3 style={{
|
|
335
|
+
marginBottom: '10px',
|
|
336
|
+
color: '#666'
|
|
337
|
+
}}>Footer Social Links</h3>
|
|
338
|
+
<div style={{
|
|
339
|
+
background: 'var(--xyd-bgcolor)',
|
|
340
|
+
border: '1px solid var(--xyd-border-color)',
|
|
341
|
+
borderRadius: '8px',
|
|
342
|
+
padding: '20px'
|
|
343
|
+
}}>
|
|
344
|
+
<div style={{
|
|
345
|
+
display: 'flex',
|
|
346
|
+
justifyContent: 'space-between',
|
|
347
|
+
alignItems: 'center'
|
|
348
|
+
}}>
|
|
349
|
+
<span>© 2024 Documentation</span>
|
|
350
|
+
<div style={{
|
|
351
|
+
display: 'flex',
|
|
352
|
+
gap: '12px'
|
|
353
|
+
}}>
|
|
354
|
+
<a href="#" style={{
|
|
355
|
+
color: 'var(--xyd-text-color)'
|
|
356
|
+
}}>
|
|
357
|
+
<IconSocial kind="github" />
|
|
358
|
+
</a>
|
|
359
|
+
<a href="#" style={{
|
|
360
|
+
color: 'var(--xyd-text-color)'
|
|
361
|
+
}}>
|
|
362
|
+
<IconSocial kind="x" />
|
|
363
|
+
</a>
|
|
364
|
+
<a href="#" style={{
|
|
365
|
+
color: 'var(--xyd-text-color)'
|
|
366
|
+
}}>
|
|
367
|
+
<IconSocial kind="discord" />
|
|
368
|
+
</a>
|
|
369
|
+
<a href="#" style={{
|
|
370
|
+
color: 'var(--xyd-text-color)'
|
|
371
|
+
}}>
|
|
372
|
+
<IconSocial kind="linkedin" />
|
|
373
|
+
</a>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
|
|
379
|
+
<div style={{
|
|
380
|
+
marginBottom: '30px'
|
|
381
|
+
}}>
|
|
382
|
+
<h3 style={{
|
|
383
|
+
marginBottom: '10px',
|
|
384
|
+
color: '#666'
|
|
385
|
+
}}>Share Buttons</h3>
|
|
386
|
+
<div style={{
|
|
387
|
+
background: 'var(--xyd-bgcolor)',
|
|
388
|
+
border: '1px solid var(--xyd-border-color)',
|
|
389
|
+
borderRadius: '8px',
|
|
390
|
+
padding: '20px'
|
|
391
|
+
}}>
|
|
392
|
+
<h4 style={{
|
|
393
|
+
marginBottom: '16px'
|
|
394
|
+
}}>Share this page</h4>
|
|
395
|
+
<div style={{
|
|
396
|
+
display: 'flex',
|
|
397
|
+
gap: '12px'
|
|
398
|
+
}}>
|
|
399
|
+
<button style={{
|
|
400
|
+
background: 'none',
|
|
401
|
+
border: 'none',
|
|
402
|
+
cursor: 'pointer',
|
|
403
|
+
padding: '8px',
|
|
404
|
+
borderRadius: '4px',
|
|
405
|
+
color: 'var(--xyd-text-color)'
|
|
406
|
+
}}>
|
|
407
|
+
<IconSocial kind="x" />
|
|
408
|
+
</button>
|
|
409
|
+
<button style={{
|
|
410
|
+
background: 'none',
|
|
411
|
+
border: 'none',
|
|
412
|
+
cursor: 'pointer',
|
|
413
|
+
padding: '8px',
|
|
414
|
+
borderRadius: '4px',
|
|
415
|
+
color: 'var(--xyd-text-color)'
|
|
416
|
+
}}>
|
|
417
|
+
<IconSocial kind="facebook" />
|
|
418
|
+
</button>
|
|
419
|
+
<button style={{
|
|
420
|
+
background: 'none',
|
|
421
|
+
border: 'none',
|
|
422
|
+
cursor: 'pointer',
|
|
423
|
+
padding: '8px',
|
|
424
|
+
borderRadius: '4px',
|
|
425
|
+
color: 'var(--xyd-text-color)'
|
|
426
|
+
}}>
|
|
427
|
+
<IconSocial kind="linkedin" />
|
|
428
|
+
</button>
|
|
429
|
+
<button style={{
|
|
430
|
+
background: 'none',
|
|
431
|
+
border: 'none',
|
|
432
|
+
cursor: 'pointer',
|
|
433
|
+
padding: '8px',
|
|
434
|
+
borderRadius: '4px',
|
|
435
|
+
color: 'var(--xyd-text-color)'
|
|
436
|
+
}}>
|
|
437
|
+
<IconSocial kind="reddit" />
|
|
438
|
+
</button>
|
|
439
|
+
</div>
|
|
440
|
+
</div>
|
|
441
|
+
</div>
|
|
442
|
+
</div>
|
|
443
|
+
}`,...u.parameters?.docs?.source}}};k.parameters={...k.parameters,docs:{...k.parameters?.docs,source:{originalSource:`{
|
|
444
|
+
render: () => <div style={{
|
|
445
|
+
padding: '20px',
|
|
446
|
+
maxWidth: '800px'
|
|
447
|
+
}}>
|
|
448
|
+
<div style={{
|
|
449
|
+
marginBottom: '40px'
|
|
450
|
+
}}>
|
|
451
|
+
<h2>Documentation Footer</h2>
|
|
452
|
+
<p>Social media icons are commonly used in documentation site footers.</p>
|
|
453
|
+
<div style={{
|
|
454
|
+
background: 'var(--xyd-bgcolor)',
|
|
455
|
+
border: '1px solid var(--xyd-border-color)',
|
|
456
|
+
borderRadius: '8px',
|
|
457
|
+
padding: '20px'
|
|
458
|
+
}}>
|
|
459
|
+
<div style={{
|
|
460
|
+
display: 'flex',
|
|
461
|
+
justifyContent: 'space-between',
|
|
462
|
+
alignItems: 'center',
|
|
463
|
+
flexWrap: 'wrap',
|
|
464
|
+
gap: '16px'
|
|
465
|
+
}}>
|
|
466
|
+
<div>
|
|
467
|
+
<div style={{
|
|
468
|
+
fontWeight: 'bold',
|
|
469
|
+
marginBottom: '4px'
|
|
470
|
+
}}>Documentation</div>
|
|
471
|
+
<div style={{
|
|
472
|
+
fontSize: '14px',
|
|
473
|
+
color: 'var(--xyd-text-color-secondary)'
|
|
474
|
+
}}>
|
|
475
|
+
Built with ❤️ by the community
|
|
476
|
+
</div>
|
|
477
|
+
</div>
|
|
478
|
+
<div style={{
|
|
479
|
+
display: 'flex',
|
|
480
|
+
gap: '12px'
|
|
481
|
+
}}>
|
|
482
|
+
<a href="#" style={{
|
|
483
|
+
color: 'var(--xyd-text-color)'
|
|
484
|
+
}}>
|
|
485
|
+
<IconSocial kind="github" />
|
|
486
|
+
</a>
|
|
487
|
+
<a href="#" style={{
|
|
488
|
+
color: 'var(--xyd-text-color)'
|
|
489
|
+
}}>
|
|
490
|
+
<IconSocial kind="discord" />
|
|
491
|
+
</a>
|
|
492
|
+
<a href="#" style={{
|
|
493
|
+
color: 'var(--xyd-text-color)'
|
|
494
|
+
}}>
|
|
495
|
+
<IconSocial kind="x" />
|
|
496
|
+
</a>
|
|
497
|
+
<a href="#" style={{
|
|
498
|
+
color: 'var(--xyd-text-color)'
|
|
499
|
+
}}>
|
|
500
|
+
<IconSocial kind="youtube" />
|
|
501
|
+
</a>
|
|
502
|
+
</div>
|
|
503
|
+
</div>
|
|
504
|
+
</div>
|
|
505
|
+
</div>
|
|
506
|
+
|
|
507
|
+
<div style={{
|
|
508
|
+
marginBottom: '40px'
|
|
509
|
+
}}>
|
|
510
|
+
<h2>Community Links</h2>
|
|
511
|
+
<p>Social icons for community engagement and support.</p>
|
|
512
|
+
<div style={{
|
|
513
|
+
background: 'var(--xyd-bgcolor)',
|
|
514
|
+
border: '1px solid var(--xyd-border-color)',
|
|
515
|
+
borderRadius: '8px',
|
|
516
|
+
padding: '20px'
|
|
517
|
+
}}>
|
|
518
|
+
<h3 style={{
|
|
519
|
+
marginBottom: '16px'
|
|
520
|
+
}}>Join Our Community</h3>
|
|
521
|
+
<div style={{
|
|
522
|
+
display: 'flex',
|
|
523
|
+
gap: '16px',
|
|
524
|
+
flexWrap: 'wrap'
|
|
525
|
+
}}>
|
|
526
|
+
<a href="#" style={{
|
|
527
|
+
display: 'flex',
|
|
528
|
+
alignItems: 'center',
|
|
529
|
+
gap: '8px',
|
|
530
|
+
color: 'var(--xyd-text-color)',
|
|
531
|
+
textDecoration: 'none',
|
|
532
|
+
padding: '8px',
|
|
533
|
+
borderRadius: '4px',
|
|
534
|
+
border: '1px solid var(--xyd-border-color)'
|
|
535
|
+
}}>
|
|
536
|
+
<IconSocial kind="discord" />
|
|
537
|
+
<span>Discord</span>
|
|
538
|
+
</a>
|
|
539
|
+
<a href="#" style={{
|
|
540
|
+
display: 'flex',
|
|
541
|
+
alignItems: 'center',
|
|
542
|
+
gap: '8px',
|
|
543
|
+
color: 'var(--xyd-text-color)',
|
|
544
|
+
textDecoration: 'none',
|
|
545
|
+
padding: '8px',
|
|
546
|
+
borderRadius: '4px',
|
|
547
|
+
border: '1px solid var(--xyd-border-color)'
|
|
548
|
+
}}>
|
|
549
|
+
<IconSocial kind="slack" />
|
|
550
|
+
<span>Slack</span>
|
|
551
|
+
</a>
|
|
552
|
+
<a href="#" style={{
|
|
553
|
+
display: 'flex',
|
|
554
|
+
alignItems: 'center',
|
|
555
|
+
gap: '8px',
|
|
556
|
+
color: 'var(--xyd-text-color)',
|
|
557
|
+
textDecoration: 'none',
|
|
558
|
+
padding: '8px',
|
|
559
|
+
borderRadius: '4px',
|
|
560
|
+
border: '1px solid var(--xyd-border-color)'
|
|
561
|
+
}}>
|
|
562
|
+
<IconSocial kind="github" />
|
|
563
|
+
<span>GitHub</span>
|
|
564
|
+
</a>
|
|
565
|
+
</div>
|
|
566
|
+
</div>
|
|
567
|
+
</div>
|
|
568
|
+
|
|
569
|
+
<div style={{
|
|
570
|
+
marginBottom: '40px'
|
|
571
|
+
}}>
|
|
572
|
+
<h2>Social Media Feed</h2>
|
|
573
|
+
<p>Social icons in a content feed or news section.</p>
|
|
574
|
+
<div style={{
|
|
575
|
+
background: 'var(--xyd-bgcolor)',
|
|
576
|
+
border: '1px solid var(--xyd-border-color)',
|
|
577
|
+
borderRadius: '8px',
|
|
578
|
+
padding: '20px'
|
|
579
|
+
}}>
|
|
580
|
+
<h3 style={{
|
|
581
|
+
marginBottom: '16px'
|
|
582
|
+
}}>Latest Updates</h3>
|
|
583
|
+
<div style={{
|
|
584
|
+
display: 'flex',
|
|
585
|
+
flexDirection: 'column',
|
|
586
|
+
gap: '12px'
|
|
587
|
+
}}>
|
|
588
|
+
<div style={{
|
|
589
|
+
display: 'flex',
|
|
590
|
+
alignItems: 'center',
|
|
591
|
+
gap: '12px'
|
|
592
|
+
}}>
|
|
593
|
+
<IconSocial kind="x" />
|
|
594
|
+
<div>
|
|
595
|
+
<div style={{
|
|
596
|
+
fontWeight: 'bold'
|
|
597
|
+
}}>New feature released!</div>
|
|
598
|
+
<div style={{
|
|
599
|
+
fontSize: '14px',
|
|
600
|
+
color: 'var(--xyd-text-color-secondary)'
|
|
601
|
+
}}>
|
|
602
|
+
Check out our latest updates on Twitter
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
</div>
|
|
606
|
+
<div style={{
|
|
607
|
+
display: 'flex',
|
|
608
|
+
alignItems: 'center',
|
|
609
|
+
gap: '12px'
|
|
610
|
+
}}>
|
|
611
|
+
<IconSocial kind="youtube" />
|
|
612
|
+
<div>
|
|
613
|
+
<div style={{
|
|
614
|
+
fontWeight: 'bold'
|
|
615
|
+
}}>Video tutorial available</div>
|
|
616
|
+
<div style={{
|
|
617
|
+
fontSize: '14px',
|
|
618
|
+
color: 'var(--xyd-text-color-secondary)'
|
|
619
|
+
}}>
|
|
620
|
+
Watch our latest tutorial on YouTube
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
</div>
|
|
624
|
+
<div style={{
|
|
625
|
+
display: 'flex',
|
|
626
|
+
alignItems: 'center',
|
|
627
|
+
gap: '12px'
|
|
628
|
+
}}>
|
|
629
|
+
<IconSocial kind="medium" />
|
|
630
|
+
<div>
|
|
631
|
+
<div style={{
|
|
632
|
+
fontWeight: 'bold'
|
|
633
|
+
}}>Blog post published</div>
|
|
634
|
+
<div style={{
|
|
635
|
+
fontSize: '14px',
|
|
636
|
+
color: 'var(--xyd-text-color-secondary)'
|
|
637
|
+
}}>
|
|
638
|
+
Read our latest insights on Medium
|
|
639
|
+
</div>
|
|
640
|
+
</div>
|
|
641
|
+
</div>
|
|
642
|
+
</div>
|
|
643
|
+
</div>
|
|
644
|
+
</div>
|
|
645
|
+
</div>,
|
|
646
|
+
parameters: {
|
|
647
|
+
docs: {
|
|
648
|
+
description: {
|
|
649
|
+
story: 'This example shows how social media icons are typically used in real applications.'
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}`,...k.parameters?.docs?.source}}};b.parameters={...b.parameters,docs:{...b.parameters?.docs,source:{originalSource:`{
|
|
654
|
+
args: {
|
|
655
|
+
kind: 'github'
|
|
656
|
+
},
|
|
657
|
+
render: args => <div style={{
|
|
658
|
+
padding: '20px'
|
|
659
|
+
}}>
|
|
660
|
+
<div style={{
|
|
661
|
+
background: 'var(--xyd-bgcolor)',
|
|
662
|
+
border: '1px solid var(--xyd-border-color)',
|
|
663
|
+
borderRadius: '8px',
|
|
664
|
+
padding: '20px',
|
|
665
|
+
marginBottom: '20px'
|
|
666
|
+
}}>
|
|
667
|
+
<h3 style={{
|
|
668
|
+
marginBottom: '16px'
|
|
669
|
+
}}>Social Icon Demo</h3>
|
|
670
|
+
<p style={{
|
|
671
|
+
marginBottom: '16px',
|
|
672
|
+
color: 'var(--xyd-text-color)'
|
|
673
|
+
}}>
|
|
674
|
+
This example demonstrates the IconSocial component with different platforms and sizes.
|
|
675
|
+
</p>
|
|
676
|
+
<div style={{
|
|
677
|
+
display: 'flex',
|
|
678
|
+
gap: '16px',
|
|
679
|
+
alignItems: 'center'
|
|
680
|
+
}}>
|
|
681
|
+
<IconSocial {...args} />
|
|
682
|
+
<IconSocial kind="x" />
|
|
683
|
+
<IconSocial kind="linkedin" />
|
|
684
|
+
<IconSocial kind="discord" />
|
|
685
|
+
</div>
|
|
686
|
+
</div>
|
|
687
|
+
|
|
688
|
+
<div style={{
|
|
689
|
+
background: 'var(--xyd-bgcolor)',
|
|
690
|
+
border: '1px solid var(--xyd-border-color)',
|
|
691
|
+
borderRadius: '8px',
|
|
692
|
+
padding: '20px'
|
|
693
|
+
}}>
|
|
694
|
+
<h4 style={{
|
|
695
|
+
marginBottom: '12px'
|
|
696
|
+
}}>Features</h4>
|
|
697
|
+
<ul style={{
|
|
698
|
+
color: 'var(--xyd-text-color)'
|
|
699
|
+
}}>
|
|
700
|
+
<li>Consistent styling across all platforms</li>
|
|
701
|
+
<li>Scalable vector graphics</li>
|
|
702
|
+
<li>Accessible design</li>
|
|
703
|
+
<li>Theme-aware colors</li>
|
|
704
|
+
<li>Customizable size and styling</li>
|
|
705
|
+
</ul>
|
|
706
|
+
</div>
|
|
707
|
+
</div>,
|
|
708
|
+
parameters: {
|
|
709
|
+
docs: {
|
|
710
|
+
description: {
|
|
711
|
+
story: 'This interactive example demonstrates the IconSocial component functionality and styling.'
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
}`,...b.parameters?.docs?.source}}};const W=["Twitter","Facebook","YouTube","Discord","Slack","GitHub","LinkedIn","Instagram","HackerNews","Medium","Telegram","Bluesky","Reddit","AllSocialIcons","DifferentSizes","SocialMediaLinks","RealWorldExamples","Interactive"];export{m as AllSocialIcons,y as Bluesky,v as DifferentSizes,t as Discord,o as Facebook,a as GitHub,x as HackerNews,c as Instagram,b as Interactive,l as LinkedIn,p as Medium,k as RealWorldExamples,h as Reddit,s as Slack,u as SocialMediaLinks,g as Telegram,d as Twitter,n as YouTube,W as __namedExportsOrder,D as default};
|