@alfalab/core-components-tabs 8.5.2 → 8.6.1
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/collapsible/index.js +0 -19
- package/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/components/primary-tablist/Component.collapsible.js +5 -12
- package/components/primary-tablist/Component.d.ts +1 -1
- package/components/primary-tablist/Component.desktop.js +1 -16
- package/components/primary-tablist/Component.js +4 -11
- package/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/components/primary-tablist/Component.mobile.js +3 -22
- package/components/primary-tablist/Component.responsive.js +0 -17
- package/components/primary-tablist/index.css +288 -30
- package/components/primary-tablist/mobile.css +499 -33
- package/components/scroll-controls/Component.d.ts +1 -0
- package/components/scroll-controls/Component.js +7 -7
- package/components/scroll-controls/index.css +23 -26
- package/components/scroll-controls/index.js +0 -8
- package/components/scrollable-container/Component.d.ts +5 -1
- package/components/scrollable-container/Component.js +3 -9
- package/components/scrollable-container/index.css +6 -6
- package/components/scrollable-container/index.js +0 -10
- package/components/secondary-tablist/Component.desktop.js +1 -13
- package/components/secondary-tablist/Component.js +0 -9
- package/components/secondary-tablist/Component.mobile.js +2 -13
- package/components/secondary-tablist/Component.responsive.js +0 -16
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +13 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tab/index.js +0 -2
- package/components/tabs/Component.collapsible.js +0 -15
- package/components/tabs/Component.d.ts +1 -1
- package/components/tabs/Component.desktop.js +0 -20
- package/components/tabs/Component.js +2 -2
- package/components/tabs/Component.mobile.js +0 -20
- package/components/tabs/Component.responsive.js +0 -26
- package/components/title/index.js +0 -3
- package/cssm/collapsible/index.js +0 -20
- package/cssm/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.collapsible.js +4 -11
- package/cssm/components/primary-tablist/Component.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.desktop.js +0 -17
- package/cssm/components/primary-tablist/Component.js +4 -13
- package/cssm/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.mobile.js +1 -22
- package/cssm/components/primary-tablist/Component.responsive.js +0 -20
- package/cssm/components/primary-tablist/index.module.css +259 -1
- package/cssm/components/primary-tablist/mobile.module.css +210 -0
- package/cssm/components/primary-tablist/text-styles.module.css +16 -0
- package/cssm/components/scroll-controls/Component.d.ts +1 -0
- package/cssm/components/scroll-controls/Component.js +6 -6
- package/cssm/components/scroll-controls/index.js +0 -9
- package/cssm/components/scroll-controls/index.module.css +12 -15
- package/cssm/components/scrollable-container/Component.d.ts +5 -1
- package/cssm/components/scrollable-container/Component.js +2 -9
- package/cssm/components/scrollable-container/index.js +0 -12
- package/cssm/components/secondary-tablist/Component.desktop.js +0 -14
- package/cssm/components/secondary-tablist/Component.js +0 -11
- package/cssm/components/secondary-tablist/Component.mobile.js +0 -13
- package/cssm/components/secondary-tablist/Component.responsive.js +0 -19
- package/cssm/components/tab/index.js +0 -3
- package/cssm/components/tabs/Component.collapsible.js +0 -15
- package/cssm/components/tabs/Component.d.ts +1 -1
- package/cssm/components/tabs/Component.desktop.js +0 -22
- package/cssm/components/tabs/Component.js +2 -2
- package/cssm/components/tabs/Component.mobile.js +0 -24
- package/cssm/components/tabs/Component.responsive.js +0 -30
- package/cssm/components/title/index.js +0 -3
- package/cssm/desktop/index.js +0 -26
- package/cssm/hooks/use-tablist-titles.js +0 -4
- package/cssm/index.js +0 -34
- package/cssm/mobile/index.js +0 -28
- package/cssm/shared/index.js +0 -16
- package/cssm/typings.d.ts +5 -1
- package/desktop/index.js +0 -23
- package/esm/collapsible/index.js +0 -19
- package/esm/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/esm/components/primary-tablist/Component.collapsible.js +5 -12
- package/esm/components/primary-tablist/Component.d.ts +1 -1
- package/esm/components/primary-tablist/Component.desktop.js +1 -16
- package/esm/components/primary-tablist/Component.js +4 -11
- package/esm/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +4 -22
- package/esm/components/primary-tablist/Component.responsive.js +0 -17
- package/esm/components/primary-tablist/index.css +288 -30
- package/esm/components/primary-tablist/mobile.css +499 -33
- package/esm/components/scroll-controls/Component.d.ts +1 -0
- package/esm/components/scroll-controls/Component.js +7 -7
- package/esm/components/scroll-controls/index.css +23 -26
- package/esm/components/scroll-controls/index.js +0 -8
- package/esm/components/scrollable-container/Component.d.ts +5 -1
- package/esm/components/scrollable-container/Component.js +3 -9
- package/esm/components/scrollable-container/index.css +6 -6
- package/esm/components/scrollable-container/index.js +0 -10
- package/esm/components/secondary-tablist/Component.desktop.js +1 -13
- package/esm/components/secondary-tablist/Component.js +0 -9
- package/esm/components/secondary-tablist/Component.mobile.js +2 -13
- package/esm/components/secondary-tablist/Component.responsive.js +0 -16
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +13 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tab/index.js +0 -2
- package/esm/components/tabs/Component.collapsible.js +0 -15
- package/esm/components/tabs/Component.d.ts +1 -1
- package/esm/components/tabs/Component.desktop.js +0 -20
- package/esm/components/tabs/Component.js +2 -2
- package/esm/components/tabs/Component.mobile.js +0 -20
- package/esm/components/tabs/Component.responsive.js +0 -26
- package/esm/components/title/index.js +0 -3
- package/esm/desktop/index.js +0 -23
- package/esm/hooks/use-tablist-titles.js +0 -4
- package/esm/index.js +0 -29
- package/esm/index.module-329bd113.js +4 -0
- package/esm/index.module-c2b4a565.js +4 -0
- package/esm/mobile/index.js +0 -23
- package/esm/shared/index.js +0 -14
- package/esm/typings.d.ts +5 -1
- package/hooks/use-tablist-titles.js +0 -4
- package/index.js +0 -29
- package/index.module-52123f08.js +6 -0
- package/index.module-b92170ea.js +6 -0
- package/mobile/index.js +0 -23
- package/modern/collapsible/index.js +0 -18
- package/modern/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/modern/components/primary-tablist/Component.collapsible.js +5 -12
- package/modern/components/primary-tablist/Component.d.ts +1 -1
- package/modern/components/primary-tablist/Component.desktop.js +1 -16
- package/modern/components/primary-tablist/Component.js +4 -11
- package/modern/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +3 -18
- package/modern/components/primary-tablist/Component.responsive.js +0 -17
- package/modern/components/primary-tablist/index.css +288 -30
- package/modern/components/primary-tablist/mobile.css +499 -33
- package/modern/components/scroll-controls/Component.d.ts +1 -0
- package/modern/components/scroll-controls/Component.js +7 -7
- package/modern/components/scroll-controls/index.css +23 -26
- package/modern/components/scroll-controls/index.js +0 -7
- package/modern/components/scrollable-container/Component.d.ts +5 -1
- package/modern/components/scrollable-container/Component.js +3 -8
- package/modern/components/scrollable-container/index.css +6 -6
- package/modern/components/scrollable-container/index.js +0 -9
- package/modern/components/secondary-tablist/Component.desktop.js +1 -13
- package/modern/components/secondary-tablist/Component.js +0 -9
- package/modern/components/secondary-tablist/Component.mobile.js +2 -13
- package/modern/components/secondary-tablist/Component.responsive.js +0 -16
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +13 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tab/index.js +0 -2
- package/modern/components/tabs/Component.collapsible.js +0 -15
- package/modern/components/tabs/Component.d.ts +1 -1
- package/modern/components/tabs/Component.desktop.js +0 -20
- package/modern/components/tabs/Component.js +2 -2
- package/modern/components/tabs/Component.mobile.js +0 -20
- package/modern/components/tabs/Component.responsive.js +0 -26
- package/modern/components/title/index.js +0 -2
- package/modern/desktop/index.js +0 -22
- package/modern/hooks/use-tablist-titles.js +0 -4
- package/modern/index.js +0 -28
- package/modern/index.module-45e29a3d.js +4 -0
- package/modern/index.module-e47d16c1.js +4 -0
- package/modern/mobile/index.js +0 -22
- package/modern/shared/index.js +0 -13
- package/modern/typings.d.ts +5 -1
- package/package.json +4 -4
- package/shared/index.js +0 -14
- package/src/components/primary-tablist/Component.collapsible.tsx +12 -3
- package/src/components/primary-tablist/Component.mobile.tsx +2 -8
- package/src/components/primary-tablist/Component.tsx +10 -3
- package/src/components/primary-tablist/index.module.css +6 -0
- package/src/components/primary-tablist/mobile.module.css +4 -0
- package/src/components/primary-tablist/text-styles.module.css +228 -0
- package/src/components/scroll-controls/Component.tsx +15 -8
- package/src/components/scroll-controls/index.module.css +12 -19
- package/src/components/scrollable-container/Component.tsx +7 -0
- package/src/components/tabs/Component.tsx +2 -0
- package/src/typings.ts +25 -0
- package/typings.d.ts +5 -1
- package/esm/index.module-1e961bec.js +0 -4
- package/esm/index.module-b07a0a20.js +0 -4
- package/index.module-6c875fed.js +0 -6
- package/index.module-dcd338c3.js +0 -6
- package/modern/index.module-11a3c51b.js +0 -4
- package/modern/index.module-b0eb0617.js +0 -4
|
@@ -3,16 +3,16 @@ import React, { forwardRef, useState, useEffect } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import _debounce from 'lodash.debounce';
|
|
5
5
|
import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { ChevronLeftCompactSIcon } from '@alfalab/icons-glyph/ChevronLeftCompactSIcon';
|
|
7
|
+
import { ChevronRightCompactSIcon } from '@alfalab/icons-glyph/ChevronRightCompactSIcon';
|
|
8
8
|
import { getDisabledState, scrollIntoFirstTab, scrollIntoLastTab } from './utils.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"tabs__component_12cok","primary":"tabs__primary_12cok","button":"tabs__button_12cok","xl":"tabs__xl_12cok","secondary":"tabs__secondary_12cok","xs":"tabs__xs_12cok","borderVisible":"tabs__borderVisible_12cok"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var ScrollControls = forwardRef(function (_a, ref) {
|
|
14
14
|
var _b;
|
|
15
|
-
var containerRef = _a.containerRef, view = _a.view, sizeProp = _a.size;
|
|
15
|
+
var containerRef = _a.containerRef, view = _a.view, sizeProp = _a.size, className = _a.className;
|
|
16
16
|
var container = containerRef.current;
|
|
17
17
|
var _c = useState(function () { return getDisabledState(container); }), disabledState = _c[0], updateDisabledState = _c[1];
|
|
18
18
|
useEffect(function () {
|
|
@@ -33,11 +33,11 @@ var ScrollControls = forwardRef(function (_a, ref) {
|
|
|
33
33
|
size: getSize(),
|
|
34
34
|
view: 'secondary',
|
|
35
35
|
};
|
|
36
|
-
return (React.createElement("div", { ref: ref, className: cn(styles.component, styles[view], sizeProp && styles[sizeProp], (_b = {},
|
|
36
|
+
return (React.createElement("div", { ref: ref, className: cn(styles.component, styles[view], sizeProp && styles[sizeProp], className, (_b = {},
|
|
37
37
|
_b[styles.borderVisible] = !disabledState.toRight,
|
|
38
38
|
_b)) },
|
|
39
|
-
React.createElement(IconButton, __assign({}, commonButtonProps, { icon:
|
|
40
|
-
React.createElement(IconButton, __assign({}, commonButtonProps, { icon:
|
|
39
|
+
React.createElement(IconButton, __assign({}, commonButtonProps, { icon: ChevronLeftCompactSIcon, disabled: disabledState.toLeft, onClick: handleScrollLeft })),
|
|
40
|
+
React.createElement(IconButton, __assign({}, commonButtonProps, { icon: ChevronRightCompactSIcon, disabled: disabledState.toRight, onClick: handleScrollRight }))));
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
export { ScrollControls };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: hq9h6 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
@@ -44,25 +44,14 @@
|
|
|
44
44
|
/* size l */
|
|
45
45
|
|
|
46
46
|
/* size xl */
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__component_12cok {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: flex;
|
|
50
|
-
flex-shrink: 0
|
|
51
|
-
} .
|
|
52
|
-
content: '';
|
|
53
|
-
display: block;
|
|
54
|
-
position: absolute;
|
|
55
|
-
top: 0;
|
|
56
|
-
left: 0;
|
|
57
|
-
width: 1px;
|
|
58
|
-
background-color: transparent;
|
|
59
|
-
transition: background-color 0.3s ease;
|
|
60
|
-
} .tabs__borderVisible_uh8ir:before {
|
|
61
|
-
background-color: var(--color-light-neutral-translucent-300);
|
|
62
|
-
} .tabs__primary_uh8ir {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
} .tabs__primary_12cok {
|
|
63
52
|
align-items: flex-start;
|
|
64
53
|
justify-content: flex-end
|
|
65
|
-
} .
|
|
54
|
+
} .tabs__primary_12cok:after {
|
|
66
55
|
content: '';
|
|
67
56
|
display: block;
|
|
68
57
|
position: absolute;
|
|
@@ -70,25 +59,33 @@
|
|
|
70
59
|
height: 1px;
|
|
71
60
|
width: 100%;
|
|
72
61
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
73
|
-
} .
|
|
74
|
-
bottom: 2px;
|
|
75
|
-
} .tabs__primary_uh8ir {
|
|
62
|
+
} .tabs__primary_12cok {
|
|
76
63
|
|
|
77
|
-
.
|
|
64
|
+
.tabs__button_12cok:first-child {
|
|
78
65
|
padding-left: var(--gap-xs);
|
|
79
66
|
margin-right: var(--gap-xs);
|
|
80
67
|
}
|
|
81
|
-
} .
|
|
68
|
+
} .tabs__primary_12cok.tabs__xl_12cok .tabs__button_12cok:first-child {
|
|
82
69
|
margin-right: var(--gap-2xs);
|
|
83
|
-
} .
|
|
70
|
+
} .tabs__secondary_12cok {
|
|
84
71
|
align-items: center;
|
|
85
72
|
justify-content: center
|
|
86
|
-
} .
|
|
73
|
+
} .tabs__secondary_12cok:before {
|
|
74
|
+
content: '';
|
|
75
|
+
display: block;
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
width: 1px;
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
transition: background-color 0.3s ease;
|
|
87
82
|
bottom: 0;
|
|
88
|
-
} .
|
|
83
|
+
} .tabs__secondary_12cok.tabs__xs_12cok {
|
|
89
84
|
width: 76px;
|
|
90
85
|
|
|
91
|
-
.
|
|
86
|
+
.tabs__button_12cok:first-child {
|
|
92
87
|
margin-right: var(--gap-2xs);
|
|
93
88
|
}
|
|
94
|
-
}
|
|
89
|
+
} .tabs__borderVisible_12cok:before {
|
|
90
|
+
background-color: var(--color-light-neutral-translucent-300);
|
|
91
|
+
}
|
|
@@ -1,9 +1 @@
|
|
|
1
1
|
export { ScrollControls } from './Component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import 'lodash.debounce';
|
|
6
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
7
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
8
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
9
|
-
import './utils.js';
|
|
@@ -11,6 +11,10 @@ type ScrollableContainerProps = {
|
|
|
11
11
|
* Дополнительный класс контейнера
|
|
12
12
|
*/
|
|
13
13
|
containerClassName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Дополнительный класс кнопок прокрутки
|
|
16
|
+
*/
|
|
17
|
+
scrollControlsClassName?: string;
|
|
14
18
|
/**
|
|
15
19
|
* Дочерние компоненты
|
|
16
20
|
*/
|
|
@@ -28,5 +32,5 @@ type ScrollableContainerProps = {
|
|
|
28
32
|
*/
|
|
29
33
|
size: TabsProps['size'];
|
|
30
34
|
};
|
|
31
|
-
declare const ScrollableContainer: ({ containerWrapperClassName, containerClassName, children, activeChild, fullWidthScroll, view, size, platform, }: ScrollableContainerProps & Pick<TabsProps, 'fullWidthScroll'> & PlatformProps) => React.JSX.Element;
|
|
35
|
+
declare const ScrollableContainer: ({ containerWrapperClassName, containerClassName, scrollControlsClassName, children, activeChild, fullWidthScroll, view, size, platform, }: ScrollableContainerProps & Pick<TabsProps, 'fullWidthScroll'> & PlatformProps) => React.JSX.Element;
|
|
32
36
|
export { ScrollableContainerProps, ScrollableContainer };
|
|
@@ -2,14 +2,8 @@ import React, { useRef, useState, useEffect } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { compute } from 'compute-scroll-into-view';
|
|
4
4
|
import { ScrollControls } from '../scroll-controls/Component.js';
|
|
5
|
-
import 'tslib';
|
|
6
|
-
import 'lodash.debounce';
|
|
7
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
8
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
9
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
10
|
-
import '../scroll-controls/utils.js';
|
|
11
5
|
|
|
12
|
-
var styles = {"scrollableContainerWrapper":"
|
|
6
|
+
var styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_umnae","container":"tabs__container_umnae","fullWidthScroll":"tabs__fullWidthScroll_umnae"};
|
|
13
7
|
require('./index.css')
|
|
14
8
|
|
|
15
9
|
/**
|
|
@@ -23,7 +17,7 @@ var isOverflown = function (_a, controlsNode) {
|
|
|
23
17
|
};
|
|
24
18
|
var ScrollableContainer = function (_a) {
|
|
25
19
|
var _b;
|
|
26
|
-
var containerWrapperClassName = _a.containerWrapperClassName, containerClassName = _a.containerClassName, children = _a.children, activeChild = _a.activeChild, fullWidthScroll = _a.fullWidthScroll, view = _a.view, size = _a.size, platform = _a.platform;
|
|
20
|
+
var containerWrapperClassName = _a.containerWrapperClassName, containerClassName = _a.containerClassName, scrollControlsClassName = _a.scrollControlsClassName, children = _a.children, activeChild = _a.activeChild, fullWidthScroll = _a.fullWidthScroll, view = _a.view, size = _a.size, platform = _a.platform;
|
|
27
21
|
var containerRef = useRef(null);
|
|
28
22
|
var controlsRef = useRef(null);
|
|
29
23
|
var _c = useState(false), overflown = _c[0], setOverflown = _c[1];
|
|
@@ -69,7 +63,7 @@ var ScrollableContainer = function (_a) {
|
|
|
69
63
|
React.createElement("div", { ref: containerRef, className: cn(styles.container, containerClassName, (_b = {},
|
|
70
64
|
_b[styles.fullWidthScroll] = fullWidthScroll,
|
|
71
65
|
_b)) }, children),
|
|
72
|
-
overflown && platform === 'desktop' ? (React.createElement(ScrollControls, { ref: controlsRef, containerRef: containerRef, view: view, size: size })) : null));
|
|
66
|
+
overflown && platform === 'desktop' ? (React.createElement(ScrollControls, { className: scrollControlsClassName, ref: controlsRef, containerRef: containerRef, view: view, size: size })) : null));
|
|
73
67
|
};
|
|
74
68
|
|
|
75
69
|
export { ScrollableContainer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: h49bt */
|
|
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 */
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
/* size l */
|
|
43
43
|
|
|
44
44
|
/* size xl */
|
|
45
|
-
} .
|
|
45
|
+
} .tabs__scrollableContainerWrapper_umnae {
|
|
46
46
|
display: flex;
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__container_umnae {
|
|
48
48
|
position: relative;
|
|
49
49
|
overflow-x: auto;
|
|
50
50
|
overflow-y: hidden;
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
/* focus-outline fix */
|
|
56
56
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
57
57
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_umnae::-webkit-scrollbar {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .tabs__container_umnae > * {
|
|
61
61
|
flex-shrink: 0;
|
|
62
|
-
} .
|
|
62
|
+
} .tabs__fullWidthScroll_umnae {
|
|
63
63
|
padding-left: 0;
|
|
64
64
|
margin: var(--gap-2xs-neg) var(--gap-m-neg);
|
|
65
65
|
}
|
|
@@ -1,11 +1 @@
|
|
|
1
1
|
export { ScrollableContainer } from './Component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import 'compute-scroll-into-view';
|
|
5
|
-
import '../scroll-controls/Component.js';
|
|
6
|
-
import 'tslib';
|
|
7
|
-
import 'lodash.debounce';
|
|
8
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
9
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
10
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
11
|
-
import '../scroll-controls/utils.js';
|
|
@@ -2,19 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TagDesktop } from '@alfalab/core-components-tag/esm/desktop';
|
|
4
4
|
import { SecondaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../../hooks/use-tabs.js';
|
|
8
|
-
import 'react-merge-refs';
|
|
9
|
-
import '@alfalab/core-components-shared/esm';
|
|
10
|
-
import '../scrollable-container/Component.js';
|
|
11
|
-
import 'compute-scroll-into-view';
|
|
12
|
-
import '../scroll-controls/Component.js';
|
|
13
|
-
import 'lodash.debounce';
|
|
14
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
15
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
16
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
17
|
-
import '../scroll-controls/utils.js';
|
|
5
|
+
import { c as commonStyles } from '../../index.module-c2b4a565.js';
|
|
18
6
|
|
|
19
7
|
var SecondaryTabListDesktop = function (_a) {
|
|
20
8
|
var _b = _a.size, size = _b === void 0 ? 's' : _b, restProps = __rest(_a, ["size"]);
|
|
@@ -3,15 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useTabs } from '../../hooks/use-tabs.js';
|
|
5
5
|
import { ScrollableContainer } from '../scrollable-container/Component.js';
|
|
6
|
-
import 'react-merge-refs';
|
|
7
|
-
import '@alfalab/core-components-shared/esm';
|
|
8
|
-
import 'compute-scroll-into-view';
|
|
9
|
-
import '../scroll-controls/Component.js';
|
|
10
|
-
import 'lodash.debounce';
|
|
11
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
12
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
13
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
14
|
-
import '../scroll-controls/utils.js';
|
|
15
6
|
|
|
16
7
|
var SecondaryTabList = function (_a) {
|
|
17
8
|
var _b = _a.styles, styles = _b === void 0 ? {} : _b, className = _a.className, containerClassName = _a.containerClassName, size = _a.size, _c = _a.titles, titles = _c === void 0 ? [] : _c, _d = _a.selectedId, selectedId = _d === void 0 ? titles.length ? titles[0].id : undefined : _d, _e = _a.scrollable, scrollable = _e === void 0 ? true : _e, fullWidthScroll = _a.fullWidthScroll, _f = _a.tagSize, tagSize = _f === void 0 ? 'xs' : _f, onChange = _a.onChange, dataTestId = _a.dataTestId, TagComponent = _a.TagComponent, platform = _a.platform, tagShape = _a.tagShape, tagView = _a.tagView;
|
|
@@ -3,20 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TagMobile } from '@alfalab/core-components-tag/esm/mobile';
|
|
5
5
|
import { SecondaryTabList } from './Component.js';
|
|
6
|
-
import { c as commonStyles } from '../../index.module-
|
|
7
|
-
import '../../hooks/use-tabs.js';
|
|
8
|
-
import 'react-merge-refs';
|
|
9
|
-
import '@alfalab/core-components-shared/esm';
|
|
10
|
-
import '../scrollable-container/Component.js';
|
|
11
|
-
import 'compute-scroll-into-view';
|
|
12
|
-
import '../scroll-controls/Component.js';
|
|
13
|
-
import 'lodash.debounce';
|
|
14
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
15
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
16
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
17
|
-
import '../scroll-controls/utils.js';
|
|
6
|
+
import { c as commonStyles } from '../../index.module-c2b4a565.js';
|
|
18
7
|
|
|
19
|
-
var mobileStyles = {"title":"
|
|
8
|
+
var mobileStyles = {"title":"tabs__title_17q83 tabs__title_tu2e9","mobile":"tabs__mobile_17q83"};
|
|
20
9
|
require('./mobile.css')
|
|
21
10
|
|
|
22
11
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -3,22 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { useMatchMedia } from '@alfalab/core-components-mq/esm';
|
|
4
4
|
import { SecondaryTabListDesktop } from './Component.desktop.js';
|
|
5
5
|
import { SecondaryTabListMobile } from './Component.mobile.js';
|
|
6
|
-
import '@alfalab/core-components-tag/esm/desktop';
|
|
7
|
-
import './Component.js';
|
|
8
|
-
import 'classnames';
|
|
9
|
-
import '../../hooks/use-tabs.js';
|
|
10
|
-
import 'react-merge-refs';
|
|
11
|
-
import '@alfalab/core-components-shared/esm';
|
|
12
|
-
import '../scrollable-container/Component.js';
|
|
13
|
-
import 'compute-scroll-into-view';
|
|
14
|
-
import '../scroll-controls/Component.js';
|
|
15
|
-
import 'lodash.debounce';
|
|
16
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
17
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../scroll-controls/utils.js';
|
|
20
|
-
import '../../index.module-b07a0a20.js';
|
|
21
|
-
import '@alfalab/core-components-tag/esm/mobile';
|
|
22
6
|
|
|
23
7
|
var SecondaryTabListResponsive = function (_a) {
|
|
24
8
|
var defaultMatchMediaValue = _a.defaultMatchMediaValue, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["defaultMatchMediaValue", "fullWidthScroll", "breakpoint"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8y8a1 */
|
|
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 */
|
|
@@ -50,29 +50,29 @@
|
|
|
50
50
|
|
|
51
51
|
/* size xl */
|
|
52
52
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
53
|
-
} .
|
|
53
|
+
} .tabs__component_tu2e9 {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
} .
|
|
56
|
+
} .tabs__fullWidthScroll_tu2e9 {
|
|
57
57
|
margin: 0 var(--gap-m);
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_tu2e9 {
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
|
|
61
61
|
/* focus-outline fix */
|
|
62
62
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
63
63
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
64
|
-
} .
|
|
64
|
+
} .tabs__title_tu2e9 {
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
} /* sizes */ .
|
|
66
|
+
} /* sizes */ .tabs__xxs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
67
67
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
68
|
-
} .
|
|
68
|
+
} .tabs__xs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
69
69
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
70
|
-
} .
|
|
70
|
+
} .tabs__s_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
71
71
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
72
|
-
} .
|
|
72
|
+
} .tabs__m_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
73
73
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
|
-
} .
|
|
74
|
+
} .tabs__l_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
75
75
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
76
|
-
} .
|
|
76
|
+
} .tabs__xl_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hg1x */
|
|
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_tu2e9 {
|
|
55
55
|
position: relative;
|
|
56
56
|
display: inline-flex;
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__fullWidthScroll_tu2e9 {
|
|
58
58
|
margin: 0 var(--gap-m);
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__container_tu2e9 {
|
|
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_tu2e9 {
|
|
66
66
|
white-space: nowrap;
|
|
67
|
-
}/* sizes */.
|
|
67
|
+
}/* sizes */.tabs__xxs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
68
68
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__xs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
70
70
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__s_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
72
72
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
73
|
-
}.
|
|
73
|
+
}.tabs__m_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
74
74
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
75
|
-
}.
|
|
75
|
+
}.tabs__l_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
76
76
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
77
|
-
}.
|
|
77
|
+
}.tabs__xl_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
|
|
78
78
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
79
79
|
} :root {
|
|
80
80
|
--color-dark-indigo: #0b1f35;
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
|
|
1638
1638
|
/* size xl */
|
|
1639
1639
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1640
|
-
} .
|
|
1641
|
-
} .
|
|
1640
|
+
} .tabs__title_17q83 {
|
|
1641
|
+
} .tabs__mobile_17q83 .tabs__title_17q83 + .tabs__title_17q83 {
|
|
1642
1642
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
1643
1643
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"tabs__component_9y627","hidden":"tabs__hidden_9y627"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tab = function (_a) {
|
|
@@ -2,21 +2,6 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CollapsiblePrimaryTabList } from '../primary-tablist/Component.collapsible.js';
|
|
4
4
|
import { Tabs } from './Component.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '@alfalab/core-components-badge/esm';
|
|
7
|
-
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
8
|
-
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
9
|
-
import '../../hooks/use-tablist-titles.js';
|
|
10
|
-
import '@alfalab/core-components-mq/esm';
|
|
11
|
-
import '../../hooks/use-collapsible-elements.js';
|
|
12
|
-
import '@juggle/resize-observer';
|
|
13
|
-
import '@alfalab/hooks';
|
|
14
|
-
import '../../hooks/use-tabs.js';
|
|
15
|
-
import 'react-merge-refs';
|
|
16
|
-
import '@alfalab/core-components-shared/esm';
|
|
17
|
-
import '../../synthetic-events.js';
|
|
18
|
-
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-1e961bec.js';
|
|
20
5
|
|
|
21
6
|
var TabsCollapsible = function (_a) {
|
|
22
7
|
var restProps = __rest(_a, []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TabsProps } from "../../typings";
|
|
4
|
-
declare const Tabs: ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll, keepMounted, dataTestId, onChange, breakpoint, tagShape, tagView, }: Omit<TabsProps, 'view'>) => React.JSX.Element;
|
|
4
|
+
declare const Tabs: ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll, keepMounted, dataTestId, onChange, breakpoint, tagShape, tagView, textStyle, }: Omit<TabsProps, 'view'>) => React.JSX.Element;
|
|
5
5
|
export { Tabs };
|
|
@@ -3,26 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
|
|
4
4
|
import { SecondaryTabListDesktop } from '../secondary-tablist/Component.desktop.js';
|
|
5
5
|
import { Tabs } from './Component.js';
|
|
6
|
-
import '../primary-tablist/Component.js';
|
|
7
|
-
import '@juggle/resize-observer';
|
|
8
|
-
import 'classnames';
|
|
9
|
-
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
10
|
-
import '@alfalab/core-components-shared/esm';
|
|
11
|
-
import '../../hooks/use-tabs.js';
|
|
12
|
-
import 'react-merge-refs';
|
|
13
|
-
import '../scrollable-container/Component.js';
|
|
14
|
-
import 'compute-scroll-into-view';
|
|
15
|
-
import '../scroll-controls/Component.js';
|
|
16
|
-
import 'lodash.debounce';
|
|
17
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
18
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
-
import '../scroll-controls/utils.js';
|
|
21
|
-
import '../title/Component.js';
|
|
22
|
-
import '../../index.module-1e961bec.js';
|
|
23
|
-
import '@alfalab/core-components-tag/esm/desktop';
|
|
24
|
-
import '../secondary-tablist/Component.js';
|
|
25
|
-
import '../../index.module-b07a0a20.js';
|
|
26
6
|
|
|
27
7
|
var views = {
|
|
28
8
|
primary: PrimaryTabListDesktop,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { cloneElement } from 'react';
|
|
2
2
|
|
|
3
3
|
var Tabs = function (_a) {
|
|
4
|
-
var TabList = _a.TabList, className = _a.className, containerClassName = _a.containerClassName, size = _a.size, defaultMatchMediaValue = _a.defaultMatchMediaValue, children = _a.children, selectedId = _a.selectedId, scrollable = _a.scrollable, collapsedTabsIds = _a.collapsedTabsIds, _b = _a.fullWidthScroll, fullWidthScroll = _b === void 0 ? false : _b, _c = _a.keepMounted, keepMounted = _c === void 0 ? false : _c, dataTestId = _a.dataTestId, onChange = _a.onChange, _d = _a.breakpoint, breakpoint = _d === void 0 ? 1024 : _d, tagShape = _a.tagShape, tagView = _a.tagView;
|
|
4
|
+
var TabList = _a.TabList, className = _a.className, containerClassName = _a.containerClassName, size = _a.size, defaultMatchMediaValue = _a.defaultMatchMediaValue, children = _a.children, selectedId = _a.selectedId, scrollable = _a.scrollable, collapsedTabsIds = _a.collapsedTabsIds, _b = _a.fullWidthScroll, fullWidthScroll = _b === void 0 ? false : _b, _c = _a.keepMounted, keepMounted = _c === void 0 ? false : _c, dataTestId = _a.dataTestId, onChange = _a.onChange, _d = _a.breakpoint, breakpoint = _d === void 0 ? 1024 : _d, tagShape = _a.tagShape, tagView = _a.tagView, textStyle = _a.textStyle;
|
|
5
5
|
var tabsArray = React.Children.toArray(children);
|
|
6
6
|
var titles = tabsArray.map(function (_a) {
|
|
7
7
|
var _b = _a.props, title = _b.title, id = _b.id, rightAddons = _b.rightAddons, disabled = _b.disabled, hidden = _b.hidden, toggleClassName = _b.toggleClassName, toggleTestId = _b.dataTestId, toggleRef = _b.toggleRef;
|
|
@@ -18,7 +18,7 @@ var Tabs = function (_a) {
|
|
|
18
18
|
});
|
|
19
19
|
var tabs = tabsArray.filter(function (tab) { return tab.props.id === selectedId || tab.props.keepMounted || keepMounted; });
|
|
20
20
|
return (React.createElement("div", { className: className },
|
|
21
|
-
React.createElement(TabList, { containerClassName: containerClassName, size: size, titles: titles, selectedId: selectedId, scrollable: scrollable, collapsedTabsIds: collapsedTabsIds, onChange: onChange, dataTestId: dataTestId, defaultMatchMediaValue: defaultMatchMediaValue, fullWidthScroll: fullWidthScroll, breakpoint: breakpoint, tagShape: tagShape, tagView: tagView }),
|
|
21
|
+
React.createElement(TabList, { containerClassName: containerClassName, size: size, titles: titles, selectedId: selectedId, scrollable: scrollable, collapsedTabsIds: collapsedTabsIds, onChange: onChange, dataTestId: dataTestId, defaultMatchMediaValue: defaultMatchMediaValue, fullWidthScroll: fullWidthScroll, breakpoint: breakpoint, tagShape: tagShape, tagView: tagView, textStyle: textStyle }),
|
|
22
22
|
tabs.map(function (tab) { return cloneElement(tab, { hidden: tab.props.id !== selectedId }); })));
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -3,26 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
|
|
4
4
|
import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
|
|
5
5
|
import { Tabs } from './Component.js';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../primary-tablist/Component.js';
|
|
8
|
-
import '@juggle/resize-observer';
|
|
9
|
-
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
10
|
-
import '@alfalab/core-components-shared/esm';
|
|
11
|
-
import '../../hooks/use-tabs.js';
|
|
12
|
-
import 'react-merge-refs';
|
|
13
|
-
import '../scrollable-container/Component.js';
|
|
14
|
-
import 'compute-scroll-into-view';
|
|
15
|
-
import '../scroll-controls/Component.js';
|
|
16
|
-
import 'lodash.debounce';
|
|
17
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
18
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
-
import '../scroll-controls/utils.js';
|
|
21
|
-
import '../title/Component.js';
|
|
22
|
-
import '../../index.module-1e961bec.js';
|
|
23
|
-
import '@alfalab/core-components-tag/esm/mobile';
|
|
24
|
-
import '../secondary-tablist/Component.js';
|
|
25
|
-
import '../../index.module-b07a0a20.js';
|
|
26
6
|
|
|
27
7
|
var views = {
|
|
28
8
|
primary: PrimaryTabListMobile,
|
|
@@ -3,32 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { PrimaryTabListResponsive } from '../primary-tablist/Component.responsive.js';
|
|
4
4
|
import { SecondaryTabListResponsive } from '../secondary-tablist/Component.responsive.js';
|
|
5
5
|
import { Tabs } from './Component.js';
|
|
6
|
-
import '@alfalab/core-components-mq/esm';
|
|
7
|
-
import '../primary-tablist/Component.desktop.js';
|
|
8
|
-
import '../primary-tablist/Component.js';
|
|
9
|
-
import '@juggle/resize-observer';
|
|
10
|
-
import 'classnames';
|
|
11
|
-
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
12
|
-
import '@alfalab/core-components-shared/esm';
|
|
13
|
-
import '../../hooks/use-tabs.js';
|
|
14
|
-
import 'react-merge-refs';
|
|
15
|
-
import '../scrollable-container/Component.js';
|
|
16
|
-
import 'compute-scroll-into-view';
|
|
17
|
-
import '../scroll-controls/Component.js';
|
|
18
|
-
import 'lodash.debounce';
|
|
19
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
20
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
21
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
22
|
-
import '../scroll-controls/utils.js';
|
|
23
|
-
import '../title/Component.js';
|
|
24
|
-
import '../../index.module-1e961bec.js';
|
|
25
|
-
import '../primary-tablist/Component.mobile.js';
|
|
26
|
-
import '../secondary-tablist/Component.desktop.js';
|
|
27
|
-
import '@alfalab/core-components-tag/esm/desktop';
|
|
28
|
-
import '../secondary-tablist/Component.js';
|
|
29
|
-
import '../../index.module-b07a0a20.js';
|
|
30
|
-
import '../secondary-tablist/Component.mobile.js';
|
|
31
|
-
import '@alfalab/core-components-tag/esm/mobile';
|
|
32
6
|
|
|
33
7
|
var views = {
|
|
34
8
|
primary: PrimaryTabListResponsive,
|
package/esm/desktop/index.js
CHANGED
|
@@ -2,26 +2,3 @@ export { PrimaryTabListDesktop } from '../components/primary-tablist/Component.d
|
|
|
2
2
|
export { SecondaryTabListDesktop } from '../components/secondary-tablist/Component.desktop.js';
|
|
3
3
|
export { Tab } from '../components/tab/Component.js';
|
|
4
4
|
export { TabsDesktop } from '../components/tabs/Component.desktop.js';
|
|
5
|
-
import 'tslib';
|
|
6
|
-
import 'react';
|
|
7
|
-
import '../components/primary-tablist/Component.js';
|
|
8
|
-
import '@juggle/resize-observer';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
11
|
-
import '@alfalab/core-components-shared/esm';
|
|
12
|
-
import '../hooks/use-tabs.js';
|
|
13
|
-
import 'react-merge-refs';
|
|
14
|
-
import '../components/scrollable-container/Component.js';
|
|
15
|
-
import 'compute-scroll-into-view';
|
|
16
|
-
import '../components/scroll-controls/Component.js';
|
|
17
|
-
import 'lodash.debounce';
|
|
18
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
19
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
20
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
21
|
-
import '../components/scroll-controls/utils.js';
|
|
22
|
-
import '../components/title/Component.js';
|
|
23
|
-
import '../index.module-1e961bec.js';
|
|
24
|
-
import '@alfalab/core-components-tag/esm/desktop';
|
|
25
|
-
import '../components/secondary-tablist/Component.js';
|
|
26
|
-
import '../index.module-b07a0a20.js';
|
|
27
|
-
import '../components/tabs/Component.js';
|