Skip to content

Commit 6f04057

Browse files
committed
fix: typing fixes
1 parent 50f195a commit 6f04057

File tree

13 files changed

+36
-48
lines changed

13 files changed

+36
-48
lines changed

src/components/composites/Actionsheet/types.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { InterfaceButtonProps } from '../../primitives/Button/types';
2-
import type { IBoxProps } from '../../primitives/Box';
2+
import type { InterfaceBoxProps } from '../../primitives/Box';
33
import type { MutableRefObject } from 'react';
44
import type { CustomProps } from '../../../components/types';
55

66
export interface InterfaceActionsheetProps
7-
extends IBoxProps<IActionsheetProps> {
7+
extends InterfaceBoxProps<IActionsheetProps> {
88
/**
99
* If true, the ActionSheet will open. Useful for controllable state behaviour
1010
*/
@@ -30,24 +30,24 @@ export interface InterfaceActionsheetProps
3030
}
3131

3232
export interface IActionsheetContentProps
33-
extends IBoxProps<IActionsheetContentProps> {
33+
extends InterfaceBoxProps<IActionsheetContentProps> {
3434
/**
3535
* Props applied on area above actionsheet content
3636
*/
37-
_dragIndicatorWrapperOffSet?: IBoxProps<IActionsheetContentProps>;
37+
_dragIndicatorWrapperOffSet?: InterfaceBoxProps<IActionsheetContentProps>;
3838
/**
3939
* Props applied on area around drag indicator
4040
*/
41-
_dragIndicatorWrapper?: IBoxProps<IActionsheetContentProps>;
41+
_dragIndicatorWrapper?: InterfaceBoxProps<IActionsheetContentProps>;
4242
/**
4343
* Props applied on drag indicator
4444
*/
45-
_dragIndicator?: IBoxProps<IActionsheetContentProps>;
45+
_dragIndicator?: InterfaceBoxProps<IActionsheetContentProps>;
4646
}
4747
export interface IActionsheetFooterProps
48-
extends IBoxProps<IActionsheetFooterProps> {}
48+
extends InterfaceBoxProps<IActionsheetFooterProps> {}
4949
export interface IActionsheetHeaderProps
50-
extends IBoxProps<IActionsheetHeaderProps> {}
50+
extends InterfaceBoxProps<IActionsheetHeaderProps> {}
5151
export interface IActionsheetItemProps extends InterfaceButtonProps {}
5252

5353
export type IActionsheetComponentType = ((

src/components/composites/Alert/types.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import type { MutableRefObject } from 'react';
2-
import type { IBoxProps, IIconProps } from '../../primitives';
2+
import type { InterfaceBoxProps } from '../../../components/primitives/Box';
3+
import type { IIconProps } from '../../primitives';
34
import type { CustomProps, VariantType } from '../../types';
45

5-
export interface InterfaceAlertProps extends IBoxProps<IAlertProps> {
6+
export interface InterfaceAlertProps extends InterfaceBoxProps<IAlertProps> {
67
/** The status of the alert
78
* @default info
89
*/

src/components/composites/AspectRatio/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { IBoxProps } from '../../primitives/Box';
1+
import type { InterfaceBoxProps } from '../../primitives/Box';
22
import type { CustomProps, ResponsiveValue } from '../../../components/types';
33

44
export interface InterfaceAspectRatioProps
5-
extends IBoxProps<IAspectRatioProps> {
5+
extends InterfaceBoxProps<IAspectRatioProps> {
66
/**
77
* The aspect ratio of the container. Some examples are `16/9`, `16/10`, `9/16`, `4/3`
88
* @default 4/3

src/components/composites/Avatar/types.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { IBoxProps } from '../../primitives/Box';
1+
import type { InterfaceBoxProps } from '../../primitives/Box';
22
import type { IImageProps } from '../../primitives/Image';
33
import type { ImageSourcePropType } from 'react-native';
44
import type { MutableRefObject } from 'react';
55
import type { CustomProps, ResponsiveValue } from '../../../components/types';
66
import type { ISizes } from '../../../theme/base/sizes';
77

8-
export interface InterfaceAvatarProps extends IBoxProps<IAvatarProps> {
8+
export interface InterfaceAvatarProps extends InterfaceBoxProps<IAvatarProps> {
99
/**
1010
* The image source of the avatar.
1111
*/
@@ -25,7 +25,8 @@ export interface InterfaceAvatarProps extends IBoxProps<IAvatarProps> {
2525
wrapperRef?: MutableRefObject<any>;
2626
}
2727

28-
export interface IAvatarBadgeProps extends IBoxProps<IAvatarBadgeProps> {}
28+
export interface IAvatarBadgeProps
29+
extends InterfaceBoxProps<IAvatarBadgeProps> {}
2930

3031
export interface IAvatarGroupProps extends IAvatarProps {
3132
/**

src/components/composites/Badge/types.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { ITextProps } from '../../primitives/Text/types';
22
import type { IIconProps } from '../../primitives/Icon';
33
import type { CustomProps, VariantType } from '../../types';
4-
import type { IBoxProps } from '../../primitives';
4+
import type { InterfaceBoxProps } from '../../primitives/Box';
55

6-
export interface InterfaceBadgeProps extends IBoxProps<IBadgeProps> {
6+
export interface InterfaceBadgeProps extends InterfaceBoxProps<IBadgeProps> {
77
/**
88
* The style variant of the badge.
99
* @default subtle
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CustomProps } from '../../../components/types/utils';
2-
import type { IBoxProps } from '../../primitives';
2+
import type { InterfaceBoxProps } from '../../primitives/Box';
33

4-
export interface InterfaceCardProps extends IBoxProps<ICardProps> {}
4+
export interface InterfaceCardProps extends InterfaceBoxProps<ICardProps> {}
55
export type ICardProps = InterfaceCardProps & CustomProps<'Card'>;

src/components/composites/FormControl/types.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type { ITextProps } from '../../primitives';
22
import type { CustomProps } from '../../../components/types/utils';
33
import type { IBoxProps, IStackProps } from '../../primitives';
4+
import type { InterfaceBoxProps } from '../../../components/primitives/Box';
45

56
export interface InterfaceFormControlProps
6-
extends IBoxProps<IFormControlProps> {
7+
extends InterfaceBoxProps<IFormControlProps> {
78
/**
89
* If provided, this prop is passed to its children.
910
*/

src/components/composites/Menu/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import type { InterfaceBoxProps } from '../../primitives/Box/types';
33
import type { IPressableProps } from '../../primitives/Pressable';
44
import type { MutableRefObject } from 'react';
55
import type { IPresenceTransitionProps } from '../Transitions/types';
6-
import type { IIconProps } from 'src/components/primitives/Icon';
7-
import type { IStackProps } from 'src/components/primitives/Stack';
8-
import type { IOverlayProps } from 'src/components/primitives/Overlay';
6+
import type { IIconProps } from '../../../components/primitives/Icon';
7+
import type { IStackProps } from '../../../components/primitives/Stack';
8+
import type { IOverlayProps } from '../../../components/primitives/Overlay';
99
import type { CustomProps } from '../../../components/types';
1010

1111
export interface InterfaceMenuProps extends InterfaceBoxProps<IMenuProps> {

src/components/primitives/Input/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { TextInputProps } from 'react-native';
22
import type { StyledProps } from '../../../theme/types';
33
import type { CombinedSizeType, PlatformProps, VariantType } from '../../types';
4-
import type { IBoxProps } from '../Box';
4+
import type { InterfaceBoxProps } from '../Box';
55
import type { ResponsiveValue } from '../../../components/types';
66
import type { ISizes } from '../../../theme/base/sizes';
77
import type { CustomProps } from '../../types';
@@ -104,7 +104,7 @@ export interface InterfaceInputProps
104104
_stack?: Partial<IStackProps>;
105105
}
106106

107-
export interface IInputGroupProps extends IBoxProps<IInputGroupProps> {
107+
export interface IInputGroupProps extends InterfaceBoxProps<IInputGroupProps> {
108108
/**
109109
* The variant of the input style to use.
110110
* @default 'outline'
@@ -117,4 +117,4 @@ export interface IInputGroupProps extends IBoxProps<IInputGroupProps> {
117117
size?: ResponsiveValue<ISizes | (string & {}) | number>;
118118
}
119119

120-
export type IInputProps = InterfaceInputProps | CustomProps<'Input'>;
120+
export type IInputProps = InterfaceInputProps & CustomProps<'Input'>;

src/components/primitives/Radio/types.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { IStackProps } from '../../primitives/Stack';
2-
import type { IBoxProps } from '../../primitives/Box/types';
2+
import type { InterfaceBoxProps } from '../../primitives/Box/types';
33
import type { IFormControlContext } from '../../composites';
44
import type { AccessibilityRole } from 'react-native';
55
import type { RadioGroupState } from '@react-stately/radio';
@@ -12,7 +12,7 @@ import type { IIconProps } from '../Icon';
1212

1313
export type IRadioGroupOnChangeHandler = (value: IRadioValue) => any;
1414

15-
export interface InterfaceRadioProps extends IBoxProps<IRadioProps> {
15+
export interface InterfaceRadioProps extends InterfaceBoxProps<IRadioProps> {
1616
/**
1717
* The value to be used in the radio input. This is the value that will be returned on form submission
1818
*/

0 commit comments

Comments
 (0)