@neowit/orbit-vue 0.11.3 → 0.12.1
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/nuxt.cjs +1 -1
- package/dist/nuxt.js +14 -41
- package/dist/orbit.cjs +45 -45
- package/dist/orbit.js +7479 -8038
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/resolver.mjs +1 -0
package/dist/nuxt.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var a=Object.create;var r=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var b=(e,o,t,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of c(o))!p.call(e,n)&&n!==t&&r(e,n,{get:()=>o[n],enumerable:!(i=m(o,n))||i.enumerable});return e};var u=(e,o,t)=>(t=e!=null?a(f(e)):{},b(o||!e||!e.__esModule?r(t,"default",{value:e,enumerable:!0}):t,e));const s=require("@nuxt/kit"),w=s.defineNuxtModule({meta:{name:"@neowit/orbit-vue",configKey:"orbit"},defaults:{components:!0},async setup(e,o){o.options.css.unshift("@neowit/orbit-tokens/css"),o.options.build.transpile.push("@neowit/orbit-vue","@neowit/orbit-tokens"),s.addImports([{name:"useTheme",from:"@neowit/orbit-vue"},{name:"useToast",from:"@neowit/orbit-vue"},{name:"useDialog",from:"@neowit/orbit-vue"},{name:"useIcon",from:"@neowit/orbit-vue"},{name:"useLogo",from:"@neowit/orbit-vue"},{name:"useBrandFavicon",from:"@neowit/orbit-vue"}]);const t=[];if(e.components){const{OrbitComponentsResolver:i}=await import("@neowit/orbit-vue/resolver");t.push(i())}if(t.length>0){const i=await import("unplugin-vue-components/vite").then(n=>n.default);s.addVitePlugin(i({resolvers:t,dts:!1}))}}});module.exports=w;
|
package/dist/nuxt.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { defineNuxtModule as
|
|
2
|
-
|
|
3
|
-
import { dirname as h, join as a } from "node:path";
|
|
4
|
-
import { readdirSync as g } from "node:fs";
|
|
5
|
-
const R = p({
|
|
1
|
+
import { defineNuxtModule as s, addImports as r, addVitePlugin as u } from "@nuxt/kit";
|
|
2
|
+
const m = s({
|
|
6
3
|
meta: {
|
|
7
4
|
name: "@neowit/orbit-vue",
|
|
8
5
|
configKey: "orbit"
|
|
9
6
|
},
|
|
10
7
|
defaults: {
|
|
11
|
-
|
|
12
|
-
components: !0,
|
|
13
|
-
globalIcons: !1
|
|
8
|
+
components: !0
|
|
14
9
|
},
|
|
15
|
-
async setup(
|
|
16
|
-
|
|
10
|
+
async setup(n, t) {
|
|
11
|
+
t.options.css.unshift("@neowit/orbit-tokens/css"), t.options.build.transpile.push("@neowit/orbit-vue", "@neowit/orbit-tokens"), r([
|
|
17
12
|
{ name: "useTheme", from: "@neowit/orbit-vue" },
|
|
18
13
|
{ name: "useToast", from: "@neowit/orbit-vue" },
|
|
19
14
|
{ name: "useDialog", from: "@neowit/orbit-vue" },
|
|
@@ -21,42 +16,20 @@ const R = p({
|
|
|
21
16
|
{ name: "useLogo", from: "@neowit/orbit-vue" },
|
|
22
17
|
{ name: "useBrandFavicon", from: "@neowit/orbit-vue" }
|
|
23
18
|
]);
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
26
|
-
const { OrbitComponentsResolver:
|
|
27
|
-
|
|
19
|
+
const o = [];
|
|
20
|
+
if (n.components) {
|
|
21
|
+
const { OrbitComponentsResolver: e } = await import("@neowit/orbit-vue/resolver");
|
|
22
|
+
o.push(e());
|
|
28
23
|
}
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const m = ["icons", "custom", "logos"];
|
|
34
|
-
for (const u of m) {
|
|
35
|
-
const r = a(s, "src", "vue", u);
|
|
36
|
-
try {
|
|
37
|
-
const l = g(r).filter((t) => t.endsWith(".vue"));
|
|
38
|
-
for (const t of l) {
|
|
39
|
-
const f = t.replace(".vue", "");
|
|
40
|
-
b({
|
|
41
|
-
name: f,
|
|
42
|
-
filePath: a(r, t),
|
|
43
|
-
global: !0
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
if (e.length > 0) {
|
|
52
|
-
const o = await import("unplugin-vue-components/vite").then((s) => s.default);
|
|
53
|
-
v(o({
|
|
54
|
-
resolvers: e,
|
|
24
|
+
if (o.length > 0) {
|
|
25
|
+
const e = await import("unplugin-vue-components/vite").then((i) => i.default);
|
|
26
|
+
u(e({
|
|
27
|
+
resolvers: o,
|
|
55
28
|
dts: !1
|
|
56
29
|
}));
|
|
57
30
|
}
|
|
58
31
|
}
|
|
59
32
|
});
|
|
60
33
|
export {
|
|
61
|
-
|
|
34
|
+
m as default
|
|
62
35
|
};
|