@compiled/react 0.8.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/class-names/index.d.ts +22 -16
- package/dist/browser/class-names/index.js +1 -27
- package/dist/browser/class-names/index.js.flow +2 -2
- package/dist/browser/class-names/index.js.map +1 -1
- package/dist/browser/css/index.d.ts +22 -19
- package/dist/browser/css/index.js +4 -3
- package/dist/browser/css/index.js.flow +4 -4
- package/dist/browser/css/index.js.map +1 -1
- package/dist/browser/index.d.ts +12 -22
- package/dist/browser/index.js +4 -0
- package/dist/browser/index.js.flow +5 -30
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/jsx/jsx-dev-runtime.d.ts +2 -0
- package/dist/browser/jsx/jsx-dev-runtime.js +4 -0
- package/dist/browser/jsx/jsx-dev-runtime.js.map +1 -0
- package/dist/browser/jsx/jsx-local-namespace.d.ts +66 -0
- package/dist/browser/jsx/jsx-local-namespace.js +2 -0
- package/dist/browser/jsx/jsx-local-namespace.js.map +1 -0
- package/dist/browser/jsx/jsx-runtime.d.ts +2 -0
- package/dist/browser/jsx/jsx-runtime.js +4 -0
- package/dist/browser/jsx/jsx-runtime.js.map +1 -0
- package/dist/browser/keyframes/index.d.ts +20 -24
- package/dist/browser/keyframes/index.js.flow +1 -1
- package/dist/browser/keyframes/index.js.map +1 -1
- package/dist/browser/runtime/ax.js.flow +1 -1
- package/dist/browser/runtime/css-custom-property.d.ts +1 -1
- package/dist/browser/runtime/css-custom-property.js.flow +2 -2
- package/dist/browser/runtime/css-custom-property.js.map +1 -1
- package/dist/browser/runtime/dev-warnings.d.ts +0 -1
- package/dist/browser/runtime/dev-warnings.js +1 -1
- package/dist/browser/runtime/dev-warnings.js.flow +1 -2
- package/dist/browser/runtime/dev-warnings.js.map +1 -1
- package/dist/browser/runtime/index.js.flow +1 -1
- package/dist/browser/runtime/is-node.js.flow +1 -1
- package/dist/browser/runtime/sheet.d.ts +1 -1
- package/dist/browser/runtime/sheet.js.flow +2 -2
- package/dist/browser/runtime/style-cache.js.flow +1 -1
- package/dist/browser/runtime/style-cache.js.map +1 -1
- package/dist/browser/runtime/style.js +2 -2
- package/dist/browser/runtime/style.js.flow +1 -1
- package/dist/browser/runtime/style.js.map +1 -1
- package/dist/browser/runtime/types.js.flow +1 -1
- package/dist/browser/runtime.js.flow +1 -1
- package/dist/browser/styled/index.d.ts +38 -13
- package/dist/browser/styled/index.js +35 -7
- package/dist/browser/styled/index.js.flow +5 -8
- package/dist/browser/styled/index.js.map +1 -1
- package/dist/browser/types.d.ts +5 -2
- package/dist/browser/types.js.flow +6 -3
- package/dist/browser/utils/error.js.flow +1 -1
- package/dist/cjs/class-names/index.d.ts +22 -16
- package/dist/cjs/class-names/index.js +1 -27
- package/dist/cjs/class-names/index.js.flow +2 -2
- package/dist/cjs/class-names/index.js.map +1 -1
- package/dist/cjs/css/index.d.ts +22 -19
- package/dist/cjs/css/index.js +4 -3
- package/dist/cjs/css/index.js.flow +4 -4
- package/dist/cjs/css/index.js.map +1 -1
- package/dist/cjs/index.d.ts +12 -22
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.flow +5 -30
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/jsx/jsx-dev-runtime.d.ts +2 -0
- package/dist/cjs/jsx/jsx-dev-runtime.js +16 -0
- package/dist/cjs/jsx/jsx-dev-runtime.js.map +1 -0
- package/dist/cjs/jsx/jsx-local-namespace.d.ts +66 -0
- package/dist/cjs/jsx/jsx-local-namespace.js +3 -0
- package/dist/cjs/jsx/jsx-local-namespace.js.map +1 -0
- package/dist/cjs/jsx/jsx-runtime.d.ts +2 -0
- package/dist/cjs/jsx/jsx-runtime.js +16 -0
- package/dist/cjs/jsx/jsx-runtime.js.map +1 -0
- package/dist/cjs/keyframes/index.d.ts +20 -24
- package/dist/cjs/keyframes/index.js.flow +1 -1
- package/dist/cjs/keyframes/index.js.map +1 -1
- package/dist/cjs/runtime/ax.js.flow +1 -1
- package/dist/cjs/runtime/css-custom-property.d.ts +1 -1
- package/dist/cjs/runtime/css-custom-property.js.flow +2 -2
- package/dist/cjs/runtime/css-custom-property.js.map +1 -1
- package/dist/cjs/runtime/dev-warnings.d.ts +0 -1
- package/dist/cjs/runtime/dev-warnings.js +2 -3
- package/dist/cjs/runtime/dev-warnings.js.flow +1 -2
- package/dist/cjs/runtime/dev-warnings.js.map +1 -1
- package/dist/cjs/runtime/index.js.flow +1 -1
- package/dist/cjs/runtime/is-node.js.flow +1 -1
- package/dist/cjs/runtime/sheet.d.ts +1 -1
- package/dist/cjs/runtime/sheet.js.flow +2 -2
- package/dist/cjs/runtime/style-cache.js.flow +1 -1
- package/dist/cjs/runtime/style-cache.js.map +1 -1
- package/dist/cjs/runtime/style.js +2 -2
- package/dist/cjs/runtime/style.js.flow +1 -1
- package/dist/cjs/runtime/style.js.map +1 -1
- package/dist/cjs/runtime/types.js.flow +1 -1
- package/dist/cjs/runtime.js.flow +1 -1
- package/dist/cjs/styled/index.d.ts +38 -13
- package/dist/cjs/styled/index.js +35 -7
- package/dist/cjs/styled/index.js.flow +5 -8
- package/dist/cjs/styled/index.js.map +1 -1
- package/dist/cjs/types.d.ts +5 -2
- package/dist/cjs/types.js.flow +6 -3
- package/dist/cjs/utils/error.js.flow +1 -1
- package/dist/esm/class-names/index.d.ts +22 -16
- package/dist/esm/class-names/index.js +1 -27
- package/dist/esm/class-names/index.js.flow +2 -2
- package/dist/esm/class-names/index.js.map +1 -1
- package/dist/esm/css/index.d.ts +22 -19
- package/dist/esm/css/index.js +4 -3
- package/dist/esm/css/index.js.flow +4 -4
- package/dist/esm/css/index.js.map +1 -1
- package/dist/esm/index.d.ts +12 -22
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.flow +5 -30
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/jsx/jsx-dev-runtime.d.ts +2 -0
- package/dist/esm/jsx/jsx-dev-runtime.js +4 -0
- package/dist/esm/jsx/jsx-dev-runtime.js.map +1 -0
- package/dist/esm/jsx/jsx-local-namespace.d.ts +66 -0
- package/dist/esm/jsx/jsx-local-namespace.js +2 -0
- package/dist/esm/jsx/jsx-local-namespace.js.map +1 -0
- package/dist/esm/jsx/jsx-runtime.d.ts +2 -0
- package/dist/esm/jsx/jsx-runtime.js +4 -0
- package/dist/esm/jsx/jsx-runtime.js.map +1 -0
- package/dist/esm/keyframes/index.d.ts +20 -24
- package/dist/esm/keyframes/index.js.flow +1 -1
- package/dist/esm/keyframes/index.js.map +1 -1
- package/dist/esm/runtime/ax.js.flow +1 -1
- package/dist/esm/runtime/css-custom-property.d.ts +1 -1
- package/dist/esm/runtime/css-custom-property.js.flow +2 -2
- package/dist/esm/runtime/css-custom-property.js.map +1 -1
- package/dist/esm/runtime/dev-warnings.d.ts +0 -1
- package/dist/esm/runtime/dev-warnings.js +1 -1
- package/dist/esm/runtime/dev-warnings.js.flow +1 -2
- package/dist/esm/runtime/dev-warnings.js.map +1 -1
- package/dist/esm/runtime/index.js.flow +1 -1
- package/dist/esm/runtime/is-node.js.flow +1 -1
- package/dist/esm/runtime/sheet.d.ts +1 -1
- package/dist/esm/runtime/sheet.js.flow +2 -2
- package/dist/esm/runtime/style-cache.js.flow +1 -1
- package/dist/esm/runtime/style-cache.js.map +1 -1
- package/dist/esm/runtime/style.js +2 -2
- package/dist/esm/runtime/style.js.flow +1 -1
- package/dist/esm/runtime/style.js.map +1 -1
- package/dist/esm/runtime/types.js.flow +1 -1
- package/dist/esm/runtime.js.flow +1 -1
- package/dist/esm/styled/index.d.ts +38 -13
- package/dist/esm/styled/index.js +35 -7
- package/dist/esm/styled/index.js.flow +5 -8
- package/dist/esm/styled/index.js.map +1 -1
- package/dist/esm/types.d.ts +5 -2
- package/dist/esm/types.js.flow +6 -3
- package/dist/esm/utils/error.js.flow +1 -1
- package/jsx-dev-runtime/package.json +6 -0
- package/jsx-runtime/package.json +6 -0
- package/package.json +42 -14
- package/src/__tests__/browser.test.tsx +5 -5
- package/src/__tests__/jest-matcher.test.tsx +197 -0
- package/src/__tests__/server-side-hydrate.test.tsx +1 -0
- package/src/__tests__/ssr.test.tsx +3 -3
- package/src/class-names/__tests__/index.test.tsx +1 -1
- package/src/class-names/index.js.flow +2 -2
- package/src/class-names/index.tsx +25 -14
- package/src/css/__tests__/index.test.tsx +9 -3
- package/src/css/index.js.flow +4 -4
- package/src/css/index.tsx +36 -23
- package/src/index.js.flow +5 -30
- package/src/index.tsx +18 -26
- package/src/jsx/__tests__/index.test.tsx +1 -2
- package/src/jsx/__tests__/jsx-import-source-pragma.test.tsx +37 -0
- package/src/jsx/__tests__/jsx-pragma.test.tsx +39 -0
- package/src/jsx/jsx-dev-runtime.tsx +5 -0
- package/src/jsx/jsx-local-namespace.tsx +75 -0
- package/src/jsx/jsx-runtime.tsx +5 -0
- package/src/keyframes/__tests__/index.test.tsx +2 -1
- package/src/keyframes/index.js.flow +1 -1
- package/src/keyframes/index.tsx +24 -28
- package/src/runtime/__perf__/ax.test.ts +42 -0
- package/src/runtime/__perf__/cs.test.tsx +111 -0
- package/src/runtime/__perf__/sheet.test.ts +61 -0
- package/src/runtime/__perf__/utils/cs.tsx +60 -0
- package/src/runtime/__perf__/utils/sheet.tsx +151 -0
- package/src/runtime/__tests__/style-ssr.test.tsx +1 -0
- package/src/runtime/__tests__/style.test.tsx +92 -58
- package/src/runtime/ax.js.flow +1 -1
- package/src/runtime/css-custom-property.js.flow +2 -2
- package/src/runtime/css-custom-property.tsx +1 -1
- package/src/runtime/dev-warnings.js.flow +1 -2
- package/src/runtime/dev-warnings.tsx +1 -1
- package/src/runtime/index.js.flow +1 -1
- package/src/runtime/is-node.js.flow +1 -1
- package/src/runtime/sheet.js.flow +2 -2
- package/src/runtime/sheet.tsx +1 -1
- package/src/runtime/style-cache.js.flow +1 -1
- package/src/runtime/style-cache.tsx +1 -0
- package/src/runtime/style.js.flow +1 -1
- package/src/runtime/style.tsx +4 -3
- package/src/runtime/types.js.flow +1 -1
- package/src/runtime.js.flow +1 -1
- package/src/styled/__tests__/index.test.tsx +3 -3
- package/src/styled/index.js.flow +5 -8
- package/src/styled/index.tsx +39 -14
- package/src/types.js.flow +6 -3
- package/src/types.tsx +6 -2
- package/src/utils/error.js.flow +1 -1
- package/CHANGELOG.md +0 -68
package/src/runtime/sheet.tsx
CHANGED
package/src/runtime/style.tsx
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { analyzeCssInDev } from './dev-warnings';
|
|
4
|
-
import type { StyleSheetOpts, Bucket } from './types';
|
|
5
|
-
import { useCache } from './style-cache';
|
|
6
4
|
import { isNodeEnvironment } from './is-node';
|
|
5
|
+
import insertRule, { getStyleBucketName, styleBucketOrdering } from './sheet';
|
|
6
|
+
import { useCache } from './style-cache';
|
|
7
|
+
import type { Bucket, StyleSheetOpts } from './types';
|
|
7
8
|
|
|
8
9
|
interface StyleProps extends StyleSheetOpts {
|
|
9
10
|
/**
|
package/src/runtime.js.flow
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
1
|
+
/** @jsxImportSource @compiled/react */
|
|
3
2
|
import { styled } from '@compiled/react';
|
|
3
|
+
import { render } from '@testing-library/react';
|
|
4
4
|
|
|
5
5
|
const em = (str: string | number) => str;
|
|
6
6
|
|
|
@@ -139,7 +139,7 @@ describe('styled component', () => {
|
|
|
139
139
|
expect(StyledDiv.displayName).toEqual(undefined);
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
it('should have a display name', () => {
|
|
143
143
|
process.env.NODE_ENV = 'development';
|
|
144
144
|
|
|
145
145
|
const StyledDiv = styled.div`
|
package/src/styled/index.js.flow
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Flowtype definitions for index
|
|
3
3
|
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.
|
|
4
|
+
* Flowgen v1.15.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentType } from 'react';
|
|
8
|
-
import type { BasicTemplateInterpolations, CssFunction,
|
|
9
|
-
export interface FunctionIterpolation<TProps> {
|
|
10
|
-
(props: TProps): CSSProps | string | number | boolean | void;
|
|
11
|
-
}
|
|
8
|
+
import type { BasicTemplateInterpolations, CssFunction, FunctionInterpolation } from '../types';
|
|
12
9
|
/**
|
|
13
10
|
* Typing for the CSS object.
|
|
14
11
|
*/
|
|
15
|
-
export type CssObject<TProps> = CssFunction<
|
|
12
|
+
export type CssObject<TProps> = CssFunction<FunctionInterpolation<TProps>>;
|
|
16
13
|
/**
|
|
17
14
|
* Extra props added to the output Styled Component.
|
|
18
15
|
*/
|
|
@@ -21,7 +18,7 @@ export type StyledProps = {
|
|
|
21
18
|
};
|
|
22
19
|
export type Interpolations<TProps: mixed> = (
|
|
23
20
|
| BasicTemplateInterpolations
|
|
24
|
-
|
|
|
21
|
+
| FunctionInterpolation<TProps>
|
|
25
22
|
| CssObject<TProps>
|
|
26
23
|
| CssObject<TProps>[]
|
|
27
24
|
)[];
|
|
@@ -36,7 +33,7 @@ export interface StyledFunctionFromTag<TTag: $Keys<$JSXIntrinsics>> {
|
|
|
36
33
|
...interpolations: Interpolations<TProps>
|
|
37
34
|
): React$ComponentType<{
|
|
38
35
|
...TProps,
|
|
39
|
-
...$ElementType<$JSXIntrinsics, TTag
|
|
36
|
+
...$Exact<$ElementType<$JSXIntrinsics, TTag>>,
|
|
40
37
|
...StyledProps,
|
|
41
38
|
}>;
|
|
42
39
|
}
|
package/src/styled/index.tsx
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
-
import { createSetupError } from '../utils/error';
|
|
3
|
-
import type { BasicTemplateInterpolations, CssFunction, CSSProps } from '../types';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
import type { BasicTemplateInterpolations, CssFunction, FunctionInterpolation } from '../types';
|
|
4
|
+
import { createSetupError } from '../utils/error';
|
|
8
5
|
|
|
9
6
|
/**
|
|
10
7
|
* Typing for the CSS object.
|
|
11
8
|
*/
|
|
12
|
-
export type CssObject<TProps> = CssFunction<
|
|
9
|
+
export type CssObject<TProps> = CssFunction<FunctionInterpolation<TProps>>;
|
|
13
10
|
|
|
14
11
|
/**
|
|
15
12
|
* Extra props added to the output Styled Component.
|
|
@@ -20,7 +17,7 @@ export interface StyledProps {
|
|
|
20
17
|
|
|
21
18
|
export type Interpolations<TProps extends unknown> = (
|
|
22
19
|
| BasicTemplateInterpolations
|
|
23
|
-
|
|
|
20
|
+
| FunctionInterpolation<TProps>
|
|
24
21
|
| CssObject<TProps>
|
|
25
22
|
| CssObject<TProps>[]
|
|
26
23
|
)[];
|
|
@@ -61,17 +58,45 @@ export interface StyledComponentInstantiator extends StyledComponentMap {
|
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
/**
|
|
64
|
-
*
|
|
61
|
+
* ## Styled component
|
|
62
|
+
*
|
|
63
|
+
* Create a component that styles a JSX element which comes with built-in behavior such as `ref` and `as` prop support.
|
|
64
|
+
* For further details [read the documentation](https://compiledcssinjs.com/docs/api-styled).
|
|
65
|
+
*
|
|
66
|
+
* ### Style with objects
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```
|
|
70
|
+
* styled.div({
|
|
71
|
+
* fontSize: 12,
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* ### Style with template literals
|
|
65
76
|
*
|
|
77
|
+
* @example
|
|
66
78
|
* ```
|
|
67
|
-
* styled.div`
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* styled.div({ fontSize: 12 }, `font-size: 12px`) Multi arguments CSS
|
|
79
|
+
* styled.div`
|
|
80
|
+
* font-size: 12px
|
|
81
|
+
* `;
|
|
71
82
|
* ```
|
|
72
83
|
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
84
|
+
* ### Compose styles with arrays
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```
|
|
88
|
+
* import { css } from '@compiled/react';
|
|
89
|
+
*
|
|
90
|
+
* styled.div([
|
|
91
|
+
* { fontSize: 12 },
|
|
92
|
+
* css`font-size: 12px;`
|
|
93
|
+
* ]);
|
|
94
|
+
*
|
|
95
|
+
* styled.div(
|
|
96
|
+
* { fontSize: 12 },
|
|
97
|
+
* css`font-size: 12px`
|
|
98
|
+
* );
|
|
99
|
+
* ```
|
|
75
100
|
*/
|
|
76
101
|
export const styled: StyledComponentInstantiator = new Proxy(
|
|
77
102
|
{},
|
package/src/types.js.flow
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Flowtype definitions for types
|
|
3
3
|
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.
|
|
4
|
+
* Flowgen v1.15.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
import * as CSS from 'csstype';
|
|
@@ -9,12 +9,15 @@ import * as CSS from 'csstype';
|
|
|
9
9
|
* Typing for the interpolations.
|
|
10
10
|
*/
|
|
11
11
|
export type BasicTemplateInterpolations = string | number;
|
|
12
|
+
export interface FunctionInterpolation<TProps> {
|
|
13
|
+
(props: TProps): CSSProps | BasicTemplateInterpolations | boolean | void;
|
|
14
|
+
}
|
|
12
15
|
/**
|
|
13
16
|
* These are all the CSS props that will exist.
|
|
14
17
|
*/
|
|
15
|
-
export type CSSProps = CSS.Properties<
|
|
18
|
+
export type CSSProps = CSS.Properties<BasicTemplateInterpolations>;
|
|
16
19
|
export type AnyKeyCssProps<TValue> = {
|
|
17
|
-
[key: string]: AnyKeyCssProps<TValue> | CSSProps |
|
|
20
|
+
[key: string]: AnyKeyCssProps<TValue> | CSSProps | BasicTemplateInterpolations | TValue,
|
|
18
21
|
...
|
|
19
22
|
};
|
|
20
23
|
export type CssFunction<TValue = void> =
|
package/src/types.tsx
CHANGED
|
@@ -5,13 +5,17 @@ import type * as CSS from 'csstype';
|
|
|
5
5
|
*/
|
|
6
6
|
export type BasicTemplateInterpolations = string | number;
|
|
7
7
|
|
|
8
|
+
export interface FunctionInterpolation<TProps> {
|
|
9
|
+
(props: TProps): CSSProps | BasicTemplateInterpolations | boolean | undefined;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* These are all the CSS props that will exist.
|
|
10
14
|
*/
|
|
11
|
-
export type CSSProps = CSS.Properties<
|
|
15
|
+
export type CSSProps = CSS.Properties<BasicTemplateInterpolations>;
|
|
12
16
|
|
|
13
17
|
export type AnyKeyCssProps<TValue> = {
|
|
14
|
-
[key: string]: AnyKeyCssProps<TValue> | CSSProps |
|
|
18
|
+
[key: string]: AnyKeyCssProps<TValue> | CSSProps | BasicTemplateInterpolations | TValue;
|
|
15
19
|
};
|
|
16
20
|
|
|
17
21
|
export type CssFunction<TValue = void> =
|
package/src/utils/error.js.flow
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# @compiled/react
|
|
2
|
-
|
|
3
|
-
## 0.8.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 4210ff6: Add flow types support
|
|
8
|
-
- 53935b3: Add `ObjectExpression` support to `css`
|
|
9
|
-
|
|
10
|
-
## 0.7.0
|
|
11
|
-
|
|
12
|
-
### Minor Changes
|
|
13
|
-
|
|
14
|
-
- bcb2a68: Add support for `keyframes`
|
|
15
|
-
- a7ab8e1: Add support for conditional rules for `Styled`
|
|
16
|
-
|
|
17
|
-
## 0.6.13
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- 13c3a60: add support of additional parameters to css function
|
|
22
|
-
|
|
23
|
-
## 0.6.12
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- b5b4e8a: Catch unhandled exception on inserting rules with prefixed selectors.
|
|
28
|
-
|
|
29
|
-
## 0.6.11
|
|
30
|
-
|
|
31
|
-
### Patch Changes
|
|
32
|
-
|
|
33
|
-
- ee3363e: Fix HTML characters escapes in style tags on SSR.
|
|
34
|
-
|
|
35
|
-
## 0.6.10
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- 40bc0d9: Package descriptions have been updated.
|
|
40
|
-
- 1b1c964: The `css` mixin API is now available,
|
|
41
|
-
functioning similarly to the [emotion equivalent](https://emotion.sh/docs/composition).
|
|
42
|
-
|
|
43
|
-
```jsx
|
|
44
|
-
import { css } from '@compiled/react';
|
|
45
|
-
|
|
46
|
-
<div
|
|
47
|
-
css={css`
|
|
48
|
-
display: flex;
|
|
49
|
-
font-size: 50px;
|
|
50
|
-
color: blue;
|
|
51
|
-
`}>
|
|
52
|
-
blue text
|
|
53
|
-
</div>;
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
For more help, read the docs: https://compiledcssinjs.com/docs/css.
|
|
57
|
-
|
|
58
|
-
## 0.6.9
|
|
59
|
-
|
|
60
|
-
### Patch Changes
|
|
61
|
-
|
|
62
|
-
- 4032cd4: Memo has been removed from the style component which was breaking re-renders at times.
|
|
63
|
-
|
|
64
|
-
## 0.6.8
|
|
65
|
-
|
|
66
|
-
### Patch Changes
|
|
67
|
-
|
|
68
|
-
- aea3504: Packages now released with [changesets](https://github.com/atlassian/changesets).
|