toggle-components-library 1.36.4-beta.3 → 1.36.4-beta.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.36.4-beta.3",
3
+ "version": "1.36.4-beta.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <div class="toggle-button-container toggle-button-container--login" :class="{'toggle-button-container--fluid': btnFluid}">
3
-
4
- <button :type="type" :class="['toggle-login-button', { 'toggle-login-button--airship': platform == 'airship' }, { 'toggle-login-button--loading': platform == 'toggle' && loading }, { 'toggle-login-button--airship-loading': platform == 'airship' && loading }]" @click="click"
5
- :disabled="(loading || disabled)">
2
+ <div class="toggle-button-container toggle-button-container--login"
3
+ :class="{'toggle-button-container--fluid': btnFluid}">
6
4
 
7
- <div :class="['toggle-login-button-loader', { 'toggle-login-button-loader--airship': platform == 'airship' }]" v-if="loading"></div>
5
+ <button :type="type" :class="buttonClasses" @click="click" :disabled="(loading || disabled)">
6
+
7
+ <div :class="loaderClasses" v-if="loading"></div>
8
8
 
9
9
  <div class="toggle-login-button-text" v-else>
10
10
  {{ buttonText }}
@@ -77,6 +77,30 @@ export default {
77
77
  */
78
78
  this.$emit('click');
79
79
  }
80
+ },
81
+ computed: {
82
+ /**
83
+ * The class to apply to the button
84
+ * @return {Object}
85
+ */
86
+ buttonClasses() {
87
+ return {
88
+ 'toggle-login-button': true,
89
+ 'toggle-login-button--airship': this.platform == 'airship',
90
+ 'toggle-login-button--loading': this.platform == 'toggle' && this.loading,
91
+ 'toggle-login-button--airship-loading': this.platform == 'airship' && this.loading
92
+ }
93
+ },
94
+ /**
95
+ * The class to apply to the loader
96
+ * @return {Object}
97
+ */
98
+ loaderClasses() {
99
+ return {
100
+ 'toggle-login-button-loader': true,
101
+ 'toggle-login-button-loader--airship': this.platform == 'airship',
102
+ }
103
+ }
80
104
  }
81
105
  }
82
106
  </script>
@@ -19,6 +19,8 @@
19
19
  <div class="toggle-contact-search-arrow" :class="{'toggle-contact-search-arrow-active': showDropdown}"></div>
20
20
  </div>
21
21
 
22
+ <div class="toggle-contact-search-divider"></div>
23
+
22
24
  <input :class="{'toggle-contact-search-input': true, 'toggle-contact-search-disabled': disabled}" v-model="inputVal" :disabled="disabled || loading" type="text" :placeholder="placeholder" @keyup.enter="onEnter">
23
25
 
24
26
  <div v-if="loading" class="toggle-contact-search-loading-container">
@@ -1,10 +1,9 @@
1
1
  <template>
2
2
  <div>
3
- <h3 :class="['toggle-metric metric-label', {'metric-label-atmosphere': atmosphere}]">{{label}}</h3>
3
+ <h3 class="toggle-metric metric-label">{{label}}</h3>
4
4
  <div class="single-metric-icon" v-if="metricPending && label.length == 0"></div>
5
- <h1 :class="['toggle-metric metric-value', { 'metric-value-atmosphere': atmosphere }, { 'metric-value-small': small}]" v-else>{{metricValue}}
5
+ <h1 class="toggle-metric metric-value" v-else>{{metricValue}}
6
6
  <span v-if="score && value.maxScore" class="toggle-metric-score-rating">/{{value.maxScore}}</span>
7
- <span v-if="atmosphere && live == true" class="toggle-metric-live-icon"></span>
8
7
  </h1>
9
8
  </div>
10
9
  </template>
@@ -74,30 +73,6 @@ export default {
74
73
  metricPending: {
75
74
  type: Boolean,
76
75
  default: false
77
- },
78
- /**
79
- * Metric style (default or atmosphere release themed)
80
- */
81
- metricStyle: {
82
- type: String,
83
- default: "default",
84
- validator: function (value) {
85
- return ['default', 'atmosphere'].indexOf(value) !== -1
86
- }
87
- },
88
- metricSize: {
89
- type: String,
90
- default: "default",
91
- validator: function (value) {
92
- return ['default', 'small'].indexOf(value) !== -1
93
- }
94
- },
95
- /**
96
- * Show live lightening bolt
97
- */
98
- live: {
99
- type: Boolean,
100
- default: false
101
76
  }
102
77
  },
103
78
  computed: {
@@ -124,12 +99,6 @@ export default {
124
99
  },
125
100
  score() {
126
101
  return this.type === 'score';
127
- },
128
- atmosphere() {
129
- return this.metricStyle === 'atmosphere';
130
- },
131
- small() {
132
- return this.metricSize === 'small';
133
102
  }
134
103
  }
135
104
  }
@@ -6,7 +6,7 @@
6
6
  {{trendImpactLabel}}
7
7
  </ToggleBadge>
8
8
 
9
- <ToggleMetricSingleMetric :value="singleMetricVal" :label="label" :type="type" :currencyCode="currencyCode" :currencyLocale="currencyLocale" :currencyDenomination="currencyDenomination" :metricStyle="metricStyle" :metricSize="metricStyle == 'atmosphere' ? 'small' : 'default'"/>
9
+ <ToggleMetricSingleMetric :value="singleMetricVal" :label="label" :type="type" :currencyCode="currencyCode" :currencyLocale="currencyLocale" :currencyDenomination="currencyDenomination"/>
10
10
 
11
11
  <apexchart type="line" :height="height" :width="width" :options="chartOptions" :series="sparkLineVal" ref="sparkLineRef">
12
12
  </apexchart>
@@ -116,13 +116,6 @@ export default {
116
116
  showTrendForAllZeros: {
117
117
  type: Boolean,
118
118
  default: false
119
- },
120
- metricStyle: {
121
- type: String,
122
- default: "default",
123
- validator: function (value) {
124
- return ['default', 'atmosphere'].indexOf(value) !== -1
125
- }
126
119
  }
127
120
  },
128
121
 
@@ -178,17 +171,10 @@ export default {
178
171
  * @return String
179
172
  */
180
173
  trendImpactClass() {
181
- if (this.metricStyle === 'atmosphere'){
182
- return this.getTrendImpact() === 1 ? 'atmosphere confirm'
183
- : this.getTrendImpact() === -1 ? 'atmosphere abort'
184
- : this.getTrendImpact() === 0 ? 'atmosphere warning'
185
- : 'atmosphere empty';
186
- } else {
187
- return this.getTrendImpact() === 1 ? 'confirm'
174
+ return this.getTrendImpact() === 1 ? 'confirm'
188
175
  : this.getTrendImpact() === -1 ? 'abort'
189
176
  : this.getTrendImpact() === 0 ? 'warning'
190
177
  : 'empty';
191
- }
192
178
  },
193
179
  /**
194
180
  * Defines the badge title from the trending impact
package/src/index.js CHANGED
@@ -89,8 +89,6 @@ import ToggleEmailCard from "./components/cards/ToggleEmailCard.vue";
89
89
  import ToggleRewardsCard from "./components/cards/ToggleRewardsCard.vue";
90
90
  import ToggleCommentCard from "./components/cards/ToggleCommentCard.vue";
91
91
 
92
- import ToggleTooltip from "./components/tooltips/ToggleTooltip.vue";
93
-
94
92
 
95
93
  import './sass/main.scss';
96
94
 
@@ -163,8 +161,7 @@ const Components = {
163
161
  ToggleCarouselSlide,
164
162
  ToggleEmailCard,
165
163
  ToggleRewardsCard,
166
- ToggleCommentCard,
167
- ToggleTooltip
164
+ ToggleCommentCard
168
165
  }
169
166
 
170
167
  Object.keys(Components).forEach(name => {
@@ -37,40 +37,6 @@
37
37
  border-radius: 50px;
38
38
  padding: 5px 11px;
39
39
  }
40
-
41
- // Atmosphere release styling
42
- &.atmosphere {
43
- background-color: #E4EDF2;
44
- color: #354B64;
45
- font-size: 14px;
46
- font-weight: 400;
47
- padding: 5px 11px;
48
- border-radius: 5px;
49
-
50
- &.confirm {
51
- background-color: #DFEED4;
52
- color: #71BE37;
53
- }
54
- &.abort {
55
- background-color: #FDE9E9;
56
- color: #D8000C;
57
- }
58
- &.warning {
59
- background-color: #F7EBD4;
60
- color: #E6A831;
61
- }
62
- &.inactive {
63
- color: rgba(53, 75, 100, .5)
64
- }
65
- &.empty {
66
- background-color: #E4EDF2;
67
- color: #354B64;
68
- }
69
- &.neutral {
70
- background-color: #E4EDF2;
71
- color: #38ABFF;
72
- }
73
- }
74
40
  }
75
41
 
76
42
  .toggle-podium-badge {
@@ -294,21 +294,23 @@
294
294
  transform: translate(0, -3px);
295
295
  color: #fff;
296
296
  }
297
- &--airship{
298
- background-color: #FF7175;
297
+ &--airship {
298
+ background: transparent linear-gradient(112deg, #BD38DF 0%, #5F1C70 100%) 0% 0% no-repeat padding-box;
299
+
299
300
  &:hover:not(:disabled) {
300
- background-color: #ff463f;
301
- box-shadow: 0 10px 30px -10px rgba(254, 108, 102, 0.5);
301
+ background-color: #5F1C70;
302
+ box-shadow: 0 10px 30px -10px rgba(190, 58, 223, 0.5);
302
303
  }
303
- &:disabled, &[disabled]{
304
- background-color: #ed9598;
304
+
305
+ &:disabled, &[disabled] {
306
+ background: transparent linear-gradient(112deg, rgba(190, 58, 223, 0.6) 0%, rgba(94, 28, 110, 0.6) 100%) 0% 0% no-repeat padding-box;
305
307
  }
306
308
  }
307
309
  &--loading{
308
310
  background-color: #3180FF !important;
309
311
  }
310
312
  &--airship-loading{
311
- background-color: #FF7175 !important;
313
+ background: transparent linear-gradient(112deg, #BD38DF 0%, #5F1C70 100%) 0% 0% no-repeat padding-box !important;
312
314
  }
313
315
  }
314
316
 
@@ -328,6 +330,9 @@
328
330
  top: 50%;
329
331
  margin-top: -0.5rem;
330
332
  box-sizing: content-box;
333
+ &--airship {
334
+ border-top-color: transparent;
335
+ }
331
336
  }
332
337
 
333
338
  .toggle-metrics-button {
@@ -970,7 +970,7 @@ $iconWidth:20px;
970
970
  height: 40px;
971
971
  background-color: $toggle-white;
972
972
  border-radius: 8px;
973
- max-width: 425px;
973
+ min-width: 500px;
974
974
  }
975
975
 
976
976
  .toggle-contact-search-input-container-active {
@@ -984,7 +984,7 @@ $iconWidth:20px;
984
984
  }
985
985
 
986
986
  .toggle-contact-search-dropdown-container {
987
- width: 425px;
987
+ min-width: 550px;
988
988
  background-color: $toggle-white;
989
989
  border-radius: 0 0 8px 8px;
990
990
  overflow: hidden;
@@ -997,8 +997,7 @@ $iconWidth:20px;
997
997
  border: 0;
998
998
  border-radius: 0px;
999
999
  height: 30px;
1000
- margin: 4px 5px 0px 0px;
1001
- padding-left: 0;
1000
+ margin: 4px 5px 0px 14px;
1002
1001
  color: #3A4A62;
1003
1002
  font-family: $toggle-font-family;
1004
1003
  font-weight: 700;
@@ -1006,10 +1005,6 @@ $iconWidth:20px;
1006
1005
  background-color: #FFFFFF;
1007
1006
  }
1008
1007
 
1009
- .toggle-contact-search-input:focus{
1010
- outline: none;
1011
- }
1012
-
1013
1008
  .toggle-contact-search-input::placeholder {
1014
1009
  color: #C5CED8;
1015
1010
  opacity: 1;
@@ -1038,10 +1033,10 @@ $iconWidth:20px;
1038
1033
  .toggle-contact-search-icon {
1039
1034
  max-width: 20px;
1040
1035
  max-height: 20px;
1041
- margin: 12px 8px 0 0;
1036
+ margin: 10px 16px 0 0;
1042
1037
  transition: transform .2s ease-in-out;
1043
- width: 18px;
1044
- height: 18px;
1038
+ width: 25px;
1039
+ height: 25px;
1045
1040
  background-repeat: no-repeat;
1046
1041
  background-size: contain;
1047
1042
  }
@@ -1062,7 +1057,7 @@ $iconWidth:20px;
1062
1057
 
1063
1058
  .toggle-contact-search-icon-arrow-container {
1064
1059
  display: flex;
1065
- width: 70px;
1060
+ width: 100px;
1066
1061
  min-width: 60px;
1067
1062
  flex-direction: row;
1068
1063
  justify-content: center;
@@ -1076,9 +1071,9 @@ $iconWidth:20px;
1076
1071
 
1077
1072
  .toggle-contact-search-magnifying-glass-icon {
1078
1073
  cursor: pointer;
1079
- margin: 13px 15px 0 3px;
1080
- width: 21px;
1081
- height: 21px;
1074
+ margin: 10px 15px 0 3px;
1075
+ width: 25px;
1076
+ height: 25px;
1082
1077
  background-image: url('../assets/icons/magnifying-glass-icon.svg');
1083
1078
  background-repeat: no-repeat;
1084
1079
  background-size: contain;
@@ -1108,8 +1103,14 @@ $iconWidth:20px;
1108
1103
  transform: rotate(-3.1416rad) translateY(5px);
1109
1104
  }
1110
1105
 
1106
+ .toggle-contact-search-divider {
1107
+ height: 28px;
1108
+ margin: 7px 0 0 0;
1109
+ border-right: 2px solid #D9D9D9;
1110
+ }
1111
+
1111
1112
  .toggle-contact-search-dropdown-item {
1112
- margin: 5px 5px 5px 7px;
1113
+ margin: 5px 5px 5px 10px;
1113
1114
  border-radius: 8px;
1114
1115
  cursor: pointer;
1115
1116
  font-size: 16px;
@@ -1144,10 +1145,12 @@ $iconWidth:20px;
1144
1145
  }
1145
1146
 
1146
1147
  .toggle-contact-search-icon-dropdown {
1147
- width: 18px;
1148
- height: 18px;
1148
+ width: 25px;
1149
+ height: 25px;
1149
1150
  background-repeat: no-repeat;
1150
1151
  background-size: contain;
1152
+ max-width: 20px;
1153
+ max-height: 20px;
1151
1154
  margin: 2px 14px 0 0;
1152
1155
  transition: transform .2s ease-in-out;
1153
1156
  }
@@ -17,20 +17,6 @@
17
17
  color: $toggle-metric-label-black;
18
18
  }
19
19
 
20
- &.metric-label-atmosphere {
21
- color: #354B64;
22
- font-weight: 400;
23
- font-size: 18px;
24
- }
25
-
26
- &.metric-value-atmosphere {
27
- font-weight: 800;
28
- color: #00346F;
29
- }
30
-
31
- &.metric-value-small {
32
- font-size: 215%;
33
- }
34
20
  }
35
21
 
36
22
 
@@ -153,15 +139,4 @@
153
139
  .toggle-metric-score-rating {
154
140
  font-size: 27px;
155
141
  margin-left: -8px;
156
- }
157
-
158
- .toggle-metric-live-icon {
159
- display: inline-block;
160
- vertical-align: top;
161
- background-image: url('../assets/icons/bolt-solid.svg');
162
- background-repeat: no-repeat;
163
- background-size: contain;
164
- height: 19px;
165
- width: 19px;
166
- margin: 17px 0 0 5px;
167
142
  }
@@ -23,4 +23,3 @@
23
23
  @import "./includes/_as_boosters.scss";
24
24
  @import "./includes/_as_cards.scss";
25
25
  @import "./includes/_as_carousels.scss";
26
- @import "./includes/_as_tooltips.scss";
@@ -1,9 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="6.922" height="12.381" viewBox="0 0 6.922 12.381">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.343" y1="-0.06" x2="0.923" y2="2.008" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#c139e5"/>
5
- <stop offset="1" stop-color="#611d73"/>
6
- </linearGradient>
7
- </defs>
8
- <path id="bolt-solid" d="M37.679,1.07a.944.944,0,0,0-.191-.931.469.469,0,0,0-.719.044L32.156,5.6a.961.961,0,0,0-.16.854.616.616,0,0,0,.541.5h2.009L33.16,11.294a.944.944,0,0,0,.191.931.469.469,0,0,0,.719-.044l4.613-5.417a.961.961,0,0,0,.16-.854.612.612,0,0,0-.541-.5H36.293Z" transform="translate(-31.959 0.009)" fill="url(#linear-gradient)"/>
9
- </svg>
@@ -1,9 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="6.922" height="12.381" viewBox="0 0 6.922 12.381">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.343" y1="-0.06" x2="0.923" y2="2.008" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#c139e5"/>
5
- <stop offset="1" stop-color="#611d73"/>
6
- </linearGradient>
7
- </defs>
8
- <path id="bolt-solid" d="M37.679,1.07a.944.944,0,0,0-.191-.931.469.469,0,0,0-.719.044L32.156,5.6a.961.961,0,0,0-.16.854.616.616,0,0,0,.541.5h2.009L33.16,11.294a.944.944,0,0,0,.191.931.469.469,0,0,0,.719-.044l4.613-5.417a.961.961,0,0,0,.16-.854.612.612,0,0,0-.541-.5H36.293Z" transform="translate(-31.959 0.009)" fill="url(#linear-gradient)"/>
9
- </svg>
@@ -1,6 +0,0 @@
1
- <template>
2
- <div class="toggle-tooltip">
3
- <div class="toggle-tooltip-i">i</div>
4
- <span class="toggle-tooltip-text"><slot></slot></span>
5
- </div>
6
- </template>
@@ -1,42 +0,0 @@
1
- .toggle-tooltip {
2
- position: relative;
3
- display: inline-block;
4
- height: 17px;
5
- width: 17px;
6
- background-color: #768CA2;
7
- border-radius: 50%;
8
- color: #FFFFFF;
9
- cursor: pointer;
10
- text-align: center;
11
- font-family: Palatino;
12
- }
13
-
14
- .toggle-tooltip-i {
15
- margin: 2px 0 0 0;
16
- font-size: 13px;
17
- }
18
-
19
- .toggle-tooltip-text {
20
- @include toggle-global-font-config;
21
- }
22
-
23
- .toggle-tooltip .toggle-tooltip-text {
24
- visibility: hidden;
25
- width: 160px;
26
- background-color: #000;
27
- color: #fff;
28
- text-align: center;
29
- padding: 8px 12px;
30
- border-radius: 6px;
31
- position: absolute;
32
- z-index: 1;
33
- }
34
-
35
- .toggle-tooltip:hover .toggle-tooltip-text {
36
- visibility: visible;
37
- }
38
-
39
- .toggle-tooltip .toggle-tooltip-text {
40
- top: -5px;
41
- left: 105%;
42
- }