@inchurch/matcha-theme 20.0.8 → 20.276.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/abstracts/_colors.scss +404 -404
- package/abstracts/_elevation.scss +102 -102
- package/abstracts/_functions.scss +1212 -1212
- package/abstracts/_media-breakpoint.scss +23 -23
- package/abstracts/_typography.scss +127 -127
- package/base/_reset.scss +438 -438
- package/components/app-page-header.scss +260 -0
- package/components/matcha-accordion.scss +294 -157
- package/components/matcha-avatar.scss +171 -31
- package/components/matcha-badge.scss +4 -4
- package/components/matcha-breadcrumb.scss +232 -126
- package/components/matcha-button-toggle.scss +44 -0
- package/components/matcha-buttons.scss +908 -784
- package/components/matcha-calendar.scss +70 -2
- package/components/matcha-cards.scss +28 -2
- package/components/matcha-checkbox.scss +191 -490
- package/components/matcha-chip.scss +297 -212
- package/components/matcha-command-palette.scss +291 -63
- package/components/matcha-crop.scss +407 -172
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +86 -31
- package/components/matcha-drawer.scss +201 -50
- package/components/matcha-drop-image.scss +14 -0
- package/components/matcha-drop-list.scss +42 -1
- package/components/matcha-empty-state.scss +195 -83
- package/components/matcha-flag.scss +93 -52
- package/components/matcha-footer.scss +68 -164
- package/components/matcha-form-field.scss +52 -0
- package/components/matcha-form-section.scss +101 -101
- package/components/matcha-header.scss +135 -325
- package/components/matcha-highlight.scss +65 -197
- package/components/matcha-hint-text.scss +21 -0
- package/components/matcha-horizontal-tree.scss +317 -317
- package/components/matcha-icon.scss +17 -25
- package/components/matcha-list.scss +5 -5
- package/components/matcha-menu.scss +13 -0
- package/components/matcha-modal.scss +58 -84
- package/components/matcha-nav.scss +361 -230
- package/components/matcha-notification.scss +413 -197
- package/components/matcha-option.scss +79 -23
- package/components/matcha-paginator.scss +689 -235
- package/components/matcha-panel.scss +42 -26
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +257 -153
- package/components/matcha-radio.scss +244 -452
- package/components/matcha-scrollbox-shadow.scss +122 -122
- package/components/matcha-select.scss +3 -3
- package/components/matcha-skeleton.scss +18 -0
- package/components/matcha-slide-toggle.scss +47 -2
- package/components/matcha-slider.scss +172 -75
- package/components/matcha-snack-bar.scss +114 -121
- package/components/matcha-spinner.scss +76 -57
- package/components/matcha-status-pill.scss +82 -0
- package/components/matcha-stepper.scss +377 -177
- package/components/matcha-table.scss +569 -785
- package/components/matcha-tabs.scss +624 -469
- package/components/matcha-text-editor.scss +98 -144
- package/components/matcha-toolbar.scss +359 -206
- package/components/matcha-tooltip.scss +156 -62
- package/components/matcha-tree-view.scss +189 -0
- package/components/matcha-uploader.scss +240 -62
- package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/layout/matcha-page-layout.scss +776 -0
- package/main.scss +232 -261
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -26
- package/tokens/_color-tokens.scss +1152 -1152
- package/tokens/_css-custom-properties.scss +650 -568
- package/tokens/_spacing-tokens.scss +94 -94
- package/vendors/angular-editor.scss +56 -56
- package/vendors/angular-material-fixes.scss +297 -297
- package/vendors/charts.scss +92 -92
- package/vendors/ng5-slider.scss +56 -56
- package/vendors/ngx-material-timepicker.scss +50 -50
- package/fonts/CircularStd-Black.eot +0 -0
- package/fonts/CircularStd-Black.svg +0 -3426
- package/fonts/CircularStd-Black.ttf +0 -0
- package/fonts/CircularStd-Black.woff +0 -0
- package/fonts/CircularStd-Black.woff2 +0 -0
- package/fonts/CircularStd-Bold.eot +0 -0
- package/fonts/CircularStd-Bold.otf +0 -0
- package/fonts/CircularStd-Bold.svg +0 -13532
- package/fonts/CircularStd-Bold.ttf +0 -0
- package/fonts/CircularStd-Bold.woff +0 -0
- package/fonts/CircularStd-Bold.woff2 +0 -0
- package/fonts/CircularStd-Medium.eot +0 -0
- package/fonts/CircularStd-Medium.otf +0 -0
- package/fonts/CircularStd-Medium.svg +0 -13511
- package/fonts/CircularStd-Medium.ttf +0 -0
- package/fonts/CircularStd-Medium.woff +0 -0
- package/fonts/CircularStd-Medium.woff2 +0 -0
- package/fonts/CircularStd-Regular.eot +0 -0
- package/fonts/CircularStd-Regular.otf +0 -0
- package/fonts/CircularStd-Regular.svg +0 -2378
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/fonts/CircularStd-Regular.woff2 +0 -0
|
@@ -1,469 +1,624 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
@mixin _colorize-inactive-type-basic($theme, $color-functions) {
|
|
4
|
-
&[inactivetype="basic"] {
|
|
5
|
-
@each $colorName, $colorFn in $color-functions {
|
|
6
|
-
&[inactivecolor="#{'' + $colorName}"] {
|
|
7
|
-
.button-group matcha-tab-item {
|
|
8
|
-
|
|
9
|
-
button[matcha-button],
|
|
10
|
-
a[matcha-button] {
|
|
11
|
-
&:not([active-item="true"]) {
|
|
12
|
-
background: var(--matcha-color-surface, #{getSurface($theme)});
|
|
13
|
-
color: call(#{$colorFn}, $theme);
|
|
14
|
-
box-shadow: 0 0 0 0px inset;
|
|
15
|
-
|
|
16
|
-
.ripple {
|
|
17
|
-
background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&[disabled],
|
|
26
|
-
&[disabled]:not([disabled="false"]),
|
|
27
|
-
&[disabled="true"] {
|
|
28
|
-
&:not([active-item="true"]) {
|
|
29
|
-
.button-group matcha-tab-item {
|
|
30
|
-
|
|
31
|
-
button[matcha-button],
|
|
32
|
-
a[matcha-button] {
|
|
33
|
-
@include _disabled-basic-button($theme);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin _colorize-inactive-type-outline($theme, $color-functions) {
|
|
42
|
-
&[inactivetype="outline"] {
|
|
43
|
-
|
|
44
|
-
//disabled false
|
|
45
|
-
&:not([disabled="true"]) {
|
|
46
|
-
@each $colorName, $colorFn in $color-functions {
|
|
47
|
-
&[inactivecolor="#{'' + $colorName}"] {
|
|
48
|
-
.button-group matcha-tab-item {
|
|
49
|
-
|
|
50
|
-
button[matcha-button],
|
|
51
|
-
a[matcha-button] {
|
|
52
|
-
|
|
53
|
-
//botão não ativo
|
|
54
|
-
&:not([active-item="true"]) {
|
|
55
|
-
color: call(#{$colorFn}, $theme);
|
|
56
|
-
background: transparent;
|
|
57
|
-
box-shadow: 0 0 0 2px call(#{$colorFn}, $theme) inset;
|
|
58
|
-
|
|
59
|
-
.ripple {
|
|
60
|
-
background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
//disabled true
|
|
70
|
-
&[disabled],
|
|
71
|
-
&[disabled]:not([disabled="false"]),
|
|
72
|
-
&[disabled="true"] {
|
|
73
|
-
>.button-group matcha-tab-item {
|
|
74
|
-
|
|
75
|
-
button[matcha-button],
|
|
76
|
-
a[matcha-button] {
|
|
77
|
-
|
|
78
|
-
//botão não ativo
|
|
79
|
-
&:not([active-item="true"]) {
|
|
80
|
-
@include _disabled-outline-button($theme);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@mixin _colorize-inactive-type-alpha($theme, $color-functions) {
|
|
89
|
-
&[inactivetype="alpha"] {
|
|
90
|
-
@each $colorName, $colorFn in $color-functions {
|
|
91
|
-
&[inactivecolor="#{'' + $colorName}"] {
|
|
92
|
-
.button-group matcha-tab-item {
|
|
93
|
-
|
|
94
|
-
button[matcha-button],
|
|
95
|
-
a[matcha-button] {
|
|
96
|
-
&:not([active-item="true"]) {
|
|
97
|
-
color: call(#{$colorFn}, $theme);
|
|
98
|
-
background: call(#{$colorFn}Alpha, $theme);
|
|
99
|
-
box-shadow: 0 0 0 0px;
|
|
100
|
-
|
|
101
|
-
.ripple {
|
|
102
|
-
background: call(#{$colorFn}ContrastAlpha, $theme); // ok: legacy ripple color token
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&[disabled],
|
|
111
|
-
&[disabled]:not([disabled="false"]),
|
|
112
|
-
&[disabled="true"] {
|
|
113
|
-
.button-group matcha-tab-item {
|
|
114
|
-
|
|
115
|
-
button[matcha-button],
|
|
116
|
-
a[matcha-button] {
|
|
117
|
-
|
|
118
|
-
//botão não ativo
|
|
119
|
-
&:not([active-item="true"]) {
|
|
120
|
-
@include _disabled-alpha-button($theme);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@mixin _colorize-inactive-type-link($theme, $color-functions) {
|
|
129
|
-
|
|
130
|
-
&[inactivetype="link"] {
|
|
131
|
-
@each $colorName, $colorFn in $color-functions {
|
|
132
|
-
&[inactivecolor="#{'' + $colorName}"] {
|
|
133
|
-
.button-group matcha-tab-item {
|
|
134
|
-
|
|
135
|
-
button[matcha-button],
|
|
136
|
-
a[matcha-button] {
|
|
137
|
-
&:not([active-item="true"]) {
|
|
138
|
-
|
|
139
|
-
background: transparent;
|
|
140
|
-
color: call(#{$colorFn}, $theme);
|
|
141
|
-
box-shadow: 0 0 0 0px;
|
|
142
|
-
|
|
143
|
-
.ripple {
|
|
144
|
-
background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&[disabled],
|
|
154
|
-
&[disabled]:not([disabled="false"]),
|
|
155
|
-
&[disabled="true"] {
|
|
156
|
-
.button-group matcha-tab-item {
|
|
157
|
-
|
|
158
|
-
button[matcha-button],
|
|
159
|
-
a[matcha-button] {
|
|
160
|
-
|
|
161
|
-
//botão não ativo
|
|
162
|
-
&:not([active-item="true"]) {
|
|
163
|
-
@include _disabled-link-button($theme);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
@mixin matcha-tabs($theme) {
|
|
175
|
-
$color-functions: (
|
|
176
|
-
red: getRed,
|
|
177
|
-
pink: getPink,
|
|
178
|
-
purple: getPurple,
|
|
179
|
-
deep-purple: getDeepPurple,
|
|
180
|
-
indigo: getIndigo,
|
|
181
|
-
blue: getBlue,
|
|
182
|
-
light-blue: getLightBlue,
|
|
183
|
-
cyan: getCyan,
|
|
184
|
-
teal: getTeal,
|
|
185
|
-
green: getGreen,
|
|
186
|
-
light-green: getLightGreen,
|
|
187
|
-
lime: getLime,
|
|
188
|
-
yellow: getYellow,
|
|
189
|
-
amber: getAmber,
|
|
190
|
-
orange: getOrange,
|
|
191
|
-
deep-orange: getDeepOrange,
|
|
192
|
-
brown: getBrown,
|
|
193
|
-
grey: getGrey,
|
|
194
|
-
blue-grey: getBlueGrey,
|
|
195
|
-
primary: getPrimary,
|
|
196
|
-
accent: getAccent,
|
|
197
|
-
success: getSuccess,
|
|
198
|
-
warn: getWarn,
|
|
199
|
-
danger: getDanger,
|
|
200
|
-
info: getInfo,
|
|
201
|
-
disabled: getDisabled,
|
|
202
|
-
);
|
|
203
|
-
|
|
204
|
-
matcha-tabs {
|
|
205
|
-
display: flex;
|
|
206
|
-
@include _colorize-inactive-type-basic($theme, $color-functions);
|
|
207
|
-
@include _colorize-inactive-type-outline($theme, $color-functions);
|
|
208
|
-
@include _colorize-inactive-type-alpha($theme, $color-functions);
|
|
209
|
-
@include _colorize-inactive-type-link($theme, $color-functions);
|
|
210
|
-
|
|
211
|
-
.button-group matcha-tab-item {
|
|
212
|
-
button[matcha-button],
|
|
213
|
-
a[matcha-button] {
|
|
214
|
-
&:focus-visible:not([disabled]):not([disabled="true"]) {
|
|
215
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent, #{getAccent($theme)});
|
|
216
|
-
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&[disabled],
|
|
222
|
-
&[disabled]:not([disabled="false"]),
|
|
223
|
-
&[disabled="true"] {
|
|
224
|
-
.button-group matcha-tab-item {
|
|
225
|
-
|
|
226
|
-
button[matcha-button],
|
|
227
|
-
a[matcha-button] {
|
|
228
|
-
&[active-item="true"] {
|
|
229
|
-
|
|
230
|
-
&[outline],
|
|
231
|
-
&[outline]:not([outline="false"]),
|
|
232
|
-
&[outline="true"] {
|
|
233
|
-
@include _disabled-outline-button($theme);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&[basic],
|
|
237
|
-
&[basic]:not([basic="false"]),
|
|
238
|
-
&[basic="true"] {
|
|
239
|
-
@include _disabled-basic-button($theme);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&[alpha],
|
|
243
|
-
&[alpha]:not([alpha="false"]),
|
|
244
|
-
&[alpha="true"] {
|
|
245
|
-
@include _disabled-alpha-button($theme);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
&[link],
|
|
249
|
-
&[link]:not([link="false"]),
|
|
250
|
-
&[link="true"] {
|
|
251
|
-
@include _disabled-link-button($theme);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.button-group {
|
|
262
|
-
&.gap-0 {
|
|
263
|
-
gap: 0 !important;
|
|
264
|
-
|
|
265
|
-
// Ajuste border-radius quando gap = 0
|
|
266
|
-
matcha-tab-item:first-child button[matcha-button] {
|
|
267
|
-
border-top-right-radius: 0;
|
|
268
|
-
border-bottom-right-radius: 0;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
matcha-tab-item:last-child button[matcha-button] {
|
|
272
|
-
border-top-left-radius: 0;
|
|
273
|
-
border-bottom-left-radius: 0;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
matcha-tab-item:not(:first-child):not(:last-child) button[matcha-button] {
|
|
277
|
-
border-radius: 0;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
// =============================================================================
|
|
283
|
-
// MODERNIZED TAB STYLES —
|
|
284
|
-
//
|
|
285
|
-
//
|
|
286
|
-
//
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
//
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
//
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
flex
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
.matcha-tab-item {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin _colorize-inactive-type-basic($theme, $color-functions) {
|
|
4
|
+
&[inactivetype="basic"] {
|
|
5
|
+
@each $colorName, $colorFn in $color-functions {
|
|
6
|
+
&[inactivecolor="#{'' + $colorName}"] {
|
|
7
|
+
.button-group matcha-tab-item {
|
|
8
|
+
|
|
9
|
+
button[matcha-button],
|
|
10
|
+
a[matcha-button] {
|
|
11
|
+
&:not([active-item="true"]) {
|
|
12
|
+
background: var(--matcha-color-surface, #{getSurface($theme)});
|
|
13
|
+
color: call(#{$colorFn}, $theme);
|
|
14
|
+
box-shadow: 0 0 0 0px inset;
|
|
15
|
+
|
|
16
|
+
.ripple {
|
|
17
|
+
background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[disabled],
|
|
26
|
+
&[disabled]:not([disabled="false"]),
|
|
27
|
+
&[disabled="true"] {
|
|
28
|
+
&:not([active-item="true"]) {
|
|
29
|
+
.button-group matcha-tab-item {
|
|
30
|
+
|
|
31
|
+
button[matcha-button],
|
|
32
|
+
a[matcha-button] {
|
|
33
|
+
@include _disabled-basic-button($theme);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin _colorize-inactive-type-outline($theme, $color-functions) {
|
|
42
|
+
&[inactivetype="outline"] {
|
|
43
|
+
|
|
44
|
+
//disabled false
|
|
45
|
+
&:not([disabled="true"]) {
|
|
46
|
+
@each $colorName, $colorFn in $color-functions {
|
|
47
|
+
&[inactivecolor="#{'' + $colorName}"] {
|
|
48
|
+
.button-group matcha-tab-item {
|
|
49
|
+
|
|
50
|
+
button[matcha-button],
|
|
51
|
+
a[matcha-button] {
|
|
52
|
+
|
|
53
|
+
//botão não ativo
|
|
54
|
+
&:not([active-item="true"]) {
|
|
55
|
+
color: call(#{$colorFn}, $theme);
|
|
56
|
+
background: transparent;
|
|
57
|
+
box-shadow: 0 0 0 2px call(#{$colorFn}, $theme) inset;
|
|
58
|
+
|
|
59
|
+
.ripple {
|
|
60
|
+
background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
//disabled true
|
|
70
|
+
&[disabled],
|
|
71
|
+
&[disabled]:not([disabled="false"]),
|
|
72
|
+
&[disabled="true"] {
|
|
73
|
+
>.button-group matcha-tab-item {
|
|
74
|
+
|
|
75
|
+
button[matcha-button],
|
|
76
|
+
a[matcha-button] {
|
|
77
|
+
|
|
78
|
+
//botão não ativo
|
|
79
|
+
&:not([active-item="true"]) {
|
|
80
|
+
@include _disabled-outline-button($theme);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@mixin _colorize-inactive-type-alpha($theme, $color-functions) {
|
|
89
|
+
&[inactivetype="alpha"] {
|
|
90
|
+
@each $colorName, $colorFn in $color-functions {
|
|
91
|
+
&[inactivecolor="#{'' + $colorName}"] {
|
|
92
|
+
.button-group matcha-tab-item {
|
|
93
|
+
|
|
94
|
+
button[matcha-button],
|
|
95
|
+
a[matcha-button] {
|
|
96
|
+
&:not([active-item="true"]) {
|
|
97
|
+
color: call(#{$colorFn}, $theme);
|
|
98
|
+
background: call(#{$colorFn}Alpha, $theme);
|
|
99
|
+
box-shadow: 0 0 0 0px;
|
|
100
|
+
|
|
101
|
+
.ripple {
|
|
102
|
+
background: call(#{$colorFn}ContrastAlpha, $theme); // ok: legacy ripple color token
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&[disabled],
|
|
111
|
+
&[disabled]:not([disabled="false"]),
|
|
112
|
+
&[disabled="true"] {
|
|
113
|
+
.button-group matcha-tab-item {
|
|
114
|
+
|
|
115
|
+
button[matcha-button],
|
|
116
|
+
a[matcha-button] {
|
|
117
|
+
|
|
118
|
+
//botão não ativo
|
|
119
|
+
&:not([active-item="true"]) {
|
|
120
|
+
@include _disabled-alpha-button($theme);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@mixin _colorize-inactive-type-link($theme, $color-functions) {
|
|
129
|
+
|
|
130
|
+
&[inactivetype="link"] {
|
|
131
|
+
@each $colorName, $colorFn in $color-functions {
|
|
132
|
+
&[inactivecolor="#{'' + $colorName}"] {
|
|
133
|
+
.button-group matcha-tab-item {
|
|
134
|
+
|
|
135
|
+
button[matcha-button],
|
|
136
|
+
a[matcha-button] {
|
|
137
|
+
&:not([active-item="true"]) {
|
|
138
|
+
|
|
139
|
+
background: transparent;
|
|
140
|
+
color: call(#{$colorFn}, $theme);
|
|
141
|
+
box-shadow: 0 0 0 0px;
|
|
142
|
+
|
|
143
|
+
.ripple {
|
|
144
|
+
background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&[disabled],
|
|
154
|
+
&[disabled]:not([disabled="false"]),
|
|
155
|
+
&[disabled="true"] {
|
|
156
|
+
.button-group matcha-tab-item {
|
|
157
|
+
|
|
158
|
+
button[matcha-button],
|
|
159
|
+
a[matcha-button] {
|
|
160
|
+
|
|
161
|
+
//botão não ativo
|
|
162
|
+
&:not([active-item="true"]) {
|
|
163
|
+
@include _disabled-link-button($theme);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
@mixin matcha-tabs($theme) {
|
|
175
|
+
$color-functions: (
|
|
176
|
+
red: getRed,
|
|
177
|
+
pink: getPink,
|
|
178
|
+
purple: getPurple,
|
|
179
|
+
deep-purple: getDeepPurple,
|
|
180
|
+
indigo: getIndigo,
|
|
181
|
+
blue: getBlue,
|
|
182
|
+
light-blue: getLightBlue,
|
|
183
|
+
cyan: getCyan,
|
|
184
|
+
teal: getTeal,
|
|
185
|
+
green: getGreen,
|
|
186
|
+
light-green: getLightGreen,
|
|
187
|
+
lime: getLime,
|
|
188
|
+
yellow: getYellow,
|
|
189
|
+
amber: getAmber,
|
|
190
|
+
orange: getOrange,
|
|
191
|
+
deep-orange: getDeepOrange,
|
|
192
|
+
brown: getBrown,
|
|
193
|
+
grey: getGrey,
|
|
194
|
+
blue-grey: getBlueGrey,
|
|
195
|
+
primary: getPrimary,
|
|
196
|
+
accent: getAccent,
|
|
197
|
+
success: getSuccess,
|
|
198
|
+
warn: getWarn,
|
|
199
|
+
danger: getDanger,
|
|
200
|
+
info: getInfo,
|
|
201
|
+
disabled: getDisabled,
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
matcha-tabs {
|
|
205
|
+
display: flex;
|
|
206
|
+
@include _colorize-inactive-type-basic($theme, $color-functions);
|
|
207
|
+
@include _colorize-inactive-type-outline($theme, $color-functions);
|
|
208
|
+
@include _colorize-inactive-type-alpha($theme, $color-functions);
|
|
209
|
+
@include _colorize-inactive-type-link($theme, $color-functions);
|
|
210
|
+
|
|
211
|
+
.button-group matcha-tab-item {
|
|
212
|
+
button[matcha-button],
|
|
213
|
+
a[matcha-button] {
|
|
214
|
+
&:focus-visible:not([disabled]):not([disabled="true"]) {
|
|
215
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent, #{getAccent($theme)});
|
|
216
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&[disabled],
|
|
222
|
+
&[disabled]:not([disabled="false"]),
|
|
223
|
+
&[disabled="true"] {
|
|
224
|
+
.button-group matcha-tab-item {
|
|
225
|
+
|
|
226
|
+
button[matcha-button],
|
|
227
|
+
a[matcha-button] {
|
|
228
|
+
&[active-item="true"] {
|
|
229
|
+
|
|
230
|
+
&[outline],
|
|
231
|
+
&[outline]:not([outline="false"]),
|
|
232
|
+
&[outline="true"] {
|
|
233
|
+
@include _disabled-outline-button($theme);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&[basic],
|
|
237
|
+
&[basic]:not([basic="false"]),
|
|
238
|
+
&[basic="true"] {
|
|
239
|
+
@include _disabled-basic-button($theme);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&[alpha],
|
|
243
|
+
&[alpha]:not([alpha="false"]),
|
|
244
|
+
&[alpha="true"] {
|
|
245
|
+
@include _disabled-alpha-button($theme);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&[link],
|
|
249
|
+
&[link]:not([link="false"]),
|
|
250
|
+
&[link="true"] {
|
|
251
|
+
@include _disabled-link-button($theme);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.button-group {
|
|
262
|
+
&.gap-0 {
|
|
263
|
+
gap: 0 !important;
|
|
264
|
+
|
|
265
|
+
// Ajuste border-radius quando gap = 0
|
|
266
|
+
matcha-tab-item:first-child button[matcha-button] {
|
|
267
|
+
border-top-right-radius: 0;
|
|
268
|
+
border-bottom-right-radius: 0;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
matcha-tab-item:last-child button[matcha-button] {
|
|
272
|
+
border-top-left-radius: 0;
|
|
273
|
+
border-bottom-left-radius: 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
matcha-tab-item:not(:first-child):not(:last-child) button[matcha-button] {
|
|
277
|
+
border-radius: 0;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// =============================================================================
|
|
283
|
+
// MODERNIZED TAB STYLES — 1:1 Figma DSV3 matcha/tabs/tab (15768:76)
|
|
284
|
+
// Tipo: Underline (só horizontal) · Card (horizontal + vertical)
|
|
285
|
+
// Estado: Default · Selecionado · Disabled
|
|
286
|
+
// Ícone: opcional
|
|
287
|
+
// =============================================================================
|
|
288
|
+
|
|
289
|
+
@mixin matcha-tabs-modern($theme) {
|
|
290
|
+
$is-dark: map.get($theme, is-dark);
|
|
291
|
+
|
|
292
|
+
// ── Component-level tokens (overridable pelo consumer via CSS vars) ───
|
|
293
|
+
matcha-tabs {
|
|
294
|
+
--matcha-tab-min-width-underline: var(--matcha-space-1500, 120px);
|
|
295
|
+
--matcha-tab-min-width-card-horizontal: 107px;
|
|
296
|
+
--matcha-tab-min-width-card-vertical: var(--matcha-space-1100, 88px);
|
|
297
|
+
--matcha-tab-close-size: var(--matcha-icon-size-xs, 14px);
|
|
298
|
+
--matcha-tab-state-opacity-hover: var(--matcha-state-hover, 0.08);
|
|
299
|
+
--matcha-tab-state-opacity-active: var(--matcha-state-active, 0.12);
|
|
300
|
+
--matcha-tab-state-opacity-disabled: var(--matcha-state-opacity-disabled, 0.5);
|
|
301
|
+
--matcha-tab-focus-halo: 4px;
|
|
302
|
+
--matcha-tab-focus-halo-alpha: 0.16;
|
|
303
|
+
|
|
304
|
+
// Layout do host — canon WAI-ARIA tablist:
|
|
305
|
+
// horizontal → nav em cima, content embaixo (column)
|
|
306
|
+
// vertical → nav à esquerda, content à direita (row, sidenav-like)
|
|
307
|
+
// Override do legacy `matcha-tabs { display: flex }` que assumia row sempre
|
|
308
|
+
// (legado button-group). Aria-orientation vem do host binding do component.
|
|
309
|
+
flex-direction: column;
|
|
310
|
+
// 24px (space-300) é o vertical rhythm canon entre blocos no painel —
|
|
311
|
+
// mesmo gap entre seções dentro do content. Evita "tab↔content maior que
|
|
312
|
+
// section↔section" que rompe a hierarquia visual.
|
|
313
|
+
gap: var(--matcha-space-300, 24px);
|
|
314
|
+
|
|
315
|
+
&[aria-orientation="vertical"] {
|
|
316
|
+
flex-direction: row;
|
|
317
|
+
gap: var(--matcha-space-300, 24px);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// ── Underline Tab (1:1 Figma DSV3 — border per item) ──────────────────
|
|
322
|
+
// Cada item tem bg surface-card + border-bottom 4px (surface-border default,
|
|
323
|
+
// accent selected). Container não tem border próprio (canon Figma).
|
|
324
|
+
// Sliding indicator absoluto desliza entre tabs (Material 3 style).
|
|
325
|
+
// Sempre horizontal (vertical não é canon).
|
|
326
|
+
.matcha-tab-underline {
|
|
327
|
+
display: flex;
|
|
328
|
+
align-items: stretch;
|
|
329
|
+
background: transparent;
|
|
330
|
+
position: relative;
|
|
331
|
+
|
|
332
|
+
// Mobile-friendly horizontal scroll
|
|
333
|
+
&.matcha-tab-scrollable {
|
|
334
|
+
overflow-x: auto;
|
|
335
|
+
scrollbar-width: thin;
|
|
336
|
+
-webkit-overflow-scrolling: touch;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// ── Sliding indicator (Material 3 magic underline) ──
|
|
340
|
+
// Cantos retos + 2px de altura (canon Figma — sem rounded).
|
|
341
|
+
.matcha-tab-indicator {
|
|
342
|
+
position: absolute;
|
|
343
|
+
bottom: 0;
|
|
344
|
+
left: var(--matcha-tab-indicator-left, 0);
|
|
345
|
+
width: var(--matcha-tab-indicator-width, 0);
|
|
346
|
+
height: var(--matcha-border-thin, 2px);
|
|
347
|
+
background: var(--matcha-color-accent, #{getAccent($theme)});
|
|
348
|
+
border-radius: 0;
|
|
349
|
+
transition:
|
|
350
|
+
left var(--matcha-duration-fast, 200ms) var(--matcha-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)),
|
|
351
|
+
width var(--matcha-duration-fast, 200ms) var(--matcha-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));
|
|
352
|
+
pointer-events: none;
|
|
353
|
+
z-index: 1;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.matcha-tab-item {
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
justify-content: center;
|
|
360
|
+
gap: var(--matcha-space-100, 8px);
|
|
361
|
+
padding: var(--matcha-space-200, 16px) var(--matcha-space-500, 40px);
|
|
362
|
+
border: none;
|
|
363
|
+
// Border bottom 2px — per item (track surface-border, slider sobrepõe accent)
|
|
364
|
+
border-bottom: var(--matcha-border-thin, 2px) solid
|
|
365
|
+
var(--matcha-color-surface-border, #{getDisabled($theme)});
|
|
366
|
+
background: var(--matcha-color-surface-card, #{getSurface($theme)});
|
|
367
|
+
cursor: pointer;
|
|
368
|
+
position: relative;
|
|
369
|
+
overflow: hidden;
|
|
370
|
+
font-family: var(--matcha-font-family);
|
|
371
|
+
font-size: var(--matcha-text-body-lg, 16px);
|
|
372
|
+
font-weight: var(--matcha-weight-regular, 400);
|
|
373
|
+
line-height: var(--matcha-leading-body-lg, 24px);
|
|
374
|
+
color: var(--matcha-color-text-secondary,
|
|
375
|
+
rgba(getForeground($theme), 0.7));
|
|
376
|
+
white-space: nowrap;
|
|
377
|
+
flex-shrink: 0;
|
|
378
|
+
min-width: var(--matcha-tab-min-width-underline);
|
|
379
|
+
transition:
|
|
380
|
+
color var(--matcha-duration-fast, 200ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
381
|
+
border-bottom-color var(--matcha-duration-fast, 200ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
382
|
+
font-weight var(--matcha-duration-fast, 200ms) ease;
|
|
383
|
+
|
|
384
|
+
// State layer (hover + active visual feedback)
|
|
385
|
+
&::before {
|
|
386
|
+
content: '';
|
|
387
|
+
position: absolute;
|
|
388
|
+
inset: 0;
|
|
389
|
+
background: currentColor;
|
|
390
|
+
opacity: 0;
|
|
391
|
+
pointer-events: none;
|
|
392
|
+
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
393
|
+
}
|
|
394
|
+
&:hover:not(:disabled)::before { opacity: var(--matcha-tab-state-opacity-hover); }
|
|
395
|
+
&:active:not(:disabled)::before { opacity: var(--matcha-tab-state-opacity-active); }
|
|
396
|
+
|
|
397
|
+
// ── Selecionado (border-bottom muda pra accent ALÉM do sliding indicator
|
|
398
|
+
// — cobre 100% mesmo com subpixel mismatch do indicator) ──
|
|
399
|
+
&.active,
|
|
400
|
+
&[aria-selected="true"] {
|
|
401
|
+
color: var(--matcha-color-accent, #{getAccent($theme)});
|
|
402
|
+
font-weight: var(--matcha-weight-semibold, 600);
|
|
403
|
+
line-height: var(--matcha-leading-title-sm, 22px);
|
|
404
|
+
border-bottom-color: var(--matcha-color-accent, #{getAccent($theme)});
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// ── Disabled ──
|
|
408
|
+
&:disabled,
|
|
409
|
+
&[disabled] {
|
|
410
|
+
opacity: var(--matcha-tab-state-opacity-disabled);
|
|
411
|
+
pointer-events: none;
|
|
412
|
+
cursor: default;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// ── Focus ring polido (offset 4px + halo 16% alpha) ──
|
|
416
|
+
&:focus-visible {
|
|
417
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid
|
|
418
|
+
var(--matcha-color-accent, #{getAccent($theme)});
|
|
419
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 4px);
|
|
420
|
+
border-radius: var(--matcha-radius-sm, 4px);
|
|
421
|
+
box-shadow: 0 0 0 var(--matcha-tab-focus-halo)
|
|
422
|
+
rgba(getAccent($theme), var(--matcha-tab-focus-halo-alpha));
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// ── Card Tab (canon Figma) ────────────────────────────────────────────
|
|
428
|
+
// Card 2px border accent quando selected · texto text-primary (NÃO accent).
|
|
429
|
+
// Suporta horizontal (default) e vertical (icon stacked).
|
|
430
|
+
.matcha-tab-card {
|
|
431
|
+
display: flex;
|
|
432
|
+
// Tamanho natural por item — stretch vertical antes esticava cards quando
|
|
433
|
+
// pai tinha altura expandida (bug reportado em pages com page-content flex-fill).
|
|
434
|
+
align-items: flex-start;
|
|
435
|
+
gap: var(--matcha-space-100, 8px);
|
|
436
|
+
flex-wrap: wrap;
|
|
437
|
+
|
|
438
|
+
// Equal-width layout — cada tab ocupa fatia igual da row (paginador-like).
|
|
439
|
+
// Habilitado via prop `equalWidth` no consumer. Icon stacked acima do label
|
|
440
|
+
// (look canon de paginator), independente de orientation do host.
|
|
441
|
+
&.matcha-tab-equal-width {
|
|
442
|
+
flex-wrap: nowrap;
|
|
443
|
+
|
|
444
|
+
.matcha-tab-item {
|
|
445
|
+
flex: 1 1 0;
|
|
446
|
+
min-width: 0;
|
|
447
|
+
flex-direction: column;
|
|
448
|
+
text-align: center;
|
|
449
|
+
padding: var(--matcha-space-150, 12px) var(--matcha-space-200, 16px);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// Vertical layout — empilha icon + label
|
|
454
|
+
&.matcha-tab-vertical .matcha-tab-item {
|
|
455
|
+
flex-direction: column;
|
|
456
|
+
min-width: var(--matcha-tab-min-width-card-vertical);
|
|
457
|
+
padding: var(--matcha-space-100, 8px) var(--matcha-space-200, 16px);
|
|
458
|
+
text-align: center;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.matcha-tab-item {
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
gap: var(--matcha-space-100, 8px);
|
|
466
|
+
padding: var(--matcha-space-150, 12px) var(--matcha-space-200, 16px);
|
|
467
|
+
border: var(--matcha-border-thin, 1px) solid transparent;
|
|
468
|
+
// radius-lg (8px) escala 1:2 com cards (xl=16px) — hierarquia visual
|
|
469
|
+
// canon: atom interativo / container. Antes era md (4px), o que dava
|
|
470
|
+
// disparidade 1:4 e quebrava a leitura conjunta tabs + cards.
|
|
471
|
+
border-radius: var(--matcha-radius-lg, 8px);
|
|
472
|
+
background: var(--matcha-color-surface-card,
|
|
473
|
+
#{getSurface($theme)});
|
|
474
|
+
cursor: pointer;
|
|
475
|
+
position: relative;
|
|
476
|
+
overflow: hidden;
|
|
477
|
+
font-family: var(--matcha-font-family);
|
|
478
|
+
font-size: var(--matcha-text-body-md, 14px);
|
|
479
|
+
font-weight: var(--matcha-weight-regular, 400);
|
|
480
|
+
line-height: var(--matcha-leading-body-md, 20px);
|
|
481
|
+
color: var(--matcha-color-text-secondary,
|
|
482
|
+
rgba(getForeground($theme), 0.7));
|
|
483
|
+
flex-shrink: 0;
|
|
484
|
+
min-width: var(--matcha-tab-min-width-card-horizontal);
|
|
485
|
+
transition:
|
|
486
|
+
border-color var(--matcha-duration-fast, 200ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
487
|
+
color var(--matcha-duration-fast, 200ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
488
|
+
transform var(--matcha-duration-instant, 80ms) ease;
|
|
489
|
+
|
|
490
|
+
// State layer
|
|
491
|
+
&::before {
|
|
492
|
+
content: '';
|
|
493
|
+
position: absolute;
|
|
494
|
+
inset: 0;
|
|
495
|
+
background: currentColor;
|
|
496
|
+
opacity: 0;
|
|
497
|
+
border-radius: inherit;
|
|
498
|
+
pointer-events: none;
|
|
499
|
+
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
500
|
+
}
|
|
501
|
+
&:hover:not(:disabled) {
|
|
502
|
+
&::before { opacity: var(--matcha-tab-state-opacity-hover); }
|
|
503
|
+
transform: translateY(calc(-1 * var(--matcha-border-hairline, 1px)));
|
|
504
|
+
}
|
|
505
|
+
&:active:not(:disabled)::before { opacity: var(--matcha-tab-state-opacity-active); }
|
|
506
|
+
|
|
507
|
+
// ── Selecionado (Figma: border accent · texto text-primary NÃO accent) ──
|
|
508
|
+
&.active,
|
|
509
|
+
&[aria-selected="true"] {
|
|
510
|
+
border-color: var(--matcha-color-accent, #{getAccent($theme)});
|
|
511
|
+
color: var(--matcha-color-fg, #{getForeground($theme)});
|
|
512
|
+
font-weight: var(--matcha-weight-medium, 500);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
// ── Disabled ──
|
|
516
|
+
&:disabled,
|
|
517
|
+
&[disabled] {
|
|
518
|
+
opacity: var(--matcha-tab-state-opacity-disabled);
|
|
519
|
+
pointer-events: none;
|
|
520
|
+
cursor: default;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// ── Focus ring polido ──
|
|
524
|
+
&:focus-visible {
|
|
525
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid
|
|
526
|
+
var(--matcha-color-accent, #{getAccent($theme)});
|
|
527
|
+
outline-offset: var(--matcha-border-thin, 2px);
|
|
528
|
+
box-shadow: 0 0 0 var(--matcha-tab-focus-halo)
|
|
529
|
+
rgba(getAccent($theme), var(--matcha-tab-focus-halo-alpha));
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// ── Icon inside tab items ──
|
|
535
|
+
.matcha-tab-underline,
|
|
536
|
+
.matcha-tab-card {
|
|
537
|
+
.matcha-tab-item matcha-icon { flex-shrink: 0; }
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// ── Badge (notificações, contagens) ───────────────────────────────────
|
|
541
|
+
.matcha-tab-item__badge {
|
|
542
|
+
display: inline-flex;
|
|
543
|
+
align-items: center;
|
|
544
|
+
justify-content: center;
|
|
545
|
+
min-width: var(--matcha-space-250, 20px);
|
|
546
|
+
height: var(--matcha-space-250, 20px);
|
|
547
|
+
padding: 0 var(--matcha-space-075, 6px);
|
|
548
|
+
background: var(--matcha-color-accent, #{getAccent($theme)});
|
|
549
|
+
color: var(--matcha-color-accent-text-on,
|
|
550
|
+
var(--matcha-color-accent-contrast, #{getAccentContrast($theme)}));
|
|
551
|
+
border-radius: var(--matcha-radius-pill, 9999px);
|
|
552
|
+
font-size: var(--matcha-text-body-xs, 11px);
|
|
553
|
+
font-weight: var(--matcha-weight-semibold, 600);
|
|
554
|
+
line-height: 1;
|
|
555
|
+
flex-shrink: 0;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// ── Close button (closable tabs) ──────────────────────────────────────
|
|
559
|
+
.matcha-tab-item__close {
|
|
560
|
+
display: inline-flex;
|
|
561
|
+
align-items: center;
|
|
562
|
+
justify-content: center;
|
|
563
|
+
width: var(--matcha-space-300, 24px);
|
|
564
|
+
height: var(--matcha-space-300, 24px);
|
|
565
|
+
border-radius: 50%;
|
|
566
|
+
color: var(--matcha-color-text-secondary,
|
|
567
|
+
rgba(getForeground($theme), 0.7));
|
|
568
|
+
transition:
|
|
569
|
+
background-color var(--matcha-duration-instant, 80ms) ease,
|
|
570
|
+
color var(--matcha-duration-instant, 80ms) ease;
|
|
571
|
+
flex-shrink: 0;
|
|
572
|
+
cursor: pointer;
|
|
573
|
+
margin-left: var(--matcha-space-050, 4px);
|
|
574
|
+
|
|
575
|
+
&:hover {
|
|
576
|
+
background: var(--matcha-color-surface-hover,
|
|
577
|
+
rgba(getForeground($theme), 0.08));
|
|
578
|
+
color: var(--matcha-color-fg, #{getForeground($theme)});
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
&:focus-visible {
|
|
582
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid
|
|
583
|
+
var(--matcha-color-accent, #{getAccent($theme)});
|
|
584
|
+
outline-offset: var(--matcha-border-thin, 2px);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
svg {
|
|
588
|
+
display: block;
|
|
589
|
+
width: var(--matcha-tab-close-size, 14px);
|
|
590
|
+
height: var(--matcha-tab-close-size, 14px);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
// ── Mobile: reset min-width pra evitar overflow + auto-scroll ───────────
|
|
596
|
+
@media (max-width: 639px) {
|
|
597
|
+
.matcha-tab-underline .matcha-tab-item,
|
|
598
|
+
.matcha-tab-card .matcha-tab-item {
|
|
599
|
+
min-width: auto;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// ── Mobile: Underline auto-scrollable em viewports estreitos ────────────
|
|
604
|
+
@media (max-width: 639px) {
|
|
605
|
+
.matcha-tab-underline:not(.matcha-tab-scrollable) {
|
|
606
|
+
overflow-x: auto;
|
|
607
|
+
scrollbar-width: thin;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// ── Reduced motion (WCAG 2.2.2) ─────────────────────────────────────────
|
|
612
|
+
@media (prefers-reduced-motion: reduce) {
|
|
613
|
+
.matcha-tab-underline .matcha-tab-item,
|
|
614
|
+
.matcha-tab-underline .matcha-tab-item::before,
|
|
615
|
+
.matcha-tab-card .matcha-tab-item,
|
|
616
|
+
.matcha-tab-card .matcha-tab-item::before,
|
|
617
|
+
.matcha-tab-indicator,
|
|
618
|
+
.matcha-tab-item__close {
|
|
619
|
+
transition: none;
|
|
620
|
+
}
|
|
621
|
+
.matcha-tab-card .matcha-tab-item:hover {
|
|
622
|
+
transform: none;
|
|
623
|
+
}
|
|
624
|
+
}
|