@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,19 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{u as a}from"./index-D6tQpKjq.js";import"./index-CzKwSnp0.js";import"./chunk-EF7DTUVF-DPkwZaUR.js";import"./index-DUCcPMOf.js";import"./index-DgnBCu_c.js";import"./index-D_kTjGoR.js";const o={title:"UI/SubNav"},n=()=>e.jsx("div",{style:{padding:"100px",paddingTop:"0px",margin:"0 auto"},children:e.jsxs(a,{title:"Apps",value:"build",children:[e.jsx(a.Item,{value:"build",href:"/build",children:"Build"}),e.jsx(a.Item,{value:"design",href:"/design",children:"Design"}),e.jsx(a.Item,{value:"launch",href:"/launch",children:"Launch"})]})});n.__docgenInfo={description:"",methods:[],displayName:"Default"};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`() => {
|
|
2
|
+
return <div style={{
|
|
3
|
+
padding: "100px",
|
|
4
|
+
paddingTop: "0px",
|
|
5
|
+
margin: "0 auto"
|
|
6
|
+
}}>
|
|
7
|
+
<SubNav title="Apps" value="build">
|
|
8
|
+
<SubNav.Item value="build" href="/build">
|
|
9
|
+
Build
|
|
10
|
+
</SubNav.Item>
|
|
11
|
+
<SubNav.Item value="design" href="/design">
|
|
12
|
+
Design
|
|
13
|
+
</SubNav.Item>
|
|
14
|
+
<SubNav.Item value="launch" href="/launch">
|
|
15
|
+
Launch
|
|
16
|
+
</SubNav.Item>
|
|
17
|
+
</SubNav>
|
|
18
|
+
</div>;
|
|
19
|
+
}`,...n.parameters?.docs?.source}}};const p=["Default"];export{n as Default,p as __namedExportsOrder,o as default};
|
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-D_zvdyIk.js";import"./writer-DkrWmB39.js";import{D as l}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 j={title:"Components/Writer/Table",component:l,parameters:{docs:{description:{component:"Table component provides structured data display with support for headers, body content, and various cell types including numeric and muted variants."}}},argTypes:{children:{description:"The table content including Head and Body components",control:!1}}},n={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"Model"}),e.jsx(l.Th,{numeric:!0,children:"Training"}),e.jsx(l.Th,{numeric:!0,children:"Input"}),e.jsx(l.Th,{numeric:!0,children:"Cached input"}),e.jsx(l.Th,{numeric:!0,children:"Output"})]})}),e.jsx(l.Body,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"gpt-4o-2024-08-06"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$25.00"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$3.75"})}),e.jsx(l.Td,{numeric:!0,muted:!0,children:e.jsx(l.Cell,{children:"$1.875"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$15.00"})})]})})]})})},T={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"Model"}),e.jsx(l.Th,{numeric:!0,children:"Training"}),e.jsx(l.Th,{numeric:!0,children:"Input"}),e.jsx(l.Th,{numeric:!0,children:"Cached input"}),e.jsx(l.Th,{numeric:!0,children:"Output"})]})}),e.jsxs(l.Body,{children:[e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"gpt-4o-2024-08-06"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$25.00"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$3.75"})}),e.jsx(l.Td,{numeric:!0,muted:!0,children:e.jsx(l.Cell,{children:"$1.875"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$15.00"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"gpt-4o-mini"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$15.00"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$0.15"})}),e.jsx(l.Td,{numeric:!0,muted:!0,children:e.jsx(l.Cell,{children:"$0.075"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$0.60"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"gpt-3.5-turbo"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$3.00"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$0.0015"})}),e.jsx(l.Td,{numeric:!0,muted:!0,children:e.jsx(l.Cell,{children:"$0.002"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$0.002"})})]})]})]})})},r={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"Feature"}),e.jsx(l.Th,{children:"Status"}),e.jsx(l.Th,{numeric:!0,children:"Usage"}),e.jsx(l.Th,{children:"Last Updated"}),e.jsx(l.Th,{numeric:!0,children:"Performance"})]})}),e.jsxs(l.Body,{children:[e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"API Authentication"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"✅ Active"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"1,234"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"2024-01-15"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"99.9%"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Data Processing"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"⚠️ Limited"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"567"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"2024-01-10"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"95.2%"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Analytics Dashboard"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"❌ Disabled"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"0"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"2024-01-05"})}),e.jsx(l.Td,{numeric:!0,muted:!0,children:e.jsx(l.Cell,{children:"N/A"})})]})]})]})})},a={render:()=>e.jsx("div",{style:{padding:"20px"},children:e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"Description"}),e.jsx(l.Th,{children:"Category"}),e.jsx(l.Th,{numeric:!0,children:"Priority"}),e.jsx(l.Th,{children:"Notes"})]})}),e.jsxs(l.Body,{children:[e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Implement comprehensive user authentication system with support for multiple authentication providers including OAuth, SAML, and custom token-based authentication."})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Security"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"High"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"This feature is critical for enterprise customers and requires thorough testing across different environments."})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Create advanced analytics dashboard with real-time data visualization, customizable charts, and export functionality for business intelligence."})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Analytics"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Medium"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Should integrate with existing data pipeline and support multiple chart types including line, bar, and pie charts."})})]})]})]})})},d={render:()=>e.jsxs("div",{style:{padding:"20px",maxWidth:"1000px"},children:[e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"API Pricing Table"}),e.jsx("p",{children:"Tables are commonly used to display pricing information and feature comparisons."}),e.jsx("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"Plan"}),e.jsx(l.Th,{numeric:!0,children:"Price"}),e.jsx(l.Th,{numeric:!0,children:"API Calls"}),e.jsx(l.Th,{numeric:!0,children:"Storage"}),e.jsx(l.Th,{children:"Support"})]})}),e.jsxs(l.Body,{children:[e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Starter"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$29/month"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"10,000"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"5GB"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Email"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Professional"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"$99/month"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"100,000"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"50GB"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Priority"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Enterprise"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Custom"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Unlimited"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Unlimited"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"24/7 Phone"})})]})]})]})})]}),e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"System Status"}),e.jsx("p",{children:"Tables can display system status and monitoring information."}),e.jsx("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"Service"}),e.jsx(l.Th,{children:"Status"}),e.jsx(l.Th,{numeric:!0,children:"Uptime"}),e.jsx(l.Th,{numeric:!0,children:"Response Time"}),e.jsx(l.Th,{children:"Last Incident"})]})}),e.jsxs(l.Body,{children:[e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"API Gateway"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"🟢 Operational"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"99.99%"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"45ms"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"2024-01-10"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Database"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"🟡 Degraded"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"99.85%"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"120ms"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"2024-01-15"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"CDN"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"🟢 Operational"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"99.98%"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"25ms"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"2024-01-08"})})]})]})]})})]}),e.jsxs("div",{style:{marginBottom:"40px"},children:[e.jsx("h2",{children:"User Management"}),e.jsx("p",{children:"Tables are perfect for displaying user lists and management interfaces."}),e.jsx("div",{style:{background:"var(--xyd-bgcolor)",border:"1px solid var(--xyd-border-color)",borderRadius:"8px",padding:"20px"},children:e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"User"}),e.jsx(l.Th,{children:"Role"}),e.jsx(l.Th,{children:"Status"}),e.jsx(l.Th,{numeric:!0,children:"Last Login"}),e.jsx(l.Th,{numeric:!0,children:"Actions"})]})}),e.jsxs(l.Body,{children:[e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"john.doe@company.com"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Admin"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"🟢 Active"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"2 hours ago"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Edit | Delete"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"jane.smith@company.com"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"User"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"🟡 Pending"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Never"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Edit | Delete"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"bob.wilson@company.com"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Manager"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"🟢 Active"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"1 day ago"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Edit | Delete"})})]})]})]})})]})]}),parameters:{docs:{description:{story:"This example shows how tables are typically used in real applications for data display."}}}},i={render:()=>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:"Table Component Demo"}),e.jsx("p",{style:{marginBottom:"16px",color:"var(--xyd-text-color)"},children:"This example demonstrates the Table component with various cell types and data formats."}),e.jsxs(l,{children:[e.jsx(l.Head,{children:e.jsxs(l.Tr,{children:[e.jsx(l.Th,{children:"Component"}),e.jsx(l.Th,{children:"Type"}),e.jsx(l.Th,{numeric:!0,children:"Complexity"}),e.jsx(l.Th,{children:"Status"})]})}),e.jsxs(l.Body,{children:[e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Button"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Interactive"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Low"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"✅ Complete"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Table"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Data Display"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Medium"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"🔄 In Progress"})})]}),e.jsxs(l.Tr,{children:[e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Steps"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"Navigation"})}),e.jsx(l.Td,{numeric:!0,children:e.jsx(l.Cell,{children:"Low"})}),e.jsx(l.Td,{children:e.jsx(l.Cell,{children:"✅ Complete"})})]})]})]})]}),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:"Structured data display"}),e.jsx("li",{children:"Numeric cell alignment"}),e.jsx("li",{children:"Muted cell styling"}),e.jsx("li",{children:"Responsive design"}),e.jsx("li",{children:"Accessible markup"})]})]})]}),parameters:{docs:{description:{story:"This interactive example demonstrates the Table component functionality and styling."}}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
|
|
2
|
+
render: () => <div style={{
|
|
3
|
+
padding: '20px'
|
|
4
|
+
}}>
|
|
5
|
+
<Table>
|
|
6
|
+
<Table.Head>
|
|
7
|
+
<Table.Tr>
|
|
8
|
+
<Table.Th>Model</Table.Th>
|
|
9
|
+
<Table.Th numeric>Training</Table.Th>
|
|
10
|
+
<Table.Th numeric>Input</Table.Th>
|
|
11
|
+
<Table.Th numeric>Cached input</Table.Th>
|
|
12
|
+
<Table.Th numeric>Output</Table.Th>
|
|
13
|
+
</Table.Tr>
|
|
14
|
+
</Table.Head>
|
|
15
|
+
<Table.Body>
|
|
16
|
+
<Table.Tr>
|
|
17
|
+
<Table.Td>
|
|
18
|
+
<Table.Cell>gpt-4o-2024-08-06</Table.Cell>
|
|
19
|
+
</Table.Td>
|
|
20
|
+
<Table.Td numeric>
|
|
21
|
+
<Table.Cell>$25.00</Table.Cell>
|
|
22
|
+
</Table.Td>
|
|
23
|
+
<Table.Td numeric>
|
|
24
|
+
<Table.Cell>$3.75</Table.Cell>
|
|
25
|
+
</Table.Td>
|
|
26
|
+
<Table.Td numeric muted>
|
|
27
|
+
<Table.Cell>$1.875</Table.Cell>
|
|
28
|
+
</Table.Td>
|
|
29
|
+
<Table.Td numeric>
|
|
30
|
+
<Table.Cell>$15.00</Table.Cell>
|
|
31
|
+
</Table.Td>
|
|
32
|
+
</Table.Tr>
|
|
33
|
+
</Table.Body>
|
|
34
|
+
</Table>
|
|
35
|
+
</div>
|
|
36
|
+
}`,...n.parameters?.docs?.source}}};T.parameters={...T.parameters,docs:{...T.parameters?.docs,source:{originalSource:`{
|
|
37
|
+
render: () => <div style={{
|
|
38
|
+
padding: '20px'
|
|
39
|
+
}}>
|
|
40
|
+
<Table>
|
|
41
|
+
<Table.Head>
|
|
42
|
+
<Table.Tr>
|
|
43
|
+
<Table.Th>Model</Table.Th>
|
|
44
|
+
<Table.Th numeric>Training</Table.Th>
|
|
45
|
+
<Table.Th numeric>Input</Table.Th>
|
|
46
|
+
<Table.Th numeric>Cached input</Table.Th>
|
|
47
|
+
<Table.Th numeric>Output</Table.Th>
|
|
48
|
+
</Table.Tr>
|
|
49
|
+
</Table.Head>
|
|
50
|
+
<Table.Body>
|
|
51
|
+
<Table.Tr>
|
|
52
|
+
<Table.Td>
|
|
53
|
+
<Table.Cell>gpt-4o-2024-08-06</Table.Cell>
|
|
54
|
+
</Table.Td>
|
|
55
|
+
<Table.Td numeric>
|
|
56
|
+
<Table.Cell>$25.00</Table.Cell>
|
|
57
|
+
</Table.Td>
|
|
58
|
+
<Table.Td numeric>
|
|
59
|
+
<Table.Cell>$3.75</Table.Cell>
|
|
60
|
+
</Table.Td>
|
|
61
|
+
<Table.Td numeric muted>
|
|
62
|
+
<Table.Cell>$1.875</Table.Cell>
|
|
63
|
+
</Table.Td>
|
|
64
|
+
<Table.Td numeric>
|
|
65
|
+
<Table.Cell>$15.00</Table.Cell>
|
|
66
|
+
</Table.Td>
|
|
67
|
+
</Table.Tr>
|
|
68
|
+
<Table.Tr>
|
|
69
|
+
<Table.Td>
|
|
70
|
+
<Table.Cell>gpt-4o-mini</Table.Cell>
|
|
71
|
+
</Table.Td>
|
|
72
|
+
<Table.Td numeric>
|
|
73
|
+
<Table.Cell>$15.00</Table.Cell>
|
|
74
|
+
</Table.Td>
|
|
75
|
+
<Table.Td numeric>
|
|
76
|
+
<Table.Cell>$0.15</Table.Cell>
|
|
77
|
+
</Table.Td>
|
|
78
|
+
<Table.Td numeric muted>
|
|
79
|
+
<Table.Cell>$0.075</Table.Cell>
|
|
80
|
+
</Table.Td>
|
|
81
|
+
<Table.Td numeric>
|
|
82
|
+
<Table.Cell>$0.60</Table.Cell>
|
|
83
|
+
</Table.Td>
|
|
84
|
+
</Table.Tr>
|
|
85
|
+
<Table.Tr>
|
|
86
|
+
<Table.Td>
|
|
87
|
+
<Table.Cell>gpt-3.5-turbo</Table.Cell>
|
|
88
|
+
</Table.Td>
|
|
89
|
+
<Table.Td numeric>
|
|
90
|
+
<Table.Cell>$3.00</Table.Cell>
|
|
91
|
+
</Table.Td>
|
|
92
|
+
<Table.Td numeric>
|
|
93
|
+
<Table.Cell>$0.0015</Table.Cell>
|
|
94
|
+
</Table.Td>
|
|
95
|
+
<Table.Td numeric muted>
|
|
96
|
+
<Table.Cell>$0.002</Table.Cell>
|
|
97
|
+
</Table.Td>
|
|
98
|
+
<Table.Td numeric>
|
|
99
|
+
<Table.Cell>$0.002</Table.Cell>
|
|
100
|
+
</Table.Td>
|
|
101
|
+
</Table.Tr>
|
|
102
|
+
</Table.Body>
|
|
103
|
+
</Table>
|
|
104
|
+
</div>
|
|
105
|
+
}`,...T.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
106
|
+
render: () => <div style={{
|
|
107
|
+
padding: '20px'
|
|
108
|
+
}}>
|
|
109
|
+
<Table>
|
|
110
|
+
<Table.Head>
|
|
111
|
+
<Table.Tr>
|
|
112
|
+
<Table.Th>Feature</Table.Th>
|
|
113
|
+
<Table.Th>Status</Table.Th>
|
|
114
|
+
<Table.Th numeric>Usage</Table.Th>
|
|
115
|
+
<Table.Th>Last Updated</Table.Th>
|
|
116
|
+
<Table.Th numeric>Performance</Table.Th>
|
|
117
|
+
</Table.Tr>
|
|
118
|
+
</Table.Head>
|
|
119
|
+
<Table.Body>
|
|
120
|
+
<Table.Tr>
|
|
121
|
+
<Table.Td>
|
|
122
|
+
<Table.Cell>API Authentication</Table.Cell>
|
|
123
|
+
</Table.Td>
|
|
124
|
+
<Table.Td>
|
|
125
|
+
<Table.Cell>✅ Active</Table.Cell>
|
|
126
|
+
</Table.Td>
|
|
127
|
+
<Table.Td numeric>
|
|
128
|
+
<Table.Cell>1,234</Table.Cell>
|
|
129
|
+
</Table.Td>
|
|
130
|
+
<Table.Td>
|
|
131
|
+
<Table.Cell>2024-01-15</Table.Cell>
|
|
132
|
+
</Table.Td>
|
|
133
|
+
<Table.Td numeric>
|
|
134
|
+
<Table.Cell>99.9%</Table.Cell>
|
|
135
|
+
</Table.Td>
|
|
136
|
+
</Table.Tr>
|
|
137
|
+
<Table.Tr>
|
|
138
|
+
<Table.Td>
|
|
139
|
+
<Table.Cell>Data Processing</Table.Cell>
|
|
140
|
+
</Table.Td>
|
|
141
|
+
<Table.Td>
|
|
142
|
+
<Table.Cell>⚠️ Limited</Table.Cell>
|
|
143
|
+
</Table.Td>
|
|
144
|
+
<Table.Td numeric>
|
|
145
|
+
<Table.Cell>567</Table.Cell>
|
|
146
|
+
</Table.Td>
|
|
147
|
+
<Table.Td>
|
|
148
|
+
<Table.Cell>2024-01-10</Table.Cell>
|
|
149
|
+
</Table.Td>
|
|
150
|
+
<Table.Td numeric>
|
|
151
|
+
<Table.Cell>95.2%</Table.Cell>
|
|
152
|
+
</Table.Td>
|
|
153
|
+
</Table.Tr>
|
|
154
|
+
<Table.Tr>
|
|
155
|
+
<Table.Td>
|
|
156
|
+
<Table.Cell>Analytics Dashboard</Table.Cell>
|
|
157
|
+
</Table.Td>
|
|
158
|
+
<Table.Td>
|
|
159
|
+
<Table.Cell>❌ Disabled</Table.Cell>
|
|
160
|
+
</Table.Td>
|
|
161
|
+
<Table.Td numeric>
|
|
162
|
+
<Table.Cell>0</Table.Cell>
|
|
163
|
+
</Table.Td>
|
|
164
|
+
<Table.Td>
|
|
165
|
+
<Table.Cell>2024-01-05</Table.Cell>
|
|
166
|
+
</Table.Td>
|
|
167
|
+
<Table.Td numeric muted>
|
|
168
|
+
<Table.Cell>N/A</Table.Cell>
|
|
169
|
+
</Table.Td>
|
|
170
|
+
</Table.Tr>
|
|
171
|
+
</Table.Body>
|
|
172
|
+
</Table>
|
|
173
|
+
</div>
|
|
174
|
+
}`,...r.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
175
|
+
render: () => <div style={{
|
|
176
|
+
padding: '20px'
|
|
177
|
+
}}>
|
|
178
|
+
<Table>
|
|
179
|
+
<Table.Head>
|
|
180
|
+
<Table.Tr>
|
|
181
|
+
<Table.Th>Description</Table.Th>
|
|
182
|
+
<Table.Th>Category</Table.Th>
|
|
183
|
+
<Table.Th numeric>Priority</Table.Th>
|
|
184
|
+
<Table.Th>Notes</Table.Th>
|
|
185
|
+
</Table.Tr>
|
|
186
|
+
</Table.Head>
|
|
187
|
+
<Table.Body>
|
|
188
|
+
<Table.Tr>
|
|
189
|
+
<Table.Td>
|
|
190
|
+
<Table.Cell>
|
|
191
|
+
Implement comprehensive user authentication system with support for
|
|
192
|
+
multiple authentication providers including OAuth, SAML, and custom
|
|
193
|
+
token-based authentication.
|
|
194
|
+
</Table.Cell>
|
|
195
|
+
</Table.Td>
|
|
196
|
+
<Table.Td>
|
|
197
|
+
<Table.Cell>Security</Table.Cell>
|
|
198
|
+
</Table.Td>
|
|
199
|
+
<Table.Td numeric>
|
|
200
|
+
<Table.Cell>High</Table.Cell>
|
|
201
|
+
</Table.Td>
|
|
202
|
+
<Table.Td>
|
|
203
|
+
<Table.Cell>
|
|
204
|
+
This feature is critical for enterprise customers and requires
|
|
205
|
+
thorough testing across different environments.
|
|
206
|
+
</Table.Cell>
|
|
207
|
+
</Table.Td>
|
|
208
|
+
</Table.Tr>
|
|
209
|
+
<Table.Tr>
|
|
210
|
+
<Table.Td>
|
|
211
|
+
<Table.Cell>
|
|
212
|
+
Create advanced analytics dashboard with real-time data visualization,
|
|
213
|
+
customizable charts, and export functionality for business intelligence.
|
|
214
|
+
</Table.Cell>
|
|
215
|
+
</Table.Td>
|
|
216
|
+
<Table.Td>
|
|
217
|
+
<Table.Cell>Analytics</Table.Cell>
|
|
218
|
+
</Table.Td>
|
|
219
|
+
<Table.Td numeric>
|
|
220
|
+
<Table.Cell>Medium</Table.Cell>
|
|
221
|
+
</Table.Td>
|
|
222
|
+
<Table.Td>
|
|
223
|
+
<Table.Cell>
|
|
224
|
+
Should integrate with existing data pipeline and support multiple
|
|
225
|
+
chart types including line, bar, and pie charts.
|
|
226
|
+
</Table.Cell>
|
|
227
|
+
</Table.Td>
|
|
228
|
+
</Table.Tr>
|
|
229
|
+
</Table.Body>
|
|
230
|
+
</Table>
|
|
231
|
+
</div>
|
|
232
|
+
}`,...a.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
233
|
+
render: () => <div style={{
|
|
234
|
+
padding: '20px',
|
|
235
|
+
maxWidth: '1000px'
|
|
236
|
+
}}>
|
|
237
|
+
<div style={{
|
|
238
|
+
marginBottom: '40px'
|
|
239
|
+
}}>
|
|
240
|
+
<h2>API Pricing Table</h2>
|
|
241
|
+
<p>Tables are commonly used to display pricing information and feature comparisons.</p>
|
|
242
|
+
<div style={{
|
|
243
|
+
background: 'var(--xyd-bgcolor)',
|
|
244
|
+
border: '1px solid var(--xyd-border-color)',
|
|
245
|
+
borderRadius: '8px',
|
|
246
|
+
padding: '20px'
|
|
247
|
+
}}>
|
|
248
|
+
<Table>
|
|
249
|
+
<Table.Head>
|
|
250
|
+
<Table.Tr>
|
|
251
|
+
<Table.Th>Plan</Table.Th>
|
|
252
|
+
<Table.Th numeric>Price</Table.Th>
|
|
253
|
+
<Table.Th numeric>API Calls</Table.Th>
|
|
254
|
+
<Table.Th numeric>Storage</Table.Th>
|
|
255
|
+
<Table.Th>Support</Table.Th>
|
|
256
|
+
</Table.Tr>
|
|
257
|
+
</Table.Head>
|
|
258
|
+
<Table.Body>
|
|
259
|
+
<Table.Tr>
|
|
260
|
+
<Table.Td>
|
|
261
|
+
<Table.Cell>Starter</Table.Cell>
|
|
262
|
+
</Table.Td>
|
|
263
|
+
<Table.Td numeric>
|
|
264
|
+
<Table.Cell>$29/month</Table.Cell>
|
|
265
|
+
</Table.Td>
|
|
266
|
+
<Table.Td numeric>
|
|
267
|
+
<Table.Cell>10,000</Table.Cell>
|
|
268
|
+
</Table.Td>
|
|
269
|
+
<Table.Td numeric>
|
|
270
|
+
<Table.Cell>5GB</Table.Cell>
|
|
271
|
+
</Table.Td>
|
|
272
|
+
<Table.Td>
|
|
273
|
+
<Table.Cell>Email</Table.Cell>
|
|
274
|
+
</Table.Td>
|
|
275
|
+
</Table.Tr>
|
|
276
|
+
<Table.Tr>
|
|
277
|
+
<Table.Td>
|
|
278
|
+
<Table.Cell>Professional</Table.Cell>
|
|
279
|
+
</Table.Td>
|
|
280
|
+
<Table.Td numeric>
|
|
281
|
+
<Table.Cell>$99/month</Table.Cell>
|
|
282
|
+
</Table.Td>
|
|
283
|
+
<Table.Td numeric>
|
|
284
|
+
<Table.Cell>100,000</Table.Cell>
|
|
285
|
+
</Table.Td>
|
|
286
|
+
<Table.Td numeric>
|
|
287
|
+
<Table.Cell>50GB</Table.Cell>
|
|
288
|
+
</Table.Td>
|
|
289
|
+
<Table.Td>
|
|
290
|
+
<Table.Cell>Priority</Table.Cell>
|
|
291
|
+
</Table.Td>
|
|
292
|
+
</Table.Tr>
|
|
293
|
+
<Table.Tr>
|
|
294
|
+
<Table.Td>
|
|
295
|
+
<Table.Cell>Enterprise</Table.Cell>
|
|
296
|
+
</Table.Td>
|
|
297
|
+
<Table.Td numeric>
|
|
298
|
+
<Table.Cell>Custom</Table.Cell>
|
|
299
|
+
</Table.Td>
|
|
300
|
+
<Table.Td numeric>
|
|
301
|
+
<Table.Cell>Unlimited</Table.Cell>
|
|
302
|
+
</Table.Td>
|
|
303
|
+
<Table.Td numeric>
|
|
304
|
+
<Table.Cell>Unlimited</Table.Cell>
|
|
305
|
+
</Table.Td>
|
|
306
|
+
<Table.Td>
|
|
307
|
+
<Table.Cell>24/7 Phone</Table.Cell>
|
|
308
|
+
</Table.Td>
|
|
309
|
+
</Table.Tr>
|
|
310
|
+
</Table.Body>
|
|
311
|
+
</Table>
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
<div style={{
|
|
316
|
+
marginBottom: '40px'
|
|
317
|
+
}}>
|
|
318
|
+
<h2>System Status</h2>
|
|
319
|
+
<p>Tables can display system status and monitoring information.</p>
|
|
320
|
+
<div style={{
|
|
321
|
+
background: 'var(--xyd-bgcolor)',
|
|
322
|
+
border: '1px solid var(--xyd-border-color)',
|
|
323
|
+
borderRadius: '8px',
|
|
324
|
+
padding: '20px'
|
|
325
|
+
}}>
|
|
326
|
+
<Table>
|
|
327
|
+
<Table.Head>
|
|
328
|
+
<Table.Tr>
|
|
329
|
+
<Table.Th>Service</Table.Th>
|
|
330
|
+
<Table.Th>Status</Table.Th>
|
|
331
|
+
<Table.Th numeric>Uptime</Table.Th>
|
|
332
|
+
<Table.Th numeric>Response Time</Table.Th>
|
|
333
|
+
<Table.Th>Last Incident</Table.Th>
|
|
334
|
+
</Table.Tr>
|
|
335
|
+
</Table.Head>
|
|
336
|
+
<Table.Body>
|
|
337
|
+
<Table.Tr>
|
|
338
|
+
<Table.Td>
|
|
339
|
+
<Table.Cell>API Gateway</Table.Cell>
|
|
340
|
+
</Table.Td>
|
|
341
|
+
<Table.Td>
|
|
342
|
+
<Table.Cell>🟢 Operational</Table.Cell>
|
|
343
|
+
</Table.Td>
|
|
344
|
+
<Table.Td numeric>
|
|
345
|
+
<Table.Cell>99.99%</Table.Cell>
|
|
346
|
+
</Table.Td>
|
|
347
|
+
<Table.Td numeric>
|
|
348
|
+
<Table.Cell>45ms</Table.Cell>
|
|
349
|
+
</Table.Td>
|
|
350
|
+
<Table.Td>
|
|
351
|
+
<Table.Cell>2024-01-10</Table.Cell>
|
|
352
|
+
</Table.Td>
|
|
353
|
+
</Table.Tr>
|
|
354
|
+
<Table.Tr>
|
|
355
|
+
<Table.Td>
|
|
356
|
+
<Table.Cell>Database</Table.Cell>
|
|
357
|
+
</Table.Td>
|
|
358
|
+
<Table.Td>
|
|
359
|
+
<Table.Cell>🟡 Degraded</Table.Cell>
|
|
360
|
+
</Table.Td>
|
|
361
|
+
<Table.Td numeric>
|
|
362
|
+
<Table.Cell>99.85%</Table.Cell>
|
|
363
|
+
</Table.Td>
|
|
364
|
+
<Table.Td numeric>
|
|
365
|
+
<Table.Cell>120ms</Table.Cell>
|
|
366
|
+
</Table.Td>
|
|
367
|
+
<Table.Td>
|
|
368
|
+
<Table.Cell>2024-01-15</Table.Cell>
|
|
369
|
+
</Table.Td>
|
|
370
|
+
</Table.Tr>
|
|
371
|
+
<Table.Tr>
|
|
372
|
+
<Table.Td>
|
|
373
|
+
<Table.Cell>CDN</Table.Cell>
|
|
374
|
+
</Table.Td>
|
|
375
|
+
<Table.Td>
|
|
376
|
+
<Table.Cell>🟢 Operational</Table.Cell>
|
|
377
|
+
</Table.Td>
|
|
378
|
+
<Table.Td numeric>
|
|
379
|
+
<Table.Cell>99.98%</Table.Cell>
|
|
380
|
+
</Table.Td>
|
|
381
|
+
<Table.Td numeric>
|
|
382
|
+
<Table.Cell>25ms</Table.Cell>
|
|
383
|
+
</Table.Td>
|
|
384
|
+
<Table.Td>
|
|
385
|
+
<Table.Cell>2024-01-08</Table.Cell>
|
|
386
|
+
</Table.Td>
|
|
387
|
+
</Table.Tr>
|
|
388
|
+
</Table.Body>
|
|
389
|
+
</Table>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
|
|
393
|
+
<div style={{
|
|
394
|
+
marginBottom: '40px'
|
|
395
|
+
}}>
|
|
396
|
+
<h2>User Management</h2>
|
|
397
|
+
<p>Tables are perfect for displaying user lists and management interfaces.</p>
|
|
398
|
+
<div style={{
|
|
399
|
+
background: 'var(--xyd-bgcolor)',
|
|
400
|
+
border: '1px solid var(--xyd-border-color)',
|
|
401
|
+
borderRadius: '8px',
|
|
402
|
+
padding: '20px'
|
|
403
|
+
}}>
|
|
404
|
+
<Table>
|
|
405
|
+
<Table.Head>
|
|
406
|
+
<Table.Tr>
|
|
407
|
+
<Table.Th>User</Table.Th>
|
|
408
|
+
<Table.Th>Role</Table.Th>
|
|
409
|
+
<Table.Th>Status</Table.Th>
|
|
410
|
+
<Table.Th numeric>Last Login</Table.Th>
|
|
411
|
+
<Table.Th numeric>Actions</Table.Th>
|
|
412
|
+
</Table.Tr>
|
|
413
|
+
</Table.Head>
|
|
414
|
+
<Table.Body>
|
|
415
|
+
<Table.Tr>
|
|
416
|
+
<Table.Td>
|
|
417
|
+
<Table.Cell>john.doe@company.com</Table.Cell>
|
|
418
|
+
</Table.Td>
|
|
419
|
+
<Table.Td>
|
|
420
|
+
<Table.Cell>Admin</Table.Cell>
|
|
421
|
+
</Table.Td>
|
|
422
|
+
<Table.Td>
|
|
423
|
+
<Table.Cell>🟢 Active</Table.Cell>
|
|
424
|
+
</Table.Td>
|
|
425
|
+
<Table.Td numeric>
|
|
426
|
+
<Table.Cell>2 hours ago</Table.Cell>
|
|
427
|
+
</Table.Td>
|
|
428
|
+
<Table.Td numeric>
|
|
429
|
+
<Table.Cell>Edit | Delete</Table.Cell>
|
|
430
|
+
</Table.Td>
|
|
431
|
+
</Table.Tr>
|
|
432
|
+
<Table.Tr>
|
|
433
|
+
<Table.Td>
|
|
434
|
+
<Table.Cell>jane.smith@company.com</Table.Cell>
|
|
435
|
+
</Table.Td>
|
|
436
|
+
<Table.Td>
|
|
437
|
+
<Table.Cell>User</Table.Cell>
|
|
438
|
+
</Table.Td>
|
|
439
|
+
<Table.Td>
|
|
440
|
+
<Table.Cell>🟡 Pending</Table.Cell>
|
|
441
|
+
</Table.Td>
|
|
442
|
+
<Table.Td numeric>
|
|
443
|
+
<Table.Cell>Never</Table.Cell>
|
|
444
|
+
</Table.Td>
|
|
445
|
+
<Table.Td numeric>
|
|
446
|
+
<Table.Cell>Edit | Delete</Table.Cell>
|
|
447
|
+
</Table.Td>
|
|
448
|
+
</Table.Tr>
|
|
449
|
+
<Table.Tr>
|
|
450
|
+
<Table.Td>
|
|
451
|
+
<Table.Cell>bob.wilson@company.com</Table.Cell>
|
|
452
|
+
</Table.Td>
|
|
453
|
+
<Table.Td>
|
|
454
|
+
<Table.Cell>Manager</Table.Cell>
|
|
455
|
+
</Table.Td>
|
|
456
|
+
<Table.Td>
|
|
457
|
+
<Table.Cell>🟢 Active</Table.Cell>
|
|
458
|
+
</Table.Td>
|
|
459
|
+
<Table.Td numeric>
|
|
460
|
+
<Table.Cell>1 day ago</Table.Cell>
|
|
461
|
+
</Table.Td>
|
|
462
|
+
<Table.Td numeric>
|
|
463
|
+
<Table.Cell>Edit | Delete</Table.Cell>
|
|
464
|
+
</Table.Td>
|
|
465
|
+
</Table.Tr>
|
|
466
|
+
</Table.Body>
|
|
467
|
+
</Table>
|
|
468
|
+
</div>
|
|
469
|
+
</div>
|
|
470
|
+
</div>,
|
|
471
|
+
parameters: {
|
|
472
|
+
docs: {
|
|
473
|
+
description: {
|
|
474
|
+
story: 'This example shows how tables are typically used in real applications for data display.'
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}`,...d.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
479
|
+
render: () => <div style={{
|
|
480
|
+
padding: '20px'
|
|
481
|
+
}}>
|
|
482
|
+
<div style={{
|
|
483
|
+
background: 'var(--xyd-bgcolor)',
|
|
484
|
+
border: '1px solid var(--xyd-border-color)',
|
|
485
|
+
borderRadius: '8px',
|
|
486
|
+
padding: '20px',
|
|
487
|
+
marginBottom: '20px'
|
|
488
|
+
}}>
|
|
489
|
+
<h3 style={{
|
|
490
|
+
marginBottom: '16px'
|
|
491
|
+
}}>Table Component Demo</h3>
|
|
492
|
+
<p style={{
|
|
493
|
+
marginBottom: '16px',
|
|
494
|
+
color: 'var(--xyd-text-color)'
|
|
495
|
+
}}>
|
|
496
|
+
This example demonstrates the Table component with various cell types and data formats.
|
|
497
|
+
</p>
|
|
498
|
+
<Table>
|
|
499
|
+
<Table.Head>
|
|
500
|
+
<Table.Tr>
|
|
501
|
+
<Table.Th>Component</Table.Th>
|
|
502
|
+
<Table.Th>Type</Table.Th>
|
|
503
|
+
<Table.Th numeric>Complexity</Table.Th>
|
|
504
|
+
<Table.Th>Status</Table.Th>
|
|
505
|
+
</Table.Tr>
|
|
506
|
+
</Table.Head>
|
|
507
|
+
<Table.Body>
|
|
508
|
+
<Table.Tr>
|
|
509
|
+
<Table.Td>
|
|
510
|
+
<Table.Cell>Button</Table.Cell>
|
|
511
|
+
</Table.Td>
|
|
512
|
+
<Table.Td>
|
|
513
|
+
<Table.Cell>Interactive</Table.Cell>
|
|
514
|
+
</Table.Td>
|
|
515
|
+
<Table.Td numeric>
|
|
516
|
+
<Table.Cell>Low</Table.Cell>
|
|
517
|
+
</Table.Td>
|
|
518
|
+
<Table.Td>
|
|
519
|
+
<Table.Cell>✅ Complete</Table.Cell>
|
|
520
|
+
</Table.Td>
|
|
521
|
+
</Table.Tr>
|
|
522
|
+
<Table.Tr>
|
|
523
|
+
<Table.Td>
|
|
524
|
+
<Table.Cell>Table</Table.Cell>
|
|
525
|
+
</Table.Td>
|
|
526
|
+
<Table.Td>
|
|
527
|
+
<Table.Cell>Data Display</Table.Cell>
|
|
528
|
+
</Table.Td>
|
|
529
|
+
<Table.Td numeric>
|
|
530
|
+
<Table.Cell>Medium</Table.Cell>
|
|
531
|
+
</Table.Td>
|
|
532
|
+
<Table.Td>
|
|
533
|
+
<Table.Cell>🔄 In Progress</Table.Cell>
|
|
534
|
+
</Table.Td>
|
|
535
|
+
</Table.Tr>
|
|
536
|
+
<Table.Tr>
|
|
537
|
+
<Table.Td>
|
|
538
|
+
<Table.Cell>Steps</Table.Cell>
|
|
539
|
+
</Table.Td>
|
|
540
|
+
<Table.Td>
|
|
541
|
+
<Table.Cell>Navigation</Table.Cell>
|
|
542
|
+
</Table.Td>
|
|
543
|
+
<Table.Td numeric>
|
|
544
|
+
<Table.Cell>Low</Table.Cell>
|
|
545
|
+
</Table.Td>
|
|
546
|
+
<Table.Td>
|
|
547
|
+
<Table.Cell>✅ Complete</Table.Cell>
|
|
548
|
+
</Table.Td>
|
|
549
|
+
</Table.Tr>
|
|
550
|
+
</Table.Body>
|
|
551
|
+
</Table>
|
|
552
|
+
</div>
|
|
553
|
+
|
|
554
|
+
<div style={{
|
|
555
|
+
background: 'var(--xyd-bgcolor)',
|
|
556
|
+
border: '1px solid var(--xyd-border-color)',
|
|
557
|
+
borderRadius: '8px',
|
|
558
|
+
padding: '20px'
|
|
559
|
+
}}>
|
|
560
|
+
<h4 style={{
|
|
561
|
+
marginBottom: '12px'
|
|
562
|
+
}}>Features</h4>
|
|
563
|
+
<ul style={{
|
|
564
|
+
color: 'var(--xyd-text-color)'
|
|
565
|
+
}}>
|
|
566
|
+
<li>Structured data display</li>
|
|
567
|
+
<li>Numeric cell alignment</li>
|
|
568
|
+
<li>Muted cell styling</li>
|
|
569
|
+
<li>Responsive design</li>
|
|
570
|
+
<li>Accessible markup</li>
|
|
571
|
+
</ul>
|
|
572
|
+
</div>
|
|
573
|
+
</div>,
|
|
574
|
+
parameters: {
|
|
575
|
+
docs: {
|
|
576
|
+
description: {
|
|
577
|
+
story: 'This interactive example demonstrates the Table component functionality and styling.'
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}`,...i.parameters?.docs?.source}}};const p=["Default","MultipleRows","DifferentDataTypes","LongContent","RealWorldExamples","Interactive"];export{n as Default,r as DifferentDataTypes,i as Interactive,a as LongContent,T as MultipleRows,d as RealWorldExamples,p as __namedExportsOrder,j as default};
|