@inchurch/matcha-theme 21.3.3 → 22.0.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 +236 -229
- package/abstracts/_elevation.scss +108 -108
- package/abstracts/_functions.scss +321 -321
- package/abstracts/_media-breakpoint.scss +26 -26
- package/abstracts/_theme-api.scss +219 -219
- package/abstracts/_typography.scss +128 -128
- package/base/_reset.scss +445 -432
- package/components/app-page-header.scss +260 -260
- package/components/matcha-accordion.scss +293 -293
- package/components/matcha-audio-player.scss +31 -31
- package/components/matcha-autocomplete.scss +145 -145
- package/components/matcha-avatar.scss +440 -301
- package/components/matcha-badge.scss +120 -120
- package/components/matcha-breadcrumb.scss +231 -231
- package/components/matcha-button-toggle.scss +384 -384
- package/components/matcha-buttons.scss +913 -913
- package/components/matcha-calendar.scss +218 -218
- package/components/matcha-cards.scss +230 -230
- package/components/matcha-chart-card.scss +53 -53
- package/components/matcha-checkbox.scss +255 -255
- package/components/matcha-chip.scss +292 -292
- package/components/matcha-color-pick.scss +34 -34
- package/components/matcha-command-palette.scss +316 -316
- package/components/matcha-crop.scss +406 -406
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +100 -100
- package/components/matcha-draggable.scss +23 -23
- package/components/matcha-drawer.scss +376 -376
- package/components/matcha-drop-image.scss +14 -14
- package/components/matcha-drop-list.scss +430 -430
- package/components/matcha-emoji.scss +69 -69
- package/components/matcha-empty-state.scss +230 -230
- package/components/matcha-file-uploader.scss +471 -471
- package/components/matcha-flag.scss +103 -103
- package/components/matcha-footer.scss +91 -91
- package/components/matcha-form-field.scss +606 -606
- package/components/matcha-form-section.scss +100 -100
- package/components/matcha-header.scss +135 -135
- package/components/matcha-highlight.scss +164 -164
- package/components/matcha-hint-text.scss +90 -90
- package/components/matcha-horizontal-tree.scss +316 -316
- package/components/matcha-icon.scss +98 -98
- package/components/matcha-image.scss +61 -61
- package/components/matcha-list.scss +211 -211
- package/components/matcha-menu.scss +99 -99
- package/components/matcha-modal.scss +210 -210
- package/components/matcha-nav.scss +581 -581
- package/components/matcha-notification.scss +413 -413
- package/components/matcha-option.scss +170 -170
- package/components/matcha-page-builder.scss +4196 -4196
- package/components/matcha-paginator.scss +689 -689
- package/components/matcha-panel.scss +194 -194
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +313 -313
- package/components/matcha-radio.scss +320 -320
- package/components/matcha-ripple.scss +7 -7
- package/components/matcha-scrollbar.scss +33 -33
- package/components/matcha-scrollbox-shadow.scss +120 -120
- package/components/matcha-section.scss +102 -102
- package/components/matcha-select-multiple.scss +56 -56
- package/components/matcha-select.scss +667 -667
- package/components/matcha-skeleton.scss +155 -155
- package/components/matcha-slide-toggle.scss +369 -369
- package/components/matcha-slider.scss +285 -285
- package/components/matcha-snack-bar.scss +259 -259
- package/components/matcha-spin.scss +164 -164
- package/components/matcha-spinner.scss +97 -97
- package/components/matcha-status-pill.scss +38 -18
- package/components/matcha-stepper.scss +376 -376
- package/components/matcha-table-cell.scss +74 -41
- package/components/matcha-table.scss +579 -578
- package/components/matcha-tabs.scss +600 -600
- package/components/matcha-text-editor.scss +105 -105
- package/components/matcha-time.scss +33 -33
- package/components/matcha-timepicker.scss +13 -13
- package/components/matcha-toolbar.scss +359 -359
- package/components/matcha-tooltip.scss +224 -224
- package/components/matcha-tree-view.scss +257 -212
- package/layout/matcha-page-layout.scss +778 -778
- package/main.scss +329 -329
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -35
- package/tokens/_color-tokens.scss +274 -261
- package/tokens/_elevation-tokens.scss +33 -33
- package/tokens/_emit-tokens.scss +324 -324
- package/tokens/_material-palette.scss +1149 -1149
- package/tokens/_primitives.scss +98 -98
- package/tokens/_semantic-aliases.scss +120 -120
- package/tokens/_spacing-tokens.scss +94 -94
- package/tokens/_static-tokens.scss +137 -137
- package/tokens/_typography-tokens.scss +65 -65
- package/vendors/charts.scss +90 -90
|
@@ -1,667 +1,667 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// matcha-select.scss — Select dropdown trigger
|
|
3
|
-
// Aligned with Figma matcha/field/select (tokenized)
|
|
4
|
-
// =============================================================================
|
|
5
|
-
|
|
6
|
-
// ── Structural (outside mixin) ──────────────────────────────────────────────
|
|
7
|
-
|
|
8
|
-
.matcha-select-trigger {
|
|
9
|
-
position: relative;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
|
|
12
|
-
// State layer (MD3 style) — usado apenas em selects STANDALONE.
|
|
13
|
-
// Dentro de matcha-form-field a gente desliga: o hover do field (border) cuida.
|
|
14
|
-
&::before {
|
|
15
|
-
content: '';
|
|
16
|
-
position: absolute;
|
|
17
|
-
inset: 0;
|
|
18
|
-
background: currentColor;
|
|
19
|
-
opacity: 0;
|
|
20
|
-
border-radius: inherit;
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:hover:not([disabled])::before { opacity: var(--matcha-state-hover, 0.08); }
|
|
26
|
-
&:active:not([disabled])::before { opacity: var(--matcha-state-active, 0.12); }
|
|
27
|
-
|
|
28
|
-
&[disabled] { pointer-events: none; cursor: default; }
|
|
29
|
-
|
|
30
|
-
@media (prefers-reduced-motion: reduce) {
|
|
31
|
-
&::before { transition: none; }
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Dentro de matcha-form-field: hover fica a cargo do form-field (border-color).
|
|
36
|
-
// Remove o tint do state layer pra não duplicar feedback visual.
|
|
37
|
-
.matcha-form-field .matcha-select-trigger::before {
|
|
38
|
-
display: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// ── Theme mixin ─────────────────────────────────────────────────────────────
|
|
42
|
-
|
|
43
|
-
@mixin matcha-select-theme($theme) {
|
|
44
|
-
matcha-select {
|
|
45
|
-
width: 100%;
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.matcha-select-container {
|
|
52
|
-
position: relative;
|
|
53
|
-
display: inline-block;
|
|
54
|
-
width: 100%;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.matcha-select-trigger {
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: space-between;
|
|
61
|
-
padding: 0;
|
|
62
|
-
border: none;
|
|
63
|
-
border-radius: 0;
|
|
64
|
-
background-color: transparent;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
transition: border-color var(--matcha-duration-fast, 200ms) ease,
|
|
67
|
-
box-shadow var(--matcha-duration-fast, 200ms) ease;
|
|
68
|
-
box-sizing: border-box;
|
|
69
|
-
|
|
70
|
-
&:focus-visible:not([disabled]) {
|
|
71
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
72
|
-
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.matcha-select-value {
|
|
77
|
-
flex: 1;
|
|
78
|
-
text-align: left;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
text-overflow: ellipsis;
|
|
81
|
-
white-space: nowrap;
|
|
82
|
-
color: var(--matcha-color-fg);
|
|
83
|
-
|
|
84
|
-
&.matcha-select-placeholder {
|
|
85
|
-
color: var(--matcha-color-text-placeholder);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Combobox input (searchable + single): plano, herda tipografia do trigger,
|
|
90
|
-
// sem border/background próprios — parece o próprio campo.
|
|
91
|
-
.matcha-select-combobox-input {
|
|
92
|
-
flex: 1;
|
|
93
|
-
min-width: 0;
|
|
94
|
-
padding: 0;
|
|
95
|
-
margin: 0;
|
|
96
|
-
border: 0;
|
|
97
|
-
background: transparent;
|
|
98
|
-
color: var(--matcha-color-fg);
|
|
99
|
-
font: inherit;
|
|
100
|
-
font-family: var(--matcha-font-family);
|
|
101
|
-
outline: none;
|
|
102
|
-
text-overflow: ellipsis;
|
|
103
|
-
cursor: text;
|
|
104
|
-
|
|
105
|
-
&::placeholder {
|
|
106
|
-
color: var(--matcha-color-text-placeholder);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:disabled {
|
|
110
|
-
color: var(--matcha-color-disabled-fg);
|
|
111
|
-
cursor: not-allowed;
|
|
112
|
-
background: transparent;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Modo combobox: trigger não tem cursor pointer (quem manda é o input).
|
|
117
|
-
.matcha-select-trigger.matcha-select-combobox {
|
|
118
|
-
cursor: text;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.matcha-select-arrow {
|
|
122
|
-
display: inline-flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
margin-left: var(--matcha-space-100, 8px);
|
|
126
|
-
transition: transform var(--matcha-duration-fast, 200ms) ease;
|
|
127
|
-
color: var(--matcha-color-text-placeholder); // Figma #9AA0A6 dark / placeholder light
|
|
128
|
-
font-size: 16px; // default SM
|
|
129
|
-
width: 16px;
|
|
130
|
-
height: 16px;
|
|
131
|
-
line-height: 16px;
|
|
132
|
-
flex: none;
|
|
133
|
-
|
|
134
|
-
&.matcha-select-arrow-open {
|
|
135
|
-
transform: rotate(180deg);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Seta por size (Figma matcha/field/select): SM 16 · MD 20 · LG 24
|
|
140
|
-
matcha-form-field[size="md"] matcha-select .matcha-select-arrow,
|
|
141
|
-
matcha-form-field[size="medium"] matcha-select .matcha-select-arrow {
|
|
142
|
-
font-size: 20px;
|
|
143
|
-
width: 20px;
|
|
144
|
-
height: 20px;
|
|
145
|
-
line-height: 20px;
|
|
146
|
-
}
|
|
147
|
-
matcha-form-field[size="lg"] matcha-select .matcha-select-arrow,
|
|
148
|
-
matcha-form-field[size="large"] matcha-select .matcha-select-arrow,
|
|
149
|
-
matcha-form-field[size="huge"] matcha-select .matcha-select-arrow {
|
|
150
|
-
font-size: 24px;
|
|
151
|
-
width: 24px;
|
|
152
|
-
height: 24px;
|
|
153
|
-
line-height: 24px;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// Tipografia do value por size: SM/tiny body-sm 12/16 · MD body-md 14/20 · LG body-lg 16/24.
|
|
157
|
-
// O tier SM usa a MESMA escala do input nativo (matcha-form-field.scss aplica
|
|
158
|
-
// --matcha-text-body-sm nesse tier). Antes o select herdava 14/20 junto do MD e ficava
|
|
159
|
-
// 2px maior que input/date dentro do MESMO matcha-field size="small".
|
|
160
|
-
matcha-form-field[size="lg"] .matcha-select-value,
|
|
161
|
-
matcha-form-field[size="lg"] .matcha-select-combobox-input,
|
|
162
|
-
matcha-form-field[size="large"] .matcha-select-value,
|
|
163
|
-
matcha-form-field[size="large"] .matcha-select-combobox-input,
|
|
164
|
-
matcha-form-field[size="huge"] .matcha-select-value,
|
|
165
|
-
matcha-form-field[size="huge"] .matcha-select-combobox-input {
|
|
166
|
-
font-size: 16px;
|
|
167
|
-
line-height: 24px;
|
|
168
|
-
}
|
|
169
|
-
matcha-form-field[size="sm"] .matcha-select-value,
|
|
170
|
-
matcha-form-field[size="sm"] .matcha-select-combobox-input,
|
|
171
|
-
matcha-form-field[size="tiny"] .matcha-select-value,
|
|
172
|
-
matcha-form-field[size="tiny"] .matcha-select-combobox-input,
|
|
173
|
-
matcha-form-field[size="small"] .matcha-select-value,
|
|
174
|
-
matcha-form-field[size="small"] .matcha-select-combobox-input {
|
|
175
|
-
font-size: var(--matcha-text-body-sm, 12px);
|
|
176
|
-
line-height: var(--matcha-leading-body-sm, 16px);
|
|
177
|
-
}
|
|
178
|
-
matcha-form-field[size="md"] .matcha-select-value,
|
|
179
|
-
matcha-form-field[size="md"] .matcha-select-combobox-input,
|
|
180
|
-
matcha-form-field[size="medium"] .matcha-select-value,
|
|
181
|
-
matcha-form-field[size="medium"] .matcha-select-combobox-input {
|
|
182
|
-
font-size: 14px;
|
|
183
|
-
line-height: 20px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// Disabled: seta cinza 38%
|
|
187
|
-
matcha-form-field[disabled] .matcha-select-arrow,
|
|
188
|
-
matcha-form-field[disabled="true"] .matcha-select-arrow,
|
|
189
|
-
matcha-select[disabled] .matcha-select-arrow,
|
|
190
|
-
.matcha-select-disabled .matcha-select-arrow {
|
|
191
|
-
color: var(--matcha-color-interaction-disabled-fg);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// ── Clear button (× quando clearable + tem valor) ──
|
|
195
|
-
// Size-responsive igual a seta (SM 16, MD 20, LG 24). Sem círculo no hover.
|
|
196
|
-
// NOTA: box dimensions + line-height CASAM exatamente com .matcha-select-arrow
|
|
197
|
-
// pra compensar os baselines diferentes dos icon fonts (close vs arrow_down).
|
|
198
|
-
.matcha-select-clear {
|
|
199
|
-
display: inline-flex;
|
|
200
|
-
align-items: center;
|
|
201
|
-
justify-content: center;
|
|
202
|
-
width: 16px; // default SM (matches .matcha-select-arrow)
|
|
203
|
-
height: 16px;
|
|
204
|
-
margin: 0 var(--matcha-space-050, 4px) 0 0; // gap antes da seta
|
|
205
|
-
padding: 0;
|
|
206
|
-
background: transparent;
|
|
207
|
-
border: 0;
|
|
208
|
-
border-radius: 0;
|
|
209
|
-
color: var(--matcha-color-text-placeholder);
|
|
210
|
-
cursor: pointer;
|
|
211
|
-
font-size: 16px;
|
|
212
|
-
line-height: 16px; // absoluto (match arrow) — essencial pro baseline
|
|
213
|
-
flex: none;
|
|
214
|
-
transition: color var(--matcha-duration-fast, 200ms) ease;
|
|
215
|
-
|
|
216
|
-
// Ícone interno: força display block + centralização via line-height
|
|
217
|
-
// pra neutralizar baseline gap dos glyphs
|
|
218
|
-
> [class^="i-matcha-"],
|
|
219
|
-
> [class*=" i-matcha-"] {
|
|
220
|
-
display: inline-block;
|
|
221
|
-
font-size: inherit;
|
|
222
|
-
width: 1em;
|
|
223
|
-
height: 1em;
|
|
224
|
-
line-height: 1em;
|
|
225
|
-
vertical-align: middle;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
&:hover {
|
|
229
|
-
background: transparent;
|
|
230
|
-
color: var(--matcha-color-text-primary);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
&:focus { outline: none; }
|
|
234
|
-
&:focus-visible {
|
|
235
|
-
outline: var(--matcha-border-thin, 2px) solid var(--matcha-color-primary);
|
|
236
|
-
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
237
|
-
border-radius: var(--matcha-radius-md, 4px);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// Clear × por size do form-field — casa 1:1 com a seta (Figma SM 16 · MD 20 · LG 24)
|
|
242
|
-
matcha-form-field[size="md"] matcha-select .matcha-select-clear,
|
|
243
|
-
matcha-form-field[size="medium"] matcha-select .matcha-select-clear {
|
|
244
|
-
width: 20px;
|
|
245
|
-
height: 20px;
|
|
246
|
-
font-size: 20px;
|
|
247
|
-
}
|
|
248
|
-
matcha-form-field[size="lg"] matcha-select .matcha-select-clear,
|
|
249
|
-
matcha-form-field[size="large"] matcha-select .matcha-select-clear,
|
|
250
|
-
matcha-form-field[size="huge"] matcha-select .matcha-select-clear {
|
|
251
|
-
width: 24px;
|
|
252
|
-
height: 24px;
|
|
253
|
-
font-size: 24px;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// ── Disabled ──
|
|
257
|
-
.matcha-select-disabled {
|
|
258
|
-
.matcha-select-trigger {
|
|
259
|
-
pointer-events: none;
|
|
260
|
-
cursor: default;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.matcha-select-value {
|
|
264
|
-
color: var(--matcha-color-disabled-fg);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.matcha-select-arrow {
|
|
268
|
-
opacity: var(--matcha-opacity-disabled, 0.38);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
273
|
-
// Multi-select — chips dentro do trigger
|
|
274
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
275
|
-
|
|
276
|
-
// Container dos chips (substitui .matcha-select-value quando multiple=true)
|
|
277
|
-
.matcha-select-chips {
|
|
278
|
-
flex: 1;
|
|
279
|
-
display: flex;
|
|
280
|
-
flex-wrap: wrap;
|
|
281
|
-
align-items: center;
|
|
282
|
-
gap: var(--matcha-space-050, 4px);
|
|
283
|
-
min-width: 0;
|
|
284
|
-
overflow: hidden;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// Trigger em modo multi precisa de padding vertical leve pras chips respirarem
|
|
288
|
-
// e altura automática (cresce com número de chips).
|
|
289
|
-
.matcha-select-trigger.matcha-select-multiple {
|
|
290
|
-
padding-top: var(--matcha-space-025, 2px);
|
|
291
|
-
padding-bottom: var(--matcha-space-025, 2px);
|
|
292
|
-
min-height: inherit;
|
|
293
|
-
flex-wrap: nowrap;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// Chip individual — pill pequeno com label + × remove
|
|
297
|
-
.matcha-select-chip {
|
|
298
|
-
display: inline-flex;
|
|
299
|
-
align-items: center;
|
|
300
|
-
gap: var(--matcha-space-050, 4px);
|
|
301
|
-
max-width: 100%;
|
|
302
|
-
height: 22px;
|
|
303
|
-
padding: 0 var(--matcha-space-075, 6px);
|
|
304
|
-
background: var(--matcha-color-accent-2-surface, rgba(0,0,0,0.08));
|
|
305
|
-
color: var(--matcha-color-text-primary);
|
|
306
|
-
border-radius: var(--matcha-radius-pill, 12px);
|
|
307
|
-
font-family: var(--matcha-font-family);
|
|
308
|
-
font-size: 12px;
|
|
309
|
-
font-weight: 500;
|
|
310
|
-
line-height: 1;
|
|
311
|
-
letter-spacing: 0.1px;
|
|
312
|
-
white-space: nowrap;
|
|
313
|
-
user-select: none;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
// Label do chip (trunca com ellipsis em chips longos)
|
|
317
|
-
.matcha-select-chip-label {
|
|
318
|
-
overflow: hidden;
|
|
319
|
-
text-overflow: ellipsis;
|
|
320
|
-
white-space: nowrap;
|
|
321
|
-
max-width: 160px;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
// Botão × individual de cada chip
|
|
325
|
-
.matcha-select-chip-remove {
|
|
326
|
-
display: inline-flex;
|
|
327
|
-
align-items: center;
|
|
328
|
-
justify-content: center;
|
|
329
|
-
width: 14px;
|
|
330
|
-
height: 14px;
|
|
331
|
-
padding: 0;
|
|
332
|
-
margin: 0;
|
|
333
|
-
background: transparent;
|
|
334
|
-
border: 0;
|
|
335
|
-
border-radius: 50%;
|
|
336
|
-
color: var(--matcha-color-text-placeholder);
|
|
337
|
-
cursor: pointer;
|
|
338
|
-
font-size: 14px;
|
|
339
|
-
line-height: 14px;
|
|
340
|
-
transition: background-color var(--matcha-duration-instant, 80ms) ease,
|
|
341
|
-
color var(--matcha-duration-instant, 80ms) ease;
|
|
342
|
-
|
|
343
|
-
&:hover {
|
|
344
|
-
background: var(--matcha-color-surface-hover, rgba(0,0,0,0.12));
|
|
345
|
-
color: var(--matcha-color-text-primary);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
&:focus { outline: none; }
|
|
349
|
-
&:focus-visible {
|
|
350
|
-
outline: var(--matcha-border-thin, 2px) solid var(--matcha-color-primary);
|
|
351
|
-
outline-offset: 1px;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
// Chip sizes acompanham o size do form-field (opcional — mantém SM como default)
|
|
356
|
-
matcha-form-field[size="md"] matcha-select .matcha-select-chip,
|
|
357
|
-
matcha-form-field[size="medium"] matcha-select .matcha-select-chip {
|
|
358
|
-
height: 24px;
|
|
359
|
-
font-size: 13px;
|
|
360
|
-
}
|
|
361
|
-
matcha-form-field[size="lg"] matcha-select .matcha-select-chip,
|
|
362
|
-
matcha-form-field[size="large"] matcha-select .matcha-select-chip {
|
|
363
|
-
height: 28px;
|
|
364
|
-
font-size: 14px;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
368
|
-
// Multi-select panel — checkmark + bulk actions header
|
|
369
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
370
|
-
|
|
371
|
-
// Wrapper dentro do panel. .matcha-select-options-multi modifica options filhas.
|
|
372
|
-
.matcha-select-options-multi {
|
|
373
|
-
// Checkmark nas options selecionadas — aparece ANTES do label.
|
|
374
|
-
// Usa pseudo-element pra não precisar mexer no template de matcha-option.
|
|
375
|
-
matcha-option[aria-selected="true"] {
|
|
376
|
-
padding-left: var(--matcha-space-400, 32px);
|
|
377
|
-
position: relative;
|
|
378
|
-
|
|
379
|
-
&::before {
|
|
380
|
-
content: '';
|
|
381
|
-
position: absolute;
|
|
382
|
-
left: var(--matcha-space-150, 12px);
|
|
383
|
-
top: 50%;
|
|
384
|
-
width: 16px;
|
|
385
|
-
height: 16px;
|
|
386
|
-
margin-top: -8px;
|
|
387
|
-
background-color: var(--matcha-color-accent);
|
|
388
|
-
mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
|
|
389
|
-
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
|
|
390
|
-
mask-size: contain;
|
|
391
|
-
-webkit-mask-size: contain;
|
|
392
|
-
mask-repeat: no-repeat;
|
|
393
|
-
-webkit-mask-repeat: no-repeat;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
// Reserva espaço pro checkmark mesmo nas não-selecionadas (alinhamento do texto)
|
|
398
|
-
matcha-option {
|
|
399
|
-
padding-left: var(--matcha-space-400, 32px);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
// Bulk actions header (Selecionar todos / Limpar / contagem)
|
|
404
|
-
.matcha-select-bulk-actions {
|
|
405
|
-
display: flex;
|
|
406
|
-
align-items: center;
|
|
407
|
-
gap: var(--matcha-space-100, 8px);
|
|
408
|
-
padding: var(--matcha-space-100, 8px) var(--matcha-space-150, 12px);
|
|
409
|
-
border-bottom: var(--matcha-border-hairline, 1px) solid var(--matcha-color-border-subtle, rgba(0,0,0,0.08));
|
|
410
|
-
margin-bottom: var(--matcha-space-050, 4px);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.matcha-select-bulk-btn {
|
|
414
|
-
appearance: none;
|
|
415
|
-
border: 0;
|
|
416
|
-
background: transparent;
|
|
417
|
-
color: var(--matcha-color-primary);
|
|
418
|
-
cursor: pointer;
|
|
419
|
-
font: inherit;
|
|
420
|
-
font-size: 13px;
|
|
421
|
-
font-weight: 500;
|
|
422
|
-
padding: var(--matcha-space-050, 4px) var(--matcha-space-100, 8px);
|
|
423
|
-
border-radius: var(--matcha-radius-sm, 4px);
|
|
424
|
-
transition: background-color var(--matcha-duration-instant, 80ms) ease;
|
|
425
|
-
|
|
426
|
-
&:hover:not(:disabled) { background: var(--matcha-color-primary-surface-hover); }
|
|
427
|
-
&:disabled { pointer-events: none; opacity: var(--matcha-opacity-disabled, 0.38); }
|
|
428
|
-
&:focus-visible {
|
|
429
|
-
outline: 2px solid var(--matcha-color-primary);
|
|
430
|
-
outline-offset: 1px;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.matcha-select-bulk-btn-ghost {
|
|
435
|
-
color: var(--matcha-color-text-secondary);
|
|
436
|
-
font-weight: 400;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.matcha-select-bulk-count {
|
|
440
|
-
margin-left: auto;
|
|
441
|
-
font-size: 12px;
|
|
442
|
-
color: var(--matcha-color-text-placeholder);
|
|
443
|
-
font-weight: 400;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
447
|
-
// Searchable — input de busca no topo do panel + empty state
|
|
448
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
449
|
-
|
|
450
|
-
// Zera padding-top do panel quando o search é a 1ª coisa dentro. O search
|
|
451
|
-
// já tem padding próprio; o padding do panel (8px) somava e gerava gap
|
|
452
|
-
// visual entre trigger e o campo de busca.
|
|
453
|
-
.matcha-panel:has(> .matcha-select-options > .matcha-select-search:first-child) {
|
|
454
|
-
padding-top: 0;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.matcha-select-search {
|
|
458
|
-
position: relative;
|
|
459
|
-
padding: var(--matcha-space-100, 8px) var(--matcha-space-150, 12px);
|
|
460
|
-
border-bottom: var(--matcha-border-hairline, 1px) solid var(--matcha-color-border-subtle, rgba(0,0,0,0.08));
|
|
461
|
-
transition: border-color var(--matcha-duration-instant, 80ms) ease;
|
|
462
|
-
|
|
463
|
-
&:focus-within {
|
|
464
|
-
border-bottom-color: var(--matcha-color-primary);
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
// Input plano: sem border/background próprios. O container `.matcha-select-search`
|
|
469
|
-
// faz o papel de "campo" via padding + divider bottom, e focus-within muda a cor
|
|
470
|
-
// do divider. Evita efeito "card dentro de card" dentro do panel.
|
|
471
|
-
.matcha-select-search-input {
|
|
472
|
-
width: 100%;
|
|
473
|
-
height: 24px;
|
|
474
|
-
padding: 0 var(--matcha-space-400, 32px) 0 0;
|
|
475
|
-
border: 0;
|
|
476
|
-
border-radius: 0;
|
|
477
|
-
background: transparent;
|
|
478
|
-
color: var(--matcha-color-text-primary);
|
|
479
|
-
font: inherit;
|
|
480
|
-
font-size: 13px;
|
|
481
|
-
outline: none;
|
|
482
|
-
|
|
483
|
-
&::placeholder { color: var(--matcha-color-text-placeholder); }
|
|
484
|
-
&:focus { outline: none; }
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.matcha-select-search-clear {
|
|
488
|
-
position: absolute;
|
|
489
|
-
right: calc(var(--matcha-space-150, 12px) + var(--matcha-space-100, 8px));
|
|
490
|
-
top: 50%;
|
|
491
|
-
transform: translateY(-50%);
|
|
492
|
-
width: 18px;
|
|
493
|
-
height: 18px;
|
|
494
|
-
padding: 0;
|
|
495
|
-
background: transparent;
|
|
496
|
-
border: 0;
|
|
497
|
-
border-radius: 50%;
|
|
498
|
-
color: var(--matcha-color-text-placeholder);
|
|
499
|
-
cursor: pointer;
|
|
500
|
-
font-size: 16px;
|
|
501
|
-
line-height: 1;
|
|
502
|
-
display: inline-flex;
|
|
503
|
-
align-items: center;
|
|
504
|
-
justify-content: center;
|
|
505
|
-
|
|
506
|
-
&:hover {
|
|
507
|
-
background: var(--matcha-color-surface-hover, rgba(0,0,0,0.12));
|
|
508
|
-
color: var(--matcha-color-text-primary);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.matcha-select-empty {
|
|
513
|
-
padding: var(--matcha-space-200, 16px) var(--matcha-space-200, 16px);
|
|
514
|
-
text-align: center;
|
|
515
|
-
color: var(--matcha-color-text-placeholder);
|
|
516
|
-
font-size: 13px;
|
|
517
|
-
font-style: italic;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
521
|
-
// Bottom-sheet (mobile) — aligned com Figma matcha/field/select/mobile-sheet
|
|
522
|
-
// Ativa automaticamente em <=768px (ou via [mode]="'sheet'"). Full-width bottom-anchored.
|
|
523
|
-
// ═══════════════════════════════════════════════════════════════════════
|
|
524
|
-
.matcha-select-sheet-overlay {
|
|
525
|
-
position: fixed;
|
|
526
|
-
inset: 0;
|
|
527
|
-
z-index: 10002;
|
|
528
|
-
// Scrim 40% — cor do token com alpha aplicado via rgba (token resolve pra cor sólida)
|
|
529
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
530
|
-
opacity: 0;
|
|
531
|
-
pointer-events: none;
|
|
532
|
-
transition: opacity var(--matcha-duration-fast, 200ms) ease;
|
|
533
|
-
|
|
534
|
-
display: flex;
|
|
535
|
-
flex-direction: column;
|
|
536
|
-
justify-content: flex-end;
|
|
537
|
-
|
|
538
|
-
&.matcha-select-sheet-open {
|
|
539
|
-
opacity: 1;
|
|
540
|
-
pointer-events: auto;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.matcha-select-sheet {
|
|
545
|
-
position: relative;
|
|
546
|
-
width: 100%;
|
|
547
|
-
max-height: 90vh;
|
|
548
|
-
min-height: 50vh;
|
|
549
|
-
background: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
550
|
-
border-top-left-radius: var(--matcha-radius-xl, 16px);
|
|
551
|
-
border-top-right-radius: var(--matcha-radius-xl, 16px);
|
|
552
|
-
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
|
|
553
|
-
|
|
554
|
-
display: flex;
|
|
555
|
-
flex-direction: column;
|
|
556
|
-
overflow: hidden;
|
|
557
|
-
|
|
558
|
-
// Slide-up animation — inicia off-screen e anima em.
|
|
559
|
-
// Classe `.matcha-select-sheet-open` aplicada diretamente (não via parent)
|
|
560
|
-
// pra evitar problemas de specificity com containers aninhados.
|
|
561
|
-
transform: translateY(100%);
|
|
562
|
-
transition: transform var(--matcha-duration-fast, 200ms) cubic-bezier(0.2, 0, 0, 1);
|
|
563
|
-
|
|
564
|
-
&.matcha-select-sheet-open {
|
|
565
|
-
transform: translateY(0);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
@media (prefers-reduced-motion: reduce) {
|
|
569
|
-
transition: none;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
.matcha-select-sheet-handle {
|
|
574
|
-
flex: 0 0 auto;
|
|
575
|
-
width: 40px;
|
|
576
|
-
height: 4px;
|
|
577
|
-
margin: var(--matcha-space-150, 12px) auto var(--matcha-space-100, 8px);
|
|
578
|
-
background: var(--matcha-color-surface-border);
|
|
579
|
-
opacity: 0.6;
|
|
580
|
-
border-radius: 2px;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
.matcha-select-sheet-header {
|
|
584
|
-
flex: 0 0 auto;
|
|
585
|
-
display: flex;
|
|
586
|
-
align-items: center;
|
|
587
|
-
gap: var(--matcha-space-100, 8px);
|
|
588
|
-
padding: var(--matcha-space-100, 8px) var(--matcha-space-100, 8px) var(--matcha-space-150, 12px) var(--matcha-space-200, 16px);
|
|
589
|
-
border-bottom: var(--matcha-border-hairline, 1px) solid var(--matcha-color-surface-border);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.matcha-select-sheet-title {
|
|
593
|
-
flex: 1 1 auto;
|
|
594
|
-
margin: 0;
|
|
595
|
-
font-family: var(--matcha-font-family);
|
|
596
|
-
font-size: 17px;
|
|
597
|
-
font-weight: 600;
|
|
598
|
-
line-height: 1.3;
|
|
599
|
-
color: var(--matcha-color-text-primary);
|
|
600
|
-
overflow: hidden;
|
|
601
|
-
text-overflow: ellipsis;
|
|
602
|
-
white-space: nowrap;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.matcha-select-sheet-close {
|
|
606
|
-
flex: 0 0 auto;
|
|
607
|
-
appearance: none;
|
|
608
|
-
width: 40px;
|
|
609
|
-
height: 40px;
|
|
610
|
-
padding: 0;
|
|
611
|
-
background: transparent;
|
|
612
|
-
border: 0;
|
|
613
|
-
border-radius: 50%;
|
|
614
|
-
color: var(--matcha-color-text-secondary);
|
|
615
|
-
cursor: pointer;
|
|
616
|
-
font-size: 24px;
|
|
617
|
-
line-height: 1;
|
|
618
|
-
display: inline-flex;
|
|
619
|
-
align-items: center;
|
|
620
|
-
justify-content: center;
|
|
621
|
-
transition: background-color var(--matcha-duration-instant, 80ms) ease;
|
|
622
|
-
|
|
623
|
-
&:hover { background: var(--matcha-color-surface-hover, rgba(0, 0, 0, 0.08)); }
|
|
624
|
-
&:focus-visible {
|
|
625
|
-
outline: 2px solid var(--matcha-color-primary);
|
|
626
|
-
outline-offset: -2px;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
// Sheet-mode ajusta o scroll da lista pra caber dentro da sheet
|
|
631
|
-
.matcha-select-options-sheet {
|
|
632
|
-
flex: 1 1 auto;
|
|
633
|
-
overflow-y: auto;
|
|
634
|
-
-webkit-overflow-scrolling: touch;
|
|
635
|
-
display: flex;
|
|
636
|
-
flex-direction: column;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
.matcha-select-sheet-list {
|
|
640
|
-
flex: 1 1 auto;
|
|
641
|
-
overflow-y: auto;
|
|
642
|
-
padding: var(--matcha-space-050, 4px) 0;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
// Sheet-mode options são full-width com padding mais generoso pra toque
|
|
646
|
-
.matcha-select-options-sheet matcha-option {
|
|
647
|
-
padding-left: var(--matcha-space-200, 16px);
|
|
648
|
-
padding-right: var(--matcha-space-200, 16px);
|
|
649
|
-
min-height: 48px; // Alvo tátil iOS (44px mínimo + folga)
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
// Safe-area bottom — respeita env() do iOS + fallback 12px
|
|
653
|
-
.matcha-select-sheet-safe-area {
|
|
654
|
-
flex: 0 0 auto;
|
|
655
|
-
height: calc(env(safe-area-inset-bottom, 0px) + var(--matcha-space-150, 12px));
|
|
656
|
-
background: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
// Quando sheet-mode tá ativo, esconder a arrow do trigger faz menos sentido —
|
|
660
|
-
// mas mantemos porque ainda comunica "expandable". Tap target expandido.
|
|
661
|
-
@media (max-width: 768px) {
|
|
662
|
-
.matcha-select-trigger {
|
|
663
|
-
min-height: 48px;
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
}
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// matcha-select.scss — Select dropdown trigger
|
|
3
|
+
// Aligned with Figma matcha/field/select (tokenized)
|
|
4
|
+
// =============================================================================
|
|
5
|
+
|
|
6
|
+
// ── Structural (outside mixin) ──────────────────────────────────────────────
|
|
7
|
+
|
|
8
|
+
.matcha-select-trigger {
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
|
|
12
|
+
// State layer (MD3 style) — usado apenas em selects STANDALONE.
|
|
13
|
+
// Dentro de matcha-form-field a gente desliga: o hover do field (border) cuida.
|
|
14
|
+
&::before {
|
|
15
|
+
content: '';
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset: 0;
|
|
18
|
+
background: currentColor;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
border-radius: inherit;
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:hover:not([disabled])::before { opacity: var(--matcha-state-hover, 0.08); }
|
|
26
|
+
&:active:not([disabled])::before { opacity: var(--matcha-state-active, 0.12); }
|
|
27
|
+
|
|
28
|
+
&[disabled] { pointer-events: none; cursor: default; }
|
|
29
|
+
|
|
30
|
+
@media (prefers-reduced-motion: reduce) {
|
|
31
|
+
&::before { transition: none; }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Dentro de matcha-form-field: hover fica a cargo do form-field (border-color).
|
|
36
|
+
// Remove o tint do state layer pra não duplicar feedback visual.
|
|
37
|
+
.matcha-form-field .matcha-select-trigger::before {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// ── Theme mixin ─────────────────────────────────────────────────────────────
|
|
42
|
+
|
|
43
|
+
@mixin matcha-select-theme($theme) {
|
|
44
|
+
matcha-select {
|
|
45
|
+
width: 100%;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.matcha-select-container {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: inline-block;
|
|
54
|
+
width: 100%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.matcha-select-trigger {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
padding: 0;
|
|
62
|
+
border: none;
|
|
63
|
+
border-radius: 0;
|
|
64
|
+
background-color: transparent;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
transition: border-color var(--matcha-duration-fast, 200ms) ease,
|
|
67
|
+
box-shadow var(--matcha-duration-fast, 200ms) ease;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
|
|
70
|
+
&:focus-visible:not([disabled]) {
|
|
71
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
72
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.matcha-select-value {
|
|
77
|
+
flex: 1;
|
|
78
|
+
text-align: left;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
color: var(--matcha-color-fg);
|
|
83
|
+
|
|
84
|
+
&.matcha-select-placeholder {
|
|
85
|
+
color: var(--matcha-color-text-placeholder);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Combobox input (searchable + single): plano, herda tipografia do trigger,
|
|
90
|
+
// sem border/background próprios — parece o próprio campo.
|
|
91
|
+
.matcha-select-combobox-input {
|
|
92
|
+
flex: 1;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
padding: 0;
|
|
95
|
+
margin: 0;
|
|
96
|
+
border: 0;
|
|
97
|
+
background: transparent;
|
|
98
|
+
color: var(--matcha-color-fg);
|
|
99
|
+
font: inherit;
|
|
100
|
+
font-family: var(--matcha-font-family);
|
|
101
|
+
outline: none;
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
cursor: text;
|
|
104
|
+
|
|
105
|
+
&::placeholder {
|
|
106
|
+
color: var(--matcha-color-text-placeholder);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:disabled {
|
|
110
|
+
color: var(--matcha-color-disabled-fg);
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
background: transparent;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Modo combobox: trigger não tem cursor pointer (quem manda é o input).
|
|
117
|
+
.matcha-select-trigger.matcha-select-combobox {
|
|
118
|
+
cursor: text;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.matcha-select-arrow {
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
margin-left: var(--matcha-space-100, 8px);
|
|
126
|
+
transition: transform var(--matcha-duration-fast, 200ms) ease;
|
|
127
|
+
color: var(--matcha-color-text-placeholder); // Figma #9AA0A6 dark / placeholder light
|
|
128
|
+
font-size: 16px; // default SM
|
|
129
|
+
width: 16px;
|
|
130
|
+
height: 16px;
|
|
131
|
+
line-height: 16px;
|
|
132
|
+
flex: none;
|
|
133
|
+
|
|
134
|
+
&.matcha-select-arrow-open {
|
|
135
|
+
transform: rotate(180deg);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Seta por size (Figma matcha/field/select): SM 16 · MD 20 · LG 24
|
|
140
|
+
matcha-form-field[size="md"] matcha-select .matcha-select-arrow,
|
|
141
|
+
matcha-form-field[size="medium"] matcha-select .matcha-select-arrow {
|
|
142
|
+
font-size: 20px;
|
|
143
|
+
width: 20px;
|
|
144
|
+
height: 20px;
|
|
145
|
+
line-height: 20px;
|
|
146
|
+
}
|
|
147
|
+
matcha-form-field[size="lg"] matcha-select .matcha-select-arrow,
|
|
148
|
+
matcha-form-field[size="large"] matcha-select .matcha-select-arrow,
|
|
149
|
+
matcha-form-field[size="huge"] matcha-select .matcha-select-arrow {
|
|
150
|
+
font-size: 24px;
|
|
151
|
+
width: 24px;
|
|
152
|
+
height: 24px;
|
|
153
|
+
line-height: 24px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Tipografia do value por size: SM/tiny body-sm 12/16 · MD body-md 14/20 · LG body-lg 16/24.
|
|
157
|
+
// O tier SM usa a MESMA escala do input nativo (matcha-form-field.scss aplica
|
|
158
|
+
// --matcha-text-body-sm nesse tier). Antes o select herdava 14/20 junto do MD e ficava
|
|
159
|
+
// 2px maior que input/date dentro do MESMO matcha-field size="small".
|
|
160
|
+
matcha-form-field[size="lg"] .matcha-select-value,
|
|
161
|
+
matcha-form-field[size="lg"] .matcha-select-combobox-input,
|
|
162
|
+
matcha-form-field[size="large"] .matcha-select-value,
|
|
163
|
+
matcha-form-field[size="large"] .matcha-select-combobox-input,
|
|
164
|
+
matcha-form-field[size="huge"] .matcha-select-value,
|
|
165
|
+
matcha-form-field[size="huge"] .matcha-select-combobox-input {
|
|
166
|
+
font-size: 16px;
|
|
167
|
+
line-height: 24px;
|
|
168
|
+
}
|
|
169
|
+
matcha-form-field[size="sm"] .matcha-select-value,
|
|
170
|
+
matcha-form-field[size="sm"] .matcha-select-combobox-input,
|
|
171
|
+
matcha-form-field[size="tiny"] .matcha-select-value,
|
|
172
|
+
matcha-form-field[size="tiny"] .matcha-select-combobox-input,
|
|
173
|
+
matcha-form-field[size="small"] .matcha-select-value,
|
|
174
|
+
matcha-form-field[size="small"] .matcha-select-combobox-input {
|
|
175
|
+
font-size: var(--matcha-text-body-sm, 12px);
|
|
176
|
+
line-height: var(--matcha-leading-body-sm, 16px);
|
|
177
|
+
}
|
|
178
|
+
matcha-form-field[size="md"] .matcha-select-value,
|
|
179
|
+
matcha-form-field[size="md"] .matcha-select-combobox-input,
|
|
180
|
+
matcha-form-field[size="medium"] .matcha-select-value,
|
|
181
|
+
matcha-form-field[size="medium"] .matcha-select-combobox-input {
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
line-height: 20px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// Disabled: seta cinza 38%
|
|
187
|
+
matcha-form-field[disabled] .matcha-select-arrow,
|
|
188
|
+
matcha-form-field[disabled="true"] .matcha-select-arrow,
|
|
189
|
+
matcha-select[disabled] .matcha-select-arrow,
|
|
190
|
+
.matcha-select-disabled .matcha-select-arrow {
|
|
191
|
+
color: var(--matcha-color-interaction-disabled-fg);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// ── Clear button (× quando clearable + tem valor) ──
|
|
195
|
+
// Size-responsive igual a seta (SM 16, MD 20, LG 24). Sem círculo no hover.
|
|
196
|
+
// NOTA: box dimensions + line-height CASAM exatamente com .matcha-select-arrow
|
|
197
|
+
// pra compensar os baselines diferentes dos icon fonts (close vs arrow_down).
|
|
198
|
+
.matcha-select-clear {
|
|
199
|
+
display: inline-flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
width: 16px; // default SM (matches .matcha-select-arrow)
|
|
203
|
+
height: 16px;
|
|
204
|
+
margin: 0 var(--matcha-space-050, 4px) 0 0; // gap antes da seta
|
|
205
|
+
padding: 0;
|
|
206
|
+
background: transparent;
|
|
207
|
+
border: 0;
|
|
208
|
+
border-radius: 0;
|
|
209
|
+
color: var(--matcha-color-text-placeholder);
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
font-size: 16px;
|
|
212
|
+
line-height: 16px; // absoluto (match arrow) — essencial pro baseline
|
|
213
|
+
flex: none;
|
|
214
|
+
transition: color var(--matcha-duration-fast, 200ms) ease;
|
|
215
|
+
|
|
216
|
+
// Ícone interno: força display block + centralização via line-height
|
|
217
|
+
// pra neutralizar baseline gap dos glyphs
|
|
218
|
+
> [class^="i-matcha-"],
|
|
219
|
+
> [class*=" i-matcha-"] {
|
|
220
|
+
display: inline-block;
|
|
221
|
+
font-size: inherit;
|
|
222
|
+
width: 1em;
|
|
223
|
+
height: 1em;
|
|
224
|
+
line-height: 1em;
|
|
225
|
+
vertical-align: middle;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&:hover {
|
|
229
|
+
background: transparent;
|
|
230
|
+
color: var(--matcha-color-text-primary);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&:focus { outline: none; }
|
|
234
|
+
&:focus-visible {
|
|
235
|
+
outline: var(--matcha-border-thin, 2px) solid var(--matcha-color-primary);
|
|
236
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
237
|
+
border-radius: var(--matcha-radius-md, 4px);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Clear × por size do form-field — casa 1:1 com a seta (Figma SM 16 · MD 20 · LG 24)
|
|
242
|
+
matcha-form-field[size="md"] matcha-select .matcha-select-clear,
|
|
243
|
+
matcha-form-field[size="medium"] matcha-select .matcha-select-clear {
|
|
244
|
+
width: 20px;
|
|
245
|
+
height: 20px;
|
|
246
|
+
font-size: 20px;
|
|
247
|
+
}
|
|
248
|
+
matcha-form-field[size="lg"] matcha-select .matcha-select-clear,
|
|
249
|
+
matcha-form-field[size="large"] matcha-select .matcha-select-clear,
|
|
250
|
+
matcha-form-field[size="huge"] matcha-select .matcha-select-clear {
|
|
251
|
+
width: 24px;
|
|
252
|
+
height: 24px;
|
|
253
|
+
font-size: 24px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// ── Disabled ──
|
|
257
|
+
.matcha-select-disabled {
|
|
258
|
+
.matcha-select-trigger {
|
|
259
|
+
pointer-events: none;
|
|
260
|
+
cursor: default;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.matcha-select-value {
|
|
264
|
+
color: var(--matcha-color-disabled-fg);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.matcha-select-arrow {
|
|
268
|
+
opacity: var(--matcha-opacity-disabled, 0.38);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
273
|
+
// Multi-select — chips dentro do trigger
|
|
274
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
275
|
+
|
|
276
|
+
// Container dos chips (substitui .matcha-select-value quando multiple=true)
|
|
277
|
+
.matcha-select-chips {
|
|
278
|
+
flex: 1;
|
|
279
|
+
display: flex;
|
|
280
|
+
flex-wrap: wrap;
|
|
281
|
+
align-items: center;
|
|
282
|
+
gap: var(--matcha-space-050, 4px);
|
|
283
|
+
min-width: 0;
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// Trigger em modo multi precisa de padding vertical leve pras chips respirarem
|
|
288
|
+
// e altura automática (cresce com número de chips).
|
|
289
|
+
.matcha-select-trigger.matcha-select-multiple {
|
|
290
|
+
padding-top: var(--matcha-space-025, 2px);
|
|
291
|
+
padding-bottom: var(--matcha-space-025, 2px);
|
|
292
|
+
min-height: inherit;
|
|
293
|
+
flex-wrap: nowrap;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// Chip individual — pill pequeno com label + × remove
|
|
297
|
+
.matcha-select-chip {
|
|
298
|
+
display: inline-flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
gap: var(--matcha-space-050, 4px);
|
|
301
|
+
max-width: 100%;
|
|
302
|
+
height: 22px;
|
|
303
|
+
padding: 0 var(--matcha-space-075, 6px);
|
|
304
|
+
background: var(--matcha-color-accent-2-surface, rgba(0,0,0,0.08));
|
|
305
|
+
color: var(--matcha-color-text-primary);
|
|
306
|
+
border-radius: var(--matcha-radius-pill, 12px);
|
|
307
|
+
font-family: var(--matcha-font-family);
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
font-weight: 500;
|
|
310
|
+
line-height: 1;
|
|
311
|
+
letter-spacing: 0.1px;
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
user-select: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// Label do chip (trunca com ellipsis em chips longos)
|
|
317
|
+
.matcha-select-chip-label {
|
|
318
|
+
overflow: hidden;
|
|
319
|
+
text-overflow: ellipsis;
|
|
320
|
+
white-space: nowrap;
|
|
321
|
+
max-width: 160px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// Botão × individual de cada chip
|
|
325
|
+
.matcha-select-chip-remove {
|
|
326
|
+
display: inline-flex;
|
|
327
|
+
align-items: center;
|
|
328
|
+
justify-content: center;
|
|
329
|
+
width: 14px;
|
|
330
|
+
height: 14px;
|
|
331
|
+
padding: 0;
|
|
332
|
+
margin: 0;
|
|
333
|
+
background: transparent;
|
|
334
|
+
border: 0;
|
|
335
|
+
border-radius: 50%;
|
|
336
|
+
color: var(--matcha-color-text-placeholder);
|
|
337
|
+
cursor: pointer;
|
|
338
|
+
font-size: 14px;
|
|
339
|
+
line-height: 14px;
|
|
340
|
+
transition: background-color var(--matcha-duration-instant, 80ms) ease,
|
|
341
|
+
color var(--matcha-duration-instant, 80ms) ease;
|
|
342
|
+
|
|
343
|
+
&:hover {
|
|
344
|
+
background: var(--matcha-color-surface-hover, rgba(0,0,0,0.12));
|
|
345
|
+
color: var(--matcha-color-text-primary);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
&:focus { outline: none; }
|
|
349
|
+
&:focus-visible {
|
|
350
|
+
outline: var(--matcha-border-thin, 2px) solid var(--matcha-color-primary);
|
|
351
|
+
outline-offset: 1px;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// Chip sizes acompanham o size do form-field (opcional — mantém SM como default)
|
|
356
|
+
matcha-form-field[size="md"] matcha-select .matcha-select-chip,
|
|
357
|
+
matcha-form-field[size="medium"] matcha-select .matcha-select-chip {
|
|
358
|
+
height: 24px;
|
|
359
|
+
font-size: 13px;
|
|
360
|
+
}
|
|
361
|
+
matcha-form-field[size="lg"] matcha-select .matcha-select-chip,
|
|
362
|
+
matcha-form-field[size="large"] matcha-select .matcha-select-chip {
|
|
363
|
+
height: 28px;
|
|
364
|
+
font-size: 14px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
368
|
+
// Multi-select panel — checkmark + bulk actions header
|
|
369
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
370
|
+
|
|
371
|
+
// Wrapper dentro do panel. .matcha-select-options-multi modifica options filhas.
|
|
372
|
+
.matcha-select-options-multi {
|
|
373
|
+
// Checkmark nas options selecionadas — aparece ANTES do label.
|
|
374
|
+
// Usa pseudo-element pra não precisar mexer no template de matcha-option.
|
|
375
|
+
matcha-option[aria-selected="true"] {
|
|
376
|
+
padding-left: var(--matcha-space-400, 32px);
|
|
377
|
+
position: relative;
|
|
378
|
+
|
|
379
|
+
&::before {
|
|
380
|
+
content: '';
|
|
381
|
+
position: absolute;
|
|
382
|
+
left: var(--matcha-space-150, 12px);
|
|
383
|
+
top: 50%;
|
|
384
|
+
width: 16px;
|
|
385
|
+
height: 16px;
|
|
386
|
+
margin-top: -8px;
|
|
387
|
+
background-color: var(--matcha-color-accent);
|
|
388
|
+
mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
|
|
389
|
+
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
|
|
390
|
+
mask-size: contain;
|
|
391
|
+
-webkit-mask-size: contain;
|
|
392
|
+
mask-repeat: no-repeat;
|
|
393
|
+
-webkit-mask-repeat: no-repeat;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// Reserva espaço pro checkmark mesmo nas não-selecionadas (alinhamento do texto)
|
|
398
|
+
matcha-option {
|
|
399
|
+
padding-left: var(--matcha-space-400, 32px);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// Bulk actions header (Selecionar todos / Limpar / contagem)
|
|
404
|
+
.matcha-select-bulk-actions {
|
|
405
|
+
display: flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
gap: var(--matcha-space-100, 8px);
|
|
408
|
+
padding: var(--matcha-space-100, 8px) var(--matcha-space-150, 12px);
|
|
409
|
+
border-bottom: var(--matcha-border-hairline, 1px) solid var(--matcha-color-border-subtle, rgba(0,0,0,0.08));
|
|
410
|
+
margin-bottom: var(--matcha-space-050, 4px);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.matcha-select-bulk-btn {
|
|
414
|
+
appearance: none;
|
|
415
|
+
border: 0;
|
|
416
|
+
background: transparent;
|
|
417
|
+
color: var(--matcha-color-primary);
|
|
418
|
+
cursor: pointer;
|
|
419
|
+
font: inherit;
|
|
420
|
+
font-size: 13px;
|
|
421
|
+
font-weight: 500;
|
|
422
|
+
padding: var(--matcha-space-050, 4px) var(--matcha-space-100, 8px);
|
|
423
|
+
border-radius: var(--matcha-radius-sm, 4px);
|
|
424
|
+
transition: background-color var(--matcha-duration-instant, 80ms) ease;
|
|
425
|
+
|
|
426
|
+
&:hover:not(:disabled) { background: var(--matcha-color-primary-surface-hover); }
|
|
427
|
+
&:disabled { pointer-events: none; opacity: var(--matcha-opacity-disabled, 0.38); }
|
|
428
|
+
&:focus-visible {
|
|
429
|
+
outline: 2px solid var(--matcha-color-primary);
|
|
430
|
+
outline-offset: 1px;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.matcha-select-bulk-btn-ghost {
|
|
435
|
+
color: var(--matcha-color-text-secondary);
|
|
436
|
+
font-weight: 400;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.matcha-select-bulk-count {
|
|
440
|
+
margin-left: auto;
|
|
441
|
+
font-size: 12px;
|
|
442
|
+
color: var(--matcha-color-text-placeholder);
|
|
443
|
+
font-weight: 400;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
447
|
+
// Searchable — input de busca no topo do panel + empty state
|
|
448
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
449
|
+
|
|
450
|
+
// Zera padding-top do panel quando o search é a 1ª coisa dentro. O search
|
|
451
|
+
// já tem padding próprio; o padding do panel (8px) somava e gerava gap
|
|
452
|
+
// visual entre trigger e o campo de busca.
|
|
453
|
+
.matcha-panel:has(> .matcha-select-options > .matcha-select-search:first-child) {
|
|
454
|
+
padding-top: 0;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.matcha-select-search {
|
|
458
|
+
position: relative;
|
|
459
|
+
padding: var(--matcha-space-100, 8px) var(--matcha-space-150, 12px);
|
|
460
|
+
border-bottom: var(--matcha-border-hairline, 1px) solid var(--matcha-color-border-subtle, rgba(0,0,0,0.08));
|
|
461
|
+
transition: border-color var(--matcha-duration-instant, 80ms) ease;
|
|
462
|
+
|
|
463
|
+
&:focus-within {
|
|
464
|
+
border-bottom-color: var(--matcha-color-primary);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// Input plano: sem border/background próprios. O container `.matcha-select-search`
|
|
469
|
+
// faz o papel de "campo" via padding + divider bottom, e focus-within muda a cor
|
|
470
|
+
// do divider. Evita efeito "card dentro de card" dentro do panel.
|
|
471
|
+
.matcha-select-search-input {
|
|
472
|
+
width: 100%;
|
|
473
|
+
height: 24px;
|
|
474
|
+
padding: 0 var(--matcha-space-400, 32px) 0 0;
|
|
475
|
+
border: 0;
|
|
476
|
+
border-radius: 0;
|
|
477
|
+
background: transparent;
|
|
478
|
+
color: var(--matcha-color-text-primary);
|
|
479
|
+
font: inherit;
|
|
480
|
+
font-size: 13px;
|
|
481
|
+
outline: none;
|
|
482
|
+
|
|
483
|
+
&::placeholder { color: var(--matcha-color-text-placeholder); }
|
|
484
|
+
&:focus { outline: none; }
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.matcha-select-search-clear {
|
|
488
|
+
position: absolute;
|
|
489
|
+
right: calc(var(--matcha-space-150, 12px) + var(--matcha-space-100, 8px));
|
|
490
|
+
top: 50%;
|
|
491
|
+
transform: translateY(-50%);
|
|
492
|
+
width: 18px;
|
|
493
|
+
height: 18px;
|
|
494
|
+
padding: 0;
|
|
495
|
+
background: transparent;
|
|
496
|
+
border: 0;
|
|
497
|
+
border-radius: 50%;
|
|
498
|
+
color: var(--matcha-color-text-placeholder);
|
|
499
|
+
cursor: pointer;
|
|
500
|
+
font-size: 16px;
|
|
501
|
+
line-height: 1;
|
|
502
|
+
display: inline-flex;
|
|
503
|
+
align-items: center;
|
|
504
|
+
justify-content: center;
|
|
505
|
+
|
|
506
|
+
&:hover {
|
|
507
|
+
background: var(--matcha-color-surface-hover, rgba(0,0,0,0.12));
|
|
508
|
+
color: var(--matcha-color-text-primary);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.matcha-select-empty {
|
|
513
|
+
padding: var(--matcha-space-200, 16px) var(--matcha-space-200, 16px);
|
|
514
|
+
text-align: center;
|
|
515
|
+
color: var(--matcha-color-text-placeholder);
|
|
516
|
+
font-size: 13px;
|
|
517
|
+
font-style: italic;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
521
|
+
// Bottom-sheet (mobile) — aligned com Figma matcha/field/select/mobile-sheet
|
|
522
|
+
// Ativa automaticamente em <=768px (ou via [mode]="'sheet'"). Full-width bottom-anchored.
|
|
523
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
524
|
+
.matcha-select-sheet-overlay {
|
|
525
|
+
position: fixed;
|
|
526
|
+
inset: 0;
|
|
527
|
+
z-index: 10002;
|
|
528
|
+
// Scrim 40% — cor do token com alpha aplicado via rgba (token resolve pra cor sólida)
|
|
529
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
530
|
+
opacity: 0;
|
|
531
|
+
pointer-events: none;
|
|
532
|
+
transition: opacity var(--matcha-duration-fast, 200ms) ease;
|
|
533
|
+
|
|
534
|
+
display: flex;
|
|
535
|
+
flex-direction: column;
|
|
536
|
+
justify-content: flex-end;
|
|
537
|
+
|
|
538
|
+
&.matcha-select-sheet-open {
|
|
539
|
+
opacity: 1;
|
|
540
|
+
pointer-events: auto;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.matcha-select-sheet {
|
|
545
|
+
position: relative;
|
|
546
|
+
width: 100%;
|
|
547
|
+
max-height: 90vh;
|
|
548
|
+
min-height: 50vh;
|
|
549
|
+
background: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
550
|
+
border-top-left-radius: var(--matcha-radius-xl, 16px);
|
|
551
|
+
border-top-right-radius: var(--matcha-radius-xl, 16px);
|
|
552
|
+
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
|
|
553
|
+
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-direction: column;
|
|
556
|
+
overflow: hidden;
|
|
557
|
+
|
|
558
|
+
// Slide-up animation — inicia off-screen e anima em.
|
|
559
|
+
// Classe `.matcha-select-sheet-open` aplicada diretamente (não via parent)
|
|
560
|
+
// pra evitar problemas de specificity com containers aninhados.
|
|
561
|
+
transform: translateY(100%);
|
|
562
|
+
transition: transform var(--matcha-duration-fast, 200ms) cubic-bezier(0.2, 0, 0, 1);
|
|
563
|
+
|
|
564
|
+
&.matcha-select-sheet-open {
|
|
565
|
+
transform: translateY(0);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@media (prefers-reduced-motion: reduce) {
|
|
569
|
+
transition: none;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.matcha-select-sheet-handle {
|
|
574
|
+
flex: 0 0 auto;
|
|
575
|
+
width: 40px;
|
|
576
|
+
height: 4px;
|
|
577
|
+
margin: var(--matcha-space-150, 12px) auto var(--matcha-space-100, 8px);
|
|
578
|
+
background: var(--matcha-color-surface-border);
|
|
579
|
+
opacity: 0.6;
|
|
580
|
+
border-radius: 2px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.matcha-select-sheet-header {
|
|
584
|
+
flex: 0 0 auto;
|
|
585
|
+
display: flex;
|
|
586
|
+
align-items: center;
|
|
587
|
+
gap: var(--matcha-space-100, 8px);
|
|
588
|
+
padding: var(--matcha-space-100, 8px) var(--matcha-space-100, 8px) var(--matcha-space-150, 12px) var(--matcha-space-200, 16px);
|
|
589
|
+
border-bottom: var(--matcha-border-hairline, 1px) solid var(--matcha-color-surface-border);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.matcha-select-sheet-title {
|
|
593
|
+
flex: 1 1 auto;
|
|
594
|
+
margin: 0;
|
|
595
|
+
font-family: var(--matcha-font-family);
|
|
596
|
+
font-size: 17px;
|
|
597
|
+
font-weight: 600;
|
|
598
|
+
line-height: 1.3;
|
|
599
|
+
color: var(--matcha-color-text-primary);
|
|
600
|
+
overflow: hidden;
|
|
601
|
+
text-overflow: ellipsis;
|
|
602
|
+
white-space: nowrap;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.matcha-select-sheet-close {
|
|
606
|
+
flex: 0 0 auto;
|
|
607
|
+
appearance: none;
|
|
608
|
+
width: 40px;
|
|
609
|
+
height: 40px;
|
|
610
|
+
padding: 0;
|
|
611
|
+
background: transparent;
|
|
612
|
+
border: 0;
|
|
613
|
+
border-radius: 50%;
|
|
614
|
+
color: var(--matcha-color-text-secondary);
|
|
615
|
+
cursor: pointer;
|
|
616
|
+
font-size: 24px;
|
|
617
|
+
line-height: 1;
|
|
618
|
+
display: inline-flex;
|
|
619
|
+
align-items: center;
|
|
620
|
+
justify-content: center;
|
|
621
|
+
transition: background-color var(--matcha-duration-instant, 80ms) ease;
|
|
622
|
+
|
|
623
|
+
&:hover { background: var(--matcha-color-surface-hover, rgba(0, 0, 0, 0.08)); }
|
|
624
|
+
&:focus-visible {
|
|
625
|
+
outline: 2px solid var(--matcha-color-primary);
|
|
626
|
+
outline-offset: -2px;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// Sheet-mode ajusta o scroll da lista pra caber dentro da sheet
|
|
631
|
+
.matcha-select-options-sheet {
|
|
632
|
+
flex: 1 1 auto;
|
|
633
|
+
overflow-y: auto;
|
|
634
|
+
-webkit-overflow-scrolling: touch;
|
|
635
|
+
display: flex;
|
|
636
|
+
flex-direction: column;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.matcha-select-sheet-list {
|
|
640
|
+
flex: 1 1 auto;
|
|
641
|
+
overflow-y: auto;
|
|
642
|
+
padding: var(--matcha-space-050, 4px) 0;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
// Sheet-mode options são full-width com padding mais generoso pra toque
|
|
646
|
+
.matcha-select-options-sheet matcha-option {
|
|
647
|
+
padding-left: var(--matcha-space-200, 16px);
|
|
648
|
+
padding-right: var(--matcha-space-200, 16px);
|
|
649
|
+
min-height: 48px; // Alvo tátil iOS (44px mínimo + folga)
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// Safe-area bottom — respeita env() do iOS + fallback 12px
|
|
653
|
+
.matcha-select-sheet-safe-area {
|
|
654
|
+
flex: 0 0 auto;
|
|
655
|
+
height: calc(env(safe-area-inset-bottom, 0px) + var(--matcha-space-150, 12px));
|
|
656
|
+
background: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
// Quando sheet-mode tá ativo, esconder a arrow do trigger faz menos sentido —
|
|
660
|
+
// mas mantemos porque ainda comunica "expandable". Tap target expandido.
|
|
661
|
+
@media (max-width: 768px) {
|
|
662
|
+
.matcha-select-trigger {
|
|
663
|
+
min-height: 48px;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
}
|