feat(SelectMenu): use UInput in search to handle props like icon

Resolves #2021
This commit is contained in:
Benjamin Canac
2024-11-10 23:22:44 +01:00
parent b0be26d67f
commit ff1e0798d3
6 changed files with 501 additions and 115 deletions

View File

@@ -7,26 +7,7 @@ export default (options: Required<ModuleOptions>) => {
slots: {
value: 'truncate',
placeholder: 'truncate text-[var(--ui-text-dimmed)]',
input: 'placeholder:text-[var(--ui-text-dimmed)] border-0 border-b border-[var(--ui-border)] focus:outline-none'
},
variants: {
size: {
xs: {
input: 'text-xs px-2 py-1'
},
sm: {
input: 'text-xs px-2.5 py-1.5'
},
md: {
input: 'text-sm px-2.5 py-1.5'
},
lg: {
input: 'text-sm px-3 py-2'
},
xl: {
input: 'text-base px-3 py-2'
}
}
input: 'border-b border-[var(--ui-border)]'
}
}, select(options))
}