toggle-components-library 1.27.7 → 1.27.8

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.8",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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
 
@@ -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: {
@@ -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>
@@ -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