UNPKG

807 BTypeScriptView Raw
1import { Component, CSSProperties } from "react";
2import { ColorChangeHandler, ColorPickerProps } from "../../..";
3import { Classes } from "reactcss";
4
5export interface PhotoshopPickerStylesProps {
6 picker: CSSProperties;
7 head: CSSProperties;
8 body: CSSProperties;
9 saturation: CSSProperties;
10 hue: CSSProperties;
11 controls: CSSProperties;
12 top: CSSProperties;
13 previews: CSSProperties;
14 actions: CSSProperties;
15}
16
17export interface PhotoshopPickerProps extends ColorPickerProps<PhotoshopPicker> {
18 header?: string | undefined;
19 styles?: Partial<Classes<PhotoshopPickerStylesProps>> | undefined;
20 onAccept?: ColorChangeHandler | undefined;
21 onCancel?: ColorChangeHandler | undefined;
22}
23
24export default class PhotoshopPicker extends Component<PhotoshopPickerProps> { }