The logic in enhanceProps already more or less supported this, but the typing of EnhancerProps['selectors'] did not allow you to pass anything but keys from CssProps. The SelectorMap type is recursive and allows you to nest selectors based on the parent with or without the selectors key!
Resolves #125
The logic in
enhanceProps
already more or less supported this, but the typing ofEnhancerProps['selectors']
did not allow you to pass anything but keys fromCssProps
. TheSelectorMap
type is recursive and allows you to nest selectors based on the parent with or without theselectors
key!For example, these are all equivalent: