@ledgerhq/native-ui 0.7.14 → 0.7.17-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.
Files changed (194) hide show
  1. package/README.md +13 -16
  2. package/{assets → lib/assets}/fonts/alpha/HMAlphaMono-Medium.otf +0 -0
  3. package/{assets → lib/assets}/fonts/inter/Inter-Bold.otf +0 -0
  4. package/{assets → lib/assets}/fonts/inter/Inter-Medium.otf +0 -0
  5. package/{assets → lib/assets}/fonts/inter/Inter-SemiBold.otf +0 -0
  6. package/{assets → lib/assets}/icons.d.ts +0 -0
  7. package/{assets → lib/assets}/icons.js +0 -0
  8. package/{assets → lib/assets}/index.d.ts +0 -0
  9. package/{assets → lib/assets}/index.js +0 -0
  10. package/{assets → lib/assets}/logos/LedgerLiveAltRegular.d.ts +0 -0
  11. package/{assets → lib/assets}/logos/LedgerLiveAltRegular.js +0 -0
  12. package/{assets → lib/assets}/logos/LedgerLiveRegular.d.ts +0 -0
  13. package/{assets → lib/assets}/logos/LedgerLiveRegular.js +0 -0
  14. package/{assets → lib/assets}/logos/index.d.ts +0 -0
  15. package/{assets → lib/assets}/logos/index.js +0 -0
  16. package/{components → lib/components}/Carousel/index.d.ts +0 -0
  17. package/{components → lib/components}/Carousel/index.js +0 -0
  18. package/{components → lib/components}/ChartCard/index.d.ts +0 -0
  19. package/{components → lib/components}/ChartCard/index.js +0 -0
  20. package/{components → lib/components}/Form/Checkbox/index.d.ts +0 -0
  21. package/{components → lib/components}/Form/Checkbox/index.js +0 -0
  22. package/{components → lib/components}/Form/Input/BaseInput/index.d.ts +2 -2
  23. package/{components → lib/components}/Form/Input/BaseInput/index.js +0 -0
  24. package/{components → lib/components}/Form/Input/LegendInput/index.d.ts +0 -0
  25. package/{components → lib/components}/Form/Input/LegendInput/index.js +0 -0
  26. package/{components → lib/components}/Form/Input/NumberInput/index.d.ts +0 -0
  27. package/{components → lib/components}/Form/Input/NumberInput/index.js +0 -0
  28. package/{components → lib/components}/Form/Input/QrCodeInput/index.d.ts +0 -0
  29. package/{components → lib/components}/Form/Input/QrCodeInput/index.js +0 -0
  30. package/{components → lib/components}/Form/Input/SearchInput/index.d.ts +0 -0
  31. package/{components → lib/components}/Form/Input/SearchInput/index.js +0 -0
  32. package/{components → lib/components}/Form/Input/index.d.ts +0 -0
  33. package/{components → lib/components}/Form/Input/index.js +0 -0
  34. package/{components → lib/components}/Form/SelectableList.d.ts +0 -0
  35. package/{components → lib/components}/Form/SelectableList.js +0 -0
  36. package/{components → lib/components}/Form/Slider/components.d.ts +0 -0
  37. package/{components → lib/components}/Form/Slider/components.js +0 -0
  38. package/{components → lib/components}/Form/Slider/index.d.ts +0 -0
  39. package/{components → lib/components}/Form/Slider/index.js +0 -0
  40. package/{components → lib/components}/Form/Slider/index.native.d.ts +0 -0
  41. package/{components → lib/components}/Form/Slider/index.native.js +0 -0
  42. package/{components → lib/components}/Form/Switch/index.d.ts +0 -0
  43. package/{components → lib/components}/Form/Switch/index.js +0 -0
  44. package/{components → lib/components}/Form/Toggle/index.d.ts +0 -0
  45. package/{components → lib/components}/Form/Toggle/index.js +0 -0
  46. package/{components → lib/components}/Form/index.d.ts +0 -0
  47. package/{components → lib/components}/Form/index.js +0 -0
  48. package/{components → lib/components}/Icon/BoxedIcon.d.ts +0 -0
  49. package/{components → lib/components}/Icon/BoxedIcon.js +0 -0
  50. package/{components → lib/components}/Icon/Icon.d.ts +0 -0
  51. package/{components → lib/components}/Icon/Icon.js +0 -0
  52. package/{components → lib/components}/Icon/IconBox/index.d.ts +0 -0
  53. package/{components → lib/components}/Icon/IconBox/index.js +0 -0
  54. package/{components → lib/components}/Icon/index.d.ts +0 -0
  55. package/{components → lib/components}/Icon/index.js +0 -0
  56. package/{components → lib/components}/Icon/type.d.ts +0 -0
  57. package/{components → lib/components}/Icon/type.js +0 -0
  58. package/{components → lib/components}/Layout/Box/index.d.ts +0 -0
  59. package/{components → lib/components}/Layout/Box/index.js +0 -0
  60. package/{components → lib/components}/Layout/Collapse/Accordion/index.d.ts +0 -0
  61. package/{components → lib/components}/Layout/Collapse/Accordion/index.js +0 -0
  62. package/{components → lib/components}/Layout/Flex/index.d.ts +0 -0
  63. package/{components → lib/components}/Layout/Flex/index.js +0 -0
  64. package/{components → lib/components}/Layout/List/IconBoxList/index.d.ts +0 -0
  65. package/{components → lib/components}/Layout/List/IconBoxList/index.js +0 -0
  66. package/{components → lib/components}/Layout/List/List/index.d.ts +0 -0
  67. package/{components → lib/components}/Layout/List/List/index.js +0 -0
  68. package/{components → lib/components}/Layout/List/NumberedList/index.d.ts +0 -0
  69. package/{components → lib/components}/Layout/List/NumberedList/index.js +0 -0
  70. package/{components → lib/components}/Layout/List/TipList/index.d.ts +0 -0
  71. package/{components → lib/components}/Layout/List/TipList/index.js +0 -0
  72. package/{components → lib/components}/Layout/List/index.d.ts +0 -0
  73. package/{components → lib/components}/Layout/List/index.js +0 -0
  74. package/{components → lib/components}/Layout/Modals/BaseModal/index.d.ts +0 -0
  75. package/{components → lib/components}/Layout/Modals/BaseModal/index.js +0 -0
  76. package/{components → lib/components}/Layout/Modals/BottomDrawer/index.d.ts +0 -0
  77. package/{components → lib/components}/Layout/Modals/BottomDrawer/index.js +0 -0
  78. package/{components → lib/components}/Layout/Modals/Popin/index.d.ts +0 -0
  79. package/{components → lib/components}/Layout/Modals/Popin/index.js +0 -0
  80. package/{components → lib/components}/Layout/Modals/Tooltip/index.d.ts +0 -0
  81. package/{components → lib/components}/Layout/Modals/Tooltip/index.js +0 -0
  82. package/{components → lib/components}/Layout/Modals/index.d.ts +0 -0
  83. package/{components → lib/components}/Layout/Modals/index.js +0 -0
  84. package/{components → lib/components}/Layout/ScrollContainer/index.d.ts +0 -0
  85. package/{components → lib/components}/Layout/ScrollContainer/index.js +0 -0
  86. package/{components → lib/components}/Layout/ScrollContainerHeader/Header.d.ts +0 -0
  87. package/{components → lib/components}/Layout/ScrollContainerHeader/Header.js +0 -0
  88. package/{components → lib/components}/Layout/ScrollContainerHeader/index.d.ts +0 -0
  89. package/{components → lib/components}/Layout/ScrollContainerHeader/index.js +0 -0
  90. package/{components → lib/components}/Layout/ScrollListContainer/index.d.ts +0 -0
  91. package/{components → lib/components}/Layout/ScrollListContainer/index.js +0 -0
  92. package/{components → lib/components}/Layout/Table/Row.d.ts +0 -0
  93. package/{components → lib/components}/Layout/Table/Row.js +0 -0
  94. package/{components → lib/components}/Layout/index.d.ts +0 -0
  95. package/{components → lib/components}/Layout/index.js +0 -0
  96. package/{components → lib/components}/Layout/types.d.ts +0 -0
  97. package/{components → lib/components}/Layout/types.js +0 -0
  98. package/{components → lib/components}/Loader/InfiniteLoader/index.d.ts +0 -0
  99. package/{components → lib/components}/Loader/InfiniteLoader/index.js +0 -0
  100. package/{components → lib/components}/Loader/ProgressLoader/index.d.ts +0 -0
  101. package/{components → lib/components}/Loader/ProgressLoader/index.js +0 -0
  102. package/{components → lib/components}/Loader/index.d.ts +0 -0
  103. package/{components → lib/components}/Loader/index.js +0 -0
  104. package/{components → lib/components}/Navigation/FlowStepper/index.d.ts +0 -0
  105. package/{components → lib/components}/Navigation/FlowStepper/index.js +0 -0
  106. package/{components → lib/components}/Navigation/SlideIndicator/index.d.ts +0 -0
  107. package/{components → lib/components}/Navigation/SlideIndicator/index.js +0 -0
  108. package/{components → lib/components}/Navigation/Stepper/index.d.ts +0 -0
  109. package/{components → lib/components}/Navigation/Stepper/index.js +0 -0
  110. package/{components → lib/components}/Navigation/index.d.ts +0 -0
  111. package/{components → lib/components}/Navigation/index.js +0 -0
  112. package/{components → lib/components}/ProgressBar/index.d.ts +0 -0
  113. package/{components → lib/components}/ProgressBar/index.js +0 -0
  114. package/{components → lib/components}/Tabs/Chip/index.d.ts +0 -0
  115. package/{components → lib/components}/Tabs/Chip/index.js +0 -0
  116. package/{components → lib/components}/Tabs/Graph/index.d.ts +0 -0
  117. package/{components → lib/components}/Tabs/Graph/index.js +0 -0
  118. package/{components → lib/components}/Tabs/TemplateTabs/index.d.ts +0 -0
  119. package/{components → lib/components}/Tabs/TemplateTabs/index.js +0 -0
  120. package/{components → lib/components}/Tabs/index.d.ts +0 -0
  121. package/{components → lib/components}/Tabs/index.js +0 -0
  122. package/{components → lib/components}/Text/getTextStyle.d.ts +0 -0
  123. package/{components → lib/components}/Text/getTextStyle.js +4 -1
  124. package/{components → lib/components}/Text/index.d.ts +0 -0
  125. package/{components → lib/components}/Text/index.js +0 -0
  126. package/{components → lib/components}/chart/index.d.ts +0 -0
  127. package/{components → lib/components}/chart/index.js +8 -2
  128. package/{components → lib/components}/chart/types.d.ts +0 -0
  129. package/{components → lib/components}/chart/types.js +0 -0
  130. package/{components → lib/components}/cta/Button/getButtonStyle.d.ts +0 -0
  131. package/{components → lib/components}/cta/Button/getButtonStyle.js +0 -0
  132. package/{components → lib/components}/cta/Button/index.d.ts +0 -0
  133. package/{components → lib/components}/cta/Button/index.js +0 -0
  134. package/{components → lib/components}/cta/Link/getLinkStyle.d.ts +0 -0
  135. package/{components → lib/components}/cta/Link/getLinkStyle.js +0 -0
  136. package/{components → lib/components}/cta/Link/index.d.ts +0 -0
  137. package/{components → lib/components}/cta/Link/index.js +0 -0
  138. package/{components → lib/components}/cta/getCtaStyle.d.ts +0 -0
  139. package/{components → lib/components}/cta/getCtaStyle.js +0 -0
  140. package/{components → lib/components}/cta/index.d.ts +0 -0
  141. package/{components → lib/components}/cta/index.js +0 -0
  142. package/{components → lib/components}/index.d.ts +0 -0
  143. package/{components → lib/components}/index.js +0 -0
  144. package/{components → lib/components}/message/Alert/index.d.ts +0 -0
  145. package/{components → lib/components}/message/Alert/index.js +0 -0
  146. package/{components → lib/components}/message/Log/Brackets.d.ts +0 -0
  147. package/{components → lib/components}/message/Log/Brackets.js +0 -0
  148. package/{components → lib/components}/message/Log/index.d.ts +1 -1
  149. package/{components → lib/components}/message/Log/index.js +0 -0
  150. package/{components → lib/components}/message/Notification/index.d.ts +0 -0
  151. package/{components → lib/components}/message/Notification/index.js +4 -1
  152. package/{components → lib/components}/message/index.d.ts +0 -0
  153. package/{components → lib/components}/message/index.js +0 -0
  154. package/{components → lib/components}/styled.d.ts +0 -0
  155. package/{components → lib/components}/styled.js +4 -1
  156. package/{components → lib/components}/tags/Badge/index.d.ts +0 -0
  157. package/{components → lib/components}/tags/Badge/index.js +0 -0
  158. package/{components → lib/components}/tags/Tag/index.d.ts +0 -0
  159. package/{components → lib/components}/tags/Tag/index.js +0 -0
  160. package/{components → lib/components}/tags/index.d.ts +0 -0
  161. package/{components → lib/components}/tags/index.js +0 -0
  162. package/{components → lib/components}/transitions/Fade.d.ts +0 -0
  163. package/{components → lib/components}/transitions/Fade.js +0 -0
  164. package/{components → lib/components}/transitions/Slide.d.ts +0 -0
  165. package/{components → lib/components}/transitions/Slide.js +0 -0
  166. package/{components → lib/components}/transitions/Transition.d.ts +0 -0
  167. package/{components → lib/components}/transitions/Transition.js +0 -0
  168. package/{components → lib/components}/transitions/index.d.ts +0 -0
  169. package/{components → lib/components}/transitions/index.js +0 -0
  170. package/{components → lib/components}/transitions/types.d.ts +0 -0
  171. package/{components → lib/components}/transitions/types.js +0 -0
  172. package/{helpers → lib/helpers}/getDeviceSize.d.ts +0 -0
  173. package/{helpers → lib/helpers}/getDeviceSize.js +0 -0
  174. package/{icons → lib/icons}/BracketLeft.d.ts +0 -0
  175. package/{icons → lib/icons}/BracketLeft.js +0 -0
  176. package/{icons → lib/icons}/BracketRight.d.ts +0 -0
  177. package/{icons → lib/icons}/BracketRight.js +0 -0
  178. package/{icons → lib/icons}/Close.d.ts +0 -0
  179. package/{icons → lib/icons}/Close.js +0 -0
  180. package/{icons → lib/icons}/Info.d.ts +0 -0
  181. package/{icons → lib/icons}/Info.js +0 -0
  182. package/{index.d.ts → lib/index.d.ts} +0 -0
  183. package/{index.js → lib/index.js} +0 -0
  184. package/{styles → lib/styles}/InvertTheme.d.ts +0 -0
  185. package/{styles → lib/styles}/InvertTheme.js +0 -0
  186. package/{styles → lib/styles}/StyleProvider.d.ts +0 -0
  187. package/{styles → lib/styles}/StyleProvider.js +0 -0
  188. package/{styles → lib/styles}/helpers.d.ts +0 -0
  189. package/{styles → lib/styles}/helpers.js +0 -0
  190. package/{styles → lib/styles}/index.d.ts +0 -0
  191. package/{styles → lib/styles}/index.js +0 -0
  192. package/{styles → lib/styles}/theme.d.ts +1 -1
  193. package/{styles → lib/styles}/theme.js +2 -1
  194. package/package.json +127 -15
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # `@ledgerhq/native-ui`
2
2
 
3
- [![build](https://github.com/LedgerHQ/ui/actions/workflows/native.yml/badge.svg)](https://github.com/LedgerHQ/ui/actions/workflows/native.yml)
4
3
  [![npm](https://img.shields.io/npm/v/@ledgerhq/native-ui)](https://www.npmjs.com/package/@ledgerhq/native-ui)
5
- [![storybook](https://img.shields.io/badge/Storybook-📚-61DBFB)](https://ledger-live-ui-native.vercel.app)
4
+ [![storybook](https://img.shields.io/badge/Storybook-📚-61DBFB)](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://ledger-live-ui-native.vercel.app/)**
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/styles";
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
@@ -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
- }, "pl" | "alignItems" | "flexDirection">;
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
- }, "pr" | "alignItems" | "flexDirection">;
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
@@ -3,6 +3,7 @@ const bracketSizes = {
3
3
  h2: 28,
4
4
  h3: 20,
5
5
  h4: 18,
6
+ h5: 18,
6
7
  large: 20,
7
8
  body: 20,
8
9
  bodyLineHeight: 20,
@@ -37,7 +38,9 @@ export function getTextTypeStyle({ bracket }) {
37
38
  },
38
39
  h4: {
39
40
  fontFamily: "Inter",
40
- textTransform: "uppercase",
41
+ },
42
+ h5: {
43
+ fontFamily: "Inter",
41
44
  },
42
45
  large: {
43
46
  fontFamily: "Inter",
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, xAxisFormatter = (timestamp) => `${new Date(timestamp).toLocaleDateString()}`, disableTooltips = false, }) => {
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, { disable: disableTooltips, voronoiBlacklist: ["victory-area"], labels: labelFormatted, labelComponent: React.createElement(VictoryTooltip, { centerOffset: { y: -10 }, renderInPortal: false, constrainToVisibleArea: true, style: {
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
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { BaseTextProps as TextProps } from "../../Text";
3
3
  import { FlexBoxProps } from "../../Layout/Flex";
4
4
  export declare type Props = React.PropsWithChildren<FlexBoxProps & {
5
- extraTextProps?: TextProps;
5
+ extraTextProps?: Omit<TextProps, "children">;
6
6
  }>;
7
7
  declare function Log({ children, extraTextProps }: Props): JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof Log>;
@@ -6,6 +6,7 @@ import Text from "../../Text";
6
6
  import CloseMedium from "@ledgerhq/icons-ui/native/CloseMedium";
7
7
  import { Flex } from "../../Layout";
8
8
  import { space } from "styled-system";
9
+ import { ExternalLinkMedium } from "@ledgerhq/icons-ui/native";
9
10
  const NotificationContainer = styled.View `
10
11
  display: flex;
11
12
  width: 100%;
@@ -35,7 +36,9 @@ export default function Notification({ Icon, iconColor, variant = "primary", num
35
36
  !!subtitle && (React.createElement(Text, { variant: "body", fontWeight: "medium", color: variant === "primary" ? colors.neutral.c00 : colors.neutral.c80, mt: 2 }, subtitle)),
36
37
  linkText && onLinkPress && (React.createElement(Flex, { mt: 3 },
37
38
  React.createElement(TouchableOpacity, { onPress: onLinkPress },
38
- React.createElement(Text, { variant: "body", fontWeight: "semiBold", color: textColor }, linkText))))),
39
+ React.createElement(Flex, { flexDirection: "row", alignItems: "center" },
40
+ React.createElement(Text, { variant: "body", fontWeight: "semiBold", color: textColor, mr: 3 }, linkText),
41
+ React.createElement(ExternalLinkMedium, { size: 16, color: textColor })))))),
39
42
  onClose && (React.createElement(FlexBox, { marginLeft: "auto", pl: 16 },
40
43
  React.createElement(ClosePressableExtendedBounds, { onPress: onClose },
41
44
  React.createElement(CloseMedium, { size: 14, color: textColor }))))));
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
- return styled(target[property].apply(styled, [baseStyles]));
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
@@ -1,6 +1,6 @@
1
1
  import { ColorPalette } from "@ledgerhq/ui-shared";
2
2
  export declare const space: number[];
3
- export declare type TextVariants = "h1" | "h2" | "h3" | "h4" | "large" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny";
3
+ export declare type TextVariants = "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "subtitle" | "tiny";
4
4
  export declare type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;
5
5
  export declare const fontSizes: ThemeScale<number, TextVariants>;
6
6
  export declare const radii: number[];
@@ -16,7 +16,8 @@ export const fontSizes = [10, 11, 12, 13, 14, 16, 18, 24, 28];
16
16
  ] = fontSizes;
17
17
  fontSizes.bodyLineHeight = fontSizes.body;
18
18
  fontSizes.paragraphLineHeight = fontSizes.paragraph;
19
- fontSizes.h4 = fontSizes.h3;
19
+ fontSizes.h4 = fontSizes.h2;
20
+ fontSizes.h5 = fontSizes.h3;
20
21
  export const radii = [0, 4, 8];
21
22
  export const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];
22
23
  const theme = {
package/package.json CHANGED
@@ -1,29 +1,41 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.7.14",
4
- "description": "Ledger Live - React Native UI",
3
+ "version": "0.7.17-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
- "components",
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.4",
19
- "@ledgerhq/ui-shared": "^0.1.6",
20
- "@types/color": "^3.0.2",
21
- "@types/react": "^17.0.37",
28
+ "@ledgerhq/icons-ui": "^0.2.5-nightly.0",
29
+ "@ledgerhq/ui-shared": "^0.1.7-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": "^0.65.0",
35
- "react-native-reanimated": "^2.2.4",
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.1-nightly.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 --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
  }