Skip to content

Commit

Permalink
chore(motion): yarn generate-api for react-motions-preview & react-…
Browse files Browse the repository at this point in the history
…accordion
  • Loading branch information
robertpenner committed Mar 21, 2024
1 parent e5f3a51 commit 52a2a83
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const renderAccordionHeader_unstable: (state: AccordionHeaderState, conte
export const renderAccordionItem_unstable: (state: AccordionItemState, contextValues: AccordionItemContextValues) => JSX.Element;

// @public
export const renderAccordionPanel_unstable: (state: AccordionPanelState) => JSX.Element | null;
export const renderAccordionPanel_unstable: (state: AccordionPanelState) => JSX.Element;

// @public
export const useAccordion_unstable: <Value = unknown>(props: AccordionProps<Value>, ref: React_2.Ref<HTMLElement>) => AccordionState<Value>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
```ts

import type { EventData } from '@fluentui/react-utilities';
import type { EventHandler } from '@fluentui/react-utilities';
import { EventData } from '@fluentui/react-utilities';
import { EventHandler } from '@fluentui/react-utilities';
import { FC } from 'react';
import { JSXElementConstructor } from 'react';
import { MotionImperativeRef as MotionImperativeRef_2 } from '@fluentui/react-motions-preview';
import * as React_2 from 'react';
import { ReactElement } from 'react';
import { Ref } from 'react';

// @public (undocumented)
export type AtomMotion = {
Expand All @@ -16,6 +21,18 @@ export type AtomMotion = {
// @public (undocumented)
export type AtomMotionFn = (element: HTMLElement) => AtomMotion;

// @public (undocumented)
export const Collapse: FC< {
appear?: boolean | undefined;
children: ReactElement<any, string | JSXElementConstructor<any>>;
imperativeRef?: Ref<MotionImperativeRef_2 | undefined> | undefined;
onMotionFinish?: EventHandler<EventData<"animation", AnimationPlaybackEvent> & {
direction: "enter" | "exit";
}> | undefined;
visible?: boolean | undefined;
unmountOnExit?: boolean | undefined;
}>;

// @public
export function createMotionComponent(motion: AtomMotion | AtomMotionFn): React_2.FC<MotionComponentProps>;

Expand Down Expand Up @@ -90,14 +107,15 @@ export class PresenceGroup extends React_2.Component<PresenceGroupProps, Presenc
render(): JSX.Element;
}

// @public (undocumented)
// @public
export type PresenceMotion = {
enter: AtomMotion;
exit: AtomMotion;
[transition in PresenceTransitionName]: AtomMotion;
};

// @public (undocumented)
export type PresenceMotionFn = (element: HTMLElement) => PresenceMotion;
// @public
export type PresenceMotionFn<CustomProps = {}> = (params: {
element: HTMLElement;
} & PresenceTransitionProps<CustomProps>) => PresenceMotion;

// (No @packageDocumentation comment for this package)

Expand Down

0 comments on commit 52a2a83

Please sign in to comment.