toggle-components-library 1.27.7 → 1.27.9

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.27.7",
3
+ "version": "1.27.9",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -6,8 +6,9 @@
6
6
  <span class="toggle-input-checkbox-check-element "></span>
7
7
  <span :class="[ 'toggle-input-checkbox-label', label_style ]" >{{label}}</span>
8
8
 
9
- </div>
10
- <img v-if="iconUrl" v-bind:src="iconUrl" :alt="iconAlt" class="toggle-input-checkbox-icon"/>
9
+
10
+ <img v-if="iconUrl" v-bind:src="iconUrl" :alt="iconAlt" class="toggle-input-checkbox-icon"/>
11
+ </div>
11
12
 
12
13
  </label>
13
14
 
@@ -6,7 +6,7 @@
6
6
  </label>
7
7
 
8
8
  <div class="input-holder">
9
- <multiselect v-model="inputVal" :options="options" :multiple="true" :close-on-select="true" :clear-on-select="false" :preserve-search="true" :placeholder="placeholder" label="label" track-by="value" :preselect-first="false">
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
10
  </multiselect>
11
11
  </div>
12
12
 
@@ -26,7 +26,7 @@ export default {
26
26
  components: { Multiselect },
27
27
  props: {
28
28
  value: {
29
- type: Array
29
+ type: [Array, Object]
30
30
  },
31
31
  label: {
32
32
  type: String
@@ -50,6 +50,11 @@ export default {
50
50
  errorMessage: {
51
51
  type: String,
52
52
  required: false
53
+ },
54
+ multiple: {
55
+ type: Boolean,
56
+ default: true,
57
+ required: false
53
58
  }
54
59
  },
55
60
  computed: {
@@ -66,5 +71,4 @@ export default {
66
71
  }
67
72
  </script>
68
73
  <style>
69
-
70
74
  </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="toggle-copy-text">
3
- <p @click="copyLink($refs.copyLink)"><label>{{copy}}</label><br v-if="copy"/>
4
- <a :class="{loading:loading, done:done}" :style="{fontSize}" ref="copyLink">
3
+ <p @click="copyLink($refs.copyLink)"><label v-if="copy">{{copy}}</label><br v-if="copy"/>
4
+ <a :class="{'toggle-loading':loading, 'toggle-done':done}" :style="{fontSize}" ref="copyLink">
5
5
  {{ link }}
6
6
  </a>
7
7
  </p>
@@ -132,7 +132,7 @@
132
132
 
133
133
  .toggle-multi-tier-sidenav-container {
134
134
 
135
- line-height: 0;
135
+ line-height: 1rem;
136
136
  font-size: $toggle-font-size-regular;
137
137
  width: 25%;
138
138
  float: left;
@@ -641,4 +641,5 @@
641
641
  100% {
642
642
  transform: scale(1) rotate(0deg);
643
643
  }
644
- }
644
+ }
645
+
@@ -36,6 +36,8 @@ a {
36
36
 
37
37
  p, a {
38
38
  color: $toggle-dark-blue;
39
+ }
40
+ p{
39
41
  margin: 0.25rem 0;
40
42
  }
41
43
  a {
@@ -53,44 +55,32 @@ a {
53
55
  position: absolute;
54
56
  width: 1.5rem;
55
57
  right: 0;
56
- background-position: center;
58
+ background-position: center right;
57
59
  background-size: contain;
58
60
  background-repeat: no-repeat;
59
61
  cursor: pointer;
60
- height: 1.2rem;
62
+ height: 100%;
61
63
  top: 0;
62
64
  }
63
- &.loading{
65
+ &.toggle-loading{
64
66
  &:after{
65
67
  background: none transparent;
66
68
  outline: none;
67
69
  border-radius: 50% !important;
68
70
  border: 0.25rem solid rgba(0, 0, 0, 0.1);
69
71
  border-top-color: white;
70
- height: 0.7rem;
71
- width: 0.7rem;
72
+ height: 100%;
73
+ width: auto;
74
+ aspect-ratio: 1/1;
72
75
  top: 0;
73
76
  animation: spin 0.6s infinite linear;
74
77
  }
75
78
  }
76
- &.done{
79
+ &.toggle-done{
77
80
  &:after{
78
81
  background-image: url("../assets/icons/tick_circle.svg");
79
82
  }
80
83
  }
81
- .tooltip {
82
- width: 30%;
83
- background-color: #3ea8d5;
84
- color: #fff;
85
- text-align: center;
86
- border-radius: 4px;
87
- padding: 5px 0;
88
- position: absolute;
89
- z-index: 1;
90
- top: 50%;
91
- left: 50%;
92
- transform: translate(-50%,-50%);
93
- }
94
84
  }
95
85
  }
96
86