@ovotech/element-native 4.1.5-canary-dca9e92-277 → 4.1.5
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.
|
@@ -20,10 +20,10 @@ exports.StyledToggleInputWrapper = styled_native_1.default.View(function (_a) {
|
|
|
20
20
|
: null, "\n ");
|
|
21
21
|
});
|
|
22
22
|
exports.StyledToggleInput = styled_native_1.default.View(function (_a) {
|
|
23
|
-
var
|
|
24
|
-
return "\n width: ".concat((0, element_core_1.numToPx)(core.space[11]), ";\n height: ").concat((0, element_core_1.numToPx)(core.space[6]), ";\n justify-content: center;\n border-radius: ").concat((0, element_core_1.numToPx)(core.radius.large), ";\n background: ").concat(checked ?
|
|
23
|
+
var core = _a.theme.core, checked = _a.checked;
|
|
24
|
+
return "\n width: ".concat((0, element_core_1.numToPx)(core.space[11]), ";\n height: ").concat((0, element_core_1.numToPx)(core.space[6]), ";\n justify-content: center;\n border-radius: ").concat((0, element_core_1.numToPx)(core.radius.large), ";\n background: ").concat(checked ? core.color.brand.ovo : core.color.neutral.lighter, ";\n ");
|
|
25
25
|
});
|
|
26
26
|
exports.StyledToggleDot = (0, styled_native_1.default)(react_native_1.Animated.View)(function (_a) {
|
|
27
27
|
var core = _a.theme.core, checked = _a.checked;
|
|
28
|
-
return "\n position: absolute;\n width: ".concat((0, element_core_1.numToPx)(core.space[4]), ";\n height: ").concat((0, element_core_1.numToPx)(core.space[4]), ";\n border-radius: ").concat((0, element_core_1.numToPx)(core.space[4]), ";\n background-color: ").concat(checked ? core.color.brand.white : core.color.neutral.
|
|
28
|
+
return "\n position: absolute;\n width: ".concat((0, element_core_1.numToPx)(core.space[4]), ";\n height: ").concat((0, element_core_1.numToPx)(core.space[4]), ";\n border-radius: ").concat((0, element_core_1.numToPx)(core.space[4]), ";\n background-color: ").concat(checked ? core.color.brand.white : core.color.neutral.dark, ";\n");
|
|
29
29
|
});
|
|
@@ -14,10 +14,10 @@ export var StyledToggleInputWrapper = styled.View(function (_a) {
|
|
|
14
14
|
: null, "\n ");
|
|
15
15
|
});
|
|
16
16
|
export var StyledToggleInput = styled.View(function (_a) {
|
|
17
|
-
var
|
|
18
|
-
return "\n width: ".concat(numToPx(core.space[11]), ";\n height: ").concat(numToPx(core.space[6]), ";\n justify-content: center;\n border-radius: ").concat(numToPx(core.radius.large), ";\n background: ").concat(checked ?
|
|
17
|
+
var core = _a.theme.core, checked = _a.checked;
|
|
18
|
+
return "\n width: ".concat(numToPx(core.space[11]), ";\n height: ").concat(numToPx(core.space[6]), ";\n justify-content: center;\n border-radius: ").concat(numToPx(core.radius.large), ";\n background: ").concat(checked ? core.color.brand.ovo : core.color.neutral.lighter, ";\n ");
|
|
19
19
|
});
|
|
20
20
|
export var StyledToggleDot = styled(Animated.View)(function (_a) {
|
|
21
21
|
var core = _a.theme.core, checked = _a.checked;
|
|
22
|
-
return "\n position: absolute;\n width: ".concat(numToPx(core.space[4]), ";\n height: ").concat(numToPx(core.space[4]), ";\n border-radius: ").concat(numToPx(core.space[4]), ";\n background-color: ").concat(checked ? core.color.brand.white : core.color.neutral.
|
|
22
|
+
return "\n position: absolute;\n width: ".concat(numToPx(core.space[4]), ";\n height: ").concat(numToPx(core.space[4]), ";\n border-radius: ").concat(numToPx(core.space[4]), ";\n background-color: ").concat(checked ? core.color.brand.white : core.color.neutral.dark, ";\n");
|
|
23
23
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "4.1.5
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@backpackapp-io/react-native-toast": "^0.10.0",
|
|
17
|
-
"@ovotech/element-core": "3.0.1-canary-dca9e92-277",
|
|
18
17
|
"deepmerge": "^4.2.2",
|
|
19
18
|
"lodash.groupby": "^4.6.0",
|
|
20
|
-
"react-native-reanimated-carousel": "^3.5.1"
|
|
19
|
+
"react-native-reanimated-carousel": "^3.5.1",
|
|
20
|
+
"@ovotech/element-core": "3.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/core": "^7.11.5",
|