@antify/ui-module 2.3.0 → 2.3.2
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 +1 -3
- package/dist/module.d.ts +1 -3
- package/dist/module.json +2 -2
- package/dist/module.mjs +19 -4
- package/dist/runtime/plugins/ui-module.d.ts +2 -2
- package/package.json +6 -3
- package/dist/runtime/assets/tailwind.css +0 -1
- package/dist/runtime/tailwindConfig.d.ts +0 -2
- package/dist/runtime/tailwindConfig.js +0 -20
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
|
-
|
|
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
|
-
|
|
5
|
+
tailwindCSSPath?: string;
|
|
8
6
|
};
|
|
9
7
|
|
|
10
8
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import tailwindConfig from '../dist/runtime/tailwindConfig.js';
|
|
2
1
|
import { defineNuxtModule, createResolver, addPlugin, addImportsDir, addComponent } from '@nuxt/kit';
|
|
3
|
-
import
|
|
2
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
4
3
|
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// -- Unbuild CommonJS Shims --
|
|
7
|
+
import __cjs_url__ from 'url';
|
|
8
|
+
import __cjs_path__ from 'path';
|
|
9
|
+
import __cjs_mod__ from 'module';
|
|
10
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
11
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
12
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
5
13
|
const uiComponents = [
|
|
6
14
|
"AntActionButton",
|
|
7
15
|
"AntButton",
|
|
@@ -91,8 +99,15 @@ const module = defineNuxtModule({
|
|
|
91
99
|
filePath: "@antify/ui/components"
|
|
92
100
|
});
|
|
93
101
|
});
|
|
94
|
-
nuxt.
|
|
95
|
-
|
|
102
|
+
nuxt.hook("vite:extendConfig", (viteInlineConfig) => {
|
|
103
|
+
viteInlineConfig.plugins.push(tailwindcss());
|
|
104
|
+
});
|
|
105
|
+
const antifyCSSPath = require.resolve("@antify/ui/styles");
|
|
106
|
+
nuxt.options.css.push(antifyCSSPath);
|
|
107
|
+
if (options.tailwindCSSPath) {
|
|
108
|
+
const tailwindCSSPath = resolve(nuxt.options.rootDir, options.tailwindCSSPath);
|
|
109
|
+
nuxt.options.css.push(tailwindCSSPath);
|
|
110
|
+
}
|
|
96
111
|
nuxt.options.runtimeConfig.public[moduleKey] = options;
|
|
97
112
|
}
|
|
98
113
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("
|
|
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("
|
|
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.
|
|
4
|
+
"version": "2.3.2",
|
|
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.
|
|
25
|
+
"@antify/ui": "^2.2.6",
|
|
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,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;
|