@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import insertRule, { getStyleBucketName, styleBucketOrdering } from './sheet';
|
|
3
2
|
import { analyzeCssInDev } from './dev-warnings';
|
|
4
|
-
import { useCache } from './style-cache';
|
|
5
3
|
import { isNodeEnvironment } from './is-node';
|
|
4
|
+
import insertRule, { getStyleBucketName, styleBucketOrdering } from './sheet';
|
|
5
|
+
import { useCache } from './style-cache';
|
|
6
6
|
export default function Style(props) {
|
|
7
7
|
var 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;
|
|
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,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,UAAU,EAAE,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAWzC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAiB;IAC7C,IAAM,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,WAAyB;YACvB,IAAM,gBAAc,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,IAAM,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,IAAM,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;gBAC7C,gBAAc,CAAC,UAAU,CAAC,GAAG,CAAC,gBAAc,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,UAAC,MAAM,IAAK,OAAA,gBAAc,CAAC,MAAM,CAAC,EAAtB,CAAsB,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,IAAM,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"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
-
import type { BasicTemplateInterpolations, CssFunction,
|
|
3
|
-
export interface FunctionIterpolation<TProps> {
|
|
4
|
-
(props: TProps): CSSProps | string | number | boolean | undefined;
|
|
5
|
-
}
|
|
2
|
+
import type { BasicTemplateInterpolations, CssFunction, FunctionInterpolation } from '../types';
|
|
6
3
|
/**
|
|
7
4
|
* Typing for the CSS object.
|
|
8
5
|
*/
|
|
9
|
-
export declare type CssObject<TProps> = CssFunction<
|
|
6
|
+
export declare type CssObject<TProps> = CssFunction<FunctionInterpolation<TProps>>;
|
|
10
7
|
/**
|
|
11
8
|
* Extra props added to the output Styled Component.
|
|
12
9
|
*/
|
|
13
10
|
export interface StyledProps {
|
|
14
11
|
as?: keyof JSX.IntrinsicElements;
|
|
15
12
|
}
|
|
16
|
-
export declare type Interpolations<TProps extends unknown> = (BasicTemplateInterpolations |
|
|
13
|
+
export declare type Interpolations<TProps extends unknown> = (BasicTemplateInterpolations | FunctionInterpolation<TProps> | CssObject<TProps> | CssObject<TProps>[])[];
|
|
17
14
|
/**
|
|
18
15
|
* This allows us to take the generic `TTag` (that will be a valid `DOM` tag) and then use it to
|
|
19
16
|
* define correct props based on it from `JSX.IntrinsicElements`, while also injecting our own
|
|
@@ -35,16 +32,44 @@ export interface StyledComponentInstantiator extends StyledComponentMap {
|
|
|
35
32
|
<TInheritedProps extends unknown>(Component: ComponentType<TInheritedProps>): StyledFunctionFromComponent<TInheritedProps>;
|
|
36
33
|
}
|
|
37
34
|
/**
|
|
38
|
-
*
|
|
35
|
+
* ## Styled component
|
|
36
|
+
*
|
|
37
|
+
* Create a component that styles a JSX element which comes with built-in behavior such as `ref` and `as` prop support.
|
|
38
|
+
* For further details [read the documentation](https://compiledcssinjs.com/docs/api-styled).
|
|
39
|
+
*
|
|
40
|
+
* ### Style with objects
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```
|
|
44
|
+
* styled.div({
|
|
45
|
+
* fontSize: 12,
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
39
48
|
*
|
|
49
|
+
* ### Style with template literals
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```
|
|
53
|
+
* styled.div`
|
|
54
|
+
* font-size: 12px
|
|
55
|
+
* `;
|
|
40
56
|
* ```
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
57
|
+
*
|
|
58
|
+
* ### Compose styles with arrays
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
45
61
|
* ```
|
|
62
|
+
* import { css } from '@compiled/react';
|
|
63
|
+
*
|
|
64
|
+
* styled.div([
|
|
65
|
+
* { fontSize: 12 },
|
|
66
|
+
* css`font-size: 12px;`
|
|
67
|
+
* ]);
|
|
46
68
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
69
|
+
* styled.div(
|
|
70
|
+
* { fontSize: 12 },
|
|
71
|
+
* css`font-size: 12px`
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
49
74
|
*/
|
|
50
75
|
export declare const styled: StyledComponentInstantiator;
|
|
@@ -1,16 +1,44 @@
|
|
|
1
1
|
import { createSetupError } from '../utils/error';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ## Styled component
|
|
4
4
|
*
|
|
5
|
+
* Create a component that styles a JSX element which comes with built-in behavior such as `ref` and `as` prop support.
|
|
6
|
+
* For further details [read the documentation](https://compiledcssinjs.com/docs/api-styled).
|
|
7
|
+
*
|
|
8
|
+
* ### Style with objects
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* styled.div({
|
|
13
|
+
* fontSize: 12,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ### Style with template literals
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
5
20
|
* ```
|
|
6
|
-
* styled.div`
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* styled.div({ fontSize: 12 }, `font-size: 12px`) Multi arguments CSS
|
|
21
|
+
* styled.div`
|
|
22
|
+
* font-size: 12px
|
|
23
|
+
* `;
|
|
10
24
|
* ```
|
|
11
25
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
26
|
+
* ### Compose styles with arrays
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```
|
|
30
|
+
* import { css } from '@compiled/react';
|
|
31
|
+
*
|
|
32
|
+
* styled.div([
|
|
33
|
+
* { fontSize: 12 },
|
|
34
|
+
* css`font-size: 12px;`
|
|
35
|
+
* ]);
|
|
36
|
+
*
|
|
37
|
+
* styled.div(
|
|
38
|
+
* { fontSize: 12 },
|
|
39
|
+
* css`font-size: 12px`
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
14
42
|
*/
|
|
15
43
|
export var styled = new Proxy({}, {
|
|
16
44
|
get: function () {
|
|
@@ -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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styled/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styled/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAwDlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAC,IAAM,MAAM,GAAgC,IAAI,KAAK,CAC1D,EAAE,EACF;IACE,GAAG;QACD,OAAO;YACL,8CAA8C;YAC9C,yDAAyD;YACzD,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC,CAAC;IACJ,CAAC;CACF,CACK,CAAC"}
|
package/dist/browser/types.d.ts
CHANGED
|
@@ -3,11 +3,14 @@ import type * as CSS from 'csstype';
|
|
|
3
3
|
* Typing for the interpolations.
|
|
4
4
|
*/
|
|
5
5
|
export declare type BasicTemplateInterpolations = string | number;
|
|
6
|
+
export interface FunctionInterpolation<TProps> {
|
|
7
|
+
(props: TProps): CSSProps | BasicTemplateInterpolations | boolean | undefined;
|
|
8
|
+
}
|
|
6
9
|
/**
|
|
7
10
|
* These are all the CSS props that will exist.
|
|
8
11
|
*/
|
|
9
|
-
export declare type CSSProps = CSS.Properties<
|
|
12
|
+
export declare type CSSProps = CSS.Properties<BasicTemplateInterpolations>;
|
|
10
13
|
export declare type AnyKeyCssProps<TValue> = {
|
|
11
|
-
[key: string]: AnyKeyCssProps<TValue> | CSSProps |
|
|
14
|
+
[key: string]: AnyKeyCssProps<TValue> | CSSProps | BasicTemplateInterpolations | TValue;
|
|
12
15
|
};
|
|
13
16
|
export declare type CssFunction<TValue = void> = CSSProps | AnyKeyCssProps<TValue> | TemplateStringsArray | string | boolean | undefined;
|
|
@@ -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> =
|
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
1
|
+
import type { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import type { BasicTemplateInterpolations, CssFunction } from '../types';
|
|
3
3
|
export declare type Interpolations = (BasicTemplateInterpolations | CssFunction | CssFunction[])[];
|
|
4
4
|
export interface ClassNamesProps {
|
|
5
5
|
children: (opts: {
|
|
6
6
|
css: (css: CssFunction | CssFunction[], ...interpolations: Interpolations) => string;
|
|
7
|
-
style:
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
};
|
|
7
|
+
style: CSSProperties;
|
|
10
8
|
}) => ReactNode;
|
|
11
9
|
}
|
|
12
10
|
/**
|
|
13
|
-
*
|
|
11
|
+
* ## Class names
|
|
14
12
|
*
|
|
13
|
+
* Use a component where styles are not necessarily used on a JSX element.
|
|
14
|
+
* For further details [read the documentation](https://compiledcssinjs.com/docs/api-class-names).
|
|
15
|
+
*
|
|
16
|
+
* ### Style with objects
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
15
19
|
* ```
|
|
16
|
-
* // Object CSS
|
|
17
20
|
* <ClassNames>
|
|
18
21
|
* {({ css, style }) => children({ className: css({ fontSize: 12 }) })}
|
|
19
22
|
* </ClassNames>
|
|
23
|
+
* ```
|
|
20
24
|
*
|
|
21
|
-
*
|
|
25
|
+
* ### Style with template literals
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```
|
|
22
29
|
* <ClassNames>
|
|
23
30
|
* {({ css, style }) => children({ className: css`font-size: 12px;` })}
|
|
24
31
|
* </ClassNames>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ### Compose styles with arrays
|
|
25
35
|
*
|
|
26
|
-
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```
|
|
27
38
|
* <ClassNames>
|
|
28
39
|
* {({ css, style }) =>
|
|
29
|
-
* children({ className: css([{ fontSize: 12 }, `font-size: 12px`]) })}
|
|
40
|
+
* children({ className: css([{ fontSize: 12 }, css`font-size: 12px`]) })}
|
|
30
41
|
* </ClassNames>
|
|
31
42
|
* ```
|
|
32
|
-
*
|
|
33
|
-
* For more help, read the docs:
|
|
34
|
-
* https://compiledcssinjs.com/docs/api-class-names
|
|
35
|
-
*
|
|
36
|
-
* @param props
|
|
37
43
|
*/
|
|
38
|
-
export declare function ClassNames(
|
|
44
|
+
export declare function ClassNames({ children }: ClassNamesProps): JSX.Element;
|
|
@@ -2,33 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ClassNames = void 0;
|
|
4
4
|
var error_1 = require("../utils/error");
|
|
5
|
-
|
|
6
|
-
* Use a component where styles are not necessarily tied to an element.
|
|
7
|
-
*
|
|
8
|
-
* ```
|
|
9
|
-
* // Object CSS
|
|
10
|
-
* <ClassNames>
|
|
11
|
-
* {({ css, style }) => children({ className: css({ fontSize: 12 }) })}
|
|
12
|
-
* </ClassNames>
|
|
13
|
-
*
|
|
14
|
-
* // Template literal CSS
|
|
15
|
-
* <ClassNames>
|
|
16
|
-
* {({ css, style }) => children({ className: css`font-size: 12px;` })}
|
|
17
|
-
* </ClassNames>
|
|
18
|
-
*
|
|
19
|
-
* // Array CSS
|
|
20
|
-
* <ClassNames>
|
|
21
|
-
* {({ css, style }) =>
|
|
22
|
-
* children({ className: css([{ fontSize: 12 }, `font-size: 12px`]) })}
|
|
23
|
-
* </ClassNames>
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* For more help, read the docs:
|
|
27
|
-
* https://compiledcssinjs.com/docs/api-class-names
|
|
28
|
-
*
|
|
29
|
-
* @param props
|
|
30
|
-
*/
|
|
31
|
-
function ClassNames(_) {
|
|
5
|
+
function ClassNames(_props) {
|
|
32
6
|
throw error_1.createSetupError();
|
|
33
7
|
}
|
|
34
8
|
exports.ClassNames = ClassNames;
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { Node } from 'react';
|
|
8
|
-
import type {
|
|
8
|
+
import type { BasicTemplateInterpolations, CssFunction } from '../types';
|
|
9
9
|
export type Interpolations = (BasicTemplateInterpolations | CssFunction<> | CssFunction<>[])[];
|
|
10
10
|
export interface ClassNamesProps {
|
|
11
11
|
children: (opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/class-names/index.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/class-names/index.tsx"],"names":[],"mappings":";;;AAGA,wCAAkD;AA+ClD,SAAgB,UAAU,CAAC,MAAuB;IAChD,MAAM,wBAAgB,EAAE,CAAC;AAC3B,CAAC;AAFD,gCAEC"}
|
package/dist/cjs/css/index.d.ts
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import type { CSSProps } from '../types';
|
|
1
|
+
import type { AnyKeyCssProps, BasicTemplateInterpolations, CSSProps, FunctionInterpolation } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ## CSS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* css
|
|
7
|
-
* ```
|
|
8
|
-
*
|
|
9
|
-
* For more help, read the docs:
|
|
10
|
-
* https://compiledcssinjs.com/docs/api-css
|
|
5
|
+
* Define styles that are statically typed and useable with other Compiled APIs.
|
|
6
|
+
* For further details [read the documentation](https://compiledcssinjs.com/docs/api-css).
|
|
11
7
|
*
|
|
12
|
-
*
|
|
13
|
-
* @param values
|
|
14
|
-
*/
|
|
15
|
-
export default function css(_css: TemplateStringsArray, ..._values: (string | number)[]): CSSProps;
|
|
16
|
-
/**
|
|
17
|
-
* Create styles that can be re-used between components with an object
|
|
8
|
+
* ### Style with objects
|
|
18
9
|
*
|
|
10
|
+
* @example
|
|
19
11
|
* ```
|
|
20
|
-
* css({
|
|
12
|
+
* const redText = css({
|
|
13
|
+
* color: 'red',
|
|
14
|
+
* });
|
|
15
|
+
*
|
|
16
|
+
* <div css={redText} />
|
|
21
17
|
* ```
|
|
22
18
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
19
|
+
* ### Style with template literals
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```
|
|
23
|
+
* const redText = css`
|
|
24
|
+
* color: red;
|
|
25
|
+
* `;
|
|
25
26
|
*
|
|
26
|
-
*
|
|
27
|
+
* <div css={redText} />
|
|
28
|
+
* ```
|
|
27
29
|
*/
|
|
28
|
-
export default function css(
|
|
30
|
+
export default function css<T = void>(styles: TemplateStringsArray, ...interpolations: (BasicTemplateInterpolations | FunctionInterpolation<T>)[]): CSSProps;
|
|
31
|
+
export default function css(styles: AnyKeyCssProps<void> | CSSProps): CSSProps;
|
package/dist/cjs/css/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint-disable import/export */
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
var error_1 = require("../utils/error");
|
|
4
|
-
function css(
|
|
5
|
-
var
|
|
5
|
+
function css(_styles) {
|
|
6
|
+
var _interpolations = [];
|
|
6
7
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7
|
-
|
|
8
|
+
_interpolations[_i - 1] = arguments[_i];
|
|
8
9
|
}
|
|
9
10
|
throw error_1.createSetupError();
|
|
10
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
import type { CSSProps } from '../types';
|
|
7
|
+
import type { BasicTemplateInterpolations, CSSProps, FunctionInterpolation } from '../types';
|
|
8
8
|
/**
|
|
9
9
|
* Create styles that can be re-used between components with a template literal.
|
|
10
10
|
*
|
|
@@ -17,9 +17,9 @@ import type { CSSProps } from '../types';
|
|
|
17
17
|
* @param css
|
|
18
18
|
* @param values
|
|
19
19
|
*/
|
|
20
|
-
declare export default function css(
|
|
20
|
+
declare export default function css<T>(
|
|
21
21
|
_css: $ReadOnlyArray<string>,
|
|
22
|
-
..._values: (
|
|
22
|
+
..._values: (BasicTemplateInterpolations | FunctionInterpolation<T>)[]
|
|
23
23
|
): CSSProps;
|
|
24
24
|
/**
|
|
25
25
|
* Create styles that can be re-used between components with an object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/css/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/css/index.tsx"],"names":[],"mappings":";AAAA,kCAAkC;;AAQlC,wCAAkD;AAqClD,SAAwB,GAAG,CACzB,OAAwC;IACxC,yBAA8E;SAA9E,UAA8E,EAA9E,qBAA8E,EAA9E,IAA8E;QAA9E,wCAA8E;;IAE9E,MAAM,wBAAgB,EAAE,CAAC;AAC3B,CAAC;AALD,sBAKC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,32 +1,22 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import type { CompiledJSX } from './jsx/jsx-local-namespace';
|
|
1
3
|
import type { CssFunction, CSSProps } from './types';
|
|
2
4
|
export { keyframes } from './keyframes';
|
|
3
5
|
export { styled } from './styled';
|
|
4
6
|
export { ClassNames } from './class-names';
|
|
5
7
|
export { default as css } from './css';
|
|
8
|
+
export declare const jsx: typeof createElement;
|
|
6
9
|
export type { CssFunction, CSSProps };
|
|
7
10
|
export type { CssObject } from './styled';
|
|
8
|
-
declare
|
|
9
|
-
interface DOMAttributes<T> {
|
|
10
|
-
css?: CssFunction | CssFunction[];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
declare global {
|
|
11
|
+
export declare namespace jsx {
|
|
14
12
|
namespace JSX {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* css={[{ fontSize: 12 }, `font-size: 12px;`]} // Array CSS
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* For more help, read the docs:
|
|
27
|
-
* https://compiledcssinjs.com/docs/api-css-prop
|
|
28
|
-
*/
|
|
29
|
-
css?: CssFunction | CssFunction[];
|
|
30
|
-
}
|
|
13
|
+
type Element = CompiledJSX.Element;
|
|
14
|
+
type ElementClass = CompiledJSX.ElementClass;
|
|
15
|
+
type ElementAttributesProperty = CompiledJSX.ElementAttributesProperty;
|
|
16
|
+
type ElementChildrenAttribute = CompiledJSX.ElementChildrenAttribute;
|
|
17
|
+
type LibraryManagedAttributes<C, P> = CompiledJSX.LibraryManagedAttributes<C, P>;
|
|
18
|
+
type IntrinsicAttributes = CompiledJSX.IntrinsicAttributes;
|
|
19
|
+
type IntrinsicClassAttributes<T> = CompiledJSX.IntrinsicClassAttributes<T>;
|
|
20
|
+
type IntrinsicElements = CompiledJSX.IntrinsicElements;
|
|
31
21
|
}
|
|
32
22
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.css = exports.ClassNames = exports.styled = exports.keyframes = void 0;
|
|
6
|
+
exports.jsx = exports.css = exports.ClassNames = exports.styled = exports.keyframes = void 0;
|
|
7
|
+
var react_1 = require("react");
|
|
7
8
|
var keyframes_1 = require("./keyframes");
|
|
8
9
|
Object.defineProperty(exports, "keyframes", { enumerable: true, get: function () { return keyframes_1.keyframes; } });
|
|
9
10
|
var styled_1 = require("./styled");
|
|
@@ -12,4 +13,7 @@ var class_names_1 = require("./class-names");
|
|
|
12
13
|
Object.defineProperty(exports, "ClassNames", { enumerable: true, get: function () { return class_names_1.ClassNames; } });
|
|
13
14
|
var css_1 = require("./css");
|
|
14
15
|
Object.defineProperty(exports, "css", { enumerable: true, get: function () { return __importDefault(css_1).default; } });
|
|
16
|
+
// Pass through the (classic) jsx runtime.
|
|
17
|
+
// Compiled currently doesn't define its own and uses this purely to enable a local jsx namespace.
|
|
18
|
+
exports.jsx = react_1.createElement;
|
|
15
19
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.flow
CHANGED
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* THIS IS A MANUALLY CURATED FLOW FILE.
|
|
3
|
+
*
|
|
4
|
+
* Flowtype definitions for runtime
|
|
3
5
|
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.
|
|
6
|
+
* Flowgen v1.15.0
|
|
5
7
|
* @flow
|
|
6
8
|
*/
|
|
7
|
-
import type {
|
|
9
|
+
import type { CSSProps, CssFunction } from './types';
|
|
8
10
|
declare export { keyframes } from './keyframes';
|
|
9
11
|
declare export { styled } from './styled';
|
|
10
12
|
declare export { ClassNames } from './class-names';
|
|
11
13
|
declare export { default as css } from './css';
|
|
12
14
|
export type { CssFunction, CSSProps };
|
|
13
15
|
export type { CssObject } from './styled';
|
|
14
|
-
declare module 'react' {
|
|
15
|
-
declare interface DOMAttributes<T> {
|
|
16
|
-
css?: CssFunction<> | CssFunction<>[];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
declare module 'global' {
|
|
20
|
-
declare var JSX: typeof npm$namespace$JSX;
|
|
21
|
-
declare var npm$namespace$JSX: {|
|
|
22
|
-
IntrinsicAttributes: Class<JSX$IntrinsicAttributes>,
|
|
23
|
-
|};
|
|
24
|
-
declare interface JSX$IntrinsicAttributes {
|
|
25
|
-
/**
|
|
26
|
-
* Tie styles to an element.
|
|
27
|
-
* It is available when the `@compiled/react` module is in scope.
|
|
28
|
-
*
|
|
29
|
-
* ```
|
|
30
|
-
* css={{ fontSize: 12 }} // Object CSS
|
|
31
|
-
* css={`font-size: 12px;`} // Template literal CSS
|
|
32
|
-
* css={[{ fontSize: 12 }, `font-size: 12px;`]} // Array CSS
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* For more help, read the docs:
|
|
36
|
-
* https://compiledcssinjs.com/docs/api-css-prop
|
|
37
|
-
*/
|
|
38
|
-
css?: CssFunction<> | CssFunction<>[];
|
|
39
|
-
}
|
|
40
|
-
}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";;;;;;AAAA,+BAAsC;AAKtC,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,6BAAuC;AAA9B,2GAAA,OAAO,OAAO;AAEvB,0CAA0C;AAC1C,kGAAkG;AACrF,QAAA,GAAG,GAAG,qBAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
// Pass through the (automatic) jsx dev runtime.
|
|
14
|
+
// Compiled currently doesn't define its own and uses this purely to enable a local jsx namespace.
|
|
15
|
+
__exportStar(require("react/jsx-dev-runtime"), exports);
|
|
16
|
+
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.js","sourceRoot":"","sources":["../../../src/jsx/jsx-dev-runtime.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gDAAgD;AAChD,kGAAkG;AAClG,wDAAsC"}
|