@inchurch/matcha-theme 20.0.11 → 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.
- package/abstracts/_colors.scss +404 -404
- package/abstracts/_elevation.scss +102 -102
- package/abstracts/_functions.scss +1212 -1212
- package/abstracts/_media-breakpoint.scss +23 -23
- package/abstracts/_typography.scss +127 -127
- package/base/_reset.scss +438 -438
- package/components/app-page-header.scss +260 -0
- package/components/matcha-accordion.scss +294 -157
- package/components/matcha-avatar.scss +171 -31
- package/components/matcha-badge.scss +4 -4
- package/components/matcha-breadcrumb.scss +232 -126
- package/components/matcha-button-toggle.scss +44 -0
- package/components/matcha-buttons.scss +908 -784
- package/components/matcha-calendar.scss +70 -2
- package/components/matcha-cards.scss +28 -2
- package/components/matcha-checkbox.scss +191 -490
- package/components/matcha-chip.scss +297 -212
- package/components/matcha-command-palette.scss +291 -63
- package/components/matcha-crop.scss +407 -172
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +86 -31
- package/components/matcha-drawer.scss +201 -50
- package/components/matcha-drop-image.scss +14 -0
- package/components/matcha-drop-list.scss +42 -1
- package/components/matcha-empty-state.scss +195 -83
- package/components/matcha-flag.scss +93 -52
- package/components/matcha-footer.scss +68 -164
- package/components/matcha-form-field.scss +52 -0
- package/components/matcha-form-section.scss +101 -101
- package/components/matcha-header.scss +135 -325
- package/components/matcha-highlight.scss +65 -197
- package/components/matcha-hint-text.scss +21 -0
- package/components/matcha-horizontal-tree.scss +317 -317
- package/components/matcha-icon.scss +17 -25
- package/components/matcha-list.scss +5 -5
- package/components/matcha-menu.scss +13 -0
- package/components/matcha-modal.scss +58 -84
- package/components/matcha-nav.scss +361 -230
- package/components/matcha-notification.scss +413 -197
- package/components/matcha-option.scss +79 -23
- package/components/matcha-paginator.scss +689 -235
- package/components/matcha-panel.scss +42 -26
- 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-scrollbox-shadow.scss +122 -122
- package/components/matcha-select.scss +3 -3
- package/components/matcha-skeleton.scss +18 -0
- package/components/matcha-slide-toggle.scss +47 -2
- package/components/matcha-slider.scss +172 -75
- package/components/matcha-snack-bar.scss +114 -121
- package/components/matcha-spinner.scss +76 -57
- package/components/matcha-status-pill.scss +82 -0
- package/components/matcha-stepper.scss +377 -177
- package/components/matcha-table.scss +569 -785
- package/components/matcha-tabs.scss +624 -469
- package/components/matcha-toolbar.scss +359 -206
- package/components/matcha-tooltip.scss +156 -62
- package/components/matcha-tree-view.scss +189 -0
- package/components/matcha-uploader.scss +240 -62
- 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 +232 -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 +1152 -1152
- package/tokens/_css-custom-properties.scss +650 -568
- 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/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,17 +141,14 @@ 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) {
|
|
@@ -201,66 +156,104 @@ matcha-snack-bar {
|
|
|
201
156
|
|
|
202
157
|
matcha-snack-bar {
|
|
203
158
|
|
|
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) ──
|
|
159
|
+
// ── Base (neutral / no specific status) ──
|
|
160
|
+
// Bg semi-transparente pro frosted glass (backdrop-filter) ter o que blurrar.
|
|
161
|
+
// Fallback sólido em browsers sem suporte (degrade gracioso via @supports).
|
|
212
162
|
.matcha-snack-bar-content {
|
|
213
|
-
background: var(--matcha-color-surface, #{
|
|
163
|
+
background: var(--matcha-color-surface-card-alpha, #{rgba(if($is-dark, #1C1F26, #FFFFFF), 0.82)});
|
|
214
164
|
color: var(--matcha-color-fg, #{getForeground($theme)});
|
|
215
165
|
border-color: var(--matcha-color-border, #{getGrey($theme)});
|
|
216
166
|
box-shadow: var(--matcha-shadow-3, #{if($is-dark, $shadow-3-dark, $shadow-3-light)});
|
|
217
167
|
}
|
|
218
168
|
|
|
219
|
-
.
|
|
220
|
-
|
|
169
|
+
// Fallback sólido pra browsers sem backdrop-filter.
|
|
170
|
+
@supports not (backdrop-filter: blur(1px)) {
|
|
171
|
+
.matcha-snack-bar-content {
|
|
172
|
+
background: var(--matcha-color-surface, #{getSurface($theme)});
|
|
173
|
+
}
|
|
221
174
|
}
|
|
222
175
|
|
|
223
|
-
.matcha-snack-bar-
|
|
224
|
-
|
|
225
|
-
}
|
|
176
|
+
.matcha-snack-bar-title { color: var(--matcha-color-fg, #{getForeground($theme)}); }
|
|
177
|
+
.matcha-snack-bar-description { color: var(--matcha-color-text-label, #{getBlueGrey($theme)}); }
|
|
226
178
|
|
|
227
|
-
// ── Status
|
|
179
|
+
// ── Status — canon DSV3 (mesmo pattern do matcha-notification):
|
|
180
|
+
// 1. `border-left-color` → cor do status na borda esquerda
|
|
181
|
+
// 2. `--matcha-icon-color` → matcha-icon herda via custom property
|
|
182
|
+
// 3. `--matcha-button-color-*` no .matcha-snack-bar-action → matcha-button
|
|
183
|
+
// (Outline SM) renderiza com border/text/state-layer todos na status color
|
|
184
|
+
//
|
|
185
|
+
// Reforça semantic: icon + border-left + CTA = mesma cor.
|
|
228
186
|
|
|
229
|
-
&[color="error"]
|
|
230
|
-
&[color="danger"]
|
|
187
|
+
&[color="error"] .matcha-snack-bar-content,
|
|
188
|
+
&[color="danger"] .matcha-snack-bar-content {
|
|
231
189
|
border-left-color: var(--matcha-color-danger, #{getDanger($theme)});
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
.matcha-snack-bar-action {
|
|
190
|
+
--matcha-icon-color: var(--matcha-color-danger, #{getDanger($theme)});
|
|
191
|
+
|
|
192
|
+
.matcha-snack-bar-action {
|
|
193
|
+
--matcha-button-color: var(--matcha-color-danger);
|
|
194
|
+
--matcha-button-color-hover: var(--matcha-color-danger-hover);
|
|
195
|
+
--matcha-button-color-pressed: var(--matcha-color-danger-pressed);
|
|
196
|
+
--matcha-button-color-text-on: var(--matcha-color-danger-contrast);
|
|
197
|
+
--matcha-button-color-alpha: var(--matcha-color-danger-alpha);
|
|
198
|
+
--matcha-button-color-edge: var(--matcha-color-danger);
|
|
199
|
+
color: var(--matcha-color-danger);
|
|
200
|
+
}
|
|
235
201
|
}
|
|
236
202
|
|
|
237
203
|
&[color="warning"] .matcha-snack-bar-content,
|
|
238
|
-
&[color="warn"]
|
|
204
|
+
&[color="warn"] .matcha-snack-bar-content {
|
|
239
205
|
border-left-color: var(--matcha-color-warn, #{getWarn($theme)});
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.matcha-snack-bar-action {
|
|
206
|
+
--matcha-icon-color: var(--matcha-color-warn, #{getWarn($theme)});
|
|
207
|
+
|
|
208
|
+
.matcha-snack-bar-action {
|
|
209
|
+
--matcha-button-color: var(--matcha-color-warn);
|
|
210
|
+
--matcha-button-color-hover: var(--matcha-color-warn-hover);
|
|
211
|
+
--matcha-button-color-pressed: var(--matcha-color-warn-pressed);
|
|
212
|
+
--matcha-button-color-text-on: var(--matcha-color-warn-contrast);
|
|
213
|
+
--matcha-button-color-alpha: var(--matcha-color-warn-alpha);
|
|
214
|
+
--matcha-button-color-edge: var(--matcha-color-warn);
|
|
215
|
+
color: var(--matcha-color-warn);
|
|
216
|
+
}
|
|
243
217
|
}
|
|
244
218
|
|
|
245
219
|
&[color="success"] .matcha-snack-bar-content {
|
|
246
220
|
border-left-color: var(--matcha-color-success, #{getSuccess($theme)});
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
.matcha-snack-bar-action {
|
|
221
|
+
--matcha-icon-color: var(--matcha-color-success, #{getSuccess($theme)});
|
|
222
|
+
|
|
223
|
+
.matcha-snack-bar-action {
|
|
224
|
+
--matcha-button-color: var(--matcha-color-success);
|
|
225
|
+
--matcha-button-color-hover: var(--matcha-color-success-hover);
|
|
226
|
+
--matcha-button-color-pressed: var(--matcha-color-success-pressed);
|
|
227
|
+
--matcha-button-color-text-on: var(--matcha-color-success-contrast);
|
|
228
|
+
--matcha-button-color-alpha: var(--matcha-color-success-alpha);
|
|
229
|
+
--matcha-button-color-edge: var(--matcha-color-success);
|
|
230
|
+
color: var(--matcha-color-success);
|
|
231
|
+
}
|
|
250
232
|
}
|
|
251
233
|
|
|
252
234
|
&[color="info"] .matcha-snack-bar-content {
|
|
253
235
|
border-left-color: var(--matcha-color-info, #{getInfo($theme)});
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
.matcha-snack-bar-action {
|
|
236
|
+
--matcha-icon-color: var(--matcha-color-info, #{getInfo($theme)});
|
|
237
|
+
|
|
238
|
+
.matcha-snack-bar-action {
|
|
239
|
+
--matcha-button-color: var(--matcha-color-info);
|
|
240
|
+
--matcha-button-color-hover: var(--matcha-color-info-hover);
|
|
241
|
+
--matcha-button-color-pressed: var(--matcha-color-info-pressed);
|
|
242
|
+
--matcha-button-color-text-on: var(--matcha-color-info-contrast);
|
|
243
|
+
--matcha-button-color-alpha: var(--matcha-color-info-alpha);
|
|
244
|
+
--matcha-button-color-edge: var(--matcha-color-info);
|
|
245
|
+
color: var(--matcha-color-info);
|
|
246
|
+
}
|
|
257
247
|
}
|
|
258
248
|
|
|
249
|
+
// Neutro — bg/border surface; icon + CTA mantêm cor padrão (não-status).
|
|
259
250
|
&[color="neutral"] .matcha-snack-bar-content {
|
|
260
|
-
border-left-color: var(--matcha-color-border, #{getGrey($theme)});
|
|
251
|
+
border-left-color: var(--matcha-color-surface-border, #{getGrey($theme)});
|
|
252
|
+
--matcha-icon-color: var(--matcha-color-icon-default, #{getBlueGrey($theme)});
|
|
261
253
|
|
|
262
|
-
.matcha-snack-bar-
|
|
263
|
-
|
|
254
|
+
.matcha-snack-bar-action {
|
|
255
|
+
color: var(--matcha-color-text-label);
|
|
256
|
+
}
|
|
264
257
|
}
|
|
265
258
|
}
|
|
266
259
|
}
|
|
@@ -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, #{getAccent($theme)});
|
|
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
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// matcha-status-pill — tons com cor + bg-alpha + halo no dot por estado.
|
|
3
|
+
// Mapeamento Figma DSV3 (matcha/status-pill, fileKey i04CyWczuVctwRjE5VbJh7).
|
|
4
|
+
// =============================================================================
|
|
5
|
+
|
|
6
|
+
matcha-status-pill {
|
|
7
|
+
// ── Active (success) ────────────────────────────────────────────────────
|
|
8
|
+
&[tone="active"] {
|
|
9
|
+
color: var(--matcha-color-success, #16a34a);
|
|
10
|
+
background-color: var(--matcha-color-success-alpha, rgba(22, 163, 74, 0.10));
|
|
11
|
+
border-color: var(--matcha-color-success-alpha, rgba(22, 163, 74, 0.30));
|
|
12
|
+
|
|
13
|
+
.matcha-status-pill__dot {
|
|
14
|
+
background-color: var(--matcha-color-success, #16a34a);
|
|
15
|
+
box-shadow: 0 0 0 3px var(--matcha-color-success-alpha, rgba(22, 163, 74, 0.20));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[interactive]:hover:not([disabled]) {
|
|
19
|
+
background-color: var(--matcha-color-success-alpha, rgba(22, 163, 74, 0.16));
|
|
20
|
+
border-color: var(--matcha-color-success);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// ── Pending (warn) ──────────────────────────────────────────────────────
|
|
25
|
+
&[tone="pending"] {
|
|
26
|
+
color: var(--matcha-color-warn, #f59e0b);
|
|
27
|
+
background-color: var(--matcha-color-warn-alpha, rgba(245, 158, 11, 0.10));
|
|
28
|
+
border-color: var(--matcha-color-warn-alpha, rgba(245, 158, 11, 0.30));
|
|
29
|
+
|
|
30
|
+
.matcha-status-pill__dot {
|
|
31
|
+
background-color: var(--matcha-color-warn, #f59e0b);
|
|
32
|
+
box-shadow: 0 0 0 3px var(--matcha-color-warn-alpha, rgba(245, 158, 11, 0.20));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[interactive]:hover:not([disabled]) {
|
|
36
|
+
background-color: var(--matcha-color-warn-alpha, rgba(245, 158, 11, 0.16));
|
|
37
|
+
border-color: var(--matcha-color-warn);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// ── Refused (danger) ────────────────────────────────────────────────────
|
|
42
|
+
&[tone="refused"] {
|
|
43
|
+
color: var(--matcha-color-danger, #ef4444);
|
|
44
|
+
background-color: var(--matcha-color-danger-alpha, rgba(239, 68, 68, 0.10));
|
|
45
|
+
border-color: var(--matcha-color-danger-alpha, rgba(239, 68, 68, 0.30));
|
|
46
|
+
|
|
47
|
+
.matcha-status-pill__dot {
|
|
48
|
+
background-color: var(--matcha-color-danger, #ef4444);
|
|
49
|
+
box-shadow: 0 0 0 3px var(--matcha-color-danger-alpha, rgba(239, 68, 68, 0.20));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[interactive]:hover:not([disabled]) {
|
|
53
|
+
background-color: var(--matcha-color-danger-alpha, rgba(239, 68, 68, 0.16));
|
|
54
|
+
border-color: var(--matcha-color-danger);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// ── Inactive / Unknown (cinza muted) ────────────────────────────────────
|
|
59
|
+
&[tone="inactive"],
|
|
60
|
+
&[tone="unknown"] {
|
|
61
|
+
color: var(--matcha-color-text-muted, #9ca3af);
|
|
62
|
+
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.04));
|
|
63
|
+
border-color: var(--matcha-color-surface-border, rgba(255, 255, 255, 0.14));
|
|
64
|
+
|
|
65
|
+
.matcha-status-pill__dot {
|
|
66
|
+
background-color: var(--matcha-color-text-muted, #9ca3af);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[interactive]:hover:not([disabled]) {
|
|
70
|
+
background-color: var(--matcha-color-surface-bg);
|
|
71
|
+
border-color: var(--matcha-color-text-muted);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Unknown ainda diferencia com itálico + dot opaco.
|
|
76
|
+
&[tone="unknown"] {
|
|
77
|
+
font-style: italic;
|
|
78
|
+
font-weight: var(--matcha-weight-regular, 400);
|
|
79
|
+
|
|
80
|
+
.matcha-status-pill__dot { opacity: 0.5; }
|
|
81
|
+
}
|
|
82
|
+
}
|