UNPKG

@confi/conflux-react-ui-test-package

Version:

Modern and minimalist React UI library.

16 lines (15 loc) 653 B
import React, { PropsWithChildren } from 'react'; import { ZeitUIThemes } from '../themes/index'; import { DeepPartial } from '../../utils/types'; declare type PartialTheme = DeepPartial<ZeitUIThemes>; export declare type ThemeParam = PartialTheme | ((theme: PartialTheme) => PartialTheme) | undefined; export interface Props { theme?: ThemeParam; } export interface MergeObject { [key: string]: any; } export declare const isObject: (target: any) => boolean; export declare const deepMergeObject: <T extends MergeObject>(source: T, target: T) => T; declare const ThemeProvider: React.FC<PropsWithChildren<Props>>; export default ThemeProvider;