import type {Meta, StoryObj} from '@storybook/web-components'; import {ObcAlertTopbarElement} from './alert-topbar-element'; import './alert-topbar-element'; import {html} from 'lit'; import '../notification-message-item/notification-message-item'; import '../../icons/icon-alarm-unacknowledged-iec'; import '../../icons/icon-caution-color-iec'; import '../alert-icon/alert-icon'; import {AlertType} from '../../types'; const meta: Meta = { title: 'Application/Alert topbar element', tags: ['autodocs'], component: 'obc-alert-topbar-element', args: { nAlerts: 1, alertType: AlertType.Alarm, maxWidth: 480, minimized: false, showAck: true, alertMuted: false, }, argTypes: { alertType: { options: Object.values(AlertType), control: {type: 'select'}, }, }, render: (args) => html`
This is a message
`, } satisfies Meta; export default meta; type Story = StoryObj; export const Full: Story = {}; export const Muted: Story = { args: { alertMuted: true, }, }; export const NoAck: Story = { args: { showAck: false, }, }; export const Caution: Story = { args: { alertType: AlertType.Caution, showAck: false, }, render: (args) => html`
This is a message
`, }; export const Minimized: Story = { args: { minimized: true, }, }; export const NoAlerts: Story = { args: { nAlerts: 0, alertType: AlertType.Alarm, }, render: (args) => html` `, };