@inchurch/matcha-theme 20.0.3

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 (112) hide show
  1. package/README.md +303 -0
  2. package/abstracts/_colors.scss +405 -0
  3. package/abstracts/_elevation.scss +102 -0
  4. package/abstracts/_functions.scss +1213 -0
  5. package/abstracts/_media-breakpoint.scss +23 -0
  6. package/abstracts/_typography.scss +127 -0
  7. package/base/_reset.scss +438 -0
  8. package/components/matcha-accordion.scss +157 -0
  9. package/components/matcha-audio-player.scss +32 -0
  10. package/components/matcha-autocomplete.scss +134 -0
  11. package/components/matcha-avatar.scss +161 -0
  12. package/components/matcha-badge.scss +120 -0
  13. package/components/matcha-breadcrumb.scss +126 -0
  14. package/components/matcha-button-toggle.scss +363 -0
  15. package/components/matcha-buttons.scss +784 -0
  16. package/components/matcha-calendar.scss +154 -0
  17. package/components/matcha-cards.scss +205 -0
  18. package/components/matcha-chart-card.scss +60 -0
  19. package/components/matcha-checkbox.scss +554 -0
  20. package/components/matcha-chip.scss +212 -0
  21. package/components/matcha-color-pick.scss +35 -0
  22. package/components/matcha-command-palette.scss +89 -0
  23. package/components/matcha-crop.scss +172 -0
  24. package/components/matcha-date.scss +81 -0
  25. package/components/matcha-divider.scss +45 -0
  26. package/components/matcha-draggable.scss +24 -0
  27. package/components/matcha-drawer.scss +235 -0
  28. package/components/matcha-drop-list.scss +390 -0
  29. package/components/matcha-emoji.scss +69 -0
  30. package/components/matcha-empty-state.scss +118 -0
  31. package/components/matcha-flag.scss +62 -0
  32. package/components/matcha-footer.scss +187 -0
  33. package/components/matcha-form-field.scss +552 -0
  34. package/components/matcha-form-section.scss +101 -0
  35. package/components/matcha-header.scss +325 -0
  36. package/components/matcha-highlight.scss +296 -0
  37. package/components/matcha-hint-text.scss +66 -0
  38. package/components/matcha-horizontal-tree.scss +317 -0
  39. package/components/matcha-icon.scss +106 -0
  40. package/components/matcha-image.scss +62 -0
  41. package/components/matcha-list.scss +212 -0
  42. package/components/matcha-menu.scss +86 -0
  43. package/components/matcha-modal.scss +234 -0
  44. package/components/matcha-nav.scss +450 -0
  45. package/components/matcha-notification.scss +197 -0
  46. package/components/matcha-option.scss +95 -0
  47. package/components/matcha-page-builder.scss +4186 -0
  48. package/components/matcha-paginator.scss +235 -0
  49. package/components/matcha-panel.scss +167 -0
  50. package/components/matcha-profile-card.scss +50 -0
  51. package/components/matcha-progress-bar.scss +209 -0
  52. package/components/matcha-radio.scss +528 -0
  53. package/components/matcha-ripple.scss +7 -0
  54. package/components/matcha-scrollbar.scss +35 -0
  55. package/components/matcha-scrollbox-shadow.scss +123 -0
  56. package/components/matcha-section.scss +105 -0
  57. package/components/matcha-select.scss +661 -0
  58. package/components/matcha-skeleton.scss +138 -0
  59. package/components/matcha-slide-toggle.scss +590 -0
  60. package/components/matcha-slider.scss +188 -0
  61. package/components/matcha-snack-bar.scss +266 -0
  62. package/components/matcha-spin.scss +252 -0
  63. package/components/matcha-spinner.scss +78 -0
  64. package/components/matcha-stepper.scss +177 -0
  65. package/components/matcha-table-cell.scss +41 -0
  66. package/components/matcha-table.scss +785 -0
  67. package/components/matcha-tabs.scss +469 -0
  68. package/components/matcha-text-editor.scss +151 -0
  69. package/components/matcha-time.scss +33 -0
  70. package/components/matcha-timepicker.scss +13 -0
  71. package/components/matcha-toolbar.scss +206 -0
  72. package/components/matcha-tooltip.scss +128 -0
  73. package/components/matcha-uploader.scss +215 -0
  74. package/css/matcha-style.css +76772 -0
  75. package/fonts/CircularStd-Black.eot +0 -0
  76. package/fonts/CircularStd-Black.svg +3426 -0
  77. package/fonts/CircularStd-Black.ttf +0 -0
  78. package/fonts/CircularStd-Black.woff +0 -0
  79. package/fonts/CircularStd-Black.woff2 +0 -0
  80. package/fonts/CircularStd-Bold.eot +0 -0
  81. package/fonts/CircularStd-Bold.otf +0 -0
  82. package/fonts/CircularStd-Bold.svg +13532 -0
  83. package/fonts/CircularStd-Bold.ttf +0 -0
  84. package/fonts/CircularStd-Bold.woff +0 -0
  85. package/fonts/CircularStd-Bold.woff2 +0 -0
  86. package/fonts/CircularStd-Medium.eot +0 -0
  87. package/fonts/CircularStd-Medium.otf +0 -0
  88. package/fonts/CircularStd-Medium.svg +13511 -0
  89. package/fonts/CircularStd-Medium.ttf +0 -0
  90. package/fonts/CircularStd-Medium.woff +0 -0
  91. package/fonts/CircularStd-Medium.woff2 +0 -0
  92. package/fonts/CircularStd-Regular.eot +0 -0
  93. package/fonts/CircularStd-Regular.otf +0 -0
  94. package/fonts/CircularStd-Regular.svg +2378 -0
  95. package/fonts/CircularStd-Regular.ttf +0 -0
  96. package/fonts/CircularStd-Regular.woff +0 -0
  97. package/fonts/CircularStd-Regular.woff2 +0 -0
  98. package/main.scss +262 -0
  99. package/package.json +11 -0
  100. package/tokens/_animations-tokens.scss +37 -0
  101. package/tokens/_breakpoints-tokens.scss +26 -0
  102. package/tokens/_color-tokens.scss +1153 -0
  103. package/tokens/_css-custom-properties.scss +568 -0
  104. package/tokens/_elevation-tokens.scss +33 -0
  105. package/tokens/_spacing-tokens.scss +94 -0
  106. package/tokens/_typography-tokens.scss +65 -0
  107. package/vendors/angular-editor.scss +56 -0
  108. package/vendors/angular-material-fixes.scss +297 -0
  109. package/vendors/calendar.scss +2880 -0
  110. package/vendors/charts.scss +92 -0
  111. package/vendors/ng5-slider.scss +56 -0
  112. package/vendors/ngx-material-timepicker.scss +50 -0
@@ -0,0 +1,126 @@
1
+ @use "sass:map";
2
+
3
+ // =============================================================================
4
+ // matcha-breadcrumb.scss — Navigation breadcrumb trail
5
+ // Aligned with Figma matcha/breadcrumb/item:
6
+ // Estado(3: Link, Atual, Disabled) × Ícone?(2: Yes, No)
7
+ // Separator: matcha/icon/chevron (Right) between items
8
+ // =============================================================================
9
+
10
+ @mixin matcha-breadcrumb-theme($theme) {
11
+ $is-dark: map.get($theme, is-dark);
12
+
13
+ matcha-breadcrumb {
14
+ // ── Link items ──
15
+ .breadcrumb-item-link {
16
+ background: var(--matcha-color-surface-2, #{getSurfaceAlpha($theme)});
17
+ color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
18
+
19
+ &:hover:not([disabled]):not(.disabled) {
20
+ .breadcrumb-state {
21
+ opacity: var(--matcha-state-hover, 0.08);
22
+ }
23
+ }
24
+
25
+ &:active:not([disabled]):not(.disabled) {
26
+ .breadcrumb-state {
27
+ opacity: var(--matcha-state-active, 0.12);
28
+ }
29
+ }
30
+
31
+ &:focus-visible {
32
+ outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent, #{getAccent($theme)});
33
+ outline-offset: var(--matcha-state-focus-ring-offset, 2px);
34
+ }
35
+ }
36
+
37
+ // ── Current page ──
38
+ .breadcrumb-item-current {
39
+ color: var(--matcha-color-fg, #{getForeground($theme)});
40
+ }
41
+
42
+ // ── Separator ──
43
+ .breadcrumb-separator {
44
+ color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
45
+ }
46
+
47
+ // ── Disabled ──
48
+ .breadcrumb-item-link.disabled {
49
+ opacity: 0.5;
50
+ pointer-events: none;
51
+ }
52
+ }
53
+ }
54
+
55
+ // ── Layout ──────────────────────────────────────────────────────────────────
56
+
57
+ matcha-breadcrumb {
58
+ display: flex;
59
+ align-items: center;
60
+ gap: var(--matcha-space-100, 8px);
61
+
62
+ // ── Breadcrumb item (link) ──
63
+ .breadcrumb-item-link {
64
+ display: flex;
65
+ align-items: center;
66
+ gap: var(--matcha-space-100, 8px);
67
+ padding: var(--matcha-space-150, 12px);
68
+ border: none;
69
+ border-radius: var(--matcha-radius-lg, 8px);
70
+ cursor: pointer;
71
+ font-family: var(--matcha-font-family);
72
+ font-size: var(--matcha-text-body-md, 14px);
73
+ font-weight: var(--matcha-weight-regular, 400);
74
+ line-height: var(--matcha-leading-body-md, 20px);
75
+ white-space: nowrap;
76
+ text-decoration: none;
77
+ position: relative;
78
+ overflow: hidden;
79
+
80
+ // State layer
81
+ .breadcrumb-state {
82
+ position: absolute;
83
+ inset: 0;
84
+ background: currentColor;
85
+ opacity: 0;
86
+ border-radius: inherit;
87
+ pointer-events: none;
88
+ transition: opacity var(--matcha-duration-instant, 80ms) linear;
89
+ }
90
+
91
+ matcha-icon {
92
+ flex-shrink: 0;
93
+ }
94
+ }
95
+
96
+ // ── Current page ──
97
+ .breadcrumb-item-current {
98
+ display: flex;
99
+ align-items: center;
100
+ gap: var(--matcha-space-100, 8px);
101
+ padding: var(--matcha-space-150, 12px) 0;
102
+ font-family: var(--matcha-font-family);
103
+ font-size: var(--matcha-text-body-md, 14px);
104
+ font-weight: var(--matcha-weight-medium, 500);
105
+ line-height: var(--matcha-leading-body-md, 20px);
106
+ white-space: nowrap;
107
+
108
+ matcha-icon {
109
+ flex-shrink: 0;
110
+ }
111
+ }
112
+
113
+ // ── Separator ──
114
+ .breadcrumb-separator {
115
+ flex-shrink: 0;
116
+ width: var(--matcha-icon-size-sm, 16px);
117
+ height: var(--matcha-icon-size-sm, 16px);
118
+ }
119
+ }
120
+
121
+ // ── Reduced motion ──────────────────────────────────────────────────────────
122
+ @media (prefers-reduced-motion: reduce) {
123
+ matcha-breadcrumb .breadcrumb-state {
124
+ transition: none;
125
+ }
126
+ }
@@ -0,0 +1,363 @@
1
+ @mixin _colorize-inactive-type-solid-button-toggle-item($theme, $color-functions) {
2
+
3
+ &:not([inactivetype]),
4
+ &[inactivetype="solid"] {
5
+ @each $colorName, $colorFn in $color-functions {
6
+ &[inactivecolor="#{'' + $colorName}"] {
7
+ .button-group {
8
+
9
+ button[matcha-button],
10
+ a[matcha-button] {
11
+ &:not([active]) {
12
+ background: call(#{$colorFn}, $theme);
13
+ color: call(#{$colorFn}Contrast, $theme);
14
+ box-shadow: 0 0 0 0px inset;
15
+
16
+ .ripple {
17
+ background: call(#{$colorFn}ContrastAlpha, $theme); // ok: legacy ripple color token
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+
25
+ &[disabled],
26
+ &[disabled]:not([disabled="false"]),
27
+ &[disabled="true"] {
28
+ .button-group {
29
+
30
+ button[matcha-button],
31
+ a[matcha-button] {
32
+ &:not([active]) {
33
+ @include _disabled-solid-button($theme);
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ @mixin _colorize-inactive-type-basic-button-toggle-item($theme, $color-functions) {
42
+ &[inactivetype="basic"] {
43
+ @each $colorName, $colorFn in $color-functions {
44
+ &[inactivecolor="#{'' + $colorName}"] {
45
+ .button-group {
46
+
47
+ button[matcha-button],
48
+ a[matcha-button] {
49
+ &:not([active]) {
50
+ background: var(--matcha-color-surface, #{getSurface($theme)});
51
+ color: call(#{$colorFn}, $theme);
52
+ box-shadow: 0 0 0 0px inset;
53
+
54
+ .ripple {
55
+ background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ &[disabled],
64
+ &[disabled]:not([disabled="false"]),
65
+ &[disabled="true"] {
66
+ .button-group {
67
+
68
+ button[matcha-button],
69
+ a[matcha-button] {
70
+ &:not([active]) {
71
+ @include _disabled-basic-button($theme);
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+
79
+ @mixin _colorize-inactive-type-outline-button-toggle-item($theme, $color-functions) {
80
+ &[inactivetype="outline"] {
81
+
82
+ //disabled false
83
+ &:not([disabled="true"]) {
84
+ @each $colorName, $colorFn in $color-functions {
85
+ &[inactivecolor="#{'' + $colorName}"] {
86
+ .button-group {
87
+
88
+ button[matcha-button],
89
+ a[matcha-button] {
90
+
91
+ //botão não ativo
92
+ &:not([active]) {
93
+ color: call(#{$colorFn}, $theme);
94
+ background: transparent;
95
+ box-shadow: 0 0 0 2px call(#{$colorFn}, $theme) inset;
96
+
97
+ .ripple {
98
+ background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+
107
+ //disabled true
108
+ &[disabled],
109
+ &[disabled]:not([disabled="false"]),
110
+ &[disabled="true"] {
111
+ .button-group {
112
+
113
+ button[matcha-button],
114
+ a[matcha-button] {
115
+
116
+ //botão não ativo
117
+ &:not([active]) {
118
+ @include _disabled-outline-button($theme);
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ @mixin _colorize-inactive-type-alpha-button-toggle-item($theme, $color-functions) {
127
+ &[inactivetype="alpha"] {
128
+ @each $colorName, $colorFn in $color-functions {
129
+ &[inactivecolor="#{'' + $colorName}"] {
130
+ .button-group {
131
+
132
+ button[matcha-button],
133
+ a[matcha-button] {
134
+ &:not([active]) {
135
+ color: call(#{$colorFn}, $theme);
136
+ background: call(#{$colorFn}Alpha, $theme);
137
+ box-shadow: 0 0 0 0px;
138
+
139
+ .ripple {
140
+ background: call(#{$colorFn}ContrastAlpha, $theme) // ok: legacy ripple color token
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+
148
+ &[disabled],
149
+ &[disabled]:not([disabled="false"]),
150
+ &[disabled="true"] {
151
+ .button-group {
152
+
153
+ button[matcha-button],
154
+ a[matcha-button] {
155
+
156
+ //botão não ativo
157
+ &:not([active]) {
158
+ @include _disabled-alpha-button($theme);
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+
166
+ @mixin _colorize-inactive-type-link-button-toggle-item($theme, $color-functions) {
167
+
168
+ &[inactivetype="link"] {
169
+ @each $colorName, $colorFn in $color-functions {
170
+ &[inactivecolor="#{'' + $colorName}"] {
171
+ .button-group {
172
+
173
+ button[matcha-button],
174
+ a[matcha-button] {
175
+ &:not([active]) {
176
+
177
+ background: transparent;
178
+ color: call(#{$colorFn}, $theme);
179
+ box-shadow: 0 0 0 0px;
180
+
181
+ .ripple {
182
+ background: call(#{$colorFn}Alpha, $theme); // ok: legacy ripple color token
183
+ }
184
+
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+
191
+ &[disabled],
192
+ &[disabled]:not([disabled="false"]),
193
+ &[disabled="true"] {
194
+ .button-group {
195
+
196
+ button[matcha-button],
197
+ a[matcha-button] {
198
+
199
+ //botão não ativo
200
+ &:not([active]) {
201
+ @include _disabled-link-button($theme);
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+
209
+
210
+
211
+
212
+ @mixin matcha-button-toggle($theme) {
213
+ $color-functions: (
214
+ red: getRed,
215
+ pink: getPink,
216
+ purple: getPurple,
217
+ deep-purple: getDeepPurple,
218
+ indigo: getIndigo,
219
+ blue: getBlue,
220
+ light-blue: getLightBlue,
221
+ cyan: getCyan,
222
+ teal: getTeal,
223
+ green: getGreen,
224
+ light-green: getLightGreen,
225
+ lime: getLime,
226
+ yellow: getYellow,
227
+ amber: getAmber,
228
+ orange: getOrange,
229
+ deep-orange: getDeepOrange,
230
+ brown: getBrown,
231
+ grey: getGrey,
232
+ blue-grey: getBlueGrey,
233
+ primary: getPrimary,
234
+ accent: getAccent,
235
+ success: getSuccess,
236
+ warn: getWarn,
237
+ danger: getDanger,
238
+ info: getInfo,
239
+ disabled: getDisabled,
240
+ );
241
+
242
+ matcha-button-toggle {
243
+ display: flex;
244
+ @include _colorize-inactive-type-solid-button-toggle-item($theme, $color-functions);
245
+ @include _colorize-inactive-type-basic-button-toggle-item($theme, $color-functions);
246
+ @include _colorize-inactive-type-outline-button-toggle-item($theme, $color-functions);
247
+ @include _colorize-inactive-type-alpha-button-toggle-item($theme, $color-functions);
248
+ @include _colorize-inactive-type-link-button-toggle-item($theme, $color-functions);
249
+
250
+ .button-group {
251
+ button[matcha-button],
252
+ a[matcha-button] {
253
+ &:focus-visible:not([disabled]):not([disabled="true"]) {
254
+ outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent, #{getAccent($theme)});
255
+ outline-offset: var(--matcha-state-focus-ring-offset, 2px);
256
+ }
257
+ }
258
+ }
259
+
260
+ &[disabled],
261
+ &[disabled]:not([disabled="false"]),
262
+ &[disabled="true"] {
263
+ .button-group {
264
+
265
+ button[matcha-button],
266
+ a[matcha-button] {
267
+ &[active] {
268
+
269
+ &[outline],
270
+ &[outline]:not([outline="false"]),
271
+ &[outline="true"] {
272
+ @include _disabled-outline-button($theme);
273
+ }
274
+
275
+ &[basic],
276
+ &[basic]:not([basic="false"]),
277
+ &[basic="true"] {
278
+ @include _disabled-basic-button($theme);
279
+ }
280
+
281
+ &[alpha],
282
+ &[alpha]:not([alpha="false"]),
283
+ &[alpha="true"] {
284
+ @include _disabled-alpha-button($theme);
285
+ }
286
+
287
+ &[link],
288
+ &[link]:not([link="false"]),
289
+ &[link="true"] {
290
+ @include _disabled-link-button($theme);
291
+ }
292
+
293
+ @include _disabled-solid-button($theme);
294
+ }
295
+ }
296
+ }
297
+
298
+ }
299
+ }
300
+ }
301
+
302
+ // =============================================================================
303
+ // Structural rules — aligned with Figma matcha/button-toggle:
304
+ // Gap=Segmented: buttons share borders (1px hairline between, 2px thin outside)
305
+ // Gap=Separated: buttons stand apart with gap=space/200 and full radius-lg each
306
+ // =============================================================================
307
+ matcha-button-toggle {
308
+ display: block;
309
+ width: 100%;
310
+
311
+ .button-group {
312
+ display: flex;
313
+ width: 100%;
314
+ align-items: stretch;
315
+
316
+ // Children flex-share — each button takes equal width across the row
317
+ > button[matcha-button],
318
+ > a[matcha-button] {
319
+ flex: 1 1 0;
320
+ min-width: 0;
321
+ }
322
+
323
+ // ── Separated (default: gap = space/200) ──────────────────────────
324
+ // Each button keeps its own full radius and border-thin (2px).
325
+ // gap already handled by flex gap via [gap] binding in TS.
326
+
327
+ // ── Segmented (gap = 0): box-shadows dos outline overlappam ───────
328
+ // matcha-button usa box-shadow inset (não border), então usamos
329
+ // margin-left negativo pra sobrepor a borda do vizinho.
330
+ &.gap-0 {
331
+ gap: 0 !important;
332
+
333
+ button[matcha-button],
334
+ a[matcha-button] {
335
+ position: relative;
336
+ border-radius: 0;
337
+
338
+ // First: radius só no lado esquerdo
339
+ &:first-child {
340
+ border-top-left-radius: var(--matcha-radius-lg, 8px);
341
+ border-bottom-left-radius: var(--matcha-radius-lg, 8px);
342
+ }
343
+
344
+ // Last: radius só no lado direito
345
+ &:last-child {
346
+ border-top-right-radius: var(--matcha-radius-lg, 8px);
347
+ border-bottom-right-radius: var(--matcha-radius-lg, 8px);
348
+ }
349
+
350
+ // Overlap de 2px com vizinho anterior pra fundir bordas
351
+ &:not(:first-child) {
352
+ margin-left: calc(-1 * var(--matcha-border-thin, 2px));
353
+ }
354
+
355
+ // Active (filled) fica no topo pra borda não ser recortada
356
+ &[active]:not([active="false"]),
357
+ &:not([outline]):not([basic]):not([ghost])[color] {
358
+ z-index: 1;
359
+ }
360
+ }
361
+ }
362
+ }
363
+ }