@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
package/.storybook/main.ts
CHANGED
|
@@ -31,7 +31,6 @@ function remarkInjectMeta() { // TODO: move to @xyd-js/content
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
// TODO: get from @xyd-js/content/md but curently error when importing a `content` lib: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/zdunecki/Code/livesession/xyd/node_modules/.pnpm/estree-util-build-jsx@3.0.1/node_modules/estree-walker/package.json
|
|
35
34
|
export function mdCodeGroup() {
|
|
36
35
|
return (tree: any) => {
|
|
37
36
|
visit(tree, 'containerDirective', (node) => {
|
|
@@ -77,11 +76,11 @@ function toPascalCase(str) {
|
|
|
77
76
|
const supportedDirectives = {
|
|
78
77
|
Details: true,
|
|
79
78
|
details: true,
|
|
80
|
-
|
|
79
|
+
Table: true
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
const tableComponents: { [key: string]: boolean } = {
|
|
84
|
-
|
|
83
|
+
Table: true
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
const parseMarkdown = (content: string) => {
|
|
@@ -110,21 +109,21 @@ export function remarkDirectiveWithMarkdown() {
|
|
|
110
109
|
|
|
111
110
|
const jsxNode = {
|
|
112
111
|
type: 'mdxJsxFlowElement',
|
|
113
|
-
name: '
|
|
112
|
+
name: 'Table',
|
|
114
113
|
attributes: [],
|
|
115
114
|
children: [
|
|
116
115
|
{
|
|
117
116
|
type: 'mdxJsxFlowElement',
|
|
118
|
-
name: '
|
|
117
|
+
name: 'Table.Head',
|
|
119
118
|
attributes: [],
|
|
120
119
|
children: [
|
|
121
120
|
{
|
|
122
121
|
type: 'mdxJsxFlowElement',
|
|
123
|
-
name: '
|
|
122
|
+
name: 'Table.Tr',
|
|
124
123
|
attributes: [],
|
|
125
124
|
children: header.map((cell: string) => ({
|
|
126
125
|
type: 'mdxJsxFlowElement',
|
|
127
|
-
name: '
|
|
126
|
+
name: 'Table.Th',
|
|
128
127
|
attributes: [],
|
|
129
128
|
children: parseMarkdown(cell)
|
|
130
129
|
}))
|
|
@@ -133,11 +132,11 @@ export function remarkDirectiveWithMarkdown() {
|
|
|
133
132
|
},
|
|
134
133
|
...rows.map((row: string[]) => ({
|
|
135
134
|
type: 'mdxJsxFlowElement',
|
|
136
|
-
name: '
|
|
135
|
+
name: 'Table.Tr',
|
|
137
136
|
attributes: [],
|
|
138
137
|
children: row.map((cell: string) => ({
|
|
139
138
|
type: 'mdxJsxFlowElement',
|
|
140
|
-
name: '
|
|
139
|
+
name: 'Table.Td',
|
|
141
140
|
attributes: [],
|
|
142
141
|
children: parseMarkdown(cell)
|
|
143
142
|
}))
|
package/.storybook/preview.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type {Preview} from "@storybook/react";
|
|
2
2
|
|
|
3
|
-
import "@xyd-js/
|
|
4
|
-
import "@xyd-js/atlas/tokens.css"
|
|
5
|
-
import "@xyd-js/fable-wiki/theme.css" // TODO: remove in the future but now it imports fonts, and other xyd-js components css
|
|
3
|
+
import "@xyd-js/theme-poetry/index.css" // TODO: in the future configurable themes via UI?
|
|
6
4
|
|
|
7
5
|
import './styles.css'
|
|
8
6
|
|