@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.
Files changed (99) hide show
  1. package/abstracts/_colors.scss +404 -404
  2. package/abstracts/_elevation.scss +102 -102
  3. package/abstracts/_functions.scss +1212 -1212
  4. package/abstracts/_media-breakpoint.scss +23 -23
  5. package/abstracts/_typography.scss +127 -127
  6. package/base/_reset.scss +438 -438
  7. package/components/app-page-header.scss +260 -0
  8. package/components/matcha-accordion.scss +294 -157
  9. package/components/matcha-avatar.scss +171 -31
  10. package/components/matcha-badge.scss +4 -4
  11. package/components/matcha-breadcrumb.scss +232 -126
  12. package/components/matcha-button-toggle.scss +44 -0
  13. package/components/matcha-buttons.scss +908 -784
  14. package/components/matcha-calendar.scss +70 -2
  15. package/components/matcha-cards.scss +28 -2
  16. package/components/matcha-checkbox.scss +191 -490
  17. package/components/matcha-chip.scss +297 -212
  18. package/components/matcha-command-palette.scss +291 -63
  19. package/components/matcha-crop.scss +407 -172
  20. package/components/matcha-date.scss +81 -81
  21. package/components/matcha-divider.scss +86 -31
  22. package/components/matcha-drawer.scss +201 -50
  23. package/components/matcha-drop-image.scss +14 -0
  24. package/components/matcha-drop-list.scss +42 -1
  25. package/components/matcha-empty-state.scss +195 -83
  26. package/components/matcha-flag.scss +93 -52
  27. package/components/matcha-footer.scss +68 -164
  28. package/components/matcha-form-field.scss +52 -0
  29. package/components/matcha-form-section.scss +101 -101
  30. package/components/matcha-header.scss +135 -325
  31. package/components/matcha-highlight.scss +65 -197
  32. package/components/matcha-hint-text.scss +21 -0
  33. package/components/matcha-horizontal-tree.scss +317 -317
  34. package/components/matcha-icon.scss +17 -25
  35. package/components/matcha-list.scss +5 -5
  36. package/components/matcha-menu.scss +13 -0
  37. package/components/matcha-modal.scss +58 -84
  38. package/components/matcha-nav.scss +361 -230
  39. package/components/matcha-notification.scss +413 -197
  40. package/components/matcha-option.scss +79 -23
  41. package/components/matcha-paginator.scss +689 -235
  42. package/components/matcha-panel.scss +42 -26
  43. package/components/matcha-profile-card.scss +50 -50
  44. package/components/matcha-progress-bar.scss +257 -153
  45. package/components/matcha-radio.scss +244 -452
  46. package/components/matcha-scrollbox-shadow.scss +122 -122
  47. package/components/matcha-select.scss +3 -3
  48. package/components/matcha-skeleton.scss +18 -0
  49. package/components/matcha-slide-toggle.scss +47 -2
  50. package/components/matcha-slider.scss +172 -75
  51. package/components/matcha-snack-bar.scss +114 -121
  52. package/components/matcha-spinner.scss +76 -57
  53. package/components/matcha-status-pill.scss +82 -0
  54. package/components/matcha-stepper.scss +377 -177
  55. package/components/matcha-table.scss +569 -785
  56. package/components/matcha-tabs.scss +624 -469
  57. package/components/matcha-text-editor.scss +98 -144
  58. package/components/matcha-toolbar.scss +359 -206
  59. package/components/matcha-tooltip.scss +156 -62
  60. package/components/matcha-tree-view.scss +189 -0
  61. package/components/matcha-uploader.scss +240 -62
  62. package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
  63. package/fonts/manrope/manrope-latin.woff2 +0 -0
  64. package/layout/matcha-page-layout.scss +776 -0
  65. package/main.scss +232 -261
  66. package/package.json +1 -1
  67. package/tokens/_animations-tokens.scss +37 -37
  68. package/tokens/_breakpoints-tokens.scss +35 -26
  69. package/tokens/_color-tokens.scss +1152 -1152
  70. package/tokens/_css-custom-properties.scss +650 -568
  71. package/tokens/_spacing-tokens.scss +94 -94
  72. package/vendors/angular-editor.scss +56 -56
  73. package/vendors/angular-material-fixes.scss +297 -297
  74. package/vendors/charts.scss +92 -92
  75. package/vendors/ng5-slider.scss +56 -56
  76. package/vendors/ngx-material-timepicker.scss +50 -50
  77. package/fonts/CircularStd-Black.eot +0 -0
  78. package/fonts/CircularStd-Black.svg +0 -3426
  79. package/fonts/CircularStd-Black.ttf +0 -0
  80. package/fonts/CircularStd-Black.woff +0 -0
  81. package/fonts/CircularStd-Black.woff2 +0 -0
  82. package/fonts/CircularStd-Bold.eot +0 -0
  83. package/fonts/CircularStd-Bold.otf +0 -0
  84. package/fonts/CircularStd-Bold.svg +0 -13532
  85. package/fonts/CircularStd-Bold.ttf +0 -0
  86. package/fonts/CircularStd-Bold.woff +0 -0
  87. package/fonts/CircularStd-Bold.woff2 +0 -0
  88. package/fonts/CircularStd-Medium.eot +0 -0
  89. package/fonts/CircularStd-Medium.otf +0 -0
  90. package/fonts/CircularStd-Medium.svg +0 -13511
  91. package/fonts/CircularStd-Medium.ttf +0 -0
  92. package/fonts/CircularStd-Medium.woff +0 -0
  93. package/fonts/CircularStd-Medium.woff2 +0 -0
  94. package/fonts/CircularStd-Regular.eot +0 -0
  95. package/fonts/CircularStd-Regular.otf +0 -0
  96. package/fonts/CircularStd-Regular.svg +0 -2378
  97. package/fonts/CircularStd-Regular.ttf +0 -0
  98. package/fonts/CircularStd-Regular.woff +0 -0
  99. package/fonts/CircularStd-Regular.woff2 +0 -0
@@ -1,325 +1,135 @@
1
- @use "sass:map";
2
-
3
- // =============================================================================
4
- // matcha-header.scss — App topbar + Profile card
5
- // Aligned with Figma matcha/header (3 estilos) + matcha/header/profile (2 estilos)
6
- // =============================================================================
7
-
8
- @mixin matcha-header-theme($theme) {
9
- $is-dark: map.get($theme, is-dark);
10
-
11
- // ── App Topbar ──
12
- .matcha-header {
13
- &__content {
14
- background: var(--matcha-color-surface, #{getSurface($theme)});
15
-
16
- &__title__icon {
17
- color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
18
- }
19
-
20
- &__options {
21
- background: var(--matcha-color-surface, #{getSurface($theme)});
22
- }
23
- }
24
-
25
- .matcha-header-church-id {
26
- color: var(--matcha-color-text-placeholder, #{getBlueGrey($theme)});
27
- }
28
-
29
- .matcha-header-user-name {
30
- color: var(--matcha-color-fg, #{getForeground($theme)});
31
- }
32
-
33
- @include media-breakpoint('gt-sm') {
34
- &__content {
35
- background: var(--matcha-color-surface, #{getSurface($theme)});
36
-
37
- &__options {
38
- background: transparent;
39
- }
40
- }
41
- }
42
- }
43
-
44
- // ── Profile Card ──
45
- .matcha-header-profile {
46
- background: var(--matcha-color-surface, #{getSurface($theme)});
47
-
48
- .profile-back {
49
- color: var(--matcha-color-fg, #{getForeground($theme)});
50
-
51
- &:hover {
52
- opacity: 0.8;
53
- }
54
-
55
- &:focus-visible {
56
- outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent, #{getAccent($theme)});
57
- outline-offset: var(--matcha-state-focus-ring-offset, 2px);
58
- border-radius: var(--matcha-radius-md, 4px);
59
- }
60
- }
61
-
62
- .profile-dates {
63
- color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
64
- }
65
-
66
- .profile-name {
67
- color: var(--matcha-color-fg, #{getForeground($theme)});
68
- }
69
-
70
- .profile-meta {
71
- color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
72
- }
73
-
74
- .profile-church {
75
- color: var(--matcha-color-fg, #{getForeground($theme)});
76
- }
77
-
78
- .profile-function-label {
79
- color: var(--matcha-color-accent, #{getAccent($theme)});
80
- }
81
-
82
- .profile-function-value {
83
- color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
84
- }
85
-
86
- .profile-enrollment {
87
- color: var(--matcha-color-fg, #{getForeground($theme)});
88
- }
89
-
90
- .profile-edit {
91
- color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
92
- cursor: pointer;
93
-
94
- &:hover {
95
- color: var(--matcha-color-fg, #{getForeground($theme)});
96
- }
97
-
98
- &:focus-visible {
99
- outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent, #{getAccent($theme)});
100
- outline-offset: var(--matcha-state-focus-ring-offset, 2px);
101
- }
102
- }
103
- }
104
- }
105
-
106
- // ── Layout — App Topbar ─────────────────────────────────────────────────────
107
-
108
- .matcha-header {
109
- &__content {
110
- display: flex;
111
- flex-wrap: wrap;
112
- align-items: center;
113
- justify-content: space-between;
114
- width: 100%;
115
- height: var(--matcha-space-600, 48px);
116
- padding: var(--matcha-space-100, 8px) var(--matcha-space-300, 24px) var(--matcha-space-100, 8px) var(--matcha-space-200, 16px);
117
- gap: var(--matcha-space-200, 16px);
118
- }
119
-
120
- .matcha-header-left {
121
- display: flex;
122
- align-items: center;
123
- gap: var(--matcha-space-200, 16px);
124
- flex: 1;
125
- min-width: 0;
126
- }
127
-
128
- .matcha-header-right {
129
- display: flex;
130
- align-items: center;
131
- gap: var(--matcha-space-200, 16px);
132
- }
133
-
134
- .matcha-header-user {
135
- display: flex;
136
- align-items: center;
137
- gap: var(--matcha-space-100, 8px);
138
- cursor: pointer;
139
- }
140
-
141
- .matcha-header-church-id {
142
- font-family: var(--matcha-font-family);
143
- font-size: var(--matcha-text-caption, 11px);
144
- line-height: var(--matcha-leading-caption, 14px);
145
- letter-spacing: var(--matcha-letter-spacing-caption, 0.3px);
146
- white-space: nowrap;
147
- }
148
-
149
- .matcha-header-user-name {
150
- font-family: var(--matcha-font-family);
151
- font-size: var(--matcha-text-button-sm, 13px);
152
- font-weight: var(--matcha-weight-medium, 500);
153
- line-height: var(--matcha-leading-button-sm, 19px);
154
- letter-spacing: var(--matcha-letter-spacing-button, 0.2px);
155
- white-space: nowrap;
156
- }
157
- }
158
-
159
- // ── Layout — Profile Card ───────────────────────────────────────────────────
160
-
161
- .matcha-header-profile {
162
- display: flex;
163
- flex-direction: column;
164
- gap: var(--matcha-space-200, 16px);
165
- padding: var(--matcha-space-300, 24px);
166
- border-radius: var(--matcha-radius-lg, 8px);
167
- width: 100%;
168
-
169
- .profile-nav {
170
- display: flex;
171
- align-items: center;
172
- justify-content: space-between;
173
- gap: var(--matcha-space-100, 8px);
174
- }
175
-
176
- .profile-back {
177
- display: flex;
178
- align-items: center;
179
- gap: var(--matcha-space-100, 8px);
180
- cursor: pointer;
181
- border: none;
182
- background: none;
183
- padding: 0;
184
- font-family: var(--matcha-font-family);
185
- font-size: var(--matcha-text-body-md, 14px);
186
- }
187
-
188
- .profile-dates {
189
- display: flex;
190
- align-items: center;
191
- gap: var(--matcha-space-200, 16px);
192
- font-family: var(--matcha-font-family);
193
- font-size: var(--matcha-text-body-md, 14px);
194
- line-height: var(--matcha-leading-body-md, 20px);
195
- }
196
-
197
- .profile-row {
198
- display: flex;
199
- align-items: center;
200
- gap: var(--matcha-space-200, 16px);
201
- width: 100%;
202
- }
203
-
204
- .profile-info {
205
- display: flex;
206
- flex-direction: column;
207
- gap: var(--matcha-space-050, 4px);
208
- flex: 1;
209
- min-width: 0;
210
- }
211
-
212
- .profile-name {
213
- font-family: var(--matcha-font-family);
214
- font-size: var(--matcha-text-display, 32px);
215
- font-weight: var(--matcha-weight-bold, 700);
216
- line-height: var(--matcha-leading-display, 40px);
217
- }
218
-
219
- .profile-meta {
220
- display: flex;
221
- align-items: center;
222
- gap: var(--matcha-space-100, 8px);
223
- flex-wrap: wrap;
224
- font-family: var(--matcha-font-family);
225
- font-size: var(--matcha-text-body-sm, 12px);
226
- line-height: var(--matcha-leading-body-sm, 16px);
227
- }
228
-
229
- .profile-actions {
230
- display: flex;
231
- align-items: center;
232
- gap: var(--matcha-space-100, 8px);
233
- }
234
-
235
- .profile-church {
236
- display: flex;
237
- align-items: center;
238
- justify-content: space-between;
239
- gap: var(--matcha-space-100, 8px);
240
- width: 100%;
241
- font-family: var(--matcha-font-family);
242
- font-size: var(--matcha-text-title-sm, 16px);
243
- font-weight: var(--matcha-weight-semibold, 600);
244
- line-height: var(--matcha-leading-title-sm, 22px);
245
- }
246
-
247
- .profile-footer {
248
- display: flex;
249
- align-items: center;
250
- justify-content: space-between;
251
- gap: var(--matcha-space-200, 16px);
252
- width: 100%;
253
- }
254
-
255
- .profile-functions {
256
- display: flex;
257
- align-items: center;
258
- gap: var(--matcha-space-050, 4px);
259
- font-family: var(--matcha-font-family);
260
- font-size: var(--matcha-text-body-md, 14px);
261
- line-height: var(--matcha-leading-body-md, 20px);
262
- }
263
-
264
- .profile-enrollment {
265
- display: flex;
266
- align-items: center;
267
- gap: var(--matcha-space-100, 8px);
268
- font-family: var(--matcha-font-family);
269
- font-size: var(--matcha-text-body-md, 14px);
270
- line-height: var(--matcha-leading-body-md, 20px);
271
- }
272
- }
273
-
274
- // ── Responsive — Header ──
275
- @include media-breakpoint('xs') {
276
- .matcha-header {
277
- &__content {
278
- height: var(--matcha-space-600, 48px);
279
- padding: var(--matcha-space-100, 8px) var(--matcha-space-200, 16px);
280
- }
281
-
282
- .matcha-header-user-name {
283
- display: none;
284
- }
285
- }
286
- }
287
-
288
- // ── Responsive — Profile ──
289
- @include media-breakpoint('xs') {
290
- .matcha-header-profile {
291
- .profile-nav {
292
- flex-direction: column;
293
- align-items: flex-start;
294
- }
295
-
296
- .profile-dates {
297
- flex-wrap: wrap;
298
- }
299
-
300
- .profile-row {
301
- flex-direction: column;
302
- align-items: flex-start;
303
- }
304
-
305
- .profile-name {
306
- font-size: var(--matcha-text-title-md, 18px);
307
- font-weight: var(--matcha-weight-semibold, 600);
308
- line-height: var(--matcha-leading-title-md, 24px);
309
- }
310
-
311
- .profile-footer {
312
- flex-direction: column;
313
- align-items: flex-start;
314
- gap: var(--matcha-space-100, 8px);
315
- }
316
- }
317
- }
318
-
319
- // ── Reduced motion ──
320
- @media (prefers-reduced-motion: reduce) {
321
- .matcha-header-profile .profile-edit,
322
- .matcha-header-profile .profile-back {
323
- transition: none;
324
- }
325
- }
1
+ @use "sass:map";
2
+
3
+ // =============================================================================
4
+ // matcha-header.scss
5
+ //
6
+ // Lib component canônico — 1:1 Figma DSV3 `matcha/header` (nodeId 15892:157).
7
+ // Element selector `matcha-header { ... }`, 2 slots (left/right).
8
+ //
9
+ // Para o page-header legacy (`.matcha-header__*` usado pela app design-system),
10
+ // ver `app-page-header.scss`.
11
+ // =============================================================================
12
+
13
+ @mixin matcha-header-theme($theme) {
14
+ $is-dark: map.get($theme, is-dark);
15
+
16
+ matcha-header {
17
+ background: var(--matcha-color-surface-card, #{getSurface($theme)});
18
+ // Border uses interaction/disabled-border (1:1 Figma matcha/header 15892:157):
19
+ // dark = rgba(232,234,237,0.38); light = #c8d2ca. Semanticamente atípico —
20
+ // o token canônico de "divisor de chrome" seria surface/border, mas Figma
21
+ // bind explicitamente este. Trocar de volta se for revertido lá.
22
+ border-bottom: var(--matcha-border-hairline, 1px) solid var(--matcha-color-interaction-disabled-border, #{getGrey($theme)});
23
+ color: var(--matcha-color-text-primary, #{getForeground($theme)});
24
+ }
25
+ }
26
+
27
+ // ── Layout — matcha-header lib component ────────────────────────────────────
28
+
29
+ matcha-header {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: space-between;
33
+ width: 100%;
34
+ box-sizing: border-box;
35
+ position: relative;
36
+ z-index: 1;
37
+ // Figma DSV3: h 56, padding 8/24/8/16 (asimétrico: l 16 / r 24).
38
+ // Logical props pra RTL: inline-start = left (16), inline-end = right (24).
39
+ block-size: var(--matcha-header-height, 56px);
40
+ padding-block: var(--matcha-space-100, 8px);
41
+ padding-inline-start: var(--matcha-space-200, 16px);
42
+ padding-inline-end: var(--matcha-space-300, 24px);
43
+ gap: var(--matcha-space-200, 16px);
44
+ // Bottom corners arredondados (header sentado no topo, oposto do footer).
45
+ border-end-start-radius: var(--matcha-radius-lg, 8px);
46
+ border-end-end-radius: var(--matcha-radius-lg, 8px);
47
+ // Figma DSV3 description: "Elevation: level-1" — eleva o header sobre o body.
48
+ box-shadow: var(--matcha-shadow-1);
49
+ font-family: var(--matcha-font-family);
50
+ font-size: var(--matcha-text-label-sm, 13px);
51
+ line-height: var(--matcha-leading-label-sm, 19px);
52
+
53
+ // ── Slots ──
54
+ .matcha-header__slot {
55
+ display: flex;
56
+ align-items: center;
57
+ gap: var(--matcha-space-200, 16px);
58
+ // min-width:0 permite que filhos com overflow:hidden+ellipsis encolham.
59
+ // Não usamos overflow:hidden no slot pra não clipar tooltips/menus
60
+ // posicionados inline a partir de filhos.
61
+ min-width: 0;
62
+
63
+ // Hide vazio — slot só renderiza com conteúdo.
64
+ &:not(:has(*)) {
65
+ display: none;
66
+ }
67
+ }
68
+
69
+ .matcha-header__slot--left {
70
+ flex: 1 1 auto;
71
+ justify-content: flex-start;
72
+ }
73
+
74
+ .matcha-header__slot--right {
75
+ flex: 0 0 auto;
76
+ justify-content: flex-end;
77
+ }
78
+
79
+ // Hamburguer — não encolhe, participa do gap do slot--left (space-200).
80
+ .matcha-header__menu-trigger {
81
+ flex-shrink: 0;
82
+ }
83
+ }
84
+
85
+ // ── Forced colors (Windows High Contrast) ──────────────────────────────────
86
+ // Border hairline (12% opacidade) pode sumir em high-contrast.
87
+ // CanvasText é o token system semantic — sempre visível.
88
+ @media (forced-colors: active) {
89
+ matcha-header {
90
+ border-bottom: 1px solid CanvasText;
91
+ }
92
+ }
93
+
94
+ // ── Reduced motion (defensivo) ──────────────────────────────────────────────
95
+ // Hoje header não tem transitions, mas cobre futuro (sticky shadow, hide-on-scroll).
96
+ @media (prefers-reduced-motion: reduce) {
97
+ matcha-header {
98
+ transition: none !important;
99
+ animation: none !important;
100
+ }
101
+ }
102
+
103
+ // ── Print ──────────────────────────────────────────────────────────────────
104
+ // Convenção DS: chrome (header/footer) some em impressão.
105
+ @media print {
106
+ matcha-header {
107
+ display: none;
108
+ }
109
+ }
110
+
111
+ // ── Menu trigger — visível apenas em tablet/mobile (< 1024px) ───────────────
112
+ // Em desktop o nav-rail/panel fica sempre visível; hamburguer não é necessário.
113
+ // Consumer pode sobreescrever com [showMenuTrigger]="false" se quiser esconder
114
+ // em breakpoints diferentes.
115
+ @media (min-width: 1024px) {
116
+ matcha-header .matcha-header__menu-trigger {
117
+ display: none !important;
118
+ }
119
+ }
120
+
121
+ // ── Responsive — matcha-header (Mobile, xs) ──
122
+ @include media-breakpoint('xs') {
123
+ matcha-header {
124
+ // Figma DSV3 Mobile (node 15892:124 — matcha/header Estilo=Mobile):
125
+ // h 48 (token --matcha-grid-header-height-mobile, NÃO 56 — versão
126
+ // compactada pra reduzir chrome em viewport pequeno),
127
+ // padding 8/16/8/16 (simétrico), gap 16.
128
+ block-size: var(--matcha-grid-header-height-mobile, 48px);
129
+ padding-inline-start: var(--matcha-space-200, 16px);
130
+ padding-inline-end: var(--matcha-space-200, 16px);
131
+ // Mobile remove radius — header full-width edge-to-edge.
132
+ border-end-start-radius: 0;
133
+ border-end-end-radius: 0;
134
+ }
135
+ }