diff --git a/docs/app/components/content/examples/drawer/DrawerNestedExample.vue b/docs/app/components/content/examples/drawer/DrawerNestedExample.vue index e1bf4124d0..cc1d6570bd 100644 --- a/docs/app/components/content/examples/drawer/DrawerNestedExample.vue +++ b/docs/app/components/content/examples/drawer/DrawerNestedExample.vue @@ -3,7 +3,7 @@ - + diff --git a/docs/content/docs/2.components/drawer.md b/docs/content/docs/2.components/drawer.md index 381851938b..7d7722ebe9 100644 --- a/docs/content/docs/2.components/drawer.md +++ b/docs/content/docs/2.components/drawer.md @@ -4,7 +4,7 @@ category: overlay links: - label: Drawer icon: i-custom-reka-ui - to: https://github.com/unovue/vaul-vue + to: https://reka-ui.com/docs/components/drawer - label: GitHub icon: i-simple-icons-github to: https://github.com/nuxt/ui/blob/v4/src/runtime/components/Drawer.vue @@ -230,31 +230,6 @@ 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`. @@ -328,60 +303,6 @@ name: 'drawer-dismissible-example' --- :: -### Scale Background - -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: | - - - - content: | - - ---- - -:u-button{label="Open" color="neutral" variant="subtle" trailing-icon="i-lucide-chevron-up"} - -#content -:placeholder{class="h-screen m-4"} -:: - -::warning -Make sure to add the `data-vaul-drawer-wrapper` directive to a parent element of your app to make this work. - -```vue [app.vue] - - - - - - - - - -``` - -```ts [nuxt.config.ts] -export default defineNuxtConfig({ - app: { - rootAttrs: { - 'data-vaul-drawer-wrapper': '', - 'class': 'bg-default' - } - } -}) -``` - -:: - ## Examples ### Control open state @@ -416,7 +337,7 @@ name: 'drawer-responsive-example' ### Nested drawers -You can nest drawers within each other by using the `nested` prop. +You can nest drawers within each other — nesting is detected automatically, no extra prop is needed. ::component-example --- diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index d7c9c3d504..01fa66f6c5 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -42,8 +42,7 @@ export default defineNuxtConfig({ } }, rootAttrs: { - 'data-vaul-drawer-wrapper': '', - 'class': 'bg-default' + class: 'bg-default' } }, @@ -251,7 +250,6 @@ export default defineNuxtConfig({ 'tailwind-variants', '@comark/vue', '@comark/vue/plugins/highlight', - 'vaul-vue', '@vueuse/integrations/useFuse', '@floating-ui/dom', '@tiptap/vue-3', diff --git a/package.json b/package.json index 2e0dd487b7..faa0c04802 100644 --- a/package.json +++ b/package.json @@ -190,7 +190,6 @@ "unplugin": "^3.3.0", "unplugin-auto-import": "^21.0.0", "unplugin-vue-components": "^32.1.0", - "vaul-vue": "0.4.1", "vue-component-type-helpers": "^3.3.6" }, "devDependencies": { diff --git a/playgrounds/nuxt/app/pages/components/drawer.vue b/playgrounds/nuxt/app/pages/components/drawer.vue index eb8d826175..7ad473d4d9 100644 --- a/playgrounds/nuxt/app/pages/components/drawer.vue +++ b/playgrounds/nuxt/app/pages/components/drawer.vue @@ -22,19 +22,11 @@ const inset = ref(false) - - - - - - - - - + - + diff --git a/playgrounds/nuxt/nuxt.config.ts b/playgrounds/nuxt/nuxt.config.ts index c7570f9a67..1916c6fdc0 100644 --- a/playgrounds/nuxt/nuxt.config.ts +++ b/playgrounds/nuxt/nuxt.config.ts @@ -25,8 +25,7 @@ export default defineNuxtConfig({ '@vueuse/integrations/useFuse', 'ai', 'tailwind-variants', - 'tailwindcss/colors', - 'vaul-vue' + 'tailwindcss/colors' ] } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6be31988da..f3fb046b39 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -224,9 +224,6 @@ importers: valibot: specifier: ^1.0.0 version: 1.4.2(typescript@6.0.3) - vaul-vue: - specifier: 0.4.1 - version: 0.4.1(reka-ui@2.10.1(vue@3.5.39(typescript@6.0.3)))(vue@3.5.39(typescript@6.0.3)) vue-component-type-helpers: specifier: ^3.3.6 version: 3.3.6 @@ -3643,9 +3640,6 @@ packages: '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} - '@types/web-bluetooth@0.0.20': - resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} - '@types/web-bluetooth@0.0.21': resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} @@ -4060,9 +4054,6 @@ packages: '@vue/server-renderer': optional: true - '@vueuse/core@10.11.1': - resolution: {integrity: sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==} - '@vueuse/core@14.3.0': resolution: {integrity: sha512-aHfz47g0ZhMtTVHmIzMVpJy8ePhhOy68GY5bv110+5DVtZ+W7BsOx+m61UNQqfrWyPztIHIanWa3E2tib3NFIw==} peerDependencies: @@ -4110,9 +4101,6 @@ packages: universal-cookie: optional: true - '@vueuse/metadata@10.11.1': - resolution: {integrity: sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==} - '@vueuse/metadata@14.3.0': resolution: {integrity: sha512-BwxmbAzwAVF50+MW57GXOUEV61nFBGnlBvrTqj49PqWJu3uw7hdu72ztXeZ33RdZtDY6kO+bfCAE1PCn88Tktw==} @@ -4122,9 +4110,6 @@ packages: nuxt: ^3.0.0 || ^4.0.0-0 vue: ^3.5.0 - '@vueuse/shared@10.11.1': - resolution: {integrity: sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==} - '@vueuse/shared@14.3.0': resolution: {integrity: sha512-bZpge9eSXwa4ToSiqJ7j6KRwhAsneMFoSz3LMWKQDkqimm3D/tbFlrklrs/IOqC8tEcYmXQZJ6N0UrjhBirVCg==} peerDependencies: @@ -8615,12 +8600,6 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} - vaul-vue@0.4.1: - resolution: {integrity: sha512-A6jOWOZX5yvyo1qMn7IveoWN91mJI5L3BUKsIwkg6qrTGgHs1Sb1JF/vyLJgnbN1rH4OOOxFbtqL9A46bOyGUQ==} - peerDependencies: - reka-ui: ^2.0.0 - vue: ^3.3.0 - vfile-location@5.0.3: resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==} @@ -12105,8 +12084,6 @@ snapshots: '@types/unist@3.0.3': {} - '@types/web-bluetooth@0.0.20': {} - '@types/web-bluetooth@0.0.21': {} '@types/whatwg-mimetype@3.0.2': {} @@ -12553,16 +12530,6 @@ snapshots: optionalDependencies: '@vue/server-renderer': 3.5.39(vue@3.5.39(typescript@6.0.3)) - '@vueuse/core@10.11.1(vue@3.5.39(typescript@6.0.3))': - dependencies: - '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 10.11.1 - '@vueuse/shared': 10.11.1(vue@3.5.39(typescript@6.0.3)) - vue-demi: 0.14.10(vue@3.5.39(typescript@6.0.3)) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - '@vueuse/core@14.3.0(vue@3.5.39(typescript@6.0.3))': dependencies: '@types/web-bluetooth': 0.0.21 @@ -12580,8 +12547,6 @@ snapshots: fuse.js: 7.4.2 sortablejs: 1.15.7 - '@vueuse/metadata@10.11.1': {} - '@vueuse/metadata@14.3.0': {} '@vueuse/nuxt@14.3.0(esbuild@0.28.0)(magicast@0.5.3)(nuxt@4.4.8(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@babel/plugin-syntax-typescript@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@25.9.0)(@vue/compiler-sfc@3.5.39)(better-sqlite3@12.11.1)(cac@6.7.14)(db0@0.3.4(better-sqlite3@12.11.1))(esbuild@0.28.0)(eslint@10.6.0(jiti@2.7.0))(ioredis@5.10.1)(lightningcss@1.32.0)(magicast@0.5.3)(meow@13.2.0)(optionator@0.9.4)(rollup-plugin-visualizer@7.0.1(rollup@4.60.4))(rollup@4.60.4)(srvx@0.11.15)(terser@5.47.1)(typescript@6.0.3)(vite@7.3.6(@types/node@25.9.0)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.47.1)(yaml@2.9.0))(vue-tsc@3.3.6(typescript@6.0.3))(yaml@2.9.0))(rollup@4.60.4)(vite@7.3.6(@types/node@25.9.0)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.47.1)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))': @@ -12604,13 +12569,6 @@ snapshots: - vite - webpack - '@vueuse/shared@10.11.1(vue@3.5.39(typescript@6.0.3))': - dependencies: - vue-demi: 0.14.10(vue@3.5.39(typescript@6.0.3)) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - '@vueuse/shared@14.3.0(vue@3.5.39(typescript@6.0.3))': dependencies: vue: 3.5.39(typescript@6.0.3) @@ -18461,14 +18419,6 @@ snapshots: vary@1.1.2: {} - vaul-vue@0.4.1(reka-ui@2.10.1(vue@3.5.39(typescript@6.0.3)))(vue@3.5.39(typescript@6.0.3)): - dependencies: - '@vueuse/core': 10.11.1(vue@3.5.39(typescript@6.0.3)) - reka-ui: 2.10.1(vue@3.5.39(typescript@6.0.3)) - vue: 3.5.39(typescript@6.0.3) - transitivePeerDependencies: - - '@vue/composition-api' - vfile-location@5.0.3: dependencies: '@types/unist': 3.0.3 diff --git a/src/runtime/components/Drawer.vue b/src/runtime/components/Drawer.vue index 3ed1fb00ac..ff5ba59460 100644 --- a/src/runtime/components/Drawer.vue +++ b/src/runtime/components/Drawer.vue @@ -1,7 +1,6 @@ - + @@ -220,5 +258,5 @@ const ui = computed(() => tv({ extend: theme, ...(appConfig.ui?.drawer || {}) }) - + diff --git a/src/runtime/keyframes.css b/src/runtime/keyframes.css index cecad8d8e3..4e85b44cf9 100644 --- a/src/runtime/keyframes.css +++ b/src/runtime/keyframes.css @@ -272,6 +272,91 @@ } } +/* + * Inset drawer variants slide the same distance plus a fixed buffer so the + * floating, rounded-corner drawer fully clears the viewport edge instead of + * peeking through the inset gap while closed. + */ +@keyframes drawer-slide-in-from-top-inset { + from { + transform: translateY(calc(-100% - 1.5rem)); + } + + to { + transform: translateY(0); + } +} + +@keyframes drawer-slide-out-to-top-inset { + from { + transform: translateY(0); + } + + to { + transform: translateY(calc(-100% - 1.5rem)); + } +} + +@keyframes drawer-slide-in-from-right-inset { + from { + transform: translateX(calc(100% + 1.5rem)); + } + + to { + transform: translateX(0); + } +} + +@keyframes drawer-slide-out-to-right-inset { + from { + transform: translateX(0); + } + + to { + transform: translateX(calc(100% + 1.5rem)); + } +} + +@keyframes drawer-slide-in-from-bottom-inset { + from { + transform: translateY(calc(100% + 1.5rem)); + } + + to { + transform: translateY(0); + } +} + +@keyframes drawer-slide-out-to-bottom-inset { + from { + transform: translateY(0); + } + + to { + transform: translateY(calc(100% + 1.5rem)); + } +} + +@keyframes drawer-slide-in-from-left-inset { + from { + transform: translateX(calc(-100% - 1.5rem)); + } + + to { + transform: translateX(0); + } +} + +@keyframes drawer-slide-out-to-left-inset { + from { + transform: translateX(0); + } + + to { + transform: translateX(calc(-100% - 1.5rem)); + } +} + @keyframes slide-in-from-top-and-fade { from { opacity: 0; diff --git a/src/theme/drawer.ts b/src/theme/drawer.ts index 0f05118562..051081c5ae 100644 --- a/src/theme/drawer.ts +++ b/src/theme/drawer.ts @@ -2,8 +2,8 @@ import type { ModuleOptions } from '../module' export default (options: Required) => ({ slots: { - overlay: 'fixed inset-0 bg-elevated/75', - content: 'fixed bg-default ring ring-default flex focus:outline-none', + overlay: ['fixed inset-0 bg-elevated/75', options.theme.transitions && 'data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]'], + content: ['fixed bg-default ring ring-default flex focus:outline-none', options.theme.transitions && 'will-change-transform transition-transform data-[swiping]:duration-0'], handle: ['shrink-0 !bg-accented', options.theme.transitions && 'transition-opacity'], container: 'w-full flex flex-col gap-4 p-4 overflow-y-auto', header: 'flex items-center gap-1.5 min-h-8', @@ -18,25 +18,25 @@ export default (options: Required) => ({ variants: { direction: { top: { - content: 'mb-24 flex-col-reverse', + content: 'mb-24 flex-col-reverse translate-y-[calc(var(--drawer-swipe-movement-y,0px)+var(--drawer-snap-point-offset,0px))]', handle: 'mb-4' }, right: { - content: 'flex-row rtl:flex-row-reverse', + content: 'flex-row rtl:flex-row-reverse translate-x-[calc(var(--drawer-swipe-movement-x,0px)+var(--drawer-snap-point-offset,0px))]', handle: '!ml-4' }, bottom: { - content: 'mt-24 flex-col', + content: 'mt-24 flex-col translate-y-[calc(var(--drawer-swipe-movement-y,0px)+var(--drawer-snap-point-offset,0px))]', handle: 'mt-4' }, left: { - content: 'flex-row-reverse rtl:flex-row', + content: 'flex-row-reverse rtl:flex-row translate-x-[calc(var(--drawer-swipe-movement-x,0px)+var(--drawer-snap-point-offset,0px))]', handle: '!mr-4' } }, inset: { true: { - content: 'rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]' + content: 'rounded-lg after:hidden overflow-hidden' } }, snapPoints: { @@ -116,5 +116,56 @@ export default (options: Required) => ({ class: { content: 'inset-y-0 right-0 rounded-l-lg' } + }, + // Enter/exit slide animations, keyed by direction and whether the drawer is inset + // (inset variants travel an extra 1.5rem so the floating drawer fully clears the gap). + { + direction: 'top', + inset: false, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]' : '' + } + }, { + direction: 'top', + inset: true, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[drawer-slide-in-from-top-inset_200ms_ease-in-out] data-[state=closed]:animate-[drawer-slide-out-to-top-inset_200ms_ease-in-out]' : '' + } + }, { + direction: 'bottom', + inset: false, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]' : '' + } + }, { + direction: 'bottom', + inset: true, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[drawer-slide-in-from-bottom-inset_200ms_ease-in-out] data-[state=closed]:animate-[drawer-slide-out-to-bottom-inset_200ms_ease-in-out]' : '' + } + }, { + direction: 'left', + inset: false, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]' : '' + } + }, { + direction: 'left', + inset: true, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[drawer-slide-in-from-left-inset_200ms_ease-in-out] data-[state=closed]:animate-[drawer-slide-out-to-left-inset_200ms_ease-in-out]' : '' + } + }, { + direction: 'right', + inset: false, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]' : '' + } + }, { + direction: 'right', + inset: true, + class: { + content: options.theme.transitions ? 'data-[state=open]:animate-[drawer-slide-in-from-right-inset_200ms_ease-in-out] data-[state=closed]:animate-[drawer-slide-out-to-right-inset_200ms_ease-in-out]' : '' + } }] }) diff --git a/test/components/__snapshots__/DashboardSidebar-vue.spec.ts.snap b/test/components/__snapshots__/DashboardSidebar-vue.spec.ts.snap index f8301f4776..3422438eea 100644 --- a/test/components/__snapshots__/DashboardSidebar-vue.spec.ts.snap +++ b/test/components/__snapshots__/DashboardSidebar-vue.spec.ts.snap @@ -200,9 +200,9 @@ exports[`DashboardSidebar > renders with mode drawer correctly 1`] = ` - - - dashboardSidebar.titledashboardSidebar.description + + + dashboardSidebar.titledashboardSidebar.description diff --git a/test/components/__snapshots__/DashboardSidebar.spec.ts.snap b/test/components/__snapshots__/DashboardSidebar.spec.ts.snap index 5a821c001e..454dfa3027 100644 --- a/test/components/__snapshots__/DashboardSidebar.spec.ts.snap +++ b/test/components/__snapshots__/DashboardSidebar.spec.ts.snap @@ -200,9 +200,9 @@ exports[`DashboardSidebar > renders with mode drawer correctly 1`] = ` - - - dashboardSidebar.titledashboardSidebar.description + + + dashboardSidebar.titledashboardSidebar.description diff --git a/test/components/__snapshots__/Drawer-vue.spec.ts.snap b/test/components/__snapshots__/Drawer-vue.spec.ts.snap index 45ceeb911e..6656a64aa4 100644 --- a/test/components/__snapshots__/Drawer-vue.spec.ts.snap +++ b/test/components/__snapshots__/Drawer-vue.spec.ts.snap @@ -6,13 +6,13 @@ exports[`Drawer > renders with actions slot correctly 1`] = ` - - - + + + - Title + Title Actions slot @@ -35,9 +35,9 @@ exports[`Drawer > renders with body slot correctly 1`] = ` - - - + + + Body slot @@ -56,9 +56,9 @@ exports[`Drawer > renders with class correctly 1`] = ` - - - + + + @@ -77,15 +77,15 @@ exports[`Drawer > renders with close correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -108,9 +108,9 @@ exports[`Drawer > renders with close slot correctly 1`] = ` - - - + + + @@ -132,15 +132,15 @@ exports[`Drawer > renders with closeIcon correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -163,9 +163,9 @@ exports[`Drawer > renders with content slot correctly 1`] = ` - - - Content slot + + + Content slot @@ -179,9 +179,9 @@ exports[`Drawer > renders with default slot correctly 1`] = ` - - - + + + @@ -200,15 +200,15 @@ exports[`Drawer > renders with description correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -228,14 +228,14 @@ exports[`Drawer > renders with description slot correctly 1`] = ` - - - + + + - Description slot + Description slot @@ -255,15 +255,15 @@ exports[`Drawer > renders with direction bottom correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -283,15 +283,15 @@ exports[`Drawer > renders with direction bottom inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -311,15 +311,15 @@ exports[`Drawer > renders with direction left correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -339,15 +339,15 @@ exports[`Drawer > renders with direction left inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -367,15 +367,15 @@ exports[`Drawer > renders with direction right correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -395,15 +395,15 @@ exports[`Drawer > renders with direction right inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -423,15 +423,15 @@ exports[`Drawer > renders with direction top correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -451,15 +451,15 @@ exports[`Drawer > renders with direction top inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -479,9 +479,9 @@ exports[`Drawer > renders with footer slot correctly 1`] = ` - - - + + + @@ -500,9 +500,9 @@ exports[`Drawer > renders with header slot correctly 1`] = ` - - - + + + Header slot @@ -521,13 +521,13 @@ exports[`Drawer > renders with title correctly 1`] = ` - - - + + + - Title + Title @@ -548,13 +548,13 @@ exports[`Drawer > renders with title slot correctly 1`] = ` - - - + + + - Title slot + Title slot @@ -575,9 +575,9 @@ exports[`Drawer > renders with ui correctly 1`] = ` - - - + + + @@ -596,15 +596,15 @@ exports[`Drawer > renders without handle correctly 1`] = ` - - + + - Title - Description + Title + Description @@ -625,14 +625,14 @@ exports[`Drawer > renders without overlay correctly 1`] = ` - - + + - Title - Description + Title + Description diff --git a/test/components/__snapshots__/Drawer.spec.ts.snap b/test/components/__snapshots__/Drawer.spec.ts.snap index 282b3199c0..38bbf6e639 100644 --- a/test/components/__snapshots__/Drawer.spec.ts.snap +++ b/test/components/__snapshots__/Drawer.spec.ts.snap @@ -6,13 +6,13 @@ exports[`Drawer > renders with actions slot correctly 1`] = ` - - - + + + - Title + Title Actions slot @@ -35,9 +35,9 @@ exports[`Drawer > renders with body slot correctly 1`] = ` - - - + + + Body slot @@ -56,9 +56,9 @@ exports[`Drawer > renders with class correctly 1`] = ` - - - + + + @@ -77,15 +77,15 @@ exports[`Drawer > renders with close correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -108,9 +108,9 @@ exports[`Drawer > renders with close slot correctly 1`] = ` - - - + + + @@ -132,15 +132,15 @@ exports[`Drawer > renders with closeIcon correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -163,9 +163,9 @@ exports[`Drawer > renders with content slot correctly 1`] = ` - - - Content slot + + + Content slot @@ -179,9 +179,9 @@ exports[`Drawer > renders with default slot correctly 1`] = ` - - - + + + @@ -200,15 +200,15 @@ exports[`Drawer > renders with description correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -228,14 +228,14 @@ exports[`Drawer > renders with description slot correctly 1`] = ` - - - + + + - Description slot + Description slot @@ -255,15 +255,15 @@ exports[`Drawer > renders with direction bottom correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -283,15 +283,15 @@ exports[`Drawer > renders with direction bottom inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -311,15 +311,15 @@ exports[`Drawer > renders with direction left correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -339,15 +339,15 @@ exports[`Drawer > renders with direction left inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -367,15 +367,15 @@ exports[`Drawer > renders with direction right correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -395,15 +395,15 @@ exports[`Drawer > renders with direction right inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -423,15 +423,15 @@ exports[`Drawer > renders with direction top correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -451,15 +451,15 @@ exports[`Drawer > renders with direction top inset correctly 1`] = ` - - - + + + - Title - Description + Title + Description @@ -479,9 +479,9 @@ exports[`Drawer > renders with footer slot correctly 1`] = ` - - - + + + @@ -500,9 +500,9 @@ exports[`Drawer > renders with header slot correctly 1`] = ` - - - + + + Header slot @@ -521,13 +521,13 @@ exports[`Drawer > renders with title correctly 1`] = ` - - - + + + - Title + Title @@ -548,13 +548,13 @@ exports[`Drawer > renders with title slot correctly 1`] = ` - - - + + + - Title slot + Title slot @@ -575,9 +575,9 @@ exports[`Drawer > renders with ui correctly 1`] = ` - - - + + + @@ -596,15 +596,15 @@ exports[`Drawer > renders without handle correctly 1`] = ` - - + + - Title - Description + Title + Description @@ -625,14 +625,14 @@ exports[`Drawer > renders without overlay correctly 1`] = ` - - + + - Title - Description + Title + Description diff --git a/test/components/__snapshots__/Header-vue.spec.ts.snap b/test/components/__snapshots__/Header-vue.spec.ts.snap index b6a1d64225..5566844be0 100644 --- a/test/components/__snapshots__/Header-vue.spec.ts.snap +++ b/test/components/__snapshots__/Header-vue.spec.ts.snap @@ -144,9 +144,9 @@ exports[`Header > renders with mode drawer correctly 1`] = ` - - - header.titleheader.description + + + header.titleheader.description diff --git a/test/components/__snapshots__/Header.spec.ts.snap b/test/components/__snapshots__/Header.spec.ts.snap index 84790d0ad6..bd00c5385c 100644 --- a/test/components/__snapshots__/Header.spec.ts.snap +++ b/test/components/__snapshots__/Header.spec.ts.snap @@ -144,9 +144,9 @@ exports[`Header > renders with mode drawer correctly 1`] = ` - - - header.titleheader.description + + + header.titleheader.description
dashboardSidebar.description
Description
Description slot
header.description