@agorapulse/ui-theme 0.0.4 → 1.0.0-SNAPSHOT

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 (66) hide show
  1. package/agorapulse-ui-theme-1.0.0-SNAPSHOT.tgz +0 -0
  2. package/assets/desktop_variables.css +616 -0
  3. package/assets/mobile_variables.css +616 -0
  4. package/assets/style/_colors.scss +84 -78
  5. package/assets/style/_font-face.scss +15 -10
  6. package/assets/style/_helpers.scss +5 -3
  7. package/assets/style/_input.scss +52 -0
  8. package/assets/style/_link.scss +70 -0
  9. package/assets/style/_mat-typography.scss +45 -48
  10. package/assets/style/_select.scss +631 -0
  11. package/assets/style/_tooltip.scss +138 -0
  12. package/assets/style/_variables.scss +11 -12
  13. package/assets/style/components-custom-style/_clickable-text.scss +1 -1
  14. package/assets/style/components-custom-style/_form.scss +17 -18
  15. package/assets/style/components-custom-style/_input.scss +38 -38
  16. package/assets/style/components-custom-style/_mat-button-toggle-group.scss +8 -12
  17. package/assets/style/components-custom-style/_mat-button.scss +243 -49
  18. package/assets/style/components-custom-style/_mat-dialog.scss +6 -5
  19. package/assets/style/components-custom-style/_mat-expansion-panel.scss +8 -9
  20. package/assets/style/components-custom-style/_mat-list.scss +4 -4
  21. package/assets/style/components-custom-style/_mat-menu.scss +44 -33
  22. package/assets/style/components-custom-style/_mat-table.scss +3 -0
  23. package/assets/style/components-custom-style/_ng-select.scss +57 -5
  24. package/assets/style/theme.scss +43 -18
  25. package/package.json +23 -18
  26. package/src/README.md +42 -0
  27. package/src/build.js +6 -0
  28. package/src/desktop_config.js +18 -0
  29. package/src/mobile_config.js +18 -0
  30. package/src/tokens/components/badge.json +53 -0
  31. package/src/tokens/components/button.json +37 -0
  32. package/src/tokens/components/counter.json +108 -0
  33. package/src/tokens/components/dot-stepper.json +52 -0
  34. package/src/tokens/components/icon-button.json +18 -0
  35. package/src/tokens/components/infobox.json +139 -0
  36. package/src/tokens/components/input.json +304 -0
  37. package/src/tokens/components/label.json +56 -0
  38. package/src/tokens/components/link.json +127 -0
  39. package/src/tokens/components/radio.json +11 -0
  40. package/src/tokens/components/select.json +279 -0
  41. package/src/tokens/components/snackbar.json +71 -0
  42. package/src/tokens/components/split-button.json +34 -0
  43. package/src/tokens/components/status-card.json +187 -0
  44. package/src/tokens/components/status.json +120 -0
  45. package/src/tokens/components/tag.json +194 -0
  46. package/src/tokens/components/tooltip.json +36 -0
  47. package/src/tokens/reference/animation.json +18 -0
  48. package/src/tokens/reference/border-radius.json +15 -0
  49. package/src/tokens/reference/color.json +151 -0
  50. package/src/tokens/reference/font.json +69 -0
  51. package/src/tokens/reference/spacing.json +33 -0
  52. package/src/tokens/reference/transition.json +9 -0
  53. package/src/tokens/system/border.json +28 -0
  54. package/src/tokens/system/color.json +198 -0
  55. package/src/tokens/system/desktop/button.json +9 -0
  56. package/src/tokens/system/desktop/icon-button.json +15 -0
  57. package/src/tokens/system/icon.json +12 -0
  58. package/src/tokens/system/mobile/button.json +9 -0
  59. package/src/tokens/system/mobile/icon-button.json +15 -0
  60. package/src/tokens/system/radio.json +11 -0
  61. package/src/tokens/system/text.json +173 -0
  62. package/agorapulse-ui-theme-0.0.4.tgz +0 -0
  63. package/assets/style/_grid.scss +0 -166
  64. package/assets/style/components-custom-style/_mat-checkbox.scss +0 -103
  65. package/assets/style/components-custom-style/_mat-radio-button.scss +0 -86
  66. package/assets/style/components-custom-style/_mat-slide-toggle.scss +0 -45
@@ -0,0 +1,631 @@
1
+ .ng-select.ap-select {
2
+ font-family: var(--sys-text-style-body-font-family);
3
+ .ng-select-container {
4
+ border-color: var(--ref-color-grey-20);
5
+ padding: 0 var(--ref-spacing-xs);
6
+ gap: var(--ref-spacing-xxs);
7
+ &:hover {
8
+ box-shadow: none;
9
+ cursor: pointer;
10
+ border-color: var(--ref-color-grey-40) !important;
11
+ }
12
+
13
+ .ng-value-container {
14
+ overflow-x: auto;
15
+ overflow-y: hidden;
16
+
17
+ &:hover {
18
+ cursor: pointer;
19
+ }
20
+
21
+ .ng-input {
22
+ visibility: hidden;
23
+ }
24
+
25
+ input {
26
+ &:hover {
27
+ cursor: pointer;
28
+ }
29
+ }
30
+ }
31
+ }
32
+
33
+ &.valid {
34
+ .ng-select-container {
35
+ border-color: var(--comp-input-border-success-color);
36
+ }
37
+ }
38
+
39
+ &.ng-invalid.ng-dirty.ng-touched {
40
+ .ng-select-container {
41
+ border-color: var(--comp-input-border-error-color);
42
+ }
43
+ }
44
+
45
+ &.ng-select-opened {
46
+ &.ng-select-bottom,
47
+ &.ng-select-top {
48
+ .ng-select-container {
49
+ border-radius: var(--ref-border-radius-sm);
50
+ border-color: var(--ref-color-grey-20);
51
+ }
52
+ }
53
+
54
+ .ng-arrow {
55
+ border-color: transparent transparent var(--ref-color-electric-blue-100);
56
+ }
57
+
58
+ .ng-select-container {
59
+ &:hover {
60
+ border-color: var(--ref-color-electric-blue-100) !important;
61
+ }
62
+ border-color: var(--ref-color-electric-blue-100) !important;
63
+ }
64
+ }
65
+
66
+ &.ng-select-single {
67
+ .ng-value-container {
68
+ .ng-value {
69
+ overflow: visible !important;
70
+ width: 100%;
71
+ display: flex;
72
+ span.text-item {
73
+ display: inline-block;
74
+ width: 100%;
75
+ overflow: hidden;
76
+ white-space: nowrap;
77
+ text-overflow: ellipsis;
78
+ padding-right: var(--ref-spacing-xxs);
79
+ }
80
+ span {
81
+ display: inline-block;
82
+ }
83
+ ap-tag {
84
+ width: 100%;
85
+ margin-right: var(--ref-spacing-xxs);
86
+ div {
87
+ overflow: auto;
88
+ }
89
+ }
90
+ ap-label {
91
+ margin-right: var(--ref-spacing-xxs);
92
+ .label {
93
+ overflow: auto;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ &.ng-select-multiple .ng-select-container {
101
+ .ng-value-container {
102
+ flex-wrap: nowrap;
103
+ overflow: hidden;
104
+ padding-top: 0;
105
+ padding-left: 0;
106
+
107
+ .ng-placeholder {
108
+ top: 0;
109
+ padding-bottom: 0;
110
+ padding-left: 0;
111
+ }
112
+ }
113
+ }
114
+
115
+ &.ng-select-disabled {
116
+ .ng-select-container {
117
+ background-color: var(--ref-color-grey-20);
118
+ border-color: var(--ref-color-grey-20);
119
+ color: var(--ref-color-grey-100);
120
+
121
+ &:hover {
122
+ cursor: default !important;
123
+ background-color: var(--ref-color-grey-20) !important;
124
+ border-color: var(--ref-color-grey-20) !important;
125
+ }
126
+
127
+ .ng-placeholder {
128
+ color: var(--ref-color-grey-60) !important;
129
+ }
130
+
131
+ .ng-value-container {
132
+ &:hover {
133
+ cursor: default !important;
134
+ }
135
+ }
136
+ }
137
+ }
138
+
139
+ .inline-label {
140
+ padding-right: var(--ref-spacing-xxs);
141
+ border-right: 1px solid var(--comp-select-inline-separator-color);
142
+ color: var(--comp-select-inline-label-text-color);
143
+ }
144
+
145
+ ap-symbol.inline-symbol {
146
+ height: var(--comp-input-icon-size);
147
+ width: var(--comp-input-icon-size);
148
+ min-height: var(--comp-input-icon-size);
149
+ min-width: var(--comp-input-icon-size);
150
+ max-height: var(--comp-input-icon-size);
151
+ max-width: var(--comp-input-icon-size);
152
+ color: var(--comp-input-icon-color);
153
+ pointer-events: none;
154
+ box-sizing: content-box;
155
+
156
+ &:hover {
157
+ cursor: text;
158
+ }
159
+ }
160
+
161
+ .ng-value-container {
162
+ height: 100%;
163
+ padding-left: 0;
164
+ position: relative;
165
+
166
+ .ng-placeholder {
167
+ color: var(--ref-color-grey-60);
168
+ font-family: var(--sys-text-style-body-font-family);
169
+ font-weight: var(--sys-text-style-body-weight);
170
+ font-size: var(--sys-text-style-body-size);
171
+ line-height: var(--sys-text-style-body-line-height);
172
+ }
173
+
174
+ .multiple-item {
175
+ display: flex;
176
+ align-items: center;
177
+ gap: var(--ref-spacing-xxxs);
178
+
179
+ .item {
180
+ visibility: hidden;
181
+ }
182
+
183
+ .text-item {
184
+ color: var(--ref-color-grey-100);
185
+ font-size: var(--ref-font-size-sm);
186
+ line-height: var(--ref-font-line-height-sm);
187
+ }
188
+ }
189
+
190
+ .with-avatar {
191
+ display: flex;
192
+ align-items: center;
193
+ gap: var(--ref-spacing-xxxs);
194
+ }
195
+
196
+ .ng-value {
197
+ margin: 0 !important;
198
+ color: var(--ref-color-grey-100);
199
+ font-weight: var(--sys-text-style-body-weight);
200
+ font-size: var(--sys-text-style-body-size);
201
+ line-height: var(--sys-text-style-body-line-height);
202
+ }
203
+
204
+ .ng-input {
205
+ position: unset !important;
206
+ padding: 0 !important;
207
+ height: 100% !important;
208
+
209
+ input {
210
+ height: 100%;
211
+ color: var(--ref-color-grey-100) !important;
212
+ caret-color: var(--ref-color-grey-100) !important;
213
+ border-radius: unset;
214
+ }
215
+ }
216
+ }
217
+
218
+ .ng-arrow-wrapper {
219
+ padding-right: 0;
220
+ width: auto;
221
+ }
222
+
223
+ .ng-clear-wrapper {
224
+ padding-right: 0;
225
+ width: auto;
226
+ }
227
+
228
+ &.with-error {
229
+ .ng-select-container {
230
+ border-color: var(--comp-input-border-error-color);
231
+ }
232
+ }
233
+
234
+ &.with-success {
235
+ .ng-select-container {
236
+ border-color: var(--comp-input-border-success-color);
237
+ }
238
+ }
239
+ }
240
+
241
+ .ng-dropdown-panel.ap-select,
242
+ .ap-select .ng-select-container + .ng-dropdown-panel {
243
+ overflow: hidden;
244
+ border: none;
245
+ box-shadow: var(--comp-select-shadow);
246
+ padding: var(--comp-select-padding-vertical) 0;
247
+ background-color: var(--comp-select-background-color);
248
+
249
+ &.ng-select-bottom {
250
+ margin-top: var(--ref-spacing-xxxs);
251
+ border-radius: var(--ref-border-radius-sm);
252
+ }
253
+
254
+ .ng-dropdown-panel-items {
255
+ padding: 0;
256
+ .ng-option {
257
+ box-sizing: border-box;
258
+ padding: 0;
259
+ position: relative;
260
+
261
+ .ng-option-label {
262
+ padding: 0;
263
+ }
264
+
265
+ &.ng-option-child {
266
+ padding-left: 0;
267
+ }
268
+
269
+ &:hover:not(.ng-option-disabled) {
270
+ .option {
271
+ background-color: var(--ref-color-electric-blue-10);
272
+ }
273
+ .feature-locked-option {
274
+ background-color: var(--ref-color-purple-10);
275
+ }
276
+ }
277
+
278
+ &:active:not(.ng-option-disabled) {
279
+ .option {
280
+ background-color: var(--ref-color-electric-blue-20);
281
+ }
282
+ .feature-locked-option {
283
+ background-color: var(--ref-color-purple-20);
284
+ }
285
+ }
286
+
287
+ &:focus:not(.ng-option-disabled) {
288
+ .option {
289
+ background-color: var(--ref-color-electric-blue-20);
290
+ }
291
+ .feature-locked-option {
292
+ background-color: var(--ref-color-purple-20);
293
+ }
294
+ }
295
+
296
+ &.ng-option-selected {
297
+ background-color: transparent;
298
+ .option {
299
+ font-family: var(--comp-select-one-line-selected-text-font-family);
300
+ font-size: var(--comp-select-one-line-selected-text-size);
301
+ line-height: var(--comp-select-one-line-selected-text-line-height);
302
+ font-weight: var(--comp-select-one-line-selected-text-font-weight);
303
+ .option-item {
304
+ font-weight: var(--comp-select-one-line-selected-text-font-weight);
305
+ }
306
+ &.multiple {
307
+ .option-item {
308
+ color: var(--ref-color-grey-100);
309
+ }
310
+ }
311
+
312
+ &:not(.multiple) {
313
+ background-color: var(--ref-color-electric-blue-10);
314
+ color: var(--ref-color-electric-blue-150);
315
+ ap-symbol:not(.option-selected) .svg {
316
+ color: var(--ref-color-electric-blue-150);
317
+ }
318
+ ap-avatar ap-symbol:not(.option-selected) .svg {
319
+ color: inherit;
320
+ }
321
+ .label {
322
+ color: var(--ref-color-electric-blue-150);
323
+ }
324
+ .caption {
325
+ color: var(--ref-color-electric-blue-100);
326
+ }
327
+ }
328
+ }
329
+ }
330
+
331
+ &.ng-option-marked:not(.ng-option-selected) {
332
+ background-color: transparent;
333
+ &:hover {
334
+ background-color: transparent;
335
+ }
336
+
337
+ .feature-locked-option {
338
+ background-color: var(--ref-color-purple-10) !important;
339
+ }
340
+
341
+ .option {
342
+ background-color: var(--ref-color-electric-blue-10);
343
+ span {
344
+ color: var(--ref-color-grey-100);
345
+ }
346
+
347
+ .label {
348
+ color: var(--ref-color-grey-100);
349
+ }
350
+
351
+ .caption {
352
+ color: var(--ref-color-grey-80);
353
+ }
354
+
355
+ &.multiple {
356
+ .label {
357
+ color: var(--ref-color-grey-100);
358
+ }
359
+
360
+ .caption {
361
+ color: var(--ref-color-grey-80);
362
+ }
363
+ }
364
+ }
365
+ }
366
+ &.ng-option-marked:has(.divider) {
367
+ background-color: transparent;
368
+ }
369
+
370
+ &.ng-option-disabled {
371
+ color: var(--ref-color-grey-40);
372
+
373
+ .disabled-opaque {
374
+ position: absolute;
375
+ inset: 0;
376
+ opacity: 0.6;
377
+ background-color: var(--ref-color-white);
378
+ cursor: default;
379
+ width: 100%;
380
+ height: 100%;
381
+ z-index: 999;
382
+ }
383
+ }
384
+ }
385
+
386
+ .loading-state {
387
+ display: flex;
388
+ justify-content: center;
389
+ align-items: center;
390
+ flex-direction: column;
391
+ gap: var(--ref-spacing-xxs);
392
+ min-height: 90px;
393
+ max-height: 90px;
394
+ padding: var(--ref-spacing-md) var(--ref-spacing-sm) var(--ref-spacing-sm);
395
+ box-sizing: border-box;
396
+
397
+ span {
398
+ font-size: var(--ref-font-size-sm);
399
+ line-height: var(--ref-font-line-height-sm);
400
+ font-style: italic;
401
+ font-weight: var(--ref-font-weight-regular);
402
+ color: var(--ref-color-grey-80);
403
+ }
404
+ }
405
+
406
+ .group {
407
+ display: flex;
408
+ align-items: center;
409
+ width: 100%;
410
+ gap: var(--ref-spacing-xxs);
411
+ padding: var(--comp-select-group-padding-horizontal) var(--comp-select-group-padding-vertical);
412
+
413
+ ap-checkbox {
414
+ width: 100%;
415
+
416
+ .checkbox {
417
+ width: 100%;
418
+
419
+ label {
420
+ display: flex;
421
+ gap: var(--ref-spacing-xxs);
422
+ flex: 1;
423
+ overflow: auto;
424
+
425
+ .group-label {
426
+ white-space: initial;
427
+ }
428
+ }
429
+ }
430
+ }
431
+ }
432
+
433
+ .divider {
434
+ width: 100%;
435
+ height: 1px;
436
+ background-color: var(--comp-select-separator-color);
437
+ margin: var(--ref-spacing-xxs) 0;
438
+ }
439
+
440
+ .option {
441
+ display: flex;
442
+ align-items: center;
443
+ box-sizing: border-box;
444
+ min-height: var(--comp-select-one-line-height);
445
+ max-height: var(--comp-select-one-line-height);
446
+ color: var(--comp-select-one-line-text-color);
447
+ background-color: var(--comp-select-one-line-background-color);
448
+ font-family: var(--comp-select-one-line-text-font-family);
449
+ font-size: var(--comp-select-one-line-text-size);
450
+ font-weight: var(--comp-select-one-line-text-font-weight);
451
+ line-height: var(--comp-select-one-line-text-line-height);
452
+ padding: var(--ref-spacing-xxs) var(--comp-select-one-line-padding-horizontal);
453
+
454
+ ap-checkbox {
455
+ width: 100%;
456
+ .checkbox {
457
+ width: 100%;
458
+
459
+ label {
460
+ flex: 1;
461
+ overflow: auto;
462
+ }
463
+ }
464
+ }
465
+
466
+ ap-symbol {
467
+ color: var(--comp-select-one-line-text-color);
468
+ }
469
+
470
+ .option-item {
471
+ overflow: hidden;
472
+ white-space: nowrap;
473
+ text-overflow: ellipsis;
474
+ display: inline-block;
475
+ }
476
+
477
+ &.not-found {
478
+ padding: var(--ref-spacing-sm) var(--ref-spacing-sm) var(--ref-spacing-xxs) var(--ref-spacing-sm);
479
+ color: var(--ref-color-grey-80);
480
+ font-style: italic;
481
+ }
482
+
483
+ .label {
484
+ font-family: var(--comp-select-one-line-text-font-family);
485
+ font-size: var(--comp-select-one-line-text-size);
486
+ font-weight: var(--comp-select-one-line-text-font-weight);
487
+ line-height: var(--comp-select-one-line-text-line-height);
488
+ }
489
+
490
+ &.with-caption {
491
+ padding: var(--ref-spacing-xxs) var(--comp-select-one-line-padding-horizontal);
492
+ min-height: var(--comp-select-two-line-height);
493
+ max-height: var(--comp-select-two-line-height);
494
+
495
+ .label {
496
+ font-weight: var(--comp-select-two-line-title-text-font-weight);
497
+ font-family: var(--comp-select-two-line-title-text-font-family);
498
+ font-size: var(--comp-select-two-line-title-text-size);
499
+ line-height: var(--comp-select-two-line-title-text-line-height);
500
+ color: var(--comp-select-two-line-title-text-color);
501
+ }
502
+
503
+ .caption {
504
+ font-weight: var(--comp-select-two-line-caption-text-font-weight);
505
+ font-family: var(--comp-select-two-line-caption-text-font-family);
506
+ font-size: var(--comp-select-two-line-caption-text-size);
507
+ line-height: var(--comp-select-two-line-caption-text-line-height);
508
+ color: var(--comp-select-two-line-caption-text-color);
509
+ display: inline-block;
510
+ overflow: hidden;
511
+ white-space: nowrap;
512
+ text-overflow: ellipsis;
513
+ width: 100%;
514
+ }
515
+ }
516
+ &:hover {
517
+ .standalone-link {
518
+ display: block;
519
+ }
520
+ }
521
+ }
522
+
523
+ .ng-dropdown-panel-items {
524
+ padding: 0;
525
+ }
526
+
527
+ .ng-optgroup {
528
+ display: flex;
529
+ align-items: center;
530
+ padding: 0;
531
+
532
+ &:first-child {
533
+ .with-search,
534
+ .with-select-all {
535
+ border: none;
536
+ }
537
+ }
538
+
539
+ .group {
540
+ display: flex;
541
+ width: 100%;
542
+ height: 100%;
543
+ background-color: var(--comp-select-group-background-color);
544
+ min-height: 32px;
545
+ box-sizing: border-box;
546
+ padding: var(--comp-select-group-padding-vertical) var(--comp-select-group-padding-horizontal);
547
+ border-top: 1px solid var(--comp-select-group-border-top-color);
548
+
549
+ .group-label {
550
+ white-space: initial;
551
+ font-weight: var(--comp-select-group-text-font-weight);
552
+ font-size: var(--comp-select-group-text-size);
553
+ line-height: var(--comp-select-group-text-line-height);
554
+ font-family: var(--comp-select-group-text-font-family);
555
+ color: var(--comp-select-group-text-color);
556
+ }
557
+ }
558
+ }
559
+ }
560
+
561
+ .ng-dropdown-header {
562
+ margin-bottom: var(--ref-spacing-xxs);
563
+ padding: 0 var(--comp-select-search-bar-padding-horizontal) var(--comp-select-search-bar-margin-bottom)
564
+ var(--comp-select-search-bar-padding-horizontal);
565
+ border-bottom: 1px solid var(--comp-select-search-bar-border-bottom-color);
566
+
567
+ .select-all-checkbox {
568
+ padding-left: var(--ref-spacing-xxs);
569
+ height: var(--comp-select-one-line-height);
570
+ }
571
+ }
572
+
573
+ .ng-dropdown-footer {
574
+ cursor: pointer;
575
+ padding: 0;
576
+ margin-top: var(--ref-spacing-xxxs);
577
+ border-top: 1px solid var(--ref-color-grey-10);
578
+ .create-new {
579
+ display: flex;
580
+ align-items: center;
581
+ border: none;
582
+ width: 100%;
583
+ background-color: transparent;
584
+ gap: var(--ref-spacing-xxxs);
585
+ color: var(--ref-color-electric-blue-150);
586
+ font-weight: var(--ref-font-weight-bold);
587
+ font-family: var(--ref-font-family);
588
+ cursor: pointer;
589
+ padding: var(--comp-select-search-bar-bottom-link-margin-top) var(--comp-select-search-bar-bottom-link-padding-horizontal)
590
+ var(--comp-select-search-bar-bottom-link-padding-bottom) var(--comp-select-search-bar-bottom-link-padding-horizontal);
591
+ line-height: var(--ref-font-line-height-sm);
592
+ font-size: var(--ref-font-size-sm);
593
+
594
+ &:hover {
595
+ color: var(--ref-color-electric-blue-100);
596
+ }
597
+
598
+ &:active {
599
+ color: var(--ref-color-electric-blue-150);
600
+ }
601
+ span {
602
+ text-align: left;
603
+ }
604
+ }
605
+ }
606
+
607
+ .standalone-link {
608
+ color: var(--ref-color-electric-blue-150);
609
+ font-weight: var(--ref-font-weight-bold);
610
+ font-family: var(--ref-font-family);
611
+ background-color: transparent;
612
+ border: none;
613
+ line-height: var(--ref-font-line-height-sm);
614
+ font-size: var(--ref-font-size-sm);
615
+ cursor: pointer;
616
+ margin-left: auto;
617
+ display: none;
618
+
619
+ &:hover {
620
+ color: var(--ref-color-electric-blue-100);
621
+ }
622
+
623
+ &:active {
624
+ color: var(--ref-color-electric-blue-150);
625
+ }
626
+ }
627
+ }
628
+
629
+ .feature-locked-label {
630
+ cursor: pointer;
631
+ }