UNPKG

@zag-js/color-picker

Version:

Core logic for the color-picker widget implemented as a state machine

12 lines (9 loc) 494 B
import { Color, ColorChannelRange } from '@zag-js/color-utils'; import { ExtendedColorChannel } from '../color-picker.types.js'; import '@zag-js/core'; import '@zag-js/dismissable'; import '@zag-js/popper'; import '@zag-js/types'; declare function getChannelValue(color: Color, channel: ExtendedColorChannel | null | undefined): string; declare function getChannelRange(color: Color, channel: ExtendedColorChannel): ColorChannelRange | undefined; export { getChannelRange, getChannelValue };