adata-ui 3.0.0 → 3.0.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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "configKey": "adataUI",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, addPlugin } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir } from '@nuxt/kit';
2
2
 
3
3
  const module = defineNuxtModule({
4
4
  meta: {
@@ -7,9 +7,21 @@ const module = defineNuxtModule({
7
7
  },
8
8
  // Default configuration options of the Nuxt module
9
9
  defaults: {},
10
- setup(_options, _nuxt) {
10
+ async setup(_options, _nuxt) {
11
11
  const resolver = createResolver(import.meta.url);
12
+ if (_nuxt.options.builder === "@nuxt/vite-builder") {
13
+ const plugin = await import('@tailwindcss/vite').then((r) => r.default);
14
+ addVitePlugin(plugin());
15
+ } else {
16
+ _nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
17
+ }
12
18
  addPlugin(resolver.resolve("./runtime/plugin"));
19
+ addComponentsDir({
20
+ path: resolver.resolve("./runtime/components"),
21
+ pathPrefix: false,
22
+ prefix: "A",
23
+ extensions: ["vue"]
24
+ });
13
25
  }
14
26
  });
15
27
 
@@ -0,0 +1,13 @@
1
+ <script setup lang="ts">
2
+
3
+ </script>
4
+
5
+ <template>
6
+ <header class="">
7
+ <div class="text-3xl">test a</div>
8
+ </header>
9
+ </template>
10
+
11
+ <style scoped>
12
+
13
+ </style>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Adata UI with Tailwind 4",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",
@@ -35,7 +35,10 @@
35
35
  "link": "npm link"
36
36
  },
37
37
  "dependencies": {
38
- "@nuxt/kit": "^3.17.2"
38
+ "@nuxt/kit": "^3.17.2",
39
+ "@tailwindcss/postcss": "^4.1.5",
40
+ "@tailwindcss/vite": "^4.1.5",
41
+ "tailwindcss": "^4.1.5"
39
42
  },
40
43
  "devDependencies": {
41
44
  "@nuxt/devtools": "^2.4.0",