@evlop/commons 1.0.204 → 1.0.206
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants/iconInfo/index.d.ts +20 -5
- package/dist/src/constants/iconInfo/index.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/index.js +35 -5
- package/dist/src/constants/iconInfo/index.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts +7 -0
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js +14 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.lookup.min.json +1 -1
- package/dist/src/constants/iconInfo/types.d.ts +9 -3
- package/dist/src/constants/iconInfo/types.d.ts.map +1 -1
- package/package.json +5 -6
- package/dist/src/constants/iconInfo/index.native.d.ts +0 -25
- package/dist/src/constants/iconInfo/index.native.d.ts.map +0 -1
- package/dist/src/constants/iconInfo/index.native.js +0 -41
- package/dist/src/constants/iconInfo/index.native.js.map +0 -1
- package/dist/src/constants/iconInfo/index.web.d.ts +0 -4
- package/dist/src/constants/iconInfo/index.web.d.ts.map +0 -1
- package/dist/src/constants/iconInfo/index.web.js +0 -13
- package/dist/src/constants/iconInfo/index.web.js.map +0 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.lookup.json +0 -102286
@@ -1,6 +1,21 @@
|
|
1
|
-
import
|
2
|
-
declare
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import IconIdentifier from "./types";
|
2
|
+
declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
|
3
|
+
id: any;
|
4
|
+
type: any;
|
5
|
+
name: any;
|
6
|
+
character: any;
|
7
|
+
isDirected: any;
|
8
|
+
variant?: undefined;
|
9
|
+
} | {
|
10
|
+
id: any;
|
11
|
+
type: any;
|
12
|
+
variant: any;
|
13
|
+
name: any;
|
14
|
+
character: any;
|
15
|
+
isDirected: any;
|
16
|
+
};
|
17
|
+
export declare const getIconInfo: typeof _getIconInfo & import("lodash").MemoizedFunction;
|
18
|
+
declare const reactNativeVectorIcons: {};
|
19
|
+
export { IconIdentifier };
|
20
|
+
export default reactNativeVectorIcons;
|
6
21
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,SAAS,CAAC;AAErC,iBAAS,YAAY,CAAC,cAAc,EAAE,cAAc,GAAG,GAAG;;;;;;;;;;;;;;EAwBzD;AAED,eAAO,MAAM,WAAW,yDAAwB,CAAC;AAEjD,QAAA,MAAM,sBAAsB,IAAK,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,eAAe,sBAAsB,CAAC"}
|
@@ -1,10 +1,40 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
6
|
exports.getIconInfo = void 0;
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
+
const lodash_1 = require("lodash");
|
8
|
+
const directed_icons_1 = __importDefault(require("./directed-icons"));
|
9
|
+
const reactNativeVectorIcons_lookup_min_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.min.json"));
|
10
|
+
function _getIconInfo(iconIdentifier) {
|
11
|
+
var _a, _b;
|
12
|
+
const parts = iconIdentifier.split(':');
|
13
|
+
if (parts.length === 2) {
|
14
|
+
const [library, iconName] = parts;
|
15
|
+
const character = reactNativeVectorIcons_lookup_min_json_1.default[library][iconName];
|
16
|
+
return {
|
17
|
+
id: iconIdentifier,
|
18
|
+
type: library,
|
19
|
+
name: iconName,
|
20
|
+
character,
|
21
|
+
isDirected: (_a = directed_icons_1.default[library]) === null || _a === void 0 ? void 0 : _a[iconName],
|
22
|
+
};
|
23
|
+
}
|
24
|
+
else if (parts.length === 3) {
|
25
|
+
const [library, variant, iconName] = parts;
|
26
|
+
const character = reactNativeVectorIcons_lookup_min_json_1.default[library][variant][iconName];
|
27
|
+
return {
|
28
|
+
id: iconIdentifier,
|
29
|
+
type: library,
|
30
|
+
variant,
|
31
|
+
name: iconName,
|
32
|
+
character,
|
33
|
+
isDirected: (_b = directed_icons_1.default[library]) === null || _b === void 0 ? void 0 : _b[iconName],
|
34
|
+
};
|
35
|
+
}
|
7
36
|
}
|
8
|
-
exports.getIconInfo =
|
9
|
-
|
37
|
+
exports.getIconInfo = lodash_1.memoize(_getIconInfo);
|
38
|
+
const reactNativeVectorIcons = {};
|
39
|
+
exports.default = reactNativeVectorIcons;
|
10
40
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAiC;AACjC,sEAA6C;AAC7C,sHAAoF;AAGpF,SAAS,YAAY,CAAC,cAAoC;;IACxD,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,IAAG,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QACpB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAClC,MAAM,SAAS,GAAG,gDAA4B,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QAClE,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,QAAE,wBAAa,CAAC,OAAO,CAAC,0CAAG,QAAQ,CAAC;SACjD,CAAA;KACF;SAAM,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAC3C,MAAM,SAAS,GAAG,gDAA4B,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC3E,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,OAAO;YACP,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,QAAE,wBAAa,CAAC,OAAO,CAAC,0CAAG,QAAQ,CAAC;SACjD,CAAA;KACF;AACH,CAAC;AAEY,QAAA,WAAW,GAAG,gBAAO,CAAC,YAAY,CAAC,CAAC;AAEjD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAIlC,kBAAe,sBAAsB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"AAyEA,QAAA,MAAO,sBAAsB;;;;;;;;;;;;;;;;;;;;;;CAA6C,CAAC;AAE3E,eAAe,sBAAsB,CAAA"}
|
@@ -10,6 +10,8 @@ const Feather_json_1 = __importDefault(require("react-native-vector-icons/glyphm
|
|
10
10
|
const FontAwesome_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome.json"));
|
11
11
|
const FontAwesome5Free_meta_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome5Free_meta.json"));
|
12
12
|
const FontAwesome5Free_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome5Free.json"));
|
13
|
+
const FontAwesome6Free_meta_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome6Free_meta.json"));
|
14
|
+
const FontAwesome6Free_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome6Free.json"));
|
13
15
|
const Fontisto_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Fontisto.json"));
|
14
16
|
const Foundation_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Foundation.json"));
|
15
17
|
const Ionicons_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Ionicons.json"));
|
@@ -33,6 +35,17 @@ const fa5Icons = lodash_1.chain(FontAwesome5Free_meta_json_1.default)
|
|
33
35
|
})))
|
34
36
|
.keyBy('id')
|
35
37
|
.value();
|
38
|
+
const fa6Icons = lodash_1.chain(FontAwesome6Free_meta_json_1.default)
|
39
|
+
.flatMap((iconNames, variant) => lodash_1.map(iconNames, iconName => ({
|
40
|
+
id: `font-awesome-6:${variant}:${iconName}`,
|
41
|
+
type: 'font-awesome-6',
|
42
|
+
isDirected: lodash_1.get(directed_icons_1.default, ['font-awesome-6', iconName]),
|
43
|
+
name: iconName,
|
44
|
+
variant,
|
45
|
+
character: FontAwesome6Free_json_1.default[iconName],
|
46
|
+
})))
|
47
|
+
.keyBy('id')
|
48
|
+
.value();
|
36
49
|
const vectorIcons = lodash_1.chain(iconLibraries)
|
37
50
|
.mapValues((libraryIcons) => lodash_1.map(libraryIcons, (character, name) => ({ character, name })))
|
38
51
|
.flatMap((iconsOfCurrentType, iconLibrary) => lodash_1.map(iconsOfCurrentType, ({ name: iconName, character }) => ({
|
@@ -44,6 +57,6 @@ const vectorIcons = lodash_1.chain(iconLibraries)
|
|
44
57
|
})))
|
45
58
|
.keyBy('id')
|
46
59
|
.value();
|
47
|
-
const reactNativeVectorIcons = Object.assign(Object.assign({}, fa5Icons), vectorIcons);
|
60
|
+
const reactNativeVectorIcons = Object.assign(Object.assign(Object.assign({}, fa5Icons), fa6Icons), vectorIcons);
|
48
61
|
exports.default = reactNativeVectorIcons;
|
49
62
|
//# sourceMappingURL=reactNativeVectorIcons.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reactNativeVectorIcons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA2E;AAC3E,oGAAuE;AACvE,4GAA+E;AAC/E,gIAA+F;AAC/F,sHAAqF;AACrF,sGAAyE;AACzE,0GAA6E;AAC7E,sGAAyE;AACzE,kIAAqG;AACrG,gHAAmF;AACnF,sGAAwE;AACxE,oHAAuF;AACvF,kGAAqE;AACrE,6CAAwC;AACxC,mCAAyC;AACzC,sEAA6C;AAE7C,MAAM,aAAa,GAAG,EAAC,SAAS,EAAT,wBAAS,EAAE,MAAM,EAAN,qBAAM,EAAE,SAAS,EAAT,wBAAS,EAAE,OAAO,EAAP,sBAAO,EAAE,WAAW,EAAX,0BAAW,EAAC,QAAQ,EAAR,uBAAQ,EAAE,UAAU,EAAV,yBAAU,EAAE,QAAQ,EAAR,uBAAQ,EAAE,sBAAsB,EAAtB,qCAAsB,EAAE,aAAa,EAAb,4BAAa,EAAE,OAAO,EAAP,uBAAO,EAAE,eAAe,EAAf,8BAAe,EAAE,MAAM,EAAN,qBAAM,EAAC,CAAC;AAEnL,MAAM,QAAQ,GAAG,cAAK,CAAC,oCAAiB,CAAC;KACpB,OAAO,CACJ,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,YAAG,CACvB,SAAS,EACT,QAAQ,CAAC,EAAE,CAAC,CAAC;IACT,EAAE,EAAE,kBAAkB,OAAO,IAAI,QAAQ,EAAE;IAC3C,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,YAAG,CAAC,wBAAa,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;IAC5D,IAAI,EAAE,QAAQ;IACd,OAAO;IACP,SAAS,EAAE,+BAAY,CAAC,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