@inchurch/matcha-theme 22.38.2 → 22.38.4

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 (93) hide show
  1. package/abstracts/_colors.scss +291 -291
  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 +224 -224
  6. package/abstracts/_typography.scss +128 -128
  7. package/base/_reset.scss +487 -487
  8. package/components/app-page-header.scss +260 -260
  9. package/components/matcha-accordion.scss +297 -297
  10. package/components/matcha-audio-player.scss +31 -31
  11. package/components/matcha-autocomplete.scss +145 -145
  12. package/components/matcha-avatar.scss +426 -426
  13. package/components/matcha-badge.scss +120 -120
  14. package/components/matcha-breadcrumb.scss +231 -231
  15. package/components/matcha-button-toggle.scss +484 -484
  16. package/components/matcha-buttons.scss +973 -973
  17. package/components/matcha-calendar.scss +253 -253
  18. package/components/matcha-cards.scss +212 -212
  19. package/components/matcha-chart-card.scss +53 -53
  20. package/components/matcha-checkbox.scss +266 -266
  21. package/components/matcha-chip.scss +311 -311
  22. package/components/matcha-color-pick.scss +34 -34
  23. package/components/matcha-command-palette.scss +316 -316
  24. package/components/matcha-crop.scss +419 -419
  25. package/components/matcha-date.scss +81 -81
  26. package/components/matcha-divider.scss +100 -100
  27. package/components/matcha-draggable.scss +23 -23
  28. package/components/matcha-drawer.scss +376 -376
  29. package/components/matcha-drop-image.scss +14 -14
  30. package/components/matcha-drop-list.scss +430 -430
  31. package/components/matcha-emoji.scss +69 -69
  32. package/components/matcha-empty-state.scss +230 -230
  33. package/components/matcha-file-uploader.scss +650 -637
  34. package/components/matcha-flag.scss +103 -103
  35. package/components/matcha-footer.scss +91 -91
  36. package/components/matcha-form-field.scss +883 -883
  37. package/components/matcha-form-section.scss +100 -100
  38. package/components/matcha-header.scss +135 -135
  39. package/components/matcha-highlight.scss +164 -164
  40. package/components/matcha-hint-text.scss +90 -90
  41. package/components/matcha-horizontal-tree.scss +247 -247
  42. package/components/matcha-icon.scss +111 -111
  43. package/components/matcha-image.scss +60 -60
  44. package/components/matcha-list.scss +211 -211
  45. package/components/matcha-menu.scss +99 -99
  46. package/components/matcha-modal.scss +210 -210
  47. package/components/matcha-nav.scss +770 -770
  48. package/components/matcha-notification.scss +417 -417
  49. package/components/matcha-option.scss +170 -170
  50. package/components/matcha-page-builder.scss +4196 -4196
  51. package/components/matcha-paginator.scss +699 -699
  52. package/components/matcha-panel.scss +216 -216
  53. package/components/matcha-period.scss +174 -174
  54. package/components/matcha-profile-card.scss +50 -50
  55. package/components/matcha-progress-bar.scss +355 -355
  56. package/components/matcha-radio.scss +325 -325
  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 +629 -629
  63. package/components/matcha-skeleton.scss +182 -182
  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-stepper.scss +376 -376
  70. package/components/matcha-table-cell.scss +107 -107
  71. package/components/matcha-table.scss +722 -722
  72. package/components/matcha-tabs.scss +642 -642
  73. package/components/matcha-text-editor.scss +111 -111
  74. package/components/matcha-time.scss +33 -33
  75. package/components/matcha-timepicker.scss +13 -13
  76. package/components/matcha-toolbar.scss +366 -366
  77. package/components/matcha-tooltip.scss +235 -235
  78. package/components/matcha-tree-view.scss +636 -636
  79. package/layout/matcha-page-layout.scss +778 -778
  80. package/main.scss +334 -334
  81. package/package.json +1 -1
  82. package/tokens/_animations-tokens.scss +37 -37
  83. package/tokens/_breakpoints-tokens.scss +35 -35
  84. package/tokens/_color-tokens.scss +288 -288
  85. package/tokens/_elevation-tokens.scss +33 -33
  86. package/tokens/_emit-tokens.scss +329 -329
  87. package/tokens/_material-palette.scss +1149 -1149
  88. package/tokens/_primitives.scss +98 -98
  89. package/tokens/_semantic-aliases.scss +120 -120
  90. package/tokens/_spacing-tokens.scss +94 -94
  91. package/tokens/_static-tokens.scss +137 -137
  92. package/tokens/_typography-tokens.scss +65 -65
  93. package/vendors/charts.scss +90 -90
@@ -1,164 +1,164 @@
1
- @use "../abstracts/media-breakpoint" as *;
2
- @use "../abstracts/functions" as *;
3
- @use "../tokens/breakpoints-tokens" as *;
4
- @use "sass:map";
5
-
6
- // =============================================================================
7
- // matcha-spin.scss — Circular progress/spinner (determinate + indeterminate)
8
- // Angular: matcha-spin
9
- // =============================================================================
10
-
11
- @mixin generate-matcha-spin-size-classes($helper-breakpoints) {
12
- @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
13
- @include media-breakpoint($materialBreakpoint) {
14
- $infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
15
-
16
- &[size#{$infix}="tiny"] {
17
- width: px-to-rem(24px);
18
- height: px-to-rem(24px);
19
- }
20
-
21
- &[size#{$infix}="small"] {
22
- width: px-to-rem(32px);
23
- height: px-to-rem(32px);
24
- }
25
-
26
- &[size#{$infix}="medium"] {
27
- width: px-to-rem(40px);
28
- height: px-to-rem(40px);
29
- }
30
-
31
- &[size#{$infix}="large"] {
32
- width: px-to-rem(48px);
33
- height: px-to-rem(48px);
34
- }
35
-
36
- &[size#{$infix}="huge"] {
37
- width: px-to-rem(56px);
38
- height: px-to-rem(56px);
39
- }
40
- }
41
- }
42
- }
43
-
44
- @mixin matcha-spin($theme) {
45
-
46
- matcha-spin:not([color]) .spin-progress {
47
- stroke: var(--matcha-color-accent);
48
- }
49
-
50
- matcha-spin {
51
-
52
- // Cores nomeadas de paleta (red/pink/blue/… 19 famílias) DEPRECADAS na migração
53
- // runtime-theming (2026-06-19): sem uso real (só doc auto-gerada). Use as semânticas
54
- // abaixo (primary/accent/feedback). Remove a dependência dos getters de paleta
55
- // (getRed…getBlueGrey, shade mode-dependente da paleta Material legada).
56
-
57
- // Accent
58
- &[color="accent"] .spin-progress {
59
- stroke: var(--matcha-color-accent);
60
- }
61
-
62
- // Primary
63
- &[color="primary"] .spin-progress {
64
- stroke: var(--matcha-color-primary);
65
- }
66
-
67
- // Success
68
- &[color="success"] .spin-progress {
69
- stroke: var(--matcha-color-success);
70
- }
71
-
72
- // Warn
73
- &[color="warn"] .spin-progress {
74
- stroke: var(--matcha-color-warn);
75
- }
76
-
77
- // Danger
78
- &[color="danger"] .spin-progress {
79
- stroke: var(--matcha-color-danger);
80
- }
81
-
82
- // Info
83
- &[color="info"] .spin-progress {
84
- stroke: var(--matcha-color-info);
85
- }
86
-
87
- .spin-placeholder {
88
- stroke: var(--matcha-color-disabled);
89
- }
90
-
91
- &:not([size]) {
92
- width: px-to-rem(40px);
93
- height: px-to-rem(40px);
94
- }
95
-
96
- @include generate-matcha-spin-size-classes($helper-breakpoints);
97
-
98
- }
99
- }
100
-
101
- // ── Layout ──────────────────────────────────────────────────────────────────
102
-
103
- matcha-spin:not([progress]) .spin-progress {
104
- animation:
105
- matcha-spin-rotate 1.5s linear infinite,
106
- matcha-spin-dash 1.5s ease-in-out infinite;
107
- }
108
-
109
- .matcha-spin {
110
- display: inline-block;
111
- position: relative;
112
-
113
- svg {
114
- transform: rotate(-90deg);
115
- width: 100%;
116
- height: 100%;
117
- }
118
-
119
- .spin-placeholder {
120
- fill: none;
121
- }
122
-
123
- .spin-progress {
124
- fill: none;
125
- stroke-linecap: round;
126
- transform-origin: center;
127
- transition: stroke-dashoffset var(--matcha-duration-moderate, 300ms) linear;
128
- }
129
-
130
- @keyframes matcha-spin-rotate {
131
- 100% {
132
- transform: rotate(360deg);
133
- }
134
- }
135
-
136
- @keyframes matcha-spin-dash {
137
- 0% {
138
- stroke-dasharray: 1, 200;
139
- stroke-dashoffset: 0;
140
- }
141
-
142
- 50% {
143
- stroke-dasharray: 100, 200;
144
- stroke-dashoffset: -15;
145
- }
146
-
147
- 100% {
148
- stroke-dasharray: 100, 200;
149
- stroke-dashoffset: -200;
150
- }
151
- }
152
- }
153
-
154
- // ── Reduced motion ──────────────────────────────────────────────────────────
155
-
156
- @media (prefers-reduced-motion: reduce) {
157
- matcha-spin:not([progress]) .spin-progress {
158
- animation: none;
159
- }
160
-
161
- .matcha-spin .spin-progress {
162
- transition: none;
163
- }
164
- }
1
+ @use "../abstracts/media-breakpoint" as *;
2
+ @use "../abstracts/functions" as *;
3
+ @use "../tokens/breakpoints-tokens" as *;
4
+ @use "sass:map";
5
+
6
+ // =============================================================================
7
+ // matcha-spin.scss — Circular progress/spinner (determinate + indeterminate)
8
+ // Angular: matcha-spin
9
+ // =============================================================================
10
+
11
+ @mixin generate-matcha-spin-size-classes($helper-breakpoints) {
12
+ @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
13
+ @include media-breakpoint($materialBreakpoint) {
14
+ $infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
15
+
16
+ &[size#{$infix}="tiny"] {
17
+ width: px-to-rem(24px);
18
+ height: px-to-rem(24px);
19
+ }
20
+
21
+ &[size#{$infix}="small"] {
22
+ width: px-to-rem(32px);
23
+ height: px-to-rem(32px);
24
+ }
25
+
26
+ &[size#{$infix}="medium"] {
27
+ width: px-to-rem(40px);
28
+ height: px-to-rem(40px);
29
+ }
30
+
31
+ &[size#{$infix}="large"] {
32
+ width: px-to-rem(48px);
33
+ height: px-to-rem(48px);
34
+ }
35
+
36
+ &[size#{$infix}="huge"] {
37
+ width: px-to-rem(56px);
38
+ height: px-to-rem(56px);
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ @mixin matcha-spin($theme) {
45
+
46
+ matcha-spin:not([color]) .spin-progress {
47
+ stroke: var(--matcha-color-accent);
48
+ }
49
+
50
+ matcha-spin {
51
+
52
+ // Cores nomeadas de paleta (red/pink/blue/… 19 famílias) DEPRECADAS na migração
53
+ // runtime-theming (2026-06-19): sem uso real (só doc auto-gerada). Use as semânticas
54
+ // abaixo (primary/accent/feedback). Remove a dependência dos getters de paleta
55
+ // (getRed…getBlueGrey, shade mode-dependente da paleta Material legada).
56
+
57
+ // Accent
58
+ &[color="accent"] .spin-progress {
59
+ stroke: var(--matcha-color-accent);
60
+ }
61
+
62
+ // Primary
63
+ &[color="primary"] .spin-progress {
64
+ stroke: var(--matcha-color-primary);
65
+ }
66
+
67
+ // Success
68
+ &[color="success"] .spin-progress {
69
+ stroke: var(--matcha-color-success);
70
+ }
71
+
72
+ // Warn
73
+ &[color="warn"] .spin-progress {
74
+ stroke: var(--matcha-color-warn);
75
+ }
76
+
77
+ // Danger
78
+ &[color="danger"] .spin-progress {
79
+ stroke: var(--matcha-color-danger);
80
+ }
81
+
82
+ // Info
83
+ &[color="info"] .spin-progress {
84
+ stroke: var(--matcha-color-info);
85
+ }
86
+
87
+ .spin-placeholder {
88
+ stroke: var(--matcha-color-disabled);
89
+ }
90
+
91
+ &:not([size]) {
92
+ width: px-to-rem(40px);
93
+ height: px-to-rem(40px);
94
+ }
95
+
96
+ @include generate-matcha-spin-size-classes($helper-breakpoints);
97
+
98
+ }
99
+ }
100
+
101
+ // ── Layout ──────────────────────────────────────────────────────────────────
102
+
103
+ matcha-spin:not([progress]) .spin-progress {
104
+ animation:
105
+ matcha-spin-rotate 1.5s linear infinite,
106
+ matcha-spin-dash 1.5s ease-in-out infinite;
107
+ }
108
+
109
+ .matcha-spin {
110
+ display: inline-block;
111
+ position: relative;
112
+
113
+ svg {
114
+ transform: rotate(-90deg);
115
+ width: 100%;
116
+ height: 100%;
117
+ }
118
+
119
+ .spin-placeholder {
120
+ fill: none;
121
+ }
122
+
123
+ .spin-progress {
124
+ fill: none;
125
+ stroke-linecap: round;
126
+ transform-origin: center;
127
+ transition: stroke-dashoffset var(--matcha-duration-moderate, 300ms) linear;
128
+ }
129
+
130
+ @keyframes matcha-spin-rotate {
131
+ 100% {
132
+ transform: rotate(360deg);
133
+ }
134
+ }
135
+
136
+ @keyframes matcha-spin-dash {
137
+ 0% {
138
+ stroke-dasharray: 1, 200;
139
+ stroke-dashoffset: 0;
140
+ }
141
+
142
+ 50% {
143
+ stroke-dasharray: 100, 200;
144
+ stroke-dashoffset: -15;
145
+ }
146
+
147
+ 100% {
148
+ stroke-dasharray: 100, 200;
149
+ stroke-dashoffset: -200;
150
+ }
151
+ }
152
+ }
153
+
154
+ // ── Reduced motion ──────────────────────────────────────────────────────────
155
+
156
+ @media (prefers-reduced-motion: reduce) {
157
+ matcha-spin:not([progress]) .spin-progress {
158
+ animation: none;
159
+ }
160
+
161
+ .matcha-spin .spin-progress {
162
+ transition: none;
163
+ }
164
+ }
@@ -1,97 +1,97 @@
1
- // =============================================================================
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.
12
- // =============================================================================
13
-
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
- );
23
-
24
- matcha-spinner {
25
- --matcha-spinner-fill: var(--matcha-color-accent);
26
-
27
- @each $name, $fn in $semantic-colors {
28
- &[color="#{$name}"] {
29
- --matcha-spinner-fill: var(--matcha-color-#{$name});
30
- }
31
- }
32
- }
33
- }
34
-
35
- .matcha-spinner {
36
- display: inline-flex;
37
- align-items: center;
38
- justify-content: center;
39
- line-height: 0;
40
-
41
- .spinner-wrapper {
42
- display: inline-flex;
43
- align-items: center;
44
- justify-content: center;
45
- }
46
-
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);
54
- }
55
-
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;
63
- }
64
- }
65
-
66
- // ── High contrast ──────────────────────────────────────────────────────────
67
- @media (prefers-contrast: high) {
68
- .matcha-spinner .spinner-track {
69
- stroke: var(--matcha-color-text-secondary, #888);
70
- }
71
- }
72
-
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
- }
80
-
81
- // ── Reduced motion ──
82
- @media (prefers-reduced-motion: reduce) {
83
- .matcha-spinner {
84
- animation: none !important;
85
-
86
- .spinner-circle { animation: none !important; }
87
- }
88
- }
89
-
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;
96
- }
97
- }
1
+ // =============================================================================
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.
12
+ // =============================================================================
13
+
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
+ );
23
+
24
+ matcha-spinner {
25
+ --matcha-spinner-fill: var(--matcha-color-accent);
26
+
27
+ @each $name, $fn in $semantic-colors {
28
+ &[color="#{$name}"] {
29
+ --matcha-spinner-fill: var(--matcha-color-#{$name});
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ .matcha-spinner {
36
+ display: inline-flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ line-height: 0;
40
+
41
+ .spinner-wrapper {
42
+ display: inline-flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ }
46
+
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);
54
+ }
55
+
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;
63
+ }
64
+ }
65
+
66
+ // ── High contrast ──────────────────────────────────────────────────────────
67
+ @media (prefers-contrast: high) {
68
+ .matcha-spinner .spinner-track {
69
+ stroke: var(--matcha-color-text-secondary, #888);
70
+ }
71
+ }
72
+
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
+ }
80
+
81
+ // ── Reduced motion ──
82
+ @media (prefers-reduced-motion: reduce) {
83
+ .matcha-spinner {
84
+ animation: none !important;
85
+
86
+ .spinner-circle { animation: none !important; }
87
+ }
88
+ }
89
+
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;
96
+ }
97
+ }