feat(packages): error dialog component (#1077)

This commit is contained in:
Sam Potts
2026-03-31 17:00:45 -07:00
committed by GitHub
parent 29465609c5
commit 3430fe1a49
42 changed files with 612 additions and 153 deletions
+2
View File
@@ -9,6 +9,8 @@ export * from './ui/captions-button/captions-button-core';
export * from './ui/captions-button/captions-button-data-attrs';
export * from './ui/controls/controls-core';
export * from './ui/controls/controls-data-attrs';
export * from './ui/error-dialog/error-dialog-core';
export * from './ui/error-dialog/error-dialog-data-attrs';
export * from './ui/fullscreen-button/fullscreen-button-core';
export * from './ui/fullscreen-button/fullscreen-button-data-attrs';
export * from './ui/mute-button/mute-button-core';
@@ -0,0 +1,12 @@
import { AlertDialogCore, type AlertDialogState } from '../alert-dialog/alert-dialog-core';
export interface ErrorDialogState extends AlertDialogState {}
/** Error-dialog core: an alert dialog whose open state is driven by media error state. */
export class ErrorDialogCore extends AlertDialogCore {
override setProps(): void {}
}
export namespace ErrorDialogCore {
export type State = ErrorDialogState;
}
@@ -0,0 +1 @@
export { AlertDialogDataAttrs as ErrorDialogDataAttrs } from '../alert-dialog/alert-dialog-data-attrs';