* chore: enable tw prefix * chore: enable tw prefix during init * fix: cater for cn function * fix: prevent transforming importDeclaration * chore: update registry to make sure tailwind prefix parse correctly * chore: fix wrong import * chore: checkpoint * refactor: goodbye ts-morph * chore: remove ts-morpg * chore: update test * chore: cleanup * chore: fix test * fix: move vue-metamorph to dep * refactor: transform tw prefix by specific case * fix: transform-sfc not parsing .ts file * fix: prefix double quote * chore: patch vue-eslint-parser * refactor: transform to cater only for class in sfc * refactor: replace detypes with @unovue/detypes * chore: update test snapshot * chore: update pnpm-lock, fix import * chore: bump detypes version * chore: update deps
46 lines
940 B
Plaintext
46 lines
940 B
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`transform css vars 1`] = `
|
|
"<script setup lang="ts"></script>
|
|
<template>
|
|
<div
|
|
class="bg-background hover:bg-muted text-primary-foreground sm:focus:text-accent-foreground"
|
|
>
|
|
foo
|
|
</div>
|
|
</template>
|
|
"
|
|
"
|
|
`;
|
|
|
|
exports[`transform css vars 2`] = `
|
|
"<script setup lang="ts"></script>
|
|
<template>
|
|
<div
|
|
class="bg-white hover:bg-stone-100 text-stone-50 sm:focus:text-stone-900 dark:bg-stone-950 dark:hover:bg-stone-800 dark:text-stone-900 dark:sm:focus:text-stone-50"
|
|
>
|
|
foo
|
|
</div>
|
|
</template>
|
|
"
|
|
"
|
|
`;
|
|
|
|
exports[`transform css vars 3`] = `
|
|
"<script setup lang="ts"></script>
|
|
<template>
|
|
<div
|
|
:class="
|
|
cn(
|
|
'bg-white hover:bg-stone-100 dark:bg-stone-950 dark:hover:bg-stone-800',
|
|
true && 'text-stone-50 sm:focus:text-stone-900 dark:text-stone-900 dark:sm:focus:text-stone-50',
|
|
)
|
|
"
|
|
>
|
|
foo
|
|
</div>
|
|
</template>
|
|
"
|
|
"
|
|
`;
|