@evlop/commons 1.0.356 → 1.0.357
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/cjs/src/constants/iconInfo/index.d.ts +10 -0
- package/dist/cjs/src/constants/iconInfo/index.d.ts.map +1 -1
- package/dist/cjs/src/constants/iconInfo/index.js +12 -3
- package/dist/cjs/src/constants/iconInfo/index.js.map +1 -1
- package/dist/esm/src/constants/iconInfo/index.d.ts +10 -0
- package/dist/esm/src/constants/iconInfo/index.d.ts.map +1 -1
- package/dist/esm/src/constants/iconInfo/index.js +12 -3
- package/dist/esm/src/constants/iconInfo/index.js.map +1 -1
- package/dist/types/src/constants/iconInfo/index.d.ts +10 -0
- package/dist/types/src/constants/iconInfo/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import IconIdentifier from "./types";
|
|
2
2
|
declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
|
|
3
|
+
id: any;
|
|
4
|
+
type: string;
|
|
5
|
+
url: any;
|
|
6
|
+
name?: undefined;
|
|
7
|
+
character?: undefined;
|
|
8
|
+
isDirected?: undefined;
|
|
9
|
+
variant?: undefined;
|
|
10
|
+
} | {
|
|
3
11
|
id: any;
|
|
4
12
|
type: any;
|
|
5
13
|
name: any;
|
|
6
14
|
character: any;
|
|
7
15
|
isDirected: any;
|
|
16
|
+
url?: undefined;
|
|
8
17
|
variant?: undefined;
|
|
9
18
|
} | {
|
|
10
19
|
id: any;
|
|
@@ -13,6 +22,7 @@ declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
|
|
|
13
22
|
name: any;
|
|
14
23
|
character: any;
|
|
15
24
|
isDirected: any;
|
|
25
|
+
url?: undefined;
|
|
16
26
|
};
|
|
17
27
|
export declare const getIconInfo: typeof _getIconInfo & import("lodash").MemoizedFunction;
|
|
18
28
|
declare const reactNativeVectorIcons: {};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;EAoCzD;AAED,eAAO,MAAM,WAAW,yDAAwB,CAAC;AAEjD,QAAA,MAAM,sBAAsB,IAAK,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,eAAe,sBAAsB,CAAC"}
|
|
@@ -9,8 +9,17 @@ 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
11
|
const parts = iconIdentifier.split(':');
|
|
12
|
+
const [library] = parts;
|
|
13
|
+
if (library === 'svg') {
|
|
14
|
+
const [, url] = parts;
|
|
15
|
+
return {
|
|
16
|
+
id: iconIdentifier,
|
|
17
|
+
type: 'svg',
|
|
18
|
+
url,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
12
21
|
if (parts.length === 2) {
|
|
13
|
-
const [
|
|
22
|
+
const [, iconName] = parts;
|
|
14
23
|
const character = reactNativeVectorIcons_lookup_min_json_1.default[library]?.[iconName];
|
|
15
24
|
return {
|
|
16
25
|
id: iconIdentifier,
|
|
@@ -20,8 +29,8 @@ function _getIconInfo(iconIdentifier) {
|
|
|
20
29
|
isDirected: directed_icons_1.default[library]?.[iconName],
|
|
21
30
|
};
|
|
22
31
|
}
|
|
23
|
-
|
|
24
|
-
const [
|
|
32
|
+
if (parts.length === 3) {
|
|
33
|
+
const [, variant, iconName] = parts;
|
|
25
34
|
const character = reactNativeVectorIcons_lookup_min_json_1.default[library]?.[variant]?.[iconName];
|
|
26
35
|
return {
|
|
27
36
|
id: iconIdentifier,
|
|
@@ -1 +1 @@
|
|
|
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,CAAC;QACrB,MAAM,CAAC,
|
|
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,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;IACxB,IAAG,OAAO,KAAK,KAAK,EAAC,CAAC;QACpB,MAAM,CAAC,EAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACrB,OAAO;YACL,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,KAAK;YACX,GAAG;SACJ,CAAA;IACH,CAAC;IAED,IAAG,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC,CAAC;QACrB,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAC3B,MAAM,SAAS,GAAG,gDAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QACpE,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,EAAE,wBAAa,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;SACjD,CAAA;IACH,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC,CAAC;QACtB,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QACpC,MAAM,SAAS,GAAG,gDAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC/E,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,OAAO;YACP,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,EAAE,wBAAa,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;SACjD,CAAA;IACH,CAAC;AACH,CAAC;AAEY,QAAA,WAAW,GAAG,IAAA,gBAAO,EAAC,YAAY,CAAC,CAAC;AAEjD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAIlC,kBAAe,sBAAsB,CAAC"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import IconIdentifier from "./types";
|
|
2
2
|
declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
|
|
3
|
+
id: any;
|
|
4
|
+
type: string;
|
|
5
|
+
url: any;
|
|
6
|
+
name?: undefined;
|
|
7
|
+
character?: undefined;
|
|
8
|
+
isDirected?: undefined;
|
|
9
|
+
variant?: undefined;
|
|
10
|
+
} | {
|
|
3
11
|
id: any;
|
|
4
12
|
type: any;
|
|
5
13
|
name: any;
|
|
6
14
|
character: any;
|
|
7
15
|
isDirected: any;
|
|
16
|
+
url?: undefined;
|
|
8
17
|
variant?: undefined;
|
|
9
18
|
} | {
|
|
10
19
|
id: any;
|
|
@@ -13,6 +22,7 @@ declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
|
|
|
13
22
|
name: any;
|
|
14
23
|
character: any;
|
|
15
24
|
isDirected: any;
|
|
25
|
+
url?: undefined;
|
|
16
26
|
};
|
|
17
27
|
export declare const getIconInfo: typeof _getIconInfo & import("lodash").MemoizedFunction;
|
|
18
28
|
declare const reactNativeVectorIcons: {};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;EAoCzD;AAED,eAAO,MAAM,WAAW,yDAAwB,CAAC;AAEjD,QAAA,MAAM,sBAAsB,IAAK,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,eAAe,sBAAsB,CAAC"}
|
|
@@ -3,8 +3,17 @@ import directedIcons from "./directed-icons";
|
|
|
3
3
|
import reactNativeVectorIconsLookup from "./reactNativeVectorIcons.lookup.min.json";
|
|
4
4
|
function _getIconInfo(iconIdentifier) {
|
|
5
5
|
const parts = iconIdentifier.split(':');
|
|
6
|
+
const [library] = parts;
|
|
7
|
+
if (library === 'svg') {
|
|
8
|
+
const [, url] = parts;
|
|
9
|
+
return {
|
|
10
|
+
id: iconIdentifier,
|
|
11
|
+
type: 'svg',
|
|
12
|
+
url,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
6
15
|
if (parts.length === 2) {
|
|
7
|
-
const [
|
|
16
|
+
const [, iconName] = parts;
|
|
8
17
|
const character = reactNativeVectorIconsLookup[library]?.[iconName];
|
|
9
18
|
return {
|
|
10
19
|
id: iconIdentifier,
|
|
@@ -14,8 +23,8 @@ function _getIconInfo(iconIdentifier) {
|
|
|
14
23
|
isDirected: directedIcons[library]?.[iconName],
|
|
15
24
|
};
|
|
16
25
|
}
|
|
17
|
-
|
|
18
|
-
const [
|
|
26
|
+
if (parts.length === 3) {
|
|
27
|
+
const [, variant, iconName] = parts;
|
|
19
28
|
const character = reactNativeVectorIconsLookup[library]?.[variant]?.[iconName];
|
|
20
29
|
return {
|
|
21
30
|
id: iconIdentifier,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,4BAA4B,MAAM,0CAA0C,CAAC;AAGpF,SAAS,YAAY,CAAC,cAAoC;IACxD,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,IAAG,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC,CAAC;QACrB,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,4BAA4B,MAAM,0CAA0C,CAAC;AAGpF,SAAS,YAAY,CAAC,cAAoC;IACxD,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;IACxB,IAAG,OAAO,KAAK,KAAK,EAAC,CAAC;QACpB,MAAM,CAAC,EAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACrB,OAAO;YACL,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,KAAK;YACX,GAAG;SACJ,CAAA;IACH,CAAC;IAED,IAAG,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC,CAAC;QACrB,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAC3B,MAAM,SAAS,GAAG,4BAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QACpE,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;SACjD,CAAA;IACH,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC,CAAC;QACtB,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QACpC,MAAM,SAAS,GAAG,4BAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC/E,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,OAAO;YACP,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;SACjD,CAAA;IACH,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAEjD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAIlC,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import IconIdentifier from "./types";
|
|
2
2
|
declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
|
|
3
|
+
id: any;
|
|
4
|
+
type: string;
|
|
5
|
+
url: any;
|
|
6
|
+
name?: undefined;
|
|
7
|
+
character?: undefined;
|
|
8
|
+
isDirected?: undefined;
|
|
9
|
+
variant?: undefined;
|
|
10
|
+
} | {
|
|
3
11
|
id: any;
|
|
4
12
|
type: any;
|
|
5
13
|
name: any;
|
|
6
14
|
character: any;
|
|
7
15
|
isDirected: any;
|
|
16
|
+
url?: undefined;
|
|
8
17
|
variant?: undefined;
|
|
9
18
|
} | {
|
|
10
19
|
id: any;
|
|
@@ -13,6 +22,7 @@ declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
|
|
|
13
22
|
name: any;
|
|
14
23
|
character: any;
|
|
15
24
|
isDirected: any;
|
|
25
|
+
url?: undefined;
|
|
16
26
|
};
|
|
17
27
|
export declare const getIconInfo: typeof _getIconInfo & import("lodash").MemoizedFunction;
|
|
18
28
|
declare const reactNativeVectorIcons: {};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;EAoCzD;AAED,eAAO,MAAM,WAAW,yDAAwB,CAAC;AAEjD,QAAA,MAAM,sBAAsB,IAAK,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,eAAe,sBAAsB,CAAC"}
|