Repository navigation
feat(core): SelectableCardGroup moves to Core #13734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ernestt
wants to merge
4
commits into
feat/selectablecard-group-value
Choose a base branch
from
feat/selectablecardgroup-core
base: feat/selectablecard-group-value
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9c0ea14
feat(core): SelectableCardGroup moves to Core
ernestt b19f232
refactor(lab): SelectableCardGroup's Lab exports are plain re-exports…
ernestt d76fe54
refactor(core): the selectable-card internal entry keeps Field's styl…
ernestt 3d3287b
docs(changeset): SelectableCardGroup's root-styling sentence names Ra…
ernestt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [feat] Promote `SelectableCardGroup` to Core, imported from `@astryxdesign/core/SelectableCardGroup` or the package root. SelectableCardGroup is a set of SelectableCards, each with a `value`, that has the semantics of its selection. One choice (`type="single"`, the default) is a radio group: the cards are native radios, so the set is one tab stop, the arrow keys move and select, screen readers speak the position ("2 of 3"), and the chosen card submits its value under `htmlName`. Several choices (`type="multiple"`) are a named group of checkboxes. The group takes a controlled `value` and `onChange`, a `label` and an optional `description` through Field, `isDisabled`, and `orientation`. As every component that composes Field does, it takes no root `xstyle`, `className`, or `style`: `containerXstyle`, `containerClassName`, and `containerStyle` style the Field box, and `controlXstyle`, `controlClassName`, and `controlStyle` style the group element that lays out the cards. | ||
|
|
||
| @ernestt | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [docs] `astryx template` lists SelectableCardGroup's blocks among Core's component blocks: the "Plan picker" showcase and the "Shipping speed" example, which import the group from `@astryxdesign/core`. | ||
|
|
||
| @ernestt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.