mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
a9ed10d528
Resolves #5012
1390 lines
398 KiB
Plaintext
1390 lines
398 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`CommandPalette > renders with as correctly 1`] = `
|
|
"<section dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</section>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with childrenIcon correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with class correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-accented">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with close correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9 pe-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span><span data-slot="trailing" class="absolute inset-y-0 end-0 flex items-center pe-2.5"><button type="button" aria-label="Close" data-slot="base" class="rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75 transition-colors text-sm gap-1.5 text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent p-1.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 size-5"></svg><!--v-if--><!--v-if--></button></span></div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with close slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9 pe-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span><span data-slot="trailing" class="absolute inset-y-0 end-0 flex items-center pe-2.5">Close slot</span></div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with closeIcon correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9 pe-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span><span data-slot="trailing" class="absolute inset-y-0 end-0 flex items-center pe-2.5"><button type="button" aria-label="Close" data-slot="base" class="rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75 transition-colors text-sm gap-1.5 text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent p-1.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 size-5"></svg><!--v-if--><!--v-if--></button></span></div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with custom slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Custom slot</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with defaultValue correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with descriptionKey correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Create Project</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Create Project</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Open File</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Open File</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">O</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Settings</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Settings</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">,</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-4" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-4" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Recent Files</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-5" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">index.vue</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">index.vue</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">app.vue</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">app.vue</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with disabled correctly 1`] = `
|
|
"<div dir="ltr" data-disabled="" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" disabled="" autocomplete="off" data-disabled="" aria-disabled="true" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with empty slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with footer slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div data-slot="footer" class="p-1">Footer slot</div>
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with groups correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with groups with description correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Create Project</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Start a new project from scratch</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Open File</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Browse and open an existing file</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">O</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Settings</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Configure your preferences</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">,</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-4" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-4" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Recent Files</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-5" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">index.vue</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">/src/pages/index.vue</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">app.vue</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">/app.vue</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with icon correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with item slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated">Item slot</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item slot</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item slot</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item slot</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item slot</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item slot</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item slot</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with item-description slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Create Project</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Item description slot</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Open File</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Item description slot</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">O</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Settings</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Item description slot</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">,</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-4" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-4" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Recent Files</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-5" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">index.vue</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Item description slot</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">app.vue</span>
|
|
<!--v-if--></span><span data-slot="itemDescription" class="truncate text-muted">Item description slot</span></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with item-label slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed">Item label slot</span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed">Item label slot</span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed">Item label slot</span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed">Item label slot</span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed">Item label slot</span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed">Item label slot</span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed">Item label slot</span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with item-leading slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated">Item leading slot<span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item leading slot<span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item leading slot<span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item leading slot<span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item leading slot<span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item leading slot<span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">Item leading slot<span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with item-trailing slot correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center">Item trailing slot<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center">Item trailing slot<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center">Item trailing slot<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center">Item trailing slot<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center">Item trailing slot<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center">Item trailing slot<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center">Item trailing slot<!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with labelKey correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">i-lucide-file-plus</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">i-lucide-folder-plus</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">i-lucide-hash</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">i-lucide-tag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div>
|
|
<!--v-if--><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div>
|
|
<!--v-if--><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div>
|
|
<!--v-if--><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span>
|
|
<!--v-if--><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with loading correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5 animate-spin"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with loadingIcon correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5 animate-spin"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with modelValue correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="true" data-state="checked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemTrailingIcon" class="shrink-0 size-5"></svg></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with placeholder correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Search..." data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with searchTerm and preserveGroupOrder correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value="f"><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-3" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-3" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with searchTerm correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value="f"><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-0" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-2" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with selectedIcon correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="true" data-state="checked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemTrailingIcon" class="shrink-0 size-5"></svg></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with trailingIcon correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9 pe-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span><span data-slot="trailing" class="absolute inset-y-0 end-0 flex items-center pe-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="trailingIcon" class="shrink-0 text-dimmed size-5"></svg></span></div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with ui correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-10"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none divide-y divide-default">
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-0" data-slot="group" class="p-1 isolate">
|
|
<!--v-if--><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-1" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-highlighted before:bg-elevated"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-default"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new file</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new file in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">N</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-2" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add new folder</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Create a new folder in the current directory or workspace.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">F</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" disabled="" data-reka-collection-item="" id="reka-listbox-item-v-3" role="option" tabindex="-1" aria-selected="false" data-disabled="" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add hashtag</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a hashtag to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">H</kbd></span>
|
|
<!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-4" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="itemLeadingIcon" class="shrink-0 size-5 text-dimmed group-data-highlighted:not-group-data-disabled:text-default transition-colors"></svg><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">Add label</span><span data-slot="itemLabelSuffix" class="text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary">Add a label to the current item.</span></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><span data-slot="itemTrailingKbds" class="hidden lg:inline-flex items-center shrink-0 gap-0.5"><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">Ctrl</kbd><kbd class="inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase h-5 min-w-[20px] text-[11px] ring ring-inset ring-accented text-default bg-default">L</kbd></span>
|
|
<!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-5" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-5" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Labels</div><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-6" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-error h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">bug</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-7" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-success h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">feature</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button><button type="button" data-reka-collection-item="" id="reka-listbox-item-v-8" role="option" tabindex="-1" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors">
|
|
<div data-slot="root" class="relative inline-flex items-center justify-center shrink-0 size-5"><span data-slot="base" class="rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap bg-info h-[8px] min-w-[8px] text-[8px] top-0 right-0"></span></div><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">enhancement</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</button>
|
|
</div>
|
|
<div role="group" aria-labelledby="reka-listbox-group-v-9" data-slot="group" class="p-1 isolate">
|
|
<div id="reka-listbox-group-v-9" data-slot="label" class="p-1.5 text-xs font-semibold text-highlighted">Users</div><a href="https://github.com/benjamincanac" role="option" tabindex="-1" rel="noopener noreferrer" target="_blank" data-reka-collection-item="" id="reka-listbox-item-v-10" aria-selected="false" data-state="unchecked" data-slot="item" class="group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50 transition-colors before:transition-colors"><span data-slot="root" class="inline-flex items-center justify-center select-none rounded-full align-middle bg-elevated size-5 text-[10px] shrink-0"><img src="https://github.com/benjamincanac.png" alt="Benjamin Canac" width="20" height="20" data-slot="image" class="h-full w-full rounded-[inherit] object-cover"></span><span data-slot="itemWrapper" class="flex-1 flex flex-col text-start min-w-0"><span data-slot="itemLabel" class="truncate space-x-1 text-dimmed"><!--v-if--><span data-slot="itemLabelBase" class="text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary">benjamincanac</span>
|
|
<!--v-if--></span>
|
|
<!--v-if--></span><span data-slot="itemTrailing" class="ms-auto inline-flex gap-1.5 items-center"><!--v-if--><!--v-if--></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders with virtualize correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div role="presentation" data-slot="viewport" class="relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none p-1 isolate">
|
|
<div data-reka-virtualizer="" style="position: relative; width: 100%; height: 256px;"></div>
|
|
</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|
|
|
|
exports[`CommandPalette > renders without groups correctly 1`] = `
|
|
"<div dir="ltr" data-slot="root" class="flex flex-col min-h-0 min-w-0 divide-y divide-default">
|
|
<div data-slot="root" class="relative inline-flex items-center [&>input]:h-12"><input type="text" placeholder="Type a command or search…" data-slot="input" class="w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-9" autocomplete="off" aria-disabled="false" value=""><span data-slot="leading" class="absolute inset-y-0 start-0 flex items-center ps-2.5"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" viewBox="0 0 16 16" data-slot="leadingIcon" class="shrink-0 text-dimmed size-5"></svg></span>
|
|
<!--v-if-->
|
|
</div>
|
|
<div data-slot="content" class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
|
|
<div data-slot="empty" class="py-6 text-center text-sm text-muted">No data</div>
|
|
</div>
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</div>"
|
|
`;
|