@shwfed/nuxt 0.11.47 → 0.11.49

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
3
  "configKey": "shwfed",
4
- "version": "0.11.47",
4
+ "version": "0.11.49",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,9 +1,41 @@
1
1
  import { execSync } from 'node:child_process';
2
- import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addImportsDir, addComponent, addRouteMiddleware, addLayout } from '@nuxt/kit';
2
+ import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addImportsDir, addComponentsDir, addComponent, addRouteMiddleware, addLayout } from '@nuxt/kit';
3
3
  import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
4
4
  import TailwindCSS from '@tailwindcss/vite';
5
5
  import defu from 'defu';
6
6
 
7
+ const publicUiComponentDirs = [
8
+ "button",
9
+ "button-group",
10
+ "calendar",
11
+ "checkbox",
12
+ "collapsible",
13
+ "command",
14
+ "dialog",
15
+ "drawer",
16
+ "dropdown-menu",
17
+ "expression-editor",
18
+ "field",
19
+ "icon-picker",
20
+ "input",
21
+ "input-group",
22
+ "label",
23
+ "locale",
24
+ "native-select",
25
+ "navigation-menu",
26
+ "number-field",
27
+ "popover",
28
+ "range-calendar",
29
+ "separator",
30
+ "sheet",
31
+ "sidebar",
32
+ "skeleton",
33
+ "switch",
34
+ "tabs",
35
+ "textarea",
36
+ "toggle",
37
+ "tooltip"
38
+ ];
7
39
  const module$1 = defineNuxtModule({
8
40
  meta: {
9
41
  name: "@shwfed/nuxt",
@@ -65,6 +97,13 @@ const module$1 = defineNuxtModule({
65
97
  mode: "client"
66
98
  });
67
99
  addImportsDir(resolver.resolve("runtime/composables"));
100
+ for (const dir of publicUiComponentDirs) {
101
+ addComponentsDir({
102
+ path: resolver.resolve(`runtime/components/ui/${dir}`),
103
+ prefix: "Ui",
104
+ pathPrefix: false
105
+ });
106
+ }
68
107
  addComponent({
69
108
  name: "ShwfedApp",
70
109
  filePath: resolver.resolve("runtime/components/app.vue")