@ledgerhq/native-ui 0.18.0 → 0.18.1-nightly.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.
- package/lib/components/Cards/FullBackgroundCard/index.js +3 -3
- package/lib/components/Cards/NotificationCard/index.js +2 -2
- package/lib/components/Form/Input/BaseInput/index.js +2 -2
- package/lib/components/Layout/List/TipList/index.js +1 -1
- package/lib/components/Layout/List/VerticalStepper/StepperItem.js +1 -1
- package/lib/components/Layout/List/VerticalTimeline/TimelineIndicator.js +2 -2
- package/lib/components/Layout/List/VerticalTimeline/TimelineItem.js +2 -2
- package/lib/components/Loader/InfiniteLoader/index.d.ts +2 -1
- package/lib/components/Navigation/Stepper/index.js +2 -2
- package/lib/components/Text/getTextStyle.js +4 -0
- package/lib/components/cta/Button/getButtonStyle.js +7 -7
- package/lib/components/message/Alert/index.js +4 -4
- package/lib/components/message/Notification/index.js +3 -3
- package/lib/components/tags/Tag/index.js +1 -1
- package/lib/styles/theme.d.ts +2 -2
- package/lib/styles/theme.js +2 -0
- package/package.json +66 -58
|
@@ -12,8 +12,8 @@ const FullBackgroundCard = ({ variant, backgroundImage, tag, description, onPres
|
|
|
12
12
|
const { colors } = useTheme();
|
|
13
13
|
const backgroundVariants = useMemo(() => ({
|
|
14
14
|
purple: colors.primary.c80,
|
|
15
|
-
red: colors.error.
|
|
16
|
-
}), [colors.primary.c80, colors.error.
|
|
15
|
+
red: colors.error.c30,
|
|
16
|
+
}), [colors.primary.c80, colors.error.c30]);
|
|
17
17
|
const backgroundVariantColor = variant && backgroundVariants[variant]
|
|
18
18
|
? backgroundVariants[variant]
|
|
19
19
|
: backgroundVariants.purple;
|
|
@@ -26,7 +26,7 @@ const FullBackgroundCard = ({ variant, backgroundImage, tag, description, onPres
|
|
|
26
26
|
React.createElement(ShadowGradient, { color: colors.neutral.c00 }))) : (React.createElement(ColoredGradient, { color: backgroundVariantColor, opacityColor: colors.neutral.c20 })),
|
|
27
27
|
React.createElement(Flex, { p: 6 },
|
|
28
28
|
React.createElement(Flex, { flexDirection: "row", justifyContent: "space-between", mb: 3 },
|
|
29
|
-
React.createElement(Flex, { bg: "
|
|
29
|
+
React.createElement(Flex, { bg: "opacityDefault.c10", borderRadius: 6, px: 3, py: "6px", maxWidth: "80%" },
|
|
30
30
|
React.createElement(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1 }, tag)),
|
|
31
31
|
React.createElement(TouchableOpacity, { onPress: onDismiss, style: { top: -8, right: -8 } },
|
|
32
32
|
React.createElement(Flex, { bg: "neutral.c30", p: "6px", borderRadius: 24 },
|
|
@@ -6,11 +6,11 @@ import Box from "../../Layout/Box";
|
|
|
6
6
|
import Link from "../../cta/Link";
|
|
7
7
|
import styled from "styled-components/native";
|
|
8
8
|
import { TouchableOpacity } from "react-native";
|
|
9
|
-
const Tag = ({ tag }) => (React.createElement(Flex, { bg: "
|
|
9
|
+
const Tag = ({ tag }) => (React.createElement(Flex, { bg: "opacityDefault.c10", borderRadius: 6, px: 3, py: "3px", maxWidth: "75%" },
|
|
10
10
|
React.createElement(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1 }, tag)));
|
|
11
11
|
const Timer = ({ time, viewed }) => (React.createElement(Flex, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", ml: 2 },
|
|
12
12
|
React.createElement(Text, { variant: "small", fontWeight: "semiBold", color: "neutral.c90", numberOfLines: 1 }, time),
|
|
13
|
-
React.createElement(Box, { ml: 3, backgroundColor: viewed ? "transparent" : "error.
|
|
13
|
+
React.createElement(Box, { ml: 3, backgroundColor: viewed ? "transparent" : "error.c40", height: "8px", width: "8px", borderRadius: 24 })));
|
|
14
14
|
const NotificationCard = (props) => {
|
|
15
15
|
const { tag = "", time = "", title, description, cta, viewed, onClickCard, showLinkCta, link = "", } = props;
|
|
16
16
|
const ctaIcon = useMemo(() => {
|
|
@@ -38,7 +38,7 @@ const InputContainer = styled.View `
|
|
|
38
38
|
${(p) => p.error &&
|
|
39
39
|
!p.disabled &&
|
|
40
40
|
css `
|
|
41
|
-
border: 1px solid ${p.theme.colors.error.
|
|
41
|
+
border: 1px solid ${p.theme.colors.error.c50};
|
|
42
42
|
`};
|
|
43
43
|
|
|
44
44
|
${(p) => p.disabled &&
|
|
@@ -62,7 +62,7 @@ const BaseInput = styled.TextInput.attrs((p) => ({
|
|
|
62
62
|
padding-right: 20px;
|
|
63
63
|
`;
|
|
64
64
|
const InputErrorContainer = styled(Text) `
|
|
65
|
-
color: ${(p) => p.theme.colors.error.
|
|
65
|
+
color: ${(p) => p.theme.colors.error.c50};
|
|
66
66
|
margin-left: 12px;
|
|
67
67
|
`;
|
|
68
68
|
export const InputRenderLeftContainer = styled(FlexBox).attrs(() => ({
|
|
@@ -15,6 +15,6 @@ import Check from "@ledgerhq/icons-ui/native/CheckAloneMedium";
|
|
|
15
15
|
import Close from "@ledgerhq/icons-ui/native/CloseMedium";
|
|
16
16
|
export default function TipList(_a) {
|
|
17
17
|
var { items } = _a, props = __rest(_a, ["items"]);
|
|
18
|
-
const tipItems = useMemo(() => items.map((item) => (Object.assign(Object.assign({}, item), { bullet: item.isPositive ? (React.createElement(Check, { size: 20, color: "success.
|
|
18
|
+
const tipItems = useMemo(() => items.map((item) => (Object.assign(Object.assign({}, item), { bullet: item.isPositive ? (React.createElement(Check, { size: 20, color: "success.c50" })) : (React.createElement(Close, { size: 20, color: "error.c50" })) }))), [items]);
|
|
19
19
|
return React.createElement(List, Object.assign({ items: tipItems }, props));
|
|
20
20
|
}
|
|
@@ -43,7 +43,7 @@ export default function StepperItem({ item, progress, nested, isLastItem, setAct
|
|
|
43
43
|
React.createElement(Container, { nested: nested, status: item.status, isLastItem: isLastItem },
|
|
44
44
|
React.createElement(Flex, { px: nested ? 0 : 4, py: nested ? 4 : 7, flexDirection: nested ? "row-reverse" : "row", justifyContent: nested ? "space-between" : "flex-start" },
|
|
45
45
|
React.createElement(Flex, { width: "28px", alignItems: "center" },
|
|
46
|
-
item.status === "completed" && React.createElement(CheckAloneMedium, { size: 20, color: "success.
|
|
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
49
|
React.createElement(Flex, { pb: item.status === "active" && item.renderBody ? 4 : undefined },
|
|
@@ -58,7 +58,7 @@ const getIconBackground = (theme, status, isLastItem) => {
|
|
|
58
58
|
};
|
|
59
59
|
const getIconBorder = (theme, status, isLastItem) => {
|
|
60
60
|
if (isLastItem) {
|
|
61
|
-
return theme.colors.success.
|
|
61
|
+
return theme.colors.success.c50;
|
|
62
62
|
}
|
|
63
63
|
else if (status === "inactive") {
|
|
64
64
|
return theme.colors.neutral.c50;
|
|
@@ -79,7 +79,7 @@ export default function TimelineIndicator(_a) {
|
|
|
79
79
|
const { colors } = useTheme();
|
|
80
80
|
return (React.createElement(Flex, Object.assign({ flexDirection: "column", alignItems: "center" }, props),
|
|
81
81
|
React.createElement(TopSegmentSvg, { status: status, hidden: isFirstItem, height: PixelRatio.roundToNearestPixel(topHeight || topSegmentDefaultHeight) }),
|
|
82
|
-
React.createElement(CenterCircle, { status: status, isLastItem: isLastItem }, status === "completed" && (React.createElement(CircledCheckSolidMedium, { color: isLastItem ? colors.success.
|
|
82
|
+
React.createElement(CenterCircle, { status: status, isLastItem: isLastItem }, status === "completed" && (React.createElement(CircledCheckSolidMedium, { color: isLastItem ? colors.success.c50 : colors.primary.c80, size: 20 }))),
|
|
83
83
|
React.createElement(BottomSegmentSvg, { status: status, hidden: isLastItem })));
|
|
84
84
|
}
|
|
85
85
|
TimelineIndicator.topSegmentDefaultHeight = topSegmentDefaultHeight;
|
|
@@ -20,7 +20,7 @@ const getContainerBorder = (theme, status, isLastItem) => {
|
|
|
20
20
|
return "transparent";
|
|
21
21
|
}
|
|
22
22
|
else if (isLastItem && status === "active") {
|
|
23
|
-
return theme.colors.success.
|
|
23
|
+
return theme.colors.success.c50;
|
|
24
24
|
}
|
|
25
25
|
else if (status === "active") {
|
|
26
26
|
return theme.colors.neutral.c40;
|
|
@@ -70,7 +70,7 @@ export default function TimelineItem({ item, formatEstimatedTime, isFirstItem, i
|
|
|
70
70
|
React.createElement(Container, { status: item.status, isLastItem: isLastItem, mt: withExtraMarginOnActiveStep && !isFirstItem && item.status === "active" ? 4 : 0, mb: withExtraMarginOnActiveStep && !isLastItem && item.status === "active" ? 4 : 0 },
|
|
71
71
|
React.createElement(Flex, { flexDirection: "row", justifyContent: "space-between" },
|
|
72
72
|
React.createElement(Text, { variant: "body", fontWeight: "semiBold", flexShrink: 1, color: item.status === "completed" && isLastItem
|
|
73
|
-
? "success.
|
|
73
|
+
? "success.c40"
|
|
74
74
|
: item.status === "active"
|
|
75
75
|
? "primary.c80"
|
|
76
76
|
: "neutral.c70" }, item.status === "completed" ? (_a = item.doneTitle) !== null && _a !== void 0 ? _a : item.title : item.title),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="styled-components-react-native" />
|
|
2
2
|
import React from "react";
|
|
3
|
+
import Svg from "react-native-svg";
|
|
3
4
|
import { SizeProps } from "styled-system";
|
|
4
|
-
declare const Loader: import("styled-components").StyledComponent<
|
|
5
|
+
declare const Loader: import("styled-components").StyledComponent<typeof Svg, import("styled-components").DefaultTheme, SizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>>, never>;
|
|
5
6
|
export type Props = React.ComponentProps<typeof Loader> & {
|
|
6
7
|
color?: string;
|
|
7
8
|
};
|
|
@@ -91,7 +91,7 @@ const PendingText = styled(Text) `
|
|
|
91
91
|
color: ${(p) => p.theme.colors.neutral.c70};
|
|
92
92
|
`;
|
|
93
93
|
const ErroredText = styled(Text) `
|
|
94
|
-
color: ${(p) => p.theme.colors.error.
|
|
94
|
+
color: ${(p) => p.theme.colors.error.c50};
|
|
95
95
|
`;
|
|
96
96
|
function Step({ state, label, showLeftSeparator, showRightSeparator, }) {
|
|
97
97
|
const labelText = useMemo(() => {
|
|
@@ -116,7 +116,7 @@ function Step({ state, label, showLeftSeparator, showRightSeparator, }) {
|
|
|
116
116
|
React.createElement(StepIcon.Current, null)));
|
|
117
117
|
case "ERRORED":
|
|
118
118
|
return (React.createElement(StepIcon.Background, { backgroundColor: "warning.c30" },
|
|
119
|
-
React.createElement(StepIcon.Errored, { color: colors.error.
|
|
119
|
+
React.createElement(StepIcon.Errored, { color: colors.error.c50 })));
|
|
120
120
|
case "PENDING":
|
|
121
121
|
return (React.createElement(StepIcon.Background, null,
|
|
122
122
|
React.createElement(StepIcon.Pending, null)));
|
|
@@ -15,6 +15,7 @@ const bracketSizes = {
|
|
|
15
15
|
small: 16,
|
|
16
16
|
subtitle: 16,
|
|
17
17
|
tiny: 16,
|
|
18
|
+
tinyAlpha: 16,
|
|
18
19
|
};
|
|
19
20
|
export function getBracketSize({ variant }) {
|
|
20
21
|
return variant ? bracketSizes[variant] : 20;
|
|
@@ -81,6 +82,9 @@ export function getTextTypeStyle({ bracket }) {
|
|
|
81
82
|
tiny: {
|
|
82
83
|
fontFamily: "Inter",
|
|
83
84
|
},
|
|
85
|
+
tinyAlpha: {
|
|
86
|
+
fontFamily: "Alpha",
|
|
87
|
+
},
|
|
84
88
|
};
|
|
85
89
|
}
|
|
86
90
|
const getConcatenedFontWeightFontFamily = {
|
|
@@ -13,21 +13,21 @@ export function getButtonColors(colors) {
|
|
|
13
13
|
main: {
|
|
14
14
|
primaryColor: colors.neutral.c00,
|
|
15
15
|
secondaryColor: colors.neutral.c100,
|
|
16
|
-
pressedColor: colors.
|
|
17
|
-
pressedOutlineColor: colors.
|
|
16
|
+
pressedColor: colors.opacityDefault.c60,
|
|
17
|
+
pressedOutlineColor: colors.opacityDefault.c10,
|
|
18
18
|
},
|
|
19
19
|
shade: {
|
|
20
20
|
primaryColor: colors.neutral.c00,
|
|
21
21
|
secondaryColor: colors.neutral.c100,
|
|
22
22
|
tertiaryColor: colors.neutral.c40,
|
|
23
|
-
pressedColor: colors.
|
|
24
|
-
pressedOutlineColor: colors.
|
|
23
|
+
pressedColor: colors.opacityDefault.c60,
|
|
24
|
+
pressedOutlineColor: colors.opacityDefault.c10,
|
|
25
25
|
},
|
|
26
26
|
error: {
|
|
27
27
|
primaryColor: colors.neutral.c00,
|
|
28
|
-
secondaryColor: colors.error.
|
|
29
|
-
pressedColor: colors.error.
|
|
30
|
-
pressedOutlineColor: colors.error.
|
|
28
|
+
secondaryColor: colors.error.c50,
|
|
29
|
+
pressedColor: colors.error.c50a07,
|
|
30
|
+
pressedOutlineColor: colors.error.c50a025,
|
|
31
31
|
},
|
|
32
32
|
color: {
|
|
33
33
|
primaryColor: colors.neutral.c00,
|
|
@@ -17,12 +17,12 @@ const alertColors = {
|
|
|
17
17
|
color: "primary.c90",
|
|
18
18
|
},
|
|
19
19
|
warning: {
|
|
20
|
-
backgroundColor: "warning.
|
|
21
|
-
color: "warning.
|
|
20
|
+
backgroundColor: "warning.c20",
|
|
21
|
+
color: "warning.c90",
|
|
22
22
|
},
|
|
23
23
|
error: {
|
|
24
|
-
backgroundColor: "error.
|
|
25
|
-
color: "error.
|
|
24
|
+
backgroundColor: "error.c20",
|
|
25
|
+
color: "error.c90",
|
|
26
26
|
},
|
|
27
27
|
};
|
|
28
28
|
const StyledIconContainer = styled.View `
|
|
@@ -14,17 +14,17 @@ const variantProps = {
|
|
|
14
14
|
padding: 6,
|
|
15
15
|
},
|
|
16
16
|
success: {
|
|
17
|
-
bg: "success.
|
|
17
|
+
bg: "success.c50",
|
|
18
18
|
color: "neutral.c00",
|
|
19
19
|
padding: 6,
|
|
20
20
|
},
|
|
21
21
|
warning: {
|
|
22
|
-
bg: "warning.
|
|
22
|
+
bg: "warning.c50",
|
|
23
23
|
color: "neutral.c00",
|
|
24
24
|
padding: 6,
|
|
25
25
|
},
|
|
26
26
|
error: {
|
|
27
|
-
bg: "error.
|
|
27
|
+
bg: "error.c50",
|
|
28
28
|
color: "neutral.c00",
|
|
29
29
|
padding: 6,
|
|
30
30
|
},
|
|
@@ -16,7 +16,7 @@ import { Box } from "../../Layout";
|
|
|
16
16
|
const typeColor = {
|
|
17
17
|
color: "primary.c80",
|
|
18
18
|
shade: "neutral.c30",
|
|
19
|
-
warning: "warning.
|
|
19
|
+
warning: "warning.c50",
|
|
20
20
|
};
|
|
21
21
|
export default function Tag(_a) {
|
|
22
22
|
var { type = "shade", size = "small", color, textColor, uppercase, Icon, children, numberOfLines, ellipsizeMode } = _a, props = __rest(_a, ["type", "size", "color", "textColor", "uppercase", "Icon", "children", "numberOfLines", "ellipsizeMode"]);
|
package/lib/styles/theme.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColorPalette } from "@ledgerhq/ui-shared";
|
|
2
2
|
export declare const space: number[];
|
|
3
|
-
export declare const textVariants: readonly ["h1", "h1Inter", "h2", "h3", "h4", "h5", "large", "largeLineHeight", "body", "bodyLineHeight", "paragraph", "paragraphLineHeight", "small", "subtitle", "tiny"];
|
|
3
|
+
export declare const textVariants: readonly ["h1", "h1Inter", "h2", "h3", "h4", "h5", "large", "largeLineHeight", "body", "bodyLineHeight", "paragraph", "paragraphLineHeight", "small", "subtitle", "tiny", "tinyAlpha"];
|
|
4
4
|
export type TextVariants = typeof textVariants[number];
|
|
5
5
|
export type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;
|
|
6
|
-
export declare const fontSizes: ThemeScale<number, "h1" | "h1Inter" | "h2" | "h3" | "h4" | "h5" | "large" | "largeLineHeight" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny">;
|
|
6
|
+
export declare const fontSizes: ThemeScale<number, "h1" | "h1Inter" | "h2" | "h3" | "h4" | "h5" | "large" | "largeLineHeight" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny" | "tinyAlpha">;
|
|
7
7
|
export declare const radii: number[];
|
|
8
8
|
export declare const zIndexes: number[];
|
|
9
9
|
export type Theme = {
|
package/lib/styles/theme.js
CHANGED
|
@@ -17,6 +17,7 @@ export const textVariants = [
|
|
|
17
17
|
"small",
|
|
18
18
|
"subtitle",
|
|
19
19
|
"tiny",
|
|
20
|
+
"tinyAlpha",
|
|
20
21
|
];
|
|
21
22
|
// 0 1 2 3 4 5 6 7 8 9
|
|
22
23
|
export const fontSizes = [10, 11, 12, 13, 14, 16, 18, 24, 28, 32];
|
|
@@ -37,6 +38,7 @@ fontSizes.paragraphLineHeight = fontSizes.paragraph;
|
|
|
37
38
|
fontSizes.largeLineHeight = fontSizes.large;
|
|
38
39
|
fontSizes.h4 = fontSizes.h2;
|
|
39
40
|
fontSizes.h5 = fontSizes.h3;
|
|
41
|
+
fontSizes.tinyAlpha = fontSizes.tiny;
|
|
40
42
|
export const radii = [0, 4, 8];
|
|
41
43
|
export const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];
|
|
42
44
|
const theme = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.18.0",
|
|
3
|
+
"version": "0.18.1-nightly.0",
|
|
4
4
|
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,69 +42,72 @@
|
|
|
42
42
|
"moment": "^2.29.1",
|
|
43
43
|
"react-native-animatable": "^1.3.3",
|
|
44
44
|
"react-native-modal": "^13.0.0",
|
|
45
|
-
"react-native-svg": "
|
|
46
|
-
"rn-range-slider": "
|
|
45
|
+
"react-native-svg": "13.4.0",
|
|
46
|
+
"rn-range-slider": "2.1.1",
|
|
47
47
|
"styled-system": "^5.1.5",
|
|
48
48
|
"victory-native": "^35.5.5",
|
|
49
|
-
"@ledgerhq/crypto-icons-ui": "^0.2.
|
|
50
|
-
"@ledgerhq/icons-ui": "^0.
|
|
51
|
-
"@ledgerhq/ui-shared": "^0.
|
|
49
|
+
"@ledgerhq/crypto-icons-ui": "^0.2.2-nightly.0",
|
|
50
|
+
"@ledgerhq/icons-ui": "^0.4.0-nightly.1",
|
|
51
|
+
"@ledgerhq/ui-shared": "^0.2.0-nightly.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@types/react": "*",
|
|
55
55
|
"@types/react-native": "*",
|
|
56
56
|
"@types/styled-components": "^5.3.3",
|
|
57
57
|
"@types/styled-components-react-native": "^5.3.3",
|
|
58
|
-
"react": "
|
|
58
|
+
"react": ">=17",
|
|
59
59
|
"react-native": ">=0.64.0",
|
|
60
|
-
"react-native-reanimated": "
|
|
60
|
+
"react-native-reanimated": "^2.9.1",
|
|
61
61
|
"styled-components": "^5.3.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@babel/core": "^7.
|
|
64
|
+
"@babel/core": "^7.21.0",
|
|
65
65
|
"@babel/generator": "^7.17.2",
|
|
66
|
+
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
66
67
|
"@babel/plugin-proposal-export-namespace-from": "^7.16.0",
|
|
67
68
|
"@babel/preset-env": "^7.15.8",
|
|
68
69
|
"@babel/runtime": "^7.17.2",
|
|
69
|
-
"@emotion/core": "^
|
|
70
|
-
"@
|
|
70
|
+
"@emotion/core": "^10.3.1",
|
|
71
|
+
"@emotion/native": "^10.0.27",
|
|
72
|
+
"@expo/metro-config": "^0.7.1",
|
|
73
|
+
"@expo/webpack-config": "^18.0.1",
|
|
74
|
+
"@react-native-async-storage/async-storage": "1.17.11",
|
|
71
75
|
"@react-native-community/cli-server-api": "^7.0.3",
|
|
76
|
+
"@react-native-community/datetimepicker": "6.7.3",
|
|
72
77
|
"@react-native-community/eslint-config": "^3.0.1",
|
|
73
|
-
"@
|
|
74
|
-
"@storybook/addon-
|
|
75
|
-
"@storybook/addon-controls": "^6.
|
|
76
|
-
"@storybook/addon-
|
|
77
|
-
"@storybook/addon-
|
|
78
|
-
"@storybook/addon-
|
|
79
|
-
"@storybook/addon-
|
|
80
|
-
"@storybook/addon-
|
|
81
|
-
"@storybook/addon-ondevice-
|
|
82
|
-
"@storybook/addon-
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/
|
|
85
|
-
"@storybook/
|
|
86
|
-
"@storybook/
|
|
87
|
-
"@storybook/
|
|
88
|
-
"@storybook/components": "^6.4.19",
|
|
89
|
-
"@storybook/core-events": "^6.4.19",
|
|
90
|
-
"@storybook/react": "^6.4.19",
|
|
91
|
-
"@storybook/react-native": "^5.3.25",
|
|
92
|
-
"@storybook/theming": "^6.4.19",
|
|
78
|
+
"@react-native-community/slider": "^4.4.2",
|
|
79
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
80
|
+
"@storybook/addon-controls": "^6.5.16",
|
|
81
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
82
|
+
"@storybook/addon-links": "^6.5.16",
|
|
83
|
+
"@storybook/addon-ondevice-actions": "6.5.0-rc.11",
|
|
84
|
+
"@storybook/addon-ondevice-backgrounds": "6.5.0-rc.11",
|
|
85
|
+
"@storybook/addon-ondevice-controls": "6.5.0-rc.11",
|
|
86
|
+
"@storybook/addon-ondevice-notes": "6.5.0-rc.11",
|
|
87
|
+
"@storybook/addon-react-native-web": "^0.0.19",
|
|
88
|
+
"@storybook/builder-webpack5": "^6.5.14",
|
|
89
|
+
"@storybook/docs-tools": "^6.5.16",
|
|
90
|
+
"@storybook/manager-webpack5": "^6.5.14",
|
|
91
|
+
"@storybook/react": "^6.5.16",
|
|
92
|
+
"@storybook/react-native": "6.5.0-rc.11",
|
|
93
93
|
"@svgr/core": "^5.5.0",
|
|
94
94
|
"@svgr/plugin-jsx": "^5.5.0",
|
|
95
95
|
"@svgr/plugin-svgo": "^5.5.0",
|
|
96
96
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
97
97
|
"@types/node": "^17.0.31",
|
|
98
98
|
"@types/prop-types": "^15.7.5",
|
|
99
|
-
"@types/react": "^17.0.
|
|
100
|
-
"@types/react-native": "
|
|
99
|
+
"@types/react": "^17.0.53",
|
|
100
|
+
"@types/react-native": "0.71.5",
|
|
101
101
|
"@types/styled-components": "^5.1.3",
|
|
102
102
|
"@types/styled-components-react-native": "^5.1.3",
|
|
103
103
|
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
104
104
|
"@typescript-eslint/parser": "^5.22.0",
|
|
105
|
+
"assert": "^2.0.0",
|
|
105
106
|
"babel-loader": "^8.2.2",
|
|
106
107
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
107
|
-
"babel-
|
|
108
|
+
"babel-plugin-react-docgen-typescript": "^1.5.1",
|
|
109
|
+
"babel-plugin-react-native-web": "^0.18.12",
|
|
110
|
+
"babel-preset-expo": "^9.3.0",
|
|
108
111
|
"camelcase": "^6.2.1",
|
|
109
112
|
"csstype": "^3.0.11",
|
|
110
113
|
"eslint": "^8.10.0",
|
|
@@ -112,30 +115,33 @@
|
|
|
112
115
|
"eslint-plugin-prettier": "^4.0.0",
|
|
113
116
|
"eslint-plugin-react": "^7.29.2",
|
|
114
117
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
115
|
-
"expo": "~
|
|
116
|
-
"expo-asset": "^8.
|
|
117
|
-
"expo-
|
|
118
|
-
"expo-
|
|
119
|
-
"expo-
|
|
120
|
-
"expo-modules-core": "^0.6.5",
|
|
118
|
+
"expo": "~48.0.9",
|
|
119
|
+
"expo-asset": "^8.9.1",
|
|
120
|
+
"expo-constants": "^14.2.1",
|
|
121
|
+
"expo-font": "^11.1.1",
|
|
122
|
+
"expo-modules-core": "^1.2.2",
|
|
121
123
|
"fs-extra": "^10.0.1",
|
|
122
124
|
"glob": "^7.2.0",
|
|
123
|
-
"metro": "^0.
|
|
124
|
-
"metro-config": "^0.
|
|
125
|
-
"metro-
|
|
126
|
-
"metro-
|
|
127
|
-
"metro-
|
|
128
|
-
"metro-
|
|
129
|
-
"metro-
|
|
125
|
+
"metro": "^0.76.0",
|
|
126
|
+
"metro-config": "^0.76.0",
|
|
127
|
+
"metro-core": "^0.76.0",
|
|
128
|
+
"metro-minify-uglify": "^0.76.0",
|
|
129
|
+
"metro-react-native-babel-preset": "^0.76.0",
|
|
130
|
+
"metro-react-native-babel-transformer": "^0.76.0",
|
|
131
|
+
"metro-resolver": "^0.76.0",
|
|
132
|
+
"metro-runtime": "^0.76.0",
|
|
133
|
+
"metro-source-map": "^0.76.0",
|
|
134
|
+
"metro-transform-worker": "^0.76.0",
|
|
135
|
+
"minimatch": "^5.1.0",
|
|
130
136
|
"prettier": "^2.4.1",
|
|
131
137
|
"prop-types": "^15.8.1",
|
|
132
|
-
"react": "^
|
|
133
|
-
"react-dom": "^
|
|
134
|
-
"react-is": "^
|
|
135
|
-
"react-native": "
|
|
136
|
-
"react-native-
|
|
137
|
-
"react-native-
|
|
138
|
-
"react-native-web": "~0.
|
|
138
|
+
"react": "^18",
|
|
139
|
+
"react-dom": "^18",
|
|
140
|
+
"react-is": "^18",
|
|
141
|
+
"react-native": "0.71.6",
|
|
142
|
+
"react-native-reanimated": "^2.15.0",
|
|
143
|
+
"react-native-safe-area-context": "^4.5.0",
|
|
144
|
+
"react-native-web": "~0.18.12",
|
|
139
145
|
"regenerator-runtime": "^0.13.9",
|
|
140
146
|
"rimraf": "^4.1.2",
|
|
141
147
|
"styled-components": "^5.3.3",
|
|
@@ -143,16 +149,18 @@
|
|
|
143
149
|
"stylelint-config-recommended": "^8.0.0",
|
|
144
150
|
"stylelint-config-styled-components": "^0.1.1",
|
|
145
151
|
"stylelint-processor-styled-components": "^1.10.0",
|
|
146
|
-
"typescript": "^4.
|
|
152
|
+
"typescript": "^4.9.5",
|
|
153
|
+
"util": "^0.12.5",
|
|
147
154
|
"victory": "^35.5.5",
|
|
148
|
-
"webpack": "^
|
|
155
|
+
"webpack": "^5.76.1",
|
|
156
|
+
"webpack-dev-server": "^4.12.0",
|
|
149
157
|
"metro-extra-config": "1.0.0"
|
|
150
158
|
},
|
|
151
159
|
"scripts": {
|
|
152
160
|
"android": "expo start --android",
|
|
153
161
|
"build": "tsc -p tsconfig.prod.json && node scripts/postBuild",
|
|
154
162
|
"prebuild:storybook": "pnpm -F ui-shared -F icons-ui -F crypto-icons-ui build",
|
|
155
|
-
"build:storybook": "pnpm build-storybook -o web-build",
|
|
163
|
+
"build:storybook": "pnpm build-storybook -c .storybook-web -o web-build",
|
|
156
164
|
"watch": "tsc -p tsconfig.prod.json --watch",
|
|
157
165
|
"clean": "rimraf lib",
|
|
158
166
|
"eject": "expo eject",
|
|
@@ -162,7 +170,7 @@
|
|
|
162
170
|
"lint:css": "stylelint './src/**/*.{js,jsx,ts,tsx}'",
|
|
163
171
|
"release": "yarn publish ./lib --access public",
|
|
164
172
|
"expo": "expo start",
|
|
165
|
-
"storybook": "start-storybook -p 6006",
|
|
173
|
+
"storybook": "start-storybook -c .storybook-web -p 6006",
|
|
166
174
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
167
175
|
"test": "exit 0",
|
|
168
176
|
"web": "expo start --web"
|