feat: add checkbox and radio button types to list view item#82
feat: add checkbox and radio button types to list view item#82scriptcoded merged 4 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: e66df85 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for scouterna-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR adds checkbox and radio button capabilities to list view items, enabling them to function as selectable list elements. The implementation extends the scout-list-view-item component to support radio and checkbox types, and adds logic to the scout-list-view component to manage radio button groups.
Key changes:
- Extended
scout-list-view-itemto support "radio" and "checkbox" types - Added radio button group management in
scout-list-viewto ensure mutual exclusivity - Created new Storybook examples demonstrating the new functionality
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
packages/ui-webc/src/components/list-view-item/list-view-item.tsx |
Added "radio" and "checkbox" to ItemType, added name/value props, updated render logic to use label tags and embed radio/checkbox components |
packages/ui-webc/src/components/list-view/list-view.tsx |
Added scoutChecked event listener to manage radio button mutual exclusivity across list items |
packages/storybook/src/stories/list-view.stories.tsx |
Added two new stories showcasing radio button and checkbox list view variants |
packages/ui-webc/src/components/list-view-item/readme.md |
Auto-generated documentation reflecting new props and component dependencies |
packages/ui-webc/src/components/checkbox/readme.md |
Auto-generated documentation showing usage by list-view-item |
packages/ui-webc/src/components/radio-button/readme.md |
Auto-generated documentation showing usage by list-view-item |
9eafca3 to
9dfa81e
Compare
9dfa81e to
6ca7492
Compare
No description provided.