@inchurch/matcha-theme 22.39.0 → 22.40.1

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 -650
  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 +643 -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 +658 -658
  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,174 +1,174 @@
1
- // =============================================================================
2
- // matcha-period.scss — Seletor de período (presets + período personalizado)
3
- // Gatilho espelha matcha/field/select (mesma altura/tipografia/caret);
4
- // o conteúdo do painel é lista de matcha-option + editor de duas datas.
5
- // =============================================================================
6
-
7
- // ── Structural (fora do mixin) ──────────────────────────────────────────────
8
-
9
- .matcha-period-trigger {
10
- position: relative;
11
-
12
- &[aria-disabled='true'] {
13
- pointer-events: none;
14
- cursor: default;
15
- }
16
- }
17
-
18
- // ── Theme mixin ─────────────────────────────────────────────────────────────
19
-
20
- @mixin matcha-period-theme($theme) {
21
- matcha-period {
22
- display: block;
23
- width: 100%;
24
- }
25
-
26
- .matcha-period-container {
27
- position: relative;
28
- display: block;
29
- width: 100%;
30
- }
31
-
32
- // ── Gatilho ────────────────────────────────────────────────────────────
33
- .matcha-period-trigger {
34
- display: flex;
35
- align-items: center;
36
- justify-content: space-between;
37
- width: 100%;
38
- padding: 0;
39
- border: none;
40
- background-color: transparent;
41
- cursor: pointer;
42
- box-sizing: border-box;
43
-
44
- &:focus {
45
- outline: none;
46
- }
47
-
48
- &:focus-visible {
49
- outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
50
- outline-offset: var(--matcha-state-focus-ring-offset, 2px);
51
- }
52
- }
53
-
54
- .matcha-period-value {
55
- flex: 1;
56
- text-align: left;
57
- overflow: hidden;
58
- text-overflow: ellipsis;
59
- white-space: nowrap;
60
- color: var(--matcha-color-fg);
61
-
62
- &.matcha-period-placeholder {
63
- color: var(--matcha-color-text-placeholder);
64
- }
65
- }
66
-
67
- .matcha-period-arrow {
68
- display: inline-flex;
69
- align-items: center;
70
- justify-content: center;
71
- flex: none;
72
- width: var(--matcha-icon-size-sm, 16px);
73
- height: var(--matcha-icon-size-sm, 16px);
74
- margin-left: var(--matcha-space-100, 8px);
75
- color: var(--matcha-color-text-placeholder);
76
- transition: transform var(--matcha-duration-fast, 200ms) ease;
77
-
78
- &.matcha-period-arrow-open {
79
- transform: rotate(180deg);
80
- }
81
-
82
- @media (prefers-reduced-motion: reduce) {
83
- transition: none;
84
- }
85
- }
86
-
87
- // Tipografia do valor por size — mesma escala do matcha-select/input:
88
- // SM body-sm 12/16 · MD 14/20 · LG 16/24.
89
- matcha-form-field[size='sm'] .matcha-period-value,
90
- matcha-form-field[size='tiny'] .matcha-period-value,
91
- matcha-form-field[size='small'] .matcha-period-value {
92
- font-size: var(--matcha-text-body-sm, 12px);
93
- line-height: var(--matcha-leading-body-sm, 16px);
94
- }
95
-
96
- matcha-form-field[size='md'] .matcha-period-value,
97
- matcha-form-field[size='medium'] .matcha-period-value {
98
- font-size: var(--matcha-text-body-md, 14px);
99
- line-height: var(--matcha-leading-body-md, 20px);
100
- }
101
-
102
- matcha-form-field[size='lg'] .matcha-period-value,
103
- matcha-form-field[size='large'] .matcha-period-value,
104
- matcha-form-field[size='huge'] .matcha-period-value {
105
- font-size: var(--matcha-text-body-lg, 16px);
106
- line-height: var(--matcha-leading-body-lg, 24px);
107
- }
108
-
109
- // O caret NÃO escala por size (fica 16 em todos os tiers): o glyph vem do
110
- // <matcha-icon size="sm">, então crescer só a caixa deixaria o ícone flutuando
111
- // no meio. Escalar de verdade (16/20/24, como o matcha-select) depende do field
112
- // repassar `size` pro matcha-period — backlog matcha-period-002.
113
-
114
- // Disabled: caret esmaecido (o esmaecimento do texto vem do matcha-form-field)
115
- matcha-form-field[disabled] .matcha-period-arrow,
116
- matcha-form-field[disabled='true'] .matcha-period-arrow,
117
- .matcha-period-disabled .matcha-period-arrow {
118
- color: var(--matcha-color-interaction-disabled-fg);
119
- }
120
-
121
- // ── Conteúdo do painel ────────────────────────────────────────────────
122
- .matcha-period-panel {
123
- display: flex;
124
- flex-direction: column;
125
- padding: var(--matcha-space-050, 4px) 0;
126
- }
127
-
128
- .matcha-period-presets {
129
- display: flex;
130
- flex-direction: column;
131
- }
132
-
133
- // Atalho "Período personalizado" — ghost com texto accent. O ghost canônico
134
- // usa text-primary (intent do Figma pro botão); aqui o atalho precisa ler como
135
- // ação secundária dentro do painel, e o slot --matcha-button-ghost-text é o
136
- // ponto de override previsto pelo matcha-button (token, não hex).
137
- .matcha-period-custom-toggle {
138
- --matcha-button-ghost-text: var(--matcha-color-accent);
139
- align-self: flex-start;
140
- margin: var(--matcha-space-050, 4px) var(--matcha-space-150, 12px);
141
- }
142
-
143
- .matcha-period-custom {
144
- display: flex;
145
- flex-direction: column;
146
- gap: var(--matcha-space-150, 12px);
147
- padding: 0 var(--matcha-space-150, 12px) var(--matcha-space-150, 12px);
148
- }
149
-
150
- .matcha-period-custom-fields {
151
- display: grid;
152
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
153
- gap: var(--matcha-space-100, 8px);
154
- }
155
-
156
- .matcha-period-error {
157
- margin: 0;
158
- color: var(--matcha-color-danger);
159
- font-size: var(--matcha-text-body-sm, 12px);
160
- line-height: var(--matcha-leading-body-sm, 16px);
161
- }
162
-
163
- .matcha-period-apply {
164
- width: 100%;
165
- }
166
-
167
- // Mobile: uma data por linha sempre — 2 colunas caberiam em largura, mas
168
- // ficam apertadas demais pro alvo de toque do ícone de calendário.
169
- @media (max-width: 639px) {
170
- .matcha-period-custom-fields {
171
- grid-template-columns: 1fr;
172
- }
173
- }
174
- }
1
+ // =============================================================================
2
+ // matcha-period.scss — Seletor de período (presets + período personalizado)
3
+ // Gatilho espelha matcha/field/select (mesma altura/tipografia/caret);
4
+ // o conteúdo do painel é lista de matcha-option + editor de duas datas.
5
+ // =============================================================================
6
+
7
+ // ── Structural (fora do mixin) ──────────────────────────────────────────────
8
+
9
+ .matcha-period-trigger {
10
+ position: relative;
11
+
12
+ &[aria-disabled='true'] {
13
+ pointer-events: none;
14
+ cursor: default;
15
+ }
16
+ }
17
+
18
+ // ── Theme mixin ─────────────────────────────────────────────────────────────
19
+
20
+ @mixin matcha-period-theme($theme) {
21
+ matcha-period {
22
+ display: block;
23
+ width: 100%;
24
+ }
25
+
26
+ .matcha-period-container {
27
+ position: relative;
28
+ display: block;
29
+ width: 100%;
30
+ }
31
+
32
+ // ── Gatilho ────────────────────────────────────────────────────────────
33
+ .matcha-period-trigger {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: space-between;
37
+ width: 100%;
38
+ padding: 0;
39
+ border: none;
40
+ background-color: transparent;
41
+ cursor: pointer;
42
+ box-sizing: border-box;
43
+
44
+ &:focus {
45
+ outline: none;
46
+ }
47
+
48
+ &:focus-visible {
49
+ outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
50
+ outline-offset: var(--matcha-state-focus-ring-offset, 2px);
51
+ }
52
+ }
53
+
54
+ .matcha-period-value {
55
+ flex: 1;
56
+ text-align: left;
57
+ overflow: hidden;
58
+ text-overflow: ellipsis;
59
+ white-space: nowrap;
60
+ color: var(--matcha-color-fg);
61
+
62
+ &.matcha-period-placeholder {
63
+ color: var(--matcha-color-text-placeholder);
64
+ }
65
+ }
66
+
67
+ .matcha-period-arrow {
68
+ display: inline-flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ flex: none;
72
+ width: var(--matcha-icon-size-sm, 16px);
73
+ height: var(--matcha-icon-size-sm, 16px);
74
+ margin-left: var(--matcha-space-100, 8px);
75
+ color: var(--matcha-color-text-placeholder);
76
+ transition: transform var(--matcha-duration-fast, 200ms) ease;
77
+
78
+ &.matcha-period-arrow-open {
79
+ transform: rotate(180deg);
80
+ }
81
+
82
+ @media (prefers-reduced-motion: reduce) {
83
+ transition: none;
84
+ }
85
+ }
86
+
87
+ // Tipografia do valor por size — mesma escala do matcha-select/input:
88
+ // SM body-sm 12/16 · MD 14/20 · LG 16/24.
89
+ matcha-form-field[size='sm'] .matcha-period-value,
90
+ matcha-form-field[size='tiny'] .matcha-period-value,
91
+ matcha-form-field[size='small'] .matcha-period-value {
92
+ font-size: var(--matcha-text-body-sm, 12px);
93
+ line-height: var(--matcha-leading-body-sm, 16px);
94
+ }
95
+
96
+ matcha-form-field[size='md'] .matcha-period-value,
97
+ matcha-form-field[size='medium'] .matcha-period-value {
98
+ font-size: var(--matcha-text-body-md, 14px);
99
+ line-height: var(--matcha-leading-body-md, 20px);
100
+ }
101
+
102
+ matcha-form-field[size='lg'] .matcha-period-value,
103
+ matcha-form-field[size='large'] .matcha-period-value,
104
+ matcha-form-field[size='huge'] .matcha-period-value {
105
+ font-size: var(--matcha-text-body-lg, 16px);
106
+ line-height: var(--matcha-leading-body-lg, 24px);
107
+ }
108
+
109
+ // O caret NÃO escala por size (fica 16 em todos os tiers): o glyph vem do
110
+ // <matcha-icon size="sm">, então crescer só a caixa deixaria o ícone flutuando
111
+ // no meio. Escalar de verdade (16/20/24, como o matcha-select) depende do field
112
+ // repassar `size` pro matcha-period — backlog matcha-period-002.
113
+
114
+ // Disabled: caret esmaecido (o esmaecimento do texto vem do matcha-form-field)
115
+ matcha-form-field[disabled] .matcha-period-arrow,
116
+ matcha-form-field[disabled='true'] .matcha-period-arrow,
117
+ .matcha-period-disabled .matcha-period-arrow {
118
+ color: var(--matcha-color-interaction-disabled-fg);
119
+ }
120
+
121
+ // ── Conteúdo do painel ────────────────────────────────────────────────
122
+ .matcha-period-panel {
123
+ display: flex;
124
+ flex-direction: column;
125
+ padding: var(--matcha-space-050, 4px) 0;
126
+ }
127
+
128
+ .matcha-period-presets {
129
+ display: flex;
130
+ flex-direction: column;
131
+ }
132
+
133
+ // Atalho "Período personalizado" — ghost com texto accent. O ghost canônico
134
+ // usa text-primary (intent do Figma pro botão); aqui o atalho precisa ler como
135
+ // ação secundária dentro do painel, e o slot --matcha-button-ghost-text é o
136
+ // ponto de override previsto pelo matcha-button (token, não hex).
137
+ .matcha-period-custom-toggle {
138
+ --matcha-button-ghost-text: var(--matcha-color-accent);
139
+ align-self: flex-start;
140
+ margin: var(--matcha-space-050, 4px) var(--matcha-space-150, 12px);
141
+ }
142
+
143
+ .matcha-period-custom {
144
+ display: flex;
145
+ flex-direction: column;
146
+ gap: var(--matcha-space-150, 12px);
147
+ padding: 0 var(--matcha-space-150, 12px) var(--matcha-space-150, 12px);
148
+ }
149
+
150
+ .matcha-period-custom-fields {
151
+ display: grid;
152
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
153
+ gap: var(--matcha-space-100, 8px);
154
+ }
155
+
156
+ .matcha-period-error {
157
+ margin: 0;
158
+ color: var(--matcha-color-danger);
159
+ font-size: var(--matcha-text-body-sm, 12px);
160
+ line-height: var(--matcha-leading-body-sm, 16px);
161
+ }
162
+
163
+ .matcha-period-apply {
164
+ width: 100%;
165
+ }
166
+
167
+ // Mobile: uma data por linha sempre — 2 colunas caberiam em largura, mas
168
+ // ficam apertadas demais pro alvo de toque do ícone de calendário.
169
+ @media (max-width: 639px) {
170
+ .matcha-period-custom-fields {
171
+ grid-template-columns: 1fr;
172
+ }
173
+ }
174
+ }
@@ -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);
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
- }
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
+ }