matcha-theme 20.207.0 → 20.209.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.
package/base/_reset.scss CHANGED
@@ -28,7 +28,7 @@ How to use
28
28
  $foreground: map-get($theme, foreground);
29
29
 
30
30
  a {
31
- color: map-get($accent, default);
31
+ color: getBlue($theme);
32
32
  }
33
33
 
34
34
  pre > code{
@@ -36,13 +36,13 @@ How to use
36
36
  }
37
37
  code {
38
38
  &:not(.highlight) {
39
- background-color: map-get($background, card);
39
+ background-color: getSurface($theme);
40
40
  }
41
41
  }
42
42
 
43
43
  .changelog {
44
44
  .entry {
45
- background-color: map-get($background, card);
45
+ background-color: getSurface($theme);
46
46
  }
47
47
  }
48
48
 
@@ -56,111 +56,16 @@ How to use
56
56
  }
57
57
  }
58
58
 
59
- .text-primary {
60
- color: map-get($primary, default) !important;
61
- }
62
-
63
- .text-warn {
64
- color: map-get($warn, default) !important;
65
- }
66
-
67
- .text-label {
68
- color: map-get($foreground, label) !important;
69
- }
70
-
71
- .text-placeholder {
72
- color: map-get($foreground, placeholder) !important;
73
- }
74
-
75
- .text-basic {
76
- color: map-get($foreground, foreground) !important;
77
- }
78
-
79
- // Changelog
80
- .changelog {
81
- .entry {
82
- .groups {
83
- .breaking-changes {
84
- .title {
85
- background: map-get($background, red);
86
- }
87
- }
88
-
89
- .new {
90
- .title {
91
- background: map-get($background, green);
92
- }
93
- }
94
-
95
- .improved {
96
- .title {
97
- background: map-get($background, purple);
98
- }
99
- }
100
-
101
- .fixed {
102
- .title {
103
- background: map-get($background, blue);
104
- }
105
- }
106
- }
107
- }
108
- }
109
-
110
59
  // Code
111
60
  code {
112
61
  &:not(.highlight) {
113
- color: map-get($background, blue);
62
+ color: getBlue($theme);
114
63
  }
115
64
  }
116
65
 
117
66
  // Mark
118
67
  mark {
119
- background: map-get($background, yellow);
120
- }
121
-
122
- // Message boxes
123
- .matcha-message-box,
124
- .matcha-msg-box,
125
- .message-box {
126
- background-color: getPrimaryAlpha($theme);
127
- border-left-color: map-get($primary, default);
128
- color: map-get($foreground, foreground);
129
-
130
- &.error,
131
- &.warning,
132
- &.success,
133
- &.info,
134
- &--error,
135
- &--warning,
136
- &--success,
137
- &--info {
138
- color: map-get($foreground, foreground);
139
- }
140
-
141
- &--error,
142
- &.error {
143
- background-color: map-get($background, red-alpha);
144
- border-left-color: map-get($background, red);
145
- }
146
-
147
- &--warning,
148
- &.warning {
149
- background-color: map-get($background, yellow-alpha);
150
- border-left-color: map-get($background, yellow);
151
- }
152
-
153
- &--success,
154
- &.success {
155
- background-color: map-get($background, green-alpha);
156
- border-left-color: map-get($background, green);
157
- }
158
-
159
- &--info,
160
- &.info {
161
- background-color: map-get($background, blue-alpha);
162
- border-left-color: map-get($background, blue);
163
- }
68
+ background: getYellow($theme);
164
69
  }
165
70
  }
166
71
 
@@ -212,58 +117,6 @@ How to use
212
117
  font-weight: 900;
213
118
  }
214
119
 
215
- .matcha-message-box,
216
- .matcha-msg-box,
217
- .message-box {
218
- padding: 16px;
219
- border-left: 6px solid;
220
-
221
- &.error,
222
- &.warning,
223
- &.success,
224
- &.info,
225
- &--error,
226
- &--warning,
227
- &--success,
228
- &--info {
229
- padding: 16px;
230
- border-left: 6px solid;
231
- }
232
- }
233
-
234
- .title {
235
- line-height: 24px;
236
- margin: 0 0 16px 0;
237
- display: flex;
238
- align-items: center;
239
-
240
- .title-bullet {
241
- margin: 0px 8px 0 0;
242
- display: inline-block;
243
- position: relative;
244
- border-radius: 10px;
245
- }
246
-
247
- .title-content {
248
- line-height: 20px;
249
- display: -webkit-box;
250
- -webkit-line-clamp: 2;
251
- overflow: hidden;
252
- text-overflow: ellipsis;
253
- word-break: break-word;
254
- white-space: initial;
255
- -webkit-box-orient: vertical;
256
- text-transform: capitalize;
257
- }
258
- }
259
-
260
- .title-sm {
261
- display: block;
262
- overflow: hidden;
263
- text-overflow: ellipsis;
264
- white-space: nowrap;
265
- }
266
-
267
120
 
268
121
  // -----------------------------------------------------------------------------------------------------
269
122
  // @ Container helpers
@@ -1,39 +1,40 @@
1
1
  // =========================================================
2
2
  // * Matcha Time Range Styles
3
3
  // =========================================================
4
+ @mixin matcha-time-range-theme($theme) {
5
+ .matcha-time-range-container {
6
+ display: flex;
7
+ gap: 16px;
8
+ width: 100%;
9
+ align-items: flex-start;
4
10
 
5
- .matcha-time-range-container {
6
- display: flex;
7
- gap: 16px;
8
- width: 100%;
9
- align-items: flex-start;
10
-
11
- // Responsividade
12
- @media (max-width: 768px) {
13
- flex-direction: column;
14
- gap: 12px;
15
- }
11
+ // Responsividade
12
+ @media (max-width: 768px) {
13
+ flex-direction: column;
14
+ gap: 12px;
15
+ }
16
16
 
17
- // Os campos de hora dentro do range
18
- matcha-form-field {
19
- flex: 1;
20
- min-width: 0;
17
+ // Os campos de hora dentro do range
18
+ matcha-form-field {
19
+ flex: 1;
20
+ min-width: 0;
21
21
 
22
- &:first-child {
23
- flex-shrink: 0;
24
- }
22
+ &:first-child {
23
+ flex-shrink: 0;
24
+ }
25
25
 
26
- &:last-child {
27
- flex-shrink: 0;
26
+ &:last-child {
27
+ flex-shrink: 0;
28
+ }
28
29
  }
29
- }
30
30
 
31
- // Quando há erro de validação no range
32
- matcha-form-field.ng-invalid.ng-touched {
33
- matcha-time {
34
- .matcha-time-input {
35
- border-color: var(--matcha-color-error, #f44336);
31
+ // Quando há erro de validação no range
32
+ matcha-form-field.ng-invalid.ng-touched {
33
+ matcha-time {
34
+ .matcha-time-input {
35
+ border-color: getRed($theme);
36
+ }
36
37
  }
37
38
  }
38
39
  }
39
- }
40
+ }
@@ -19,7 +19,7 @@
19
19
  &:disabled {
20
20
  cursor: not-allowed;
21
21
  opacity: 0.6;
22
- color: getDisabled($theme);
22
+ color: getGrey($theme);
23
23
  }
24
24
  }
25
25
 
package/main.scss CHANGED
@@ -191,4 +191,5 @@
191
191
  @include matcha-snack-bar-theme($theme);
192
192
  @include matcha-date-theme($theme);
193
193
  @include matcha-time-theme($theme);
194
+ @include matcha-time-range-theme($theme);
194
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "20.207.0",
3
+ "version": "20.209.0",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {