Skip to content

Commit 4b3daa2

Browse files
Sebastian-ubsclaude
andcommitted
Rename shared Checklist component to CheckboxGroup
Renames the platform-bible-react basics component (and its props, stories, and exports) from Checklist to CheckboxGroup, and updates the select-books-dialog consumer. Per review feedback, keeps Checklist and ChecklistProps as @deprecated backward-compatible aliases so existing external consumers continue to work while signaling the move to CheckboxGroup. Rebuilt the library dist bundle. Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent cff3cab commit 4b3daa2

9 files changed

Lines changed: 323 additions & 282 deletions

File tree

lib/platform-bible-react/dist/index.cjs

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

lib/platform-bible-react/dist/index.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/platform-bible-react/dist/index.d.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,8 +1655,8 @@ export type UiLanguageSelectorProps = {
16551655
* @param {UiLanguageSelectorProps} props - The props for the component.
16561656
*/
16571657
export declare function UiLanguageSelector({ knownUiLanguages, primaryLanguage, fallbackLanguages, onLanguagesChange, onPrimaryLanguageChange, onFallbackLanguagesChange, localizedStrings, className, id, }: UiLanguageSelectorProps): import("react/jsx-runtime").JSX.Element;
1658-
export type ChecklistProps = {
1659-
/** Optional string representing the id attribute of the Checklist */
1658+
export type CheckboxGroupProps = {
1659+
/** Optional string representing the id attribute of the CheckboxGroup */
16601660
id?: string;
16611661
/** Optional string representing CSS class name(s) for styling */
16621662
className?: string;
@@ -1689,7 +1689,19 @@ export type ChecklistProps = {
16891689
createComplexLabel?: (item: string) => React$1.ReactNode;
16901690
};
16911691
/** Renders a list of checkboxes. Each checkbox corresponds to an item from the `listItems` array. */
1692-
export declare function Checklist({ id, className, listItems, selectedListItems, handleSelectListItem, createLabel, createComplexLabel, }: ChecklistProps): import("react/jsx-runtime").JSX.Element;
1692+
export declare function CheckboxGroup({ id, className, listItems, selectedListItems, handleSelectListItem, createLabel, createComplexLabel, }: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
1693+
/**
1694+
* Renders a list of checkboxes. Each checkbox corresponds to an item from the `listItems` array.
1695+
*
1696+
* @deprecated Use {@link CheckboxGroup} instead. `Checklist` is kept as a backward-compatible alias
1697+
* for existing consumers and will be removed in a future release.
1698+
*/
1699+
export declare const Checklist: typeof CheckboxGroup;
1700+
/**
1701+
* @deprecated Use {@link CheckboxGroupProps} instead. `ChecklistProps` is kept as a
1702+
* backward-compatible alias for existing consumers and will be removed in a future release.
1703+
*/
1704+
export type ChecklistProps = CheckboxGroupProps;
16931705
/**
16941706
* The Popover component displays rich content in a portal, triggered by a button. This component is
16951707
* built on Radix UI's Popover component and styled by Shadcn UI.

0 commit comments

Comments
 (0)