compiled

A familiar and performant compile time CSS-in-JS library for React.

APACHE-2.0 License

Downloads
186.9K
Stars
2K
Committers
46

Bot releases are visible (Hide)

compiled - @compiled/[email protected]

Published by atlas-dst-bot 8 months ago

Patch Changes

  • a68817a2: Fix css function base types to have CSS property values available in intellisense.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 8 months ago

Patch Changes

  • 41bcb1eb: Allow the transformer to bail early if compiled isn't present
  • Updated dependencies [7d3406c9]
  • Updated dependencies [d5c6578c]
compiled - @compiled/[email protected]

Published by atlas-dst-bot 8 months ago

Patch Changes

  • 7d3406c9: Previously, if you passed props => ... directly to styled.div or css(), and the return value of the arrow function was an object, you would cause @compiled/babel-plugin to crash:

    import { styled } from '@compiled/react';
    import React from 'react';
    
    const Component = styled.div((props) => ({
      color: `${props.customColor}`,
      background: props.background,
    }));
    

    While at the same time, wrapping the return value inside a logical expression or ternary expression would make it work perfectly fine:

    const Styles = styled.div((props) =>
      props.isEditing ? {} : { backgroundColor: props.highlightColor }
    );
    

    With this version, both of these forms will work without issue. :)

  • d5c6578c: Fix props (used by Compiled) being incorrectly forwarded to React when default values are used.

compiled - @compiled/[email protected]

Published by atlas-dst-bot 8 months ago

Patch Changes

  • 292a05d5: Add importSources option to jsx-pragma rule, to specify additional libraries that should be considered Compiled imports
compiled - @compiled/[email protected]

Published by atlas-dst-bot 9 months ago

Patch Changes

  • 8d48ca03: Add importSources option to @compiled/webpack-loader
compiled - @compiled/[email protected]

Published by atlas-dst-bot 9 months ago

Patch Changes

  • 749994b4: Add "found similar styles" to assist debugging to the toHaveCompiledCss matcher.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 9 months ago

Patch Changes

  • 541ab19e: Add ElementType to the Compiled JSX namespace. This is needed to ensure types are the same in the Compiled JSX namspace and the default React one, such as returning undefined, string, and other freshly valid types.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 9 months ago

Patch Changes

  • 35675858: Fix the compiler throwing when multiple Compiled imports were used in the same module.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

  • 5bd1b492: Introduce a new config option increaseSpecificity that increases the specificity of all generated Compiled classes. This is useful when migrating between two or more other styling solutions to Compiled.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

  • 5bd1b492: Introduce a new config option increaseSpecificity that increases the specificity of all generated Compiled classes. This is useful when migrating between two or more other styling solutions to Compiled.
  • Updated dependencies [5bd1b492]
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Minor Changes

  • df91c60f: [BREAKING] Fix @compiled/babel-plugin handling of classic JSX pragma. Involves several breaking changes.

    • Move the below @compiled/babel-plugin-strip-runtime behaviour to @compiled/babel-plugin
      • Classic JSX pragma will no longer affect the Babel output: instead of seeing jsx function calls in the output, you will see React.createElement calls again. (Added to @compiled/babel-plugin-strip-runtime in v0.27.0)
    • @compiled/babel-plugin: Due to the above behaviour change, a classic JSX pragma (/** @jsx jsx */) is used, React will always be imported regardless of the value of importReact.
    • @compiled/babel-plugin: We don't support specifying the pragma option through @babel/preset-react or @babel/plugin-transform-react-jsx - we will now throw an error if this happens.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Minor Changes

  • df91c60f: [BREAKING] Fix @compiled/babel-plugin handling of classic JSX pragma. Involves several breaking changes.

    • Move the below @compiled/babel-plugin-strip-runtime behaviour to @compiled/babel-plugin
      • Classic JSX pragma will no longer affect the Babel output: instead of seeing jsx function calls in the output, you will see React.createElement calls again. (Added to @compiled/babel-plugin-strip-runtime in v0.27.0)
    • @compiled/babel-plugin: Due to the above behaviour change, a classic JSX pragma (/** @jsx jsx */) is used, React will always be imported regardless of the value of importReact.
    • @compiled/babel-plugin: We don't support specifying the pragma option through @babel/preset-react or @babel/plugin-transform-react-jsx - we will now throw an error if this happens.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

  • 39714ae3: Fix nested types being forcibly required.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

  • 39714ae3: cssMap() no longer throws an invariant if no styles were generated.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

  • 5dca5c51: Export CSSPseudos, CSSProperties, StrictCSSProperties types for a strict XCSSProp implementation.
compiled - @compiled/[email protected]

Published by atlas-dst-bot 10 months ago

Patch Changes

  • 34674ae1: Fix cssMap returned from createStrictAPI to return types based on the generic input, fixing usage with the XCSSProp API.