Skip to content
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

Feat [atom component] stacked radio group / card radio group #26612

Merged
merged 84 commits into from
May 23, 2024

Conversation

MildTomato
Copy link
Contributor

@MildTomato MildTomato commented May 21, 2024

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

  • feat: add <RadioGroupStacked/> and <RadioGroupStackedItem/> atom components
  • feat: add <RadioGroupCard/> and <RadioGroupCardItem/> atom components
  • fixed lint warnings
  • improved highlighting a little
  • <FormItem/> now supports asChild slot prop, so first: and last: tailwind works on stacked radio group

Add any other context or screenshots.

RadioGroupStacked:

Screenshot 2024-05-21 at 11 59 29 PM

RadioGroupCard:
Screenshot 2024-05-22 at 12 51 06 AM

improved the highlighting a little:

Screenshot 2024-05-21 at 11 58 39 PM

@MildTomato MildTomato changed the title Feat [atom component] stacked radio group / stacked radio group Feat [atom component] stacked radio group / card radio group May 23, 2024
@@ -136,8 +136,8 @@ const SourcePanel = forwardRef<HTMLDivElement, React.HTMLProps<HTMLDivElement> &
>
<path d="M43.9022 20.0061H46.4499C46.2647 19.0375 46.17 18.1161 46.17 17.0058V12.3753C46.17 9.25687 44.3893 7.72127 41.1943 7.72127C38.3003 7.72127 36.3324 9.23324 36.0777 11.8083H38.9254C39.0181 10.698 39.8052 9.96561 41.1017 9.96561C42.4446 9.96561 43.3243 10.6743 43.3243 12.1391V12.7061L39.8052 13.1077C37.4206 13.3912 35.5684 14.3834 35.5684 16.7931C35.5684 18.9666 37.2353 20.2659 39.5274 20.2659C41.4027 20.2659 42.9845 19.4863 43.6401 18.1161C43.6689 18.937 43.9022 20.0061 43.9022 20.0061ZM40.3377 18.1634C39.157 18.1634 38.5087 17.5727 38.5087 16.6278C38.5087 15.3757 39.4579 15.0922 40.7082 14.9268L43.3243 14.6197V15.352C43.3243 17.242 41.8658 18.1634 40.3377 18.1634ZM56.2588 20.0061H59.176V3H56.2125V9.96561C55.6569 8.76075 54.3141 7.72127 52.4851 7.72127C49.3058 7.72127 47.099 10.2963 47.099 14.0054C47.099 17.7381 49.3058 20.2896 52.4851 20.2896C54.2678 20.2896 55.68 19.2973 56.2588 18.0925V20.0061ZM56.282 14.218C56.282 16.5569 55.1938 18.0689 53.3185 18.0689C51.3969 18.0689 50.1856 16.486 50.1856 14.0054C50.1856 11.5485 51.3969 9.94198 53.3185 9.94198C55.1938 9.94198 56.282 11.454 56.282 13.7928V14.218ZM60.9066 5.97304H64.0553V3.01996H60.9066V5.97304ZM60.9992 20.0061H63.9627V8.00476H60.9992V20.0061ZM67.6638 20.0061L70.6041 15.8954L73.5212 20.0061H76.9246L72.3636 13.7219L76.5542 8.00476H73.3823L70.7661 11.7138L68.1731 8.00476H64.7697L69.0066 13.8637L64.4919 20.0061H67.6638Z"></path>
<path
fill-rule="evenodd"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:old-man-yelling-at-svg-fill-rules

@ivasilov ivasilov merged commit 8643c25 into master May 23, 2024
14 checks passed
@ivasilov ivasilov deleted the feat/stacked-radio-group branch May 23, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants