@ledgerhq/native-ui 0.14.0-next.0 → 0.14.0-protect.0

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.
@@ -40,6 +40,7 @@ const Container = styled(Flex) `
40
40
  padding: 20px 16px;
41
41
  `;
42
42
  export default function TimelineItem({ item, formatEstimatedTime, isFirstItem, isLastItem, setActiveIndex, index, }) {
43
+ var _a;
43
44
  /**
44
45
  * Having an initial value of null will prevent having "height: 0" before the
45
46
  * initial call of onLayout.
@@ -74,7 +75,7 @@ export default function TimelineItem({ item, formatEstimatedTime, isFirstItem, i
74
75
  ? "neutral.c80"
75
76
  : isLastItem
76
77
  ? "success.c100"
77
- : "primary.c90" }, item.title),
78
+ : "primary.c90" }, item.status === "completed" ? (_a = item.doneTitle) !== null && _a !== void 0 ? _a : item.title : item.title),
78
79
  (item === null || item === void 0 ? void 0 : item.estimatedTime) && item.status === "active" && (React.createElement(Tag, null, formatEstimatedTime
79
80
  ? formatEstimatedTime(item.estimatedTime)
80
81
  : `${item.estimatedTime / 60} min`))),
@@ -8,6 +8,7 @@ export declare enum ItemStatus {
8
8
  export type Item = {
9
9
  status: ItemStatus;
10
10
  title: string;
11
+ doneTitle?: string;
11
12
  estimatedTime?: number;
12
13
  renderBody?: (isDisplayed?: boolean) => ReactNode;
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.14.0-next.0",
3
+ "version": "0.14.0-protect.0",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "styled-system": "^5.1.5",
44
44
  "victory-native": "^35.5.5",
45
45
  "@ledgerhq/crypto-icons-ui": "^0.2.1",
46
- "@ledgerhq/icons-ui": "^0.3.3-next.0",
46
+ "@ledgerhq/icons-ui": "^0.3.3-protect.0",
47
47
  "@ledgerhq/ui-shared": "^0.1.10"
48
48
  },
49
49
  "peerDependencies": {