@inchurch/matcha-theme 21.3.3 → 22.0.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 (93) hide show
  1. package/abstracts/_colors.scss +236 -229
  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 +445 -432
  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 +384 -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-crop.scss +406 -406
  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 +471 -471
  34. package/components/matcha-flag.scss +103 -103
  35. package/components/matcha-footer.scss +91 -91
  36. package/components/matcha-form-field.scss +606 -606
  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 +316 -316
  42. package/components/matcha-icon.scss +98 -98
  43. package/components/matcha-image.scss +61 -61
  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 +581 -581
  48. package/components/matcha-notification.scss +413 -413
  49. package/components/matcha-option.scss +170 -170
  50. package/components/matcha-page-builder.scss +4196 -4196
  51. package/components/matcha-paginator.scss +689 -689
  52. package/components/matcha-panel.scss +194 -194
  53. package/components/matcha-profile-card.scss +50 -50
  54. package/components/matcha-progress-bar.scss +313 -313
  55. package/components/matcha-radio.scss +320 -320
  56. package/components/matcha-ripple.scss +7 -7
  57. package/components/matcha-scrollbar.scss +33 -33
  58. package/components/matcha-scrollbox-shadow.scss +120 -120
  59. package/components/matcha-section.scss +102 -102
  60. package/components/matcha-select-multiple.scss +56 -56
  61. package/components/matcha-select.scss +667 -667
  62. package/components/matcha-skeleton.scss +155 -155
  63. package/components/matcha-slide-toggle.scss +369 -369
  64. package/components/matcha-slider.scss +285 -285
  65. package/components/matcha-snack-bar.scss +259 -259
  66. package/components/matcha-spin.scss +164 -164
  67. package/components/matcha-spinner.scss +97 -97
  68. package/components/matcha-status-pill.scss +38 -18
  69. package/components/matcha-stepper.scss +376 -376
  70. package/components/matcha-table-cell.scss +74 -41
  71. package/components/matcha-table.scss +579 -578
  72. package/components/matcha-tabs.scss +600 -600
  73. package/components/matcha-text-editor.scss +105 -105
  74. package/components/matcha-time.scss +33 -33
  75. package/components/matcha-timepicker.scss +13 -13
  76. package/components/matcha-toolbar.scss +359 -359
  77. package/components/matcha-tooltip.scss +224 -224
  78. package/components/matcha-tree-view.scss +257 -212
  79. package/layout/matcha-page-layout.scss +778 -778
  80. package/main.scss +329 -329
  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 +274 -261
  85. package/tokens/_elevation-tokens.scss +33 -33
  86. package/tokens/_emit-tokens.scss +324 -324
  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,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);
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
+ // =========================================================
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,100 +1,100 @@
1
- // =============================================================================
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
7
- // =============================================================================
8
-
9
- // ── Structural ──────────────────────────────────────────────────────────────
10
- // Note: divider não tem animação por design — não precisa de prefers-reduced-motion.
11
-
12
- matcha-divider {
13
- box-sizing: border-box;
14
- flex-shrink: 0;
15
-
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
- }
24
-
25
- // ── Vertical ──
26
- &[direction="vertical"] {
27
- display: inline-flex;
28
- flex-direction: column;
29
- align-items: center;
30
- align-self: stretch;
31
- }
32
- }
33
-
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
- // ============================================================================
97
-
98
- @mixin matcha-divider-theme($theme) {
99
- // Sem overrides — tokens globais bastam.
100
- }
1
+ // =============================================================================
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
7
+ // =============================================================================
8
+
9
+ // ── Structural ──────────────────────────────────────────────────────────────
10
+ // Note: divider não tem animação por design — não precisa de prefers-reduced-motion.
11
+
12
+ matcha-divider {
13
+ box-sizing: border-box;
14
+ flex-shrink: 0;
15
+
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
+ }
24
+
25
+ // ── Vertical ──
26
+ &[direction="vertical"] {
27
+ display: inline-flex;
28
+ flex-direction: column;
29
+ align-items: center;
30
+ align-self: stretch;
31
+ }
32
+ }
33
+
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
+ // ============================================================================
97
+
98
+ @mixin matcha-divider-theme($theme) {
99
+ // Sem overrides — tokens globais bastam.
100
+ }
@@ -1,23 +1,23 @@
1
- @use "sass:map";
2
-
3
- // =============================================================================
4
- // matcha-draggable.scss — Draggable item with selection state
5
- // Angular: matcha-draggable
6
- // =============================================================================
7
-
8
- @mixin matcha-draggable-theme($theme) {
9
-
10
- .matcha-draggable {
11
- .check-with-label:checked + .label-for-check {
12
- box-shadow:
13
- 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
14
- 0 0 0 10px var(--matcha-color-text-placeholder);
15
- }
16
-
17
- .is-selected {
18
- box-shadow:
19
- 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
20
- 0 0 0 10px var(--matcha-color-text-placeholder);
21
- }
22
- }
23
- }
1
+ @use "sass:map";
2
+
3
+ // =============================================================================
4
+ // matcha-draggable.scss — Draggable item with selection state
5
+ // Angular: matcha-draggable
6
+ // =============================================================================
7
+
8
+ @mixin matcha-draggable-theme($theme) {
9
+
10
+ .matcha-draggable {
11
+ .check-with-label:checked + .label-for-check {
12
+ box-shadow:
13
+ 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
14
+ 0 0 0 10px var(--matcha-color-text-placeholder);
15
+ }
16
+
17
+ .is-selected {
18
+ box-shadow:
19
+ 0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
20
+ 0 0 0 10px var(--matcha-color-text-placeholder);
21
+ }
22
+ }
23
+ }