Skip to content

Commit

Permalink
Run basic checks stub (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolierabideau authored Oct 3, 2023
2 parents 1fec6a0 + 977ca8f commit e6b1abd
Show file tree
Hide file tree
Showing 16 changed files with 1,970 additions and 1,399 deletions.
302 changes: 151 additions & 151 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.

27 changes: 18 additions & 9 deletions lib/papi-components/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ export type ButtonProps = PropsWithChildren<{
* https://mui.com/material-ui/getting-started/overview/
*/
export declare function Button({ id, isDisabled, className, onClick, onContextMenu, children, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
export type ChapterRangeSelectorProps = {
startChapter: number;
endChapter: number;
handleSelectStartChapter: (chapter: number) => void;
handleSelectEndChapter: (chapter: number) => void;
isDisabled?: boolean;
chapterCount: number;
};
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 @@ -96,7 +105,7 @@ export declare function Checkbox({ id, isChecked, labelText, labelPosition, isIn
export type ComboBoxLabelOption = {
label: string;
};
export type ComboBoxOption = string | ComboBoxLabelOption;
export type ComboBoxOption = string | number | ComboBoxLabelOption;
export type ComboBoxValue<T, X, Y, Z> = AutocompleteValue<T, X, Y, Z>;
export type ComboBoxChangeDetails<T> = AutocompleteChangeDetails<T>;
export type ComboBoxChangeReason = AutocompleteChangeReason;
Expand Down Expand Up @@ -142,7 +151,7 @@ export type ComboBoxProps<T> = {
*/
className?: string;
/**
* The selected value that the combo box currently holds
* The selected value that the combo box currently holds. Must be shallow equal to one of the options entries.
*/
value?: T;
/**
Expand All @@ -157,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 Expand Up @@ -265,11 +278,6 @@ export type IconButtonProps = PropsWithChildren<{
* If true, no tooltip will be displayed.
*/
isTooltipSuppressed?: boolean;
/**
* If true, the keyboard focus ripple is disabled.
* @default false
*/
isFocusRippleDisabled?: boolean;
/**
* If given, uses a negative margin to counteract the padding on one side (this is often helpful
* for aligning the left or right side of the icon with content above or below, without ruining
Expand Down Expand Up @@ -297,7 +305,7 @@ export type IconButtonProps = PropsWithChildren<{
* Thanks to MUI for heavy inspiration and documentation
* https://mui.com/material-ui/getting-started/overview/
*/
export declare function IconButton({ id, label, isDisabled, tooltip, isTooltipSuppressed, isFocusRippleDisabled, adjustMarginToAlignToEdge, size, className, onClick, children, }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
export declare function IconButton({ id, label, isDisabled, tooltip, isTooltipSuppressed, adjustMarginToAlignToEdge, size, className, onClick, children, }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
export interface ScriptureReference {
bookNum: number;
chapterNum: number;
Expand All @@ -309,6 +317,7 @@ export interface ScrRefSelectorProps {
id?: string;
}
export declare function RefSelector({ scrRef, handleSubmit, id }: ScrRefSelectorProps): import("react/jsx-runtime").JSX.Element;
export declare const getChaptersForBook: (bookNum: number) => number;
export type SliderProps = {
/**
* Optional unique identifier
Expand Down
Loading

0 comments on commit e6b1abd

Please sign in to comment.