chore(theme): improve options type

This commit is contained in:
Benjamin Canac
2024-06-05 22:12:11 +02:00
parent ecc2240df0
commit 3f2b1b12cd
18 changed files with 220 additions and 192 deletions

View File

@@ -1,12 +1,13 @@
import { defu } from 'defu'
import type { ModuleOptions } from '../module'
import select from './select'
export default (config: { colors: string[] }) => {
export default (options: Required<ModuleOptions>) => {
return defu({
slots: {
value: 'truncate',
placeholder: 'truncate text-current/50',
input: 'text-sm px-2.5 py-1.5 placeholder-gray-400 dark:placeholder-gray-500 border-0 border-b border-gray-200 dark:border-gray-800 focus:outline-none'
}
}, select(config))
}, select(options))
}