first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
@@ -0,0 +1,12 @@
import type { ExtendedCSSStyleSheet } from '@fluentui/merge-styles';
import type { MergeStylesShadowRootContextValue } from '../contexts/MergeStylesShadowRootContext';
export type AdoptedStylesheetHook = (stylesheetKey: string) => boolean;
export type AdoptedStylesheetExHook = (stylesheetKey: string, shadowCtx: MergeStylesShadowRootContextValue | undefined, rootMergeStyles: Map<string, ExtendedCSSStyleSheet>, win: Window | undefined) => boolean;
/**
* Use adopted stylesheets in the parent shadow root.
*/
export declare const useAdoptedStylesheet: AdoptedStylesheetHook;
/**
* Optimization for specific cases like nested customizables.
*/
export declare const useAdoptedStylesheetEx: AdoptedStylesheetExHook;