A familiar and performant compile time CSS-in-JS library for React.
APACHE-2.0 License
Bot releases are visible (Hide)
Published by atlas-dst-bot 8 months ago
Published by atlas-dst-bot 8 months ago
Published by atlas-dst-bot 8 months ago
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.
Published by atlas-dst-bot 8 months ago
importSources
option to jsx-pragma
rule, to specify additional libraries that should be considered Compiled importsPublished by atlas-dst-bot 9 months ago
importSources
option to @compiled/webpack-loaderPublished by atlas-dst-bot 9 months ago
toHaveCompiledCss
matcher.Published by atlas-dst-bot 9 months ago
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.Published by atlas-dst-bot 9 months ago
Published by atlas-dst-bot 10 months ago
increaseSpecificity
that increases the specificity of all generated Compiled classes. This is useful when migrating between two or more other styling solutions to Compiled.Published by atlas-dst-bot 10 months ago
increaseSpecificity
that increases the specificity of all generated Compiled classes. This is useful when migrating between two or more other styling solutions to Compiled.Published by atlas-dst-bot 10 months ago
Published by atlas-dst-bot 10 months ago
df91c60f: [BREAKING] Fix @compiled/babel-plugin handling of classic JSX pragma. Involves several breaking changes.
jsx
function calls in the output, you will see React.createElement
calls again. (Added to @compiled/babel-plugin-strip-runtime in v0.27.0)/** @jsx jsx */
) is used, React will always be imported regardless of the value of importReact
.pragma
option through @babel/preset-react
or @babel/plugin-transform-react-jsx
- we will now throw an error if this happens.Published by atlas-dst-bot 10 months ago
Published by atlas-dst-bot 10 months ago
df91c60f: [BREAKING] Fix @compiled/babel-plugin handling of classic JSX pragma. Involves several breaking changes.
jsx
function calls in the output, you will see React.createElement
calls again. (Added to @compiled/babel-plugin-strip-runtime in v0.27.0)/** @jsx jsx */
) is used, React will always be imported regardless of the value of importReact
.pragma
option through @babel/preset-react
or @babel/plugin-transform-react-jsx
- we will now throw an error if this happens.Published by atlas-dst-bot 10 months ago
Published by atlas-dst-bot 10 months ago
Published by atlas-dst-bot 10 months ago
Published by atlas-dst-bot 10 months ago
Published by atlas-dst-bot 10 months ago
CSSPseudos, CSSProperties, StrictCSSProperties
types for a strict XCSSProp
implementation.Published by atlas-dst-bot 10 months ago
cssMap
returned from createStrictAPI
to return types based on the generic input, fixing usage with the XCSSProp
API.