/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { html } from "lit"; import "mail/base/content/widgets/tb-banner.mjs"; import "mail/themes/shared/mail/colors.css"; import "mail/themes/shared/mail/spacings.css"; import "mail/themes/shared/mail/variables.css"; import "mail/themes/shared/mail/layout.css"; import "mail/themes/shared/mail/widgets.css"; import "mail/themes/shared/mail/icons.css"; export default { title: "Widgets/Banner", component: "tb-banner", tags: ["autodocs"], argTypes: { variant: { control: "select", options: ["info", "success", "warning", "danger"], }, expanded: { control: "boolean", }, }, }; const bannerTemplate = html` `; const PlaygroundTemplate = ({ variant, titleContent, descriptionContent, expanded, }) => html` ${bannerTemplate} ${titleContent} ${descriptionContent} `; export const Playground = PlaygroundTemplate.bind({}); Playground.args = { variant: "info", titleContent: "Connection settings saved", descriptionContent: "Thunderbird will use these settings when checking mail.", expanded: false, }; export const NoDescription = () => html` ${bannerTemplate} Connection settings saved `; export const HTMLDescriptionExpanded = () => html` ${bannerTemplate} Please resolve the following errors: `;