import * as React from "react"; import { withKnobs, text, boolean, number } from "@storybook/addon-knobs"; import _ from "lodash"; import Layout from "../Layout"; import { BenefitLayouts } from "./types"; import { GRP } from "storybook/GRP"; import { EditorWithCustomData, buildContentData, mobileStateData, } from "@sc/modules/page/Builder/Builder.stories"; import { BODY } from "@sc/modules/v2/Editor/types"; import { settings01, settings02, settings03, settings04, settings05, settings06, settings07, settings08, settings09, settings10, settings11, settings12, settings13, settings14, settings15, settings16, settings17, settings18, settings19, settings20, settings21, settings22, settings23, settings24, } from "./"; import { addThisAfterThat, moveThisByThat, } from "@sc/modules/v2/Editor/actions"; import { ComponentTypes } from "@sc/plugins/webcomponents/v2/types"; export default { title: "Plugins|Web Layouts/Benefits", decorators: [withKnobs], }; export const Benefit01Done: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit02: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit03: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit04: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit05: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit06: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit07: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit08Done: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit09: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit10NeedsWork: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit11: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit12: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit13: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit14: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit15: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit16: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit17: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit18: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit19: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit20: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show Inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit21: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit22: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit23: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Benefit24: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const InTheEditor: React.FC = () => { return ( ); }; export const AllBenefits: 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 ( <> ); };