import * as React from "react"; import FullscreenView from "../components/FullscreenView"; import { Meta } from "@storybook/react"; import { cx } from "@emotion/css"; import { flex, flexItem, textSize, tintContentSecondary, padding } from "../../shared/styles/styleUtils"; import { Container } from "../../styleUtils/layout"; import { fullscreenModalTitle } from "../style"; import { SecondaryButton, PrimaryButton } from "../../button"; import { action } from "@storybook/addon-actions"; import { ModalContent, BorderedModalContent } from "../../modal/stories/helpers/modalContents"; import { InfoBoxBanner } from "../../infobox/index"; import { container } from "../../styleUtils/layout/container/style"; const onClose = () => { alert("calling onClose"); }; export default { title: "Page Structure/Fullscreen View", component: FullscreenView } as Meta; export const Default = () => (
); export const WithAdditionalHeaderContent = () => { const HeaderContent = ({ ctaButton, closeText, title, onClose }) => (
{closeText}
{title}
Some subheader
{ctaButton}
); return (
Continue } headerComponent={HeaderContent} >
); }; export const WithFlushedContent = () => (
Continue } >
); export const ScrollingBody = () => (
); export const WithBanner = () => (
} >
); export const WithHeaderClassName = () => (
Click} headerClassName={container} >
);