@alfalab/core-components-input-autocomplete 10.2.2 → 10.3.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.
Files changed (209) hide show
  1. package/Component.desktop.d.ts +3 -3
  2. package/Component.mobile.d.ts +2 -2
  3. package/Component.mobile.js +1 -1
  4. package/Component.modal.mobile.d.ts +3 -3
  5. package/Component.modal.mobile.js +1 -1
  6. package/Component.responsive.d.ts +6 -6
  7. package/Component.responsive.js +1 -1
  8. package/autocomplete-field/Component.d.ts +1 -1
  9. package/autocomplete-field/Component.js +1 -1
  10. package/autocomplete-field/index.css +2 -2
  11. package/autocomplete-mobile-field/Component.d.ts +2 -2
  12. package/autocomplete-mobile-field/Component.js +1 -1
  13. package/autocomplete-mobile-field/index.css +8 -8
  14. package/cssm/Component.desktop.d.ts +3 -3
  15. package/cssm/Component.mobile.d.ts +2 -2
  16. package/cssm/Component.modal.mobile.d.ts +3 -3
  17. package/cssm/Component.responsive.d.ts +6 -6
  18. package/cssm/autocomplete-field/Component.d.ts +1 -1
  19. package/cssm/autocomplete-mobile-field/Component.d.ts +2 -2
  20. package/cssm/{desktop.d.ts → desktop/index.d.ts} +1 -1
  21. package/cssm/{desktop.js → desktop/index.js} +3 -3
  22. package/{mobile.d.ts → cssm/mobile/index.d.ts} +2 -2
  23. package/cssm/{mobile.js → mobile/index.js} +5 -5
  24. package/{modern/desktop.d.ts → desktop/index.d.ts} +1 -1
  25. package/{desktop.js → desktop/index.js} +2 -2
  26. package/desktop/package.json +3 -0
  27. package/esm/Component.desktop.d.ts +3 -3
  28. package/esm/Component.mobile.d.ts +2 -2
  29. package/esm/Component.mobile.js +1 -1
  30. package/esm/Component.modal.mobile.d.ts +3 -3
  31. package/esm/Component.modal.mobile.js +1 -1
  32. package/esm/Component.responsive.d.ts +6 -6
  33. package/esm/Component.responsive.js +1 -1
  34. package/esm/autocomplete-field/Component.d.ts +1 -1
  35. package/esm/autocomplete-field/Component.js +1 -1
  36. package/esm/autocomplete-field/index.css +2 -2
  37. package/esm/autocomplete-mobile-field/Component.d.ts +2 -2
  38. package/esm/autocomplete-mobile-field/Component.js +1 -1
  39. package/esm/autocomplete-mobile-field/index.css +8 -8
  40. package/{desktop.d.ts → esm/desktop/index.d.ts} +1 -1
  41. package/esm/{desktop.js → desktop/index.js} +2 -2
  42. package/esm/index.js +1 -1
  43. package/{cssm/mobile.d.ts → esm/mobile/index.d.ts} +2 -2
  44. package/esm/{mobile.js → mobile/index.js} +4 -4
  45. package/esm/mobile.css +4 -4
  46. package/esm/{mobile.module-a36ccaa2.js → mobile.module-846d8b52.js} +1 -1
  47. package/index.js +1 -1
  48. package/{modern/mobile.d.ts → mobile/index.d.ts} +2 -2
  49. package/{mobile.js → mobile/index.js} +4 -4
  50. package/mobile/package.json +3 -0
  51. package/mobile.css +4 -4
  52. package/{mobile.module-ef956a02.js → mobile.module-7c0f2a72.js} +1 -1
  53. package/modern/Component.desktop.d.ts +4 -4
  54. package/modern/Component.mobile.d.ts +3 -3
  55. package/modern/Component.mobile.js +1 -1
  56. package/modern/Component.modal.mobile.d.ts +4 -4
  57. package/modern/Component.modal.mobile.js +1 -1
  58. package/modern/Component.responsive.d.ts +9 -9
  59. package/modern/Component.responsive.js +1 -1
  60. package/modern/autocomplete-field/Component.d.ts +1 -1
  61. package/modern/autocomplete-field/Component.js +1 -1
  62. package/modern/autocomplete-field/index.css +2 -2
  63. package/modern/autocomplete-mobile-field/Component.d.ts +2 -2
  64. package/modern/autocomplete-mobile-field/Component.js +1 -1
  65. package/modern/autocomplete-mobile-field/index.css +8 -8
  66. package/{esm/desktop.d.ts → modern/desktop/index.d.ts} +1 -1
  67. package/modern/{desktop.js → desktop/index.js} +2 -2
  68. package/modern/index.js +1 -1
  69. package/{esm/mobile.d.ts → modern/mobile/index.d.ts} +2 -2
  70. package/modern/{mobile.js → mobile/index.js} +4 -4
  71. package/modern/mobile.css +4 -4
  72. package/modern/{mobile.module-ba8a299e.js → mobile.module-7bf90bfc.js} +1 -1
  73. package/package.json +6 -26
  74. package/src/{desktop.ts → desktop/index.ts} +1 -1
  75. package/src/desktop/package.json +3 -0
  76. package/src/{mobile.ts → mobile/index.ts} +2 -2
  77. package/src/mobile/package.json +3 -0
  78. package/Component-0f4b9bed.d.ts +0 -72
  79. package/Component-69921c40.d.ts +0 -184
  80. package/Component-89f0cb07.d.ts +0 -38
  81. package/Component-bdb4c6b9.d.ts +0 -12
  82. package/Component-c76d6398.d.ts +0 -5
  83. package/Component-ebda875c.d.ts +0 -12
  84. package/Component.desktop-ebda875c.d.ts +0 -6
  85. package/Component.mobile-f1f15074.d.ts +0 -34
  86. package/Component.mobile-f28cbba0.d.ts +0 -41
  87. package/Component.modal.mobile-0f4b9bed.d.ts +0 -60
  88. package/Context-bdb4c6b9.d.ts +0 -4
  89. package/ResponsiveContext-baf4875b.d.ts +0 -5
  90. package/consts-f777ba1a.d.ts +0 -2
  91. package/cssm/Component-0f4b9bed.d.ts +0 -72
  92. package/cssm/Component-69921c40.d.ts +0 -184
  93. package/cssm/Component-89f0cb07.d.ts +0 -38
  94. package/cssm/Component-bdb4c6b9.d.ts +0 -12
  95. package/cssm/Component-c76d6398.d.ts +0 -5
  96. package/cssm/Component-ebda875c.d.ts +0 -12
  97. package/cssm/Component.desktop-ebda875c.d.ts +0 -6
  98. package/cssm/Component.mobile-f1f15074.d.ts +0 -34
  99. package/cssm/Component.mobile-f28cbba0.d.ts +0 -41
  100. package/cssm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
  101. package/cssm/Context-bdb4c6b9.d.ts +0 -4
  102. package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
  103. package/cssm/consts-f777ba1a.d.ts +0 -2
  104. package/cssm/desktop-69921c40.d.ts +0 -6
  105. package/cssm/hook-8abfea97.d.ts +0 -90
  106. package/cssm/index-136acbb1.d.ts +0 -28
  107. package/cssm/index-72dda473.d.ts +0 -12
  108. package/cssm/index-bdb4c6b9.d.ts +0 -2
  109. package/cssm/index-c76d6398.d.ts +0 -185
  110. package/cssm/index-ebda875c.d.ts +0 -146
  111. package/cssm/index-f12ee135.d.ts +0 -52
  112. package/cssm/mobile-89f0cb07.d.ts +0 -6
  113. package/cssm/mobile-96988a65.d.ts +0 -6
  114. package/cssm/mobile-f28cbba0.d.ts +0 -5
  115. package/cssm/shared-4cd3936b.d.ts +0 -65
  116. package/cssm/types-1b036d4b.d.ts +0 -13
  117. package/cssm/types-72dda473.d.ts +0 -276
  118. package/cssm/typings-0f4b9bed.d.ts +0 -576
  119. package/cssm/typings-89f0cb07.d.ts +0 -93
  120. package/cssm/typings-bdb4c6b9.d.ts +0 -52
  121. package/cssm/useSkeleton-ebda875c.d.ts +0 -12
  122. package/cssm/utils-0f4b9bed.d.ts +0 -41
  123. package/cssm/utils-1574ad8b.d.ts +0 -29
  124. package/desktop-69921c40.d.ts +0 -6
  125. package/esm/Component-0f4b9bed.d.ts +0 -72
  126. package/esm/Component-69921c40.d.ts +0 -184
  127. package/esm/Component-89f0cb07.d.ts +0 -38
  128. package/esm/Component-bdb4c6b9.d.ts +0 -12
  129. package/esm/Component-c76d6398.d.ts +0 -5
  130. package/esm/Component-ebda875c.d.ts +0 -12
  131. package/esm/Component.desktop-ebda875c.d.ts +0 -6
  132. package/esm/Component.mobile-f1f15074.d.ts +0 -34
  133. package/esm/Component.mobile-f28cbba0.d.ts +0 -41
  134. package/esm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
  135. package/esm/Context-bdb4c6b9.d.ts +0 -4
  136. package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
  137. package/esm/consts-f777ba1a.d.ts +0 -2
  138. package/esm/desktop-69921c40.d.ts +0 -6
  139. package/esm/hook-8abfea97.d.ts +0 -90
  140. package/esm/index-136acbb1.d.ts +0 -28
  141. package/esm/index-72dda473.d.ts +0 -12
  142. package/esm/index-bdb4c6b9.d.ts +0 -2
  143. package/esm/index-c76d6398.d.ts +0 -185
  144. package/esm/index-ebda875c.d.ts +0 -146
  145. package/esm/index-f12ee135.d.ts +0 -52
  146. package/esm/mobile-89f0cb07.d.ts +0 -6
  147. package/esm/mobile-96988a65.d.ts +0 -6
  148. package/esm/mobile-f28cbba0.d.ts +0 -5
  149. package/esm/shared-4cd3936b.d.ts +0 -65
  150. package/esm/types-1b036d4b.d.ts +0 -13
  151. package/esm/types-72dda473.d.ts +0 -276
  152. package/esm/typings-0f4b9bed.d.ts +0 -576
  153. package/esm/typings-89f0cb07.d.ts +0 -93
  154. package/esm/typings-bdb4c6b9.d.ts +0 -52
  155. package/esm/useSkeleton-ebda875c.d.ts +0 -12
  156. package/esm/utils-0f4b9bed.d.ts +0 -41
  157. package/esm/utils-1574ad8b.d.ts +0 -29
  158. package/hook-8abfea97.d.ts +0 -90
  159. package/index-136acbb1.d.ts +0 -28
  160. package/index-72dda473.d.ts +0 -12
  161. package/index-bdb4c6b9.d.ts +0 -2
  162. package/index-c76d6398.d.ts +0 -185
  163. package/index-ebda875c.d.ts +0 -146
  164. package/index-f12ee135.d.ts +0 -52
  165. package/mobile-89f0cb07.d.ts +0 -6
  166. package/mobile-96988a65.d.ts +0 -6
  167. package/mobile-f28cbba0.d.ts +0 -5
  168. package/modern/Component-0f4b9bed.d.ts +0 -72
  169. package/modern/Component-69921c40.d.ts +0 -184
  170. package/modern/Component-89f0cb07.d.ts +0 -38
  171. package/modern/Component-bdb4c6b9.d.ts +0 -12
  172. package/modern/Component-c76d6398.d.ts +0 -5
  173. package/modern/Component-ebda875c.d.ts +0 -12
  174. package/modern/Component.desktop-ebda875c.d.ts +0 -6
  175. package/modern/Component.mobile-f1f15074.d.ts +0 -34
  176. package/modern/Component.mobile-f28cbba0.d.ts +0 -41
  177. package/modern/Component.modal.mobile-0f4b9bed.d.ts +0 -60
  178. package/modern/Context-bdb4c6b9.d.ts +0 -4
  179. package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
  180. package/modern/consts-f777ba1a.d.ts +0 -2
  181. package/modern/desktop-69921c40.d.ts +0 -6
  182. package/modern/hook-8abfea97.d.ts +0 -90
  183. package/modern/index-136acbb1.d.ts +0 -28
  184. package/modern/index-72dda473.d.ts +0 -12
  185. package/modern/index-bdb4c6b9.d.ts +0 -2
  186. package/modern/index-c76d6398.d.ts +0 -185
  187. package/modern/index-ebda875c.d.ts +0 -146
  188. package/modern/index-f12ee135.d.ts +0 -52
  189. package/modern/mobile-89f0cb07.d.ts +0 -6
  190. package/modern/mobile-96988a65.d.ts +0 -6
  191. package/modern/mobile-f28cbba0.d.ts +0 -5
  192. package/modern/shared-4cd3936b.d.ts +0 -65
  193. package/modern/types-1b036d4b.d.ts +0 -13
  194. package/modern/types-72dda473.d.ts +0 -276
  195. package/modern/typings-0f4b9bed.d.ts +0 -576
  196. package/modern/typings-89f0cb07.d.ts +0 -93
  197. package/modern/typings-bdb4c6b9.d.ts +0 -52
  198. package/modern/useSkeleton-ebda875c.d.ts +0 -12
  199. package/modern/utils-0f4b9bed.d.ts +0 -41
  200. package/modern/utils-1574ad8b.d.ts +0 -29
  201. package/shared-4cd3936b.d.ts +0 -65
  202. package/types-1b036d4b.d.ts +0 -13
  203. package/types-72dda473.d.ts +0 -276
  204. package/typings-0f4b9bed.d.ts +0 -576
  205. package/typings-89f0cb07.d.ts +0 -93
  206. package/typings-bdb4c6b9.d.ts +0 -52
  207. package/useSkeleton-ebda875c.d.ts +0 -12
  208. package/utils-0f4b9bed.d.ts +0 -41
  209. package/utils-1574ad8b.d.ts +0 -29
@@ -1,276 +0,0 @@
1
- /// <reference types="react-transition-group" />
2
- import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
- import { HandledEvents } from 'react-swipeable/es/types';
4
- import { TransitionProps } from 'react-transition-group/Transition';
5
- import { BaseModalProps } from "./index-bdb4c6b9";
6
- import { NavigationBarProps } from "./index-c76d6398";
7
- import { BackgroundColorType } from "./index-72dda473";
8
- type BottomSheetTitleAlign = 'center' | 'left';
9
- type BottomSheetProps = {
10
- /**
11
- * Контент
12
- */
13
- children?: ReactNode;
14
- /**
15
- * Управление видимостью
16
- */
17
- open: boolean;
18
- /**
19
- * Заголовок
20
- */
21
- title?: ReactNode;
22
- /**
23
- * Размер заголовка
24
- */
25
- titleSize?: NavigationBarProps['titleSize'];
26
- /**
27
- * Подзаголовок.
28
- */
29
- subtitle?: NavigationBarProps['subtitle'];
30
- /**
31
- * Кнопка действия (обычно, это кнопка закрытия)
32
- */
33
- actionButton?: ReactNode;
34
- /**
35
- * Нода, компонент или функция возвращающая их
36
- *
37
- * Контейнер к которому будут добавляться порталы
38
- */
39
- container?: BaseModalProps['container'];
40
- /**
41
- * Рендерить ли в контейнер через портал.
42
- */
43
- usePortal?: BaseModalProps['usePortal'];
44
- /**
45
- * Дополнительный класс
46
- */
47
- className?: string;
48
- /**
49
- * Дополнительный класс
50
- */
51
- contentClassName?: string;
52
- /**
53
- * Дополнительные пропсы на контейнер.
54
- */
55
- containerProps?: HTMLAttributes<HTMLDivElement>;
56
- /**
57
- * Дополнительный класс
58
- */
59
- containerClassName?: string;
60
- /**
61
- * Цвет фона
62
- */
63
- backgroundColor?: Extract<BackgroundColorType, 'primary' | 'secondary'>;
64
- /**
65
- * Дополнительный класс шапки
66
- */
67
- headerClassName?: string;
68
- /**
69
- * Дополнительный класс футера
70
- */
71
- footerClassName?: string;
72
- /**
73
- * Дополнительный класс для аддонов
74
- */
75
- addonClassName?: string;
76
- /**
77
- * Дополнительный класс для компонента крестика
78
- */
79
- closerClassName?: string;
80
- /**
81
- * Дополнительный класс для компонента стрелки назад
82
- */
83
- backerClassName?: string;
84
- /**
85
- * Дополнительный класс для компонента модального окна
86
- */
87
- modalClassName?: string;
88
- /**
89
- * Дополнительный класс для обертки модального окна
90
- */
91
- modalWrapperClassName?: string;
92
- /**
93
- * Дополнительный класс для маркера
94
- */
95
- swipeableMarkerClassName?: string;
96
- /**
97
- * Кастомный маркер
98
- */
99
- swipeableMarker?: ReactElement;
100
- /**
101
- * TransitionProps, прокидываются в компонент CSSTransitionProps.
102
- */
103
- transitionProps?: Partial<TransitionProps>;
104
- /**
105
- * Идентификатор для систем автоматизированного тестирования
106
- */
107
- dataTestId?: string;
108
- /**
109
- * z-index компонента
110
- */
111
- zIndex?: number;
112
- /**
113
- * Будет ли свайпаться шторка
114
- * @default true
115
- */
116
- swipeable?: boolean;
117
- /**
118
- * Будет ли свайпаться контент
119
- */
120
- swipeableContent?: boolean;
121
- /**
122
- * Порог свайпа
123
- */
124
- swipeThreshold?: number;
125
- /**
126
- * Слот слева
127
- */
128
- leftAddons?: ReactNode;
129
- /**
130
- * Слот справа
131
- */
132
- rightAddons?: ReactNode;
133
- /**
134
- * Слот снизу
135
- */
136
- bottomAddons?: ReactNode;
137
- /**
138
- * Наличие компонента крестика
139
- */
140
- hasCloser?: boolean;
141
- /**
142
- * Наличие компонента стрелки назад
143
- */
144
- hasBacker?: boolean;
145
- /**
146
- * Выравнивание заголовка
147
- */
148
- titleAlign?: BottomSheetTitleAlign;
149
- /**
150
- * Фиксирует шапку
151
- */
152
- stickyHeader?: boolean;
153
- /**
154
- * Фиксирует футер
155
- */
156
- stickyFooter?: boolean;
157
- /**
158
- * Высота шторки
159
- */
160
- initialHeight?: 'default' | 'full';
161
- /**
162
- * Будет ли виден оверлэй
163
- */
164
- hideOverlay?: boolean;
165
- /**
166
- * Будет ли видна шапка
167
- */
168
- hideHeader?: boolean;
169
- /**
170
- * Будет ли обрезан заголовок
171
- */
172
- trimTitle?: boolean;
173
- /**
174
- * Запретить закрытие шторки кликом на оверлэй
175
- */
176
- disableOverlayClick?: boolean;
177
- /**
178
- * Отключает блокировку скролла при открытии модального окна
179
- */
180
- disableBlockingScroll?: boolean;
181
- /**
182
- * Отключает ловушку фокуса
183
- */
184
- disableFocusLock?: boolean;
185
- /**
186
- * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
187
- * Не анимировать шторку при изменении размера вьюпорта
188
- */
189
- ignoreScreenChange?: boolean;
190
- /**
191
- * Свойства для Бэкдропа
192
- */
193
- backdropProps?: BaseModalProps['backdropProps'];
194
- /**
195
- * Реф на контейнер, в котором происходит скролл
196
- */
197
- scrollableContainerRef?: RefObject<HTMLElement>;
198
- /**
199
- * Реф для управления компонентом.
200
- */
201
- bottomSheetInstanceRef?: RefObject<{
202
- scrollToArea: (idx: number) => void;
203
- }>;
204
- /**
205
- * Реф на контейнер, в котором находится шторка
206
- */
207
- sheetContainerRef?: RefObject<HTMLElement>;
208
- /**
209
- * Магнитные области видимой высоты шторки.
210
- * Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
211
- * По-умолчанию -[0, window.innerHeight - '24px']
212
- * массив должен состоять минимум из 2 элементов
213
- */
214
- magneticAreas?: Array<number | string>;
215
- /**
216
- * Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
217
- */
218
- initialActiveAreaIndex?: number;
219
- /**
220
- * Отключает скролл контентной области.
221
- */
222
- scrollLocked?: boolean;
223
- /**
224
- * Скрыть скроллбар внутри шторки
225
- */
226
- hideScrollbar?: boolean;
227
- /**
228
- * Верхний отступ шторки, если она открыта на максимальную высоту
229
- */
230
- headerOffset?: number;
231
- /**
232
- * Содержимое bottom-sheet всегда в DOM
233
- */
234
- keepMounted?: boolean;
235
- /**
236
- * Отключает автоматический перевод фокуса на bottom-sheet при открытии
237
- */
238
- disableAutoFocus?: boolean;
239
- /**
240
- * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
241
- */
242
- disableRestoreFocus?: boolean;
243
- /**
244
- * Отключает вызов `onClose` при нажатии Escape
245
- */
246
- disableEscapeKeyDown?: boolean;
247
- /**
248
- * Обработчик закрытия
249
- */
250
- onClose: () => void;
251
- /**
252
- * Обработчик нажатия на стрелку назад
253
- */
254
- onBack?: () => void;
255
- /**
256
- * Вызывается в начале анимации притягивания к одной из `magneticAreas`
257
- */
258
- onMagnetize?: (index: number) => void;
259
- /**
260
- * Вызывается после окончания анимации притягивания
261
- */
262
- onMagnetizeEnd?: (index: number) => void;
263
- /**
264
- * Вызывается при изменении положения шторки
265
- */
266
- onOffsetChange?: (offset: number, percent: number) => void;
267
- /**
268
- * Вызывается в начале свайпа
269
- */
270
- onSwipeStart?: (event: HandledEvents) => void;
271
- /**
272
- * Вызывается после окончания свайпа
273
- */
274
- onSwipeEnd?: (event: HandledEvents | null) => void;
275
- };
276
- export { BottomSheetTitleAlign, BottomSheetProps };