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