@evlop/commons 1.0.208 → 1.0.209
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,29 +8,29 @@ const lodash_1 = require("lodash");
|
|
8
8
|
const directed_icons_1 = __importDefault(require("./directed-icons"));
|
9
9
|
const reactNativeVectorIcons_lookup_min_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.min.json"));
|
10
10
|
function _getIconInfo(iconIdentifier) {
|
11
|
-
var _a, _b;
|
11
|
+
var _a, _b, _c, _d, _e;
|
12
12
|
const parts = iconIdentifier.split(':');
|
13
13
|
if (parts.length === 2) {
|
14
14
|
const [library, iconName] = parts;
|
15
|
-
const character = reactNativeVectorIcons_lookup_min_json_1.default[library][iconName];
|
15
|
+
const character = (_a = reactNativeVectorIcons_lookup_min_json_1.default[library]) === null || _a === void 0 ? void 0 : _a[iconName];
|
16
16
|
return {
|
17
17
|
id: iconIdentifier,
|
18
18
|
type: library,
|
19
19
|
name: iconName,
|
20
20
|
character,
|
21
|
-
isDirected: (
|
21
|
+
isDirected: (_b = directed_icons_1.default[library]) === null || _b === void 0 ? void 0 : _b[iconName],
|
22
22
|
};
|
23
23
|
}
|
24
24
|
else if (parts.length === 3) {
|
25
25
|
const [library, variant, iconName] = parts;
|
26
|
-
const character = reactNativeVectorIcons_lookup_min_json_1.default[library][variant][iconName];
|
26
|
+
const character = (_d = (_c = reactNativeVectorIcons_lookup_min_json_1.default[library]) === null || _c === void 0 ? void 0 : _c[variant]) === null || _d === void 0 ? void 0 : _d[iconName];
|
27
27
|
return {
|
28
28
|
id: iconIdentifier,
|
29
29
|
type: library,
|
30
30
|
variant,
|
31
31
|
name: iconName,
|
32
32
|
character,
|
33
|
-
isDirected: (
|
33
|
+
isDirected: (_e = directed_icons_1.default[library]) === null || _e === void 0 ? void 0 : _e[iconName],
|
34
34
|
};
|
35
35
|
}
|
36
36
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mapp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