@compiled/react 0.18.6 → 0.19.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 +1 -1
- package/dist/browser/class-names/index.js +1 -1
- package/dist/browser/class-names/index.js.map +1 -1
- package/dist/browser/create-strict-api/index.d.ts +3 -3
- package/dist/browser/create-strict-api/index.js +2 -2
- package/dist/browser/create-strict-api/index.js.map +1 -1
- package/dist/browser/css/index.d.ts +1 -1
- package/dist/browser/css/index.js +1 -1
- package/dist/browser/css/index.js.map +1 -1
- package/dist/browser/css-map/index.d.ts +2 -2
- package/dist/browser/css-map/index.js +1 -1
- package/dist/browser/css-map/index.js.map +1 -1
- package/dist/browser/index.d.ts +10 -10
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/jsx/jsx-dev-runtime.d.ts +6 -1
- package/dist/browser/jsx/jsx-dev-runtime.js +3 -3
- package/dist/browser/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/browser/jsx/jsx-runtime.d.ts +7 -1
- package/dist/browser/jsx/jsx-runtime.js +4 -3
- package/dist/browser/jsx/jsx-runtime.js.map +1 -1
- package/dist/browser/keyframes/index.d.ts +1 -1
- package/dist/browser/keyframes/index.js +1 -1
- package/dist/browser/keyframes/index.js.map +1 -1
- package/dist/browser/runtime/ac.js +1 -1
- package/dist/browser/runtime/ac.js.map +1 -1
- package/dist/browser/runtime/index.d.ts +5 -5
- package/dist/browser/runtime/index.js +5 -5
- package/dist/browser/runtime/index.js.map +1 -1
- package/dist/browser/runtime/sheet.d.ts +1 -1
- package/dist/browser/runtime/sheet.js +2 -2
- package/dist/browser/runtime/sheet.js.map +1 -1
- package/dist/browser/runtime/style-cache.d.ts +1 -1
- package/dist/browser/runtime/style-cache.js +2 -2
- package/dist/browser/runtime/style-cache.js.map +1 -1
- package/dist/browser/runtime/style.d.ts +1 -1
- package/dist/browser/runtime/style.js +4 -4
- package/dist/browser/runtime/style.js.map +1 -1
- package/dist/browser/runtime.d.ts +1 -1
- package/dist/browser/runtime.js +1 -1
- package/dist/browser/runtime.js.map +1 -1
- package/dist/browser/styled/index.d.ts +1 -1
- package/dist/browser/styled/index.js +1 -1
- package/dist/browser/styled/index.js.map +1 -1
- package/dist/browser/xcss-prop/index.d.ts +2 -2
- package/dist/browser/xcss-prop/index.js +1 -1
- package/dist/browser/xcss-prop/index.js.map +1 -1
- package/dist/cjs/class-names/index.d.ts +1 -1
- package/dist/cjs/class-names/index.js +2 -2
- package/dist/cjs/class-names/index.js.map +1 -1
- package/dist/cjs/create-strict-api/index.d.ts +3 -3
- package/dist/cjs/create-strict-api/index.js +6 -6
- package/dist/cjs/create-strict-api/index.js.map +1 -1
- package/dist/cjs/css/index.d.ts +1 -1
- package/dist/cjs/css/index.js +2 -2
- package/dist/cjs/css/index.js.map +1 -1
- package/dist/cjs/css-map/index.d.ts +2 -2
- package/dist/cjs/css-map/index.js +2 -2
- package/dist/cjs/css-map/index.js.map +1 -1
- package/dist/cjs/index.d.ts +10 -10
- package/dist/cjs/index.js +14 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/jsx/jsx-dev-runtime.d.ts +6 -1
- package/dist/cjs/jsx/jsx-dev-runtime.js +15 -5
- package/dist/cjs/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/cjs/jsx/jsx-runtime.d.ts +7 -1
- package/dist/cjs/jsx/jsx-runtime.js +16 -5
- package/dist/cjs/jsx/jsx-runtime.js.map +1 -1
- package/dist/cjs/keyframes/index.d.ts +1 -1
- package/dist/cjs/keyframes/index.js +2 -2
- package/dist/cjs/keyframes/index.js.map +1 -1
- package/dist/cjs/runtime/ac.js +2 -2
- package/dist/cjs/runtime/ac.js.map +1 -1
- package/dist/cjs/runtime/index.d.ts +5 -5
- package/dist/cjs/runtime/index.js +11 -11
- package/dist/cjs/runtime/index.js.map +1 -1
- package/dist/cjs/runtime/sheet.d.ts +1 -1
- package/dist/cjs/runtime/sheet.js +3 -3
- package/dist/cjs/runtime/sheet.js.map +1 -1
- package/dist/cjs/runtime/style-cache.d.ts +1 -1
- package/dist/cjs/runtime/style-cache.js +6 -6
- package/dist/cjs/runtime/style-cache.js.map +1 -1
- package/dist/cjs/runtime/style.d.ts +1 -1
- package/dist/cjs/runtime/style.js +10 -10
- package/dist/cjs/runtime/style.js.map +1 -1
- package/dist/cjs/runtime.d.ts +1 -1
- package/dist/cjs/runtime.js +7 -7
- package/dist/cjs/runtime.js.map +1 -1
- package/dist/cjs/styled/index.d.ts +1 -1
- package/dist/cjs/styled/index.js +2 -2
- package/dist/cjs/styled/index.js.map +1 -1
- package/dist/cjs/xcss-prop/index.d.ts +2 -2
- package/dist/cjs/xcss-prop/index.js +2 -2
- package/dist/cjs/xcss-prop/index.js.map +1 -1
- package/dist/esm/class-names/index.d.ts +1 -1
- package/dist/esm/class-names/index.js +1 -1
- package/dist/esm/class-names/index.js.map +1 -1
- package/dist/esm/create-strict-api/index.d.ts +3 -3
- package/dist/esm/create-strict-api/index.js +2 -2
- package/dist/esm/create-strict-api/index.js.map +1 -1
- package/dist/esm/css/index.d.ts +1 -1
- package/dist/esm/css/index.js +1 -1
- package/dist/esm/css/index.js.map +1 -1
- package/dist/esm/css-map/index.d.ts +2 -2
- package/dist/esm/css-map/index.js +1 -1
- package/dist/esm/css-map/index.js.map +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/jsx/jsx-dev-runtime.d.ts +6 -1
- package/dist/esm/jsx/jsx-dev-runtime.js +3 -3
- package/dist/esm/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/esm/jsx/jsx-runtime.d.ts +7 -1
- package/dist/esm/jsx/jsx-runtime.js +4 -3
- package/dist/esm/jsx/jsx-runtime.js.map +1 -1
- package/dist/esm/keyframes/index.d.ts +1 -1
- package/dist/esm/keyframes/index.js +1 -1
- package/dist/esm/keyframes/index.js.map +1 -1
- package/dist/esm/runtime/ac.js +1 -1
- package/dist/esm/runtime/ac.js.map +1 -1
- package/dist/esm/runtime/index.d.ts +5 -5
- package/dist/esm/runtime/index.js +5 -5
- package/dist/esm/runtime/index.js.map +1 -1
- package/dist/esm/runtime/sheet.d.ts +1 -1
- package/dist/esm/runtime/sheet.js +2 -2
- package/dist/esm/runtime/sheet.js.map +1 -1
- package/dist/esm/runtime/style-cache.d.ts +1 -1
- package/dist/esm/runtime/style-cache.js +2 -2
- package/dist/esm/runtime/style-cache.js.map +1 -1
- package/dist/esm/runtime/style.d.ts +1 -1
- package/dist/esm/runtime/style.js +4 -4
- package/dist/esm/runtime/style.js.map +1 -1
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/esm/runtime.js.map +1 -1
- package/dist/esm/styled/index.d.ts +1 -1
- package/dist/esm/styled/index.js +1 -1
- package/dist/esm/styled/index.js.map +1 -1
- package/dist/esm/xcss-prop/index.d.ts +2 -2
- package/dist/esm/xcss-prop/index.js +1 -1
- package/dist/esm/xcss-prop/index.js.map +1 -1
- package/package.json +6 -6
- package/src/__tests__/server-side-hydrate.test.tsx +4 -4
- package/src/class-names/index.ts +2 -2
- package/src/create-strict-api/index.ts +4 -4
- package/src/css/index.ts +2 -2
- package/src/css-map/index.ts +3 -3
- package/src/index.ts +10 -10
- package/src/jsx/jsx-dev-runtime.ts +3 -3
- package/src/jsx/jsx-runtime.ts +4 -3
- package/src/keyframes/index.ts +2 -2
- package/src/runtime/__perf__/cs.test.tsx +3 -4
- package/src/runtime/__tests__/style.test.tsx +1 -1
- package/src/runtime/ac.ts +1 -1
- package/src/runtime/index.ts +5 -5
- package/src/runtime/sheet.ts +3 -3
- package/src/runtime/style-cache.tsx +3 -3
- package/src/runtime/style.tsx +5 -5
- package/src/runtime.ts +1 -1
- package/src/styled/__tests__/index.test.tsx +1 -1
- package/src/styled/index.ts +2 -2
- package/src/xcss-prop/index.ts +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/css-map/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/css-map/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAiGrD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAM5B,OAAgB;IAIhB,MAAM,gBAAgB,EAAE,CAAC;AAC3B,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
|
-
import type { CompiledJSX } from './jsx/jsx-local-namespace';
|
|
3
|
-
export { ClassNames } from './class-names';
|
|
4
|
-
export { createStrictAPI } from './create-strict-api';
|
|
5
|
-
export type { PseudosDeclarations, MediaQueries, AllowedStyles, ApplySchema, ApplySchemaMap, } from './create-strict-api/types';
|
|
6
|
-
export { default as css } from './css';
|
|
7
|
-
export { default as cssMap } from './css-map';
|
|
8
|
-
export { keyframes } from './keyframes';
|
|
9
|
-
export { styled, StyledProps } from './styled';
|
|
10
|
-
export type { CSSProperties, CSSProps, CSSPseudos, CssFunction, CssType, StrictCSSProperties, } from './types';
|
|
11
|
-
export { type XCSSAllProperties, type XCSSAllPseudos, type XCSSProp, type CompiledStyles, type Internal$XCSSProp, cx, } from './xcss-prop';
|
|
2
|
+
import type { CompiledJSX } from './jsx/jsx-local-namespace.js';
|
|
3
|
+
export { ClassNames } from './class-names/index.js';
|
|
4
|
+
export { createStrictAPI } from './create-strict-api/index.js';
|
|
5
|
+
export type { PseudosDeclarations, MediaQueries, AllowedStyles, ApplySchema, ApplySchemaMap, } from './create-strict-api/types.js';
|
|
6
|
+
export { default as css } from './css/index.js';
|
|
7
|
+
export { default as cssMap } from './css-map/index.js';
|
|
8
|
+
export { keyframes } from './keyframes/index.js';
|
|
9
|
+
export { styled, StyledProps } from './styled/index.js';
|
|
10
|
+
export type { CSSProperties, CSSProps, CSSPseudos, CssFunction, CssType, StrictCSSProperties, } from './types.js';
|
|
11
|
+
export { type XCSSAllProperties, type XCSSAllPseudos, type XCSSProp, type CompiledStyles, type Internal$XCSSProp, cx, } from './xcss-prop/index.js';
|
|
12
12
|
export declare const jsx: typeof createElement;
|
|
13
13
|
export declare namespace jsx {
|
|
14
14
|
namespace JSX {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
|
-
export { ClassNames } from './class-names';
|
|
3
|
-
export { createStrictAPI } from './create-strict-api';
|
|
4
|
-
export { default as css } from './css';
|
|
5
|
-
export { default as cssMap } from './css-map';
|
|
6
|
-
export { keyframes } from './keyframes';
|
|
7
|
-
export { styled } from './styled';
|
|
8
|
-
export { cx, } from './xcss-prop';
|
|
2
|
+
export { ClassNames } from './class-names/index.js';
|
|
3
|
+
export { createStrictAPI } from './create-strict-api/index.js';
|
|
4
|
+
export { default as css } from './css/index.js';
|
|
5
|
+
export { default as cssMap } from './css-map/index.js';
|
|
6
|
+
export { keyframes } from './keyframes/index.js';
|
|
7
|
+
export { styled } from './styled/index.js';
|
|
8
|
+
export { cx, } from './xcss-prop/index.js';
|
|
9
9
|
// Pass through the (classic) jsx runtime.
|
|
10
10
|
// Compiled currently doesn't define its own and uses this purely to enable a local jsx namespace.
|
|
11
11
|
export const jsx = createElement;
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAQ/D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAe,MAAM,mBAAmB,CAAC;AASxD,OAAO,EAML,EAAE,GACH,MAAM,sBAAsB,CAAC;AAE9B,0CAA0C;AAC1C,kGAAkG;AAClG,MAAM,CAAC,MAAM,GAAG,GAAG,aAAa,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type { CompiledJSX as JSX } from './jsx-local-namespace';
|
|
2
|
-
|
|
3
|
+
import * as ReactJSXRuntimeDev from 'react/jsx-dev-runtime';
|
|
4
|
+
export declare const Fragment: import("react").ExoticComponent<{
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const jsxDEV: typeof ReactJSXRuntimeDev.jsxDEV;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import * as ReactJSXRuntimeDev from 'react/jsx-dev-runtime';
|
|
2
|
+
export const Fragment = ReactJSXRuntimeDev.Fragment;
|
|
3
|
+
export const jsxDEV = ReactJSXRuntimeDev.jsxDEV;
|
|
4
4
|
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-dev-runtime.js","sourceRoot":"","sources":["../../../src/jsx/jsx-dev-runtime.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.js","sourceRoot":"","sources":["../../../src/jsx/jsx-dev-runtime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAC5D,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC;AACpD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type { CompiledJSX as JSX } from './jsx-local-namespace';
|
|
2
|
-
|
|
3
|
+
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
4
|
+
export declare const Fragment: import("react").ExoticComponent<{
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const jsx: typeof ReactJSXRuntime.jsx;
|
|
8
|
+
export declare const jsxs: typeof ReactJSXRuntime.jsxs;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
2
|
+
export const Fragment = ReactJSXRuntime.Fragment;
|
|
3
|
+
export const jsx = ReactJSXRuntime.jsx;
|
|
4
|
+
export const jsxs = ReactJSXRuntime.jsxs;
|
|
4
5
|
//# sourceMappingURL=jsx-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.js","sourceRoot":"","sources":["../../../src/jsx/jsx-runtime.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sourceRoot":"","sources":["../../../src/jsx/jsx-runtime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC;AACjD,MAAM,CAAC,MAAM,GAAG,GAA+B,eAAe,CAAC,GAAG,CAAC;AACnE,MAAM,CAAC,MAAM,IAAI,GAAgC,eAAe,CAAC,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BasicTemplateInterpolations, CSSProps } from '../types';
|
|
1
|
+
import type { BasicTemplateInterpolations, CSSProps } from '../types.js';
|
|
2
2
|
export type KeyframeSteps = string | Record<'from' | 'to' | string, CSSProps<void> | {
|
|
3
3
|
[key: `--${string}`]: CSSProps<void>[keyof CSSProps<void>];
|
|
4
4
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/keyframes/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/keyframes/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AA0DrD,MAAM,UAAU,SAAS,CACvB,eAAqD,EACrD,GAAG,eAA8C;IAEjD,MAAM,gBAAgB,EAAE,CAAC;AAC3B,CAAC"}
|
package/dist/esm/runtime/ac.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ac.js","sourceRoot":"","sources":["../../../src/runtime/ac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ac.js","sourceRoot":"","sources":["../../../src/runtime/ac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B;;;GAGG;AACH,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAE9B;;;GAGG;AACH,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;AAExB;;;GAGG;AACH,MAAM,YAAY;IAEhB,YAAY,MAA2B;QACrC,2EAA2E;QAC3E,mFAAmF;QACnF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAA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C,CAAC;IAE5B,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,+EAA+E;AAC/E,oGAAoG;AACpG,eAAe,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;AAEvD;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as CS } from './style';
|
|
2
|
-
export { default as CC } from './style-cache';
|
|
3
|
-
export { default as ax } from './ax';
|
|
4
|
-
export { default as ac, clearCache as clearAcCache } from './ac';
|
|
5
|
-
export { default as ix } from './css-custom-property';
|
|
1
|
+
export { default as CS } from './style.js';
|
|
2
|
+
export { default as CC } from './style-cache.js';
|
|
3
|
+
export { default as ax } from './ax.js';
|
|
4
|
+
export { default as ac, clearCache as clearAcCache } from './ac.js';
|
|
5
|
+
export { default as ix } from './css-custom-property.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as CS } from './style';
|
|
2
|
-
export { default as CC } from './style-cache';
|
|
3
|
-
export { default as ax } from './ax';
|
|
4
|
-
export { default as ac, clearCache as clearAcCache } from './ac';
|
|
5
|
-
export { default as ix } from './css-custom-property';
|
|
1
|
+
export { default as CS } from './style.js';
|
|
2
|
+
export { default as CC } from './style-cache.js';
|
|
3
|
+
export { default as ax } from './ax.js';
|
|
4
|
+
export { default as ac, clearCache as clearAcCache } from './ac.js';
|
|
5
|
+
export { default as ix } from './css-custom-property.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../src/runtime/sheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../src/runtime/sheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGnD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAa;IAC3C,uBAAuB;IACvB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,YAAY;IACZ,EAAE;IACF,OAAO;IACP,GAAG;IACH,UAAU;IACV,GAAG;IACH,eAAe;IACf,GAAG;IACH,QAAQ;IACR,GAAG;IACH,gBAAgB;IAChB,GAAG;IACH,QAAQ;IACR,GAAG;IACH,SAAS;IACT,GAAG;IACH,WAAW;IACX,GAAG;CACJ,CAAC;AAEF;;GAEG;AACH,MAAM,kBAAkB,GAA8C,EAAE,CAAC;AAEzE;;;;;;GAMG;AACH,MAAM,UAAU,GAAuC;IACrD,OAAO;IACP,CAAC,EAAE,GAAG;IACN,UAAU;IACV,IAAI,EAAE,GAAG;IACT,eAA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M,CAAC,CAAC;SAC9C;QAAC,WAAM,GAAE;KACX;SAAM;QACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;KACjD;AACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
|
-
import { isCacheDisabled } from './cache';
|
|
4
|
-
import { isServerEnvironment } from './is-server-environment';
|
|
3
|
+
import { isCacheDisabled } from './cache.js';
|
|
4
|
+
import { isServerEnvironment } from './is-server-environment.js';
|
|
5
5
|
/**
|
|
6
6
|
* Cache to hold already used styles.
|
|
7
7
|
* React Context on the server - singleton object on the client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-cache.js","sourceRoot":"","sources":["../../../src/runtime/style-cache.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"style-cache.js","sourceRoot":"","sources":["../../../src/runtime/style-cache.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE;;;GAGG;AACH,MAAM,KAAK,GAAQ,mBAAmB,EAAE,CAAC,CAAC,CAAC,aAAa,CAA8B,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAEjG,IAAI,CAAC,mBAAmB,EAAE,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;IAC7D;;;;OAIG;IACH,MAAM,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAmB,mBAAmB,CAAC,CAAC;IACnF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,iGAAiG;QACjG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;KACzC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAiB,GAAG,EAAE;IACzC,WAAuB;QACrB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,mBAAmB,EAAE,EAAE;QACzB,mFAAmF;QACnF,wGAAwG;QACxG,sDAAsD;QACtD,OAAO,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;KAChC;IAED,6CAA6C;IAC7C,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,kBAAkB,GAAsB,CAAC,KAAK,EAAE,EAAE;IACtD,IAAI,mBAAmB,EAAE,EAAE;QACzB,4EAA4E;QAC5E,sDAAsD;QACtD,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;QAC5B,OAAO,oBAAC,KAAK,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,IAAG,KAAK,CAAC,QAAQ,CAAkB,CAAC;KAC3E;IAED,OAAO,KAAK,CAAC,QAAuB,CAAC;AACvC,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { analyzeCssInDev } from './dev-warnings';
|
|
3
|
-
import { isServerEnvironment } from './is-server-environment';
|
|
4
|
-
import insertRule, { getStyleBucketName, styleBucketOrdering } from './sheet';
|
|
5
|
-
import { useCache } from './style-cache';
|
|
2
|
+
import { analyzeCssInDev } from './dev-warnings.js';
|
|
3
|
+
import { isServerEnvironment } from './is-server-environment.js';
|
|
4
|
+
import insertRule, { getStyleBucketName, styleBucketOrdering } from './sheet.js';
|
|
5
|
+
import { useCache } from './style-cache.js';
|
|
6
6
|
export default function Style(props) {
|
|
7
7
|
const inserted = useCache();
|
|
8
8
|
if (process.env.NODE_ENV === 'development') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/runtime/style.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/runtime/style.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,UAAU,EAAE,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAW5C,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAiB;IAC7C,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAE5B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC1C,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;KACzC;IAED,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE;QACzB,IAAI,mBAAmB,EAAE,EAAE;YACzB,MAAM,cAAc,GAAoC,EAAE,CAAC;YAC3D,IAAI,SAAS,GAAG,KAAK,CAAC;YAEtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAChC,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;oBACnB,SAAS;iBACV;qBAAM;oBACL,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;oBACvB,SAAS,GAAG,IAAI,CAAC;iBAClB;gBAED,MAAM,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;gBAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC;aACzE;YAED,IAAI,CAAC,SAAS,EAAE;gBACd,OAAO,IAAI,CAAC;aACb;YAED,OAAO,CACL,mDAEE,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,uBAAuB,EAAE;oBACvB,MAAM,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;iBAC7E,GACD,CACH,CAAC;SACH;aAAM;YACL,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAChC,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;oBACnB,SAAS;iBACV;gBAED,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;gBACvB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;aAC1B;SACF;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CC, CS, ax, ac, clearAcCache, ix } from './runtime/index';
|
|
1
|
+
export { CC, CS, ax, ac, clearAcCache, ix } from './runtime/index.js';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CC, CS, ax, ac, clearAcCache, ix } from './runtime/index';
|
|
1
|
+
export { CC, CS, ax, ac, clearAcCache, ix } from './runtime/index.js';
|
|
2
2
|
//# sourceMappingURL=runtime.js.map
|
package/dist/esm/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/esm/styled/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styled/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styled/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAoCrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAC,MAAM,MAAM,GAA0B,IAAI,KAAK,CACpD,EAAE,EACF;IACE,GAAG;QACD,OAAO,GAAG,EAAE;YACV,8CAA8C;YAC9C,yDAAyD;YACzD,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC,CAAC;IACJ,CAAC;CACF,CACK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as CSS from 'csstype';
|
|
2
|
-
import type { ApplySchemaValue } from '../create-strict-api/types';
|
|
3
|
-
import type { CSSPseudos, CSSProperties, StrictCSSProperties, AllCSSPseudoClasses } from '../types';
|
|
2
|
+
import type { ApplySchemaValue } from '../create-strict-api/types.js';
|
|
3
|
+
import type { CSSPseudos, CSSProperties, StrictCSSProperties, AllCSSPseudoClasses } from '../types.js';
|
|
4
4
|
type MarkAsRequired<T, K extends keyof T> = T & {
|
|
5
5
|
[P in K]-?: T[P];
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/xcss-prop/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/xcss-prop/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AA2LnC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAChB,GAAG,MAAe,EACD,EAAE;IACnB,2EAA2E;IAC3E,sDAAsD;IACtD,MAAM,YAAY,GAAG,MAA6B,CAAC;IAEnD,+EAA+E;IAC/E,kFAAkF;IAClF,OAAO,EAAE,CAAC,YAAY,CAAoB,CAAC;AAC7C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiled/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "A familiar and performant compile time CSS-in-JS library for React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiled",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"@compiled/benchmark": "^1.1.0",
|
|
79
79
|
"@compiled/utils": "^0.13.0",
|
|
80
80
|
"@fixture/strict-api-test": "*",
|
|
81
|
-
"@testing-library/react": "^
|
|
81
|
+
"@testing-library/react": "^16.1.0",
|
|
82
82
|
"@types/jsdom": "^16.2.15",
|
|
83
|
-
"@types/react-dom": "^
|
|
83
|
+
"@types/react-dom": "^18.3.1",
|
|
84
84
|
"expect-type": "^0.20.0",
|
|
85
85
|
"jsdom": "^19.0.0",
|
|
86
|
-
"react": "^
|
|
87
|
-
"react-dom": "^
|
|
86
|
+
"react": "^18.3.1",
|
|
87
|
+
"react-dom": "^18.3.1"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"react": ">=
|
|
90
|
+
"react": ">=18.0.0"
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { hydrateRoot } from 'react-dom/client';
|
|
3
3
|
|
|
4
4
|
import { CC, CS } from '../runtime';
|
|
5
5
|
|
|
@@ -34,12 +34,12 @@ describe('server side hydrate', () => {
|
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
flushRuntimeModule();
|
|
37
|
-
|
|
37
|
+
hydrateRoot(
|
|
38
|
+
elem,
|
|
38
39
|
<CC>
|
|
39
40
|
<CS>{['.foo { color: blue; }', '.foo { color: blue; }']}</CS>
|
|
40
41
|
<div className="foo">hello world</div>
|
|
41
|
-
</CC
|
|
42
|
-
elem
|
|
42
|
+
</CC>
|
|
43
43
|
);
|
|
44
44
|
|
|
45
45
|
expect(console.error).not.toHaveBeenCalled();
|
package/src/class-names/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
|
|
3
|
-
import type { CssType, CssFunction } from '../types';
|
|
4
|
-
import { createSetupError } from '../utils/error';
|
|
3
|
+
import type { CssType, CssFunction } from '../types.js';
|
|
4
|
+
import { createSetupError } from '../utils/error.js';
|
|
5
5
|
|
|
6
6
|
export type ObjectInterpolation<TProps> = CssType<TProps> | CssType<TProps>[];
|
|
7
7
|
export type TemplateStringsInterpolation<TProps> = CssFunction<TProps> | CssFunction<TProps>[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { StrictCSSProperties, CSSPseudos, CSSProps } from '../types';
|
|
2
|
-
import { createStrictSetupError } from '../utils/error';
|
|
3
|
-
import { type CompiledStyles, cx, type Internal$XCSSProp } from '../xcss-prop';
|
|
1
|
+
import type { StrictCSSProperties, CSSPseudos, CSSProps } from '../types.js';
|
|
2
|
+
import { createStrictSetupError } from '../utils/error.js';
|
|
3
|
+
import { type CompiledStyles, cx, type Internal$XCSSProp } from '../xcss-prop/index.js';
|
|
4
4
|
|
|
5
|
-
import type { AllowedStyles, ApplySchema, ApplySchemaMap, CompiledSchemaShape } from './types';
|
|
5
|
+
import type { AllowedStyles, ApplySchema, ApplySchemaMap, CompiledSchemaShape } from './types.js';
|
|
6
6
|
|
|
7
7
|
export interface StrictOptions {
|
|
8
8
|
media: string;
|
package/src/css/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/export */
|
|
2
2
|
|
|
3
|
-
import type { CSSProps, CssObject, CssFunction } from '../types';
|
|
4
|
-
import { createSetupError } from '../utils/error';
|
|
3
|
+
import type { CSSProps, CssObject, CssFunction } from '../types.js';
|
|
4
|
+
import { createSetupError } from '../utils/error.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* ## CSS
|
package/src/css-map/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as CSS from 'csstype';
|
|
2
2
|
|
|
3
|
-
import type { CSSPseudos, CSSProperties } from '../types';
|
|
4
|
-
import { createSetupError } from '../utils/error';
|
|
5
|
-
import type { CompiledStyles } from '../xcss-prop';
|
|
3
|
+
import type { CSSPseudos, CSSProperties } from '../types.js';
|
|
4
|
+
import { createSetupError } from '../utils/error.js';
|
|
5
|
+
import type { CompiledStyles } from '../xcss-prop/index.js';
|
|
6
6
|
|
|
7
7
|
type AllPseudos = { [key in CSSPseudos]?: CSSProperties & AllPseudos };
|
|
8
8
|
|
package/src/index.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
2
|
|
|
3
|
-
import type { CompiledJSX } from './jsx/jsx-local-namespace';
|
|
3
|
+
import type { CompiledJSX } from './jsx/jsx-local-namespace.js';
|
|
4
4
|
|
|
5
|
-
export { ClassNames } from './class-names';
|
|
6
|
-
export { createStrictAPI } from './create-strict-api';
|
|
5
|
+
export { ClassNames } from './class-names/index.js';
|
|
6
|
+
export { createStrictAPI } from './create-strict-api/index.js';
|
|
7
7
|
export type {
|
|
8
8
|
PseudosDeclarations,
|
|
9
9
|
MediaQueries,
|
|
10
10
|
AllowedStyles,
|
|
11
11
|
ApplySchema,
|
|
12
12
|
ApplySchemaMap,
|
|
13
|
-
} from './create-strict-api/types';
|
|
14
|
-
export { default as css } from './css';
|
|
15
|
-
export { default as cssMap } from './css-map';
|
|
16
|
-
export { keyframes } from './keyframes';
|
|
17
|
-
export { styled, StyledProps } from './styled';
|
|
13
|
+
} from './create-strict-api/types.js';
|
|
14
|
+
export { default as css } from './css/index.js';
|
|
15
|
+
export { default as cssMap } from './css-map/index.js';
|
|
16
|
+
export { keyframes } from './keyframes/index.js';
|
|
17
|
+
export { styled, StyledProps } from './styled/index.js';
|
|
18
18
|
export type {
|
|
19
19
|
CSSProperties,
|
|
20
20
|
CSSProps,
|
|
@@ -22,7 +22,7 @@ export type {
|
|
|
22
22
|
CssFunction,
|
|
23
23
|
CssType,
|
|
24
24
|
StrictCSSProperties,
|
|
25
|
-
} from './types';
|
|
25
|
+
} from './types.js';
|
|
26
26
|
export {
|
|
27
27
|
type XCSSAllProperties,
|
|
28
28
|
type XCSSAllPseudos,
|
|
@@ -30,7 +30,7 @@ export {
|
|
|
30
30
|
type CompiledStyles,
|
|
31
31
|
type Internal$XCSSProp,
|
|
32
32
|
cx,
|
|
33
|
-
} from './xcss-prop';
|
|
33
|
+
} from './xcss-prop/index.js';
|
|
34
34
|
|
|
35
35
|
// Pass through the (classic) jsx runtime.
|
|
36
36
|
// Compiled currently doesn't define its own and uses this purely to enable a local jsx namespace.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { CompiledJSX as JSX } from './jsx-local-namespace';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
3
|
+
import * as ReactJSXRuntimeDev from 'react/jsx-dev-runtime';
|
|
4
|
+
export const Fragment = ReactJSXRuntimeDev.Fragment;
|
|
5
|
+
export const jsxDEV = ReactJSXRuntimeDev.jsxDEV;
|
package/src/jsx/jsx-runtime.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CompiledJSX as JSX } from './jsx-local-namespace';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
3
|
+
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
4
|
+
export const Fragment = ReactJSXRuntime.Fragment;
|
|
5
|
+
export const jsx: typeof ReactJSXRuntime.jsx = ReactJSXRuntime.jsx;
|
|
6
|
+
export const jsxs: typeof ReactJSXRuntime.jsxs = ReactJSXRuntime.jsxs;
|
package/src/keyframes/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BasicTemplateInterpolations, CSSProps } from '../types';
|
|
2
|
-
import { createSetupError } from '../utils/error';
|
|
1
|
+
import type { BasicTemplateInterpolations, CSSProps } from '../types.js';
|
|
2
|
+
import { createSetupError } from '../utils/error.js';
|
|
3
3
|
|
|
4
4
|
export type KeyframeSteps =
|
|
5
5
|
// `string` would just be an arbitrary CSS-like string such as `keyframes('from{opacity:1;}to{opacity:0;}')`
|
|
@@ -2,7 +2,7 @@ import { runBenchmark } from '@compiled/benchmark';
|
|
|
2
2
|
import { JSDOM } from 'jsdom';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { memo } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { createRoot } from 'react-dom/client';
|
|
6
6
|
import { renderToString } from 'react-dom/server';
|
|
7
7
|
|
|
8
8
|
import { CC, CS } from '../index';
|
|
@@ -66,9 +66,8 @@ describe('CS benchmark', () => {
|
|
|
66
66
|
renderToString(<>{Array.from({ length: 10 }).map((_, i) => jsx(i))}</>);
|
|
67
67
|
}
|
|
68
68
|
: (jsx: (key: number) => JSX.Element) => {
|
|
69
|
-
render(
|
|
70
|
-
<>{Array.from({ length: 10 }).map((_, i) => jsx(i))}
|
|
71
|
-
globalThis.document.getElementById('root')
|
|
69
|
+
createRoot(globalThis.document.getElementById('root')!).render(
|
|
70
|
+
<>{Array.from({ length: 10 }).map((_, i) => jsx(i))}</>
|
|
72
71
|
);
|
|
73
72
|
};
|
|
74
73
|
|
|
@@ -19,7 +19,7 @@ describe('<Style />', () => {
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// We want to isolate the test to correctly mimic the environment being loaded in once
|
|
22
|
-
const createIsolatedTest = (callback: (Style: ComponentType) => void) => {
|
|
22
|
+
const createIsolatedTest = (callback: (Style: ComponentType<{ children: string[] }>) => void) => {
|
|
23
23
|
jest.isolateModules(() => {
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
25
25
|
const Style = require('../style');
|
package/src/runtime/ac.ts
CHANGED
package/src/runtime/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as CS } from './style';
|
|
2
|
-
export { default as CC } from './style-cache';
|
|
3
|
-
export { default as ax } from './ax';
|
|
4
|
-
export { default as ac, clearCache as clearAcCache } from './ac';
|
|
5
|
-
export { default as ix } from './css-custom-property';
|
|
1
|
+
export { default as CS } from './style.js';
|
|
2
|
+
export { default as CC } from './style-cache.js';
|
|
3
|
+
export { default as ax } from './ax.js';
|
|
4
|
+
export { default as ac, clearCache as clearAcCache } from './ac.js';
|
|
5
|
+
export { default as ix } from './css-custom-property.js';
|
package/src/runtime/sheet.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isCacheDisabled } from './cache';
|
|
2
|
-
import { getShorthandDepth } from './shorthand';
|
|
3
|
-
import type { Bucket, StyleSheetOpts } from './types';
|
|
1
|
+
import { isCacheDisabled } from './cache.js';
|
|
2
|
+
import { getShorthandDepth } from './shorthand.js';
|
|
3
|
+
import type { Bucket, StyleSheetOpts } from './types.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Ordered style buckets using their short pseudo name.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
3
|
|
|
4
|
-
import { isCacheDisabled } from './cache';
|
|
5
|
-
import { isServerEnvironment } from './is-server-environment';
|
|
6
|
-
import type { ProviderComponent, UseCacheHook } from './types';
|
|
4
|
+
import { isCacheDisabled } from './cache.js';
|
|
5
|
+
import { isServerEnvironment } from './is-server-environment.js';
|
|
6
|
+
import type { ProviderComponent, UseCacheHook } from './types.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cache to hold already used styles.
|