@veritree/ui 0.63.2 → 0.64.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.63.2",
3
+ "version": "0.64.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,7 +11,7 @@
11
11
  headless
12
12
  ? 'button'
13
13
  : isIcon
14
- ? `relative inline-flex items-center justify-center rounded-full [&_svg]:max-h-full [&_svg]:max-w-full`
14
+ ? 'relative inline-flex items-center justify-center rounded-full [&_svg]:max-h-full [&_svg]:max-w-full'
15
15
  : 'relative inline-flex rounded border border-solid px-4 text-sm font-semibold leading-none no-underline transition-all',
16
16
  // variant styles
17
17
  headless
@@ -52,5 +52,15 @@ export default {
52
52
 
53
53
  this.apiListbox().registerContent(content);
54
54
  },
55
+
56
+ methods: {
57
+ shown() {
58
+ this.$emit('shown');
59
+ },
60
+
61
+ hidden() {
62
+ this.$emit('hidden');
63
+ },
64
+ },
55
65
  };
56
66
  </script>
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <button
3
3
  :id="id"
4
+ class="hover:bg-gray-200"
4
5
  :class="classComputed"
5
6
  :disabled="disabled"
6
7
  :aria-expanded="expanded"
@@ -31,8 +32,8 @@
31
32
  ]"
32
33
  >
33
34
  <IconChevronDown
34
- class="w-5 transition-transform"
35
- :class="{ 'rotate-18': expanded }"
35
+ class="w-5 text-gray-700 transition-transform"
36
+ :class="{ 'rotate-180': expanded }"
36
37
  />
37
38
  </span>
38
39
  </button>
@@ -2,6 +2,7 @@
2
2
  <div
3
3
  :id="id"
4
4
  :aria-describedby="ariaDescribedBy"
5
+ :class="[headless ? 'tooltip-trigger' : 'flex']"
5
6
  @mouseenter="onMouseenter"
6
7
  @mouseleave="onmouseout"
7
8
  >
@@ -17,6 +18,20 @@ export default {
17
18
 
18
19
  inject: ['apiTooltip'],
19
20
 
21
+ props: {
22
+ /**
23
+ * Determines whether the button will use its default atomic style (tailwind) or its default class
24
+ *
25
+ * @values
26
+ * - true: The button will have no default style and can be fully customized with a custom class
27
+ * - false: The button will use its default atomic style (tailwind) and can be further customized with additional classes
28
+ */
29
+ headless: {
30
+ type: Boolean,
31
+ default: false,
32
+ },
33
+ },
34
+
20
35
  data() {
21
36
  return {
22
37
  expanded: false,