@testgorilla/tgo-ui 3.10.14 → 3.10.16

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.
Files changed (57) hide show
  1. package/README.md +103 -103
  2. package/components/dialog/dialog.service.d.ts +1 -4
  3. package/components/overflow-menu/overflow-menu.component.d.ts +17 -1
  4. package/esm2022/components/ai-feedback/ai-feedback.component.mjs +3 -3
  5. package/esm2022/components/ai-feedback/ai-feedback.model.mjs +1 -1
  6. package/esm2022/components/ai-feedback/ai-feedback.module.mjs +1 -1
  7. package/esm2022/components/alert-banner/alert-banner.component.mjs +1 -1
  8. package/esm2022/components/card/card.component.mjs +3 -3
  9. package/esm2022/components/checklist/checklist.component.mjs +3 -3
  10. package/esm2022/components/checklist/checklist.model.mjs +1 -1
  11. package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +3 -3
  12. package/esm2022/components/confirm-dialog/confirm-dialog.model.mjs +1 -1
  13. package/esm2022/components/datepicker/datepicker.component.mjs +3 -3
  14. package/esm2022/components/dialog/dialog.component.mjs +3 -3
  15. package/esm2022/components/dialog/dialog.model.mjs +1 -1
  16. package/esm2022/components/dialog/dialog.service.mjs +3 -3
  17. package/esm2022/components/empty-state/empty-state.model.mjs +1 -1
  18. package/esm2022/components/field/field.component.mjs +1 -1
  19. package/esm2022/components/file-upload/file-upload.component.mjs +3 -3
  20. package/esm2022/components/gaussian-chart/gaussian-chart.component.mjs +3 -3
  21. package/esm2022/components/icon/icon.config.mjs +1 -1
  22. package/esm2022/components/icon-label/icon-label.component.mjs +1 -1
  23. package/esm2022/components/multi-input/multi-input.component.mjs +1 -1
  24. package/esm2022/components/overflow-menu/overflow-menu.component.mjs +29 -9
  25. package/esm2022/components/progress-bar/progress-bar.component.mjs +1 -1
  26. package/esm2022/components/selectable-card/selectable-card.component.mjs +3 -3
  27. package/esm2022/components/selectable-card/selectable-card.component.module.mjs +1 -1
  28. package/esm2022/components/side-panel/side-panel.animations.mjs +1 -1
  29. package/esm2022/components/side-panel/side-panel.component.mjs +3 -3
  30. package/esm2022/components/side-panel/side-panel.model.mjs +1 -1
  31. package/esm2022/components/side-panel/side-panel.service.mjs +1 -1
  32. package/esm2022/pipes/ui-translate.pipe.mjs +1 -1
  33. package/esm2022/public-api.mjs +2 -1
  34. package/fesm2022/testgorilla-tgo-ui.mjs +43 -24
  35. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  36. package/package.json +1 -1
  37. package/projects/tgo-canopy-ui/assets/i18n/en.json +821 -821
  38. package/projects/tgo-canopy-ui/assets/icons/Switch-tab.svg +3 -3
  39. package/projects/tgo-canopy-ui/assets/icons/rebrand/Credit-card-filled.svg +10 -10
  40. package/projects/tgo-canopy-ui/assets/icons/rebrand/Credit-card-in-line.svg +10 -10
  41. package/projects/tgo-canopy-ui/assets/icons/rebrand/Credit-filled.svg +3 -3
  42. package/projects/tgo-canopy-ui/assets/icons/rebrand/Credit-in-line.svg +3 -3
  43. package/projects/tgo-canopy-ui/assets/icons/rebrand/Invoice-filled.svg +3 -3
  44. package/projects/tgo-canopy-ui/assets/icons/rebrand/Invoice-in-line.svg +3 -3
  45. package/projects/tgo-canopy-ui/assets/icons/rebrand/Messages-in-line.svg +3 -3
  46. package/projects/tgo-canopy-ui/assets/icons/rebrand/Open-in-new-filled.svg +3 -3
  47. package/projects/tgo-canopy-ui/assets/icons/rebrand/Open-in-new-in-line.svg +3 -3
  48. package/projects/tgo-canopy-ui/assets/icons/rebrand/Open-lock-filled.svg +3 -3
  49. package/projects/tgo-canopy-ui/assets/icons/rebrand/Open-lock-in-line.svg +3 -3
  50. package/projects/tgo-canopy-ui/assets/icons/rebrand/Switch-tab-filled.svg +3 -3
  51. package/projects/tgo-canopy-ui/assets/icons/rebrand/Switch-tab-in-line.svg +3 -3
  52. package/projects/tgo-canopy-ui/assets/icons/rebrand/Thumb-down-filled.svg +3 -3
  53. package/projects/tgo-canopy-ui/assets/icons/rebrand/Thumb-down-in-line.svg +3 -3
  54. package/projects/tgo-canopy-ui/assets/icons/rebrand/Thumb-up-filled.svg +3 -3
  55. package/projects/tgo-canopy-ui/assets/icons/rebrand/Thumb-up-in-line.svg +3 -3
  56. package/projects/tgo-canopy-ui/theme/_input.scss +575 -575
  57. package/public-api.d.ts +1 -0
@@ -1,575 +1,575 @@
1
- @use "variables.scss" as *;
2
-
3
- ui-dropdown, ui-autocomplete {
4
- .mat-mdc-form-field {
5
- &.keyboard-focused {
6
- position: relative;
7
-
8
- .mat-mdc-text-field-wrapper {
9
- outline: 2px solid $black;
10
- animation: focus-ring-animation-main 0.4s forwards;
11
- outline-offset: 4px;
12
-
13
- &:after {
14
- content: '';
15
- position: absolute;
16
- top: -0;
17
- border-radius: 10px;
18
- left: -0;
19
- width: 100%;
20
- height: 100%;
21
- outline: 4px solid $tgo-white;
22
- z-index: -1;
23
- }
24
- }
25
-
26
- .mat-mdc-form-field-subscript-wrapper {
27
- z-index: -1;
28
- }
29
- }
30
-
31
- &.has-label {
32
- .mdc-notched-outline__notch {
33
- position: relative;
34
-
35
- &:after {
36
- content: '';
37
- position: absolute;
38
- top: 0;
39
- left: 0;
40
- background: white;
41
- width: 100%;
42
- height: 5px;
43
- z-index: -1;
44
- }
45
- }
46
- }
47
- }
48
- }
49
-
50
- .active-field {
51
- .mdc-notched-outline__leading {
52
- border-left-width: 2px;
53
- border-top-width: 2px;
54
- border-bottom-width: 2px;
55
- }
56
-
57
- .mdc-notched-outline__notch {
58
- border-top-width: 2px;
59
- border-bottom-width: 2px;
60
- border-left: none !important;
61
- }
62
-
63
- .mdc-notched-outline__trailing {
64
- border-top-width: 2px;
65
- border-bottom-width: 2px;
66
- border-right-width: 2px;
67
- }
68
- }
69
-
70
- *[theme="classic"] {
71
- .mat-mdc-form-field {
72
- .mat-mdc-form-field-hint.error,
73
- .mat-mdc-form-field-hint.error svg {
74
- color: $tgo-error-default;
75
- }
76
- }
77
-
78
- .mat-mdc-form-field:not(.mat-warn) {
79
- &.mat-form-field-appearance-outline {
80
- .mat-mdc-text-field-wrapper {
81
- height: 48px;
82
-
83
- &:hover, &.mdc-text-field--focused {
84
-
85
- .mat-mdc-form-field-flex .mat-mdc-floating-label:not(.mdc-floating-label--float-above) {
86
- top: 21px !important;
87
- }
88
-
89
- @extend .active-field;
90
-
91
- .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
92
- border-color: $tgo-petrol-default !important;
93
- }
94
-
95
- .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
96
- color: $tgo-petrol-default !important;
97
- }
98
- }
99
- }
100
- }
101
- }
102
- }
103
-
104
- *[theme="dark"], *[theme="light"], .dark, .light {
105
-
106
- &.phone-number-select {
107
- margin-top: 8px;
108
- border-radius: 10px!important;
109
- box-shadow: $box-shadow-hover-state;
110
-
111
- .country-option {
112
- display: flex;
113
- align-items: center;
114
- gap: 8px;
115
- }
116
-
117
- .mat-mdc-option {
118
- --mat-option-selected-state-layer-color: #{$grayscale-10};
119
- --mat-option-selected-state-label-text-color: #{$black};
120
-
121
- .mdc-list-item__primary-text small {
122
- font-size: 14px;
123
- }
124
-
125
- .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after {
126
- color: $black;
127
- width: 12px;
128
- height: 5px;
129
- }
130
- &:hover {
131
- background-color: $brand-10;
132
- }
133
- }
134
-
135
- .mat-divider {
136
- display: none;
137
- }
138
- }
139
-
140
- .mat-mdc-autocomplete-panel, &.mat-mdc-autocomplete-panel {
141
- box-shadow: $box-shadow-hover-state;
142
- border-radius: 10px;
143
- .mat-mdc-option.selected-option,
144
- .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled) {
145
- &:hover {
146
- background: var(--ui-autocomplete-option-color) !important;
147
- }
148
- background: $grayscale-10!important;
149
- }
150
- .mat-mdc-option:hover:not(.mdc-list-item--disabled) {
151
- background: var(--ui-autocomplete-option-color) !important;
152
- }
153
-
154
- .mat-mdc-option:active:not(.mdc-list-item--disabled) {
155
- background: var(--ui-autocomplete-option-color) !important;
156
- }
157
-
158
- .mat-mdc-option {
159
- .mdc-list-item__primary-text, span {
160
- color: $black!important;
161
- font-weight: 400;
162
- }
163
- }
164
-
165
- .mat-mdc-optgroup-label {
166
- .mdc-list-item__primary-text {
167
- font-size: 14px!important;
168
- }
169
- }
170
-
171
- .mat-mdc-optgroup {
172
- .mdc-list-item__primary-text {
173
- color: $black!important;
174
- text-transform: lowercase;
175
- }
176
-
177
- .mdc-list-item__primary-text:first-letter {
178
- text-transform: uppercase!important;
179
- }
180
- }
181
-
182
- .cdk-virtual-scroll-content-wrapper {
183
- .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled):not(.selected-option) {
184
- background: transparent!important;
185
- }
186
- }
187
-
188
- .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled):not(.selected-option) {
189
- background: transparent!important;
190
- }
191
- }
192
-
193
- .ui-dropdown-list, &.ui-dropdown-list {
194
- .mat-mdc-option .mat-mdc-focus-indicator {
195
- display: none;
196
- }
197
-
198
- .mat-mdc-option, .mat-option-section .section-title {
199
- color: $black!important;
200
- }
201
-
202
- .mat-mdc-option-multiple .mat-pseudo-checkbox {
203
- border-radius: 4px;
204
- border-width: 1px;
205
- border-color: $black;
206
- }
207
-
208
- .mat-mdc-option .mat-pseudo-checkbox-minimal {
209
- transform: scale(0.9);
210
- }
211
-
212
- &.mat-warn mat-option,
213
- &.mat-accent mat-option,
214
- &.mat-accent .mat-mdc-option-multiple {
215
- &:hover {
216
- background: var(--dropdown-color-option-hover)!important;
217
- }
218
-
219
- &:active {
220
- background: var(--dropdown-color-option-active)!important;
221
- }
222
-
223
- &.mat-mdc-option-active,
224
- &.mdc-list-item--selected {
225
- background-color: $grayscale-10!important;
226
-
227
- .mdc-list-item__primary-text, .mat-pseudo-checkbox-checked:after {
228
- color: $black!important;
229
- }
230
-
231
- &:hover:not(.mdc-list-item--disabled),
232
- &:focus:not(.mdc-list-item--disabled) {
233
- background-color: $grayscale-10;
234
- }
235
- }
236
- }
237
-
238
- .mat-mdc-option-multiple.mdc-list-item--selected .mat-pseudo-checkbox-full {
239
- background: $brand-50;
240
- border-color: $brand-50;
241
- &:after {
242
- border-color: $tgo-white;
243
- }
244
- }
245
- }
246
-
247
- .mat-mdc-form-field, .autocomplete-wrapper .mat-mdc-form-field {
248
- &.mat-form-field-appearance-outline, &.mat-text-field-outlined {
249
- --mdc-outlined-text-field-caret-color: #{$black} !important;
250
-
251
- .mdc-text-field__input::placeholder {
252
- color: $grayscale-50;
253
- }
254
-
255
- .mat-mdc-form-field-hint.error,
256
- .mat-mdc-form-field-hint.error svg {
257
- color: $error-50;
258
- row-gap: 0;
259
- }
260
-
261
- .mat-mdc-form-field-subscript-wrapper {
262
- padding: 0!important;
263
- min-height: 24px;
264
-
265
- &:after, &:before {
266
- display: none;
267
- }
268
- }
269
-
270
- input, .mat-text-field__input {
271
- caret-color: $black;
272
- }
273
-
274
- &.mat-focused {
275
- ui-icon:not(.clear) {
276
- svg {
277
- color: $black;
278
- }
279
- }
280
- }
281
-
282
- .mat-mdc-text-field-wrapper {
283
- background: $tgo-white;
284
- border-radius: 10px;
285
- height: 48px;
286
-
287
- &:hover {
288
- ui-icon {
289
- svg {
290
- color: $black!important;
291
- }
292
- }
293
- }
294
-
295
- ui-icon {
296
- svg {
297
- color: $grayscale-40!important;
298
- }
299
-
300
- &:focus-visible {
301
- svg {
302
- color: $black!important;
303
- }
304
- }
305
- }
306
-
307
- .value-tag {
308
- ui-icon {
309
- svg {
310
- color: $black!important;
311
- }
312
- }
313
-
314
- &:hover {
315
- ui-icon {
316
- svg {
317
- color: $tgo-white!important;
318
- }
319
- }
320
- }
321
- }
322
-
323
- .mdc-notched-outline__notch {
324
- label {
325
- color: $grayscale-50 !important;
326
- }
327
- }
328
-
329
- &.mdc-text-field--disabled {
330
- * {
331
- border-color: $grayscale-30!important;
332
- color: $grayscale-30!important;
333
- pointer-events: none!important;
334
- }
335
-
336
- .mdc-notched-outline__notch {
337
- label {
338
- color: $grayscale-20 !important;
339
- }
340
- }
341
- }
342
-
343
- .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
344
- color: $black !important;
345
- }
346
-
347
- .mdc-notched-outline__leading {
348
- border-top-left-radius: 10px;
349
- border-bottom-left-radius: 10px;
350
- }
351
-
352
- .mdc-notched-outline__trailing {
353
- border-top-right-radius: 10px;
354
- border-bottom-right-radius: 10px;
355
- }
356
-
357
- &:hover {
358
- .mat-mdc-form-field-icon-prefix svg {
359
- color: $black !important;
360
- }
361
-
362
- .password .icon-only-wrapper svg {
363
- color: $black !important;
364
- }
365
-
366
- .mat-mdc-form-field-flex .mat-mdc-floating-label:not(.mdc-floating-label--float-above) {
367
- top: 21px !important;
368
- }
369
- }
370
-
371
- &:hover, &.mdc-text-field--focused {
372
- .mat-mdc-form-field-icon-prefix svg {
373
- color: $black !important;
374
- }
375
-
376
- @extend .active-field;
377
-
378
- .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
379
- border-color: $black !important;
380
- }
381
-
382
- .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
383
- color: $black !important;
384
- }
385
- }
386
- }
387
-
388
- &.mat-warn {
389
-
390
- .mat-mdc-form-field-required-marker:after {
391
- color: $error-50;
392
- }
393
-
394
- mat-label {
395
- color: $error-50!important;
396
- }
397
-
398
- .mat-mdc-form-field-hint.error {
399
- color: $error-50 !important;
400
-
401
- a {
402
- color: $error-50!important;
403
- }
404
-
405
-
406
- svg {
407
- color: $error-50 !important;
408
- }
409
- }
410
-
411
- .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
412
- color: $error-50 !important;
413
- }
414
-
415
- .mat-mdc-text-field-wrapper {
416
- .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
417
- border-color: $error-50 !important;
418
- }
419
-
420
- &:hover, &.mdc-text-field--focused {
421
- .mat-mdc-form-field-icon-prefix svg {
422
- color: $error-50 !important;
423
- }
424
-
425
- @extend .active-field;
426
-
427
- .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
428
- border-color: $error-50 !important;
429
- }
430
-
431
- .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
432
- color: $error-50 !important;
433
- }
434
- }
435
- }
436
- }
437
- }
438
- }
439
- }
440
-
441
- // this overrides for dark ui-dropdown used in coderunner only. will be removed with proper rebranded dark theme
442
- *[theme="dark"], .dark {
443
- .ui-dropdown-list.mat-accent {
444
- background-color: $grayscale-50;
445
-
446
- mat-option {
447
- background-color: $grayscale-50 !important;
448
-
449
- &:hover, &.mat-mdc-option-active {
450
- background-color: $grayscale-40 !important;
451
- }
452
-
453
- &, &.mat-mdc-option-active {
454
- .mdc-list-item__primary-text {
455
- color: $tgo-white !important;
456
- }
457
- }
458
- }
459
- }
460
-
461
- .mat-mdc-select-placeholder {
462
- color: $grayscale-40;
463
- }
464
-
465
- .ui-dropdown .mat-mdc-select {
466
- color: $tgo-white;
467
- }
468
- }
469
-
470
- .cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list {
471
- border-radius: 10px !important;
472
- box-shadow: $box-shadow-hover-state;
473
-
474
- &.mat-accent mat-option,
475
- &.mat-accent .mat-mdc-option-multiple {
476
- &:hover:not(.mdc-list-item--disabled),
477
- &:focus:not(.mdc-list-item--disabled) {
478
- background-color: $tgo-medium;
479
- }
480
-
481
- &.mat-mdc-option-active,
482
- &.mdc-list-item--selected {
483
- background-color: $tgo-petrol-90w;
484
- color: $tgo-black;
485
- &:hover:not(.mdc-list-item--disabled),
486
- &:focus:not(.mdc-list-item--disabled) {
487
- background-color: $tgo-petrol-secondary;
488
- }
489
- }
490
- }
491
-
492
- &.mat-warn mat-option,
493
- &.mat-warn .mat-mdc-option-multiple {
494
- &:hover:not(.mdc-list-item--disabled),
495
- &:focus:not(.mdc-list-item--disabled) {
496
- background-color: $tgo-medium;
497
- }
498
-
499
- &.mat-mdc-option-active,
500
- &.mdc-list-item--selected {
501
- background-color: $tgo-error-secondary;
502
- color: $tgo-black;
503
- &:hover:not(.mdc-list-item--disabled),
504
- &:focus:not(.mdc-list-item--disabled) {
505
- background-color: $tgo-error-60w;
506
- }
507
- }
508
- }
509
- }
510
-
511
- .ui-field[theme=light] .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mdc-notched-outline__notch label,
512
- .ui-field[theme=dark] .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mdc-notched-outline__notch label {
513
- color: $grayscale-50!important;
514
-
515
- &:active {
516
- color: $black!important;
517
- }
518
- }
519
-
520
- .mat-mdc-form-field {
521
- .mat-mdc-form-field-hint-wrapper {
522
- padding: 0;
523
-
524
- .errors {
525
- padding-top: 4px;
526
- padding-bottom: 10px;
527
- }
528
-
529
- span, .mat-mdc-form-field-hint-spacer {
530
- line-height: 16px;
531
- }
532
- }
533
-
534
- .mat-mdc-form-field-hint:before {
535
- height: 0!important;
536
- }
537
-
538
- .mat-mdc-form-field-hint.error {
539
- display: flex;
540
- flex-flow: column;
541
- row-gap: 4px;
542
-
543
- .errors {
544
- ui-icon {
545
- margin-right: 4px;
546
- }
547
-
548
- align-items: center;
549
- display: flex;
550
- }
551
- }
552
- }
553
-
554
-
555
- .custom-errors {
556
- ui-icon {
557
- margin-right: 4px;
558
- }
559
- svg {
560
- color: $error-50 !important;
561
- }
562
-
563
- align-items: center;
564
- display: flex;
565
- color: $error-50 !important;
566
- padding: 4px 0 10px 0;
567
- font-size: 12px;
568
- line-height: 16px;
569
- position: relative;
570
- }
571
-
572
- .light.mat-mdc-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option:focus:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option.mat-mdc-option-active, .light.mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled),
573
- .dark.mat-mdc-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option:focus:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option.mat-mdc-option-active, .light.mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled) {
574
- background: var(--ui-autocomplete-option-color)!important;
575
- }
1
+ @use "variables.scss" as *;
2
+
3
+ ui-dropdown, ui-autocomplete {
4
+ .mat-mdc-form-field {
5
+ &.keyboard-focused {
6
+ position: relative;
7
+
8
+ .mat-mdc-text-field-wrapper {
9
+ outline: 2px solid $black;
10
+ animation: focus-ring-animation-main 0.4s forwards;
11
+ outline-offset: 4px;
12
+
13
+ &:after {
14
+ content: '';
15
+ position: absolute;
16
+ top: -0;
17
+ border-radius: 10px;
18
+ left: -0;
19
+ width: 100%;
20
+ height: 100%;
21
+ outline: 4px solid $tgo-white;
22
+ z-index: -1;
23
+ }
24
+ }
25
+
26
+ .mat-mdc-form-field-subscript-wrapper {
27
+ z-index: -1;
28
+ }
29
+ }
30
+
31
+ &.has-label {
32
+ .mdc-notched-outline__notch {
33
+ position: relative;
34
+
35
+ &:after {
36
+ content: '';
37
+ position: absolute;
38
+ top: 0;
39
+ left: 0;
40
+ background: white;
41
+ width: 100%;
42
+ height: 5px;
43
+ z-index: -1;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+
50
+ .active-field {
51
+ .mdc-notched-outline__leading {
52
+ border-left-width: 2px;
53
+ border-top-width: 2px;
54
+ border-bottom-width: 2px;
55
+ }
56
+
57
+ .mdc-notched-outline__notch {
58
+ border-top-width: 2px;
59
+ border-bottom-width: 2px;
60
+ border-left: none !important;
61
+ }
62
+
63
+ .mdc-notched-outline__trailing {
64
+ border-top-width: 2px;
65
+ border-bottom-width: 2px;
66
+ border-right-width: 2px;
67
+ }
68
+ }
69
+
70
+ *[theme="classic"] {
71
+ .mat-mdc-form-field {
72
+ .mat-mdc-form-field-hint.error,
73
+ .mat-mdc-form-field-hint.error svg {
74
+ color: $tgo-error-default;
75
+ }
76
+ }
77
+
78
+ .mat-mdc-form-field:not(.mat-warn) {
79
+ &.mat-form-field-appearance-outline {
80
+ .mat-mdc-text-field-wrapper {
81
+ height: 48px;
82
+
83
+ &:hover, &.mdc-text-field--focused {
84
+
85
+ .mat-mdc-form-field-flex .mat-mdc-floating-label:not(.mdc-floating-label--float-above) {
86
+ top: 21px !important;
87
+ }
88
+
89
+ @extend .active-field;
90
+
91
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
92
+ border-color: $tgo-petrol-default !important;
93
+ }
94
+
95
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
96
+ color: $tgo-petrol-default !important;
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ *[theme="dark"], *[theme="light"], .dark, .light {
105
+
106
+ &.phone-number-select {
107
+ margin-top: 8px;
108
+ border-radius: 10px!important;
109
+ box-shadow: $box-shadow-hover-state;
110
+
111
+ .country-option {
112
+ display: flex;
113
+ align-items: center;
114
+ gap: 8px;
115
+ }
116
+
117
+ .mat-mdc-option {
118
+ --mat-option-selected-state-layer-color: #{$grayscale-10};
119
+ --mat-option-selected-state-label-text-color: #{$black};
120
+
121
+ .mdc-list-item__primary-text small {
122
+ font-size: 14px;
123
+ }
124
+
125
+ .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after {
126
+ color: $black;
127
+ width: 12px;
128
+ height: 5px;
129
+ }
130
+ &:hover {
131
+ background-color: $brand-10;
132
+ }
133
+ }
134
+
135
+ .mat-divider {
136
+ display: none;
137
+ }
138
+ }
139
+
140
+ .mat-mdc-autocomplete-panel, &.mat-mdc-autocomplete-panel {
141
+ box-shadow: $box-shadow-hover-state;
142
+ border-radius: 10px;
143
+ .mat-mdc-option.selected-option,
144
+ .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled) {
145
+ &:hover {
146
+ background: var(--ui-autocomplete-option-color) !important;
147
+ }
148
+ background: $grayscale-10!important;
149
+ }
150
+ .mat-mdc-option:hover:not(.mdc-list-item--disabled) {
151
+ background: var(--ui-autocomplete-option-color) !important;
152
+ }
153
+
154
+ .mat-mdc-option:active:not(.mdc-list-item--disabled) {
155
+ background: var(--ui-autocomplete-option-color) !important;
156
+ }
157
+
158
+ .mat-mdc-option {
159
+ .mdc-list-item__primary-text, span {
160
+ color: $black!important;
161
+ font-weight: 400;
162
+ }
163
+ }
164
+
165
+ .mat-mdc-optgroup-label {
166
+ .mdc-list-item__primary-text {
167
+ font-size: 14px!important;
168
+ }
169
+ }
170
+
171
+ .mat-mdc-optgroup {
172
+ .mdc-list-item__primary-text {
173
+ color: $black!important;
174
+ text-transform: lowercase;
175
+ }
176
+
177
+ .mdc-list-item__primary-text:first-letter {
178
+ text-transform: uppercase!important;
179
+ }
180
+ }
181
+
182
+ .cdk-virtual-scroll-content-wrapper {
183
+ .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled):not(.selected-option) {
184
+ background: transparent!important;
185
+ }
186
+ }
187
+
188
+ .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled):not(.selected-option) {
189
+ background: transparent!important;
190
+ }
191
+ }
192
+
193
+ .ui-dropdown-list, &.ui-dropdown-list {
194
+ .mat-mdc-option .mat-mdc-focus-indicator {
195
+ display: none;
196
+ }
197
+
198
+ .mat-mdc-option, .mat-option-section .section-title {
199
+ color: $black!important;
200
+ }
201
+
202
+ .mat-mdc-option-multiple .mat-pseudo-checkbox {
203
+ border-radius: 4px;
204
+ border-width: 1px;
205
+ border-color: $black;
206
+ }
207
+
208
+ .mat-mdc-option .mat-pseudo-checkbox-minimal {
209
+ transform: scale(0.9);
210
+ }
211
+
212
+ &.mat-warn mat-option,
213
+ &.mat-accent mat-option,
214
+ &.mat-accent .mat-mdc-option-multiple {
215
+ &:hover {
216
+ background: var(--dropdown-color-option-hover)!important;
217
+ }
218
+
219
+ &:active {
220
+ background: var(--dropdown-color-option-active)!important;
221
+ }
222
+
223
+ &.mat-mdc-option-active,
224
+ &.mdc-list-item--selected {
225
+ background-color: $grayscale-10!important;
226
+
227
+ .mdc-list-item__primary-text, .mat-pseudo-checkbox-checked:after {
228
+ color: $black!important;
229
+ }
230
+
231
+ &:hover:not(.mdc-list-item--disabled),
232
+ &:focus:not(.mdc-list-item--disabled) {
233
+ background-color: $grayscale-10;
234
+ }
235
+ }
236
+ }
237
+
238
+ .mat-mdc-option-multiple.mdc-list-item--selected .mat-pseudo-checkbox-full {
239
+ background: $brand-50;
240
+ border-color: $brand-50;
241
+ &:after {
242
+ border-color: $tgo-white;
243
+ }
244
+ }
245
+ }
246
+
247
+ .mat-mdc-form-field, .autocomplete-wrapper .mat-mdc-form-field {
248
+ &.mat-form-field-appearance-outline, &.mat-text-field-outlined {
249
+ --mdc-outlined-text-field-caret-color: #{$black} !important;
250
+
251
+ .mdc-text-field__input::placeholder {
252
+ color: $grayscale-50;
253
+ }
254
+
255
+ .mat-mdc-form-field-hint.error,
256
+ .mat-mdc-form-field-hint.error svg {
257
+ color: $error-50;
258
+ row-gap: 0;
259
+ }
260
+
261
+ .mat-mdc-form-field-subscript-wrapper {
262
+ padding: 0!important;
263
+ min-height: 24px;
264
+
265
+ &:after, &:before {
266
+ display: none;
267
+ }
268
+ }
269
+
270
+ input, .mat-text-field__input {
271
+ caret-color: $black;
272
+ }
273
+
274
+ &.mat-focused {
275
+ ui-icon:not(.clear) {
276
+ svg {
277
+ color: $black;
278
+ }
279
+ }
280
+ }
281
+
282
+ .mat-mdc-text-field-wrapper {
283
+ background: $tgo-white;
284
+ border-radius: 10px;
285
+ height: 48px;
286
+
287
+ &:hover {
288
+ ui-icon {
289
+ svg {
290
+ color: $black!important;
291
+ }
292
+ }
293
+ }
294
+
295
+ ui-icon {
296
+ svg {
297
+ color: $grayscale-40!important;
298
+ }
299
+
300
+ &:focus-visible {
301
+ svg {
302
+ color: $black!important;
303
+ }
304
+ }
305
+ }
306
+
307
+ .value-tag {
308
+ ui-icon {
309
+ svg {
310
+ color: $black!important;
311
+ }
312
+ }
313
+
314
+ &:hover {
315
+ ui-icon {
316
+ svg {
317
+ color: $tgo-white!important;
318
+ }
319
+ }
320
+ }
321
+ }
322
+
323
+ .mdc-notched-outline__notch {
324
+ label {
325
+ color: $grayscale-50 !important;
326
+ }
327
+ }
328
+
329
+ &.mdc-text-field--disabled {
330
+ * {
331
+ border-color: $grayscale-30!important;
332
+ color: $grayscale-30!important;
333
+ pointer-events: none!important;
334
+ }
335
+
336
+ .mdc-notched-outline__notch {
337
+ label {
338
+ color: $grayscale-20 !important;
339
+ }
340
+ }
341
+ }
342
+
343
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
344
+ color: $black !important;
345
+ }
346
+
347
+ .mdc-notched-outline__leading {
348
+ border-top-left-radius: 10px;
349
+ border-bottom-left-radius: 10px;
350
+ }
351
+
352
+ .mdc-notched-outline__trailing {
353
+ border-top-right-radius: 10px;
354
+ border-bottom-right-radius: 10px;
355
+ }
356
+
357
+ &:hover {
358
+ .mat-mdc-form-field-icon-prefix svg {
359
+ color: $black !important;
360
+ }
361
+
362
+ .password .icon-only-wrapper svg {
363
+ color: $black !important;
364
+ }
365
+
366
+ .mat-mdc-form-field-flex .mat-mdc-floating-label:not(.mdc-floating-label--float-above) {
367
+ top: 21px !important;
368
+ }
369
+ }
370
+
371
+ &:hover, &.mdc-text-field--focused {
372
+ .mat-mdc-form-field-icon-prefix svg {
373
+ color: $black !important;
374
+ }
375
+
376
+ @extend .active-field;
377
+
378
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
379
+ border-color: $black !important;
380
+ }
381
+
382
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
383
+ color: $black !important;
384
+ }
385
+ }
386
+ }
387
+
388
+ &.mat-warn {
389
+
390
+ .mat-mdc-form-field-required-marker:after {
391
+ color: $error-50;
392
+ }
393
+
394
+ mat-label {
395
+ color: $error-50!important;
396
+ }
397
+
398
+ .mat-mdc-form-field-hint.error {
399
+ color: $error-50 !important;
400
+
401
+ a {
402
+ color: $error-50!important;
403
+ }
404
+
405
+
406
+ svg {
407
+ color: $error-50 !important;
408
+ }
409
+ }
410
+
411
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
412
+ color: $error-50 !important;
413
+ }
414
+
415
+ .mat-mdc-text-field-wrapper {
416
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
417
+ border-color: $error-50 !important;
418
+ }
419
+
420
+ &:hover, &.mdc-text-field--focused {
421
+ .mat-mdc-form-field-icon-prefix svg {
422
+ color: $error-50 !important;
423
+ }
424
+
425
+ @extend .active-field;
426
+
427
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
428
+ border-color: $error-50 !important;
429
+ }
430
+
431
+ .mat-mdc-form-field-flex .mat-mdc-floating-label.mdc-floating-label--float-above {
432
+ color: $error-50 !important;
433
+ }
434
+ }
435
+ }
436
+ }
437
+ }
438
+ }
439
+ }
440
+
441
+ // this overrides for dark ui-dropdown used in coderunner only. will be removed with proper rebranded dark theme
442
+ *[theme="dark"], .dark {
443
+ .ui-dropdown-list.mat-accent {
444
+ background-color: $grayscale-50;
445
+
446
+ mat-option {
447
+ background-color: $grayscale-50 !important;
448
+
449
+ &:hover, &.mat-mdc-option-active {
450
+ background-color: $grayscale-40 !important;
451
+ }
452
+
453
+ &, &.mat-mdc-option-active {
454
+ .mdc-list-item__primary-text {
455
+ color: $tgo-white !important;
456
+ }
457
+ }
458
+ }
459
+ }
460
+
461
+ .mat-mdc-select-placeholder {
462
+ color: $grayscale-40;
463
+ }
464
+
465
+ .ui-dropdown .mat-mdc-select {
466
+ color: $tgo-white;
467
+ }
468
+ }
469
+
470
+ .cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list {
471
+ border-radius: 10px !important;
472
+ box-shadow: $box-shadow-hover-state;
473
+
474
+ &.mat-accent mat-option,
475
+ &.mat-accent .mat-mdc-option-multiple {
476
+ &:hover:not(.mdc-list-item--disabled),
477
+ &:focus:not(.mdc-list-item--disabled) {
478
+ background-color: $tgo-medium;
479
+ }
480
+
481
+ &.mat-mdc-option-active,
482
+ &.mdc-list-item--selected {
483
+ background-color: $tgo-petrol-90w;
484
+ color: $tgo-black;
485
+ &:hover:not(.mdc-list-item--disabled),
486
+ &:focus:not(.mdc-list-item--disabled) {
487
+ background-color: $tgo-petrol-secondary;
488
+ }
489
+ }
490
+ }
491
+
492
+ &.mat-warn mat-option,
493
+ &.mat-warn .mat-mdc-option-multiple {
494
+ &:hover:not(.mdc-list-item--disabled),
495
+ &:focus:not(.mdc-list-item--disabled) {
496
+ background-color: $tgo-medium;
497
+ }
498
+
499
+ &.mat-mdc-option-active,
500
+ &.mdc-list-item--selected {
501
+ background-color: $tgo-error-secondary;
502
+ color: $tgo-black;
503
+ &:hover:not(.mdc-list-item--disabled),
504
+ &:focus:not(.mdc-list-item--disabled) {
505
+ background-color: $tgo-error-60w;
506
+ }
507
+ }
508
+ }
509
+ }
510
+
511
+ .ui-field[theme=light] .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mdc-notched-outline__notch label,
512
+ .ui-field[theme=dark] .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mdc-notched-outline__notch label {
513
+ color: $grayscale-50!important;
514
+
515
+ &:active {
516
+ color: $black!important;
517
+ }
518
+ }
519
+
520
+ .mat-mdc-form-field {
521
+ .mat-mdc-form-field-hint-wrapper {
522
+ padding: 0;
523
+
524
+ .errors {
525
+ padding-top: 4px;
526
+ padding-bottom: 10px;
527
+ }
528
+
529
+ span, .mat-mdc-form-field-hint-spacer {
530
+ line-height: 16px;
531
+ }
532
+ }
533
+
534
+ .mat-mdc-form-field-hint:before {
535
+ height: 0!important;
536
+ }
537
+
538
+ .mat-mdc-form-field-hint.error {
539
+ display: flex;
540
+ flex-flow: column;
541
+ row-gap: 4px;
542
+
543
+ .errors {
544
+ ui-icon {
545
+ margin-right: 4px;
546
+ }
547
+
548
+ align-items: center;
549
+ display: flex;
550
+ }
551
+ }
552
+ }
553
+
554
+
555
+ .custom-errors {
556
+ ui-icon {
557
+ margin-right: 4px;
558
+ }
559
+ svg {
560
+ color: $error-50 !important;
561
+ }
562
+
563
+ align-items: center;
564
+ display: flex;
565
+ color: $error-50 !important;
566
+ padding: 4px 0 10px 0;
567
+ font-size: 12px;
568
+ line-height: 16px;
569
+ position: relative;
570
+ }
571
+
572
+ .light.mat-mdc-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option:focus:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option.mat-mdc-option-active, .light.mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled),
573
+ .dark.mat-mdc-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option:focus:not(.mdc-list-item--disabled), .light.mat-mdc-autocomplete-panel .mat-mdc-option.mat-mdc-option-active, .light.mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled) {
574
+ background: var(--ui-autocomplete-option-color)!important;
575
+ }