@testgorilla/tgo-ui 1.13.18 → 1.13.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "1.13.18",
3
+ "version": "1.13.20",
4
4
  "lint-staged": {
5
5
  "src/**/*.ts": [
6
6
  "eslint --fix",
@@ -0,0 +1,253 @@
1
+ @use "variables.scss" as *;
2
+
3
+ .active-field {
4
+ .mdc-notched-outline__leading {
5
+ border-left-width: 2px;
6
+ border-top-width: 2px;
7
+ border-bottom-width: 2px;
8
+ }
9
+
10
+ .mdc-notched-outline__notch {
11
+ border-top-width: 2px;
12
+ border-bottom-width: 2px;
13
+ }
14
+
15
+ .mdc-notched-outline__trailing {
16
+ border-top-width: 2px;
17
+ border-bottom-width: 2px;
18
+ border-right-width: 2px;
19
+ }
20
+ }
21
+
22
+ *[theme="classic"] {
23
+ .mat-mdc-form-field {
24
+ &.mat-form-field-appearance-outline {
25
+ .mat-mdc-text-field-wrapper {
26
+ height: 48px;
27
+
28
+ &:hover, &.mdc-text-field--focused {
29
+
30
+ .mat-mdc-form-field-flex .mat-mdc-floating-label:not(.mdc-floating-label--float-above) {
31
+ top: 21px !important;
32
+ }
33
+
34
+ @extend .active-field;
35
+
36
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
37
+ border-color: $tgo-petrol-default !important;
38
+ }
39
+
40
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
41
+ color: $tgo-petrol-default !important;
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+
49
+ *[theme="dark"], *[theme="light"] {
50
+ .mat-mdc-autocomplete-panel {
51
+ .mat-mdc-option.selected-option,
52
+ .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled) {
53
+ &:hover {
54
+ background: $brand-10 !important;
55
+ }
56
+ background: $grayscale-10!important;
57
+ }
58
+ .mat-mdc-option:hover:not(.mdc-list-item--disabled) {
59
+ background: $brand-10 !important;
60
+ }
61
+
62
+ .mat-mdc-option {
63
+ .mdc-list-item__primary-text, span {
64
+ color: $black!important;
65
+ font-weight: 400;
66
+ }
67
+ }
68
+
69
+ .mat-mdc-optgroup-label {
70
+ .mdc-list-item__primary-text {
71
+ font-size: 14px!important;
72
+ }
73
+ }
74
+
75
+ .mat-mdc-optgroup {
76
+ .mdc-list-item__primary-text {
77
+ color: $black!important;
78
+ text-transform: lowercase;
79
+ }
80
+
81
+ .mdc-list-item__primary-text:first-letter {
82
+ text-transform: uppercase!important;
83
+ }
84
+ }
85
+ }
86
+
87
+ .ui-dropdown-list {
88
+ .mat-mdc-option, .mat-option-section .section-title {
89
+ color: $black!important;
90
+ }
91
+
92
+ &.mat-accent mat-option,
93
+ &.mat-accent .mat-mdc-option-multiple {
94
+ &:hover {
95
+ background: $brand-10!important;
96
+ }
97
+
98
+ &:active {
99
+ background: $brand-20!important;
100
+ }
101
+
102
+ &.mat-mdc-option-active,
103
+ &.mdc-list-item--selected {
104
+ background-color: $grayscale-10!important;
105
+
106
+ .mdc-list-item__primary-text, .mat-pseudo-checkbox-checked:after {
107
+ color: $black!important;
108
+ }
109
+
110
+ &:hover:not(.mdc-list-item--disabled),
111
+ &:focus:not(.mdc-list-item--disabled) {
112
+ background-color: $grayscale-10;
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+ .mat-mdc-form-field {
119
+ &.mat-form-field-appearance-outline {
120
+
121
+ input {
122
+ caret-color: $black !important;
123
+ }
124
+
125
+ &.mat-focused {
126
+ ui-icon:not(.clear) {
127
+ svg {
128
+ color: $black!important;
129
+ }
130
+ }
131
+ }
132
+
133
+ .mat-mdc-text-field-wrapper {
134
+ height: 48px;
135
+
136
+ &:hover {
137
+ ui-icon {
138
+ svg {
139
+ color: $black!important;
140
+ }
141
+ }
142
+ }
143
+
144
+ ui-icon {
145
+ svg {
146
+ color: $grayscale-40!important;
147
+ }
148
+ }
149
+
150
+ .mdc-notched-outline__notch {
151
+ label {
152
+ color: $grayscale-40 !important;
153
+ }
154
+ }
155
+
156
+ &.mdc-text-field--disabled {
157
+ pointer-events: none;
158
+
159
+ .mdc-notched-outline__notch {
160
+ label {
161
+ color: $grayscale-20 !important;
162
+ }
163
+ }
164
+ }
165
+
166
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
167
+ color: $grayscale-40 !important;
168
+ }
169
+
170
+ .mdc-notched-outline__leading {
171
+ border-top-left-radius: 10px;
172
+ border-bottom-left-radius: 10px;
173
+ }
174
+
175
+ .mdc-notched-outline__trailing {
176
+ border-top-right-radius: 10px;
177
+ border-bottom-right-radius: 10px;
178
+ }
179
+
180
+ &:hover {
181
+ .mat-mdc-form-field-icon-prefix svg {
182
+ color: $black !important;
183
+ }
184
+
185
+ .password .icon-only-wrapper svg {
186
+ color: $black !important;
187
+ }
188
+
189
+ .mat-mdc-form-field-flex .mat-mdc-floating-label:not(.mdc-floating-label--float-above) {
190
+ top: 21px !important;
191
+ }
192
+ }
193
+
194
+ &:hover, &.mdc-text-field--focused {
195
+ .mat-mdc-form-field-icon-prefix svg {
196
+ color: $black !important;
197
+ }
198
+
199
+ @extend .active-field;
200
+
201
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
202
+ border-color: $black !important;
203
+ }
204
+
205
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
206
+ color: $black !important;
207
+ }
208
+ }
209
+ }
210
+
211
+ &.mat-warn {
212
+ .mat-mdc-form-field-hint.error {
213
+ color: $error-50 !important;
214
+
215
+
216
+ svg {
217
+ color: $error-50 !important;
218
+ }
219
+ }
220
+
221
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
222
+ color: $error-50 !important;
223
+ }
224
+
225
+ .mat-mdc-text-field-wrapper {
226
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
227
+ border-color: $error-50 !important;
228
+ }
229
+
230
+ &:hover, &.mdc-text-field--focused {
231
+ .mat-mdc-form-field-icon-prefix svg {
232
+ color: $error-50 !important;
233
+ }
234
+
235
+ @extend .active-field;
236
+
237
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
238
+ border-color: $error-50 !important;
239
+ }
240
+
241
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
242
+ color: $error-50 !important;
243
+ }
244
+
245
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
246
+ color: $error-50 !important;
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
@@ -80,7 +80,7 @@ $tgo-error-palette: (
80
80
 
81
81
  //teal
82
82
  $tgo-teal: mat.define-palette($tgo-teal-palette, 500);
83
- $tgo-light: mat.define-palette($tgo-teal-palette, 50);
83
+ $tgo-light-palette: mat.define-palette($tgo-teal-palette, 50);
84
84
  //petrol
85
85
  $tgo-petrol: mat.define-palette($tgo-petrol-palette, 500);
86
86
  //error
@@ -98,7 +98,7 @@ $my-theme: mat.define-light-theme(
98
98
  color: (
99
99
  primary: $tgo-teal,
100
100
  accent: $tgo-petrol,
101
- light: $tgo-light,
101
+ light: $tgo-light-palette,
102
102
  warn: $tgo-error,
103
103
  ),
104
104
  typography: $tgo-typography,
@@ -5,6 +5,7 @@
5
5
  @use "tooltip.scss" as *;
6
6
  @use "mat-paginator.scss" as *;
7
7
  @use "font.scss" as *;
8
+ @use "input.scss" as *;
8
9
 
9
10
  @import url("https://fonts.googleapis.com/icon?family=Material+Icons");
10
11