@scbt-ecom/ui 0.18.1 → 0.19.1

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.
Files changed (46) hide show
  1. package/dist/{CustomLink-CcSUq55J.js → CustomLink-fkoWqN7e.js} +2181 -2179
  2. package/dist/CustomLink-fkoWqN7e.js.map +1 -0
  3. package/dist/shared/ui/formElements/CheckboxControl.d.ts +3 -0
  4. package/dist/shared/ui/formElements/InputControl.d.ts +3 -0
  5. package/dist/shared/ui/formElements/comboboxControl/ComboboxControl.d.ts +3 -0
  6. package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +15 -2
  7. package/dist/shared/ui/formElements/controlled/dayPickerControl/dayPickerControl.d.ts +12 -0
  8. package/dist/shared/ui/formElements/controlled/index.d.ts +15 -13
  9. package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +10 -1
  10. package/dist/shared/ui/formElements/controlled/input/MaskInputControl.d.ts +10 -1
  11. package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +11 -1
  12. package/dist/shared/ui/formElements/index.d.ts +2 -2
  13. package/dist/shared/ui/formElements/inputControlMask/InputControlMask.d.ts +3 -0
  14. package/dist/shared/ui/formElements/ui/fieldAttachment/FieldAttachment.d.ts +2 -1
  15. package/dist/shared/ui/formElements/ui/fieldAttachment/ui/IconSlot.d.ts +2 -2
  16. package/dist/shared/ui/{checkbox → formElements/uncontrolled/checkbox}/Checkbox.d.ts +2 -2
  17. package/dist/shared/ui/formElements/uncontrolled/checkbox/index.d.ts +1 -0
  18. package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +29 -0
  19. package/dist/shared/ui/formElements/uncontrolled/dayPicker/index.d.ts +1 -0
  20. package/dist/shared/ui/{input → formElements/uncontrolled/input}/Input.d.ts +2 -2
  21. package/dist/shared/ui/formElements/uncontrolled/input/index.d.ts +1 -0
  22. package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/MaskInput.d.ts +2 -2
  23. package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/index.d.ts +0 -1
  24. package/dist/shared/ui/{select → formElements/uncontrolled/select}/Select.d.ts +1 -1
  25. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/SelectItem.d.ts +2 -2
  26. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/SelectList.d.ts +1 -1
  27. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/Control.d.ts +1 -1
  28. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/hooks/useSelectController.d.ts +1 -1
  29. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/ui/Chip.d.ts +1 -1
  30. package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/ui/ChipList.d.ts +1 -1
  31. package/dist/shared/ui/formElements/uploaderControl/model/hooks/useUploader.d.ts +1 -1
  32. package/dist/shared/ui/index.d.ts +0 -3
  33. package/dist/ui.js +18757 -18660
  34. package/dist/ui.js.map +1 -1
  35. package/dist/widget.js +1 -1
  36. package/package.json +18 -8
  37. package/dist/CustomLink-CcSUq55J.js.map +0 -1
  38. package/dist/shared/ui/checkbox/index.d.ts +0 -1
  39. package/dist/shared/ui/formElements/FormControl.d.ts +0 -3
  40. /package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/model/mask/index.d.ts +0 -0
  41. /package/dist/shared/ui/{input → formElements/uncontrolled/maskInput}/model/mask/utils.d.ts +0 -0
  42. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/index.d.ts +0 -0
  43. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/hooks/index.d.ts +0 -0
  44. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/index.d.ts +0 -0
  45. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/control/ui/index.d.ts +0 -0
  46. /package/dist/shared/ui/{select → formElements/uncontrolled/select}/ui/index.d.ts +0 -0
@@ -16,5 +16,8 @@ export interface ICheckboxControlProps<T extends FieldValues> extends Omit<TComm
16
16
  label: React.ReactElement | string;
17
17
  disabled?: boolean;
18
18
  }
19
+ /**
20
+ * @deprecated For better performance use `Controlled.CheckboxControl` instead.
21
+ */
19
22
  export declare const CheckboxControl: <T extends FieldValues>({ control, label, helperText, disabled, classes, ...props }: ICheckboxControlProps<T>) => import("react/jsx-runtime").JSX.Element;
20
23
  export {};
@@ -11,5 +11,8 @@ export interface IInputControlProps<T extends FieldValues> extends TCommonFieldP
11
11
  disabled?: boolean;
12
12
  classes?: TInputControlClasses;
13
13
  }
14
+ /**
15
+ * @deprecated For better performance use `Controlled.InputControl` instead.
16
+ */
14
17
  export declare const InputControl: <T extends FieldValues>({ label, helperText, control, disabled, size, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, ...props }: IInputControlProps<T>) => import("react/jsx-runtime").JSX.Element;
15
18
  export {};
@@ -23,4 +23,7 @@ export interface IComboboxControlProps<T extends FieldValues, ValueType> extends
23
23
  onKeyDownIcon?: (event: React.KeyboardEvent) => unknown;
24
24
  customChange?: (...args: unknown[]) => void;
25
25
  }
26
+ /**
27
+ * @deprecated For better performance use `Controlled.SelectControl` instead.
28
+ */
26
29
  export declare const ComboboxControl: <T extends FieldValues, ValueType>({ options, control, defaultValue, isClearable, label, disabled, placeholder, helperText, noOptionsMessage, size, classes, isMulti, isSearchable, customChange, ...props }: IComboboxControlProps<T, ValueType>) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,28 @@
1
1
  import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { CheckboxBaseProps } from '../../..';
2
+ import { CheckboxBaseProps } from '../../uncontrolled';
3
3
  type CheckboxControlClasses = CheckboxBaseProps['classes'] & {
4
4
  container?: string;
5
5
  message?: string;
6
6
  label?: string;
7
7
  };
8
8
  type CheckboxControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<CheckboxBaseProps, 'classes'> & {
9
+ /**
10
+ * Контрол объект для управления полем
11
+ */
9
12
  control: Control<TFieldValues>;
13
+ /**
14
+ * Отображаемый лейбл
15
+ */
10
16
  children: React.ReactElement | string;
17
+ /**
18
+ * Дополнительные стили компонента
19
+ */
11
20
  classes?: CheckboxControlClasses;
21
+ /**
22
+ * Дополнительный текст
23
+ */
24
+ textHint?: string;
12
25
  };
13
- declare const InnerComponent: <TFieldValues extends FieldValues = FieldValues>({ control, classes, className, name, rules, shouldUnregister, defaultValue, disabled, children, ...props }: CheckboxControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
26
+ declare const InnerComponent: <TFieldValues extends FieldValues = FieldValues>({ control, classes, className, name, rules, shouldUnregister, defaultValue, disabled, children, textHint, ...props }: CheckboxControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
14
27
  export declare const CheckboxControl: typeof InnerComponent;
15
28
  export {};
@@ -5,9 +5,21 @@ type DayPickerControlClasses = MaskInputProps['classes'] & {
5
5
  message?: string;
6
6
  };
7
7
  export type DayPickerControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<CalendarProps, 'selected' | 'onSelect' | 'mode'> & {
8
+ /**
9
+ * Контрол объект для управления полем
10
+ */
8
11
  control: Control<TFieldValues>;
12
+ /**
13
+ * Свойства отображаемого Input поля
14
+ */
9
15
  inputProps: Omit<MaskInputProps, 'mask'>;
16
+ /**
17
+ * Дополнительный текст
18
+ */
10
19
  textHint?: string;
20
+ /**
21
+ * Дополнительные стили компонента
22
+ */
11
23
  classes?: DayPickerControlClasses;
12
24
  };
13
25
  declare const InnerComponent: <T extends FieldValues = FieldValues>({ control, name, disabled, rules, shouldUnregister, defaultValue, inputProps, textHint, classes, ...props }: DayPickerControlProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export declare const Controlled: {
2
- InputControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ className, control, name, defaultValue, disabled, rules, shouldUnregister, textHint, classes, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('../..').InputBaseProps, "classes"> & {
2
+ InputControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ className, control, name, defaultValue, disabled, rules, shouldUnregister, textHint, classes, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('..').InputBaseProps, "classes"> & {
3
3
  control: import('react-hook-form').Control<TFieldValues>;
4
4
  textHint?: string;
5
5
  classes?: {
@@ -10,7 +10,7 @@ export declare const Controlled: {
10
10
  message?: string;
11
11
  };
12
12
  }) => import("react/jsx-runtime").JSX.Element;
13
- MaskInputControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ className, control, name, defaultValue, disabled, rules, shouldUnregister, classes, textHint, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('../..').MaskInputProps, "classes"> & {
13
+ MaskInputControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ className, control, name, defaultValue, disabled, rules, shouldUnregister, classes, textHint, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('..').MaskInputProps, "classes"> & {
14
14
  control: import('react-hook-form').Control<TFieldValues>;
15
15
  classes?: {
16
16
  container?: string;
@@ -22,7 +22,7 @@ export declare const Controlled: {
22
22
  textHint?: string;
23
23
  }) => import("react/jsx-runtime").JSX.Element;
24
24
  DayPickerControl: <T extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, name, disabled, rules, shouldUnregister, defaultValue, inputProps, textHint, classes, ...props }: import('./dayPickerControl/dayPickerControl').DayPickerControlProps<T>) => import("react/jsx-runtime").JSX.Element;
25
- CheckboxControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, classes, className, name, rules, shouldUnregister, defaultValue, disabled, children, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('../..').CheckboxBaseProps, "classes"> & {
25
+ CheckboxControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, classes, className, name, rules, shouldUnregister, defaultValue, disabled, children, textHint, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('..').CheckboxBaseProps, "classes"> & {
26
26
  control: import('react-hook-form').Control<TFieldValues>;
27
27
  children: React.ReactElement | string;
28
28
  classes?: {
@@ -33,29 +33,31 @@ export declare const Controlled: {
33
33
  message?: string;
34
34
  label?: string;
35
35
  };
36
+ textHint?: string;
36
37
  }) => import("react/jsx-runtime").JSX.Element;
37
- SelectControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, classes, className, name, rules, shouldUnregister, disabled, defaultValue, returnValue, options, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('react-select').Props<import('../..').SelectItemOption, boolean>, "options" | "defaultValue" | "placeholder" | "isSearchable"> & Pick<import('../..').InputBaseProps, "invalid" | "label" | "attachmentProps"> & {
38
+ SelectControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, classes, className, name, rules, shouldUnregister, disabled, defaultValue, returnValue, options, textHint, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('react-select').Props<import('..').SelectItemOption, boolean>, "options" | "defaultValue" | "placeholder" | "isSearchable"> & Pick<import('..').InputBaseProps, "invalid" | "label" | "attachmentProps"> & {
38
39
  isSearchable?: boolean;
39
- returnValue?: (option: import('../..').SelectItemOption) => string;
40
- displayValue?: (option: import('../..').SelectItemOption) => string;
40
+ returnValue?: (option: import('..').SelectItemOption) => string;
41
+ displayValue?: (option: import('..').SelectItemOption) => string;
41
42
  classes?: {
42
43
  container?: string;
43
- control?: import('../../select/ui').ControlClasses;
44
- option?: import('../../select/ui').SelectItemClasses;
45
- list?: import('../../select/ui').SelectListClasses;
44
+ control?: import('../uncontrolled/select/ui').ControlClasses;
45
+ option?: import('../uncontrolled/select/ui').SelectItemClasses;
46
+ list?: import('../uncontrolled/select/ui').SelectListClasses;
46
47
  };
47
- options: import('../..').SelectItemOption[];
48
+ options: import('..').SelectItemOption[];
48
49
  filterOptionDisabled?: boolean;
49
50
  } & {
50
51
  control: import('react-hook-form').Control<TFieldValues>;
51
52
  classes?: {
52
53
  container?: string;
53
- control?: import('../../select/ui').ControlClasses;
54
- option?: import('../../select/ui').SelectItemClasses;
55
- list?: import('../../select/ui').SelectListClasses;
54
+ control?: import('../uncontrolled/select/ui').ControlClasses;
55
+ option?: import('../uncontrolled/select/ui').SelectItemClasses;
56
+ list?: import('../uncontrolled/select/ui').SelectListClasses;
56
57
  } & {
57
58
  container?: string;
58
59
  message?: string;
59
60
  };
61
+ textHint?: string;
60
62
  }) => import("react/jsx-runtime").JSX.Element;
61
63
  };
@@ -1,11 +1,20 @@
1
1
  import { Control, FieldValues, Path, UseControllerProps } from 'react-hook-form';
2
- import { InputBaseProps } from '../../../input';
2
+ import { InputBaseProps } from '../../uncontrolled';
3
3
  type InputControlClasses = InputBaseProps['classes'] & {
4
4
  message?: string;
5
5
  };
6
6
  type InputControlProps<TFieldValues extends FieldValues = FieldValues, TName extends Path<TFieldValues> = Path<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<InputBaseProps, 'classes'> & {
7
+ /**
8
+ * Контрол объект для управления полем
9
+ */
7
10
  control: Control<TFieldValues>;
11
+ /**
12
+ * Дополнительный текст
13
+ */
8
14
  textHint?: string;
15
+ /**
16
+ * Дополнительные стили компонента
17
+ */
9
18
  classes?: InputControlClasses;
10
19
  };
11
20
  declare const InnerComponent: <TFieldValues extends FieldValues = FieldValues>({ className, control, name, defaultValue, disabled, rules, shouldUnregister, textHint, classes, ...props }: InputControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,20 @@
1
1
  import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { MaskInputProps } from '../../../input';
2
+ import { MaskInputProps } from '../../uncontrolled';
3
3
  type MaskInputClasses = MaskInputProps['classes'] & {
4
4
  message?: string;
5
5
  };
6
6
  type MaskInputControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<MaskInputProps, 'classes'> & {
7
+ /**
8
+ * Контрол объект для управления полем
9
+ */
7
10
  control: Control<TFieldValues>;
11
+ /**
12
+ * Дополнительные стили компонента
13
+ */
8
14
  classes?: MaskInputClasses;
15
+ /**
16
+ * Дополнительный текст
17
+ */
9
18
  textHint?: string;
10
19
  };
11
20
  declare const InnerComponent: <TFieldValues extends FieldValues = FieldValues>({ className, control, name, defaultValue, disabled, rules, shouldUnregister, classes, textHint, ...props }: MaskInputControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
@@ -5,9 +5,19 @@ type SelectControlClasses = SelectBaseProps['classes'] & {
5
5
  message?: string;
6
6
  };
7
7
  type SelectControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & SelectBaseProps & {
8
+ /**
9
+ * Контрол объект для управления полем
10
+ */
8
11
  control: Control<TFieldValues>;
12
+ /**
13
+ * Дополнительные стили компонента
14
+ */
9
15
  classes?: SelectControlClasses;
16
+ /**
17
+ * Дополнительный текст
18
+ */
19
+ textHint?: string;
10
20
  };
11
- declare const InnerComponent: <TFieldValues extends FieldValues = FieldValues>({ control, classes, className, name, rules, shouldUnregister, disabled, defaultValue, returnValue, options, ...props }: SelectControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
21
+ declare const InnerComponent: <TFieldValues extends FieldValues = FieldValues>({ control, classes, className, name, rules, shouldUnregister, disabled, defaultValue, returnValue, options, textHint, ...props }: SelectControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
12
22
  export declare const SelectControl: typeof InnerComponent;
13
23
  export {};
@@ -11,5 +11,5 @@ export * from './uploaderControl';
11
11
  export * from './radioControl';
12
12
  export * from './inputCurrencyControl';
13
13
  export * from './InputOtpControl';
14
- export * from './FormControl';
15
- export { Controlled } from './controlled';
14
+ export * from './controlled';
15
+ export * from './uncontrolled';
@@ -25,5 +25,8 @@ export interface InputControlMaskProps<T extends FieldValues> extends TCommonFie
25
25
  mode?: TInputMode;
26
26
  actions?: TActions;
27
27
  }
28
+ /**
29
+ * @deprecated For better performance use `Controlled.MaskInput` instead.
30
+ */
28
31
  export declare const InputControlMask: <T extends FieldValues>({ format, allowEmptyFormatting, mask, control, actions, size, label, helperText, disabled, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, mode, ...props }: InputControlMaskProps<T>) => import("react/jsx-runtime").JSX.Element;
29
32
  export {};
@@ -15,5 +15,6 @@ export interface IFieldAttachmentProps {
15
15
  onClickIcon?: (...args: unknown[]) => unknown;
16
16
  onKeyDownIcon?: (event: React.KeyboardEvent) => unknown;
17
17
  classes?: TFieldAttachmentClasses;
18
+ disabled?: boolean;
18
19
  }
19
- export declare const FieldAttachment: ({ badge, invalid, isTouched, withValidateIcons, icon, onClickIcon, onKeyDownIcon, classes }: IFieldAttachmentProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const FieldAttachment: ({ badge, invalid, isTouched, withValidateIcons, icon, onClickIcon, onKeyDownIcon, classes, disabled }: IFieldAttachmentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { IFieldAttachmentProps, TFieldAttachmentClasses } from '../FieldAttachment';
2
- interface IIconSlotProps extends Pick<IFieldAttachmentProps, 'icon' | 'onClickIcon' | 'onKeyDownIcon'> {
2
+ interface IIconSlotProps extends Pick<IFieldAttachmentProps, 'icon' | 'onClickIcon' | 'onKeyDownIcon' | 'disabled'> {
3
3
  classes?: Pick<TFieldAttachmentClasses, 'icon'>;
4
4
  }
5
- export declare const IconSlot: ({ onClickIcon, onKeyDownIcon, icon, classes }: IIconSlotProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const IconSlot: ({ onClickIcon, onKeyDownIcon, icon, classes, disabled }: IIconSlotProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -1,8 +1,9 @@
1
- import { CheckboxProps as CheckboxPrimitiveProps } from '@radix-ui/react-checkbox';
1
+ import { CheckboxProps as CheckboxPrimitiveProps, CheckedState } from '@radix-ui/react-checkbox';
2
2
  type CheckboxBaseClasses = {
3
3
  root?: string;
4
4
  indicator?: string;
5
5
  };
6
+ export type { CheckedState };
6
7
  export type CheckboxBaseProps = CheckboxPrimitiveProps & {
7
8
  /**
8
9
  * Дополнительные стили внутренних компонентов
@@ -23,4 +24,3 @@ export declare const CheckboxBase: import('react').ForwardRefExoticComponent<Che
23
24
  */
24
25
  invalid?: boolean;
25
26
  } & import('react').RefAttributes<HTMLButtonElement>>;
26
- export {};
@@ -0,0 +1 @@
1
+ export { CheckboxBase, type CheckboxBaseProps, type CheckedState } from './Checkbox';
@@ -0,0 +1,29 @@
1
+ import { MaskInputProps } from '../../..';
2
+ export type DayPickerProps = Omit<MaskInputProps, 'value' | 'onChange' | 'mask'> & {
3
+ /**
4
+ * Указывает, открыт ли календарь по умолчанию
5
+ */
6
+ defaultOpen?: boolean;
7
+ /**
8
+ * Значение поля
9
+ */
10
+ value?: string;
11
+ /**
12
+ * Функция изменения значения
13
+ */
14
+ onChange?: (value: string) => void;
15
+ };
16
+ export declare const DayPickerBase: import('react').ForwardRefExoticComponent<Omit<MaskInputProps, "value" | "onChange" | "mask"> & {
17
+ /**
18
+ * Указывает, открыт ли календарь по умолчанию
19
+ */
20
+ defaultOpen?: boolean;
21
+ /**
22
+ * Значение поля
23
+ */
24
+ value?: string;
25
+ /**
26
+ * Функция изменения значения
27
+ */
28
+ onChange?: (value: string) => void;
29
+ } & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export { DayPickerBase, type DayPickerProps } from './DayPicker';
@@ -1,5 +1,5 @@
1
- import { FieldAttachment } from '../formElements/ui';
2
- import { DeepPartial } from '../../types';
1
+ import { FieldAttachment } from '../../ui';
2
+ import { DeepPartial } from '../../../../types';
3
3
  type InputBaseClasses = {
4
4
  container?: string;
5
5
  input?: string;
@@ -0,0 +1 @@
1
+ export { InputBase, type InputBaseProps } from './Input';
@@ -1,5 +1,5 @@
1
1
  import { useInputMask } from 'use-mask-input';
2
- import { InputBaseProps } from './Input';
2
+ import { InputBaseProps } from '../input';
3
3
  type Validator = (char: string) => boolean;
4
4
  type Casing = 'upper' | 'lower' | 'title';
5
5
  export type Definition = {
@@ -34,7 +34,7 @@ export declare const MaskInput: import('react').ForwardRefExoticComponent<Omit<i
34
34
  };
35
35
  label: string;
36
36
  invalid?: boolean;
37
- attachmentProps?: import('../../types').DeepPartial<import('../formElements/ui').IFieldAttachmentProps>;
37
+ attachmentProps?: import('../../../../types').DeepPartial<import('../../ui').IFieldAttachmentProps>;
38
38
  renderValues?: () => React.JSX.Element | null;
39
39
  } & {
40
40
  /**
@@ -1,2 +1 @@
1
- export { InputBase, type InputBaseProps } from './Input';
2
1
  export { MaskInput, type MaskInputProps } from './MaskInput';
@@ -1,6 +1,6 @@
1
1
  import { Props } from 'react-select';
2
2
  import { ControlClasses, SelectItemClasses, SelectItemOption, SelectListClasses } from './ui';
3
- import { InputBaseProps } from '..';
3
+ import { InputBaseProps } from '../../..';
4
4
  type SelectClasses = {
5
5
  container?: string;
6
6
  control?: ControlClasses;
@@ -1,6 +1,6 @@
1
1
  import { OptionProps } from 'react-select';
2
- import { DeepPartial } from '../../../types';
3
- import { FieldAttachment } from '../../formElements/ui';
2
+ import { DeepPartial } from '../../../../../types';
3
+ import { FieldAttachment } from '../../../ui';
4
4
  type FieldAttachmentProps = React.ComponentPropsWithoutRef<typeof FieldAttachment>;
5
5
  export type SelectItemOption = {
6
6
  id: string | number;
@@ -1,5 +1,5 @@
1
1
  import { MenuListProps } from 'react-select';
2
- import { SelectItemOption } from '../..';
2
+ import { SelectItemOption } from '../../../..';
3
3
  export type SelectListClasses = {
4
4
  container?: string;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { ControlProps as ControlPrimitiveProps } from 'react-select';
2
2
  import { SelectBaseProps } from '../../Select';
3
- import { InputBaseProps, SelectItemOption } from '../../..';
3
+ import { InputBaseProps, SelectItemOption } from '../../../../..';
4
4
  type ControlBaseProps = ControlPrimitiveProps<SelectItemOption, boolean>;
5
5
  export type ControlClasses = {
6
6
  control?: string;
@@ -1,5 +1,5 @@
1
1
  import { ActionMeta, InputActionMeta, OnChangeValue, PropsValue } from 'react-select';
2
- import { SelectItemOption } from '../../../..';
2
+ import { SelectItemOption } from '../../../../../..';
3
3
  type InputChangeHandler = (value: string, action: InputActionMeta) => void;
4
4
  type UseSelectControllerProps<Option> = {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { SelectItemOption } from '../../../..';
1
+ import { SelectItemOption } from '../../../../../..';
2
2
  type ControlChipClasses = {
3
3
  chip?: string;
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { PropsValue } from 'react-select';
3
3
  import { ControlChipProps } from './Chip';
4
- import { SelectItemOption } from '../../../..';
4
+ import { SelectItemOption } from '../../../../../..';
5
5
  type ControlChipListProps<Option extends SelectItemOption> = Omit<ControlChipProps, 'data'> & {
6
6
  values: PropsValue<Option>;
7
7
  inputValue: string;
@@ -5,7 +5,7 @@ export type TUseUploader = {
5
5
  onValueChange: (f: File[]) => void;
6
6
  };
7
7
  export declare const useUploader: ({ dropzoneOptions, controlledFiles, onValueChange }: TUseUploader) => {
8
- filesStatus: Record<string, "error" | "loading" | "success">;
8
+ filesStatus: Record<string, "error" | "success" | "loading">;
9
9
  removeFile: (index: number) => void;
10
10
  dropzoneState: import('react-dropzone').DropzoneState;
11
11
  };
@@ -7,9 +7,6 @@ export { Badge, type IBadgeProps } from './Badge';
7
7
  export { Loader, type ILoaderProps } from './Loader';
8
8
  export { Skeleton, type ISkeletonProps } from './Skeleton';
9
9
  export * from './calendar';
10
- export * from './input';
11
- export * from './select';
12
- export * from './checkbox';
13
10
  export * from './FloatButton';
14
11
  export * from './Ligal';
15
12
  export { Accordion, type IAccordionProps } from './accordion';