mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 19:49:16 +01:00
style: 🎨 Run Biome formatter
This commit is contained in:
parent
74c3b26f20
commit
68e23a818a
244 changed files with 435 additions and 470 deletions
|
|
@ -14,6 +14,6 @@ const forwarded = useForwardPropsEmits(props, emits);
|
|||
|
||||
<template>
|
||||
<DialogRoot data-slot="dialog" v-bind="forwarded">
|
||||
<slot/>
|
||||
<slot />
|
||||
</DialogRoot>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ const props = defineProps<DialogCloseProps>();
|
|||
|
||||
<template>
|
||||
<DialogClose data-slot="dialog-close" v-bind="props">
|
||||
<slot/>
|
||||
<slot />
|
||||
</DialogClose>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|||
|
||||
<template>
|
||||
<DialogPortal>
|
||||
<DialogOverlay/>
|
||||
<DialogOverlay />
|
||||
<DialogContent
|
||||
data-slot="dialog-content"
|
||||
v-bind="forwarded"
|
||||
|
|
@ -41,13 +41,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|||
props.class,
|
||||
)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
|
||||
<DialogClose
|
||||
v-if="!hideClose"
|
||||
class="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
|
||||
>
|
||||
<X/>
|
||||
<X />
|
||||
<span class="sr-only">Close</span>
|
||||
</DialogClose>
|
||||
</DialogContent>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,6 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|||
v-bind="forwardedProps"
|
||||
:class="cn('text-muted-foreground text-sm', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</DialogDescription>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ const props = defineProps<{ class?: HTMLAttributes["class"] }>();
|
|||
data-slot="dialog-footer"
|
||||
:class="cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@ const props = defineProps<{
|
|||
data-slot="dialog-header"
|
||||
:class="cn('flex flex-col gap-2 text-center sm:text-left', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@ const delegatedProps = computed(() => {
|
|||
v-bind="delegatedProps"
|
||||
:class="cn('data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80 backdrop-blur-md', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</DialogOverlay>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -47,12 +47,12 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|||
}
|
||||
}"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
|
||||
<DialogClose
|
||||
class="absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-secondary"
|
||||
>
|
||||
<X class="w-4 h-4"/>
|
||||
<X class="w-4 h-4" />
|
||||
<span class="sr-only">Close</span>
|
||||
</DialogClose>
|
||||
</DialogContent>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|||
v-bind="forwardedProps"
|
||||
:class="cn('text-lg leading-none font-semibold', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</DialogTitle>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ const props = defineProps<DialogTriggerProps>();
|
|||
|
||||
<template>
|
||||
<DialogTrigger data-slot="dialog-trigger" v-bind="props">
|
||||
<slot/>
|
||||
<slot />
|
||||
</DialogTrigger>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue