@agorapulse/ui-theme 0.0.3 → 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.3.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
@@ -120,13 +120,19 @@
120
120
  color: map_get($colors-electric-blue, 100);
121
121
  }
122
122
  }
123
- &:not(.mat-accent):not(.mat-primary):not(.mat-success):not(.mat-warn):not(.mat-secondary):not(.mat-facebook):not(.mat-instagram):not(.mat-linkedin):not(.mat-twitter):not(.mat-youtube):not(.active) {
123
+ &:not(.mat-accent):not(.mat-primary):not(.mat-success):not(.mat-warn):not(.mat-secondary):not(.mat-facebook):not(
124
+ .mat-instagram
125
+ ):not(.mat-linkedin):not(.mat-twitter):not(.mat-youtube):not(.active):not(.locked) {
124
126
  ap-symbol {
125
127
  color: map_get($colors-grey, 60);
126
128
  }
129
+ &.animated ap-symbol {
130
+ color: map_get($colors-electric-blue, 100);
131
+ }
127
132
  }
128
133
  }
129
- &.square {
134
+ &.square,
135
+ &.square-rounded {
130
136
  min-width: 36px;
131
137
  padding: 0;
132
138
  &.small {
@@ -139,26 +145,133 @@
139
145
  min-width: 44px;
140
146
  }
141
147
  }
148
+
149
+ &.square-rounded {
150
+ border-radius: 8px;
151
+ }
152
+
153
+ //loading
154
+ &.animated {
155
+ overflow: hidden;
156
+ opacity: 1;
157
+
158
+ &.circle,
159
+ &.square {
160
+ ap-symbol {
161
+ animation: fadeout 0.4s linear 1 forwards;
162
+ }
163
+
164
+ .animation {
165
+ position: absolute;
166
+ border: 2px solid transparent;
167
+ width: 16px;
168
+ height: 16px;
169
+ box-sizing: border-box;
170
+ border-radius: 50%;
171
+ border-top: 2px solid map_get($colors-electric-blue, 100);
172
+ border-right: 2px solid map_get($colors-electric-blue, 100);
173
+ animation:
174
+ spin 1s linear infinite,
175
+ fadein 0.4s linear 1 forwards;
176
+ }
177
+
178
+ &.animation-fade-out {
179
+ ap-symbol {
180
+ animation: fadein 0.4s linear 1 forwards;
181
+ }
182
+
183
+ .animation {
184
+ animation:
185
+ spin 1s linear infinite,
186
+ fadeout 0.4s linear 1 forwards;
187
+ }
188
+ }
189
+ }
190
+
191
+ &:not(.circle):not(.square) .animation {
192
+ position: absolute;
193
+ bottom: 0;
194
+ background-color: map_get($colors-orange, 100);
195
+ height: 5px;
196
+ width: 50%;
197
+ border-radius: 6px;
198
+ animation: slide 1.2s linear infinite;
199
+ }
200
+ }
201
+
202
+ @keyframes spin {
203
+ 0% {
204
+ transform: rotate(0deg);
205
+ }
206
+ 100% {
207
+ transform: rotate(360deg);
208
+ }
209
+ }
210
+
211
+ @keyframes slide {
212
+ 0% {
213
+ left: -70px;
214
+ }
215
+ 100% {
216
+ left: calc(100%);
217
+ }
218
+ }
219
+
220
+ @keyframes fadein {
221
+ 0% {
222
+ opacity: 0;
223
+ }
224
+ 100% {
225
+ opacity: 1;
226
+ }
227
+ }
228
+
229
+ @keyframes fadeout {
230
+ 0% {
231
+ opacity: 1;
232
+ }
233
+ 100% {
234
+ opacity: 0;
235
+ }
236
+ }
142
237
  }
143
238
 
144
239
  @mixin flat-button-color($background-color, $hover-background-color, $active-background-color) {
145
- background-color: $background-color;
146
- color: #fff;
147
- ap-symbol {
148
- color: #fff!important;
149
- }
150
- &:hover, &.force-hover {
151
- background-color: $hover-background-color;
240
+ &:not([disabled]) {
241
+ background-color: $background-color;
242
+ color: #fff;
243
+
244
+ ap-symbol {
245
+ color: #fff !important;
246
+ }
247
+
248
+ &:hover,
249
+ &.force-hover {
250
+ background-color: $hover-background-color;
251
+ }
252
+
253
+ &:active {
254
+ background-color: $active-background-color;
255
+ }
152
256
  }
153
- &:active {
257
+ &.animated {
154
258
  background-color: $active-background-color;
259
+ &:not(.circle):not(.square) .animation {
260
+ background-color: $background-color;
261
+ }
262
+ &.circle .animation,
263
+ &.square .animation {
264
+ border-top-color: white;
265
+ border-right-color: white;
266
+ }
155
267
  }
156
268
  }
157
269
 
158
270
  button.mat-flat-button {
159
271
  @extend %ap-button;
160
272
  background-color: transparent;
161
- &:not([disabled]):hover, &.force-hover {
273
+ &:not([disabled]):hover,
274
+ &.force-hover {
162
275
  background-color: map_get($colors-grey, 5);
163
276
  &.active {
164
277
  background-color: map_get($colors-electric-blue, 10);
@@ -189,47 +302,72 @@ button.mat-flat-button {
189
302
  background-color: map_get($colors-grey, 20);
190
303
  color: #fff;
191
304
  }
192
- &.mat-accent:not([disabled]) {
193
- @include flat-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 85), map_get($colors-electric-blue, 60));
305
+ &.mat-accent {
306
+ @include flat-button-color(
307
+ map_get($colors-electric-blue, 100),
308
+ map_get($colors-electric-blue, 85),
309
+ map_get($colors-electric-blue, 60)
310
+ );
194
311
  }
195
- &.mat-primary:not([disabled]) {
312
+ &.mat-primary {
196
313
  @include flat-button-color(map_get($colors-orange, 100), map_get($colors-orange, 85), map_get($colors-orange, 60));
197
314
  }
198
- &.mat-success:not([disabled]) {
315
+ &.mat-success {
199
316
  @include flat-button-color(map_get($colors-green, 100), map_get($colors-green, 85), map_get($colors-green, 60));
200
317
  }
201
- &.mat-warn:not([disabled]) {
318
+ &.mat-warn {
202
319
  @include flat-button-color(map_get($colors-red, 100), map_get($colors-red, 85), map_get($colors-red, 60));
203
320
  }
204
321
  // Social networks
205
- &.mat-facebook:not([disabled]) {
322
+ &.mat-facebook {
206
323
  @include flat-button-color($color-facebook, $color-facebook, $color-facebook);
207
324
  }
208
- &.mat-instagram:not([disabled]) {
325
+ &.mat-instagram {
209
326
  @include flat-button-color($color-instagram, $color-instagram, $color-instagram);
210
327
  }
211
- &.mat-linkedin:not([disabled]) {
328
+ &.mat-linkedin {
212
329
  @include flat-button-color($color-linkedin, $color-linkedin, $color-linkedin);
213
330
  }
214
- &.mat-twitter:not([disabled]) {
331
+ &.mat-twitter {
215
332
  @include flat-button-color($color-twitter, $color-twitter, $color-twitter);
216
333
  }
217
- &.mat-youtube:not([disabled]) {
334
+ &.mat-youtube {
218
335
  @include flat-button-color($color-youtube, $color-youtube, $color-youtube);
219
336
  }
220
- &.mat-google:not([disabled]) {
337
+ &.mat-google {
221
338
  @include flat-button-color($color-google, $color-google, $color-google);
222
339
  }
223
340
  }
224
341
 
225
342
  @mixin stroked-button-color($color, $border-color, $hover-border-color) {
226
- color: $color;
227
- border-color: $border-color;
228
- &:hover, &.force-hover {
229
- border-color: $hover-border-color;
343
+ &:not([disabled]) {
344
+ color: $color;
345
+ border-color: $border-color;
346
+
347
+ &:hover,
348
+ &.force-hover {
349
+ border-color: $hover-border-color;
350
+ }
351
+
352
+ &:active {
353
+ border-color: $color;
354
+ }
230
355
  }
231
- &:active {
356
+ &.animated {
357
+ color: $color;
232
358
  border-color: $color;
359
+ &:not(.circle):not(.square) .animation {
360
+ bottom: -1px;
361
+ background-color: $color;
362
+ }
363
+ &.circle,
364
+ &.square {
365
+ border: none;
366
+ .animation {
367
+ border-top-color: $color;
368
+ border-right-color: $color;
369
+ }
370
+ }
233
371
  }
234
372
  }
235
373
  @mixin ghost-button-color($color, $hover-background-color, $active-background-color) {
@@ -239,7 +377,8 @@ button.mat-flat-button {
239
377
  ap-symbol {
240
378
  color: $color;
241
379
  }
242
- &:hover, &.force-hover {
380
+ &:hover,
381
+ &.force-hover {
243
382
  background-color: $hover-background-color;
244
383
  }
245
384
  &:active {
@@ -258,7 +397,8 @@ button.mat-stroked-button {
258
397
  ap-symbol {
259
398
  color: map_get($colors-grey, 60);
260
399
  }
261
- &:hover, &.force-hover {
400
+ &:hover,
401
+ &.force-hover {
262
402
  background-color: map_get($colors-grey, 10);
263
403
  }
264
404
  &:active {
@@ -269,6 +409,40 @@ button.mat-stroked-button {
269
409
  color: map_get($colors-grey, 20);
270
410
  }
271
411
  }
412
+ &.locked {
413
+ background-color: map_get($colors-purple, 10);
414
+ border: 1px solid map_get($colors-purple, 20);
415
+ color: map_get($colors-purple, 100);
416
+ position: relative;
417
+
418
+ &:after {
419
+ display: block;
420
+ position: absolute;
421
+ right: -6px;
422
+ top: -6px;
423
+ height: 16px;
424
+ width: 16px;
425
+ background-color: white;
426
+ border-radius: 200px;
427
+ content: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0a12 12 0 1 0 12 12A12.015 12.014 0 0 0 12 0Zm5.34 17.693a.912.912 0 0 1-1.297 1.14l-3.852-2.168a.386.387 0 0 0-.38 0L7.96 18.833a.911.911 0 0 1-1.298-1.14l1.567-3.603a.384.384 0 0 0-.083-.43l-2.83-2.787a.85.84 0 0 1 .598-1.487h3.232a.385.385 0 0 0 .351-.223l1.685-3.628a.92.92 0 0 1 1.637 0l1.684 3.628a.386.386 0 0 0 .352.223h3.23a.851.851 0 0 1 .602 1.487l-2.829 2.787a.384.384 0 0 0-.084.43l1.567 3.603Z' fill='%236554C0'/></svg>");
428
+ }
429
+ &:hover {
430
+ background-color: map_get($colors-purple, 20);
431
+ border: 1px solid map_get($colors-purple, 40);
432
+ }
433
+ &:focus-visible {
434
+ background-color: map_get($colors-purple, 20);
435
+ border: 1px solid map_get($colors-purple, 20);
436
+ box-shadow:
437
+ 0 0 0 1px $color-white,
438
+ 0 0 0 3px map_get($colors-electric-blue, 100);
439
+ }
440
+ &:active {
441
+ background: map_get($colors-purple, 40);
442
+ border: 1px solid map_get($colors-purple, 60);
443
+ }
444
+ }
445
+
272
446
  @extend %ap-button;
273
447
  &.background-grey {
274
448
  background-color: $color-grey-background;
@@ -276,13 +450,15 @@ button.mat-stroked-button {
276
450
  &.background-white {
277
451
  background-color: $color-white;
278
452
  }
279
- &:not([disabled]) {
453
+ &:not([disabled]),
454
+ &:not(.locked) {
280
455
  border-color: map_get($colors-grey, 20);
281
456
  &.active {
282
- border-color: map_get($colors-electric-blue, 40);
457
+ border-color: map_get($colors-electric-blue, 100);
283
458
  }
284
459
  }
285
- &:not([disabled]):hover, &.force-hover {
460
+ &:not([disabled]):hover,
461
+ &.force-hover {
286
462
  border-color: map_get($colors-grey, 40);
287
463
  &.active {
288
464
  border-color: map_get($colors-electric-blue, 85);
@@ -300,16 +476,20 @@ button.mat-stroked-button {
300
476
  color: map_get($colors-grey, 20);
301
477
  }
302
478
 
303
- &.mat-accent:not([disabled]) {
304
- @include stroked-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 60), map_get($colors-electric-blue, 85));
305
- }
306
- &.mat-primary:not([disabled]) {
479
+ &.mat-accent {
480
+ @include stroked-button-color(
481
+ map_get($colors-electric-blue, 100),
482
+ map_get($colors-electric-blue, 60),
483
+ map_get($colors-electric-blue, 85)
484
+ );
485
+ }
486
+ &.mat-primary {
307
487
  @include stroked-button-color(map_get($colors-orange, 100), map_get($colors-orange, 60), map_get($colors-orange, 85));
308
488
  }
309
- &.mat-success:not([disabled]) {
489
+ &.mat-success {
310
490
  @include stroked-button-color(map_get($colors-green, 100), map_get($colors-green, 60), map_get($colors-green, 85));
311
491
  }
312
- &.mat-warn:not([disabled]) {
492
+ &.mat-warn {
313
493
  @include stroked-button-color(map_get($colors-red, 100), map_get($colors-red, 60), map_get($colors-red, 85));
314
494
  }
315
495
  &.mat-warn.ghost {
@@ -333,7 +513,11 @@ button.mat-stroked-button {
333
513
  }
334
514
  }
335
515
  &.mat-accent.ghost {
336
- @include ghost-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 60), map_get($colors-electric-blue, 85));
516
+ @include ghost-button-color(
517
+ map_get($colors-electric-blue, 100),
518
+ map_get($colors-electric-blue, 60),
519
+ map_get($colors-electric-blue, 85)
520
+ );
337
521
  &[disabled] {
338
522
  background-color: transparent;
339
523
  color: map_get($colors-electric-blue, 85);
@@ -352,22 +536,22 @@ button.mat-stroked-button {
352
536
  }
353
537
  }
354
538
  }
355
- &.mat-facebook:not([disabled]) {
539
+ &.mat-facebook {
356
540
  @include stroked-button-color($color-facebook, $color-facebook, 'none');
357
541
  }
358
- &.mat-instagram:not([disabled]) {
542
+ &.mat-instagram {
359
543
  @include stroked-button-color($color-instagram, $color-instagram, 'none');
360
544
  }
361
- &.mat-linkedin:not([disabled]) {
545
+ &.mat-linkedin {
362
546
  @include stroked-button-color($color-linkedin, $color-linkedin, 'none');
363
547
  }
364
- &.mat-twitter:not([disabled]) {
548
+ &.mat-twitter {
365
549
  @include stroked-button-color($color-twitter, $color-twitter, 'none');
366
550
  }
367
- &.mat-youtube:not([disabled]) {
551
+ &.mat-youtube {
368
552
  @include stroked-button-color($color-youtube, $color-youtube, 'none');
369
553
  }
370
- &.mat-google:not([disabled]) {
554
+ &.mat-google {
371
555
  @include stroked-button-color($color-google, $color-google, 'none');
372
556
  }
373
557
  }
@@ -384,7 +568,6 @@ button.mat-stroked-button {
384
568
  border-bottom-left-radius: 0;
385
569
  border-top-left-radius: 0;
386
570
  width: 40px;
387
-
388
571
  }
389
572
  }
390
573
  }
@@ -402,7 +585,8 @@ button.mat-stroked-button {
402
585
  ap-symbol {
403
586
  color: $text-color !important;
404
587
  }
405
- &:hover, &.force-hover {
588
+ &:hover,
589
+ &.force-hover {
406
590
  cursor: pointer;
407
591
  background-color: $hover-background-color;
408
592
  }
@@ -418,7 +602,12 @@ button.mat-stroked-button {
418
602
  }
419
603
 
420
604
  button.ap-button-secondary-orange {
421
- @include flat-secondary-button-color(map_get($colors-orange, 100), map_get($colors-orange, 10), map_get($colors-orange, 20), map_get($colors-orange, 40));
605
+ @include flat-secondary-button-color(
606
+ map_get($colors-orange, 100),
607
+ map_get($colors-orange, 10),
608
+ map_get($colors-orange, 20),
609
+ map_get($colors-orange, 40)
610
+ );
422
611
 
423
612
  &.ap-one-line {
424
613
  @include crop-text();
@@ -426,7 +615,12 @@ button.ap-button-secondary-orange {
426
615
  }
427
616
 
428
617
  button.ap-button-secondary-blue {
429
- @include flat-secondary-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 10), map_get($colors-electric-blue, 20), map_get($colors-electric-blue, 40));
618
+ @include flat-secondary-button-color(
619
+ map_get($colors-electric-blue, 100),
620
+ map_get($colors-electric-blue, 10),
621
+ map_get($colors-electric-blue, 20),
622
+ map_get($colors-electric-blue, 40)
623
+ );
430
624
 
431
625
  &.ap-one-line {
432
626
  @include crop-text();
@@ -6,26 +6,27 @@
6
6
  margin-top: $padding-l;
7
7
  padding: $padding-l;
8
8
 
9
- &[fxLayout] {
9
+ &.ap-space-between {
10
10
  margin-left: -$padding-l;
11
11
  margin-right: -$padding-l;
12
+ justify-content: space-between;
12
13
  }
13
14
 
14
- [fxFlex]:first-child {
15
+ div:first-child {
15
16
  margin-left: $padding-l;
16
17
  }
17
18
 
18
- [fxFlex]:last-child {
19
+ div:last-child {
19
20
  margin-right: $padding-l;
20
21
  }
21
22
  }
22
23
 
23
24
  .dark-backdrop {
24
- background: rgba(0, 0, 0, .75);
25
+ background: rgba(0, 0, 0, 0.75);
25
26
  }
26
27
 
27
28
  .white-backdrop {
28
- background: rgba(255, 255, 255, .75);
29
+ background: rgba(255, 255, 255, 0.75);
29
30
  }
30
31
 
31
32
  .full-screen-modal {
@@ -1,3 +1,5 @@
1
+ @import '../variables';
2
+
1
3
  .mat-accordion {
2
4
  .mat-expansion-panel-spacing {
3
5
  margin: 0;
@@ -6,16 +8,13 @@
6
8
  .mat-action-row {
7
9
  background-color: $color-grey-white;
8
10
  padding: $padding-l;
9
- &[fxLayout] {
10
- margin-left: -$padding-l;
11
- margin-right: -$padding-l;
12
- }
13
- [fxFlex]:first-child {
14
- margin-left: $padding-l;
11
+ &.ap-space-between {
12
+ justify-content: space-between;
15
13
  }
16
- [fxFlex]:last-child {
17
- margin-right: $padding-l;
14
+ div {
15
+ button {
16
+ margin: 0;
17
+ }
18
18
  }
19
19
  }
20
-
21
20
  }
@@ -1,11 +1,11 @@
1
1
  @import '../variables';
2
2
 
3
- .mat-list-option {
4
- .mat-pseudo-checkbox {
3
+ .mat-mdc-list-option {
4
+ .mat-mdc-pseudo-checkbox {
5
5
  border-color: $color-silver;
6
6
  border-radius: $border-radius;
7
7
  border-width: 1px;
8
- &.mat-pseudo-checkbox-checked {
8
+ &.mat-mdc-pseudo-checkbox-checked {
9
9
  background: $color-success;
10
10
  &::after {
11
11
  left: 2px;
@@ -14,6 +14,6 @@
14
14
  }
15
15
  }
16
16
 
17
- .mat-list-base {
17
+ .mat-mdc-list-base {
18
18
  padding-top: 0 !important;
19
19
  }