import Component from '../../components/drawer/drawer.js'; import { type EventName } from '@lit/react'; import type { WaAfterHideEvent, WaAfterShowEvent, WaHideEvent, WaShowEvent } from '../../events/events.js'; export type { WaAfterHideEvent, WaAfterShowEvent, WaHideEvent, WaShowEvent } from '../../events/events.js'; /** * @summary Drawers slide in from the edge of a container to expose additional options and information without * navigating away. Useful for navigation menus, filters, and secondary content. * @documentation https://webawesome.com/docs/components/drawer * @status stable * @since 2.0 * * @dependency wa-button * * @slot - The drawer's main content. * @slot label - The drawer's label. Alternatively, you can use the `label` attribute. * @slot header-actions - Optional actions to add to the header. Works best with ``. * @slot footer - The drawer's footer, usually one or more buttons representing various options. * * @event wa-show - Emitted when the drawer opens. * @event wa-after-show - Emitted after the drawer opens and all animations are complete. * @event wa-hide - Emitted when the drawer closes. * @event wa-after-hide - Emitted after the drawer closes and all animations are complete. * @event {{ source: Element }} wa-hide - Emitted when the drawer is requesting to close. Calling * `event.preventDefault()` will prevent the drawer from closing. You can inspect `event.detail.source` to see which * element caused the drawer to close. If the source is the drawer element itself, the user has pressed [[Escape]] or * the drawer has been closed programmatically. Avoid using this unless closing the drawer will result in destructive * behavior such as data loss. * * @csspart dialog - The drawer's internal `` element. * @csspart header - The drawer's header. This element wraps the title and header actions. * @csspart header-actions - Optional actions to add to the header. Works best with ``. * @csspart title - The drawer's title. * @csspart close-button - The close button, a ``. * @csspart close-button__base - The close button's exported `base` part. * @csspart body - The drawer's body. * @csspart footer - The drawer's footer. * * @cssproperty --spacing - The amount of space around and between the drawer's content. * @cssproperty --size - The preferred size of the drawer. This will be applied to the drawer's width or height * depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens. * @cssproperty [--backdrop-filter=none] - A filter to apply to the backdrop behind the drawer. * @cssproperty [--show-duration=200ms] - The animation duration when showing the drawer. * @cssproperty [--hide-duration=200ms] - The animation duration when hiding the drawer. * * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus * trapping and allow third-party modals spawned from an active Shoelace modal, call `modal.activateExternal()` when * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Shoelace's focus trapping. */ declare const reactWrapper: import("@lit/react").ReactWebComponent; onWaAfterShow: EventName; onWaHide: EventName; onWaAfterHide: EventName; }>; export default reactWrapper;