mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39: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
|
|
@ -27,7 +27,7 @@ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|||
:class="cn('bg-sidebar text-sidebar-foreground flex h-dvh w-(--sidebar-width) flex-col', props.class)"
|
||||
v-bind="$attrs"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<Sheet
|
||||
|
|
@ -53,7 +53,7 @@ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|||
</SheetDescription>
|
||||
</SheetHeader>
|
||||
<div class="flex h-full w-full flex-col">
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</SheetContent>
|
||||
</Sheet>
|
||||
|
|
@ -96,7 +96,7 @@ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|||
data-sidebar="sidebar"
|
||||
class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="content"
|
||||
:class="cn('flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="footer"
|
||||
:class="cn('flex flex-col gap-2 p-2', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="group"
|
||||
:class="cn('relative flex w-full min-w-0 flex-col p-2', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,6 @@ const props = defineProps<
|
|||
props.class,
|
||||
)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="group-content"
|
||||
:class="cn('w-full text-sm', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ const props = defineProps<
|
|||
'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',
|
||||
props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="header"
|
||||
:class="cn('flex flex-col gap-2 p-2', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,6 @@ const props = defineProps<{
|
|||
props.class,
|
||||
)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</InputVue>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@ const props = defineProps<{
|
|||
props.class,
|
||||
)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</main>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="menu"
|
||||
:class="cn('flex w-full min-w-0 flex-col gap-1', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</ul>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -34,6 +34,6 @@ const props = withDefaults(
|
|||
:as="as"
|
||||
:as-child="asChild"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@ const props = defineProps<{
|
|||
props.class,
|
||||
)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -40,13 +40,13 @@ const delegatedProps = computed(() => {
|
|||
v-if="!tooltip"
|
||||
v-bind="{ ...delegatedProps, ...$attrs }"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</SidebarMenuButtonChild>
|
||||
|
||||
<Tooltip v-else>
|
||||
<TooltipTrigger as-child>
|
||||
<SidebarMenuButtonChild v-bind="{ ...delegatedProps, ...$attrs }">
|
||||
<slot/>
|
||||
<slot />
|
||||
</SidebarMenuButtonChild>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent
|
||||
|
|
@ -57,7 +57,7 @@ const delegatedProps = computed(() => {
|
|||
<template v-if="typeof tooltip === 'string'">
|
||||
{{ tooltip }}
|
||||
</template>
|
||||
<component :is="tooltip" v-else/>
|
||||
<component :is="tooltip" v-else />
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,6 @@ const props = withDefaults(defineProps<SidebarMenuButtonProps>(), {
|
|||
:as-child="asChild"
|
||||
v-bind="$attrs"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="menu-item"
|
||||
:class="cn('group/menu-item relative', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</li>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,6 @@ const props = defineProps<{
|
|||
props.class,
|
||||
)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</ul>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -36,6 +36,6 @@ const props = withDefaults(
|
|||
props.class,
|
||||
)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const props = defineProps<{
|
|||
data-sidebar="menu-sub-item"
|
||||
:class="cn('group/menu-sub-item relative', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</li>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ provideSidebarContext({
|
|||
:class="cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', props.class)"
|
||||
v-bind="$attrs"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
</TooltipProvider>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,6 @@ const { toggleSidebar } = useSidebar();
|
|||
)"
|
||||
@click="toggleSidebar"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</button>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,6 @@ const props = defineProps<{
|
|||
data-sidebar="separator"
|
||||
:class="cn('bg-sidebar-border mx-2 w-auto', props.class)"
|
||||
>
|
||||
<slot/>
|
||||
<slot />
|
||||
</Separator>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const { toggleSidebar } = useSidebar();
|
|||
:class="cn('h-7 w-7', props.class)"
|
||||
@click="toggleSidebar"
|
||||
>
|
||||
<PanelLeft/>
|
||||
<PanelLeft />
|
||||
<span class="sr-only">Toggle Sidebar</span>
|
||||
</Button>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue