UNPKG

ui-ingredients

Version:

Headless component library for Svelte powered by zag

15 lines (14 loc) 1.18 kB
import type { AreaProps, ChannelProps, ColorFormat, SwatchProps } from '@zag-js/color-picker'; import type { Accessor } from '../types.js'; import type { CreateColorPickerReturn } from './createColorPicker.svelte.js'; export declare const getColorPickerContext: () => Accessor<CreateColorPickerReturn>, setColorPickerContext: (context: Accessor<CreateColorPickerReturn>) => Accessor<CreateColorPickerReturn>; export declare const getColorPickerAreaPropsContext: () => Accessor<AreaProps>, setColorPickerAreaPropsContext: (context: Accessor<AreaProps>) => Accessor<AreaProps>; export declare const getColorPickerSwatchPropsContext: () => Accessor<SwatchProps>, setColorPickerSwatchPropsContext: (context: Accessor<SwatchProps>) => Accessor<SwatchProps>; export declare const getColorPickerFormatPropsContext: () => Accessor<{ format: ColorFormat; }> | null, setColorPickerFormatPropsContext: (context: Accessor<{ format: ColorFormat; }>) => Accessor<{ format: ColorFormat; }> | null; export declare const getColorPickerChannelPropsContext: () => Accessor<ChannelProps>, setColorPickerChannelPropsContext: (context: Accessor<ChannelProps>) => Accessor<ChannelProps>;