@kestra-io/ui-libs 0.0.45 → 0.0.47

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": "@kestra-io/ui-libs",
3
- "version": "v0.0.45",
3
+ "version": "v0.0.47",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
@@ -3,9 +3,11 @@
3
3
  :class="classes"
4
4
  class="wrapper"
5
5
  >
6
- <Tooltip :title="cls">
6
+ <Tooltip v-if="!onlyIcon" :title="cls">
7
7
  <div class="icon" :style="styles" />
8
8
  </Tooltip>
9
+
10
+ <div v-else class="icon" :style="styles" />
9
11
  </div>
10
12
  </template>
11
13
  <script>
@@ -34,7 +36,15 @@
34
36
  icons: {
35
37
  type: Object,
36
38
  default: undefined
37
- }
39
+ },
40
+ onlyIcon: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ variable: {
45
+ type: String,
46
+ default: undefined
47
+ },
38
48
  },
39
49
  computed: {
40
50
  backgroundImage() {
@@ -70,6 +80,10 @@
70
80
  color = this.theme === "dark" ? cssVariable("--bs-gray-900") : cssVariable("--bs-black");
71
81
  }
72
82
 
83
+ if(this.variable) {
84
+ color = cssVariable(this.variable);
85
+ }
86
+
73
87
  icon = icon.replaceAll("currentColor", color);
74
88
 
75
89
  return window.btoa(icon);