import * as React from "react"; import { GRP } from "storybook/GRP"; import { withKnobs, text, boolean, number } from "@storybook/addon-knobs"; import Layout from "../Layout"; import { ContentLayouts } from "./types"; import { settings01, settings02, settings03, settings04, settings05, settings06, settings07, settings08, settings09, settings10, settings11, settings12, settings13, settings14, settings15, settings16, settings17, settings18, settings19, } from "./"; import { EditorWithCustomData, buildContentData, mobileStateData, } from "@sc/modules/page/Builder/Builder.stories"; import theme from "../theme"; export default { title: "Plugins|Web Layouts/Content", decorators: [withKnobs], }; export const Content01: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content02: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content03: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content04: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content05: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content06: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content07: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content08: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content09: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content10: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content11: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content13: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content14: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content15: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content16: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content17: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content18: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Content19: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const InTheEditor: React.FC = () => { return ( ); }; export const All: React.FC = () => { const data = { section: { pageMargin: number("Page Margin", 980, { range: true, min: 500, max: 2000, }), }, main_headline: { html: text("Main Headline Text", "I have overrided the text"), render: boolean("Show Main Headline", true), }, sub_headline: { render: boolean("Show Sub Headline", true), }, hero_video: { render: boolean("Show Hero Video", true), }, cta_button: { render: boolean("Show Button (If Present)", true), }, }; return (
); };