@unocss/preset-icons 0.58.0 → 0.58.1
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/browser.cjs +2 -2
- package/dist/browser.mjs +3 -3
- package/dist/core.cjs +1 -1
- package/dist/core.d.cts +1 -0
- package/dist/core.d.mts +1 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/shared/{preset-icons.h-fIJ5Ug.cjs → preset-icons.8uUnb8xG.cjs} +1 -1
- package/dist/shared/{preset-icons.LQSGTH8B.cjs → preset-icons.fkN98jAD.cjs} +4 -3
- package/dist/shared/{preset-icons.QPsUVTPe.mjs → preset-icons.igOgGurv.mjs} +1 -1
- package/dist/shared/{preset-icons.Qrc-gCsq.mjs → preset-icons.vWrvtSML.mjs} +4 -3
- package/package.json +3 -3
package/dist/browser.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const cdn = require('./shared/preset-icons.
|
|
6
|
-
const core = require('./shared/preset-icons.
|
|
5
|
+
const cdn = require('./shared/preset-icons.8uUnb8xG.cjs');
|
|
6
|
+
const core = require('./shared/preset-icons.fkN98jAD.cjs');
|
|
7
7
|
require('ofetch');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
package/dist/browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createCDNLoader } from './shared/preset-icons.
|
|
2
|
-
import { c as createPresetIcons, b as createCDNFetchLoader, l as loadIcon } from './shared/preset-icons.
|
|
3
|
-
export { a as combineLoaders, i as icons } from './shared/preset-icons.
|
|
1
|
+
import { c as createCDNLoader } from './shared/preset-icons.igOgGurv.mjs';
|
|
2
|
+
import { c as createPresetIcons, b as createCDNFetchLoader, l as loadIcon } from './shared/preset-icons.vWrvtSML.mjs';
|
|
3
|
+
export { a as combineLoaders, i as icons } from './shared/preset-icons.vWrvtSML.mjs';
|
|
4
4
|
import 'ofetch';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
package/dist/core.cjs
CHANGED
package/dist/core.d.cts
CHANGED
package/dist/core.d.mts
CHANGED
package/dist/core.d.ts
CHANGED
package/dist/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@unocss/core';
|
|
2
|
-
export { a as combineLoaders, b as createCDNFetchLoader, c as createPresetIcons, i as icons } from './shared/preset-icons.
|
|
2
|
+
export { a as combineLoaders, b as createCDNFetchLoader, c as createPresetIcons, i as icons } from './shared/preset-icons.vWrvtSML.mjs';
|
package/dist/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const cdn = require('./shared/preset-icons.
|
|
6
|
-
const core = require('./shared/preset-icons.
|
|
5
|
+
const cdn = require('./shared/preset-icons.8uUnb8xG.cjs');
|
|
6
|
+
const core = require('./shared/preset-icons.fkN98jAD.cjs');
|
|
7
7
|
require('ofetch');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createCDNLoader } from './shared/preset-icons.
|
|
2
|
-
import { c as createPresetIcons, a as combineLoaders, l as loadIcon } from './shared/preset-icons.
|
|
3
|
-
export { b as createCDNFetchLoader, i as icons } from './shared/preset-icons.
|
|
1
|
+
import { c as createCDNLoader } from './shared/preset-icons.igOgGurv.mjs';
|
|
2
|
+
import { c as createPresetIcons, a as combineLoaders, l as loadIcon } from './shared/preset-icons.vWrvtSML.mjs';
|
|
3
|
+
export { b as createCDNFetchLoader, i as icons } from './shared/preset-icons.vWrvtSML.mjs';
|
|
4
4
|
import 'ofetch';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
@@ -150,12 +150,12 @@ function calculateSize(size, ratio, precision) {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
function splitSVGDefs(content) {
|
|
153
|
+
function splitSVGDefs(content, tag = "defs") {
|
|
154
154
|
let defs = "";
|
|
155
|
-
const index = content.indexOf("<
|
|
155
|
+
const index = content.indexOf("<" + tag);
|
|
156
156
|
while (index >= 0) {
|
|
157
157
|
const start = content.indexOf(">", index);
|
|
158
|
-
const end = content.indexOf("</
|
|
158
|
+
const end = content.indexOf("</" + tag);
|
|
159
159
|
if (start === -1 || end === -1) {
|
|
160
160
|
break;
|
|
161
161
|
}
|
|
@@ -602,6 +602,7 @@ var collections = [
|
|
|
602
602
|
"geo",
|
|
603
603
|
"gg",
|
|
604
604
|
"gis",
|
|
605
|
+
"gravity-ui",
|
|
605
606
|
"gridicons",
|
|
606
607
|
"grommet-icons",
|
|
607
608
|
"guidance",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $fetch } from 'ofetch';
|
|
2
|
-
import { b as createCDNFetchLoader } from './preset-icons.
|
|
2
|
+
import { b as createCDNFetchLoader } from './preset-icons.vWrvtSML.mjs';
|
|
3
3
|
|
|
4
4
|
function createCDNLoader(cdnBase) {
|
|
5
5
|
return createCDNFetchLoader($fetch, cdnBase);
|
|
@@ -148,12 +148,12 @@ function calculateSize(size, ratio, precision) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
function splitSVGDefs(content) {
|
|
151
|
+
function splitSVGDefs(content, tag = "defs") {
|
|
152
152
|
let defs = "";
|
|
153
|
-
const index = content.indexOf("<
|
|
153
|
+
const index = content.indexOf("<" + tag);
|
|
154
154
|
while (index >= 0) {
|
|
155
155
|
const start = content.indexOf(">", index);
|
|
156
|
-
const end = content.indexOf("</
|
|
156
|
+
const end = content.indexOf("</" + tag);
|
|
157
157
|
if (start === -1 || end === -1) {
|
|
158
158
|
break;
|
|
159
159
|
}
|
|
@@ -600,6 +600,7 @@ var collections = [
|
|
|
600
600
|
"geo",
|
|
601
601
|
"gg",
|
|
602
602
|
"gis",
|
|
603
|
+
"gravity-ui",
|
|
603
604
|
"gridicons",
|
|
604
605
|
"grommet-icons",
|
|
605
606
|
"guidance",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-icons",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.1",
|
|
4
4
|
"description": "Pure CSS Icons for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"dist"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@iconify/utils": "^2.1.
|
|
50
|
+
"@iconify/utils": "^2.1.13",
|
|
51
51
|
"ofetch": "^1.3.3",
|
|
52
|
-
"@unocss/core": "0.58.
|
|
52
|
+
"@unocss/core": "0.58.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@iconify/types": "^2.0.0"
|