mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Update Rebass to have a provider and fix Tooltip
This commit is contained in:
Vendored
+32
-1
@@ -505,7 +505,38 @@ type ToolbarClass = React.StatelessComponent<ToolbarProps>
|
||||
export declare const Toolbar: ToolbarClass;
|
||||
|
||||
export interface TooltipProps extends BaseProps<TooltipClass> {
|
||||
title?: string;
|
||||
text?: string;
|
||||
}
|
||||
type TooltipClass = React.StatelessComponent<TooltipProps>
|
||||
export declare const Tooltip: TooltipClass;
|
||||
|
||||
export interface FontWeights {
|
||||
normal?: number;
|
||||
bold?: number;
|
||||
}
|
||||
|
||||
export interface Fonts {
|
||||
[0]?: string;
|
||||
sans?: string;
|
||||
mono?: string;
|
||||
}
|
||||
|
||||
export interface Colors {}
|
||||
|
||||
export interface Theme {
|
||||
breakpoints?: string[];
|
||||
space?: number[];
|
||||
fontSizes?: number[];
|
||||
fontWeights?: FontWeights;
|
||||
fonts?: Fonts;
|
||||
shadows?: string[];
|
||||
radii?: number[];
|
||||
colors?: Colors;
|
||||
}
|
||||
|
||||
export interface ProviderProps {
|
||||
theme: Theme;
|
||||
}
|
||||
|
||||
type ProviderClass = React.StatelessComponent<ProviderProps>;
|
||||
export const Provider: ProviderClass;
|
||||
Reference in New Issue
Block a user