toggle-components-library 1.31.0 → 1.32.0-beta.1

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 (37) hide show
  1. package/dist/img/clock-solid.fdaf024d.svg +1 -0
  2. package/dist/img/contacts-greyblue.ef6f8a9a.svg +1 -0
  3. package/dist/img/contacts-white.95d07c7a.svg +1 -0
  4. package/dist/img/view_email.508021c9.svg +7 -0
  5. package/dist/img/view_heatmap.f9058fdb.svg +1 -0
  6. package/dist/toggle-components-library.common.js +4982 -90
  7. package/dist/toggle-components-library.common.js.map +1 -1
  8. package/dist/toggle-components-library.css +1 -1
  9. package/dist/toggle-components-library.umd.js +4982 -90
  10. package/dist/toggle-components-library.umd.js.map +1 -1
  11. package/dist/toggle-components-library.umd.min.js +27 -6
  12. package/dist/toggle-components-library.umd.min.js.map +1 -1
  13. package/package-lock.json +11 -1
  14. package/package.json +78 -76
  15. package/src/assets/icons/clock-solid.svg +1 -0
  16. package/src/assets/icons/contacts-greyblue.svg +1 -0
  17. package/src/assets/icons/contacts-white.svg +1 -0
  18. package/src/assets/icons/contacts.svg +1 -0
  19. package/src/assets/icons/view_email.svg +7 -0
  20. package/src/assets/icons/view_heatmap.svg +1 -0
  21. package/src/components/badges/ToggleCalculateBadge.vue +13 -0
  22. package/src/components/badges/TogglePodiumBadge.vue +32 -0
  23. package/src/components/buttons/ToggleMetricsButton.vue +36 -0
  24. package/src/components/cards/ToggleRewardsCard.vue +80 -0
  25. package/src/components/carousel/ToggleCarousel.vue +94 -0
  26. package/src/components/carousel/ToggleCarouselSlide.vue +26 -0
  27. package/src/components/forms/ToggleInputCrudField.vue +6 -1
  28. package/src/components/metrics/ToggleMetricFunnelChart.vue +27 -8
  29. package/src/components/metrics/ToggleMetricSingleMetric.vue +15 -2
  30. package/src/index.js +6 -1
  31. package/src/sass/includes/_as_badges.scss +78 -0
  32. package/src/sass/includes/_as_buttons.scss +99 -1
  33. package/src/sass/includes/_as_cards.scss +103 -0
  34. package/src/sass/includes/_as_carousels.scss +83 -0
  35. package/src/sass/includes/_as_inputs.scss +7 -0
  36. package/src/sass/includes/_as_metrics.scss +20 -3
  37. package/src/sass/main.scss +2 -0
@@ -32,4 +32,82 @@
32
32
  &.empty {
33
33
  background-color: $toggle-placeholder-grey;
34
34
  }
35
+ }
36
+
37
+ .toggle-podium-badge {
38
+ @include toggle-global-font-config;
39
+ display: inline-flex;
40
+ justify-content: center;
41
+ align-items: center;
42
+ width: fit-content;
43
+ border-radius: 20px;
44
+ color: white;
45
+ font-size: $toggle-font-size-regular;
46
+ font-weight: 900;
47
+ padding: 5px 18px 5px 10px;
48
+
49
+ &.first {
50
+ background-color: #efd028;
51
+ }
52
+
53
+ &.second{
54
+ background-color: #adb4c9;
55
+
56
+ }
57
+
58
+ &.third {
59
+ background-color: #d99a0c;
60
+ }
61
+
62
+ }
63
+
64
+ .podium-number {
65
+ display: flex;
66
+ justify-content: center;
67
+ align-items: center;
68
+ opacity: 1;
69
+ width: 26px;
70
+ height: 26px;
71
+ border-radius: 50%;
72
+ text-align: center;
73
+ margin-right: 20px;
74
+ margin-left: -4px;
75
+ }
76
+
77
+ .first .podium-number{
78
+ background: transparent linear-gradient(132deg, #FFD700 0%, #F0E4A2 100%) 0% 0% no-repeat padding-box;
79
+ color: #CBAF15;
80
+ }
81
+
82
+ .second .podium-number{
83
+ background: transparent linear-gradient(132deg, #C6C9D5 0%, #DEE2EF 100%) 0% 0% no-repeat padding-box;
84
+ color: #8C92A3;
85
+ }
86
+
87
+ .third .podium-number{
88
+ background: transparent linear-gradient(132deg, #E8B33C 0%, #F8CE6E 100%) 0% 0% no-repeat padding-box;
89
+ color: #C18A0E;
90
+ }
91
+
92
+ .toggle-calculate-badge{
93
+ display: inline-flex;
94
+ justify-content: space-between;
95
+ align-items: center;
96
+ width: fit-content;
97
+ background-color: #E4EBED;
98
+ color: #6D90B4;
99
+ border-radius: 50px;
100
+ padding: 10px 20px 10px 15px;
101
+ font-family: $toggle-font-family;
102
+ font-size: 0.8rem;
103
+ font-weight:lighter;
104
+
105
+ .clock-icon {
106
+ background-image: url('../assets/icons/clock-solid.svg');
107
+ background-repeat:no-repeat;
108
+ background-size:contain;
109
+ height: 22px;
110
+ width: 22px;
111
+ margin-right: 15px;
112
+ }
35
113
  }
@@ -328,4 +328,102 @@
328
328
  top: 50%;
329
329
  margin-top: -0.5rem;
330
330
  box-sizing: content-box;
331
- }
331
+ }
332
+
333
+ .toggle-metrics-button {
334
+ display: inline-flex;
335
+ border-radius: 50px;
336
+ padding: 5px 20px;
337
+ justify-content: center;
338
+ align-items: center;
339
+ cursor: pointer;
340
+
341
+
342
+ &.heatmap{
343
+ background-image: linear-gradient(to right, #fbb415 0%, #f75d05 51%, #d01d2c 100%);
344
+ border: none;
345
+ color: #ffeab2;
346
+ height: 40px;
347
+ width: fit-content;
348
+ font-weight: 600;
349
+ transition: all .2s ease-in-out;
350
+
351
+ &:hover {
352
+ background-image: linear-gradient(to right, #ffc341 0%, #ff7b2e 51%, #d23e4a 100%);
353
+ box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
354
+
355
+ .heatmap-icon {
356
+ transform: scale(1.1);
357
+ transition: transform 0.2s ease-in-out;
358
+ }
359
+ }
360
+ }
361
+
362
+ &.email {
363
+ background-color: #257de5;
364
+ color: white;
365
+ border: none;
366
+ height: 40px;
367
+ width: fit-content;
368
+ font-weight: 600;
369
+ transition: all 0.2s ease-in-out;
370
+
371
+ &:hover {
372
+ background-color: #4196ff;
373
+ box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
374
+
375
+ .email-icon {
376
+ transform: scale(1.1);
377
+ transition: transform 0.2s ease-in-out;
378
+ }
379
+ }
380
+ }
381
+
382
+ &.mini-contacts {
383
+ border: 2px solid #6d90b4;
384
+ color: #6d90b4;
385
+ background-color: white;
386
+ padding: 7px 14px;
387
+ width: fit-content;
388
+ transition: all 0.2s ease-in-out;
389
+ font-weight: 600;
390
+ font-size: 0.7rem;
391
+
392
+ &:hover {
393
+ background-color: #6d90b4;
394
+ color: white;
395
+ }
396
+
397
+ &:hover .contacts-icon {
398
+ background-image: url("../assets/icons/contacts-white.svg");
399
+ }
400
+ }
401
+ //icons
402
+ .heatmap-icon {
403
+ background-image: url("../assets/icons/view_heatmap.svg");
404
+ background-repeat:no-repeat;
405
+ background-size:contain;
406
+ margin-right: 15px;
407
+ width: 25px;
408
+ height: 25px;
409
+ }
410
+
411
+ .email-icon {
412
+ background-image: url("../assets/icons/view_email.svg");
413
+ background-repeat:no-repeat;
414
+ background-size:contain;
415
+ margin-right: 15px;
416
+ width: 30px;
417
+ height: 30px;
418
+ }
419
+
420
+ .contacts-icon {
421
+ background-image: url("../assets/icons/contacts-greyblue.svg");
422
+ background-repeat:no-repeat;
423
+ background-size:contain;
424
+ margin-right: 6px;
425
+ width: 14px;
426
+ height: 14px;
427
+ transition: all 0.2s ease-in-out;
428
+ }
429
+ }
@@ -0,0 +1,103 @@
1
+ .toggle-rewards-card-reward-card {
2
+ display: flex;
3
+ flex-direction: row;
4
+ max-width: 800px;
5
+ height: 300px;
6
+ border-radius: 18px;
7
+ margin: 16px;
8
+ font-family: $toggle-font-family;
9
+ }
10
+
11
+ .toggle-rewards-card-reward-info {
12
+ display: flex;
13
+ flex-direction: column;
14
+ justify-content: space-between;
15
+ width:65%;
16
+ padding: 10px 40px;
17
+ // background-color: #ABC9C0;
18
+ color: white;
19
+ border-top-left-radius: 18px;
20
+ border-bottom-left-radius: 18px;
21
+
22
+ .toggle-rewards-card-card-header {
23
+ font-size: 2.2rem;
24
+ font-weight: 600;
25
+ margin-top: 20px;
26
+ }
27
+ }
28
+
29
+ .toggle-rewards-card-card-body {
30
+ display: flex;
31
+ flex-direction: column;
32
+
33
+ .toggle-rewards-card-body-header {
34
+ font-size: 1.5rem;
35
+ font-weight: 800;
36
+ color:#000000;
37
+ opacity: 0.4;
38
+ }
39
+ }
40
+
41
+ .toggle-rewards-card-body-stats {
42
+ display: inline-block;
43
+ align-items: flex-start;
44
+ flex-direction: column;
45
+ margin-bottom: 20px;
46
+
47
+ p {
48
+ margin: 3px 20px 3px 0px;
49
+ color:#000000;
50
+ opacity: 0.4;
51
+ }
52
+
53
+ .toggle-rewards-card-metrics {
54
+ display: flex;
55
+ flex-direction: row;
56
+ align-items: center;
57
+ font-weight: 800;
58
+ font-size: 1.1rem;
59
+
60
+ }
61
+
62
+ .toggle-rewards-card-metrics:last-child {
63
+ margin-top: 8px;
64
+ }
65
+
66
+
67
+ }
68
+
69
+
70
+ .toggle-rewards-card-reward-redemption {
71
+ display: flex;
72
+ flex-direction: column;
73
+ align-items: center;
74
+ justify-content: flex-end;
75
+ padding-bottom: 40px;
76
+ width: 35%;
77
+ // background-color: #89A79E;
78
+ border-top-right-radius: 18px;
79
+ border-bottom-right-radius: 18px;
80
+
81
+ p {
82
+ color:#000000;
83
+ opacity: 0.4;
84
+ font-size: $toggle-font-size-large;
85
+ font-weight: 800;
86
+ margin-top: 20px;
87
+ }
88
+
89
+ .toggle-rewards-card-percentage {
90
+ background-color:hsla(0, 0%, 0%, 0.4) ;
91
+ border-radius: 50%;
92
+ width: 100px;
93
+ height: 100px;
94
+ color: white;
95
+ font-size: 1.7em;
96
+ font-weight: 700;
97
+ display: flex;
98
+ justify-content: center;
99
+ align-items: center;
100
+ }
101
+ }
102
+
103
+
@@ -0,0 +1,83 @@
1
+ .toggle-carousel{
2
+ cursor: grab;
3
+ &:active {
4
+ cursor: grabbing;
5
+ }
6
+ &--voucher{
7
+ &:after{
8
+ content: '';
9
+ position: absolute;
10
+ width: 15%;
11
+ background: linear-gradient(90deg, rgba(241, 245, 246, 0) 0%, rgba(241, 245, 246, 0.7) 50%, rgba(241, 245, 246, 1) 100%);
12
+ right: 0;
13
+ top: 0;
14
+ height: 100%;
15
+ z-index: 25;
16
+ }
17
+ }
18
+ .toggle-carousel-slide{
19
+ img{
20
+ max-width: 100%;
21
+ }
22
+ }
23
+ .toggle-carousel-button{
24
+ width: 50px;
25
+ height: 50px;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ color: #FFF;
30
+ background-color: #2680EB;
31
+ border-radius: 100%;
32
+ position: absolute;
33
+ top: 50%;
34
+ transform: translate(0,-50%);
35
+ cursor: pointer;
36
+ z-index: 50;
37
+ &:hover{
38
+ background-color: #3487ec;
39
+ }
40
+ &:before, &:after{
41
+ content: '';
42
+ width: 4px;
43
+ height: 15px;
44
+ background-color: #FFF;
45
+ position: relative;
46
+ }
47
+ &:before{
48
+ border-radius: 0 0 5px 5px;
49
+ }
50
+ &:after{
51
+ border-radius: 5px 5px 0 ;
52
+ }
53
+ &--prev{
54
+ left: 20px;
55
+ &:before{
56
+ top: 6px;
57
+ transform: rotate(-45deg);
58
+ top: 4px;
59
+ }
60
+ &:after{
61
+ transform: rotate(45deg);
62
+ top: -4px;
63
+ left: -4px;
64
+ }
65
+ }
66
+ &--next{
67
+ right: 20px;
68
+ &:before{
69
+ top: 6px;
70
+ transform: rotate(45deg);
71
+ top: 4px;
72
+ left: 4px;
73
+ }
74
+ &:after{
75
+ transform: rotate(-45deg);
76
+ top: -4px;
77
+ }
78
+ }
79
+ &--disabled{
80
+ display: none;
81
+ }
82
+ }
83
+ }
@@ -722,6 +722,7 @@ $iconWidth:20px;
722
722
  }
723
723
  }
724
724
 
725
+
725
726
  .toggle-input-crud-container-buttons{
726
727
  .toggle-button-container{
727
728
  display: block;
@@ -753,6 +754,12 @@ $iconWidth:20px;
753
754
  clear: both;
754
755
  font-size: $toggle-font-size-small;
755
756
  color: $toggle-header-colour;
757
+ &.hide-overflow{
758
+ overflow-x: clip;
759
+ text-overflow: ellipsis;
760
+ white-space: nowrap;
761
+ width: inherit;
762
+ }
756
763
  }
757
764
  .toggle-input-protocol {
758
765
  width: 100px;
@@ -16,6 +16,7 @@
16
16
  font-size: 275%;
17
17
  color: $toggle-metric-label-black;
18
18
  }
19
+
19
20
  }
20
21
 
21
22
 
@@ -25,7 +26,7 @@
25
26
  grid-template-columns: 1fr 1fr 1fr 1fr;
26
27
  display: grid;
27
28
  grid-auto-flow: column;
28
-
29
+
29
30
  }
30
31
 
31
32
  .funnel-grid-svg {
@@ -79,7 +80,7 @@
79
80
  grid-column-start: 2;
80
81
  grid-row-end: 3;
81
82
  grid-column-end: 3;
82
- display: flex;
83
+ display: flex;
83
84
  }
84
85
 
85
86
  .funnel-grid-7 {
@@ -101,7 +102,7 @@
101
102
  .funnel-spark-line, .funnel-single-metric {
102
103
  margin-right: 1rem;
103
104
  border-right: 1px solid #BCDBEE;
104
-
105
+
105
106
  &:nth-child(5), &:last-child {
106
107
  border: 0;
107
108
  }
@@ -117,4 +118,20 @@
117
118
  align-items: center;
118
119
  justify-content: center;
119
120
  width: 100%;
121
+ }
122
+
123
+ .single-metric-badge {
124
+ margin-top: 0.6rem;
125
+ }
126
+
127
+ .single-metric-icon {
128
+ background-image: url('../assets/icons/clock-solid.svg');
129
+ background-repeat:no-repeat;
130
+ background-size:contain;
131
+ height: 25px;
132
+ width: 25px;
133
+ }
134
+
135
+ .increase-padding-bottom {
136
+ padding-bottom: 3rem !important;
120
137
  }
@@ -21,3 +21,5 @@
21
21
  @import "./includes/_as_metrics.scss";
22
22
  @import "./includes/_as_threedots.scss";
23
23
  @import "./includes/_as_boosters.scss";
24
+ @import "./includes/_as_cards.scss";
25
+ @import "./includes/_as_carousels.scss";