@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,230 +1,230 @@
1
- @use "sass:map";
2
-
3
- // =============================================================================
4
- // matcha-cards.scss — Card container (surface, outline, alpha, blockquote)
5
- // Aligned with Figma matcha/card: Tipo(3) × Direção(2) = 6 variants
6
- // =============================================================================
7
-
8
- @mixin matcha-cards-theme($theme) {
9
-
10
- matcha-card,
11
- .matcha-card,
12
- .matcha-card-flat {
13
-
14
- // ── Default: surface ──
15
- &:not([color]) {
16
- background-color: var(--matcha-color-surface);
17
- color: var(--matcha-color-fg);
18
- }
19
-
20
- // ── Semantic colors ──
21
- &[color="surface"] {
22
- background-color: var(--matcha-color-surface);
23
- color: var(--matcha-color-fg);
24
- }
25
-
26
- &[color="bg"] {
27
- background-color: var(--matcha-color-bg);
28
- color: var(--matcha-color-fg);
29
- }
30
-
31
- &[color="accent"] {
32
- background-color: var(--matcha-color-accent);
33
- color: var(--matcha-color-accent-contrast);
34
- }
35
-
36
- &[color="primary"] {
37
- background-color: var(--matcha-color-primary);
38
- color: var(--matcha-color-primary-contrast);
39
- }
40
-
41
- &[color="danger"] {
42
- background-color: var(--matcha-color-danger);
43
- color: var(--matcha-color-danger-contrast);
44
- }
45
-
46
- // ── Alpha modifier ──
47
- &[alpha]:not([alpha="false"]) {
48
- &[color="accent"] {
49
- background-color: var(--matcha-color-accent-alpha);
50
- color: var(--matcha-color-fg);
51
- }
52
- &[color="primary"] {
53
- background-color: var(--matcha-color-primary-alpha);
54
- color: var(--matcha-color-fg);
55
- }
56
- &[color="danger"] {
57
- background-color: var(--matcha-color-danger-alpha);
58
- color: var(--matcha-color-fg);
59
- }
60
- // Figma DSV3: alpha + color=surface usa surface-bg (#111318), não surface-alpha.
61
- &[color="surface"] {
62
- background-color: var(--matcha-color-surface-bg);
63
- color: var(--matcha-color-fg);
64
- }
65
- &[color="bg"] {
66
- background-color: var(--matcha-color-surface-bg-alpha);
67
- color: var(--matcha-color-fg);
68
- }
69
- }
70
-
71
- // ── Outline modifier ──
72
- // Figma DSV3: border 1px surface-border (rgba 255,255,255,0.12 dark).
73
- // Antes era `inset 2px currentColor` — divergia da spec e ficava grosso demais.
74
- &[outline]:not([outline="false"]) {
75
- background: transparent;
76
- border: var(--matcha-border-hairline, 1px) solid var(--matcha-color-surface-border, rgba(255, 255, 255, 0.12));
77
- box-shadow: none;
78
-
79
- &:not([color]) {
80
- color: var(--matcha-color-fg);
81
- }
82
- }
83
-
84
- // ── Tint modifier ──
85
- &[tint]:not([tint="false"]) {
86
- &[color="accent"] {
87
- background-color: var(--matcha-color-accent-alpha);
88
- color: var(--matcha-color-accent);
89
- }
90
- &[color="primary"] {
91
- background-color: var(--matcha-color-primary-alpha);
92
- color: var(--matcha-color-primary);
93
- }
94
- &[color="danger"] {
95
- background-color: var(--matcha-color-danger-alpha);
96
- color: var(--matcha-color-danger);
97
- }
98
- }
99
-
100
- // ── Basic modifier ──
101
- &[basic]:not([basic="false"]) {
102
- box-shadow: none;
103
- background-color: var(--matcha-color-surface);
104
-
105
- &:not([color]) {
106
- color: var(--matcha-color-fg);
107
- }
108
- }
109
-
110
- // ── Link modifier ──
111
- &[link]:not([link="false"]) {
112
- text-transform: initial;
113
- letter-spacing: 0;
114
- text-decoration: none;
115
- padding: 0;
116
- background: transparent;
117
- }
118
- }
119
- }
120
-
121
- // =============================================================================
122
- // Structural styles
123
- // =============================================================================
124
-
125
- matcha-card,
126
- .matcha-card,
127
- .matcha-card-flat {
128
- // Figma matcha/card: radius 16 (xl)
129
- padding: var(--matcha-space-200, 16px);
130
- border-radius: var(--matcha-radius-xl, 16px);
131
- display: flex;
132
- flex-direction: column;
133
-
134
- // ── Direction: horizontal ──
135
- &.matcha-card--horizontal {
136
- flex-direction: row;
137
- }
138
-
139
- // ── Blockquote borders ──
140
- &-border,
141
- &-border-left {
142
- border-left: var(--matcha-border-thick, 8px) solid;
143
- }
144
-
145
- &-border-right {
146
- border-right: var(--matcha-border-thick, 8px) solid;
147
- }
148
-
149
- // ── States ──
150
- &.disabled {
151
- opacity: var(--matcha-opacity-disabled, 0.38);
152
- pointer-events: none;
153
- transition: opacity 100ms linear;
154
- }
155
-
156
- &.enabled {
157
- opacity: 1;
158
- transition: opacity 100ms linear;
159
- }
160
-
161
- // ── Width variants ──
162
- &.variable-width { min-width: 0; }
163
- &.auto-width { min-width: 0; max-width: none; }
164
- &.fixed-width { min-width: 264px; max-width: 264px; width: 264px; }
165
-
166
- // ── Divider ──
167
- .card-divider {
168
- margin: var(--matcha-space-200, 16px);
169
- &.full-width { margin: 0; }
170
- }
171
-
172
- // ── Expand area ──
173
- .card-expand-area {
174
- overflow: hidden;
175
- .card-expanded-content {
176
- padding: var(--matcha-space-100, 8px) var(--matcha-space-200, 16px) var(--matcha-space-200, 16px);
177
- line-height: 1.75;
178
- }
179
- }
180
-
181
- // ── Media slot (16:9) ──
182
- .matcha-card__media {
183
- width: 100%;
184
- aspect-ratio: 16 / 9;
185
- overflow: hidden;
186
- border-radius: var(--matcha-radius-md, 4px);
187
- flex-shrink: 0;
188
-
189
- img {
190
- width: 100%;
191
- height: 100%;
192
- object-fit: cover;
193
- }
194
- }
195
-
196
- // Horizontal media
197
- &.matcha-card--horizontal .matcha-card__media {
198
- width: 160px;
199
- aspect-ratio: auto;
200
- height: 100%;
201
- }
202
-
203
- @media (prefers-reduced-motion: reduce) {
204
- &.disabled, &.enabled {
205
- transition: none;
206
- }
207
- }
208
- }
209
-
210
- // ── Forced colors (Windows High Contrast) ──
211
- @media (forced-colors: active) {
212
- matcha-card,
213
- .matcha-card,
214
- .matcha-card-flat {
215
- border: 1px solid CanvasText !important;
216
- background: Canvas !important;
217
- box-shadow: none !important;
218
- }
219
- }
220
-
221
- // ── Print ──
222
- // Cards visíveis (contêm conteúdo), sem shadow + break-inside avoid.
223
- @media print {
224
- matcha-card,
225
- .matcha-card,
226
- .matcha-card-flat {
227
- box-shadow: none !important;
228
- break-inside: avoid;
229
- }
230
- }
1
+ @use "sass:map";
2
+
3
+ // =============================================================================
4
+ // matcha-cards.scss — Card container (surface, outline, alpha, blockquote)
5
+ // Aligned with Figma matcha/card: Tipo(3) × Direção(2) = 6 variants
6
+ // =============================================================================
7
+
8
+ @mixin matcha-cards-theme($theme) {
9
+
10
+ matcha-card,
11
+ .matcha-card,
12
+ .matcha-card-flat {
13
+
14
+ // ── Default: surface ──
15
+ &:not([color]) {
16
+ background-color: var(--matcha-color-surface);
17
+ color: var(--matcha-color-fg);
18
+ }
19
+
20
+ // ── Semantic colors ──
21
+ &[color="surface"] {
22
+ background-color: var(--matcha-color-surface);
23
+ color: var(--matcha-color-fg);
24
+ }
25
+
26
+ &[color="bg"] {
27
+ background-color: var(--matcha-color-bg);
28
+ color: var(--matcha-color-fg);
29
+ }
30
+
31
+ &[color="accent"] {
32
+ background-color: var(--matcha-color-accent);
33
+ color: var(--matcha-color-accent-contrast);
34
+ }
35
+
36
+ &[color="primary"] {
37
+ background-color: var(--matcha-color-primary);
38
+ color: var(--matcha-color-primary-contrast);
39
+ }
40
+
41
+ &[color="danger"] {
42
+ background-color: var(--matcha-color-danger);
43
+ color: var(--matcha-color-danger-contrast);
44
+ }
45
+
46
+ // ── Alpha modifier ──
47
+ &[alpha]:not([alpha="false"]) {
48
+ &[color="accent"] {
49
+ background-color: var(--matcha-color-accent-alpha);
50
+ color: var(--matcha-color-fg);
51
+ }
52
+ &[color="primary"] {
53
+ background-color: var(--matcha-color-primary-alpha);
54
+ color: var(--matcha-color-fg);
55
+ }
56
+ &[color="danger"] {
57
+ background-color: var(--matcha-color-danger-alpha);
58
+ color: var(--matcha-color-fg);
59
+ }
60
+ // Figma DSV3: alpha + color=surface usa surface-bg (#111318), não surface-alpha.
61
+ &[color="surface"] {
62
+ background-color: var(--matcha-color-surface-bg);
63
+ color: var(--matcha-color-fg);
64
+ }
65
+ &[color="bg"] {
66
+ background-color: var(--matcha-color-surface-bg-alpha);
67
+ color: var(--matcha-color-fg);
68
+ }
69
+ }
70
+
71
+ // ── Outline modifier ──
72
+ // Figma DSV3: border 1px surface-border (rgba 255,255,255,0.12 dark).
73
+ // Antes era `inset 2px currentColor` — divergia da spec e ficava grosso demais.
74
+ &[outline]:not([outline="false"]) {
75
+ background: transparent;
76
+ border: var(--matcha-border-hairline, 1px) solid var(--matcha-color-surface-border, rgba(255, 255, 255, 0.12));
77
+ box-shadow: none;
78
+
79
+ &:not([color]) {
80
+ color: var(--matcha-color-fg);
81
+ }
82
+ }
83
+
84
+ // ── Tint modifier ──
85
+ &[tint]:not([tint="false"]) {
86
+ &[color="accent"] {
87
+ background-color: var(--matcha-color-accent-alpha);
88
+ color: var(--matcha-color-accent);
89
+ }
90
+ &[color="primary"] {
91
+ background-color: var(--matcha-color-primary-alpha);
92
+ color: var(--matcha-color-primary);
93
+ }
94
+ &[color="danger"] {
95
+ background-color: var(--matcha-color-danger-alpha);
96
+ color: var(--matcha-color-danger);
97
+ }
98
+ }
99
+
100
+ // ── Basic modifier ──
101
+ &[basic]:not([basic="false"]) {
102
+ box-shadow: none;
103
+ background-color: var(--matcha-color-surface);
104
+
105
+ &:not([color]) {
106
+ color: var(--matcha-color-fg);
107
+ }
108
+ }
109
+
110
+ // ── Link modifier ──
111
+ &[link]:not([link="false"]) {
112
+ text-transform: initial;
113
+ letter-spacing: 0;
114
+ text-decoration: none;
115
+ padding: 0;
116
+ background: transparent;
117
+ }
118
+ }
119
+ }
120
+
121
+ // =============================================================================
122
+ // Structural styles
123
+ // =============================================================================
124
+
125
+ matcha-card,
126
+ .matcha-card,
127
+ .matcha-card-flat {
128
+ // Figma matcha/card: radius 16 (xl)
129
+ padding: var(--matcha-space-200, 16px);
130
+ border-radius: var(--matcha-radius-xl, 16px);
131
+ display: flex;
132
+ flex-direction: column;
133
+
134
+ // ── Direction: horizontal ──
135
+ &.matcha-card--horizontal {
136
+ flex-direction: row;
137
+ }
138
+
139
+ // ── Blockquote borders ──
140
+ &-border,
141
+ &-border-left {
142
+ border-left: var(--matcha-border-thick, 8px) solid;
143
+ }
144
+
145
+ &-border-right {
146
+ border-right: var(--matcha-border-thick, 8px) solid;
147
+ }
148
+
149
+ // ── States ──
150
+ &.disabled {
151
+ opacity: var(--matcha-opacity-disabled, 0.38);
152
+ pointer-events: none;
153
+ transition: opacity 100ms linear;
154
+ }
155
+
156
+ &.enabled {
157
+ opacity: 1;
158
+ transition: opacity 100ms linear;
159
+ }
160
+
161
+ // ── Width variants ──
162
+ &.variable-width { min-width: 0; }
163
+ &.auto-width { min-width: 0; max-width: none; }
164
+ &.fixed-width { min-width: 264px; max-width: 264px; width: 264px; }
165
+
166
+ // ── Divider ──
167
+ .card-divider {
168
+ margin: var(--matcha-space-200, 16px);
169
+ &.full-width { margin: 0; }
170
+ }
171
+
172
+ // ── Expand area ──
173
+ .card-expand-area {
174
+ overflow: hidden;
175
+ .card-expanded-content {
176
+ padding: var(--matcha-space-100, 8px) var(--matcha-space-200, 16px) var(--matcha-space-200, 16px);
177
+ line-height: 1.75;
178
+ }
179
+ }
180
+
181
+ // ── Media slot (16:9) ──
182
+ .matcha-card__media {
183
+ width: 100%;
184
+ aspect-ratio: 16 / 9;
185
+ overflow: hidden;
186
+ border-radius: var(--matcha-radius-md, 4px);
187
+ flex-shrink: 0;
188
+
189
+ img {
190
+ width: 100%;
191
+ height: 100%;
192
+ object-fit: cover;
193
+ }
194
+ }
195
+
196
+ // Horizontal media
197
+ &.matcha-card--horizontal .matcha-card__media {
198
+ width: 160px;
199
+ aspect-ratio: auto;
200
+ height: 100%;
201
+ }
202
+
203
+ @media (prefers-reduced-motion: reduce) {
204
+ &.disabled, &.enabled {
205
+ transition: none;
206
+ }
207
+ }
208
+ }
209
+
210
+ // ── Forced colors (Windows High Contrast) ──
211
+ @media (forced-colors: active) {
212
+ matcha-card,
213
+ .matcha-card,
214
+ .matcha-card-flat {
215
+ border: 1px solid CanvasText !important;
216
+ background: Canvas !important;
217
+ box-shadow: none !important;
218
+ }
219
+ }
220
+
221
+ // ── Print ──
222
+ // Cards visíveis (contêm conteúdo), sem shadow + break-inside avoid.
223
+ @media print {
224
+ matcha-card,
225
+ .matcha-card,
226
+ .matcha-card-flat {
227
+ box-shadow: none !important;
228
+ break-inside: avoid;
229
+ }
230
+ }
@@ -1,53 +1,53 @@
1
- @use "sass:map";
2
-
3
- // =============================================================================
4
- // matcha-chart-card.scss — Simple wrapper card for Chart.js charts
5
- // Aligned with Figma matcha/chart-card:
6
- // Accent line + content slot (chart goes inside via ng-content)
7
- // Angular: matcha-chart-card
8
- // =============================================================================
9
-
10
- @mixin matcha-chart-card-theme($theme) {
11
- .matcha-chart-card {
12
- background: var(--matcha-color-surface);
13
- box-shadow: var(--matcha-shadow-1);
14
- // Borda só-no-dark vira valor por modo (light = 0/transparent, sem mudar layout).
15
- border: var(--matcha-chart-card-border);
16
- }
17
-
18
- .matcha-chart-card__accent {
19
- background: var(--matcha-color-accent);
20
- }
21
- }
22
-
23
- // ── Layout ──────────────────────────────────────────────────────────────────
24
-
25
- .matcha-chart-card {
26
- display: flex;
27
- flex-direction: column;
28
- width: 100%;
29
- border-radius: var(--matcha-radius-xl, 16px);
30
- overflow: hidden;
31
- box-sizing: border-box;
32
- }
33
-
34
- .matcha-chart-card__accent {
35
- width: 100%;
36
- height: 3px;
37
- flex-shrink: 0;
38
- }
39
-
40
- .matcha-chart-card__content {
41
- display: flex;
42
- flex-direction: column;
43
- padding: var(--matcha-space-200, 16px);
44
- flex: 1;
45
- }
46
-
47
- // ── Reduced motion ──────────────────────────────────────────────────────────
48
-
49
- @media (prefers-reduced-motion: reduce) {
50
- .matcha-chart-card {
51
- transition: none;
52
- }
53
- }
1
+ @use "sass:map";
2
+
3
+ // =============================================================================
4
+ // matcha-chart-card.scss — Simple wrapper card for Chart.js charts
5
+ // Aligned with Figma matcha/chart-card:
6
+ // Accent line + content slot (chart goes inside via ng-content)
7
+ // Angular: matcha-chart-card
8
+ // =============================================================================
9
+
10
+ @mixin matcha-chart-card-theme($theme) {
11
+ .matcha-chart-card {
12
+ background: var(--matcha-color-surface);
13
+ box-shadow: var(--matcha-shadow-1);
14
+ // Borda só-no-dark vira valor por modo (light = 0/transparent, sem mudar layout).
15
+ border: var(--matcha-chart-card-border);
16
+ }
17
+
18
+ .matcha-chart-card__accent {
19
+ background: var(--matcha-color-accent);
20
+ }
21
+ }
22
+
23
+ // ── Layout ──────────────────────────────────────────────────────────────────
24
+
25
+ .matcha-chart-card {
26
+ display: flex;
27
+ flex-direction: column;
28
+ width: 100%;
29
+ border-radius: var(--matcha-radius-xl, 16px);
30
+ overflow: hidden;
31
+ box-sizing: border-box;
32
+ }
33
+
34
+ .matcha-chart-card__accent {
35
+ width: 100%;
36
+ height: 3px;
37
+ flex-shrink: 0;
38
+ }
39
+
40
+ .matcha-chart-card__content {
41
+ display: flex;
42
+ flex-direction: column;
43
+ padding: var(--matcha-space-200, 16px);
44
+ flex: 1;
45
+ }
46
+
47
+ // ── Reduced motion ──────────────────────────────────────────────────────────
48
+
49
+ @media (prefers-reduced-motion: reduce) {
50
+ .matcha-chart-card {
51
+ transition: none;
52
+ }
53
+ }