@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
@@ -1,81 +1,81 @@
1
- // =========================================================
2
- // * Matcha Date Styles
3
- // =========================================================
4
-
5
- @mixin matcha-date-theme($theme) {
6
- .matcha-date-input {
7
- color: var(--matcha-color-fg, #{getForeground($theme)});
8
-
9
- &::placeholder {
10
- color: var(--matcha-color-text-placeholder, #{getBlueGrey($theme)});
11
- }
12
-
13
- &:disabled {
14
- opacity: var(--matcha-opacity-disabled, 0.38);
15
- color: var(--matcha-color-disabled, #{getDisabled($theme)});
16
- }
17
- }
18
- }
19
-
20
- .matcha-date-input {
21
- width: 100%;
22
- font-size: var(--matcha-text-body-md, 14px);
23
- font-family: inherit;
24
- line-height: 1.5;
25
- color: var(--matcha-text-primary, #333);
26
- background-color: transparent;
27
- border: none;
28
- outline: none;
29
- cursor: pointer;
30
-
31
- &::placeholder {
32
- color: var(--matcha-text-placeholder, #999);
33
- }
34
-
35
- &:disabled {
36
- pointer-events: none; cursor: default;
37
- opacity: 0.6;
38
- color: var(--matcha-text-disabled, #999);
39
- }
40
-
41
- // Customização do ícone do calendário
42
- &::-webkit-calendar-picker-indicator {
43
- cursor: pointer;
44
- filter: opacity(0.6);
45
- transition: filter 0.2s ease;
46
-
47
- &:hover {
48
- filter: opacity(1);
49
- }
50
- }
51
-
52
- &:disabled::-webkit-calendar-picker-indicator {
53
- pointer-events: none; cursor: default;
54
- opacity: 0.3;
55
- }
56
-
57
- // Firefox
58
- &::-moz-calendar-picker-indicator {
59
- cursor: pointer;
60
- opacity: 0.6;
61
- transition: opacity 0.2s ease;
62
-
63
- &:hover {
64
- opacity: 1;
65
- }
66
- }
67
-
68
- &:disabled::-moz-calendar-picker-indicator {
69
- pointer-events: none; cursor: default;
70
- opacity: 0.3;
71
- }
72
- }
73
-
74
- // Integração com matcha-form-field
75
- matcha-form-field {
76
- matcha-date {
77
- width: 100%;
78
- display: block;
79
- }
80
- }
81
-
1
+ // =========================================================
2
+ // * Matcha Date Styles
3
+ // =========================================================
4
+
5
+ @mixin matcha-date-theme($theme) {
6
+ .matcha-date-input {
7
+ color: var(--matcha-color-fg);
8
+
9
+ &::placeholder {
10
+ color: var(--matcha-color-text-placeholder);
11
+ }
12
+
13
+ &:disabled {
14
+ opacity: var(--matcha-opacity-disabled, 0.38);
15
+ color: var(--matcha-color-disabled);
16
+ }
17
+ }
18
+ }
19
+
20
+ .matcha-date-input {
21
+ width: 100%;
22
+ font-size: var(--matcha-text-body-md, 14px);
23
+ font-family: inherit;
24
+ line-height: 1.5;
25
+ color: var(--matcha-text-primary, #333);
26
+ background-color: transparent;
27
+ border: none;
28
+ outline: none;
29
+ cursor: pointer;
30
+
31
+ &::placeholder {
32
+ color: var(--matcha-text-placeholder, #999);
33
+ }
34
+
35
+ &:disabled {
36
+ pointer-events: none; cursor: default;
37
+ opacity: 0.6;
38
+ color: var(--matcha-text-disabled, #999);
39
+ }
40
+
41
+ // Customização do ícone do calendário
42
+ &::-webkit-calendar-picker-indicator {
43
+ cursor: pointer;
44
+ filter: opacity(0.6);
45
+ transition: filter 0.2s ease;
46
+
47
+ &:hover {
48
+ filter: opacity(1);
49
+ }
50
+ }
51
+
52
+ &:disabled::-webkit-calendar-picker-indicator {
53
+ pointer-events: none; cursor: default;
54
+ opacity: 0.3;
55
+ }
56
+
57
+ // Firefox
58
+ &::-moz-calendar-picker-indicator {
59
+ cursor: pointer;
60
+ opacity: 0.6;
61
+ transition: opacity 0.2s ease;
62
+
63
+ &:hover {
64
+ opacity: 1;
65
+ }
66
+ }
67
+
68
+ &:disabled::-moz-calendar-picker-indicator {
69
+ pointer-events: none; cursor: default;
70
+ opacity: 0.3;
71
+ }
72
+ }
73
+
74
+ // Integração com matcha-form-field
75
+ matcha-form-field {
76
+ matcha-date {
77
+ width: 100%;
78
+ display: block;
79
+ }
80
+ }
81
+
@@ -1,45 +1,100 @@
1
1
  // =============================================================================
2
- // matcha-divider.scss — Divider line (horizontal/vertical)
3
- // Aligned with Figma matcha/divider: Direção(Horizontal/Vertical) = 2 variants
2
+ // matcha-divider.scss — Figma DSV3 matcha/divider (14905:34)
3
+ // 2 variants visuais: Direção=Horizontal (280×1px) / Vertical (1×80px+)
4
+ // Cor: matcha/color/text/hint @ matcha/opacity/strong (0.3)
5
+ // Tipografia label: matcha/text/caption (11/14)
6
+ // + extensão M3: slot label opcional ("OU", "Nova seção") + inset variant
4
7
  // =============================================================================
5
8
 
6
9
  // ── Structural ──────────────────────────────────────────────────────────────
10
+ // Note: divider não tem animação por design — não precisa de prefers-reduced-motion.
7
11
 
8
12
  matcha-divider {
9
- display: flex;
10
- box-sizing: border-box;
11
- flex-shrink: 0;
12
-
13
- &[direction="horizontal"],
14
- &:not([direction]) {
15
- flex-direction: row;
16
- width: 100%;
17
-
18
- .matcha-divider-line {
19
- width: 100%;
20
- height: 0;
21
- border-top: var(--matcha-border-hairline, 1px) solid;
22
- }
23
- }
13
+ box-sizing: border-box;
14
+ flex-shrink: 0;
24
15
 
25
- &[direction="vertical"] {
26
- flex-direction: column;
27
- align-self: stretch;
16
+ // ── Horizontal default (sem direction ou direction="horizontal") ──
17
+ &[direction="horizontal"],
18
+ &:not([direction]) {
19
+ display: flex;
20
+ flex-direction: row;
21
+ align-items: center;
22
+ width: 100%;
23
+ }
28
24
 
29
- .matcha-divider-line {
30
- width: 0;
31
- height: 100%;
32
- border-left: var(--matcha-border-hairline, 1px) solid;
25
+ // ── Vertical ──
26
+ &[direction="vertical"] {
27
+ display: inline-flex;
28
+ flex-direction: column;
29
+ align-items: center;
30
+ align-self: stretch;
33
31
  }
34
- }
35
32
  }
36
33
 
37
- // ── Theme mixin ─────────────────────────────────────────────────────────────
34
+ // ── Linha 1px hairline com text/hint @ opacity-strong (canônico Figma) ────
35
+ .matcha-divider-line {
36
+ flex: 1 1 auto;
37
+ background-color: var(--matcha-color-text-hint, #9AA0A6);
38
+ opacity: var(--matcha-opacity-strong, 0.3);
39
+ pointer-events: none;
40
+ }
41
+
42
+ matcha-divider[direction="horizontal"] .matcha-divider-line,
43
+ matcha-divider:not([direction]) .matcha-divider-line {
44
+ height: var(--matcha-border-hairline, 1px);
45
+ min-width: var(--matcha-border-hairline, 1px);
46
+ }
47
+
48
+ matcha-divider[direction="vertical"] .matcha-divider-line {
49
+ width: var(--matcha-border-hairline, 1px);
50
+ min-height: var(--matcha-border-hairline, 1px);
51
+ }
52
+
53
+ // ── Inset variants — linha não-completa (M3 List Divider) ──────────────────
54
+ // Útil em listas com avatar (linha começa depois do avatar)
55
+ matcha-divider[direction="horizontal"][inset="start"] .matcha-divider-line:first-of-type,
56
+ matcha-divider:not([direction])[inset="start"] .matcha-divider-line:first-of-type {
57
+ margin-left: var(--matcha-space-700, 56px);
58
+ }
59
+ matcha-divider[direction="horizontal"][inset="end"] .matcha-divider-line:last-of-type,
60
+ matcha-divider:not([direction])[inset="end"] .matcha-divider-line:last-of-type {
61
+ margin-right: var(--matcha-space-300, 24px);
62
+ }
63
+ matcha-divider[direction="horizontal"][inset="both"] .matcha-divider-line,
64
+ matcha-divider:not([direction])[inset="both"] .matcha-divider-line {
65
+ margin-left: var(--matcha-space-300, 24px);
66
+ margin-right: var(--matcha-space-300, 24px);
67
+ }
68
+
69
+ // ── Label slot ──────────────────────────────────────────────────────────────
70
+ // Tipografia: matcha/text/caption (11/14 Regular) text-secondary.
71
+ // Quando vazio (:empty), CSS :has esconde slot + segunda linha.
72
+ .matcha-divider-label {
73
+ display: inline-flex;
74
+ align-items: center;
75
+ justify-content: center;
76
+ flex: 0 0 auto;
77
+ padding: 0 var(--matcha-space-100, 8px);
78
+ font-family: var(--matcha-font-family);
79
+ font-size: var(--matcha-text-p-tiny, 11px);
80
+ font-weight: var(--matcha-weight-regular, 400);
81
+ line-height: var(--matcha-leading-p-tiny, 14px);
82
+ color: var(--matcha-color-text-secondary);
83
+ white-space: nowrap;
84
+ user-select: none;
85
+ }
86
+
87
+ // Vertical: padding em volta vertical (não horizontal)
88
+ matcha-divider[direction="vertical"] .matcha-divider-label {
89
+ padding: var(--matcha-space-100, 8px) 0;
90
+ }
91
+
92
+ // ============================================================================
93
+ // Theme mixin — vazia. Todas as cores/tokens via CSS custom properties globais
94
+ // (já reagem a tema light/dark via _css-custom-properties.scss).
95
+ // Mantida só por compat com main.scss que faz @include matcha-divider-theme($theme).
96
+ // ============================================================================
38
97
 
39
98
  @mixin matcha-divider-theme($theme) {
40
- matcha-divider {
41
- .matcha-divider-line {
42
- border-color: var(--matcha-color-border, #{getGrey($theme)});
43
- }
44
- }
99
+ // Sem overrides — tokens globais bastam.
45
100
  }
@@ -6,19 +6,18 @@
6
6
  // =============================================================================
7
7
 
8
8
  @mixin matcha-draggable-theme($theme) {
9
- $is-dark: map.get($theme, is-dark);
10
9
 
11
10
  .matcha-draggable {
12
11
  .check-with-label:checked + .label-for-check {
13
12
  box-shadow:
14
- 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface, #{getSurface($theme)}),
15
- 0 0 0 10px var(--matcha-color-text-placeholder, #{getBlueGrey($theme)});
13
+ 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
14
+ 0 0 0 10px var(--matcha-color-text-placeholder);
16
15
  }
17
16
 
18
17
  .is-selected {
19
18
  box-shadow:
20
- 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface, #{getSurface($theme)}),
21
- 0 0 0 10px var(--matcha-color-text-placeholder, #{getBlueGrey($theme)});
19
+ 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
20
+ 0 0 0 10px var(--matcha-color-text-placeholder);
22
21
  }
23
22
  }
24
23
  }