@inchurch/matcha-theme 20.0.11 → 20.277.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 +404 -404
- package/abstracts/_elevation.scss +102 -102
- package/abstracts/_functions.scss +1186 -1212
- package/abstracts/_media-breakpoint.scss +23 -23
- package/abstracts/_theme-api.scss +230 -0
- package/abstracts/_typography.scss +127 -127
- package/base/_reset.scss +438 -438
- package/components/app-page-header.scss +259 -0
- package/components/matcha-accordion.scss +293 -157
- package/components/matcha-audio-player.scss +1 -2
- package/components/matcha-autocomplete.scss +10 -11
- package/components/matcha-avatar.scss +173 -33
- package/components/matcha-badge.scss +15 -15
- package/components/matcha-breadcrumb.scss +231 -126
- package/components/matcha-button-toggle.scss +46 -2
- package/components/matcha-buttons.scss +908 -784
- package/components/matcha-calendar.scss +99 -35
- package/components/matcha-cards.scss +58 -33
- package/components/matcha-chart-card.scss +5 -12
- package/components/matcha-checkbox.scss +191 -490
- package/components/matcha-chip.scss +297 -212
- package/components/matcha-color-pick.scss +1 -2
- package/components/matcha-command-palette.scss +290 -63
- package/components/matcha-crop.scss +406 -172
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +86 -31
- package/components/matcha-draggable.scss +4 -5
- package/components/matcha-drawer.scss +207 -66
- package/components/matcha-drop-image.scss +14 -0
- package/components/matcha-drop-list.scss +87 -47
- package/components/matcha-emoji.scss +2 -2
- package/components/matcha-empty-state.scss +195 -83
- package/components/matcha-file-uploader.scss +462 -0
- package/components/matcha-flag.scss +93 -52
- package/components/matcha-footer.scss +67 -164
- package/components/matcha-form-field.scss +55 -3
- package/components/matcha-form-section.scss +100 -101
- package/components/matcha-header.scss +134 -325
- package/components/matcha-highlight.scss +65 -197
- package/components/matcha-hint-text.scss +25 -4
- package/components/matcha-horizontal-tree.scss +316 -317
- package/components/matcha-icon.scss +37 -45
- package/components/matcha-image.scss +2 -3
- package/components/matcha-list.scss +14 -15
- package/components/matcha-menu.scss +15 -2
- package/components/matcha-modal.scss +59 -86
- package/components/matcha-nav.scss +362 -231
- package/components/matcha-notification.scss +412 -197
- package/components/matcha-option.scss +98 -23
- package/components/matcha-page-builder.scss +16 -16
- package/components/matcha-paginator.scss +688 -235
- package/components/matcha-panel.scss +42 -27
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +257 -153
- package/components/matcha-radio.scss +244 -452
- package/components/matcha-scrollbar.scss +1 -2
- package/components/matcha-scrollbox-shadow.scss +120 -122
- package/components/matcha-section.scss +5 -9
- package/components/matcha-select-multiple.scss +56 -0
- package/components/matcha-select.scss +10 -10
- package/components/matcha-skeleton.scss +24 -7
- package/components/matcha-slide-toggle.scss +80 -301
- package/components/matcha-slider.scss +174 -77
- package/components/matcha-snack-bar.scss +123 -131
- package/components/matcha-spin.scss +12 -103
- package/components/matcha-spinner.scss +76 -57
- package/components/matcha-status-pill.scss +82 -0
- package/components/matcha-stepper.scss +376 -177
- package/components/matcha-table.scss +568 -785
- package/components/matcha-tabs.scss +622 -469
- package/components/matcha-text-editor.scss +78 -78
- package/components/matcha-time.scss +2 -2
- package/components/matcha-toolbar.scss +359 -206
- package/components/matcha-tooltip.scss +158 -62
- package/components/matcha-tree-view.scss +189 -0
- package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/layout/matcha-page-layout.scss +4 -4
- package/main.scss +237 -265
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -26
- package/tokens/_color-tokens.scss +1149 -1152
- package/tokens/_css-custom-properties.scss +704 -568
- package/tokens/_primitives.scss +82 -0
- package/tokens/_semantic-aliases.scss +120 -0
- package/tokens/_spacing-tokens.scss +94 -94
- package/vendors/angular-editor.scss +56 -56
- package/vendors/angular-material-fixes.scss +297 -297
- package/vendors/charts.scss +92 -92
- package/vendors/ng5-slider.scss +56 -56
- package/vendors/ngx-material-timepicker.scss +50 -50
- package/components/matcha-uploader.scss +0 -215
- package/fonts/CircularStd-Black.eot +0 -0
- package/fonts/CircularStd-Black.svg +0 -3426
- package/fonts/CircularStd-Black.ttf +0 -0
- package/fonts/CircularStd-Black.woff +0 -0
- package/fonts/CircularStd-Black.woff2 +0 -0
- package/fonts/CircularStd-Bold.eot +0 -0
- package/fonts/CircularStd-Bold.otf +0 -0
- package/fonts/CircularStd-Bold.svg +0 -13532
- package/fonts/CircularStd-Bold.ttf +0 -0
- package/fonts/CircularStd-Bold.woff +0 -0
- package/fonts/CircularStd-Bold.woff2 +0 -0
- package/fonts/CircularStd-Medium.eot +0 -0
- package/fonts/CircularStd-Medium.otf +0 -0
- package/fonts/CircularStd-Medium.svg +0 -13511
- package/fonts/CircularStd-Medium.ttf +0 -0
- package/fonts/CircularStd-Medium.woff +0 -0
- package/fonts/CircularStd-Medium.woff2 +0 -0
- package/fonts/CircularStd-Regular.eot +0 -0
- package/fonts/CircularStd-Regular.otf +0 -0
- package/fonts/CircularStd-Regular.svg +0 -2378
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/fonts/CircularStd-Regular.woff2 +0 -0
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
// =============================================================================
|
|
4
4
|
// matcha-snack-bar.scss — Snack Bar / Toast (floating feedback)
|
|
5
|
-
//
|
|
6
|
-
// Status(5: Erro
|
|
7
|
-
//
|
|
8
|
-
//
|
|
5
|
+
// 1:1 com Figma DSV3 `matcha/snackbar` (5902:13641):
|
|
6
|
+
// Status (5): Erro · Alerta · Sucesso · Ideia · Neutro
|
|
7
|
+
// Estrutura single-row 68h: Icon + Body(Title + Description) + CTA + Close
|
|
8
|
+
// pad 12/16, gap 12; border-left 4px status color; bg surface-card sólido.
|
|
9
9
|
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
10
|
+
// Buttons internos = canon DSV3:
|
|
11
|
+
// - Action: <button matcha-button variant="outline" size="sm"> → estilo vem do matcha-buttons.scss
|
|
12
|
+
// - Close: <button matcha-icon-button variant="ghost" size="sm"> → idem
|
|
13
|
+
// Por isso este arquivo NÃO duplica width/height/border/states pros buttons —
|
|
14
|
+
// só faz flex-shrink: 0 pra não esticar.
|
|
15
|
+
//
|
|
16
|
+
// vs Notification: Notification = in-page (bg alpha, sem shadow); Snackbar = floating
|
|
17
|
+
// (bg sólido, shadow level-3, position fixed).
|
|
13
18
|
// =============================================================================
|
|
14
19
|
|
|
15
20
|
// ── Structural ──────────────────────────────────────────────────────────────
|
|
@@ -19,41 +24,50 @@ matcha-snack-bar {
|
|
|
19
24
|
z-index: var(--matcha-z-snackbar, 9999);
|
|
20
25
|
right: var(--matcha-space-300, 24px);
|
|
21
26
|
top: var(--matcha-space-300, 24px);
|
|
22
|
-
|
|
27
|
+
// Enter animation: slide + scale-in + fade (canon Material 3 emphasized).
|
|
28
|
+
// Mais natural que slide-only — sinaliza "entrou no plano" sem ser distrativo.
|
|
29
|
+
transform: translateY(-8px) scale(0.96);
|
|
23
30
|
opacity: 0;
|
|
24
31
|
pointer-events: none;
|
|
25
32
|
transition:
|
|
26
|
-
opacity var(--matcha-duration-moderate, 300ms)
|
|
27
|
-
transform var(--matcha-duration-moderate, 300ms)
|
|
33
|
+
opacity var(--matcha-duration-moderate, 300ms) var(--matcha-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)),
|
|
34
|
+
transform var(--matcha-duration-moderate, 300ms) var(--matcha-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));
|
|
28
35
|
min-width: var(--matcha-snackbar-min-width, 360px);
|
|
29
36
|
max-width: var(--matcha-snackbar-max-width, 520px);
|
|
37
|
+
touch-action: pan-y; // permite swipe horizontal pra dismiss
|
|
30
38
|
|
|
31
39
|
// ── Position variants ──
|
|
32
40
|
&[position="bottom"] {
|
|
33
41
|
top: auto;
|
|
34
42
|
bottom: var(--matcha-space-300, 24px);
|
|
43
|
+
transform: translateY(8px) scale(0.96);
|
|
35
44
|
}
|
|
36
45
|
|
|
37
46
|
&[position="center"] {
|
|
38
47
|
right: auto;
|
|
39
48
|
left: 50%;
|
|
40
|
-
transform: translateX(-50%) translateY(-
|
|
49
|
+
transform: translateX(-50%) translateY(-8px) scale(0.96);
|
|
41
50
|
}
|
|
42
51
|
|
|
43
52
|
// ── Visible state ──
|
|
44
53
|
&.matcha-snack-bar-visible {
|
|
45
54
|
opacity: 1;
|
|
46
55
|
pointer-events: auto;
|
|
47
|
-
transform:
|
|
56
|
+
transform: translateY(0) scale(1);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&[position="bottom"].matcha-snack-bar-visible {
|
|
60
|
+
transform: translateY(0) scale(1);
|
|
48
61
|
}
|
|
49
62
|
|
|
50
63
|
&[position="center"].matcha-snack-bar-visible {
|
|
51
|
-
transform: translateX(-50%) translateY(0);
|
|
64
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
52
65
|
}
|
|
53
66
|
}
|
|
54
67
|
|
|
55
|
-
// ── Content container
|
|
56
|
-
|
|
68
|
+
// ── Content container (single-row 68h Figma) ────────────────────────────────
|
|
69
|
+
// Frosted glass: bg semi-transparente + backdrop-filter blur — moderniza sem
|
|
70
|
+
// quebrar a semântica de "não-bloqueante" (blur só atrás do card, não na tela).
|
|
57
71
|
.matcha-snack-bar-content {
|
|
58
72
|
display: flex;
|
|
59
73
|
align-items: center;
|
|
@@ -62,9 +76,16 @@ matcha-snack-bar {
|
|
|
62
76
|
border-radius: var(--matcha-radius-lg, 8px);
|
|
63
77
|
border: var(--matcha-border-hairline, 1px) solid transparent;
|
|
64
78
|
border-left: var(--matcha-border-medium, 4px) solid transparent;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
// min-height = 68 (figma single-row); cresce se body wrappar.
|
|
81
|
+
min-height: calc(var(--matcha-space-500, 40px) + var(--matcha-space-350, 28px));
|
|
82
|
+
// Frosted glass — funciona em Safari/Chrome/Firefox 103+; degrade gracioso
|
|
83
|
+
// (bg sólido sobrescreve no theme mixin via fallback).
|
|
84
|
+
-webkit-backdrop-filter: blur(12px) saturate(140%);
|
|
85
|
+
backdrop-filter: blur(12px) saturate(140%);
|
|
65
86
|
}
|
|
66
87
|
|
|
67
|
-
// ── Icon
|
|
88
|
+
// ── Icon (24×24 outlined leading) ───────────────────────────────────────────
|
|
68
89
|
|
|
69
90
|
.matcha-snack-bar-icon {
|
|
70
91
|
flex-shrink: 0;
|
|
@@ -75,7 +96,7 @@ matcha-snack-bar {
|
|
|
75
96
|
height: var(--matcha-icon-size-md, 24px);
|
|
76
97
|
}
|
|
77
98
|
|
|
78
|
-
// ── Body (Title + Description)
|
|
99
|
+
// ── Body (Title + Description, gap 4) ───────────────────────────────────────
|
|
79
100
|
|
|
80
101
|
.matcha-snack-bar-body {
|
|
81
102
|
flex: 1;
|
|
@@ -99,80 +120,17 @@ matcha-snack-bar {
|
|
|
99
120
|
line-height: var(--matcha-leading-body-md, 20px);
|
|
100
121
|
}
|
|
101
122
|
|
|
102
|
-
// ── CTA
|
|
103
|
-
|
|
123
|
+
// ── CTA Action button — só flex-shrink (estilo vem do matcha-button). ──────
|
|
104
124
|
.matcha-snack-bar-action {
|
|
105
125
|
flex-shrink: 0;
|
|
106
|
-
display: flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
justify-content: center;
|
|
109
|
-
height: 32px;
|
|
110
|
-
padding: 0 var(--matcha-space-100, 8px);
|
|
111
|
-
border: var(--matcha-border-thin, 2px) solid currentColor;
|
|
112
|
-
border-radius: var(--matcha-radius-lg, 8px);
|
|
113
|
-
background: transparent;
|
|
114
|
-
font-family: var(--matcha-font-family);
|
|
115
|
-
font-size: var(--matcha-text-button-sm, 13px);
|
|
116
|
-
font-weight: var(--matcha-weight-medium, 500);
|
|
117
|
-
letter-spacing: 0.2px;
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
color: inherit;
|
|
120
|
-
position: relative;
|
|
121
|
-
overflow: hidden;
|
|
122
|
-
|
|
123
|
-
// State layer
|
|
124
|
-
&::before {
|
|
125
|
-
content: '';
|
|
126
|
-
position: absolute;
|
|
127
|
-
inset: 0;
|
|
128
|
-
background: currentColor;
|
|
129
|
-
opacity: 0;
|
|
130
|
-
border-radius: inherit;
|
|
131
|
-
pointer-events: none;
|
|
132
|
-
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
133
|
-
}
|
|
134
|
-
&:hover:not([disabled])::before { opacity: var(--matcha-state-hover, 0.08); }
|
|
135
|
-
&:active:not([disabled])::before { opacity: var(--matcha-state-active, 0.12); }
|
|
136
126
|
}
|
|
137
127
|
|
|
138
|
-
// ── Close button
|
|
139
|
-
|
|
128
|
+
// ── Close icon-button — só flex-shrink (estilo vem do matcha-icon-button). ─
|
|
140
129
|
.matcha-snack-bar-close {
|
|
141
130
|
flex-shrink: 0;
|
|
142
|
-
display: flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
width: 32px;
|
|
146
|
-
height: 32px;
|
|
147
|
-
background: none;
|
|
148
|
-
border: none;
|
|
149
|
-
cursor: pointer;
|
|
150
|
-
padding: 0;
|
|
151
|
-
border-radius: var(--matcha-radius-pill, 9999px);
|
|
152
|
-
color: inherit;
|
|
153
|
-
opacity: 0.7;
|
|
154
|
-
position: relative;
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
157
|
-
|
|
158
|
-
// State layer
|
|
159
|
-
&::before {
|
|
160
|
-
content: '';
|
|
161
|
-
position: absolute;
|
|
162
|
-
inset: 0;
|
|
163
|
-
background: currentColor;
|
|
164
|
-
opacity: 0;
|
|
165
|
-
border-radius: inherit;
|
|
166
|
-
pointer-events: none;
|
|
167
|
-
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
168
|
-
}
|
|
169
|
-
&:hover:not([disabled])::before { opacity: var(--matcha-state-hover, 0.08); }
|
|
170
|
-
&:active:not([disabled])::before { opacity: var(--matcha-state-active, 0.12); }
|
|
171
|
-
&:hover { opacity: 1; }
|
|
172
131
|
}
|
|
173
132
|
|
|
174
|
-
// ── Responsive
|
|
175
|
-
|
|
133
|
+
// ── Responsive (mobile: stretch full-width) ────────────────────────────────
|
|
176
134
|
@include media-breakpoint('xs') {
|
|
177
135
|
matcha-snack-bar {
|
|
178
136
|
left: var(--matcha-space-200, 16px);
|
|
@@ -183,84 +141,118 @@ matcha-snack-bar {
|
|
|
183
141
|
}
|
|
184
142
|
|
|
185
143
|
// ── Reduced motion ──────────────────────────────────────────────────────────
|
|
186
|
-
|
|
187
144
|
@media (prefers-reduced-motion: reduce) {
|
|
188
|
-
matcha-snack-bar
|
|
189
|
-
.matcha-snack-bar-close::before,
|
|
190
|
-
.matcha-snack-bar-action::before {
|
|
145
|
+
matcha-snack-bar {
|
|
191
146
|
transition: none;
|
|
192
147
|
}
|
|
193
148
|
}
|
|
194
149
|
|
|
195
150
|
// =============================================================================
|
|
196
|
-
// Theme mixin
|
|
151
|
+
// Theme mixin — status colors via [color] attr
|
|
197
152
|
// =============================================================================
|
|
198
153
|
|
|
199
154
|
@mixin matcha-snack-bar-theme($theme) {
|
|
200
|
-
$is-dark: map.get($theme, is-dark);
|
|
201
155
|
|
|
202
156
|
matcha-snack-bar {
|
|
203
157
|
|
|
204
|
-
// ──
|
|
205
|
-
|
|
206
|
-
.
|
|
207
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent, #{getAccent($theme)});
|
|
208
|
-
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// ── Base (no status) ──
|
|
158
|
+
// ── Base (neutral / no specific status) ──
|
|
159
|
+
// Bg semi-transparente pro frosted glass (backdrop-filter) ter o que blurrar.
|
|
160
|
+
// Fallback sólido em browsers sem suporte (degrade gracioso via @supports).
|
|
212
161
|
.matcha-snack-bar-content {
|
|
213
|
-
background: var(--matcha-color-surface
|
|
214
|
-
color: var(--matcha-color-fg
|
|
215
|
-
border-color: var(--matcha-color-border
|
|
216
|
-
box-shadow: var(--matcha-shadow-3
|
|
162
|
+
background: var(--matcha-color-surface-card-alpha);
|
|
163
|
+
color: var(--matcha-color-fg);
|
|
164
|
+
border-color: var(--matcha-color-border);
|
|
165
|
+
box-shadow: var(--matcha-shadow-3);
|
|
217
166
|
}
|
|
218
167
|
|
|
219
|
-
.
|
|
220
|
-
|
|
168
|
+
// Fallback sólido pra browsers sem backdrop-filter.
|
|
169
|
+
@supports not (backdrop-filter: blur(1px)) {
|
|
170
|
+
.matcha-snack-bar-content {
|
|
171
|
+
background: var(--matcha-color-surface);
|
|
172
|
+
}
|
|
221
173
|
}
|
|
222
174
|
|
|
223
|
-
.matcha-snack-bar-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
//
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
175
|
+
.matcha-snack-bar-title { color: var(--matcha-color-fg); }
|
|
176
|
+
.matcha-snack-bar-description { color: var(--matcha-color-text-label); }
|
|
177
|
+
|
|
178
|
+
// ── Status — canon DSV3 (mesmo pattern do matcha-notification):
|
|
179
|
+
// 1. `border-left-color` → cor do status na borda esquerda
|
|
180
|
+
// 2. `--matcha-icon-color` → matcha-icon herda via custom property
|
|
181
|
+
// 3. `--matcha-button-color-*` no .matcha-snack-bar-action → matcha-button
|
|
182
|
+
// (Outline SM) renderiza com border/text/state-layer todos na status color
|
|
183
|
+
//
|
|
184
|
+
// Reforça semantic: icon + border-left + CTA = mesma cor.
|
|
185
|
+
|
|
186
|
+
&[color="error"] .matcha-snack-bar-content,
|
|
187
|
+
&[color="danger"] .matcha-snack-bar-content {
|
|
188
|
+
border-left-color: var(--matcha-color-danger);
|
|
189
|
+
--matcha-icon-color: var(--matcha-color-danger);
|
|
190
|
+
|
|
191
|
+
.matcha-snack-bar-action {
|
|
192
|
+
--matcha-button-color: var(--matcha-color-danger);
|
|
193
|
+
--matcha-button-color-hover: var(--matcha-color-danger-hover);
|
|
194
|
+
--matcha-button-color-pressed: var(--matcha-color-danger-pressed);
|
|
195
|
+
--matcha-button-color-text-on: var(--matcha-color-danger-contrast);
|
|
196
|
+
--matcha-button-color-alpha: var(--matcha-color-danger-alpha);
|
|
197
|
+
--matcha-button-color-edge: var(--matcha-color-danger);
|
|
198
|
+
color: var(--matcha-color-danger);
|
|
199
|
+
}
|
|
235
200
|
}
|
|
236
201
|
|
|
237
202
|
&[color="warning"] .matcha-snack-bar-content,
|
|
238
|
-
&[color="warn"]
|
|
239
|
-
border-left-color: var(--matcha-color-warn
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.matcha-snack-bar-action {
|
|
203
|
+
&[color="warn"] .matcha-snack-bar-content {
|
|
204
|
+
border-left-color: var(--matcha-color-warn);
|
|
205
|
+
--matcha-icon-color: var(--matcha-color-warn);
|
|
206
|
+
|
|
207
|
+
.matcha-snack-bar-action {
|
|
208
|
+
--matcha-button-color: var(--matcha-color-warn);
|
|
209
|
+
--matcha-button-color-hover: var(--matcha-color-warn-hover);
|
|
210
|
+
--matcha-button-color-pressed: var(--matcha-color-warn-pressed);
|
|
211
|
+
--matcha-button-color-text-on: var(--matcha-color-warn-contrast);
|
|
212
|
+
--matcha-button-color-alpha: var(--matcha-color-warn-alpha);
|
|
213
|
+
--matcha-button-color-edge: var(--matcha-color-warn);
|
|
214
|
+
color: var(--matcha-color-warn);
|
|
215
|
+
}
|
|
243
216
|
}
|
|
244
217
|
|
|
245
218
|
&[color="success"] .matcha-snack-bar-content {
|
|
246
|
-
border-left-color: var(--matcha-color-success
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
.matcha-snack-bar-action {
|
|
219
|
+
border-left-color: var(--matcha-color-success);
|
|
220
|
+
--matcha-icon-color: var(--matcha-color-success);
|
|
221
|
+
|
|
222
|
+
.matcha-snack-bar-action {
|
|
223
|
+
--matcha-button-color: var(--matcha-color-success);
|
|
224
|
+
--matcha-button-color-hover: var(--matcha-color-success-hover);
|
|
225
|
+
--matcha-button-color-pressed: var(--matcha-color-success-pressed);
|
|
226
|
+
--matcha-button-color-text-on: var(--matcha-color-success-contrast);
|
|
227
|
+
--matcha-button-color-alpha: var(--matcha-color-success-alpha);
|
|
228
|
+
--matcha-button-color-edge: var(--matcha-color-success);
|
|
229
|
+
color: var(--matcha-color-success);
|
|
230
|
+
}
|
|
250
231
|
}
|
|
251
232
|
|
|
252
233
|
&[color="info"] .matcha-snack-bar-content {
|
|
253
|
-
border-left-color: var(--matcha-color-info
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
.matcha-snack-bar-action {
|
|
234
|
+
border-left-color: var(--matcha-color-info);
|
|
235
|
+
--matcha-icon-color: var(--matcha-color-info);
|
|
236
|
+
|
|
237
|
+
.matcha-snack-bar-action {
|
|
238
|
+
--matcha-button-color: var(--matcha-color-info);
|
|
239
|
+
--matcha-button-color-hover: var(--matcha-color-info-hover);
|
|
240
|
+
--matcha-button-color-pressed: var(--matcha-color-info-pressed);
|
|
241
|
+
--matcha-button-color-text-on: var(--matcha-color-info-contrast);
|
|
242
|
+
--matcha-button-color-alpha: var(--matcha-color-info-alpha);
|
|
243
|
+
--matcha-button-color-edge: var(--matcha-color-info);
|
|
244
|
+
color: var(--matcha-color-info);
|
|
245
|
+
}
|
|
257
246
|
}
|
|
258
247
|
|
|
248
|
+
// Neutro — bg/border surface; icon + CTA mantêm cor padrão (não-status).
|
|
259
249
|
&[color="neutral"] .matcha-snack-bar-content {
|
|
260
|
-
border-left-color: var(--matcha-color-border
|
|
250
|
+
border-left-color: var(--matcha-color-surface-border);
|
|
251
|
+
--matcha-icon-color: var(--matcha-color-icon-default);
|
|
261
252
|
|
|
262
|
-
.matcha-snack-bar-
|
|
263
|
-
|
|
253
|
+
.matcha-snack-bar-action {
|
|
254
|
+
color: var(--matcha-color-text-label);
|
|
255
|
+
}
|
|
264
256
|
}
|
|
265
257
|
}
|
|
266
258
|
}
|
|
@@ -39,141 +39,50 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
@mixin matcha-spin($theme) {
|
|
42
|
-
$is-dark: map.get($theme, is-dark);
|
|
43
42
|
|
|
44
43
|
matcha-spin:not([color]) .spin-progress {
|
|
45
|
-
stroke: var(--matcha-color-accent
|
|
44
|
+
stroke: var(--matcha-color-accent);
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
matcha-spin {
|
|
49
48
|
|
|
50
|
-
//
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// Pink
|
|
56
|
-
&[color="pink"] .spin-progress {
|
|
57
|
-
stroke: getPink($theme);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Purple
|
|
61
|
-
&[color="purple"] .spin-progress {
|
|
62
|
-
stroke: getPurple($theme);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Deep Purple
|
|
66
|
-
&[color="deep-purple"] .spin-progress {
|
|
67
|
-
stroke: getDeepPurple($theme);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Indigo
|
|
71
|
-
&[color="indigo"] .spin-progress {
|
|
72
|
-
stroke: getIndigo($theme);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Blue
|
|
76
|
-
&[color="blue"] .spin-progress {
|
|
77
|
-
stroke: getBlue($theme);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Light Blue
|
|
81
|
-
&[color="light-blue"] .spin-progress {
|
|
82
|
-
stroke: getLightBlue($theme);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Cyan
|
|
86
|
-
&[color="cyan"] .spin-progress {
|
|
87
|
-
stroke: getCyan($theme);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Teal
|
|
91
|
-
&[color="teal"] .spin-progress {
|
|
92
|
-
stroke: getTeal($theme);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Green
|
|
96
|
-
&[color="green"] .spin-progress {
|
|
97
|
-
stroke: getGreen($theme);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Light Green
|
|
101
|
-
&[color="light-green"] .spin-progress {
|
|
102
|
-
stroke: getLightGreen($theme);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Lime
|
|
106
|
-
&[color="lime"] .spin-progress {
|
|
107
|
-
stroke: getLime($theme);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Yellow
|
|
111
|
-
&[color="yellow"] .spin-progress {
|
|
112
|
-
stroke: getYellow($theme);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Amber
|
|
116
|
-
&[color="amber"] .spin-progress {
|
|
117
|
-
stroke: getAmber($theme);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Orange
|
|
121
|
-
&[color="orange"] .spin-progress {
|
|
122
|
-
stroke: getOrange($theme);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Deep Orange
|
|
126
|
-
&[color="deep-orange"] .spin-progress {
|
|
127
|
-
stroke: getDeepOrange($theme);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Brown
|
|
131
|
-
&[color="brown"] .spin-progress {
|
|
132
|
-
stroke: getBrown($theme);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// Grey
|
|
136
|
-
&[color="grey"] .spin-progress {
|
|
137
|
-
stroke: getGrey($theme);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Blue Grey
|
|
141
|
-
&[color="blue-grey"] .spin-progress {
|
|
142
|
-
stroke: getBlueGrey($theme);
|
|
143
|
-
}
|
|
49
|
+
// Cores nomeadas de paleta (red/pink/blue/… 19 famílias) DEPRECADAS na migração
|
|
50
|
+
// runtime-theming (2026-06-19): sem uso real (só doc auto-gerada). Use as semânticas
|
|
51
|
+
// abaixo (primary/accent/feedback). Remove a dependência dos getters de paleta
|
|
52
|
+
// (getRed…getBlueGrey, shade mode-dependente da paleta Material legada).
|
|
144
53
|
|
|
145
54
|
// Accent
|
|
146
55
|
&[color="accent"] .spin-progress {
|
|
147
|
-
stroke: var(--matcha-color-accent
|
|
56
|
+
stroke: var(--matcha-color-accent);
|
|
148
57
|
}
|
|
149
58
|
|
|
150
59
|
// Primary
|
|
151
60
|
&[color="primary"] .spin-progress {
|
|
152
|
-
stroke: var(--matcha-color-primary
|
|
61
|
+
stroke: var(--matcha-color-primary);
|
|
153
62
|
}
|
|
154
63
|
|
|
155
64
|
// Success
|
|
156
65
|
&[color="success"] .spin-progress {
|
|
157
|
-
stroke: var(--matcha-color-success
|
|
66
|
+
stroke: var(--matcha-color-success);
|
|
158
67
|
}
|
|
159
68
|
|
|
160
69
|
// Warn
|
|
161
70
|
&[color="warn"] .spin-progress {
|
|
162
|
-
stroke: var(--matcha-color-warn
|
|
71
|
+
stroke: var(--matcha-color-warn);
|
|
163
72
|
}
|
|
164
73
|
|
|
165
74
|
// Danger
|
|
166
75
|
&[color="danger"] .spin-progress {
|
|
167
|
-
stroke: var(--matcha-color-danger
|
|
76
|
+
stroke: var(--matcha-color-danger);
|
|
168
77
|
}
|
|
169
78
|
|
|
170
79
|
// Info
|
|
171
80
|
&[color="info"] .spin-progress {
|
|
172
|
-
stroke: var(--matcha-color-info
|
|
81
|
+
stroke: var(--matcha-color-info);
|
|
173
82
|
}
|
|
174
83
|
|
|
175
84
|
.spin-placeholder {
|
|
176
|
-
stroke: var(--matcha-color-disabled
|
|
85
|
+
stroke: var(--matcha-color-disabled);
|
|
177
86
|
}
|
|
178
87
|
|
|
179
88
|
&:not([size]) {
|
|
@@ -1,78 +1,97 @@
|
|
|
1
1
|
// =============================================================================
|
|
2
|
-
// matcha-spinner.scss — Spinner loading indicator
|
|
3
|
-
//
|
|
2
|
+
// matcha-spinner.scss — Spinner loading indicator (1:1 com Figma DSV3)
|
|
3
|
+
// =============================================================================
|
|
4
|
+
// Spec canônica matcha/spinner (DSV3):
|
|
5
|
+
// • Sizes: XS 24/3 · SM 32/4 · MD 40/5 · LG 48/5 · XL 56/5 (px / stroke)
|
|
6
|
+
// • Track (rail): #282C34 (matcha/color/disabled-bg dark)
|
|
7
|
+
// • Arc (indicator): cor semântica do prop [color] — 6 opções DSV3
|
|
8
|
+
//
|
|
9
|
+
// IMPORTANTE: animação de rotação NÃO está aqui — vem via WAAPI no
|
|
10
|
+
// spinner.component.ts (rotação de 360° infinita). Esse arquivo só pinta
|
|
11
|
+
// cores e ajusta o offset do arc determinate.
|
|
4
12
|
// =============================================================================
|
|
5
13
|
|
|
6
|
-
@mixin
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
@mixin matcha-spinner-theme($theme) {
|
|
15
|
+
$semantic-colors: (
|
|
16
|
+
accent: getAccent,
|
|
17
|
+
primary: getPrimary,
|
|
18
|
+
success: getSuccess,
|
|
19
|
+
warn: getWarn,
|
|
20
|
+
danger: getDanger,
|
|
21
|
+
info: getInfo,
|
|
22
|
+
);
|
|
10
23
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
svg { width: px-to-rem(24px); height: px-to-rem(24px); }
|
|
14
|
-
}
|
|
24
|
+
matcha-spinner {
|
|
25
|
+
--matcha-spinner-fill: var(--matcha-color-accent);
|
|
15
26
|
|
|
16
|
-
|
|
17
|
-
&[
|
|
18
|
-
|
|
27
|
+
@each $name, $fn in $semantic-colors {
|
|
28
|
+
&[color="#{$name}"] {
|
|
29
|
+
--matcha-spinner-fill: var(--matcha-color-#{$name}, #{call($fn, $theme)});
|
|
19
30
|
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
20
34
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
.matcha-spinner {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
line-height: 0;
|
|
25
40
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
.spinner-wrapper {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
}
|
|
30
46
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
47
|
+
.spinner {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Determinate: SVG rotacionado -90deg pra arc começar em 12h (default SVG é 3h).
|
|
52
|
+
.spinner--determinate {
|
|
53
|
+
transform: rotate(-90deg);
|
|
36
54
|
}
|
|
37
55
|
|
|
38
|
-
|
|
39
|
-
|
|
56
|
+
.spinner-track {
|
|
57
|
+
stroke: var(--matcha-color-disabled-bg, #282C34);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.spinner-arc {
|
|
61
|
+
stroke: var(--matcha-spinner-fill);
|
|
62
|
+
transition: stroke-dashoffset var(--matcha-duration-fast, 200ms) ease;
|
|
40
63
|
}
|
|
41
64
|
}
|
|
42
65
|
|
|
43
|
-
//
|
|
44
|
-
@
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yellow: getYellow, amber: getAmber, orange: getOrange, deep-orange: getDeepOrange,
|
|
50
|
-
brown: getBrown, grey: getGrey, blue-grey: getBlueGrey,
|
|
51
|
-
primary: getPrimary, accent: getAccent, success: getSuccess,
|
|
52
|
-
warn: getWarn, danger: getDanger, info: getInfo,
|
|
53
|
-
);
|
|
66
|
+
// ── High contrast ──────────────────────────────────────────────────────────
|
|
67
|
+
@media (prefers-contrast: high) {
|
|
68
|
+
.matcha-spinner .spinner-track {
|
|
69
|
+
stroke: var(--matcha-color-text-secondary, #888);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
54
72
|
|
|
55
|
-
|
|
56
|
-
|
|
73
|
+
// ── Forced colors (Windows High Contrast) ──
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
.matcha-spinner {
|
|
76
|
+
.spinner-track { stroke: GrayText !important; }
|
|
77
|
+
.spinner-circle { stroke: CanvasText !important; }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
57
80
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
81
|
+
// ── Reduced motion ──
|
|
82
|
+
@media (prefers-reduced-motion: reduce) {
|
|
83
|
+
.matcha-spinner {
|
|
84
|
+
animation: none !important;
|
|
65
85
|
|
|
66
|
-
|
|
67
|
-
svg circle {
|
|
68
|
-
stroke: var(--matcha-color-accent, #{getAccent($theme)});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
86
|
+
.spinner-circle { animation: none !important; }
|
|
71
87
|
}
|
|
88
|
+
}
|
|
72
89
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
90
|
+
// ── Print ──
|
|
91
|
+
// Spinner é loading — não tem semântica em papel.
|
|
92
|
+
@media print {
|
|
93
|
+
matcha-spinner,
|
|
94
|
+
.matcha-spinner {
|
|
95
|
+
display: none !important;
|
|
77
96
|
}
|
|
78
97
|
}
|