From fabf42735e19bdb08fa1627bd5e6be602e15e89d Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Sat, 15 Feb 2025 13:28:34 +0100 Subject: [PATCH 1/7] docs(nuxt.config): disable `nitro.prerender.failOnError` --- docs/nuxt.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index a90ddef6..cebecf26 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -97,7 +97,8 @@ export default defineNuxtConfig({ // '/api/pulls.json' ], crawlLinks: true, - autoSubfolderIndex: false + autoSubfolderIndex: false, + failOnError: false }, cloudflare: { pages: { @@ -155,6 +156,7 @@ export default defineNuxtConfig({ image: { provider: 'ipx' }, + llms: { domain: 'https://ui3.nuxt.dev', title: 'Nuxt UI v3', From 6d9b9edc5524ad32abdec925c276519e1a1a59e4 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Sat, 15 Feb 2025 16:21:41 +0100 Subject: [PATCH 2/7] feat(Drawer): add `inset` prop Resolves #2994 --- docs/content/3.components/drawer.md | 59 +++-- playground/app/pages/components/drawer.vue | 15 +- src/runtime/components/Drawer.vue | 8 +- src/theme/drawer.ts | 65 ++++- test/components/Drawer.spec.ts | 6 +- .../__snapshots__/Drawer-vue.spec.ts.snap | 228 +++++++++++++++--- .../__snapshots__/Drawer.spec.ts.snap | 228 +++++++++++++++--- 7 files changed, 490 insertions(+), 119 deletions(-) diff --git a/docs/content/3.components/drawer.md b/docs/content/3.components/drawer.md index 156dcf77..1930bed8 100644 --- a/docs/content/3.components/drawer.md +++ b/docs/content/3.components/drawer.md @@ -96,35 +96,6 @@ Use the `direction` prop to control the direction of the Drawer. Defaults to `bo ::component-code --- prettier: true -items: - direction: - - top - - bottom -props: - direction: 'top' -slots: - default: | - - - - content: | - - ---- - -:u-button{label="Open" color="neutral" variant="subtle" trailing-icon="i-lucide-chevron-up"} - -#content -:placeholder{class="h-96 m-4"} -:: - -::component-code ---- -prettier: true -items: - direction: - - right - - left props: direction: 'right' slots: @@ -134,13 +105,39 @@ slots: content: | - + --- :u-button{label="Open" color="neutral" variant="subtle" trailing-icon="i-lucide-chevron-up"} #content -:placeholder{class="w-96 m-4"} +:placeholder{class="min-w-96 min-h-96 size-full m-4"} +:: + +### Inset + +Use the `inset` prop to inset the Drawer from the edges. + +::component-code +--- +prettier: true +props: + direction: 'right' + inset: true +slots: + default: | + + + + content: | + + +--- + +:u-button{label="Open" color="neutral" variant="subtle" trailing-icon="i-lucide-chevron-up"} + +#content +:placeholder{class="min-w-96 min-h-96 size-full m-4"} :: ### Handle diff --git a/playground/app/pages/components/drawer.vue b/playground/app/pages/components/drawer.vue index b940b1ef..d47f852b 100644 --- a/playground/app/pages/components/drawer.vue +++ b/playground/app/pages/components/drawer.vue @@ -1,10 +1,13 @@