@ledgerhq/native-ui 0.21.0-nightly.2 → 0.21.0-nightly.4
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.
|
@@ -46,8 +46,8 @@ export default function StepperItem({ item, progress, nested, isLastItem, onTapI
|
|
|
46
46
|
item.status === "completed" && React.createElement(CheckAloneMedium, { size: 20, color: "success.c50" }),
|
|
47
47
|
item.status === "active" && (React.createElement(ProgressLoader, { progress: progress, infinite: !progress, radius: 10, strokeWidth: 2 }))),
|
|
48
48
|
React.createElement(Flex, { flex: 1, ml: nested ? 0 : 4, mr: nested ? 0 : 2 },
|
|
49
|
-
React.createElement(Flex, { pb: item.status === "active" && item.renderBody ?
|
|
50
|
-
React.createElement(Text, { variant: "body", color: item.status === "active" || nested ? "neutral.c100" : "neutral.c80" }, item.status === "completed" ? (_a = item.doneTitle) !== null && _a !== void 0 ? _a : item.title : item.title)),
|
|
49
|
+
React.createElement(Flex, { pb: item.status === "active" && item.renderBody ? 3 : undefined },
|
|
50
|
+
React.createElement(Text, Object.assign({}, (nested ? { variant: "body" } : { variant: "large", fontWeight: "semiBold" }), { color: item.status === "active" || nested ? "neutral.c100" : "neutral.c80" }), item.status === "completed" ? (_a = item.doneTitle) !== null && _a !== void 0 ? _a : item.title : item.title)),
|
|
51
51
|
React.createElement(Animated.ScrollView, { style: animatedStyle, showsVerticalScrollIndicator: false },
|
|
52
52
|
React.createElement(Animated.View, { onLayout: handleLayout }, item.renderBody && item.status === "active" ? item.renderBody(true) : null))))))));
|
|
53
53
|
}
|
|
@@ -32,7 +32,7 @@ const TopSegmentSvg = ({ status, hidden, height }) => {
|
|
|
32
32
|
return (React.createElement(Flex, { height: height, width: "100%", overflow: "hidden" },
|
|
33
33
|
React.createElement(Flex, { style: StyleSheet.absoluteFillObject, alignItems: "center" },
|
|
34
34
|
React.createElement(Svg, { height: linesLength, width: linesWidth, viewBox: `0 0 ${linesWidth} ${linesLength}`, preserveAspectRatio: "xMinYMin slice" },
|
|
35
|
-
React.createElement(Line, { x1: "0", y1: "0", x2: "0", y2: "100", strokeWidth: hidden ? 0 : 2 * linesWidth, stroke: strokeColor, strokeDasharray: strokeDashArray })))));
|
|
35
|
+
React.createElement(Line, { key: status + " " + hidden, x1: "0", y1: "0", x2: "0", y2: "100", strokeWidth: hidden ? 0 : 2 * linesWidth, stroke: strokeColor, strokeDasharray: strokeDashArray })))));
|
|
36
36
|
};
|
|
37
37
|
const topSegmentDefaultHeight = Platform.OS === "android" ? 23 : 21; // difference due to how borders are drawn in android
|
|
38
38
|
const BottomSegmentSvg = ({ status, hidden }) => {
|
|
@@ -42,7 +42,7 @@ const BottomSegmentSvg = ({ status, hidden }) => {
|
|
|
42
42
|
return (React.createElement(Flex, { flex: 1, width: "100%", style: { transform: [{ scaleY: -1 }] }, overflow: "hidden" },
|
|
43
43
|
React.createElement(Flex, { style: StyleSheet.absoluteFillObject, alignItems: "center" },
|
|
44
44
|
React.createElement(Svg, { height: 2 * Dimensions.get("screen").height, width: linesWidth, viewBox: `0 0 ${linesWidth} ${linesLength}`, preserveAspectRatio: "xMinYMin slice" },
|
|
45
|
-
React.createElement(Line, { x1: "0", y1: "0", x2: "0", y2: "100%", strokeWidth: hidden ? 0 : 2 * linesWidth, stroke: strokeColor, strokeDasharray: strokeDashArray, strokeDashoffset: `${dashLength}` })))));
|
|
45
|
+
React.createElement(Line, { key: status + " " + hidden, x1: "0", y1: "0", x2: "0", y2: "100%", strokeWidth: hidden ? 0 : 2 * linesWidth, stroke: strokeColor, strokeDasharray: strokeDashArray, strokeDashoffset: `${dashLength}` })))));
|
|
46
46
|
};
|
|
47
47
|
const getIconBackground = (theme, status, isLastItem) => {
|
|
48
48
|
if (isLastItem) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.21.0-nightly.
|
|
3
|
+
"version": "0.21.0-nightly.4",
|
|
4
4
|
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"styled-system": "^5.1.5",
|
|
48
48
|
"victory-native": "^35.5.5",
|
|
49
49
|
"@ledgerhq/crypto-icons-ui": "^0.5.1",
|
|
50
|
-
"@ledgerhq/icons-ui": "^0.6.0-nightly.
|
|
50
|
+
"@ledgerhq/icons-ui": "^0.6.0-nightly.1",
|
|
51
51
|
"@ledgerhq/ui-shared": "^0.2.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@svgr/plugin-jsx": "^5.5.0",
|
|
99
99
|
"@svgr/plugin-svgo": "^5.5.0",
|
|
100
100
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
101
|
-
"@types/node": "^
|
|
101
|
+
"@types/node": "^18.0.0",
|
|
102
102
|
"@types/prop-types": "^15.7.5",
|
|
103
103
|
"@types/react": "^17.0.53",
|
|
104
104
|
"@types/react-native": "0.71.5",
|