@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
|
@@ -1,212 +1,297 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
// =============================================================================
|
|
4
|
-
// matcha-chip.scss —
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
background:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
pointer
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
//
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
// =============================================================================
|
|
4
|
+
// matcha-chip.scss — Figma DSV3 matcha/chip (14567:467)
|
|
5
|
+
// 1:1 com spec: 36×* pill, 2px border, gap 8, padding 8/12.
|
|
6
|
+
// 8 variants visuais (Selected × State) implementados via attr/pseudo.
|
|
7
|
+
// =============================================================================
|
|
8
|
+
|
|
9
|
+
// ── Structural + canônico Figma (fora do mixin de tema) ────────────────────
|
|
10
|
+
|
|
11
|
+
matcha-chip {
|
|
12
|
+
// Layout
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--matcha-space-100, 8px);
|
|
18
|
+
padding: var(--matcha-space-100, 8px) var(--matcha-space-150, 12px);
|
|
19
|
+
|
|
20
|
+
// Tipografia — Figma matcha/text/label-md (14/500/20)
|
|
21
|
+
font-family: var(--matcha-font-family, 'Manrope', sans-serif);
|
|
22
|
+
font-size: var(--matcha-text-label-md, 14px);
|
|
23
|
+
font-weight: var(--matcha-weight-medium, 500);
|
|
24
|
+
line-height: var(--matcha-leading-label-md, 20px);
|
|
25
|
+
|
|
26
|
+
// Box — Off Default
|
|
27
|
+
// Slots: --matcha-chip-border, --matcha-chip-bg, --matcha-chip-text
|
|
28
|
+
// permitem consumer override (cascade-friendly) sem specificity battle.
|
|
29
|
+
border: var(--matcha-border-thin, 2px) solid var(--matcha-chip-border, var(--matcha-color-text-hint, #9AA0A6));
|
|
30
|
+
border-radius: var(--matcha-radius-pill, 9999px);
|
|
31
|
+
background: var(--matcha-chip-bg, transparent);
|
|
32
|
+
color: var(--matcha-chip-text, var(--matcha-color-text-primary, #E8EAED));
|
|
33
|
+
|
|
34
|
+
// Comportamento (decorativo por padrão — sem cursor pointer, sem hover)
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
user-select: none;
|
|
37
|
+
cursor: default;
|
|
38
|
+
outline: none;
|
|
39
|
+
position: relative;
|
|
40
|
+
transition:
|
|
41
|
+
border-color var(--matcha-duration-instant, 80ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
42
|
+
background var(--matcha-duration-instant, 80ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
43
|
+
box-shadow var(--matcha-duration-instant, 80ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1));
|
|
44
|
+
|
|
45
|
+
// ── Interactive (clicável) — cursor pointer + hover/focus effects ──
|
|
46
|
+
&[interactive]:not([disabled]):not(.matcha-chip-disabled) {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
|
|
49
|
+
// Off interactive — Hover (bg accent-alpha 10% + shadow-1) ──
|
|
50
|
+
&:not([selected]):hover {
|
|
51
|
+
background: var(--matcha-color-accent-alpha, rgba(168, 217, 78, 0.1));
|
|
52
|
+
box-shadow: var(--matcha-shadow-1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Off interactive — Focus (border vira primary) ──
|
|
56
|
+
&:not([selected]):focus-visible,
|
|
57
|
+
&:not([selected]):has(:focus-visible) {
|
|
58
|
+
border-color: var(--matcha-color-primary, #64B5F6);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ── Selected (On) — bg + border accent, texto preto ──
|
|
63
|
+
&[selected] {
|
|
64
|
+
background: var(--matcha-color-accent, #A8D94E);
|
|
65
|
+
border-color: var(--matcha-color-accent, #A8D94E);
|
|
66
|
+
color: var(--matcha-color-accent-contrast, rgba(0, 0, 0, 0.87));
|
|
67
|
+
|
|
68
|
+
// On interactive — Hover (overlay rgba(0,0,0,0.2) sobre accent) ──
|
|
69
|
+
&[interactive]:not([disabled]):not(.matcha-chip-disabled):hover {
|
|
70
|
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
|
|
71
|
+
var(--matcha-color-accent, #A8D94E);
|
|
72
|
+
box-shadow: var(--matcha-shadow-1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// On interactive — Focus (border vira primary, bg permanece accent) ──
|
|
76
|
+
&[interactive]:not([disabled]):not(.matcha-chip-disabled):focus-visible,
|
|
77
|
+
&[interactive]:not([disabled]):not(.matcha-chip-disabled):has(:focus-visible) {
|
|
78
|
+
border-color: var(--matcha-color-primary, #64B5F6);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// ── Disabled (Off) — opacity 0.4 (token) + border disabled-bg + texto disabled-fg ──
|
|
83
|
+
&[disabled],
|
|
84
|
+
&.matcha-chip-disabled {
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
cursor: default;
|
|
87
|
+
opacity: var(--matcha-opacity-disabled, 0.4);
|
|
88
|
+
border-color: var(--matcha-color-interaction-disabled-bg, #282C34);
|
|
89
|
+
color: var(--matcha-color-interaction-disabled-fg, rgba(232, 234, 237, 0.38));
|
|
90
|
+
|
|
91
|
+
// Disabled + Selected — mantém bg accent, opacity faz o resto
|
|
92
|
+
&[selected] {
|
|
93
|
+
background: var(--matcha-color-accent, #A8D94E);
|
|
94
|
+
border-color: var(--matcha-color-accent, #A8D94E);
|
|
95
|
+
color: var(--matcha-color-interaction-disabled-fg, rgba(232, 234, 237, 0.38));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (prefers-reduced-motion: reduce) {
|
|
100
|
+
transition: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// ── Leading icon — 18×18 cinza Off / preto On / disabled-fg Disabled ────────
|
|
105
|
+
.matcha-chip-leading {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
width: 18px;
|
|
111
|
+
height: 18px;
|
|
112
|
+
color: var(--matcha-color-text-hint, #9AA0A6); // Off Default
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
matcha-chip[selected] .matcha-chip-leading {
|
|
116
|
+
color: var(--matcha-color-accent-contrast, rgba(0, 0, 0, 0.87));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
matcha-chip[disabled] .matcha-chip-leading,
|
|
120
|
+
matcha-chip.matcha-chip-disabled .matcha-chip-leading {
|
|
121
|
+
color: var(--matcha-color-interaction-disabled-fg, rgba(232, 234, 237, 0.38));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// ── Force matcha-icon dentro do chip a herdar a cor do parent ───────────
|
|
125
|
+
// O theme global do matcha-icon aplica color: var(--matcha-color-icon-default)
|
|
126
|
+
// que sobrescreve inherit. Aqui aumentamos especificidade pra herdar.
|
|
127
|
+
matcha-chip .matcha-chip-leading matcha-icon,
|
|
128
|
+
matcha-chip .matcha-chip-leading [class*=" i-matcha-"],
|
|
129
|
+
matcha-chip .matcha-chip-remove matcha-icon,
|
|
130
|
+
matcha-chip .matcha-chip-remove [class*=" i-matcha-"] {
|
|
131
|
+
color: inherit;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// ── Content (label) — herda color do parent matcha-chip ─────────────────────
|
|
135
|
+
.matcha-chip-content {
|
|
136
|
+
display: inline-flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
text-overflow: ellipsis;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// ── Divider 1×18 — usa currentColor com opacity baixa pra seguir o contraste
|
|
143
|
+
// do chip em qualquer estado (Off=text-primary 24%, On=accent-contrast 24%).
|
|
144
|
+
// Figma spec textual diz "surface/border" mas isso fica invisível no
|
|
145
|
+
// selected (fundo claro). currentColor opaco resolve sem divergir do intent.
|
|
146
|
+
.matcha-chip-divider {
|
|
147
|
+
display: inline-block;
|
|
148
|
+
flex-shrink: 0;
|
|
149
|
+
width: 1px;
|
|
150
|
+
height: 18px;
|
|
151
|
+
background: currentColor;
|
|
152
|
+
opacity: 0.24;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// ── Remove button 18×18 — herda color do chip parent ───────────────────────
|
|
156
|
+
// State-layer 12% on hover via background-color (sem ::before pra consistência
|
|
157
|
+
// com chip principal que usa bg específico por estado).
|
|
158
|
+
.matcha-chip-remove {
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
width: 18px;
|
|
164
|
+
height: 18px;
|
|
165
|
+
padding: 0;
|
|
166
|
+
border: none;
|
|
167
|
+
background: transparent;
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
color: inherit;
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
outline: none;
|
|
172
|
+
transition: background-color var(--matcha-duration-instant, 80ms) linear;
|
|
173
|
+
|
|
174
|
+
&:hover:not([disabled]),
|
|
175
|
+
&:focus-visible:not([disabled]) {
|
|
176
|
+
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&[disabled] {
|
|
180
|
+
cursor: default;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@media (prefers-reduced-motion: reduce) {
|
|
184
|
+
transition: none;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// ── Chip list wrapper ──────────────────────────────────────────────────────
|
|
189
|
+
.matcha-chip-list-wrapper {
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-wrap: wrap;
|
|
192
|
+
gap: var(--matcha-space-100, 8px);
|
|
193
|
+
align-items: center;
|
|
194
|
+
|
|
195
|
+
&.matcha-chip-list-vertical {
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: flex-start;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// ============================================================================
|
|
202
|
+
// Theme mixin — extensão Angular (cores semânticas além de accent)
|
|
203
|
+
// Figma DSV3 só especifica accent — primary/success/warn/danger/info são
|
|
204
|
+
// extensão de produto (mesmo pattern do matcha-button).
|
|
205
|
+
// ============================================================================
|
|
206
|
+
|
|
207
|
+
@mixin matcha-chip-theme($theme) {
|
|
208
|
+
$chip-colors: (
|
|
209
|
+
primary: (getPrimary, getPrimaryContrast),
|
|
210
|
+
success: (getSuccess, getSuccessContrast),
|
|
211
|
+
warn: (getWarn, getWarnContrast),
|
|
212
|
+
danger: (getDanger, getDangerContrast),
|
|
213
|
+
info: (getInfo, getInfoContrast),
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
matcha-chip {
|
|
217
|
+
@each $name, $fns in $chip-colors {
|
|
218
|
+
$fn: nth($fns, 1);
|
|
219
|
+
$fnContrast: nth($fns, 2);
|
|
220
|
+
|
|
221
|
+
&[color="#{$name}"] {
|
|
222
|
+
// Off na cor: outline + texto na cor (visualmente quente)
|
|
223
|
+
border-color: call(get-function(#{$fn}), $theme);
|
|
224
|
+
color: call(get-function(#{$fn}), $theme);
|
|
225
|
+
|
|
226
|
+
.matcha-chip-leading {
|
|
227
|
+
color: call(get-function(#{$fn}), $theme);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Selected na cor: filled
|
|
231
|
+
&[selected],
|
|
232
|
+
// Explicit variant=filled — sem precisar [selected] (status estático)
|
|
233
|
+
&[variant="filled"] {
|
|
234
|
+
background-color: call(get-function(#{$fn}), $theme);
|
|
235
|
+
border-color: call(get-function(#{$fn}), $theme);
|
|
236
|
+
color: call(get-function(#{$fnContrast}), $theme);
|
|
237
|
+
|
|
238
|
+
.matcha-chip-leading {
|
|
239
|
+
color: call(get-function(#{$fnContrast}), $theme);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// ── Variant filled-alpha (canon status pill DSV3) ──
|
|
244
|
+
// bg alpha 10% da cor + border transparente + texto cor sólida.
|
|
245
|
+
// Sem precisar [selected]. Usado pra status: Publicado/Rascunho/Arquivado/etc.
|
|
246
|
+
&[variant="filled-alpha"] {
|
|
247
|
+
background-color: var(--matcha-color-feedback-#{$name}-alpha, var(--matcha-color-#{$name}-alpha));
|
|
248
|
+
border-color: transparent;
|
|
249
|
+
color: call(get-function(#{$fn}), $theme);
|
|
250
|
+
|
|
251
|
+
.matcha-chip-leading {
|
|
252
|
+
color: call(get-function(#{$fn}), $theme);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// Chip list disabled (propaga visual)
|
|
260
|
+
.matcha-chip-list-disabled,
|
|
261
|
+
[matcha-chip-list][disabled] {
|
|
262
|
+
pointer-events: none;
|
|
263
|
+
matcha-chip {
|
|
264
|
+
opacity: 0.4;
|
|
265
|
+
border-color: var(--matcha-color-interaction-disabled-bg, #{getDisabled($theme)});
|
|
266
|
+
color: var(--matcha-color-interaction-disabled-fg, #{getDisabledContrast($theme)});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// ── Forced colors ──
|
|
272
|
+
@media (forced-colors: active) {
|
|
273
|
+
matcha-chip {
|
|
274
|
+
border: 1px solid CanvasText !important;
|
|
275
|
+
background: Canvas !important;
|
|
276
|
+
color: CanvasText !important;
|
|
277
|
+
|
|
278
|
+
&:focus-visible {
|
|
279
|
+
outline: 2px solid CanvasText !important;
|
|
280
|
+
outline-offset: 2px;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&[disabled],
|
|
284
|
+
&.is-disabled {
|
|
285
|
+
color: GrayText !important;
|
|
286
|
+
border-color: GrayText !important;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// ── Print ──
|
|
292
|
+
@media print {
|
|
293
|
+
matcha-chip {
|
|
294
|
+
border: 1px solid currentColor !important;
|
|
295
|
+
background: transparent !important;
|
|
296
|
+
}
|
|
297
|
+
}
|