Private
Public Access
1
0

feat: Fluent UI Outlook Lite + connections mockup

This commit is contained in:
2026-04-14 18:52:25 +00:00
parent 1199eff6c3
commit dfa4010406
34820 changed files with 1003813 additions and 205 deletions

63
node_modules/@fluentui/react-portal/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,63 @@
import { elementContains } from '@fluentui/react-utilities';
import * as React_2 from 'react';
import { setVirtualParent } from '@fluentui/react-utilities';
export { elementContains }
/**
* A portal provides a way to render children into a DOM node
* that exists outside the DOM hierarchy of the parent component.
*/
export declare const Portal: React_2.FC<PortalProps>;
export declare type PortalProps = {
/**
* React children
*/
children?: React_2.ReactNode;
/**
* Where the portal children are mounted on DOM
*
* @default a new element on document.body without any styling
*/
mountNode?: HTMLElement | null | {
element?: HTMLElement | null;
className?: string;
};
};
export declare type PortalState = Pick<PortalProps, 'children'> & {
mountNode: HTMLElement | null | undefined;
/**
* Ref to the root span element as virtual parent
*/
virtualParentRootRef: React_2.MutableRefObject<HTMLSpanElement | null>;
};
/**
* Render the final JSX of Portal
*/
export declare const renderPortal_unstable: (state: PortalState) => React_2.ReactElement;
export { setVirtualParent }
/**
* The function that normalizes the `mountNode` prop into an object with element and className props.
*
* @param mountNode - an HTML element or an object with props
*/
export declare function toMountNodeProps(mountNode: PortalProps['mountNode']): {
element?: HTMLElement | null;
className?: string;
};
/**
* Create the state required to render Portal.
*
* The returned state can be modified with hooks such as usePortalStyles, before being passed to renderPortal_unstable.
*
* @param props - props from this instance of Portal
*/
export declare const usePortal_unstable: (props: PortalProps) => PortalState;
export { }