@sunny-base-web/icons 0.0.0

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.
@@ -0,0 +1,10 @@
1
+ import * as vue from 'vue';
2
+ export * from 'lucide-vue-next';
3
+ export { Menu as IconDefault, ArrowRightFromLine as MdiMenuClose, ArrowLeftFromLine as MdiMenuOpen } from 'lucide-vue-next';
4
+ export { Icon as IconifyIcon, IconifyIcon as IconifyIconStructure, addCollection, addIcon, listIcons } from '@iconify/vue';
5
+
6
+ declare function createIconifyIcon(icon: string): vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
7
+ [key: string]: any;
8
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
9
+
10
+ export { createIconifyIcon };
@@ -0,0 +1,10 @@
1
+ import * as vue from 'vue';
2
+ export * from 'lucide-vue-next';
3
+ export { Menu as IconDefault, ArrowRightFromLine as MdiMenuClose, ArrowLeftFromLine as MdiMenuOpen } from 'lucide-vue-next';
4
+ export { Icon as IconifyIcon, IconifyIcon as IconifyIconStructure, addCollection, addIcon, listIcons } from '@iconify/vue';
5
+
6
+ declare function createIconifyIcon(icon: string): vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
7
+ [key: string]: any;
8
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
9
+
10
+ export { createIconifyIcon };
package/dist/index.js ADDED
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ IconDefault: () => import_lucide_vue_next.Menu,
25
+ IconifyIcon: () => import_vue3.Icon,
26
+ MdiMenuClose: () => import_lucide_vue_next.ArrowRightFromLine,
27
+ MdiMenuOpen: () => import_lucide_vue_next.ArrowLeftFromLine,
28
+ addCollection: () => import_vue3.addCollection,
29
+ addIcon: () => import_vue3.addIcon,
30
+ createIconifyIcon: () => createIconifyIcon,
31
+ listIcons: () => import_vue3.listIcons
32
+ });
33
+ module.exports = __toCommonJS(index_exports);
34
+
35
+ // src/create-icon.ts
36
+ var import_vue = require("vue");
37
+ var import_vue2 = require("@iconify/vue");
38
+ function createIconifyIcon(icon) {
39
+ return (0, import_vue.defineComponent)({
40
+ name: `Icon-${icon}`,
41
+ setup(props, { attrs }) {
42
+ return () => (0, import_vue.h)(import_vue2.Icon, { icon, ...props, ...attrs });
43
+ }
44
+ });
45
+ }
46
+
47
+ // src/lucide.ts
48
+ var lucide_exports = {};
49
+ __export(lucide_exports, {
50
+ IconDefault: () => import_lucide_vue_next.Menu,
51
+ MdiMenuClose: () => import_lucide_vue_next.ArrowRightFromLine,
52
+ MdiMenuOpen: () => import_lucide_vue_next.ArrowLeftFromLine
53
+ });
54
+ __reExport(lucide_exports, require("lucide-vue-next"));
55
+ var import_lucide_vue_next = require("lucide-vue-next");
56
+
57
+ // src/index.ts
58
+ __reExport(index_exports, lucide_exports, module.exports);
59
+ var import_vue3 = require("@iconify/vue");
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ IconDefault,
63
+ IconifyIcon,
64
+ MdiMenuClose,
65
+ MdiMenuOpen,
66
+ addCollection,
67
+ addIcon,
68
+ createIconifyIcon,
69
+ listIcons
70
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,76 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+
19
+ // src/index.ts
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ IconDefault: () => Menu,
23
+ IconifyIcon: () => Icon2,
24
+ MdiMenuClose: () => ArrowRightFromLine,
25
+ MdiMenuOpen: () => ArrowLeftFromLine,
26
+ addCollection: () => addCollection,
27
+ addIcon: () => addIcon,
28
+ createIconifyIcon: () => createIconifyIcon,
29
+ listIcons: () => listIcons
30
+ });
31
+
32
+ // src/create-icon.ts
33
+ import { defineComponent, h } from "vue";
34
+ import { Icon } from "@iconify/vue";
35
+ function createIconifyIcon(icon) {
36
+ return defineComponent({
37
+ name: `Icon-${icon}`,
38
+ setup(props, { attrs }) {
39
+ return () => h(Icon, { icon, ...props, ...attrs });
40
+ }
41
+ });
42
+ }
43
+
44
+ // src/lucide.ts
45
+ var lucide_exports = {};
46
+ __export(lucide_exports, {
47
+ IconDefault: () => Menu,
48
+ MdiMenuClose: () => ArrowRightFromLine,
49
+ MdiMenuOpen: () => ArrowLeftFromLine
50
+ });
51
+ __reExport(lucide_exports, lucide_vue_next_star);
52
+ import * as lucide_vue_next_star from "lucide-vue-next";
53
+ import {
54
+ Menu,
55
+ ArrowRightFromLine,
56
+ ArrowLeftFromLine
57
+ } from "lucide-vue-next";
58
+
59
+ // src/index.ts
60
+ __reExport(index_exports, lucide_exports);
61
+ import {
62
+ addCollection,
63
+ addIcon,
64
+ Icon as Icon2,
65
+ listIcons
66
+ } from "@iconify/vue";
67
+ export {
68
+ Menu as IconDefault,
69
+ Icon2 as IconifyIcon,
70
+ ArrowRightFromLine as MdiMenuClose,
71
+ ArrowLeftFromLine as MdiMenuOpen,
72
+ addCollection,
73
+ addIcon,
74
+ createIconifyIcon,
75
+ listIcons
76
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@sunny-base-web/icons",
3
+ "version": "0.0.0",
4
+ "private": false,
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.mjs",
15
+ "require": "./dist/index.js"
16
+ }
17
+ },
18
+ "publishConfig": {
19
+ "access": "public",
20
+ "registry": "https://registry.npmjs.org/"
21
+ },
22
+ "dependencies": {
23
+ "@iconify/vue": "^4.1.1",
24
+ "lucide-vue-next": "^0.465.0",
25
+ "vue": "^3.5.13"
26
+ },
27
+ "devDependencies": {
28
+ "tsup": "^8.5.1",
29
+ "typescript": "^5.7.2",
30
+ "@sunny-base-web/tsconfig": "0.0.0"
31
+ },
32
+ "scripts": {
33
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
34
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
35
+ }
36
+ }