/** * * 2D saturation/brightness picker for `InputColor`. Captures pointer events on its root and * forwards them to the parent `InputColor` via inject. Renders an `InputColorAreaBackground` * + `InputColorAreaHandle` by default; override the slot to compose differently. * * @module inputcolorarea * */ import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core'; import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { PassThroughOptions } from 'primevue/passthrough'; import type { Component, VNode } from 'vue'; /** * Custom passthrough(pt) option type, used to forward attributes via {@link InputColorAreaPassThroughOptions}. */ export declare type InputColorAreaPassThroughOptionType = InputColorAreaPassThroughAttributes | ((options: InputColorAreaPassThroughMethodOptions) => InputColorAreaPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface InputColorAreaPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid properties. */ props: InputColorAreaProps; /** * Defines valid attributes. */ attrs: any; /** * Defines parent options. */ parent: any; /** * Defines passthrough(pt) options in global config. */ global: object | undefined; } /** * Custom passthrough(pt) options. * @see {@link InputColorAreaProps.pt} */ export interface InputColorAreaPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: InputColorAreaPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } /** * Custom passthrough attributes for each DOM elements. */ export interface InputColorAreaPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in InputColorArea component. */ export interface InputColorAreaProps { /** * Use to change the HTML tag of root element. * @defaultValue DIV */ as?: string | Component | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false */ asChild?: boolean | undefined; /** * It generates scoped CSS variables using design tokens for the component. */ dt?: DesignToken; /** * Used to pass attributes to DOM elements inside the component. * @type {InputColorAreaPassThroughOptions} */ pt?: PassThrough; /** * Used to configure passthrough(pt) options of the component. * @type {PassThroughOptions} */ ptOptions?: PassThroughOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false */ unstyled?: boolean; } /** * Defines valid slots in InputColorArea component. */ export interface InputColorAreaSlots { /** * Default slot, place the area background and handle (e.g. `InputColorAreaBackground` + `InputColorAreaHandle`) here. * @param {Object} scope - default slot's params. */ default(scope: { /** * Style class of the area root. */ class: string; /** * Attributes to spread on the consumer's root element. */ a11yAttrs: Record; }): VNode[]; } /** * Defines valid emits in InputColorArea component. */ export interface InputColorAreaEmitsOptions {} /** * Type alias for emits resolved from {@link InputColorAreaEmitsOptions}. */ export declare type InputColorAreaEmits = EmitFn; /** * **PrimeVue - InputColorArea** * * _2D saturation/brightness picker for `InputColor`._ * * [Live Demo](https://www.primevue.dev/inputcolor/) * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) * * @group Component * */ declare const InputColorArea: DefineComponent; declare module 'vue' { export interface GlobalComponents { InputColorArea: DefineComponent; } } export default InputColorArea;