@alfalab/core-components-input-autocomplete 10.0.0 → 10.0.2
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/{cssm/Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/Component-5e1b8383.d.ts +70 -3
- package/Component-63dec22f.d.ts +166 -10
- package/{Component-425c8522.d.ts → Component-72dda473.d.ts} +1 -1
- package/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/Component-ebda875c.d.ts +8 -265
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.mobile-f1f15074.d.ts +1 -1
- package/Component.mobile.d.ts +4 -5
- package/Component.mobile.js +1 -1
- package/{mobile-45dc17c6.d.ts → Component.modal.mobile-5e1b8383.d.ts} +27 -14
- package/Component.modal.mobile.d.ts +2 -2
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.d.ts +2 -3
- 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.d.ts +6 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/{esm/component-89a3cf4c.d.ts → component-50136800.d.ts} +1 -1
- package/{modern/Component-89a3cf4c.d.ts → cssm/Component-50136800.d.ts} +1 -1
- package/cssm/Component-5e1b8383.d.ts +1 -1
- package/cssm/Component-72dda473.d.ts +53 -0
- package/cssm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/cssm/Component.mobile-f1f15074.d.ts +1 -1
- package/cssm/Component.mobile.d.ts +3 -4
- package/cssm/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/cssm/Component.responsive.d.ts +1 -2
- package/cssm/autocomplete-mobile-field/Component.d.ts +6 -2
- package/{modern/component-89a3cf4c.d.ts → cssm/component-50136800.d.ts} +1 -1
- package/cssm/index-50136800.d.ts +11 -0
- package/{esm/index-425c8522.d.ts → cssm/index-72dda473.d.ts} +7 -1
- package/cssm/index-c76d6398.d.ts +2 -0
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/types-d9f9bbcc.d.ts +2 -2
- package/esm/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/esm/Component-5e1b8383.d.ts +1 -1
- package/esm/Component-72dda473.d.ts +53 -0
- package/esm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/esm/Component.mobile-f1f15074.d.ts +1 -1
- package/esm/Component.mobile.d.ts +3 -4
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.d.ts +1 -2
- 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.d.ts +6 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/{cssm/component-89a3cf4c.d.ts → esm/component-50136800.d.ts} +1 -1
- package/esm/index-50136800.d.ts +11 -0
- package/{cssm/index-425c8522.d.ts → esm/index-72dda473.d.ts} +7 -1
- package/esm/index-c76d6398.d.ts +2 -0
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/mobile.css +4 -4
- package/esm/mobile.js +1 -1
- package/esm/{mobile.module-ed5594fa.js → mobile.module-bb0cbc57.js} +1 -1
- package/esm/types-d9f9bbcc.d.ts +2 -2
- package/hook-9ea9e32c.d.ts +4 -4
- package/index-50136800.d.ts +11 -0
- package/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/index-bdb4c6b9.d.ts +2 -172
- package/index-c76d6398.d.ts +2 -0
- package/index-ebda875c.d.ts +115 -11
- package/index-f12ee135.d.ts +3 -307
- package/index.js +1 -1
- package/mobile-06ffd24b.d.ts +5 -0
- package/mobile-96988a65.d.ts +2 -5
- package/mobile.css +4 -4
- package/mobile.js +1 -1
- package/{mobile.module-4fb8c86a.js → mobile.module-00dfdfed.js} +1 -1
- package/modern/Component-50136800.d.ts +6 -0
- package/modern/Component-5e1b8383.d.ts +1 -1
- package/modern/Component-72dda473.d.ts +53 -0
- package/modern/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/modern/Component.mobile-f1f15074.d.ts +1 -1
- package/modern/Component.mobile.d.ts +3 -4
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.d.ts +1 -2
- 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.d.ts +6 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/component-50136800.d.ts +44 -0
- package/modern/index-50136800.d.ts +11 -0
- package/modern/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/modern/index-c76d6398.d.ts +2 -0
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile.css +4 -4
- package/modern/mobile.js +1 -1
- package/modern/{mobile.module-a255d4ec.js → mobile.module-ca98f569.js} +1 -1
- package/modern/types-d9f9bbcc.d.ts +2 -2
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +88 -3
- package/src/Component.mobile.tsx +2 -2
- package/src/Component.responsive.tsx +0 -2
- package/src/autocomplete-mobile-field/Component.tsx +6 -3
- package/types-d9f9bbcc.d.ts +259 -0
- package/utils-1574ad8b.d.ts +29 -0
- package/utils-49cc3c24.d.ts +8 -0
- package/Component-89a3cf4c.d.ts +0 -6
- package/Component-96988a65.d.ts +0 -9
- package/Component-aed0af6e.d.ts +0 -11
- package/Component-f12ee135.d.ts +0 -72
- package/cssm/index-89a3cf4c.d.ts +0 -3
- package/cssm/index-e81c389f.d.ts +0 -3
- package/esm/index-89a3cf4c.d.ts +0 -3
- package/esm/index-e81c389f.d.ts +0 -3
- package/hook-ebda875c.d.ts +0 -48
- package/index-89a3cf4c.d.ts +0 -3
- package/index-e81c389f.d.ts +0 -3
- package/modern/index-89a3cf4c.d.ts +0 -3
- package/modern/index-e81c389f.d.ts +0 -3
- /package/{Component.mobile-f12ee135.d.ts → Component.mobile-06ffd24b.d.ts} +0 -0
- /package/cssm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/esm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/modern/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
package/index-f12ee135.d.ts
CHANGED
|
@@ -1,307 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { HTMLAttributes, ReactNode, RefObject, FC } from "react";
|
|
5
|
-
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
|
-
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
7
|
-
import { NavigationBarProps } from "./index-e81c389f";
|
|
8
|
-
import { BackgroundColorType } from "./index-425c8522";
|
|
9
|
-
import { SwipeableHandlers } from "react-swipeable";
|
|
10
|
-
import { BackdropProps } from "./index-ebda875c";
|
|
11
|
-
type BottomSheetTitleAlign = "center" | "left";
|
|
12
|
-
type BottomSheetProps = {
|
|
13
|
-
/**
|
|
14
|
-
* Контент
|
|
15
|
-
*/
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Управление видимостью
|
|
19
|
-
*/
|
|
20
|
-
open: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Заголовок
|
|
23
|
-
*/
|
|
24
|
-
title?: ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* Размер заголовка
|
|
27
|
-
*/
|
|
28
|
-
titleSize?: NavigationBarProps["titleSize"];
|
|
29
|
-
/**
|
|
30
|
-
* Подзаголовок.
|
|
31
|
-
*/
|
|
32
|
-
subtitle?: NavigationBarProps["subtitle"];
|
|
33
|
-
/**
|
|
34
|
-
* Кнопка действия (обычно, это кнопка закрытия)
|
|
35
|
-
*/
|
|
36
|
-
actionButton?: ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* Нода, компонент или функция возвращающая их
|
|
39
|
-
*
|
|
40
|
-
* Контейнер к которому будут добавляться порталы
|
|
41
|
-
*/
|
|
42
|
-
container?: BaseModalProps["container"];
|
|
43
|
-
/**
|
|
44
|
-
* Рендерить ли в контейнер через портал.
|
|
45
|
-
*/
|
|
46
|
-
usePortal?: BaseModalProps["usePortal"];
|
|
47
|
-
/**
|
|
48
|
-
* Дополнительный класс
|
|
49
|
-
*/
|
|
50
|
-
className?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Дополнительный класс
|
|
53
|
-
*/
|
|
54
|
-
contentClassName?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Дополнительные пропсы на контейнер.
|
|
57
|
-
*/
|
|
58
|
-
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
59
|
-
/**
|
|
60
|
-
* Дополнительный класс
|
|
61
|
-
*/
|
|
62
|
-
containerClassName?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Цвет фона
|
|
65
|
-
*/
|
|
66
|
-
backgroundColor?: Extract<BackgroundColorType, "primary" | "secondary">;
|
|
67
|
-
/**
|
|
68
|
-
* Дополнительный класс шапки
|
|
69
|
-
*/
|
|
70
|
-
headerClassName?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Дополнительный класс футера
|
|
73
|
-
*/
|
|
74
|
-
footerClassName?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Дополнительный класс для аддонов
|
|
77
|
-
*/
|
|
78
|
-
addonClassName?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Дополнительный класс для компонента крестика
|
|
81
|
-
*/
|
|
82
|
-
closerClassName?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Дополнительный класс для компонента стрелки назад
|
|
85
|
-
*/
|
|
86
|
-
backerClassName?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Дополнительный класс для компонента модального окна
|
|
89
|
-
*/
|
|
90
|
-
modalClassName?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Дополнительный класс для обертки модального окна
|
|
93
|
-
*/
|
|
94
|
-
modalWrapperClassName?: string;
|
|
95
|
-
/**
|
|
96
|
-
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
97
|
-
*/
|
|
98
|
-
transitionProps?: Partial<TransitionProps>;
|
|
99
|
-
/**
|
|
100
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
101
|
-
*/
|
|
102
|
-
dataTestId?: string;
|
|
103
|
-
/**
|
|
104
|
-
* z-index компонента
|
|
105
|
-
*/
|
|
106
|
-
zIndex?: number;
|
|
107
|
-
/**
|
|
108
|
-
* Будет ли свайпаться шторка
|
|
109
|
-
* @default true
|
|
110
|
-
*/
|
|
111
|
-
swipeable?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* Будет ли свайпаться контент
|
|
114
|
-
*/
|
|
115
|
-
swipeableContent?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Порог свайпа
|
|
118
|
-
*/
|
|
119
|
-
swipeThreshold?: number;
|
|
120
|
-
/**
|
|
121
|
-
* Слот слева
|
|
122
|
-
*/
|
|
123
|
-
leftAddons?: ReactNode;
|
|
124
|
-
/**
|
|
125
|
-
* Слот справа
|
|
126
|
-
*/
|
|
127
|
-
rightAddons?: ReactNode;
|
|
128
|
-
/**
|
|
129
|
-
* Слот снизу
|
|
130
|
-
*/
|
|
131
|
-
bottomAddons?: ReactNode;
|
|
132
|
-
/**
|
|
133
|
-
* Наличие компонента крестика
|
|
134
|
-
*/
|
|
135
|
-
hasCloser?: boolean;
|
|
136
|
-
/**
|
|
137
|
-
* Наличие компонента стрелки назад
|
|
138
|
-
*/
|
|
139
|
-
hasBacker?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Выравнивание заголовка
|
|
142
|
-
*/
|
|
143
|
-
titleAlign?: BottomSheetTitleAlign;
|
|
144
|
-
/**
|
|
145
|
-
* Фиксирует шапку
|
|
146
|
-
*/
|
|
147
|
-
stickyHeader?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Фиксирует футер
|
|
150
|
-
*/
|
|
151
|
-
stickyFooter?: boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Высота шторки
|
|
154
|
-
*/
|
|
155
|
-
initialHeight?: "default" | "full";
|
|
156
|
-
/**
|
|
157
|
-
* Будет ли виден оверлэй
|
|
158
|
-
*/
|
|
159
|
-
hideOverlay?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Будет ли видна шапка
|
|
162
|
-
*/
|
|
163
|
-
hideHeader?: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Будет ли обрезан заголовок
|
|
166
|
-
*/
|
|
167
|
-
trimTitle?: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Запретить закрытие шторки кликом на оверлэй
|
|
170
|
-
*/
|
|
171
|
-
disableOverlayClick?: boolean;
|
|
172
|
-
/**
|
|
173
|
-
* Отключает блокировку скролла при открытии модального окна
|
|
174
|
-
*/
|
|
175
|
-
disableBlockingScroll?: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Отключает ловушку фокуса
|
|
178
|
-
*/
|
|
179
|
-
disableFocusLock?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
182
|
-
* Не анимировать шторку при изменении размера вьюпорта
|
|
183
|
-
*/
|
|
184
|
-
ignoreScreenChange?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Свойства для Бэкдропа
|
|
187
|
-
*/
|
|
188
|
-
backdropProps?: BaseModalProps["backdropProps"];
|
|
189
|
-
/**
|
|
190
|
-
* Реф на контейнер, в котором происходит скролл
|
|
191
|
-
*/
|
|
192
|
-
scrollableContainerRef?: RefObject<HTMLElement>;
|
|
193
|
-
/**
|
|
194
|
-
* Реф для управления компонентом.
|
|
195
|
-
*/
|
|
196
|
-
bottomSheetInstanceRef?: RefObject<{
|
|
197
|
-
scrollToArea: (idx: number) => void;
|
|
198
|
-
}>;
|
|
199
|
-
/**
|
|
200
|
-
* Реф на контейнер, в котором находится шторка
|
|
201
|
-
*/
|
|
202
|
-
sheetContainerRef?: RefObject<HTMLElement>;
|
|
203
|
-
/**
|
|
204
|
-
* Магнитные области видимой высоты шторки.
|
|
205
|
-
* Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
|
|
206
|
-
* По-умолчанию -[0, window.innerHeight - '24px']
|
|
207
|
-
* массив должен состоять минимум из 2 элементов
|
|
208
|
-
*/
|
|
209
|
-
magneticAreas?: Array<number | string>;
|
|
210
|
-
/**
|
|
211
|
-
* Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
|
|
212
|
-
*/
|
|
213
|
-
initialActiveAreaIndex?: number;
|
|
214
|
-
/**
|
|
215
|
-
* Отключает скролл контентной области.
|
|
216
|
-
*/
|
|
217
|
-
scrollLocked?: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* Скрыть скроллбар внутри шторки
|
|
220
|
-
*/
|
|
221
|
-
hideScrollbar?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Верхний отступ шторки, если она открыта на максимальную высоту
|
|
224
|
-
*/
|
|
225
|
-
headerOffset?: number;
|
|
226
|
-
/**
|
|
227
|
-
* Содержимое bottom-sheet всегда в DOM
|
|
228
|
-
*/
|
|
229
|
-
keepMounted?: boolean;
|
|
230
|
-
/**
|
|
231
|
-
* Отключает автоматический перевод фокуса на bottom-sheet при открытии
|
|
232
|
-
*/
|
|
233
|
-
disableAutoFocus?: boolean;
|
|
234
|
-
/**
|
|
235
|
-
* Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
|
|
236
|
-
*/
|
|
237
|
-
disableRestoreFocus?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Отключает вызов `onClose` при нажатии Escape
|
|
240
|
-
*/
|
|
241
|
-
disableEscapeKeyDown?: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* Обработчик закрытия
|
|
244
|
-
*/
|
|
245
|
-
onClose: () => void;
|
|
246
|
-
/**
|
|
247
|
-
* Обработчик нажатия на стрелку назад
|
|
248
|
-
*/
|
|
249
|
-
onBack?: () => void;
|
|
250
|
-
/**
|
|
251
|
-
* Вызывается в начале анимации притягивания к одной из `magneticAreas`
|
|
252
|
-
*/
|
|
253
|
-
onMagnetize?: (index: number) => void;
|
|
254
|
-
/**
|
|
255
|
-
* Вызывается после окончания анимации притягивания
|
|
256
|
-
*/
|
|
257
|
-
onMagnetizeEnd?: () => void;
|
|
258
|
-
/**
|
|
259
|
-
* Вызывается при изменении положения шторки
|
|
260
|
-
*/
|
|
261
|
-
onOffsetChange?: (offset: number, percent: number) => void;
|
|
262
|
-
};
|
|
263
|
-
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
264
|
-
declare const TIMEOUT = 500;
|
|
265
|
-
declare const SWIPE_VELOCITY = 0.4;
|
|
266
|
-
declare const MARKER_HEIGHT = 24;
|
|
267
|
-
declare const CLOSE_OFFSET = 0.2;
|
|
268
|
-
declare const SCROLL_OFFSET = 1;
|
|
269
|
-
declare const HEADER_OFFSET = 24;
|
|
270
|
-
declare const convertPercentToNumber: (value: string | number, fullHeight: number, headerOffset?: number) => number;
|
|
271
|
-
type FooterProps = {
|
|
272
|
-
/**
|
|
273
|
-
* Контент футера
|
|
274
|
-
*/
|
|
275
|
-
children?: ReactNode;
|
|
276
|
-
/**
|
|
277
|
-
* Фиксирует футер
|
|
278
|
-
*/
|
|
279
|
-
sticky?: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* Дополнительный класс
|
|
282
|
-
*/
|
|
283
|
-
className?: string;
|
|
284
|
-
};
|
|
285
|
-
declare const Footer: FC<FooterProps>;
|
|
286
|
-
type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
|
|
287
|
-
headerRef: RefObject<HTMLDivElement>;
|
|
288
|
-
headerOffset: number;
|
|
289
|
-
};
|
|
290
|
-
declare const Header: FC<HeaderProps>;
|
|
291
|
-
type SwipeableBackdropProps = BackdropProps & {
|
|
292
|
-
/**
|
|
293
|
-
* Прозрачность бэкдропа
|
|
294
|
-
*/
|
|
295
|
-
opacity?: number;
|
|
296
|
-
/**
|
|
297
|
-
* Обработчики свайпа
|
|
298
|
-
*/
|
|
299
|
-
handlers?: SwipeableHandlers;
|
|
300
|
-
/**
|
|
301
|
-
* Время анимации opacity
|
|
302
|
-
*/
|
|
303
|
-
opacityTimeout?: number;
|
|
304
|
-
};
|
|
305
|
-
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
306
|
-
export { BottomSheet, TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber, FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop };
|
|
307
|
-
export type { BottomSheetProps, BottomSheetTitleAlign };
|
|
1
|
+
export * from "./component-50136800";
|
|
2
|
+
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-d9f9bbcc";
|
|
3
|
+
export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
|
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@ require('@alfalab/core-components-input');
|
|
|
19
19
|
require('@alfalab/core-components-select/mobile');
|
|
20
20
|
require('./autocomplete-mobile-field/Component.js');
|
|
21
21
|
require('@alfalab/core-components-form-control/mobile');
|
|
22
|
-
require('./mobile.module-
|
|
22
|
+
require('./mobile.module-00dfdfed.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SelectMobile } from "./Component.mobile-06ffd24b";
|
|
2
|
+
export { SelectModalMobile } from "./Component.modal.mobile-5e1b8383";
|
|
3
|
+
export type { SelectMobileProps } from "./Component.mobile-06ffd24b";
|
|
4
|
+
export type { SelectModalMobileProps } from "./Component.modal.mobile-5e1b8383";
|
|
5
|
+
export {};
|
package/mobile-96988a65.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type FormControlMobileProps = Omit<BaseFormControlProps, "styles" | "colorStyles">;
|
|
5
|
-
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { FormControlMobileProps, FormControlMobile };
|
|
2
|
+
export * from "./Component.mobile-ebda875c";
|
|
3
|
+
export {};
|
package/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 11qxi */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
--gap-m: 16px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .input-
|
|
19
|
+
} .input-autocomplete__bottomAddonInput_10by6 {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_10by6 {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_10by6 > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/mobile.js
CHANGED
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-select/mobile');
|
|
|
15
15
|
require('./autocomplete-mobile-field/Component.js');
|
|
16
16
|
require('@alfalab/core-components-form-control/mobile');
|
|
17
17
|
require('@alfalab/hooks');
|
|
18
|
-
require('./mobile.module-
|
|
18
|
+
require('./mobile.module-00dfdfed.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var styles = {"bottomAddonInput":"input-
|
|
3
|
+
var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_10by6","footer":"input-autocomplete__footer_10by6"};
|
|
4
4
|
require('./mobile.css')
|
|
5
5
|
|
|
6
6
|
exports.styles = styles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NavigationBarProps } from "./types-83e2bd9e";
|
|
4
|
+
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export * from "./Component-63dec22f";
|
|
6
|
+
export { NavigationBar };
|
|
@@ -61,7 +61,7 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
|
|
|
61
61
|
/**
|
|
62
62
|
* Дополнительные пропсы шапки модалки
|
|
63
63
|
*/
|
|
64
|
-
modalHeaderProps?: Partial<import("./Component-
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Дополнительные пропсы футера модалки
|
|
67
67
|
*/
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
|
|
4
|
+
type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
|
|
5
|
+
type BadgeProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Дополнительный класс
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Вид компонента
|
|
12
|
+
*/
|
|
13
|
+
view: 'icon' | 'count';
|
|
14
|
+
/**
|
|
15
|
+
* Размер компонента (только для view=icon)
|
|
16
|
+
* //deprecated(используйте height для view=count )
|
|
17
|
+
*/
|
|
18
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
19
|
+
/**
|
|
20
|
+
* Видимость белой обводки вокруг иконки
|
|
21
|
+
*/
|
|
22
|
+
visibleIconOutline?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Видимость цветной обводки вокруг иконки (только для view=icon)
|
|
25
|
+
*/
|
|
26
|
+
visibleColorOutline?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Контент компонента
|
|
29
|
+
*/
|
|
30
|
+
content?: React.ReactElement | number;
|
|
31
|
+
/**
|
|
32
|
+
* Высота компонента, min = 16; max = 48 (только для view=count)
|
|
33
|
+
*/
|
|
34
|
+
height?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Цветовое оформление бейджа при view='count'
|
|
37
|
+
*/
|
|
38
|
+
color?: Extract<BackgroundColorType, 'accent' | 'primary' | 'specialbg-secondary-transparent'>;
|
|
39
|
+
/**
|
|
40
|
+
* Цветовое оформление бейджа при view='icon'
|
|
41
|
+
*/
|
|
42
|
+
iconColor?: IconColorType;
|
|
43
|
+
/**
|
|
44
|
+
* Цвет подложки под иконкой
|
|
45
|
+
*/
|
|
46
|
+
iconUnderlayColor?: Extract<GraphicColorType, 'primary' | 'static-light'>;
|
|
47
|
+
/**
|
|
48
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
49
|
+
*/
|
|
50
|
+
dataTestId?: string;
|
|
51
|
+
};
|
|
52
|
+
declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
|
|
53
|
+
export { IconColorType, BadgeProps, Badge };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { NavigationBarProps } from "./index-
|
|
2
|
+
import { NavigationBarProps } from "./index-c76d6398";
|
|
3
3
|
type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
|
|
4
4
|
declare const Header: FC<HeaderProps>;
|
|
5
5
|
export { HeaderProps, Header };
|
|
@@ -28,7 +28,7 @@ type FooterProps = {
|
|
|
28
28
|
declare const Footer: FC<FooterProps>;
|
|
29
29
|
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
30
30
|
Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
|
|
31
|
-
Header: React.FC<import("./Component-
|
|
31
|
+
Header: React.FC<import("./Component-c76d6398").HeaderProps>;
|
|
32
32
|
Footer: React.FC<FooterProps>;
|
|
33
33
|
};
|
|
34
34
|
export { Content, FooterProps, Footer, ModalMobile };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
4
|
import { ButtonMobileProps } from "./mobile-96988a65";
|
|
6
|
-
import { BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
|
|
5
|
+
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
|
|
7
6
|
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
7
|
/**
|
|
9
8
|
* Обработчик выбора
|
|
@@ -32,7 +31,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
32
31
|
/**
|
|
33
32
|
* Дополнительные пропсы компонента BottomSheet
|
|
34
33
|
*/
|
|
35
|
-
bottomSheetProps?:
|
|
34
|
+
bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
|
|
36
35
|
/**
|
|
37
36
|
* Дополнительные пропсы на слот под заголовком компонента BottomSheet
|
|
38
37
|
*/
|
|
@@ -78,7 +77,7 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<Base
|
|
|
78
77
|
/**
|
|
79
78
|
* Дополнительные пропсы компонента BottomSheet
|
|
80
79
|
*/
|
|
81
|
-
bottomSheetProps?:
|
|
80
|
+
bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
|
|
82
81
|
/**
|
|
83
82
|
* Дополнительные пропсы на слот под заголовком компонента BottomSheet
|
|
84
83
|
*/
|
|
@@ -6,7 +6,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
|
|
|
6
6
|
import { Input } from '@alfalab/core-components-input/modern';
|
|
7
7
|
import { SelectMobile } from '@alfalab/core-components-select/modern/mobile';
|
|
8
8
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
9
|
-
import { s as styles } from './mobile.module-
|
|
9
|
+
import { s as styles } from './mobile.module-ca98f569.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
@@ -42,7 +42,7 @@ declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelect
|
|
|
42
42
|
/**
|
|
43
43
|
* Дополнительные пропсы шапки модалки
|
|
44
44
|
*/
|
|
45
|
-
modalHeaderProps?: Partial<import("./Component-
|
|
45
|
+
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Дополнительные пропсы модалки
|
|
48
48
|
*/
|
|
@@ -6,7 +6,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
|
|
|
6
6
|
import { Input } from '@alfalab/core-components-input/modern';
|
|
7
7
|
import { SelectModalMobile } from '@alfalab/core-components-select/modern/mobile';
|
|
8
8
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
9
|
-
import { s as styles } from './mobile.module-
|
|
9
|
+
import { s as styles } from './mobile.module-ca98f569.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BottomSheetProps } from "./index-f12ee135";
|
|
4
3
|
import { ButtonMobileProps } from "./mobile-96988a65";
|
|
5
4
|
import { BaseSelectProps } from "./shared-4cd3936b";
|
|
6
5
|
import { InputAutocompleteDesktopProps } from "./Component.desktop";
|
|
@@ -34,7 +33,7 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
34
33
|
filter?: string | undefined;
|
|
35
34
|
onCancel?: (() => void) | undefined;
|
|
36
35
|
onClearFilter?: (() => void) | undefined;
|
|
37
|
-
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
36
|
+
bottomSheetProps?: Partial<import("./index-f12ee135").BottomSheetProps> | undefined;
|
|
38
37
|
bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
|
|
39
38
|
continueButtonProps?: ButtonMobileProps | undefined;
|
|
40
39
|
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
@@ -13,7 +13,7 @@ import '@alfalab/core-components-input/modern';
|
|
|
13
13
|
import '@alfalab/core-components-select/modern/mobile';
|
|
14
14
|
import './autocomplete-mobile-field/Component.js';
|
|
15
15
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
16
|
-
import './mobile.module-
|
|
16
|
+
import './mobile.module-ca98f569.js';
|
|
17
17
|
|
|
18
18
|
const InputAutocompleteResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
|
|
19
19
|
const [view] = useMedia([
|
|
@@ -3,7 +3,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { InputDesktop } from '@alfalab/core-components-input/modern/desktop';
|
|
5
5
|
|
|
6
|
-
const styles = {"arrow":"input-
|
|
6
|
+
const styles = {"arrow":"input-autocomplete__arrow_xva07","error":"input-autocomplete__error_xva07"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteField = ({ label, labelView = 'inner', placeholder, size, Arrow, Input = InputDesktop, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, }) => {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormControlMobileProps } from "../mobile-96988a65";
|
|
4
|
-
import { InputAutocompleteProps } from "../index";
|
|
5
4
|
import { FieldProps as BaseFieldProps } from "../shared-4cd3936b";
|
|
6
|
-
type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> &
|
|
5
|
+
type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> & {
|
|
6
|
+
/**
|
|
7
|
+
* Значение поля ввода
|
|
8
|
+
*/
|
|
9
|
+
value?: string;
|
|
10
|
+
};
|
|
7
11
|
declare const AutocompleteMobileField: ({ size, open, disabled, value, innerProps, dataTestId, fieldClassName, labelView, placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }: AutocompleteMobileFieldProps) => React.JSX.Element;
|
|
8
12
|
export { AutocompleteMobileFieldProps, AutocompleteMobileField };
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { FormControlMobile } from '@alfalab/core-components-form-control/modern/mobile';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
|
|
6
|
-
const styles = {"component":"input-
|
|
6
|
+
const styles = {"component":"input-autocomplete__component_xkbli","field":"input-autocomplete__field_xkbli","disabled":"input-autocomplete__disabled_xkbli","placeholder":"input-autocomplete__placeholder_xkbli","contentWrapper":"input-autocomplete__contentWrapper_xkbli","value":"input-autocomplete__value_xkbli","focusVisible":"input-autocomplete__focusVisible_xkbli"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteMobileField = ({ size = 'm', open, disabled, value, innerProps, dataTestId, fieldClassName, labelView = 'inner', placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: doomx */
|
|
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_xkbli {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_xkbli:not(.input-autocomplete__disabled_xkbli) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_xkbli {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_xkbli {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_xkbli {
|
|
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_xkbli {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_xkbli {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|