Move stuff around in external-docs

This commit is contained in:
Tom Coleman 2022-04-04 17:19:20 +10:00
parent 14fb90c1fc
commit 8d49c86e05
12 changed files with 342 additions and 16 deletions

View File

@ -3,13 +3,14 @@
"version": "6.5.0-alpha.51",
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c src/.storybook",
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./src/.storybook",
"debug": "cross-env NODE_OPTIONS=--inspect-brk STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011",
"sb": "node ../../lib/cli/bin/index.js",
"start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 --no-manager-cache -c src/.storybook"
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 --no-manager-cache -c ./src/.storybook"
},
"dependencies": {
"@storybook/addon-essentials": "6.5.0-alpha.51",
"@storybook/components": "6.5.0-alpha.51",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/preview-web": "6.5.0-alpha.51",

View File

@ -3,17 +3,12 @@ import type { StorybookConfig } from '@storybook/react/types';
const config: StorybookConfig = {
stories: [
{
directory: '../src',
directory: '../components',
titlePrefix: 'Demo',
},
],
logLevel: 'debug',
addons: [
'@storybook/addon-essentials',
'@storybook/addon-storysource',
'@storybook/addon-storyshots',
'@storybook/addon-a11y',
],
addons: ['@storybook/addon-essentials'],
typescript: {
check: true,
checkOptions: {},

View File

@ -1,7 +1,7 @@
import React from 'react';
import { DocsProvider, Meta, Story } from './blocks';
import meta, { Standard } from './AccountForm.stories';
import meta, { Standard } from './components/AccountForm.stories';
export default () => (
<DocsProvider>

View File

@ -1,8 +1,8 @@
import React from 'react';
import { DocsProvider, Meta, Story } from './blocks';
import meta, { WithArgs, Basic } from './button.stories';
import EmojiMeta, { WithArgs as EmojiWithArgs } from './emoji-button.stories';
import meta, { WithArgs, Basic } from './components/button.stories';
import EmojiMeta, { WithArgs as EmojiWithArgs } from './components/emoji-button.stories';
export default () => (
<DocsProvider>

View File

@ -20,8 +20,5 @@
"isolatedModules": true,
"noEmit": true
},
"include": [
"src/*",
"src/.storybook/main.ts"
]
"include": [ "src/*"]
}

333
yarn.lock
View File

@ -6244,6 +6244,40 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-actions@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-actions@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/core-events": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.507502b.0
"@storybook/theming": 6.5.0-alpha.51
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
global: ^4.4.0
lodash: ^4.17.21
polished: ^4.0.5
prop-types: ^15.7.2
react-inspector: ^5.1.0
regenerator-runtime: ^0.13.7
telejson: ^5.3.3
ts-dedent: ^2.0.0
util-deprecate: ^1.0.2
uuid-browser: ^3.1.0
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: f631ba6e4ea4434eca1bc9a1a223a2eb668b908956fe057ce250f9f1b8cf7612097a4ebe0cfa3e830d01ae66723eba715250487f006ff12c2521c4cad99277a4
languageName: node
linkType: hard
"@storybook/addon-backgrounds@6.5.0-alpha.55, @storybook/addon-backgrounds@workspace:*, @storybook/addon-backgrounds@workspace:addons/backgrounds":
version: 0.0.0-use.local
resolution: "@storybook/addon-backgrounds@workspace:addons/backgrounds"
@ -6273,6 +6307,35 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-backgrounds@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-backgrounds@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/client-logger": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/core-events": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.507502b.0
"@storybook/theming": 6.5.0-alpha.51
core-js: ^3.8.2
global: ^4.4.0
memoizerific: ^1.11.3
regenerator-runtime: ^0.13.7
ts-dedent: ^2.0.0
util-deprecate: ^1.0.2
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: 29102c3f1c4c104b024fcb79390ef9b1f94b86e89dedc22bb17d0c3e3ba47989fb86992daeb0ab3af8166f18d9dd1a5b8e13ecd02f6edb909ed0d85986665afd
languageName: node
linkType: hard
"@storybook/addon-controls@6.5.0-alpha.55, @storybook/addon-controls@workspace:*, @storybook/addon-controls@workspace:addons/controls":
version: 0.0.0-use.local
resolution: "@storybook/addon-controls@workspace:addons/controls"
@ -6300,6 +6363,34 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-controls@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-controls@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/client-logger": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/core-common": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.507502b.0
"@storybook/node-logger": 6.5.0-alpha.51
"@storybook/store": 6.5.0-alpha.51
"@storybook/theming": 6.5.0-alpha.51
core-js: ^3.8.2
lodash: ^4.17.21
ts-dedent: ^2.0.0
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: 0d8cabc6a3102e5db0876e1add27ef8b9471c4529e2e79c323c5adcf18c743d39c8f4b522872ce70dc6bdb7342d0531596ef69b7a474017e37390d0892166cf7
languageName: node
linkType: hard
"@storybook/addon-docs@6.5.0-alpha.55, @storybook/addon-docs@workspace:*, @storybook/addon-docs@workspace:addons/docs":
version: 0.0.0-use.local
resolution: "@storybook/addon-docs@workspace:addons/docs"
@ -6349,6 +6440,58 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-docs@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-docs@npm:6.5.0-alpha.51"
dependencies:
"@babel/plugin-transform-react-jsx": ^7.12.12
"@babel/preset-env": ^7.12.11
"@jest/transform": ^26.6.2
"@mdx-js/react": ^1.6.22
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/core-common": 6.5.0-alpha.51
"@storybook/core-events": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.507502b.0
"@storybook/docs-tools": 6.5.0-alpha.51
"@storybook/mdx1-csf": canary
"@storybook/node-logger": 6.5.0-alpha.51
"@storybook/postinstall": 6.5.0-alpha.51
"@storybook/preview-web": 6.5.0-alpha.51
"@storybook/source-loader": 6.5.0-alpha.51
"@storybook/store": 6.5.0-alpha.51
"@storybook/theming": 6.5.0-alpha.51
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
global: ^4.4.0
lodash: ^4.17.21
remark-external-links: ^8.0.0
remark-slug: ^6.0.0
ts-dedent: ^2.0.0
util-deprecate: ^1.0.2
peerDependencies:
"@storybook/mdx2-csf": "*"
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
webpack: "*"
peerDependenciesMeta:
"@storybook/builder-webpack4":
optional: true
"@storybook/builder-webpack5":
optional: true
"@storybook/mdx2-csf":
optional: true
react:
optional: true
react-dom:
optional: true
webpack:
optional: true
checksum: cf32e04bb5b6b8291aed61fba229f81e5186750e6e493f1b58f515bfae31f6ea728a29f267c1ec4653a8e1cb826a3f21f3bbbefc4a02143bc37c336a5467d6ed
languageName: node
linkType: hard
"@storybook/addon-essentials@6.5.0-alpha.55, @storybook/addon-essentials@workspace:*, @storybook/addon-essentials@workspace:addons/essentials":
version: 0.0.0-use.local
resolution: "@storybook/addon-essentials@workspace:addons/essentials"
@ -6412,6 +6555,66 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-essentials@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-essentials@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addon-actions": 6.5.0-alpha.51
"@storybook/addon-backgrounds": 6.5.0-alpha.51
"@storybook/addon-controls": 6.5.0-alpha.51
"@storybook/addon-docs": 6.5.0-alpha.51
"@storybook/addon-measure": 6.5.0-alpha.51
"@storybook/addon-outline": 6.5.0-alpha.51
"@storybook/addon-toolbars": 6.5.0-alpha.51
"@storybook/addon-viewport": 6.5.0-alpha.51
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/core-common": 6.5.0-alpha.51
"@storybook/node-logger": 6.5.0-alpha.51
core-js: ^3.8.2
regenerator-runtime: ^0.13.7
ts-dedent: ^2.0.0
peerDependencies:
"@babel/core": ^7.9.6
peerDependenciesMeta:
"@storybook/angular":
optional: true
"@storybook/builder-manager4":
optional: true
"@storybook/builder-manager5":
optional: true
"@storybook/builder-webpack4":
optional: true
"@storybook/builder-webpack5":
optional: true
"@storybook/html":
optional: true
"@storybook/vue":
optional: true
"@storybook/vue3":
optional: true
"@storybook/web-components":
optional: true
lit:
optional: true
lit-html:
optional: true
react:
optional: true
react-dom:
optional: true
svelte:
optional: true
sveltedoc-parser:
optional: true
vue:
optional: true
webpack:
optional: true
checksum: 49161fdb9b6bcc2a780a49e8414337c1256e94d87f36ce8efb42cf0ba6f56a49afdb9285e220ffa0f657962b3115718ffbfa2079eea19944c05b6263f6722ebe
languageName: node
linkType: hard
"@storybook/addon-ie11@npm:0.0.7--canary.5e87b64.0":
version: 0.0.7--canary.5e87b64.0
resolution: "@storybook/addon-ie11@npm:0.0.7--canary.5e87b64.0"
@ -6540,6 +6743,30 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-measure@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-measure@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/client-logger": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/core-events": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.507502b.0
core-js: ^3.8.2
global: ^4.4.0
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: bc671d83c5536d7636d5ae146234fc91589b9260718b806c8a163afca3a85df191a365a223c7a635968554b2fd536f0f86771bd5d5c450741ccd706b4d421024
languageName: node
linkType: hard
"@storybook/addon-outline@6.5.0-alpha.55, @storybook/addon-outline@workspace:*, @storybook/addon-outline@workspace:addons/outline":
version: 0.0.0-use.local
resolution: "@storybook/addon-outline@workspace:addons/outline"
@ -6566,6 +6793,32 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-outline@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-outline@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/client-logger": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/core-events": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.507502b.0
core-js: ^3.8.2
global: ^4.4.0
regenerator-runtime: ^0.13.7
ts-dedent: ^2.0.0
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: 5d6c5d795b1f64bd442aa40e0600cb1fb2877f3f58b1ac7ec38734a8a0ae0d84022da3e5c99849a0e7d2f77f1befc0b9a862d5423610bd3fd1a37d895fd56f50
languageName: node
linkType: hard
"@storybook/addon-postcss@npm:^2.0.0":
version: 2.0.0
resolution: "@storybook/addon-postcss@npm:2.0.0"
@ -6743,6 +6996,28 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-toolbars@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-toolbars@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/theming": 6.5.0-alpha.51
core-js: ^3.8.2
regenerator-runtime: ^0.13.7
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: e04bd5b8a8c898cc2feca113cb94b382cf82d1140d6ec9fac8831e253fc6dd5344e85a8729c1eaad564d5a59a6e26cef5bd29682092be7fce797db92fbacf197
languageName: node
linkType: hard
"@storybook/addon-viewport@6.5.0-alpha.55, @storybook/addon-viewport@workspace:*, @storybook/addon-viewport@workspace:addons/viewport":
version: 0.0.0-use.local
resolution: "@storybook/addon-viewport@workspace:addons/viewport"
@ -6769,6 +7044,33 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/addon-viewport@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/addon-viewport@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/api": 6.5.0-alpha.51
"@storybook/client-logger": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/core-events": 6.5.0-alpha.51
"@storybook/theming": 6.5.0-alpha.51
core-js: ^3.8.2
global: ^4.4.0
memoizerific: ^1.11.3
prop-types: ^15.7.2
regenerator-runtime: ^0.13.7
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: 827c34b52451b7a2aa6dedcedad89f61170e55f433cb37b03e03a33aaf16da4d7d497ef118ac84ccd5c08cab2cd294af360174c6117b6b01325a06df75411c59
languageName: node
linkType: hard
"@storybook/addons@6.5.0-alpha.55, @storybook/addons@workspace:*, @storybook/addons@workspace:lib/addons":
version: 0.0.0-use.local
resolution: "@storybook/addons@workspace:lib/addons"
@ -8147,6 +8449,7 @@ __metadata:
"@babel/preset-env": ^7.12.11
"@babel/preset-react": ^7.12.10
"@babel/preset-typescript": ^7.12.7
"@storybook/addon-essentials": 6.5.0-alpha.51
"@storybook/components": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.87bc651.0
"@storybook/preview-web": 6.5.0-alpha.51
@ -8498,6 +8801,15 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/postinstall@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/postinstall@npm:6.5.0-alpha.51"
dependencies:
core-js: ^3.8.2
checksum: daadffafd9ba9e9cd498dc35da2ad2c0bfdac464975fe631727e03420d1b364d832672b4b816156d42ce7f1fff2b3c7446048432f78b086f98afc9e017b63e5f
languageName: node
linkType: hard
"@storybook/preact@6.5.0-alpha.55, @storybook/preact@workspace:*, @storybook/preact@workspace:app/preact":
version: 0.0.0-use.local
resolution: "@storybook/preact@workspace:app/preact"
@ -9134,6 +9446,27 @@ __metadata:
languageName: unknown
linkType: soft
"@storybook/source-loader@npm:6.5.0-alpha.51":
version: 6.5.0-alpha.51
resolution: "@storybook/source-loader@npm:6.5.0-alpha.51"
dependencies:
"@storybook/addons": 6.5.0-alpha.51
"@storybook/client-logger": 6.5.0-alpha.51
"@storybook/csf": 0.0.2--canary.507502b.0
core-js: ^3.8.2
estraverse: ^5.2.0
global: ^4.4.0
loader-utils: ^2.0.0
lodash: ^4.17.21
prettier: ">=2.2.1 <=2.3.0"
regenerator-runtime: ^0.13.7
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
checksum: 7c368a524b0ed289de2e3994d5b24c18353b3ee9f6eece2b35fbc2d997d44f3ce25bd79e61f223b3be88ec4e11adff526a3f425b5db76635277604ca64d4ea06
languageName: node
linkType: hard
"@storybook/store@6.5.0-alpha.55, @storybook/store@workspace:*, @storybook/store@workspace:lib/store":
version: 0.0.0-use.local
resolution: "@storybook/store@workspace:lib/store"