import * as React from 'react'; import { Button } from '../components/Button.js'; import { Select, SelectTrigger } from '../components/form/Select.js'; import { Input } from '../components/Input.js'; import { Popover, PopoverContent } from '../components/Popover.js'; import { Slider } from '../components/Slider.js'; import { type ColorFormat } from '../lib/color.js'; interface DivProps extends React.ComponentProps<'div'> { asChild?: boolean; } /** * @see https://gist.github.com/bkrmendy/f4582173f50fab209ddfef1377ab31e3 */ interface EyeDropper { open: (options?: { signal?: AbortSignal; }) => Promise<{ sRGBHex: string; }>; } declare global { interface Window { EyeDropper?: { new (): EyeDropper; }; } } type Direction = 'ltr' | 'rtl'; type ColorPickerContentProps = Omit, 'className' | 'style'> & { className?: string; style?: React.CSSProperties; }; interface ColorPickerFormatSelectProps extends Omit, 'onValueChange' | 'value'>, Pick, 'className'> { } interface ColorPickerInputProps extends Omit, 'className' | 'color' | 'onChange' | 'value'> { className?: string; withoutAlpha?: boolean; } interface ColorPickerProps extends Omit, Pick, 'defaultOpen' | 'modal' | 'open'> { asChild?: boolean; defaultFormat?: ColorFormat; defaultValue?: string; dir?: Direction; disabled?: boolean; format?: ColorFormat; inline?: boolean; name?: string; onFormatChange?: (format: ColorFormat) => void; onOpenChange?: (open: boolean) => void; onValueChange?: (value: string) => void; readOnly?: boolean; required?: boolean; value?: string; } type ColorPickerTriggerProps = React.ComponentProps & { asChild?: boolean; }; declare function ColorPicker(props: ColorPickerProps): React.JSX.Element; declare function ColorPickerAlphaSlider(props: React.ComponentProps): React.JSX.Element; declare function ColorPickerArea(props: DivProps): React.JSX.Element; declare function ColorPickerContent(props: ColorPickerContentProps): React.JSX.Element; declare function ColorPickerEyeDropper(props: React.ComponentProps): React.JSX.Element | null; declare function ColorPickerFormatSelect(props: ColorPickerFormatSelectProps): React.JSX.Element; declare function ColorPickerHueSlider(props: React.ComponentProps): React.JSX.Element; declare function ColorPickerInput(props: ColorPickerInputProps): React.JSX.Element | undefined; declare function ColorPickerSwatch(props: DivProps): React.JSX.Element; declare function ColorPickerTrigger(props: ColorPickerTriggerProps): React.JSX.Element; export { ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, type ColorPickerProps, ColorPickerSwatch, ColorPickerTrigger, }; //# sourceMappingURL=ColorPickerPrimitive.d.ts.map