@inchurch/matcha-theme 22.14.4 → 22.15.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.
|
@@ -349,10 +349,22 @@
|
|
|
349
349
|
height: 100%;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
// Suffix costuma agrupar mais de uma info (contador de caracteres + ícone de
|
|
353
|
+
// status/erro) — 8px de respiro entre elas. Regra global (sem ::ng-deep): o
|
|
354
|
+
// host do <matcha-suffix> tem class .matcha-form-field-suffix e vive dentro do
|
|
355
|
+
// matcha-form-field. O display:inline-flex vem do component scss.
|
|
356
|
+
.matcha-form-field-suffix {
|
|
357
|
+
gap: var(--matcha-space-100, 8px);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// @deprecated `.matcha-suffix` (div avulsa) — use o componente <matcha-suffix>
|
|
361
|
+
// (host `.matcha-form-field-suffix`), que já traz o gap de 8px entre múltiplas
|
|
362
|
+
// infos. Mantido só por retrocompat; migrar consumidores e remover numa próxima major.
|
|
352
363
|
.matcha-suffix {
|
|
353
364
|
display: flex;
|
|
354
365
|
flex-wrap: nowrap;
|
|
355
366
|
align-items: center;
|
|
367
|
+
gap: var(--matcha-space-100, 8px);
|
|
356
368
|
}
|
|
357
369
|
}
|
|
358
370
|
|
|
@@ -418,8 +430,10 @@ matcha-form-field[readonly="true"] .matcha-form-field {
|
|
|
418
430
|
// ── Char counter (injetado via Renderer2 pelo matchaCharCounter directive) ──
|
|
419
431
|
// Figma matcha/field/textarea: body-sm 12/16, text-secondary, align right.
|
|
420
432
|
// Precisa ser global (sem ngcontent) porque o span vem de fora da view do form-field.
|
|
421
|
-
|
|
422
|
-
|
|
433
|
+
// IN-40430 (painel): a tipografia vale pra QUALQUER host do counter — quando o span
|
|
434
|
+
// caía fora do .matcha-form-field-wrapper (textarea/usos legados), ficava sem estilo
|
|
435
|
+
// e herdava fonte maior que o próprio texto do campo.
|
|
436
|
+
.matcha-char-counter {
|
|
423
437
|
font-family: var(--matcha-font-family);
|
|
424
438
|
font-size: var(--matcha-text-body-sm, 12px);
|
|
425
439
|
font-weight: var(--matcha-weight-regular, 400);
|
|
@@ -429,6 +443,10 @@ matcha-form-field[readonly="true"] .matcha-form-field {
|
|
|
429
443
|
margin: 0;
|
|
430
444
|
padding: 0;
|
|
431
445
|
user-select: none;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.matcha-form-field-wrapper > .matcha-char-counter {
|
|
449
|
+
align-self: flex-end;
|
|
432
450
|
transition: color var(--matcha-duration-fast, 200ms) ease;
|
|
433
451
|
|
|
434
452
|
// 3 níveis visuais (0-89% = neutro, 90-99% = warn, 100%+ = danger).
|
|
@@ -286,7 +286,8 @@ matcha-progress-bar[type="segmented"] {
|
|
|
286
286
|
matcha-progress-bar {
|
|
287
287
|
.progress-fill { transition: none; }
|
|
288
288
|
.progress-indeterminate,
|
|
289
|
-
.progress-indeterminate::before
|
|
289
|
+
.progress-indeterminate::before,
|
|
290
|
+
.progress-indeterminate::after { animation: none; }
|
|
290
291
|
.progress-segment { transition: none; }
|
|
291
292
|
}
|
|
292
293
|
}
|
|
@@ -294,7 +295,7 @@ matcha-progress-bar[type="segmented"] {
|
|
|
294
295
|
// ── Forced colors ──
|
|
295
296
|
@media (forced-colors: active) {
|
|
296
297
|
matcha-progress-bar {
|
|
297
|
-
.progress
|
|
298
|
+
.progress {
|
|
298
299
|
background: Canvas !important;
|
|
299
300
|
border: 1px solid CanvasText !important;
|
|
300
301
|
}
|