Processes nested JSS objects and flattens them.
The object containing nested className or selector objects
Flattened object with class names or selectors as keys
import * as Styles from '@universityofmaryland/web-styles-library';const flattened = Styles.utilities.transform.jss.formatNestedObjects({ container: { nested: { className: 'box', padding: '10px' } }});// Result: { '.box': { padding: '10px' } } Copy
import * as Styles from '@universityofmaryland/web-styles-library';const flattened = Styles.utilities.transform.jss.formatNestedObjects({ container: { nested: { className: 'box', padding: '10px' } }});// Result: { '.box': { padding: '10px' } }
1.1.0
Processes nested JSS objects and flattens them.