@ledgerhq/native-ui 0.7.16 → 0.7.18-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/README.md +13 -16
- package/{assets → lib/assets}/fonts/alpha/HMAlphaMono-Medium.otf +0 -0
- package/{assets → lib/assets}/fonts/inter/Inter-Bold.otf +0 -0
- package/{assets → lib/assets}/fonts/inter/Inter-Medium.otf +0 -0
- package/{assets → lib/assets}/fonts/inter/Inter-SemiBold.otf +0 -0
- package/{assets → lib/assets}/icons.d.ts +0 -0
- package/{assets → lib/assets}/icons.js +0 -0
- package/{assets → lib/assets}/index.d.ts +0 -0
- package/{assets → lib/assets}/index.js +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveAltRegular.d.ts +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveAltRegular.js +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveRegular.d.ts +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveRegular.js +0 -0
- package/{assets → lib/assets}/logos/index.d.ts +0 -0
- package/{assets → lib/assets}/logos/index.js +0 -0
- package/{components → lib/components}/Carousel/index.d.ts +0 -0
- package/{components → lib/components}/Carousel/index.js +0 -0
- package/{components → lib/components}/ChartCard/index.d.ts +0 -0
- package/{components → lib/components}/ChartCard/index.js +0 -0
- package/{components → lib/components}/Form/Checkbox/index.d.ts +0 -0
- package/{components → lib/components}/Form/Checkbox/index.js +0 -0
- package/{components → lib/components}/Form/Input/BaseInput/index.d.ts +2 -2
- package/{components → lib/components}/Form/Input/BaseInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/LegendInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/LegendInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/NumberInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/NumberInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/QrCodeInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/QrCodeInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/SearchInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/SearchInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/index.js +0 -0
- package/{components → lib/components}/Form/SelectableList.d.ts +0 -0
- package/{components → lib/components}/Form/SelectableList.js +0 -0
- package/{components → lib/components}/Form/Slider/components.d.ts +0 -0
- package/{components → lib/components}/Form/Slider/components.js +0 -0
- package/{components → lib/components}/Form/Slider/index.d.ts +0 -0
- package/{components → lib/components}/Form/Slider/index.js +0 -0
- package/{components → lib/components}/Form/Slider/index.native.d.ts +0 -0
- package/{components → lib/components}/Form/Slider/index.native.js +0 -0
- package/{components → lib/components}/Form/Switch/index.d.ts +0 -0
- package/{components → lib/components}/Form/Switch/index.js +0 -0
- package/{components → lib/components}/Form/Toggle/index.d.ts +0 -0
- package/{components → lib/components}/Form/Toggle/index.js +0 -0
- package/{components → lib/components}/Form/index.d.ts +0 -0
- package/{components → lib/components}/Form/index.js +0 -0
- package/{components → lib/components}/Icon/BoxedIcon.d.ts +0 -0
- package/{components → lib/components}/Icon/BoxedIcon.js +0 -0
- package/{components → lib/components}/Icon/Icon.d.ts +0 -0
- package/{components → lib/components}/Icon/Icon.js +0 -0
- package/{components → lib/components}/Icon/IconBox/index.d.ts +0 -0
- package/{components → lib/components}/Icon/IconBox/index.js +0 -0
- package/{components → lib/components}/Icon/index.d.ts +0 -0
- package/{components → lib/components}/Icon/index.js +0 -0
- package/{components → lib/components}/Icon/type.d.ts +0 -0
- package/{components → lib/components}/Icon/type.js +0 -0
- package/{components → lib/components}/Layout/Box/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Box/index.js +0 -0
- package/{components → lib/components}/Layout/Collapse/Accordion/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Collapse/Accordion/index.js +0 -0
- package/{components → lib/components}/Layout/Flex/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Flex/index.js +0 -0
- package/{components → lib/components}/Layout/List/IconBoxList/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/IconBoxList/index.js +0 -0
- package/{components → lib/components}/Layout/List/List/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/List/index.js +0 -0
- package/{components → lib/components}/Layout/List/NumberedList/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/NumberedList/index.js +0 -0
- package/{components → lib/components}/Layout/List/TipList/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/TipList/index.js +0 -0
- package/{components → lib/components}/Layout/List/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/BaseModal/index.d.ts +2 -1
- package/{components → lib/components}/Layout/Modals/BaseModal/index.js +7 -7
- package/{components → lib/components}/Layout/Modals/BottomDrawer/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/BottomDrawer/index.js +7 -1
- package/{components → lib/components}/Layout/Modals/Popin/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/Popin/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/Tooltip/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/Tooltip/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/index.js +0 -0
- package/{components → lib/components}/Layout/ScrollContainer/index.d.ts +0 -0
- package/{components → lib/components}/Layout/ScrollContainer/index.js +0 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/Header.d.ts +0 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/Header.js +0 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/index.d.ts +0 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/index.js +0 -0
- package/{components → lib/components}/Layout/ScrollListContainer/index.d.ts +0 -0
- package/{components → lib/components}/Layout/ScrollListContainer/index.js +0 -0
- package/{components → lib/components}/Layout/Table/Row.d.ts +0 -0
- package/{components → lib/components}/Layout/Table/Row.js +0 -0
- package/{components → lib/components}/Layout/index.d.ts +0 -0
- package/{components → lib/components}/Layout/index.js +0 -0
- package/{components → lib/components}/Layout/types.d.ts +0 -0
- package/{components → lib/components}/Layout/types.js +0 -0
- package/{components → lib/components}/Loader/InfiniteLoader/index.d.ts +0 -0
- package/{components → lib/components}/Loader/InfiniteLoader/index.js +0 -0
- package/{components → lib/components}/Loader/ProgressLoader/index.d.ts +0 -0
- package/{components → lib/components}/Loader/ProgressLoader/index.js +0 -0
- package/{components → lib/components}/Loader/index.d.ts +0 -0
- package/{components → lib/components}/Loader/index.js +0 -0
- package/{components → lib/components}/Navigation/FlowStepper/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/FlowStepper/index.js +0 -0
- package/{components → lib/components}/Navigation/SlideIndicator/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/SlideIndicator/index.js +0 -0
- package/{components → lib/components}/Navigation/Stepper/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/Stepper/index.js +0 -0
- package/{components → lib/components}/Navigation/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/index.js +0 -0
- package/{components → lib/components}/ProgressBar/index.d.ts +0 -0
- package/{components → lib/components}/ProgressBar/index.js +0 -0
- package/{components → lib/components}/Tabs/Chip/index.d.ts +0 -0
- package/{components → lib/components}/Tabs/Chip/index.js +0 -0
- package/{components → lib/components}/Tabs/Graph/index.d.ts +0 -0
- package/{components → lib/components}/Tabs/Graph/index.js +0 -0
- package/{components → lib/components}/Tabs/TemplateTabs/index.d.ts +0 -0
- package/{components → lib/components}/Tabs/TemplateTabs/index.js +0 -0
- package/{components → lib/components}/Tabs/index.d.ts +0 -0
- package/{components → lib/components}/Tabs/index.js +0 -0
- package/{components → lib/components}/Text/getTextStyle.d.ts +0 -0
- package/{components → lib/components}/Text/getTextStyle.js +0 -0
- package/{components → lib/components}/Text/index.d.ts +0 -0
- package/{components → lib/components}/Text/index.js +0 -0
- package/{components → lib/components}/chart/index.d.ts +0 -0
- package/{components → lib/components}/chart/index.js +8 -2
- package/{components → lib/components}/chart/types.d.ts +0 -0
- package/{components → lib/components}/chart/types.js +0 -0
- package/{components → lib/components}/cta/Button/getButtonStyle.d.ts +2 -0
- package/{components → lib/components}/cta/Button/getButtonStyle.js +12 -10
- package/{components → lib/components}/cta/Button/index.d.ts +3 -3
- package/{components → lib/components}/cta/Button/index.js +11 -9
- package/{components → lib/components}/cta/Link/getLinkStyle.d.ts +0 -0
- package/{components → lib/components}/cta/Link/getLinkStyle.js +0 -0
- package/{components → lib/components}/cta/Link/index.d.ts +0 -0
- package/{components → lib/components}/cta/Link/index.js +0 -0
- package/{components → lib/components}/cta/getCtaStyle.d.ts +0 -0
- package/{components → lib/components}/cta/getCtaStyle.js +0 -0
- package/{components → lib/components}/cta/index.d.ts +0 -0
- package/{components → lib/components}/cta/index.js +0 -0
- package/{components → lib/components}/index.d.ts +0 -0
- package/{components → lib/components}/index.js +0 -0
- package/{components → lib/components}/message/Alert/index.d.ts +0 -0
- package/{components → lib/components}/message/Alert/index.js +0 -0
- package/{components → lib/components}/message/Log/Brackets.d.ts +0 -0
- package/{components → lib/components}/message/Log/Brackets.js +0 -0
- package/{components → lib/components}/message/Log/index.d.ts +0 -0
- package/{components → lib/components}/message/Log/index.js +0 -0
- package/{components → lib/components}/message/Notification/index.d.ts +0 -0
- package/{components → lib/components}/message/Notification/index.js +0 -0
- package/{components → lib/components}/message/index.d.ts +0 -0
- package/{components → lib/components}/message/index.js +0 -0
- package/{components → lib/components}/styled.d.ts +0 -0
- package/{components → lib/components}/styled.js +4 -1
- package/{components → lib/components}/tags/Badge/index.d.ts +0 -0
- package/{components → lib/components}/tags/Badge/index.js +0 -0
- package/{components → lib/components}/tags/Tag/index.d.ts +0 -0
- package/{components → lib/components}/tags/Tag/index.js +0 -0
- package/{components → lib/components}/tags/index.d.ts +0 -0
- package/{components → lib/components}/tags/index.js +0 -0
- package/{components → lib/components}/transitions/Fade.d.ts +0 -0
- package/{components → lib/components}/transitions/Fade.js +0 -0
- package/{components → lib/components}/transitions/Slide.d.ts +0 -0
- package/{components → lib/components}/transitions/Slide.js +0 -0
- package/{components → lib/components}/transitions/Transition.d.ts +0 -0
- package/{components → lib/components}/transitions/Transition.js +0 -0
- package/{components → lib/components}/transitions/index.d.ts +0 -0
- package/{components → lib/components}/transitions/index.js +0 -0
- package/{components → lib/components}/transitions/types.d.ts +0 -0
- package/{components → lib/components}/transitions/types.js +0 -0
- package/{helpers → lib/helpers}/getDeviceSize.d.ts +0 -0
- package/{helpers → lib/helpers}/getDeviceSize.js +0 -0
- package/{icons → lib/icons}/BracketLeft.d.ts +0 -0
- package/{icons → lib/icons}/BracketLeft.js +0 -0
- package/{icons → lib/icons}/BracketRight.d.ts +0 -0
- package/{icons → lib/icons}/BracketRight.js +0 -0
- package/{icons → lib/icons}/Close.d.ts +0 -0
- package/{icons → lib/icons}/Close.js +0 -0
- package/{icons → lib/icons}/Info.d.ts +0 -0
- package/{icons → lib/icons}/Info.js +0 -0
- package/{index.d.ts → lib/index.d.ts} +0 -0
- package/{index.js → lib/index.js} +0 -0
- package/{styles → lib/styles}/InvertTheme.d.ts +0 -0
- package/{styles → lib/styles}/InvertTheme.js +0 -0
- package/{styles → lib/styles}/StyleProvider.d.ts +0 -0
- package/{styles → lib/styles}/StyleProvider.js +0 -0
- package/{styles → lib/styles}/helpers.d.ts +0 -0
- package/{styles → lib/styles}/helpers.js +0 -0
- package/{styles → lib/styles}/index.d.ts +0 -0
- package/{styles → lib/styles}/index.js +0 -0
- package/{styles → lib/styles}/theme.d.ts +0 -0
- package/{styles → lib/styles}/theme.js +0 -0
- package/package.json +127 -15
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="styled-components-react-native" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { TouchableHighlight, TouchableHighlightProps } from "react-native";
|
|
4
4
|
import { BaseStyledProps } from "../../styled";
|
|
5
|
-
export declare type ButtonProps =
|
|
5
|
+
export declare type ButtonProps = TouchableHighlightProps & BaseStyledProps & {
|
|
6
6
|
Icon?: React.ComponentType<{
|
|
7
7
|
size: number;
|
|
8
8
|
color: string;
|
|
@@ -18,7 +18,7 @@ export declare type ButtonProps = TouchableOpacityProps & BaseStyledProps & {
|
|
|
18
18
|
pending?: boolean;
|
|
19
19
|
displayContentWhenPending?: boolean;
|
|
20
20
|
};
|
|
21
|
-
export declare const Base: import("styled-components").StyledComponent<typeof
|
|
21
|
+
export declare const Base: import("styled-components").StyledComponent<typeof TouchableHighlight, import("styled-components").DefaultTheme, {
|
|
22
22
|
iconButton?: boolean | undefined;
|
|
23
23
|
sizeVariant?: ButtonProps["size"];
|
|
24
24
|
} & Omit<ButtonProps, "size">, never>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import React, { useCallback, useState, useMemo } from "react";
|
|
11
11
|
import styled, { useTheme } from "styled-components/native";
|
|
12
|
-
import { ActivityIndicator,
|
|
12
|
+
import { ActivityIndicator, TouchableHighlight, View } from "react-native";
|
|
13
13
|
import { buttonSizeStyle, getButtonColorStyle } from "../../cta/Button/getButtonStyle";
|
|
14
14
|
import { ctaIconSize, ctaTextType } from "../../cta/getCtaStyle";
|
|
15
15
|
import Text from "../../Text";
|
|
@@ -18,7 +18,7 @@ import baseStyled from "../../styled";
|
|
|
18
18
|
const IconContainer = styled.View `
|
|
19
19
|
${(p) => p.iconButton ? "" : p.iconPosition === "left" ? `margin-right: 10px;` : `margin-left: 10px;`}
|
|
20
20
|
`;
|
|
21
|
-
export const Base = baseStyled(
|
|
21
|
+
export const Base = baseStyled(TouchableHighlight).attrs((p) => (Object.assign(Object.assign({}, getButtonColorStyle(p.theme.colors, p).button), {
|
|
22
22
|
// Avoid conflict with styled-system's size property by nulling size and renaming it
|
|
23
23
|
size: undefined, sizeVariant: p.size }))) `
|
|
24
24
|
|
|
@@ -71,10 +71,11 @@ const ButtonContainer = (props) => {
|
|
|
71
71
|
const Button = (props) => {
|
|
72
72
|
const { Icon, children, type = "default", iconName, disabled = false, pending = false, displayContentWhenPending = false, } = props;
|
|
73
73
|
const theme = useTheme();
|
|
74
|
-
return (React.createElement(Base, Object.assign({}, props, { type: type, iconButton: (!!Icon || !!iconName) && !children, activeOpacity:
|
|
75
|
-
React.createElement(
|
|
76
|
-
|
|
77
|
-
React.createElement(
|
|
74
|
+
return (React.createElement(Base, Object.assign({}, props, { type: type, iconButton: (!!Icon || !!iconName) && !children, activeOpacity: 1, disabled: disabled || pending }),
|
|
75
|
+
React.createElement(View, null,
|
|
76
|
+
React.createElement(ButtonContainer, Object.assign({}, props, { type: type, hide: pending && !displayContentWhenPending })),
|
|
77
|
+
pending && !displayContentWhenPending ? (React.createElement(SpinnerContainer, { displayContentWhenPending: displayContentWhenPending },
|
|
78
|
+
React.createElement(ActivityIndicator, { color: theme.colors.neutral.c50, animating: true }))) : null)));
|
|
78
79
|
};
|
|
79
80
|
export const PromisableButton = (props) => {
|
|
80
81
|
const { Icon, children, onPress, type = "main", disabled = false, iconName } = props;
|
|
@@ -92,8 +93,9 @@ export const PromisableButton = (props) => {
|
|
|
92
93
|
}
|
|
93
94
|
}), [onPress]);
|
|
94
95
|
return (React.createElement(Base, Object.assign({}, props, { type: type, iconButton: (!!Icon || !!iconName) && !children, disabled: disabled || spinnerOn, onPress: onPressHandler }),
|
|
95
|
-
React.createElement(
|
|
96
|
-
|
|
97
|
-
React.createElement(
|
|
96
|
+
React.createElement(View, null,
|
|
97
|
+
React.createElement(ButtonContainer, Object.assign({}, props, { type: type, hide: spinnerOn })),
|
|
98
|
+
React.createElement(SpinnerContainer, null,
|
|
99
|
+
React.createElement(ActivityIndicator, { color: theme.colors.neutral.c50, animating: spinnerOn })))));
|
|
98
100
|
};
|
|
99
101
|
export default Button;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,10 @@ const proxyStyled = new Proxy(styled, {
|
|
|
6
6
|
return styled(target.apply(thisArg, argumentsList)(baseStyles));
|
|
7
7
|
},
|
|
8
8
|
get(target, property) {
|
|
9
|
-
|
|
9
|
+
if (typeof target[property] === "function") {
|
|
10
|
+
return styled(target[property].apply(styled, [baseStyles]));
|
|
11
|
+
}
|
|
12
|
+
return target[property];
|
|
10
13
|
},
|
|
11
14
|
});
|
|
12
15
|
export default proxyStyled;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,29 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "Ledger Live -
|
|
3
|
+
"version": "0.7.18-nightly.0",
|
|
4
|
+
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": "https://github.com/LedgerHQ/ui",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Ledger Live Team <team-live@ledger.fr>",
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"types": "index.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
"*": {
|
|
12
|
+
"*": [
|
|
13
|
+
"lib/*",
|
|
14
|
+
"lib/*/index.d.ts",
|
|
15
|
+
"./*"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./lib/index.js",
|
|
21
|
+
"./": "./lib/",
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
8
24
|
"files": [
|
|
9
|
-
"
|
|
10
|
-
"assets",
|
|
11
|
-
"styles",
|
|
12
|
-
"helpers",
|
|
13
|
-
"icons",
|
|
14
|
-
"index.d.ts",
|
|
15
|
-
"index.js"
|
|
25
|
+
"lib/**/*"
|
|
16
26
|
],
|
|
17
27
|
"dependencies": {
|
|
18
|
-
"@ledgerhq/icons-ui": "^0.2.
|
|
19
|
-
"@ledgerhq/ui-shared": "^0.1.
|
|
20
|
-
"@types/color": "^3.0.
|
|
21
|
-
"@types/react": "^17.0.
|
|
28
|
+
"@ledgerhq/icons-ui": "^0.2.5-nightly.0",
|
|
29
|
+
"@ledgerhq/ui-shared": "^0.1.8-nightly.0",
|
|
30
|
+
"@types/color": "^3.0.3",
|
|
31
|
+
"@types/react": "^17.0.39",
|
|
22
32
|
"@types/react-native": "^0.65.9",
|
|
33
|
+
"@types/styled-components": "^5.1.3",
|
|
23
34
|
"@types/styled-components-react-native": "^5.1.3",
|
|
24
35
|
"@types/styled-system": "^5.1.13",
|
|
25
36
|
"color": "^3.1.3",
|
|
26
37
|
"moment": "^2.29.1",
|
|
38
|
+
"react-native-animatable": "^1.3.3",
|
|
27
39
|
"react-native-modal": "^13.0.0",
|
|
28
40
|
"rn-range-slider": "^2.1.1",
|
|
29
41
|
"styled-system": "^5.1.5",
|
|
@@ -31,9 +43,109 @@
|
|
|
31
43
|
},
|
|
32
44
|
"peerDependencies": {
|
|
33
45
|
"react": "^17.0.2",
|
|
34
|
-
"react-native": "
|
|
35
|
-
"react-native-reanimated": "
|
|
46
|
+
"react-native": ">=0.64.0",
|
|
47
|
+
"react-native-reanimated": "~2.3.1",
|
|
36
48
|
"react-native-svg": "^12.1.1",
|
|
37
49
|
"styled-components": "^5.3.3"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@babel/core": "^7.17.4",
|
|
53
|
+
"@babel/generator": "^7.17.2",
|
|
54
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.16.0",
|
|
55
|
+
"@babel/preset-env": "^7.15.8",
|
|
56
|
+
"@babel/runtime": "^7.17.2",
|
|
57
|
+
"@emotion/core": "^11.0.0",
|
|
58
|
+
"@expo/webpack-config": "^0.16.18",
|
|
59
|
+
"@react-native-community/cli-server-api": "^7.0.3",
|
|
60
|
+
"@react-native-community/eslint-config": "^3.0.1",
|
|
61
|
+
"@storybook/addon-actions": "^6.4.19",
|
|
62
|
+
"@storybook/addon-backgrounds": "^6.4.19",
|
|
63
|
+
"@storybook/addon-controls": "^6.4.19",
|
|
64
|
+
"@storybook/addon-docs": "^6.4.19",
|
|
65
|
+
"@storybook/addon-essentials": "^6.4.19",
|
|
66
|
+
"@storybook/addon-knobs": "^6.4.0",
|
|
67
|
+
"@storybook/addon-links": "^6.4.19",
|
|
68
|
+
"@storybook/addon-measure": "^6.4.19",
|
|
69
|
+
"@storybook/addon-ondevice-actions": "^5.3.23",
|
|
70
|
+
"@storybook/addon-ondevice-knobs": "^5.3.25",
|
|
71
|
+
"@storybook/addon-outline": "^6.4.19",
|
|
72
|
+
"@storybook/addon-toolbars": "^6.4.19",
|
|
73
|
+
"@storybook/addon-viewport": "^6.4.19",
|
|
74
|
+
"@storybook/addons": "^6.4.19",
|
|
75
|
+
"@storybook/api": "^6.4.19",
|
|
76
|
+
"@storybook/components": "^6.4.19",
|
|
77
|
+
"@storybook/core-events": "^6.4.19",
|
|
78
|
+
"@storybook/react": "^6.4.19",
|
|
79
|
+
"@storybook/react-native": "^5.3.25",
|
|
80
|
+
"@storybook/theming": "^6.4.19",
|
|
81
|
+
"@svgr/core": "^5.5.0",
|
|
82
|
+
"@svgr/plugin-jsx": "^5.5.0",
|
|
83
|
+
"@svgr/plugin-svgo": "^5.5.0",
|
|
84
|
+
"@types/hoist-non-react-statics": "^3.3.1",
|
|
85
|
+
"@types/node": "^17.0.31",
|
|
86
|
+
"@types/prop-types": "^15.7.5",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
88
|
+
"@typescript-eslint/parser": "^5.22.0",
|
|
89
|
+
"babel-loader": "^8.2.2",
|
|
90
|
+
"babel-plugin-module-resolver": "^4.1.0",
|
|
91
|
+
"babel-preset-expo": "^9.0.2",
|
|
92
|
+
"camelcase": "^6.2.1",
|
|
93
|
+
"csstype": "^3.0.11",
|
|
94
|
+
"eslint": "^8.10.0",
|
|
95
|
+
"eslint-config-prettier": "^8.3.0",
|
|
96
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
97
|
+
"eslint-plugin-react": "^7.29.2",
|
|
98
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
99
|
+
"expo": "~44.0.0",
|
|
100
|
+
"expo-asset": "~8.4.6",
|
|
101
|
+
"expo-cli": "^5",
|
|
102
|
+
"expo-constants": "~13.0.2",
|
|
103
|
+
"expo-file-system": "~13.1.3",
|
|
104
|
+
"expo-font": "^10.0.5",
|
|
105
|
+
"expo-modules-core": "0.6.5",
|
|
106
|
+
"expo-status-bar": "~1.2.0",
|
|
107
|
+
"fs-extra": "^10.0.1",
|
|
108
|
+
"glob": "^7.2.0",
|
|
109
|
+
"metro": "^0.67.0",
|
|
110
|
+
"metro-config": "^0.67.0",
|
|
111
|
+
"metro-extra-config": "1.0.0",
|
|
112
|
+
"metro-minify-uglify": "^0.67.0",
|
|
113
|
+
"metro-react-native-babel-preset": "^0.67.0",
|
|
114
|
+
"metro-runtime": "^0.67.0",
|
|
115
|
+
"metro-transform-worker": "^0.67.0",
|
|
116
|
+
"prettier": "^2.4.1",
|
|
117
|
+
"prop-types": "^15.8.1",
|
|
118
|
+
"react": "^17.0.2",
|
|
119
|
+
"react-dom": "^17.0.2",
|
|
120
|
+
"react-is": "^17.0.2",
|
|
121
|
+
"react-native": "0.64.3",
|
|
122
|
+
"react-native-gesture-handler": "^1.10.3",
|
|
123
|
+
"react-native-reanimated": "~2.3.1",
|
|
124
|
+
"react-native-svg": "^12.1.1",
|
|
125
|
+
"react-native-web": "~0.17.5",
|
|
126
|
+
"regenerator-runtime": "^0.13.9",
|
|
127
|
+
"rimraf": "^3.0.2",
|
|
128
|
+
"styled-components": "^5.3.3",
|
|
129
|
+
"typescript": "^4.4.4",
|
|
130
|
+
"victory": "^35.5.5",
|
|
131
|
+
"webpack": "^4.46.0"
|
|
132
|
+
},
|
|
133
|
+
"scripts": {
|
|
134
|
+
"android": "expo start --android",
|
|
135
|
+
"build": "tsc -p tsconfig.prod.json && node scripts/postBuild",
|
|
136
|
+
"prebuild:storybook": "pnpm -F ui-shared -F icons-ui build",
|
|
137
|
+
"build:storybook": "pnpm build-storybook -o web-build",
|
|
138
|
+
"watch": "tsc -p tsconfig.prod.json --watch",
|
|
139
|
+
"clean": "rimraf lib",
|
|
140
|
+
"eject": "expo eject",
|
|
141
|
+
"ios": "expo start --ios",
|
|
142
|
+
"lint": "eslint src storybook --ext .ts,.tsx,.js,.jsx --cache",
|
|
143
|
+
"lint:fix": "pnpm lint --fix",
|
|
144
|
+
"release": "yarn publish ./lib --access public",
|
|
145
|
+
"expo": "expo start",
|
|
146
|
+
"storybook": "start-storybook -p 6006",
|
|
147
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
148
|
+
"test": "exit 0",
|
|
149
|
+
"web": "expo start --web"
|
|
38
150
|
}
|
|
39
151
|
}
|