@antify/ui-module 2.3.0 → 2.3.3

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.d.mts CHANGED
@@ -1,10 +1,8 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import * as tailwindcss from 'tailwindcss';
3
2
  export * from '../dist/runtime/types.js';
4
3
 
5
- type TailwindConfig = tailwindcss.Config;
6
4
  type ModuleOptions = {
7
- tailwindcss?: TailwindConfig;
5
+ tailwindCSSPath?: string;
8
6
  };
9
7
 
10
8
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
package/dist/module.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import * as tailwindcss from 'tailwindcss';
3
2
  export * from '../dist/runtime/types.js';
4
3
 
5
- type TailwindConfig = tailwindcss.Config;
6
4
  type ModuleOptions = {
7
- tailwindcss?: TailwindConfig;
5
+ tailwindCSSPath?: string;
8
6
  };
9
7
 
10
8
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@antify/ui-module",
3
3
  "configKey": "uiModule",
4
- "version": "2.3.0",
4
+ "version": "2.3.3",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.8.3",
6
+ "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -1,6 +1,5 @@
1
- import tailwindConfig from '../dist/runtime/tailwindConfig.js';
2
1
  import { defineNuxtModule, createResolver, addPlugin, addImportsDir, addComponent } from '@nuxt/kit';
3
- import { defu } from 'defu';
2
+ import tailwindcss from '@tailwindcss/vite';
4
3
 
5
4
  const uiComponents = [
6
5
  "AntActionButton",
@@ -91,8 +90,14 @@ const module = defineNuxtModule({
91
90
  filePath: "@antify/ui/components"
92
91
  });
93
92
  });
94
- nuxt.options.postcss.plugins.tailwindcss = defu(tailwindConfig, options.tailwindcss);
95
- nuxt.options.css.push(resolve(runtimeDir, "assets/tailwind.css"));
93
+ nuxt.hook("vite:extendConfig", (viteInlineConfig) => {
94
+ viteInlineConfig.plugins.push(tailwindcss());
95
+ });
96
+ nuxt.options.css.push(resolve(runtimeDir, "assets/antify.css"));
97
+ if (options.tailwindCSSPath) {
98
+ const tailwindCSSPath = resolve(nuxt.options.rootDir, options.tailwindCSSPath);
99
+ nuxt.options.css.push(tailwindCSSPath);
100
+ }
96
101
  nuxt.options.runtimeConfig.public[moduleKey] = options;
97
102
  }
98
103
  });
@@ -0,0 +1 @@
1
+ @import "@antify/ui";
@@ -1,4 +1,4 @@
1
- declare const _default: import("nuxt/app").Plugin<{
1
+ declare const _default: import("#app").Plugin<{
2
2
  uiModule: {
3
3
  toaster: {
4
4
  getToasts(): {
@@ -20,7 +20,7 @@ declare const _default: import("nuxt/app").Plugin<{
20
20
  toastDuplicated(): void;
21
21
  };
22
22
  };
23
- }> & import("nuxt/app").ObjectPlugin<{
23
+ }> & import("#app").ObjectPlugin<{
24
24
  uiModule: {
25
25
  toaster: {
26
26
  getToasts(): {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antify/ui-module",
3
3
  "private": false,
4
- "version": "2.3.0",
4
+ "version": "2.3.3",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "type": "module",
@@ -17,12 +17,15 @@
17
17
  "files": [
18
18
  "dist"
19
19
  ],
20
+ "peerDependencies": {
21
+ "@tailwindcss/vite": "^4.0.3",
22
+ "tailwindcss": "^4.0.3"
23
+ },
20
24
  "dependencies": {
21
- "@antify/ui": "^2.2.1",
25
+ "@antify/ui": "^2.2.9",
22
26
  "@fortawesome/vue-fontawesome": "^3.0.8",
23
27
  "@nuxt/kit": "^3.13.1",
24
28
  "@vueuse/core": "^10.7.2",
25
- "tailwindcss": "^3.4.10",
26
29
  "vue": "^3.4.29"
27
30
  },
28
31
  "devDependencies": {
@@ -1 +0,0 @@
1
- @tailwind base;@tailwind components;@tailwind utilities;
@@ -1,2 +0,0 @@
1
- import tailwindConfig from '@antify/ui/config';
2
- export default tailwindConfig;
@@ -1,20 +0,0 @@
1
- import tailwindConfig from "@antify/ui/config";
2
- tailwindConfig.content = [
3
- // For module dev
4
- "./src/runtime/**/*.{vue,js,ts,jsx,tsx}",
5
- "./src/runtime/**/*.stories.ts",
6
- "./playground/app.vue",
7
- "./playground/components/**/*.{vue,js,ts,jsx,tsx}",
8
- "./playground/pages/**/*.{vue,js,ts,jsx,tsx}",
9
- "./playground/layouts/**/*.{vue,js,ts,jsx,tsx}",
10
- // '../ui-module/src/**/*.{vue,js,ts,jsx,tsx}',
11
- // For project dev
12
- "./app.vue",
13
- "./components/**/*.{vue,js,ts,jsx,tsx}",
14
- "./pages/**/*.{vue,js,ts,jsx,tsx}",
15
- "./layouts/**/*.{vue,js,ts,jsx,tsx}",
16
- // If this config is used in a project
17
- "./node_modules/@antify/*/dist/**/*.{js,vue,ts}"
18
- // './node_modules/@antify/*/src/**/*.{js,vue,ts}',
19
- ];
20
- export default tailwindConfig;