@ledgerhq/native-ui 0.7.17 → 0.7.18-esbuild.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 +0 -0
- package/{components → lib/components}/Layout/Modals/BaseModal/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/BottomDrawer/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/BottomDrawer/index.js +0 -0
- 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 +0 -0
- package/{components → lib/components}/cta/Button/getButtonStyle.js +0 -0
- package/{components → lib/components}/cta/Button/index.d.ts +0 -0
- package/{components → lib/components}/cta/Button/index.js +0 -0
- 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 +126 -14
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# `@ledgerhq/native-ui`
|
|
2
2
|
|
|
3
|
-
[](https://github.com/LedgerHQ/ui/actions/workflows/native.yml)
|
|
4
3
|
[](https://www.npmjs.com/package/@ledgerhq/native-ui)
|
|
5
|
-
[](https://
|
|
4
|
+
[](https://native-ui-storybook.vercel.app)
|
|
6
5
|
|
|
7
6
|
### Design and interface resources for React Native
|
|
8
7
|
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
|
|
11
10
|
## Reference
|
|
12
11
|
|
|
13
|
-
**[🔗 Storybook](https://
|
|
12
|
+
**[🔗 Storybook](https://native-ui-storybook.vercel.app)**
|
|
14
13
|
|
|
15
14
|
## Installation
|
|
16
15
|
|
|
@@ -30,8 +29,6 @@ npm i styled-components react-native-reanimated react-native-svg
|
|
|
30
29
|
|
|
31
30
|
### Additional setup
|
|
32
31
|
|
|
33
|
-
**Skip this step if your project is managed by Expo.**
|
|
34
|
-
|
|
35
32
|
Follow the installation instructions for:
|
|
36
33
|
|
|
37
34
|
- [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/docs/2.2.0/installation)
|
|
@@ -86,10 +83,10 @@ import { useFonts } from "expo-font";
|
|
|
86
83
|
*/
|
|
87
84
|
function FontProvider({ children }) {
|
|
88
85
|
const [fontsLoaded] = useFonts({
|
|
89
|
-
"HMAlphaMono-Medium": require("@ledgerhq/native-ui/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
|
|
90
|
-
"Inter-Medium": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Medium.otf"),
|
|
91
|
-
"Inter-SemiBold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-SemiBold.otf"),
|
|
92
|
-
"Inter-Bold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Bold.otf"),
|
|
86
|
+
"HMAlphaMono-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
|
|
87
|
+
"Inter-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Medium.otf"),
|
|
88
|
+
"Inter-SemiBold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-SemiBold.otf"),
|
|
89
|
+
"Inter-Bold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Bold.otf"),
|
|
93
90
|
});
|
|
94
91
|
|
|
95
92
|
if (!fontsLoaded) {
|
|
@@ -107,8 +104,8 @@ Add the paths in the `react-native.config.js` file:
|
|
|
107
104
|
```js
|
|
108
105
|
module.exports = {
|
|
109
106
|
assets: [
|
|
110
|
-
"node_modules/@ledgerhq/native-ui/assets/fonts/alpha",
|
|
111
|
-
"node_modules/@ledgerhq/native-ui/assets/fonts/inter",
|
|
107
|
+
"node_modules/@ledgerhq/native-ui/lib/assets/fonts/alpha",
|
|
108
|
+
"node_modules/@ledgerhq/native-ui/lib/assets/fonts/inter",
|
|
112
109
|
],
|
|
113
110
|
};
|
|
114
111
|
```
|
|
@@ -138,10 +135,10 @@ function Logo() {
|
|
|
138
135
|
|
|
139
136
|
function FontProvider({ children }) {
|
|
140
137
|
const [fontsLoaded] = useFonts({
|
|
141
|
-
"HMAlphaMono-Medium": require("@ledgerhq/native-ui/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
|
|
142
|
-
"Inter-Medium": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Medium.otf"),
|
|
143
|
-
"Inter-SemiBold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-SemiBold.otf"),
|
|
144
|
-
"Inter-Bold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Bold.otf"),
|
|
138
|
+
"HMAlphaMono-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
|
|
139
|
+
"Inter-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Medium.otf"),
|
|
140
|
+
"Inter-SemiBold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-SemiBold.otf"),
|
|
141
|
+
"Inter-Bold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Bold.otf"),
|
|
145
142
|
});
|
|
146
143
|
|
|
147
144
|
if (!fontsLoaded) {
|
|
@@ -184,7 +181,7 @@ export default function App() {
|
|
|
184
181
|
|
|
185
182
|
```js
|
|
186
183
|
import React from "react";
|
|
187
|
-
import { StyleProvider } from "@ledgerhq/native-ui
|
|
184
|
+
import { StyleProvider } from "@ledgerhq/native-ui";
|
|
188
185
|
import { Flex, Text, Logos, Switch } from "@ledgerhq/native-ui";
|
|
189
186
|
import { useTheme } from "styled-components/native";
|
|
190
187
|
|
|
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
|
|
@@ -58,7 +58,7 @@ export declare const InputRenderLeftContainer: import("styled-components").Style
|
|
|
58
58
|
alignItems: string;
|
|
59
59
|
flexDirection: string;
|
|
60
60
|
pl: string;
|
|
61
|
-
}, "
|
|
61
|
+
}, "alignItems" | "flexDirection" | "pl">;
|
|
62
62
|
export declare const InputRenderRightContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
|
|
63
63
|
columnGap?: string | number | undefined;
|
|
64
64
|
rowGap?: string | number | undefined;
|
|
@@ -70,7 +70,7 @@ export declare const InputRenderRightContainer: import("styled-components").Styl
|
|
|
70
70
|
alignItems: string;
|
|
71
71
|
flexDirection: string;
|
|
72
72
|
pr: string;
|
|
73
|
-
}, "
|
|
73
|
+
}, "alignItems" | "flexDirection" | "pr">;
|
|
74
74
|
declare function Input<T = string>(props: InputProps<T>, ref?: any): JSX.Element;
|
|
75
75
|
declare const _default: <T>(props: Omit<CommonProps, "onChange" | "value"> & {
|
|
76
76
|
/**
|
|
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
|
|
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
|
|
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
|
|
@@ -11,7 +11,9 @@ const sortByDate = (a, b) => {
|
|
|
11
11
|
return 1;
|
|
12
12
|
return 0;
|
|
13
13
|
};
|
|
14
|
-
const Chart = ({ data, backgroundColor, color, yAxisFormatter, valueFormatter, valueKey = "value", height = 200,
|
|
14
|
+
const Chart = ({ data, backgroundColor, color, yAxisFormatter, valueFormatter, valueKey = "value", height = 200,
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16
|
+
xAxisFormatter = (timestamp) => `${new Date(timestamp).toLocaleDateString()}`, disableTooltips = false, }) => {
|
|
15
17
|
const theme = useTheme();
|
|
16
18
|
const sortData = useMemo(() => data.sort(sortByDate), [data]);
|
|
17
19
|
const labelFormatted = useCallback(({ datum }) => {
|
|
@@ -50,7 +52,11 @@ const Chart = ({ data, backgroundColor, color, yAxisFormatter, valueFormatter, v
|
|
|
50
52
|
grid: { display: "none" },
|
|
51
53
|
}), [theme]);
|
|
52
54
|
return (React.createElement(Flex, { justifyContent: "center", alignItems: "center" },
|
|
53
|
-
React.createElement(VictoryChart, { scale: { x: "time" }, height: height, domainPadding: { y: 5 }, padding: { top: 30, left: 60, right: 35, bottom: 35 }, maxDomain: { y: domainValues.max }, minDomain: { y: domainValues.min }, containerComponent: React.createElement(VictoryVoronoiContainer
|
|
55
|
+
React.createElement(VictoryChart, { scale: { x: "time" }, height: height, domainPadding: { y: 5 }, padding: { top: 30, left: 60, right: 35, bottom: 35 }, maxDomain: { y: domainValues.max }, minDomain: { y: domainValues.min }, containerComponent: React.createElement(VictoryVoronoiContainer
|
|
56
|
+
// @ts-expect-error disable this error for the sake of the monorepo
|
|
57
|
+
, {
|
|
58
|
+
// @ts-expect-error disable this error for the sake of the monorepo
|
|
59
|
+
disable: disableTooltips, voronoiBlacklist: ["victory-area"], labels: labelFormatted, labelComponent: React.createElement(VictoryTooltip, { centerOffset: { y: -10 }, renderInPortal: false, constrainToVisibleArea: true, style: {
|
|
54
60
|
fill: color,
|
|
55
61
|
}, flyoutPadding: 7, flyoutStyle: {
|
|
56
62
|
fill: backgroundColor,
|
|
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
|
|
@@ -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-esbuild.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
28
|
"@ledgerhq/icons-ui": "^0.2.4",
|
|
19
|
-
"@ledgerhq/ui-shared": "^0.1.
|
|
20
|
-
"@types/color": "^3.0.
|
|
21
|
-
"@types/react": "^17.0.
|
|
29
|
+
"@ledgerhq/ui-shared": "^0.1.8-esbuild.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
|
}
|