toggle-components-library 1.39.5-beta.1 → 1.39.6-beta.0

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.39.5-beta.1",
3
+ "version": "1.39.6-beta.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -0,0 +1,53 @@
1
+ <template>
2
+ <div id="badge-container" :class="'toggle-logo-badge-' + size">
3
+ <img
4
+ :src="logo.src"
5
+ :alt="logo.alt"
6
+ class="toggle-logo-badge-logo"
7
+ >
8
+ </div>
9
+
10
+ </template>
11
+
12
+ <script>
13
+
14
+ export default {
15
+ name: 'ToggleLogoBadge',
16
+ props: {
17
+ logo: {
18
+ type: Object,
19
+ required: true,
20
+ },
21
+ colour: {
22
+ type: String,
23
+ required: true
24
+ },
25
+ size: {
26
+ type: String,
27
+ required: true,
28
+ validator: function(value) {
29
+ return ["small", "medium", "large"].indexOf(value) !== -1;
30
+ }
31
+ }
32
+ },
33
+ };
34
+ </script>
35
+
36
+ <style scoped>
37
+ #badge-container {
38
+ background-color: v-bind('colour');
39
+ }
40
+
41
+ #small {
42
+
43
+ }
44
+
45
+ #medium {
46
+
47
+ }
48
+
49
+ #large {
50
+
51
+ }
52
+
53
+ </style>
@@ -7,7 +7,6 @@
7
7
 
8
8
  <div class="input-holder">
9
9
  <multiselect v-model="inputVal" :options="options" :multiple="multiple" :close-on-select="true" :clear-on-select="false" :preserve-search="true" :placeholder="placeholder" label="label" track-by="value" :preselect-first="false">
10
- <template v-slot:afterList><slot name="afterList"></slot></template>
11
10
  </multiselect>
12
11
  </div>
13
12
 
@@ -1,14 +1,14 @@
1
1
  <template>
2
2
 
3
- <div :class="{'toggle-input-container' : size != 'streamline', 'toggle-input-is-invalid':isInvalid, 'toggle-input-is-disabled':disabled}" v-on:click="focusClosestInput">
3
+ <div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid, 'toggle-input-is-disabled':disabled}" v-on:click="focusClosestInput">
4
4
  <label
5
- v-if="label && size != 'streamline'"
5
+ v-if="label"
6
6
  :for="name ? name : 'ToggleInputSelect' "
7
7
  class="toggle-input-label"
8
8
  > {{ label }}
9
9
  </label>
10
10
 
11
- <div :class="['toggle-input-select-container', size]">
11
+ <div class="toggle-input-select-container">
12
12
  <select
13
13
  :name="name ? name : 'ToggleInputSelect' "
14
14
  :class="[ 'toggle-input-select', size]"
@@ -18,7 +18,7 @@
18
18
  :disabled="disabled"
19
19
  :style="`${fontFamily ? 'font-family: ' + fontFamily : ''}`"
20
20
  >
21
- <option value="">{{size == 'streamline' ? label : 'Select an option' }}</option>
21
+ <option value="">Select an option</option>
22
22
  <option :value="option.value" v-for="(option, key) in options" v-bind:key="key">{{option.label}}</option>
23
23
  </select>
24
24
  </div>
@@ -60,7 +60,7 @@ export default {
60
60
  size: {
61
61
  type: String,
62
62
  validator: function (value) {
63
- return ['extra-small', 'small', 'medium', 'large', 'full', 'streamline'].indexOf(value) !== -1
63
+ return ['extra-small', 'small', 'medium', 'large', 'full'].indexOf(value) !== -1
64
64
  }
65
65
  },
66
66
  required: {
package/src/index.js CHANGED
@@ -44,6 +44,7 @@ import ToggleTableColumn from './components/tables/ToggleTableColumn.vue';
44
44
  import ToggleBadge from './components/badges/ToggleBadge.vue';
45
45
  import ToggleCalculateBadge from './components/badges/ToggleCalculateBadge.vue';
46
46
  import TogglePodiumBadge from './components/badges/TogglePodiumBadge.vue';
47
+ import ToggleLogoBadge from './components/badges/ToggleLogoBadge.vue';
47
48
 
48
49
  import ToggleBreadCrumb from './components/breadcrumb/ToggleBreadCrumb.vue';
49
50
  import ToggleSideNavItem from './components/navs/sidenav/ToggleSideNavItem.vue';
@@ -104,6 +105,7 @@ const Components = {
104
105
  ToggleBadge,
105
106
  ToggleCalculateBadge,
106
107
  TogglePodiumBadge,
108
+ ToggleLogoBadge,
107
109
  ToggleTableColumn,
108
110
  ToggleInputText,
109
111
  ToggleInputEditableText,
@@ -228,4 +228,71 @@
228
228
  width: 22px;
229
229
  margin-right: 15px;
230
230
  }
231
+ }
232
+
233
+ .toggle-logo-badge-small {
234
+ border: 0;
235
+ font-family: $toggle-font-family;
236
+ width: 6rem;
237
+ font-weight: bold;
238
+ display: grid;
239
+ padding: 0.3rem;
240
+ border-radius: 0.6rem;
241
+ align-items: center;
242
+ justify-content: center;
243
+ }
244
+
245
+ .toggle-logo-badge-medium {
246
+ border: 0;
247
+ font-family: $toggle-font-family;
248
+ width: 8rem;
249
+ font-weight: bold;
250
+ display: grid;
251
+ padding: 0.3rem;
252
+ border-radius: 0.6rem;
253
+ align-items: center;
254
+ justify-content: center;
255
+ }
256
+
257
+ .toggle-logo-badge-large {
258
+ border: 0;
259
+ font-family: $toggle-font-family;
260
+ width: 10rem;
261
+ height: 2rem;
262
+ font-weight: bold;
263
+ display: grid;
264
+ padding: 0.3rem;
265
+ border-radius: 0.6rem;
266
+ align-items: center;
267
+ justify-content: center;
268
+ }
269
+
270
+ .toggle-logo-badge-small > img {
271
+ object-fit: contain;
272
+ width: stretch;
273
+ max-width: 100%;
274
+ box-sizing: border-box;
275
+ height: 1.1rem;
276
+ padding: 2px 4px;
277
+ display: block;
278
+ }
279
+
280
+ .toggle-logo-badge-medium > img {
281
+ object-fit: contain;
282
+ width: stretch;
283
+ max-width: 100%;
284
+ box-sizing: border-box;
285
+ height: 1.1rem;
286
+ padding: 2px 4px;
287
+ display: block;
288
+ }
289
+
290
+ .toggle-logo-badge-large > img {
291
+ object-fit: contain;
292
+ width: stretch;
293
+ max-width: 100%;
294
+ box-sizing: border-box;
295
+ height: 1.1rem;
296
+ padding: 2px 4px;
297
+ display: block;
231
298
  }
@@ -246,8 +246,7 @@
246
246
  }
247
247
 
248
248
  img {
249
- max-width:6rem;
250
- max-height: 1.5rem;
249
+ width: auto;
251
250
  height: 1.5rem;
252
251
  }
253
252
 
@@ -9,6 +9,7 @@
9
9
  .toggle-input-select,
10
10
  .toggle-contact-search-container{
11
11
  @include toggle-global-font-config;
12
+ max-width: 425px
12
13
  }
13
14
 
14
15
  .toggle-input-counter{
@@ -259,18 +260,6 @@
259
260
  top: 0.7rem;
260
261
  pointer-events: none;
261
262
  }
262
- &.streamline {
263
- &:after{
264
- content: '';
265
- width: 1.2rem !important;
266
- height: 1.2rem !important;
267
- background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
268
- position: absolute;
269
- right: 1rem;
270
- top: 0.7rem;
271
- pointer-events: none;
272
- }
273
- }
274
263
  }
275
264
 
276
265
 
@@ -286,10 +275,6 @@
286
275
  &:focus {
287
276
  outline: none;
288
277
  }
289
- &.streamline {
290
- font-size: 1rem;
291
- padding: 0.3rem 2rem 0.3rem 1rem;
292
- }
293
278
  }
294
279
 
295
280
  // For multi tier side nav
@@ -986,10 +971,6 @@ $iconWidth:20px;
986
971
  // Contact Search Styles
987
972
  //
988
973
 
989
- .toggle-contact-search-container {
990
- max-width: 425px;
991
- }
992
-
993
974
  .toggle-contact-search-input-container {
994
975
  width: 100%;
995
976
  height: 40px;
@@ -531,16 +531,6 @@
531
531
  animation: tilt-shake 0.4s;
532
532
  background-image: url("../assets/icons/airship-flight-assist-icon.svg");
533
533
  }
534
- &.airship-rewards-icon a::before,
535
- &.airship-rewards-icon span::before {
536
- background-image: url("../assets/icons/airship-rewards-icon.svg");
537
- }
538
-
539
- &.airship-rewards-icon a:hover::before,
540
- &.airship-rewards-icon span:hover::before {
541
- animation: tilt-shake 0.4s;
542
- background-image: url("../assets/icons/airship-rewards-icon-hover.svg");
543
- }
544
534
  }
545
535
  }
546
536
 
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="15.895" height="13.627" viewBox="0 0 15.895 13.627">
2
- <path id="Intersection_5" data-name="Intersection 5" d="M-58.683-17.712l5.19,4.684a1.188,1.188,0,0,0,.8.3,1.188,1.188,0,0,0,.8-.3l5.19-4.684a4.09,4.09,0,0,0,1.367-3.04v-.161a4.01,4.01,0,0,0-3.429-3.915,4.2,4.2,0,0,0-3.579,1.108l-.345.333-.345-.333a4.2,4.2,0,0,0-3.579-1.108,4.01,4.01,0,0,0-3.429,3.915v.161A4.09,4.09,0,0,0-58.683-17.712Z" transform="matrix(0.995, -0.105, 0.105, 0.995, 62.322, 20.006)" fill="#477ef6"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="15.895" height="13.627" viewBox="0 0 15.895 13.627">
2
- <path id="Intersection_5" data-name="Intersection 5" d="M-58.683-17.712l5.19,4.684a1.188,1.188,0,0,0,.8.3,1.188,1.188,0,0,0,.8-.3l5.19-4.684a4.09,4.09,0,0,0,1.367-3.04v-.161a4.01,4.01,0,0,0-3.429-3.915,4.2,4.2,0,0,0-3.579,1.108l-.345.333-.345-.333a4.2,4.2,0,0,0-3.579-1.108,4.01,4.01,0,0,0-3.429,3.915v.161A4.09,4.09,0,0,0-58.683-17.712Z" transform="matrix(0.995, -0.105, 0.105, 0.995, 62.322, 20.006)" fill="#354b64"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="15.895" height="13.627" viewBox="0 0 15.895 13.627">
2
- <path id="Intersection_5" data-name="Intersection 5" d="M-58.683-17.712l5.19,4.684a1.188,1.188,0,0,0,.8.3,1.188,1.188,0,0,0,.8-.3l5.19-4.684a4.09,4.09,0,0,0,1.367-3.04v-.161a4.01,4.01,0,0,0-3.429-3.915,4.2,4.2,0,0,0-3.579,1.108l-.345.333-.345-.333a4.2,4.2,0,0,0-3.579-1.108,4.01,4.01,0,0,0-3.429,3.915v.161A4.09,4.09,0,0,0-58.683-17.712Z" transform="matrix(0.995, -0.105, 0.105, 0.995, 62.322, 20.006)" fill="#477ef6"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="15.895" height="13.627" viewBox="0 0 15.895 13.627">
2
- <path id="Intersection_5" data-name="Intersection 5" d="M-58.683-17.712l5.19,4.684a1.188,1.188,0,0,0,.8.3,1.188,1.188,0,0,0,.8-.3l5.19-4.684a4.09,4.09,0,0,0,1.367-3.04v-.161a4.01,4.01,0,0,0-3.429-3.915,4.2,4.2,0,0,0-3.579,1.108l-.345.333-.345-.333a4.2,4.2,0,0,0-3.579-1.108,4.01,4.01,0,0,0-3.429,3.915v.161A4.09,4.09,0,0,0-58.683-17.712Z" transform="matrix(0.995, -0.105, 0.105, 0.995, 62.322, 20.006)" fill="#354b64"/>
3
- </svg>