chore(module): update

This commit is contained in:
Benjamin Canac
2024-03-07 18:26:07 +01:00
parent 11dd34c15d
commit 58ce6e86d0
4 changed files with 21 additions and 14 deletions

View File

@@ -4,9 +4,7 @@ import appConfig from '#build/app.config'
import type { LinkProps } from '#ui/components/Link.vue'
import theme from '#build/ui/button'
// @ts-ignore
const button = tv(theme)
// const button = tv({ extend: tv(theme), ...(appConfig.ui?.button || {}) })
const button = tv({ extend: tv(theme), ...(appConfig.ui?.button || {}) })
type ButtonVariants = VariantProps<typeof button>

View File

@@ -1,11 +1,10 @@
<script lang="ts">
import { tv } from 'tailwind-variants'
import type { TooltipRootProps, TooltipRootEmits, TooltipContentProps } from 'radix-vue'
// import appConfig from '#build/app.config'
import appConfig from '#build/app.config'
import theme from '#build/ui/tooltip'
const tooltip = tv(theme)
// const tooltip = tv({ extend: tv(theme), ...(appConfig.ui?.tooltip || {}) })
const tooltip = tv({ extend: tv(theme), ...(appConfig.ui?.tooltip || {}) })
export interface TooltipProps extends TooltipRootProps, Omit<TooltipContentProps, 'as' | 'asChild'> {
text?: string
@@ -35,7 +34,7 @@ const props = withDefaults(defineProps<TooltipProps>(), {
text: '',
side: 'bottom',
delayDuration: 0,
sideOffset: 8,
class: undefined,
ui: undefined
})