matcha-theme 20.84.0 → 20.88.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
@@ -3,6 +3,9 @@
3
3
  $foreground: map-get($theme, foreground);
4
4
 
5
5
  & {
6
+ *, *:before, *:after {
7
+ box-sizing: border-box;
8
+ }
6
9
  color: getForeground($theme);
7
10
  background: map-get($background, background);
8
11
  }
@@ -0,0 +1,67 @@
1
+ // =========================================================
2
+ // * Matcha Date Range Styles
3
+ // =========================================================
4
+
5
+ .matcha-date-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
+ }
16
+
17
+ // Os campos de data dentro do range
18
+ matcha-form-field {
19
+ flex: 1;
20
+ min-width: 0;
21
+
22
+ &:first-child {
23
+ flex-shrink: 0;
24
+ }
25
+
26
+ &:last-child {
27
+ flex-shrink: 0;
28
+ }
29
+ }
30
+
31
+ // Quando há erro de validação no range
32
+ matcha-form-field.ng-invalid.ng-touched {
33
+ matcha-date {
34
+ .matcha-date-input {
35
+ border-color: var(--matcha-color-error, #f44336);
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ // Container wrapper adicional para layouts específicos
42
+ .matcha-date-range-wrapper {
43
+ width: 100%;
44
+
45
+ .matcha-date-range-label {
46
+ display: block;
47
+ margin-bottom: 8px;
48
+ font-size: 14px;
49
+ font-weight: 500;
50
+ color: var(--matcha-text-primary, #333);
51
+ }
52
+
53
+ .matcha-date-range-separator {
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ padding: 0 8px;
58
+ color: var(--matcha-text-secondary, #666);
59
+ font-size: 12px;
60
+ user-select: none;
61
+
62
+ @media (max-width: 768px) {
63
+ display: none;
64
+ }
65
+ }
66
+ }
67
+
@@ -0,0 +1,66 @@
1
+ // =========================================================
2
+ // * Matcha Date Styles
3
+ // =========================================================
4
+
5
+ .matcha-date-input {
6
+ width: 100%;
7
+ font-size: 14px;
8
+ font-family: inherit;
9
+ line-height: 1.5;
10
+ color: var(--matcha-text-primary, #333);
11
+ background-color: transparent;
12
+ border: none;
13
+ outline: none;
14
+ cursor: pointer;
15
+
16
+ &::placeholder {
17
+ color: var(--matcha-text-placeholder, #999);
18
+ }
19
+
20
+ &:disabled {
21
+ cursor: not-allowed;
22
+ opacity: 0.6;
23
+ color: var(--matcha-text-disabled, #999);
24
+ }
25
+
26
+ // Customização do ícone do calendário
27
+ &::-webkit-calendar-picker-indicator {
28
+ cursor: pointer;
29
+ filter: opacity(0.6);
30
+ transition: filter 0.2s ease;
31
+
32
+ &:hover {
33
+ filter: opacity(1);
34
+ }
35
+ }
36
+
37
+ &:disabled::-webkit-calendar-picker-indicator {
38
+ cursor: not-allowed;
39
+ opacity: 0.3;
40
+ }
41
+
42
+ // Firefox
43
+ &::-moz-calendar-picker-indicator {
44
+ cursor: pointer;
45
+ opacity: 0.6;
46
+ transition: opacity 0.2s ease;
47
+
48
+ &:hover {
49
+ opacity: 1;
50
+ }
51
+ }
52
+
53
+ &:disabled::-moz-calendar-picker-indicator {
54
+ cursor: not-allowed;
55
+ opacity: 0.3;
56
+ }
57
+ }
58
+
59
+ // Integração com matcha-form-field
60
+ matcha-form-field {
61
+ matcha-date {
62
+ width: 100%;
63
+ display: block;
64
+ }
65
+ }
66
+
package/main.scss CHANGED
@@ -59,6 +59,8 @@
59
59
  @import "./components/matcha-modal.scss"; // matcha-modal($theme)
60
60
  @import "./components/matcha-drawer.scss"; // matcha-drawer-theme($theme)
61
61
  @import "./components/matcha-chip.scss"; // matcha-chip($theme)
62
+ @import "./components/matcha-date.scss"; // matcha-date($theme)
63
+ @import "./components/matcha-date-range.scss"; // matcha-date-range($theme)
62
64
 
63
65
  // VENDORS
64
66
  @import "./vendors/angular-editor.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "20.84.0",
3
+ "version": "20.88.0",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {