@hyphen/hyphen-components 6.2.1 → 6.2.2
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/hyphen-components.cjs.development.js +3 -1
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +3 -1
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/generateResponsiveClasses.test.ts +9 -0
- package/src/lib/generateResponsiveClasses.ts +4 -1
|
@@ -168,7 +168,9 @@ value) {
|
|
|
168
168
|
var classes = [];
|
|
169
169
|
if (typeof value === 'object') {
|
|
170
170
|
Object.keys(value).forEach(function (key) {
|
|
171
|
-
var
|
|
171
|
+
var classValue = value[key];
|
|
172
|
+
if (classValue === undefined || classValue === null) return;
|
|
173
|
+
var baseClass = classRoot + "-" + classValue;
|
|
172
174
|
var responsiveClass = key === 'base' ? baseClass : baseClass + "-" + key;
|
|
173
175
|
classes.push(responsiveClass);
|
|
174
176
|
});
|