toggle-components-library 1.25.20 → 1.27.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.25.20",
3
+ "version": "1.27.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -2,10 +2,13 @@
2
2
 
3
3
  <label class="toggle-input-checkbox" >
4
4
  <input type="checkbox" :name="name ? name : 'ToggleInputCheckbox' " v-model="inputVal" :value="option" :disabled="disabled"/>
5
- <div>
5
+
6
6
  <span class="toggle-input-checkbox-check-element "></span>
7
7
  <span :class="[ 'toggle-input-checkbox-label', label_style ]" >{{label}}</span>
8
- </div>
8
+
9
+ <img v-if="iconUrl" v-bind:src="iconUrl" :alt="iconAlt" class="toggle-input-checkbox-icon"/>
10
+
11
+
9
12
  </label>
10
13
 
11
14
  </template>
@@ -17,6 +20,13 @@ import { mixins } from '../mixins/mixins'
17
20
  export default {
18
21
  mixins:[mixins],
19
22
  props: {
23
+ iconUrl: {
24
+ type: String,
25
+ },
26
+
27
+ iconAlt: {
28
+ type: String,
29
+ },
20
30
  value: {
21
31
  type: [Boolean, Array]
22
32
  },
@@ -301,6 +301,10 @@
301
301
  .toggle-input-radio-button-img{
302
302
  margin-left: 1rem;
303
303
  }
304
+ .toggle-input-checkbox-icon {
305
+ height: 2rem;
306
+ margin-left: auto ;
307
+ }
304
308
 
305
309
  }
306
310