Skip to content

Commit

Permalink
Add align menu prop
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Nov 21, 2024
1 parent 0f4469d commit beea93f
Show file tree
Hide file tree
Showing 7 changed files with 832 additions and 825 deletions.
174 changes: 87 additions & 87 deletions lib/platform-bible-react/dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.cjs.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lib/platform-bible-react/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@ export type ComboBoxProps<T> = {
buttonVariant?: ButtonProps["variant"];
/** Option boolean to set if popover should stay open after clicking an entry */
keepOpen?: boolean;
/** Control how the popover menu should be aligned. Defaults to center */
alignMenu?: "start" | "center" | "end";
/** Text direction ltr or rtl */
dir?: Direction;
/** Optional boolean to set if trigger should be disabled */
Expand All @@ -708,7 +710,7 @@ export type Direction = "ltr" | "rtl";
* Thanks to Shadcn for heavy inspiration and documentation
* https://ui.shadcn.com/docs/components/combobox
*/
export declare function ComboBox<T extends ComboBoxOption = ComboBoxOption>({ id, options, className, value, onChange, getOptionLabel, buttonIcon, buttonPlaceholder, textPlaceholder, alwaysShowPlaceholderOnButton, hideChevrons, commandEmptyMessage, buttonVariant, keepOpen, dir, isDisabled, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function ComboBox<T extends ComboBoxOption = ComboBoxOption>({ id, options, className, value, onChange, getOptionLabel, buttonIcon, buttonPlaceholder, textPlaceholder, alwaysShowPlaceholderOnButton, hideChevrons, commandEmptyMessage, buttonVariant, keepOpen, alignMenu, dir, isDisabled, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
export type MenuItemInfoBase = {
/** Text (displayable in the UI) as the name of the menu item */
label: string;
Expand Down
Loading

0 comments on commit beea93f

Please sign in to comment.