toggle-components-library 1.32.0 → 1.33.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 (42) 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 +5437 -102
  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 +5437 -102
  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.json +78 -76
  14. package/src/assets/icons/clock-solid.svg +1 -0
  15. package/src/assets/icons/contacts-greyblue.svg +1 -0
  16. package/src/assets/icons/contacts-white.svg +1 -0
  17. package/src/assets/icons/contacts.svg +1 -0
  18. package/src/assets/icons/view_email.svg +7 -0
  19. package/src/assets/icons/view_heatmap.svg +1 -0
  20. package/src/components/badges/ToggleBadge.vue +5 -1
  21. package/src/components/badges/ToggleCalculateBadge.vue +22 -0
  22. package/src/components/badges/TogglePodiumBadge.vue +32 -0
  23. package/src/components/buttons/ToggleMetricsButton.vue +36 -0
  24. package/src/components/cards/ToggleEmailCard.vue +48 -0
  25. package/src/components/cards/ToggleRewardsCard.vue +79 -0
  26. package/src/components/carousel/ToggleCarousel.vue +126 -0
  27. package/src/components/carousel/ToggleCarouselSlide.vue +26 -0
  28. package/src/components/forms/ToggleDatePicker.vue +7 -3
  29. package/src/components/forms/ToggleInputCurrency.vue +8 -3
  30. package/src/components/metrics/ToggleMetricFunnelChart.vue +27 -8
  31. package/src/components/metrics/ToggleMetricSingleMetric.vue +12 -4
  32. package/src/components/statusbar/ToggleStatusBar.vue +48 -0
  33. package/src/index.js +20 -1
  34. package/src/sass/includes/_as_badges.scss +162 -0
  35. package/src/sass/includes/_as_buttons.scss +99 -1
  36. package/src/sass/includes/_as_cards.scss +166 -0
  37. package/src/sass/includes/_as_carousels.scss +131 -0
  38. package/src/sass/includes/_as_inputs.scss +5 -0
  39. package/src/sass/includes/_as_metrics.scss +20 -3
  40. package/src/sass/includes/_as_statusbar.scss +67 -0
  41. package/src/sass/main.scss +3 -0
  42. package/package-lock.json +0 -20275
@@ -0,0 +1,131 @@
1
+ .toggle-carousel{
2
+ cursor: grab;
3
+ font-size: 0;
4
+ &:active {
5
+ cursor: grabbing;
6
+ }
7
+ &--voucher{
8
+ &:after{
9
+ content: '';
10
+ position: absolute;
11
+ width: 15%;
12
+ background: linear-gradient(90deg, rgba(241, 245, 246, 0) 0%, rgba(241, 245, 246, 0.7) 50%, rgba(241, 245, 246, 1) 100%);
13
+ right: 0;
14
+ top: 0;
15
+ height: 100%;
16
+ z-index: 25;
17
+ }
18
+ &-end{
19
+ &:after{
20
+ right: auto;
21
+ left: 0;
22
+ background: linear-gradient(-90deg, rgba(241, 245, 246, 0) 0%, rgba(241, 245, 246, 0.7) 50%, rgba(241, 245, 246, 1) 100%);
23
+ }
24
+ }
25
+ }
26
+ .toggle-carousel-slide{
27
+ img{
28
+ max-width: 100%;
29
+ }
30
+ }
31
+ .toggle-carousel-button{
32
+ width: 50px;
33
+ height: 50px;
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ color: #FFF;
38
+ background-color: #2680EB;
39
+ border-radius: 100%;
40
+ position: absolute;
41
+ cursor: pointer;
42
+ z-index: 50;
43
+ @media only screen and (max-width:768px){
44
+ width: 24px;
45
+ height: 24px;
46
+ }
47
+ &:hover{
48
+ background-color: #3487ec;
49
+ }
50
+ &--top{
51
+ top: 20px;
52
+ @media only screen and (max-width:768px){
53
+ top: 12px;
54
+ }
55
+ }
56
+ &--middle{
57
+ top: 50%;
58
+ transform: translate(0,-50%);
59
+ }
60
+ &--bottom{
61
+ bottom: 20px;
62
+ @media only screen and (max-width:768px){
63
+ bottom: 12px;
64
+ }
65
+ }
66
+ &:before, &:after{
67
+ content: '';
68
+ width: 4px;
69
+ height: 15px;
70
+ background-color: #FFF;
71
+ position: relative;
72
+ @media only screen and (max-width:768px){
73
+ width: 2px;
74
+ height: 8px;
75
+ }
76
+ }
77
+ &:before{
78
+ border-radius: 0 0 5px 5px;
79
+ }
80
+ &:after{
81
+ border-radius: 5px 5px 0 ;
82
+ }
83
+ &--prev{
84
+ left: 20px;
85
+ @media only screen and (max-width:768px){
86
+ left: 12px;
87
+ }
88
+ &:before{
89
+ transform: rotate(-45deg);
90
+ top: 4px;
91
+ @media only screen and (max-width:768px){
92
+ top: 2px;
93
+ }
94
+ }
95
+ &:after{
96
+ transform: rotate(45deg);
97
+ top: -4px;
98
+ left: -4px;
99
+ @media only screen and (max-width:768px){
100
+ top: -2px;
101
+ left: -2px;
102
+ }
103
+ }
104
+ }
105
+ &--next{
106
+ right: 20px;
107
+ @media only screen and (max-width:768px){
108
+ right: 12px;
109
+ }
110
+ &:before{
111
+ transform: rotate(45deg);
112
+ top: 4px;
113
+ left: 4px;
114
+ @media only screen and (max-width:768px){
115
+ top: 2px;
116
+ left: 2px;
117
+ }
118
+ }
119
+ &:after{
120
+ transform: rotate(-45deg);
121
+ top: -4px;
122
+ @media only screen and (max-width:768px){
123
+ top: -2px;
124
+ }
125
+ }
126
+ }
127
+ &--disabled{
128
+ display: none;
129
+ }
130
+ }
131
+ }
@@ -227,6 +227,11 @@
227
227
  }
228
228
  }
229
229
 
230
+ .calendar-icon-disabled {
231
+ cursor: default;
232
+ opacity: 0.5;
233
+ }
234
+
230
235
  .toggle-input-select-container{
231
236
  position:relative;
232
237
  background-color: $toggle-dark-grey;
@@ -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
  }
@@ -0,0 +1,67 @@
1
+ .toggle-status-bar-container {
2
+ font-family: $toggle-font-family;
3
+ font-size: 16px !important;
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ height: 50px;
8
+ width: 100%;
9
+ border-radius: 7px;
10
+ }
11
+
12
+ .toggle-status-bar-small {
13
+ height: 35px;
14
+ }
15
+
16
+ // Draft colours
17
+ .toggle-status-bar-draft {
18
+ background-color: #FFB88D;
19
+
20
+ .toggle-status-bar-label {
21
+ color: #A34308;
22
+ }
23
+ }
24
+
25
+ // Processing colours
26
+ .toggle-status-bar-processing {
27
+ background-color: #D7E9F2;
28
+
29
+ .toggle-status-bar-label {
30
+ color: #269BE3;
31
+ }
32
+ }
33
+
34
+ // Complete colours
35
+ .toggle-status-bar-complete {
36
+ background-color: #B3E49F;
37
+
38
+ .toggle-status-bar-label {
39
+ color: #3BB40B;
40
+ }
41
+ }
42
+
43
+ // Inactive colours
44
+ .toggle-status-bar-inactive {
45
+ background-color: #D7E9F2;
46
+
47
+ .toggle-status-bar-label {
48
+ color: #269BE3;
49
+ }
50
+ }
51
+
52
+ // Active colours
53
+ .toggle-status-bar-active {
54
+ background-color: #D7E9F2;
55
+ border: 1px solid #FF4848;
56
+
57
+ .toggle-status-bar-label {
58
+ color: #FF4848;
59
+ }
60
+ }
61
+
62
+ .toggle-status-bar-dot {
63
+ font-size: 20px;
64
+ margin: 0 3px 0 0;
65
+ float: none !important;
66
+ padding: 0 !important;
67
+ }
@@ -21,3 +21,6 @@
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_statusbar.scss";
25
+ @import "./includes/_as_cards.scss";
26
+ @import "./includes/_as_carousels.scss";