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

Next release #143

Merged
merged 26 commits into from
Sep 14, 2024
Merged

Next release #143

merged 26 commits into from
Sep 14, 2024

Conversation

@nerdyman nerdyman self-assigned this Apr 11, 2024
Copy link

vercel bot commented Apr 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compare-slider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2024 5:03pm

@nerdyman nerdyman added the enhancement New feature or request label Apr 11, 2024
@nerdyman nerdyman linked an issue Apr 11, 2024 that may be closed by this pull request
@zoltan-mihalyi
Copy link
Contributor

Hi! Is this PR still in progress?

Are you planning to implement the three way switch?
#137 (comment)

@nerdyman
Copy link
Owner Author

Apologies @zoltan-mihalyi! Yeah still planning on doing the three way switch. I'll take a look this weekend.

@nerdyman
Copy link
Owner Author

nerdyman commented May 20, 2024

@zoltan-mihalyi This will need a major release since it changes the underlying markup. I also found a few issues with the current clip behaviour. ContainerClip uses absolute positioning which causes the slider lose its intrinsic sizing when both items are clipped which isn't ideal. I was looking at replacing the absolute positioning with overlapping grid items in the next release so I can do that as part of this PR.

If you need this feature ASAP I can publish a pre-release version for you to use? Just keep in mind there will be changes in the final v4 release.

@zoltan-mihalyi
Copy link
Contributor

Thank you for informing!
Is the problem that you described relevant in the three-way switch or in the version merged to next branch too?

Very kind of you, I have a workaround for now, but in the long therm it would be nice to use the upstream version.

@ty0x2333
Copy link

ty0x2333 commented Sep 2, 2024

Is there any new progress? @nerdyman

@nerdyman
Copy link
Owner Author

nerdyman commented Sep 2, 2024

@ty0x2333 Yeah I think I figured out the layout issues but I need to do more testing on it before doing a release. I'll aim to get a pre-release on npm this week.

@zoltan-mihalyi Sorry I missed your message, the position issue was just for the three way switch IIRC but that should be resolved with the latest updates 🙏

Copy link

pkg-pr-new bot commented Sep 7, 2024

Open in Stackblitzreact-compare-slider-example

pnpm add https://pkg.pr.new/nerdyman/react-compare-slider@143

commit: 7a6ba24

Copy link

github-actions bot commented Sep 7, 2024

Size Change: 0 B 🆕

Total Size: 0 B

compressed-size-action

@nerdyman
Copy link
Owner Author

nerdyman commented Sep 7, 2024

You can try out the preview release by running on the following:

pnpm add https://pkg.pr.new/nerdyman/react-compare-slider@143
yarn add https://pkg.pr.new/nerdyman/react-compare-slider@143
npm i https://pkg.pr.new/nerdyman/react-compare-slider@143

The slider also has better intrinsic sizing now, it doesn't automatically apply width: 100% anymore. It will adapt to the size of itemOne and itemTwo instead so you might need to adjust your styles if you were relying on that before.

@zoltan-mihalyi
Copy link
Contributor

It looks nice, I can't wait for the release :)

@nerdyman nerdyman changed the title feat: add clip prop Next release Sep 12, 2024
@nerdyman nerdyman merged commit fcce10a into main Sep 14, 2024
10 checks passed
@nerdyman nerdyman deleted the next branch September 14, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request publish-preview Publish a preview package
Projects
None yet
3 participants