[Snyk] Upgrade class-variance-authority from 0.4.0 to 0.7.0 #11
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.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade class-variance-authority from 0.4.0 to 0.7.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: class-variance-authority
What's Changed
[email protected]
by @ joe-bell in #185Full Changelog: v0.6.1...v0.7.0
What's Changed
license
key inpackage.json
[email protected]
by @ joe-bell in #175Full Changelog: v0.6.0...v0.6.1
What's Changed
cx
→clsx
by @ joe-bell in #152cva
now usesclsx
under-the-hood to concatenate classes with no breaking changes to the current experience and no increase to bundle-size.The existing
cx
export still exists, but as an alias ofclsx
Bringing additional benefits of:
Provides additional support for booleans and variadic strings within
class
orclassName
props// => 'button-base'
const buttonConsumer = button({ class: [true && "extra-class"] });
// => 'button-base extra-class'
Provides support for object syntax within
class
orclassName
propsFull Changelog: v0.5.3...v0.6.0
What's Changed
fix: issue #147 where map files are not present for esm files by @ pfried in #148
fix: Added explicit undefined type to support exactOptionalPropertyTypes option by @ totto2727 in #149
New Contributors
Full Changelog: v0.5.2...v0.5.3
What's Changed
moduleResolution: bundler
(addtypes
toexports
field inpackage.json
) by @ msonnberger in #138New Contributors
Full Changelog: v0.5.1...v0.5.2
What's Changed
Full Changelog: v0.4.0...v0.5.0
Support the Project 🖤
cva is a labour of love – I don't get paid to work on this project
Contributions of any size are greatly appreciated 🙏🏼
Ethereum
[email protected]
What's Changed
Features
Target Multiple Variant Options within Compound Variants by @ joe-bell and @ JeroenReumkens in #76
import { cva } from "class-variance-authority";
const button = cva("…", {
variants: {
intent: { primary: "…", secondary: "…" },
size: { small: "…", medium: "…" },
},
compoundVariants: [
// Applied via:
//
button({ intent: "primary", size: "medium" })
// or
//
button({ intent: "secondary", size: "medium" })
{
intent: ["primary", "secondary"],
size: "medium",
class: "…",
},
],
});
Chores
New Contributors
Full Changelog: v0.3.0...v0.4.0
Commit messages
Package name: class-variance-authority
object_id
or(object_id,version)
MystenLabs/sui#166)Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs