tailwindcss/src
Robin Malfait 4fddd2d611
Polish matchVariant API (#9313)
* 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`
2022-09-16 15:37:35 +02:00
..
css Update preflight.css (#9190) 2022-08-26 11:19:07 -04:00
lib Polish matchVariant API (#9313) 2022-09-16 15:37:35 +02:00
postcss-plugins/nesting Redirect to the up-to-date plugin url (#8081) 2022-04-11 13:06:10 -04:00
public Improve warnings (#5666) 2021-10-01 11:47:02 -04:00
util Improve data type analyses for arbitrary values (#9320) 2022-09-14 14:08:56 +02:00
cli-peer-dependencies.js Add postcss-import support to the CLI (#8437) 2022-05-25 14:28:52 -04:00
cli.js Revert "Only listen for stdin close on TTYs (#8523)" (#9331) 2022-09-14 16:06:34 -04:00
constants.js Adds support for tailwind.config.cjs files (#3181) 2021-05-07 13:56:10 -04:00
corePlugins.js Add support for visibility: collapse with new collapsed utility (#9181) 2022-09-09 13:19:24 -04:00
featureFlags.js Add future flag to disable color opacity utility plugins (#9088) 2022-08-15 13:45:02 -04:00
index.js Re-enable new features 2022-04-12 14:13:04 -04:00
processTailwindFeatures.js Fix @apply order regression (in addComponents, addUtilities, ...) (#7232) 2022-01-27 13:16:44 +01:00