@alfalab/core-components-tabs 7.3.4 → 7.3.6
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.desktop.js +2 -2
- package/components/primary-tablist/Component.js +2 -2
- package/components/primary-tablist/Component.mobile.js +3 -3
- package/components/primary-tablist/Component.responsive.js +2 -2
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +34 -33
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- package/components/secondary-tablist/Component.desktop.js +2 -2
- package/components/secondary-tablist/Component.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +3 -3
- package/components/secondary-tablist/Component.responsive.js +2 -2
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +15 -14
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +3 -3
- package/components/tabs/Component.mobile.js +3 -3
- package/components/tabs/Component.responsive.js +3 -3
- package/components/title/Component.js +1 -1
- package/components/title/index.js +1 -1
- package/cssm/components/primary-tablist/Component.js +1 -1
- package/cssm/hooks/use-collapsible-elements.js +4 -6
- package/cssm/hooks/use-tablist-titles.js +1 -1
- package/desktop.js +3 -3
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.js +2 -2
- package/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/esm/components/primary-tablist/index.css +29 -29
- package/esm/components/primary-tablist/mobile.css +34 -33
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +5 -5
- package/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/esm/components/secondary-tablist/Component.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +3 -3
- package/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +15 -14
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.desktop.js +3 -3
- package/esm/components/tabs/Component.mobile.js +3 -3
- package/esm/components/tabs/Component.responsive.js +3 -3
- package/esm/components/title/Component.js +1 -1
- package/esm/components/title/index.js +1 -1
- package/esm/desktop.js +3 -3
- package/esm/hooks/use-collapsible-elements.js +5 -7
- package/esm/hooks/use-tablist-titles.js +2 -2
- package/esm/index.js +3 -3
- package/esm/index.module-07028906.js +4 -0
- package/esm/index.module-65c3d6bc.js +4 -0
- package/esm/mobile.js +3 -3
- package/esm/responsive.js +3 -3
- package/esm/synthetic-events.js +1 -1
- package/esm/{tslib.es6-ef625021.d.ts → tslib.es6-3bc6f388.d.ts} +0 -0
- package/esm/{tslib.es6-ef625021.js → tslib.es6-3bc6f388.js} +0 -0
- package/hooks/use-collapsible-elements.js +5 -7
- package/hooks/use-tablist-titles.js +2 -2
- package/index.js +3 -3
- package/index.module-dd06cfbf.js +6 -0
- package/index.module-e46cc90c.js +6 -0
- package/mobile.js +3 -3
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +29 -29
- package/modern/components/primary-tablist/mobile.css +34 -33
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +5 -5
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +15 -14
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +2 -2
- package/modern/components/tabs/Component.responsive.js +2 -2
- package/modern/desktop.js +2 -2
- package/modern/hooks/use-collapsible-elements.js +4 -6
- package/modern/hooks/use-tablist-titles.js +1 -1
- package/modern/index.js +2 -2
- package/modern/index.module-3a799412.js +4 -0
- package/modern/index.module-d05b11d2.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/package.json +3 -3
- package/responsive.js +3 -3
- package/synthetic-events.js +1 -1
- package/{tslib.es6-860bcbc6.d.ts → tslib.es6-57c5c09e.d.ts} +0 -0
- package/{tslib.es6-860bcbc6.js → tslib.es6-57c5c09e.js} +0 -0
- package/esm/index.module-ba97f96d.js +0 -4
- package/esm/index.module-da19acab.js +0 -4
- package/index.module-3b1c7c9a.js +0 -6
- package/index.module-88a600f7.js +0 -6
- package/modern/index.module-08b2503f.js +0 -4
- package/modern/index.module-a4ad700d.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1f7de */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
/* size l */
|
|
84
84
|
|
|
85
85
|
/* size xl */
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__component_rz0bu {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_rz0bu:before {
|
|
91
91
|
content: '';
|
|
92
92
|
display: block;
|
|
93
93
|
position: absolute;
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
height: 1px;
|
|
96
96
|
width: 100%;
|
|
97
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
98
|
-
} .
|
|
98
|
+
} .tabs__fullWidthScroll_rz0bu {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_rz0bu {
|
|
102
102
|
position: relative;
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
|
|
105
105
|
/* focus-outline fix */
|
|
106
106
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
107
107
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
108
|
-
} .
|
|
108
|
+
} .tabs__title_rz0bu {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -122,76 +122,76 @@
|
|
|
122
122
|
user-select: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
outline: none
|
|
125
|
-
} .
|
|
125
|
+
} .tabs__title_rz0bu:not(.tabs__disabled_rz0bu):hover {
|
|
126
126
|
color: var(--primary-tablist-hover-color);
|
|
127
|
-
} .
|
|
127
|
+
} .tabs__focused_rz0bu {
|
|
128
128
|
outline: 2px solid var(--focus-color);
|
|
129
129
|
outline-offset: 2px;
|
|
130
|
-
} .
|
|
130
|
+
} .tabs__collapsed_rz0bu {
|
|
131
131
|
order: 99;
|
|
132
132
|
visibility: collapse;
|
|
133
|
-
} .
|
|
133
|
+
} .tabs__selected_rz0bu {
|
|
134
134
|
cursor: default;
|
|
135
135
|
color: var(--primary-tablist-selected-color);
|
|
136
|
-
} .
|
|
136
|
+
} .tabs__disabled_rz0bu {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
color: var(--primary-tablist-disabled-color);
|
|
139
|
-
} .
|
|
139
|
+
} .tabs__line_rz0bu {
|
|
140
140
|
position: absolute;
|
|
141
141
|
height: 3px;
|
|
142
142
|
bottom: 0;
|
|
143
143
|
left: 0;
|
|
144
144
|
background-color: var(--primary-tablist-line-color);
|
|
145
145
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
146
|
-
} /* sizes */ .
|
|
146
|
+
} /* sizes */ .tabs__s_rz0bu .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu {
|
|
147
147
|
padding: var(--primary-tablist-s-padding);
|
|
148
148
|
font-size: var(--primary-tablist-s-font-size);
|
|
149
149
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
150
150
|
font-family: var(--primary-tablist-s-font-family);
|
|
151
151
|
line-height: 24px;
|
|
152
|
-
} .
|
|
152
|
+
} .tabs__s_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
153
153
|
margin-left: var(--primary-tablist-s-gaps);
|
|
154
|
-
} .
|
|
154
|
+
} .tabs__s_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xs_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xxs_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
155
155
|
margin-left: var(--primary-tablist-s-gaps);
|
|
156
|
-
} .
|
|
156
|
+
} .tabs__s_rz0bu .tabs__option_rz0bu, .tabs__xs_rz0bu .tabs__option_rz0bu, .tabs__xxs_rz0bu .tabs__option_rz0bu {
|
|
157
157
|
padding: 0;
|
|
158
|
-
} .
|
|
158
|
+
} .tabs__m_rz0bu .tabs__title_rz0bu {
|
|
159
159
|
padding: var(--primary-tablist-m-padding);
|
|
160
160
|
font-size: var(--primary-tablist-m-font-size);
|
|
161
161
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
162
162
|
font-family: var(--primary-tablist-m-font-family);
|
|
163
163
|
line-height: 24px;
|
|
164
|
-
} .
|
|
164
|
+
} .tabs__m_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
165
165
|
margin-left: var(--primary-tablist-m-gaps);
|
|
166
|
-
} .
|
|
166
|
+
} .tabs__m_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
167
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
168
|
-
} .
|
|
168
|
+
} .tabs__m_rz0bu .tabs__option_rz0bu {
|
|
169
169
|
padding: 0;
|
|
170
|
-
} .
|
|
170
|
+
} .tabs__l_rz0bu .tabs__title_rz0bu {
|
|
171
171
|
padding: var(--primary-tablist-l-padding);
|
|
172
172
|
font-size: var(--primary-tablist-l-font-size);
|
|
173
173
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
174
174
|
font-family: var(--primary-tablist-l-font-family);
|
|
175
175
|
line-height: 24px;
|
|
176
|
-
} .
|
|
176
|
+
} .tabs__l_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
177
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
178
|
-
} .
|
|
178
|
+
} .tabs__l_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
179
179
|
margin-left: var(--primary-tablist-l-gaps);
|
|
180
|
-
} .
|
|
180
|
+
} .tabs__l_rz0bu .tabs__option_rz0bu {
|
|
181
181
|
padding: 0;
|
|
182
|
-
} .
|
|
182
|
+
} .tabs__xl_rz0bu .tabs__title_rz0bu {
|
|
183
183
|
padding: var(--primary-tablist-xl-padding);
|
|
184
184
|
font-size: var(--primary-tablist-xl-font-size);
|
|
185
185
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
186
186
|
font-family: var(--primary-tablist-xl-font-family);
|
|
187
187
|
line-height: 32px;
|
|
188
|
-
} .
|
|
188
|
+
} .tabs__xl_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
189
189
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
190
|
-
} .
|
|
190
|
+
} .tabs__xl_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
191
191
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
192
|
-
} .
|
|
192
|
+
} .tabs__xl_rz0bu .tabs__option_rz0bu {
|
|
193
193
|
padding: 0;
|
|
194
|
-
} .
|
|
194
|
+
} .tabs__rightAddons_rz0bu {
|
|
195
195
|
display: flex;
|
|
196
196
|
justify-content: center;
|
|
197
197
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lsh29 */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
/* size l */
|
|
91
91
|
|
|
92
92
|
/* size xl */
|
|
93
|
-
}.
|
|
93
|
+
}.tabs__component_rz0bu {
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-flex;
|
|
96
96
|
min-width: 100%
|
|
97
|
-
}.
|
|
97
|
+
}.tabs__component_rz0bu:before {
|
|
98
98
|
content: '';
|
|
99
99
|
display: block;
|
|
100
100
|
position: absolute;
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
height: 1px;
|
|
103
103
|
width: 100%;
|
|
104
104
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
105
|
-
}.
|
|
105
|
+
}.tabs__fullWidthScroll_rz0bu {
|
|
106
106
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
107
107
|
margin: 0 var(--gap-m);
|
|
108
|
-
}.
|
|
108
|
+
}.tabs__container_rz0bu {
|
|
109
109
|
position: relative;
|
|
110
110
|
overflow: hidden;
|
|
111
111
|
|
|
112
112
|
/* focus-outline fix */
|
|
113
113
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
114
114
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
115
|
-
}.
|
|
115
|
+
}.tabs__title_rz0bu {
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
height: 100%;
|
|
@@ -129,76 +129,76 @@
|
|
|
129
129
|
user-select: none;
|
|
130
130
|
cursor: pointer;
|
|
131
131
|
outline: none
|
|
132
|
-
}.
|
|
132
|
+
}.tabs__title_rz0bu:not(.tabs__disabled_rz0bu):hover {
|
|
133
133
|
color: var(--primary-tablist-hover-color);
|
|
134
|
-
}.
|
|
134
|
+
}.tabs__focused_rz0bu {
|
|
135
135
|
outline: 2px solid var(--focus-color);
|
|
136
136
|
outline-offset: 2px;
|
|
137
|
-
}.
|
|
137
|
+
}.tabs__collapsed_rz0bu {
|
|
138
138
|
order: 99;
|
|
139
139
|
visibility: collapse;
|
|
140
|
-
}.
|
|
140
|
+
}.tabs__selected_rz0bu {
|
|
141
141
|
cursor: default;
|
|
142
142
|
color: var(--primary-tablist-selected-color);
|
|
143
|
-
}.
|
|
143
|
+
}.tabs__disabled_rz0bu {
|
|
144
144
|
cursor: var(--disabled-cursor);
|
|
145
145
|
color: var(--primary-tablist-disabled-color);
|
|
146
|
-
}.
|
|
146
|
+
}.tabs__line_rz0bu {
|
|
147
147
|
position: absolute;
|
|
148
148
|
height: 3px;
|
|
149
149
|
bottom: 0;
|
|
150
150
|
left: 0;
|
|
151
151
|
background-color: var(--primary-tablist-line-color);
|
|
152
152
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
153
|
-
}/* sizes */.
|
|
153
|
+
}/* sizes */.tabs__s_rz0bu .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu {
|
|
154
154
|
padding: var(--primary-tablist-s-padding);
|
|
155
155
|
font-size: var(--primary-tablist-s-font-size);
|
|
156
156
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
157
157
|
font-family: var(--primary-tablist-s-font-family);
|
|
158
158
|
line-height: 24px;
|
|
159
|
-
}.
|
|
159
|
+
}.tabs__s_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
160
160
|
margin-left: var(--primary-tablist-s-gaps);
|
|
161
|
-
}.
|
|
161
|
+
}.tabs__s_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xs_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xxs_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
162
162
|
margin-left: var(--primary-tablist-s-gaps);
|
|
163
|
-
}.
|
|
163
|
+
}.tabs__s_rz0bu .tabs__option_rz0bu, .tabs__xs_rz0bu .tabs__option_rz0bu, .tabs__xxs_rz0bu .tabs__option_rz0bu {
|
|
164
164
|
padding: 0;
|
|
165
|
-
}.
|
|
165
|
+
}.tabs__m_rz0bu .tabs__title_rz0bu {
|
|
166
166
|
padding: var(--primary-tablist-m-padding);
|
|
167
167
|
font-size: var(--primary-tablist-m-font-size);
|
|
168
168
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
169
169
|
font-family: var(--primary-tablist-m-font-family);
|
|
170
170
|
line-height: 24px;
|
|
171
|
-
}.
|
|
171
|
+
}.tabs__m_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
172
172
|
margin-left: var(--primary-tablist-m-gaps);
|
|
173
|
-
}.
|
|
173
|
+
}.tabs__m_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
174
174
|
margin-left: var(--primary-tablist-m-gaps);
|
|
175
|
-
}.
|
|
175
|
+
}.tabs__m_rz0bu .tabs__option_rz0bu {
|
|
176
176
|
padding: 0;
|
|
177
|
-
}.
|
|
177
|
+
}.tabs__l_rz0bu .tabs__title_rz0bu {
|
|
178
178
|
padding: var(--primary-tablist-l-padding);
|
|
179
179
|
font-size: var(--primary-tablist-l-font-size);
|
|
180
180
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
181
181
|
font-family: var(--primary-tablist-l-font-family);
|
|
182
182
|
line-height: 24px;
|
|
183
|
-
}.
|
|
183
|
+
}.tabs__l_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
184
184
|
margin-left: var(--primary-tablist-l-gaps);
|
|
185
|
-
}.
|
|
185
|
+
}.tabs__l_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
186
186
|
margin-left: var(--primary-tablist-l-gaps);
|
|
187
|
-
}.
|
|
187
|
+
}.tabs__l_rz0bu .tabs__option_rz0bu {
|
|
188
188
|
padding: 0;
|
|
189
|
-
}.
|
|
189
|
+
}.tabs__xl_rz0bu .tabs__title_rz0bu {
|
|
190
190
|
padding: var(--primary-tablist-xl-padding);
|
|
191
191
|
font-size: var(--primary-tablist-xl-font-size);
|
|
192
192
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
193
193
|
font-family: var(--primary-tablist-xl-font-family);
|
|
194
194
|
line-height: 32px;
|
|
195
|
-
}.
|
|
195
|
+
}.tabs__xl_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
196
196
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
197
|
-
}.
|
|
197
|
+
}.tabs__xl_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
198
198
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
199
|
-
}.
|
|
199
|
+
}.tabs__xl_rz0bu .tabs__option_rz0bu {
|
|
200
200
|
padding: 0;
|
|
201
|
-
}.
|
|
201
|
+
}.tabs__rightAddons_rz0bu {
|
|
202
202
|
display: flex;
|
|
203
203
|
justify-content: center;
|
|
204
204
|
align-items: center;
|
|
@@ -937,7 +937,8 @@
|
|
|
937
937
|
sans-serif;
|
|
938
938
|
--disabled-cursor: not-allowed;
|
|
939
939
|
--arrow-transform: rotate(180deg);
|
|
940
|
-
--size-
|
|
940
|
+
--size-xxs-height: 32px;
|
|
941
|
+
--size-xs-height: 40px;
|
|
941
942
|
--size-s-height: 48px;
|
|
942
943
|
--size-m-height: 56px;
|
|
943
944
|
--size-l-height: 64px;
|
|
@@ -1007,13 +1008,13 @@
|
|
|
1007
1008
|
|
|
1008
1009
|
/* size xl */
|
|
1009
1010
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1010
|
-
} .
|
|
1011
|
-
} .
|
|
1011
|
+
} .tabs__title_u0qfl {
|
|
1012
|
+
} .tabs__mobile_u0qfl .tabs__title_u0qfl {
|
|
1012
1013
|
padding: var(--primary-tablist-mobile-padding);
|
|
1013
1014
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
1014
1015
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
1015
1016
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
1016
1017
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
1017
|
-
} .
|
|
1018
|
+
} .tabs__mobile_u0qfl .tabs__title_u0qfl + .tabs__title_u0qfl {
|
|
1018
1019
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
1019
1020
|
}
|
|
@@ -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
|
-
const styles = {"container":"
|
|
5
|
+
const styles = {"container":"tabs__container_5lqpq","fullWidthScroll":"tabs__fullWidthScroll_5lqpq"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sqnt3 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
/* size l */
|
|
43
43
|
|
|
44
44
|
/* size xl */
|
|
45
|
-
} .
|
|
45
|
+
} .tabs__container_5lqpq {
|
|
46
46
|
position: relative;
|
|
47
47
|
overflow-x: auto;
|
|
48
48
|
overflow-y: hidden;
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
/* focus-outline fix */
|
|
53
53
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
54
54
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
|
|
55
|
-
} .
|
|
55
|
+
} .tabs__container_5lqpq::-webkit-scrollbar {
|
|
56
56
|
display: none;
|
|
57
|
-
} .
|
|
57
|
+
} .tabs__container_5lqpq > * {
|
|
58
58
|
flex-shrink: 0;
|
|
59
|
-
} .
|
|
59
|
+
} .tabs__fullWidthScroll_5lqpq {
|
|
60
60
|
margin: 0 var(--gap-m-neg);
|
|
61
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SecondaryTabList } from './Component.js';
|
|
3
|
-
import { c as commonStyles } from '../../index.module-
|
|
3
|
+
import { c as commonStyles } from '../../index.module-d05b11d2.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-tag/modern';
|
|
6
6
|
import '../../hooks/use-tabs.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { SecondaryTabList } from './Component.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-d05b11d2.js';
|
|
5
5
|
import '@alfalab/core-components-tag/modern';
|
|
6
6
|
import '../../hooks/use-tabs.js';
|
|
7
7
|
import '../scrollable-container/Component.js';
|
|
8
8
|
import 'compute-scroll-into-view';
|
|
9
9
|
|
|
10
|
-
const mobileStyles = {"title":"
|
|
10
|
+
const mobileStyles = {"title":"tabs__title_124hg tabs__title_1xkkh","mobile":"tabs__mobile_124hg"};
|
|
11
11
|
require('./mobile.css')
|
|
12
12
|
|
|
13
13
|
const styles = {
|
|
@@ -8,7 +8,7 @@ import '@alfalab/core-components-tag/modern';
|
|
|
8
8
|
import '../../hooks/use-tabs.js';
|
|
9
9
|
import '../scrollable-container/Component.js';
|
|
10
10
|
import 'compute-scroll-into-view';
|
|
11
|
-
import '../../index.module-
|
|
11
|
+
import '../../index.module-d05b11d2.js';
|
|
12
12
|
|
|
13
13
|
const SecondaryTabListResponsive = ({ size, defaultMatch = 'desktop', fullWidthScroll, ...restProps }) => {
|
|
14
14
|
const [view] = useMedia([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3r47e */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -50,29 +50,29 @@
|
|
|
50
50
|
|
|
51
51
|
/* size xl */
|
|
52
52
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
53
|
-
} .
|
|
53
|
+
} .tabs__component_1xkkh {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
} .
|
|
56
|
+
} .tabs__fullWidthScroll_1xkkh {
|
|
57
57
|
margin: 0 var(--gap-m);
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_1xkkh {
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
|
|
61
61
|
/* focus-outline fix */
|
|
62
62
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
63
63
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
64
|
-
} .
|
|
64
|
+
} .tabs__title_1xkkh {
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
} /* sizes */ .
|
|
66
|
+
} /* sizes */ .tabs__xxs_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
67
67
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
68
|
-
} .
|
|
68
|
+
} .tabs__xs_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
69
69
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
70
|
-
} .
|
|
70
|
+
} .tabs__s_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
71
71
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
72
|
-
} .
|
|
72
|
+
} .tabs__m_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
73
73
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
|
-
} .
|
|
74
|
+
} .tabs__l_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
75
75
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
76
|
-
} .
|
|
76
|
+
} .tabs__xl_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16pmx */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root {
|
|
4
4
|
}:root {
|
|
@@ -51,30 +51,30 @@
|
|
|
51
51
|
|
|
52
52
|
/* size xl */
|
|
53
53
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
54
|
-
}.
|
|
54
|
+
}.tabs__component_1xkkh {
|
|
55
55
|
position: relative;
|
|
56
56
|
display: inline-flex;
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__fullWidthScroll_1xkkh {
|
|
58
58
|
margin: 0 var(--gap-m);
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__container_1xkkh {
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
|
|
62
62
|
/* focus-outline fix */
|
|
63
63
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
64
64
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
65
|
-
}.
|
|
65
|
+
}.tabs__title_1xkkh {
|
|
66
66
|
white-space: nowrap;
|
|
67
|
-
}/* sizes */.
|
|
67
|
+
}/* sizes */.tabs__xxs_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
68
68
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__xs_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
70
70
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__s_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
72
72
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
73
|
-
}.
|
|
73
|
+
}.tabs__m_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
74
74
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
75
|
-
}.
|
|
75
|
+
}.tabs__l_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
76
76
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
77
|
-
}.
|
|
77
|
+
}.tabs__xl_1xkkh .tabs__title_1xkkh + .tabs__title_1xkkh {
|
|
78
78
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
79
79
|
} :root {
|
|
80
80
|
--color-dark-indigo: #0b1f35;
|
|
@@ -810,7 +810,8 @@
|
|
|
810
810
|
sans-serif;
|
|
811
811
|
--disabled-cursor: not-allowed;
|
|
812
812
|
--arrow-transform: rotate(180deg);
|
|
813
|
-
--size-
|
|
813
|
+
--size-xxs-height: 32px;
|
|
814
|
+
--size-xs-height: 40px;
|
|
814
815
|
--size-s-height: 48px;
|
|
815
816
|
--size-m-height: 56px;
|
|
816
817
|
--size-l-height: 64px;
|
|
@@ -880,7 +881,7 @@
|
|
|
880
881
|
|
|
881
882
|
/* size xl */
|
|
882
883
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
883
|
-
} .
|
|
884
|
-
} .
|
|
884
|
+
} .tabs__title_124hg {
|
|
885
|
+
} .tabs__mobile_124hg .tabs__title_124hg + .tabs__title_124hg {
|
|
885
886
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
886
887
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"component":"
|
|
4
|
+
const styles = {"component":"tabs__component_r78ti","hidden":"tabs__hidden_r78ti"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tab = ({ children, hidden, className, disabled, dataTestId }) => children ? (React.createElement("div", { className: cn(styles.component, {
|
|
@@ -16,10 +16,10 @@ import '../../synthetic-events.js';
|
|
|
16
16
|
import '../scrollable-container/Component.js';
|
|
17
17
|
import 'compute-scroll-into-view';
|
|
18
18
|
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-3a799412.js';
|
|
20
20
|
import '../secondary-tablist/Component.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern';
|
|
22
|
-
import '../../index.module-
|
|
22
|
+
import '../../index.module-d05b11d2.js';
|
|
23
23
|
|
|
24
24
|
const views = {
|
|
25
25
|
primary: PrimaryTabListDesktop,
|
|
@@ -16,10 +16,10 @@ import '../../synthetic-events.js';
|
|
|
16
16
|
import '../scrollable-container/Component.js';
|
|
17
17
|
import 'compute-scroll-into-view';
|
|
18
18
|
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-3a799412.js';
|
|
20
20
|
import '../secondary-tablist/Component.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern';
|
|
22
|
-
import '../../index.module-
|
|
22
|
+
import '../../index.module-d05b11d2.js';
|
|
23
23
|
|
|
24
24
|
const views = {
|
|
25
25
|
primary: PrimaryTabListMobile,
|
|
@@ -17,12 +17,12 @@ import '../../synthetic-events.js';
|
|
|
17
17
|
import '../scrollable-container/Component.js';
|
|
18
18
|
import 'compute-scroll-into-view';
|
|
19
19
|
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-3a799412.js';
|
|
21
21
|
import '../primary-tablist/Component.mobile.js';
|
|
22
22
|
import '../secondary-tablist/Component.desktop.js';
|
|
23
23
|
import '../secondary-tablist/Component.js';
|
|
24
24
|
import '@alfalab/core-components-tag/modern';
|
|
25
|
-
import '../../index.module-
|
|
25
|
+
import '../../index.module-d05b11d2.js';
|
|
26
26
|
import '../secondary-tablist/Component.mobile.js';
|
|
27
27
|
|
|
28
28
|
const views = {
|
package/modern/desktop.js
CHANGED
|
@@ -15,10 +15,10 @@ import './hooks/use-tablist-titles.js';
|
|
|
15
15
|
import '@alfalab/hooks';
|
|
16
16
|
import './synthetic-events.js';
|
|
17
17
|
import './components/title/Component.js';
|
|
18
|
-
import './index.module-
|
|
18
|
+
import './index.module-3a799412.js';
|
|
19
19
|
import 'compute-scroll-into-view';
|
|
20
20
|
import './components/secondary-tablist/Component.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern';
|
|
22
|
-
import './index.module-
|
|
22
|
+
import './index.module-d05b11d2.js';
|
|
23
23
|
import './components/tabs/Component.js';
|
|
24
24
|
import '@juggle/resize-observer';
|
|
@@ -12,17 +12,15 @@ const useCollapsibleElements = (selectors, deps = []) => {
|
|
|
12
12
|
if (!container)
|
|
13
13
|
return;
|
|
14
14
|
const addon = addonRef.current;
|
|
15
|
-
const
|
|
16
|
-
const moreElementRect = moreElement?.getBoundingClientRect();
|
|
15
|
+
const containerWidth = (inlineSize || container.clientWidth) - (addon?.scrollWidth || 0) * 1.5; // при расчётах, даём кнопке "Ещё" чуть больше места, чтобы точно влезла
|
|
17
16
|
const elements = Array.from(container.querySelectorAll(selectors));
|
|
18
|
-
const containerWidth = (inlineSize || container.clientWidth) - (moreElementRect?.width || 0) * 1.5; // при рассчётах, даём кнопке "Ещё" чуть больше места, чтобы точно влезла
|
|
19
17
|
const collapsedIds = elements.reduce((acc, element) => {
|
|
20
|
-
const { offsetLeft,
|
|
21
|
-
const elementOffset = offsetLeft +
|
|
18
|
+
const { offsetLeft, scrollWidth, id } = element;
|
|
19
|
+
const elementOffset = offsetLeft + scrollWidth;
|
|
22
20
|
const isCollapsedElement = getComputedStyle(element).visibility === 'collapse';
|
|
23
21
|
const maxWidth = addon && !isCollapsedElement
|
|
24
22
|
? containerWidth -
|
|
25
|
-
(addon.
|
|
23
|
+
(addon.scrollWidth + parseFloat(getComputedStyle(addon).marginLeft))
|
|
26
24
|
: containerWidth;
|
|
27
25
|
if (elementOffset >= maxWidth)
|
|
28
26
|
acc.push(id);
|
|
@@ -5,7 +5,7 @@ import { useTabs } from './use-tabs.js';
|
|
|
5
5
|
import '@juggle/resize-observer';
|
|
6
6
|
|
|
7
7
|
const useTablistTitles = ({ titles = [], selectedId, collapsible, collapsedTabsIds, breakpoint, onChange, }) => {
|
|
8
|
-
const { containerRef, addonRef, idsCollapsedElements } = useCollapsibleElements('[role=tab]', [titles]);
|
|
8
|
+
const { containerRef, addonRef, idsCollapsedElements } = useCollapsibleElements('[role=tab]', [titles, collapsedTabsIds]);
|
|
9
9
|
const [view] = useMedia([['desktop', `(min-width: ${breakpoint}px)`]], 'desktop');
|
|
10
10
|
const tablistTitles = useMemo(() => {
|
|
11
11
|
const idsCollapsedTitles = [];
|
package/modern/index.js
CHANGED
|
@@ -18,11 +18,11 @@ import '@juggle/resize-observer';
|
|
|
18
18
|
import './synthetic-events.js';
|
|
19
19
|
import './components/title/Component.js';
|
|
20
20
|
import 'compute-scroll-into-view';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-3a799412.js';
|
|
22
22
|
import './components/primary-tablist/Component.mobile.js';
|
|
23
23
|
import './components/secondary-tablist/Component.desktop.js';
|
|
24
24
|
import './components/secondary-tablist/Component.js';
|
|
25
25
|
import '@alfalab/core-components-tag/modern';
|
|
26
|
-
import './index.module-
|
|
26
|
+
import './index.module-d05b11d2.js';
|
|
27
27
|
import './components/secondary-tablist/Component.mobile.js';
|
|
28
28
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_rz0bu","fullWidthScroll":"tabs__fullWidthScroll_rz0bu","container":"tabs__container_rz0bu","title":"tabs__title_rz0bu","disabled":"tabs__disabled_rz0bu","focused":"tabs__focused_rz0bu","collapsed":"tabs__collapsed_rz0bu","selected":"tabs__selected_rz0bu","line":"tabs__line_rz0bu","s":"tabs__s_rz0bu","xs":"tabs__xs_rz0bu","xxs":"tabs__xxs_rz0bu","pickerWrapper":"tabs__pickerWrapper_rz0bu","option":"tabs__option_rz0bu","m":"tabs__m_rz0bu","l":"tabs__l_rz0bu","xl":"tabs__xl_rz0bu","rightAddons":"tabs__rightAddons_rz0bu"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_1xkkh","fullWidthScroll":"tabs__fullWidthScroll_1xkkh","container":"tabs__container_1xkkh","title":"tabs__title_1xkkh","xxs":"tabs__xxs_1xkkh","xs":"tabs__xs_1xkkh","s":"tabs__s_1xkkh","m":"tabs__m_1xkkh","l":"tabs__l_1xkkh","xl":"tabs__xl_1xkkh"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|