mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
258 lines
10 KiB
Plaintext
258 lines
10 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`Alert > renders with as correctly 1`] = `
|
|
"<article class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</article>"
|
|
`;
|
|
|
|
exports[`Alert > renders with avatar correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]"><span class="inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-[--ui-bg-elevated] size-11 text-[22px] shrink-0"><img role="img" src="https://avatars.githubusercontent.com/u/739984?v=4" class="h-full w-full rounded-[inherit] object-cover" style="display: none;"><span class="font-medium leading-none text-[--ui-text-muted] truncate"></span></span>
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with class correctly 1`] = `
|
|
"<div class="relative overflow-hidden rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg] w-48">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with close correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<div class="flex gap-1.5 shrink-0 items-center"><button type="button" aria-label="Close" class="rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center focus:outline-none disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75 transition-colors text-sm gap-1.5 text-[--ui-text-muted] hover:text-[--ui-text] disabled:text-[--ui-text-muted] aria-disabled:text-[--ui-text-muted] focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-[--ui-border-inverted] p-0.5"><span class="iconify i-heroicons:x-mark-20-solid shrink-0 size-5" aria-hidden="true"></span>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</button></div>
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with close slot correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with closeIcon correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<div class="flex gap-1.5 shrink-0 items-center"><button type="button" aria-label="Close" class="rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center focus:outline-none disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75 transition-colors text-sm gap-1.5 text-[--ui-text-muted] hover:text-[--ui-text] disabled:text-[--ui-text-muted] aria-disabled:text-[--ui-text-muted] focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-[--ui-border-inverted] p-0.5"><span class="iconify i-heroicons:trash shrink-0 size-5" aria-hidden="true"></span>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</button></div>
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with description correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-start bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<div class="text-sm opacity-90">Description</div>
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with description slot correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<div class="text-sm opacity-90">Description slot</div>
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with icon correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]"><span class="iconify i-heroicons:light-bulb shrink-0 size-5" aria-hidden="true"></span>
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with leading slot correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Leading slot</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with neutral variant outline correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center text-[--ui-text-highlighted] bg-[--ui-bg] ring ring-inset ring-[--ui-border]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with neutral variant soft correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center text-[--ui-text-highlighted] bg-[--ui-bg-elevated]/50">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with neutral variant solid correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center text-[--ui-bg] bg-[--ui-bg-inverted]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with neutral variant subtle correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center text-[--ui-text-highlighted] bg-[--ui-bg-elevated]/50 ring ring-inset ring-[--ui-border-accented]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with primary variant outline correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center text-[--ui-primary] ring ring-inset ring-[--ui-primary]/25">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with primary variant soft correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary]/10 text-[--ui-primary]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with primary variant solid correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with primary variant subtle correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary]/10 text-[--ui-primary] ring ring-inset ring-[--ui-primary]/25">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with title correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with title slot correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-medium">Title slot</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`Alert > renders with ui correctly 1`] = `
|
|
"<div class="relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5 items-center bg-[--ui-primary] text-[--ui-bg]">
|
|
<!--v-if-->
|
|
<div class="min-w-0 flex-1 flex flex-col gap-1">
|
|
<div class="text-sm font-bold">Alert</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|