@inchurch/matcha-theme 20.0.11 → 20.277.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 (116) hide show
  1. package/abstracts/_colors.scss +404 -404
  2. package/abstracts/_elevation.scss +102 -102
  3. package/abstracts/_functions.scss +1186 -1212
  4. package/abstracts/_media-breakpoint.scss +23 -23
  5. package/abstracts/_theme-api.scss +230 -0
  6. package/abstracts/_typography.scss +127 -127
  7. package/base/_reset.scss +438 -438
  8. package/components/app-page-header.scss +259 -0
  9. package/components/matcha-accordion.scss +293 -157
  10. package/components/matcha-audio-player.scss +1 -2
  11. package/components/matcha-autocomplete.scss +10 -11
  12. package/components/matcha-avatar.scss +173 -33
  13. package/components/matcha-badge.scss +15 -15
  14. package/components/matcha-breadcrumb.scss +231 -126
  15. package/components/matcha-button-toggle.scss +46 -2
  16. package/components/matcha-buttons.scss +908 -784
  17. package/components/matcha-calendar.scss +99 -35
  18. package/components/matcha-cards.scss +58 -33
  19. package/components/matcha-chart-card.scss +5 -12
  20. package/components/matcha-checkbox.scss +191 -490
  21. package/components/matcha-chip.scss +297 -212
  22. package/components/matcha-color-pick.scss +1 -2
  23. package/components/matcha-command-palette.scss +290 -63
  24. package/components/matcha-crop.scss +406 -172
  25. package/components/matcha-date.scss +81 -81
  26. package/components/matcha-divider.scss +86 -31
  27. package/components/matcha-draggable.scss +4 -5
  28. package/components/matcha-drawer.scss +207 -66
  29. package/components/matcha-drop-image.scss +14 -0
  30. package/components/matcha-drop-list.scss +87 -47
  31. package/components/matcha-emoji.scss +2 -2
  32. package/components/matcha-empty-state.scss +195 -83
  33. package/components/matcha-file-uploader.scss +462 -0
  34. package/components/matcha-flag.scss +93 -52
  35. package/components/matcha-footer.scss +67 -164
  36. package/components/matcha-form-field.scss +55 -3
  37. package/components/matcha-form-section.scss +100 -101
  38. package/components/matcha-header.scss +134 -325
  39. package/components/matcha-highlight.scss +65 -197
  40. package/components/matcha-hint-text.scss +25 -4
  41. package/components/matcha-horizontal-tree.scss +316 -317
  42. package/components/matcha-icon.scss +37 -45
  43. package/components/matcha-image.scss +2 -3
  44. package/components/matcha-list.scss +14 -15
  45. package/components/matcha-menu.scss +15 -2
  46. package/components/matcha-modal.scss +59 -86
  47. package/components/matcha-nav.scss +362 -231
  48. package/components/matcha-notification.scss +412 -197
  49. package/components/matcha-option.scss +98 -23
  50. package/components/matcha-page-builder.scss +16 -16
  51. package/components/matcha-paginator.scss +688 -235
  52. package/components/matcha-panel.scss +42 -27
  53. package/components/matcha-profile-card.scss +50 -50
  54. package/components/matcha-progress-bar.scss +257 -153
  55. package/components/matcha-radio.scss +244 -452
  56. package/components/matcha-scrollbar.scss +1 -2
  57. package/components/matcha-scrollbox-shadow.scss +120 -122
  58. package/components/matcha-section.scss +5 -9
  59. package/components/matcha-select-multiple.scss +56 -0
  60. package/components/matcha-select.scss +10 -10
  61. package/components/matcha-skeleton.scss +24 -7
  62. package/components/matcha-slide-toggle.scss +80 -301
  63. package/components/matcha-slider.scss +174 -77
  64. package/components/matcha-snack-bar.scss +123 -131
  65. package/components/matcha-spin.scss +12 -103
  66. package/components/matcha-spinner.scss +76 -57
  67. package/components/matcha-status-pill.scss +82 -0
  68. package/components/matcha-stepper.scss +376 -177
  69. package/components/matcha-table.scss +568 -785
  70. package/components/matcha-tabs.scss +622 -469
  71. package/components/matcha-text-editor.scss +78 -78
  72. package/components/matcha-time.scss +2 -2
  73. package/components/matcha-toolbar.scss +359 -206
  74. package/components/matcha-tooltip.scss +158 -62
  75. package/components/matcha-tree-view.scss +189 -0
  76. package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
  77. package/fonts/manrope/manrope-latin.woff2 +0 -0
  78. package/layout/matcha-page-layout.scss +4 -4
  79. package/main.scss +237 -265
  80. package/package.json +1 -1
  81. package/tokens/_animations-tokens.scss +37 -37
  82. package/tokens/_breakpoints-tokens.scss +35 -26
  83. package/tokens/_color-tokens.scss +1149 -1152
  84. package/tokens/_css-custom-properties.scss +704 -568
  85. package/tokens/_primitives.scss +82 -0
  86. package/tokens/_semantic-aliases.scss +120 -0
  87. package/tokens/_spacing-tokens.scss +94 -94
  88. package/vendors/angular-editor.scss +56 -56
  89. package/vendors/angular-material-fixes.scss +297 -297
  90. package/vendors/charts.scss +92 -92
  91. package/vendors/ng5-slider.scss +56 -56
  92. package/vendors/ngx-material-timepicker.scss +50 -50
  93. package/components/matcha-uploader.scss +0 -215
  94. package/fonts/CircularStd-Black.eot +0 -0
  95. package/fonts/CircularStd-Black.svg +0 -3426
  96. package/fonts/CircularStd-Black.ttf +0 -0
  97. package/fonts/CircularStd-Black.woff +0 -0
  98. package/fonts/CircularStd-Black.woff2 +0 -0
  99. package/fonts/CircularStd-Bold.eot +0 -0
  100. package/fonts/CircularStd-Bold.otf +0 -0
  101. package/fonts/CircularStd-Bold.svg +0 -13532
  102. package/fonts/CircularStd-Bold.ttf +0 -0
  103. package/fonts/CircularStd-Bold.woff +0 -0
  104. package/fonts/CircularStd-Bold.woff2 +0 -0
  105. package/fonts/CircularStd-Medium.eot +0 -0
  106. package/fonts/CircularStd-Medium.otf +0 -0
  107. package/fonts/CircularStd-Medium.svg +0 -13511
  108. package/fonts/CircularStd-Medium.ttf +0 -0
  109. package/fonts/CircularStd-Medium.woff +0 -0
  110. package/fonts/CircularStd-Medium.woff2 +0 -0
  111. package/fonts/CircularStd-Regular.eot +0 -0
  112. package/fonts/CircularStd-Regular.otf +0 -0
  113. package/fonts/CircularStd-Regular.svg +0 -2378
  114. package/fonts/CircularStd-Regular.ttf +0 -0
  115. package/fonts/CircularStd-Regular.woff +0 -0
  116. package/fonts/CircularStd-Regular.woff2 +0 -0
@@ -6,7 +6,8 @@
6
6
  inset: 0;
7
7
  width: 100%;
8
8
  height: 100%;
9
- z-index: 10001;
9
+ // Acima de modal (999) e overlay base (1000) — panel pode ser aberto dentro de modal
10
+ z-index: var(--matcha-z-popover-floating, 10001);
10
11
  pointer-events: none !important; // Permite clicar "através" do overlay (interação com inputs, scroll da página)
11
12
  display: block;
12
13
  }
@@ -20,22 +21,21 @@
20
21
  }
21
22
 
22
23
  .matcha-panel {
23
- // Figma matcha/panel: radius 16 (xl), pad 8/0
24
+ // Figma matcha/panel (14276:67): radius xl, padding 8/0, max-height 280
24
25
  border-radius: var(--matcha-radius-xl, 16px);
25
26
  overflow-y: auto;
26
27
  display: flex;
27
28
  flex-direction: column;
28
- max-height: 280px;
29
+ max-height: var(--matcha-panel-max-height, 280px);
29
30
  width: 100%;
30
31
  padding: var(--matcha-space-100, 8px) 0;
31
32
 
32
- // Animações (fade + scale leve, curva Material standard)
33
+ // Animações (fade + scale leve, easing standard)
33
34
  opacity: 0;
34
- transform: scale(0.96) translateY(-4px);
35
- transition: opacity var(--matcha-duration-fast, 200ms) cubic-bezier(0.4, 0, 0.2, 1),
36
- transform var(--matcha-duration-fast, 200ms) cubic-bezier(0.4, 0, 0.2, 1);
35
+ transform: scale(0.96) translateY(calc(-1 * var(--matcha-space-050, 4px)));
36
+ transition: opacity var(--matcha-duration-fast, 200ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1)),
37
+ transform var(--matcha-duration-fast, 200ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1));
37
38
 
38
- // Position relative (agora contido no pane)
39
39
  position: relative;
40
40
  z-index: auto;
41
41
 
@@ -88,12 +88,12 @@
88
88
  // ── Bottom-sheet em mobile (≤ 600px) ────────────────────────
89
89
  // O panel com calendar vira um painel full-width grudado no rodapé da tela,
90
90
  // com backdrop translúcido e slide-up. Sobrescreve o transform inline do JS.
91
- @media (max-width: 600px) {
91
+ @media (max-width: 639px) {
92
92
  .matcha-panel-overlay:has(.matcha-calendar) {
93
93
  pointer-events: auto !important; // precisa capturar o backdrop
94
- background: rgba(0, 0, 0, 0.4); // backdrop
95
- backdrop-filter: blur(2px);
96
- animation: matcha-panel-backdrop-fade 180ms cubic-bezier(0.4, 0, 0.2, 1);
94
+ background: var(--matcha-scrim-drawer, rgba(0, 0, 0, 0.3));
95
+ backdrop-filter: blur(var(--matcha-scrim-drawer-blur, 4px));
96
+ animation: matcha-panel-backdrop-fade var(--matcha-duration-fast, 200ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1));
97
97
  }
98
98
 
99
99
  .matcha-panel-pane:has(.matcha-calendar) {
@@ -107,7 +107,7 @@
107
107
  min-width: 0 !important;
108
108
  transform: none !important;
109
109
  max-height: 90vh;
110
- animation: matcha-panel-sheet-up 220ms cubic-bezier(0.4, 0, 0.2, 1);
110
+ animation: matcha-panel-sheet-up var(--matcha-duration-normal, 220ms) var(--matcha-easing-standard, cubic-bezier(0.4, 0, 0.2, 1));
111
111
  }
112
112
 
113
113
  // Cartão do calendar ocupa a largura toda, com radius só em cima
@@ -138,30 +138,45 @@
138
138
  }
139
139
 
140
140
  @mixin matcha-panel-theme($theme) {
141
- $is-dark: map.get($theme, is-dark);
142
141
 
143
142
  .matcha-panel {
144
- background: var(--matcha-color-surface, #{getSurface($theme)});
145
- color: var(--matcha-color-fg, #{getForeground($theme)});
143
+ // Floating overlay (dropdown/popover) — surface-card-strong (pure white
144
+ // light, lifted dark). Inline cards usam soft default; panel flutua.
145
+ background: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card, var(--matcha-color-surface)));
146
+ color: var(--matcha-color-text-primary, var(--matcha-color-fg));
146
147
 
147
- // Shadow level 2 (menus, floating)
148
- box-shadow: var(--matcha-shadow-2, #{if($is-dark, $shadow-2-dark, $shadow-2-light)});
149
-
150
- @if $is-dark {
151
- border: var(--matcha-border-hairline, 1px) solid rgba(255, 255, 255, 0.1);
152
- }
148
+ // Shadow level 3 (floating panels — Figma DSV3 elevation/level-3)
149
+ box-shadow: var(--matcha-shadow-3);
150
+ border: var(--matcha-border-hairline, 1px) solid var(--matcha-color-surface-border, rgba(255, 255, 255, 0.12));
153
151
 
154
152
  &:focus-within {
155
- box-shadow: var(--matcha-shadow-3, #{if($is-dark, $shadow-3-dark, $shadow-3-light)});
153
+ box-shadow: var(--matcha-shadow-4);
156
154
  }
157
155
  }
158
156
 
159
- // Responsividade (mantida aqui ou movida para global dependendo da necessidade de tokens)
157
+ // Responsividade em mobile, panel mais compacto
160
158
  @media (max-width: 768px) {
161
159
  .matcha-panel {
162
- max-height: 200px;
163
- min-width: 120px;
164
- border-radius: var(--matcha-radius-md, 4px);
160
+ max-height: var(--matcha-space-1600, 192px);
161
+ min-width: var(--matcha-space-1200, 96px);
162
+ border-radius: var(--matcha-radius-lg, 12px);
165
163
  }
166
164
  }
167
165
  }
166
+
167
+ // ── Forced colors ──
168
+ @media (forced-colors: active) {
169
+ .matcha-panel {
170
+ background: Canvas !important;
171
+ border: 1px solid CanvasText !important;
172
+ box-shadow: none !important;
173
+ }
174
+ }
175
+
176
+ // ── Print ──
177
+ // Panels são floating/popover — somem em papel.
178
+ @media print {
179
+ .matcha-panel {
180
+ display: none !important;
181
+ }
182
+ }
@@ -1,50 +1,50 @@
1
- @use "sass:map";
2
-
3
- // =============================================================================
4
- // matcha-profile-card.scss — Compact profile card (avatar + name + role)
5
- // Aligned with Figma matcha/profile-card:
6
- // Layout: avatar (40px) + text (name + role) — horizontal, pill radius
7
- // Used in: headers, sidebars, user menus
8
- // Angular: matcha-profile-card
9
- // =============================================================================
10
-
11
- @mixin matcha-profile-card-theme($theme) {
12
- .matcha-profile-card {
13
- color: var(--matcha-color-fg, #{getForeground($theme)});
14
- }
15
-
16
- .matcha-profile-card__name {
17
- color: var(--matcha-color-fg, #{getForeground($theme)});
18
- }
19
-
20
- .matcha-profile-card__role {
21
- color: var(--matcha-color-text-hint, #{getBlueGrey($theme)});
22
- }
23
- }
24
-
25
- // ── Layout ──────────────────────────────────────────────────────────────────
26
-
27
- .matcha-profile-card {
28
- display: flex;
29
- align-items: center;
30
- gap: var(--matcha-space-200, 16px);
31
- padding: var(--matcha-space-100, 8px) var(--matcha-space-300, 24px) var(--matcha-space-100, 8px) var(--matcha-space-150, 12px);
32
- border-radius: var(--matcha-radius-pill, 9999px);
33
- }
34
-
35
- .matcha-profile-card__name {
36
- font-family: var(--matcha-font-family);
37
- font-size: var(--matcha-text-body-md, 14px);
38
- font-weight: var(--matcha-weight-medium, 500);
39
- line-height: var(--matcha-leading-body-md, 20px);
40
- white-space: nowrap;
41
- overflow: hidden;
42
- text-overflow: ellipsis;
43
- }
44
-
45
- .matcha-profile-card__role {
46
- font-family: var(--matcha-font-family);
47
- font-size: var(--matcha-text-caption, 11px);
48
- line-height: var(--matcha-leading-caption, 14px);
49
- white-space: nowrap;
50
- }
1
+ @use "sass:map";
2
+
3
+ // =============================================================================
4
+ // matcha-profile-card.scss — Compact profile card (avatar + name + role)
5
+ // Aligned with Figma matcha/profile-card:
6
+ // Layout: avatar (40px) + text (name + role) — horizontal, pill radius
7
+ // Used in: headers, sidebars, user menus
8
+ // Angular: matcha-profile-card
9
+ // =============================================================================
10
+
11
+ @mixin matcha-profile-card-theme($theme) {
12
+ .matcha-profile-card {
13
+ color: var(--matcha-color-fg);
14
+ }
15
+
16
+ .matcha-profile-card__name {
17
+ color: var(--matcha-color-fg);
18
+ }
19
+
20
+ .matcha-profile-card__role {
21
+ color: var(--matcha-color-text-hint);
22
+ }
23
+ }
24
+
25
+ // ── Layout ──────────────────────────────────────────────────────────────────
26
+
27
+ .matcha-profile-card {
28
+ display: flex;
29
+ align-items: center;
30
+ gap: var(--matcha-space-200, 16px);
31
+ padding: var(--matcha-space-100, 8px) var(--matcha-space-300, 24px) var(--matcha-space-100, 8px) var(--matcha-space-150, 12px);
32
+ border-radius: var(--matcha-radius-pill, 9999px);
33
+ }
34
+
35
+ .matcha-profile-card__name {
36
+ font-family: var(--matcha-font-family);
37
+ font-size: var(--matcha-text-body-md, 14px);
38
+ font-weight: var(--matcha-weight-medium, 500);
39
+ line-height: var(--matcha-leading-body-md, 20px);
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+ }
44
+
45
+ .matcha-profile-card__role {
46
+ font-family: var(--matcha-font-family);
47
+ font-size: var(--matcha-text-p-tiny, 11px);
48
+ line-height: var(--matcha-leading-p-tiny, 14px);
49
+ white-space: nowrap;
50
+ }