@alfalab/core-components-tabs 8.5.1 → 8.6.0
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 -18
- package/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/components/primary-tablist/Component.collapsible.js +9 -14
- package/components/primary-tablist/Component.d.ts +1 -1
- package/components/primary-tablist/Component.desktop.js +1 -15
- package/components/primary-tablist/Component.js +5 -11
- package/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/components/primary-tablist/Component.mobile.js +3 -21
- package/components/primary-tablist/Component.responsive.js +0 -16
- 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 -12
- package/components/secondary-tablist/Component.js +0 -8
- package/components/secondary-tablist/Component.mobile.js +2 -12
- package/components/secondary-tablist/Component.responsive.js +0 -15
- 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 -14
- package/components/tabs/Component.d.ts +1 -1
- package/components/tabs/Component.desktop.js +0 -19
- package/components/tabs/Component.js +4 -3
- package/components/tabs/Component.mobile.js +0 -19
- package/components/tabs/Component.responsive.js +0 -25
- package/components/title/index.js +0 -3
- package/cssm/collapsible/index.js +0 -19
- package/cssm/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.collapsible.js +8 -13
- package/cssm/components/primary-tablist/Component.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.desktop.js +0 -16
- package/cssm/components/primary-tablist/Component.js +5 -13
- package/cssm/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.mobile.js +1 -21
- package/cssm/components/primary-tablist/Component.responsive.js +0 -19
- 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 -13
- package/cssm/components/secondary-tablist/Component.js +0 -10
- package/cssm/components/secondary-tablist/Component.mobile.js +0 -12
- package/cssm/components/secondary-tablist/Component.responsive.js +0 -18
- package/cssm/components/tab/index.js +0 -3
- package/cssm/components/tabs/Component.collapsible.js +0 -14
- package/cssm/components/tabs/Component.d.ts +1 -1
- package/cssm/components/tabs/Component.desktop.js +0 -21
- package/cssm/components/tabs/Component.js +4 -3
- package/cssm/components/tabs/Component.mobile.js +0 -23
- package/cssm/components/tabs/Component.responsive.js +0 -29
- package/cssm/components/title/index.js +0 -3
- package/cssm/desktop/index.js +0 -25
- package/cssm/hooks/use-tablist-titles.d.ts +2 -1
- package/cssm/hooks/use-tablist-titles.js +0 -3
- package/cssm/hooks/use-tabs.d.ts +2 -1
- package/cssm/hooks/use-tabs.js +17 -6
- package/cssm/index.js +0 -33
- package/cssm/mobile/index.js +0 -27
- package/cssm/shared/index.js +0 -15
- package/cssm/typings.d.ts +11 -2
- package/desktop/index.js +0 -22
- package/esm/collapsible/index.js +0 -18
- package/esm/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/esm/components/primary-tablist/Component.collapsible.js +10 -15
- package/esm/components/primary-tablist/Component.d.ts +1 -1
- package/esm/components/primary-tablist/Component.desktop.js +1 -15
- package/esm/components/primary-tablist/Component.js +5 -11
- package/esm/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +4 -21
- package/esm/components/primary-tablist/Component.responsive.js +0 -16
- 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 -12
- package/esm/components/secondary-tablist/Component.js +0 -8
- package/esm/components/secondary-tablist/Component.mobile.js +2 -12
- package/esm/components/secondary-tablist/Component.responsive.js +0 -15
- 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 -14
- package/esm/components/tabs/Component.d.ts +1 -1
- package/esm/components/tabs/Component.desktop.js +0 -19
- package/esm/components/tabs/Component.js +4 -3
- package/esm/components/tabs/Component.mobile.js +0 -19
- package/esm/components/tabs/Component.responsive.js +0 -25
- package/esm/components/title/index.js +0 -3
- package/esm/desktop/index.js +0 -22
- package/esm/hooks/use-tablist-titles.d.ts +2 -1
- package/esm/hooks/use-tablist-titles.js +0 -3
- package/esm/hooks/use-tabs.d.ts +2 -1
- package/esm/hooks/use-tabs.js +13 -6
- package/esm/index.js +0 -28
- package/esm/index.module-09631eda.js +4 -0
- package/esm/index.module-b24b51c6.js +4 -0
- package/esm/mobile/index.js +0 -22
- package/esm/shared/index.js +0 -13
- package/esm/typings.d.ts +11 -2
- package/hooks/use-tablist-titles.d.ts +2 -1
- package/hooks/use-tablist-titles.js +0 -3
- package/hooks/use-tabs.d.ts +2 -1
- package/hooks/use-tabs.js +17 -6
- package/index.js +0 -28
- package/index.module-8583a636.js +6 -0
- package/index.module-fe7d33d0.js +6 -0
- package/mobile/index.js +0 -22
- package/modern/collapsible/index.js +0 -17
- package/modern/components/primary-tablist/Component.collapsible.d.ts +1 -1
- package/modern/components/primary-tablist/Component.collapsible.js +8 -14
- package/modern/components/primary-tablist/Component.d.ts +1 -1
- package/modern/components/primary-tablist/Component.desktop.js +1 -15
- package/modern/components/primary-tablist/Component.js +5 -11
- package/modern/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +3 -17
- package/modern/components/primary-tablist/Component.responsive.js +0 -16
- 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 -12
- package/modern/components/secondary-tablist/Component.js +0 -8
- package/modern/components/secondary-tablist/Component.mobile.js +2 -12
- package/modern/components/secondary-tablist/Component.responsive.js +0 -15
- 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 -14
- package/modern/components/tabs/Component.d.ts +1 -1
- package/modern/components/tabs/Component.desktop.js +0 -19
- package/modern/components/tabs/Component.js +4 -3
- package/modern/components/tabs/Component.mobile.js +0 -19
- package/modern/components/tabs/Component.responsive.js +0 -25
- package/modern/components/title/index.js +0 -2
- package/modern/desktop/index.js +0 -21
- package/modern/hooks/use-tablist-titles.d.ts +2 -1
- package/modern/hooks/use-tablist-titles.js +0 -3
- package/modern/hooks/use-tabs.d.ts +2 -1
- package/modern/hooks/use-tabs.js +13 -6
- package/modern/index.js +0 -27
- package/modern/index.module-819ff0ab.js +4 -0
- package/modern/index.module-ee14bf5a.js +4 -0
- package/modern/mobile/index.js +0 -21
- package/modern/shared/index.js +0 -12
- package/modern/typings.d.ts +11 -2
- package/package.json +5 -5
- package/shared/index.js +0 -13
- package/src/components/primary-tablist/Component.collapsible.tsx +34 -15
- package/src/components/primary-tablist/Component.mobile.tsx +2 -8
- package/src/components/primary-tablist/Component.tsx +11 -4
- 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 +4 -0
- package/src/hooks/use-tabs.tsx +23 -6
- package/src/typings.ts +32 -1
- package/typings.d.ts +11 -2
- package/esm/index.module-aa0c1143.js +0 -4
- package/esm/index.module-d07623e2.js +0 -4
- package/index.module-abadb192.js +0 -6
- package/index.module-b293cf9b.js +0 -6
- package/modern/index.module-50acb6fd.js +0 -4
- package/modern/index.module-b97c5648.js +0 -4
|
@@ -2,14 +2,14 @@ import React, { forwardRef, useState, useEffect } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import _debounce from 'lodash.debounce';
|
|
4
4
|
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ChevronLeftCompactSIcon } from '@alfalab/icons-glyph/ChevronLeftCompactSIcon';
|
|
6
|
+
import { ChevronRightCompactSIcon } from '@alfalab/icons-glyph/ChevronRightCompactSIcon';
|
|
7
7
|
import { getDisabledState, scrollIntoFirstTab, scrollIntoLastTab } from './utils.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"tabs__component_xjfvq","primary":"tabs__primary_xjfvq","button":"tabs__button_xjfvq","xl":"tabs__xl_xjfvq","secondary":"tabs__secondary_xjfvq","xs":"tabs__xs_xjfvq","borderVisible":"tabs__borderVisible_xjfvq"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
|
-
const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp }, ref) => {
|
|
12
|
+
const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp, className }, ref) => {
|
|
13
13
|
const container = containerRef.current;
|
|
14
14
|
const [disabledState, updateDisabledState] = useState(() => getDisabledState(container));
|
|
15
15
|
useEffect(() => {
|
|
@@ -30,11 +30,11 @@ const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp }, ref)
|
|
|
30
30
|
size: getSize(),
|
|
31
31
|
view: 'secondary',
|
|
32
32
|
};
|
|
33
|
-
return (React.createElement("div", { ref: ref, className: cn(styles.component, styles[view], sizeProp && styles[sizeProp], {
|
|
33
|
+
return (React.createElement("div", { ref: ref, className: cn(styles.component, styles[view], sizeProp && styles[sizeProp], className, {
|
|
34
34
|
[styles.borderVisible]: !disabledState.toRight,
|
|
35
35
|
}) },
|
|
36
|
-
React.createElement(IconButton, { ...commonButtonProps, icon:
|
|
37
|
-
React.createElement(IconButton, { ...commonButtonProps, icon:
|
|
36
|
+
React.createElement(IconButton, { ...commonButtonProps, icon: ChevronLeftCompactSIcon, disabled: disabledState.toLeft, onClick: handleScrollLeft }),
|
|
37
|
+
React.createElement(IconButton, { ...commonButtonProps, icon: ChevronRightCompactSIcon, disabled: disabledState.toRight, onClick: handleScrollRight })));
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
export { ScrollControls };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: vymy7 */
|
|
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_xjfvq {
|
|
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_1f033:before {
|
|
61
|
-
background-color: var(--color-light-neutral-translucent-300);
|
|
62
|
-
} .tabs__primary_1f033 {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
} .tabs__primary_xjfvq {
|
|
63
52
|
align-items: flex-start;
|
|
64
53
|
justify-content: flex-end
|
|
65
|
-
} .
|
|
54
|
+
} .tabs__primary_xjfvq: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_1f033 {
|
|
62
|
+
} .tabs__primary_xjfvq {
|
|
76
63
|
|
|
77
|
-
.
|
|
64
|
+
.tabs__button_xjfvq:first-child {
|
|
78
65
|
padding-left: var(--gap-xs);
|
|
79
66
|
margin-right: var(--gap-xs);
|
|
80
67
|
}
|
|
81
|
-
} .
|
|
68
|
+
} .tabs__primary_xjfvq.tabs__xl_xjfvq .tabs__button_xjfvq:first-child {
|
|
82
69
|
margin-right: var(--gap-2xs);
|
|
83
|
-
} .
|
|
70
|
+
} .tabs__secondary_xjfvq {
|
|
84
71
|
align-items: center;
|
|
85
72
|
justify-content: center
|
|
86
|
-
} .
|
|
73
|
+
} .tabs__secondary_xjfvq: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_xjfvq.tabs__xs_xjfvq {
|
|
89
84
|
width: 76px;
|
|
90
85
|
|
|
91
|
-
.
|
|
86
|
+
.tabs__button_xjfvq:first-child {
|
|
92
87
|
margin-right: var(--gap-2xs);
|
|
93
88
|
}
|
|
94
|
-
}
|
|
89
|
+
} .tabs__borderVisible_xjfvq:before {
|
|
90
|
+
background-color: var(--color-light-neutral-translucent-300);
|
|
91
|
+
}
|
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export { ScrollControls } from './Component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import 'lodash.debounce';
|
|
5
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
6
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
7
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
8
|
-
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,13 +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 'lodash.debounce';
|
|
6
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
7
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
8
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
9
|
-
import '../scroll-controls/utils.js';
|
|
10
5
|
|
|
11
|
-
const styles = {"scrollableContainerWrapper":"
|
|
6
|
+
const styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_1m8nm","container":"tabs__container_1m8nm","fullWidthScroll":"tabs__fullWidthScroll_1m8nm"};
|
|
12
7
|
require('./index.css')
|
|
13
8
|
|
|
14
9
|
/**
|
|
@@ -19,7 +14,7 @@ const isOverflown = ({ clientWidth, scrollWidth }, controlsNode) => {
|
|
|
19
14
|
const controlsWidth = controlsNode?.offsetWidth || 0;
|
|
20
15
|
return scrollWidth > clientWidth + controlsWidth;
|
|
21
16
|
};
|
|
22
|
-
const ScrollableContainer = ({ containerWrapperClassName, containerClassName, children, activeChild, fullWidthScroll, view, size, platform, }) => {
|
|
17
|
+
const ScrollableContainer = ({ containerWrapperClassName, containerClassName, scrollControlsClassName, children, activeChild, fullWidthScroll, view, size, platform, }) => {
|
|
23
18
|
const containerRef = useRef(null);
|
|
24
19
|
const controlsRef = useRef(null);
|
|
25
20
|
const [overflown, setOverflown] = useState(false);
|
|
@@ -64,7 +59,7 @@ const ScrollableContainer = ({ containerWrapperClassName, containerClassName, ch
|
|
|
64
59
|
React.createElement("div", { ref: containerRef, className: cn(styles.container, containerClassName, {
|
|
65
60
|
[styles.fullWidthScroll]: fullWidthScroll,
|
|
66
61
|
}) }, children),
|
|
67
|
-
overflown && platform === 'desktop' ? (React.createElement(ScrollControls, { ref: controlsRef, containerRef: containerRef, view: view, size: size })) : null));
|
|
62
|
+
overflown && platform === 'desktop' ? (React.createElement(ScrollControls, { className: scrollControlsClassName, ref: controlsRef, containerRef: containerRef, view: view, size: size })) : null));
|
|
68
63
|
};
|
|
69
64
|
|
|
70
65
|
export { ScrollableContainer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: np12i */
|
|
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_1m8nm {
|
|
46
46
|
display: flex;
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__container_1m8nm {
|
|
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_1m8nm::-webkit-scrollbar {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .tabs__container_1m8nm > * {
|
|
61
61
|
flex-shrink: 0;
|
|
62
|
-
} .
|
|
62
|
+
} .tabs__fullWidthScroll_1m8nm {
|
|
63
63
|
padding-left: 0;
|
|
64
64
|
margin: var(--gap-2xs-neg) var(--gap-m-neg);
|
|
65
65
|
}
|
|
@@ -1,10 +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 'lodash.debounce';
|
|
7
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
8
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
9
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
10
|
-
import '../scroll-controls/utils.js';
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TagDesktop } from '@alfalab/core-components-tag/modern/desktop';
|
|
3
3
|
import { SecondaryTabList } from './Component.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '../../hooks/use-tabs.js';
|
|
7
|
-
import '@alfalab/core-components-shared/modern';
|
|
8
|
-
import '../scrollable-container/Component.js';
|
|
9
|
-
import 'compute-scroll-into-view';
|
|
10
|
-
import '../scroll-controls/Component.js';
|
|
11
|
-
import 'lodash.debounce';
|
|
12
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
13
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
14
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
15
|
-
import '../scroll-controls/utils.js';
|
|
4
|
+
import { c as commonStyles } from '../../index.module-819ff0ab.js';
|
|
16
5
|
|
|
17
6
|
const SecondaryTabListDesktop = ({ size = 's', ...restProps }) => (React.createElement(SecondaryTabList, { ...restProps, TagComponent: TagDesktop, size: size, styles: commonStyles, tagSize: size, platform: 'desktop' }));
|
|
18
7
|
|
|
@@ -2,14 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { useTabs } from '../../hooks/use-tabs.js';
|
|
4
4
|
import { ScrollableContainer } from '../scrollable-container/Component.js';
|
|
5
|
-
import '@alfalab/core-components-shared/modern';
|
|
6
|
-
import 'compute-scroll-into-view';
|
|
7
|
-
import '../scroll-controls/Component.js';
|
|
8
|
-
import 'lodash.debounce';
|
|
9
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
10
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
11
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
12
|
-
import '../scroll-controls/utils.js';
|
|
13
5
|
|
|
14
6
|
const SecondaryTabList = ({ styles = {}, className, containerClassName, size, titles = [], selectedId = titles.length ? titles[0].id : undefined, scrollable = true, fullWidthScroll, tagSize = 'xs', onChange, dataTestId, TagComponent, platform, tagShape, tagView, }) => {
|
|
15
7
|
const { focusedTab, selectedTab, getTabListItemProps } = useTabs({
|
|
@@ -2,19 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TagMobile } from '@alfalab/core-components-tag/modern/mobile';
|
|
4
4
|
import { SecondaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
6
|
-
import '../../hooks/use-tabs.js';
|
|
7
|
-
import '@alfalab/core-components-shared/modern';
|
|
8
|
-
import '../scrollable-container/Component.js';
|
|
9
|
-
import 'compute-scroll-into-view';
|
|
10
|
-
import '../scroll-controls/Component.js';
|
|
11
|
-
import 'lodash.debounce';
|
|
12
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
13
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
14
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
15
|
-
import '../scroll-controls/utils.js';
|
|
5
|
+
import { c as commonStyles } from '../../index.module-819ff0ab.js';
|
|
16
6
|
|
|
17
|
-
const mobileStyles = {"title":"
|
|
7
|
+
const mobileStyles = {"title":"tabs__title_29e75 tabs__title_12vn9","mobile":"tabs__mobile_29e75"};
|
|
18
8
|
require('./mobile.css')
|
|
19
9
|
|
|
20
10
|
const styles = {
|
|
@@ -2,21 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { useMatchMedia } from '@alfalab/core-components-mq/modern';
|
|
3
3
|
import { SecondaryTabListDesktop } from './Component.desktop.js';
|
|
4
4
|
import { SecondaryTabListMobile } from './Component.mobile.js';
|
|
5
|
-
import '@alfalab/core-components-tag/modern/desktop';
|
|
6
|
-
import './Component.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '../../hooks/use-tabs.js';
|
|
9
|
-
import '@alfalab/core-components-shared/modern';
|
|
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/modern';
|
|
15
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
16
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
17
|
-
import '../scroll-controls/utils.js';
|
|
18
|
-
import '../../index.module-50acb6fd.js';
|
|
19
|
-
import '@alfalab/core-components-tag/modern/mobile';
|
|
20
5
|
|
|
21
6
|
const SecondaryTabListResponsive = ({ defaultMatchMediaValue, fullWidthScroll, breakpoint = 1024, ...restProps }) => {
|
|
22
7
|
const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: svpgf */
|
|
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_12vn9 {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
} .
|
|
56
|
+
} .tabs__fullWidthScroll_12vn9 {
|
|
57
57
|
margin: 0 var(--gap-m);
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_12vn9 {
|
|
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_12vn9 {
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
} /* sizes */ .
|
|
66
|
+
} /* sizes */ .tabs__xxs_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
67
67
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
68
|
-
} .
|
|
68
|
+
} .tabs__xs_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
69
69
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
70
|
-
} .
|
|
70
|
+
} .tabs__s_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
71
71
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
72
|
-
} .
|
|
72
|
+
} .tabs__m_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
73
73
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
|
-
} .
|
|
74
|
+
} .tabs__l_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
75
75
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
76
|
-
} .
|
|
76
|
+
} .tabs__xl_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hpvm */
|
|
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_12vn9 {
|
|
55
55
|
position: relative;
|
|
56
56
|
display: inline-flex;
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__fullWidthScroll_12vn9 {
|
|
58
58
|
margin: 0 var(--gap-m);
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__container_12vn9 {
|
|
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_12vn9 {
|
|
66
66
|
white-space: nowrap;
|
|
67
|
-
}/* sizes */.
|
|
67
|
+
}/* sizes */.tabs__xxs_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
68
68
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__xs_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
70
70
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__s_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
72
72
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
73
|
-
}.
|
|
73
|
+
}.tabs__m_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
74
74
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
75
|
-
}.
|
|
75
|
+
}.tabs__l_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
76
76
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
77
|
-
}.
|
|
77
|
+
}.tabs__xl_12vn9 .tabs__title_12vn9 + .tabs__title_12vn9 {
|
|
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_29e75 {
|
|
1641
|
+
} .tabs__mobile_29e75 .tabs__title_29e75 + .tabs__title_29e75 {
|
|
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
|
-
const styles = {"component":"
|
|
4
|
+
const styles = {"component":"tabs__component_x0mpu","hidden":"tabs__hidden_x0mpu"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tab = ({ children, hidden, className, disabled, dataTestId }) => children ? (React.createElement("div", { className: cn(styles.component, {
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollapsiblePrimaryTabList } from '../primary-tablist/Component.collapsible.js';
|
|
3
3
|
import { Tabs } from './Component.js';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-badge/modern';
|
|
6
|
-
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
7
|
-
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
8
|
-
import '../../hooks/use-tablist-titles.js';
|
|
9
|
-
import '@alfalab/core-components-mq/modern';
|
|
10
|
-
import '../../hooks/use-collapsible-elements.js';
|
|
11
|
-
import '@juggle/resize-observer';
|
|
12
|
-
import '@alfalab/hooks';
|
|
13
|
-
import '../../hooks/use-tabs.js';
|
|
14
|
-
import '@alfalab/core-components-shared/modern';
|
|
15
|
-
import '../../synthetic-events.js';
|
|
16
|
-
import '../title/Component.js';
|
|
17
|
-
import '../../index.module-b97c5648.js';
|
|
18
4
|
|
|
19
5
|
const TabsCollapsible = ({ ...restProps }) => (React.createElement(Tabs, { TabList: CollapsiblePrimaryTabList, ...restProps }));
|
|
20
6
|
|
|
@@ -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 };
|
|
@@ -2,25 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
|
|
3
3
|
import { SecondaryTabListDesktop } from '../secondary-tablist/Component.desktop.js';
|
|
4
4
|
import { Tabs } from './Component.js';
|
|
5
|
-
import '../primary-tablist/Component.js';
|
|
6
|
-
import '@juggle/resize-observer';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
9
|
-
import '@alfalab/core-components-shared/modern';
|
|
10
|
-
import '../../hooks/use-tabs.js';
|
|
11
|
-
import '../scrollable-container/Component.js';
|
|
12
|
-
import 'compute-scroll-into-view';
|
|
13
|
-
import '../scroll-controls/Component.js';
|
|
14
|
-
import 'lodash.debounce';
|
|
15
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
16
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
17
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
|
-
import '../scroll-controls/utils.js';
|
|
19
|
-
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-b97c5648.js';
|
|
21
|
-
import '@alfalab/core-components-tag/modern/desktop';
|
|
22
|
-
import '../secondary-tablist/Component.js';
|
|
23
|
-
import '../../index.module-50acb6fd.js';
|
|
24
5
|
|
|
25
6
|
const views = {
|
|
26
7
|
primary: PrimaryTabListDesktop,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { cloneElement } from 'react';
|
|
2
2
|
|
|
3
|
-
const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll = false, keepMounted = false, dataTestId, onChange, breakpoint = 1024, tagShape, tagView, }) => {
|
|
3
|
+
const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll = false, keepMounted = false, dataTestId, onChange, breakpoint = 1024, tagShape, tagView, textStyle, }) => {
|
|
4
4
|
const tabsArray = React.Children.toArray(children);
|
|
5
|
-
const titles = tabsArray.map(({ props: { title, id, rightAddons, disabled, hidden, toggleClassName, dataTestId: toggleTestId, }, }) => ({
|
|
5
|
+
const titles = tabsArray.map(({ props: { title, id, rightAddons, disabled, hidden, toggleClassName, dataTestId: toggleTestId, toggleRef, }, }) => ({
|
|
6
6
|
title,
|
|
7
7
|
id,
|
|
8
8
|
disabled,
|
|
@@ -10,10 +10,11 @@ const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaV
|
|
|
10
10
|
hidden,
|
|
11
11
|
toggleClassName,
|
|
12
12
|
dataTestId: toggleTestId,
|
|
13
|
+
toggleRef,
|
|
13
14
|
}));
|
|
14
15
|
const tabs = tabsArray.filter((tab) => tab.props.id === selectedId || tab.props.keepMounted || keepMounted);
|
|
15
16
|
return (React.createElement("div", { className: className },
|
|
16
|
-
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 }),
|
|
17
|
+
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 }),
|
|
17
18
|
tabs.map((tab) => cloneElement(tab, { hidden: tab.props.id !== selectedId }))));
|
|
18
19
|
};
|
|
19
20
|
|
|
@@ -2,25 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
|
|
3
3
|
import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
|
|
4
4
|
import { Tabs } from './Component.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '../primary-tablist/Component.js';
|
|
7
|
-
import '@juggle/resize-observer';
|
|
8
|
-
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
9
|
-
import '@alfalab/core-components-shared/modern';
|
|
10
|
-
import '../../hooks/use-tabs.js';
|
|
11
|
-
import '../scrollable-container/Component.js';
|
|
12
|
-
import 'compute-scroll-into-view';
|
|
13
|
-
import '../scroll-controls/Component.js';
|
|
14
|
-
import 'lodash.debounce';
|
|
15
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
16
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
17
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
|
-
import '../scroll-controls/utils.js';
|
|
19
|
-
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-b97c5648.js';
|
|
21
|
-
import '@alfalab/core-components-tag/modern/mobile';
|
|
22
|
-
import '../secondary-tablist/Component.js';
|
|
23
|
-
import '../../index.module-50acb6fd.js';
|
|
24
5
|
|
|
25
6
|
const views = {
|
|
26
7
|
primary: PrimaryTabListMobile,
|
|
@@ -2,31 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { PrimaryTabListResponsive } from '../primary-tablist/Component.responsive.js';
|
|
3
3
|
import { SecondaryTabListResponsive } from '../secondary-tablist/Component.responsive.js';
|
|
4
4
|
import { Tabs } from './Component.js';
|
|
5
|
-
import '@alfalab/core-components-mq/modern';
|
|
6
|
-
import '../primary-tablist/Component.desktop.js';
|
|
7
|
-
import '../primary-tablist/Component.js';
|
|
8
|
-
import '@juggle/resize-observer';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
11
|
-
import '@alfalab/core-components-shared/modern';
|
|
12
|
-
import '../../hooks/use-tabs.js';
|
|
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/modern';
|
|
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-b97c5648.js';
|
|
23
|
-
import '../primary-tablist/Component.mobile.js';
|
|
24
|
-
import '../secondary-tablist/Component.desktop.js';
|
|
25
|
-
import '@alfalab/core-components-tag/modern/desktop';
|
|
26
|
-
import '../secondary-tablist/Component.js';
|
|
27
|
-
import '../../index.module-50acb6fd.js';
|
|
28
|
-
import '../secondary-tablist/Component.mobile.js';
|
|
29
|
-
import '@alfalab/core-components-tag/modern/mobile';
|
|
30
5
|
|
|
31
6
|
const views = {
|
|
32
7
|
primary: PrimaryTabListResponsive,
|
package/modern/desktop/index.js
CHANGED
|
@@ -2,24 +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 'react';
|
|
6
|
-
import '../components/primary-tablist/Component.js';
|
|
7
|
-
import '@juggle/resize-observer';
|
|
8
|
-
import 'classnames';
|
|
9
|
-
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
10
|
-
import '@alfalab/core-components-shared/modern';
|
|
11
|
-
import '../hooks/use-tabs.js';
|
|
12
|
-
import '../components/scrollable-container/Component.js';
|
|
13
|
-
import 'compute-scroll-into-view';
|
|
14
|
-
import '../components/scroll-controls/Component.js';
|
|
15
|
-
import 'lodash.debounce';
|
|
16
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
17
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../components/scroll-controls/utils.js';
|
|
20
|
-
import '../components/title/Component.js';
|
|
21
|
-
import '../index.module-b97c5648.js';
|
|
22
|
-
import '@alfalab/core-components-tag/modern/desktop';
|
|
23
|
-
import '../components/secondary-tablist/Component.js';
|
|
24
|
-
import '../index.module-50acb6fd.js';
|
|
25
|
-
import '../components/tabs/Component.js';
|