toggle-components-library 1.38.1 → 1.38.2-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.38.1",
3
+ "version": "1.38.2-beta.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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: {
@@ -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;