nuxt-glorious 1.1.9-8 → 1.1.9-90

Sign up to get free protection for your applications and to get access to all the features.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.1.9-8"
4
+ "version": "1.1.9-90"
5
5
  }
package/dist/module.mjs CHANGED
@@ -57,6 +57,7 @@ const module = defineNuxtModule({
57
57
  });
58
58
  await installModule("@pinia/nuxt");
59
59
  addImportsDir(resolver.resolve("runtime/composables"));
60
+ addImportsDir(resolver.resolve("runtime/utils"));
60
61
  addImportsDir(resolver.resolve("runtime/stores"));
61
62
  addImportsDir(resolver.resolve("runtime/middlewares"));
62
63
  addComponentsDir({
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, ref, watch } from "#imports";
3
3
  import { useGloriousCore } from "../../composables/useGloriousCore";
4
- import tailwindColor from "../../utils/tailwindColor";
4
+ import gTailwindColor from "../../utils/ggTailwindColor";
5
5
  const props = defineProps({
6
6
  modelValue: {
7
7
  required: false,
@@ -208,7 +208,7 @@ const typeInput = ref(props.type);
208
208
  class="absolute left-0 top-0 bottom-0 my-auto ml-1 cursor-pointer"
209
209
  :size="23"
210
210
  name="glorious-eye-fill"
211
- :color="tailwindColor('gray', 500)"
211
+ :color="gTailwindColor('gray', 500)"
212
212
  @click="typeInput = 'text'"
213
213
  ></GIcon>
214
214
  <GIcon
@@ -216,7 +216,7 @@ const typeInput = ref(props.type);
216
216
  class="absolute left-0 top-0 bottom-0 my-auto ml-1 cursor-pointer"
217
217
  :size="23"
218
218
  name="glorious-eye-off-fill"
219
- :color="tailwindColor('gray', 500)"
219
+ :color="gTailwindColor('gray', 500)"
220
220
  @click="typeInput = 'password'"
221
221
  ></GIcon>
222
222
  </div>
@@ -236,7 +236,7 @@ const typeInput = ref(props.type);
236
236
  class="glorious-input-icon"
237
237
  :name="props.icon"
238
238
  :size="computeIconSize"
239
- :color="$tailwindColor('gray', '500')"
239
+ :color="gTailwindColor('gray', '500')"
240
240
  />
241
241
  </div>
242
242
  <GErrorText :error="props.error" />
@@ -0,0 +1 @@
1
+ export default function ggTailwindColor(name: string, range: number): any;
@@ -0,0 +1,5 @@
1
+ import colors from "tailwindcss/colors.js";
2
+ export default function ggTailwindColor(name, range) {
3
+ const gTailwindColor = colors;
4
+ return gTailwindColor[name][range];
5
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.9-8",
2
+ "version": "1.1.9-90",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",