Skip to content

Commit

Permalink
bugfix: exports DialogSurfaceElement
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Sep 19, 2022
1 parent c168d00 commit ae95adf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export const DialogSurface: ForwardRefComponent<DialogSurfaceProps>;
// @public (undocumented)
export const dialogSurfaceClassNames: SlotClassNames<DialogSurfaceSlots>;

// @public
export type DialogSurfaceElement = HTMLDialogElement | HTMLDivElement;

// @public
export type DialogSurfaceProps = Omit<ComponentProps<DialogSurfaceSlots>, 'open' | 'onCancel' | 'onClose'>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export type DialogSurfaceSlots = {
root: NonNullable<Slot<'dialog', 'div'>>;
};

/** @internal */
/**
* Union between all possible semantic element that represent a DialogSurface
*/
export type DialogSurfaceElement = HTMLDialogElement | HTMLDivElement;

/** @internal */
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/react-dialog/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export {
useDialogSurfaceStyles_unstable,
renderDialogSurface_unstable,
} from './DialogSurface';
export type { DialogSurfaceProps, DialogSurfaceSlots, DialogSurfaceState } from './DialogSurface';
export type { DialogSurfaceProps, DialogSurfaceSlots, DialogSurfaceState, DialogSurfaceElement } from './DialogSurface';

export {
DialogContent,
Expand Down

0 comments on commit ae95adf

Please sign in to comment.