v-nuxt-ui 0.1.7 → 0.1.8

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.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "dependencies": [
8
8
  "@nuxt/ui"
9
9
  ],
10
- "version": "0.1.7",
10
+ "version": "0.1.8",
11
11
  "builder": {
12
12
  "@nuxt/module-builder": "1.0.2",
13
13
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -25,6 +25,7 @@ const module$1 = defineNuxtModule({
25
25
  addImportsDir(resolve("./runtime/composables/flow"));
26
26
  addImportsDir(resolve("./runtime/composables/table"));
27
27
  addImportsDir(resolve("./runtime/utils"));
28
+ addImportsDir(resolve("./runtime/utils/download"));
28
29
  addImportsDir(resolve("./runtime/constants"));
29
30
  addPlugin(resolve("./runtime/plugins/01.nuxtUIEnhancement"));
30
31
  addPlugin(resolve("./runtime/plugins/02.dayjs"));
@@ -33,7 +34,11 @@ const module$1 = defineNuxtModule({
33
34
  nuxt.options.vite ??= {};
34
35
  nuxt.options.vite.optimizeDeps ??= {};
35
36
  nuxt.options.vite.optimizeDeps.include ??= [];
36
- nuxt.options.vite.optimizeDeps.include.push("dayjs", "dayjs/plugin/utc", "dayjs/plugin/timezone");
37
+ nuxt.options.vite.optimizeDeps.include.push(
38
+ "dayjs",
39
+ "dayjs/plugin/utc",
40
+ "dayjs/plugin/timezone"
41
+ );
37
42
  nuxt.options.css.push(resolve("./runtime/assets/css/main.css"));
38
43
  nuxt.options.css.push(resolve("./runtime/assets/css/transition.css"));
39
44
  nuxt.hook("prepare:types", ({ references }) => {
@@ -15,13 +15,13 @@ export default defineNuxtPlugin({
15
15
  }
16
16
  function updateBlackAsPrimary() {
17
17
  const blackAsPrimary = customAppConfig.value.blackAsPrimary;
18
- if (blackAsPrimary) {
18
+ if (blackAsPrimary && appConfig.theme) {
19
19
  appConfig.theme.blackAsPrimary = blackAsPrimary === true;
20
20
  }
21
21
  }
22
22
  function updateRadius() {
23
23
  const radius = customAppConfig.value.radius;
24
- if (radius !== void 0) {
24
+ if (radius !== void 0 && appConfig.theme) {
25
25
  appConfig.theme.radius = radius;
26
26
  }
27
27
  }
@@ -1,15 +1,9 @@
1
- import colors from "tailwindcss/colors";
2
1
  import { defineNuxtPlugin, useAppConfig, useHead } from "nuxt/app";
3
- import { useColorMode } from "@vueuse/core";
4
2
  import { computed } from "vue";
5
3
  export default defineNuxtPlugin({
6
4
  enforce: "post",
7
5
  setup() {
8
6
  const appConfig = useAppConfig();
9
- const colorMode = useColorMode();
10
- const themeColor = computed(
11
- () => colorMode.value === "dark" ? colors[appConfig.ui?.colors?.neutral]?.[900] : "white"
12
- );
13
7
  const radiusStyle = computed(
14
8
  () => `:root { --ui-radius: ${appConfig.theme?.radius ?? 0.25}rem; }`
15
9
  );
@@ -17,9 +11,6 @@ export default defineNuxtPlugin({
17
11
  () => appConfig.theme?.blackAsPrimary ? `:root { --ui-primary: black; } .dark { --ui-primary: white; }` : ":root {}"
18
12
  );
19
13
  useHead({
20
- meta: [
21
- { key: "theme-color", name: "theme-color", content: themeColor }
22
- ],
23
14
  style: [
24
15
  { innerHTML: radiusStyle, id: "nuxt-ui-radius", tagPriority: -2 },
25
16
  { innerHTML: blackAsPrimaryStyle, id: "nuxt-ui-black-as-primary", tagPriority: -2 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v-nuxt-ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Veken UI Component Library - Reusable Nuxt UI components, composables, and utilities for enterprise applications",
5
5
  "type": "module",
6
6
  "style": "./dist/runtime/index.css",