Skip to content

Commit 2f0b5fd

Browse files
committed
fix: merge conflict resolved
2 parents 2543402 + b2981c1 commit 2f0b5fd

File tree

13 files changed

+29
-290
lines changed

13 files changed

+29
-290
lines changed

example/yarn.lock

Lines changed: 0 additions & 267 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"release-it": "^13.5.8",
9090
"rollup": "^2.34.1",
9191
"rollup-plugin-flow": "^1.1.1",
92-
"typescript": "4.2",
92+
"typescript": "4.6",
9393
"visualize-bundle": "^1.4.0"
9494
},
9595
"peerDependencies": {
@@ -182,7 +182,6 @@
182182
"@react-native-aria/combobox": "^0.2.4-alpha.0",
183183
"@react-native-aria/focus": "^0.2.4",
184184
"@react-native-aria/interactions": "^0.2.2",
185-
"@react-native-aria/listbox": "0.2.4-alpha.3",
186185
"@react-native-aria/overlays": "0.3.3-rc.0",
187186
"@react-native-aria/radio": "^0.2.4",
188187
"@react-native-aria/slider": "^0.2.5-alpha.1",

src/components/basic/StatusBar/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ import type { CustomProps } from '../../../components/types';
44
export interface InterfaceStatusBarProps extends StatusBarProps {}
55
export type IStatusBarProps = InterfaceStatusBarProps &
66
CustomProps<'StatusBar'>;
7+
8+
export type IStatusBarComponentType = (props: IStatusBarProps) => JSX.Element;

src/components/composites/PinInput/PinInputField.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const PinInputFiled = (
5050
}
5151
return (
5252
<Input
53+
//@ts-ignore
5354
ref={mergeRefs([myRef, ref])}
5455
{...context}
5556
{...props}

src/components/composites/Tag/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import Box from '../../primitives/Box';
33
import { useThemeProps } from '../../../hooks';
4-
import type { ITagProps } from './types';
4+
import type { IInputComponentType, ITagProps } from './types';
55
import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
66

77
const Tag = ({ style, ...props }: ITagProps, ref: any) => {
@@ -13,5 +13,5 @@ const Tag = ({ style, ...props }: ITagProps, ref: any) => {
1313
return <Box style={style} {...resolvedProps} ref={ref} />;
1414
};
1515

16-
export default React.memo(React.forwardRef(Tag));
16+
export default React.memo(React.forwardRef(Tag)) as IInputComponentType;
1717
export type { ITagProps };

src/components/composites/Tag/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ export interface InterfaceTagProps extends InterfaceBoxProps<ITagProps> {
77
size?: string | number;
88
}
99

10+
export type IInputComponentType = (props: ITagProps) => JSX.Element;
11+
1012
export type ITagProps = InterfaceTagProps & CustomProps<'Tag'>;

src/components/primitives/Button/types.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,3 @@ export type IButtonComponentType = ((
180180
};
181181

182182
export type IButtonProps = InterfaceButtonProps & CustomProps<'Button'>;
183-
184-
// const a: IButtonProps = {
185-
// size:'' ;
186-
// }
187-
// type myProps = CustomProps<'Input'>;
188-
// export type IInputProps = InterfaceInputProps & CustomProps<'Input'>;
189-
190-
// const a: IButtonProps = {
191-
// m
192-
// };

src/components/primitives/Icon/Icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const Icon = ({ as, ...props }: IIconProps, ref?: any) => {
2121
? (resolvedProps) =>
2222
React.cloneElement(as, {
2323
...resolvedProps,
24+
//@ts-ignore
2425
...as.props,
2526
})
2627
: as

src/components/primitives/Input/InputAdvanced.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ const InputAdvance = (
109109
disableFocusHandling
110110
ref={ref}
111111
variant="unstyled"
112-
onFocus={(e) => {
112+
onFocus={(e: any) => {
113113
handleFocus(true, onFocus ? () => onFocus(e) : () => {});
114114
}}
115-
onBlur={(e) => {
115+
onBlur={(e: any) => {
116116
handleFocus(false, onBlur ? () => onBlur(e) : () => {});
117117
}}
118118
shadow="none"
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
export { InputGroup } from './InputGroup';
22
export { InputRightAddon, InputLeftAddon } from './InputAddons';
3-
export type { IInputProps } from './types';
4-
export { default as Input } from './Input';
3+
export type { IInputGroupProps, IInputProps } from './types';
4+
5+
import InputMain from './Input';
6+
import type { IInputComponentType } from './types';
7+
8+
const InputTemp: any = InputMain;
9+
10+
// To add typings
11+
const Input = InputTemp as IInputComponentType;
12+
13+
export { Input };

0 commit comments

Comments
 (0)