Skip to content

Commit

Permalink
Run basic checks dialog follow up (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolierabideau authored May 24, 2024
2 parents 59f04c3 + 57d6cdd commit befce30
Show file tree
Hide file tree
Showing 19 changed files with 1,499 additions and 1,276 deletions.
8 changes: 8 additions & 0 deletions lib/papi-dts/papi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3797,6 +3797,8 @@ declare module 'renderer/components/dialogs/dialog-definition.model' {
export const SELECT_PROJECT_DIALOG_TYPE = 'platform.selectProject';
/** The tabType for the select multiple projects dialog in `select-multiple-projects.dialog.tsx` */
export const SELECT_MULTIPLE_PROJECTS_DIALOG_TYPE = 'platform.selectMultipleProjects';
/** The tabType for the select books dialog in `select-books.dialog.tsx` */
export const SELECT_BOOKS_DIALOG_TYPE = 'platform.selectBooks';
type ProjectDialogOptionsBase = DialogOptions & ProjectMetadataFilterOptions;
/** Options to provide when showing the Select Project dialog */
export type SelectProjectDialogOptions = ProjectDialogOptionsBase;
Expand All @@ -3805,6 +3807,11 @@ declare module 'renderer/components/dialogs/dialog-definition.model' {
/** Project IDs that should start selected in the dialog */
selectedProjectIds?: string[];
};
/** Options to provide when showing the Select Books dialog */
export type SelectBooksDialogOptions = DialogOptions & {
/** Books IDs that should start selected in the dialog */
selectedBookIds?: string[];
};
/**
* Mapped type for dialog functions to use in getting various types for dialogs
*
Expand All @@ -3818,6 +3825,7 @@ declare module 'renderer/components/dialogs/dialog-definition.model' {
SelectMultipleProjectsDialogOptions,
string[]
>;
[SELECT_BOOKS_DIALOG_TYPE]: DialogDataTypes<SelectBooksDialogOptions, string[]>;
}
/** Each type of dialog. These are the tab types used in the dock layout */
export type DialogTabTypes = keyof DialogTypes;
Expand Down
400 changes: 204 additions & 196 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.

28 changes: 25 additions & 3 deletions lib/platform-bible-react/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,12 @@ export type ButtonProps = React$1.PropsWithChildren<{
*/
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 function ChapterRangeSelector({ handleSelectStartChapter, handleSelectEndChapter, isDisabled, chapterCount, }: ChapterRangeSelectorProps): import("react/jsx-runtime").JSX.Element;
export declare enum LabelPosition {
After = "after",
Before = "before",
Expand Down Expand Up @@ -227,6 +225,30 @@ export type CheckboxProps = {
};
/** Primary UI component for user interaction */
export declare function Checkbox({ id, isChecked, labelText, labelPosition, isIndeterminate, isDefaultChecked, isDisabled, hasError, className, onChange, }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
export type ChecklistProps = {
/** Optional string representing the id attribute of the fieldset element */
id?: string;
/** Optional string representing CSS class name(s) for styling */
className?: string;
/** Optional string representing legend for fieldset element */
legend?: string;
/** Array of strings representing the legend text for the fieldset element */
listItems: string[];
/** Array of strings representing items to be displayed as checkboxes in the checklist */
selectedListItems: string[];
/** Function that takes a string param and is called when a checkbox item is selected or deselected */
handleSelectListItem: (item: string) => void;
/**
* Optional function that takes a string param and returns a string representing the label text
* for the checkbox associated with that item
*/
createLabel?: (item: string) => string;
};
/**
* Renders a list of checkboxes wrapped in a fieldset element. Each checkbox corresponds to an item
* from the `listItems` array.
*/
export function Checklist({ id, className, legend, listItems, selectedListItems, handleSelectListItem, createLabel, }: ChecklistProps): import("react/jsx-runtime").JSX.Element;
export type ComboBoxLabelOption = {
label: string;
};
Expand Down
Loading

0 comments on commit befce30

Please sign in to comment.