@alfalab/core-components-tabs 8.2.0 → 8.3.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 +1 -1
- package/components/primary-tablist/Component.collapsible.js +1 -1
- package/components/primary-tablist/Component.desktop.js +1 -1
- package/components/primary-tablist/Component.mobile.js +2 -2
- package/components/primary-tablist/Component.responsive.js +1 -1
- package/components/primary-tablist/index.css +34 -34
- package/components/primary-tablist/mobile.css +964 -310
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +16 -16
- package/components/scrollable-container/Component.js +2 -3
- package/components/scrollable-container/index.css +6 -6
- 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 +940 -286
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.collapsible.js +1 -1
- 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/components/primary-tablist/index.module.css +4 -4
- package/cssm/components/scroll-controls/index.module.css +2 -2
- package/cssm/components/scrollable-container/Component.js +1 -2
- package/desktop/index.js +2 -2
- package/esm/collapsible/index.js +1 -1
- package/esm/components/primary-tablist/Component.collapsible.js +1 -1
- package/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +2 -2
- package/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/esm/components/primary-tablist/index.css +34 -34
- package/esm/components/primary-tablist/mobile.css +964 -310
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +16 -16
- package/esm/components/scrollable-container/Component.js +3 -3
- package/esm/components/scrollable-container/index.css +6 -6
- 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 +940 -286
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.collapsible.js +1 -1
- 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/index.js +2 -2
- package/esm/index.js +2 -2
- package/esm/index.module-6877cc9d.js +4 -0
- package/esm/index.module-bb578a0d.js +4 -0
- package/esm/mobile/index.js +2 -2
- package/index.js +2 -2
- package/index.module-61355c41.js +6 -0
- package/index.module-e683c305.js +6 -0
- package/mobile/index.js +2 -2
- package/modern/collapsible/index.js +1 -1
- package/modern/components/primary-tablist/Component.collapsible.js +1 -1
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +34 -34
- package/modern/components/primary-tablist/mobile.css +964 -310
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +16 -16
- package/modern/components/scrollable-container/Component.js +3 -3
- package/modern/components/scrollable-container/index.css +6 -6
- 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 +940 -286
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.collapsible.js +1 -1
- 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/index.js +2 -2
- package/modern/index.js +2 -2
- package/modern/index.module-51db8b90.js +4 -0
- package/modern/index.module-b17f766a.js +4 -0
- package/modern/mobile/index.js +2 -2
- package/package.json +7 -7
- package/src/components/scrollable-container/Component.tsx +2 -2
- package/esm/index.module-0eaed9a1.js +0 -4
- package/esm/index.module-9c24fafb.js +0 -4
- package/index.module-177df2c1.js +0 -6
- package/index.module-2f940b9f.js +0 -6
- package/modern/index.module-4070c7f9.js +0 -4
- package/modern/index.module-a791a93d.js +0 -4
|
@@ -6,7 +6,7 @@ import { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
6
6
|
import { ChevronRightMIcon } from '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
7
7
|
import { getDisabledState, scrollIntoFirstTab, scrollIntoLastTab } from './utils.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"tabs__component_uxwhu","borderVisible":"tabs__borderVisible_uxwhu","primary":"tabs__primary_uxwhu","button":"tabs__button_uxwhu","xl":"tabs__xl_uxwhu","secondary":"tabs__secondary_uxwhu","xs":"tabs__xs_uxwhu"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp }, ref) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mfvn */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-border-primary: #
|
|
5
|
-
--color-light-specialbg-tertiary-transparent: rgba(
|
|
4
|
+
--color-light-border-primary: #d5d6dc;
|
|
5
|
+
--color-light-specialbg-tertiary-transparent: rgba(30, 43, 68, 0.08); /* 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 */
|
|
6
6
|
} :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 */
|
|
7
7
|
} :root {
|
|
8
8
|
} :root {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
/* size l */
|
|
45
45
|
|
|
46
46
|
/* size xl */
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__component_uxwhu {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: flex;
|
|
50
50
|
flex-shrink: 0
|
|
51
|
-
} .
|
|
51
|
+
} .tabs__component_uxwhu:before {
|
|
52
52
|
content: '';
|
|
53
53
|
display: block;
|
|
54
54
|
position: absolute;
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
width: 1px;
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
transition: background-color 0.3s ease;
|
|
60
|
-
} .
|
|
60
|
+
} .tabs__borderVisible_uxwhu:before {
|
|
61
61
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
62
|
-
} .
|
|
62
|
+
} .tabs__primary_uxwhu {
|
|
63
63
|
align-items: flex-start;
|
|
64
64
|
justify-content: flex-end
|
|
65
|
-
} .
|
|
65
|
+
} .tabs__primary_uxwhu:after {
|
|
66
66
|
content: '';
|
|
67
67
|
display: block;
|
|
68
68
|
position: absolute;
|
|
@@ -70,25 +70,25 @@
|
|
|
70
70
|
height: 1px;
|
|
71
71
|
width: 100%;
|
|
72
72
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
73
|
-
} .
|
|
73
|
+
} .tabs__primary_uxwhu:before {
|
|
74
74
|
bottom: 2px;
|
|
75
|
-
} .
|
|
75
|
+
} .tabs__primary_uxwhu {
|
|
76
76
|
|
|
77
|
-
.
|
|
77
|
+
.tabs__button_uxwhu:first-child {
|
|
78
78
|
padding-left: var(--gap-xs);
|
|
79
79
|
margin-right: var(--gap-xs);
|
|
80
80
|
}
|
|
81
|
-
} .
|
|
81
|
+
} .tabs__primary_uxwhu.tabs__xl_uxwhu .tabs__button_uxwhu:first-child {
|
|
82
82
|
margin-right: var(--gap-2xs);
|
|
83
|
-
} .
|
|
83
|
+
} .tabs__secondary_uxwhu {
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__secondary_uxwhu:before {
|
|
87
87
|
bottom: 0;
|
|
88
|
-
} .
|
|
88
|
+
} .tabs__secondary_uxwhu.tabs__xs_uxwhu {
|
|
89
89
|
width: 76px;
|
|
90
90
|
|
|
91
|
-
.
|
|
91
|
+
.tabs__button_uxwhu:first-child {
|
|
92
92
|
margin-right: var(--gap-2xs);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import
|
|
3
|
+
import { compute } from 'compute-scroll-into-view';
|
|
4
4
|
import { ScrollControls } from '../scroll-controls/Component.js';
|
|
5
5
|
import 'lodash.debounce';
|
|
6
6
|
import '@alfalab/core-components-icon-button/modern';
|
|
@@ -8,7 +8,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
8
8
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
9
9
|
import '../scroll-controls/utils.js';
|
|
10
10
|
|
|
11
|
-
const styles = {"scrollableContainerWrapper":"
|
|
11
|
+
const styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_11hp7","container":"tabs__container_11hp7","fullWidthScroll":"tabs__fullWidthScroll_11hp7"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -25,7 +25,7 @@ const ScrollableContainer = ({ containerWrapperClassName, containerClassName, ch
|
|
|
25
25
|
const [overflown, setOverflown] = useState(false);
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
if (activeChild) {
|
|
28
|
-
const actions =
|
|
28
|
+
const actions = compute(activeChild, {
|
|
29
29
|
scrollMode: 'if-needed',
|
|
30
30
|
block: 'nearest',
|
|
31
31
|
inline: 'nearest',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1e69r */
|
|
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_11hp7 {
|
|
46
46
|
display: flex;
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__container_11hp7 {
|
|
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_11hp7::-webkit-scrollbar {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .tabs__container_11hp7 > * {
|
|
61
61
|
flex-shrink: 0;
|
|
62
|
-
} .
|
|
62
|
+
} .tabs__fullWidthScroll_11hp7 {
|
|
63
63
|
padding-left: 0;
|
|
64
64
|
margin: var(--gap-2xs-neg) var(--gap-m-neg);
|
|
65
65
|
}
|
|
@@ -1,7 +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-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-51db8b90.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../../hooks/use-tabs.js';
|
|
7
7
|
import '@alfalab/core-components-shared/modern';
|
|
@@ -2,7 +2,7 @@ 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-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-51db8b90.js';
|
|
6
6
|
import '../../hooks/use-tabs.js';
|
|
7
7
|
import '@alfalab/core-components-shared/modern';
|
|
8
8
|
import '../scrollable-container/Component.js';
|
|
@@ -14,7 +14,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
14
14
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
15
15
|
import '../scroll-controls/utils.js';
|
|
16
16
|
|
|
17
|
-
const mobileStyles = {"title":"
|
|
17
|
+
const mobileStyles = {"title":"tabs__title_io4r3 tabs__title_16s85","mobile":"tabs__mobile_io4r3"};
|
|
18
18
|
require('./mobile.css')
|
|
19
19
|
|
|
20
20
|
const styles = {
|
|
@@ -15,7 +15,7 @@ import '@alfalab/core-components-icon-button/modern';
|
|
|
15
15
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
17
17
|
import '../scroll-controls/utils.js';
|
|
18
|
-
import '../../index.module-
|
|
18
|
+
import '../../index.module-51db8b90.js';
|
|
19
19
|
import '@alfalab/core-components-tag/modern/mobile';
|
|
20
20
|
|
|
21
21
|
const SecondaryTabListResponsive = ({ defaultMatchMediaValue, fullWidthScroll, breakpoint = 1024, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2egrc */
|
|
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_16s85 {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
} .
|
|
56
|
+
} .tabs__fullWidthScroll_16s85 {
|
|
57
57
|
margin: 0 var(--gap-m);
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_16s85 {
|
|
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_16s85 {
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
} /* sizes */ .
|
|
66
|
+
} /* sizes */ .tabs__xxs_16s85 .tabs__title_16s85 + .tabs__title_16s85 {
|
|
67
67
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
68
|
-
} .
|
|
68
|
+
} .tabs__xs_16s85 .tabs__title_16s85 + .tabs__title_16s85 {
|
|
69
69
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
70
|
-
} .
|
|
70
|
+
} .tabs__s_16s85 .tabs__title_16s85 + .tabs__title_16s85 {
|
|
71
71
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
72
|
-
} .
|
|
72
|
+
} .tabs__m_16s85 .tabs__title_16s85 + .tabs__title_16s85 {
|
|
73
73
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
|
-
} .
|
|
74
|
+
} .tabs__l_16s85 .tabs__title_16s85 + .tabs__title_16s85 {
|
|
75
75
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
76
|
-
} .
|
|
76
|
+
} .tabs__xl_16s85 .tabs__title_16s85 + .tabs__title_16s85 {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|