@inchurch/matcha-theme 21.4.0 → 22.1.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 (94) hide show
  1. package/abstracts/_colors.scss +236 -236
  2. package/abstracts/_elevation.scss +108 -108
  3. package/abstracts/_functions.scss +321 -321
  4. package/abstracts/_media-breakpoint.scss +26 -26
  5. package/abstracts/_theme-api.scss +219 -219
  6. package/abstracts/_typography.scss +128 -128
  7. package/base/_reset.scss +446 -445
  8. package/components/app-page-header.scss +260 -260
  9. package/components/matcha-accordion.scss +293 -293
  10. package/components/matcha-audio-player.scss +31 -31
  11. package/components/matcha-autocomplete.scss +145 -145
  12. package/components/matcha-avatar.scss +440 -301
  13. package/components/matcha-badge.scss +120 -120
  14. package/components/matcha-breadcrumb.scss +231 -231
  15. package/components/matcha-button-toggle.scss +383 -384
  16. package/components/matcha-buttons.scss +913 -913
  17. package/components/matcha-calendar.scss +218 -218
  18. package/components/matcha-cards.scss +230 -230
  19. package/components/matcha-chart-card.scss +53 -53
  20. package/components/matcha-checkbox.scss +255 -255
  21. package/components/matcha-chip.scss +292 -292
  22. package/components/matcha-color-pick.scss +34 -34
  23. package/components/matcha-command-palette.scss +316 -316
  24. package/components/matcha-contact.scss +35 -0
  25. package/components/matcha-crop.scss +406 -406
  26. package/components/matcha-date.scss +81 -81
  27. package/components/matcha-divider.scss +100 -100
  28. package/components/matcha-draggable.scss +23 -23
  29. package/components/matcha-drawer.scss +376 -376
  30. package/components/matcha-drop-image.scss +14 -14
  31. package/components/matcha-drop-list.scss +430 -430
  32. package/components/matcha-emoji.scss +69 -69
  33. package/components/matcha-empty-state.scss +230 -230
  34. package/components/matcha-file-uploader.scss +471 -471
  35. package/components/matcha-flag.scss +103 -103
  36. package/components/matcha-footer.scss +91 -91
  37. package/components/matcha-form-field.scss +606 -606
  38. package/components/matcha-form-section.scss +100 -100
  39. package/components/matcha-header.scss +135 -135
  40. package/components/matcha-highlight.scss +164 -164
  41. package/components/matcha-hint-text.scss +90 -90
  42. package/components/matcha-horizontal-tree.scss +316 -316
  43. package/components/matcha-icon.scss +98 -98
  44. package/components/matcha-image.scss +61 -61
  45. package/components/matcha-list.scss +211 -211
  46. package/components/matcha-menu.scss +99 -99
  47. package/components/matcha-modal.scss +210 -210
  48. package/components/matcha-nav.scss +581 -581
  49. package/components/matcha-notification.scss +413 -413
  50. package/components/matcha-option.scss +170 -170
  51. package/components/matcha-page-builder.scss +4196 -4196
  52. package/components/matcha-paginator.scss +689 -689
  53. package/components/matcha-panel.scss +194 -194
  54. package/components/matcha-profile-card.scss +50 -50
  55. package/components/matcha-progress-bar.scss +313 -313
  56. package/components/matcha-radio.scss +320 -320
  57. package/components/matcha-ripple.scss +7 -7
  58. package/components/matcha-scrollbar.scss +33 -33
  59. package/components/matcha-scrollbox-shadow.scss +120 -120
  60. package/components/matcha-section.scss +102 -102
  61. package/components/matcha-select-multiple.scss +56 -56
  62. package/components/matcha-select.scss +667 -667
  63. package/components/matcha-skeleton.scss +155 -155
  64. package/components/matcha-slide-toggle.scss +369 -369
  65. package/components/matcha-slider.scss +285 -285
  66. package/components/matcha-snack-bar.scss +259 -259
  67. package/components/matcha-spin.scss +164 -164
  68. package/components/matcha-spinner.scss +97 -97
  69. package/components/matcha-status-pill.scss +38 -18
  70. package/components/matcha-stepper.scss +376 -376
  71. package/components/matcha-table-cell.scss +49 -41
  72. package/components/matcha-table.scss +579 -579
  73. package/components/matcha-tabs.scss +600 -600
  74. package/components/matcha-text-editor.scss +105 -105
  75. package/components/matcha-time.scss +33 -33
  76. package/components/matcha-timepicker.scss +13 -13
  77. package/components/matcha-toolbar.scss +359 -359
  78. package/components/matcha-tooltip.scss +224 -224
  79. package/components/matcha-tree-view.scss +257 -257
  80. package/layout/matcha-page-layout.scss +778 -778
  81. package/main.scss +331 -329
  82. package/package.json +1 -1
  83. package/tokens/_animations-tokens.scss +37 -37
  84. package/tokens/_breakpoints-tokens.scss +35 -35
  85. package/tokens/_color-tokens.scss +274 -274
  86. package/tokens/_elevation-tokens.scss +33 -33
  87. package/tokens/_emit-tokens.scss +324 -324
  88. package/tokens/_material-palette.scss +1149 -1149
  89. package/tokens/_primitives.scss +98 -98
  90. package/tokens/_semantic-aliases.scss +120 -120
  91. package/tokens/_spacing-tokens.scss +94 -94
  92. package/tokens/_static-tokens.scss +137 -137
  93. package/tokens/_typography-tokens.scss +65 -65
  94. package/vendors/charts.scss +90 -90
@@ -1,224 +1,224 @@
1
- // =============================================================================
2
- // matcha-tooltip.scss — Tooltip with arrow (4 positions + close variant)
3
- // Aligned with Figma DSV3 matcha/tooltip (14846:89): 5 variants
4
- //
5
- // Figma canonical:
6
- // bg = var(--matcha-color-text-primary, #e8eaed) (light em dark theme)
7
- // text = var(--matcha-color-surface-card, #1c1f26) (dark sobre bg light)
8
- // pad = 8 16 (variante close: 8 12 8 16, gap 8)
9
- // radius = 8 (var(--matcha-radius-lg))
10
- // font = Manrope Medium 14/20, letter-spacing 0.2
11
- // arrow = 13.856 × 6 (triângulo, mesma cor do bg)
12
- // =============================================================================
13
-
14
- .matcha-tooltip-content {
15
- position: absolute;
16
- z-index: var(--matcha-z-tooltip, 400);
17
-
18
- padding: var(--matcha-space-100, 8px) var(--matcha-space-200, 16px);
19
- border-radius: var(--matcha-radius-lg, 8px);
20
-
21
- font-family: var(--matcha-font-family, 'Manrope', sans-serif);
22
- font-size: var(--matcha-text-body-md, 14px);
23
- font-weight: var(--matcha-weight-medium, 500);
24
- line-height: var(--matcha-leading-body-md, 20px);
25
- letter-spacing: 0.2px;
26
-
27
- width: auto;
28
- max-width: 500px;
29
- text-overflow: ellipsis;
30
-
31
- display: inline-flex;
32
- align-items: center;
33
- justify-content: center;
34
- gap: var(--matcha-space-100, 8px);
35
- text-align: center;
36
- // Tooltip informativo NÃO captura o ponteiro — clicar "através" dele atinge o
37
- // elemento abaixo (ex.: pills clicáveis do stepper, botões pequenos). Tooltip
38
- // sobrepondo o trigger jamais deve bloquear o clique. Só o variante interativo
39
- // --with-close reativa pointer-events (pra clicar no X / hover-to-stay).
40
- pointer-events: none;
41
-
42
- // Variante com close — gap 8, pr-12 (espaço pro X) + ponteiro ativo (interativa)
43
- &.matcha-tooltip-content--with-close {
44
- padding-right: var(--matcha-space-150, 12px);
45
- pointer-events: auto;
46
- }
47
- }
48
-
49
- // ── Arrow (mesma cor do bg) — 13.856×6 — ::after triangular ────────────────
50
- // Tamanho via border-style: solid trick. base 13.856 ≈ 2×7px borders → border-width
51
- // horizontal ~7, vertical 6. Mantemos arredondado pelo Figma (13.856 × 6).
52
- //
53
- // Posicionamento: arrow normalmente centrada no box (left: 50% ou top: 50%), mas
54
- // quando o tooltip é clamped pela viewport, o directive computa um shift em px
55
- // (--matcha-tooltip-arrow-shift-x / -y) pra arrow re-alinhar com o trigger.
56
- // Default 0px (fallback puro 50% — comportamento padrão sem clamp).
57
- .matcha-tooltip-content_above::after {
58
- content: '';
59
- position: absolute;
60
- width: 0;
61
- height: 0;
62
- border-style: solid;
63
- border-width: 6px 7px 0 7px;
64
- bottom: -6px;
65
- left: calc(50% + var(--matcha-tooltip-arrow-shift-x, 0px));
66
- transform: translateX(-50%);
67
- }
68
-
69
- .matcha-tooltip-content_below::after {
70
- content: '';
71
- position: absolute;
72
- width: 0;
73
- height: 0;
74
- border-style: solid;
75
- border-width: 0 7px 6px 7px;
76
- top: -6px;
77
- left: calc(50% + var(--matcha-tooltip-arrow-shift-x, 0px));
78
- transform: translateX(-50%);
79
- }
80
-
81
- .matcha-tooltip-content_left::after {
82
- content: '';
83
- position: absolute;
84
- width: 0;
85
- height: 0;
86
- border-style: solid;
87
- border-width: 7px 0 7px 6px;
88
- top: calc(50% + var(--matcha-tooltip-arrow-shift-y, 0px));
89
- right: -6px;
90
- transform: translateY(-50%);
91
- }
92
-
93
- .matcha-tooltip-content_right::after {
94
- content: '';
95
- position: absolute;
96
- width: 0;
97
- height: 0;
98
- border-style: solid;
99
- border-width: 7px 6px 7px 0;
100
- top: calc(50% + var(--matcha-tooltip-arrow-shift-y, 0px));
101
- left: -6px;
102
- transform: translateY(-50%);
103
- }
104
-
105
- // ── Close button (16×16 com X via Matcha icon font) ────────────────────────
106
- .matcha-tooltip-close {
107
- appearance: none;
108
- background: transparent;
109
- border: 0;
110
- padding: 0;
111
- margin: 0;
112
- cursor: pointer;
113
- display: inline-flex;
114
- align-items: center;
115
- justify-content: center;
116
- width: 16px;
117
- height: 16px;
118
- flex-shrink: 0;
119
- pointer-events: auto;
120
- transition: opacity var(--matcha-duration-instant, 80ms) ease;
121
-
122
- &::before {
123
- content: "\e92a";
124
- font-family: 'MatchaIcons';
125
- font-size: var(--matcha-icon-size-sm, 16px);
126
- line-height: 16px;
127
- width: 16px;
128
- height: 16px;
129
- display: inline-flex;
130
- align-items: center;
131
- justify-content: center;
132
- }
133
-
134
- &:focus-visible {
135
- outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-primary);
136
- outline-offset: 2px;
137
- border-radius: var(--matcha-radius-sm, 4px);
138
- }
139
- }
140
-
141
- // =============================================================================
142
- // Theme mixin — cores do bg/text/arrow vinculadas ao tema
143
- // =============================================================================
144
- @mixin matcha-tooltip-theme($theme) {
145
- .matcha-tooltip-content {
146
- // Figma: bg = text-primary (light em dark theme), text = surface-card (dark)
147
- background-color: var(--matcha-color-text-primary);
148
- color: var(--matcha-color-surface-card);
149
- box-shadow: var(--matcha-shadow-2, 0 4px 12px rgba(0, 0, 0, 0.18));
150
- }
151
-
152
- // Arrow: mesma cor do bg, lado oposto à direção do tooltip
153
- .matcha-tooltip-content_above::after {
154
- border-color: var(--matcha-color-text-primary)
155
- transparent transparent transparent;
156
- }
157
- .matcha-tooltip-content_below::after {
158
- border-color: transparent transparent
159
- var(--matcha-color-text-primary) transparent;
160
- }
161
- .matcha-tooltip-content_left::after {
162
- border-color: transparent transparent transparent
163
- var(--matcha-color-text-primary);
164
- }
165
- .matcha-tooltip-content_right::after {
166
- border-color: transparent
167
- var(--matcha-color-text-primary)
168
- transparent transparent;
169
- }
170
-
171
- .matcha-tooltip-close {
172
- color: var(--matcha-color-surface-card);
173
- opacity: 0.7;
174
-
175
- &:hover { opacity: 1; }
176
- &:active { opacity: 0.9; }
177
- }
178
- }
179
-
180
- // =============================================================================
181
- // A11y / modernity media queries
182
- // =============================================================================
183
-
184
- // Forced colors (Windows High Contrast) — usa system colors visíveis.
185
- @media (forced-colors: active) {
186
- .matcha-tooltip-content {
187
- background: Canvas !important;
188
- color: CanvasText !important;
189
- border: 1px solid CanvasText;
190
- box-shadow: none !important;
191
- }
192
-
193
- .matcha-tooltip-content_above::after,
194
- .matcha-tooltip-content_below::after,
195
- .matcha-tooltip-content_left::after,
196
- .matcha-tooltip-content_right::after {
197
- // Arrow vira invisível em high-contrast (sem solução elegante com border-color),
198
- // a borda do tooltip cobre a função de delimitação visual.
199
- display: none;
200
- }
201
-
202
- .matcha-tooltip-close:focus-visible {
203
- outline: 2px solid CanvasText !important;
204
- }
205
- }
206
-
207
- // Reduced motion — entra/sai sem animação.
208
- @media (prefers-reduced-motion: reduce) {
209
- .matcha-tooltip-content {
210
- transition: none !important;
211
- animation: none !important;
212
- }
213
-
214
- .matcha-tooltip-close {
215
- transition: none !important;
216
- }
217
- }
218
-
219
- // Print — chrome flutuante some.
220
- @media print {
221
- .matcha-tooltip-content {
222
- display: none !important;
223
- }
224
- }
1
+ // =============================================================================
2
+ // matcha-tooltip.scss — Tooltip with arrow (4 positions + close variant)
3
+ // Aligned with Figma DSV3 matcha/tooltip (14846:89): 5 variants
4
+ //
5
+ // Figma canonical:
6
+ // bg = var(--matcha-color-text-primary, #e8eaed) (light em dark theme)
7
+ // text = var(--matcha-color-surface-card, #1c1f26) (dark sobre bg light)
8
+ // pad = 8 16 (variante close: 8 12 8 16, gap 8)
9
+ // radius = 8 (var(--matcha-radius-lg))
10
+ // font = Manrope Medium 14/20, letter-spacing 0.2
11
+ // arrow = 13.856 × 6 (triângulo, mesma cor do bg)
12
+ // =============================================================================
13
+
14
+ .matcha-tooltip-content {
15
+ position: absolute;
16
+ z-index: var(--matcha-z-tooltip, 400);
17
+
18
+ padding: var(--matcha-space-100, 8px) var(--matcha-space-200, 16px);
19
+ border-radius: var(--matcha-radius-lg, 8px);
20
+
21
+ font-family: var(--matcha-font-family, 'Manrope', sans-serif);
22
+ font-size: var(--matcha-text-body-md, 14px);
23
+ font-weight: var(--matcha-weight-medium, 500);
24
+ line-height: var(--matcha-leading-body-md, 20px);
25
+ letter-spacing: 0.2px;
26
+
27
+ width: auto;
28
+ max-width: 500px;
29
+ text-overflow: ellipsis;
30
+
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ gap: var(--matcha-space-100, 8px);
35
+ text-align: center;
36
+ // Tooltip informativo NÃO captura o ponteiro — clicar "através" dele atinge o
37
+ // elemento abaixo (ex.: pills clicáveis do stepper, botões pequenos). Tooltip
38
+ // sobrepondo o trigger jamais deve bloquear o clique. Só o variante interativo
39
+ // --with-close reativa pointer-events (pra clicar no X / hover-to-stay).
40
+ pointer-events: none;
41
+
42
+ // Variante com close — gap 8, pr-12 (espaço pro X) + ponteiro ativo (interativa)
43
+ &.matcha-tooltip-content--with-close {
44
+ padding-right: var(--matcha-space-150, 12px);
45
+ pointer-events: auto;
46
+ }
47
+ }
48
+
49
+ // ── Arrow (mesma cor do bg) — 13.856×6 — ::after triangular ────────────────
50
+ // Tamanho via border-style: solid trick. base 13.856 ≈ 2×7px borders → border-width
51
+ // horizontal ~7, vertical 6. Mantemos arredondado pelo Figma (13.856 × 6).
52
+ //
53
+ // Posicionamento: arrow normalmente centrada no box (left: 50% ou top: 50%), mas
54
+ // quando o tooltip é clamped pela viewport, o directive computa um shift em px
55
+ // (--matcha-tooltip-arrow-shift-x / -y) pra arrow re-alinhar com o trigger.
56
+ // Default 0px (fallback puro 50% — comportamento padrão sem clamp).
57
+ .matcha-tooltip-content_above::after {
58
+ content: '';
59
+ position: absolute;
60
+ width: 0;
61
+ height: 0;
62
+ border-style: solid;
63
+ border-width: 6px 7px 0 7px;
64
+ bottom: -6px;
65
+ left: calc(50% + var(--matcha-tooltip-arrow-shift-x, 0px));
66
+ transform: translateX(-50%);
67
+ }
68
+
69
+ .matcha-tooltip-content_below::after {
70
+ content: '';
71
+ position: absolute;
72
+ width: 0;
73
+ height: 0;
74
+ border-style: solid;
75
+ border-width: 0 7px 6px 7px;
76
+ top: -6px;
77
+ left: calc(50% + var(--matcha-tooltip-arrow-shift-x, 0px));
78
+ transform: translateX(-50%);
79
+ }
80
+
81
+ .matcha-tooltip-content_left::after {
82
+ content: '';
83
+ position: absolute;
84
+ width: 0;
85
+ height: 0;
86
+ border-style: solid;
87
+ border-width: 7px 0 7px 6px;
88
+ top: calc(50% + var(--matcha-tooltip-arrow-shift-y, 0px));
89
+ right: -6px;
90
+ transform: translateY(-50%);
91
+ }
92
+
93
+ .matcha-tooltip-content_right::after {
94
+ content: '';
95
+ position: absolute;
96
+ width: 0;
97
+ height: 0;
98
+ border-style: solid;
99
+ border-width: 7px 6px 7px 0;
100
+ top: calc(50% + var(--matcha-tooltip-arrow-shift-y, 0px));
101
+ left: -6px;
102
+ transform: translateY(-50%);
103
+ }
104
+
105
+ // ── Close button (16×16 com X via Matcha icon font) ────────────────────────
106
+ .matcha-tooltip-close {
107
+ appearance: none;
108
+ background: transparent;
109
+ border: 0;
110
+ padding: 0;
111
+ margin: 0;
112
+ cursor: pointer;
113
+ display: inline-flex;
114
+ align-items: center;
115
+ justify-content: center;
116
+ width: 16px;
117
+ height: 16px;
118
+ flex-shrink: 0;
119
+ pointer-events: auto;
120
+ transition: opacity var(--matcha-duration-instant, 80ms) ease;
121
+
122
+ &::before {
123
+ content: "\e92a";
124
+ font-family: 'MatchaIcons';
125
+ font-size: var(--matcha-icon-size-sm, 16px);
126
+ line-height: 16px;
127
+ width: 16px;
128
+ height: 16px;
129
+ display: inline-flex;
130
+ align-items: center;
131
+ justify-content: center;
132
+ }
133
+
134
+ &:focus-visible {
135
+ outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-primary);
136
+ outline-offset: 2px;
137
+ border-radius: var(--matcha-radius-sm, 4px);
138
+ }
139
+ }
140
+
141
+ // =============================================================================
142
+ // Theme mixin — cores do bg/text/arrow vinculadas ao tema
143
+ // =============================================================================
144
+ @mixin matcha-tooltip-theme($theme) {
145
+ .matcha-tooltip-content {
146
+ // Figma: bg = text-primary (light em dark theme), text = surface-card (dark)
147
+ background-color: var(--matcha-color-text-primary);
148
+ color: var(--matcha-color-surface-card);
149
+ box-shadow: var(--matcha-shadow-2, 0 4px 12px rgba(0, 0, 0, 0.18));
150
+ }
151
+
152
+ // Arrow: mesma cor do bg, lado oposto à direção do tooltip
153
+ .matcha-tooltip-content_above::after {
154
+ border-color: var(--matcha-color-text-primary)
155
+ transparent transparent transparent;
156
+ }
157
+ .matcha-tooltip-content_below::after {
158
+ border-color: transparent transparent
159
+ var(--matcha-color-text-primary) transparent;
160
+ }
161
+ .matcha-tooltip-content_left::after {
162
+ border-color: transparent transparent transparent
163
+ var(--matcha-color-text-primary);
164
+ }
165
+ .matcha-tooltip-content_right::after {
166
+ border-color: transparent
167
+ var(--matcha-color-text-primary)
168
+ transparent transparent;
169
+ }
170
+
171
+ .matcha-tooltip-close {
172
+ color: var(--matcha-color-surface-card);
173
+ opacity: 0.7;
174
+
175
+ &:hover { opacity: 1; }
176
+ &:active { opacity: 0.9; }
177
+ }
178
+ }
179
+
180
+ // =============================================================================
181
+ // A11y / modernity media queries
182
+ // =============================================================================
183
+
184
+ // Forced colors (Windows High Contrast) — usa system colors visíveis.
185
+ @media (forced-colors: active) {
186
+ .matcha-tooltip-content {
187
+ background: Canvas !important;
188
+ color: CanvasText !important;
189
+ border: 1px solid CanvasText;
190
+ box-shadow: none !important;
191
+ }
192
+
193
+ .matcha-tooltip-content_above::after,
194
+ .matcha-tooltip-content_below::after,
195
+ .matcha-tooltip-content_left::after,
196
+ .matcha-tooltip-content_right::after {
197
+ // Arrow vira invisível em high-contrast (sem solução elegante com border-color),
198
+ // a borda do tooltip cobre a função de delimitação visual.
199
+ display: none;
200
+ }
201
+
202
+ .matcha-tooltip-close:focus-visible {
203
+ outline: 2px solid CanvasText !important;
204
+ }
205
+ }
206
+
207
+ // Reduced motion — entra/sai sem animação.
208
+ @media (prefers-reduced-motion: reduce) {
209
+ .matcha-tooltip-content {
210
+ transition: none !important;
211
+ animation: none !important;
212
+ }
213
+
214
+ .matcha-tooltip-close {
215
+ transition: none !important;
216
+ }
217
+ }
218
+
219
+ // Print — chrome flutuante some.
220
+ @media print {
221
+ .matcha-tooltip-content {
222
+ display: none !important;
223
+ }
224
+ }