style: Prettier format
This commit is contained in:
parent
e799c55adb
commit
b8a7478fd9
@ -16,6 +16,7 @@
|
|||||||
on:focusin
|
on:focusin
|
||||||
on:focusout
|
on:focusout
|
||||||
on:mouseenter
|
on:mouseenter
|
||||||
on:mouseleave>
|
on:mouseleave
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,10 +23,12 @@
|
|||||||
'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg sm:rounded-lg md:w-full',
|
'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg sm:rounded-lg md:w-full',
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
{...$$restProps}>
|
{...$$restProps}
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
<DialogPrimitive.Close
|
<DialogPrimitive.Close
|
||||||
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
|
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
|
||||||
|
>
|
||||||
<Cross2 class="h-4 w-4" />
|
<Cross2 class="h-4 w-4" />
|
||||||
<span class="sr-only">Close</span>
|
<span class="sr-only">Close</span>
|
||||||
</DialogPrimitive.Close>
|
</DialogPrimitive.Close>
|
||||||
|
@ -17,4 +17,5 @@
|
|||||||
{transition}
|
{transition}
|
||||||
{transitionConfig}
|
{transitionConfig}
|
||||||
class={cn('fixed inset-0 z-50 bg-background/80 backdrop-blur-sm ', className)}
|
class={cn('fixed inset-0 z-50 bg-background/80 backdrop-blur-sm ', className)}
|
||||||
{...$$restProps} />
|
{...$$restProps}
|
||||||
|
/>
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
on:focusout
|
on:focusout
|
||||||
on:pointerdown
|
on:pointerdown
|
||||||
on:pointerleave
|
on:pointerleave
|
||||||
on:pointermove>
|
on:pointermove
|
||||||
|
>
|
||||||
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
||||||
<DropdownMenuPrimitive.CheckboxIndicator>
|
<DropdownMenuPrimitive.CheckboxIndicator>
|
||||||
<Check class="h-4 w-4" />
|
<Check class="h-4 w-4" />
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
{sideOffset}
|
{sideOffset}
|
||||||
class={cn('z-50 min-w-[8rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-md focus:outline-none', className)}
|
class={cn('z-50 min-w-[8rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-md focus:outline-none', className)}
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
on:keydown>
|
on:keydown
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</DropdownMenuPrimitive.Content>
|
</DropdownMenuPrimitive.Content>
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
on:pointerdown
|
on:pointerdown
|
||||||
on:pointerleave
|
on:pointerleave
|
||||||
on:pointermove
|
on:pointermove
|
||||||
{...$$restProps}>
|
{...$$restProps}
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</DropdownMenuPrimitive.Item>
|
</DropdownMenuPrimitive.Item>
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
on:focusout
|
on:focusout
|
||||||
on:pointerdown
|
on:pointerdown
|
||||||
on:pointerleave
|
on:pointerleave
|
||||||
on:pointermove>
|
on:pointermove
|
||||||
|
>
|
||||||
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
||||||
<DropdownMenuPrimitive.RadioIndicator>
|
<DropdownMenuPrimitive.RadioIndicator>
|
||||||
<DotFilled class="h-4 w-4 fill-current" />
|
<DotFilled class="h-4 w-4 fill-current" />
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
on:keydown
|
on:keydown
|
||||||
on:focusout
|
on:focusout
|
||||||
on:pointermove>
|
on:pointermove
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</DropdownMenuPrimitive.SubContent>
|
</DropdownMenuPrimitive.SubContent>
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
on:focusin
|
on:focusin
|
||||||
on:focusout
|
on:focusout
|
||||||
on:pointerleave
|
on:pointerleave
|
||||||
on:pointermove>
|
on:pointermove
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
<ChevronRight class="ml-auto h-4 w-4" />
|
<ChevronRight class="ml-auto h-4 w-4" />
|
||||||
</DropdownMenuPrimitive.SubTrigger>
|
</DropdownMenuPrimitive.SubTrigger>
|
||||||
|
@ -38,4 +38,5 @@
|
|||||||
on:paste
|
on:paste
|
||||||
on:input
|
on:input
|
||||||
on:wheel|passive
|
on:wheel|passive
|
||||||
{...$$restProps} />
|
{...$$restProps}
|
||||||
|
/>
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
<LabelPrimitive.Root
|
<LabelPrimitive.Root
|
||||||
class={cn('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className)}
|
class={cn('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className)}
|
||||||
{...$$restProps}>
|
{...$$restProps}
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</LabelPrimitive.Root>
|
</LabelPrimitive.Root>
|
||||||
|
@ -26,10 +26,12 @@
|
|||||||
{outTransition}
|
{outTransition}
|
||||||
{outTransitionConfig}
|
{outTransitionConfig}
|
||||||
class={cn(sheetVariants({ side }), className)}
|
class={cn(sheetVariants({ side }), className)}
|
||||||
{...$$restProps}>
|
{...$$restProps}
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
<SheetPrimitive.Close
|
<SheetPrimitive.Close
|
||||||
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
|
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"
|
||||||
|
>
|
||||||
<Cross2 class="h-4 w-4" />
|
<Cross2 class="h-4 w-4" />
|
||||||
<span class="sr-only">Close</span>
|
<span class="sr-only">Close</span>
|
||||||
</SheetPrimitive.Close>
|
</SheetPrimitive.Close>
|
||||||
|
@ -17,4 +17,5 @@
|
|||||||
{transition}
|
{transition}
|
||||||
{transitionConfig}
|
{transitionConfig}
|
||||||
class={cn('fixed inset-0 z-50 bg-background/80 backdrop-blur-sm', className)}
|
class={cn('fixed inset-0 z-50 bg-background/80 backdrop-blur-sm', className)}
|
||||||
{...$$restProps} />
|
{...$$restProps}
|
||||||
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user