| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-05-21 | 1.5 kB | |
| v2.3.0 source code.tar.gz | 2026-05-21 | 88.4 kB | |
| v2.3.0 source code.zip | 2026-05-21 | 180.4 kB | |
| Totals: 3 Items | 270.3 kB | 0 | |
Minor Changes
- 0c5f21d: Add a
cssPropImportPathoption to control which package the css-prop transform auto-importsstyledfrom when the file has no existing styled import. Defaults to'styled-components'(existing behavior). React Native targets can set it to'styled-components/native'so the auto-injected import resolves to the right runtime. - 0c5f21d: Detect styled declarations that go through a local alias of the import, including the TypeScript theme-typing pattern
const styled = baseStyled as ThemedStyledInterface<MyTheme>. After type-stripping Babel sees a plainconst styled = baseStyled, and the detector now follows single-identifier alias chains sostyled.divresolves back to the original import.
Patch Changes
- 0c5f21d: Fix invalid output when a
css={{ ... }}object key matches a local binding name (e.g.({ position }) => <div css={{ position: 'absolute' }} />). The reducer no longer mis-treats non-computed property names as scope references, so plain keys stay literal while only computed[expr]keys are extracted as prop interpolations. - 0c5f21d: Recognize TypeScript's
__importDefaultinterop helper alongside Babel's_interopRequireDefault. Files compiled throughtsc/ts-jest(which emitvar sc_1 = __importDefault(require('styled-components'))) now flow into the same detection path as Babel-compiled output, so styled declarations downstream pick updisplayNameandcomponentIdas expected.