@alfalab/core-components-tabs 6.2.2 → 6.2.5
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/CHANGELOG.md +47 -47
- package/dist/components/primary-tablist/Component.desktop.js +2 -2
- package/dist/components/primary-tablist/Component.js +1 -1
- package/dist/components/primary-tablist/Component.mobile.js +3 -3
- package/dist/components/primary-tablist/Component.responsive.js +2 -2
- package/dist/components/primary-tablist/index.css +19 -19
- package/dist/components/primary-tablist/mobile.css +21 -21
- package/dist/components/scrollable-container/Component.js +1 -1
- package/dist/components/scrollable-container/index.css +4 -4
- package/dist/components/secondary-tablist/Component.desktop.js +2 -2
- package/dist/components/secondary-tablist/Component.js +1 -1
- package/dist/components/secondary-tablist/Component.mobile.js +3 -3
- package/dist/components/secondary-tablist/Component.responsive.js +2 -2
- package/dist/components/secondary-tablist/index.css +10 -10
- package/dist/components/secondary-tablist/mobile.css +12 -12
- package/dist/components/tab/Component.d.ts +1 -1
- package/dist/components/tab/Component.js +3 -3
- package/dist/components/tab/index.css +3 -3
- package/dist/components/tabs/Component.desktop.js +3 -3
- package/dist/components/tabs/Component.mobile.js +3 -3
- package/dist/components/tabs/Component.responsive.js +3 -3
- package/dist/cssm/components/tab/Component.d.ts +1 -1
- package/dist/cssm/components/tab/Component.js +2 -2
- package/dist/cssm/typings.d.ts +4 -0
- package/dist/desktop.js +3 -3
- package/dist/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/dist/esm/components/primary-tablist/Component.js +1 -1
- package/dist/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/dist/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/dist/esm/components/primary-tablist/index.css +19 -19
- package/dist/esm/components/primary-tablist/mobile.css +21 -21
- package/dist/esm/components/scrollable-container/Component.js +1 -1
- package/dist/esm/components/scrollable-container/index.css +4 -4
- package/dist/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/dist/esm/components/secondary-tablist/Component.js +1 -1
- package/dist/esm/components/secondary-tablist/Component.mobile.js +3 -3
- package/dist/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/dist/esm/components/secondary-tablist/index.css +10 -10
- package/dist/esm/components/secondary-tablist/mobile.css +12 -12
- package/dist/esm/components/tab/Component.d.ts +1 -1
- package/dist/esm/components/tab/Component.js +3 -3
- package/dist/esm/components/tab/index.css +3 -3
- package/dist/esm/components/tabs/Component.desktop.js +3 -3
- package/dist/esm/components/tabs/Component.mobile.js +3 -3
- package/dist/esm/components/tabs/Component.responsive.js +3 -3
- package/dist/esm/desktop.js +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.module-4f872dce.js +4 -0
- package/dist/esm/index.module-cb2d5475.js +4 -0
- package/dist/esm/mobile.js +3 -3
- package/dist/esm/responsive.js +3 -3
- package/dist/esm/{tslib.es6-9b996690.d.ts → tslib.es6-99e48a82.d.ts} +0 -0
- package/dist/esm/{tslib.es6-9b996690.js → tslib.es6-99e48a82.js} +0 -0
- package/dist/esm/typings.d.ts +4 -0
- package/dist/index.js +3 -3
- package/dist/index.module-46c31e55.js +6 -0
- package/dist/index.module-676d379f.js +6 -0
- package/dist/mobile.js +3 -3
- package/dist/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/dist/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/dist/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/dist/modern/components/primary-tablist/index.css +19 -19
- package/dist/modern/components/primary-tablist/mobile.css +21 -21
- package/dist/modern/components/scrollable-container/Component.js +1 -1
- package/dist/modern/components/scrollable-container/index.css +4 -4
- package/dist/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/dist/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/dist/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/dist/modern/components/secondary-tablist/index.css +10 -10
- package/dist/modern/components/secondary-tablist/mobile.css +12 -12
- package/dist/modern/components/tab/Component.d.ts +1 -1
- package/dist/modern/components/tab/Component.js +3 -3
- package/dist/modern/components/tab/index.css +3 -3
- package/dist/modern/components/tabs/Component.desktop.js +2 -2
- package/dist/modern/components/tabs/Component.mobile.js +2 -2
- package/dist/modern/components/tabs/Component.responsive.js +2 -2
- package/dist/modern/desktop.js +2 -2
- package/dist/modern/index.js +2 -2
- package/dist/modern/index.module-4f872dce.js +4 -0
- package/dist/modern/index.module-cb2d5475.js +4 -0
- package/dist/modern/mobile.js +2 -2
- package/dist/modern/responsive.js +2 -2
- package/dist/modern/typings.d.ts +4 -0
- package/dist/responsive.js +3 -3
- package/dist/{tslib.es6-e89c9d98.d.ts → tslib.es6-28db86de.d.ts} +0 -0
- package/dist/{tslib.es6-e89c9d98.js → tslib.es6-28db86de.js} +0 -0
- package/dist/typings.d.ts +4 -0
- package/package.json +4 -4
- package/dist/esm/index.module-1fc6dbc5.js +0 -4
- package/dist/esm/index.module-9bcdb0c4.js +0 -4
- package/dist/index.module-33cc127a.js +0 -6
- package/dist/index.module-f07c0ef4.js +0 -6
- package/dist/modern/index.module-1fc6dbc5.js +0 -4
- package/dist/modern/index.module-9bcdb0c4.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5y19w */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
/* size l */
|
|
87
87
|
|
|
88
88
|
/* size xl */
|
|
89
|
-
}.
|
|
89
|
+
}.tabs__component_1nlyq {
|
|
90
90
|
position: relative
|
|
91
|
-
}.
|
|
91
|
+
}.tabs__component_1nlyq:before {
|
|
92
92
|
content: '';
|
|
93
93
|
display: block;
|
|
94
94
|
position: absolute;
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
height: 1px;
|
|
97
97
|
width: 100%;
|
|
98
98
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
99
|
-
}.
|
|
99
|
+
}.tabs__container_1nlyq {
|
|
100
100
|
position: relative;
|
|
101
101
|
display: flex;
|
|
102
|
-
}.
|
|
102
|
+
}.tabs__title_1nlyq {
|
|
103
103
|
display: flex;
|
|
104
104
|
align-items: center;
|
|
105
105
|
height: 100%;
|
|
@@ -116,57 +116,57 @@
|
|
|
116
116
|
user-select: none;
|
|
117
117
|
cursor: pointer;
|
|
118
118
|
outline: none
|
|
119
|
-
}.
|
|
119
|
+
}.tabs__title_1nlyq:not(.tabs__disabled_1nlyq):hover {
|
|
120
120
|
color: var(--primary-tablist-hover-color);
|
|
121
|
-
}.
|
|
121
|
+
}.tabs__focused_1nlyq {
|
|
122
122
|
outline: 2px solid var(--focus-color);
|
|
123
123
|
outline-offset: 2px;
|
|
124
|
-
}.
|
|
124
|
+
}.tabs__selected_1nlyq {
|
|
125
125
|
cursor: default;
|
|
126
126
|
color: var(--primary-tablist-selected-color);
|
|
127
|
-
}.
|
|
127
|
+
}.tabs__disabled_1nlyq {
|
|
128
128
|
cursor: var(--disabled-cursor);
|
|
129
129
|
color: var(--primary-tablist-disabled-color);
|
|
130
|
-
}.
|
|
130
|
+
}.tabs__line_1nlyq {
|
|
131
131
|
position: absolute;
|
|
132
132
|
height: 3px;
|
|
133
133
|
bottom: 0;
|
|
134
134
|
left: 0;
|
|
135
135
|
background-color: var(--primary-tablist-line-color);
|
|
136
136
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
137
|
-
}/* sizes */.
|
|
137
|
+
}/* sizes */.tabs__s_1nlyq .tabs__title_1nlyq, .tabs__xs_1nlyq .tabs__title_1nlyq, .tabs__xxs_1nlyq .tabs__title_1nlyq {
|
|
138
138
|
padding: var(--primary-tablist-s-padding);
|
|
139
139
|
font-size: var(--primary-tablist-s-font-size);
|
|
140
140
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
141
141
|
font-family: var(--primary-tablist-s-font-family);
|
|
142
142
|
line-height: 24px;
|
|
143
|
-
}.
|
|
143
|
+
}.tabs__s_1nlyq .tabs__title_1nlyq + .tabs__title_1nlyq, .tabs__xs_1nlyq .tabs__title_1nlyq + .tabs__title_1nlyq, .tabs__xxs_1nlyq .tabs__title_1nlyq + .tabs__title_1nlyq {
|
|
144
144
|
margin-left: var(--primary-tablist-s-gaps);
|
|
145
|
-
}.
|
|
145
|
+
}.tabs__m_1nlyq .tabs__title_1nlyq {
|
|
146
146
|
padding: var(--primary-tablist-m-padding);
|
|
147
147
|
font-size: var(--primary-tablist-m-font-size);
|
|
148
148
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
149
149
|
font-family: var(--primary-tablist-m-font-family);
|
|
150
150
|
line-height: 24px;
|
|
151
|
-
}.
|
|
151
|
+
}.tabs__m_1nlyq .tabs__title_1nlyq + .tabs__title_1nlyq {
|
|
152
152
|
margin-left: var(--primary-tablist-m-gaps);
|
|
153
|
-
}.
|
|
153
|
+
}.tabs__l_1nlyq .tabs__title_1nlyq {
|
|
154
154
|
padding: var(--primary-tablist-l-padding);
|
|
155
155
|
font-size: var(--primary-tablist-l-font-size);
|
|
156
156
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
157
157
|
font-family: var(--primary-tablist-l-font-family);
|
|
158
158
|
line-height: 24px;
|
|
159
|
-
}.
|
|
159
|
+
}.tabs__l_1nlyq .tabs__title_1nlyq + .tabs__title_1nlyq {
|
|
160
160
|
margin-left: var(--primary-tablist-l-gaps);
|
|
161
|
-
}.
|
|
161
|
+
}.tabs__xl_1nlyq .tabs__title_1nlyq {
|
|
162
162
|
padding: var(--primary-tablist-xl-padding);
|
|
163
163
|
font-size: var(--primary-tablist-xl-font-size);
|
|
164
164
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
165
165
|
font-family: var(--primary-tablist-xl-font-family);
|
|
166
166
|
line-height: 32px;
|
|
167
|
-
}.
|
|
167
|
+
}.tabs__xl_1nlyq .tabs__title_1nlyq + .tabs__title_1nlyq {
|
|
168
168
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
169
|
-
}.
|
|
169
|
+
}.tabs__rightAddons_1nlyq {
|
|
170
170
|
margin-left: var(--gap-xs);
|
|
171
171
|
}
|
|
172
172
|
:root {
|
|
@@ -832,7 +832,7 @@
|
|
|
832
832
|
/* size xl */
|
|
833
833
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
834
834
|
}
|
|
835
|
-
.
|
|
835
|
+
.tabs__title_h6zow {
|
|
836
836
|
|
|
837
837
|
padding: var(--primary-tablist-mobile-padding);
|
|
838
838
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
@@ -840,6 +840,6 @@
|
|
|
840
840
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
841
841
|
line-height: 24px
|
|
842
842
|
}
|
|
843
|
-
.
|
|
843
|
+
.tabs__title_h6zow + .tabs__title_h6zow {
|
|
844
844
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
845
845
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import computeScrollIntoView from 'compute-scroll-into-view';
|
|
4
4
|
|
|
5
|
-
var styles = {"container":"
|
|
5
|
+
var styles = {"container":"tabs__container_1aaoi"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var ScrollableContainer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1189z */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
/* size xl */
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.tabs__container_1aaoi {
|
|
37
37
|
position: relative;
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
overflow-y: hidden;
|
|
42
42
|
scrollbar-width: none
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.tabs__container_1aaoi::-webkit-scrollbar {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.tabs__container_1aaoi > * {
|
|
48
48
|
flex-shrink: 0;
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-99e48a82.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'compute-scroll-into-view';
|
|
@@ -6,7 +6,7 @@ import '../scrollable-container/Component.js';
|
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import '@alfalab/core-components-tag/dist/esm';
|
|
8
8
|
import { SecondaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-
|
|
9
|
+
import { c as commonStyles } from '../../index.module-cb2d5475.js';
|
|
10
10
|
|
|
11
11
|
var SecondaryTabListDesktop = function (_a) {
|
|
12
12
|
var _b = _a.size, size = _b === void 0 ? 's' : _b, restProps = __rest(_a, ["size"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-99e48a82.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import 'compute-scroll-into-view';
|
|
@@ -6,9 +6,9 @@ import '../scrollable-container/Component.js';
|
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import '@alfalab/core-components-tag/dist/esm';
|
|
8
8
|
import { SecondaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-
|
|
9
|
+
import { c as commonStyles } from '../../index.module-cb2d5475.js';
|
|
10
10
|
|
|
11
|
-
var mobileStyles = {"title":"
|
|
11
|
+
var mobileStyles = {"title":"tabs__title_4mzzj tabs__title_fgw89"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
14
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-99e48a82.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'compute-scroll-into-view';
|
|
@@ -6,7 +6,7 @@ import '../scrollable-container/Component.js';
|
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import '@alfalab/core-components-tag/dist/esm';
|
|
8
8
|
import './Component.js';
|
|
9
|
-
import '../../index.module-
|
|
9
|
+
import '../../index.module-cb2d5475.js';
|
|
10
10
|
import { SecondaryTabListDesktop } from './Component.desktop.js';
|
|
11
11
|
import { useMedia } from '@alfalab/hooks';
|
|
12
12
|
import { SecondaryTabListMobile } from './Component.mobile.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 93d08 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -44,34 +44,34 @@
|
|
|
44
44
|
/* size xl */
|
|
45
45
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.tabs__component_fgw89 {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.tabs__container_fgw89 {
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.tabs__title_fgw89 {
|
|
57
57
|
white-space: nowrap;
|
|
58
58
|
}
|
|
59
59
|
/* sizes */
|
|
60
|
-
.
|
|
60
|
+
.tabs__xxs_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
61
61
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.tabs__xs_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
64
64
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.tabs__s_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
67
67
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.tabs__m_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
70
70
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
71
71
|
}
|
|
72
|
-
.
|
|
72
|
+
.tabs__l_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
73
73
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
.tabs__xl_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
76
76
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
77
77
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1yf2g */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -49,26 +49,26 @@
|
|
|
49
49
|
|
|
50
50
|
/* size xl */
|
|
51
51
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
52
|
-
}.
|
|
52
|
+
}.tabs__component_fgw89 {
|
|
53
53
|
position: relative;
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
|
-
}.
|
|
56
|
+
}.tabs__container_fgw89 {
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__title_fgw89 {
|
|
60
60
|
white-space: nowrap;
|
|
61
|
-
}/* sizes */.
|
|
61
|
+
}/* sizes */.tabs__xxs_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
62
62
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
|
-
}.
|
|
63
|
+
}.tabs__xs_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
64
64
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
65
|
-
}.
|
|
65
|
+
}.tabs__s_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
66
66
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
67
|
-
}.
|
|
67
|
+
}.tabs__m_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
68
68
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__l_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
70
70
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__xl_fgw89 .tabs__title_fgw89 + .tabs__title_fgw89 {
|
|
72
72
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
73
73
|
}
|
|
74
74
|
:root {
|
|
@@ -734,8 +734,8 @@
|
|
|
734
734
|
/* size xl */
|
|
735
735
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
736
736
|
}
|
|
737
|
-
.
|
|
737
|
+
.tabs__title_4mzzj {
|
|
738
738
|
}
|
|
739
|
-
.
|
|
739
|
+
.tabs__title_4mzzj + .tabs__title_4mzzj {
|
|
740
740
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
741
741
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TabProps } from "../../typings";
|
|
3
|
-
declare const Tab: ({ children, hidden, className, disabled }: TabProps) => JSX.Element | null;
|
|
3
|
+
declare const Tab: ({ children, hidden, className, disabled, dataTestId }: TabProps) => JSX.Element | null;
|
|
4
4
|
export { Tab };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"tabs__component_1hwiq","hidden":"tabs__hidden_1hwiq"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tab = function (_a) {
|
|
8
8
|
var _b;
|
|
9
|
-
var children = _a.children, hidden = _a.hidden, className = _a.className, disabled = _a.disabled;
|
|
9
|
+
var children = _a.children, hidden = _a.hidden, className = _a.className, disabled = _a.disabled, dataTestId = _a.dataTestId;
|
|
10
10
|
return children ? (React.createElement("div", { className: cn(styles.component, (_b = {},
|
|
11
11
|
_b[styles.hidden] = hidden,
|
|
12
|
-
_b), className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0 }, children)) : null;
|
|
12
|
+
_b), className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0, "data-test-id": dataTestId }, children)) : null;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { Tab };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-99e48a82.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/dist/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,11 +6,11 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
import '../scrollable-container/Component.js';
|
|
7
7
|
import '../../useTabs.js';
|
|
8
8
|
import '../primary-tablist/Component.js';
|
|
9
|
-
import '../../index.module-
|
|
9
|
+
import '../../index.module-4f872dce.js';
|
|
10
10
|
import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
|
|
11
11
|
import '@alfalab/core-components-tag/dist/esm';
|
|
12
12
|
import '../secondary-tablist/Component.js';
|
|
13
|
-
import '../../index.module-
|
|
13
|
+
import '../../index.module-cb2d5475.js';
|
|
14
14
|
import { SecondaryTabListDesktop } from '../secondary-tablist/Component.desktop.js';
|
|
15
15
|
import { Tabs } from './Component.js';
|
|
16
16
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-99e48a82.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/dist/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,10 +6,10 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
import '../scrollable-container/Component.js';
|
|
7
7
|
import '../../useTabs.js';
|
|
8
8
|
import '../primary-tablist/Component.js';
|
|
9
|
-
import '../../index.module-
|
|
9
|
+
import '../../index.module-4f872dce.js';
|
|
10
10
|
import '@alfalab/core-components-tag/dist/esm';
|
|
11
11
|
import '../secondary-tablist/Component.js';
|
|
12
|
-
import '../../index.module-
|
|
12
|
+
import '../../index.module-cb2d5475.js';
|
|
13
13
|
import { Tabs } from './Component.js';
|
|
14
14
|
import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
|
|
15
15
|
import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-99e48a82.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/dist/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,11 +6,11 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
import '../scrollable-container/Component.js';
|
|
7
7
|
import '../../useTabs.js';
|
|
8
8
|
import '../primary-tablist/Component.js';
|
|
9
|
-
import '../../index.module-
|
|
9
|
+
import '../../index.module-4f872dce.js';
|
|
10
10
|
import '../primary-tablist/Component.desktop.js';
|
|
11
11
|
import '@alfalab/core-components-tag/dist/esm';
|
|
12
12
|
import '../secondary-tablist/Component.js';
|
|
13
|
-
import '../../index.module-
|
|
13
|
+
import '../../index.module-cb2d5475.js';
|
|
14
14
|
import '../secondary-tablist/Component.desktop.js';
|
|
15
15
|
import { Tabs } from './Component.js';
|
|
16
16
|
import '@alfalab/hooks';
|
package/dist/esm/desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-99e48a82.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/dist/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,11 +6,11 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
7
7
|
export { useTabs } from './useTabs.js';
|
|
8
8
|
import './components/primary-tablist/Component.js';
|
|
9
|
-
import './index.module-
|
|
9
|
+
import './index.module-4f872dce.js';
|
|
10
10
|
export { PrimaryTabListDesktop } from './components/primary-tablist/Component.desktop.js';
|
|
11
11
|
import '@alfalab/core-components-tag/dist/esm';
|
|
12
12
|
import './components/secondary-tablist/Component.js';
|
|
13
|
-
import './index.module-
|
|
13
|
+
import './index.module-cb2d5475.js';
|
|
14
14
|
export { SecondaryTabListDesktop } from './components/secondary-tablist/Component.desktop.js';
|
|
15
15
|
export { Tab } from './components/tab/Component.js';
|
|
16
16
|
import './components/tabs/Component.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-99e48a82.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/dist/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,11 +6,11 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
7
7
|
export { useTabs } from './useTabs.js';
|
|
8
8
|
import './components/primary-tablist/Component.js';
|
|
9
|
-
import './index.module-
|
|
9
|
+
import './index.module-4f872dce.js';
|
|
10
10
|
import './components/primary-tablist/Component.desktop.js';
|
|
11
11
|
import '@alfalab/core-components-tag/dist/esm';
|
|
12
12
|
import './components/secondary-tablist/Component.js';
|
|
13
|
-
import './index.module-
|
|
13
|
+
import './index.module-cb2d5475.js';
|
|
14
14
|
import './components/secondary-tablist/Component.desktop.js';
|
|
15
15
|
export { Tab } from './components/tab/Component.js';
|
|
16
16
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_1nlyq","container":"tabs__container_1nlyq","title":"tabs__title_1nlyq","disabled":"tabs__disabled_1nlyq","focused":"tabs__focused_1nlyq","selected":"tabs__selected_1nlyq","line":"tabs__line_1nlyq","s":"tabs__s_1nlyq","xs":"tabs__xs_1nlyq","xxs":"tabs__xxs_1nlyq","m":"tabs__m_1nlyq","l":"tabs__l_1nlyq","xl":"tabs__xl_1nlyq","rightAddons":"tabs__rightAddons_1nlyq"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_fgw89","container":"tabs__container_fgw89","title":"tabs__title_fgw89","xxs":"tabs__xxs_fgw89","xs":"tabs__xs_fgw89","s":"tabs__s_fgw89","m":"tabs__m_fgw89","l":"tabs__l_fgw89","xl":"tabs__xl_fgw89"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/dist/esm/mobile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-99e48a82.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/dist/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,10 +6,10 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
7
7
|
export { useTabs } from './useTabs.js';
|
|
8
8
|
import './components/primary-tablist/Component.js';
|
|
9
|
-
import './index.module-
|
|
9
|
+
import './index.module-4f872dce.js';
|
|
10
10
|
import '@alfalab/core-components-tag/dist/esm';
|
|
11
11
|
import './components/secondary-tablist/Component.js';
|
|
12
|
-
import './index.module-
|
|
12
|
+
import './index.module-cb2d5475.js';
|
|
13
13
|
export { Tab } from './components/tab/Component.js';
|
|
14
14
|
import './components/tabs/Component.js';
|
|
15
15
|
export { PrimaryTabListMobile } from './components/primary-tablist/Component.mobile.js';
|
package/dist/esm/responsive.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-99e48a82.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/dist/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,11 +6,11 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
7
7
|
export { useTabs } from './useTabs.js';
|
|
8
8
|
import './components/primary-tablist/Component.js';
|
|
9
|
-
import './index.module-
|
|
9
|
+
import './index.module-4f872dce.js';
|
|
10
10
|
import './components/primary-tablist/Component.desktop.js';
|
|
11
11
|
import '@alfalab/core-components-tag/dist/esm';
|
|
12
12
|
import './components/secondary-tablist/Component.js';
|
|
13
|
-
import './index.module-
|
|
13
|
+
import './index.module-cb2d5475.js';
|
|
14
14
|
import './components/secondary-tablist/Component.desktop.js';
|
|
15
15
|
export { Tab } from './components/tab/Component.js';
|
|
16
16
|
import './components/tabs/Component.js';
|
|
File without changes
|
|
File without changes
|
package/dist/esm/typings.d.ts
CHANGED
|
@@ -91,6 +91,10 @@ type TabProps = {
|
|
|
91
91
|
* Слот справа
|
|
92
92
|
*/
|
|
93
93
|
rightAddons?: ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
96
|
+
*/
|
|
97
|
+
dataTestId?: string;
|
|
94
98
|
};
|
|
95
99
|
type TabListProps = Pick<TabsProps, 'className' | 'containerClassName' | 'size' | 'defaultMatch' | 'selectedId' | 'scrollable' | 'onChange' | 'dataTestId'> & {
|
|
96
100
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-28db86de.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@alfalab/core-components-keyboard-focusable');
|
|
8
8
|
require('classnames');
|
|
@@ -10,11 +10,11 @@ require('compute-scroll-into-view');
|
|
|
10
10
|
var components_scrollableContainer_Component = require('./components/scrollable-container/Component.js');
|
|
11
11
|
var useTabs = require('./useTabs.js');
|
|
12
12
|
require('./components/primary-tablist/Component.js');
|
|
13
|
-
require('./index.module-
|
|
13
|
+
require('./index.module-676d379f.js');
|
|
14
14
|
require('./components/primary-tablist/Component.desktop.js');
|
|
15
15
|
require('@alfalab/core-components-tag');
|
|
16
16
|
require('./components/secondary-tablist/Component.js');
|
|
17
|
-
require('./index.module-
|
|
17
|
+
require('./index.module-46c31e55.js');
|
|
18
18
|
require('./components/secondary-tablist/Component.desktop.js');
|
|
19
19
|
var components_tab_Component = require('./components/tab/Component.js');
|
|
20
20
|
require('./components/tabs/Component.js');
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_fgw89","container":"tabs__container_fgw89","title":"tabs__title_fgw89","xxs":"tabs__xxs_fgw89","xs":"tabs__xs_fgw89","s":"tabs__s_fgw89","m":"tabs__m_fgw89","l":"tabs__l_fgw89","xl":"tabs__xl_fgw89"};
|
|
4
|
+
require('./components/secondary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_1nlyq","container":"tabs__container_1nlyq","title":"tabs__title_1nlyq","disabled":"tabs__disabled_1nlyq","focused":"tabs__focused_1nlyq","selected":"tabs__selected_1nlyq","line":"tabs__line_1nlyq","s":"tabs__s_1nlyq","xs":"tabs__xs_1nlyq","xxs":"tabs__xxs_1nlyq","m":"tabs__m_1nlyq","l":"tabs__l_1nlyq","xl":"tabs__xl_1nlyq","rightAddons":"tabs__rightAddons_1nlyq"};
|
|
4
|
+
require('./components/primary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
package/dist/mobile.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-28db86de.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@alfalab/core-components-keyboard-focusable');
|
|
8
8
|
require('classnames');
|
|
@@ -10,10 +10,10 @@ require('compute-scroll-into-view');
|
|
|
10
10
|
var components_scrollableContainer_Component = require('./components/scrollable-container/Component.js');
|
|
11
11
|
var useTabs = require('./useTabs.js');
|
|
12
12
|
require('./components/primary-tablist/Component.js');
|
|
13
|
-
require('./index.module-
|
|
13
|
+
require('./index.module-676d379f.js');
|
|
14
14
|
require('@alfalab/core-components-tag');
|
|
15
15
|
require('./components/secondary-tablist/Component.js');
|
|
16
|
-
require('./index.module-
|
|
16
|
+
require('./index.module-46c31e55.js');
|
|
17
17
|
var components_tab_Component = require('./components/tab/Component.js');
|
|
18
18
|
require('./components/tabs/Component.js');
|
|
19
19
|
var components_primaryTablist_Component_mobile = require('./components/primary-tablist/Component.mobile.js');
|
|
@@ -5,7 +5,7 @@ import 'compute-scroll-into-view';
|
|
|
5
5
|
import '../scrollable-container/Component.js';
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import { PrimaryTabList } from './Component.js';
|
|
8
|
-
import { c as commonStyles } from '../../index.module-
|
|
8
|
+
import { c as commonStyles } from '../../index.module-4f872dce.js';
|
|
9
9
|
|
|
10
10
|
const PrimaryTabListDesktop = ({ size = 'm', ...restProps }) => (React.createElement(PrimaryTabList, Object.assign({}, restProps, { size: size, styles: commonStyles })));
|
|
11
11
|
|
|
@@ -5,9 +5,9 @@ import 'compute-scroll-into-view';
|
|
|
5
5
|
import '../scrollable-container/Component.js';
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import { PrimaryTabList } from './Component.js';
|
|
8
|
-
import { c as commonStyles } from '../../index.module-
|
|
8
|
+
import { c as commonStyles } from '../../index.module-4f872dce.js';
|
|
9
9
|
|
|
10
|
-
var mobileStyles = {"title":"
|
|
10
|
+
var mobileStyles = {"title":"tabs__title_h6zow tabs__title_1nlyq"};
|
|
11
11
|
require('./mobile.css')
|
|
12
12
|
|
|
13
13
|
const styles = {
|
|
@@ -5,7 +5,7 @@ import 'compute-scroll-into-view';
|
|
|
5
5
|
import '../scrollable-container/Component.js';
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import './Component.js';
|
|
8
|
-
import '../../index.module-
|
|
8
|
+
import '../../index.module-4f872dce.js';
|
|
9
9
|
import { PrimaryTabListDesktop } from './Component.desktop.js';
|
|
10
10
|
import { useMedia } from '@alfalab/hooks';
|
|
11
11
|
import { PrimaryTabListMobile } from './Component.mobile.js';
|