@adamjanicki/ui 1.7.2 → 1.7.3
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 +1 -1
- package/utils/transformVfx.js +7 -4
package/package.json
CHANGED
package/utils/transformVfx.js
CHANGED
|
@@ -188,9 +188,12 @@ export default function transformVfx(vfx) {
|
|
|
188
188
|
if (!vfx)
|
|
189
189
|
return null;
|
|
190
190
|
var classes = [];
|
|
191
|
-
|
|
192
|
-
var
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
Object.entries(vfx).forEach(function (_a) {
|
|
192
|
+
var key = _a[0], value = _a[1];
|
|
193
|
+
if (value !== undefined) {
|
|
194
|
+
var transformer = transformers[key];
|
|
195
|
+
transformer(classes, vfx);
|
|
196
|
+
}
|
|
197
|
+
});
|
|
195
198
|
return classes.join(" ") || null;
|
|
196
199
|
}
|