UNPKG

@devfamily/admiral

Version:

Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.

39 lines (38 loc) 862 B
declare type ColorInputType = string | RGB | RGBA | HSL | HSLA; interface Alpha { a: number; } interface RGB { r: number; g: number; b: number; } export interface RGBA extends RGB, Alpha { } interface HSL { h: number; s: number; l: number; } export interface HSLA extends HSL, Alpha { } export declare type ColorPickerSizeType = 'XS' | 'S' | 'M' | 'L'; export declare type ColorPickerProps = { value?: ColorInputType; onChange?: (color: ColorPickerResult) => void; onChangeComplete?: (color: ColorPickerResult) => void; initialOpen?: boolean; size?: ColorPickerSizeType; disabled?: boolean; alert?: boolean; appendTo?: () => HTMLElement; }; export interface ColorPickerResult { hex: string; hex8: string; rgb: RGBA; rgbString: string; hsl: HSLA; hslString: string; } export {};