@veritree/ui 0.63.3 → 0.64.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": "@veritree/ui",
3
- "version": "0.63.3",
3
+ "version": "0.64.1",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,11 +1,9 @@
1
1
  <template>
2
2
  <VTButton
3
+ :class="[headless ? 'drawer-close' : '-mr-2 ml-auto shrink-0 text-inherit']"
4
+ :headless="headless"
5
+ :size="null"
3
6
  variant="icon"
4
- :class="{
5
- 'drawer-close': headless,
6
- '-mr-2 ml-auto shrink-0 text-inherit': !headless,
7
- }"
8
- :theme="theme"
9
7
  @click.prevent="hide"
10
8
  ><slot><IconLeft :class="{ 'rotate-180': right }" /></slot
11
9
  ></VTButton>
@@ -22,23 +20,17 @@ export default {
22
20
 
23
21
  inject: ['apiDrawer'],
24
22
 
25
- computed: {
26
- dark() {
27
- return this.apiDrawer().isDark;
28
- },
29
-
30
- headless() {
31
- return this.apiDrawer().isHeadless;
23
+ props: {
24
+ headless: {
25
+ type: Boolean,
26
+ default: false,
32
27
  },
28
+ },
33
29
 
30
+ computed: {
34
31
  right() {
35
32
  return this.apiDrawer().isRight;
36
33
  },
37
-
38
- // temporary till button theme is implemented
39
- theme() {
40
- return this.dark ? 'dark' : null;
41
- },
42
34
  },
43
35
 
44
36
  methods: {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <button
3
3
  :id="id"
4
- :class="classComputed"
4
+ :class="[classComputed, headless ? null : 'hover:bg-gray-200']"
5
5
  :disabled="disabled"
6
6
  :aria-expanded="expanded"
7
7
  :aria-haspopup="hasPopup"
@@ -31,8 +31,8 @@
31
31
  ]"
32
32
  >
33
33
  <IconChevronDown
34
- class="w-5 transition-transform"
35
- :class="{ 'rotate-18': expanded }"
34
+ class="w-5 text-gray-700 transition-transform"
35
+ :class="{ 'rotate-180': expanded }"
36
36
  />
37
37
  </span>
38
38
  </button>