@ledgerhq/native-ui 0.63.0 → 0.64.0-nightly.20260526030636
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Form/Input/AnimatedInputSelect/useAnimatedInputFocus.d.ts +5 -5
- package/lib/components/Form/Input/AnimatedInputSelect/useAnimatedInputFocus.d.ts.map +1 -1
- package/lib/components/Form/Input/AnimatedInputSelect/useAnimatedInputFocus.js +2 -2
- package/lib/pre-ldls/components/Input/Input.d.ts +2 -2
- package/lib/pre-ldls/components/Input/Input.d.ts.map +1 -1
- package/lib/pre-ldls/components/Input/Input.js +2 -2
- package/package.json +13 -13
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextInputProps } from "react-native";
|
|
2
2
|
type useAnimatedInputFocusProps = {
|
|
3
|
-
onFocusCallback?:
|
|
4
|
-
onBlurCallback?:
|
|
3
|
+
onFocusCallback?: TextInputProps["onFocus"];
|
|
4
|
+
onBlurCallback?: TextInputProps["onBlur"];
|
|
5
5
|
};
|
|
6
6
|
export declare const useAnimatedInputFocus: ({ onFocusCallback, onBlurCallback, }: useAnimatedInputFocusProps) => {
|
|
7
|
-
onFocus: (e:
|
|
8
|
-
onBlur: (e:
|
|
7
|
+
onFocus: (e: import("react-native").FocusEvent) => void;
|
|
8
|
+
onBlur: (e: import("react-native").BlurEvent) => void;
|
|
9
9
|
focused: boolean;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnimatedInputFocus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/AnimatedInputSelect/useAnimatedInputFocus.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useAnimatedInputFocus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/AnimatedInputSelect/useAnimatedInputFocus.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,0BAA0B,GAAG;IAChC,eAAe,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IAC5C,cAAc,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,sCAGnC,0BAA0B;;;;CAc5B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
export const useAnimatedInputFocus = ({ onFocusCallback, onBlurCallback, }) => {
|
|
3
3
|
const [focused, setFocused] = useState(false);
|
|
4
|
-
const onFocus =
|
|
4
|
+
const onFocus = e => {
|
|
5
5
|
setFocused(true);
|
|
6
6
|
onFocusCallback?.(e);
|
|
7
7
|
};
|
|
8
|
-
const onBlur =
|
|
8
|
+
const onBlur = e => {
|
|
9
9
|
setFocused(false);
|
|
10
10
|
onBlurCallback?.(e);
|
|
11
11
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TextInput } from "react-native";
|
|
2
|
+
import { TextInput, TextInputProps } from "react-native";
|
|
3
3
|
import type { JSX } from "react";
|
|
4
4
|
export type IconProps = {
|
|
5
5
|
size?: "XS" | "S" | "M" | "L" | "XL" | "XXL";
|
|
6
6
|
color?: string;
|
|
7
7
|
style?: object;
|
|
8
8
|
};
|
|
9
|
-
export declare const Input: React.ForwardRefExoticComponent<
|
|
9
|
+
export declare const Input: React.ForwardRefExoticComponent<TextInputProps & {
|
|
10
10
|
icon?: ({ size }: IconProps) => JSX.Element;
|
|
11
11
|
} & React.RefAttributes<TextInput>>;
|
|
12
12
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/pre-ldls/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/pre-ldls/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAQ,MAAM,cAAc,CAAC;AAG/D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAyCF,eAAO,MAAM,KAAK;WAtCT,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO;mCAsE5C,CAAC"}
|
|
@@ -37,11 +37,11 @@ export const Input = React.forwardRef(({ icon: Icon, onFocus, onBlur, ...props }
|
|
|
37
37
|
const theme = useContext(ThemeContext);
|
|
38
38
|
const themeType = theme?.colors?.type ?? "light";
|
|
39
39
|
const tokens = useTokens(themeType, [...TOKEN_KEYS]);
|
|
40
|
-
const handleFocus =
|
|
40
|
+
const handleFocus = e => {
|
|
41
41
|
setIsFocused(true);
|
|
42
42
|
onFocus?.(e);
|
|
43
43
|
};
|
|
44
|
-
const handleBlur =
|
|
44
|
+
const handleBlur = e => {
|
|
45
45
|
setIsFocused(false);
|
|
46
46
|
onBlur?.(e);
|
|
47
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/native-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.0-nightly.20260526030636",
|
|
4
4
|
"description": "Ledger Live - Mobile UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"@react-native-community/cli-server-api": "^7.0.3",
|
|
97
97
|
"@react-native-community/datetimepicker": "6.7.5",
|
|
98
98
|
"@react-native-community/slider": "^4.5.7",
|
|
99
|
-
"@react-native/assets-registry": "0.
|
|
100
|
-
"@react-native/babel-preset": "0.
|
|
99
|
+
"@react-native/assets-registry": "0.81.6",
|
|
100
|
+
"@react-native/babel-preset": "0.81.6",
|
|
101
101
|
"@storybook/addon-links": "10.2.0",
|
|
102
102
|
"@storybook/addon-ondevice-actions": "10.1.11",
|
|
103
103
|
"@storybook/addon-ondevice-backgrounds": "10.1.11",
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
"csstype": "^3.0.11",
|
|
135
135
|
"oxlint": "1.51.0",
|
|
136
136
|
"oxfmt": "0.36.0",
|
|
137
|
-
"expo": "
|
|
138
|
-
"expo-asset": "
|
|
139
|
-
"expo-constants": "
|
|
140
|
-
"expo-font": "
|
|
141
|
-
"expo-modules-core": "
|
|
137
|
+
"expo": "54.0.33",
|
|
138
|
+
"expo-asset": "12.0.12",
|
|
139
|
+
"expo-constants": "18.0.13",
|
|
140
|
+
"expo-font": "14.0.11",
|
|
141
|
+
"expo-modules-core": "3.0.29",
|
|
142
142
|
"fs-extra": "^10.0.1",
|
|
143
143
|
"glob": "^7.2.0",
|
|
144
144
|
"lodash": "4.17.21",
|
|
@@ -155,12 +155,12 @@
|
|
|
155
155
|
"minimatch": "^5.1.0",
|
|
156
156
|
"os-browserify": "0.3.0",
|
|
157
157
|
"prop-types": "^15.8.1",
|
|
158
|
-
"react": "19.
|
|
159
|
-
"react-dom": "19.
|
|
158
|
+
"react": "19.1.4",
|
|
159
|
+
"react-dom": "19.1.4",
|
|
160
160
|
"react-is": "19.0.0",
|
|
161
|
-
"react-native": "0.
|
|
162
|
-
"react-native-reanimated": "4.
|
|
163
|
-
"react-native-worklets": "0.
|
|
161
|
+
"react-native": "0.81.6",
|
|
162
|
+
"react-native-reanimated": "4.3.0",
|
|
163
|
+
"react-native-worklets": "0.8.1",
|
|
164
164
|
"react-native-safe-area-context": "5.6.1",
|
|
165
165
|
"react-native-svg": "15.15.1",
|
|
166
166
|
"react-native-web": "~0.19.6",
|