import React from 'react'; import { Component, PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core'; import Input, { InputProps, InputValueProps } from 'intergalactic/input'; import { ScrollAreaProps } from 'intergalactic/scroll-area'; import Tag, { TagProps, TagTextProps, TagContext } from 'intergalactic/tag'; /** @deprecated */ export interface IInputTagsValueProps extends InputTagsValueProps, UnknownProperties { } export type InputTagsValueProps = InputValueProps & {}; export type InputTagsSize = 'l' | 'm'; /** @deprecated */ export interface IInputTagsProps extends InputTagsProps, UnknownProperties { } export type InputTagsProps = Omit & ScrollAreaProps & { /** * Component size * @default m */ size?: InputTagsSize; /** * Event is called when tag needs to be added * @deprecated use `onAppend` instead */ onAdd?: (value: string, event: React.KeyboardEvent | React.ClipboardEvent) => void; /** Event is called when tags need to be added */ onAppend?: (values: string[], event: React.KeyboardEvent | React.ClipboardEvent) => void; /** Event is called when tags need to be removed */ onRemove?: (event: React.KeyboardEvent | React.MouseEvent) => void; /** List delimiter of tags. Don't forget to add 'Enter' and 'Tab' to hande corresponding hotkeys. * @default [',', ';', '|', 'Enter', 'Tab'] * */ delimiters?: string[]; locale?: string; }; /** @deprecated */ export interface IInputTagsTagProps extends InputTagsTagProps, UnknownProperties { } export type InputTagsTagProps = TagProps & { /** Property enabling the ability to remove a tag on click */ editable?: boolean; }; /** @deprecated */ export interface IInputTagsContext extends InputTagsContext, UnknownProperties { } export type InputTagsContext = InputTagsProps & { getValueProps: PropGetterFn; getTagProps: PropGetterFn; }; declare class Value extends Component { private _spacer; state: { width: string; }; componentDidMount(): void; componentDidUpdate(prevProps: any): void; handleChange: (value: string) => void; updateInputStyles: (value: string) => void; render(): React.ReactNode; } declare const _default: ((props: Intergalactic.InternalTypings.ComponentProps) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<"div", Intergalactic.InternalTypings.ComponentTag, InputTagsProps, InputTagsContext, never[]> & { Value: typeof Input.Value; TagsContainer: Intergalactic.Component<'ul'>; Tag: Intergalactic.Component<'div', InputTagsTagProps> & { Text: Intergalactic.Component<'div', TagProps, TagContext> & { Content: Intergalactic.Component<'div', TagTextProps>; }; Close: typeof Tag.Close; Addon: typeof Tag.Addon; Circle: typeof Tag.Circle; }; }; export default _default;