@ledgerhq/native-ui 0.22.1-nightly.0 → 0.22.1-nightly.1

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.
@@ -11,7 +11,7 @@ const Accordion = ({ collapsed = false, children, title, onPress, }) => {
11
11
  };
12
12
  const style = useAnimatedStyle(() => {
13
13
  return {
14
- maxHeight: withTiming(animationHeight.value, config),
14
+ maxHeight: withTiming(animationHeight.value, config), // patch for
15
15
  };
16
16
  });
17
17
  useEffect(() => {
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
- import { FlatListProps } from "react-native";
2
+ import { FlatListProps, ScrollViewProps } from "react-native";
3
3
  import type { HeaderProps } from "./Header";
4
4
  import { BaseStyledProps } from "../../styled";
5
- type ScrollContainerHeaderProps = BaseStyledProps & Omit<HeaderProps, "currentPositionY"> & Omit<FlatListProps<any>, "onScroll" | "data" | "renderItem"> & {
5
+ type ScrollContainerHeaderProps<ItemType> = BaseStyledProps & Omit<HeaderProps, "currentPositionY"> & Omit<FlatListProps<ItemType>, "onScroll" | "data" | "renderItem"> & {
6
6
  children?: React.ReactNode;
7
7
  onScroll?: (y: number) => void;
8
8
  containerProps?: BaseStyledProps;
9
- };
9
+ } & Pick<ScrollViewProps, "stickyHeaderIndices">;
10
10
  declare const ScrollContainerHeader: {
11
- ({ TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, children, onScroll, containerProps, ...props }: ScrollContainerHeaderProps): JSX.Element;
11
+ <ItemType>({ TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, children, onScroll, containerProps, ...props }: ScrollContainerHeaderProps<ItemType>): JSX.Element;
12
12
  Header: {
13
13
  ({ TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, currentPositionY, }: HeaderProps): JSX.Element;
14
14
  PADDING_HORIZONTAL: number;
@@ -10,12 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React from "react";
13
- import { View } from "react-native";
13
+ import { FlatList, View } from "react-native";
14
14
  import Animated, { useAnimatedScrollHandler, useSharedValue } from "react-native-reanimated";
15
15
  import Flex from "../Flex";
16
16
  import Header from "./Header";
17
17
  import baseStyled from "../../styled";
18
- const StyledFlatList = baseStyled.FlatList ``;
18
+ const StyledFlatList = baseStyled(FlatList) ``;
19
19
  const AnimatedFlatList = Animated.createAnimatedComponent(StyledFlatList);
20
20
  const ScrollContainerHeader = (_a) => {
21
21
  var { TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, children, onScroll, containerProps } = _a, props = __rest(_a, ["TopLeftSection", "TopRightSection", "TopMiddleSection", "MiddleSection", "BottomSection", "children", "onScroll", "containerProps"]);
@@ -27,7 +27,7 @@ const ScrollContainerHeader = (_a) => {
27
27
  });
28
28
  return (React.createElement(Flex, Object.assign({ flex: 1 }, containerProps),
29
29
  React.createElement(Header, { TopLeftSection: TopLeftSection, TopRightSection: TopRightSection, TopMiddleSection: TopMiddleSection, MiddleSection: MiddleSection, BottomSection: BottomSection, currentPositionY: currentPositionY }),
30
- React.createElement(AnimatedFlatList, Object.assign({}, props, { onScroll: handleScroll, scrollEventThrottle: 16, data: [...React.Children.toArray(children)], renderItem: ({ item }) => React.createElement(View, null, item), keyExtractor: (_, index) => index }))));
30
+ React.createElement(AnimatedFlatList, Object.assign({}, props, { onScroll: handleScroll, scrollEventThrottle: 16, data: [...React.Children.toArray(children)], renderItem: ({ item }) => React.createElement(View, null, item), keyExtractor: (_, index) => index.toString() }))));
31
31
  };
32
32
  ScrollContainerHeader.Header = Header;
33
33
  export default ScrollContainerHeader;
@@ -17,6 +17,6 @@ const QuickActionList = (_a) => {
17
17
  const renderItem = useCallback(({ item, index }) => {
18
18
  return (React.createElement(QuickActionButton, Object.assign({}, item, { flex: 1, mr: (index + 1) % numColumns > 0 && data && index !== data.length - 1 ? 4 : 0, mb: (data === null || data === void 0 ? void 0 : data.length) && index + numColumns < data.length ? 4 : 0 })));
19
19
  }, []);
20
- return (React.createElement(FlatList, Object.assign({}, otherProps, { data: data, keyExtractor: (_item, index) => `${id}${index}`, horizontal: false, renderItem: renderItem, numColumns: numColumns, style: { width: "100%" } })));
20
+ return (React.createElement(FlatList, Object.assign({}, otherProps, { data: data, keyExtractor: (_item, index) => `${id}${index}`, horizontal: false, renderItem: renderItem, numColumns: numColumns })));
21
21
  };
22
22
  export default QuickActionList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.22.1-nightly.0",
3
+ "version": "0.22.1-nightly.1",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,12 +52,11 @@
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@types/react": "*",
55
- "@types/react-native": "*",
56
55
  "@types/styled-components": "^5.3.3",
57
56
  "@types/styled-components-react-native": "^5.3.3",
58
57
  "react": ">=17",
59
58
  "react-native": ">=0.64.0",
60
- "react-native-reanimated": "^3.0.0",
59
+ "react-native-reanimated": "~3.3.0",
61
60
  "styled-components": "^5.3.3"
62
61
  },
63
62
  "devDependencies": {
@@ -67,15 +66,15 @@
67
66
  "@babel/plugin-proposal-export-namespace-from": "^7.16.0",
68
67
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
69
68
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
70
- "@babel/plugin-transform-arrow-functions": "^7.20.7",
71
- "@babel/plugin-transform-shorthand-properties": "^7.18.6",
72
- "@babel/plugin-transform-template-literals": "^7.18.9",
69
+ "@babel/plugin-transform-arrow-functions": "^7.22.5",
70
+ "@babel/plugin-transform-shorthand-properties": "^7.22.5",
71
+ "@babel/plugin-transform-template-literals": "^7.22.5",
73
72
  "@babel/preset-env": "^7.15.8",
74
73
  "@babel/runtime": "^7.17.2",
75
74
  "@emotion/core": "^11.0.0",
76
75
  "@emotion/native": "^11.0.0",
77
- "@expo/metro-config": "^0.7.1",
78
- "@expo/webpack-config": "^18.0.1",
76
+ "@expo/metro-config": "^0.10.7",
77
+ "@expo/webpack-config": "^18.1.2",
79
78
  "@react-native-async-storage/async-storage": "1.17.12",
80
79
  "@react-native-community/cli-server-api": "^7.0.3",
81
80
  "@react-native-community/datetimepicker": "6.7.5",
@@ -101,7 +100,7 @@
101
100
  "@types/node": "^18.0.0",
102
101
  "@types/prop-types": "^15.7.5",
103
102
  "@types/react": "^18.2.21",
104
- "@types/react-native": "0.71.5",
103
+ "@types/react-native": "0.72.2",
105
104
  "@types/styled-components": "^5.1.3",
106
105
  "@types/styled-components-react-native": "^5.1.3",
107
106
  "assert": "^2.0.0",
@@ -109,37 +108,37 @@
109
108
  "babel-plugin-module-resolver": "^4.1.0",
110
109
  "babel-plugin-react-docgen-typescript": "^1.5.1",
111
110
  "babel-plugin-react-native-web": "^0.19.0",
112
- "babel-preset-expo": "^9.3.0",
111
+ "babel-preset-expo": "^9.5.0",
113
112
  "camelcase": "^6.2.1",
114
113
  "csstype": "^3.0.11",
115
114
  "eslint-plugin-react": "^7.32.2",
116
115
  "eslint-plugin-react-hooks": "^4.6.0",
117
- "expo": "~48.0.9",
118
- "expo-asset": "^8.9.1",
119
- "expo-constants": "^14.2.1",
120
- "expo-font": "^11.1.1",
121
- "expo-modules-core": "^1.2.2",
116
+ "expo": "^49.0.7",
117
+ "expo-asset": "8.10.1",
118
+ "expo-constants": "^14.4.2",
119
+ "expo-font": "^11.4.0",
120
+ "expo-modules-core": "1.5.11",
122
121
  "fs-extra": "^10.0.1",
123
122
  "glob": "^7.2.0",
124
- "metro": "^0.76.0",
125
- "metro-config": "^0.76.0",
126
- "metro-core": "^0.77.0",
127
- "metro-minify-uglify": "^0.76.0",
128
- "metro-react-native-babel-preset": "^0.76.0",
129
- "metro-react-native-babel-transformer": "^0.76.0",
130
- "metro-resolver": "^0.76.0",
131
- "metro-runtime": "^0.76.0",
132
- "metro-source-map": "^0.76.0",
133
- "metro-transform-worker": "^0.76.0",
123
+ "metro": "^0.79.0",
124
+ "metro-config": "^0.79.0",
125
+ "metro-core": "^0.79.0",
126
+ "metro-minify-uglify": "^0.76.8",
127
+ "metro-react-native-babel-preset": "^0.77.0",
128
+ "metro-react-native-babel-transformer": "^0.77.0",
129
+ "metro-resolver": "^0.79.0",
130
+ "metro-runtime": "^0.79.0",
131
+ "metro-source-map": "^0.79.0",
132
+ "metro-transform-worker": "^0.79.0",
134
133
  "minimatch": "^5.1.0",
135
134
  "prop-types": "^15.8.1",
136
135
  "react": "^18.2.0",
137
136
  "react-dom": "^18.2.0",
138
137
  "react-is": "^18",
139
- "react-native": "0.71.6",
140
- "react-native-reanimated": "^3.1.0",
138
+ "react-native": "0.72.3",
139
+ "react-native-reanimated": "~3.3.0",
141
140
  "react-native-safe-area-context": "^4.5.0",
142
- "react-native-web": "~0.19.0",
141
+ "react-native-web": "~0.19.6",
143
142
  "regenerator-runtime": "^0.14.0",
144
143
  "rimraf": "^4.4.1",
145
144
  "styled-components": "^5.3.3",
@@ -166,7 +165,7 @@
166
165
  "lint:fix": "pnpm lint --fix",
167
166
  "lint:css": "stylelint './src/**/*.{js,jsx,ts,tsx}'",
168
167
  "release": "yarn publish ./lib --access public",
169
- "expo": "expo start",
168
+ "expo-start": "expo start",
170
169
  "storybook": "start-storybook -c .storybook-web -p 6006",
171
170
  "typecheck": "tsc --noEmit -p tsconfig.json",
172
171
  "test": "exit 0",