@veritree/ui 0.29.0 → 0.31.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.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -6,7 +6,7 @@
6
6
  @click.prevent="hide"
7
7
  >
8
8
  <slot>
9
- <IconClose class="h-5 w-5" />
9
+ <IconClose class="w-4" />
10
10
  </slot>
11
11
  </VTButton>
12
12
  </template>
@@ -1,5 +1,12 @@
1
1
  <template>
2
- <component :is="as" :class="[headless ? 'dialog-footer' : 'w-full']">
2
+ <component
3
+ :is="as"
4
+ :class="[
5
+ headless
6
+ ? 'dialog-footer'
7
+ : '-mx-4 -mb-4 flex items-center justify-between gap-x-3 p-4 md:-mx-8 md:-mb-8 md:p-8',
8
+ ]"
9
+ >
3
10
  <slot></slot>
4
11
  </component>
5
12
  </template>
@@ -5,7 +5,7 @@
5
5
  :class="[
6
6
  headless
7
7
  ? 'dialog-header'
8
- : 'mb-6 flex w-full items-center justify-between gap-x-3',
8
+ : '-mx-4 -mt-4 flex items-center justify-between gap-x-3 p-4 md:-mx-8 md:-mt-8 md:p-8',
9
9
  ]"
10
10
  >
11
11
  <slot></slot>
@@ -2,7 +2,7 @@
2
2
  <component
3
3
  :is="as"
4
4
  :id="id"
5
- :class="[headless ? 'dialog-body' : 'h-full w-full flex-1 overflow-y-auto']"
5
+ :class="[headless ? 'dialog-body' : 'h-full flex-1 overflow-y-auto']"
6
6
  >
7
7
  <slot></slot>
8
8
  </component>
@@ -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>
@@ -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