@icvdeveloper/common-module 2.2.2 → 2.2.4
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/CHANGELOG.md +4 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +11 -3
- package/dist/runtime/assets/{scss → postcss}/_forms.css +1 -1
- package/dist/runtime/assets/{scss → postcss}/_transitions.css +1 -1
- package/dist/runtime/components/forms/Message.vue +2 -0
- package/package.json +1 -1
- /package/dist/runtime/assets/{scss → postcss}/_agenda.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_animations.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_container_variants.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_custom.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_footer.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_header.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_index_production.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_variables.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_variables2.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/_webcast.css +0 -0
- /package/dist/runtime/assets/{scss → postcss}/index.css +0 -0
package/CHANGELOG.md
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { join, resolve } from 'path';
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import { defineNuxtModule, useLogger, installModule, addPlugin, addImportsDir, addComponentsDir } from '@nuxt/kit';
|
|
4
|
+
import { existsSync } from 'node:fs';
|
|
4
5
|
import svgLoader from 'vite-svg-loader';
|
|
5
6
|
|
|
6
7
|
|
|
@@ -68,7 +69,7 @@ const module = defineNuxtModule({
|
|
|
68
69
|
content: [join(runtimeDir, "components/**/*.{vue,js,ts}")]
|
|
69
70
|
};
|
|
70
71
|
await installModule("@nuxtjs/tailwindcss", tailwindConfig);
|
|
71
|
-
logger.success("
|
|
72
|
+
logger.success("TailwindCSS installed!");
|
|
72
73
|
} else {
|
|
73
74
|
throw new Error("Remove @nuxtjs/tailwindcss from nuxt.config.ts");
|
|
74
75
|
}
|
|
@@ -82,8 +83,15 @@ const module = defineNuxtModule({
|
|
|
82
83
|
nuxt.options.build.transpile.push(runtimeDir);
|
|
83
84
|
addPlugin(resolve(runtimeDir, "plugin"));
|
|
84
85
|
nuxt.options.css.push(resolve("node_modules/nprogress/nprogress.css"));
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
const parentCSSVars = resolve(nuxt.options.rootDir, "assets/postcss/_variables2.css");
|
|
87
|
+
logger.info("compiling module CSS...");
|
|
88
|
+
nuxt.options.css.push(resolve(join(runtimeDir, "assets/postcss/index.css")));
|
|
89
|
+
if (existsSync(parentCSSVars)) {
|
|
90
|
+
logger.info("overriding default CSS vars with parent project's...");
|
|
91
|
+
nuxt.options.css.push(parentCSSVars);
|
|
92
|
+
} else {
|
|
93
|
+
logger.info("no parent CSS vars detected, skipping...");
|
|
94
|
+
}
|
|
87
95
|
nuxt.options.nitro.publicAssets = [{
|
|
88
96
|
dir: resolve(resolve(join(runtimeDir, "assets/css"))),
|
|
89
97
|
baseURL: "/public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-input{@apply border rounded w-full py-2 px-3 text-gray-600 leading-tight}.form-input:focus{@apply outline-none shadow}.select-input{@apply border rounded w-full text-gray-600 leading-tight py-1 px-2 h-auto}.select-input:focus{@apply outline-none}.btn{@apply button-color-1 text-white tracking-wider font-bold uppercase py-2 px-4 rounded}.btn:hover{@apply button-color-1-darker}.btn-secondary{@apply text-white button-color-2}.btn-secondary:hover{@apply button-color-2-darker}
|
|
1
|
+
.form-input{@apply border rounded w-full py-2 px-3 text-gray-600 leading-tight}.form-input:focus{@apply outline-none shadow}.select-input{@apply border rounded w-full text-gray-600 leading-tight py-1 px-2 h-auto}.select-input:focus{@apply outline-none}.btn{@apply button-color-1 text-white tracking-wider font-bold uppercase py-2 px-4 rounded}.btn:hover{@apply button-color-1-darker}.btn-secondary{@apply text-white button-color-2}.btn-secondary:hover{@apply button-color-2-darker}.max-form-width{max-width:50ch}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-enter-active,.page-leave-active{transition:opacity .25s}.page-enter,.page-leave-to{opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.slide-fade-enter-active{transition:all .3s ease}.slide-fade-leave-active{transition:all .3s cubic-bezier(1,.5,.8,1)}.slide-fade-enter,.slide-fade-leave-to{opacity:0;transform:translateY(-100px)}
|
|
1
|
+
.page-enter-active,.page-leave-active{transition:opacity .25s}.page-enter,.page-leave-to{opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.slide-fade-enter-active{transition:all .3s ease}.slide-fade-leave-active{transition:all .3s cubic-bezier(1,.5,.8,1)}.slide-fade-enter,.slide-fade-leave-to{opacity:0;transform:translateY(-100px)}.modal-fade-enter,.modal-fade-leave-active{opacity:0}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .3s ease}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|