Skip to content

Releases: danieldelcore/trousers

@trousers/[email protected]

25 May 23:51
a81b81e
Compare
Choose a tag to compare

Patch Changes

[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Version 3 🎉 [e6a3323]:

79283770-2cff2b00-7efc-11ea-96af-216d246052df

Our biggest update yet!

Including:

  • Support for the CSS prop 👩‍🎤
  • Mono-repo setup and decomposition 📦
  • Object notation CSS 🍞
  • Theme CSS var package 🎨
  • insertRule 🏹
  • Smaller bundles 🐭
  • Custom style collectors 🕺
  • Trousers package with all exports for backwards compatibility

Breaking

  • withStyles HOC (please use css prop for class components)
  • styleCollector no longer accepts props and state.

You must now wrap it in a function and pass the props manually like so:

const buttonStyles = (props: ButtonProps) => 
  styleCollector('button')
    .element`
        background-color: #b3cde8;
    `.modifier(!!props.primary)`
        background-color: #f95b5b;
    `.modifier(!!props.disabled)`
        background-color: #efefef;
    `;

Developer experience

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

@trousers/[email protected]

30 Apr 09:24
6cb9544
Compare
Choose a tag to compare

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes