@alfalab/core-components-tabs 7.1.1 → 7.2.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/components/primary-tablist/Component.d.ts +2 -4
- package/components/primary-tablist/Component.desktop.js +12 -4
- package/components/primary-tablist/Component.js +42 -21
- package/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/components/primary-tablist/Component.mobile.js +13 -5
- package/components/primary-tablist/Component.responsive.d.ts +1 -1
- package/components/primary-tablist/Component.responsive.js +14 -7
- package/components/primary-tablist/index.css +53 -22
- package/components/primary-tablist/mobile.css +99 -69
- package/components/scrollable-container/Component.d.ts +1 -1
- package/components/scrollable-container/Component.js +4 -2
- package/components/scrollable-container/index.css +5 -5
- package/components/secondary-tablist/Component.d.ts +2 -6
- package/components/secondary-tablist/Component.desktop.d.ts +1 -1
- package/components/secondary-tablist/Component.desktop.js +3 -3
- package/components/secondary-tablist/Component.js +3 -3
- package/components/secondary-tablist/Component.mobile.d.ts +1 -1
- package/components/secondary-tablist/Component.mobile.js +4 -4
- package/components/secondary-tablist/Component.responsive.js +4 -4
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +65 -57
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.d.ts +1 -1
- package/components/tabs/Component.desktop.d.ts +1 -1
- package/components/tabs/Component.desktop.js +13 -5
- package/components/tabs/Component.js +2 -2
- package/components/tabs/Component.mobile.d.ts +2 -2
- package/components/tabs/Component.mobile.js +13 -5
- package/components/tabs/Component.responsive.d.ts +1 -1
- package/components/tabs/Component.responsive.js +13 -6
- package/components/title/Component.d.ts +8 -0
- package/components/title/Component.js +27 -0
- package/components/title/index.d.ts +1 -0
- package/components/title/index.js +12 -0
- package/cssm/components/primary-tablist/Component.d.ts +2 -4
- package/cssm/components/primary-tablist/Component.desktop.js +11 -3
- package/cssm/components/primary-tablist/Component.js +42 -21
- package/cssm/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.mobile.js +11 -3
- package/cssm/components/primary-tablist/Component.responsive.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.responsive.js +13 -6
- package/cssm/components/primary-tablist/index.module.css +33 -2
- package/cssm/components/scrollable-container/Component.d.ts +1 -1
- package/cssm/components/scrollable-container/Component.js +3 -1
- package/cssm/components/secondary-tablist/Component.d.ts +2 -6
- package/cssm/components/secondary-tablist/Component.desktop.d.ts +1 -1
- package/cssm/components/secondary-tablist/Component.desktop.js +2 -2
- package/cssm/components/secondary-tablist/Component.js +3 -3
- package/cssm/components/secondary-tablist/Component.mobile.d.ts +1 -1
- package/cssm/components/secondary-tablist/Component.mobile.js +2 -2
- package/cssm/components/secondary-tablist/Component.responsive.js +3 -3
- package/cssm/components/tabs/Component.d.ts +1 -1
- package/cssm/components/tabs/Component.desktop.d.ts +1 -1
- package/cssm/components/tabs/Component.desktop.js +11 -3
- package/cssm/components/tabs/Component.js +2 -2
- package/cssm/components/tabs/Component.mobile.d.ts +2 -2
- package/cssm/components/tabs/Component.mobile.js +11 -3
- package/cssm/components/tabs/Component.responsive.d.ts +1 -1
- package/cssm/components/tabs/Component.responsive.js +11 -4
- package/cssm/components/title/Component.d.ts +8 -0
- package/cssm/components/title/Component.js +27 -0
- package/cssm/components/title/index.d.ts +1 -0
- package/cssm/components/title/index.js +12 -0
- package/cssm/desktop.d.ts +2 -1
- package/cssm/desktop.js +13 -4
- package/cssm/hooks/use-collapsible-elements.d.ts +8 -0
- package/cssm/hooks/use-collapsible-elements.js +56 -0
- package/cssm/hooks/use-tablist-titles.d.ts +28 -0
- package/cssm/hooks/use-tablist-titles.js +45 -0
- package/{esm/useTabs.d.ts → cssm/hooks/use-tabs.d.ts} +1 -1
- package/cssm/{useTabs.js → hooks/use-tabs.js} +0 -0
- package/cssm/index.d.ts +1 -1
- package/cssm/index.js +12 -5
- package/cssm/mobile.d.ts +1 -1
- package/cssm/mobile.js +12 -4
- package/cssm/responsive.d.ts +2 -1
- package/cssm/responsive.js +13 -5
- package/cssm/synthetic-events.d.ts +6 -0
- package/cssm/synthetic-events.js +47 -0
- package/cssm/{tslib.es6-ce870b46.d.ts → tslib.es6-0857346e.d.ts} +8 -4
- package/cssm/{tslib.es6-ce870b46.js → tslib.es6-0857346e.js} +13 -1
- package/cssm/typings.d.ts +13 -2
- package/desktop.d.ts +2 -1
- package/desktop.js +15 -6
- package/esm/components/primary-tablist/Component.d.ts +2 -4
- package/esm/components/primary-tablist/Component.desktop.js +12 -4
- package/esm/components/primary-tablist/Component.js +43 -22
- package/esm/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +13 -5
- package/esm/components/primary-tablist/Component.responsive.d.ts +1 -1
- package/esm/components/primary-tablist/Component.responsive.js +14 -7
- package/esm/components/primary-tablist/index.css +53 -22
- package/esm/components/primary-tablist/mobile.css +99 -69
- package/esm/components/scrollable-container/Component.d.ts +1 -1
- package/esm/components/scrollable-container/Component.js +4 -2
- package/esm/components/scrollable-container/index.css +5 -5
- package/esm/components/secondary-tablist/Component.d.ts +2 -6
- package/esm/components/secondary-tablist/Component.desktop.d.ts +1 -1
- package/esm/components/secondary-tablist/Component.desktop.js +3 -3
- package/esm/components/secondary-tablist/Component.js +2 -2
- package/esm/components/secondary-tablist/Component.mobile.d.ts +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +4 -4
- package/esm/components/secondary-tablist/Component.responsive.js +4 -4
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +65 -57
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.d.ts +1 -1
- package/esm/components/tabs/Component.desktop.d.ts +1 -1
- package/esm/components/tabs/Component.desktop.js +13 -5
- package/esm/components/tabs/Component.js +2 -2
- package/esm/components/tabs/Component.mobile.d.ts +2 -2
- package/esm/components/tabs/Component.mobile.js +13 -5
- package/esm/components/tabs/Component.responsive.d.ts +1 -1
- package/esm/components/tabs/Component.responsive.js +13 -6
- package/esm/components/title/Component.d.ts +8 -0
- package/esm/components/title/Component.js +18 -0
- package/esm/components/title/index.d.ts +1 -0
- package/esm/components/title/index.js +4 -0
- package/esm/desktop.d.ts +2 -1
- package/esm/desktop.js +13 -5
- package/esm/hooks/use-collapsible-elements.d.ts +8 -0
- package/esm/hooks/use-collapsible-elements.js +52 -0
- package/esm/hooks/use-tablist-titles.d.ts +28 -0
- package/esm/hooks/use-tablist-titles.js +41 -0
- package/{modern/useTabs.d.ts → esm/hooks/use-tabs.d.ts} +1 -1
- package/esm/{useTabs.js → hooks/use-tabs.js} +0 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +13 -6
- package/esm/index.module-01d292c0.js +4 -0
- package/esm/index.module-16a12061.js +4 -0
- package/esm/mobile.d.ts +1 -1
- package/esm/mobile.js +13 -5
- package/esm/responsive.d.ts +2 -1
- package/esm/responsive.js +13 -6
- package/esm/synthetic-events.d.ts +6 -0
- package/esm/synthetic-events.js +41 -0
- package/{tslib.es6-fcb75541.d.ts → esm/tslib.es6-e74e5c93.d.ts} +8 -4
- package/esm/{tslib.es6-444ae64e.js → tslib.es6-e74e5c93.js} +13 -2
- package/esm/typings.d.ts +13 -2
- package/hooks/use-collapsible-elements.d.ts +8 -0
- package/hooks/use-collapsible-elements.js +56 -0
- package/hooks/use-tablist-titles.d.ts +28 -0
- package/hooks/use-tablist-titles.js +45 -0
- package/{cssm/useTabs.d.ts → hooks/use-tabs.d.ts} +1 -1
- package/{useTabs.js → hooks/use-tabs.js} +0 -0
- package/index.d.ts +1 -1
- package/index.js +14 -7
- package/index.module-370f6bd7.js +6 -0
- package/index.module-872dcef9.js +6 -0
- package/mobile.d.ts +1 -1
- package/mobile.js +14 -6
- package/modern/components/primary-tablist/Component.d.ts +2 -4
- package/modern/components/primary-tablist/Component.desktop.js +12 -4
- package/modern/components/primary-tablist/Component.js +38 -17
- package/modern/components/primary-tablist/Component.mobile.d.ts +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +13 -5
- package/modern/components/primary-tablist/Component.responsive.d.ts +1 -1
- package/modern/components/primary-tablist/Component.responsive.js +13 -6
- package/modern/components/primary-tablist/index.css +53 -22
- package/modern/components/primary-tablist/mobile.css +99 -69
- package/modern/components/scrollable-container/Component.d.ts +1 -1
- package/modern/components/scrollable-container/Component.js +4 -2
- package/modern/components/scrollable-container/index.css +5 -5
- package/modern/components/secondary-tablist/Component.d.ts +2 -6
- package/modern/components/secondary-tablist/Component.desktop.d.ts +1 -1
- package/modern/components/secondary-tablist/Component.desktop.js +3 -3
- package/modern/components/secondary-tablist/Component.js +2 -2
- package/modern/components/secondary-tablist/Component.mobile.d.ts +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +4 -4
- package/modern/components/secondary-tablist/Component.responsive.js +4 -4
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +65 -57
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.d.ts +1 -1
- package/modern/components/tabs/Component.desktop.d.ts +1 -1
- package/modern/components/tabs/Component.desktop.js +13 -5
- package/modern/components/tabs/Component.js +4 -4
- package/modern/components/tabs/Component.mobile.d.ts +2 -2
- package/modern/components/tabs/Component.mobile.js +13 -5
- package/modern/components/tabs/Component.responsive.d.ts +1 -1
- package/modern/components/tabs/Component.responsive.js +13 -6
- package/modern/components/title/Component.d.ts +8 -0
- package/modern/components/title/Component.js +13 -0
- package/modern/components/title/index.d.ts +1 -0
- package/modern/components/title/index.js +3 -0
- package/modern/desktop.d.ts +2 -1
- package/modern/desktop.js +12 -4
- package/modern/hooks/use-collapsible-elements.d.ts +8 -0
- package/modern/hooks/use-collapsible-elements.js +50 -0
- package/modern/hooks/use-tablist-titles.d.ts +28 -0
- package/modern/hooks/use-tablist-titles.js +40 -0
- package/{useTabs.d.ts → modern/hooks/use-tabs.d.ts} +1 -1
- package/modern/{useTabs.js → hooks/use-tabs.js} +3 -3
- package/modern/index.d.ts +1 -1
- package/modern/index.js +12 -5
- package/modern/index.module-01d292c0.js +4 -0
- package/modern/index.module-16a12061.js +4 -0
- package/modern/mobile.d.ts +1 -1
- package/modern/mobile.js +12 -4
- package/modern/responsive.d.ts +2 -1
- package/modern/responsive.js +12 -5
- package/modern/synthetic-events.d.ts +6 -0
- package/modern/synthetic-events.js +61 -0
- package/modern/typings.d.ts +13 -2
- package/package.json +7 -4
- package/responsive.d.ts +2 -1
- package/responsive.js +15 -7
- package/send-stats.js +1 -1
- package/synthetic-events.d.ts +6 -0
- package/synthetic-events.js +47 -0
- package/{esm/tslib.es6-444ae64e.d.ts → tslib.es6-cbc5fb87.d.ts} +8 -4
- package/{tslib.es6-fcb75541.js → tslib.es6-cbc5fb87.js} +13 -1
- package/typings.d.ts +13 -2
- package/esm/index.module-17321b1b.js +0 -4
- package/esm/index.module-198d371d.js +0 -4
- package/index.module-3530e300.js +0 -6
- package/index.module-c424649c.js +0 -6
- package/modern/index.module-17321b1b.js +0 -4
- package/modern/index.module-198d371d.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gxw9g */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
--color-light-border-link: #007aff;
|
|
7
7
|
--color-light-border-primary: #dbdee1;
|
|
8
8
|
--color-light-text-primary: #0b1f35;
|
|
9
|
-
--color-light-text-secondary:
|
|
10
|
-
--color-light-text-tertiary:
|
|
9
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
10
|
+
--color-light-text-tertiary: rgba(11, 31, 53, 0.3);
|
|
11
11
|
}:root {
|
|
12
12
|
}:root {
|
|
13
13
|
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
/* size l */
|
|
89
89
|
|
|
90
90
|
/* size xl */
|
|
91
|
-
}.
|
|
91
|
+
}.tabs__component_1qgkh {
|
|
92
92
|
position: relative;
|
|
93
93
|
display: inline-flex;
|
|
94
94
|
min-width: 100%
|
|
95
|
-
}.
|
|
95
|
+
}.tabs__component_1qgkh:before {
|
|
96
96
|
content: '';
|
|
97
97
|
display: block;
|
|
98
98
|
position: absolute;
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
height: 1px;
|
|
101
101
|
width: 100%;
|
|
102
102
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
103
|
-
}.
|
|
103
|
+
}.tabs__fullWidthScroll_1qgkh {
|
|
104
104
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
105
105
|
margin: 0 var(--gap-m);
|
|
106
|
-
}.
|
|
106
|
+
}.tabs__container_1qgkh {
|
|
107
107
|
position: relative;
|
|
108
108
|
overflow: hidden;
|
|
109
|
-
}.
|
|
109
|
+
}.tabs__title_1qgkh {
|
|
110
110
|
display: flex;
|
|
111
111
|
align-items: center;
|
|
112
112
|
height: 100%;
|
|
@@ -123,57 +123,79 @@
|
|
|
123
123
|
user-select: none;
|
|
124
124
|
cursor: pointer;
|
|
125
125
|
outline: none
|
|
126
|
-
}.
|
|
126
|
+
}.tabs__title_1qgkh:not(.tabs__disabled_1qgkh):hover {
|
|
127
127
|
color: var(--primary-tablist-hover-color);
|
|
128
|
-
}.
|
|
128
|
+
}.tabs__focused_1qgkh {
|
|
129
129
|
outline: 2px solid var(--focus-color);
|
|
130
130
|
outline-offset: 2px;
|
|
131
|
-
}.
|
|
131
|
+
}.tabs__collapsed_1qgkh {
|
|
132
|
+
order: 99;
|
|
133
|
+
visibility: collapse;
|
|
134
|
+
}.tabs__selected_1qgkh {
|
|
132
135
|
cursor: default;
|
|
133
136
|
color: var(--primary-tablist-selected-color);
|
|
134
|
-
}.
|
|
137
|
+
}.tabs__disabled_1qgkh {
|
|
135
138
|
cursor: var(--disabled-cursor);
|
|
136
139
|
color: var(--primary-tablist-disabled-color);
|
|
137
|
-
}.
|
|
140
|
+
}.tabs__line_1qgkh {
|
|
138
141
|
position: absolute;
|
|
139
142
|
height: 3px;
|
|
140
143
|
bottom: 0;
|
|
141
144
|
left: 0;
|
|
142
145
|
background-color: var(--primary-tablist-line-color);
|
|
143
146
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
144
|
-
}/* sizes */.
|
|
147
|
+
}/* sizes */.tabs__s_1qgkh .tabs__title_1qgkh, .tabs__xs_1qgkh .tabs__title_1qgkh, .tabs__xxs_1qgkh .tabs__title_1qgkh {
|
|
145
148
|
padding: var(--primary-tablist-s-padding);
|
|
146
149
|
font-size: var(--primary-tablist-s-font-size);
|
|
147
150
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
148
151
|
font-family: var(--primary-tablist-s-font-family);
|
|
149
152
|
line-height: 24px;
|
|
150
|
-
}.
|
|
153
|
+
}.tabs__s_1qgkh .tabs__title_1qgkh + .tabs__title_1qgkh, .tabs__xs_1qgkh .tabs__title_1qgkh + .tabs__title_1qgkh, .tabs__xxs_1qgkh .tabs__title_1qgkh + .tabs__title_1qgkh {
|
|
151
154
|
margin-left: var(--primary-tablist-s-gaps);
|
|
152
|
-
}.
|
|
155
|
+
}.tabs__s_1qgkh .tabs__pickerWrapper_1qgkh, .tabs__xs_1qgkh .tabs__pickerWrapper_1qgkh, .tabs__xxs_1qgkh .tabs__pickerWrapper_1qgkh {
|
|
156
|
+
margin-left: var(--primary-tablist-s-gaps);
|
|
157
|
+
}.tabs__s_1qgkh .tabs__option_1qgkh, .tabs__xs_1qgkh .tabs__option_1qgkh, .tabs__xxs_1qgkh .tabs__option_1qgkh {
|
|
158
|
+
padding: 0;
|
|
159
|
+
}.tabs__m_1qgkh .tabs__title_1qgkh {
|
|
153
160
|
padding: var(--primary-tablist-m-padding);
|
|
154
161
|
font-size: var(--primary-tablist-m-font-size);
|
|
155
162
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
156
163
|
font-family: var(--primary-tablist-m-font-family);
|
|
157
164
|
line-height: 24px;
|
|
158
|
-
}.
|
|
165
|
+
}.tabs__m_1qgkh .tabs__title_1qgkh + .tabs__title_1qgkh {
|
|
166
|
+
margin-left: var(--primary-tablist-m-gaps);
|
|
167
|
+
}.tabs__m_1qgkh .tabs__pickerWrapper_1qgkh {
|
|
159
168
|
margin-left: var(--primary-tablist-m-gaps);
|
|
160
|
-
}.
|
|
169
|
+
}.tabs__m_1qgkh .tabs__option_1qgkh {
|
|
170
|
+
padding: 0;
|
|
171
|
+
}.tabs__l_1qgkh .tabs__title_1qgkh {
|
|
161
172
|
padding: var(--primary-tablist-l-padding);
|
|
162
173
|
font-size: var(--primary-tablist-l-font-size);
|
|
163
174
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
164
175
|
font-family: var(--primary-tablist-l-font-family);
|
|
165
176
|
line-height: 24px;
|
|
166
|
-
}.
|
|
177
|
+
}.tabs__l_1qgkh .tabs__title_1qgkh + .tabs__title_1qgkh {
|
|
178
|
+
margin-left: var(--primary-tablist-l-gaps);
|
|
179
|
+
}.tabs__l_1qgkh .tabs__pickerWrapper_1qgkh {
|
|
167
180
|
margin-left: var(--primary-tablist-l-gaps);
|
|
168
|
-
}.
|
|
181
|
+
}.tabs__l_1qgkh .tabs__option_1qgkh {
|
|
182
|
+
padding: 0;
|
|
183
|
+
}.tabs__xl_1qgkh .tabs__title_1qgkh {
|
|
169
184
|
padding: var(--primary-tablist-xl-padding);
|
|
170
185
|
font-size: var(--primary-tablist-xl-font-size);
|
|
171
186
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
172
187
|
font-family: var(--primary-tablist-xl-font-family);
|
|
173
188
|
line-height: 32px;
|
|
174
|
-
}.
|
|
189
|
+
}.tabs__xl_1qgkh .tabs__title_1qgkh + .tabs__title_1qgkh {
|
|
175
190
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
176
|
-
}.
|
|
191
|
+
}.tabs__xl_1qgkh .tabs__pickerWrapper_1qgkh {
|
|
192
|
+
margin-left: var(--primary-tablist-xl-gaps);
|
|
193
|
+
}.tabs__xl_1qgkh .tabs__option_1qgkh {
|
|
194
|
+
padding: 0;
|
|
195
|
+
}.tabs__rightAddons_1qgkh {
|
|
196
|
+
display: flex;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
align-items: center;
|
|
177
199
|
margin-left: var(--gap-xs);
|
|
178
200
|
}
|
|
179
201
|
:root {
|
|
@@ -392,26 +414,24 @@
|
|
|
392
414
|
--color-dark-specialbg-overlay-fallback: #070707;
|
|
393
415
|
--color-dark-specialbg-primary-grouped: #0b1f35;
|
|
394
416
|
--color-dark-specialbg-secondary-grouped: #233549;
|
|
417
|
+
--color-dark-specialbg-secondary-transparent: rgba(255, 255, 255, 0.1);
|
|
418
|
+
--color-dark-specialbg-secondary-transparent-inverted: rgba(11, 31, 53, 0.05);
|
|
395
419
|
--color-dark-specialbg-tertiary-grouped: #3c4c5d;
|
|
420
|
+
--color-dark-specialbg-tertiary-transparent: rgba(255, 255, 255, 0.2);
|
|
421
|
+
--color-dark-specialbg-tertiary-transparent-inverted: rgba(11, 31, 53, 0.1);
|
|
396
422
|
--color-dark-text-accent: #ef3124;
|
|
397
423
|
--color-dark-text-attention: #de6a00;
|
|
398
|
-
--color-dark-text-disabled:
|
|
399
|
-
--color-dark-text-disabled-inverted:
|
|
400
|
-
--color-dark-text-disabled-inverted-transparent: rgba(11, 31, 53, 0.15);
|
|
401
|
-
--color-dark-text-disabled-transparent: rgba(255, 255, 255, 0.25);
|
|
424
|
+
--color-dark-text-disabled: rgba(255, 255, 255, 0.25);
|
|
425
|
+
--color-dark-text-disabled-inverted: rgba(11, 31, 53, 0.15);
|
|
402
426
|
--color-dark-text-link: #007aff;
|
|
403
427
|
--color-dark-text-negative: #d91d0b;
|
|
404
428
|
--color-dark-text-positive: #13a463;
|
|
405
429
|
--color-dark-text-primary: #fff;
|
|
406
430
|
--color-dark-text-primary-inverted: #0b1f35;
|
|
407
|
-
--color-dark-text-secondary:
|
|
408
|
-
--color-dark-text-secondary-inverted:
|
|
409
|
-
--color-dark-text-
|
|
410
|
-
--color-dark-text-
|
|
411
|
-
--color-dark-text-tertiary: #6d7986;
|
|
412
|
-
--color-dark-text-tertiary-inverted: #b6bcc3;
|
|
413
|
-
--color-dark-text-tertiary-inverted-transparent: rgba(11, 31, 53, 0.3);
|
|
414
|
-
--color-dark-text-tertiary-transparent: rgba(255, 255, 255, 0.4);
|
|
431
|
+
--color-dark-text-secondary: rgba(255, 255, 255, 0.7);
|
|
432
|
+
--color-dark-text-secondary-inverted: rgba(11, 31, 53, 0.7);
|
|
433
|
+
--color-dark-text-tertiary: rgba(255, 255, 255, 0.4);
|
|
434
|
+
--color-dark-text-tertiary-inverted: rgba(11, 31, 53, 0.3);
|
|
415
435
|
--color-light-bg-accent: #ef3124;
|
|
416
436
|
--color-light-bg-attention-muted: #fff3e0;
|
|
417
437
|
--color-light-bg-info: #d6e8fc;
|
|
@@ -458,26 +478,24 @@
|
|
|
458
478
|
--color-light-specialbg-overlay-fallback: #5c5c5c;
|
|
459
479
|
--color-light-specialbg-primary-grouped: #f3f4f5;
|
|
460
480
|
--color-light-specialbg-secondary-grouped: #fff;
|
|
481
|
+
--color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05);
|
|
482
|
+
--color-light-specialbg-secondary-transparent-inverted: rgba(255, 255, 255, 0.1);
|
|
461
483
|
--color-light-specialbg-tertiary-grouped: #f3f4f5;
|
|
484
|
+
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
|
|
485
|
+
--color-light-specialbg-tertiary-transparent-inverted: rgba(255, 255, 255, 0.2);
|
|
462
486
|
--color-light-text-accent: #ef3124;
|
|
463
487
|
--color-light-text-attention: #de6a00;
|
|
464
|
-
--color-light-text-disabled:
|
|
465
|
-
--color-light-text-disabled-inverted:
|
|
466
|
-
--color-light-text-disabled-inverted-transparent: rgba(255, 255, 255, 0.25);
|
|
467
|
-
--color-light-text-disabled-transparent: rgba(11, 31, 53, 0.15);
|
|
488
|
+
--color-light-text-disabled: rgba(11, 31, 53, 0.15);
|
|
489
|
+
--color-light-text-disabled-inverted: rgba(255, 255, 255, 0.25);
|
|
468
490
|
--color-light-text-link: #007aff;
|
|
469
491
|
--color-light-text-negative: #d91d0b;
|
|
470
492
|
--color-light-text-positive: #13a463;
|
|
471
493
|
--color-light-text-primary: #0b1f35;
|
|
472
494
|
--color-light-text-primary-inverted: #fff;
|
|
473
|
-
--color-light-text-secondary:
|
|
474
|
-
--color-light-text-secondary-inverted:
|
|
475
|
-
--color-light-text-
|
|
476
|
-
--color-light-text-
|
|
477
|
-
--color-light-text-tertiary: #b6bcc3;
|
|
478
|
-
--color-light-text-tertiary-inverted: #6d7986;
|
|
479
|
-
--color-light-text-tertiary-inverted-transparent: rgba(255, 255, 255, 0.4);
|
|
480
|
-
--color-light-text-tertiary-transparent: rgba(11, 31, 53, 0.3);
|
|
495
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
496
|
+
--color-light-text-secondary-inverted: rgba(255, 255, 255, 0.7);
|
|
497
|
+
--color-light-text-tertiary: rgba(11, 31, 53, 0.3);
|
|
498
|
+
--color-light-text-tertiary-inverted: rgba(255, 255, 255, 0.4);
|
|
481
499
|
--color-static-bg-accent: #ef3124;
|
|
482
500
|
--color-static-bg-primary-dark: #0b1f35;
|
|
483
501
|
--color-static-bg-primary-light: #fff;
|
|
@@ -494,14 +512,10 @@
|
|
|
494
512
|
--color-static-text-accent: #ef3124;
|
|
495
513
|
--color-static-text-primary-dark: #0b1f35;
|
|
496
514
|
--color-static-text-primary-light: #fff;
|
|
497
|
-
--color-static-text-secondary-dark:
|
|
498
|
-
--color-static-text-secondary-
|
|
499
|
-
--color-static-text-
|
|
500
|
-
--color-static-text-
|
|
501
|
-
--color-static-text-tertiary-dark: #b6bcc3;
|
|
502
|
-
--color-static-text-tertiary-dark-transparent: rgba(11, 31, 53, 0.3);
|
|
503
|
-
--color-static-text-tertiary-light: #6d7986;
|
|
504
|
-
--color-static-text-tertiary-light-transparent: rgba(255, 255, 255, 0.4);
|
|
515
|
+
--color-static-text-secondary-dark: rgba(11, 31, 53, 0.6);
|
|
516
|
+
--color-static-text-secondary-light: rgba(255, 255, 255, 0.7);
|
|
517
|
+
--color-static-text-tertiary-dark: rgba(11, 31, 53, 0.3);
|
|
518
|
+
--color-static-text-tertiary-light: rgba(255, 255, 255, 0.4);
|
|
505
519
|
--color-dark-bg-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
506
520
|
--color-dark-bg-accent-shade-15: rgb(203, 42, 31);
|
|
507
521
|
--color-dark-bg-accent-shade-20: rgb(191, 39, 29);
|
|
@@ -618,12 +632,18 @@
|
|
|
618
632
|
--color-dark-specialbg-component-inverted-alpha-30: rgba(11, 31, 53, 0.3);
|
|
619
633
|
--color-dark-specialbg-component-inverted-shade-15: rgba(9, 26, 45, 0.2095);
|
|
620
634
|
--color-dark-specialbg-component-inverted-shade-20: rgba(9, 25, 42, 0.256);
|
|
635
|
+
--color-dark-specialbg-tertiary-transparent-tint-7: rgba(255, 255, 255, 0.256);
|
|
636
|
+
--color-dark-specialbg-tertiary-transparent-tint-15: rgba(255, 255, 255, 0.32);
|
|
637
|
+
--color-dark-specialbg-tertiary-transparent-inverted-shade-15: rgba(9, 26, 45, 0.235);
|
|
638
|
+
--color-dark-specialbg-tertiary-transparent-inverted-shade-20: rgba(9, 25, 42, 0.28);
|
|
621
639
|
--color-dark-text-link-shade-30: rgb(0, 85, 179);
|
|
622
640
|
--color-dark-text-link-shade-50: rgb(0, 61, 128);
|
|
623
641
|
--color-dark-text-link-tint-20: rgb(51, 149, 255);
|
|
624
642
|
--color-dark-text-link-tint-40: rgb(102, 175, 255);
|
|
625
643
|
--color-dark-text-primary-alpha-30: rgba(255, 255, 255, 0.3);
|
|
644
|
+
--color-dark-text-primary-shade-24: rgb(194, 194, 194);
|
|
626
645
|
--color-dark-text-primary-shade-30: rgb(179, 179, 179);
|
|
646
|
+
--color-dark-text-primary-shade-40: rgb(153, 153, 153);
|
|
627
647
|
--color-dark-text-primary-shade-50: rgb(128, 128, 128);
|
|
628
648
|
--color-dark-text-primary-tint-20: rgb(255, 255, 255);
|
|
629
649
|
--color-dark-text-primary-tint-40: rgb(255, 255, 255);
|
|
@@ -633,14 +653,16 @@
|
|
|
633
653
|
--color-dark-text-primary-inverted-shade-30: rgb(8, 22, 37);
|
|
634
654
|
--color-dark-text-primary-inverted-tint-7: rgb(28, 47, 67);
|
|
635
655
|
--color-dark-text-primary-inverted-tint-15: rgb(48, 65, 83);
|
|
656
|
+
--color-dark-text-primary-inverted-tint-24: rgb(70, 85, 101);
|
|
636
657
|
--color-dark-text-primary-inverted-tint-30: rgb(84, 98, 114);
|
|
658
|
+
--color-dark-text-primary-inverted-tint-40: rgb(109, 121, 134);
|
|
637
659
|
--color-dark-text-primary-inverted-tint-50: rgb(133, 143, 154);
|
|
638
|
-
--color-dark-text-secondary-shade-20:
|
|
639
|
-
--color-dark-text-secondary-shade-30:
|
|
640
|
-
--color-dark-text-secondary-tint-20:
|
|
641
|
-
--color-dark-text-secondary-tint-40:
|
|
642
|
-
--color-dark-text-secondary-inverted-shade-20:
|
|
643
|
-
--color-dark-text-secondary-inverted-shade-30:
|
|
660
|
+
--color-dark-text-secondary-shade-20: rgba(204, 204, 204, 0.76);
|
|
661
|
+
--color-dark-text-secondary-shade-30: rgba(179, 179, 179, 0.79);
|
|
662
|
+
--color-dark-text-secondary-tint-20: rgba(255, 255, 255, 0.76);
|
|
663
|
+
--color-dark-text-secondary-tint-40: rgba(255, 255, 255, 0.82);
|
|
664
|
+
--color-dark-text-secondary-inverted-shade-20: rgba(9, 25, 42, 0.76);
|
|
665
|
+
--color-dark-text-secondary-inverted-shade-30: rgba(8, 22, 37, 0.79);
|
|
644
666
|
--color-light-bg-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
645
667
|
--color-light-bg-accent-tint-15: rgb(241, 80, 69);
|
|
646
668
|
--color-light-bg-accent-tint-20: rgb(242, 90, 80);
|
|
@@ -757,12 +779,18 @@
|
|
|
757
779
|
--color-light-specialbg-component-inverted-alpha-30: rgba(255, 255, 255, 0.3);
|
|
758
780
|
--color-light-specialbg-component-inverted-tint-15: rgba(255, 255, 255, 0.2775);
|
|
759
781
|
--color-light-specialbg-component-inverted-tint-20: rgba(255, 255, 255, 0.32);
|
|
782
|
+
--color-light-specialbg-tertiary-transparent-shade-7: rgba(10, 29, 49, 0.163);
|
|
783
|
+
--color-light-specialbg-tertiary-transparent-shade-15: rgba(9, 26, 45, 0.235);
|
|
784
|
+
--color-light-specialbg-tertiary-transparent-inverted-tint-15: rgba(255, 255, 255, 0.32);
|
|
785
|
+
--color-light-specialbg-tertiary-transparent-inverted-tint-20: rgba(255, 255, 255, 0.36);
|
|
760
786
|
--color-light-text-link-tint-30: rgb(77, 162, 255);
|
|
761
787
|
--color-light-text-link-tint-50: rgb(128, 189, 255);
|
|
762
788
|
--color-light-text-link-shade-20: rgb(0, 98, 204);
|
|
763
789
|
--color-light-text-link-shade-40: rgb(0, 73, 153);
|
|
764
790
|
--color-light-text-primary-alpha-30: rgba(11, 31, 53, 0.3);
|
|
791
|
+
--color-light-text-primary-tint-24: rgb(70, 85, 101);
|
|
765
792
|
--color-light-text-primary-tint-30: rgb(84, 98, 114);
|
|
793
|
+
--color-light-text-primary-tint-40: rgb(109, 121, 134);
|
|
766
794
|
--color-light-text-primary-tint-50: rgb(133, 143, 154);
|
|
767
795
|
--color-light-text-primary-shade-20: rgb(9, 25, 42);
|
|
768
796
|
--color-light-text-primary-shade-40: rgb(7, 19, 32);
|
|
@@ -772,14 +800,16 @@
|
|
|
772
800
|
--color-light-text-primary-inverted-tint-30: rgb(255, 255, 255);
|
|
773
801
|
--color-light-text-primary-inverted-shade-7: rgb(237, 237, 237);
|
|
774
802
|
--color-light-text-primary-inverted-shade-15: rgb(217, 217, 217);
|
|
803
|
+
--color-light-text-primary-inverted-shade-24: rgb(194, 194, 194);
|
|
775
804
|
--color-light-text-primary-inverted-shade-30: rgb(179, 179, 179);
|
|
805
|
+
--color-light-text-primary-inverted-shade-40: rgb(153, 153, 153);
|
|
776
806
|
--color-light-text-primary-inverted-shade-50: rgb(128, 128, 128);
|
|
777
|
-
--color-light-text-secondary-tint-20:
|
|
778
|
-
--color-light-text-secondary-tint-30:
|
|
779
|
-
--color-light-text-secondary-shade-20:
|
|
780
|
-
--color-light-text-secondary-shade-40:
|
|
781
|
-
--color-light-text-secondary-inverted-tint-20:
|
|
782
|
-
--color-light-text-secondary-inverted-tint-30:
|
|
807
|
+
--color-light-text-secondary-tint-20: rgba(60, 76, 93, 0.76);
|
|
808
|
+
--color-light-text-secondary-tint-30: rgba(84, 98, 114, 0.79);
|
|
809
|
+
--color-light-text-secondary-shade-20: rgba(9, 25, 42, 0.76);
|
|
810
|
+
--color-light-text-secondary-shade-40: rgba(7, 19, 32, 0.82);
|
|
811
|
+
--color-light-text-secondary-inverted-tint-20: rgba(255, 255, 255, 0.76);
|
|
812
|
+
--color-light-text-secondary-inverted-tint-30: rgba(255, 255, 255, 0.79);
|
|
783
813
|
--color-static-bg-primary-dark-alpha-10: rgba(11, 31, 53, 0.1);
|
|
784
814
|
--color-static-bg-primary-dark-alpha-20: rgba(11, 31, 53, 0.2);
|
|
785
815
|
--color-static-text-primary-light-alpha-30: rgba(255, 255, 255, 0.3);
|
|
@@ -976,15 +1006,15 @@
|
|
|
976
1006
|
/* size xl */
|
|
977
1007
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
978
1008
|
}
|
|
979
|
-
.
|
|
1009
|
+
.tabs__title_ob67q {
|
|
980
1010
|
}
|
|
981
|
-
.
|
|
1011
|
+
.tabs__mobile_ob67q .tabs__title_ob67q {
|
|
982
1012
|
padding: var(--primary-tablist-mobile-padding);
|
|
983
1013
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
984
1014
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
985
1015
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
986
1016
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
987
1017
|
}
|
|
988
|
-
.
|
|
1018
|
+
.tabs__mobile_ob67q .tabs__title_ob67q + .tabs__title_ob67q {
|
|
989
1019
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
990
1020
|
}
|
|
@@ -15,5 +15,5 @@ type ScrollableContainerProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
activeChild: HTMLElement | null;
|
|
17
17
|
};
|
|
18
|
-
declare const ScrollableContainer: ({ containerClassName, children, activeChild, fullWidthScroll, }: ScrollableContainerProps & Pick<TabsProps,
|
|
18
|
+
declare const ScrollableContainer: ({ containerClassName, children, activeChild, fullWidthScroll, }: ScrollableContainerProps & Pick<TabsProps, 'fullWidthScroll'>) => JSX.Element;
|
|
19
19
|
export { ScrollableContainerProps, ScrollableContainer };
|
|
@@ -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_xocd4","fullWidthScroll":"tabs__fullWidthScroll_xocd4"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -18,7 +18,9 @@ const ScrollableContainer = ({ containerClassName, children, activeChild, fullWi
|
|
|
18
18
|
inline: 'nearest',
|
|
19
19
|
});
|
|
20
20
|
// TODO: animate?
|
|
21
|
-
actions.forEach(({ el, left }) => {
|
|
21
|
+
actions.forEach(({ el, left }, index) => {
|
|
22
|
+
if (index === 0)
|
|
23
|
+
return;
|
|
22
24
|
// eslint-disable-next-line no-param-reassign
|
|
23
25
|
el.scrollLeft =
|
|
24
26
|
el.scrollLeft > left
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: i1ops */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
|
|
37
37
|
/* size xl */
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.tabs__container_xocd4 {
|
|
40
40
|
position: relative;
|
|
41
41
|
overflow-x: auto;
|
|
42
42
|
overflow-y: hidden;
|
|
43
43
|
scroll-behavior: smooth;
|
|
44
44
|
scrollbar-width: none
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.tabs__container_xocd4::-webkit-scrollbar {
|
|
47
47
|
display: none;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.tabs__container_xocd4 > * {
|
|
50
50
|
flex-shrink: 0;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.tabs__fullWidthScroll_xocd4 {
|
|
53
53
|
margin: 0 var(--gap-m-neg);
|
|
54
54
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Styles } from "../../typings";
|
|
3
|
-
declare const SecondaryTabList: ({ styles, className, containerClassName, size, titles, selectedId, scrollable, fullWidthScroll, tagSize, onChange, dataTestId, }:
|
|
4
|
-
titles?: import("../../typings").TabListTitle[] | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
tagSize?: "xxs" | "xs" | "s" | "m" | "l" | "xl" | undefined;
|
|
7
|
-
} & Styles) => JSX.Element;
|
|
2
|
+
import { SecondaryTabListProps, Styles } from "../../typings";
|
|
3
|
+
declare const SecondaryTabList: ({ styles, className, containerClassName, size, titles, selectedId, scrollable, fullWidthScroll, tagSize, onChange, dataTestId, }: SecondaryTabListProps & Styles) => JSX.Element;
|
|
8
4
|
export { SecondaryTabList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SecondaryTabListProps } from "../../typings";
|
|
3
3
|
type SecondaryTabListDesktopProps = Omit<SecondaryTabListProps, 'tagSize'>;
|
|
4
|
-
declare const SecondaryTabListDesktop: ({ size, ...restProps }:
|
|
4
|
+
declare const SecondaryTabListDesktop: ({ size, ...restProps }: SecondaryTabListDesktopProps) => JSX.Element;
|
|
5
5
|
export { SecondaryTabListDesktopProps, SecondaryTabListDesktop };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
+
import '../../hooks/use-tabs.js';
|
|
3
4
|
import 'compute-scroll-into-view';
|
|
4
5
|
import '../scrollable-container/Component.js';
|
|
5
|
-
import '../../useTabs.js';
|
|
6
6
|
import '@alfalab/core-components-tag/modern';
|
|
7
7
|
import { SecondaryTabList } from './Component.js';
|
|
8
|
-
import { c as commonStyles } from '../../index.module-
|
|
8
|
+
import { c as commonStyles } from '../../index.module-16a12061.js';
|
|
9
9
|
|
|
10
|
-
const SecondaryTabListDesktop = ({ size = 's', ...restProps }) => (React.createElement(SecondaryTabList,
|
|
10
|
+
const SecondaryTabListDesktop = ({ size = 's', ...restProps }) => (React.createElement(SecondaryTabList, { ...restProps, size: size, styles: commonStyles, tagSize: size }));
|
|
11
11
|
|
|
12
12
|
export { SecondaryTabListDesktop };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
+
import { useTabs } from '../../hooks/use-tabs.js';
|
|
3
4
|
import 'compute-scroll-into-view';
|
|
4
5
|
import { ScrollableContainer } from '../scrollable-container/Component.js';
|
|
5
|
-
import { useTabs } from '../../useTabs.js';
|
|
6
6
|
import { Tag } from '@alfalab/core-components-tag/modern';
|
|
7
7
|
|
|
8
8
|
const SecondaryTabList = ({ styles = {}, className, containerClassName, size, titles = [], selectedId = titles.length ? titles[0].id : undefined, scrollable = true, fullWidthScroll, tagSize = 'xs', onChange, dataTestId, }) => {
|
|
@@ -16,7 +16,7 @@ const SecondaryTabList = ({ styles = {}, className, containerClassName, size, ti
|
|
|
16
16
|
}) }, titles.map((item, index) => {
|
|
17
17
|
if (item.hidden)
|
|
18
18
|
return null;
|
|
19
|
-
return (React.createElement(Tag,
|
|
19
|
+
return (React.createElement(Tag, { ...getTabListItemProps(index), key: item.id, className: cn(styles.title, item.toggleClassName), checked: item.id === selectedId, size: tagSize, rightAddons: item.rightAddons }, item.title));
|
|
20
20
|
})));
|
|
21
21
|
return scrollable ? (React.createElement(ScrollableContainer, { activeChild: focusedTab || selectedTab, containerClassName: containerClassName, fullWidthScroll: fullWidthScroll }, renderContent())) : (React.createElement("div", { className: cn(styles.container, containerClassName) }, renderContent()));
|
|
22
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SecondaryTabListProps } from "../../typings";
|
|
3
3
|
type SecondaryTabListMobileProps = Omit<SecondaryTabListProps, 'size' | 'tagSize'>;
|
|
4
|
-
declare const SecondaryTabListMobile: ({ className, ...restProps }:
|
|
4
|
+
declare const SecondaryTabListMobile: ({ className, ...restProps }: SecondaryTabListMobileProps) => JSX.Element;
|
|
5
5
|
export { SecondaryTabListMobileProps, SecondaryTabListMobile };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
+
import '../../hooks/use-tabs.js';
|
|
3
4
|
import 'compute-scroll-into-view';
|
|
4
5
|
import '../scrollable-container/Component.js';
|
|
5
|
-
import '../../useTabs.js';
|
|
6
6
|
import '@alfalab/core-components-tag/modern';
|
|
7
7
|
import { SecondaryTabList } from './Component.js';
|
|
8
|
-
import { c as commonStyles } from '../../index.module-
|
|
8
|
+
import { c as commonStyles } from '../../index.module-16a12061.js';
|
|
9
9
|
|
|
10
|
-
var mobileStyles = {"title":"
|
|
10
|
+
var mobileStyles = {"title":"tabs__title_r1ggh tabs__title_1y9yr","mobile":"tabs__mobile_r1ggh"};
|
|
11
11
|
require('./mobile.css')
|
|
12
12
|
|
|
13
13
|
const styles = {
|
|
14
14
|
...commonStyles,
|
|
15
15
|
...mobileStyles,
|
|
16
16
|
};
|
|
17
|
-
const SecondaryTabListMobile = ({ className, ...restProps }) => (React.createElement(SecondaryTabList,
|
|
17
|
+
const SecondaryTabListMobile = ({ className, ...restProps }) => (React.createElement(SecondaryTabList, { ...restProps, styles: styles, className: cn(className, styles.mobile), tagSize: 'xs' }));
|
|
18
18
|
|
|
19
19
|
export { SecondaryTabListMobile };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
+
import { useMedia } from '@alfalab/hooks';
|
|
4
|
+
import '../../hooks/use-tabs.js';
|
|
3
5
|
import 'compute-scroll-into-view';
|
|
4
6
|
import '../scrollable-container/Component.js';
|
|
5
|
-
import '../../useTabs.js';
|
|
6
7
|
import '@alfalab/core-components-tag/modern';
|
|
7
8
|
import './Component.js';
|
|
8
|
-
import '../../index.module-
|
|
9
|
+
import '../../index.module-16a12061.js';
|
|
9
10
|
import { SecondaryTabListDesktop } from './Component.desktop.js';
|
|
10
|
-
import { useMedia } from '@alfalab/hooks';
|
|
11
11
|
import { SecondaryTabListMobile } from './Component.mobile.js';
|
|
12
12
|
|
|
13
13
|
const SecondaryTabListResponsive = ({ size, defaultMatch = 'desktop', fullWidthScroll, ...restProps }) => {
|
|
@@ -15,7 +15,7 @@ const SecondaryTabListResponsive = ({ size, defaultMatch = 'desktop', fullWidthS
|
|
|
15
15
|
['mobile', '(max-width: 767px)'],
|
|
16
16
|
['desktop', '(min-width: 768px)'],
|
|
17
17
|
], defaultMatch);
|
|
18
|
-
return view === 'desktop' ? (React.createElement(SecondaryTabListDesktop,
|
|
18
|
+
return view === 'desktop' ? (React.createElement(SecondaryTabListDesktop, { size: size, ...restProps })) : (React.createElement(SecondaryTabListMobile, { fullWidthScroll: fullWidthScroll, ...restProps }));
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export { SecondaryTabListResponsive };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: k37zs */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -44,35 +44,35 @@
|
|
|
44
44
|
/* size xl */
|
|
45
45
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.tabs__component_1y9yr {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: inline-flex;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.tabs__fullWidthScroll_1y9yr {
|
|
52
52
|
margin: 0 var(--gap-m);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.tabs__container_1y9yr {
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.tabs__title_1y9yr {
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
}
|
|
60
60
|
/* sizes */
|
|
61
|
-
.
|
|
61
|
+
.tabs__xxs_1y9yr .tabs__title_1y9yr + .tabs__title_1y9yr {
|
|
62
62
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.tabs__xs_1y9yr .tabs__title_1y9yr + .tabs__title_1y9yr {
|
|
65
65
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.tabs__s_1y9yr .tabs__title_1y9yr + .tabs__title_1y9yr {
|
|
68
68
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.tabs__m_1y9yr .tabs__title_1y9yr + .tabs__title_1y9yr {
|
|
71
71
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.tabs__l_1y9yr .tabs__title_1y9yr + .tabs__title_1y9yr {
|
|
74
74
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.tabs__xl_1y9yr .tabs__title_1y9yr + .tabs__title_1y9yr {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|