@inchurch/matcha-theme 22.17.0 → 22.18.1

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.
@@ -178,27 +178,9 @@ matcha-card,
178
178
  }
179
179
  }
180
180
 
181
- // ── Media slot (16:9) ──
182
- .matcha-card__media {
183
- width: 100%;
184
- aspect-ratio: 16 / 9;
185
- overflow: hidden;
186
- border-radius: var(--matcha-radius-md, 4px);
187
- flex-shrink: 0;
188
-
189
- img {
190
- width: 100%;
191
- height: 100%;
192
- object-fit: cover;
193
- }
194
- }
195
-
196
- // Horizontal media
197
- &.matcha-card--horizontal .matcha-card__media {
198
- width: 160px;
199
- aspect-ratio: auto;
200
- height: 100%;
201
- }
181
+ // .matcha-card__media (slot de mídia 16:9) saiu: dead code — a anatomia
182
+ // real do componente usa .matcha-card__slot--media (card.component.html),
183
+ // nome diferente; esta classe nunca teve consumidor (nem legado, nem real).
202
184
 
203
185
  @media (prefers-reduced-motion: reduce) {
204
186
  &.disabled, &.enabled {
@@ -8,7 +8,13 @@
8
8
  @mixin matcha-horizontal-tree-theme($theme) {
9
9
 
10
10
  .svg-line line {
11
- stroke: var(--matcha-color-text-placeholder);
11
+ // Mesma cor que TODOS os outros conectores deste arquivo usam
12
+ // (.the-line-connect-first/-last/etc = --matcha-color-accent). Estava
13
+ // --matcha-color-text-placeholder (cinza), que sempre vencia a classe
14
+ // stroke-primary aplicada pelo consumidor no <line> (.svg-line line e
15
+ // seletor composto, mais especifico que uma unica classe) -- a linha
16
+ // rendia cinza mesmo com a intencao de ser colorida.
17
+ stroke: var(--matcha-color-accent);
12
18
  }
13
19
 
14
20
  .child {
@@ -36,28 +42,11 @@
36
42
  box-shadow: inset 2px -2px 0 2px var(--matcha-color-accent-alpha);
37
43
  }
38
44
 
39
- .the-line-connect-start-modal {
40
- box-shadow: inset 2px -2px 0 2px var(--matcha-color-accent-alpha);
41
- }
42
-
43
45
  .the-line-connect-middle {
44
46
  box-shadow: inset 2px -2px 0 2px var(--matcha-color-border);
45
47
  }
46
48
  }
47
49
 
48
- .tree-node {
49
- &-content {
50
- &-btn-add-node {
51
- background: var(--matcha-color-surface);
52
- box-shadow: inset 0 0 0 3px var(--matcha-color-accent);
53
-
54
- &-i {
55
- color: var(--matcha-color-accent);
56
- }
57
- }
58
- }
59
- }
60
-
61
50
  .tree-first-node {
62
51
  &-begin {
63
52
  &-btn-add-node {
@@ -161,17 +150,6 @@
161
150
  background: transparent;
162
151
  }
163
152
 
164
- .the-line-connect-start-modal {
165
- height: 92px;
166
- margin: -34px -16px 56px -40px;
167
- width: 56px;
168
- border-radius: 0 0 0 40px;
169
- z-index: 1;
170
- display: flex;
171
- position: absolute;
172
- background: transparent;
173
- }
174
-
175
153
  .the-line-connect-middle {
176
154
  height: 92px;
177
155
  margin: -34px -16px 56px -40px;
@@ -191,76 +169,29 @@
191
169
  height: 80px;
192
170
  z-index: 1;
193
171
 
194
- &-header {
195
- display: flex;
196
- justify-content: space-between;
197
- margin-bottom: var(--matcha-space-050, 4px);
198
-
199
- &-title {
200
- font-family: var(--matcha-font-family);
201
- font-size: var(--matcha-text-body-sm, 12px);
202
- line-height: var(--matcha-leading-body-sm, 16px);
203
- display: flex;
204
- margin: 0 0 var(--matcha-space-050, 4px) 0;
205
- align-items: center;
206
- letter-spacing: 0.08em;
207
- text-transform: uppercase;
208
- font-weight: var(--matcha-weight-bold, 700);
209
-
210
- &-bullet {
211
- height: var(--matcha-space-200, 16px);
212
- width: var(--matcha-space-100, 8px);
213
- margin: 0 var(--matcha-space-100, 8px) 0 0;
214
- display: inline-block;
215
- position: relative;
216
- border-radius: var(--matcha-radius-pill, 9999px);
217
- }
218
- }
219
- }
220
-
172
+ // &-header, &-content e &-content-profile saíram: eram só display:flex +
173
+ // justify-content/align-items — hoje cobertos por utilitárias
174
+ // (flex-between/flex-align-center/flex-grow-1/min-w-0) direto no consumidor,
175
+ // sem precisar de uma classe própria do tema pra isso. &-content-btn-add-node
176
+ // e &-content-profile-avatar saíram por não terem mais consumidor (canonização
177
+ // do control-panel-v2 pro matcha-card/matcha-avatar reais).
221
178
  &-content {
222
- display: flex;
223
- justify-content: space-between;
224
-
225
179
  &-profile {
226
- display: flex;
227
- align-items: center;
228
- width: 100%;
229
-
230
- &-avatar {
231
- border-radius: var(--matcha-radius-pill, 9999px);
232
- min-width: var(--matcha-icon-size-md, 24px);
233
- min-height: var(--matcha-icon-size-md, 24px);
234
- width: var(--matcha-icon-size-md, 24px);
235
- height: var(--matcha-icon-size-md, 24px);
236
- max-width: var(--matcha-icon-size-md, 24px);
237
- max-height: var(--matcha-icon-size-md, 24px);
238
- }
239
-
240
180
  &-name {
241
181
  width: calc(100% - 48px);
242
- display: flex;
182
+ // display:flex aqui era o bug: -webkit-line-clamp exige display:-webkit-box
183
+ // pra funcionar, e nowrap+ellipsis exige block/inline-block — nenhum dos
184
+ // dois mecanismos de truncamento funcionava com flex, resultando em corte
185
+ // cru sem "...". block resolve o ellipsis de 1 linha (não há espaço
186
+ // vertical pra 2 linhas nesta altura de row).
187
+ display: block;
243
188
  line-height: var(--matcha-leading-body-md, 20px);
244
189
  font-size: var(--matcha-text-title-sm, 16px);
245
190
  margin: 0 0 0 var(--matcha-space-100, 8px);
246
- -webkit-line-clamp: 2;
247
191
  overflow: hidden;
248
192
  text-overflow: ellipsis;
249
193
  word-break: break-word;
250
194
  white-space: nowrap;
251
- -webkit-box-orient: vertical;
252
- }
253
- }
254
-
255
- &-btn-add-node {
256
- position: absolute;
257
- margin: var(--matcha-space-300, 24px) 0 0 236px;
258
- width: var(--matcha-icon-size-md, 24px);
259
- height: var(--matcha-icon-size-md, 24px);
260
-
261
- &-i {
262
- line-height: var(--matcha-leading-body-sm, 16px);
263
- border-radius: var(--matcha-radius-pill, 9999px);
264
195
  }
265
196
  }
266
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inchurch/matcha-theme",
3
- "version": "22.17.0",
3
+ "version": "22.18.1",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {