@adamjanicki/ui 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamjanicki/ui",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Basic UI components and hooks for React in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -188,9 +188,12 @@ export default function transformVfx(vfx) {
188
188
  if (!vfx)
189
189
  return null;
190
190
  var classes = [];
191
- for (var key in vfx) {
192
- var transformer = transformers[key];
193
- transformer(classes, vfx);
194
- }
191
+ Object.entries(vfx).forEach(function (_a) {
192
+ var key = _a[0], value = _a[1];
193
+ if (value) {
194
+ var transformer = transformers[key];
195
+ transformer(classes, vfx);
196
+ }
197
+ });
195
198
  return classes.join(" ") || null;
196
199
  }