Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@xstyled/util

gregberge67.6kMIT3.7.0TypeScript support: included

xstyled common utilities.

readme

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.7.0 (2022-10-05)

Bug Fixes

  • cache: fix object keys caching (#383) (879708c)
  • color-mode: fix clearing color mode (#385) (1bb5cb8)
  • fixed contributing guide setup step documentation (9925f19)
  • fixed incomplete hex alpha value generation (#373) (fd0a097)

Features

  • cache: add option to disable xstyled cache (#379) (738f882)

3.6.0 (2022-04-15)

Bug Fixes

  • core: add missing util (#362) (00ae8dc), closes #354
  • emotion: add missing createCss (#324) (f5eaa07)
  • move at-rules to end of nested responsive states (6c7528e), closes #288
  • types: add missing types to the borders system utility (#346) (c0c92b4)
  • types: fix missing values in types (#361) (01afa25), closes #355
  • types: remove deep path autocompletion (e01e8b3)
  • typing: Support any valid number for utility props that needs it (#357) (1fd72c6)

Features

  • add ability to customize spacing properties in "texts" (#351) (57304c2), closes #350
  • add outlineOffset property (#360) (4dac9a3)
  • added inline variants support (#334) (acfa364), closes #333
  • typing: infer automatically the typing of the generators used inside of the compose (#358) (ecbae73)

3.5.1 (2022-01-10)

Bug Fixes

3.5.0 (2022-01-10)

Bug Fixes

Features

  • add border positions style helpers (3bcaada)

3.4.0 (2021-12-22)

Features

3.3.0 (2021-12-22)

Features

3.2.0 (2021-12-22)

Bug Fixes

  • FlexboxesProps missing FlexBasisProps (#332) (dbc531b)

Features

  • export styled as a named export (410cd67)

3.1.2 (2021-11-05)

Bug Fixes

  • system: fix caching issue with value with different types (4a6ded3)

3.1.1 (2021-10-30)

Bug Fixes

  • allow numeric values for systemprops (efdefe1)
  • boolean or string for transform property type (1498d86)
  • color prop missing responsive support (65f532b)
  • ensure the number is one of the keys (c2f71fd)
  • more correct synthesized type that allows number keys (c31c6b1)
  • move typography color fix to proper file (5c635b0)
  • transform prop type should be string not boolean (50c847e)
  • types: fix emotion createGlobalStyle type def (95667bc)

3.1.0 (2021-10-02)

Bug Fixes

  • docs: added a missing paren in the code example (#303) (901755b)
  • fix for Prototype Pollution (#304) (34ed147)
  • types: fix wrong type for ThemeVariants (#301) (b69619e)

Features

  • emotion: add importMap to the babel plugin (#293) (657f7fe)
  • system: add aria-disabled to the disabled state (#297) (d28cf38)
  • typings: assemble deep paths for autocompletion (#310) (9867158)

3.0.3 (2021-06-25)

Bug Fixes

3.0.2 (2021-06-18)

Bug Fixes

  • breakpoints: add _ into breakpoints (bcfda4b), closes #277
  • emotion: fix color prop (4d88c18), closes #276
  • system: fix rpx transformers (339f7fc), closes #274
  • move away from mjs extension to work in more environments (9098b83)

2.5.0 (2021-05-02)

Bug Fixes

Features

2.4.1 (2021-03-29)

Bug Fixes

2.4.0 (2021-03-28)

Bug Fixes

Features

2.3.0 (2021-03-23)

Bug Fixes

  • emotion: pass options through (#202) (781704c)
  • styled: use space in column-gap & row-gap (517c08e), closes #200
  • transform: confused by comments, whitespace (93cba6a)
  • types: add missing alignContent prop (eb3c47f), closes #205
  • types: invalid color prop (0660565)

Features

  • add float property (0335114), closes #192
  • add maxW, maxH, minW, minH shortcuts (fde802e), closes #199
  • durations: bind durations to theme.durations (362dea3)
  • transform: min/max widths in media queries (aa1f518)

Performance Improvements

  • add media query to benchmark (af10f5a)

2.2.3 (2021-02-13)

Bug Fixes

  • fix style merging problem (c6aa69c)

2.2.2 (2021-02-03)

Bug Fixes

  • fix & optimize style sorting (76ed20a)

Performance Improvements

2.2.1 (2021-01-31)

Bug Fixes

2.2.0 (2021-01-18)

Bug Fixes

  • typings: fix massive type in createX (#173) (273e395)

Features

  • typings: type of colors object being more specific (#174) (379e54d)

2.1.0 (2021-01-11)

Bug Fixes

Features

  • emotion: add preflight component to emotion (#167) (b56e6b6)

1.19.1 (2020-11-04)

Bug Fixes

  • breakpoints: multiple responsive style props (#141) (b884076)
  • prop-types: add bool option to the prop-types to use it with col and row props (#142) (3a835ba)

1.19.0 (2020-09-10)

Bug Fixes

Features

1.18.1 (2020-08-10)

Bug Fixes

  • styled-components: local storage not available (#129) (304602c)

1.18.0 (2020-08-06)

Bug Fixes

  • breakpoints: races in useViewportWidth (#114) (fc70500)

Features

  • xstyled: support multiple values in box-shadow, text-shadow (#128) (c8487fc), closes #127

1.17.2 (2020-07-18)

Bug Fixes

  • breakpoints: useThemeUp inclusive min (#113) (722d5fc)

1.17.1 (2020-04-29)

Bug Fixes

  • styled-components: fix keyframes error in v5 (ccf3469)

1.17.0 (2020-02-24)

Bug Fixes

Features

  • add border-x-x-radius, outline-style, outline-width support (693dc5d)
  • alias backgroundColor prop with bg (c23bfff), closes #89
  • support fontStyle in props (1777736), closes #91

1.16.0 (2020-02-02)

Features

  • support styled-components v5 (e1bd0eb), closes #86
  • core: add outline-color to propGetters (#82) (36d9585)

1.15.1 (2019-12-29)

Note: Version bump only for package xstyled

1.15.0 (2019-11-13)

Bug Fixes

  • add missing properties top, left, right, bottom (c20345b)

Features

  • re-export everything from @xstyled/system (a2b6fc8)

1.14.0 (2019-11-13)

Features

  • add useTheme & useUp / useDown (36d2909)

1.13.1 (2019-09-26)

Bug Fixes

  • color-mode: use lazy init to solve SSR issue (ab5ed55)

1.13.0 (2019-09-26)

Features

  • color-mode: inject __colorMode into theme (ab3ad17)

1.12.8 (2019-09-26)

Bug Fixes

  • color-mode: fix SSR compat (bb0188a)

1.12.7 (2019-09-26)

Bug Fixes

  • isomorphic layout effect (987f308)

1.12.6 (2019-09-26)

Bug Fixes

  • color-mode: fix document undefined on SSR (606ecac)

1.12.5 (2019-09-23)

Bug Fixes

  • color-mode: sync system color mode (6428360)

1.12.4 (2019-09-22)

Bug Fixes

  • color-mode: fix initial color mode from system (c2ac051)

1.12.3 (2019-09-22)

Bug Fixes

  • color-mode: fix pristine className (5e0ff9a)

1.12.2 (2019-09-22)

Bug Fixes

  • color-mode: fix color mode issues (237c888)

1.12.1 (2019-09-22)

Bug Fixes

  • color-mode: fix camelCase properties (05ea6e7)

1.12.0 (2019-09-22)

Features

  • add color modes 🌚🌝 (b81f028)

1.11.0 (2019-08-28)

Features

1.10.1 (2019-08-26)

Bug Fixes

  • emotion: add missing Box (e5234b1)

1.10.0 (2019-08-11)

Features

  • publish xstyled utilities as a separated package (cc08d0f)

1.9.1 (2019-08-11)

Bug Fixes

  • system: fix space resolution algo (f50196b)

1.9.0 (2019-08-09)

Bug Fixes

  • link grid-column-gap to space getter (#42) (8f22405)
  • system: space nested values (4119e8c)

Features

  • add fill property support (c31dc11)

1.8.4 (2019-07-15)

Bug Fixes

  • do not export styled-components internals (3f98ca5), closes #37

1.8.3 (2019-07-09)

Bug Fixes

  • fix fontSize, lineHeight & zIndex getters (07b90f5)

1.8.2 (2019-07-09)

Bug Fixes

  • use React.forwardRef in createSystemComponent (6c7da13)

1.8.1 (2019-07-09)

Bug Fixes

  • fix rpxTransformer => rpxTransformers (2658a07)

1.8.0 (2019-07-09)

Features

  • introduce configurable transformers (4958bcb)

1.7.0 (2019-07-08)

Features

1.6.0 (2019-07-08)

Features

  • introduce createSystemComponent to avoid undesired HTML attributes (3187f68)

1.5.4 (2019-07-07)

Bug Fixes

1.5.3 (2019-07-07)

Bug Fixes

  • prevent system props on boxes (4ec5044)

Performance Improvements

  • system: improve perf x4 (996b773)

1.5.2 (2019-06-24)

Bug Fixes

  • fix double negative value with strings (b254667)

1.5.1 (2019-06-22)

Bug Fixes

  • emotion: fix array handling used in breakpoints utilities (e34d576), closes #29
  • properly handle multiple values in "border-radius" (23a3aa0), closes #28
  • support negative values from theme objects (4b03dfc), closes #27

1.5.0 (2019-06-13)

Features

1.4.0 (2019-06-13)

Features

  • add xgrids (bootstrap like grids) (47bcaff)

1.3.0 (2019-06-11)

Bug Fixes

  • styled-components: fix createGlobalStyle (8c5d386), closes #22

Features

  • add @xstyled/prop-types utility (73782fd), closes #23

1.2.0 (2019-06-07)

Bug Fixes

  • styled-components: support createGlobalStyle (ec798b4)

Features

1.1.1 (2019-06-03)

Bug Fixes

  • add border-width utility (df4c47f)

1.1.0 (2019-06-03)

Features

1.0.4 (2019-05-29)

Bug Fixes

  • increase box specificity (cb62872)

1.0.3 (2019-05-28)

Bug Fixes

1.0.2 (2019-05-28)

Bug Fixes

  • explicit exports from styled-components (#5) (0f0204f), closes #4

1.0.1 (2019-05-28)

Bug Fixes

  • stick to spec for sizes (a7d4e01)