@alfalab/core-components-input-autocomplete 9.4.6 → 10.0.0
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.
- package/Component-425c8522.d.ts +1 -1
- package/Component-5e1b8383.d.ts +3 -3
- package/Component-63dec22f.d.ts +11 -0
- package/Component-89a3cf4c.d.ts +6 -0
- package/Component-96988a65.d.ts +9 -0
- package/Component-e81c389f.d.ts +5 -0
- package/Component-ebda875c.d.ts +222 -54
- package/Component-f12ee135.d.ts +5 -4
- package/Component.desktop-ebda875c.d.ts +6 -0
- package/Component.desktop.d.ts +11 -65
- package/Component.desktop.js +4 -4
- package/Component.mobile-f12ee135.d.ts +41 -0
- package/{Component.mobile-b2c0420d.d.ts → Component.mobile-f1f15074.d.ts} +1 -2
- package/Component.mobile.d.ts +7 -7
- package/Component.mobile.js +7 -7
- package/Component.modal.mobile.d.ts +8 -40
- package/Component.modal.mobile.js +5 -5
- package/Component.responsive.d.ts +12 -70
- package/Component.responsive.js +7 -5
- package/autocomplete-field/Component.d.ts +3 -2
- package/autocomplete-field/Component.js +3 -3
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-field/index.js +1 -1
- package/autocomplete-mobile-field/Component.d.ts +5 -4
- package/autocomplete-mobile-field/Component.js +7 -7
- package/autocomplete-mobile-field/index.css +8 -8
- package/autocomplete-mobile-field/index.js +1 -1
- package/cssm/Component-5e1b8383.d.ts +70 -3
- package/{Component-3885b0d7.d.ts → cssm/Component-63dec22f.d.ts} +24 -26
- package/cssm/Component-89a3cf4c.d.ts +6 -0
- package/cssm/Component-bdb4c6b9.d.ts +11 -7
- package/cssm/Component-e81c389f.d.ts +5 -0
- package/cssm/Component-ebda875c.d.ts +9 -98
- package/cssm/Component.desktop-ebda875c.d.ts +6 -0
- package/cssm/Component.desktop.d.ts +11 -65
- package/cssm/Component.desktop.js +4 -4
- package/cssm/Component.mobile-06ffd24b.d.ts +41 -0
- package/cssm/Component.mobile-ebda875c.d.ts +6 -0
- package/{esm/Component.mobile-e81c389f.d.ts → cssm/Component.mobile-f1f15074.d.ts} +2 -6
- package/cssm/Component.mobile.d.ts +6 -6
- package/cssm/Component.mobile.js +6 -6
- package/cssm/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/cssm/Component.modal.mobile.d.ts +7 -39
- package/cssm/Component.modal.mobile.js +4 -4
- package/cssm/Component.responsive.d.ts +11 -69
- package/cssm/Component.responsive.js +6 -4
- package/cssm/autocomplete-field/Component.d.ts +3 -2
- package/cssm/autocomplete-field/Component.js +2 -2
- package/cssm/autocomplete-field/index.js +1 -1
- package/cssm/autocomplete-mobile-field/Component.d.ts +5 -4
- package/cssm/autocomplete-mobile-field/Component.js +6 -6
- package/cssm/autocomplete-mobile-field/index.js +1 -1
- package/cssm/component-89a3cf4c.d.ts +44 -0
- package/cssm/desktop-63dec22f.d.ts +6 -0
- package/cssm/desktop.d.ts +1 -1
- package/cssm/desktop.js +2 -2
- package/{esm/hook-b4e70cb0.d.ts → cssm/hook-9ea9e32c.d.ts} +12 -10
- package/cssm/{index-3885b0d7.d.ts → index-89a3cf4c.d.ts} +2 -2
- package/cssm/index-bdb4c6b9.d.ts +2 -172
- package/cssm/index-e81c389f.d.ts +1 -1
- package/cssm/index-ebda875c.d.ts +94 -56
- package/cssm/index-f12ee135.d.ts +3 -271
- package/cssm/index.d.ts +2 -3
- package/cssm/index.js +9 -8
- package/cssm/mobile-06ffd24b.d.ts +5 -0
- package/cssm/mobile-96988a65.d.ts +3 -0
- package/cssm/mobile.d.ts +2 -2
- package/cssm/mobile.js +3 -4
- package/cssm/shared-4cd3936b.d.ts +93 -0
- package/cssm/types-d9f9bbcc.d.ts +259 -0
- package/cssm/typings-5e1b8383.d.ts +1 -1
- package/cssm/typings-9211a437.d.ts +95 -0
- package/cssm/utils-1574ad8b.d.ts +29 -0
- package/cssm/utils-49cc3c24.d.ts +8 -0
- package/desktop-63dec22f.d.ts +6 -0
- package/desktop.d.ts +1 -1
- package/desktop.js +2 -2
- package/esm/Component-5e1b8383.d.ts +70 -3
- package/{modern/Component-3885b0d7.d.ts → esm/Component-63dec22f.d.ts} +24 -26
- package/esm/Component-89a3cf4c.d.ts +6 -0
- package/esm/Component-bdb4c6b9.d.ts +11 -7
- package/esm/Component-e81c389f.d.ts +5 -0
- package/esm/Component-ebda875c.d.ts +9 -98
- package/esm/Component.desktop-ebda875c.d.ts +6 -0
- package/esm/Component.desktop.d.ts +11 -65
- package/esm/Component.desktop.js +2 -2
- package/esm/Component.mobile-06ffd24b.d.ts +41 -0
- package/esm/Component.mobile-ebda875c.d.ts +6 -0
- package/{cssm/Component.mobile-e81c389f.d.ts → esm/Component.mobile-f1f15074.d.ts} +2 -6
- package/esm/Component.mobile.d.ts +6 -6
- package/esm/Component.mobile.js +6 -6
- package/esm/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/esm/Component.modal.mobile.d.ts +7 -39
- package/esm/Component.modal.mobile.js +5 -5
- package/esm/Component.responsive.d.ts +11 -69
- package/esm/Component.responsive.js +7 -5
- package/esm/autocomplete-field/Component.d.ts +3 -2
- package/esm/autocomplete-field/Component.js +4 -4
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-field/index.js +1 -1
- package/esm/autocomplete-mobile-field/Component.d.ts +5 -4
- package/esm/autocomplete-mobile-field/Component.js +7 -7
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/esm/autocomplete-mobile-field/index.js +1 -1
- package/esm/component-89a3cf4c.d.ts +44 -0
- package/esm/desktop-63dec22f.d.ts +6 -0
- package/esm/desktop.d.ts +1 -1
- package/esm/desktop.js +2 -2
- package/{hook-b4e70cb0.d.ts → esm/hook-9ea9e32c.d.ts} +12 -10
- package/esm/{index-3885b0d7.d.ts → index-89a3cf4c.d.ts} +2 -2
- package/esm/index-bdb4c6b9.d.ts +2 -172
- package/esm/index-e81c389f.d.ts +1 -1
- package/esm/index-ebda875c.d.ts +94 -56
- package/esm/index-f12ee135.d.ts +3 -271
- package/esm/index.d.ts +2 -3
- package/esm/index.js +10 -8
- package/esm/mobile-06ffd24b.d.ts +5 -0
- package/esm/mobile-96988a65.d.ts +3 -0
- package/esm/mobile.css +4 -4
- package/esm/mobile.d.ts +2 -2
- package/esm/mobile.js +4 -5
- package/esm/{mobile.module-fc605397.js → mobile.module-ed5594fa.js} +1 -1
- package/esm/shared-4cd3936b.d.ts +93 -0
- package/esm/types-d9f9bbcc.d.ts +259 -0
- package/esm/typings-5e1b8383.d.ts +1 -1
- package/esm/typings-9211a437.d.ts +95 -0
- package/esm/utils-1574ad8b.d.ts +29 -0
- package/esm/utils-49cc3c24.d.ts +8 -0
- package/{cssm/hook-b4e70cb0.d.ts → hook-9ea9e32c.d.ts} +11 -9
- package/hook-ebda875c.d.ts +48 -0
- package/{index-3885b0d7.d.ts → index-89a3cf4c.d.ts} +2 -2
- package/index-e81c389f.d.ts +1 -1
- package/index-ebda875c.d.ts +14 -80
- package/index-f12ee135.d.ts +45 -9
- package/index.d.ts +2 -3
- package/index.js +10 -9
- package/mobile-45dc17c6.d.ts +47 -0
- package/mobile-96988a65.d.ts +6 -0
- package/mobile.css +4 -4
- package/mobile.d.ts +2 -2
- package/mobile.js +4 -5
- package/{mobile.module-4a636c52.js → mobile.module-4fb8c86a.js} +1 -1
- package/modern/Component-5e1b8383.d.ts +70 -3
- package/{esm/Component-3885b0d7.d.ts → modern/Component-63dec22f.d.ts} +24 -26
- package/modern/Component-89a3cf4c.d.ts +6 -0
- package/modern/Component-bdb4c6b9.d.ts +11 -7
- package/modern/Component-e81c389f.d.ts +5 -0
- package/modern/Component-ebda875c.d.ts +9 -98
- package/modern/Component.desktop-ebda875c.d.ts +6 -0
- package/modern/Component.desktop.d.ts +11 -65
- package/modern/Component.desktop.js +2 -2
- package/modern/Component.mobile-06ffd24b.d.ts +41 -0
- package/modern/Component.mobile-ebda875c.d.ts +6 -0
- package/modern/{Component.mobile-e81c389f.d.ts → Component.mobile-f1f15074.d.ts} +2 -6
- package/modern/Component.mobile.d.ts +6 -6
- package/modern/Component.mobile.js +6 -6
- package/modern/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/modern/Component.modal.mobile.d.ts +7 -39
- package/modern/Component.modal.mobile.js +5 -5
- package/modern/Component.responsive.d.ts +11 -69
- package/modern/Component.responsive.js +7 -5
- package/modern/autocomplete-field/Component.d.ts +3 -2
- package/modern/autocomplete-field/Component.js +4 -4
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-field/index.js +1 -1
- package/modern/autocomplete-mobile-field/Component.d.ts +5 -4
- package/modern/autocomplete-mobile-field/Component.js +7 -7
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/autocomplete-mobile-field/index.js +1 -1
- package/modern/component-89a3cf4c.d.ts +44 -0
- package/modern/desktop-63dec22f.d.ts +6 -0
- package/modern/desktop.d.ts +1 -1
- package/modern/desktop.js +2 -2
- package/modern/{hook-b4e70cb0.d.ts → hook-9ea9e32c.d.ts} +12 -10
- package/modern/{index-3885b0d7.d.ts → index-89a3cf4c.d.ts} +2 -2
- package/modern/index-bdb4c6b9.d.ts +2 -172
- package/modern/index-e81c389f.d.ts +1 -1
- package/modern/index-ebda875c.d.ts +94 -56
- package/modern/index-f12ee135.d.ts +3 -271
- package/modern/index.d.ts +2 -3
- package/modern/index.js +10 -8
- package/modern/mobile-06ffd24b.d.ts +5 -0
- package/modern/mobile-96988a65.d.ts +3 -0
- package/modern/mobile.css +4 -4
- package/modern/mobile.d.ts +2 -2
- package/modern/mobile.js +4 -5
- package/modern/{mobile.module-58dac562.js → mobile.module-a255d4ec.js} +1 -1
- package/modern/shared-4cd3936b.d.ts +93 -0
- package/modern/types-d9f9bbcc.d.ts +259 -0
- package/modern/typings-5e1b8383.d.ts +1 -1
- package/modern/typings-9211a437.d.ts +95 -0
- package/modern/utils-1574ad8b.d.ts +29 -0
- package/modern/utils-49cc3c24.d.ts +8 -0
- package/package.json +25 -5
- package/shared-4cd3936b.d.ts +8 -0
- package/src/Component.desktop.tsx +89 -0
- package/src/Component.mobile.tsx +251 -0
- package/src/Component.modal.mobile.tsx +227 -0
- package/src/Component.responsive.tsx +42 -0
- package/src/autocomplete-field/Component.tsx +91 -0
- package/src/autocomplete-field/index.module.css +3 -0
- package/src/autocomplete-field/index.ts +1 -0
- package/src/autocomplete-mobile-field/Component.tsx +74 -0
- package/src/autocomplete-mobile-field/index.module.css +37 -0
- package/src/autocomplete-mobile-field/index.ts +1 -0
- package/src/desktop.ts +1 -0
- package/src/index.ts +4 -0
- package/src/mobile.module.css +14 -0
- package/src/mobile.ts +5 -0
- package/typings-5e1b8383.d.ts +1 -1
- package/typings-9211a437.d.ts +95 -0
- package/Component-b4e70cb0.d.ts +0 -22
- package/cssm/Component-3885b0d7.d.ts +0 -169
- package/cssm/Component-425c8522.d.ts +0 -53
- package/cssm/Component-aed0af6e.d.ts +0 -11
- package/cssm/Component-b4e70cb0.d.ts +0 -22
- package/cssm/Component-f12ee135.d.ts +0 -71
- package/cssm/index-3e68f8db.d.ts +0 -5
- package/cssm/responsive.d.ts +0 -2
- package/cssm/responsive.js +0 -26
- package/esm/Component-425c8522.d.ts +0 -53
- package/esm/Component-aed0af6e.d.ts +0 -11
- package/esm/Component-b4e70cb0.d.ts +0 -22
- package/esm/Component-f12ee135.d.ts +0 -71
- package/esm/index-3e68f8db.d.ts +0 -5
- package/esm/responsive.d.ts +0 -2
- package/esm/responsive.js +0 -16
- package/index-3e68f8db.d.ts +0 -5
- package/modern/Component-425c8522.d.ts +0 -53
- package/modern/Component-aed0af6e.d.ts +0 -11
- package/modern/Component-b4e70cb0.d.ts +0 -22
- package/modern/Component-f12ee135.d.ts +0 -71
- package/modern/index-3e68f8db.d.ts +0 -5
- package/modern/responsive.d.ts +0 -2
- package/modern/responsive.js +0 -15
- package/responsive.d.ts +0 -2
- package/responsive.js +0 -24
|
@@ -1,101 +1,12 @@
|
|
|
1
|
-
/// <reference types="react-transition-group" />
|
|
2
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Управление состоянием поповера (открыт/закрыт)
|
|
12
|
-
*/
|
|
13
|
-
open: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Элемент, относительного которого появляется поповер
|
|
16
|
-
*/
|
|
17
|
-
anchorElement: RefElement;
|
|
18
|
-
/**
|
|
19
|
-
* Использовать ширину родительского элемента
|
|
20
|
-
*/
|
|
21
|
-
useAnchorWidth?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Позиционирование поповера
|
|
24
|
-
*/
|
|
25
|
-
position?: Position;
|
|
26
|
-
/**
|
|
27
|
-
* Запрещает поповеру менять свою позицию.
|
|
28
|
-
* Например, если места снизу недостаточно,то он все равно будет показан снизу
|
|
29
|
-
*/
|
|
30
|
-
preventFlip?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Запрещает поповеру менять свою позицию, если он не влезает в видимую область.
|
|
33
|
-
*/
|
|
34
|
-
preventOverflow?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Позволяет поповеру подствраивать свою высоту под границы экрана, если из-за величины контента он выходит за рамки видимой области экрана
|
|
37
|
-
*/
|
|
38
|
-
availableHeight?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Если `true`, будет отрисована стрелочка
|
|
41
|
-
*/
|
|
42
|
-
withArrow?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Смещение поповера.
|
|
45
|
-
* Если позиционирование top, bottom, то [x, y].
|
|
46
|
-
* Если позиционирование left, right то [y, x].
|
|
47
|
-
*/
|
|
48
|
-
offset?: [number, number];
|
|
49
|
-
/**
|
|
50
|
-
* Дополнительный класс для поповера
|
|
51
|
-
*/
|
|
52
|
-
popperClassName?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Дополнительный класс для стрелочки
|
|
55
|
-
*/
|
|
56
|
-
arrowClassName?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Функция, возвращающая контейнер, в который будет рендериться поповер
|
|
59
|
-
*/
|
|
60
|
-
getPortalContainer?: () => HTMLElement;
|
|
61
|
-
/**
|
|
62
|
-
* CSSTransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
63
|
-
*/
|
|
64
|
-
transition?: CSSTransitionProps;
|
|
65
|
-
/**
|
|
66
|
-
* Выставляет кастомное свойство transition-duration
|
|
67
|
-
*/
|
|
68
|
-
transitionDuration?: CSSProperties['transitionDuration'];
|
|
69
|
-
/**
|
|
70
|
-
* Рендерит компонент, обернутый в Transition
|
|
71
|
-
*/
|
|
72
|
-
withTransition?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
75
|
-
*/
|
|
76
|
-
dataTestId?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Хранит функцию, с помощью которой можно обновить положение компонента
|
|
79
|
-
*/
|
|
80
|
-
update?: MutableRefObject<() => void>;
|
|
81
|
-
/**
|
|
82
|
-
* Дополнительный класс
|
|
83
|
-
*/
|
|
84
|
-
className?: string;
|
|
85
|
-
/**
|
|
86
|
-
* z-index компонента
|
|
87
|
-
*/
|
|
88
|
-
zIndex?: number;
|
|
89
|
-
/**
|
|
90
|
-
* Если поповер не помещается в переданной позиции (position), он попробует открыться в другой позиции,
|
|
91
|
-
* по очереди для каждой позиции из этого списка.
|
|
92
|
-
* Если не передавать, то поповер открывается в противоположном направлении от переданного position.
|
|
93
|
-
*/
|
|
94
|
-
fallbackPlacements?: Position[];
|
|
95
|
-
/**
|
|
96
|
-
* Контент
|
|
97
|
-
*/
|
|
98
|
-
children?: ReactNode;
|
|
4
|
+
import { CheckboxProps } from "./index-ebda875c";
|
|
5
|
+
type HeaderProps = {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
onChange?: CheckboxProps['onChange'];
|
|
9
|
+
mobile?: boolean;
|
|
99
10
|
};
|
|
100
|
-
declare const
|
|
101
|
-
export {
|
|
11
|
+
declare const Header: React.FC<HeaderProps>;
|
|
12
|
+
export { HeaderProps, Header };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, FC, RefAttributes } from "react";
|
|
4
4
|
import { InputProps } from "@alfalab/core-components-input";
|
|
5
|
-
import { BaseSelectProps } from "./
|
|
5
|
+
import { BaseSelectProps } from "./shared-4cd3936b";
|
|
6
6
|
type InputAutocompleteDesktopProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Компонент ввода значения
|
|
@@ -37,74 +37,20 @@ declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<Omit<Bas
|
|
|
37
37
|
/**
|
|
38
38
|
* Компонент ввода значения
|
|
39
39
|
*/
|
|
40
|
-
Input?: React.FC<Omit<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
46
|
-
colors?: "default" | "inverted" | undefined;
|
|
47
|
-
error?: React.ReactNode;
|
|
48
|
-
success?: boolean | undefined;
|
|
49
|
-
hint?: React.ReactNode;
|
|
50
|
-
label?: React.ReactNode;
|
|
51
|
-
labelView?: "inner" | "outer" | undefined;
|
|
52
|
-
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
53
|
-
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
54
|
-
leftAddons?: React.ReactNode;
|
|
55
|
-
rightAddons?: React.ReactNode;
|
|
56
|
-
bottomAddons?: React.ReactNode;
|
|
57
|
-
className?: string | undefined;
|
|
58
|
-
fieldClassName?: string | undefined;
|
|
59
|
-
inputClassName?: string | undefined;
|
|
60
|
-
labelClassName?: string | undefined;
|
|
61
|
-
addonsClassName?: string | undefined;
|
|
62
|
-
focusedClassName?: string | undefined;
|
|
63
|
-
filledClassName?: string | undefined;
|
|
64
|
-
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
65
|
-
value: string;
|
|
66
|
-
}) => void) | undefined;
|
|
67
|
-
onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
68
|
-
onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
69
|
-
onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
70
|
-
onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
71
|
-
dataTestId?: string | undefined;
|
|
40
|
+
Input?: React.FC<Omit<import("./autocomplete-field/Component").BaseInputProps, "FormControlComponent" | "colorStyles"> & {
|
|
41
|
+
breakpoint?: number | undefined;
|
|
42
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined; /**
|
|
43
|
+
* Пропсы, которые будут прокинуты в инпут
|
|
44
|
+
*/
|
|
72
45
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
73
46
|
/**
|
|
74
47
|
* Пропсы, которые будут прокинуты в инпут
|
|
75
48
|
*/
|
|
76
|
-
inputProps?: (Omit<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
82
|
-
colors?: "default" | "inverted" | undefined;
|
|
83
|
-
error?: React.ReactNode;
|
|
84
|
-
success?: boolean | undefined;
|
|
85
|
-
hint?: React.ReactNode;
|
|
86
|
-
label?: React.ReactNode;
|
|
87
|
-
labelView?: "inner" | "outer" | undefined;
|
|
88
|
-
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
89
|
-
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
90
|
-
leftAddons?: React.ReactNode;
|
|
91
|
-
rightAddons?: React.ReactNode;
|
|
92
|
-
bottomAddons?: React.ReactNode;
|
|
93
|
-
className?: string | undefined;
|
|
94
|
-
fieldClassName?: string | undefined;
|
|
95
|
-
inputClassName?: string | undefined;
|
|
96
|
-
labelClassName?: string | undefined;
|
|
97
|
-
addonsClassName?: string | undefined;
|
|
98
|
-
focusedClassName?: string | undefined;
|
|
99
|
-
filledClassName?: string | undefined;
|
|
100
|
-
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
101
|
-
value: string;
|
|
102
|
-
}) => void) | undefined;
|
|
103
|
-
onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
104
|
-
onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
105
|
-
onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
106
|
-
onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
107
|
-
dataTestId?: string | undefined;
|
|
49
|
+
inputProps?: (Omit<import("./autocomplete-field/Component").BaseInputProps, "FormControlComponent" | "colorStyles"> & {
|
|
50
|
+
breakpoint?: number | undefined;
|
|
51
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined; /**
|
|
52
|
+
* Пропсы, которые будут прокинуты в инпут
|
|
53
|
+
*/
|
|
108
54
|
} & Record<string, unknown>) | undefined;
|
|
109
55
|
/**
|
|
110
56
|
* Значение поля ввода
|
package/esm/Component.desktop.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { BaseSelect, OptionsList, Optgroup, Option } from '@alfalab/core-components-select/esm';
|
|
3
|
+
import { BaseSelect, OptionsList, Optgroup, Option } from '@alfalab/core-components-select/esm/shared';
|
|
4
4
|
import { AutocompleteField } from './autocomplete-field/Component.js';
|
|
5
5
|
import 'react-merge-refs';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '@alfalab/core-components-input/esm';
|
|
7
|
+
import '@alfalab/core-components-input/esm/desktop';
|
|
8
8
|
|
|
9
9
|
var InputAutocompleteDesktop = forwardRef(function (_a, ref) {
|
|
10
10
|
var _b = _a.OptionsList, OptionsList$1 = _b === void 0 ? OptionsList : _b, _c = _a.Optgroup, Optgroup$1 = _c === void 0 ? Optgroup : _c, _d = _a.Option, Option$1 = _d === void 0 ? Option : _d, Input = _a.Input, _e = _a.inputProps, inputProps = _e === void 0 ? {} : _e, onInput = _a.onInput, value = _a.value, success = _a.success, readOnly = _a.readOnly, _f = _a.closeOnSelect, closeOnSelect = _f === void 0 ? false : _f, options = _a.options, restProps = __rest(_a, ["OptionsList", "Optgroup", "Option", "Input", "inputProps", "onInput", "value", "success", "readOnly", "closeOnSelect", "options"]);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
+
import { UseSelectWithApplyProps } from "./hook-9ea9e32c";
|
|
6
|
+
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
7
|
+
type AdditionalMobileProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Футер
|
|
10
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
11
|
+
*/
|
|
12
|
+
footer?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Будет ли свайпаться шторка
|
|
15
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
16
|
+
*/
|
|
17
|
+
swipeable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Дополнительные пропсы шторки
|
|
20
|
+
*/
|
|
21
|
+
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Показывать кнопку очистки
|
|
24
|
+
*/
|
|
25
|
+
showClear?: UseSelectWithApplyProps['showClear'];
|
|
26
|
+
/**
|
|
27
|
+
* Показывать пункт "Выбрать все"
|
|
28
|
+
*/
|
|
29
|
+
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
30
|
+
/**
|
|
31
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
32
|
+
*/
|
|
33
|
+
showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
|
|
34
|
+
/**
|
|
35
|
+
* Использовать ли хук useSelectWithApply
|
|
36
|
+
*/
|
|
37
|
+
useWithApplyHook?: boolean;
|
|
38
|
+
};
|
|
39
|
+
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & AdditionalMobileProps;
|
|
40
|
+
declare const SelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & AdditionalMobileProps & React.RefAttributes<unknown>>;
|
|
41
|
+
export { AdditionalMobileProps, SelectMobileProps, SelectMobile };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
+
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
+
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
+
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ReactNode } from "react";
|
|
4
|
-
import { NavigationBarProps } from "./index-e81c389f";
|
|
5
4
|
import { ContentProps, ModalMobileProps } from "./typings-bdb4c6b9";
|
|
6
|
-
type HeaderProps = Omit<NavigationBarProps, "size" | "view" | "parentRef">;
|
|
7
|
-
declare const Header: FC<HeaderProps>;
|
|
8
5
|
declare const Content: FC<ContentProps>;
|
|
9
6
|
type FooterProps = {
|
|
10
7
|
/**
|
|
@@ -31,8 +28,7 @@ type FooterProps = {
|
|
|
31
28
|
declare const Footer: FC<FooterProps>;
|
|
32
29
|
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
33
30
|
Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
|
|
34
|
-
Header: React.FC<HeaderProps>;
|
|
31
|
+
Header: React.FC<import("./Component-e81c389f").HeaderProps>;
|
|
35
32
|
Footer: React.FC<FooterProps>;
|
|
36
|
-
Closer: React.FC<import("./index-e81c389f").CloserProps>;
|
|
37
33
|
};
|
|
38
|
-
export {
|
|
34
|
+
export { Content, FooterProps, Footer, ModalMobile };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
4
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
-
import {
|
|
6
|
-
import { BaseSelectChangePayload, BaseSelectProps } from "./
|
|
5
|
+
import { ButtonMobileProps } from "./mobile-96988a65";
|
|
6
|
+
import { BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
|
|
7
7
|
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
8
|
/**
|
|
9
9
|
* Обработчик выбора
|
|
@@ -40,11 +40,11 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
40
40
|
/**
|
|
41
41
|
* Дополнительные пропсы на кнопку "продолжить"
|
|
42
42
|
*/
|
|
43
|
-
continueButtonProps?:
|
|
43
|
+
continueButtonProps?: ButtonMobileProps;
|
|
44
44
|
/**
|
|
45
45
|
* Дополнительные пропсы на кнопку "отмена"
|
|
46
46
|
*/
|
|
47
|
-
cancelButtonProps?:
|
|
47
|
+
cancelButtonProps?: ButtonMobileProps;
|
|
48
48
|
/**
|
|
49
49
|
* Кастомный инпут
|
|
50
50
|
*/
|
|
@@ -86,11 +86,11 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<Base
|
|
|
86
86
|
/**
|
|
87
87
|
* Дополнительные пропсы на кнопку "продолжить"
|
|
88
88
|
*/
|
|
89
|
-
continueButtonProps?:
|
|
89
|
+
continueButtonProps?: ButtonMobileProps | undefined;
|
|
90
90
|
/**
|
|
91
91
|
* Дополнительные пропсы на кнопку "отмена"
|
|
92
92
|
*/
|
|
93
|
-
cancelButtonProps?:
|
|
93
|
+
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
94
94
|
/**
|
|
95
95
|
* Кастомный инпут
|
|
96
96
|
*/
|
package/esm/Component.mobile.js
CHANGED
|
@@ -3,12 +3,12 @@ import React, { useState, useRef, useMemo } from 'react';
|
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import throttle from 'lodash.throttle';
|
|
6
|
-
import {
|
|
6
|
+
import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
|
|
7
7
|
import { Input } from '@alfalab/core-components-input/esm';
|
|
8
|
-
import { SelectMobile } from '@alfalab/core-components-select/esm';
|
|
8
|
+
import { SelectMobile } from '@alfalab/core-components-select/esm/mobile';
|
|
9
9
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
10
|
-
import { s as styles } from './mobile.module-
|
|
11
|
-
import '@alfalab/core-components-form-control/esm';
|
|
10
|
+
import { s as styles } from './mobile.module-ed5594fa.js';
|
|
11
|
+
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
|
|
14
14
|
var SELECTED = [];
|
|
@@ -66,8 +66,8 @@ var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
|
|
|
66
66
|
var getBottomSheetProps = function () {
|
|
67
67
|
var Component = Input$1 || Input;
|
|
68
68
|
return __assign(__assign({ actionButton: (React.createElement("div", { className: styles.footer },
|
|
69
|
-
React.createElement(
|
|
70
|
-
React.createElement(
|
|
69
|
+
React.createElement(ButtonMobile, __assign({ block: true, view: 'secondary', size: 'm', onClick: handleCancel }, cancelButtonProps), "\u041E\u0442\u043C\u0435\u043D\u0430"),
|
|
70
|
+
React.createElement(ButtonMobile, __assign({ block: true, view: 'primary', size: 'm', onClick: handleApply }, continueButtonProps), "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"))), title: label || placeholder, bottomAddons: (React.createElement(Component, __assign({ block: true, clear: !!onClearFilter, onClear: onClearFilter, value: filter, onInput: onFilter, placeholder: placeholder, onFocus: handleInputFocus }, bottomSheetHeaderAddonsProps, { className: cn(styles.bottomAddonInput, bottomSheetHeaderAddonsProps.className), ref: mergeRefs([
|
|
71
71
|
bottomSheetInputRef,
|
|
72
72
|
bottomSheetHeaderAddonsProps.ref,
|
|
73
73
|
]) }))), initialHeight: 'full' }, bottomSheetProps), { containerProps: __assign({ onTouchMove: handleOptionsListTouchMove }, bottomSheetProps.containerProps) });
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ModalMobile } from "./Component.mobile-f1f15074";
|
|
4
|
+
import { UseSelectWithApplyProps } from "./hook-9ea9e32c";
|
|
5
|
+
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
6
|
+
type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Показывать кнопку очистки
|
|
9
|
+
*/
|
|
10
|
+
showClear?: UseSelectWithApplyProps['showClear'];
|
|
11
|
+
/**
|
|
12
|
+
* Показывать пункт "Выбрать все"
|
|
13
|
+
*/
|
|
14
|
+
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
15
|
+
/**
|
|
16
|
+
* Дополнительные пропсы шапки модалки
|
|
17
|
+
*/
|
|
18
|
+
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительные пропсы модалки
|
|
21
|
+
*/
|
|
22
|
+
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
23
|
+
/**
|
|
24
|
+
* Дополнительные пропсы футера модалки
|
|
25
|
+
*/
|
|
26
|
+
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
27
|
+
showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
|
|
28
|
+
/**
|
|
29
|
+
* Использовать ли хук useSelectWithApply
|
|
30
|
+
*/
|
|
31
|
+
useWithApplyHook?: boolean;
|
|
32
|
+
};
|
|
33
|
+
declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
34
|
+
/**
|
|
35
|
+
* Показывать кнопку очистки
|
|
36
|
+
*/
|
|
37
|
+
showClear?: UseSelectWithApplyProps['showClear'];
|
|
38
|
+
/**
|
|
39
|
+
* Показывать пункт "Выбрать все"
|
|
40
|
+
*/
|
|
41
|
+
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
42
|
+
/**
|
|
43
|
+
* Дополнительные пропсы шапки модалки
|
|
44
|
+
*/
|
|
45
|
+
modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Дополнительные пропсы модалки
|
|
48
|
+
*/
|
|
49
|
+
modalProps?: Partial<import("./typings-bdb4c6b9").ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Дополнительные пропсы футера модалки
|
|
52
|
+
*/
|
|
53
|
+
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
54
|
+
showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
|
|
55
|
+
/**
|
|
56
|
+
* Использовать ли хук useSelectWithApply
|
|
57
|
+
*/
|
|
58
|
+
useWithApplyHook?: boolean | undefined;
|
|
59
|
+
} & React.RefAttributes<unknown>>;
|
|
60
|
+
export { SelectModalMobileProps, SelectModalMobile };
|
|
@@ -1,41 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { UseSelectWithApplyProps } from "./hook-b4e70cb0";
|
|
8
|
-
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
9
|
-
type SelectModalMobileProps = Omit<BaseSelectProps, "Checkmark" | "onScroll"> & {
|
|
10
|
-
/**
|
|
11
|
-
* Показывать кнопку очистки
|
|
12
|
-
*/
|
|
13
|
-
showClear?: UseSelectWithApplyProps["showClear"];
|
|
14
|
-
/**
|
|
15
|
-
* Показывать пункт "Выбрать все"
|
|
16
|
-
*/
|
|
17
|
-
showSelectAll?: UseSelectWithApplyProps["showSelectAll"];
|
|
18
|
-
/**
|
|
19
|
-
* Дополнительные пропсы шапки модалки
|
|
20
|
-
*/
|
|
21
|
-
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
22
|
-
/**
|
|
23
|
-
* Дополнительные пропсы модалки
|
|
24
|
-
*/
|
|
25
|
-
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
26
|
-
/**
|
|
27
|
-
* Дополнительные пропсы футера модалки
|
|
28
|
-
*/
|
|
29
|
-
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
30
|
-
/*
|
|
31
|
-
* Показывать пункт "Выбрать все" в заголовке списка
|
|
32
|
-
*/
|
|
33
|
-
showHeaderWithSelectAll?: UseSelectWithApplyProps["showHeaderWithSelectAll"];
|
|
34
|
-
/**
|
|
35
|
-
* Использовать ли хук useSelectWithApply
|
|
36
|
-
*/
|
|
37
|
-
useWithApplyHook?: boolean;
|
|
38
|
-
};
|
|
4
|
+
import { ButtonMobileProps } from "./mobile-96988a65";
|
|
5
|
+
import { SelectModalMobileProps } from "./mobile-06ffd24b";
|
|
6
|
+
import { BaseSelectChangePayload } from "./shared-4cd3936b";
|
|
39
7
|
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
40
8
|
/**
|
|
41
9
|
* Обработчик выбора
|
|
@@ -68,11 +36,11 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
|
|
|
68
36
|
/**
|
|
69
37
|
* Дополнительные пропсы на кнопку "продолжить"
|
|
70
38
|
*/
|
|
71
|
-
continueButtonProps?:
|
|
39
|
+
continueButtonProps?: ButtonMobileProps;
|
|
72
40
|
/**
|
|
73
41
|
* Дополнительные пропсы на кнопку "отмена"
|
|
74
42
|
*/
|
|
75
|
-
cancelButtonProps?:
|
|
43
|
+
cancelButtonProps?: ButtonMobileProps;
|
|
76
44
|
/**
|
|
77
45
|
* Кастомный инпут
|
|
78
46
|
*/
|
|
@@ -110,11 +78,11 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit
|
|
|
110
78
|
/**
|
|
111
79
|
* Дополнительные пропсы на кнопку "продолжить"
|
|
112
80
|
*/
|
|
113
|
-
continueButtonProps?:
|
|
81
|
+
continueButtonProps?: ButtonMobileProps | undefined;
|
|
114
82
|
/**
|
|
115
83
|
* Дополнительные пропсы на кнопку "отмена"
|
|
116
84
|
*/
|
|
117
|
-
cancelButtonProps?:
|
|
85
|
+
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
118
86
|
/**
|
|
119
87
|
* Кастомный инпут
|
|
120
88
|
*/
|
|
@@ -3,12 +3,12 @@ import React, { useRef, useEffect } from 'react';
|
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import throttle from 'lodash.throttle';
|
|
6
|
-
import {
|
|
6
|
+
import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
|
|
7
7
|
import { Input } from '@alfalab/core-components-input/esm';
|
|
8
8
|
import { SelectModalMobile } from '@alfalab/core-components-select/esm/mobile';
|
|
9
9
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
10
|
-
import { s as styles } from './mobile.module-
|
|
11
|
-
import '@alfalab/core-components-form-control/esm';
|
|
10
|
+
import { s as styles } from './mobile.module-ed5594fa.js';
|
|
11
|
+
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
|
|
14
14
|
var InputAutocompleteModalMobile = React.forwardRef(function (_a, ref) {
|
|
@@ -58,8 +58,8 @@ var InputAutocompleteModalMobile = React.forwardRef(function (_a, ref) {
|
|
|
58
58
|
bottomAddonProps === null || bottomAddonProps === void 0 ? void 0 : bottomAddonProps.ref,
|
|
59
59
|
]) }))); };
|
|
60
60
|
var renderFooter = function () { return (React.createElement(React.Fragment, null,
|
|
61
|
-
React.createElement(
|
|
62
|
-
React.createElement(
|
|
61
|
+
React.createElement(ButtonMobile, __assign({ block: true, view: 'secondary', size: 'm', onClick: handleCancel }, cancelButtonProps), "\u041E\u0442\u043C\u0435\u043D\u0430"),
|
|
62
|
+
React.createElement(ButtonMobile, __assign({ block: true, view: 'primary', size: 'm', onClick: handleApply }, continueButtonProps), "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"))); };
|
|
63
63
|
return (React.createElement(SelectModalMobile, __assign({ ref: mergeRefs([ref, targetRef]), name: name, Field: AutocompleteMobileField, Arrow: Arrow, onOpen: handleOpen, onChange: handleChange, multiple: multiple, open: openProp !== null && openProp !== void 0 ? openProp : open, size: size, fieldProps: { value: value }, placeholder: placeholder, useWithApplyHook: false, modalProps: __assign(__assign({}, modalProps), { componentRef: modalScrollableRef }), modalHeaderProps: __assign(__assign({}, modalHeaderProps), { bottomAddons: renderBottomAddon() }), modalFooterProps: __assign(__assign({ sticky: true }, modalFooterProps), { children: renderFooter() }) }, restProps)));
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
4
|
-
import {
|
|
5
|
-
import { BaseSelectProps } from "./
|
|
4
|
+
import { ButtonMobileProps } from "./mobile-96988a65";
|
|
5
|
+
import { BaseSelectProps } from "./shared-4cd3936b";
|
|
6
6
|
import { InputAutocompleteDesktopProps } from "./Component.desktop";
|
|
7
7
|
import { InputAutocompleteMobileProps } from "./Component.mobile";
|
|
8
8
|
type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAutocompleteMobileProps & {
|
|
@@ -14,71 +14,13 @@ type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAut
|
|
|
14
14
|
};
|
|
15
15
|
type InputAutocompleteMedia = 'desktop' | 'mobile';
|
|
16
16
|
declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "nativeSelect" | "Field"> & {
|
|
17
|
-
Input?: React.FC<Omit<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
block?: boolean | undefined;
|
|
21
|
-
clear?: boolean | undefined;
|
|
22
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
23
|
-
colors?: "default" | "inverted" | undefined;
|
|
24
|
-
error?: React.ReactNode;
|
|
25
|
-
success?: boolean | undefined;
|
|
26
|
-
hint?: React.ReactNode;
|
|
27
|
-
label?: React.ReactNode;
|
|
28
|
-
labelView?: "inner" | "outer" | undefined;
|
|
29
|
-
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
30
|
-
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
31
|
-
leftAddons?: React.ReactNode;
|
|
32
|
-
rightAddons?: React.ReactNode;
|
|
33
|
-
bottomAddons?: React.ReactNode;
|
|
34
|
-
className?: string | undefined;
|
|
35
|
-
fieldClassName?: string | undefined;
|
|
36
|
-
inputClassName?: string | undefined;
|
|
37
|
-
labelClassName?: string | undefined;
|
|
38
|
-
addonsClassName?: string | undefined;
|
|
39
|
-
focusedClassName?: string | undefined;
|
|
40
|
-
filledClassName?: string | undefined;
|
|
41
|
-
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
42
|
-
value: string;
|
|
43
|
-
}) => void) | undefined;
|
|
44
|
-
onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
45
|
-
onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
46
|
-
onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
47
|
-
onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
48
|
-
dataTestId?: string | undefined;
|
|
17
|
+
Input?: React.FC<Omit<import("./autocomplete-field/Component").BaseInputProps, "FormControlComponent" | "colorStyles"> & {
|
|
18
|
+
breakpoint?: number | undefined;
|
|
19
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
49
20
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
50
|
-
inputProps?: (Omit<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
block?: boolean | undefined;
|
|
54
|
-
clear?: boolean | undefined;
|
|
55
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
56
|
-
colors?: "default" | "inverted" | undefined;
|
|
57
|
-
error?: React.ReactNode;
|
|
58
|
-
success?: boolean | undefined;
|
|
59
|
-
hint?: React.ReactNode;
|
|
60
|
-
label?: React.ReactNode;
|
|
61
|
-
labelView?: "inner" | "outer" | undefined;
|
|
62
|
-
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
63
|
-
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
64
|
-
leftAddons?: React.ReactNode;
|
|
65
|
-
rightAddons?: React.ReactNode;
|
|
66
|
-
bottomAddons?: React.ReactNode;
|
|
67
|
-
className?: string | undefined;
|
|
68
|
-
fieldClassName?: string | undefined;
|
|
69
|
-
inputClassName?: string | undefined;
|
|
70
|
-
labelClassName?: string | undefined;
|
|
71
|
-
addonsClassName?: string | undefined;
|
|
72
|
-
focusedClassName?: string | undefined;
|
|
73
|
-
filledClassName?: string | undefined;
|
|
74
|
-
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
75
|
-
value: string;
|
|
76
|
-
}) => void) | undefined;
|
|
77
|
-
onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
78
|
-
onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
79
|
-
onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
80
|
-
onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
81
|
-
dataTestId?: string | undefined;
|
|
21
|
+
inputProps?: (Omit<import("./autocomplete-field/Component").BaseInputProps, "FormControlComponent" | "colorStyles"> & {
|
|
22
|
+
breakpoint?: number | undefined;
|
|
23
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
82
24
|
} & Record<string, unknown>) | undefined;
|
|
83
25
|
value?: string | undefined;
|
|
84
26
|
readOnly?: boolean | undefined;
|
|
@@ -86,7 +28,7 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
86
28
|
onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
87
29
|
updatePopover?: React.MutableRefObject<() => void> | undefined;
|
|
88
30
|
} & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
89
|
-
onChange: (payload: string | import("./
|
|
31
|
+
onChange: (payload: string | import("./shared-4cd3936b").BaseSelectChangePayload) => void;
|
|
90
32
|
onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
91
33
|
value?: string | undefined;
|
|
92
34
|
filter?: string | undefined;
|
|
@@ -94,8 +36,8 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
94
36
|
onClearFilter?: (() => void) | undefined;
|
|
95
37
|
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
96
38
|
bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
|
|
97
|
-
continueButtonProps?:
|
|
98
|
-
cancelButtonProps?:
|
|
39
|
+
continueButtonProps?: ButtonMobileProps | undefined;
|
|
40
|
+
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
99
41
|
Input?: React.ElementType<any> | undefined;
|
|
100
42
|
} & {
|
|
101
43
|
/**
|