@veritree/ui 0.28.0 → 0.30.0

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": "@veritree/ui",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -46,5 +46,15 @@ export default {
46
46
 
47
47
  this.apiDropdownMenu().registerContent(content);
48
48
  },
49
+
50
+ methods: {
51
+ hidden() {
52
+ this.$emit('hidden');
53
+ },
54
+
55
+ shown() {
56
+ this.$emit('shown');
57
+ },
58
+ },
49
59
  };
50
60
  </script>
@@ -15,7 +15,7 @@
15
15
  :class="[
16
16
  headless
17
17
  ? 'progress-bar__indicator'
18
- : 'bg-secondary-300 absolute left-0 h-full transition-all',
18
+ : 'bg-secondary-200 absolute left-0 h-full transition-all',
19
19
  ]"
20
20
  :style="{ width: `${percentageComputed}%` }"
21
21
  ></div>
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  :id="id"
4
4
  :aria-describedby="ariaDescribedBy"
5
- class="inline-flex"
5
+ class="flex min-w-min"
6
6
  @mouseenter="onMouseenter"
7
7
  @mouseleave="onMouseleave"
8
8
  >
@@ -15,7 +15,7 @@
15
15
  :class="[
16
16
  headless
17
17
  ? `${this.component}-content`
18
- : `shadow-300 absolute z-50 grid overflow-x-hidden rounded-md py-2 px-3 ${this.classes} ${this.portalClass}`,
18
+ : `shadow-300 absolute z-50 grid overflow-x-hidden rounded-md ${this.classes} ${this.portalClass}`,
19
19
  ]"
20
20
  v-bind="$attrs"
21
21
  >
@@ -58,7 +58,9 @@ export default {
58
58
  },
59
59
 
60
60
  classes() {
61
- return this.isTooltip ? 'bg-gray-800 text-sm text-white' : 'bg-white';
61
+ return this.isTooltip
62
+ ? 'bg-gray-800 text-sm text-white py-1 px-2'
63
+ : 'bg-white py-2 px-3';
62
64
  },
63
65
  },
64
66