import * as React from "react"; import { withKnobs, text, boolean, number } from "@storybook/addon-knobs"; import Layout from "../Layout"; import { HeaderLayouts } 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, settings22, settings23, } from "./"; import theme from "../theme"; // export const html2canvas = typeof window === "object" ? require("html2canvas") : {} import html2canvas from "html2canvas"; export default { title: "Plugins|Web Layouts/Headers", decorators: [withKnobs], }; interface grpProps { children: JSX.Element | JSX.Element[]; title: string; } const GRP: React.FC = ({ children, title }) => { return ( <>

{title}:

{children}
); }; export const Header01: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header02: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header03: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header04: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header05: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header06: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header07: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header08: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header09: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header10: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header11: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header12: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header13: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header14: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header15: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header16: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header17: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header18: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header19: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header20: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header21: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header22: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Header23: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const InTheEditor: React.FC = () => { return ( ); }; export const AllHeaders: 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 ( <> ); };