@kobalte/core
Version:
Unstyled components and primitives for building accessible web apps and design systems with SolidJS.
43 lines (38 loc) • 2.98 kB
TypeScript
import { F as FormControlDescription } from '../form-control-description-b958eb98.js';
export { a as ColorFieldDescriptionCommonProps, b as ColorFieldDescriptionOptions, c as ColorFieldDescriptionProps, d as ColorFieldDescriptionRenderProps } from '../form-control-description-b958eb98.js';
import { F as FormControlErrorMessage } from '../form-control-error-message-d659c9d2.js';
export { a as ColorFieldErrorMessageCommonProps, b as ColorFieldErrorMessageOptions, c as ColorFieldErrorMessageProps, d as ColorFieldErrorMessageRenderProps } from '../form-control-error-message-d659c9d2.js';
import { F as FormControlLabel } from '../form-control-label-88bbac32.js';
export { a as ColorFieldLabelCommonProps, b as ColorFieldLabelOptions, c as ColorFieldLabelProps, d as ColorFieldLabelRenderProps } from '../form-control-label-88bbac32.js';
import { JSX, ValidComponent } from 'solid-js';
import { ElementOf, PolymorphicProps } from '../polymorphic/index.js';
import { d as TextFieldInputOptions, a as TextFieldInputRenderProps, g as TextFieldRootOptions, i as TextFieldRootRenderProps } from '../text-field-root-51da0874.js';
import '@kobalte/utils';
interface ColorFieldInputOptions extends TextFieldInputOptions {
}
interface ColorFieldInputCommonProps<T extends HTMLElement = HTMLInputElement> {
onBlur: JSX.FocusEventHandlerUnion<T, FocusEvent>;
}
interface ColorFieldInputRenderProps extends ColorFieldInputCommonProps, TextFieldInputRenderProps {
autoComplete: "off";
autoCorrect: "off";
spellCheck: "false";
}
type ColorFieldInputProps<T extends ValidComponent | HTMLElement = HTMLElement> = ColorFieldInputOptions & Partial<ColorFieldInputCommonProps<ElementOf<T>>>;
declare function ColorFieldInput<T extends ValidComponent = "input">(props: PolymorphicProps<T, ColorFieldInputProps<T>>): JSX.Element;
interface ColorFieldRootOptions extends TextFieldRootOptions {
}
interface ColorFieldRootCommonProps<T extends HTMLElement = HTMLElement> {
id: string;
}
interface ColorFieldRootRenderProps extends ColorFieldRootCommonProps, TextFieldRootRenderProps {
}
type ColorFieldRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = ColorFieldRootOptions & Partial<ColorFieldRootCommonProps<ElementOf<T>>>;
declare function ColorFieldRoot<T extends ValidComponent = "div">(props: PolymorphicProps<T, ColorFieldRootProps<T>>): JSX.Element;
declare const ColorField: typeof ColorFieldRoot & {
Description: typeof FormControlDescription;
ErrorMessage: typeof FormControlErrorMessage;
Input: typeof ColorFieldInput;
Label: typeof FormControlLabel;
};
export { ColorField, ColorFieldInputCommonProps, ColorFieldInputOptions, ColorFieldInputProps, ColorFieldInputRenderProps, ColorFieldRootCommonProps, ColorFieldRootOptions, ColorFieldRootProps, ColorFieldRootRenderProps, FormControlDescription as Description, FormControlErrorMessage as ErrorMessage, ColorFieldInput as Input, FormControlLabel as Label, ColorFieldRoot as Root };