adata-ui 3.0.1 → 4.0.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/dist/module.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "configKey": "adataUI",
4
- "version": "3.0.1",
4
+ "compatibility": {
5
+ "nuxt": ">=3.16.0"
6
+ },
7
+ "version": "4.0.0",
5
8
  "builder": {
6
9
  "@nuxt/module-builder": "1.0.1",
7
10
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -1,9 +1,12 @@
1
- import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, addPlugin } from '@nuxt/kit';
2
2
 
3
3
  const module = defineNuxtModule({
4
4
  meta: {
5
5
  name: "adata-ui",
6
- configKey: "adataUI"
6
+ configKey: "adataUI",
7
+ compatibility: {
8
+ nuxt: ">=3.16.0"
9
+ }
7
10
  },
8
11
  // Default configuration options of the Nuxt module
9
12
  defaults: {},
@@ -15,13 +18,11 @@ const module = defineNuxtModule({
15
18
  } else {
16
19
  _nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
17
20
  }
18
- addPlugin(resolver.resolve("./runtime/plugin"));
19
21
  addComponentsDir({
20
22
  path: resolver.resolve("./runtime/components"),
21
- pathPrefix: false,
22
- prefix: "A",
23
- extensions: ["vue"]
23
+ prefix: "Adata"
24
24
  });
25
+ addPlugin(resolver.resolve("./runtime/plugin"));
25
26
  }
26
27
  });
27
28
 
@@ -3,8 +3,8 @@
3
3
  </script>
4
4
 
5
5
  <template>
6
- <header class="">
7
- <div class="text-3xl">test a</div>
6
+ <header>
7
+ Adata Header
8
8
  </header>
9
9
  </template>
10
10
 
@@ -1,4 +1,4 @@
1
1
  import { defineNuxtPlugin } from "#app";
2
2
  export default defineNuxtPlugin((_nuxtApp) => {
3
- console.log("Plugin injected by adata ui!");
3
+ console.log("Plugin injected by my-module!");
4
4
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.0.1",
4
- "description": "Adata UI with Tailwind 4",
3
+ "version": "4.0.0",
4
+ "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -31,14 +31,13 @@
31
31
  "lint": "eslint .",
32
32
  "test": "vitest run",
33
33
  "test:watch": "vitest watch",
34
- "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
35
- "link": "npm link"
34
+ "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
36
35
  },
37
36
  "dependencies": {
38
37
  "@nuxt/kit": "^3.17.2",
39
- "@tailwindcss/postcss": "^4.1.5",
40
- "@tailwindcss/vite": "^4.1.5",
41
- "tailwindcss": "^4.1.5"
38
+ "@tailwindcss/postcss": "^4.1.6",
39
+ "@tailwindcss/vite": "^4.1.6",
40
+ "tailwindcss": "^4.1.6"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@nuxt/devtools": "^2.4.0",