fix: remove translateWithIdMenu, use translateWithId instead, rename translateWithIdInput (#1285)

* fix: remove translateWithIdMenu, use translateWithId instead

* chore: rename translateWithIdInput to translateWithIdSelection
This commit is contained in:
metonym 2022-05-04 07:40:10 -07:00 committed by GitHub
commit f7146b61dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 81 additions and 135 deletions

View file

@ -121,19 +121,12 @@ export interface ComboBoxProps
id: import("../ListBox/ListBoxMenuIcon.svelte").ListBoxMenuIconTranslationId
) => string;
/**
* Override the menu label based on the open state.
* Defaults to "Open menu" and "Close menu"
* @default undefined
*/
translateWithIdMenu?: (id: any) => string;
/**
* Override the label of the clear button when the input has a selection.
* Defaults to "Clear selected item"
* Defaults to "Clear selected item" since a combo box can only have on selection.
* @default undefined
*/
translateWithIdInput?: (id: "clearSelection") => string;
translateWithIdSelection?: (id: "clearSelection") => string;
/**
* Set an id for the list box component