import * as React from "react"; import { GRP } from "storybook/GRP"; import { withKnobs, text, boolean, number } from "@storybook/addon-knobs"; import Layout from "../Layout"; import { FormLayouts } from "./types"; import { EditorWithCustomData, buildContentData, mobileStateData, } from "@sc/modules/page/Builder/Builder.stories"; import { settings01, settings02, settings03, settings04, settings05, settings06, settings07, settings08, settings09, settings10, settings11, settings12, settings13, settings14, settings15, settings16, settings17, settings18, settings19, settings20, settings21, } from "./"; export default { title: "Plugins|Web Layouts/Forms", decorators: [withKnobs], }; export const Form01: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form02: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form03: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form04: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form05: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form06: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form07: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form08: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form09: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form10: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form11: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form12: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form13: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form14: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form15: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form17: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form18: React.FC = () => { return ( <> {/* */} {boolean("Show inspiration", false) && ( )} {/* {boolean("In the Editor", true) && ( )} */} ); }; export const Form19: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form20: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Form21: 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 (
); };