UNPKG

@swc-react/dialog

Version:

React and Next.js wrapper of the @spectrum-web-components/dialog component

47 lines (46 loc) 1.5 kB
"use strict"; import * as React from "react"; import { createComponent } from "@lit/react"; import { Dialog as SpDialog } from "@spectrum-web-components/dialog"; import { DialogBase as SpDialogBase } from "@spectrum-web-components/dialog"; import { DialogWrapper as SpDialogWrapper } from "@spectrum-web-components/dialog"; import "@spectrum-web-components/dialog/sp-dialog-base.js"; import "@spectrum-web-components/dialog/sp-dialog-wrapper.js"; import "@spectrum-web-components/dialog/sp-dialog.js"; export const Dialog = createComponent({ displayName: "Dialog", elementClass: SpDialog, react: React, tagName: "sp-dialog", events: { close: "close" // Announces that the dialog has been closed. } }); export const DialogBase = createComponent({ displayName: "DialogBase", elementClass: SpDialogBase, react: React, tagName: "sp-dialog-base", events: { close: "close" // Announces that the dialog has been closed. } }); export const DialogWrapper = createComponent({ displayName: "DialogWrapper", elementClass: SpDialogWrapper, react: React, tagName: "sp-dialog-wrapper", events: { close: "close", // Announces that the dialog has been closed. secondary: "secondary", // Announces that the "secondary" button has been clicked. cancel: "cancel", // Announces that the "cancel" button has been clicked. confirm: "confirm" // Announces that the "confirm" button has been clicked. } }); //# sourceMappingURL=index.dev.js.map