import * as React from 'react'; import { Button, ColorPicker as RACColorPicker, type ColorPickerProps as RACColorPickerProps, Dialog, DialogTrigger, Popover, } from 'react-aria-components'; import { ColorSwatch } from '../ColorSwatch/ColorSwatch'; import { ColorSlider } from '../ColorSlider/ColorSlider'; import { ColorArea } from '../ColorArea/ColorArea'; import { ColorField } from '../ColorField/ColorField'; export interface ColorPickerProps extends Omit { label?: string; children?: React.ReactNode; } export function ColorPicker({ label, children, ...props }: ColorPickerProps) { return ( {children || ( <> { if (e.key === 'Enter') { e.currentTarget.blur(); } }} /> )} ); }