@neowit/orbit-vue 0.8.6 → 0.8.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/nuxt.cjs +1 -1
- package/dist/nuxt.js +12 -22
- package/dist/orbit.cjs +5 -5
- package/dist/orbit.js +1008 -967
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/nuxt.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";var a=Object.create;var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var d=(t,o,i,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of p(o))!b.call(t,s)&&s!==i&&n(t,s,{get:()=>o[s],enumerable:!(e=c(o,s))||e.enumerable});return t};var r=(t,o,i)=>(i=t!=null?a(l(t)):{},d(o||!t||!t.__esModule?n(i,"default",{value:t,enumerable:!0}):i,t));const u=require("@nuxt/kit"),f=u.defineNuxtModule({meta:{name:"@neowit/orbit-vue",configKey:"orbit"},defaults:{icons:!0},async setup(t,o){if(o.options.css.unshift("@neowit/orbit-tokens/css"),o.options.build.transpile.push("@neowit/orbit-vue","@neowit/orbit-tokens"),t.icons){o.options.build.transpile.push("@neowit/orbit-icons");const i=await import("unplugin-vue-components/vite").then(s=>s.default),{OrbitIconsResolver:e}=await import("@neowit/orbit-icons/resolver");u.addVitePlugin(i({resolvers:[e()],dts:!1}))}}});module.exports=f;
|
package/dist/nuxt.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defineNuxtModule as
|
|
2
|
-
|
|
3
|
-
import { dirname as f, resolve as a } from "node:path";
|
|
4
|
-
import { createRequire as m } from "node:module";
|
|
5
|
-
const w = p({
|
|
1
|
+
import { defineNuxtModule as n, addVitePlugin as r } from "@nuxt/kit";
|
|
2
|
+
const u = n({
|
|
6
3
|
meta: {
|
|
7
4
|
name: "@neowit/orbit-vue",
|
|
8
5
|
configKey: "orbit"
|
|
@@ -10,24 +7,17 @@ const w = p({
|
|
|
10
7
|
defaults: {
|
|
11
8
|
icons: !0
|
|
12
9
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
console.warn("[Orbit] @neowit/orbit-icons not found — icon auto-import disabled");
|
|
23
|
-
}
|
|
24
|
-
}), o.hook("components:extend", (i) => {
|
|
25
|
-
var e;
|
|
26
|
-
for (const t of i)
|
|
27
|
-
(e = t.filePath) != null && e.includes("orbit-icons") && (t.global = !0);
|
|
28
|
-
}));
|
|
10
|
+
async setup(o, t) {
|
|
11
|
+
if (t.options.css.unshift("@neowit/orbit-tokens/css"), t.options.build.transpile.push("@neowit/orbit-vue", "@neowit/orbit-tokens"), o.icons) {
|
|
12
|
+
t.options.build.transpile.push("@neowit/orbit-icons");
|
|
13
|
+
const i = await import("unplugin-vue-components/vite").then((s) => s.default), { OrbitIconsResolver: e } = await import("@neowit/orbit-icons/resolver");
|
|
14
|
+
r(i({
|
|
15
|
+
resolvers: [e()],
|
|
16
|
+
dts: !1
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
29
19
|
}
|
|
30
20
|
});
|
|
31
21
|
export {
|
|
32
|
-
|
|
22
|
+
u as default
|
|
33
23
|
};
|