@alfalab/core-components-tabs 7.3.9 → 7.3.11

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 (142) 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 +31 -31
  9. package/components/primary-tablist/mobile.css +105 -34
  10. package/components/scrollable-container/Component.js +1 -1
  11. package/components/scrollable-container/index.css +7 -7
  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 +13 -13
  16. package/components/secondary-tablist/mobile.css +86 -15
  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/components/primary-tablist/index.module.css +2 -2
  27. package/cssm/components/primary-tablist/mobile.module.css +2 -2
  28. package/cssm/components/scrollable-container/index.module.css +2 -2
  29. package/cssm/components/secondary-tablist/index.module.css +2 -2
  30. package/cssm/components/secondary-tablist/mobile.module.css +2 -2
  31. package/cssm/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
  32. package/cssm/index-3e68f8db.d.ts +3 -3
  33. package/cssm/index-48646db0.d.ts +1 -1
  34. package/cssm/index-7ca84eff.d.ts +1 -215
  35. package/cssm/index-e81c389f.d.ts +3 -141
  36. package/cssm/index-ebda875c.d.ts +1 -1
  37. package/cssm/types-ebda875c.d.ts +113 -0
  38. package/cssm/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  39. package/cssm/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  40. package/cssm/vars.css +2 -2
  41. package/desktop.js +2 -2
  42. package/esm/Component-3885b0d7.d.ts +5 -0
  43. package/esm/Component-3e68f8db.d.ts +2 -2
  44. package/{modern/Component-cac440c1.d.ts → esm/Component-a8deae7f.d.ts} +1 -1
  45. package/esm/component-3885b0d7.d.ts +216 -0
  46. package/esm/components/primary-tablist/Component.desktop.js +1 -1
  47. package/esm/components/primary-tablist/Component.mobile.js +2 -2
  48. package/esm/components/primary-tablist/Component.responsive.js +1 -1
  49. package/esm/components/primary-tablist/index.css +31 -31
  50. package/esm/components/primary-tablist/mobile.css +105 -34
  51. package/esm/components/scrollable-container/Component.js +1 -1
  52. package/esm/components/scrollable-container/index.css +7 -7
  53. package/esm/components/secondary-tablist/Component.desktop.js +1 -1
  54. package/esm/components/secondary-tablist/Component.mobile.js +2 -2
  55. package/esm/components/secondary-tablist/Component.responsive.js +1 -1
  56. package/esm/components/secondary-tablist/index.css +13 -13
  57. package/esm/components/secondary-tablist/mobile.css +86 -15
  58. package/esm/components/tab/Component.js +1 -1
  59. package/esm/components/tab/index.css +3 -3
  60. package/esm/components/tabs/Component.desktop.js +2 -2
  61. package/esm/components/tabs/Component.mobile.js +2 -2
  62. package/esm/components/tabs/Component.responsive.js +2 -2
  63. package/esm/desktop.js +2 -2
  64. package/{getDataTestId-3fe0d3e6.d.ts → esm/index-3885b0d7.d.ts} +2 -1
  65. package/esm/index-3e68f8db.d.ts +3 -3
  66. package/esm/index-48646db0.d.ts +1 -1
  67. package/esm/index-7ca84eff.d.ts +1 -215
  68. package/esm/index-e81c389f.d.ts +3 -141
  69. package/esm/index-ebda875c.d.ts +1 -1
  70. package/esm/index.js +2 -2
  71. package/esm/index.module-1865aaf0.js +4 -0
  72. package/esm/index.module-e818c324.js +4 -0
  73. package/esm/mobile.js +2 -2
  74. package/esm/responsive.js +2 -2
  75. package/esm/types-ebda875c.d.ts +113 -0
  76. package/esm/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  77. package/esm/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  78. package/{esm/getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
  79. package/index-3e68f8db.d.ts +3 -3
  80. package/index-48646db0.d.ts +1 -1
  81. package/index-7ca84eff.d.ts +1 -215
  82. package/index-e81c389f.d.ts +3 -141
  83. package/index-ebda875c.d.ts +1 -1
  84. package/index.js +2 -2
  85. package/index.module-07471830.js +6 -0
  86. package/index.module-38e2880e.js +6 -0
  87. package/mobile.js +2 -2
  88. package/modern/Component-3885b0d7.d.ts +5 -0
  89. package/modern/Component-3e68f8db.d.ts +2 -2
  90. package/{cssm/Component-cac440c1.d.ts → modern/Component-a8deae7f.d.ts} +1 -1
  91. package/modern/component-3885b0d7.d.ts +216 -0
  92. package/modern/components/primary-tablist/Component.desktop.js +1 -1
  93. package/modern/components/primary-tablist/Component.mobile.js +2 -2
  94. package/modern/components/primary-tablist/Component.responsive.js +1 -1
  95. package/modern/components/primary-tablist/index.css +31 -31
  96. package/modern/components/primary-tablist/mobile.css +105 -34
  97. package/modern/components/scrollable-container/Component.js +1 -1
  98. package/modern/components/scrollable-container/index.css +7 -7
  99. package/modern/components/secondary-tablist/Component.desktop.js +1 -1
  100. package/modern/components/secondary-tablist/Component.mobile.js +2 -2
  101. package/modern/components/secondary-tablist/Component.responsive.js +1 -1
  102. package/modern/components/secondary-tablist/index.css +13 -13
  103. package/modern/components/secondary-tablist/mobile.css +86 -15
  104. package/modern/components/tab/Component.js +1 -1
  105. package/modern/components/tab/index.css +3 -3
  106. package/modern/components/tabs/Component.desktop.js +2 -2
  107. package/modern/components/tabs/Component.mobile.js +2 -2
  108. package/modern/components/tabs/Component.responsive.js +2 -2
  109. package/modern/desktop.js +2 -2
  110. package/modern/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
  111. package/modern/index-3e68f8db.d.ts +3 -3
  112. package/modern/index-48646db0.d.ts +1 -1
  113. package/modern/index-7ca84eff.d.ts +1 -215
  114. package/modern/index-e81c389f.d.ts +3 -141
  115. package/modern/index-ebda875c.d.ts +1 -1
  116. package/modern/index.js +2 -2
  117. package/modern/index.module-540790c1.js +4 -0
  118. package/modern/index.module-a26a42c3.js +4 -0
  119. package/modern/mobile.js +2 -2
  120. package/modern/responsive.js +2 -2
  121. package/modern/types-ebda875c.d.ts +113 -0
  122. package/modern/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  123. package/modern/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  124. package/package.json +3 -3
  125. package/responsive.js +2 -2
  126. package/types-ebda875c.d.ts +113 -0
  127. package/{typings-cac440c1.d.ts → typings-a8deae7f.d.ts} +5 -5
  128. package/{utils-cac440c1.d.ts → utils-a8deae7f.d.ts} +1 -1
  129. package/Component-7ca84eff.d.ts +0 -5
  130. package/cssm/Component-7ca84eff.d.ts +0 -5
  131. package/cssm/index-3fe0d3e6.d.ts +0 -3
  132. package/esm/Component-7ca84eff.d.ts +0 -5
  133. package/esm/index-3fe0d3e6.d.ts +0 -3
  134. package/esm/index.module-b06e730b.js +0 -4
  135. package/esm/index.module-ea1e031b.js +0 -4
  136. package/index-3fe0d3e6.d.ts +0 -3
  137. package/index.module-9aac8027.js +0 -6
  138. package/index.module-dde2566f.js +0 -6
  139. package/modern/Component-7ca84eff.d.ts +0 -5
  140. package/modern/index-3fe0d3e6.d.ts +0 -3
  141. package/modern/index.module-1428a125.js +0 -4
  142. package/modern/index.module-1e6e4859.js +0 -4
@@ -19,10 +19,10 @@ require('../../synthetic-events.js');
19
19
  require('../scrollable-container/Component.js');
20
20
  require('compute-scroll-into-view');
21
21
  require('../title/Component.js');
22
- require('../../index.module-dde2566f.js');
22
+ require('../../index.module-38e2880e.js');
23
23
  require('../secondary-tablist/Component.js');
24
24
  require('@alfalab/core-components-tag');
25
- require('../../index.module-9aac8027.js');
25
+ require('../../index.module-07471830.js');
26
26
 
27
27
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
28
28
 
@@ -20,12 +20,12 @@ require('../../synthetic-events.js');
20
20
  require('../scrollable-container/Component.js');
21
21
  require('compute-scroll-into-view');
22
22
  require('../title/Component.js');
23
- require('../../index.module-dde2566f.js');
23
+ require('../../index.module-38e2880e.js');
24
24
  require('../primary-tablist/Component.mobile.js');
25
25
  require('../secondary-tablist/Component.desktop.js');
26
26
  require('../secondary-tablist/Component.js');
27
27
  require('@alfalab/core-components-tag');
28
- require('../../index.module-9aac8027.js');
28
+ require('../../index.module-07471830.js');
29
29
  require('../secondary-tablist/Component.mobile.js');
30
30
 
31
31
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -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 };
@@ -5,8 +5,8 @@
5
5
  --color-light-border-primary: #dbdee1;
6
6
  --color-light-text-primary: #0b1f35;
7
7
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
8
- --color-light-text-tertiary: rgba(11, 31, 53, 0.3);
9
- } :root {
8
+ --color-light-text-tertiary: rgba(11, 31, 53, 0.3); /* 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 */
9
+ } :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 */
10
10
  } :root {
11
11
  } :root {
12
12
 
@@ -1,6 +1,6 @@
1
1
  :root {
2
- } /* deprecated */ :root {
3
- } :root {
2
+ } /* 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 */
3
+ } :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 */
4
4
  } :root {
5
5
  } :root {
6
6
 
@@ -1,6 +1,6 @@
1
1
  :root {
2
- } /* deprecated */ :root {
3
- } :root {
2
+ } /* 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 */
3
+ } :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 */
4
4
  } :root {
5
5
  } :root {
6
6
 
@@ -1,6 +1,6 @@
1
1
  :root {
2
- } /* deprecated */ :root {
3
- } :root {
2
+ } /* 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 */
3
+ } :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 */
4
4
  } :root {
5
5
  } :root {
6
6
 
@@ -1,6 +1,6 @@
1
1
  :root {
2
- } /* deprecated */ :root {
3
- } :root {
2
+ } /* 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 */
3
+ } :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 */
4
4
  } :root {
5
5
  } :root {
6
6
 
@@ -1,2 +1,3 @@
1
1
  declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
2
- export { getDataTestId };
2
+ declare const isClient: () => boolean;
3
+ export { getDataTestId, isClient };
@@ -2,7 +2,7 @@
2
2
  import React from "react";
3
3
  import { ReactNode } from "react";
4
4
  import { FormControlProps } from "./Component-e67996e9";
5
- import { BaseSelectProps, OptionProps, OptionShape } from "./typings-cac440c1";
5
+ import { BaseSelectProps, OptionProps, OptionShape } from "./typings-a8deae7f";
6
6
  type SelectFieldProps = Omit<FormControlProps, "size"> & Record<string, unknown>;
7
7
  type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
8
8
  /**
@@ -94,5 +94,5 @@ declare const Skeleton: React.FC<SkeletonProps>;
94
94
  export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
95
95
  export * from "./hook-edac5428";
96
96
  export * from "./index-48646db0";
97
- export * from "./typings-cac440c1";
98
- export * from "./utils-cac440c1";
97
+ export * from "./typings-a8deae7f";
98
+ export * from "./utils-a8deae7f";
@@ -1,2 +1,2 @@
1
- export * from "./Component-cac440c1";
1
+ export * from "./Component-a8deae7f";
2
2
  export * from "./index-ebda875c";
@@ -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";