@inchurch/matcha-theme 22.0.0 → 22.1.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/base/_reset.scss CHANGED
@@ -2,11 +2,12 @@
2
2
  // theme-agnóstico em valor (var); fica per-classe de tema pelo & (pinta o
3
3
  // elemento que carrega a classe). $theme vestigial (default ()).
4
4
  & {
5
+ color: var(--matcha-color-fg);
6
+ background: var(--matcha-color-surface-bg);
7
+
5
8
  *, *:before, *:after {
6
9
  box-sizing: border-box;
7
10
  }
8
- color: var(--matcha-color-fg);
9
- background: var(--matcha-color-surface-bg);
10
11
  }
11
12
  }
12
13
 
@@ -242,6 +242,7 @@ matcha-button-toggle {
242
242
  button[matcha-button],
243
243
  a[matcha-button] {
244
244
  &[active] {
245
+ @include disabled-solid-button($theme);
245
246
 
246
247
  &[outline],
247
248
  &[outline]:not([outline="false"]),
@@ -266,8 +267,6 @@ matcha-button-toggle {
266
267
  &[link="true"] {
267
268
  @include disabled-link-button($theme);
268
269
  }
269
-
270
- @include disabled-solid-button($theme);
271
270
  }
272
271
  }
273
272
  }
@@ -0,0 +1,35 @@
1
+ // =============================================================================
2
+ // matcha-contact — ícone (whatsapp/telefone) + número, com link wa.me opcional.
3
+ // Top-level (sem mixin): usa só var(--matcha-color-*), que resolve por tema —
4
+ // mesmo padrão de matcha-avatar.scss / matcha-status-pill.scss.
5
+ // =============================================================================
6
+ matcha-contact {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ gap: var(--matcha-space-100, 8px);
10
+ min-width: 0;
11
+
12
+ .matcha-contact__icon.is-whatsapp {
13
+ --matcha-icon-color: var(--matcha-color-success);
14
+ }
15
+
16
+ .matcha-contact__value {
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ white-space: nowrap;
20
+ }
21
+
22
+ // Link wa.me — herda a cor do texto (não vira o azul de link default) e só
23
+ // sublinha no hover, pra não competir visualmente com o número.
24
+ .matcha-contact__link {
25
+ color: inherit;
26
+ text-decoration: none;
27
+
28
+ &:hover { text-decoration: underline; }
29
+ }
30
+
31
+ .matcha-contact__empty {
32
+ color: var(--matcha-color-text-muted);
33
+ font-style: italic;
34
+ }
35
+ }
@@ -41,34 +41,9 @@
41
41
  }
42
42
 
43
43
  // =============================================================================
44
- // Família matcha-cell-* (DSV3) — cells de tabela canônicas, seletor de
45
- // atributo em <td> nativo (td[matcha-cell-<tipo>]). Top-level (fora do mixin
46
- // acima de propósito): usam só var(--matcha-color-*), que já resolve por
47
- // tema sem precisar reemitir por @includemesmo padrão do matcha-avatar.scss.
48
- //
49
- // td[matcha-cell-identity] e td[matcha-cell-status] não precisam de CSS aqui:
50
- // o layout já vem inteiro do matcha-avatar (showName) e do matcha-status-pill.
44
+ // Família matcha-cell-* (DSV3) — cells de tabela canônicas, seletor de atributo
45
+ // em <td> nativo (td[matcha-cell-<tipo>]). Cada cell é um wrapper fino sobre um
46
+ // átomo do DS (identity→matcha-avatar, status→matcha-status-pill,
47
+ // contact→matcha-contact), então o estilo mora no átomo não aqui. Nenhuma das
48
+ // cells precisa de CSS próprio neste parcial.
51
49
  // =============================================================================
52
-
53
- // ── td[matcha-cell-contact] — ícone (whatsapp/telefone) + número ───────────
54
- .matcha-cell-contact {
55
- display: inline-flex;
56
- align-items: center;
57
- gap: var(--matcha-space-100, 8px);
58
- min-width: 0;
59
-
60
- &__icon.is-whatsapp {
61
- --matcha-icon-color: var(--matcha-color-success);
62
- }
63
-
64
- &__value {
65
- overflow: hidden;
66
- text-overflow: ellipsis;
67
- white-space: nowrap;
68
- }
69
-
70
- &__empty {
71
- color: var(--matcha-color-text-muted);
72
- font-style: italic;
73
- }
74
- }
package/main.scss CHANGED
@@ -89,6 +89,8 @@
89
89
  @use "./components/matcha-table" as *; // matcha-table-modern (canon DSV3 1:1 Figma)
90
90
  @forward "./components/matcha-table-cell";
91
91
  @use "./components/matcha-table-cell" as *; // matcha-table-cell-theme($theme)
92
+ @forward "./components/matcha-contact";
93
+ @use "./components/matcha-contact" as *; // matcha-contact (átomo de exibição de contato)
92
94
  @forward "./components/matcha-tooltip";
93
95
  @use "./components/matcha-tooltip" as *; // matcha-tooltip-theme($theme)
94
96
  @forward "./components/matcha-form-field";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inchurch/matcha-theme",
3
- "version": "22.0.0",
3
+ "version": "22.1.0",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {