Releases: styled-components/xstyled
@xstyled/system@3.8.3
Patch Changes
-
d05f052: Module load and one-off
compose()calls are noticeably faster on systems with many composed style generators. Per-render style application is unchanged.Theme-aware function interpolations inside
css\β¦`templates (for example `` csscolor: ${(props) => props.theme.colors.primary};` ``) are now correctly typed. -
e8cfc97: Themes with numeric keys (for example
{ blue: { 50: '#β¦', 100: '#β¦' } }) now produce precise string-literal types like'blue.50' | 'blue.100'instead of silently dropping out of the union. Deeply nested themes also type-check cleanly without producing "union too complex" errors.
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
@xstyled/styled-components@4.1.1
Patch Changes
- 3517689: Type-checks cleanly against
styled-components@6.4+. 6.4 added anAttrsKeysgeneric to itsStyledinterface; the recursion through.attrs(...)insidecreateStylednow casts back to the 4-generic shape so the publisheddist/index.d.tscompiles whether consumers are on^6.1.11or^6.4. - e8cfc97: Themes with numeric keys (for example
{ blue: { 50: '#β¦', 100: '#β¦' } }) now produce precise string-literal types like'blue.50' | 'blue.100'instead of silently dropping out of the union. Deeply nested themes also type-check cleanly without producing "union too complex" errors. - Updated dependencies [d05f052]
- Updated dependencies [e8cfc97]
- @xstyled/system@3.8.3
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
@xstyled/emotion@3.8.3
Patch Changes
-
d05f052: Module load and one-off
compose()calls are noticeably faster on systems with many composed style generators. Per-render style application is unchanged.Theme-aware function interpolations inside
css\β¦`templates (for example `` csscolor: ${(props) => props.theme.colors.primary};` ``) are now correctly typed. -
e8cfc97: Themes with numeric keys (for example
{ blue: { 50: '#β¦', 100: '#β¦' } }) now produce precise string-literal types like'blue.50' | 'blue.100'instead of silently dropping out of the union. Deeply nested themes also type-check cleanly without producing "union too complex" errors. -
Updated dependencies [d05f052]
-
Updated dependencies [e8cfc97]
- @xstyled/system@3.8.3
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
@xstyled/babel-preset-emotion-css-prop@3.7.3
Patch Changes
-
3517689: Bumps two runtime dep floors so the installed surface matches what's been tested:
@emotion/babel-plugin-jsx-pragmatic^0.2.0β^0.3.0. Consumer carets wouldn't have picked the 0.3.x line up automatically (semver treats 0.y bumps as breaking), so the floor change is required to land the latest.@babel/plugin-transform-react-jsx^7.19.0β^7.28.0. Caret resolution would already reach 7.28.x; bumping the floor makes that the supported minimum.
Build and snapshot tests are unchanged; the plugin surfaces are identical at the versions involved.
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
3.7.0 (2022-10-05)
Note: Version bump only for package @xstyled/babel-preset-emotion-css-prop
v4.1.0
What's Changed
- Fix IntelliSense override in Space type by refining Pixel by @Gavriel-M in #428
- fix(styled-components): reimplement useTheme type wrapper by @quantizor in #421
New Contributors
- @Gavriel-M made their first contribution in #428
Full Changelog: v4.0.0-styled-components...v4.1.0
v4.0.0 (styled-components)
What's Changed
feat(styled-components): adopt styled-components v6 by @quantizor in #419
The minimum version of styled-components is now v6.1.11. See the migration guide for more information.
yarn add @xstyled/styled-components@^4.0.0 styled-components@^6.1.11
Full Changelog: v3.8.1...v4.0.0-styled-components
v3.8.1
What's Changed
- Fix incorrect breakpoint calculation (Fixes #389) by @YassienW in #397
- refactor(system): add support for overflow "overlay" value by @quantizor in #420
New Contributors
- @YassienW made their first contribution in #397
- @GyeongtaeGim made their first contribution in #405
- @sweetliquid made their first contribution in #403
Full Changelog: v3.8.0...v3.8.1
v3.8.0
What's Changed
- feat: add fontVariant to typography bag by @probablyup in #396
Full Changelog: v3.7.5...v3.8.0
v3.7.5 (3.7.4-3.7.5)
- feat: stricter color type; this will help avoid accidents like typos when trying to consume colors from the theme
Full Changelog: v3.7.3...v3.7.5