From f401766e26cc7b6568dc827debc2a9896176252e Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 20 Mar 2025 17:40:31 +0100 Subject: [PATCH] chore(deps): update `vaul-vue` --- docs/content/3.components/drawer.md | 34 +++- docs/nuxt.config.ts | 3 +- package.json | 2 +- playground-vue/src/app.vue | 2 +- playground/app/app.vue | 2 +- playground/app/pages/components/drawer.vue | 10 +- pnpm-lock.yaml | 10 +- renovate.json | 1 - src/runtime/components/Drawer.vue | 20 +-- src/theme/drawer.ts | 16 +- test/components/Drawer.spec.ts | 2 - .../__snapshots__/Drawer-vue.spec.ts.snap | 166 +++++++----------- .../__snapshots__/Drawer.spec.ts.snap | 166 +++++++----------- 13 files changed, 184 insertions(+), 250 deletions(-) diff --git a/docs/content/3.components/drawer.md b/docs/content/3.components/drawer.md index 89f02760..dfd3d76c 100644 --- a/docs/content/3.components/drawer.md +++ b/docs/content/3.components/drawer.md @@ -166,6 +166,31 @@ slots: :placeholder{class="h-48 m-4"} :: +### Handle Only + +Use the `handle-only` prop to only allow the Drawer to be dragged by the handle. + +::component-code +--- +prettier: true +props: + handleOnly: true +slots: + default: | + + + + content: | + + +--- + +:u-button{label="Open" color="neutral" variant="subtle" trailing-icon="i-lucide-chevron-up"} + +#content +:placeholder{class="h-48 m-4"} +:: + ### Overlay Use the `overlay` prop to control whether the Drawer has an overlay or not. Defaults to `true`. @@ -193,13 +218,14 @@ slots: ### Scale background -Use the `should-scale-background` prop to scale the background when the Drawer is open, creating a visual depth effect. +Use the `should-scale-background` prop to scale the background when the Drawer is open, creating a visual depth effect. You can set the `set-background-color-on-scale` prop to `false` to prevent changing the background color. ::component-code --- prettier: true props: shouldScaleBackground: true + setBackgroundColorOnScale: true slots: default: | @@ -217,12 +243,12 @@ slots: :: ::warning -Make sure to add the `vaul-drawer-wrapper` directive to a parent element of your app to make this work. +Make sure to add the `data-vaul-drawer-wrapper` directive to a parent element of your app to make this work. ```vue [app.vue]