@policystudio/policy-studio-ui-vue 1.0.33 → 1.0.34

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": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -4,6 +4,7 @@
4
4
  v-if="getIconType === 'material-icons'"
5
5
  class="material-icons-round"
6
6
  :class="[getIconClasses]"
7
+ :style="{ fontSize: `${size}px`}"
7
8
  >
8
9
  {{ getIcon }}
9
10
  </span>
@@ -11,8 +12,8 @@
11
12
  <inline-svg
12
13
  v-else
13
14
  :src="icon"
14
- :width="getWidth"
15
- :height="getHeight"
15
+ :width="size"
16
+ :height="size"
16
17
  :stroke="getColor"
17
18
  :fill="getColor"
18
19
  ></inline-svg>
@@ -32,38 +33,30 @@ export default {
32
33
  type: String,
33
34
  default: 'more_horiz'
34
35
  },
36
+
35
37
  /**
36
38
  * It sets the type of the icon.
37
39
  */
38
40
  type: {
39
41
  type: String,
40
42
  },
43
+
41
44
  /**
42
45
  * It sets the style of the icon.
43
46
  */
44
47
  iconClasses: {
45
- type: String
48
+ type: String,
49
+ default: null
46
50
  },
51
+
47
52
  /**
48
- * It sets the size of the icon.
53
+ * It sets the size of the icon.
49
54
  */
50
55
  size: {
51
56
  type: [Number, String],
52
- },
53
- /**
54
- * It sets the width of the icon.
55
- */
56
- width: {
57
- type: [Number, String],
58
- default: 24
59
- },
60
- /**
61
- * It sets the height of the icon.
62
- */
63
- height: {
64
- type: [Number, String],
65
57
  default: 24
66
58
  },
59
+
67
60
  /**
68
61
  * It sets fill property of the icon.
69
62
  */
@@ -71,6 +64,7 @@ export default {
71
64
  type: String,
72
65
  default: null
73
66
  },
67
+
74
68
  /**
75
69
  * It sets the color of the icon.
76
70
  */
@@ -83,6 +77,7 @@ export default {
83
77
  typeof(tailwindConfig.theme.colors[value]) != 'undefined'
84
78
  }
85
79
  },
80
+
86
81
  /**
87
82
  * It set a animation icon if needed.
88
83
  */
@@ -90,6 +85,7 @@ export default {
90
85
  type: String,
91
86
  default: 'hourglass_top'
92
87
  },
88
+
93
89
  /**
94
90
  * It sets a error when the icon is not available.
95
91
  */
@@ -120,14 +116,9 @@ export default {
120
116
  },
121
117
  getIconClasses() {
122
118
  if(this.iconClasses) return this.iconClasses
123
- return `${this.size} ${this.color}`
124
- },
125
- getWidth() {
126
- if(this.size) return this.size
127
- return this.width
119
+ return `${this.color}`
128
120
  },
129
121
  getHeight() {
130
- if(this.size) return this.size
131
122
  return this.height
132
123
  },
133
124
  getColor() {