Skip to content

Commit

Permalink
chore: updates API
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Sep 19, 2022
1 parent 55b690d commit b6f61f1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
26 changes: 26 additions & 0 deletions packages/react-components/react-dialog/etc/react-dialog.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,23 @@ export type DialogBodySlots = {
// @public
export type DialogBodyState = ComponentState<DialogBodySlots>;

// @public
export const DialogContent: ForwardRefComponent<DialogContentProps>;

// @public (undocumented)
export const dialogContentClassNames: SlotClassNames<DialogContentSlots>;

// @public
export type DialogContentProps = ComponentProps<DialogContentSlots> & {};

// @public (undocumented)
export type DialogContentSlots = {
root: Slot<'div'>;
};

// @public
export type DialogContentState = ComponentState<DialogContentSlots>;

// @public (undocumented)
export type DialogOpenChangeData = {
type: 'dialogCancel';
Expand Down Expand Up @@ -173,6 +190,9 @@ export const renderDialogActions_unstable: (state: DialogActionsState) => JSX.El
// @public
export const renderDialogBody_unstable: (state: DialogBodyState) => JSX.Element;

// @public
export const renderDialogContent_unstable: (state: DialogContentState) => JSX.Element;

// @public
export const renderDialogSurface_unstable: (state: DialogSurfaceState, contextValues: DialogSurfaceContextValues) => JSX.Element;

Expand All @@ -197,6 +217,12 @@ export const useDialogBody_unstable: (props: DialogBodyProps, ref: React_2.Ref<H
// @public
export const useDialogBodyStyles_unstable: (state: DialogBodyState) => DialogBodyState;

// @public
export const useDialogContent_unstable: (props: DialogContentProps, ref: React_2.Ref<HTMLElement>) => DialogContentState;

// @public
export const useDialogContentStyles_unstable: (state: DialogContentState) => DialogContentState;

// @public
export const useDialogSurface_unstable: (props: DialogSurfaceProps, ref: React_2.Ref<DialogSurfaceElement>) => DialogSurfaceState;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ export type DialogContentProps = ComponentProps<DialogContentSlots> & {};
* State used in rendering DialogContent
*/
export type DialogContentState = ComponentState<DialogContentSlots>;
// TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from DialogContentProps.
// & Required<Pick<DialogContentProps, 'propName'>>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`DialogContent renders a default state 1`] = `
<div>
<div
class="fui-DialogContent"
>
Default DialogContent
</div>
</div>
`;

0 comments on commit b6f61f1

Please sign in to comment.