UNPKG

hongluan-ui

Version:
48 lines (47 loc) 2.44 kB
import type { PropType, ComputedRef, ExtractPropTypes, InjectionKey } from 'vue'; import type ColorPicker from './color-picker.vue'; export declare const colorPickerProps: { readonly ariaLabel: StringConstructor; readonly modelValue: StringConstructor; readonly id: StringConstructor; readonly showAlpha: BooleanConstructor; readonly colorFormat: StringConstructor; readonly disabled: BooleanConstructor; readonly size: { readonly type: PropType<import("hongluan-ui/es/utils").EpPropMergeType<PropType<"xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl">, unknown, unknown>>; readonly required: false; readonly validator: (val: unknown) => boolean; __epPropKey: true; }; readonly popperClass: import("hongluan-ui/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>; readonly popperOffset: import("hongluan-ui/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 4, boolean>; readonly label: { readonly type: PropType<string>; readonly required: false; readonly validator: (val: unknown) => boolean; __epPropKey: true; }; readonly tabindex: import("hongluan-ui/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>; readonly predefine: { readonly type: PropType<string[]>; readonly required: false; readonly validator: (val: unknown) => boolean; __epPropKey: true; }; readonly teleported: import("hongluan-ui/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>; readonly validateEvent: import("hongluan-ui/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>; }; export declare const colorPickerEmits: { "update:modelValue": (val: string | null) => boolean; change: (val: string | null) => boolean; activeChange: (val: string | null) => boolean; focus: (evt: FocusEvent) => boolean; blur: (evt: FocusEvent) => boolean; }; export declare type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>; export declare type ColorPickerEmits = typeof colorPickerEmits; export declare type ColorPickerInstance = InstanceType<typeof ColorPicker>; export interface ColorPickerContext { currentColor: ComputedRef<string>; } export declare const colorPickerContextKey: InjectionKey<ColorPickerContext>;