Skip to content

Commit

Permalink
Fix bug with ChapterRangeSelector and revert prop changes (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolierabideau authored Sep 25, 2024
2 parents ac9c8aa + 5f31876 commit e905398
Show file tree
Hide file tree
Showing 13 changed files with 1,960 additions and 1,951 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function BookSelector({
selectedBookIds,
handleSelectBooks,
chapterCount,
endChapter,
handleSelectEndChapter,
startChapter,
handleSelectStartChapter,
}: BookSelectorProps) {
const [bookSelectionMode, setBookSelectionMode] = useState<BookSelectionMode>(
Expand Down Expand Up @@ -74,6 +76,8 @@ export default function BookSelector({
handleSelectStartChapter={handleSelectStartChapter}
handleSelectEndChapter={handleSelectEndChapter}
chapterCount={chapterCount}
startChapter={startChapter}
endChapter={endChapter}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export default function ConfigureChecks({
chapterCount={chapterCount}
handleSelectStartChapter={setStartChapter}
handleSelectEndChapter={setEndChapter}
startChapter={startChapter}
endChapter={endChapter}
/>
</fieldset>
</div>
Expand Down
256 changes: 128 additions & 128 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.

10 changes: 6 additions & 4 deletions lib/platform-bible-react/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,14 @@ export type ScrollGroupSelectorProps = {
/** Selector component for choosing a scroll group */
export function ScrollGroupSelector({ availableScrollGroupIds, scrollGroupId, onChangeScrollGroupId, localizedStrings, }: ScrollGroupSelectorProps): 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({ handleSelectStartChapter, handleSelectEndChapter, 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 @@ -467,8 +469,8 @@ export type ComboBoxProps<T> = {
buttonVariant?: ButtonProps["variant"];
/** Text direction ltr or rtl */
dir?: Direction;
/** Component is not enabled when true */
disabled?: boolean;
/** Optional boolean to set if trigger should be disabled */
isDisabled?: boolean;
} & PopoverProps;
export type Direction = "ltr" | "rtl";
/**
Expand All @@ -477,7 +479,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, buttonPlaceholder, textPlaceholder, commandEmptyMessage, buttonVariant, dir, disabled, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function ComboBox<T extends ComboBoxOption = ComboBoxOption>({ id, options, className, value, onChange, getOptionLabel, buttonPlaceholder, textPlaceholder, commandEmptyMessage, buttonVariant, 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 e905398

Please sign in to comment.