@alfalab/core-components-tabs 5.2.1 → 5.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 +41 -0
- package/dist/components/primary-tablist/Component.d.ts +1 -0
- package/dist/components/primary-tablist/Component.desktop.js +4 -4
- package/dist/components/primary-tablist/Component.js +20 -19
- package/dist/components/primary-tablist/Component.mobile.js +5 -5
- package/dist/components/primary-tablist/Component.responsive.js +4 -4
- package/dist/components/primary-tablist/index.css +19 -26
- package/dist/components/primary-tablist/mobile.css +42 -32
- package/dist/components/scrollable-container/Component.js +2 -3
- package/dist/components/scrollable-container/index.css +6 -17
- package/dist/components/secondary-tablist/Component.d.ts +1 -0
- package/dist/components/secondary-tablist/Component.desktop.js +3 -3
- package/dist/components/secondary-tablist/Component.js +5 -3
- package/dist/components/secondary-tablist/Component.mobile.js +4 -4
- package/dist/components/secondary-tablist/Component.responsive.js +3 -3
- package/dist/components/secondary-tablist/index.css +12 -17
- package/dist/components/secondary-tablist/mobile.css +36 -23
- package/dist/components/tab/Component.js +1 -1
- package/dist/components/tab/index.css +3 -3
- package/dist/components/tabs/Component.d.ts +1 -1
- package/dist/components/tabs/Component.desktop.d.ts +1 -1
- package/dist/components/tabs/Component.desktop.js +5 -5
- package/dist/components/tabs/Component.js +2 -1
- package/dist/components/tabs/Component.mobile.d.ts +1 -1
- package/dist/components/tabs/Component.mobile.js +5 -5
- package/dist/components/tabs/Component.responsive.d.ts +1 -1
- package/dist/components/tabs/Component.responsive.js +5 -5
- package/dist/cssm/components/primary-tablist/Component.d.ts +1 -0
- package/dist/cssm/components/primary-tablist/Component.desktop.js +2 -2
- package/dist/cssm/components/primary-tablist/Component.js +19 -18
- package/dist/cssm/components/primary-tablist/Component.mobile.js +2 -2
- package/dist/cssm/components/primary-tablist/Component.responsive.js +2 -2
- package/dist/cssm/components/primary-tablist/index.module.css +0 -7
- package/dist/cssm/components/primary-tablist/mobile.module.css +0 -5
- package/dist/cssm/components/scrollable-container/Component.js +1 -2
- package/dist/cssm/components/scrollable-container/index.module.css +4 -15
- package/dist/cssm/components/secondary-tablist/Component.d.ts +1 -0
- package/dist/cssm/components/secondary-tablist/Component.desktop.js +1 -1
- package/dist/cssm/components/secondary-tablist/Component.js +4 -2
- package/dist/cssm/components/secondary-tablist/Component.mobile.js +1 -1
- package/dist/cssm/components/secondary-tablist/Component.responsive.js +1 -1
- package/dist/cssm/components/secondary-tablist/index.module.css +0 -5
- package/dist/cssm/components/secondary-tablist/mobile.module.css +0 -5
- package/dist/cssm/components/tabs/Component.desktop.js +2 -2
- package/dist/cssm/components/tabs/Component.js +2 -1
- package/dist/cssm/components/tabs/Component.mobile.js +2 -2
- package/dist/cssm/components/tabs/Component.responsive.js +2 -2
- package/dist/cssm/desktop.js +3 -3
- package/dist/cssm/index.js +3 -3
- package/dist/cssm/mobile.js +3 -3
- package/dist/cssm/responsive.js +3 -3
- package/dist/cssm/typings.d.ts +2 -1
- package/dist/cssm/useTabs.d.ts +1 -1
- package/dist/cssm/useTabs.js +3 -2
- package/dist/cssm/vars.css +0 -5
- package/dist/desktop.js +6 -6
- package/dist/esm/components/primary-tablist/Component.d.ts +1 -0
- package/dist/esm/components/primary-tablist/Component.desktop.js +4 -4
- package/dist/esm/components/primary-tablist/Component.js +20 -19
- package/dist/esm/components/primary-tablist/Component.mobile.js +5 -5
- package/dist/esm/components/primary-tablist/Component.responsive.js +4 -4
- package/dist/esm/components/primary-tablist/index.css +19 -26
- package/dist/esm/components/primary-tablist/mobile.css +42 -32
- package/dist/esm/components/scrollable-container/Component.js +2 -3
- package/dist/esm/components/scrollable-container/index.css +6 -17
- package/dist/esm/components/secondary-tablist/Component.d.ts +1 -0
- package/dist/esm/components/secondary-tablist/Component.desktop.js +3 -3
- package/dist/esm/components/secondary-tablist/Component.js +5 -3
- package/dist/esm/components/secondary-tablist/Component.mobile.js +4 -4
- package/dist/esm/components/secondary-tablist/Component.responsive.js +3 -3
- package/dist/esm/components/secondary-tablist/index.css +12 -17
- package/dist/esm/components/secondary-tablist/mobile.css +36 -23
- package/dist/esm/components/tab/Component.js +1 -1
- package/dist/esm/components/tab/index.css +3 -3
- package/dist/esm/components/tabs/Component.desktop.js +5 -5
- package/dist/esm/components/tabs/Component.js +2 -1
- package/dist/esm/components/tabs/Component.mobile.js +5 -5
- package/dist/esm/components/tabs/Component.responsive.js +5 -5
- package/dist/esm/desktop.js +5 -5
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.module-84f33b39.js +4 -0
- package/dist/esm/index.module-f3a43121.js +4 -0
- package/dist/esm/mobile.js +5 -5
- package/dist/esm/responsive.js +5 -5
- package/dist/esm/{tslib.es6-67ccff1d.d.ts → tslib.es6-83775305.d.ts} +0 -0
- package/dist/esm/{tslib.es6-67ccff1d.js → tslib.es6-83775305.js} +0 -0
- package/dist/esm/typings.d.ts +2 -1
- package/dist/esm/useTabs.d.ts +1 -1
- package/dist/esm/useTabs.js +3 -2
- package/dist/index.js +6 -6
- package/dist/index.module-0b03a04a.js +6 -0
- package/dist/index.module-85790000.js +6 -0
- package/dist/mobile.js +6 -6
- package/dist/modern/components/primary-tablist/Component.d.ts +1 -0
- package/dist/modern/components/primary-tablist/Component.desktop.js +3 -3
- package/dist/modern/components/primary-tablist/Component.js +13 -11
- package/dist/modern/components/primary-tablist/Component.mobile.js +4 -4
- package/dist/modern/components/primary-tablist/Component.responsive.js +3 -3
- package/dist/modern/components/primary-tablist/index.css +19 -26
- package/dist/modern/components/primary-tablist/mobile.css +42 -32
- package/dist/modern/components/scrollable-container/Component.js +2 -3
- package/dist/modern/components/scrollable-container/index.css +6 -17
- package/dist/modern/components/secondary-tablist/Component.d.ts +1 -0
- package/dist/modern/components/secondary-tablist/Component.desktop.js +2 -2
- package/dist/modern/components/secondary-tablist/Component.js +4 -2
- package/dist/modern/components/secondary-tablist/Component.mobile.js +3 -3
- package/dist/modern/components/secondary-tablist/Component.responsive.js +2 -2
- package/dist/modern/components/secondary-tablist/index.css +12 -17
- package/dist/modern/components/secondary-tablist/mobile.css +36 -23
- package/dist/modern/components/tab/Component.js +1 -1
- package/dist/modern/components/tab/index.css +3 -3
- package/dist/modern/components/tabs/Component.desktop.js +4 -4
- package/dist/modern/components/tabs/Component.js +2 -1
- package/dist/modern/components/tabs/Component.mobile.js +4 -4
- package/dist/modern/components/tabs/Component.responsive.js +4 -4
- package/dist/modern/desktop.js +4 -4
- package/dist/modern/index.js +4 -4
- package/dist/modern/index.module-84f33b39.js +4 -0
- package/dist/modern/index.module-f3a43121.js +4 -0
- package/dist/modern/mobile.js +4 -4
- package/dist/modern/responsive.js +4 -4
- package/dist/modern/typings.d.ts +2 -1
- package/dist/modern/useTabs.d.ts +1 -1
- package/dist/modern/useTabs.js +3 -2
- package/dist/responsive.js +6 -6
- package/dist/{tslib.es6-e9fc155f.d.ts → tslib.es6-38a0729a.d.ts} +0 -0
- package/dist/{tslib.es6-e9fc155f.js → tslib.es6-38a0729a.js} +0 -0
- package/dist/typings.d.ts +2 -1
- package/dist/useTabs.d.ts +1 -1
- package/dist/useTabs.js +3 -2
- package/package.json +3 -3
- package/dist/esm/index.module-0e101b83.js +0 -4
- package/dist/esm/index.module-5a1f671a.js +0 -4
- package/dist/index.module-0aec801b.js +0 -6
- package/dist/index.module-9cc4ad45.js +0 -6
- package/dist/modern/index.module-0e101b83.js +0 -4
- package/dist/modern/index.module-5a1f671a.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1cjc8 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-accent: #ef3124;
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
--color-light-text-primary: #0b1f35;
|
|
7
7
|
--color-light-text-secondary: #546272;
|
|
8
8
|
--color-light-text-tertiary: #b6bcc3;
|
|
9
|
-
|
|
10
|
-
/* TODO: цвета добавлены руками. Обновить токены */
|
|
11
|
-
--color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
|
|
12
9
|
}
|
|
13
10
|
:root {
|
|
14
11
|
|
|
@@ -34,7 +31,6 @@
|
|
|
34
31
|
--disabled-cursor: not-allowed;
|
|
35
32
|
}
|
|
36
33
|
:root {
|
|
37
|
-
--tablist-hidden-scrollbar-height: 20px;
|
|
38
34
|
--primary-tablist-color: var(--color-light-text-secondary);
|
|
39
35
|
--primary-tablist-hover-color: var(--color-light-text-primary);
|
|
40
36
|
--primary-tablist-selected-color: var(--color-light-text-primary);
|
|
@@ -82,10 +78,10 @@
|
|
|
82
78
|
|
|
83
79
|
/* size xl */
|
|
84
80
|
}
|
|
85
|
-
.
|
|
81
|
+
.tabs__component_1zmu4 {
|
|
86
82
|
position: relative
|
|
87
83
|
}
|
|
88
|
-
.
|
|
84
|
+
.tabs__component_1zmu4:before {
|
|
89
85
|
content: '';
|
|
90
86
|
display: block;
|
|
91
87
|
position: absolute;
|
|
@@ -94,11 +90,11 @@
|
|
|
94
90
|
width: 100%;
|
|
95
91
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
96
92
|
}
|
|
97
|
-
.
|
|
93
|
+
.tabs__container_1zmu4 {
|
|
98
94
|
position: relative;
|
|
99
95
|
display: flex;
|
|
100
96
|
}
|
|
101
|
-
.
|
|
97
|
+
.tabs__title_1zmu4 {
|
|
102
98
|
display: flex;
|
|
103
99
|
align-items: center;
|
|
104
100
|
height: 100%;
|
|
@@ -116,22 +112,22 @@
|
|
|
116
112
|
cursor: pointer;
|
|
117
113
|
outline: none
|
|
118
114
|
}
|
|
119
|
-
.
|
|
115
|
+
.tabs__title_1zmu4:not(.tabs__disabled_1zmu4):hover {
|
|
120
116
|
color: var(--primary-tablist-hover-color);
|
|
121
117
|
}
|
|
122
|
-
.
|
|
118
|
+
.tabs__focused_1zmu4 {
|
|
123
119
|
outline: 2px solid var(--focus-color);
|
|
124
120
|
outline-offset: 2px;
|
|
125
121
|
}
|
|
126
|
-
.
|
|
122
|
+
.tabs__selected_1zmu4 {
|
|
127
123
|
cursor: default;
|
|
128
124
|
color: var(--primary-tablist-selected-color);
|
|
129
125
|
}
|
|
130
|
-
.
|
|
126
|
+
.tabs__disabled_1zmu4 {
|
|
131
127
|
cursor: var(--disabled-cursor);
|
|
132
128
|
color: var(--primary-tablist-disabled-color);
|
|
133
129
|
}
|
|
134
|
-
.
|
|
130
|
+
.tabs__line_1zmu4 {
|
|
135
131
|
position: absolute;
|
|
136
132
|
height: 3px;
|
|
137
133
|
bottom: 0;
|
|
@@ -139,50 +135,47 @@
|
|
|
139
135
|
background-color: var(--primary-tablist-line-color);
|
|
140
136
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
141
137
|
}
|
|
142
|
-
.tabs__scrollable_1ukcm .tabs__line_1ukcm {
|
|
143
|
-
bottom: var(--tablist-hidden-scrollbar-height);
|
|
144
|
-
}
|
|
145
138
|
/* sizes */
|
|
146
|
-
.
|
|
139
|
+
.tabs__s_1zmu4 .tabs__title_1zmu4 {
|
|
147
140
|
padding: var(--primary-tablist-s-padding);
|
|
148
141
|
font-size: var(--primary-tablist-s-font-size);
|
|
149
142
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
150
143
|
font-family: var(--primary-tablist-s-font-family);
|
|
151
144
|
line-height: 24px;
|
|
152
145
|
}
|
|
153
|
-
.
|
|
146
|
+
.tabs__s_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
154
147
|
margin-left: var(--primary-tablist-s-gaps);
|
|
155
148
|
}
|
|
156
|
-
.
|
|
149
|
+
.tabs__m_1zmu4 .tabs__title_1zmu4 {
|
|
157
150
|
padding: var(--primary-tablist-m-padding);
|
|
158
151
|
font-size: var(--primary-tablist-m-font-size);
|
|
159
152
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
160
153
|
font-family: var(--primary-tablist-m-font-family);
|
|
161
154
|
line-height: 24px;
|
|
162
155
|
}
|
|
163
|
-
.
|
|
156
|
+
.tabs__m_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
164
157
|
margin-left: var(--primary-tablist-m-gaps);
|
|
165
158
|
}
|
|
166
|
-
.
|
|
159
|
+
.tabs__l_1zmu4 .tabs__title_1zmu4 {
|
|
167
160
|
padding: var(--primary-tablist-l-padding);
|
|
168
161
|
font-size: var(--primary-tablist-l-font-size);
|
|
169
162
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
170
163
|
font-family: var(--primary-tablist-l-font-family);
|
|
171
164
|
line-height: 24px;
|
|
172
165
|
}
|
|
173
|
-
.
|
|
166
|
+
.tabs__l_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
174
167
|
margin-left: var(--primary-tablist-l-gaps);
|
|
175
168
|
}
|
|
176
|
-
.
|
|
169
|
+
.tabs__xl_1zmu4 .tabs__title_1zmu4 {
|
|
177
170
|
padding: var(--primary-tablist-xl-padding);
|
|
178
171
|
font-size: var(--primary-tablist-xl-font-size);
|
|
179
172
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
180
173
|
font-family: var(--primary-tablist-xl-font-family);
|
|
181
174
|
line-height: 32px;
|
|
182
175
|
}
|
|
183
|
-
.
|
|
176
|
+
.tabs__xl_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
184
177
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
185
178
|
}
|
|
186
|
-
.
|
|
179
|
+
.tabs__rightAddons_1zmu4 {
|
|
187
180
|
margin-left: var(--gap-xs);
|
|
188
181
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1sue5 */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -8,9 +8,6 @@
|
|
|
8
8
|
--color-light-text-primary: #0b1f35;
|
|
9
9
|
--color-light-text-secondary: #546272;
|
|
10
10
|
--color-light-text-tertiary: #b6bcc3;
|
|
11
|
-
|
|
12
|
-
/* TODO: цвета добавлены руками. Обновить токены */
|
|
13
|
-
--color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
|
|
14
11
|
}:root {
|
|
15
12
|
}:root {
|
|
16
13
|
|
|
@@ -34,7 +31,6 @@
|
|
|
34
31
|
--focus-color: var(--color-light-border-link);
|
|
35
32
|
--disabled-cursor: not-allowed;
|
|
36
33
|
}:root {
|
|
37
|
-
--tablist-hidden-scrollbar-height: 20px;
|
|
38
34
|
--primary-tablist-color: var(--color-light-text-secondary);
|
|
39
35
|
--primary-tablist-hover-color: var(--color-light-text-primary);
|
|
40
36
|
--primary-tablist-selected-color: var(--color-light-text-primary);
|
|
@@ -86,9 +82,9 @@
|
|
|
86
82
|
/* size l */
|
|
87
83
|
|
|
88
84
|
/* size xl */
|
|
89
|
-
}.
|
|
85
|
+
}.tabs__component_1zmu4 {
|
|
90
86
|
position: relative
|
|
91
|
-
}.
|
|
87
|
+
}.tabs__component_1zmu4:before {
|
|
92
88
|
content: '';
|
|
93
89
|
display: block;
|
|
94
90
|
position: absolute;
|
|
@@ -96,10 +92,10 @@
|
|
|
96
92
|
height: 1px;
|
|
97
93
|
width: 100%;
|
|
98
94
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
99
|
-
}.
|
|
95
|
+
}.tabs__container_1zmu4 {
|
|
100
96
|
position: relative;
|
|
101
97
|
display: flex;
|
|
102
|
-
}.
|
|
98
|
+
}.tabs__title_1zmu4 {
|
|
103
99
|
display: flex;
|
|
104
100
|
align-items: center;
|
|
105
101
|
height: 100%;
|
|
@@ -116,59 +112,57 @@
|
|
|
116
112
|
user-select: none;
|
|
117
113
|
cursor: pointer;
|
|
118
114
|
outline: none
|
|
119
|
-
}.
|
|
115
|
+
}.tabs__title_1zmu4:not(.tabs__disabled_1zmu4):hover {
|
|
120
116
|
color: var(--primary-tablist-hover-color);
|
|
121
|
-
}.
|
|
117
|
+
}.tabs__focused_1zmu4 {
|
|
122
118
|
outline: 2px solid var(--focus-color);
|
|
123
119
|
outline-offset: 2px;
|
|
124
|
-
}.
|
|
120
|
+
}.tabs__selected_1zmu4 {
|
|
125
121
|
cursor: default;
|
|
126
122
|
color: var(--primary-tablist-selected-color);
|
|
127
|
-
}.
|
|
123
|
+
}.tabs__disabled_1zmu4 {
|
|
128
124
|
cursor: var(--disabled-cursor);
|
|
129
125
|
color: var(--primary-tablist-disabled-color);
|
|
130
|
-
}.
|
|
126
|
+
}.tabs__line_1zmu4 {
|
|
131
127
|
position: absolute;
|
|
132
128
|
height: 3px;
|
|
133
129
|
bottom: 0;
|
|
134
130
|
left: 0;
|
|
135
131
|
background-color: var(--primary-tablist-line-color);
|
|
136
132
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
137
|
-
}
|
|
138
|
-
bottom: var(--tablist-hidden-scrollbar-height);
|
|
139
|
-
}/* sizes */.tabs__s_1ukcm .tabs__title_1ukcm {
|
|
133
|
+
}/* sizes */.tabs__s_1zmu4 .tabs__title_1zmu4 {
|
|
140
134
|
padding: var(--primary-tablist-s-padding);
|
|
141
135
|
font-size: var(--primary-tablist-s-font-size);
|
|
142
136
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
143
137
|
font-family: var(--primary-tablist-s-font-family);
|
|
144
138
|
line-height: 24px;
|
|
145
|
-
}.
|
|
139
|
+
}.tabs__s_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
146
140
|
margin-left: var(--primary-tablist-s-gaps);
|
|
147
|
-
}.
|
|
141
|
+
}.tabs__m_1zmu4 .tabs__title_1zmu4 {
|
|
148
142
|
padding: var(--primary-tablist-m-padding);
|
|
149
143
|
font-size: var(--primary-tablist-m-font-size);
|
|
150
144
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
151
145
|
font-family: var(--primary-tablist-m-font-family);
|
|
152
146
|
line-height: 24px;
|
|
153
|
-
}.
|
|
147
|
+
}.tabs__m_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
154
148
|
margin-left: var(--primary-tablist-m-gaps);
|
|
155
|
-
}.
|
|
149
|
+
}.tabs__l_1zmu4 .tabs__title_1zmu4 {
|
|
156
150
|
padding: var(--primary-tablist-l-padding);
|
|
157
151
|
font-size: var(--primary-tablist-l-font-size);
|
|
158
152
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
159
153
|
font-family: var(--primary-tablist-l-font-family);
|
|
160
154
|
line-height: 24px;
|
|
161
|
-
}.
|
|
155
|
+
}.tabs__l_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
162
156
|
margin-left: var(--primary-tablist-l-gaps);
|
|
163
|
-
}.
|
|
157
|
+
}.tabs__xl_1zmu4 .tabs__title_1zmu4 {
|
|
164
158
|
padding: var(--primary-tablist-xl-padding);
|
|
165
159
|
font-size: var(--primary-tablist-xl-font-size);
|
|
166
160
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
167
161
|
font-family: var(--primary-tablist-xl-font-family);
|
|
168
162
|
line-height: 32px;
|
|
169
|
-
}.
|
|
163
|
+
}.tabs__xl_1zmu4 .tabs__title_1zmu4 + .tabs__title_1zmu4 {
|
|
170
164
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
171
|
-
}.
|
|
165
|
+
}.tabs__rightAddons_1zmu4 {
|
|
172
166
|
margin-left: var(--gap-xs);
|
|
173
167
|
}
|
|
174
168
|
:root {
|
|
@@ -321,6 +315,8 @@
|
|
|
321
315
|
--color-dark-border-secondary-inverted: #6d7986;
|
|
322
316
|
--color-dark-border-tertiary: #233549;
|
|
323
317
|
--color-dark-border-tertiary-inverted: #b6bcc3;
|
|
318
|
+
--color-dark-border-underline: #6d7986;
|
|
319
|
+
--color-dark-border-underline-inverted: #b6bcc3;
|
|
324
320
|
--color-dark-graphic-accent: #ef3124;
|
|
325
321
|
--color-dark-graphic-attention: #e58933;
|
|
326
322
|
--color-dark-graphic-link: #007aff;
|
|
@@ -333,6 +329,7 @@
|
|
|
333
329
|
--color-dark-graphic-secondary-inverted: #233549;
|
|
334
330
|
--color-dark-graphic-tertiary: #6d7986;
|
|
335
331
|
--color-dark-specialbg-component: #485767;
|
|
332
|
+
--color-dark-specialbg-component-inverted: rgba(11, 31, 53, 0.07);
|
|
336
333
|
--color-dark-specialbg-nulled: rgba(11, 31, 53, 0);
|
|
337
334
|
--color-dark-specialbg-primary-grouped: #0b1f35;
|
|
338
335
|
--color-dark-specialbg-secondary-grouped: #233549;
|
|
@@ -377,6 +374,8 @@
|
|
|
377
374
|
--color-light-border-secondary-inverted: #b6bcc3;
|
|
378
375
|
--color-light-border-tertiary: #f3f4f5;
|
|
379
376
|
--color-light-border-tertiary-inverted: #6d7986;
|
|
377
|
+
--color-light-border-underline: #b6bcc3;
|
|
378
|
+
--color-light-border-underline-inverted: #6d7986;
|
|
380
379
|
--color-light-graphic-accent: #ef3124;
|
|
381
380
|
--color-light-graphic-attention: #e58933;
|
|
382
381
|
--color-light-graphic-link: #007aff;
|
|
@@ -441,6 +440,7 @@
|
|
|
441
440
|
--color-dark-bg-neutral-tint-10: rgb(90, 104, 118);
|
|
442
441
|
--color-dark-bg-neutral-tint-15: rgb(99, 112, 126);
|
|
443
442
|
--color-dark-bg-neutral-tint-30: rgb(127, 137, 149);
|
|
443
|
+
--color-dark-bg-primary-alpha-8: rgba(11, 31, 53, 0.08);
|
|
444
444
|
--color-dark-bg-primary-inverted-alpha-3: rgba(255, 255, 255, 0.03);
|
|
445
445
|
--color-dark-bg-primary-inverted-alpha-7: rgba(255, 255, 255, 0.07);
|
|
446
446
|
--color-dark-bg-primary-inverted-alpha-10: rgba(255, 255, 255, 0.1);
|
|
@@ -472,6 +472,7 @@
|
|
|
472
472
|
--color-dark-specialbg-component-tint-7: rgb(85, 99, 114);
|
|
473
473
|
--color-dark-specialbg-component-tint-10: rgb(90, 104, 118);
|
|
474
474
|
--color-dark-specialbg-component-tint-30: rgb(127, 137, 149);
|
|
475
|
+
--color-dark-specialbg-component-inverted-shade-15: rgba(9, 26, 45, 0.2095);
|
|
475
476
|
--color-dark-text-link-shade-30: rgb(0, 85, 179);
|
|
476
477
|
--color-dark-text-link-shade-50: rgb(0, 61, 128);
|
|
477
478
|
--color-dark-text-link-tint-20: rgb(51, 149, 255);
|
|
@@ -481,10 +482,15 @@
|
|
|
481
482
|
--color-dark-text-primary-shade-50: rgb(128, 128, 128);
|
|
482
483
|
--color-dark-text-primary-tint-20: rgb(255, 255, 255);
|
|
483
484
|
--color-dark-text-primary-tint-40: rgb(255, 255, 255);
|
|
485
|
+
--color-dark-text-primary-inverted-alpha-40: rgba(11, 31, 53, 0.4);
|
|
486
|
+
--color-dark-text-primary-inverted-shade-30: rgb(8, 22, 37);
|
|
487
|
+
--color-dark-text-primary-inverted-shade-50: rgb(6, 16, 26);
|
|
484
488
|
--color-dark-text-secondary-shade-30: rgb(127, 132, 136);
|
|
485
489
|
--color-dark-text-secondary-shade-50: rgb(91, 94, 98);
|
|
486
490
|
--color-dark-text-secondary-tint-20: rgb(197, 201, 207);
|
|
487
491
|
--color-dark-text-secondary-tint-40: rgb(211, 215, 219);
|
|
492
|
+
--color-dark-text-secondary-inverted-shade-30: rgb(76, 85, 94);
|
|
493
|
+
--color-dark-text-secondary-inverted-shade-50: rgb(55, 61, 67);
|
|
488
494
|
--color-light-bg-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
489
495
|
--color-light-bg-accent-shade-7: rgb(222, 46, 33);
|
|
490
496
|
--color-light-bg-accent-shade-10: rgb(215, 44, 32);
|
|
@@ -495,12 +501,14 @@
|
|
|
495
501
|
--color-light-bg-neutral-shade-10: rgb(197, 200, 203);
|
|
496
502
|
--color-light-bg-neutral-shade-15: rgb(186, 189, 191);
|
|
497
503
|
--color-light-bg-neutral-shade-30: rgb(153, 155, 157);
|
|
504
|
+
--color-light-bg-primary-alpha-8: rgba(255, 255, 255, 0.08);
|
|
498
505
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
499
506
|
--color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
|
|
500
507
|
--color-light-bg-primary-inverted-alpha-10: rgba(11, 31, 53, 0.1);
|
|
501
508
|
--color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
|
|
502
509
|
--color-light-bg-primary-inverted-alpha-20: rgba(11, 31, 53, 0.2);
|
|
503
510
|
--color-light-bg-primary-inverted-alpha-40: rgba(11, 31, 53, 0.4);
|
|
511
|
+
--color-light-bg-primary-inverted-alpha-50: rgba(11, 31, 53, 0.5);
|
|
504
512
|
--color-light-bg-secondary-inverted-alpha-7: rgba(35, 53, 73, 0.07);
|
|
505
513
|
--color-light-bg-secondary-inverted-alpha-15: rgba(35, 53, 73, 0.15);
|
|
506
514
|
--color-light-bg-tertiary-shade-7: rgb(215, 217, 219);
|
|
@@ -536,14 +544,17 @@
|
|
|
536
544
|
--color-light-text-primary-tint-50: rgb(133, 143, 154);
|
|
537
545
|
--color-light-text-primary-shade-20: rgb(9, 25, 42);
|
|
538
546
|
--color-light-text-primary-shade-40: rgb(7, 19, 32);
|
|
547
|
+
--color-light-text-primary-inverted-alpha-40: rgba(255, 255, 255, 0.4);
|
|
548
|
+
--color-light-text-primary-inverted-tint-30: rgb(255, 255, 255);
|
|
549
|
+
--color-light-text-primary-inverted-tint-50: rgb(255, 255, 255);
|
|
539
550
|
--color-light-text-secondary-tint-30: rgb(135, 145, 156);
|
|
540
551
|
--color-light-text-secondary-tint-50: rgb(170, 177, 185);
|
|
541
552
|
--color-light-text-secondary-shade-20: rgb(67, 78, 91);
|
|
542
553
|
--color-light-text-secondary-shade-40: rgb(50, 59, 68);
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
--color-
|
|
546
|
-
--color-
|
|
554
|
+
--color-light-text-secondary-inverted-tint-30: rgb(204, 208, 213);
|
|
555
|
+
--color-light-text-secondary-inverted-tint-50: rgb(219, 222, 225);
|
|
556
|
+
--color-static-bg-primary-dark-alpha-10: rgba(0, 0, 0, 0.1);
|
|
557
|
+
--color-static-bg-primary-dark-alpha-20: rgba(0, 0, 0, 0.2);
|
|
547
558
|
}
|
|
548
559
|
:root {
|
|
549
560
|
--color-dynamic-primary-dark: rgba(0, 0, 0, 0.8);
|
|
@@ -666,7 +677,6 @@
|
|
|
666
677
|
--size-xl-height: 72px;
|
|
667
678
|
}
|
|
668
679
|
:root {
|
|
669
|
-
--tablist-hidden-scrollbar-height: 20px;
|
|
670
680
|
--primary-tablist-color: var(--color-light-text-secondary);
|
|
671
681
|
--primary-tablist-hover-color: var(--color-light-text-primary);
|
|
672
682
|
--primary-tablist-selected-color: var(--color-light-text-primary);
|
|
@@ -724,7 +734,7 @@
|
|
|
724
734
|
/* size xl */
|
|
725
735
|
--secondary-tablist-xl-gaps: var(--gap-s);
|
|
726
736
|
}
|
|
727
|
-
.
|
|
737
|
+
.tabs__title_1s7oj {
|
|
728
738
|
|
|
729
739
|
padding: var(--primary-tablist-mobile-padding);
|
|
730
740
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
@@ -732,6 +742,6 @@
|
|
|
732
742
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
733
743
|
line-height: 24px
|
|
734
744
|
}
|
|
735
|
-
.
|
|
745
|
+
.tabs__title_1s7oj + .tabs__title_1s7oj {
|
|
736
746
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
737
747
|
}
|
|
@@ -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 = {"
|
|
5
|
+
var styles = {"container":"tabs__container_110wk"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var ScrollableContainer = function (_a) {
|
|
@@ -22,8 +22,7 @@ var ScrollableContainer = function (_a) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
}, [activeChild]);
|
|
25
|
-
return
|
|
26
|
-
React.createElement("div", { className: cn(styles.container, containerClassName) }, children)));
|
|
25
|
+
return React.createElement("div", { className: cn(styles.container, containerClassName) }, children);
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
export { ScrollableContainer };
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
3
|
-
|
|
4
|
-
/* TODO: цвета добавлены руками. Обновить токены */
|
|
5
|
-
--color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
|
|
6
|
-
}
|
|
1
|
+
/* hash: 6y7dd */
|
|
7
2
|
:root {
|
|
8
3
|
|
|
9
4
|
/* Hard */
|
|
@@ -13,7 +8,6 @@
|
|
|
13
8
|
/* Hard up */
|
|
14
9
|
}
|
|
15
10
|
:root {
|
|
16
|
-
--tablist-hidden-scrollbar-height: 20px;
|
|
17
11
|
|
|
18
12
|
/* mobile */
|
|
19
13
|
|
|
@@ -35,19 +29,14 @@
|
|
|
35
29
|
|
|
36
30
|
/* size xl */
|
|
37
31
|
}
|
|
38
|
-
.
|
|
39
|
-
overflow: hidden
|
|
40
|
-
}
|
|
41
|
-
.tabs__component_oz7r0:after {
|
|
42
|
-
content: '';
|
|
43
|
-
display: block;
|
|
44
|
-
margin-bottom: calc(var(--tablist-hidden-scrollbar-height) * -1);
|
|
45
|
-
}
|
|
46
|
-
.tabs__container_oz7r0 {
|
|
32
|
+
.tabs__container_110wk {
|
|
47
33
|
position: relative;
|
|
48
34
|
display: flex;
|
|
49
35
|
align-items: center;
|
|
50
36
|
overflow-x: auto;
|
|
51
37
|
overflow-y: hidden;
|
|
52
|
-
|
|
38
|
+
scrollbar-width: none
|
|
53
39
|
}
|
|
40
|
+
.tabs__container_110wk::-webkit-scrollbar {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
@@ -7,6 +7,7 @@ declare const SecondaryTabList: ({ styles, className, containerClassName, size,
|
|
|
7
7
|
id: React.ReactText;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
rightAddons?: React.ReactNode;
|
|
10
|
+
hidden?: boolean | undefined;
|
|
10
11
|
}[] | undefined;
|
|
11
12
|
} & {
|
|
12
13
|
tagSize?: "xs" | "s" | "m" | "l" | "xl" | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-83775305.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../../useTabs.js';
|
|
5
4
|
import 'compute-scroll-into-view';
|
|
6
5
|
import '../scrollable-container/Component.js';
|
|
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-f3a43121.js';
|
|
10
10
|
|
|
11
11
|
var SecondaryTabListDesktop = function (_a) {
|
|
12
12
|
var _b = _a.size, size = _b === void 0 ? 'm' : _b, restProps = __rest(_a, ["size"]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-83775305.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import { useTabs } from '../../useTabs.js';
|
|
5
4
|
import 'compute-scroll-into-view';
|
|
6
5
|
import { ScrollableContainer } from '../scrollable-container/Component.js';
|
|
6
|
+
import { useTabs } from '../../useTabs.js';
|
|
7
7
|
import { Tag } from '@alfalab/core-components-tag/dist/esm';
|
|
8
8
|
|
|
9
9
|
var SecondaryTabList = function (_a) {
|
|
@@ -14,7 +14,9 @@ var SecondaryTabList = function (_a) {
|
|
|
14
14
|
onChange: onChange,
|
|
15
15
|
}), focusedTab = _g.focusedTab, selectedTab = _g.selectedTab, getTabListItemProps = _g.getTabListItemProps;
|
|
16
16
|
var renderContent = function () {
|
|
17
|
-
return titles
|
|
17
|
+
return titles
|
|
18
|
+
.filter(function (item) { return !item.hidden; })
|
|
19
|
+
.map(function (item, index) { return (React.createElement(Tag, __assign({}, getTabListItemProps(index), { key: item.id, className: styles.title, checked: item.id === selectedId, size: tagSize, rightAddons: item.rightAddons }), item.title)); });
|
|
18
20
|
};
|
|
19
21
|
return (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(styles.component, className, size && styles[size]) }, scrollable ? (React.createElement(ScrollableContainer, { activeChild: focusedTab || selectedTab, containerClassName: containerClassName }, renderContent())) : (React.createElement("div", { className: cn(styles.container, containerClassName) }, renderContent()))));
|
|
20
22
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-83775305.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import '../../useTabs.js';
|
|
5
4
|
import 'compute-scroll-into-view';
|
|
6
5
|
import '../scrollable-container/Component.js';
|
|
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-f3a43121.js';
|
|
10
10
|
|
|
11
|
-
var mobileStyles = {"title":"
|
|
11
|
+
var mobileStyles = {"title":"tabs__title_zfkg5 tabs__title_135d1","mobile":"tabs__mobile_zfkg5"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
14
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-83775305.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../../useTabs.js';
|
|
5
4
|
import 'compute-scroll-into-view';
|
|
6
5
|
import '../scrollable-container/Component.js';
|
|
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-f3a43121.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,9 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
3
|
-
|
|
4
|
-
/* TODO: цвета добавлены руками. Обновить токены */
|
|
5
|
-
--color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
|
|
6
|
-
}
|
|
1
|
+
/* hash: 1vzpv */
|
|
7
2
|
:root {
|
|
8
3
|
|
|
9
4
|
/* Hard */
|
|
@@ -47,40 +42,40 @@
|
|
|
47
42
|
/* size xl */
|
|
48
43
|
--secondary-tablist-xl-gaps: var(--gap-s);
|
|
49
44
|
}
|
|
50
|
-
.
|
|
45
|
+
.tabs__component_135d1 {
|
|
51
46
|
position: relative;
|
|
52
47
|
display: flex;
|
|
53
48
|
align-items: center;
|
|
54
49
|
}
|
|
55
|
-
.
|
|
50
|
+
.tabs__container_135d1 {
|
|
56
51
|
display: flex;
|
|
57
52
|
align-items: center;
|
|
58
53
|
}
|
|
59
|
-
.
|
|
54
|
+
.tabs__title_135d1 {
|
|
60
55
|
white-space: nowrap;
|
|
61
56
|
}
|
|
62
57
|
/* sizes */
|
|
63
|
-
.
|
|
58
|
+
.tabs__s_135d1 {
|
|
64
59
|
height: var(--size-s-height)
|
|
65
60
|
}
|
|
66
|
-
.
|
|
61
|
+
.tabs__s_135d1 .tabs__title_135d1 + .tabs__title_135d1 {
|
|
67
62
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
68
63
|
}
|
|
69
|
-
.
|
|
64
|
+
.tabs__m_135d1 {
|
|
70
65
|
height: var(--size-m-height)
|
|
71
66
|
}
|
|
72
|
-
.
|
|
67
|
+
.tabs__m_135d1 .tabs__title_135d1 + .tabs__title_135d1 {
|
|
73
68
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
69
|
}
|
|
75
|
-
.
|
|
70
|
+
.tabs__l_135d1 {
|
|
76
71
|
height: var(--size-l-height)
|
|
77
72
|
}
|
|
78
|
-
.
|
|
73
|
+
.tabs__l_135d1 .tabs__title_135d1 + .tabs__title_135d1 {
|
|
79
74
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
80
75
|
}
|
|
81
|
-
.
|
|
76
|
+
.tabs__xl_135d1 {
|
|
82
77
|
height: var(--size-xl-height)
|
|
83
78
|
}
|
|
84
|
-
.
|
|
79
|
+
.tabs__xl_135d1 .tabs__title_135d1 + .tabs__title_135d1 {
|
|
85
80
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
86
81
|
}
|