rn-vs-lb 1.0.34 → 1.0.37
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.
|
@@ -14,20 +14,19 @@ var IconTypes;
|
|
|
14
14
|
IconTypes["IONICONS"] = "Ionicons";
|
|
15
15
|
IconTypes["MATERIALICONS"] = "MaterialIcons";
|
|
16
16
|
})(IconTypes || (exports.IconTypes = IconTypes = {}));
|
|
17
|
-
var renderIcon = function (
|
|
18
|
-
switch (
|
|
17
|
+
var renderIcon = function (icon) {
|
|
18
|
+
switch (icon.lb) {
|
|
19
19
|
case IconTypes.OCTICONS:
|
|
20
|
-
return react_1.default.createElement(Octicons_1.default, { name:
|
|
20
|
+
return react_1.default.createElement(Octicons_1.default, { name: icon.iconName, size: icon.size, color: "#475A77" });
|
|
21
21
|
case IconTypes.IONICONS:
|
|
22
|
-
return react_1.default.createElement(Ionicons_1.default, { name:
|
|
22
|
+
return react_1.default.createElement(Ionicons_1.default, { name: icon.iconName, size: icon.size, color: "#475A77" });
|
|
23
23
|
case IconTypes.MATERIALICONS:
|
|
24
|
-
return react_1.default.createElement(MaterialIcons_1.default, { name:
|
|
24
|
+
return react_1.default.createElement(MaterialIcons_1.default, { name: icon.iconName, size: icon.size, color: "#475A77" });
|
|
25
25
|
default:
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
var IconConverter = function (
|
|
30
|
-
var icon = _a.icon;
|
|
29
|
+
var IconConverter = function (icon) {
|
|
31
30
|
return renderIcon(icon);
|
|
32
31
|
};
|
|
33
32
|
exports.IconConverter = IconConverter;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./styleSheet"), exports);
|
|
18
|
+
__exportStar(require("./theme"), exports);
|
|
19
|
+
__exportStar(require("./themeContext"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rn-vs-lb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"form": [
|
|
21
21
|
"dist/types/form/index.d.ts"
|
|
22
22
|
],
|
|
23
|
+
"constants": [
|
|
24
|
+
"dist/types/constants/index.d.ts"
|
|
25
|
+
],
|
|
23
26
|
"*": [
|
|
24
27
|
"dist/types/index.d.ts"
|
|
25
28
|
]
|
|
@@ -33,6 +36,10 @@
|
|
|
33
36
|
"./form": {
|
|
34
37
|
"import": "./dist/form/index.js",
|
|
35
38
|
"require": "./dist/form/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./constants": {
|
|
41
|
+
"import": "./dist/constants/index.js",
|
|
42
|
+
"require": "./dist/constants/index.js"
|
|
36
43
|
}
|
|
37
44
|
},
|
|
38
45
|
"files": [
|