feat(module): add option to disable transitions

This commit is contained in:
Benjamin Canac
2024-06-05 23:11:58 +02:00
parent 3f2b1b12cd
commit 5f4fd972ff
18 changed files with 182 additions and 166 deletions

View File

@@ -15,6 +15,11 @@ export interface ModuleOptions {
* @defaultValue ['primary', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchia', 'pink', 'rose']
*/
colors?: string[]
/**
* Disable color transitions
* @defaultValue true
*/
transitions?: boolean
}
export default defineNuxtModule<ModuleOptions>({
@@ -27,7 +32,8 @@ export default defineNuxtModule<ModuleOptions>({
},
defaults: {
prefix: 'U',
colors: undefined
colors: undefined,
transitions: true
},
async setup(options, nuxt) {
const { resolve } = createResolver(import.meta.url)