;
-export const elementActualSize = TemplateElement.bind({});
+export const ElementActualSize = TemplateElement.bind({});
-elementActualSize.args = {
+ElementActualSize.args = {
scale: 1,
children: EXAMPLE_ELEMENT,
};
-export const elementZoomedIn = TemplateElement.bind({});
+export const ElementZoomedIn = TemplateElement.bind({});
-elementZoomedIn.args = {
+ElementZoomedIn.args = {
scale: 0.7,
children: EXAMPLE_ELEMENT,
};
-export const elementZoomedOut = TemplateElement.bind({});
+export const ElementZoomedOut = TemplateElement.bind({});
-elementZoomedOut.args = {
+ElementZoomedOut.args = {
scale: 3,
children: EXAMPLE_ELEMENT,
};
@@ -78,37 +78,37 @@ const TemplateIFrame = (args) => {
);
};
-export const iFrameActualSize = TemplateIFrame.bind({});
+export const IFrameActualSize = TemplateIFrame.bind({});
-iFrameActualSize.args = {
+IFrameActualSize.args = {
scale: 1,
active: true,
};
// The iFrame stories are disabled because useGlobals works in practice
// but, for some reason breaks in the stories for Zoom.iFrame
-iFrameActualSize.parameters = {
+IFrameActualSize.parameters = {
chromatic: { disableSnapshot: true },
};
-export const iFrameZoomedIn = TemplateIFrame.bind({});
+export const IFrameZoomedIn = TemplateIFrame.bind({});
-iFrameZoomedIn.args = {
+IFrameZoomedIn.args = {
scale: 0.7,
active: true,
};
-iFrameZoomedIn.parameters = {
+IFrameZoomedIn.parameters = {
chromatic: { disableSnapshot: true },
};
-export const iFrameZoomedOut = TemplateIFrame.bind({});
+export const IFrameZoomedOut = TemplateIFrame.bind({});
-iFrameZoomedOut.args = {
+IFrameZoomedOut.args = {
scale: 3,
active: true,
};
-iFrameZoomedOut.parameters = {
+IFrameZoomedOut.parameters = {
chromatic: { disableSnapshot: true },
};
diff --git a/lib/components/src/bar/button.stories.tsx b/lib/components/src/bar/button.stories.tsx
index 492e8f4177e2..0475fdae8a64 100644
--- a/lib/components/src/bar/button.stories.tsx
+++ b/lib/components/src/bar/button.stories.tsx
@@ -8,7 +8,7 @@ export default {
title: 'Basics/IconButton',
};
-// eslint-disable-next-line no-underscore-dangle
+/* eslint-disable-next-line no-underscore-dangle */
export const _IconButton = () => (
diff --git a/lib/components/src/blocks/ColorPalette.stories.tsx b/lib/components/src/blocks/ColorPalette.stories.tsx
index 2f3830b98a07..f4c18ac7dd71 100644
--- a/lib/components/src/blocks/ColorPalette.stories.tsx
+++ b/lib/components/src/blocks/ColorPalette.stories.tsx
@@ -6,7 +6,7 @@ export default {
component: ColorPalette,
};
-export const defaultStyle = () => (
+export const DefaultStyle = () => (
Generic error message;
+export const Error = () => Generic error message;
diff --git a/lib/components/src/blocks/IconGallery.stories.tsx b/lib/components/src/blocks/IconGallery.stories.tsx
index 21401a91a9d8..817cc90a9d4a 100644
--- a/lib/components/src/blocks/IconGallery.stories.tsx
+++ b/lib/components/src/blocks/IconGallery.stories.tsx
@@ -8,7 +8,7 @@ export default {
component: IconGallery,
};
-export const defaultStyle = () => (
+export const DefaultStyle = () => (
diff --git a/lib/components/src/blocks/Typeset.stories.tsx b/lib/components/src/blocks/Typeset.stories.tsx
index 9945b12555cd..4653fdf49cb6 100644
--- a/lib/components/src/blocks/Typeset.stories.tsx
+++ b/lib/components/src/blocks/Typeset.stories.tsx
@@ -10,9 +10,9 @@ const fontSizes = ['12px', '14px', '16px', '20px', '24px', '32px', '40px', '48px
const fontWeight = 900;
const fontFamily = 'monospace';
-export const withFontSizes = () => ;
-export const withFontWeight = () => ;
-export const withFontFamily = () => ;
-export const withWeightText = () => (
+export const WithFontSizes = () => ;
+export const WithFontWeight = () => ;
+export const WithFontFamily = () => ;
+export const WithWeightText = () => (
);
diff --git a/lib/components/src/brand/StorybookLogo.stories.tsx b/lib/components/src/brand/StorybookLogo.stories.tsx
index edbf5f1f2a57..57c6e4de6554 100644
--- a/lib/components/src/brand/StorybookLogo.stories.tsx
+++ b/lib/components/src/brand/StorybookLogo.stories.tsx
@@ -7,4 +7,4 @@ export default {
title: 'Basics/Brand/StorybookLogo',
};
-export const normal = () => ;
+export const Normal = () => ;
diff --git a/lib/components/src/placeholder/placeholder.stories.tsx b/lib/components/src/placeholder/placeholder.stories.tsx
index 88e937254e9d..4e2a83d5de43 100644
--- a/lib/components/src/placeholder/placeholder.stories.tsx
+++ b/lib/components/src/placeholder/placeholder.stories.tsx
@@ -8,10 +8,10 @@ export default {
title: 'Basics/Placeholder',
};
-export const singleChild = () => (
+export const SingleChild = () => (
This is a placeholder with single child, it's bolded
);
-export const twoChildren = () => (
+export const TwoChildren = () => (
This has two children, the first bold
diff --git a/lib/components/src/typography/DocumentWrapper.stories.tsx b/lib/components/src/typography/DocumentWrapper.stories.tsx
index 18e7b74c463b..a67b2bc8b293 100644
--- a/lib/components/src/typography/DocumentWrapper.stories.tsx
+++ b/lib/components/src/typography/DocumentWrapper.stories.tsx
@@ -9,13 +9,13 @@ export default {
decorators: [(storyFn: any) => {storyFn()}
],
};
-export const withMarkdown = () => (
+export const WithMarkdown = () => (
);
-export const withDOM = () => (
+export const WithDOM = () => (
h1 Heading
h2 Heading
diff --git a/lib/core-server/src/__snapshots__/vue-3-cli_manager-prod b/lib/core-server/src/__snapshots__/vue-3-cli_manager-prod
index 6a12381214bf..852c93c75b1e 100644
--- a/lib/core-server/src/__snapshots__/vue-3-cli_manager-prod
+++ b/lib/core-server/src/__snapshots__/vue-3-cli_manager-prod
@@ -223,227 +223,3 @@ Object {
],
}
`;
-
-exports[`vue-3-cli preview dev mode 1`] = `
-Object {
- "entry": Array [
- "ROOT/lib/core-client/dist/esm/globals/polyfills.js",
- "ROOT/lib/core-client/dist/esm/manager/index.js",
- "ROOT/addons/links/dist/esm/register.js",
- "ROOT/addons/docs/dist/esm/register.js",
- "ROOT/addons/controls/dist/esm/register.js",
- "ROOT/addons/actions/dist/esm/register.js",
- "ROOT/addons/backgrounds/dist/esm/register.js",
- "ROOT/addons/viewport/dist/esm/register.js",
- "ROOT/addons/toolbars/dist/esm/register.js",
- "ROOT/addons/measure/dist/esm/register.js",
- "ROOT/addons/outline/dist/esm/register.js",
- "ROOT/addons/interactions/dist/esm/register.js",
- ],
- "keys": Array [
- "name",
- "mode",
- "bail",
- "devtool",
- "entry",
- "output",
- "watchOptions",
- "plugins",
- "module",
- "resolve",
- "resolveLoader",
- "recordsPath",
- "performance",
- "optimization",
- ],
- "module": Object {
- "rules": Array [
- Object {
- "exclude": Array [
- "NODE_MODULES/",
- "/dist/",
- ],
- "include": Array [
- "ROOT",
- ],
- "test": "/\\\\.(mjs|tsx?|jsx?)$/",
- "use": Array [
- Object {
- "loader": "NODE_MODULES/babel-loader/lib/index.js",
- "options": Object {
- "babelrc": false,
- "configFile": false,
- "plugins": Array [
- "NODE_MODULES/@babel/plugin-transform-shorthand-properties/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-block-scoping/lib/index.js",
- Array [
- "NODE_MODULES/@babel/plugin-proposal-decorators/lib/index.js",
- Object {
- "legacy": true,
- },
- ],
- Array [
- "NODE_MODULES/@babel/plugin-proposal-class-properties/lib/index.js",
- Object {
- "loose": true,
- },
- ],
- Array [
- "NODE_MODULES/@babel/plugin-proposal-private-methods/lib/index.js",
- Object {
- "loose": true,
- },
- ],
- "NODE_MODULES/@babel/plugin-proposal-export-default-from/lib/index.js",
- "NODE_MODULES/@babel/plugin-syntax-dynamic-import/lib/index.js",
- Array [
- "NODE_MODULES/@babel/plugin-proposal-object-rest-spread/lib/index.js",
- Object {
- "loose": true,
- "useBuiltIns": true,
- },
- ],
- "NODE_MODULES/@babel/plugin-transform-classes/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-arrow-functions/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-parameters/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-destructuring/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-spread/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-for-of/lib/index.js",
- "NODE_MODULES/babel-plugin-macros/dist/index.js",
- "NODE_MODULES/@babel/plugin-proposal-optional-chaining/lib/index.js",
- "NODE_MODULES/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js",
- Array [
- "NODE_MODULES/babel-plugin-polyfill-corejs3/lib/index.js",
- Object {
- "absoluteImports": "NODE_MODULES/core-js/index.js",
- "method": "usage-global",
- "version": "*",
- },
- ],
- "NODE_MODULES/@babel/plugin-transform-template-literals/lib/index.js",
- ],
- "presets": Array [
- Array [
- "NODE_MODULES/@babel/preset-env/lib/index.js",
- Object {
- "loose": true,
- "shippedProposals": true,
- },
- ],
- "NODE_MODULES/@babel/preset-typescript/lib/index.js",
- "NODE_MODULES/@babel/preset-react/lib/index.js",
- ],
- "sourceType": "unambiguous",
- },
- },
- ],
- },
- Object {
- "include": [Function],
- "test": "/\\\\.js$/",
- "use": Array [
- Object {
- "loader": "NODE_MODULES/babel-loader/lib/index.js",
- "options": Object {
- "plugins": Array [
- "NODE_MODULES/@babel/plugin-transform-shorthand-properties/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-block-scoping/lib/index.js",
- Array [
- "NODE_MODULES/@babel/plugin-proposal-decorators/lib/index.js",
- Object {
- "legacy": true,
- },
- ],
- Array [
- "NODE_MODULES/@babel/plugin-proposal-class-properties/lib/index.js",
- Object {
- "loose": true,
- },
- ],
- Array [
- "NODE_MODULES/@babel/plugin-proposal-private-methods/lib/index.js",
- Object {
- "loose": true,
- },
- ],
- "NODE_MODULES/@babel/plugin-proposal-export-default-from/lib/index.js",
- "NODE_MODULES/@babel/plugin-syntax-dynamic-import/lib/index.js",
- Array [
- "NODE_MODULES/@babel/plugin-proposal-object-rest-spread/lib/index.js",
- Object {
- "loose": true,
- "useBuiltIns": true,
- },
- ],
- "NODE_MODULES/@babel/plugin-transform-classes/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-arrow-functions/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-parameters/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-destructuring/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-spread/lib/index.js",
- "NODE_MODULES/@babel/plugin-transform-for-of/lib/index.js",
- "NODE_MODULES/babel-plugin-macros/dist/index.js",
- "NODE_MODULES/@babel/plugin-proposal-optional-chaining/lib/index.js",
- "NODE_MODULES/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js",
- Array [
- "NODE_MODULES/babel-plugin-polyfill-corejs3/lib/index.js",
- Object {
- "absoluteImports": "NODE_MODULES/core-js/index.js",
- "method": "usage-global",
- "version": "*",
- },
- ],
- ],
- "presets": Array [
- Array [
- "NODE_MODULES/@babel/preset-env/lib/index.js",
- Object {
- "loose": true,
- "modules": false,
- "shippedProposals": true,
- "targets": "defaults",
- },
- ],
- "NODE_MODULES/@babel/preset-react/lib/index.js",
- ],
- "sourceType": "unambiguous",
- },
- },
- ],
- },
- Object {
- "test": "/\\\\.css$/",
- "use": Array [
- "NODE_MODULES/style-loader/dist/cjs.js",
- Object {
- "loader": "NODE_MODULES/css-loader/dist/cjs.js",
- "options": Object {
- "importLoaders": 1,
- },
- },
- ],
- },
- Object {
- "loader": "NODE_MODULES/file-loader/dist/cjs.js",
- "options": Object {
- "name": "static/media/[name].[contenthash:8].[ext]",
- },
- "test": "/\\\\.(svg|ico|jpg|jpeg|png|apng|gif|eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\\\\?.*)?$/",
- },
- Object {
- "loader": "NODE_MODULES/url-loader/dist/cjs.js",
- "options": Object {
- "limit": 10000,
- "name": "static/media/[name].[contenthash:8].[ext]",
- },
- "test": "/\\\\.(mp4|webm|wav|mp3|m4a|aac|oga)(\\\\?.*)?$/",
- },
- ],
- },
- "plugins": Array [
- "VirtualModulesPlugin",
- "HtmlWebpackPlugin",
- "CaseSensitivePathsPlugin",
- "DefinePlugin",
- ],
-}
-`;
diff --git a/lib/core-server/src/utils/__mockdata__/src/NoMeta.stories.ts b/lib/core-server/src/utils/__mockdata__/src/NoMeta.stories.ts
index b12d3b47ab74..2726cb488557 100644
--- a/lib/core-server/src/utils/__mockdata__/src/NoMeta.stories.ts
+++ b/lib/core-server/src/utils/__mockdata__/src/NoMeta.stories.ts
@@ -1,3 +1,4 @@
+/* eslint-disable storybook/default-exports */
// no default export
// e.g. https://github.com/storybookjs/storybook/issues/16421
export const StoryOne = {};
diff --git a/lib/ui/src/components/layout/mobile.stories.tsx b/lib/ui/src/components/layout/mobile.stories.tsx
index ec62ff7d23d9..d37f6cb7a891 100644
--- a/lib/ui/src/components/layout/mobile.stories.tsx
+++ b/lib/ui/src/components/layout/mobile.stories.tsx
@@ -34,7 +34,7 @@ export const InitialAddons = ({ props }: { props: MobileProps }) => (
);
-export const docsOnly = ({ props }: { props: MobileProps }) => ;
+export const DocsOnly = ({ props }: { props: MobileProps }) => ;
export const Page = ({ props }: { props: MobileProps }) => (
(
+export const Single = () => (
(
/>
);
-export const all = () => (
+export const All = () => (
(
/>
);
-export const placement = () => (
+export const Placement = () => (
// Note: position:absolute is only for QA/testing. Use position:fixed when integrating into the real UI.
(
+export const WorkingStory = () => (