@ledgerhq/native-ui 0.30.1-nightly.0 → 0.31.0-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.
@@ -4,6 +4,7 @@ import { StyleProp, ViewStyle, TextInput } from "react-native";
4
4
  export type InputStatus = "default" | "focused" | "filled" | "error";
5
5
  export interface AnimatedInputProps extends BaseInputType {
6
6
  style?: StyleProp<ViewStyle>;
7
+ largeMode?: boolean;
7
8
  }
8
9
  declare const _default: React.ForwardRefExoticComponent<AnimatedInputProps & React.RefAttributes<TextInput>>;
9
10
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/AnimatedInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAmB,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMhF,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AACrE,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;;AAiED,wBAA+C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/AnimatedInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EACL,SAAS,EAGT,SAAS,EACT,SAAS,EAGV,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AACrE,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;AA6FD,wBAA+C"}
@@ -1,7 +1,7 @@
1
- import React from "react";
1
+ import React, { useCallback, useState } from "react";
2
2
  import { BaseInput } from "..";
3
3
  import styled, { useTheme } from "styled-components/native";
4
- import { View } from "react-native";
4
+ import { View, } from "react-native";
5
5
  import { inputTextColor, inputStatusColors, getInputStatus } from "./inputTextColor";
6
6
  import { useAnimatedInputFocus } from "./useAnimatedInputFocus";
7
7
  import { AnimatedNotchedLabel } from "./AnimatedNotchedLabel";
@@ -9,26 +9,42 @@ const InputContainer = styled(View) `
9
9
  position: relative;
10
10
  box-sizing: border-box;
11
11
  `;
12
+ const LARGE_MODE_LINE_HEIGHT = 18;
13
+ const HEIGHT = 56;
12
14
  const AnimatedInput = ({ style = { width: "100%" }, ...textInputProps }, ref) => {
13
- const { placeholder, onFocus: onFocusCallback, onBlur: onBlurCallback, error, value, ...rest } = textInputProps;
15
+ const { placeholder, onFocus: onFocusCallback, onBlur: onBlurCallback, error, value, largeMode = false, ...rest } = textInputProps;
16
+ const [height, setHeight] = useState(HEIGHT);
14
17
  const theme = useTheme();
15
18
  const { onFocus, onBlur, focused } = useAnimatedInputFocus({
16
19
  onFocusCallback,
17
20
  onBlurCallback,
18
21
  });
22
+ const [previousLineCount, setPreviousLineCount] = useState(1);
19
23
  const inputStatus = getInputStatus({ focused, hasError: !!error, hasValue: !!value });
20
24
  const displayClearCross = inputStatus === "error" || inputStatus === "focused";
25
+ const handleContentSizeChange = useCallback((event) => {
26
+ const contentHeight = event.nativeEvent.contentSize.height;
27
+ const currentLineCount = Math.round(contentHeight / LARGE_MODE_LINE_HEIGHT);
28
+ if (currentLineCount !== previousLineCount) {
29
+ const newHeight = HEIGHT + (currentLineCount - 1) * LARGE_MODE_LINE_HEIGHT;
30
+ setHeight(newHeight);
31
+ setPreviousLineCount(currentLineCount);
32
+ }
33
+ }, [previousLineCount]);
21
34
  return (React.createElement(InputContainer, { status: inputStatus, style: style },
22
35
  placeholder && (React.createElement(AnimatedNotchedLabel, { placeholder: placeholder, inputStatus: inputStatus, value: value })),
23
- React.createElement(BaseInput, { ref: ref, onFocus: onFocus, onBlur: onBlur, error: error, value: value, color: theme ? inputTextColor[inputStatus]({ theme }) : "neutral.c100", inputContainerStyle: {
36
+ React.createElement(BaseInput, { ref: ref, onFocus: onFocus, onBlur: onBlur, error: error, multiline: largeMode, value: value, color: theme ? inputTextColor[inputStatus]({ theme }) : "neutral.c100", inputContainerStyle: {
24
37
  backgroundColor: "none",
25
38
  borderColor: theme ? inputStatusColors[inputStatus]({ theme }) : "neutral.c100",
26
39
  borderRadius: 8,
27
- height: inputStatus !== "error" ? 56 : 48,
40
+ height: inputStatus !== "error" ? height : 48,
41
+ paddingTop: largeMode ? 14 : 0,
42
+ paddingBottom: largeMode ? 14 : 0,
43
+ marginBottom: largeMode ? 40 : 0,
28
44
  }, baseInputContainerStyle: {
29
- paddingRight: displayClearCross ? 8 : 14,
45
+ paddingRight: displayClearCross ? (largeMode ? 20 : 8) : 14,
30
46
  }, inputErrorContainerStyles: {
31
47
  marginTop: 8,
32
- }, inputErrorColor: theme ? inputStatusColors[inputStatus]({ theme }) : "neutral.c100", showErrorIcon: true, ...rest })));
48
+ }, inputErrorColor: theme ? inputStatusColors[inputStatus]({ theme }) : "neutral.c100", showErrorIcon: true, onContentSizeChange: largeMode ? handleContentSizeChange : undefined, largeMode: largeMode, ...rest })));
33
49
  };
34
50
  export default React.forwardRef(AnimatedInput);
@@ -22,6 +22,12 @@ export type InputProps<T = string> = Omit<CommonProps, "value" | "onChange"> & {
22
22
  renderRight?: ((props: InputProps<T>, ref: React.RefObject<{
23
23
  clear: () => void;
24
24
  }>) => React.ReactNode) | React.ReactNode;
25
+ /**
26
+ * A function that will render some content at the bottom right of the input.
27
+ */
28
+ renderBottomRight?: ((props: InputProps<T>, ref: React.RefObject<{
29
+ clear: () => void;
30
+ }>) => React.ReactNode) | React.ReactNode;
25
31
  /**
26
32
  * Triggered when the input value is updated.
27
33
  */
@@ -69,6 +75,10 @@ export type InputProps<T = string> = Omit<CommonProps, "value" | "onChange"> & {
69
75
  * Optional text color parameter.
70
76
  */
71
77
  color?: string;
78
+ /**
79
+ * If true, inputBottomRight will replace inputRight.
80
+ */
81
+ largeMode?: boolean;
72
82
  };
73
83
  export declare const InputRenderLeftContainer: 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>> & {
74
84
  columnGap?: string | number | undefined;
@@ -94,6 +104,7 @@ export declare const InputRenderRightContainer: import("styled-components").Styl
94
104
  flexDirection: string;
95
105
  paddingLeft: string;
96
106
  }, "alignItems" | "flexDirection" | "paddingLeft">;
107
+ export declare const InputRenderBottomRightContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("../../../styled").BaseStyledProps, never>;
97
108
  declare function Input<T = string>(props: InputProps<T>, ref?: any): JSX.Element;
98
109
  declare const _default: <T>(props: InputProps<T> & {
99
110
  ref?: React.ForwardedRef<TextInput> | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/BaseInput/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAuE,MAAM,OAAO,CAAC;AAC5F,OAAO,EACL,SAAS,EACT,cAAc,EAEd,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC7E;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC;IACT;;OAEG;IACH,UAAU,CAAC,EACP,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GACxF,KAAK,CAAC,SAAS,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EACR,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GACxF,KAAK,CAAC,SAAS,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAC3C;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAA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AEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACvD;;OAEG;IACH,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC;;OAEG;IACH,yBAAyB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAuEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;mDAIhC,CAAC;AAEN,eAAO,MAAM,yBAAyB;;;;;;;;;;;kDAIjC,CAAC;AAEN,eAAO,MAAM,+BAA+B,6KAI3C,CAAC;AAkCF,iBAAS,KAAK,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,OAAO,CAqGvE;mCAGQ,WAAW,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,YAAY,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;CAAE,KAClE,WAAW,YAAY,CAAC;AAF7B,wBAE8B"}
@@ -14,6 +14,7 @@ const InputContainer = styled.View `
14
14
  color: ${(p) => p.theme.colors.neutral.c100};
15
15
  align-items: center;
16
16
  padding: 0px 16px;
17
+ position: relative;
17
18
 
18
19
  ${(p) => p.disabled &&
19
20
  css `
@@ -73,11 +74,28 @@ export const InputRenderRightContainer = styled(FlexBox).attrs(() => ({
73
74
  flexDirection: "row",
74
75
  paddingLeft: "8px",
75
76
  })) ``;
77
+ export const InputRenderBottomRightContainer = styled(FlexBox) `
78
+ position: absolute;
79
+ bottom: 2px;
80
+ right: 8px;
81
+ `;
82
+ const RenderRight = ({ renderRight, props, inputRef }) => {
83
+ if (!renderRight)
84
+ return null;
85
+ return (React.createElement(InputRenderRightContainer, null, typeof renderRight === "function" ? renderRight(props, inputRef) : renderRight));
86
+ };
87
+ const RenderBottomRight = ({ renderBottomRight, props, inputRef }) => {
88
+ if (!renderBottomRight)
89
+ return null;
90
+ return (React.createElement(InputRenderBottomRightContainer, null, typeof renderBottomRight === "function"
91
+ ? renderBottomRight(props, inputRef)
92
+ : renderBottomRight));
93
+ };
76
94
  // Yes, this is dirty. If you can figure out a better way please change the code :).
77
95
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
78
96
  const IDENTITY = (_) => _;
79
97
  function Input(props, ref) {
80
- const { value, onChange, onChangeText, onChangeEvent, disabled, error, renderLeft, renderRight, serialize = IDENTITY, deserialize = IDENTITY, containerStyle, hasBorder = true, inputContainerStyle, baseInputContainerStyle, inputErrorContainerStyles, autoFocus, onFocus, onBlur, color, inputErrorColor = "error.c50", showErrorIcon = false, ...textInputProps } = props;
98
+ const { value, onChange, onChangeText, onChangeEvent, disabled, error, renderLeft, renderRight, renderBottomRight, serialize = IDENTITY, deserialize = IDENTITY, containerStyle, hasBorder = true, inputContainerStyle, baseInputContainerStyle, inputErrorContainerStyles, autoFocus, onFocus, onBlur, color, inputErrorColor = "error.c50", showErrorIcon = false, largeMode, ...textInputProps } = props;
81
99
  const inputRef = useRef();
82
100
  useImperativeHandle(ref, () => inputRef.current, [inputRef]);
83
101
  const inputValue = useMemo(() => serialize(value), [serialize, value]);
@@ -100,7 +118,7 @@ function Input(props, ref) {
100
118
  setFocus(false);
101
119
  onBlur?.(e);
102
120
  }, style: { ...(color ? { color: color } : {}), ...baseInputContainerStyle } }),
103
- typeof renderRight === "function" ? renderRight(props, inputRef) : renderRight),
121
+ largeMode ? (React.createElement(RenderBottomRight, { renderBottomRight: renderBottomRight, props: props, inputRef: inputRef })) : (React.createElement(RenderRight, { renderRight: renderRight, props: props, inputRef: inputRef }))),
104
122
  !!error && !disabled && (React.createElement(FlexBox, { flexDirection: "row", alignItems: "center", style: inputErrorContainerStyles },
105
123
  showErrorIcon && React.createElement(DeleteCircleFill, { color: inputErrorColor, size: "S" }),
106
124
  React.createElement(InputErrorText, { color: inputErrorColor, variant: "small", mt: 3 }, error)))));
@@ -9,6 +9,9 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
9
9
  renderRight?: React.ReactNode | ((props: InputProps<string>, ref: React.RefObject<{
10
10
  clear: () => void;
11
11
  }>) => React.ReactNode);
12
+ renderBottomRight?: React.ReactNode | ((props: InputProps<string>, ref: React.RefObject<{
13
+ clear: () => void;
14
+ }>) => React.ReactNode);
12
15
  onChange?: ((value: string) => void) | undefined;
13
16
  onChangeEvent?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
14
17
  serialize?: ((value: string) => string) | undefined;
@@ -21,6 +24,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
21
24
  showErrorIcon?: boolean | undefined;
22
25
  hasBorder?: boolean | undefined;
23
26
  color?: string | undefined;
27
+ largeMode?: boolean | undefined;
24
28
  } & {
25
29
  legend: string;
26
30
  } & React.RefAttributes<TextInput>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/LegendInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAc,EAAE,UAAU,EAA6B,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;AAsB5E,wBAA6C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/LegendInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAc,EAAE,UAAU,EAA6B,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsB5E,wBAA6C"}
@@ -9,6 +9,9 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
9
9
  renderRight?: React.ReactNode | ((props: InputProps<number | undefined>, ref: React.RefObject<{
10
10
  clear: () => void;
11
11
  }>) => React.ReactNode);
12
+ renderBottomRight?: React.ReactNode | ((props: InputProps<number | undefined>, ref: React.RefObject<{
13
+ clear: () => void;
14
+ }>) => React.ReactNode);
12
15
  onChange?: ((value: number | undefined) => void) | undefined;
13
16
  onChangeEvent?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
14
17
  serialize?: ((value: number | undefined) => string) | undefined;
@@ -21,6 +24,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
21
24
  showErrorIcon?: boolean | undefined;
22
25
  hasBorder?: boolean | undefined;
23
26
  color?: string | undefined;
27
+ largeMode?: boolean | undefined;
24
28
  } & {
25
29
  onPercentClick: (percent: number) => void;
26
30
  min?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/NumberInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFjD,wBAA6C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/NumberInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFjD,wBAA6C"}
@@ -10,6 +10,9 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
10
10
  renderRight?: React.ReactNode | ((props: InputProps<string>, ref: React.RefObject<{
11
11
  clear: () => void;
12
12
  }>) => React.ReactNode);
13
+ renderBottomRight?: React.ReactNode | ((props: InputProps<string>, ref: React.RefObject<{
14
+ clear: () => void;
15
+ }>) => React.ReactNode);
13
16
  onChange?: ((value: string) => void) | undefined;
14
17
  onChangeEvent?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
15
18
  serialize?: ((value: string) => string) | undefined;
@@ -22,6 +25,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
22
25
  showErrorIcon?: boolean | undefined;
23
26
  hasBorder?: boolean | undefined;
24
27
  color?: string | undefined;
28
+ largeMode?: boolean | undefined;
25
29
  } & {
26
30
  onQrCodeClick?: ((event: GestureResponderEvent) => void) | undefined;
27
31
  } & React.RefAttributes<TextInput>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/QrCodeInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAoB,MAAM,cAAc,CAAC;AAEvE,OAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;AA2CjD,wBAA6C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/QrCodeInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAoB,MAAM,cAAc,CAAC;AAEvE,OAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CjD,wBAA6C"}
@@ -9,6 +9,9 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
9
9
  renderRight?: React.ReactNode | ((props: InputProps<string>, ref: React.RefObject<{
10
10
  clear: () => void;
11
11
  }>) => React.ReactNode);
12
+ renderBottomRight?: React.ReactNode | ((props: InputProps<string>, ref: React.RefObject<{
13
+ clear: () => void;
14
+ }>) => React.ReactNode);
12
15
  onChange?: ((value: string) => void) | undefined;
13
16
  onChangeEvent?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
14
17
  serialize?: ((value: string) => string) | undefined;
@@ -21,6 +24,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInpu
21
24
  showErrorIcon?: boolean | undefined;
22
25
  hasBorder?: boolean | undefined;
23
26
  color?: string | undefined;
27
+ largeMode?: boolean | undefined;
24
28
  } & React.RefAttributes<TextInput>>;
25
29
  export default _default;
26
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/SearchInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAc,EAAE,UAAU,EAA4B,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;AAsD3E,wBAA6C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input/SearchInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAc,EAAE,UAAU,EAA4B,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAsD3E,wBAA6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.30.1-nightly.0",
3
+ "version": "0.31.0-nightly.1",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",