Skip to content

Commit 7da8b10

Browse files
committed
fix(ui): missing type imports + remove extra spaces
1 parent 93eebc3 commit 7da8b10

File tree

10 files changed

+17
-16
lines changed

10 files changed

+17
-16
lines changed

packages/reusables/src/components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const buttonVariants = cva(
1515
'border border-input bg-background web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent',
1616
secondary: 'bg-secondary web:hover:opacity-80 active:opacity-80',
1717
ghost: 'web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent',
18-
link: 'web:underline-offset-4 web:hover:underline web:focus:underline ',
18+
link: 'web:underline-offset-4 web:hover:underline web:focus:underline',
1919
},
2020
size: {
2121
default: 'h-10 px-4 py-2 native:h-12 native:px-5 native:py-3',

packages/reusables/src/components/ui/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TextRef, ViewRef } from '@rn-primitives/types';
1+
import type { TextRef, ViewRef } from '@rn-primitives/types';
22
import * as React from 'react';
33
import { Text, type TextProps, View, type ViewProps } from 'react-native';
44
import { cn } from '../../lib/utils';

packages/reusables/src/components/ui/context-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const ContextMenuSubContent = React.forwardRef<
6767
'z-50 min-w-[8rem] overflow-hidden rounded-md border mt-1 border-border bg-popover p-1 shadow-md shadow-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
6868
open
6969
? 'web:animate-in web:fade-in-0 web:zoom-in-95'
70-
: 'web:animate-out web:fade-out-0 web:zoom-out ',
70+
: 'web:animate-out web:fade-out-0 web:zoom-out',
7171
className
7272
)}
7373
{...props}
@@ -93,7 +93,7 @@ const ContextMenuContent = React.forwardRef<
9393
? StyleSheet.flatten([
9494
Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined,
9595
overlayStyle,
96-
] as ViewStyle)
96+
])
9797
: Platform.OS !== 'web'
9898
? StyleSheet.absoluteFill
9999
: undefined

packages/reusables/src/components/ui/dropdown-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const DropdownMenuSubContent = React.forwardRef<
7373
'z-50 min-w-[8rem] overflow-hidden rounded-md border border-border mt-1 bg-popover p-1 shadow-md shadow-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
7474
open
7575
? 'web:animate-in web:fade-in-0 web:zoom-in-95'
76-
: 'web:animate-out web:fade-out-0 web:zoom-out ',
76+
: 'web:animate-out web:fade-out-0 web:zoom-out',
7777
className
7878
)}
7979
{...props}
@@ -99,7 +99,7 @@ const DropdownMenuContent = React.forwardRef<
9999
? StyleSheet.flatten([
100100
Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined,
101101
overlayStyle,
102-
] as ViewStyle)
102+
])
103103
: Platform.OS !== 'web'
104104
? StyleSheet.absoluteFill
105105
: undefined

packages/reusables/src/components/ui/hover-card.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import * as HoverCardPrimitive from '@rn-primitives/hover-card';
12
import * as React from 'react';
23
import { Platform, StyleSheet } from 'react-native';
34
import Animated, { FadeIn } from 'react-native-reanimated';
4-
import { TextClassContext } from './text';
5-
import * as HoverCardPrimitive from '@rn-primitives/hover-card';
65
import { cn } from '../../lib/utils';
6+
import { TextClassContext } from './text';
77

88
const HoverCard = HoverCardPrimitive.Root;
99

@@ -28,8 +28,8 @@ const HoverCardContent = React.forwardRef<
2828
className={cn(
2929
'z-50 w-64 rounded-md border border-border bg-popover p-4 shadow-md shadow-foreground/5 web:outline-none web:cursor-auto data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
3030
open
31-
? 'web:animate-in web:fade-in-0 web:zoom-in-95'
32-
: 'web:animate-out web:fade-out-0 web:zoom-out-95 ',
31+
? 'web:animate-in web:fade-in-0 web:zoom-in-95'
32+
: 'web:animate-out web:fade-out-0 web:zoom-out-95',
3333
className
3434
)}
3535
{...props}

packages/reusables/src/components/ui/menubar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as MenubarPrimitive from '@rn-primitives/menubar';
22
import * as React from 'react';
3-
import { Platform, Text, TextProps, View } from 'react-native';
3+
import { Platform, Text, type TextProps, View } from 'react-native';
44
import { Check } from '../../lib/icons/Check';
55
import { ChevronDown } from '../../lib/icons/ChevronDown';
66
import { ChevronRight } from '../../lib/icons/ChevronRight';
@@ -117,7 +117,7 @@ const MenubarContent = React.forwardRef<
117117
<MenubarPrimitive.Content
118118
ref={ref}
119119
className={cn(
120-
'z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 shadow-md shadow-foreground/5 ',
120+
'z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 shadow-md shadow-foreground/5',
121121
value === itemValue
122122
? 'web:animate-in web:fade-in-0 web:zoom-in-95'
123123
: 'web:animate-out web:fade-out-0 web:zoom-out-95',

packages/reusables/src/components/ui/progress.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Indicator({ value, className }: { value: number | undefined | null; cla
4848
className={cn('h-full w-full flex-1 bg-primary web:transition-all', className)}
4949
style={{ transform: `translateX(-${100 - (value ?? 0)}%)` }}
5050
>
51-
<ProgressPrimitive.Indicator className={cn('h-full w-full ', className)} />
51+
<ProgressPrimitive.Indicator className={cn('h-full w-full', className)} />
5252
</View>
5353
);
5454
}

packages/reusables/src/components/ui/text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Slot from '@rn-primitives/slot';
2-
import { SlottableTextProps, TextRef } from '@rn-primitives/types';
2+
import type { SlottableTextProps, TextRef } from '@rn-primitives/types';
33
import * as React from 'react';
44
import { Text as RNText } from 'react-native';
55
import { cn } from '../../lib/utils';

packages/reusables/src/components/ui/toggle-group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { VariantProps } from 'class-variance-authority';
1+
import type { VariantProps } from 'class-variance-authority';
22
import type { LucideIcon } from 'lucide-react-native';
33
import * as React from 'react';
44
import { toggleTextVariants, toggleVariants } from '../../components/ui/toggle';

packages/reusables/src/components/ui/typography.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Slot from '@rn-primitives/slot';
2-
import { SlottableTextProps, TextRef } from '@rn-primitives/types';
2+
import type { SlottableTextProps, TextRef } from '@rn-primitives/types';
33
import * as React from 'react';
44
import { Platform, Text as RNText } from 'react-native';
55
import { cn } from '../../lib/utils';
@@ -96,6 +96,7 @@ const P = React.forwardRef<TextRef, SlottableTextProps>(
9696
);
9797
}
9898
);
99+
99100
P.displayName = 'P';
100101

101102
const BlockQuote = React.forwardRef<TextRef, SlottableTextProps>(

0 commit comments

Comments
 (0)