matcha-theme 20.258.0 → 20.259.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.
@@ -1,220 +1,219 @@
1
1
  @mixin matcha-paginator-theme($theme) {
2
- .matcha-paginator {
3
- .page-button {
4
2
 
5
- &.active.accent {
6
- background-color: getAccent($theme) !important;
7
- color: $light-primary-text !important;
8
- border-color: getAccent($theme) !important;
9
- }
3
+ // .matcha-paginator {
4
+ // .page-button {
5
+ // &.active.accent {
6
+ // background-color: getAccent($theme) !important;
7
+ // color: $light-primary-text !important;
8
+ // border-color: getAccent($theme) !important;
9
+ // }
10
10
 
11
- &.active.orange {
12
- background-color: getOrange($theme) !important;
13
- color: $light-primary-text !important;
14
- border-color: getOrange($theme) !important;
15
- }
11
+ // &.active.orange {
12
+ // background-color: getOrange($theme) !important;
13
+ // color: $light-primary-text !important;
14
+ // border-color: getOrange($theme) !important;
15
+ // }
16
16
 
17
- &.active.blue {
18
- background-color: getBlue($theme) !important;
19
- color: getBlueContrast($theme) !important;
20
- border-color: getBlue($theme) !important;
21
- }
17
+ // &.active.blue {
18
+ // background-color: getBlue($theme) !important;
19
+ // color: getBlueContrast($theme) !important;
20
+ // border-color: getBlue($theme) !important;
21
+ // }
22
22
 
23
- &.active.green {
24
- background-color: getGreen($theme) !important;
25
- color: getGreenContrast($theme) !important;
26
- border-color: getGreen($theme) !important;
27
- }
23
+ // &.active.green {
24
+ // background-color: getGreen($theme) !important;
25
+ // color: getGreenContrast($theme) !important;
26
+ // border-color: getGreen($theme) !important;
27
+ // }
28
28
 
29
- &.active.purple {
30
- background-color: getPurple($theme) !important;
31
- color: getPurpleContrast($theme) !important;
32
- border-color: getPurple($theme) !important;
33
- }
29
+ // &.active.purple {
30
+ // background-color: getPurple($theme) !important;
31
+ // color: getPurpleContrast($theme) !important;
32
+ // border-color: getPurple($theme) !important;
33
+ // }
34
34
 
35
- &.active.primary {
36
- background-color: getPrimary($theme) !important;
37
- color: getPrimaryContrast($theme) !important;
38
- border-color: getPrimary($theme) !important;
39
- }
35
+ // &.active.primary {
36
+ // background-color: getPrimary($theme) !important;
37
+ // color: getPrimaryContrast($theme) !important;
38
+ // border-color: getPrimary($theme) !important;
39
+ // }
40
40
 
41
- &.active.warn {
42
- background-color: getWarn($theme) !important;
43
- color: getWarnContrast($theme) !important;
44
- border-color: getWarn($theme) !important;
45
- }
41
+ // &.active.warn {
42
+ // background-color: getWarn($theme) !important;
43
+ // color: getWarnContrast($theme) !important;
44
+ // border-color: getWarn($theme) !important;
45
+ // }
46
46
 
47
- &.active.red {
48
- background-color: getRed($theme) !important;
49
- color: getRedContrast($theme) !important;
50
- border-color: getRed($theme) !important;
51
- }
52
- }
53
- }
54
- }
47
+ // &.active.red {
48
+ // background-color: getRed($theme) !important;
49
+ // color: getRedContrast($theme) !important;
50
+ // border-color: getRed($theme) !important;
51
+ // }
52
+ // }
53
+ // }
55
54
 
56
- .matcha-paginator {
57
- .paginator-total-info {
58
- display: flex;
59
- flex-direction: column;
60
- margin-right: 16px;
61
-
62
- .total-range {
63
- font-size: 14px;
64
- color: $color-base-blue-grey-900;
65
- font-weight: 500;
66
- line-height: 1.4;
67
- }
68
-
69
- .total-filtered {
70
- font-size: 12px;
71
- color: $color-base-blue-grey-300;
72
- line-height: 1.3;
55
+ .matcha-paginator {
56
+ .paginator-total-info {
57
+ display: flex;
58
+ flex-direction: column;
59
+ margin-right: 16px;
60
+
61
+ .total-range {
62
+ font-size: 14px;
63
+ color: getForeground($theme);
64
+ font-weight: 500;
65
+ line-height: 1.4;
66
+ }
67
+
68
+ .total-filtered {
69
+ font-size: 12px;
70
+ color: getGrey($theme);
71
+ line-height: 1.3;
72
+ }
73
73
  }
74
- }
75
74
 
76
- .page-size-selector {
77
- position: relative;
78
- display: inline-block;
75
+ .page-size-selector {
76
+ position: relative;
77
+ display: inline-block;
79
78
 
80
- .page-size-select {
81
- appearance: none;
82
- -webkit-appearance: none;
83
- -moz-appearance: none;
84
- padding: 8px 32px 8px 12px;
85
- border: 1px solid var(--color-border);
86
- background-color: var(--color-bg);
87
- color: var(--color-fg);
88
- font-size: 14px;
89
- font-family: matcha-font-family(matcha-typography-config(), button);
90
- font-weight: matcha-font-weight(matcha-typography-config(), button);
91
- cursor: pointer;
92
- min-width: 60px;
93
- transition: all 0.2s ease;
94
- @include elevation(1);
79
+ .page-size-select {
80
+ appearance: none;
81
+ -webkit-appearance: none;
82
+ -moz-appearance: none;
83
+ padding: 8px 32px 8px 12px;
84
+ border: 0;
85
+ background-color: getSurface($theme);
86
+ color: getForeground($theme);
87
+ font-size: 14px;
88
+ font-family: matcha-font-family(matcha-typography-config(), button);
89
+ font-weight: matcha-font-weight(matcha-typography-config(), button);
90
+ cursor: pointer;
91
+ min-width: 60px;
92
+ transition: all 0.2s ease;
93
+ @include elevation(1);
94
+
95
+ &:hover {
96
+ border-color: getAccent($theme);
97
+ background-color: getBackground($theme);
98
+ }
99
+
100
+ &:focus {
101
+ outline: 2px solid getAccent($theme);
102
+ outline-offset: 2px;
103
+ }
104
+
105
+ &::-ms-expand {
106
+ display: none;
107
+ }
95
108
 
96
- &:hover {
97
- border-color: var(--color-accent);
98
- background-color: var(--color-surface);
109
+ option {
110
+ font-family: matcha-font-family(matcha-typography-config(), button);
111
+ font-weight: matcha-font-weight(matcha-typography-config(), button);
112
+ font-size: 14px;
113
+ background-color: getSurface($theme);
114
+ color: getForeground($theme);
115
+ padding: 8px 12px;
116
+ }
99
117
  }
100
118
 
119
+ .select-icon {
120
+ position: absolute;
121
+ right: 8px;
122
+ top: 50%;
123
+ transform: translateY(-50%);
124
+ pointer-events: none;
125
+ transition: transform 0.2s ease;
126
+
127
+ .i-matcha-action_arrow_up {
128
+ transform: rotate(180deg);
129
+ font-size: 14px;
130
+ }
131
+ }
132
+
133
+ &:hover .select-icon {
134
+ .i-matcha-action_arrow_up {
135
+ transform: rotate(180deg) scale(1.1);
136
+ }
137
+ }
138
+ }
139
+
140
+ .page-size-select {
141
+ padding: 4px 8px;
142
+ border: 0px solid getGrey($theme);
143
+ background-color: getSurface($theme);
144
+ color: getForeground($theme);
145
+ font-size: 14px;
146
+
101
147
  &:focus {
102
- outline: 2px solid var(--color-accent);
148
+ outline: 0px solid getAccent($theme);
103
149
  outline-offset: 2px;
104
150
  }
151
+ }
152
+
153
+ .nav-button {
154
+ display: flex;
155
+ align-items: center;
156
+ justify-content: center;
157
+ width: 18px;
158
+ height: 18px;
159
+ border: 0px solid getGrey($theme);
160
+ background-color: getSurface($theme);
161
+ color: getForeground($theme);
162
+ cursor: pointer;
163
+ transition: all 0.2s ease;
105
164
 
106
- &::-ms-expand {
107
- display: none;
165
+ &:hover:not(:disabled) {
166
+ background-color: getBackground($theme);
167
+ border-color: getAccent($theme);
108
168
  }
109
169
 
110
- option {
111
- font-family: matcha-font-family(matcha-typography-config(), button);
112
- font-weight: matcha-font-weight(matcha-typography-config(), button);
113
- font-size: 14px;
114
- background-color: var(--color-bg);
115
- color: var(--color-fg);
116
- padding: 8px 12px;
170
+ &:disabled {
171
+ opacity: 0.5;
172
+ cursor: not-allowed;
117
173
  }
118
- }
119
174
 
120
- .select-icon {
121
- position: absolute;
122
- right: 8px;
123
- top: 50%;
124
- transform: translateY(-50%);
125
- pointer-events: none;
126
- transition: transform 0.2s ease;
127
-
128
- ::ng-deep .i-matcha-action_arrow_up {
129
- transform: rotate(180deg);
130
- font-size: 14px;
175
+ &:focus {
176
+ outline: 2px solid getAccentAlpha($theme);
177
+ outline-offset: 2px;
131
178
  }
132
179
  }
133
180
 
134
- &:hover .select-icon {
135
- ::ng-deep .i-matcha-action_arrow_up {
136
- transform: rotate(180deg) scale(1.1);
181
+ .page-button {
182
+ display: flex;
183
+ align-items: center;
184
+ justify-content: center;
185
+ min-width: 24px;
186
+ height: 24px;
187
+ padding: 0 6px;
188
+ border: 0;
189
+ border-radius:999px;
190
+ cursor: pointer;
191
+ transition: all 0.2s ease;
192
+ font-size: 14px;
193
+
194
+ &:hover:not(.active) {
195
+ background-color: getBackground($theme);
196
+ border-color: getAccent($theme);
197
+ }
198
+
199
+ &:focus {
200
+ outline: 2px solid getAccentAlpha($theme);
201
+ outline-offset: 2px;
137
202
  }
138
203
  }
139
- }
140
-
141
- .page-size-select {
142
- padding: 4px 8px;
143
- border: 1px solid var(--color-border);
144
- background-color: var(--color-bg);
145
- color: var(--color-fg);
146
- font-size: 14px;
147
-
148
- &:focus {
149
- outline: 2px solid var(--color-accent);
150
- outline-offset: 2px;
151
- }
152
- }
153
-
154
- .nav-button {
155
- display: flex;
156
- align-items: center;
157
- justify-content: center;
158
- width: 18px;
159
- height: 18px;
160
- border: 1px solid var(--color-border);
161
- background-color: var(--color-bg);
162
- color: var(--color-fg);
163
- cursor: pointer;
164
- transition: all 0.2s ease;
165
-
166
- &:hover:not(:disabled) {
167
- background-color: var(--color-surface);
168
- border-color: var(--color-accent);
169
- }
170
-
171
- &:disabled {
172
- opacity: 0.5;
173
- cursor: not-allowed;
174
- }
175
-
176
- &:focus {
177
- outline: 2px solid var(--color-accent);
178
- outline-offset: 2px;
179
- }
180
- }
181
-
182
- .page-button {
183
- display: flex;
184
- align-items: center;
185
- justify-content: center;
186
- min-width: 24px;
187
- height: 24px;
188
- padding: 0 6px;
189
- border: 1px solid var(--color-border);
190
- background-color: var(--color-bg);
191
- color: var(--color-fg);
192
- cursor: pointer;
193
- transition: all 0.2s ease;
194
- font-size: 14px;
195
-
196
- &:hover:not(.active) {
197
- background-color: var(--color-surface);
198
- border-color: var(--color-accent);
204
+
205
+ .ellipsis {
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ color: getGrey($theme);
210
+ font-size: 14px;
211
+ user-select: none;
199
212
  }
200
-
201
- &:focus {
202
- outline: 2px solid var(--color-accent);
203
- outline-offset: 2px;
213
+
214
+ .text-sm {
215
+ font-size: 14px;
216
+ color: getForeground($theme);
204
217
  }
205
- }
206
-
207
- .ellipsis {
208
- display: flex;
209
- align-items: center;
210
- justify-content: center;
211
- color: var(--color-fg-muted);
212
- font-size: 14px;
213
- user-select: none;
214
- }
215
-
216
- .text-sm {
217
- font-size: 14px;
218
- color: var(--color-fg);
219
- }
218
+ }
220
219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "20.258.0",
3
+ "version": "20.259.0",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {