@alfalab/core-components-tabs 7.3.14 → 7.3.16

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 (140) hide show
  1. package/Component-3885b0d7.d.ts +3 -2
  2. package/Component-3e68f8db.d.ts +2 -2
  3. package/Component-5e1b8383.d.ts +4 -0
  4. package/component-3885b0d7.d.ts +7 -180
  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 +36 -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 +17 -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 +3 -2
  23. package/cssm/Component-3e68f8db.d.ts +2 -2
  24. package/cssm/Component-5e1b8383.d.ts +4 -0
  25. package/cssm/component-3885b0d7.d.ts +7 -180
  26. package/{hook-edac5428.d.ts → cssm/hook-3e68f8db.d.ts} +12 -6
  27. package/cssm/index-3e68f8db.d.ts +6 -5
  28. package/cssm/index-ebda875c.d.ts +35 -1
  29. package/cssm/index-f12ee135.d.ts +3 -0
  30. package/cssm/types-24527f54.d.ts +218 -0
  31. package/cssm/types-ebda875c.d.ts +1 -1
  32. package/cssm/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
  33. package/cssm/{utils-f9462675.d.ts → utils-5e1b8383.d.ts} +1 -1
  34. package/cssm/utils-b64479aa.d.ts +8 -0
  35. package/desktop.js +2 -2
  36. package/esm/Component-3885b0d7.d.ts +3 -2
  37. package/esm/Component-3e68f8db.d.ts +2 -2
  38. package/esm/Component-5e1b8383.d.ts +4 -0
  39. package/esm/component-3885b0d7.d.ts +7 -180
  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 +36 -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 +17 -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/esm/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
  59. package/esm/index-3e68f8db.d.ts +6 -5
  60. package/esm/index-ebda875c.d.ts +35 -1
  61. package/esm/index-f12ee135.d.ts +3 -0
  62. package/esm/index.js +2 -2
  63. package/esm/index.module-6a12ad86.js +4 -0
  64. package/esm/index.module-75d5a536.js +4 -0
  65. package/esm/mobile.js +2 -2
  66. package/esm/responsive.js +2 -2
  67. package/esm/types-24527f54.d.ts +218 -0
  68. package/esm/types-ebda875c.d.ts +1 -1
  69. package/esm/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
  70. package/{modern/utils-f9462675.d.ts → esm/utils-5e1b8383.d.ts} +1 -1
  71. package/esm/utils-b64479aa.d.ts +8 -0
  72. package/{cssm/hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
  73. package/index-3e68f8db.d.ts +6 -5
  74. package/index-ebda875c.d.ts +35 -1
  75. package/index-f12ee135.d.ts +3 -0
  76. package/index.js +2 -2
  77. package/index.module-530fdcfb.js +6 -0
  78. package/index.module-7c12577e.js +6 -0
  79. package/mobile.js +2 -2
  80. package/modern/Component-3885b0d7.d.ts +3 -2
  81. package/modern/Component-3e68f8db.d.ts +2 -2
  82. package/modern/Component-5e1b8383.d.ts +4 -0
  83. package/modern/component-3885b0d7.d.ts +7 -180
  84. package/modern/components/primary-tablist/Component.desktop.js +1 -1
  85. package/modern/components/primary-tablist/Component.mobile.js +2 -2
  86. package/modern/components/primary-tablist/Component.responsive.js +1 -1
  87. package/modern/components/primary-tablist/index.css +29 -29
  88. package/modern/components/primary-tablist/mobile.css +36 -32
  89. package/modern/components/scrollable-container/Component.js +1 -1
  90. package/modern/components/scrollable-container/index.css +5 -5
  91. package/modern/components/secondary-tablist/Component.desktop.js +1 -1
  92. package/modern/components/secondary-tablist/Component.mobile.js +2 -2
  93. package/modern/components/secondary-tablist/Component.responsive.js +1 -1
  94. package/modern/components/secondary-tablist/index.css +11 -11
  95. package/modern/components/secondary-tablist/mobile.css +17 -13
  96. package/modern/components/tab/Component.js +1 -1
  97. package/modern/components/tab/index.css +3 -3
  98. package/modern/components/tabs/Component.desktop.js +2 -2
  99. package/modern/components/tabs/Component.mobile.js +2 -2
  100. package/modern/components/tabs/Component.responsive.js +2 -2
  101. package/modern/desktop.js +2 -2
  102. package/modern/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
  103. package/modern/index-3e68f8db.d.ts +6 -5
  104. package/modern/index-ebda875c.d.ts +35 -1
  105. package/modern/index-f12ee135.d.ts +3 -0
  106. package/modern/index.js +2 -2
  107. package/modern/index.module-07bd96a9.js +4 -0
  108. package/modern/index.module-878a9975.js +4 -0
  109. package/modern/mobile.js +2 -2
  110. package/modern/responsive.js +2 -2
  111. package/modern/types-24527f54.d.ts +218 -0
  112. package/modern/types-ebda875c.d.ts +1 -1
  113. package/modern/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
  114. package/{utils-f9462675.d.ts → modern/utils-5e1b8383.d.ts} +1 -1
  115. package/modern/utils-b64479aa.d.ts +8 -0
  116. package/package.json +2 -2
  117. package/responsive.js +2 -2
  118. package/types-24527f54.d.ts +218 -0
  119. package/types-ebda875c.d.ts +1 -1
  120. package/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
  121. package/{esm/utils-f9462675.d.ts → utils-5e1b8383.d.ts} +1 -1
  122. package/utils-b64479aa.d.ts +8 -0
  123. package/Component-f9462675.d.ts +0 -5
  124. package/cssm/Component-f9462675.d.ts +0 -5
  125. package/cssm/index-48646db0.d.ts +0 -2
  126. package/cssm/index-7ca84eff.d.ts +0 -1
  127. package/esm/Component-f9462675.d.ts +0 -5
  128. package/esm/index-48646db0.d.ts +0 -2
  129. package/esm/index-7ca84eff.d.ts +0 -1
  130. package/esm/index.module-39c2e145.js +0 -4
  131. package/esm/index.module-42191a44.js +0 -4
  132. package/index-48646db0.d.ts +0 -2
  133. package/index-7ca84eff.d.ts +0 -1
  134. package/index.module-1a4b95d7.js +0 -6
  135. package/index.module-38cd83a8.js +0 -6
  136. package/modern/Component-f9462675.d.ts +0 -5
  137. package/modern/index-48646db0.d.ts +0 -2
  138. package/modern/index-7ca84eff.d.ts +0 -1
  139. package/modern/index.module-21d0d0f4.js +0 -4
  140. package/modern/index.module-97bc07a5.js +0 -4
@@ -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-f9462675";
5
+ import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
6
6
  type SelectFieldProps = Omit<FormControlProps, "size"> & Record<string, unknown>;
7
7
  type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
8
8
  /**
@@ -92,7 +92,8 @@ type SkeletonProps = {
92
92
  };
93
93
  declare const Skeleton: React.FC<SkeletonProps>;
94
94
  export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
95
- export * from "./hook-edac5428";
96
- export * from "./index-48646db0";
97
- export * from "./typings-f9462675";
98
- export * from "./utils-f9462675";
95
+ export * from "./index-ebda875c";
96
+ export * from "./Component-5e1b8383";
97
+ export * from "./hook-3e68f8db";
98
+ export * from "./typings-5e1b8383";
99
+ export * from "./utils-5e1b8383";
@@ -1,3 +1,37 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react-transition-group" />
3
- export * from "./Component-f9462675";
3
+ import React from "react";
4
+ import { ButtonHTMLAttributes, ElementType, FC } 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
+ export { CloserProps, Closer };
37
+ export * from "./Component-ebda875c";
@@ -0,0 +1,3 @@
1
+ export * from "./component-3885b0d7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-24527f54";
3
+ export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-b64479aa";
package/esm/index.js CHANGED
@@ -18,12 +18,12 @@ import './hooks/use-collapsible-elements.js';
18
18
  import '@juggle/resize-observer';
19
19
  import './synthetic-events.js';
20
20
  import './components/title/Component.js';
21
- import './index.module-39c2e145.js';
21
+ import './index.module-6a12ad86.js';
22
22
  import './components/primary-tablist/Component.mobile.js';
23
23
  import 'compute-scroll-into-view';
24
24
  import './components/secondary-tablist/Component.desktop.js';
25
25
  import './components/secondary-tablist/Component.js';
26
26
  import '@alfalab/core-components-tag/esm';
27
- import './index.module-42191a44.js';
27
+ import './index.module-75d5a536.js';
28
28
  import './components/secondary-tablist/Component.mobile.js';
29
29
  import './components/tabs/Component.js';
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"tabs__component_1js6z","fullWidthScroll":"tabs__fullWidthScroll_1js6z","container":"tabs__container_1js6z","title":"tabs__title_1js6z","disabled":"tabs__disabled_1js6z","focused":"tabs__focused_1js6z","collapsed":"tabs__collapsed_1js6z","selected":"tabs__selected_1js6z","line":"tabs__line_1js6z","s":"tabs__s_1js6z","xs":"tabs__xs_1js6z","xxs":"tabs__xxs_1js6z","pickerWrapper":"tabs__pickerWrapper_1js6z","option":"tabs__option_1js6z","m":"tabs__m_1js6z","l":"tabs__l_1js6z","xl":"tabs__xl_1js6z","rightAddons":"tabs__rightAddons_1js6z"};
2
+ require('./components/primary-tablist/index.css')
3
+
4
+ export { commonStyles as c };
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"tabs__component_of7lb","fullWidthScroll":"tabs__fullWidthScroll_of7lb","container":"tabs__container_of7lb","title":"tabs__title_of7lb","xxs":"tabs__xxs_of7lb","xs":"tabs__xs_of7lb","s":"tabs__s_of7lb","m":"tabs__m_of7lb","l":"tabs__l_of7lb","xl":"tabs__xl_of7lb"};
2
+ require('./components/secondary-tablist/index.css')
3
+
4
+ export { commonStyles as c };
package/esm/mobile.js CHANGED
@@ -17,9 +17,9 @@ import './hooks/use-collapsible-elements.js';
17
17
  import '@juggle/resize-observer';
18
18
  import './synthetic-events.js';
19
19
  import './components/title/Component.js';
20
- import './index.module-39c2e145.js';
20
+ import './index.module-6a12ad86.js';
21
21
  import 'compute-scroll-into-view';
22
22
  import './components/secondary-tablist/Component.js';
23
23
  import '@alfalab/core-components-tag/esm';
24
- import './index.module-42191a44.js';
24
+ import './index.module-75d5a536.js';
25
25
  import './components/tabs/Component.js';
package/esm/responsive.js CHANGED
@@ -17,13 +17,13 @@ import '@alfalab/core-components-picker-button/esm/desktop';
17
17
  import './hooks/use-tablist-titles.js';
18
18
  import './synthetic-events.js';
19
19
  import './components/title/Component.js';
20
- import './index.module-39c2e145.js';
20
+ import './index.module-6a12ad86.js';
21
21
  import './components/primary-tablist/Component.mobile.js';
22
22
  import 'compute-scroll-into-view';
23
23
  import './components/secondary-tablist/Component.desktop.js';
24
24
  import './components/secondary-tablist/Component.js';
25
25
  import '@alfalab/core-components-tag/esm';
26
- import './index.module-42191a44.js';
26
+ import './index.module-75d5a536.js';
27
27
  import './components/secondary-tablist/Component.mobile.js';
28
28
  import './components/tabs/Component.js';
29
29
  import '@juggle/resize-observer';
@@ -0,0 +1,218 @@
1
+ /// <reference types="react-transition-group" />
2
+ import { HTMLAttributes, ReactNode, RefObject } from 'react';
3
+ import { TransitionProps } from 'react-transition-group/Transition';
4
+ import { BaseModalProps } from "./index-bdb4c6b9";
5
+ import { NavigationBarProps } from "./index-e81c389f";
6
+ type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
7
+ type BorderColorType = "accent" | "key" | "key-inverted" | "link" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "underline" | "underline-inverted" | "graphic-attention" | "graphic-link" | "graphic-negative" | "graphic-positive" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
8
+ type ShadowType = "shadow-xs" | "shadow-s" | "shadow-m" | "shadow-l" | "shadow-xl" | "shadow-xs-hard" | "shadow-s-hard" | "shadow-m-hard" | "shadow-l-hard" | "shadow-xl-hard" | "shadow-xs-up" | "shadow-s-up" | "shadow-m-up" | "shadow-l-up" | "shadow-xl-up" | "shadow-xs-hard-up" | "shadow-s-hard-up" | "shadow-m-hard-up" | "shadow-l-hard-up" | "shadow-xl-hard-up";
9
+ type GapType = "3xs" | "2xs" | "xs" | "s" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl";
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
+ backgroundColor?: Extract<BackgroundColorType, 'primary' | 'secondary'>;
62
+ /**
63
+ * Дополнительный класс шапки
64
+ */
65
+ headerClassName?: string;
66
+ /**
67
+ * Дополнительный класс футера
68
+ */
69
+ footerClassName?: string;
70
+ /**
71
+ * Дополнительный класс для аддонов
72
+ */
73
+ addonClassName?: string;
74
+ /**
75
+ * Дополнительный класс для компонента крестика
76
+ */
77
+ closerClassName?: string;
78
+ /**
79
+ * Дополнительный класс для компонента стрелки назад
80
+ */
81
+ backerClassName?: string;
82
+ /**
83
+ * Дополнительный класс для компонента модального окна
84
+ */
85
+ modalClassName?: string;
86
+ /**
87
+ * Дополнительный класс для обертки модального окна
88
+ */
89
+ modalWrapperClassName?: string;
90
+ /**
91
+ * TransitionProps, прокидываются в компонент CSSTransitionProps.
92
+ */
93
+ transitionProps?: Partial<TransitionProps>;
94
+ /**
95
+ * Идентификатор для систем автоматизированного тестирования
96
+ */
97
+ dataTestId?: string;
98
+ /**
99
+ * z-index компонента
100
+ */
101
+ zIndex?: number;
102
+ /**
103
+ * Будет ли свайпаться шторка
104
+ * @default true
105
+ */
106
+ swipeable?: boolean;
107
+ /**
108
+ * Слот слева
109
+ */
110
+ leftAddons?: ReactNode;
111
+ /**
112
+ * Слот справа
113
+ */
114
+ rightAddons?: ReactNode;
115
+ /**
116
+ * Слот снизу
117
+ */
118
+ bottomAddons?: ReactNode;
119
+ /**
120
+ * Наличие компонента крестика
121
+ */
122
+ hasCloser?: boolean;
123
+ /**
124
+ * Наличие компонента стрелки назад
125
+ */
126
+ hasBacker?: boolean;
127
+ /**
128
+ * Выравнивание заголовка
129
+ */
130
+ titleAlign?: BottomSheetTitleAlign;
131
+ /**
132
+ * Фиксирует шапку
133
+ */
134
+ stickyHeader?: boolean;
135
+ /**
136
+ * Фиксирует футер
137
+ */
138
+ stickyFooter?: boolean;
139
+ /**
140
+ * Высота шторки
141
+ */
142
+ initialHeight?: 'default' | 'full';
143
+ /**
144
+ * Будет ли виден оверлэй
145
+ */
146
+ hideOverlay?: boolean;
147
+ /**
148
+ * Будет ли видна шапка
149
+ */
150
+ hideHeader?: boolean;
151
+ /**
152
+ * Будет ли обрезан заголовок
153
+ */
154
+ trimTitle?: boolean;
155
+ /**
156
+ * Запретить закрытие шторки кликом на оверлэй
157
+ */
158
+ disableOverlayClick?: boolean;
159
+ /**
160
+ * Отключает блокировку скролла при открытии модального окна
161
+ */
162
+ disableBlockingScroll?: boolean;
163
+ /**
164
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
165
+ * Не анимировать шторку при изменении размера вьюпорта
166
+ */
167
+ ignoreScreenChange?: boolean;
168
+ /**
169
+ * Свойства для Бэкдропа
170
+ */
171
+ backdropProps?: BaseModalProps['backdropProps'];
172
+ /**
173
+ * Реф на контейнер, в котором происходит скролл
174
+ */
175
+ scrollableContainerRef?: RefObject<HTMLElement>;
176
+ /**
177
+ * Реф для управления компонентом.
178
+ */
179
+ bottomSheetInstanceRef?: RefObject<{
180
+ scrollToArea: (idx: number) => void;
181
+ }>;
182
+ /**
183
+ * Реф на контейнер, в котором находится шторка
184
+ */
185
+ sheetContainerRef?: RefObject<HTMLElement>;
186
+ /**
187
+ * Магнитные области видимой высоты шторки.
188
+ * Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
189
+ * По-умолчанию -[0, window.innerHeight - '24px']
190
+ * массив должен состоять минимум из 2 элементов
191
+ */
192
+ magneticAreas?: number[];
193
+ /**
194
+ * Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
195
+ */
196
+ initialActiveAreaIndex?: number;
197
+ /**
198
+ * Отключает скролл контентной области.
199
+ */
200
+ scrollLocked?: boolean;
201
+ /**
202
+ * Скрыть скроллбар внутри шторки
203
+ */
204
+ hideScrollbar?: boolean;
205
+ /**
206
+ * Обработчик закрытия
207
+ */
208
+ onClose: () => void;
209
+ /**
210
+ * Обработчик нажатия на стрелку назад
211
+ */
212
+ onBack?: () => void;
213
+ /**
214
+ * Вызывается после притягивания к одной из `magneticAreas`
215
+ */
216
+ onMagnetize?: (index: number) => void;
217
+ };
218
+ export { BackgroundColorType, BorderColorType, ShadowType, GapType, BottomSheetTitleAlign, BottomSheetProps };
@@ -106,7 +106,7 @@ type NavigationBarProps = {
106
106
  };
107
107
  type ContentParams = {
108
108
  extraClassName?: string;
109
- ref?: React.RefObject<HTMLDivElement>;
109
+ wrapperRef?: React.RefObject<HTMLDivElement>;
110
110
  style?: React.CSSProperties;
111
111
  hidden?: boolean;
112
112
  };
@@ -200,7 +200,7 @@ type BaseSelectProps = {
200
200
  /**
201
201
  * Компонент выпадающего меню
202
202
  */
203
- OptionsList?: FC<OptionsListProps>;
203
+ OptionsList?: FC<OptionsListProps & RefAttributes<HTMLDivElement>>;
204
204
  /**
205
205
  * Компонент группы
206
206
  */
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-f9462675";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-5e1b8383";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
@@ -0,0 +1,8 @@
1
+ declare const TIMEOUT = 500;
2
+ declare const SWIPE_VELOCITY = 0.4;
3
+ declare const MARKER_HEIGHT = 24;
4
+ declare const HEADER_OFFSET = 24;
5
+ declare const CLOSE_OFFSET = 0.2;
6
+ declare const SCROLL_OFFSET = 1;
7
+ declare const convertPercentToNumber: (value: string | number, fullHeight: number) => number;
8
+ export { TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, HEADER_OFFSET, CLOSE_OFFSET, SCROLL_OFFSET, convertPercentToNumber };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BaseSelectProps, OptionShape } from "./index-3e68f8db";
3
- type useSelectWithApplyProps = {
3
+ type UseSelectWithApplyProps = {
4
4
  /**
5
5
  * Список выбранных пунктов
6
6
  */
@@ -17,6 +17,10 @@ type useSelectWithApplyProps = {
17
17
  * Компонент выпадающего меню
18
18
  */
19
19
  OptionsList?: BaseSelectProps['OptionsList'];
20
+ /**
21
+ * Пропсы, которые будут прокинуты в компонент списка
22
+ */
23
+ optionsListProps?: BaseSelectProps['optionsListProps'];
20
24
  /**
21
25
  * Показывать кнопку очистки
22
26
  */
@@ -27,15 +31,16 @@ type useSelectWithApplyProps = {
27
31
  showSelectAll?: boolean;
28
32
  };
29
33
  declare const SELECT_ALL_KEY = "select_all";
30
- declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }: useSelectWithApplyProps): {
34
+ declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, }: UseSelectWithApplyProps): {
31
35
  OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
32
36
  showClear?: boolean | undefined;
33
37
  onClose?: (() => void) | undefined;
34
38
  selectedDraft?: OptionShape[] | undefined;
35
- OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
36
- } & import("react").RefAttributes<unknown>>;
39
+ OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
40
+ Footer?: import("react").FC<import("./Component-ebda875c").FooterProps> | undefined;
41
+ } & import("react").RefAttributes<HTMLDivElement>>;
37
42
  optionsListProps: {
38
- OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps> | undefined;
43
+ OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
39
44
  showClear: boolean;
40
45
  onClear: () => void;
41
46
  onApply: () => void;
@@ -51,4 +56,5 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
51
56
  onChange: (payload: import("./index-3e68f8db").BaseSelectChangePayload) => void;
52
57
  selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
53
58
  };
54
- export { SELECT_ALL_KEY, useSelectWithApply };
59
+ export * from "./Component-5e1b8383";
60
+ export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
@@ -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-f9462675";
5
+ import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
6
6
  type SelectFieldProps = Omit<FormControlProps, "size"> & Record<string, unknown>;
7
7
  type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
8
8
  /**
@@ -92,7 +92,8 @@ type SkeletonProps = {
92
92
  };
93
93
  declare const Skeleton: React.FC<SkeletonProps>;
94
94
  export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
95
- export * from "./hook-edac5428";
96
- export * from "./index-48646db0";
97
- export * from "./typings-f9462675";
98
- export * from "./utils-f9462675";
95
+ export * from "./index-ebda875c";
96
+ export * from "./Component-5e1b8383";
97
+ export * from "./hook-3e68f8db";
98
+ export * from "./typings-5e1b8383";
99
+ export * from "./utils-5e1b8383";
@@ -1,3 +1,37 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react-transition-group" />
3
- export * from "./Component-f9462675";
3
+ import React from "react";
4
+ import { ButtonHTMLAttributes, ElementType, FC } 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
+ export { CloserProps, Closer };
37
+ export * from "./Component-ebda875c";
@@ -0,0 +1,3 @@
1
+ export * from "./component-3885b0d7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-24527f54";
3
+ export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-b64479aa";
package/index.js CHANGED
@@ -22,13 +22,13 @@ require('./hooks/use-collapsible-elements.js');
22
22
  require('@juggle/resize-observer');
23
23
  require('./synthetic-events.js');
24
24
  require('./components/title/Component.js');
25
- require('./index.module-1a4b95d7.js');
25
+ require('./index.module-7c12577e.js');
26
26
  require('./components/primary-tablist/Component.mobile.js');
27
27
  require('compute-scroll-into-view');
28
28
  require('./components/secondary-tablist/Component.desktop.js');
29
29
  require('./components/secondary-tablist/Component.js');
30
30
  require('@alfalab/core-components-tag');
31
- require('./index.module-38cd83a8.js');
31
+ require('./index.module-530fdcfb.js');
32
32
  require('./components/secondary-tablist/Component.mobile.js');
33
33
  require('./components/tabs/Component.js');
34
34
 
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"tabs__component_of7lb","fullWidthScroll":"tabs__fullWidthScroll_of7lb","container":"tabs__container_of7lb","title":"tabs__title_of7lb","xxs":"tabs__xxs_of7lb","xs":"tabs__xs_of7lb","s":"tabs__s_of7lb","m":"tabs__m_of7lb","l":"tabs__l_of7lb","xl":"tabs__xl_of7lb"};
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_1js6z","fullWidthScroll":"tabs__fullWidthScroll_1js6z","container":"tabs__container_1js6z","title":"tabs__title_1js6z","disabled":"tabs__disabled_1js6z","focused":"tabs__focused_1js6z","collapsed":"tabs__collapsed_1js6z","selected":"tabs__selected_1js6z","line":"tabs__line_1js6z","s":"tabs__s_1js6z","xs":"tabs__xs_1js6z","xxs":"tabs__xxs_1js6z","pickerWrapper":"tabs__pickerWrapper_1js6z","option":"tabs__option_1js6z","m":"tabs__m_1js6z","l":"tabs__l_1js6z","xl":"tabs__xl_1js6z","rightAddons":"tabs__rightAddons_1js6z"};
4
+ require('./components/primary-tablist/index.css')
5
+
6
+ exports.commonStyles = commonStyles;
package/mobile.js CHANGED
@@ -21,11 +21,11 @@ require('./hooks/use-collapsible-elements.js');
21
21
  require('@juggle/resize-observer');
22
22
  require('./synthetic-events.js');
23
23
  require('./components/title/Component.js');
24
- require('./index.module-1a4b95d7.js');
24
+ require('./index.module-7c12577e.js');
25
25
  require('compute-scroll-into-view');
26
26
  require('./components/secondary-tablist/Component.js');
27
27
  require('@alfalab/core-components-tag');
28
- require('./index.module-38cd83a8.js');
28
+ require('./index.module-530fdcfb.js');
29
29
  require('./components/tabs/Component.js');
30
30
 
31
31
 
@@ -1,5 +1,6 @@
1
- import { FC } from 'react';
1
+ /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { NavigationBarProps } from "./types-ebda875c";
3
- declare const NavigationBar: FC<NavigationBarProps>;
4
+ declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
4
5
  export * from "./Component-ebda875c";
5
6
  export { NavigationBar };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FC, SVGProps } from 'react';
3
- import { OptionShape } from "./typings-f9462675";
4
- import { OptionProps as BaseOptionProps } from "./typings-f9462675";
3
+ import { OptionShape } from "./typings-5e1b8383";
4
+ import { OptionProps as BaseOptionProps } from "./typings-5e1b8383";
5
5
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
6
6
  option: OptionShape & {
7
7
  icon?: FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { CheckmarkProps } from "./typings-5e1b8383";
3
+ declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => JSX.Element;
4
+ export { BaseCheckmark };