@alfalab/core-components-tabs 8.3.3 → 8.4.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 +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 +43 -39
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +18 -18
- package/components/scrollable-container/Component.js +1 -1
- 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 +19 -15
- 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 +4 -4
- 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 +43 -39
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +18 -18
- package/esm/components/scrollable-container/Component.js +1 -1
- 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 +19 -15
- 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-0a75418b.js +4 -0
- package/esm/index.module-8df2f26a.js +4 -0
- package/esm/mobile/index.js +2 -2
- package/index.js +2 -2
- package/index.module-031086a6.js +6 -0
- package/index.module-f7bbfca9.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 +43 -39
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +18 -18
- package/modern/components/scrollable-container/Component.js +1 -1
- 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 +19 -15
- 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-8f42452f.js +4 -0
- package/modern/index.module-d13de803.js +4 -0
- package/modern/mobile/index.js +2 -2
- package/package.json +5 -5
- package/src/components/scroll-controls/index.module.css +1 -1
- package/src/vars.css +2 -2
- package/esm/index.module-4151daf2.js +0 -4
- package/esm/index.module-525943f3.js +0 -4
- package/index.module-0382cb1b.js +0 -6
- package/index.module-6325dd03.js +0 -6
- package/modern/index.module-86f8baa2.js +0 -4
- package/modern/index.module-efbe6ab6.js +0 -4
package/esm/desktop/index.js
CHANGED
|
@@ -19,8 +19,8 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
20
|
import '../components/scroll-controls/utils.js';
|
|
21
21
|
import '../components/title/Component.js';
|
|
22
|
-
import '../index.module-
|
|
22
|
+
import '../index.module-0a75418b.js';
|
|
23
23
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
24
24
|
import '../components/secondary-tablist/Component.js';
|
|
25
|
-
import '../index.module-
|
|
25
|
+
import '../index.module-8df2f26a.js';
|
|
26
26
|
import '../components/tabs/Component.js';
|
package/esm/index.js
CHANGED
|
@@ -21,12 +21,12 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
22
22
|
import './components/scroll-controls/utils.js';
|
|
23
23
|
import './components/title/Component.js';
|
|
24
|
-
import './index.module-
|
|
24
|
+
import './index.module-0a75418b.js';
|
|
25
25
|
import './components/primary-tablist/Component.mobile.js';
|
|
26
26
|
import './components/secondary-tablist/Component.desktop.js';
|
|
27
27
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
28
28
|
import './components/secondary-tablist/Component.js';
|
|
29
|
-
import './index.module-
|
|
29
|
+
import './index.module-8df2f26a.js';
|
|
30
30
|
import './components/secondary-tablist/Component.mobile.js';
|
|
31
31
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
32
32
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var styles = {"component":"tabs__component_1klrp","fullWidthScroll":"tabs__fullWidthScroll_1klrp","container":"tabs__container_1klrp","title":"tabs__title_1klrp","disabled":"tabs__disabled_1klrp","focused":"tabs__focused_1klrp","collapsed":"tabs__collapsed_1klrp","selected":"tabs__selected_1klrp","line":"tabs__line_1klrp","option":"tabs__option_1klrp","s":"tabs__s_1klrp","xs":"tabs__xs_1klrp","xxs":"tabs__xxs_1klrp","pickerWrapper":"tabs__pickerWrapper_1klrp","m":"tabs__m_1klrp","l":"tabs__l_1klrp","xl":"tabs__xl_1klrp","rightAddons":"tabs__rightAddons_1klrp"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_zjoej","fullWidthScroll":"tabs__fullWidthScroll_zjoej","container":"tabs__container_zjoej","title":"tabs__title_zjoej","xxs":"tabs__xxs_zjoej","xs":"tabs__xs_zjoej","s":"tabs__s_zjoej","m":"tabs__m_zjoej","l":"tabs__l_zjoej","xl":"tabs__xl_zjoej"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/esm/mobile/index.js
CHANGED
|
@@ -19,8 +19,8 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
20
|
import '../components/scroll-controls/utils.js';
|
|
21
21
|
import '../components/title/Component.js';
|
|
22
|
-
import '../index.module-
|
|
22
|
+
import '../index.module-0a75418b.js';
|
|
23
23
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
24
24
|
import '../components/secondary-tablist/Component.js';
|
|
25
|
-
import '../index.module-
|
|
25
|
+
import '../index.module-8df2f26a.js';
|
|
26
26
|
import '../components/tabs/Component.js';
|
package/index.js
CHANGED
|
@@ -25,12 +25,12 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
25
25
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
26
26
|
require('./components/scroll-controls/utils.js');
|
|
27
27
|
require('./components/title/Component.js');
|
|
28
|
-
require('./index.module-
|
|
28
|
+
require('./index.module-031086a6.js');
|
|
29
29
|
require('./components/primary-tablist/Component.mobile.js');
|
|
30
30
|
require('./components/secondary-tablist/Component.desktop.js');
|
|
31
31
|
require('@alfalab/core-components-tag/desktop');
|
|
32
32
|
require('./components/secondary-tablist/Component.js');
|
|
33
|
-
require('./index.module-
|
|
33
|
+
require('./index.module-f7bbfca9.js');
|
|
34
34
|
require('./components/secondary-tablist/Component.mobile.js');
|
|
35
35
|
require('@alfalab/core-components-tag/mobile');
|
|
36
36
|
require('./components/tabs/Component.js');
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {"component":"tabs__component_1klrp","fullWidthScroll":"tabs__fullWidthScroll_1klrp","container":"tabs__container_1klrp","title":"tabs__title_1klrp","disabled":"tabs__disabled_1klrp","focused":"tabs__focused_1klrp","collapsed":"tabs__collapsed_1klrp","selected":"tabs__selected_1klrp","line":"tabs__line_1klrp","option":"tabs__option_1klrp","s":"tabs__s_1klrp","xs":"tabs__xs_1klrp","xxs":"tabs__xxs_1klrp","pickerWrapper":"tabs__pickerWrapper_1klrp","m":"tabs__m_1klrp","l":"tabs__l_1klrp","xl":"tabs__xl_1klrp","rightAddons":"tabs__rightAddons_1klrp"};
|
|
4
|
+
require('./components/primary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_zjoej","fullWidthScroll":"tabs__fullWidthScroll_zjoej","container":"tabs__container_zjoej","title":"tabs__title_zjoej","xxs":"tabs__xxs_zjoej","xs":"tabs__xs_zjoej","s":"tabs__s_zjoej","m":"tabs__m_zjoej","l":"tabs__l_zjoej","xl":"tabs__xl_zjoej"};
|
|
4
|
+
require('./components/secondary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
package/mobile/index.js
CHANGED
|
@@ -23,10 +23,10 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
23
23
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
24
24
|
require('../components/scroll-controls/utils.js');
|
|
25
25
|
require('../components/title/Component.js');
|
|
26
|
-
require('../index.module-
|
|
26
|
+
require('../index.module-031086a6.js');
|
|
27
27
|
require('@alfalab/core-components-tag/mobile');
|
|
28
28
|
require('../components/secondary-tablist/Component.js');
|
|
29
|
-
require('../index.module-
|
|
29
|
+
require('../index.module-f7bbfca9.js');
|
|
30
30
|
require('../components/tabs/Component.js');
|
|
31
31
|
|
|
32
32
|
|
|
@@ -15,5 +15,5 @@ import '../hooks/use-tabs.js';
|
|
|
15
15
|
import '@alfalab/core-components-shared/modern';
|
|
16
16
|
import '../synthetic-events.js';
|
|
17
17
|
import '../components/title/Component.js';
|
|
18
|
-
import '../index.module-
|
|
18
|
+
import '../index.module-8f42452f.js';
|
|
19
19
|
import '../components/tabs/Component.js';
|
|
@@ -6,7 +6,7 @@ import { PickerButtonDesktop } from '@alfalab/core-components-picker-button/mode
|
|
|
6
6
|
import { useTablistTitles } from '../../hooks/use-tablist-titles.js';
|
|
7
7
|
import { createSyntheticMouseEvent } from '../../synthetic-events.js';
|
|
8
8
|
import { Title } from '../title/Component.js';
|
|
9
|
-
import { s as styles } from '../../index.module-
|
|
9
|
+
import { s as styles } from '../../index.module-8f42452f.js';
|
|
10
10
|
import '@alfalab/core-components-mq/modern';
|
|
11
11
|
import '../../hooks/use-collapsible-elements.js';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PrimaryTabList } from './Component.js';
|
|
3
|
-
import { s as styles } from '../../index.module-
|
|
3
|
+
import { s as styles } from '../../index.module-8f42452f.js';
|
|
4
4
|
import '@juggle/resize-observer';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import { s as styles$1 } from '../../index.module-
|
|
4
|
+
import { s as styles$1 } from '../../index.module-8f42452f.js';
|
|
5
5
|
import '@juggle/resize-observer';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
7
7
|
import '@alfalab/core-components-shared/modern';
|
|
@@ -16,7 +16,7 @@ import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
|
16
16
|
import '../scroll-controls/utils.js';
|
|
17
17
|
import '../title/Component.js';
|
|
18
18
|
|
|
19
|
-
const mobileStyles = {"title":"
|
|
19
|
+
const mobileStyles = {"title":"tabs__title_1olzw tabs__title_1klrp","mobile":"tabs__mobile_1olzw"};
|
|
20
20
|
require('./mobile.css')
|
|
21
21
|
|
|
22
22
|
const styles = {
|
|
@@ -17,7 +17,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
18
|
import '../scroll-controls/utils.js';
|
|
19
19
|
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-8f42452f.js';
|
|
21
21
|
|
|
22
22
|
const PrimaryTabListResponsive = ({ size, breakpoint = 1024, fullWidthScroll, defaultMatchMediaValue, ...restProps }) => {
|
|
23
23
|
const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: hk4vm */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-
|
|
4
|
+
--color-light-accent-primary: #ef3124;
|
|
5
5
|
--color-light-border-link: #2288fa;
|
|
6
|
-
--color-light-
|
|
6
|
+
--color-light-neutral-translucent-500: rgba(9, 12, 37, 0.28);
|
|
7
7
|
--color-light-text-primary: #0e0e0e;
|
|
8
8
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55);
|
|
9
9
|
--color-light-text-tertiary: rgba(5, 8, 29, 0.38); /* 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 */
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
--primary-tablist-hover-color: var(--color-light-text-primary);
|
|
37
37
|
--primary-tablist-selected-color: var(--color-light-text-primary);
|
|
38
38
|
--primary-tablist-disabled-color: var(--color-light-text-tertiary);
|
|
39
|
-
--primary-tablist-bottom-border-color: var(--color-light-
|
|
40
|
-
--primary-tablist-line-color: var(--color-light-
|
|
39
|
+
--primary-tablist-bottom-border-color: var(--color-light-neutral-translucent-500);
|
|
40
|
+
--primary-tablist-line-color: var(--color-light-accent-primary);
|
|
41
41
|
--primary-tablist-font-feature-settings: normal;
|
|
42
42
|
|
|
43
43
|
/* mobile */
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
/* size l */
|
|
84
84
|
|
|
85
85
|
/* size xl */
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__component_1klrp {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_1klrp:before {
|
|
91
91
|
content: '';
|
|
92
92
|
display: block;
|
|
93
93
|
position: absolute;
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
height: 1px;
|
|
96
96
|
width: 100%;
|
|
97
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
98
|
-
} .
|
|
98
|
+
} .tabs__fullWidthScroll_1klrp {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_1klrp {
|
|
102
102
|
position: relative;
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
|
|
105
105
|
/* focus-outline fix */
|
|
106
106
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
107
107
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
108
|
-
} .
|
|
108
|
+
} .tabs__title_1klrp {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -121,78 +121,78 @@
|
|
|
121
121
|
-webkit-user-select: none;
|
|
122
122
|
user-select: none;
|
|
123
123
|
outline: none
|
|
124
|
-
} .
|
|
124
|
+
} .tabs__title_1klrp:not(.tabs__disabled_1klrp):hover {
|
|
125
125
|
color: var(--primary-tablist-hover-color);
|
|
126
|
-
} .
|
|
126
|
+
} .tabs__focused_1klrp {
|
|
127
127
|
outline: 2px solid var(--focus-color);
|
|
128
128
|
outline-offset: 2px;
|
|
129
|
-
} .
|
|
129
|
+
} .tabs__collapsed_1klrp {
|
|
130
130
|
order: 99;
|
|
131
131
|
visibility: collapse;
|
|
132
|
-
} .
|
|
132
|
+
} .tabs__selected_1klrp {
|
|
133
133
|
cursor: default;
|
|
134
134
|
color: var(--primary-tablist-selected-color);
|
|
135
|
-
} .
|
|
135
|
+
} .tabs__disabled_1klrp {
|
|
136
136
|
cursor: var(--disabled-cursor);
|
|
137
137
|
color: var(--primary-tablist-disabled-color);
|
|
138
|
-
} .
|
|
138
|
+
} .tabs__line_1klrp {
|
|
139
139
|
position: absolute;
|
|
140
140
|
height: 3px;
|
|
141
141
|
bottom: 0;
|
|
142
142
|
left: 0;
|
|
143
143
|
background-color: var(--primary-tablist-line-color);
|
|
144
144
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
145
|
-
} .
|
|
145
|
+
} .tabs__option_1klrp {
|
|
146
146
|
color: var(--color-light-text-primary);
|
|
147
|
-
} /* sizes */ .
|
|
147
|
+
} /* sizes */ .tabs__s_1klrp .tabs__title_1klrp, .tabs__xs_1klrp .tabs__title_1klrp, .tabs__xxs_1klrp .tabs__title_1klrp {
|
|
148
148
|
padding: var(--primary-tablist-s-padding);
|
|
149
149
|
font-size: var(--primary-tablist-s-font-size);
|
|
150
150
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
151
151
|
font-family: var(--primary-tablist-s-font-family);
|
|
152
152
|
line-height: 24px;
|
|
153
|
-
} .
|
|
153
|
+
} .tabs__s_1klrp .tabs__title_1klrp + .tabs__title_1klrp, .tabs__xs_1klrp .tabs__title_1klrp + .tabs__title_1klrp, .tabs__xxs_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
154
154
|
margin-left: var(--primary-tablist-s-gaps);
|
|
155
|
-
} .
|
|
155
|
+
} .tabs__s_1klrp .tabs__pickerWrapper_1klrp, .tabs__xs_1klrp .tabs__pickerWrapper_1klrp, .tabs__xxs_1klrp .tabs__pickerWrapper_1klrp {
|
|
156
156
|
margin-left: var(--primary-tablist-s-gaps);
|
|
157
|
-
} .
|
|
157
|
+
} .tabs__s_1klrp .tabs__option_1klrp, .tabs__xs_1klrp .tabs__option_1klrp, .tabs__xxs_1klrp .tabs__option_1klrp {
|
|
158
158
|
padding: 0;
|
|
159
|
-
} .
|
|
159
|
+
} .tabs__m_1klrp .tabs__title_1klrp {
|
|
160
160
|
padding: var(--primary-tablist-m-padding);
|
|
161
161
|
font-size: var(--primary-tablist-m-font-size);
|
|
162
162
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
163
163
|
font-family: var(--primary-tablist-m-font-family);
|
|
164
164
|
line-height: 24px;
|
|
165
|
-
} .
|
|
165
|
+
} .tabs__m_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
166
166
|
margin-left: var(--primary-tablist-m-gaps);
|
|
167
|
-
} .
|
|
167
|
+
} .tabs__m_1klrp .tabs__pickerWrapper_1klrp {
|
|
168
168
|
margin-left: var(--primary-tablist-m-gaps);
|
|
169
|
-
} .
|
|
169
|
+
} .tabs__m_1klrp .tabs__option_1klrp {
|
|
170
170
|
padding: 0;
|
|
171
|
-
} .
|
|
171
|
+
} .tabs__l_1klrp .tabs__title_1klrp {
|
|
172
172
|
padding: var(--primary-tablist-l-padding);
|
|
173
173
|
font-size: var(--primary-tablist-l-font-size);
|
|
174
174
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
175
175
|
font-family: var(--primary-tablist-l-font-family);
|
|
176
176
|
line-height: 24px;
|
|
177
|
-
} .
|
|
177
|
+
} .tabs__l_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
178
178
|
margin-left: var(--primary-tablist-l-gaps);
|
|
179
|
-
} .
|
|
179
|
+
} .tabs__l_1klrp .tabs__pickerWrapper_1klrp {
|
|
180
180
|
margin-left: var(--primary-tablist-l-gaps);
|
|
181
|
-
} .
|
|
181
|
+
} .tabs__l_1klrp .tabs__option_1klrp {
|
|
182
182
|
padding: 0;
|
|
183
|
-
} .
|
|
183
|
+
} .tabs__xl_1klrp .tabs__title_1klrp {
|
|
184
184
|
padding: var(--primary-tablist-xl-padding);
|
|
185
185
|
font-size: var(--primary-tablist-xl-font-size);
|
|
186
186
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
187
187
|
font-family: var(--primary-tablist-xl-font-family);
|
|
188
188
|
line-height: 32px;
|
|
189
|
-
} .
|
|
189
|
+
} .tabs__xl_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
190
190
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
191
|
-
} .
|
|
191
|
+
} .tabs__xl_1klrp .tabs__pickerWrapper_1klrp {
|
|
192
192
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
193
|
-
} .
|
|
193
|
+
} .tabs__xl_1klrp .tabs__option_1klrp {
|
|
194
194
|
padding: 0;
|
|
195
|
-
} .
|
|
195
|
+
} .tabs__rightAddons_1klrp {
|
|
196
196
|
display: flex;
|
|
197
197
|
justify-content: center;
|
|
198
198
|
align-items: center;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4uacb */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root {
|
|
4
|
-
--color-light-
|
|
4
|
+
--color-light-accent-primary: #ef3124;
|
|
5
5
|
--color-light-border-link: #2288fa;
|
|
6
|
-
--color-light-
|
|
6
|
+
--color-light-neutral-translucent-500: rgba(9, 12, 37, 0.28);
|
|
7
7
|
--color-light-text-primary: #0e0e0e;
|
|
8
8
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55);
|
|
9
9
|
--color-light-text-tertiary: rgba(5, 8, 29, 0.38); /* 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 */
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
--primary-tablist-hover-color: var(--color-light-text-primary);
|
|
38
38
|
--primary-tablist-selected-color: var(--color-light-text-primary);
|
|
39
39
|
--primary-tablist-disabled-color: var(--color-light-text-tertiary);
|
|
40
|
-
--primary-tablist-bottom-border-color: var(--color-light-
|
|
41
|
-
--primary-tablist-line-color: var(--color-light-
|
|
40
|
+
--primary-tablist-bottom-border-color: var(--color-light-neutral-translucent-500);
|
|
41
|
+
--primary-tablist-line-color: var(--color-light-accent-primary);
|
|
42
42
|
--primary-tablist-font-feature-settings: normal;
|
|
43
43
|
|
|
44
44
|
/* mobile */
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
/* size l */
|
|
91
91
|
|
|
92
92
|
/* size xl */
|
|
93
|
-
}.
|
|
93
|
+
}.tabs__component_1klrp {
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-flex;
|
|
96
96
|
min-width: 100%
|
|
97
|
-
}.
|
|
97
|
+
}.tabs__component_1klrp:before {
|
|
98
98
|
content: '';
|
|
99
99
|
display: block;
|
|
100
100
|
position: absolute;
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
height: 1px;
|
|
103
103
|
width: 100%;
|
|
104
104
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
105
|
-
}.
|
|
105
|
+
}.tabs__fullWidthScroll_1klrp {
|
|
106
106
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
107
107
|
margin: 0 var(--gap-m);
|
|
108
|
-
}.
|
|
108
|
+
}.tabs__container_1klrp {
|
|
109
109
|
position: relative;
|
|
110
110
|
overflow: hidden;
|
|
111
111
|
|
|
112
112
|
/* focus-outline fix */
|
|
113
113
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
114
114
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
115
|
-
}.
|
|
115
|
+
}.tabs__title_1klrp {
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
height: 100%;
|
|
@@ -128,78 +128,78 @@
|
|
|
128
128
|
-webkit-user-select: none;
|
|
129
129
|
user-select: none;
|
|
130
130
|
outline: none
|
|
131
|
-
}.
|
|
131
|
+
}.tabs__title_1klrp:not(.tabs__disabled_1klrp):hover {
|
|
132
132
|
color: var(--primary-tablist-hover-color);
|
|
133
|
-
}.
|
|
133
|
+
}.tabs__focused_1klrp {
|
|
134
134
|
outline: 2px solid var(--focus-color);
|
|
135
135
|
outline-offset: 2px;
|
|
136
|
-
}.
|
|
136
|
+
}.tabs__collapsed_1klrp {
|
|
137
137
|
order: 99;
|
|
138
138
|
visibility: collapse;
|
|
139
|
-
}.
|
|
139
|
+
}.tabs__selected_1klrp {
|
|
140
140
|
cursor: default;
|
|
141
141
|
color: var(--primary-tablist-selected-color);
|
|
142
|
-
}.
|
|
142
|
+
}.tabs__disabled_1klrp {
|
|
143
143
|
cursor: var(--disabled-cursor);
|
|
144
144
|
color: var(--primary-tablist-disabled-color);
|
|
145
|
-
}.
|
|
145
|
+
}.tabs__line_1klrp {
|
|
146
146
|
position: absolute;
|
|
147
147
|
height: 3px;
|
|
148
148
|
bottom: 0;
|
|
149
149
|
left: 0;
|
|
150
150
|
background-color: var(--primary-tablist-line-color);
|
|
151
151
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
152
|
-
}.
|
|
152
|
+
}.tabs__option_1klrp {
|
|
153
153
|
color: var(--color-light-text-primary);
|
|
154
|
-
}/* sizes */.
|
|
154
|
+
}/* sizes */.tabs__s_1klrp .tabs__title_1klrp, .tabs__xs_1klrp .tabs__title_1klrp, .tabs__xxs_1klrp .tabs__title_1klrp {
|
|
155
155
|
padding: var(--primary-tablist-s-padding);
|
|
156
156
|
font-size: var(--primary-tablist-s-font-size);
|
|
157
157
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
158
158
|
font-family: var(--primary-tablist-s-font-family);
|
|
159
159
|
line-height: 24px;
|
|
160
|
-
}.
|
|
160
|
+
}.tabs__s_1klrp .tabs__title_1klrp + .tabs__title_1klrp, .tabs__xs_1klrp .tabs__title_1klrp + .tabs__title_1klrp, .tabs__xxs_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
161
161
|
margin-left: var(--primary-tablist-s-gaps);
|
|
162
|
-
}.
|
|
162
|
+
}.tabs__s_1klrp .tabs__pickerWrapper_1klrp, .tabs__xs_1klrp .tabs__pickerWrapper_1klrp, .tabs__xxs_1klrp .tabs__pickerWrapper_1klrp {
|
|
163
163
|
margin-left: var(--primary-tablist-s-gaps);
|
|
164
|
-
}.
|
|
164
|
+
}.tabs__s_1klrp .tabs__option_1klrp, .tabs__xs_1klrp .tabs__option_1klrp, .tabs__xxs_1klrp .tabs__option_1klrp {
|
|
165
165
|
padding: 0;
|
|
166
|
-
}.
|
|
166
|
+
}.tabs__m_1klrp .tabs__title_1klrp {
|
|
167
167
|
padding: var(--primary-tablist-m-padding);
|
|
168
168
|
font-size: var(--primary-tablist-m-font-size);
|
|
169
169
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
170
170
|
font-family: var(--primary-tablist-m-font-family);
|
|
171
171
|
line-height: 24px;
|
|
172
|
-
}.
|
|
172
|
+
}.tabs__m_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
173
173
|
margin-left: var(--primary-tablist-m-gaps);
|
|
174
|
-
}.
|
|
174
|
+
}.tabs__m_1klrp .tabs__pickerWrapper_1klrp {
|
|
175
175
|
margin-left: var(--primary-tablist-m-gaps);
|
|
176
|
-
}.
|
|
176
|
+
}.tabs__m_1klrp .tabs__option_1klrp {
|
|
177
177
|
padding: 0;
|
|
178
|
-
}.
|
|
178
|
+
}.tabs__l_1klrp .tabs__title_1klrp {
|
|
179
179
|
padding: var(--primary-tablist-l-padding);
|
|
180
180
|
font-size: var(--primary-tablist-l-font-size);
|
|
181
181
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
182
182
|
font-family: var(--primary-tablist-l-font-family);
|
|
183
183
|
line-height: 24px;
|
|
184
|
-
}.
|
|
184
|
+
}.tabs__l_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
185
185
|
margin-left: var(--primary-tablist-l-gaps);
|
|
186
|
-
}.
|
|
186
|
+
}.tabs__l_1klrp .tabs__pickerWrapper_1klrp {
|
|
187
187
|
margin-left: var(--primary-tablist-l-gaps);
|
|
188
|
-
}.
|
|
188
|
+
}.tabs__l_1klrp .tabs__option_1klrp {
|
|
189
189
|
padding: 0;
|
|
190
|
-
}.
|
|
190
|
+
}.tabs__xl_1klrp .tabs__title_1klrp {
|
|
191
191
|
padding: var(--primary-tablist-xl-padding);
|
|
192
192
|
font-size: var(--primary-tablist-xl-font-size);
|
|
193
193
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
194
194
|
font-family: var(--primary-tablist-xl-font-family);
|
|
195
195
|
line-height: 32px;
|
|
196
|
-
}.
|
|
196
|
+
}.tabs__xl_1klrp .tabs__title_1klrp + .tabs__title_1klrp {
|
|
197
197
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
198
|
-
}.
|
|
198
|
+
}.tabs__xl_1klrp .tabs__pickerWrapper_1klrp {
|
|
199
199
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
200
|
-
}.
|
|
200
|
+
}.tabs__xl_1klrp .tabs__option_1klrp {
|
|
201
201
|
padding: 0;
|
|
202
|
-
}.
|
|
202
|
+
}.tabs__rightAddons_1klrp {
|
|
203
203
|
display: flex;
|
|
204
204
|
justify-content: center;
|
|
205
205
|
align-items: center;
|
|
@@ -1229,6 +1229,7 @@
|
|
|
1229
1229
|
--color-dark-graphic-tertiary-inverted-alpha-30: rgba(184, 185, 192, 0.3);
|
|
1230
1230
|
--color-dark-graphic-tertiary-inverted-shade-15: rgb(156, 157, 163);
|
|
1231
1231
|
--color-dark-graphic-tertiary-inverted-shade-20: rgb(147, 148, 154);
|
|
1232
|
+
--color-dark-neutral-700-alpha-15: rgba(137, 137, 145, 0.15);
|
|
1232
1233
|
--color-dark-specialbg-component-tint-7: rgba(255, 255, 255, 0.163);
|
|
1233
1234
|
--color-dark-specialbg-component-tint-10: rgba(255, 255, 255, 0.19);
|
|
1234
1235
|
--color-dark-specialbg-component-tint-15: rgba(255, 255, 255, 0.235);
|
|
@@ -1248,6 +1249,7 @@
|
|
|
1248
1249
|
--color-dark-specialbg-tertiary-transparent-tint-15: rgba(227, 227, 242, 0.252);
|
|
1249
1250
|
--color-dark-specialbg-tertiary-transparent-inverted-shade-15: rgba(26, 37, 58, 0.218);
|
|
1250
1251
|
--color-dark-specialbg-tertiary-transparent-inverted-shade-20: rgba(24, 34, 54, 0.264);
|
|
1252
|
+
--color-dark-status-info-alpha-15: rgba(49, 147, 252, 0.15);
|
|
1251
1253
|
--color-dark-text-link-shade-30: rgb(52, 110, 176);
|
|
1252
1254
|
--color-dark-text-link-shade-50: rgb(37, 79, 126);
|
|
1253
1255
|
--color-dark-text-link-tint-20: rgb(110, 177, 253);
|
|
@@ -1389,6 +1391,7 @@
|
|
|
1389
1391
|
--color-light-graphic-tertiary-inverted-alpha-30: rgba(73, 73, 79, 0.3);
|
|
1390
1392
|
--color-light-graphic-tertiary-inverted-tint-15: rgb(100, 100, 105);
|
|
1391
1393
|
--color-light-graphic-tertiary-inverted-tint-20: rgb(109, 109, 114);
|
|
1394
|
+
--color-light-neutral-700-alpha-15: rgba(137, 137, 145, 0.15);
|
|
1392
1395
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
1393
1396
|
--color-light-specialbg-component-shade-10: rgba(10, 28, 48, 0.163);
|
|
1394
1397
|
--color-light-specialbg-component-shade-15: rgba(9, 26, 45, 0.2095);
|
|
@@ -1408,6 +1411,7 @@
|
|
|
1408
1411
|
--color-light-specialbg-tertiary-transparent-shade-15: rgba(26, 37, 58, 0.218);
|
|
1409
1412
|
--color-light-specialbg-tertiary-transparent-inverted-tint-15: rgba(227, 227, 242, 0.252);
|
|
1410
1413
|
--color-light-specialbg-tertiary-transparent-inverted-tint-20: rgba(229, 229, 243, 0.296);
|
|
1414
|
+
--color-light-status-info-alpha-15: rgba(34, 136, 250, 0.15);
|
|
1411
1415
|
--color-light-text-link-tint-30: rgb(106, 160, 244);
|
|
1412
1416
|
--color-light-text-link-tint-50: rgb(149, 187, 247);
|
|
1413
1417
|
--color-light-text-link-shade-20: rgb(34, 95, 191);
|
|
@@ -1701,8 +1705,8 @@
|
|
|
1701
1705
|
--primary-tablist-hover-color: var(--color-light-text-primary);
|
|
1702
1706
|
--primary-tablist-selected-color: var(--color-light-text-primary);
|
|
1703
1707
|
--primary-tablist-disabled-color: var(--color-light-text-tertiary);
|
|
1704
|
-
--primary-tablist-bottom-border-color: var(--color-light-
|
|
1705
|
-
--primary-tablist-line-color: var(--color-light-
|
|
1708
|
+
--primary-tablist-bottom-border-color: var(--color-light-neutral-translucent-500);
|
|
1709
|
+
--primary-tablist-line-color: var(--color-light-accent-primary);
|
|
1706
1710
|
--primary-tablist-font-feature-settings: normal;
|
|
1707
1711
|
|
|
1708
1712
|
/* mobile */
|
|
@@ -1761,13 +1765,13 @@
|
|
|
1761
1765
|
|
|
1762
1766
|
/* size xl */
|
|
1763
1767
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1764
|
-
} .
|
|
1765
|
-
} .
|
|
1768
|
+
} .tabs__title_1olzw {
|
|
1769
|
+
} .tabs__mobile_1olzw .tabs__title_1olzw {
|
|
1766
1770
|
padding: var(--primary-tablist-mobile-padding);
|
|
1767
1771
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
1768
1772
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
1769
1773
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
1770
1774
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
1771
|
-
} .
|
|
1775
|
+
} .tabs__mobile_1olzw .tabs__title_1olzw + .tabs__title_1olzw {
|
|
1772
1776
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
1773
1777
|
}
|
|
@@ -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_1y1xn","borderVisible":"tabs__borderVisible_1y1xn","primary":"tabs__primary_1y1xn","button":"tabs__button_1y1xn","xl":"tabs__xl_1y1xn","secondary":"tabs__secondary_1y1xn","xs":"tabs__xs_1y1xn"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp }, ref) => {
|