@mintjamsinc/ichigojs 0.1.46 → 0.1.47
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/dist/ichigo.cjs +4 -2
- package/dist/ichigo.cjs.map +1 -1
- package/dist/ichigo.esm.js +4 -2
- package/dist/ichigo.esm.js.map +1 -1
- package/dist/ichigo.esm.min.js +1 -1
- package/dist/ichigo.min.cjs +1 -1
- package/dist/ichigo.umd.js +4 -2
- package/dist/ichigo.umd.js.map +1 -1
- package/dist/ichigo.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/ichigo.cjs
CHANGED
|
@@ -7501,13 +7501,15 @@
|
|
|
7501
7501
|
}
|
|
7502
7502
|
else if (typeof cls === 'object' && cls !== null) {
|
|
7503
7503
|
// Handle object format within array: { className: condition }
|
|
7504
|
-
|
|
7504
|
+
// Keys may contain space-separated class names
|
|
7505
|
+
return Object.keys(cls).filter(key => cls[key]).flatMap(key => key.split(/\s+/).filter(Boolean));
|
|
7505
7506
|
}
|
|
7506
7507
|
return [];
|
|
7507
7508
|
});
|
|
7508
7509
|
}
|
|
7509
7510
|
else if (typeof value === 'object' && value !== null) {
|
|
7510
|
-
|
|
7511
|
+
// Keys may contain space-separated class names
|
|
7512
|
+
newClasses = Object.keys(value).filter(key => value[key]).flatMap(key => key.split(/\s+/).filter(Boolean));
|
|
7511
7513
|
}
|
|
7512
7514
|
// Remove previously managed classes
|
|
7513
7515
|
this.#managedClasses.forEach(cls => element.classList.remove(cls));
|