Skip to content

Commit

Permalink
fix autocomplete warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolie Rabideau authored and Jolie Rabideau committed Oct 2, 2023
1 parent 73e3bf9 commit 977ca8f
Show file tree
Hide file tree
Showing 9 changed files with 782 additions and 754 deletions.
224 changes: 112 additions & 112 deletions lib/papi-components/dist/index.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/papi-components/dist/index.cjs.js.map

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions lib/papi-components/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ export declare function Button({ id, isDisabled, className, onClick, onContextMe
export type ChapterRangeSelectorProps = {
startChapter: number;
endChapter: number;
onChangeStartChapter: (event: SyntheticEvent<Element, Event>, value: number) => void;
onChangeEndChapter: (event: SyntheticEvent<Element, Event>, value: number) => void;
handleSelectStartChapter: (chapter: number) => void;
handleSelectEndChapter: (chapter: number) => void;
isDisabled?: boolean;
chapterCount: number;
};
export function ChapterRangeSelector({ startChapter, endChapter, onChangeStartChapter, onChangeEndChapter, isDisabled, chapterCount, }: ChapterRangeSelectorProps): import("react/jsx-runtime").JSX.Element;
export function ChapterRangeSelector({ startChapter, endChapter, handleSelectStartChapter, handleSelectEndChapter, isDisabled, chapterCount, }: ChapterRangeSelectorProps): import("react/jsx-runtime").JSX.Element;
export declare enum LabelPosition {
After = "after",
Before = "before",
Expand Down Expand Up @@ -166,14 +166,18 @@ export type ComboBoxProps<T> = {
* Triggers when textfield loses focus
*/
onBlur?: FocusEventHandler<HTMLDivElement>;
/**
* Used to determine the string value for a given option.
*/
getOptionLabel?: (option: ComboBoxOption) => string;
};
/**
* Dropdown selector displaying various options from which to choose
*
* Thanks to MUI for heavy inspiration and documentation
* https://mui.com/material-ui/getting-started/overview/
*/
export declare function ComboBox<T extends ComboBoxOption = ComboBoxOption>({ id, title, isDisabled, isClearable, hasError, isFullWidth, width, options, className, value, onChange, onFocus, onBlur, }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function ComboBox<T extends ComboBoxOption = ComboBoxOption>({ id, title, isDisabled, isClearable, hasError, isFullWidth, width, options, className, value, onChange, onFocus, onBlur, getOptionLabel, }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
export type Command = {
/**
* Text (displayable in the UI) as the name of the command
Expand Down
Loading

0 comments on commit 977ca8f

Please sign in to comment.