@spectrum-web-components/overlay
Version:
An `<sp-overlay>` element is used to decorate content that you would like to present to your visitors as "overlaid" on the rest of the application. This includes dialogs (modal and not), pickers, tooltips, context menus, et al.
40 lines (39 loc) • 782 B
JavaScript
;
export class BeforetoggleClosedEvent extends Event {
constructor() {
super("beforetoggle", {
bubbles: false,
composed: false
});
this.currentState = "open";
this.newState = "closed";
}
}
export class BeforetoggleOpenEvent extends Event {
constructor() {
super("beforetoggle", {
bubbles: false,
composed: false
});
this.currentState = "closed";
this.newState = "open";
}
}
export class OverlayStateEvent extends Event {
constructor(type, overlay, {
publish,
interaction,
reason
}) {
super(type, {
bubbles: publish,
composed: publish
});
this.overlay = overlay;
this.detail = {
interaction,
reason
};
}
}
//# sourceMappingURL=events.dev.js.map