Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"motion-v": "^1.7.3",
"ohash": "^2.0.11",
"pathe": "^2.0.3",
"reka-ui": "2.5.1",
"reka-ui": "2.6.0",
"scule": "^1.3.0",
"tailwind-merge": "^3.3.1",
"tailwind-variants": "^3.1.1",
Expand Down
3 changes: 2 additions & 1 deletion playgrounds/nuxt/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export default defineAppConfig({
position: 'bottom-right' as const,
duration: 5000,
max: 5,
expand: true
expand: true,
disableSwipe: false
},
ui: {
colors: {
Expand Down
1 change: 1 addition & 0 deletions playgrounds/nuxt/app/pages/components/toast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function removeToast() {

<template>
<Navbar>
<USwitch v-model="appConfig.toaster.disableSwipe" label="Disable swipe" />
<UCheckbox v-model="appConfig.toaster.expand" label="Expand" />
<USelect v-model="appConfig.toaster.position" :items="positions" placeholder="Position" />
<UInput v-model="appConfig.toaster.duration" label="Duration" type="number" />
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/runtime/components/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ const props = withDefaults(defineProps<CommandPaletteProps<G, T>>(), {
autofocus: true,
back: true,
preserveGroupOrder: false,
virtualize: false
virtualize: false,
highlightOnHover: true
})
const emits = defineEmits<CommandPaletteEmits<T>>()
const slots = defineSlots<CommandPaletteSlots<G, T>>()
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/Toaster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const appConfig = useAppConfig() as Toaster['AppConfig']

provide(toastMaxInjectionKey, toRef(() => props.max))

const providerProps = useForwardProps(reactivePick(props, 'duration', 'label', 'swipeThreshold'))
const providerProps = useForwardProps(reactivePick(props, 'duration', 'label', 'swipeThreshold', 'disableSwipe'))
const portalProps = usePortal(toRef(() => props.portal))

const swipeDirection = computed(() => {
Expand Down
68 changes: 34 additions & 34 deletions test/components/__snapshots__/Calendar-vue.spec.ts.snap

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions test/components/__snapshots__/Calendar.spec.ts.snap

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions test/components/__snapshots__/CommandPalette-vue.spec.ts.snap

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions test/components/__snapshots__/CommandPalette.spec.ts.snap

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions test/components/__snapshots__/DashboardSearch-vue.spec.ts.snap

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions test/components/__snapshots__/DashboardSearch.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`DashboardSearch > renders with class correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -51,7 +51,7 @@ exports[`DashboardSearch > renders with fullscreen correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -90,7 +90,7 @@ exports[`DashboardSearch > renders with groups correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -129,7 +129,7 @@ exports[`DashboardSearch > renders with icon correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -168,7 +168,7 @@ exports[`DashboardSearch > renders with loading correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -207,7 +207,7 @@ exports[`DashboardSearch > renders with loadingIcon correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -246,7 +246,7 @@ exports[`DashboardSearch > renders with placeholder correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -285,7 +285,7 @@ exports[`DashboardSearch > renders with ui correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down Expand Up @@ -324,7 +324,7 @@ exports[`DashboardSearch > renders without colorMode correctly 1`] = `
<!--v-if-->
<!--v-if--></button></span>
</div>
<div class="relative overflow-hidden flex flex-col" role="listbox" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div class="relative overflow-hidden flex flex-col" role="listbox" tabindex="-1" aria-orientation="vertical" aria-multiselectable="false" data-orientation="vertical">
<div role="presentation" 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-2" class="p-1 isolate">
<div id="reka-listbox-group-v-0-2" class="p-1.5 text-xs font-semibold text-highlighted">Go to</div><a href="/" role="option" tabindex="-1" data-reka-collection-item="" id="reka-listbox-item-v-0-3" aria-selected="false" data-state="unchecked" 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">
Expand Down
Loading
Loading