@alfalab/core-components-tabs 7.3.9 → 7.3.10

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 (136) hide show
  1. package/Component-3885b0d7.d.ts +5 -0
  2. package/Component-3e68f8db.d.ts +2 -2
  3. package/{esm/Component-cac440c1.d.ts → Component-a8deae7f.d.ts} +1 -1
  4. package/component-3885b0d7.d.ts +216 -0
  5. package/components/primary-tablist/Component.desktop.js +1 -1
  6. package/components/primary-tablist/Component.mobile.js +2 -2
  7. package/components/primary-tablist/Component.responsive.js +1 -1
  8. package/components/primary-tablist/index.css +29 -29
  9. package/components/primary-tablist/mobile.css +32 -32
  10. package/components/scrollable-container/Component.js +1 -1
  11. package/components/scrollable-container/index.css +5 -5
  12. package/components/secondary-tablist/Component.desktop.js +1 -1
  13. package/components/secondary-tablist/Component.mobile.js +2 -2
  14. package/components/secondary-tablist/Component.responsive.js +1 -1
  15. package/components/secondary-tablist/index.css +11 -11
  16. package/components/secondary-tablist/mobile.css +13 -13
  17. package/components/tab/Component.js +1 -1
  18. package/components/tab/index.css +3 -3
  19. package/components/tabs/Component.desktop.js +2 -2
  20. package/components/tabs/Component.mobile.js +2 -2
  21. package/components/tabs/Component.responsive.js +2 -2
  22. package/cssm/Component-3885b0d7.d.ts +5 -0
  23. package/cssm/Component-3e68f8db.d.ts +2 -2
  24. package/{Component-cac440c1.d.ts → cssm/Component-a8deae7f.d.ts} +1 -1
  25. package/cssm/component-3885b0d7.d.ts +216 -0
  26. package/cssm/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
  27. package/cssm/index-3e68f8db.d.ts +3 -3
  28. package/cssm/index-48646db0.d.ts +1 -1
  29. package/cssm/index-7ca84eff.d.ts +1 -215
  30. package/cssm/index-e81c389f.d.ts +3 -141
  31. package/cssm/index-ebda875c.d.ts +1 -1
  32. package/cssm/types-ebda875c.d.ts +113 -0
  33. package/cssm/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  34. package/cssm/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  35. package/desktop.js +2 -2
  36. package/esm/Component-3885b0d7.d.ts +5 -0
  37. package/esm/Component-3e68f8db.d.ts +2 -2
  38. package/{modern/Component-cac440c1.d.ts → esm/Component-a8deae7f.d.ts} +1 -1
  39. package/esm/component-3885b0d7.d.ts +216 -0
  40. package/esm/components/primary-tablist/Component.desktop.js +1 -1
  41. package/esm/components/primary-tablist/Component.mobile.js +2 -2
  42. package/esm/components/primary-tablist/Component.responsive.js +1 -1
  43. package/esm/components/primary-tablist/index.css +29 -29
  44. package/esm/components/primary-tablist/mobile.css +32 -32
  45. package/esm/components/scrollable-container/Component.js +1 -1
  46. package/esm/components/scrollable-container/index.css +5 -5
  47. package/esm/components/secondary-tablist/Component.desktop.js +1 -1
  48. package/esm/components/secondary-tablist/Component.mobile.js +2 -2
  49. package/esm/components/secondary-tablist/Component.responsive.js +1 -1
  50. package/esm/components/secondary-tablist/index.css +11 -11
  51. package/esm/components/secondary-tablist/mobile.css +13 -13
  52. package/esm/components/tab/Component.js +1 -1
  53. package/esm/components/tab/index.css +3 -3
  54. package/esm/components/tabs/Component.desktop.js +2 -2
  55. package/esm/components/tabs/Component.mobile.js +2 -2
  56. package/esm/components/tabs/Component.responsive.js +2 -2
  57. package/esm/desktop.js +2 -2
  58. package/{getDataTestId-3fe0d3e6.d.ts → esm/index-3885b0d7.d.ts} +2 -1
  59. package/esm/index-3e68f8db.d.ts +3 -3
  60. package/esm/index-48646db0.d.ts +1 -1
  61. package/esm/index-7ca84eff.d.ts +1 -215
  62. package/esm/index-e81c389f.d.ts +3 -141
  63. package/esm/index-ebda875c.d.ts +1 -1
  64. package/esm/index.js +2 -2
  65. package/esm/index.module-148f7ebd.js +4 -0
  66. package/esm/index.module-c3aa1087.js +4 -0
  67. package/esm/mobile.js +2 -2
  68. package/esm/responsive.js +2 -2
  69. package/esm/types-ebda875c.d.ts +113 -0
  70. package/esm/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  71. package/esm/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  72. package/{esm/getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
  73. package/index-3e68f8db.d.ts +3 -3
  74. package/index-48646db0.d.ts +1 -1
  75. package/index-7ca84eff.d.ts +1 -215
  76. package/index-e81c389f.d.ts +3 -141
  77. package/index-ebda875c.d.ts +1 -1
  78. package/index.js +2 -2
  79. package/index.module-3024c3e4.js +6 -0
  80. package/index.module-7d7e1aeb.js +6 -0
  81. package/mobile.js +2 -2
  82. package/modern/Component-3885b0d7.d.ts +5 -0
  83. package/modern/Component-3e68f8db.d.ts +2 -2
  84. package/{cssm/Component-cac440c1.d.ts → modern/Component-a8deae7f.d.ts} +1 -1
  85. package/modern/component-3885b0d7.d.ts +216 -0
  86. package/modern/components/primary-tablist/Component.desktop.js +1 -1
  87. package/modern/components/primary-tablist/Component.mobile.js +2 -2
  88. package/modern/components/primary-tablist/Component.responsive.js +1 -1
  89. package/modern/components/primary-tablist/index.css +29 -29
  90. package/modern/components/primary-tablist/mobile.css +32 -32
  91. package/modern/components/scrollable-container/Component.js +1 -1
  92. package/modern/components/scrollable-container/index.css +5 -5
  93. package/modern/components/secondary-tablist/Component.desktop.js +1 -1
  94. package/modern/components/secondary-tablist/Component.mobile.js +2 -2
  95. package/modern/components/secondary-tablist/Component.responsive.js +1 -1
  96. package/modern/components/secondary-tablist/index.css +11 -11
  97. package/modern/components/secondary-tablist/mobile.css +13 -13
  98. package/modern/components/tab/Component.js +1 -1
  99. package/modern/components/tab/index.css +3 -3
  100. package/modern/components/tabs/Component.desktop.js +2 -2
  101. package/modern/components/tabs/Component.mobile.js +2 -2
  102. package/modern/components/tabs/Component.responsive.js +2 -2
  103. package/modern/desktop.js +2 -2
  104. package/modern/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
  105. package/modern/index-3e68f8db.d.ts +3 -3
  106. package/modern/index-48646db0.d.ts +1 -1
  107. package/modern/index-7ca84eff.d.ts +1 -215
  108. package/modern/index-e81c389f.d.ts +3 -141
  109. package/modern/index-ebda875c.d.ts +1 -1
  110. package/modern/index.js +2 -2
  111. package/modern/index.module-67a4be0c.js +4 -0
  112. package/modern/index.module-df3add82.js +4 -0
  113. package/modern/mobile.js +2 -2
  114. package/modern/responsive.js +2 -2
  115. package/modern/types-ebda875c.d.ts +113 -0
  116. package/modern/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  117. package/modern/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  118. package/package.json +2 -2
  119. package/responsive.js +2 -2
  120. package/types-ebda875c.d.ts +113 -0
  121. package/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  122. package/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  123. package/Component-7ca84eff.d.ts +0 -5
  124. package/cssm/Component-7ca84eff.d.ts +0 -5
  125. package/cssm/index-3fe0d3e6.d.ts +0 -3
  126. package/esm/Component-7ca84eff.d.ts +0 -5
  127. package/esm/index-3fe0d3e6.d.ts +0 -3
  128. package/esm/index.module-b06e730b.js +0 -4
  129. package/esm/index.module-ea1e031b.js +0 -4
  130. package/index-3fe0d3e6.d.ts +0 -3
  131. package/index.module-9aac8027.js +0 -6
  132. package/index.module-dde2566f.js +0 -6
  133. package/modern/Component-7ca84eff.d.ts +0 -5
  134. package/modern/index-3fe0d3e6.d.ts +0 -3
  135. package/modern/index.module-1428a125.js +0 -4
  136. package/modern/index.module-1e6e4859.js +0 -4
@@ -1,215 +1 @@
1
- /// <reference types="react-transition-group" />
2
- /// <reference types="react" />
3
- import React from "react";
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 { SwipeableHandlers } from "react-swipeable/types";
9
- import { BackdropProps } from "./index-ebda875c";
10
- type BottomSheetTitleAlign = "center" | "left";
11
- type BottomSheetProps = {
12
- /**
13
- * Контент
14
- */
15
- children?: ReactNode;
16
- /**
17
- * Управление видимостью
18
- */
19
- open: boolean;
20
- /**
21
- * Заголовок
22
- */
23
- title?: ReactNode;
24
- /**
25
- * Размер заголовка
26
- */
27
- titleSize?: NavigationBarProps["titleSize"];
28
- /**
29
- * Подзаголовок.
30
- */
31
- subtitle?: NavigationBarProps["subtitle"];
32
- /**
33
- * Кнопка действия (обычно, это кнопка закрытия)
34
- */
35
- actionButton?: ReactNode;
36
- /**
37
- * Нода, компонент или функция возвращающая их
38
- *
39
- * Контейнер к которому будут добавляться порталы
40
- */
41
- container?: BaseModalProps["container"];
42
- /**
43
- * Дополнительный класс
44
- */
45
- className?: string;
46
- /**
47
- * Дополнительный класс
48
- */
49
- contentClassName?: string;
50
- /**
51
- * Дополнительные пропсы на контейнер.
52
- */
53
- containerProps?: HTMLAttributes<HTMLDivElement>;
54
- /**
55
- * Дополнительный класс
56
- */
57
- containerClassName?: string;
58
- /**
59
- * Дополнительный класс шапки
60
- */
61
- headerClassName?: string;
62
- /**
63
- * Дополнительный класс футера
64
- */
65
- footerClassName?: string;
66
- /**
67
- * Дополнительный класс для аддонов
68
- */
69
- addonClassName?: string;
70
- /**
71
- * Дополнительный класс для компонента крестика
72
- */
73
- closerClassName?: string;
74
- /**
75
- * Дополнительный класс для компонента стрелки назад
76
- */
77
- backerClassName?: string;
78
- /**
79
- * Дополнительный класс для компонента модального окна
80
- */
81
- modalClassName?: string;
82
- /**
83
- * Дополнительный класс для обертки модального окна
84
- */
85
- modalWrapperClassName?: string;
86
- /**
87
- * TransitionProps, прокидываются в компонент CSSTransitionProps.
88
- */
89
- transitionProps?: Partial<TransitionProps>;
90
- /**
91
- * Идентификатор для систем автоматизированного тестирования
92
- */
93
- dataTestId?: string;
94
- /**
95
- * z-index компонента
96
- */
97
- zIndex?: number;
98
- /**
99
- * Будет ли свайпаться шторка
100
- * @default true
101
- */
102
- swipeable?: boolean;
103
- /**
104
- * Слот слева
105
- */
106
- leftAddons?: ReactNode;
107
- /**
108
- * Слот справа
109
- */
110
- rightAddons?: ReactNode;
111
- /**
112
- * Слот снизу
113
- */
114
- bottomAddons?: ReactNode;
115
- /**
116
- * Наличие компонента крестика
117
- */
118
- hasCloser?: boolean;
119
- /**
120
- * Наличие компонента стрелки назад
121
- */
122
- hasBacker?: boolean;
123
- /**
124
- * Выравнивание заголовка
125
- */
126
- titleAlign?: BottomSheetTitleAlign;
127
- /**
128
- * Фиксирует шапку
129
- */
130
- stickyHeader?: boolean;
131
- /**
132
- * Фиксирует футер
133
- */
134
- stickyFooter?: boolean;
135
- /**
136
- * Высота шторки
137
- */
138
- initialHeight?: "default" | "full";
139
- /**
140
- * Будет ли виден оверлэй
141
- */
142
- hideOverlay?: boolean;
143
- /**
144
- * Будет ли видна шапка
145
- */
146
- hideHeader?: boolean;
147
- /**
148
- * Будет ли обрезан заголовок
149
- */
150
- trimTitle?: boolean;
151
- /**
152
- * Запретить закрытие шторки кликом на оверлэй
153
- */
154
- disableOverlayClick?: boolean;
155
- /**
156
- * Отключает блокировку скролла при открытии модального окна
157
- */
158
- disableBlockingScroll?: boolean;
159
- /**
160
- * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
161
- * Не анимировать шторку при изменении размера вьюпорта
162
- */
163
- ignoreScreenChange?: boolean;
164
- /**
165
- * Свойства для Бэкдропа
166
- */
167
- backdropProps?: BaseModalProps["backdropProps"];
168
- /**
169
- * Реф на контейнер, в котором происходит скролл
170
- */
171
- scrollableContainerRef?: RefObject<HTMLElement>;
172
- /**
173
- * Обработчик закрытия
174
- */
175
- onClose: () => void;
176
- /**
177
- * Обработчик нажатия на стрелку назад
178
- */
179
- onBack?: () => void;
180
- };
181
- /* Верхний отступ шторки, если она открыта на максимальную высоту */
182
- declare const HEADER_OFFSET = 24;
183
- declare const CLOSE_OFFSET = 0.2;
184
- declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
185
- type FooterProps = {
186
- /**
187
- * Контент футера
188
- */
189
- children?: ReactNode;
190
- /**
191
- * Фиксирует футер
192
- */
193
- sticky?: boolean;
194
- /**
195
- * Дополнительный класс
196
- */
197
- className?: string;
198
- };
199
- declare const Footer: FC<FooterProps>;
200
- type SwipeableBackdropProps = BackdropProps & {
201
- /**
202
- * Прозрачность бэкдропа
203
- */
204
- opacity?: number;
205
- /**
206
- * Обработчики свайпа
207
- */
208
- handlers?: SwipeableHandlers;
209
- /**
210
- * Время анимации opacity
211
- */
212
- opacityTimeout?: number;
213
- };
214
- declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
215
- export { BottomSheetTitleAlign, BottomSheetProps, HEADER_OFFSET, CLOSE_OFFSET, BottomSheet, FooterProps, Footer, SwipeableBackdropProps, SwipeableBackdrop };
1
+ export * from "./component-3885b0d7";
@@ -1,141 +1,3 @@
1
- /// <reference types="react" />
2
- /* eslint-disable complexity */
3
- import React from "react";
4
- import { FC, ReactNode, ButtonHTMLAttributes, ElementType } from "react";
5
- interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
- /**
7
- * Вид компонента
8
- */
9
- view: "desktop" | "mobile";
10
- /**
11
- * Дополнительный класс
12
- */
13
- className?: string;
14
- /**
15
- * Позиция крестика
16
- */
17
- align?: "left" | "right";
18
- /**
19
- * Фиксирует крестик
20
- */
21
- sticky?: boolean;
22
- /**
23
- * Иконка
24
- */
25
- icon?: ElementType;
26
- /**
27
- * Идентификатор для систем автоматизированного тестирования
28
- */
29
- dataTestId?: string;
30
- /**
31
- * Коллбэк закрытия.
32
- */
33
- onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
34
- }
35
- declare const Closer: FC<CloserProps>;
36
- type NavigationBarProps = {
37
- /**
38
- * Контент шапки
39
- */
40
- children?: ReactNode;
41
- /**
42
- * Заголовок шапки
43
- */
44
- title?: string;
45
- /**
46
- * Подзаголовок (доступен только в мобильной версии)
47
- */
48
- subtitle?: string;
49
- /**
50
- * Размер заголовка (compact доступен только в мобильной версии)
51
- */
52
- titleSize?: "default" | "compact";
53
- /**
54
- * Доп. класс для аддонов
55
- */
56
- addonClassName?: string;
57
- /**
58
- * Слот слева
59
- */
60
- leftAddons?: ReactNode;
61
- /**
62
- * Слот справа
63
- */
64
- rightAddons?: ReactNode;
65
- /**
66
- * Дополнительный класс для closer
67
- */
68
- closerClassName?: string;
69
- /**
70
- * Слот снизу
71
- */
72
- bottomAddons?: ReactNode;
73
- /**
74
- * Наличие компонента крестика
75
- */
76
- hasCloser?: boolean;
77
- /**
78
- * Наличие кнопки "Назад"
79
- */
80
- hasBackButton?: boolean;
81
- /**
82
- * Дополнительный класс для правого аддона
83
- */
84
- backButtonClassName?: string;
85
- /**
86
- * Дополнительный класс
87
- */
88
- className?: string;
89
- /**
90
- * Дополнительный класс для контента
91
- */
92
- contentClassName?: string;
93
- /**
94
- * Дополнительный класс для нижнего аддона
95
- */
96
- bottomAddonsClassName?: string;
97
- /**
98
- * Выравнивание заголовка
99
- */
100
- align?: "left" | "center";
101
- /**
102
- * Обрезать ли заголовок
103
- */
104
- trim?: boolean;
105
- /**
106
- * Фиксирует шапку
107
- */
108
- sticky?: boolean;
109
- /**
110
- * Идентификатор для систем автоматизированного тестирования
111
- */
112
- dataTestId?: string;
113
- /**
114
- * Фоновое изображение
115
- */
116
- imageUrl?: string;
117
- /**
118
- * Иконка closer.
119
- */
120
- closerIcon?: React.ElementType;
121
- /**
122
- * Обработчик закрытия
123
- */
124
- onClose?: CloserProps["onClose"];
125
- /**
126
- * обработчик клика по кнопке "назад"
127
- */
128
- onBack?: () => void;
129
- /**
130
- * Вид шапки - мобильный или десктоп
131
- */
132
- view: "desktop" | "mobile";
133
- /**
134
- * Ссылка на родительскую ноду overflow: auto
135
- */
136
- scrollableParentRef?: React.RefObject<HTMLDivElement>;
137
- };
138
- declare const NavigationBar: FC<NavigationBarProps>;
139
- export { NavigationBar, CloserProps, Closer };
140
- export * from "./Component-ebda875c";
141
- export type { NavigationBarProps };
1
+ export * from "./Component-3885b0d7";
2
+ export * from "./index-ebda875c";
3
+ export type { NavigationBarProps } from "./types-ebda875c";
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react-transition-group" />
3
- export * from "./Component-cac440c1";
3
+ export * from "./Component-a8deae7f";
package/index.js CHANGED
@@ -21,12 +21,12 @@ require('@juggle/resize-observer');
21
21
  require('./synthetic-events.js');
22
22
  require('./components/title/Component.js');
23
23
  require('compute-scroll-into-view');
24
- require('./index.module-dde2566f.js');
24
+ require('./index.module-7d7e1aeb.js');
25
25
  require('./components/primary-tablist/Component.mobile.js');
26
26
  require('./components/secondary-tablist/Component.desktop.js');
27
27
  require('./components/secondary-tablist/Component.js');
28
28
  require('@alfalab/core-components-tag');
29
- require('./index.module-9aac8027.js');
29
+ require('./index.module-3024c3e4.js');
30
30
  require('./components/secondary-tablist/Component.mobile.js');
31
31
  require('./components/tabs/Component.js');
32
32
 
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"tabs__component_wpar8","fullWidthScroll":"tabs__fullWidthScroll_wpar8","container":"tabs__container_wpar8","title":"tabs__title_wpar8","xxs":"tabs__xxs_wpar8","xs":"tabs__xs_wpar8","s":"tabs__s_wpar8","m":"tabs__m_wpar8","l":"tabs__l_wpar8","xl":"tabs__xl_wpar8"};
4
+ require('./components/secondary-tablist/index.css')
5
+
6
+ exports.commonStyles = commonStyles;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"tabs__component_ivs4u","fullWidthScroll":"tabs__fullWidthScroll_ivs4u","container":"tabs__container_ivs4u","title":"tabs__title_ivs4u","disabled":"tabs__disabled_ivs4u","focused":"tabs__focused_ivs4u","collapsed":"tabs__collapsed_ivs4u","selected":"tabs__selected_ivs4u","line":"tabs__line_ivs4u","s":"tabs__s_ivs4u","xs":"tabs__xs_ivs4u","xxs":"tabs__xxs_ivs4u","pickerWrapper":"tabs__pickerWrapper_ivs4u","option":"tabs__option_ivs4u","m":"tabs__m_ivs4u","l":"tabs__l_ivs4u","xl":"tabs__xl_ivs4u","rightAddons":"tabs__rightAddons_ivs4u"};
4
+ require('./components/primary-tablist/index.css')
5
+
6
+ exports.commonStyles = commonStyles;
package/mobile.js CHANGED
@@ -20,10 +20,10 @@ require('@juggle/resize-observer');
20
20
  require('./synthetic-events.js');
21
21
  require('./components/title/Component.js');
22
22
  require('compute-scroll-into-view');
23
- require('./index.module-dde2566f.js');
23
+ require('./index.module-7d7e1aeb.js');
24
24
  require('./components/secondary-tablist/Component.js');
25
25
  require('@alfalab/core-components-tag');
26
- require('./index.module-9aac8027.js');
26
+ require('./index.module-3024c3e4.js');
27
27
  require('./components/tabs/Component.js');
28
28
 
29
29
 
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { NavigationBarProps } from "./types-ebda875c";
3
+ declare const NavigationBar: FC<NavigationBarProps>;
4
+ export * from "./Component-ebda875c";
5
+ export { NavigationBar };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FC, SVGProps } from 'react';
3
- import { OptionShape } from "./typings-cac440c1";
4
- import { OptionProps as BaseOptionProps } from "./typings-cac440c1";
3
+ import { OptionShape } from "./typings-a8deae7f";
4
+ import { OptionProps as BaseOptionProps } from "./typings-a8deae7f";
5
5
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
6
6
  option: OptionShape & {
7
7
  icon?: FC<SVGProps<SVGSVGElement>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { FC } from 'react';
3
- import { OptionProps } from "./typings-cac440c1";
3
+ import { OptionProps } from "./typings-a8deae7f";
4
4
  declare const BaseOption: FC<OptionProps>;
5
5
  export { BaseOption };
@@ -0,0 +1,216 @@
1
+ /// <reference types="react-transition-group" />
2
+ /// <reference types="react" />
3
+ import React from "react";
4
+ import { FC, ReactNode, HTMLAttributes, RefObject } from "react";
5
+ import { NavigationBarProps } from "./index-e81c389f";
6
+ import { SwipeableHandlers } from "react-swipeable/types";
7
+ import { BackdropProps } from "./index-ebda875c";
8
+ import { TransitionProps } from 'react-transition-group/Transition';
9
+ import { BaseModalProps } from "./index-bdb4c6b9";
10
+ type HeaderProps = Omit<NavigationBarProps, "view" | "size">;
11
+ declare const Header: FC<HeaderProps>;
12
+ type FooterProps = {
13
+ /**
14
+ * Контент футера
15
+ */
16
+ children?: ReactNode;
17
+ /**
18
+ * Фиксирует футер
19
+ */
20
+ sticky?: boolean;
21
+ /**
22
+ * Дополнительный класс
23
+ */
24
+ className?: string;
25
+ };
26
+ declare const Footer: FC<FooterProps>;
27
+ type SwipeableBackdropProps = BackdropProps & {
28
+ /**
29
+ * Прозрачность бэкдропа
30
+ */
31
+ opacity?: number;
32
+ /**
33
+ * Обработчики свайпа
34
+ */
35
+ handlers?: SwipeableHandlers;
36
+ /**
37
+ * Время анимации opacity
38
+ */
39
+ opacityTimeout?: number;
40
+ };
41
+ declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
42
+ type BottomSheetTitleAlign = 'center' | 'left';
43
+ type BottomSheetProps = {
44
+ /**
45
+ * Контент
46
+ */
47
+ children?: ReactNode;
48
+ /**
49
+ * Управление видимостью
50
+ */
51
+ open: boolean;
52
+ /**
53
+ * Заголовок
54
+ */
55
+ title?: ReactNode;
56
+ /**
57
+ * Размер заголовка
58
+ */
59
+ titleSize?: NavigationBarProps['titleSize'];
60
+ /**
61
+ * Подзаголовок.
62
+ */
63
+ subtitle?: NavigationBarProps['subtitle'];
64
+ /**
65
+ * Кнопка действия (обычно, это кнопка закрытия)
66
+ */
67
+ actionButton?: ReactNode;
68
+ /**
69
+ * Нода, компонент или функция возвращающая их
70
+ *
71
+ * Контейнер к которому будут добавляться порталы
72
+ */
73
+ container?: BaseModalProps['container'];
74
+ /**
75
+ * Дополнительный класс
76
+ */
77
+ className?: string;
78
+ /**
79
+ * Дополнительный класс
80
+ */
81
+ contentClassName?: string;
82
+ /**
83
+ * Дополнительные пропсы на контейнер.
84
+ */
85
+ containerProps?: HTMLAttributes<HTMLDivElement>;
86
+ /**
87
+ * Дополнительный класс
88
+ */
89
+ containerClassName?: string;
90
+ /**
91
+ * Дополнительный класс шапки
92
+ */
93
+ headerClassName?: string;
94
+ /**
95
+ * Дополнительный класс футера
96
+ */
97
+ footerClassName?: string;
98
+ /**
99
+ * Дополнительный класс для аддонов
100
+ */
101
+ addonClassName?: string;
102
+ /**
103
+ * Дополнительный класс для компонента крестика
104
+ */
105
+ closerClassName?: string;
106
+ /**
107
+ * Дополнительный класс для компонента стрелки назад
108
+ */
109
+ backerClassName?: string;
110
+ /**
111
+ * Дополнительный класс для компонента модального окна
112
+ */
113
+ modalClassName?: string;
114
+ /**
115
+ * Дополнительный класс для обертки модального окна
116
+ */
117
+ modalWrapperClassName?: string;
118
+ /**
119
+ * TransitionProps, прокидываются в компонент CSSTransitionProps.
120
+ */
121
+ transitionProps?: Partial<TransitionProps>;
122
+ /**
123
+ * Идентификатор для систем автоматизированного тестирования
124
+ */
125
+ dataTestId?: string;
126
+ /**
127
+ * z-index компонента
128
+ */
129
+ zIndex?: number;
130
+ /**
131
+ * Будет ли свайпаться шторка
132
+ * @default true
133
+ */
134
+ swipeable?: boolean;
135
+ /**
136
+ * Слот слева
137
+ */
138
+ leftAddons?: ReactNode;
139
+ /**
140
+ * Слот справа
141
+ */
142
+ rightAddons?: ReactNode;
143
+ /**
144
+ * Слот снизу
145
+ */
146
+ bottomAddons?: ReactNode;
147
+ /**
148
+ * Наличие компонента крестика
149
+ */
150
+ hasCloser?: boolean;
151
+ /**
152
+ * Наличие компонента стрелки назад
153
+ */
154
+ hasBacker?: boolean;
155
+ /**
156
+ * Выравнивание заголовка
157
+ */
158
+ titleAlign?: BottomSheetTitleAlign;
159
+ /**
160
+ * Фиксирует шапку
161
+ */
162
+ stickyHeader?: boolean;
163
+ /**
164
+ * Фиксирует футер
165
+ */
166
+ stickyFooter?: boolean;
167
+ /**
168
+ * Высота шторки
169
+ */
170
+ initialHeight?: 'default' | 'full';
171
+ /**
172
+ * Будет ли виден оверлэй
173
+ */
174
+ hideOverlay?: boolean;
175
+ /**
176
+ * Будет ли видна шапка
177
+ */
178
+ hideHeader?: boolean;
179
+ /**
180
+ * Будет ли обрезан заголовок
181
+ */
182
+ trimTitle?: boolean;
183
+ /**
184
+ * Запретить закрытие шторки кликом на оверлэй
185
+ */
186
+ disableOverlayClick?: boolean;
187
+ /**
188
+ * Отключает блокировку скролла при открытии модального окна
189
+ */
190
+ disableBlockingScroll?: boolean;
191
+ /**
192
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
193
+ * Не анимировать шторку при изменении размера вьюпорта
194
+ */
195
+ ignoreScreenChange?: boolean;
196
+ /**
197
+ * Свойства для Бэкдропа
198
+ */
199
+ backdropProps?: BaseModalProps['backdropProps'];
200
+ /**
201
+ * Реф на контейнер, в котором происходит скролл
202
+ */
203
+ scrollableContainerRef?: RefObject<HTMLElement>;
204
+ /**
205
+ * Обработчик закрытия
206
+ */
207
+ onClose: () => void;
208
+ /**
209
+ * Обработчик нажатия на стрелку назад
210
+ */
211
+ onBack?: () => void;
212
+ };
213
+ declare const HEADER_OFFSET = 24;
214
+ declare const CLOSE_OFFSET = 0.2;
215
+ declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
216
+ export { HeaderProps, Header, FooterProps, Footer, SwipeableBackdropProps, SwipeableBackdrop, BottomSheetTitleAlign, BottomSheetProps, HEADER_OFFSET, CLOSE_OFFSET, BottomSheet };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PrimaryTabList } from './Component.js';
3
- import { c as commonStyles } from '../../index.module-1428a125.js';
3
+ import { c as commonStyles } from '../../index.module-df3add82.js';
4
4
  import 'classnames';
5
5
  import '@alfalab/core-components-badge/modern';
6
6
  import '@alfalab/core-components-keyboard-focusable/modern';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { PrimaryTabList } from './Component.js';
4
- import { c as commonStyles } from '../../index.module-1428a125.js';
4
+ import { c as commonStyles } from '../../index.module-df3add82.js';
5
5
  import '@alfalab/core-components-badge/modern';
6
6
  import '@alfalab/core-components-keyboard-focusable/modern';
7
7
  import '@alfalab/core-components-picker-button/modern/desktop';
@@ -15,7 +15,7 @@ import '../scrollable-container/Component.js';
15
15
  import 'compute-scroll-into-view';
16
16
  import '../title/Component.js';
17
17
 
18
- const mobileStyles = {"title":"tabs__title_gyexp tabs__title_k6pe3","mobile":"tabs__mobile_gyexp"};
18
+ const mobileStyles = {"title":"tabs__title_1s6kr tabs__title_ivs4u","mobile":"tabs__mobile_1s6kr"};
19
19
  require('./mobile.css')
20
20
 
21
21
  const styles = {