@xyd-js/storybook 0.0.1-xyd.6 → 0.0.1-xyd.63
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 +8 -9
- package/.storybook/preview.ts +1 -3
- package/.storybook/styles.css +0 -5
- package/CHANGELOG.md +702 -0
- package/LICENSE +21 -0
- package/package.json +18 -15
- package/src/__fixtures__/atlas-index/package-index.mdx +194 -0
- package/src/{content → __fixtures__}/atlas-index/wip1.mdx +3 -3
- package/src/__fixtures__/example-source-uniform.ts +41 -0
- package/src/{content → __fixtures__}/hello-world.mdx +1 -1
- package/src/components/{DemoWireframe.tsx → DemoDocs.tsx} +1 -1
- package/src/decorators/DocsTemplate.tsx +23 -0
- package/src/docs/atlas/Atlas.stories.tsx +27 -18
- package/src/docs/components/coder/CodeSample.stories.tsx +6 -3
- package/src/docs/components/writer/Badge.stories.tsx +15 -40
- package/src/docs/components/writer/GuideCard.stories.tsx +2 -3
- package/src/docs/components/writer/Table.stories.tsx +22 -58
- package/src/docs/components/writer/Tabs.stories.tsx +55 -0
- package/src/docs/components/writer/TocCard.stories.tsx +30 -0
- package/src/docs/components/writer/UnderlineNav.stories.tsx +114 -0
- package/src/docs/components/writer/Update.stories.tsx +91 -0
- package/src/docs/components/writer/VideoGuide.stories.tsx +17 -0
- package/src/docs/themes/TODO.md +1 -0
- package/src/docs/themes/themes-designsystem.stories.tsx +3 -2
- package/src/docs/themes/themes.stories.tsx +6 -2
- package/src/docs/ui/Sidebar.stories.tsx +8 -2
- package/storybook-static/assets/Atlas.stories-DsQbLsBO.js +153 -0
- package/storybook-static/assets/Badge.stories-BB25VaXB.js +6 -0
- package/storybook-static/assets/Breadcrumbs.stories-8dY-0FZ6.js +21 -0
- package/storybook-static/assets/{Button.stories-zZz68Dp3.js → Button.stories-Ct9tcWxH.js} +1 -1
- package/storybook-static/assets/CTABanner-SOi-EjNb-1gNhmGHe.js +4 -0
- package/storybook-static/assets/{CTABanner.stories-CCWd5nXl.js → CTABanner.stories-B5jWAOv9.js} +1 -1
- package/storybook-static/assets/Callout.stories-DYh3dp1V.js +16 -0
- package/storybook-static/assets/CodeSample.stories-DdqAV6pE.js +22 -0
- package/storybook-static/assets/{CodeSample.stories-npLtCIKw.js → CodeSample.stories-R6WeHzql.js} +1 -1
- package/storybook-static/assets/Color-YHDXOIA2-BLLMp-rk.js +1 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-iREIpqZs.js +575 -0
- package/storybook-static/assets/{GuideCard.stories-CtHzplO6.js → GuideCard.stories-DlOupG-0.js} +2 -2
- package/storybook-static/assets/Heading.stories-CTPUxGQU.js +40 -0
- package/storybook-static/assets/Icons-CaV53C2x.js +1 -0
- package/storybook-static/assets/Nav.stories-DOdsEXEe.js +13 -0
- package/storybook-static/assets/NavLinks.stories-ChboVW3X.js +19 -0
- package/storybook-static/assets/Pre.stories-BiOV0Oe6.js +11 -0
- package/storybook-static/assets/Sidebar.stories-DkscgzB6.js +9 -0
- package/storybook-static/assets/Steps.stories-DdgI2muz.js +16 -0
- package/storybook-static/assets/SubNav.stories-gbx99ZSe.js +19 -0
- package/storybook-static/assets/Table.stories-_JY94lJp.js +38 -0
- package/storybook-static/assets/Tabs.stories-C91xYkjj.js +42 -0
- package/storybook-static/assets/TocCard.stories-3Hrq8ntN.js +7 -0
- package/storybook-static/assets/UnderlineNav.stories-D44nShoc.js +96 -0
- package/storybook-static/assets/Update-DvGnbDKn-BxY7KlqE.js +33 -0
- package/storybook-static/assets/Update.stories-DXMAnZ21.js +56 -0
- package/storybook-static/assets/VideoGuide.stories-w76_6bQA.js +3 -0
- package/storybook-static/assets/__vite-browser-external-FmFgRqLi.js +1 -0
- package/storybook-static/assets/_rollupPluginBabelHelpers-DK3gn7J7-CY8sTQTJ.js +4 -0
- package/storybook-static/assets/{copy-DNsBvoDT.js → browser.esm-BBxEv_2n.js} +12 -12
- package/storybook-static/assets/chunk-NL6KNZEE-BC1iDMSp.js +3 -0
- package/storybook-static/assets/content-Cgm3P2iF.js +8 -0
- package/storybook-static/assets/{entry-preview-p5a0L45N.js → entry-preview-XrF1hMc_.js} +2 -2
- package/storybook-static/assets/{entry-preview-docs-D4yhrvjB.js → entry-preview-docs-CxQPtM_Y.js} +1 -1
- package/storybook-static/assets/iframe-B8sZbN7f.js +211 -0
- package/storybook-static/assets/{index-Ci6h_Amb.js → index-Bd6o6BX5.js} +2 -2
- package/storybook-static/assets/index-BsiG4v0x.js +3 -0
- package/storybook-static/assets/index-CXQShRbs.js +8 -0
- package/storybook-static/assets/index-CXwkSlW-.js +1 -0
- package/storybook-static/assets/index-CzKwSnp0.js +9 -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-C3_PYvTT.js → index-H0MBf5rE.js} +1 -1
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
- package/storybook-static/assets/layouts-Bfh4ZDPm.js +1 -0
- package/storybook-static/assets/preview-CoBvlzsX.css +1 -0
- package/storybook-static/assets/preview-CxgX81oj.js +2 -0
- package/storybook-static/assets/{preview-ik5anPOD.js → preview-N1j9pG9L.js} +1 -1
- package/storybook-static/assets/react-18-Tf4JhPOR.js +25 -0
- package/storybook-static/assets/test-utils-BaXAOqRT.js +9 -0
- package/storybook-static/assets/themes-designsystem.stories-Do8f936h.js +11 -0
- package/storybook-static/assets/themes.stories-By9PFakX.js +41 -0
- package/storybook-static/assets/writer-ia0ggDZA.js +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +15 -15
- package/storybook-static/sb-addons/docs-12/manager-bundle.js +34 -34
- package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +8 -8
- package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js +8 -8
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-11/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/links-2/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +5 -5
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +1 -1
- package/storybook-static/sb-manager/globals-module-info.js +1 -0
- package/storybook-static/sb-manager/globals-runtime.js +10372 -9836
- package/storybook-static/sb-manager/runtime.js +119 -119
- package/tsconfig.json +17 -0
- package/vite.config.ts +1 -1
- package/src/content/atlas-index/package-index.mdx +0 -192
- package/src/docs/atlas/AtlasIndex.stories.tsx +0 -130
- package/storybook-static/assets/Atlas.stories-DeK56mng.js +0 -252
- package/storybook-static/assets/AtlasIndex.stories-CgaI1jRb.js +0 -41
- package/storybook-static/assets/Badge.stories-DZifzirN.js +0 -31
- package/storybook-static/assets/Breadcrumbs.stories-vunfoj7H.js +0 -21
- package/storybook-static/assets/CTABanner-wB-mvAxd-DwYWZ4fP.js +0 -4
- package/storybook-static/assets/Callout.stories-BZSlwnWD.js +0 -16
- package/storybook-static/assets/CodeSample-DB1D3F7N-C5AHaCBx-D2i_bX1Z.js +0 -9
- package/storybook-static/assets/CodeSample.stories-Zju_BViQ.js +0 -22
- package/storybook-static/assets/Color-YHDXOIA2-DEwwEJF5.js +0 -1
- package/storybook-static/assets/DocsRenderer-CFRXHY34-BnbD8jil.js +0 -575
- package/storybook-static/assets/Heading.stories-hOIiOtGj.js +0 -40
- package/storybook-static/assets/Nav.stories-DDu5T02Y.js +0 -13
- package/storybook-static/assets/NavLinks.stories-C-m4jsZG.js +0 -19
- package/storybook-static/assets/Pre.stories-Cx3Xp7p5.js +0 -11
- package/storybook-static/assets/Sidebar.stories-5uZaQT9P.js +0 -9
- package/storybook-static/assets/Steps.stories-CroVYyMk.js +0 -16
- package/storybook-static/assets/SubNav.stories-DH8b0a7D.js +0 -19
- package/storybook-static/assets/Table.stories-DH33FA7O.js +0 -72
- package/storybook-static/assets/UnderlineNav-CdHpxTEt-DnGwWXeI.js +0 -46
- package/storybook-static/assets/_rollupPluginBabelHelpers-BsWmI4nf-CerVq3GU.js +0 -4
- package/storybook-static/assets/chevron-right-MQoc73cD.js +0 -31
- package/storybook-static/assets/chunk-K6AXKMTT-CzEIZnfC.js +0 -12
- package/storybook-static/assets/content-C3X0CWsZ.js +0 -22
- package/storybook-static/assets/iframe-5hRm0uzd.js +0 -211
- package/storybook-static/assets/index-BPIV5q2-.js +0 -18
- package/storybook-static/assets/index-BdGwgT04.js +0 -9
- package/storybook-static/assets/index-C7VnYWJ0.js +0 -9
- package/storybook-static/assets/index-CGqnQ2T-.js +0 -8
- package/storybook-static/assets/index-DXayMMq-.js +0 -1
- package/storybook-static/assets/jsx-runtime-BjG_zV1W.js +0 -9
- package/storybook-static/assets/layouts-CkIqr4wb.js +0 -32
- package/storybook-static/assets/preview-BYe-pB8z.js +0 -2
- package/storybook-static/assets/preview-BaYfXIWh.css +0 -1
- package/storybook-static/assets/react-18-DQs0uuxx.js +0 -25
- package/storybook-static/assets/test-utils-Di69x3Vj.js +0 -9
- package/storybook-static/assets/themes-designsystem.stories-CYUUtSoI.js +0 -11
- package/storybook-static/assets/themes.stories-lpuIOBo2.js +0 -41
- package/storybook-static/assets/writer-B4lgk2fa.js +0 -4
- /package/src/{content → __fixtures__}/Icons.tsx +0 -0
- /package/src/{content → __fixtures__}/atlas-index.mdx +0 -0
- /package/src/{content → __fixtures__}/code-sample.mdx +0 -0
- /package/storybook-static/assets/{preview-BvcEG2BB.js → preview-BNQ06L9w.js} +0 -0
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import React, {useState, useEffect} from 'react';
|
|
2
|
-
import type {Meta} from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
import {Reference} from '@xyd-js/uniform';
|
|
5
|
-
import {
|
|
6
|
-
CodeSample,
|
|
7
|
-
} from '@xyd-js/components/coder';
|
|
8
|
-
import {
|
|
9
|
-
TableV2
|
|
10
|
-
} from "@xyd-js/components/writer";
|
|
11
|
-
import {LayoutPrimary} from "@xyd-js/components/layouts";
|
|
12
|
-
import getContentComponents from "@xyd-js/components/content"
|
|
13
|
-
import {AtlasIndex} from "@xyd-js/atlas/atlas-index"
|
|
14
|
-
|
|
15
|
-
import PackageIndexWip1Content from "../../content/atlas-index/wip1.mdx"
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
DemoNavbar,
|
|
19
|
-
DemoSubNav,
|
|
20
|
-
DemoSidebar,
|
|
21
|
-
DemoContent,
|
|
22
|
-
DemoTOC
|
|
23
|
-
} from "../../components/DemoWireframe";
|
|
24
|
-
|
|
25
|
-
export default {
|
|
26
|
-
title: 'Atlas/AtlasIndex',
|
|
27
|
-
component: AtlasIndex,
|
|
28
|
-
} as Meta;
|
|
29
|
-
|
|
30
|
-
const contentComponents = getContentComponents()
|
|
31
|
-
|
|
32
|
-
const Content = {
|
|
33
|
-
Text: contentComponents.p,
|
|
34
|
-
Details: contentComponents.Details,
|
|
35
|
-
IconQuote: contentComponents.IconQuote,
|
|
36
|
-
Code: contentComponents.code,
|
|
37
|
-
Heading1: contentComponents.h1,
|
|
38
|
-
Heading2: contentComponents.h2,
|
|
39
|
-
Container: contentComponents.Content,
|
|
40
|
-
CodeSample: contentComponents.CodeSample
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const Default = () => {
|
|
44
|
-
return <LayoutPrimary
|
|
45
|
-
header={<DemoNavbar/>}
|
|
46
|
-
subheader={<DemoSubNav/>}
|
|
47
|
-
aside={<DemoSidebar/>}
|
|
48
|
-
content={<>
|
|
49
|
-
{/*<FakeContent/>*/}
|
|
50
|
-
<AtlasIndex data={exampleUniform}/>
|
|
51
|
-
</>}
|
|
52
|
-
contentNav={<DemoTOC/>}
|
|
53
|
-
layoutSize="large"
|
|
54
|
-
/>
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function FakeContent() {
|
|
58
|
-
return <DemoContent breadcrumbs={false}>
|
|
59
|
-
{<PackageIndexWip1Content components={{
|
|
60
|
-
...contentComponents,
|
|
61
|
-
pre: Pre,
|
|
62
|
-
TableV2
|
|
63
|
-
}}/>}
|
|
64
|
-
</DemoContent>
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function Pre({children, ...rest}: { children: React.ReactNode }) {
|
|
68
|
-
const codeElement = children as any
|
|
69
|
-
if (!children) {
|
|
70
|
-
return null
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const {className, children: codeChildren} = codeElement.props;
|
|
74
|
-
const language = className?.replace('language-', '') || '';
|
|
75
|
-
const codeContent = codeChildren || '';
|
|
76
|
-
|
|
77
|
-
return <CodeSample
|
|
78
|
-
name={language}
|
|
79
|
-
description={""}
|
|
80
|
-
codeblocks={[
|
|
81
|
-
{
|
|
82
|
-
value: codeContent,
|
|
83
|
-
lang: language,
|
|
84
|
-
meta: language,
|
|
85
|
-
}
|
|
86
|
-
]}
|
|
87
|
-
size="full"
|
|
88
|
-
kind="secondary"
|
|
89
|
-
/>
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const exampleUniform = {
|
|
93
|
-
"title": "Function gqlSchemaToReferences",
|
|
94
|
-
"canonical": "fn-gqlSchemaToReferences",
|
|
95
|
-
"description": "Converts a GraphQL schema file to references.\n",
|
|
96
|
-
"context": {
|
|
97
|
-
"fileName": "index.ts",
|
|
98
|
-
"fileFullPath": "src/index.ts",
|
|
99
|
-
"line": 48,
|
|
100
|
-
"col": 16,
|
|
101
|
-
"signatureText": "export function gqlSchemaToReferences(schemaLocation: string): Promise<[\n]>;",
|
|
102
|
-
"sourcecode": "export function gqlSchemaToReferences(\n schemaLocation: string\n): Promise<[]> {\n if (schemaLocation.endsWith(\".graphql\")) {\n return Promise.resolve([])\n }\n\n return Promise.resolve([])\n}",
|
|
103
|
-
"package": "@xyd-sources-examples/package-a"
|
|
104
|
-
},
|
|
105
|
-
"examples": {
|
|
106
|
-
"groups": []
|
|
107
|
-
},
|
|
108
|
-
"definitions": [
|
|
109
|
-
{
|
|
110
|
-
"title": "Returns",
|
|
111
|
-
"properties": [
|
|
112
|
-
{
|
|
113
|
-
"name": "",
|
|
114
|
-
"type": "<Promise>",
|
|
115
|
-
"description": "references\n"
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"title": "Parameters",
|
|
121
|
-
"properties": [
|
|
122
|
-
{
|
|
123
|
-
"name": "schemaLocation",
|
|
124
|
-
"type": "string",
|
|
125
|
-
"description": "The location of the schema file.\n"
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
} as Reference
|