There still exists an issue with one Adobe led library ; @international-dates don't seem to compile their sourcemaps correctly. I don't think this is something I can fix however, and it may require hacks and workarounds to solve from what I've gathered
29 lines
674 B
Vue
29 lines
674 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<{
|
|
class?: HTMLAttributes['class']
|
|
link?: string
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
:class="
|
|
cn('rounded-lg border bg-card text-card-foreground shadow-sm transition-all', props.class, {
|
|
'relative outline outline-2 outline-offset-4 outline-transparent hover:bg-sky-950 hover:-translate-y-[.2rem] focus-within:outline-sky-900':
|
|
props.link
|
|
})
|
|
"
|
|
>
|
|
<slot />
|
|
|
|
<NuxtLink
|
|
v-if="props.link"
|
|
:to="props.link"
|
|
class="absolute inset-0 focus-visible:outline-none"
|
|
/>
|
|
</div>
|
|
</template>
|