@alfalab/core-components-tabs 7.6.1 → 7.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component-ebda875c.d.ts +9 -139
- package/component-3885b0d7.d.ts +1 -1
- package/components/primary-tablist/Component.desktop.js +1 -1
- package/components/primary-tablist/Component.mobile.js +2 -2
- package/components/primary-tablist/Component.responsive.js +1 -1
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +40 -32
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- package/components/secondary-tablist/Component.desktop.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +2 -2
- package/components/secondary-tablist/Component.responsive.js +1 -1
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +21 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +2 -2
- package/components/tabs/Component.mobile.js +2 -2
- package/components/tabs/Component.responsive.js +2 -2
- package/cssm/Component-ebda875c.d.ts +9 -139
- package/cssm/component-3885b0d7.d.ts +1 -1
- package/cssm/hook-3e68f8db.d.ts +15 -4
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/{types-5e678ff2.d.ts → types-fae20163.d.ts} +4 -0
- package/desktop.js +2 -2
- package/esm/Component-ebda875c.d.ts +9 -139
- package/esm/component-3885b0d7.d.ts +1 -1
- package/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +2 -2
- package/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/esm/components/primary-tablist/index.css +29 -29
- package/esm/components/primary-tablist/mobile.css +40 -32
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +5 -5
- package/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +2 -2
- package/esm/components/secondary-tablist/Component.responsive.js +1 -1
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +21 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.desktop.js +2 -2
- package/esm/components/tabs/Component.mobile.js +2 -2
- package/esm/components/tabs/Component.responsive.js +2 -2
- package/esm/desktop.js +2 -2
- package/esm/hook-3e68f8db.d.ts +15 -4
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +2 -2
- package/esm/index.module-72ec09ed.js +4 -0
- package/esm/index.module-9d8a2b69.js +4 -0
- package/esm/mobile.js +2 -2
- package/esm/responsive.js +2 -2
- package/{modern/types-5e678ff2.d.ts → esm/types-fae20163.d.ts} +4 -0
- package/hook-3e68f8db.d.ts +15 -4
- package/index-f12ee135.d.ts +1 -1
- package/index.js +2 -2
- package/index.module-393f01fa.js +6 -0
- package/index.module-a2b5f81e.js +6 -0
- package/mobile.js +2 -2
- package/modern/Component-ebda875c.d.ts +9 -139
- package/modern/component-3885b0d7.d.ts +1 -1
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +29 -29
- package/modern/components/primary-tablist/mobile.css +40 -32
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +5 -5
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +21 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +2 -2
- package/modern/components/tabs/Component.responsive.js +2 -2
- package/modern/desktop.js +2 -2
- package/modern/hook-3e68f8db.d.ts +15 -4
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +2 -2
- package/modern/index.module-6799c56f.js +4 -0
- package/modern/index.module-7927ce69.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/{types-5e678ff2.d.ts → modern/types-fae20163.d.ts} +4 -0
- package/package.json +2 -2
- package/responsive.js +2 -2
- package/{esm/types-5e678ff2.d.ts → types-fae20163.d.ts} +4 -0
- package/esm/index.module-034dbb9c.js +0 -4
- package/esm/index.module-d708e46d.js +0 -4
- package/index.module-e58b3aeb.js +0 -6
- package/index.module-ff79a885.js +0 -6
- package/modern/index.module-b206f4c3.js +0 -4
- package/modern/index.module-e619079c.js +0 -4
package/esm/hook-3e68f8db.d.ts
CHANGED
|
@@ -29,17 +29,22 @@ type UseSelectWithApplyProps = {
|
|
|
29
29
|
* Показывать пункт "Выбрать все"
|
|
30
30
|
*/
|
|
31
31
|
showSelectAll?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
34
|
+
*/
|
|
35
|
+
showHeaderWithSelectAll?: boolean;
|
|
32
36
|
};
|
|
33
37
|
declare const SELECT_ALL_KEY = "select_all";
|
|
34
|
-
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, }: UseSelectWithApplyProps): {
|
|
38
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
|
|
35
39
|
OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
|
|
36
40
|
showClear?: boolean | undefined;
|
|
37
41
|
onClose?: (() => void) | undefined;
|
|
38
42
|
selectedDraft?: OptionShape[] | undefined;
|
|
39
|
-
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
40
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
41
|
-
*/
|
|
43
|
+
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
42
44
|
Footer?: import("react").FC<import("./Component-ebda875c").FooterProps> | undefined;
|
|
45
|
+
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
46
|
+
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
47
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
43
48
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
49
|
optionsListProps: {
|
|
45
50
|
OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
@@ -48,6 +53,12 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
48
53
|
onApply: () => void;
|
|
49
54
|
onClose: () => void;
|
|
50
55
|
selectedDraft: OptionShape[];
|
|
56
|
+
showHeaderWithSelectAll: boolean;
|
|
57
|
+
headerProps: {
|
|
58
|
+
indeterminate: boolean;
|
|
59
|
+
checked: boolean;
|
|
60
|
+
onChange: () => void;
|
|
61
|
+
};
|
|
51
62
|
};
|
|
52
63
|
allowUnselect: boolean;
|
|
53
64
|
multiple: boolean;
|
package/esm/index-f12ee135.d.ts
CHANGED
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-
|
|
21
|
+
import './index.module-9d8a2b69.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-
|
|
27
|
+
import './index.module-72ec09ed.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_cy73n","fullWidthScroll":"tabs__fullWidthScroll_cy73n","container":"tabs__container_cy73n","title":"tabs__title_cy73n","xxs":"tabs__xxs_cy73n","xs":"tabs__xs_cy73n","s":"tabs__s_cy73n","m":"tabs__m_cy73n","l":"tabs__l_cy73n","xl":"tabs__xl_cy73n"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_1rm6y","fullWidthScroll":"tabs__fullWidthScroll_1rm6y","container":"tabs__container_1rm6y","title":"tabs__title_1rm6y","disabled":"tabs__disabled_1rm6y","focused":"tabs__focused_1rm6y","collapsed":"tabs__collapsed_1rm6y","selected":"tabs__selected_1rm6y","line":"tabs__line_1rm6y","s":"tabs__s_1rm6y","xs":"tabs__xs_1rm6y","xxs":"tabs__xxs_1rm6y","pickerWrapper":"tabs__pickerWrapper_1rm6y","option":"tabs__option_1rm6y","m":"tabs__m_1rm6y","l":"tabs__l_1rm6y","xl":"tabs__xl_1rm6y","rightAddons":"tabs__rightAddons_1rm6y"};
|
|
2
|
+
require('./components/primary-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-
|
|
20
|
+
import './index.module-9d8a2b69.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-
|
|
24
|
+
import './index.module-72ec09ed.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-
|
|
20
|
+
import './index.module-9d8a2b69.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-
|
|
26
|
+
import './index.module-72ec09ed.js';
|
|
27
27
|
import './components/secondary-tablist/Component.mobile.js';
|
|
28
28
|
import './components/tabs/Component.js';
|
|
29
29
|
import '@juggle/resize-observer';
|
|
@@ -165,6 +165,10 @@ type BottomSheetProps = {
|
|
|
165
165
|
* Отключает блокировку скролла при открытии модального окна
|
|
166
166
|
*/
|
|
167
167
|
disableBlockingScroll?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Отключает ловушку фокуса
|
|
170
|
+
*/
|
|
171
|
+
disableFocusLock?: boolean;
|
|
168
172
|
/**
|
|
169
173
|
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
170
174
|
* Не анимировать шторку при изменении размера вьюпорта
|
package/hook-3e68f8db.d.ts
CHANGED
|
@@ -29,17 +29,22 @@ type UseSelectWithApplyProps = {
|
|
|
29
29
|
* Показывать пункт "Выбрать все"
|
|
30
30
|
*/
|
|
31
31
|
showSelectAll?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
34
|
+
*/
|
|
35
|
+
showHeaderWithSelectAll?: boolean;
|
|
32
36
|
};
|
|
33
37
|
declare const SELECT_ALL_KEY = "select_all";
|
|
34
|
-
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, }: UseSelectWithApplyProps): {
|
|
38
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
|
|
35
39
|
OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
|
|
36
40
|
showClear?: boolean | undefined;
|
|
37
41
|
onClose?: (() => void) | undefined;
|
|
38
42
|
selectedDraft?: OptionShape[] | undefined;
|
|
39
|
-
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
40
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
41
|
-
*/
|
|
43
|
+
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
42
44
|
Footer?: import("react").FC<import("./Component-ebda875c").FooterProps> | undefined;
|
|
45
|
+
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
46
|
+
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
47
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
43
48
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
49
|
optionsListProps: {
|
|
45
50
|
OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
@@ -48,6 +53,12 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
48
53
|
onApply: () => void;
|
|
49
54
|
onClose: () => void;
|
|
50
55
|
selectedDraft: OptionShape[];
|
|
56
|
+
showHeaderWithSelectAll: boolean;
|
|
57
|
+
headerProps: {
|
|
58
|
+
indeterminate: boolean;
|
|
59
|
+
checked: boolean;
|
|
60
|
+
onChange: () => void;
|
|
61
|
+
};
|
|
51
62
|
};
|
|
52
63
|
allowUnselect: boolean;
|
|
53
64
|
multiple: boolean;
|
package/index-f12ee135.d.ts
CHANGED
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-
|
|
25
|
+
require('./index.module-a2b5f81e.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-
|
|
31
|
+
require('./index.module-393f01fa.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_cy73n","fullWidthScroll":"tabs__fullWidthScroll_cy73n","container":"tabs__container_cy73n","title":"tabs__title_cy73n","xxs":"tabs__xxs_cy73n","xs":"tabs__xs_cy73n","s":"tabs__s_cy73n","m":"tabs__m_cy73n","l":"tabs__l_cy73n","xl":"tabs__xl_cy73n"};
|
|
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_1rm6y","fullWidthScroll":"tabs__fullWidthScroll_1rm6y","container":"tabs__container_1rm6y","title":"tabs__title_1rm6y","disabled":"tabs__disabled_1rm6y","focused":"tabs__focused_1rm6y","collapsed":"tabs__collapsed_1rm6y","selected":"tabs__selected_1rm6y","line":"tabs__line_1rm6y","s":"tabs__s_1rm6y","xs":"tabs__xs_1rm6y","xxs":"tabs__xxs_1rm6y","pickerWrapper":"tabs__pickerWrapper_1rm6y","option":"tabs__option_1rm6y","m":"tabs__m_1rm6y","l":"tabs__l_1rm6y","xl":"tabs__xl_1rm6y","rightAddons":"tabs__rightAddons_1rm6y"};
|
|
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-
|
|
24
|
+
require('./index.module-a2b5f81e.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-
|
|
28
|
+
require('./index.module-393f01fa.js');
|
|
29
29
|
require('./components/tabs/Component.js');
|
|
30
30
|
|
|
31
31
|
|
|
@@ -1,142 +1,12 @@
|
|
|
1
|
-
/// <reference types="react-transition-group" />
|
|
2
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Компонент бэкдропа
|
|
14
|
-
*/
|
|
15
|
-
Backdrop?: FC<BackdropProps>;
|
|
16
|
-
/**
|
|
17
|
-
* Свойства для Бэкдропа
|
|
18
|
-
*/
|
|
19
|
-
backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
|
|
20
|
-
/**
|
|
21
|
-
* Нода, компонент или функция возвращающая их
|
|
22
|
-
*
|
|
23
|
-
* Контейнер к которому будут добавляться порталы
|
|
24
|
-
*/
|
|
25
|
-
container?: PortalProps['getPortalContainer'];
|
|
26
|
-
/**
|
|
27
|
-
* Отключает автоматический перевод фокуса на модалку при открытии
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
disableAutoFocus?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Отключает ловушку фокуса
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
disableFocusLock?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
disableRestoreFocus?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Отключает вызов `callback` при нажатии Escape
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
disableEscapeKeyDown?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Отключает вызов `callback` при клике на бэкдроп
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
disableBackdropClick?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Отключает блокировку скролла при открытии модального окна
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
disableBlockingScroll?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Содержимое модалки всегда в DOM
|
|
58
|
-
* @default false
|
|
59
|
-
*/
|
|
60
|
-
keepMounted?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Управление видимостью модалки
|
|
63
|
-
*/
|
|
64
|
-
open: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Дополнительный класс
|
|
67
|
-
*/
|
|
68
|
-
className?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Дополнительный класс
|
|
71
|
-
*/
|
|
72
|
-
contentClassName?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Дополнительный класс для обертки (Modal)
|
|
75
|
-
*/
|
|
76
|
-
wrapperClassName?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Обработчик скролла контента
|
|
79
|
-
*/
|
|
80
|
-
scrollHandler?: 'wrapper' | 'content' | MutableRefObject<HTMLDivElement | null>;
|
|
81
|
-
/**
|
|
82
|
-
* Пропсы для анимации (CSSTransition)
|
|
83
|
-
*/
|
|
84
|
-
transitionProps?: Partial<TransitionProps>;
|
|
85
|
-
/**
|
|
86
|
-
* Рендерить ли в контейнер через портал.
|
|
87
|
-
* @default true
|
|
88
|
-
*/
|
|
89
|
-
usePortal?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Обработчик события нажатия на бэкдроп
|
|
92
|
-
*/
|
|
93
|
-
onBackdropClick?: (event: MouseEvent) => void;
|
|
94
|
-
/**
|
|
95
|
-
* Обработчик события нажатия на Escape
|
|
96
|
-
*
|
|
97
|
-
* Если `disableEscapeKeyDown` - false и модальное окно в фокусе
|
|
98
|
-
*/
|
|
99
|
-
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Обработчик закрытия
|
|
102
|
-
*/
|
|
103
|
-
onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick') => void;
|
|
104
|
-
/**
|
|
105
|
-
* Обработчик события onEntered компонента Transition
|
|
106
|
-
*/
|
|
107
|
-
onMount?: () => void;
|
|
108
|
-
/**
|
|
109
|
-
* Обработчик события onExited компонента Transition
|
|
110
|
-
*/
|
|
111
|
-
onUnmount?: () => void;
|
|
112
|
-
/**
|
|
113
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
114
|
-
*/
|
|
115
|
-
dataTestId?: string;
|
|
116
|
-
/**
|
|
117
|
-
* z-index компонента
|
|
118
|
-
*/
|
|
119
|
-
zIndex?: number;
|
|
120
|
-
/**
|
|
121
|
-
* Реф, который должен быть установлен компонентной области
|
|
122
|
-
*/
|
|
123
|
-
componentRef?: MutableRefObject<HTMLDivElement | null>;
|
|
124
|
-
};
|
|
125
|
-
type BaseModalContext = {
|
|
126
|
-
parentRef: React.RefObject<HTMLDivElement>;
|
|
127
|
-
componentRef: React.RefObject<HTMLDivElement>;
|
|
128
|
-
hasFooter?: boolean;
|
|
129
|
-
hasHeader?: boolean;
|
|
130
|
-
hasScroll?: boolean;
|
|
131
|
-
headerHighlighted?: boolean;
|
|
132
|
-
footerHighlighted?: boolean;
|
|
133
|
-
headerOffset?: number;
|
|
134
|
-
setHeaderOffset: (offset: number) => void;
|
|
135
|
-
contentRef: Ref<HTMLElement>;
|
|
136
|
-
setHasHeader: (exists: boolean) => void;
|
|
137
|
-
setHasFooter: (exists: boolean) => void;
|
|
138
|
-
onClose: Required<BaseModalProps>['onClose'];
|
|
4
|
+
import { CheckboxProps } from "./index-ebda875c";
|
|
5
|
+
type HeaderProps = {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
onChange?: CheckboxProps['onChange'];
|
|
9
|
+
mobile?: boolean;
|
|
139
10
|
};
|
|
140
|
-
declare const
|
|
141
|
-
|
|
142
|
-
export { BaseModalProps, BaseModalContext, BaseModal };
|
|
11
|
+
declare const Header: React.FC<HeaderProps>;
|
|
12
|
+
export { HeaderProps, Header };
|
|
@@ -4,7 +4,7 @@ import { FC, RefObject, ReactNode } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-e81c389f";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-fae20163";
|
|
8
8
|
type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
|
|
9
9
|
headerRef: RefObject<HTMLDivElement>;
|
|
10
10
|
};
|
|
@@ -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-
|
|
3
|
+
import { c as commonStyles } from '../../index.module-7927ce69.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-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-7927ce69.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":"
|
|
18
|
+
const mobileStyles = {"title":"tabs__title_eoak9 tabs__title_1rm6y","mobile":"tabs__mobile_eoak9"};
|
|
19
19
|
require('./mobile.css')
|
|
20
20
|
|
|
21
21
|
const styles = {
|
|
@@ -15,7 +15,7 @@ import '../../synthetic-events.js';
|
|
|
15
15
|
import '../scrollable-container/Component.js';
|
|
16
16
|
import 'compute-scroll-into-view';
|
|
17
17
|
import '../title/Component.js';
|
|
18
|
-
import '../../index.module-
|
|
18
|
+
import '../../index.module-7927ce69.js';
|
|
19
19
|
|
|
20
20
|
const PrimaryTabListResponsive = ({ size, defaultMatch = 'desktop', collapsible, collapsedTabsIds, fullWidthScroll, ...restProps }) => {
|
|
21
21
|
const [view] = useMedia([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: jkufq */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
/* size l */
|
|
84
84
|
|
|
85
85
|
/* size xl */
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__component_1rm6y {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_1rm6y:before {
|
|
91
91
|
content: '';
|
|
92
92
|
display: block;
|
|
93
93
|
position: absolute;
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
height: 1px;
|
|
96
96
|
width: 100%;
|
|
97
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
98
|
-
} .
|
|
98
|
+
} .tabs__fullWidthScroll_1rm6y {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_1rm6y {
|
|
102
102
|
position: relative;
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
|
|
105
105
|
/* focus-outline fix */
|
|
106
106
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
107
107
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
108
|
-
} .
|
|
108
|
+
} .tabs__title_1rm6y {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -122,76 +122,76 @@
|
|
|
122
122
|
user-select: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
outline: none
|
|
125
|
-
} .
|
|
125
|
+
} .tabs__title_1rm6y:not(.tabs__disabled_1rm6y):hover {
|
|
126
126
|
color: var(--primary-tablist-hover-color);
|
|
127
|
-
} .
|
|
127
|
+
} .tabs__focused_1rm6y {
|
|
128
128
|
outline: 2px solid var(--focus-color);
|
|
129
129
|
outline-offset: 2px;
|
|
130
|
-
} .
|
|
130
|
+
} .tabs__collapsed_1rm6y {
|
|
131
131
|
order: 99;
|
|
132
132
|
visibility: collapse;
|
|
133
|
-
} .
|
|
133
|
+
} .tabs__selected_1rm6y {
|
|
134
134
|
cursor: default;
|
|
135
135
|
color: var(--primary-tablist-selected-color);
|
|
136
|
-
} .
|
|
136
|
+
} .tabs__disabled_1rm6y {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
color: var(--primary-tablist-disabled-color);
|
|
139
|
-
} .
|
|
139
|
+
} .tabs__line_1rm6y {
|
|
140
140
|
position: absolute;
|
|
141
141
|
height: 3px;
|
|
142
142
|
bottom: 0;
|
|
143
143
|
left: 0;
|
|
144
144
|
background-color: var(--primary-tablist-line-color);
|
|
145
145
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
146
|
-
} /* sizes */ .
|
|
146
|
+
} /* sizes */ .tabs__s_1rm6y .tabs__title_1rm6y, .tabs__xs_1rm6y .tabs__title_1rm6y, .tabs__xxs_1rm6y .tabs__title_1rm6y {
|
|
147
147
|
padding: var(--primary-tablist-s-padding);
|
|
148
148
|
font-size: var(--primary-tablist-s-font-size);
|
|
149
149
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
150
150
|
font-family: var(--primary-tablist-s-font-family);
|
|
151
151
|
line-height: 24px;
|
|
152
|
-
} .
|
|
152
|
+
} .tabs__s_1rm6y .tabs__title_1rm6y + .tabs__title_1rm6y, .tabs__xs_1rm6y .tabs__title_1rm6y + .tabs__title_1rm6y, .tabs__xxs_1rm6y .tabs__title_1rm6y + .tabs__title_1rm6y {
|
|
153
153
|
margin-left: var(--primary-tablist-s-gaps);
|
|
154
|
-
} .
|
|
154
|
+
} .tabs__s_1rm6y .tabs__pickerWrapper_1rm6y, .tabs__xs_1rm6y .tabs__pickerWrapper_1rm6y, .tabs__xxs_1rm6y .tabs__pickerWrapper_1rm6y {
|
|
155
155
|
margin-left: var(--primary-tablist-s-gaps);
|
|
156
|
-
} .
|
|
156
|
+
} .tabs__s_1rm6y .tabs__option_1rm6y, .tabs__xs_1rm6y .tabs__option_1rm6y, .tabs__xxs_1rm6y .tabs__option_1rm6y {
|
|
157
157
|
padding: 0;
|
|
158
|
-
} .
|
|
158
|
+
} .tabs__m_1rm6y .tabs__title_1rm6y {
|
|
159
159
|
padding: var(--primary-tablist-m-padding);
|
|
160
160
|
font-size: var(--primary-tablist-m-font-size);
|
|
161
161
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
162
162
|
font-family: var(--primary-tablist-m-font-family);
|
|
163
163
|
line-height: 24px;
|
|
164
|
-
} .
|
|
164
|
+
} .tabs__m_1rm6y .tabs__title_1rm6y + .tabs__title_1rm6y {
|
|
165
165
|
margin-left: var(--primary-tablist-m-gaps);
|
|
166
|
-
} .
|
|
166
|
+
} .tabs__m_1rm6y .tabs__pickerWrapper_1rm6y {
|
|
167
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
168
|
-
} .
|
|
168
|
+
} .tabs__m_1rm6y .tabs__option_1rm6y {
|
|
169
169
|
padding: 0;
|
|
170
|
-
} .
|
|
170
|
+
} .tabs__l_1rm6y .tabs__title_1rm6y {
|
|
171
171
|
padding: var(--primary-tablist-l-padding);
|
|
172
172
|
font-size: var(--primary-tablist-l-font-size);
|
|
173
173
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
174
174
|
font-family: var(--primary-tablist-l-font-family);
|
|
175
175
|
line-height: 24px;
|
|
176
|
-
} .
|
|
176
|
+
} .tabs__l_1rm6y .tabs__title_1rm6y + .tabs__title_1rm6y {
|
|
177
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
178
|
-
} .
|
|
178
|
+
} .tabs__l_1rm6y .tabs__pickerWrapper_1rm6y {
|
|
179
179
|
margin-left: var(--primary-tablist-l-gaps);
|
|
180
|
-
} .
|
|
180
|
+
} .tabs__l_1rm6y .tabs__option_1rm6y {
|
|
181
181
|
padding: 0;
|
|
182
|
-
} .
|
|
182
|
+
} .tabs__xl_1rm6y .tabs__title_1rm6y {
|
|
183
183
|
padding: var(--primary-tablist-xl-padding);
|
|
184
184
|
font-size: var(--primary-tablist-xl-font-size);
|
|
185
185
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
186
186
|
font-family: var(--primary-tablist-xl-font-family);
|
|
187
187
|
line-height: 32px;
|
|
188
|
-
} .
|
|
188
|
+
} .tabs__xl_1rm6y .tabs__title_1rm6y + .tabs__title_1rm6y {
|
|
189
189
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
190
|
-
} .
|
|
190
|
+
} .tabs__xl_1rm6y .tabs__pickerWrapper_1rm6y {
|
|
191
191
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
192
|
-
} .
|
|
192
|
+
} .tabs__xl_1rm6y .tabs__option_1rm6y {
|
|
193
193
|
padding: 0;
|
|
194
|
-
} .
|
|
194
|
+
} .tabs__rightAddons_1rm6y {
|
|
195
195
|
display: flex;
|
|
196
196
|
justify-content: center;
|
|
197
197
|
align-items: center;
|