@unsource/ui 2.8.14 → 2.8.15
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 +1 -1
- package/dist/module.mjs +14 -7
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createResolver, defineNuxtModule, addComponentsDir, addImportsDir, addPlugin } from '@nuxt/kit';
|
|
2
2
|
import defu from 'defu';
|
|
3
3
|
import { presetWind4, presetAttributify, transformerVariantGroup, transformerDirectives } from 'unocss';
|
|
4
4
|
import { presetScrollbar } from 'unocss-preset-scrollbar';
|
|
5
5
|
|
|
6
|
+
const resolver = createResolver(import.meta.url);
|
|
6
7
|
const module$1 = defineNuxtModule({
|
|
7
8
|
meta: {
|
|
8
9
|
name: "unsource-ui",
|
|
@@ -12,6 +13,7 @@ const module$1 = defineNuxtModule({
|
|
|
12
13
|
"@nuxtjs/device": {},
|
|
13
14
|
"@unocss/nuxt": {
|
|
14
15
|
defaults: {
|
|
16
|
+
// safelist: Object.keys(variants),
|
|
15
17
|
// configFile: resolver.resolve('runtime/uno.config.{mjs,js,ts}'),
|
|
16
18
|
// nuxtLayers: true,
|
|
17
19
|
transformers: [
|
|
@@ -24,7 +26,12 @@ const module$1 = defineNuxtModule({
|
|
|
24
26
|
presetScrollbar({
|
|
25
27
|
noCompatible: false
|
|
26
28
|
})
|
|
27
|
-
]
|
|
29
|
+
],
|
|
30
|
+
content: {
|
|
31
|
+
filesystem: [
|
|
32
|
+
resolver.resolve("runtime/composables/global")
|
|
33
|
+
]
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
},
|
|
30
37
|
"@nuxt/icon": {
|
|
@@ -88,9 +95,9 @@ const module$1 = defineNuxtModule({
|
|
|
88
95
|
}
|
|
89
96
|
},
|
|
90
97
|
async setup(_options, _nuxt) {
|
|
91
|
-
const
|
|
98
|
+
const resolver2 = createResolver(import.meta.url);
|
|
92
99
|
addComponentsDir({
|
|
93
|
-
path:
|
|
100
|
+
path: resolver2.resolve("runtime/components"),
|
|
94
101
|
// path of components
|
|
95
102
|
pathPrefix: false,
|
|
96
103
|
// Prefix component name by its path.
|
|
@@ -99,9 +106,9 @@ const module$1 = defineNuxtModule({
|
|
|
99
106
|
global: true
|
|
100
107
|
// Registers components to be globally available.
|
|
101
108
|
});
|
|
102
|
-
addImportsDir(
|
|
103
|
-
addPlugin(
|
|
104
|
-
addPlugin(
|
|
109
|
+
addImportsDir(resolver2.resolve("runtime/composables"));
|
|
110
|
+
addPlugin(resolver2.resolve("runtime/plugins/floating.client"));
|
|
111
|
+
addPlugin(resolver2.resolve("runtime/plugins/toast.client"));
|
|
105
112
|
_nuxt.options.runtimeConfig.public.unsourceUi = defu(_nuxt.options.runtimeConfig.public.unsourceUi, _options);
|
|
106
113
|
}
|
|
107
114
|
});
|