UNPKG

use-classy

Version:

A utility for generating React [className] strings, with support for CSS modules and BEM expansions.

145 lines (77 loc) 5.77 kB
Changelog === ## Version 1.3.1 ### 📘 Docs * update feature writeups ([571a6a3](https://github.com/rafegoldberg/classy/commit/571a6a31ffd62f6f3f33d6c27e7bd4d3f96dc84e)) ### 🤘 Fixes & Updates * force release ([c321217](https://github.com/rafegoldberg/classy/commit/c321217ef5f242714f0c34db2ba6088883562a84)) ## Version 1.3.0 ### 🤘 Fixes & Updates * **scripts:** add test.watch ([67e7f6f](https://github.com/rafegoldberg/classy/commit/67e7f6f6cb8e6ae3534448b84b037a18f647de85)) * **exports:** rename SEPARATORS ([7ae8d14](https://github.com/rafegoldberg/classy/commit/7ae8d14ab258dd08f8c51ab3fa9f138e172f7e4f)) ### ✨ New & Improved * **exports:** add CLASSY_PROPTYPE ([cc5e2ef](https://github.com/rafegoldberg/classy/commit/cc5e2ef4ca579d513abfbfb9f838eeb448132100)) ## Version 1.2.4 ### 📘 Docs * update hook example ([2949830](https://github.com/rafegoldberg/classy/commit/2949830528614a7217a51c23f7ac197edbf178da)) ### 🤘 Fixes & Updates * **release:** build for production ([3662415](https://github.com/rafegoldberg/classy/commit/36624151de90408cd00a990b7b116e57bbae3523)) ## Version 1.2.3 ### 🤘 Fixes & Updates * simplify instance args signature ([6b4c8f8](https://github.com/rafegoldberg/classy/commit/6b4c8f8598677a638792ee7133bd0a5d7fe4440c)) ## Version 1.2.2 ### 📘 Docs * **ci:** add status badge ([1bff0ae](https://github.com/rafegoldberg/classy/commit/1bff0aeea7d9efea1ed1b442d99455cdf63273bb)) * align status badge to header ([f354386](https://github.com/rafegoldberg/classy/commit/f354386d65b3571fe23d02e549c4c68277a22471)) ### 🤘 Fixes & Updates * hide filesize on watch ([bd8cb71](https://github.com/rafegoldberg/classy/commit/bd8cb71fb38cb43b5dd82cef9bef34b850def133)) * **github/release:** nix sync to next step ([33170c2](https://github.com/rafegoldberg/classy/commit/33170c23d32695fcb2b2525212e1f4d8f151f2d5)) * **deps:** use core-js@2.x ([dc58f25](https://github.com/rafegoldberg/classy/commit/dc58f2529c0ac916e429272a60a378e3fbadc919)) * **deps:** use peer react >= 16.8 ([d794bda](https://github.com/rafegoldberg/classy/commit/d794bda01cd1cd56a5d7e27772d6fad686e982af)) ## Version 1.2.1 ### 📘 Docs * fix links ([7a13443](https://github.com/rafegoldberg/classy/commit/7a134432289d56cffbef6af56a7c0d91c635c6fc)) * open hooks details ([b1e4b21](https://github.com/rafegoldberg/classy/commit/b1e4b2119fa5619dbdbf74cc4a7276ba404427fe)) * update readme ([7538809](https://github.com/rafegoldberg/classy/commit/753880949ecf0dcb5f34a620a81cd72a3cac0d34)) * update readme ([9398407](https://github.com/rafegoldberg/classy/commit/9398407eb39b37c04724efb65d83ed036b9911d3)) * update readme ([76df86c](https://github.com/rafegoldberg/classy/commit/76df86cdf2c3db689f45ceede86e0a011f04e3bf)) ### 🤘 Fixes & Updates * **useClassy:** lowercase imports ([278f38d](https://github.com/rafegoldberg/classy/commit/278f38d6af016500ae34baf58d20b96b7c68632f)) * update readme ([36560db](https://github.com/rafegoldberg/classy/commit/36560db1338043c7a8d999eee83f848ae4d6e89f)) ## Version 1.2.0 ### ✨ New & Improved * **github:** run tests ([5834acf](https://github.com/rafegoldberg/classy/commit/5834acfa6cbada876e6d42eff980badb0f1c68f3)) * simplify classy; nix stack tracing ([565126c](https://github.com/rafegoldberg/classy/commit/565126c3b2e43144aecac21900ccbcad2418a2e2)) ### 🤘 Fixes & Updates * **config:** add codeowners ([0308cf6](https://github.com/rafegoldberg/classy/commit/0308cf6d60054138b51bf18cdbd2cc0e8cc3f476)) * configure rollup ([d48a21e](https://github.com/rafegoldberg/classy/commit/d48a21e55c75c60774158537f12d0f96d68ab86d)) * **deps:** install rollup et al ([068db8e](https://github.com/rafegoldberg/classy/commit/068db8efb7c2b0bed87a5cd19a4863ec9c7099d2)) * nix parcel ([2ccb77f](https://github.com/rafegoldberg/classy/commit/2ccb77f71ab2827741440853c893ed744e629a92)) * **github:** run tests on main ([7e27c34](https://github.com/rafegoldberg/classy/commit/7e27c34a9c97beee645b6158b8832987ca49f9a8)) ## Version 1.1.3 ### 🤘 Fixes & Updates * **readme:** reorder + copy edit ([a952fe3](https://github.com/rafegoldberg/classy/commit/a952fe3bec17d573736270f4c6e5d05b399c607f)) ## Version 1.1.2 ### 🤘 Fixes & Updates * **package:** add keywords ([6d98655](https://github.com/rafegoldberg/classy/commit/6d9865549c2a8a6d1848a385242006e386a2861e)) ## Version 1.1.1 ### 🤘 Fixes & Updates * **package:** add description ([#3](https://github.com/rafegoldberg/classy/issues/3)) ([e3e7b83](https://github.com/rafegoldberg/classy/commit/e3e7b83ba53750f5c29f064acbf3aaf2c1310b7a)) ## Version 1.1.0 ### 📘 Docs * **readme:** copy edits ([dc476de](https://github.com/rafegoldberg/classy/commit/dc476dea844aedfc17c74bcb83b1fbeffb06cffc)) ### ✨ New & Improved * add tracer method ([a3dca5a](https://github.com/rafegoldberg/classy/commit/a3dca5a5701ea47e1c9734b0e4f7abfb1075ce6c)) ## Version 1.0.2 ## Version 1.0.1 ### 🛠 Fixes & Updates * release branch configuration ([1faa68d](https://github.com/rafegoldberg/classy/commit/1faa68d847b6e3c9bcff4af7b3d1a9f850a42be6)) ## Version 1.0.0 ### 📘 Docs * **classy:** minor polish ([7aac9ab](https://github.com/rafegoldberg/classy/commit/7aac9ab9bc4b63256e3cbc972f4ba7fb74a67e92)) ### ✨ New & Improved * classy ([e7236c1](https://github.com/rafegoldberg/classy/commit/e7236c1196c81aafdb56cc4273a6822b07384db9)) * set up release workflow ([95d195c](https://github.com/rafegoldberg/classy/commit/95d195c962eddac48db1024c0c4da0c321401176)) ### 🛠 Fixes & Updates * release command ([7724c03](https://github.com/rafegoldberg/classy/commit/7724c0307d67f97ab3176d946900cc6e337d558d)) * **release:** test branch ([dba34f4](https://github.com/rafegoldberg/classy/commit/dba34f447073b851458f46e51dce688118f455a4))