1 | import { ComponentClass, FunctionComponent } from "react";
|
2 | import { HSLColor, RGBColor, ColorChangeHandler, Color, ColorResult } from "../../..";
|
3 |
|
4 | export type ColorWrapChangeHandler = (color: Color | ColorResult) => void;
|
5 |
|
6 | export interface InjectedColorProps {
|
7 | hex?: string | undefined;
|
8 | hsl?: HSLColor | undefined;
|
9 | rgb?: RGBColor | undefined;
|
10 | onChange?: ColorWrapChangeHandler | undefined;
|
11 | }
|
12 |
|
13 | export interface ExportedColorProps {
|
14 | color?: Color | undefined;
|
15 | onChange?: ColorChangeHandler | undefined;
|
16 | onChangeComplete?: ColorChangeHandler | undefined;
|
17 | }
|
18 |
|
19 | export default function CustomPicker<A>(component: ComponentClass<A & InjectedColorProps> | FunctionComponent<A & InjectedColorProps>): ComponentClass<A & ExportedColorProps>;
|