@alfalab/core-components-tabs 7.6.1 → 7.6.2
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/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/hook-3e68f8db.d.ts +15 -4
- package/desktop.js +2 -2
- package/esm/Component-ebda875c.d.ts +9 -139
- 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.js +2 -2
- package/esm/index.module-a01a44bb.js +4 -0
- package/esm/index.module-cb6197d8.js +4 -0
- package/esm/mobile.js +2 -2
- package/esm/responsive.js +2 -2
- package/hook-3e68f8db.d.ts +15 -4
- package/index.js +2 -2
- package/index.module-44b9585d.js +6 -0
- package/index.module-77258299.js +6 -0
- package/mobile.js +2 -2
- package/modern/Component-ebda875c.d.ts +9 -139
- 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.js +2 -2
- package/modern/index.module-71e56d00.js +4 -0
- package/modern/index.module-cd918b29.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/package.json +2 -2
- package/responsive.js +2 -2
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: l3965 */
|
|
2
2
|
:root {
|
|
3
3
|
}/* 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 */
|
|
4
4
|
}: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 */
|
|
@@ -51,30 +51,30 @@
|
|
|
51
51
|
|
|
52
52
|
/* size xl */
|
|
53
53
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
54
|
-
}.
|
|
54
|
+
}.tabs__component_1rcsr {
|
|
55
55
|
position: relative;
|
|
56
56
|
display: inline-flex;
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__fullWidthScroll_1rcsr {
|
|
58
58
|
margin: 0 var(--gap-m);
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__container_1rcsr {
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
|
|
62
62
|
/* focus-outline fix */
|
|
63
63
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
64
64
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
65
|
-
}.
|
|
65
|
+
}.tabs__title_1rcsr {
|
|
66
66
|
white-space: nowrap;
|
|
67
|
-
}/* sizes */.
|
|
67
|
+
}/* sizes */.tabs__xxs_1rcsr .tabs__title_1rcsr + .tabs__title_1rcsr {
|
|
68
68
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__xs_1rcsr .tabs__title_1rcsr + .tabs__title_1rcsr {
|
|
70
70
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__s_1rcsr .tabs__title_1rcsr + .tabs__title_1rcsr {
|
|
72
72
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
73
|
-
}.
|
|
73
|
+
}.tabs__m_1rcsr .tabs__title_1rcsr + .tabs__title_1rcsr {
|
|
74
74
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
75
|
-
}.
|
|
75
|
+
}.tabs__l_1rcsr .tabs__title_1rcsr + .tabs__title_1rcsr {
|
|
76
76
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
77
|
-
}.
|
|
77
|
+
}.tabs__xl_1rcsr .tabs__title_1rcsr + .tabs__title_1rcsr {
|
|
78
78
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
79
79
|
} :root {
|
|
80
80
|
--color-dark-indigo: #0b1f35;
|
|
@@ -389,6 +389,10 @@
|
|
|
389
389
|
--color-dark-bg-secondary-inverted-tint-7: rgb(244, 245, 246);
|
|
390
390
|
--color-dark-bg-secondary-inverted-tint-15: rgb(245, 246, 246);
|
|
391
391
|
--color-dark-bg-tertiary-tint-7: rgb(59, 59, 61);
|
|
392
|
+
--color-dark-border-key-alpha-7: rgba(255, 255, 255, 0.07);
|
|
393
|
+
--color-dark-border-key-alpha-15: rgba(255, 255, 255, 0.15);
|
|
394
|
+
--color-dark-border-key-inverted-alpha-7: rgba(0, 0, 0, 0.07);
|
|
395
|
+
--color-dark-border-key-inverted-alpha-15: rgba(0, 0, 0, 0.15);
|
|
392
396
|
--color-dark-border-underline-alpha-30: rgba(70, 70, 73, 0.3);
|
|
393
397
|
--color-dark-border-underline-inverted-alpha-30: rgba(197, 197, 199, 0.3);
|
|
394
398
|
--color-dark-graphic-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
@@ -541,6 +545,10 @@
|
|
|
541
545
|
--color-light-bg-secondary-inverted-shade-7: rgb(30, 30, 32);
|
|
542
546
|
--color-light-bg-secondary-inverted-shade-15: rgb(27, 27, 29);
|
|
543
547
|
--color-light-bg-tertiary-shade-7: rgb(217, 217, 219);
|
|
548
|
+
--color-light-border-key-alpha-7: rgba(0, 0, 0, 0.07);
|
|
549
|
+
--color-light-border-key-alpha-15: rgba(0, 0, 0, 0.15);
|
|
550
|
+
--color-light-border-key-inverted-alpha-7: rgba(255, 255, 255, 0.07);
|
|
551
|
+
--color-light-border-key-inverted-alpha-15: rgba(255, 255, 255, 0.15);
|
|
544
552
|
--color-light-border-underline-alpha-30: rgba(197, 197, 199, 0.3);
|
|
545
553
|
--color-light-border-underline-inverted-alpha-30: rgba(70, 70, 73, 0.3);
|
|
546
554
|
--color-light-graphic-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
@@ -963,7 +971,7 @@
|
|
|
963
971
|
|
|
964
972
|
/* size xl */
|
|
965
973
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
966
|
-
} .
|
|
967
|
-
} .
|
|
974
|
+
} .tabs__title_hucc5 {
|
|
975
|
+
} .tabs__mobile_hucc5 .tabs__title_hucc5 + .tabs__title_hucc5 {
|
|
968
976
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
969
977
|
}
|
|
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
11
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
12
12
|
|
|
13
|
-
var styles = {"component":"
|
|
13
|
+
var styles = {"component":"tabs__component_1dqs4","hidden":"tabs__hidden_1dqs4"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var Tab = function (_a) {
|
package/components/tab/index.css
CHANGED
|
@@ -21,10 +21,10 @@ require('../../synthetic-events.js');
|
|
|
21
21
|
require('../scrollable-container/Component.js');
|
|
22
22
|
require('compute-scroll-into-view');
|
|
23
23
|
require('../title/Component.js');
|
|
24
|
-
require('../../index.module-
|
|
24
|
+
require('../../index.module-77258299.js');
|
|
25
25
|
require('../secondary-tablist/Component.js');
|
|
26
26
|
require('@alfalab/core-components-tag');
|
|
27
|
-
require('../../index.module-
|
|
27
|
+
require('../../index.module-44b9585d.js');
|
|
28
28
|
|
|
29
29
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
30
30
|
|
|
@@ -21,10 +21,10 @@ require('../../synthetic-events.js');
|
|
|
21
21
|
require('../scrollable-container/Component.js');
|
|
22
22
|
require('compute-scroll-into-view');
|
|
23
23
|
require('../title/Component.js');
|
|
24
|
-
require('../../index.module-
|
|
24
|
+
require('../../index.module-77258299.js');
|
|
25
25
|
require('../secondary-tablist/Component.js');
|
|
26
26
|
require('@alfalab/core-components-tag');
|
|
27
|
-
require('../../index.module-
|
|
27
|
+
require('../../index.module-44b9585d.js');
|
|
28
28
|
|
|
29
29
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
30
30
|
|
|
@@ -22,12 +22,12 @@ require('../../synthetic-events.js');
|
|
|
22
22
|
require('../scrollable-container/Component.js');
|
|
23
23
|
require('compute-scroll-into-view');
|
|
24
24
|
require('../title/Component.js');
|
|
25
|
-
require('../../index.module-
|
|
25
|
+
require('../../index.module-77258299.js');
|
|
26
26
|
require('../primary-tablist/Component.mobile.js');
|
|
27
27
|
require('../secondary-tablist/Component.desktop.js');
|
|
28
28
|
require('../secondary-tablist/Component.js');
|
|
29
29
|
require('@alfalab/core-components-tag');
|
|
30
|
-
require('../../index.module-
|
|
30
|
+
require('../../index.module-44b9585d.js');
|
|
31
31
|
require('../secondary-tablist/Component.mobile.js');
|
|
32
32
|
|
|
33
33
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -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 };
|
package/cssm/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/desktop.js
CHANGED
|
@@ -20,11 +20,11 @@ require('./hooks/use-tablist-titles.js');
|
|
|
20
20
|
require('@alfalab/hooks');
|
|
21
21
|
require('./synthetic-events.js');
|
|
22
22
|
require('./components/title/Component.js');
|
|
23
|
-
require('./index.module-
|
|
23
|
+
require('./index.module-77258299.js');
|
|
24
24
|
require('compute-scroll-into-view');
|
|
25
25
|
require('./components/secondary-tablist/Component.js');
|
|
26
26
|
require('@alfalab/core-components-tag');
|
|
27
|
-
require('./index.module-
|
|
27
|
+
require('./index.module-44b9585d.js');
|
|
28
28
|
require('./components/tabs/Component.js');
|
|
29
29
|
require('@juggle/resize-observer');
|
|
30
30
|
|
|
@@ -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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-cb6197d8.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-badge/esm';
|
|
7
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
@@ -2,7 +2,7 @@ import { __assign, __rest } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { PrimaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-cb6197d8.js';
|
|
6
6
|
import '@alfalab/core-components-badge/esm';
|
|
7
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
8
8
|
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
@@ -16,7 +16,7 @@ import '../scrollable-container/Component.js';
|
|
|
16
16
|
import 'compute-scroll-into-view';
|
|
17
17
|
import '../title/Component.js';
|
|
18
18
|
|
|
19
|
-
var mobileStyles = {"title":"
|
|
19
|
+
var mobileStyles = {"title":"tabs__title_1t2w8 tabs__title_no3qa","mobile":"tabs__mobile_1t2w8"};
|
|
20
20
|
require('./mobile.css')
|
|
21
21
|
|
|
22
22
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -16,7 +16,7 @@ import '../../synthetic-events.js';
|
|
|
16
16
|
import '../scrollable-container/Component.js';
|
|
17
17
|
import 'compute-scroll-into-view';
|
|
18
18
|
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-cb6197d8.js';
|
|
20
20
|
|
|
21
21
|
var PrimaryTabListResponsive = function (_a) {
|
|
22
22
|
var size = _a.size, _b = _a.defaultMatch, defaultMatch = _b === void 0 ? 'desktop' : _b, collapsible = _a.collapsible, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, restProps = __rest(_a, ["size", "defaultMatch", "collapsible", "collapsedTabsIds", "fullWidthScroll"]);
|