File tree Expand file tree Collapse file tree 4 files changed +18
-25
lines changed
components/ui/scroll-area Expand file tree Collapse file tree 4 files changed +18
-25
lines changed Original file line number Diff line number Diff line change 1- import Scrollbar from "./scroll-area-scrollbar.svelte" ;
21import Root from "./scroll-area.svelte" ;
32import Mask from "./scroll-area-mask.svelte" ;
3+ import Scrollbar from "./scroll-area-scrollbar.svelte" ;
44
55export {
6- Root ,
7- Scrollbar ,
8- Mask ,
9- //
10- Root as ScrollArea ,
11- Scrollbar as ScrollAreaScrollbar ,
12- Mask as ScrollAreaMask ,
6+ Root ,
7+ Scrollbar ,
8+ Mask ,
9+ Root as ScrollArea ,
10+ Scrollbar as ScrollAreaScrollbar ,
11+ Mask as ScrollAreaMask ,
1312} ;
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2+ import type { WithoutChild } from " @/types/components" ;
3+
4+ import { cn } from " @/utils/cn" ;
25 import { ScrollArea as ScrollAreaPrimitive } from " bits-ui" ;
3- import { cn , type WithoutChild } from " @/utils/cn" ;
46 import { useHasPrimaryTouch } from " @/hooks/use-has-primary-touch" ;
57
68 let {
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import { cn , type WithoutChild } from " @/utils/cn" ;
3- import { ScrollArea as ScrollAreaPrimitive } from " bits-ui" ;
2+ import type { WithoutChild } from " @/types/components" ;
3+
4+ import { cn } from " @/utils/cn" ;
5+ import { useHasPrimaryTouch } from " @/hooks/use-has-primary-touch" ;
6+
47 import { Scrollbar } from " ./index.js" ;
58 import ScrollAreaMask from " ./scroll-area-mask.svelte" ;
6- import { useHasPrimaryTouch } from " @/hooks/use-has-primary-touch " ;
9+ import { ScrollArea as ScrollAreaPrimitive } from " bits-ui " ;
710
811 type Mask = {
912 top: boolean ;
Original file line number Diff line number Diff line change 11import { type ClassValue , clsx } from "clsx" ;
22import { twMerge } from "tailwind-merge" ;
3-
3+
44export function cn ( ...inputs : ClassValue [ ] ) {
5- return twMerge ( clsx ( inputs ) ) ;
5+ return twMerge ( clsx ( inputs ) ) ;
66}
7-
8- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9- export type WithoutChild < T > = T extends { child ?: any } ? Omit < T , "child" > : T ;
10- // eslint-disable-next-line @typescript-eslint/no-explicit-any
11- export type WithoutChildren < T > = T extends { children ?: any }
12- ? Omit < T , "children" >
13- : T ;
14- export type WithoutChildrenOrChild < T > = WithoutChildren < WithoutChild < T > > ;
15- export type WithElementRef < T , U extends HTMLElement = HTMLElement > = T & {
16- ref ?: U | null ;
17- } ;
You can’t perform that action at this time.
0 commit comments