|
| 1 | +## API Report File for "@fluentui/react-headless-components-preview" |
| 2 | + |
| 3 | +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 | +
|
| 5 | +```ts |
| 6 | + |
| 7 | +import type { ComponentProps } from '@fluentui/react-utilities'; |
| 8 | +import type { ComponentState } from '@fluentui/react-utilities'; |
| 9 | +import type { ForwardRefComponent } from '@fluentui/react-utilities'; |
| 10 | +import type { JSXElement } from '@fluentui/react-utilities'; |
| 11 | +import * as React_2 from 'react'; |
| 12 | +import { renderToastFooter_unstable as renderToastFooter } from '@fluentui/react-toast'; |
| 13 | +import type { Slot } from '@fluentui/react-utilities'; |
| 14 | +import type { ToastAnnounce } from '@fluentui/react-toast'; |
| 15 | +import type { ToastBaseState } from '@fluentui/react-toast'; |
| 16 | +import { ToastBodyBaseProps as ToastBodyProps } from '@fluentui/react-toast'; |
| 17 | +import { ToastBodySlots } from '@fluentui/react-toast'; |
| 18 | +import { ToastBodyBaseState as ToastBodyState } from '@fluentui/react-toast'; |
| 19 | +import { ToastChangeData } from '@fluentui/react-toast'; |
| 20 | +import { ToastChangeHandler } from '@fluentui/react-toast'; |
| 21 | +import type { ToastContainerContextValue } from '@fluentui/react-toast'; |
| 22 | +import type { ToastData } from '@fluentui/react-toast'; |
| 23 | +import { ToasterId } from '@fluentui/react-toast'; |
| 24 | +import type { ToasterProps as ToasterProps_2 } from '@fluentui/react-toast'; |
| 25 | +import type { ToasterState as ToasterState_2 } from '@fluentui/react-toast'; |
| 26 | +import { ToastFooterProps } from '@fluentui/react-toast'; |
| 27 | +import { ToastFooterSlots } from '@fluentui/react-toast'; |
| 28 | +import { ToastFooterState } from '@fluentui/react-toast'; |
| 29 | +import { ToastId } from '@fluentui/react-toast'; |
| 30 | +import { ToastImperativeRef } from '@fluentui/react-toast'; |
| 31 | +import { ToastIntent } from '@fluentui/react-toast'; |
| 32 | +import { ToastPoliteness } from '@fluentui/react-toast'; |
| 33 | +import { ToastPosition } from '@fluentui/react-toast'; |
| 34 | +import { ToastBaseProps as ToastProps } from '@fluentui/react-toast'; |
| 35 | +import { ToastSlots } from '@fluentui/react-toast'; |
| 36 | +import { ToastStatus } from '@fluentui/react-toast'; |
| 37 | +import { ToastTitleBaseProps as ToastTitleProps } from '@fluentui/react-toast'; |
| 38 | +import { ToastTitleSlots } from '@fluentui/react-toast'; |
| 39 | +import { ToastTitleBaseState as ToastTitleState } from '@fluentui/react-toast'; |
| 40 | +import { useToastBodyBase_unstable as useToastBody } from '@fluentui/react-toast'; |
| 41 | +import { useToastContainerContext } from '@fluentui/react-toast'; |
| 42 | +import { useToastController } from '@fluentui/react-toast'; |
| 43 | +import { useToastFooter_unstable as useToastFooter } from '@fluentui/react-toast'; |
| 44 | +import { useToastTitleBase_unstable as useToastTitle } from '@fluentui/react-toast'; |
| 45 | + |
| 46 | +// @public |
| 47 | +export const renderToast: (state: ToastState) => JSXElement; |
| 48 | + |
| 49 | +// @public |
| 50 | +export const renderToastBody: (state: ToastBodyState) => JSXElement; |
| 51 | + |
| 52 | +// @public |
| 53 | +export const renderToastContainer: (state: ToastContainerState, contextValues: ToastContainerContextValues) => JSXElement; |
| 54 | + |
| 55 | +// @public |
| 56 | +export const renderToaster: (state: ToasterState) => JSXElement; |
| 57 | + |
| 58 | +export { renderToastFooter } |
| 59 | + |
| 60 | +// @public (undocumented) |
| 61 | +export const renderToastTitle: (state: ToastTitleState) => JSXElement; |
| 62 | + |
| 63 | +// @public |
| 64 | +export const Toast: ForwardRefComponent<ToastProps>; |
| 65 | + |
| 66 | +// @public |
| 67 | +export const ToastBody: ForwardRefComponent<ToastBodyProps>; |
| 68 | + |
| 69 | +export { ToastBodyProps } |
| 70 | + |
| 71 | +export { ToastBodySlots } |
| 72 | + |
| 73 | +export { ToastBodyState } |
| 74 | + |
| 75 | +export { ToastChangeData } |
| 76 | + |
| 77 | +export { ToastChangeHandler } |
| 78 | + |
| 79 | +// @public |
| 80 | +export const ToastContainer: ForwardRefComponent<ToastContainerProps>; |
| 81 | + |
| 82 | +export { ToastContainerContextValue } |
| 83 | + |
| 84 | +// @public (undocumented) |
| 85 | +export type ToastContainerProps = Omit<ComponentProps<Partial<ToastContainerSlots>>, 'content'> & ToastData & { |
| 86 | + visible: boolean; |
| 87 | + tryRestoreFocus: () => void; |
| 88 | + announce?: ToastAnnounce; |
| 89 | +}; |
| 90 | + |
| 91 | +// @public (undocumented) |
| 92 | +export type ToastContainerSlots = { |
| 93 | + root: NonNullable<Slot<'div'>>; |
| 94 | +}; |
| 95 | + |
| 96 | +// @public (undocumented) |
| 97 | +export type ToastContainerState = ComponentState<ToastContainerSlots> & Pick<ToastContainerProps, 'remove' | 'close' | 'updateId' | 'visible' | 'intent'> & Pick<ToastContainerContextValue, 'titleId' | 'bodyId'> & { |
| 98 | + running: boolean; |
| 99 | + nodeRef: React_2.Ref<HTMLDivElement>; |
| 100 | +}; |
| 101 | + |
| 102 | +// @public |
| 103 | +export const Toaster: { |
| 104 | + (props: ToasterProps): JSXElement; |
| 105 | + displayName: string; |
| 106 | +}; |
| 107 | + |
| 108 | +export { ToasterId } |
| 109 | + |
| 110 | +// @public |
| 111 | +export type ToasterProps = Omit<ToasterProps_2, 'mountNode' | 'inline'>; |
| 112 | + |
| 113 | +// @public |
| 114 | +export type ToasterState = Omit<ToasterState_2, 'mountNode' | 'inline'>; |
| 115 | + |
| 116 | +// @public |
| 117 | +export const ToastFooter: ForwardRefComponent<ToastFooterProps>; |
| 118 | + |
| 119 | +export { ToastFooterProps } |
| 120 | + |
| 121 | +export { ToastFooterSlots } |
| 122 | + |
| 123 | +export { ToastFooterState } |
| 124 | + |
| 125 | +export { ToastId } |
| 126 | + |
| 127 | +export { ToastImperativeRef } |
| 128 | + |
| 129 | +export { ToastIntent } |
| 130 | + |
| 131 | +export { ToastPoliteness } |
| 132 | + |
| 133 | +export { ToastPosition } |
| 134 | + |
| 135 | +export { ToastProps } |
| 136 | + |
| 137 | +export { ToastSlots } |
| 138 | + |
| 139 | +// @public (undocumented) |
| 140 | +export type ToastState = ToastBaseState & { |
| 141 | + root: { |
| 142 | + 'data-intent'?: string; |
| 143 | + }; |
| 144 | +}; |
| 145 | + |
| 146 | +export { ToastStatus } |
| 147 | + |
| 148 | +// @public |
| 149 | +export const ToastTitle: ForwardRefComponent<ToastTitleProps>; |
| 150 | + |
| 151 | +export { ToastTitleProps } |
| 152 | + |
| 153 | +export { ToastTitleSlots } |
| 154 | + |
| 155 | +export { ToastTitleState } |
| 156 | + |
| 157 | +// @public |
| 158 | +export const useToast: (props: ToastProps, ref: React_2.Ref<HTMLElement>) => ToastState; |
| 159 | + |
| 160 | +export { useToastBody } |
| 161 | + |
| 162 | +// @public |
| 163 | +export const useToastContainer: (props: ToastContainerProps, ref: React_2.Ref<HTMLElement>) => ToastContainerState; |
| 164 | + |
| 165 | +export { useToastContainerContext } |
| 166 | + |
| 167 | +// @public (undocumented) |
| 168 | +export const useToastContainerContextValues: (state: ToastContainerState) => ToastContainerContextValues; |
| 169 | + |
| 170 | +export { useToastController } |
| 171 | + |
| 172 | +// @public |
| 173 | +export const useToaster: (props: ToasterProps) => ToasterState; |
| 174 | + |
| 175 | +export { useToastFooter } |
| 176 | + |
| 177 | +export { useToastTitle } |
| 178 | + |
| 179 | +// (No @packageDocumentation comment for this package) |
| 180 | + |
| 181 | +``` |
0 commit comments