@veritree/ui 0.4.1 → 0.4.2

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.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -3,7 +3,7 @@
3
3
  variant="icon"
4
4
  :class="{
5
5
  'Drawer-close': headless,
6
- 'ml-auto mb-4 text-inherit sm:mb-8': !headless,
6
+ 'ml-auto text-inherit -mr-2': !headless,
7
7
  }"
8
8
  :theme="theme"
9
9
  @click.prevent="hide"
@@ -12,15 +12,15 @@
12
12
  </template>
13
13
 
14
14
  <script>
15
- import { IconLeft } from '@veritree/icons';
16
- import VTButton from '../Button/VTButton.vue';
15
+ import { IconLeft } from "@veritree/icons";
16
+ import VTButton from "../Button/VTButton.vue";
17
17
 
18
18
  export default {
19
- name: 'VTDrawerClose',
19
+ name: "VTDrawerClose",
20
20
 
21
21
  components: { IconLeft, VTButton },
22
22
 
23
- inject: ['api'],
23
+ inject: ["api"],
24
24
 
25
25
  computed: {
26
26
  dark() {
@@ -37,7 +37,7 @@ export default {
37
37
 
38
38
  // temporary till button theme is implemented
39
39
  theme() {
40
- return this.dark ? 'dark' : null;
40
+ return this.dark ? "dark" : null;
41
41
  },
42
42
  },
43
43
 
@@ -14,7 +14,7 @@
14
14
  'Drawer-content': headless,
15
15
  'absolute z-20 flex h-screen max-h-full max-w-full flex-col overflow-auto p-5 outline-0 sm:px-10 sm:py-6':
16
16
  !headless,
17
- 'bg-white': !dark,
17
+ 'bg-white text-gray-600': !dark,
18
18
  'bg-fd-600': dark,
19
19
  'right-0': right,
20
20
  }"
@@ -29,9 +29,9 @@
29
29
 
30
30
  <script>
31
31
  export default {
32
- name: 'VTDrawerContent',
32
+ name: "VTDrawerContent",
33
33
 
34
- inject: ['api'],
34
+ inject: ["api"],
35
35
 
36
36
  data() {
37
37
  return {
@@ -53,23 +53,23 @@ export default {
53
53
  },
54
54
 
55
55
  activeClass() {
56
- return 'transform transition duration-300 ease-in-out';
56
+ return "transform transition duration-300 ease-in-out";
57
57
  },
58
58
 
59
59
  enterClass() {
60
- return `opacity-0 ${this.right ? '' : '-'}translate-x-full`;
60
+ return `opacity-0 ${this.right ? "" : "-"}translate-x-full`;
61
61
  },
62
62
 
63
63
  enterToClass() {
64
- return `opacity-100 ${this.right ? '-' : ''}translate-x-0`;
64
+ return `opacity-100 ${this.right ? "-" : ""}translate-x-0`;
65
65
  },
66
66
 
67
67
  leaveClass() {
68
- return `opacity-100 ${this.right ? '-' : ''}translate-x-0`;
68
+ return `opacity-100 ${this.right ? "-" : ""}translate-x-0`;
69
69
  },
70
70
 
71
71
  leaveToClass() {
72
- return `opacity-0 ${this.right ? '' : '-'}translate-x-full`;
72
+ return `opacity-0 ${this.right ? "" : "-"}translate-x-full`;
73
73
  },
74
74
  },
75
75