@unocss/preset-icons 0.12.13 → 0.12.17
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.d.ts +1 -1
- package/dist/index.js +11 -9
- package/dist/index.mjs +11 -9
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import { IconsOptions } from './types';
|
|
|
3
3
|
export { IconsOptions } from './types';
|
|
4
4
|
import '@iconify/types';
|
|
5
5
|
|
|
6
|
-
declare const preset: (
|
|
6
|
+
declare const preset: (options?: IconsOptions) => Preset;
|
|
7
7
|
|
|
8
8
|
export { preset as default, preset };
|
package/dist/index.js
CHANGED
|
@@ -31,18 +31,20 @@ async function searchForIcon(collection, id, collections, scale) {
|
|
|
31
31
|
return `<svg ${Object.entries(attributes).map((i) => `${i[0]}="${i[1]}"`).join(" ")}>${body}</svg>`;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
var preset = ({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
var preset = (options = {}) => {
|
|
35
|
+
const {
|
|
36
|
+
scale = 1,
|
|
37
|
+
mode = "auto",
|
|
38
|
+
prefix = "i-",
|
|
39
|
+
warn = false,
|
|
40
|
+
collections = {},
|
|
41
|
+
extraProperties = {},
|
|
42
|
+
layer = "icons"
|
|
43
|
+
} = options;
|
|
43
44
|
return {
|
|
44
45
|
name: "@unocss/preset-icons",
|
|
45
46
|
enforce: "pre",
|
|
47
|
+
options,
|
|
46
48
|
layers: {
|
|
47
49
|
icons: -10
|
|
48
50
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -31,18 +31,20 @@ async function searchForIcon(collection, id, collections, scale) {
|
|
|
31
31
|
return `<svg ${Object.entries(attributes).map((i) => `${i[0]}="${i[1]}"`).join(" ")}>${body}</svg>`;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
var preset = ({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
var preset = (options = {}) => {
|
|
35
|
+
const {
|
|
36
|
+
scale = 1,
|
|
37
|
+
mode = "auto",
|
|
38
|
+
prefix = "i-",
|
|
39
|
+
warn = false,
|
|
40
|
+
collections = {},
|
|
41
|
+
extraProperties = {},
|
|
42
|
+
layer = "icons"
|
|
43
|
+
} = options;
|
|
43
44
|
return {
|
|
44
45
|
name: "@unocss/preset-icons",
|
|
45
46
|
enforce: "pre",
|
|
47
|
+
options,
|
|
46
48
|
layers: {
|
|
47
49
|
icons: -10
|
|
48
50
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-icons",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.17",
|
|
4
4
|
"description": "Pure CSS Icons for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@iconify/utils": "^1.0.19",
|
|
46
|
-
"@unocss/core": "0.12.
|
|
46
|
+
"@unocss/core": "0.12.17",
|
|
47
47
|
"local-pkg": "^0.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|