@primeicons/vue 8.0.0 → 8.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/esm/core/index.mjs +12 -11
- package/package.json +9 -3
package/dist/esm/core/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { formatIconSize as a } from "@primeicons/core/utils";
|
|
1
2
|
import { toKebabCase as u } from "@primeuix/utils/object";
|
|
2
3
|
import { defineComponent as p, computed as c, h as l } from "vue";
|
|
3
4
|
const d = ([t, o]) => {
|
|
4
5
|
const { key: i, ...e } = o, n = {};
|
|
5
|
-
for (const [
|
|
6
|
-
n[u(
|
|
6
|
+
for (const [r, s] of Object.entries(e))
|
|
7
|
+
n[u(r)] = s;
|
|
7
8
|
return l(t, { key: i, ...n });
|
|
8
|
-
},
|
|
9
|
+
}, b = (t) => {
|
|
9
10
|
const o = {
|
|
10
11
|
size: {
|
|
11
12
|
type: [Number, String],
|
|
@@ -24,20 +25,20 @@ const d = ([t, o]) => {
|
|
|
24
25
|
name: t.name.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(""),
|
|
25
26
|
props: o,
|
|
26
27
|
setup(e, { attrs: n }) {
|
|
27
|
-
const
|
|
28
|
-
...e.size && { "--px-icon-size":
|
|
28
|
+
const r = c(() => e.size ?? 20), s = c(() => ({
|
|
29
|
+
...a(e.size) && { "--px-icon-size": a(e.size) },
|
|
29
30
|
...e.color && { color: e.color }
|
|
30
|
-
})),
|
|
31
|
+
})), m = c(() => ["p-icon", `p-icon-${t.name}`, e.spin && "p-icon-spin"].filter(Boolean));
|
|
31
32
|
return () => l(
|
|
32
33
|
"svg",
|
|
33
34
|
{
|
|
34
35
|
...t.svg,
|
|
35
|
-
width:
|
|
36
|
-
height:
|
|
36
|
+
width: r.value,
|
|
37
|
+
height: r.value,
|
|
37
38
|
"aria-hidden": "true",
|
|
38
39
|
...n,
|
|
39
|
-
style:
|
|
40
|
-
class:
|
|
40
|
+
style: s.value,
|
|
41
|
+
class: m.value
|
|
41
42
|
},
|
|
42
43
|
t.nodes.map(d)
|
|
43
44
|
);
|
|
@@ -45,5 +46,5 @@ const d = ([t, o]) => {
|
|
|
45
46
|
}), props: o };
|
|
46
47
|
};
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
b as createIcon
|
|
49
50
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primeicons/vue",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"author": "PrimeTek Informatics",
|
|
5
5
|
"homepage": "https://primeicons.dev/",
|
|
6
6
|
"description": "PrimeIcons for Vue 3 - 300+ customizable SVG icons as Vue components",
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"icon-components"
|
|
15
15
|
],
|
|
16
16
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/primefaces/primeicons-nextchapter.git",
|
|
20
|
+
"directory": "packages/@primeicons/vue"
|
|
21
|
+
},
|
|
17
22
|
"bugs": {
|
|
18
23
|
"url": "https://support.primeui.dev"
|
|
19
24
|
},
|
|
@@ -49,12 +54,13 @@
|
|
|
49
54
|
],
|
|
50
55
|
"dependencies": {
|
|
51
56
|
"@primeuix/utils": "^0.8.0",
|
|
52
|
-
"@primeicons/core": "8.0.
|
|
57
|
+
"@primeicons/core": "8.0.2"
|
|
53
58
|
},
|
|
54
59
|
"peerDependencies": {
|
|
55
60
|
"vue": "^3"
|
|
56
61
|
},
|
|
57
62
|
"devDependencies": {
|
|
63
|
+
"vue-tsc": "^3",
|
|
58
64
|
"vite-plugin-dts": "^4"
|
|
59
65
|
},
|
|
60
66
|
"scripts": {
|
|
@@ -64,7 +70,7 @@
|
|
|
64
70
|
"build:dev:package": "pnpm run build:prebuild && vite build --watch",
|
|
65
71
|
"build:prebuild": "node ./scripts/prebuild.mjs",
|
|
66
72
|
"build:postbuild": "node ./scripts/postbuild.mjs",
|
|
67
|
-
"type:check": "tsc --noEmit",
|
|
73
|
+
"type:check": "vue-tsc --noEmit -p ./tsconfig.json",
|
|
68
74
|
"dev:link": "pnpm link --global && npm link"
|
|
69
75
|
}
|
|
70
76
|
}
|