@veritree/ui 0.19.0 → 0.19.2-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/nuxt.js CHANGED
@@ -1,26 +1,12 @@
1
- import { join } from 'path';
1
+ import { defineNuxtModule } from '@nuxt/kit';
2
+ import { fileURLToPath } from 'node:url';
2
3
 
3
- const components = [
4
- 'src/components/Alert',
5
- 'src/components/Avatar',
6
- 'src/components/Button',
7
- 'src/components/Drawer',
8
- 'src/components/Dialog',
9
- 'src/components/Disclosure',
10
- 'src/components/DropdownMenu',
11
- 'src/components/Form',
12
- 'src/components/Listbox',
13
- 'src/components/Image',
14
- 'src/components/Popover',
15
- 'src/components/ProgressBar',
16
- 'src/components/Tabs',
17
- ]
18
-
19
- export default function () {
20
- this.nuxt.hook('components:dirs', dirs => {
21
- // Add ./components dir to the list
22
- components.forEach((component) => {
23
- dirs.push(join(__dirname, component))
24
- });
25
- })
26
- }
4
+ export default defineNuxtModule({
5
+ hooks: {
6
+ 'components:dirs'(dirs) {
7
+ dirs.push({
8
+ path: fileURLToPath(new URL('./src/components', import.meta.url)),
9
+ });
10
+ },
11
+ },
12
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.19.0",
3
+ "version": "0.19.2-0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,8 +11,9 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@linusborg/vue-simple-portal": "^0.1.5",
15
14
  "@veritree/icons": "^0.19.0"
16
15
  },
17
- "devDependencies": {}
16
+ "devDependencies": {
17
+ "@nuxt/kit": "^3.0.0-rc.12"
18
+ }
18
19
  }
@@ -37,7 +37,6 @@
37
37
  : 'h-8'
38
38
  : null,
39
39
  ]"
40
- v-on="$listeners"
41
40
  >
42
41
  <VTSpinner v-if="busy" class="absolute inset-0 m-auto" />
43
42
  <span
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <Portal>
2
+ <Teleport to="body">
3
3
  <div
4
4
  v-if="visible"
5
5
  :id="id"
@@ -12,11 +12,10 @@
12
12
  >
13
13
  <slot></slot>
14
14
  </div>
15
- </Portal>
15
+ </Teleport>
16
16
  </template>
17
17
 
18
18
  <script>
19
- import { Portal } from '@linusborg/vue-simple-portal';
20
19
  import { genId } from '../../utils/ids';
21
20
 
22
21
  export default {
@@ -16,8 +16,19 @@
16
16
  @keydown.up.prevent="onKeyArrowUp"
17
17
  @keydown.esc.stop="onKeyEsc"
18
18
  >
19
- <span class="Listbox-button__text"><slot></slot></span>
20
- <span class="Listbox-button__icon">
19
+ <span
20
+ :class="{
21
+ 'Listbox-button__text': headless,
22
+ 'text-left': !headless,
23
+ }"
24
+ >
25
+ <slot></slot>
26
+ </span>
27
+ <span
28
+ :class="{
29
+ 'Listbox-button__icon': headless,
30
+ }"
31
+ >
21
32
  <IconChevronDown
22
33
  class="transition-transform"
23
34
  :class="{ 'rotate-180': expanded }"