/** * @typedef {object} ModalAttributes * @prop {boolean} [cardMode] */ /** * A classic modal overlay, in which you can include any content you want * * https://bulma.io/documentation/components/modal/ * * @type {m.Component} */ export const Frame: m.Component; /** * A modal header container. Normally contains Modal.Title and Delete components * @type {m.Component} */ export const Header: m.Component; /** * The modal title - should be nested within a modal header * @type {m.Component} */ export const Title: m.Component; /** * Contains the main content of the modal * @type {m.Component} */ export const Body: m.Component; /** * Contains the bottom edge of a modal. A common component would be .buttons {button, button, ...} * @type {m.Component} */ export const Footer: m.Component; export namespace Manager { /** Add a new modal to the list */ function add(component: any, attributes: any): void; /** Clears the modal on the top of the stack */ function clear(): void; function view(): m.Vnode; } export type ModalAttributes = { cardMode?: boolean; }; import m from 'mithril';