UNPKG

@swc-react/dialog

Version:

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

34 lines (33 loc) 1.7 kB
/** * Copyright 2026 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import type { EventName } 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 declare const Dialog: import("@lit/react").ReactWebComponent<SpDialog, { close: EventName<Event>; }>; export declare const DialogBase: import("@lit/react").ReactWebComponent<SpDialogBase, { close: EventName<Event>; }>; export declare const DialogWrapper: import("@lit/react").ReactWebComponent<SpDialogWrapper, { close: EventName<Event>; secondary: EventName<Event>; cancel: EventName<Event>; confirm: EventName<Event>; }>; export type DialogType = EventTarget & SpDialog; export type DialogBaseType = EventTarget & SpDialogBase; export type DialogWrapperType = EventTarget & SpDialogWrapper;