@tk-kit/design-system 0.2.14 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,9 +17,11 @@ export interface DateRangePickerProps {
17
17
  mobileTitle?: string;
18
18
  mobileBtnLabel?: string;
19
19
  errorMessage?: string;
20
+ /** Разрешить перенос текста ошибки на две строки */
21
+ errorMessageMultiline?: boolean;
20
22
  errorPlaceholder?: string;
21
23
  state?: 'default' | 'error';
22
24
  disablePastDates?: boolean;
23
25
  forceBottom?: boolean;
24
26
  }
25
- export declare function DateRangePicker({ mode, value, onChange, onChangeSingle, onRangeChange, placeholder, disabled, className, id, errorMessage, state, withCalendarIcon, disablePastDates, mobileTitle, mobileBtnLabel, forceBottom, }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function DateRangePicker({ mode, value, onChange, onChangeSingle, onRangeChange, placeholder, disabled, className, id, errorMessage, errorMessageMultiline, state, withCalendarIcon, disablePastDates, mobileTitle, mobileBtnLabel, forceBottom, }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,8 @@ type DropdownProps<T extends string | string[]> = {
9
9
  placeholder?: string;
10
10
  label?: string;
11
11
  errorMessage?: string;
12
+ /** Разрешить перенос текста ошибки на две строки */
13
+ errorMessageMultiline?: boolean;
12
14
  errorPlaceholder?: string;
13
15
  errorDescription?: string;
14
16
  state?: 'default' | 'error';
@@ -20,5 +22,5 @@ type DropdownProps<T extends string | string[]> = {
20
22
  isMulti?: boolean;
21
23
  withSearch?: boolean;
22
24
  };
23
- export declare function Dropdown<T extends string | string[]>({ options, value, onChange, placeholder, label, errorMessage, errorDescription, state, variant, disabled, className, variantSpecial, displayMode, isMulti, withSearch, }: DropdownProps<T>): import("react/jsx-runtime").JSX.Element;
25
+ export declare function Dropdown<T extends string | string[]>({ options, value, onChange, placeholder, label, errorMessage, errorMessageMultiline, errorDescription, state, variant, disabled, className, variantSpecial, displayMode, isMulti, withSearch, }: DropdownProps<T>): import("react/jsx-runtime").JSX.Element;
24
26
  export {};
@@ -6,5 +6,7 @@ export type InputFieldProps = React.ComponentProps<typeof Input> & {
6
6
  variantSpecial?: string;
7
7
  hideClearButton?: boolean;
8
8
  showErrorMessage?: boolean;
9
+ /** Разрешить перенос текста ошибки на две строки (по умолчанию — одна строка) */
10
+ errorMessageMultiline?: boolean;
9
11
  };
10
12
  export declare const InputField: React.ForwardRefExoticComponent<Omit<InputFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -3,5 +3,6 @@ import { ComponentProps } from 'react';
3
3
  export type InputPhoneProps = Omit<ComponentProps<typeof InputField>, 'value' | 'onChange' | 'type' | 'defaultValue'> & {
4
4
  value?: string;
5
5
  onChange?: (value: string) => void;
6
+ dropdownPlacement?: 'bottom' | 'top' | 'auto';
6
7
  };
7
- export declare function InputPhone({ className, state, disabled, value, onChange, label, ...props }: InputPhoneProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function InputPhone({ className, state, disabled, value, onChange, label, dropdownPlacement, ...props }: InputPhoneProps): import("react/jsx-runtime").JSX.Element;
@@ -6,5 +6,7 @@ export type TextareaFieldProps = React.ComponentProps<typeof Textarea> & {
6
6
  variantSpecial?: string;
7
7
  hideClearButton?: boolean;
8
8
  showErrorMessage?: boolean;
9
+ /** Разрешить перенос текста ошибки на две строки (по умолчанию — одна строка) */
10
+ errorMessageMultiline?: boolean;
9
11
  };
10
12
  export declare const TextareaField: React.ForwardRefExoticComponent<Omit<TextareaFieldProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;