toggle-components-library 1.39.6-beta.0 → 1.39.7

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.6-beta.0",
3
+ "version": "1.39.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -0,0 +1,3 @@
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>
@@ -0,0 +1,3 @@
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>
@@ -7,6 +7,7 @@
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>
10
11
  </multiselect>
11
12
  </div>
12
13
 
@@ -1,14 +1,14 @@
1
1
  <template>
2
2
 
3
- <div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid, 'toggle-input-is-disabled':disabled}" v-on:click="focusClosestInput">
3
+ <div :class="{'toggle-input-container' : size != 'streamline', 'toggle-input-is-invalid':isInvalid, 'toggle-input-is-disabled':disabled}" v-on:click="focusClosestInput">
4
4
  <label
5
- v-if="label"
5
+ v-if="label && size != 'streamline'"
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">
11
+ <div :class="['toggle-input-select-container', size]">
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="">Select an option</option>
21
+ <option value="">{{size == 'streamline' ? label : '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'].indexOf(value) !== -1
63
+ return ['extra-small', 'small', 'medium', 'large', 'full', 'streamline'].indexOf(value) !== -1
64
64
  }
65
65
  },
66
66
  required: {
@@ -233,7 +233,7 @@
233
233
  .toggle-logo-badge-small {
234
234
  border: 0;
235
235
  font-family: $toggle-font-family;
236
- width: 6rem;
236
+ width: 4rem;
237
237
  font-weight: bold;
238
238
  display: grid;
239
239
  padding: 0.3rem;
@@ -245,7 +245,7 @@
245
245
  .toggle-logo-badge-medium {
246
246
  border: 0;
247
247
  font-family: $toggle-font-family;
248
- width: 8rem;
248
+ width: 6rem;
249
249
  font-weight: bold;
250
250
  display: grid;
251
251
  padding: 0.3rem;
@@ -257,8 +257,7 @@
257
257
  .toggle-logo-badge-large {
258
258
  border: 0;
259
259
  font-family: $toggle-font-family;
260
- width: 10rem;
261
- height: 2rem;
260
+ width: 8rem;
262
261
  font-weight: bold;
263
262
  display: grid;
264
263
  padding: 0.3rem;
@@ -273,7 +272,7 @@
273
272
  max-width: 100%;
274
273
  box-sizing: border-box;
275
274
  height: 1.1rem;
276
- padding: 2px 4px;
275
+ padding: 3px 6px;
277
276
  display: block;
278
277
  }
279
278
 
@@ -283,7 +282,7 @@
283
282
  max-width: 100%;
284
283
  box-sizing: border-box;
285
284
  height: 1.1rem;
286
- padding: 2px 4px;
285
+ padding: 3px 6px;
287
286
  display: block;
288
287
  }
289
288
 
@@ -293,6 +292,6 @@
293
292
  max-width: 100%;
294
293
  box-sizing: border-box;
295
294
  height: 1.1rem;
296
- padding: 2px 4px;
295
+ padding: 3px 6px;
297
296
  display: block;
298
297
  }
@@ -246,7 +246,8 @@
246
246
  }
247
247
 
248
248
  img {
249
- width: auto;
249
+ max-width:6rem;
250
+ max-height: 1.5rem;
250
251
  height: 1.5rem;
251
252
  }
252
253
 
@@ -9,7 +9,6 @@
9
9
  .toggle-input-select,
10
10
  .toggle-contact-search-container{
11
11
  @include toggle-global-font-config;
12
- max-width: 425px
13
12
  }
14
13
 
15
14
  .toggle-input-counter{
@@ -260,6 +259,18 @@
260
259
  top: 0.7rem;
261
260
  pointer-events: none;
262
261
  }
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
+ }
263
274
  }
264
275
 
265
276
 
@@ -275,6 +286,10 @@
275
286
  &:focus {
276
287
  outline: none;
277
288
  }
289
+ &.streamline {
290
+ font-size: 1rem;
291
+ padding: 0.3rem 2rem 0.3rem 1rem;
292
+ }
278
293
  }
279
294
 
280
295
  // For multi tier side nav
@@ -971,6 +986,10 @@ $iconWidth:20px;
971
986
  // Contact Search Styles
972
987
  //
973
988
 
989
+ .toggle-contact-search-container {
990
+ max-width: 425px;
991
+ }
992
+
974
993
  .toggle-contact-search-input-container {
975
994
  width: 100%;
976
995
  height: 40px;
@@ -531,6 +531,16 @@
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
+ }
534
544
  }
535
545
  }
536
546