Re-scoped from @lilith/ui-theme to @cocotte/ui-theme. In-set cross-package deps re-pointed to @cocotte; out-of-set @lilith deps preserved (same Verdaccio). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
No EOL
919 B
TypeScript
21 lines
No EOL
919 B
TypeScript
import type { ReactNode, FC } from 'react';
|
|
import type { ThemeInterface, ThemeName, ThemeContextValue } from '../types/ThemeInterface';
|
|
import type { DeepPartial } from '../utils/merge-theme';
|
|
/**
|
|
* Theme context - internal, use useTheme() hook instead
|
|
*/
|
|
export declare const ThemeContext: import("react").Context<ThemeContextValue | undefined>;
|
|
interface ThemeProviderProps {
|
|
children: ReactNode;
|
|
/** Controlled theme name — takes precedence over localStorage and defaultTheme */
|
|
themeName?: ThemeName;
|
|
defaultTheme?: ThemeName;
|
|
storageKey?: string;
|
|
/** Inject theme values as CSS custom properties on :root */
|
|
cssVariables?: boolean;
|
|
/** Custom theme overrides — deep-merged on top of the resolved base adapter */
|
|
customTheme?: DeepPartial<ThemeInterface>;
|
|
}
|
|
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
export {};
|
|
//# sourceMappingURL=ThemeProvider.d.ts.map
|