@alfalab/core-components-input-autocomplete 10.0.4 → 10.1.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.
- package/Component-2abb571d.d.ts +276 -0
- package/{Component-50136800.d.ts → Component-dd8ca091.d.ts} +1 -1
- package/{esm/Component.mobile-06ffd24b.d.ts → Component.mobile-ade26e99.d.ts} +2 -2
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.mobile.js +1 -1
- package/{esm/Component.modal.mobile-5e1b8383.d.ts → Component.modal.mobile-dd8ca091.d.ts} +2 -2
- package/Component.modal.mobile.d.ts +1 -1
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.js +1 -1
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/cssm/Component-2abb571d.d.ts +276 -0
- package/{esm/Component-5e1b8383.d.ts → cssm/Component-dd8ca091.d.ts} +1 -1
- package/{modern/Component.mobile-06ffd24b.d.ts → cssm/Component.mobile-ade26e99.d.ts} +2 -2
- package/{Component.modal.mobile-5e1b8383.d.ts → cssm/Component.modal.mobile-dd8ca091.d.ts} +2 -2
- package/cssm/Component.modal.mobile.d.ts +1 -1
- package/cssm/{hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
- package/{esm/index-50136800.d.ts → cssm/index-2abb571d.d.ts} +5 -1
- package/cssm/index-c76d6398.d.ts +1 -1
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/mobile-ade26e99.d.ts +5 -0
- package/cssm/shared-4cd3936b.d.ts +6 -6
- package/cssm/{typings-5e1b8383.d.ts → typings-dd8ca091.d.ts} +23 -1
- package/cssm/{utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
- package/desktop-63dec22f.d.ts +6 -2
- package/esm/Component-2abb571d.d.ts +276 -0
- package/{cssm/Component-5e1b8383.d.ts → esm/Component-dd8ca091.d.ts} +1 -1
- package/{cssm/Component.mobile-06ffd24b.d.ts → esm/Component.mobile-ade26e99.d.ts} +2 -2
- package/esm/Component.mobile.js +1 -1
- package/{modern/Component.modal.mobile-5e1b8383.d.ts → esm/Component.modal.mobile-dd8ca091.d.ts} +2 -2
- package/esm/Component.modal.mobile.d.ts +1 -1
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.js +1 -1
- package/esm/autocomplete-field/Component.js +1 -1
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/esm/{hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
- package/{modern/index-50136800.d.ts → esm/index-2abb571d.d.ts} +5 -1
- package/esm/index-c76d6398.d.ts +1 -1
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/mobile-ade26e99.d.ts +5 -0
- package/esm/mobile.css +4 -4
- package/esm/mobile.js +1 -1
- package/esm/{mobile.module-3647dfbb.js → mobile.module-d94bd137.js} +1 -1
- package/esm/shared-4cd3936b.d.ts +6 -6
- package/esm/{typings-5e1b8383.d.ts → typings-dd8ca091.d.ts} +23 -1
- package/esm/{utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
- package/{hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
- package/{index-50136800.d.ts → index-2abb571d.d.ts} +5 -1
- package/index-c76d6398.d.ts +1 -1
- package/index-f12ee135.d.ts +1 -1
- package/index.js +1 -1
- package/mobile-96988a65.d.ts +2 -5
- package/mobile-ade26e99.d.ts +5 -0
- package/mobile.css +4 -4
- package/mobile.js +1 -1
- package/{mobile.module-0440a603.js → mobile.module-e6e04ea3.js} +1 -1
- package/modern/Component-2abb571d.d.ts +276 -0
- package/modern/{Component-5e1b8383.d.ts → Component-dd8ca091.d.ts} +1 -1
- package/{Component.mobile-06ffd24b.d.ts → modern/Component.mobile-ade26e99.d.ts} +2 -2
- package/modern/Component.mobile.js +1 -1
- package/{cssm/Component.modal.mobile-5e1b8383.d.ts → modern/Component.modal.mobile-dd8ca091.d.ts} +2 -2
- package/modern/Component.modal.mobile.d.ts +1 -1
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.js +1 -1
- package/modern/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/{hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
- package/{cssm/index-50136800.d.ts → modern/index-2abb571d.d.ts} +5 -1
- package/modern/index-c76d6398.d.ts +1 -1
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile-ade26e99.d.ts +5 -0
- package/modern/mobile.css +4 -4
- package/modern/mobile.js +1 -1
- package/modern/{mobile.module-403e2faf.js → mobile.module-698d1199.js} +1 -1
- package/modern/shared-4cd3936b.d.ts +6 -6
- package/modern/{typings-5e1b8383.d.ts → typings-dd8ca091.d.ts} +23 -1
- package/modern/{utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +6 -7
- package/{typings-5e1b8383.d.ts → typings-dd8ca091.d.ts} +23 -1
- package/{utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
- package/Component-5e1b8383.d.ts +0 -22
- package/Component-96988a65.d.ts +0 -9
- package/cssm/Component-50136800.d.ts +0 -6
- package/cssm/mobile-06ffd24b.d.ts +0 -5
- package/esm/Component-50136800.d.ts +0 -6
- package/esm/mobile-06ffd24b.d.ts +0 -5
- package/mobile-06ffd24b.d.ts +0 -5
- package/modern/Component-50136800.d.ts +0 -6
- package/modern/mobile-06ffd24b.d.ts +0 -5
- /package/{component-50136800.d.ts → component-2abb571d.d.ts} +0 -0
- /package/cssm/{component-50136800.d.ts → component-2abb571d.d.ts} +0 -0
- /package/esm/{component-50136800.d.ts → component-2abb571d.d.ts} +0 -0
- /package/modern/{component-50136800.d.ts → component-2abb571d.d.ts} +0 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ChangeEvent, ElementType, InputHTMLAttributes, MouseEvent, ReactNode } from "react";
|
|
4
|
+
type StyleColors = {
|
|
5
|
+
default: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
inverted: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'onClick' | 'onMouseDown' | 'enterKeyHint'> & {
|
|
13
|
+
/**
|
|
14
|
+
* Значение поля ввода
|
|
15
|
+
*/
|
|
16
|
+
value?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Начальное значение поля
|
|
19
|
+
*/
|
|
20
|
+
defaultValue?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Растягивает компонент на ширину контейнера
|
|
23
|
+
*/
|
|
24
|
+
block?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Крестик для очистки поля
|
|
27
|
+
*/
|
|
28
|
+
clear?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Размер компонента
|
|
31
|
+
*/
|
|
32
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
33
|
+
/**
|
|
34
|
+
* Набор цветов для компонента
|
|
35
|
+
*/
|
|
36
|
+
colors?: 'default' | 'inverted';
|
|
37
|
+
/**
|
|
38
|
+
* Отображение ошибки
|
|
39
|
+
*/
|
|
40
|
+
error?: ReactNode | boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Отображение иконки успеха
|
|
43
|
+
*/
|
|
44
|
+
success?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Текст подсказки
|
|
47
|
+
*/
|
|
48
|
+
hint?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Лейбл компонента
|
|
51
|
+
*/
|
|
52
|
+
label?: React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Вид лейбла внутри / снаружи
|
|
55
|
+
*/
|
|
56
|
+
labelView?: 'inner' | 'outer';
|
|
57
|
+
/**
|
|
58
|
+
* Атрибут type
|
|
59
|
+
*/
|
|
60
|
+
type?: 'number' | 'card' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
61
|
+
/**
|
|
62
|
+
* Ref для обертки input
|
|
63
|
+
*/
|
|
64
|
+
wrapperRef?: React.Ref<HTMLDivElement> | null;
|
|
65
|
+
/**
|
|
66
|
+
* Слот слева
|
|
67
|
+
*/
|
|
68
|
+
leftAddons?: React.ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Слот справа
|
|
71
|
+
*/
|
|
72
|
+
rightAddons?: React.ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* Слот под инпутом
|
|
75
|
+
*/
|
|
76
|
+
bottomAddons?: React.ReactNode;
|
|
77
|
+
/**
|
|
78
|
+
* Дополнительный класс
|
|
79
|
+
*/
|
|
80
|
+
className?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Дополнительный класс для поля
|
|
83
|
+
*/
|
|
84
|
+
fieldClassName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Дополнительный класс инпута
|
|
87
|
+
*/
|
|
88
|
+
inputClassName?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Дополнительный класс для лейбла
|
|
91
|
+
*/
|
|
92
|
+
labelClassName?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Дополнительный класс для аддонов
|
|
95
|
+
*/
|
|
96
|
+
addonsClassName?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Класс, который будет установлен при фокусе
|
|
99
|
+
*/
|
|
100
|
+
focusedClassName?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Класс, который будет установлен, если в поле есть значение
|
|
103
|
+
*/
|
|
104
|
+
filledClassName?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Обработчик поля ввода
|
|
107
|
+
*/
|
|
108
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
109
|
+
value: string;
|
|
110
|
+
}) => void;
|
|
111
|
+
/**
|
|
112
|
+
* Обработчик нажатия на кнопку очистки
|
|
113
|
+
*/
|
|
114
|
+
onClear?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Обработчик клика по полю
|
|
117
|
+
*/
|
|
118
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
119
|
+
/**
|
|
120
|
+
* Обработчик MouseDown по полю
|
|
121
|
+
*/
|
|
122
|
+
onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
123
|
+
/**
|
|
124
|
+
* Обработчик MouseUp по полю
|
|
125
|
+
*/
|
|
126
|
+
onMouseUp?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
127
|
+
/**
|
|
128
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
129
|
+
*/
|
|
130
|
+
FormControlComponent?: ElementType;
|
|
131
|
+
/**
|
|
132
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
133
|
+
*/
|
|
134
|
+
dataTestId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Стили компонента для default и inverted режима.
|
|
137
|
+
*/
|
|
138
|
+
colorStyles?: StyleColors;
|
|
139
|
+
/**
|
|
140
|
+
* Запрещает ввод с клавиатуры
|
|
141
|
+
*/
|
|
142
|
+
disableUserInput?: boolean;
|
|
143
|
+
};
|
|
144
|
+
declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "value" | "enterKeyHint"> & {
|
|
145
|
+
/**
|
|
146
|
+
* Значение поля ввода
|
|
147
|
+
*/
|
|
148
|
+
value?: string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Начальное значение поля
|
|
151
|
+
*/
|
|
152
|
+
defaultValue?: string | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Растягивает компонент на ширину контейнера
|
|
155
|
+
*/
|
|
156
|
+
block?: boolean | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Крестик для очистки поля
|
|
159
|
+
*/
|
|
160
|
+
clear?: boolean | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Размер компонента
|
|
163
|
+
*/
|
|
164
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Набор цветов для компонента
|
|
167
|
+
*/
|
|
168
|
+
colors?: "default" | "inverted" | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Отображение ошибки
|
|
171
|
+
*/
|
|
172
|
+
error?: ReactNode | boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Отображение иконки успеха
|
|
175
|
+
*/
|
|
176
|
+
success?: boolean | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* Текст подсказки
|
|
179
|
+
*/
|
|
180
|
+
hint?: ReactNode;
|
|
181
|
+
/**
|
|
182
|
+
* Лейбл компонента
|
|
183
|
+
*/
|
|
184
|
+
label?: React.ReactNode;
|
|
185
|
+
/**
|
|
186
|
+
* Вид лейбла внутри / снаружи
|
|
187
|
+
*/
|
|
188
|
+
labelView?: "inner" | "outer" | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* Атрибут type
|
|
191
|
+
*/
|
|
192
|
+
type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Ref для обертки input
|
|
195
|
+
*/
|
|
196
|
+
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Слот слева
|
|
199
|
+
*/
|
|
200
|
+
leftAddons?: React.ReactNode;
|
|
201
|
+
/**
|
|
202
|
+
* Слот справа
|
|
203
|
+
*/
|
|
204
|
+
rightAddons?: React.ReactNode;
|
|
205
|
+
/**
|
|
206
|
+
* Слот под инпутом
|
|
207
|
+
*/
|
|
208
|
+
bottomAddons?: React.ReactNode;
|
|
209
|
+
/**
|
|
210
|
+
* Дополнительный класс
|
|
211
|
+
*/
|
|
212
|
+
className?: string | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Дополнительный класс для поля
|
|
215
|
+
*/
|
|
216
|
+
fieldClassName?: string | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* Дополнительный класс инпута
|
|
219
|
+
*/
|
|
220
|
+
inputClassName?: string | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Дополнительный класс для лейбла
|
|
223
|
+
*/
|
|
224
|
+
labelClassName?: string | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Дополнительный класс для аддонов
|
|
227
|
+
*/
|
|
228
|
+
addonsClassName?: string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* Класс, который будет установлен при фокусе
|
|
231
|
+
*/
|
|
232
|
+
focusedClassName?: string | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Класс, который будет установлен, если в поле есть значение
|
|
235
|
+
*/
|
|
236
|
+
filledClassName?: string | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* Обработчик поля ввода
|
|
239
|
+
*/
|
|
240
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
|
|
241
|
+
value: string;
|
|
242
|
+
}) => void) | undefined;
|
|
243
|
+
/**
|
|
244
|
+
* Обработчик нажатия на кнопку очистки
|
|
245
|
+
*/
|
|
246
|
+
onClear?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* Обработчик клика по полю
|
|
249
|
+
*/
|
|
250
|
+
onClick?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* Обработчик MouseDown по полю
|
|
253
|
+
*/
|
|
254
|
+
onMouseDown?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* Обработчик MouseUp по полю
|
|
257
|
+
*/
|
|
258
|
+
onMouseUp?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
259
|
+
/**
|
|
260
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
261
|
+
*/
|
|
262
|
+
FormControlComponent?: React.ElementType<any> | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
265
|
+
*/
|
|
266
|
+
dataTestId?: string | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* Стили компонента для default и inverted режима.
|
|
269
|
+
*/
|
|
270
|
+
colorStyles?: StyleColors | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Запрещает ввод с клавиатуры
|
|
273
|
+
*/
|
|
274
|
+
disableUserInput?: boolean | undefined;
|
|
275
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
276
|
+
export { StyleColors, BaseInputProps, BaseInput };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
-
import { BaseSelectProps } from "./typings-
|
|
5
|
+
import { BaseSelectProps } from "./typings-dd8ca091";
|
|
6
6
|
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Футер
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
6
|
-
import { BaseSelectProps } from "./typings-
|
|
5
|
+
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
6
|
+
import { BaseSelectProps } from "./typings-dd8ca091";
|
|
7
7
|
type AdditionalMobileProps = {
|
|
8
8
|
/**
|
|
9
9
|
* Футер
|
|
@@ -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 };
|
package/Component.mobile.js
CHANGED
|
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
|
|
|
11
11
|
var coreComponentsInput = require('@alfalab/core-components-input');
|
|
12
12
|
var mobile = require('@alfalab/core-components-select/mobile');
|
|
13
13
|
var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
|
|
14
|
-
var mobile_module = require('./mobile.module-
|
|
14
|
+
var mobile_module = require('./mobile.module-e6e04ea3.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ModalMobile } from "./Component.mobile-f1f15074";
|
|
4
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
5
|
-
import { BaseSelectProps } from "./typings-
|
|
4
|
+
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
5
|
+
import { BaseSelectProps } from "./typings-dd8ca091";
|
|
6
6
|
type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Показывать кнопку очистки
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
4
|
import { ButtonMobileProps } from "./mobile-96988a65";
|
|
5
|
-
import { SelectModalMobileProps } from "./mobile-
|
|
5
|
+
import { SelectModalMobileProps } from "./mobile-ade26e99";
|
|
6
6
|
import { BaseSelectChangePayload } from "./shared-4cd3936b";
|
|
7
7
|
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
8
|
/**
|
|
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
|
|
|
11
11
|
var coreComponentsInput = require('@alfalab/core-components-input');
|
|
12
12
|
var mobile = require('@alfalab/core-components-select/mobile');
|
|
13
13
|
var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
|
|
14
|
-
var mobile_module = require('./mobile.module-
|
|
14
|
+
var mobile_module = require('./mobile.module-e6e04ea3.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
package/Component.responsive.js
CHANGED
|
@@ -18,7 +18,7 @@ require('@alfalab/core-components-input');
|
|
|
18
18
|
require('@alfalab/core-components-select/mobile');
|
|
19
19
|
require('./autocomplete-mobile-field/Component.js');
|
|
20
20
|
require('@alfalab/core-components-form-control/mobile');
|
|
21
|
-
require('./mobile.module-
|
|
21
|
+
require('./mobile.module-e6e04ea3.js');
|
|
22
22
|
|
|
23
23
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
24
24
|
|
|
@@ -14,7 +14,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
14
14
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
15
15
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
16
|
|
|
17
|
-
var styles = {"arrow":"input-
|
|
17
|
+
var styles = {"arrow":"input-autocomplete__arrow_1j74k","error":"input-autocomplete__error_1j74k"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"input-
|
|
16
|
+
var styles = {"component":"input-autocomplete__component_o9n8b","field":"input-autocomplete__field_o9n8b","disabled":"input-autocomplete__disabled_o9n8b","placeholder":"input-autocomplete__placeholder_o9n8b","contentWrapper":"input-autocomplete__contentWrapper_o9n8b","value":"input-autocomplete__value_o9n8b","focusVisible":"input-autocomplete__focusVisible_o9n8b"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nf4k */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
--focus-color: var(--color-light-border-link);
|
|
20
20
|
--disabled-cursor: not-allowed;
|
|
21
|
-
} .input-
|
|
21
|
+
} .input-autocomplete__component_o9n8b {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_o9n8b:not(.input-autocomplete__disabled_o9n8b) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_o9n8b {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_o9n8b {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_o9n8b {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
text-overflow: ellipsis;
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
width: 100%;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__value_o9n8b {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_o9n8b {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|