@sunny-base-web/icons 0.0.0 → 0.0.2
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/index.cjs +70 -0
- package/dist/index.js +34 -28
- package/package.json +7 -6
- package/dist/index.mjs +0 -76
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/dist/index.cjs
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.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -16,30 +15,28 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
15
|
return to;
|
|
17
16
|
};
|
|
18
17
|
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
18
|
|
|
21
19
|
// src/index.ts
|
|
22
20
|
var index_exports = {};
|
|
23
21
|
__export(index_exports, {
|
|
24
|
-
IconDefault: () =>
|
|
25
|
-
IconifyIcon: () =>
|
|
26
|
-
MdiMenuClose: () =>
|
|
27
|
-
MdiMenuOpen: () =>
|
|
28
|
-
addCollection: () =>
|
|
29
|
-
addIcon: () =>
|
|
22
|
+
IconDefault: () => Menu,
|
|
23
|
+
IconifyIcon: () => Icon2,
|
|
24
|
+
MdiMenuClose: () => ArrowRightFromLine,
|
|
25
|
+
MdiMenuOpen: () => ArrowLeftFromLine,
|
|
26
|
+
addCollection: () => addCollection,
|
|
27
|
+
addIcon: () => addIcon,
|
|
30
28
|
createIconifyIcon: () => createIconifyIcon,
|
|
31
|
-
listIcons: () =>
|
|
29
|
+
listIcons: () => listIcons
|
|
32
30
|
});
|
|
33
|
-
module.exports = __toCommonJS(index_exports);
|
|
34
31
|
|
|
35
32
|
// src/create-icon.ts
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
import { defineComponent, h } from "vue";
|
|
34
|
+
import { Icon } from "@iconify/vue";
|
|
38
35
|
function createIconifyIcon(icon) {
|
|
39
|
-
return
|
|
36
|
+
return defineComponent({
|
|
40
37
|
name: `Icon-${icon}`,
|
|
41
38
|
setup(props, { attrs }) {
|
|
42
|
-
return () =>
|
|
39
|
+
return () => h(Icon, { icon, ...props, ...attrs });
|
|
43
40
|
}
|
|
44
41
|
});
|
|
45
42
|
}
|
|
@@ -47,24 +44,33 @@ function createIconifyIcon(icon) {
|
|
|
47
44
|
// src/lucide.ts
|
|
48
45
|
var lucide_exports = {};
|
|
49
46
|
__export(lucide_exports, {
|
|
50
|
-
IconDefault: () =>
|
|
51
|
-
MdiMenuClose: () =>
|
|
52
|
-
MdiMenuOpen: () =>
|
|
47
|
+
IconDefault: () => Menu,
|
|
48
|
+
MdiMenuClose: () => ArrowRightFromLine,
|
|
49
|
+
MdiMenuOpen: () => ArrowLeftFromLine
|
|
53
50
|
});
|
|
54
|
-
__reExport(lucide_exports,
|
|
55
|
-
|
|
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";
|
|
56
58
|
|
|
57
59
|
// src/index.ts
|
|
58
|
-
__reExport(index_exports, lucide_exports
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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,
|
|
66
72
|
addCollection,
|
|
67
73
|
addIcon,
|
|
68
74
|
createIconifyIcon,
|
|
69
75
|
listIcons
|
|
70
|
-
}
|
|
76
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunny-base-web/icons",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": false,
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
7
8
|
"types": "./dist/index.d.ts",
|
|
8
9
|
"files": [
|
|
9
10
|
"dist"
|
|
@@ -11,8 +12,8 @@
|
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
14
|
-
"import": "./dist/index.
|
|
15
|
-
"require": "./dist/index.
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
19
|
"publishConfig": {
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"@sunny-base-web/tsconfig": "0.0.0"
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
33
|
-
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
34
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --clean --splitting false",
|
|
34
35
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
|
35
36
|
}
|
|
36
37
|
}
|
package/dist/index.mjs
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
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
|
-
};
|
|
File without changes
|