chore(SelectMenu): merge search / searchPlaceholder into searchInput prop

This commit is contained in:
Benjamin Canac
2024-09-25 19:07:11 +02:00
parent 237e7a4e0e
commit 183207c2b8
3 changed files with 58 additions and 53 deletions

View File

@@ -44,8 +44,8 @@ describe('SelectMenu', () => {
['with id', { props: { ...props, id: 'id' } }],
['with name', { props: { ...props, name: 'name' } }],
['with placeholder', { props: { ...props, placeholder: 'Search...' } }],
['with searchPlaceholder', { props: { ...props, searchPlaceholder: 'Filter items...' } }],
['without search', { props: { ...props, search: false } }],
['without searchInput', { props: { ...props, searchInput: false } }],
['with searchInput placeholder', { props: { ...props, searchInput: { placeholder: 'Filter items...' } } }],
['with disabled', { props: { ...props, disabled: true } }],
['with required', { props: { ...props, required: true } }],
['with icon', { props: { ...props, icon: 'i-heroicons-magnifying-glass' } }],