contentful / forma-36

A design system by Contentful
https://f36.contentful.com
MIT License
329 stars 81 forks source link

feat: add clear selection button to multiselect #2816

Closed massao closed 1 month ago

massao commented 1 month ago

Purpose of PR

Adds onClearSelection prop to multiselect that makes a clear selection button show if there are more than 1 element selected.

Added a new Story to storybook that uses the onClearSelection

image image
vercel[bot] commented 1 month ago

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

Name Status Preview Updated (UTC)
forma-36 ✅ Ready (Inspect) Visit Preview Jul 4, 2024 2:53pm
changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: a77877bef34d124d909ec7a9d6e8a8f59fccb809

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------------------- | ----- | | @contentful/f36-multiselect | Minor |

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

github-actions[bot] commented 1 month ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
CommonJS 135.98 KB (0%) 2.8 s (0%) 119 ms (+78% 🔺) 2.9 s
Module 132.24 KB (0%) 2.7 s (0%) 122 ms (+70.6% 🔺) 2.8 s