@fangzhongya/icons 0.0.25 → 0.0.26
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/{chunk-TKPAHR5G.cjs → chunk-6CU3NPDG.cjs} +2 -2
- package/dist/{chunk-SDYAFYDS.js → chunk-7QX4NRMQ.js} +2 -2
- package/dist/{chunk-HQXDJKWB.js → chunk-FDMRAGOU.js} +1 -1
- package/dist/{chunk-5JGXNE36.js → chunk-FY4NYXM7.js} +1 -1
- package/dist/{chunk-IS73KLAO.cjs → chunk-RS35DSE3.cjs} +1 -1
- package/dist/{chunk-Q4QUAF3W.cjs → chunk-TEKHTJSD.cjs} +1 -1
- package/dist/icon/index.cjs +2 -2
- package/dist/icon/index.js +1 -1
- package/dist/iconify.cjs +2 -2
- package/dist/iconify.js +1 -1
- package/dist/index.json +1 -1
- package/dist/json.cjs +2 -2
- package/dist/json.d.cts +1 -1
- package/dist/json.d.ts +1 -1
- package/dist/json.js +1 -1
- package/dist/picker/index.cjs +4 -4
- package/dist/picker/index.js +1 -1
- package/dist/vite/index.cjs +11 -11
- package/dist/vite/index.js +8 -8
- package/package.json +3 -3
|
@@ -5,12 +5,12 @@ var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
|
|
|
5
5
|
// packages/iconify.ts
|
|
6
6
|
var _vue = require('vue');
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
8
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
9
9
|
function firstUpper(str) {
|
|
10
10
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
13
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
14
14
|
function lineToLargeHump(name) {
|
|
15
15
|
let arr = name.split("-");
|
|
16
16
|
arr = arr.map((vs) => {
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
// packages/iconify.ts
|
|
6
6
|
import { defineComponent, h } from "vue";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
8
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
9
9
|
function firstUpper(str) {
|
|
10
10
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
13
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
14
14
|
function lineToLargeHump(name) {
|
|
15
15
|
let arr = name.split("-");
|
|
16
16
|
arr = arr.map((vs) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// packages/icon/index.ts
|
|
6
6
|
import { h, defineComponent, resolveComponent, computed, Fragment } from "vue";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
8
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
9
9
|
function humpToLine(name) {
|
|
10
10
|
const reg3 = /(([A-Z])([^A-Z]*))/g;
|
|
11
11
|
let result;
|
|
@@ -5,7 +5,7 @@ var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
|
|
|
5
5
|
// packages/icon/index.ts
|
|
6
6
|
var _vue = require('vue');
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
8
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
9
9
|
function humpToLine(name) {
|
|
10
10
|
const reg3 = /(([A-Z])([^A-Z]*))/g;
|
|
11
11
|
let result;
|
package/dist/icon/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTEKHTJSDcjs = require('../chunk-TEKHTJSD.cjs');
|
|
4
4
|
require('../chunk-3376ZTRC.cjs');
|
|
5
5
|
require('../chunk-IIVF4KK5.cjs');
|
|
6
6
|
require('../chunk-75ZPJI57.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkTEKHTJSDcjs.icon_default;
|
package/dist/icon/index.js
CHANGED
package/dist/iconify.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6CU3NPDGcjs = require('./chunk-6CU3NPDG.cjs');
|
|
7
7
|
require('./chunk-3376ZTRC.cjs');
|
|
8
8
|
require('./chunk-IIVF4KK5.cjs');
|
|
9
9
|
require('./chunk-75ZPJI57.cjs');
|
|
@@ -12,4 +12,4 @@ require('./chunk-75ZPJI57.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.getIconifySVG =
|
|
15
|
+
exports.getIconifySVG = _chunk6CU3NPDGcjs.getIconifySVG; exports.getViewBox = _chunk6CU3NPDGcjs.getViewBox; exports.iconify = _chunk6CU3NPDGcjs.iconify; exports.iconifySVG = _chunk6CU3NPDGcjs.iconifySVG;
|
package/dist/iconify.js
CHANGED
package/dist/index.json
CHANGED
package/dist/json.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRS35DSE3cjs = require('./chunk-RS35DSE3.cjs');
|
|
4
4
|
require('./chunk-75ZPJI57.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = _chunkRS35DSE3cjs.json_default;
|
package/dist/json.d.cts
CHANGED
package/dist/json.d.ts
CHANGED
package/dist/json.js
CHANGED
package/dist/picker/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTEKHTJSDcjs = require('../chunk-TEKHTJSD.cjs');
|
|
4
4
|
require('../chunk-3376ZTRC.cjs');
|
|
5
5
|
require('../chunk-IIVF4KK5.cjs');
|
|
6
6
|
|
|
@@ -100,7 +100,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
[
|
|
103
|
-
_vue.h.call(void 0,
|
|
103
|
+
_vue.h.call(void 0, _chunkTEKHTJSDcjs.icon_default, {
|
|
104
104
|
type: props.type,
|
|
105
105
|
size: props.size,
|
|
106
106
|
name: props.modelValue
|
|
@@ -181,7 +181,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
181
181
|
},
|
|
182
182
|
name.value
|
|
183
183
|
),
|
|
184
|
-
_vue.h.call(void 0,
|
|
184
|
+
_vue.h.call(void 0, _chunkTEKHTJSDcjs.icon_default, {
|
|
185
185
|
type: props.type,
|
|
186
186
|
size: props.size,
|
|
187
187
|
name: name.value
|
|
@@ -232,7 +232,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
[
|
|
235
|
-
_vue.h.call(void 0,
|
|
235
|
+
_vue.h.call(void 0, _chunkTEKHTJSDcjs.icon_default, {
|
|
236
236
|
style: {
|
|
237
237
|
margin: "5px",
|
|
238
238
|
marginBottom: 0,
|
package/dist/picker/index.js
CHANGED
package/dist/vite/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6CU3NPDGcjs = require('../chunk-6CU3NPDG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRS35DSE3cjs = require('../chunk-RS35DSE3.cjs');
|
|
8
8
|
require('../chunk-3376ZTRC.cjs');
|
|
9
9
|
require('../chunk-IIVF4KK5.cjs');
|
|
10
10
|
require('../chunk-75ZPJI57.cjs');
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
12
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-ER44O4IJ.js
|
|
13
13
|
function getStartSames(str, val) {
|
|
14
14
|
let s = "";
|
|
15
15
|
const vs = [...val];
|
|
@@ -47,12 +47,12 @@ function getImportUrl(url, imp) {
|
|
|
47
47
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
50
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-A7RAGYE3.js
|
|
51
51
|
function getImportUrlSuffix(url, imp) {
|
|
52
52
|
return getImportUrl(url, imp).replace(/\.([a-z|A-Z][a-z|A-Z|0-9]*)$/, "");
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
55
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-36XULS54.js
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
@@ -352,7 +352,7 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
|
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
355
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-55GZI3ZZ.js
|
|
356
356
|
|
|
357
357
|
function styleLog(msg = "", obj) {
|
|
358
358
|
const arr = ["\x1B[0m"];
|
|
@@ -774,7 +774,7 @@ var FangCom = class {
|
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
776
|
|
|
777
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
777
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-VZKQWRZ3.js
|
|
778
778
|
|
|
779
779
|
var defaultConfig2 = Object.assign({}, defaultConfig, {
|
|
780
780
|
name: "file",
|
|
@@ -875,7 +875,7 @@ var FangFile = class extends FangCom {
|
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
877
|
|
|
878
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
878
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-WJXYWEHS.js
|
|
879
879
|
|
|
880
880
|
var defaultConfig22 = Object.assign({}, defaultConfig2, {
|
|
881
881
|
name: "out",
|
|
@@ -1222,13 +1222,13 @@ function findComponents(code, name) {
|
|
|
1222
1222
|
return components;
|
|
1223
1223
|
}
|
|
1224
1224
|
function getText(iconName, match) {
|
|
1225
|
-
const svg =
|
|
1225
|
+
const svg = _chunk6CU3NPDGcjs.getIconifySVG.call(void 0, _chunkRS35DSE3cjs.json_default, iconName, 'v-bind="scope"');
|
|
1226
1226
|
const s = match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "");
|
|
1227
1227
|
const text = `${s}<template #default="scope">${svg}</template></${match.componentName}>`;
|
|
1228
1228
|
return { text, imptext: "" };
|
|
1229
1229
|
}
|
|
1230
1230
|
function getImportName(iconName) {
|
|
1231
|
-
return
|
|
1231
|
+
return _chunk6CU3NPDGcjs.lineToLargeHump.call(void 0, "fang-icon-" + iconName);
|
|
1232
1232
|
}
|
|
1233
1233
|
function getVue(iconName, match) {
|
|
1234
1234
|
const text = match.fullMatch.replace(
|
|
@@ -1248,7 +1248,7 @@ function replaceComponent(match, type, dynamic, customReplacement) {
|
|
|
1248
1248
|
if (customReplacement) {
|
|
1249
1249
|
return customReplacement(iconName, attributes);
|
|
1250
1250
|
}
|
|
1251
|
-
let svgContent =
|
|
1251
|
+
let svgContent = _chunkRS35DSE3cjs.json_default.icons[iconName];
|
|
1252
1252
|
if (!svgContent) {
|
|
1253
1253
|
return { text: match.fullMatch, imptext: "" };
|
|
1254
1254
|
}
|
package/dist/vite/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getIconifySVG,
|
|
3
3
|
lineToLargeHump
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7QX4NRMQ.js";
|
|
5
5
|
import {
|
|
6
6
|
json_default
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-FDMRAGOU.js";
|
|
8
8
|
import "../chunk-BYXBJQAS.js";
|
|
9
9
|
import "../chunk-MOHILOKE.js";
|
|
10
10
|
import "../chunk-MLKGABMK.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
12
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-ER44O4IJ.js
|
|
13
13
|
function getStartSames(str, val) {
|
|
14
14
|
let s = "";
|
|
15
15
|
const vs = [...val];
|
|
@@ -47,12 +47,12 @@ function getImportUrl(url, imp) {
|
|
|
47
47
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
50
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-A7RAGYE3.js
|
|
51
51
|
function getImportUrlSuffix(url, imp) {
|
|
52
52
|
return getImportUrl(url, imp).replace(/\.([a-z|A-Z][a-z|A-Z|0-9]*)$/, "");
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
55
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-36XULS54.js
|
|
56
56
|
import {
|
|
57
57
|
open,
|
|
58
58
|
readdir,
|
|
@@ -352,7 +352,7 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
|
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
355
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-55GZI3ZZ.js
|
|
356
356
|
import { resolve, join as join2 } from "path";
|
|
357
357
|
function styleLog(msg = "", obj) {
|
|
358
358
|
const arr = ["\x1B[0m"];
|
|
@@ -774,7 +774,7 @@ var FangCom = class {
|
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
776
|
|
|
777
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
777
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-VZKQWRZ3.js
|
|
778
778
|
import { resolve as resolve2, join as join3 } from "path";
|
|
779
779
|
var defaultConfig2 = Object.assign({}, defaultConfig, {
|
|
780
780
|
name: "file",
|
|
@@ -875,7 +875,7 @@ var FangFile = class extends FangCom {
|
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
877
|
|
|
878
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
878
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.50/node_modules/@fangzhongya/create/dist/chunk-WJXYWEHS.js
|
|
879
879
|
import { join as join4 } from "path";
|
|
880
880
|
var defaultConfig22 = Object.assign({}, defaultConfig2, {
|
|
881
881
|
name: "out",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fangzhongya/icons",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.26",
|
|
6
6
|
"description ": "个人图标库",
|
|
7
7
|
"author": "fangzhongya ",
|
|
8
8
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@fangzhongya/create": "0.2.
|
|
22
|
-
"@fangzhongya/utils": "0.0.
|
|
21
|
+
"@fangzhongya/create": "0.2.50",
|
|
22
|
+
"@fangzhongya/utils": "0.0.73",
|
|
23
23
|
"@iconify/vue": "5.0.0",
|
|
24
24
|
"@types/node": "^25.0.3",
|
|
25
25
|
"@vitejs/plugin-vue": "^6.0.3",
|