Skip to content

Commit

Permalink
chore: update floating-ui plugin and add tooltip themes
Browse files Browse the repository at this point in the history
This commit updates the floating-ui plugin and adds new tooltip themes for the 'tooltip-black' and 'tooltip-white' styles. The tooltip themes have been extended from the base 'tooltip' style and include a reset CSS option and a dispose timeout of 100000 milliseconds.
  • Loading branch information
gravitano committed Sep 3, 2024
1 parent 9809761 commit 08cb60c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,20 +758,20 @@ export default defineNuxtModule<ModuleOptions>({
addPlugin(resolve(runtimeDir, 'plugin'));

// install floating-vue
// installModule('floating-vue/nuxt')
installModule('floating-vue/nuxt')

// FloatingVue.options.themes = {
// 'tooltip-black': {
// $extend: 'tooltip',
// $resetCss: true,
// disposeTimeout: 100000,
// },
// 'tooltip-white': {
// $extend: 'tooltip',
// $resetCss: true,
// disposeTimeout: 100000,
// },
// }
FloatingVue.options.themes = {
'tooltip-black': {
$extend: 'tooltip',
$resetCss: true,
disposeTimeout: 100000,
},
'tooltip-white': {
$extend: 'tooltip',
$resetCss: true,
disposeTimeout: 100000,
},
}

// transpile deps
if (options.transpileDeps) {
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineNuxtPlugin } from '#app'
import { FloatingVuePlugin } from '../floating-vue'
// import { FloatingVuePlugin } from '../floating-vue'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(FloatingVuePlugin)
// nuxtApp.vueApp.use(FloatingVuePlugin)
})

0 comments on commit 08cb60c

Please sign in to comment.