@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 CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 2.2.4 - 2024-10-11
11
+
12
+ ## 2.2.3 - 2024-10-05
13
+
10
14
  ## 2.2.2 - 2024-10-04
11
15
 
12
16
  ## 2.2.1 - 2024-10-04
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "2.2.2"
4
+ "version": "2.2.4"
5
5
  }
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("Tailwindcss installed!");
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
- logger.info("compiling css...");
86
- nuxt.options.css.push(resolve(join(runtimeDir, "assets/scss/index.css")));
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}
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed, toRefs } from 'vue';
3
+
2
4
  interface Props {
3
5
  success?: boolean;
4
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
File without changes