* convert the `matchVariant` to look more like `addVariant`
With the biggest difference that the `matchVariant` will have a callback
function that receives the current value of the variant.
* use object as argument for `matchVariant` callback
This will allow us to add more properties in the future if needed
without breaking changes.
- This is a breaking change: `(value) => ...` -> `({ value, other }) => ...`
- This is **not** a breaking change: `({ value }) => ...` -> `({ value, other }) => ...`
* add types for `matchVariant`
|
||
|---|---|---|
| .. | ||
| css | ||
| lib | ||
| postcss-plugins/nesting | ||
| public | ||
| util | ||
| cli-peer-dependencies.js | ||
| cli.js | ||
| constants.js | ||
| corePlugins.js | ||
| featureFlags.js | ||
| index.js | ||
| processTailwindFeatures.js | ||