@swc/plugin-styled-jsx 1.5.84 → 1.5.86
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/package.json +1 -1
- package/swc_plugin_styled_jsx.wasm +0 -0
- package/transform/Cargo.toml +0 -39
- package/transform/src/lib.rs +0 -7
- package/transform/src/lifetime.rs +0 -408
- package/transform/src/style.rs +0 -25
- package/transform/src/transform_css_lightningcss.rs +0 -589
- package/transform/src/transform_css_swc.rs +0 -392
- package/transform/src/utils.rs +0 -371
- package/transform/src/visitor.rs +0 -963
- package/transform/tests/errors/nested-style-tags/input.js +0 -31
- package/transform/tests/errors/nested-style-tags/output-lightningcss.js +0 -58
- package/transform/tests/errors/nested-style-tags/output-lightningcss.stderr +0 -27
- package/transform/tests/errors/nested-style-tags/output-swc.js +0 -58
- package/transform/tests/errors/nested-style-tags/output-swc.stderr +0 -27
- package/transform/tests/errors/nested-style-tags/output.js +0 -58
- package/transform/tests/errors/no-child/input.js +0 -6
- package/transform/tests/errors/no-child/output-lightningcss.js +0 -8
- package/transform/tests/errors/no-child/output-lightningcss.stderr +0 -9
- package/transform/tests/errors/no-child/output-swc.js +0 -8
- package/transform/tests/errors/no-child/output-swc.stderr +0 -9
- package/transform/tests/errors/no-child/output.js +0 -8
- package/transform/tests/errors/ts-with-css-resolve/input.js +0 -10
- package/transform/tests/errors/ts-with-css-resolve/output-lightningcss.js +0 -5
- package/transform/tests/errors/ts-with-css-resolve/output-lightningcss.stderr +0 -2
- package/transform/tests/errors/ts-with-css-resolve/output-swc.js +0 -5
- package/transform/tests/errors/ts-with-css-resolve/output-swc.stderr +0 -2
- package/transform/tests/errors/ts-with-css-resolve/output.js +0 -5
- package/transform/tests/errors/two-children/input.js +0 -8
- package/transform/tests/errors/two-children/output-lightningcss.js +0 -12
- package/transform/tests/errors/two-children/output-lightningcss.stderr +0 -11
- package/transform/tests/errors/two-children/output-swc.js +0 -12
- package/transform/tests/errors/two-children/output-swc.stderr +0 -11
- package/transform/tests/errors/two-children/output.js +0 -12
- package/transform/tests/errors/wrong-child-type/input.js +0 -7
- package/transform/tests/errors/wrong-child-type/output-lightningcss.js +0 -10
- package/transform/tests/errors/wrong-child-type/output-lightningcss.stderr +0 -10
- package/transform/tests/errors/wrong-child-type/output-swc.js +0 -10
- package/transform/tests/errors/wrong-child-type/output-swc.stderr +0 -10
- package/transform/tests/errors/wrong-child-type/output.js +0 -10
- package/transform/tests/errors/wrong-jsx-expression-type/input.js +0 -7
- package/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.js +0 -10
- package/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.stderr +0 -10
- package/transform/tests/errors/wrong-jsx-expression-type/output-swc.js +0 -10
- package/transform/tests/errors/wrong-jsx-expression-type/output-swc.stderr +0 -10
- package/transform/tests/errors/wrong-jsx-expression-type/output.js +0 -10
- package/transform/tests/fixture/.expressions/input.js +0 -90
- package/transform/tests/fixture/absent/input.js +0 -6
- package/transform/tests/fixture/absent/output.lightningcss.js +0 -7
- package/transform/tests/fixture/absent/output.swc.js +0 -7
- package/transform/tests/fixture/attribute-generation-classname-rewriting/input.js +0 -55
- package/transform/tests/fixture/attribute-generation-classname-rewriting/output.lightningcss.js +0 -112
- package/transform/tests/fixture/attribute-generation-classname-rewriting/output.swc.js +0 -112
- package/transform/tests/fixture/attribute-generation-modes/input.js +0 -166
- package/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js +0 -228
- package/transform/tests/fixture/attribute-generation-modes/output.swc.js +0 -228
- package/transform/tests/fixture/class/input.js +0 -14
- package/transform/tests/fixture/class/output.lightningcss.js +0 -12
- package/transform/tests/fixture/class/output.swc.js +0 -12
- package/transform/tests/fixture/comments/input.js +0 -18
- package/transform/tests/fixture/comments/output.lightningcss.js +0 -12
- package/transform/tests/fixture/comments/output.swc.js +0 -12
- package/transform/tests/fixture/component-attribute/input.js +0 -11
- package/transform/tests/fixture/component-attribute/output.lightningcss.js +0 -10
- package/transform/tests/fixture/component-attribute/output.swc.js +0 -10
- package/transform/tests/fixture/conflicts/input.js +0 -16
- package/transform/tests/fixture/conflicts/output.lightningcss.js +0 -14
- package/transform/tests/fixture/conflicts/output.swc.js +0 -14
- package/transform/tests/fixture/css-selector-after-pseudo/input.js +0 -18
- package/transform/tests/fixture/css-selector-after-pseudo/output.lightningcss.js +0 -11
- package/transform/tests/fixture/css-selector-after-pseudo/output.swc.js +0 -11
- package/transform/tests/fixture/css-tag-same-file/input.js +0 -25
- package/transform/tests/fixture/css-tag-same-file/output.lightningcss.js +0 -21
- package/transform/tests/fixture/css-tag-same-file/output.swc.js +0 -21
- package/transform/tests/fixture/different-jsx-ids/input.js +0 -23
- package/transform/tests/fixture/different-jsx-ids/output.lightningcss.js +0 -24
- package/transform/tests/fixture/different-jsx-ids/output.swc.js +0 -24
- package/transform/tests/fixture/dynamic-element/input.js +0 -56
- package/transform/tests/fixture/dynamic-element/output.lightningcss.js +0 -40
- package/transform/tests/fixture/dynamic-element/output.swc.js +0 -40
- package/transform/tests/fixture/dynamic-element-class/input.js +0 -32
- package/transform/tests/fixture/dynamic-element-class/output.lightningcss.js +0 -25
- package/transform/tests/fixture/dynamic-element-class/output.swc.js +0 -25
- package/transform/tests/fixture/dynamic-element-external/input.js +0 -12
- package/transform/tests/fixture/dynamic-element-external/output.lightningcss.js +0 -12
- package/transform/tests/fixture/dynamic-element-external/output.swc.js +0 -12
- package/transform/tests/fixture/dynamic-this-in-arrow/input.js +0 -41
- package/transform/tests/fixture/dynamic-this-in-arrow/output.lightningcss.js +0 -39
- package/transform/tests/fixture/dynamic-this-in-arrow/output.swc.js +0 -39
- package/transform/tests/fixture/exported-jsx-style/input.js +0 -1
- package/transform/tests/fixture/exported-jsx-style/output.lightningcss.js +0 -1
- package/transform/tests/fixture/exported-jsx-style/output.swc.js +0 -1
- package/transform/tests/fixture/exported-non-jsx-style/input.js +0 -1
- package/transform/tests/fixture/exported-non-jsx-style/output.lightningcss.js +0 -1
- package/transform/tests/fixture/exported-non-jsx-style/output.swc.js +0 -1
- package/transform/tests/fixture/external-nested-scope/input.js +0 -5
- package/transform/tests/fixture/external-nested-scope/output.lightningcss.js +0 -7
- package/transform/tests/fixture/external-nested-scope/output.swc.js +0 -7
- package/transform/tests/fixture/external-stylesheet/input.js +0 -41
- package/transform/tests/fixture/external-stylesheet/output.lightningcss.js +0 -34
- package/transform/tests/fixture/external-stylesheet/output.swc.js +0 -34
- package/transform/tests/fixture/external-stylesheet-global/input.js +0 -19
- package/transform/tests/fixture/external-stylesheet-global/output.lightningcss.js +0 -18
- package/transform/tests/fixture/external-stylesheet-global/output.swc.js +0 -18
- package/transform/tests/fixture/external-stylesheet-multi-line/input.js +0 -9
- package/transform/tests/fixture/external-stylesheet-multi-line/output.lightningcss.js +0 -9
- package/transform/tests/fixture/external-stylesheet-multi-line/output.swc.js +0 -9
- package/transform/tests/fixture/fragment/input.js +0 -51
- package/transform/tests/fixture/fragment/output.lightningcss.js +0 -47
- package/transform/tests/fixture/fragment/output.swc.js +0 -47
- package/transform/tests/fixture/global/input.js +0 -22
- package/transform/tests/fixture/global/output.lightningcss.js +0 -7
- package/transform/tests/fixture/global/output.swc.js +0 -7
- package/transform/tests/fixture/global-child-selector/input.js +0 -10
- package/transform/tests/fixture/global-child-selector/output.lightningcss.js +0 -8
- package/transform/tests/fixture/global-child-selector/output.swc.js +0 -8
- package/transform/tests/fixture/global-redundant/input.js +0 -12
- package/transform/tests/fixture/global-redundant/output.lightningcss.js +0 -10
- package/transform/tests/fixture/global-redundant/output.swc.js +0 -10
- package/transform/tests/fixture/issue-30480/input.js +0 -11
- package/transform/tests/fixture/issue-30480/output.lightningcss.js +0 -15
- package/transform/tests/fixture/issue-30480/output.swc.js +0 -15
- package/transform/tests/fixture/issue-30570/input.js +0 -15
- package/transform/tests/fixture/issue-30570/output.lightningcss.js +0 -12
- package/transform/tests/fixture/issue-30570/output.swc.js +0 -12
- package/transform/tests/fixture/issue-31562-interpolation-in-mdea/input.js +0 -30
- package/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js +0 -43
- package/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js +0 -43
- package/transform/tests/fixture/mixed-global-scoped/input.js +0 -9
- package/transform/tests/fixture/mixed-global-scoped/output.lightningcss.js +0 -11
- package/transform/tests/fixture/mixed-global-scoped/output.swc.js +0 -11
- package/transform/tests/fixture/multiple-jsx/input.js +0 -43
- package/transform/tests/fixture/multiple-jsx/output.lightningcss.js +0 -32
- package/transform/tests/fixture/multiple-jsx/output.swc.js +0 -32
- package/transform/tests/fixture/nested-style-tags/index.js +0 -0
- package/transform/tests/fixture/next-54653/input.js +0 -10
- package/transform/tests/fixture/next-54653/output.lightningcss.js +0 -3
- package/transform/tests/fixture/next-54653/output.swc.js +0 -3
- package/transform/tests/fixture/non-styled-jsx-style/input.js +0 -7
- package/transform/tests/fixture/non-styled-jsx-style/output.lightningcss.js +0 -12
- package/transform/tests/fixture/non-styled-jsx-style/output.swc.js +0 -12
- package/transform/tests/fixture/not-styled-jsx-tagged-templates/input.js +0 -30
- package/transform/tests/fixture/not-styled-jsx-tagged-templates/output.lightningcss.js +0 -23
- package/transform/tests/fixture/not-styled-jsx-tagged-templates/output.swc.js +0 -23
- package/transform/tests/fixture/number-after-placeholder/input.js +0 -17
- package/transform/tests/fixture/number-after-placeholder/output.lightningcss.js +0 -17
- package/transform/tests/fixture/number-after-placeholder/output.swc.js +0 -17
- package/transform/tests/fixture/one-off-global-selectors/input.js +0 -10
- package/transform/tests/fixture/one-off-global-selectors/output.lightningcss.js +0 -8
- package/transform/tests/fixture/one-off-global-selectors/output.swc.js +0 -8
- package/transform/tests/fixture/source-maps/input.js +0 -8
- package/transform/tests/fixture/source-maps/output.lightningcss.js +0 -8
- package/transform/tests/fixture/source-maps/output.swc.js +0 -8
- package/transform/tests/fixture/stateless/input.js +0 -8
- package/transform/tests/fixture/stateless/output.lightningcss.js +0 -12
- package/transform/tests/fixture/stateless/output.swc.js +0 -12
- package/transform/tests/fixture/styles/input.js +0 -57
- package/transform/tests/fixture/styles/output.lightningcss.js +0 -39
- package/transform/tests/fixture/styles/output.swc.js +0 -39
- package/transform/tests/fixture/styles-external-invalid/input.js +0 -13
- package/transform/tests/fixture/styles-external-invalid/output.lightningcss.js +0 -9
- package/transform/tests/fixture/styles-external-invalid/output.swc.js +0 -9
- package/transform/tests/fixture/styles-external-invalid2/input.js +0 -11
- package/transform/tests/fixture/styles-external-invalid2/output.lightningcss.js +0 -8
- package/transform/tests/fixture/styles-external-invalid2/output.swc.js +0 -8
- package/transform/tests/fixture/styles2/input.js +0 -6
- package/transform/tests/fixture/styles2/output.lightningcss.js +0 -5
- package/transform/tests/fixture/styles2/output.swc.js +0 -5
- package/transform/tests/fixture/too-many/input.js +0 -35
- package/transform/tests/fixture/too-many/output.lightningcss.js +0 -49
- package/transform/tests/fixture/too-many/output.swc.js +0 -49
- package/transform/tests/fixture/tpl-escape-1/input.js +0 -14
- package/transform/tests/fixture/tpl-escape-1/output.lightningcss.js +0 -12
- package/transform/tests/fixture/tpl-escape-1/output.swc.js +0 -12
- package/transform/tests/fixture/tpl-escape-2/input.js +0 -17
- package/transform/tests/fixture/tpl-escape-2/output.lightningcss.js +0 -17
- package/transform/tests/fixture/tpl-escape-2/output.swc.js +0 -17
- package/transform/tests/fixture/tpl-placeholder-1-as-property/input.js +0 -17
- package/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js +0 -28
- package/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js +0 -28
- package/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/input.js +0 -21
- package/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js +0 -34
- package/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js +0 -34
- package/transform/tests/fixture/tpl-placeholder-3-as-value/input.js +0 -17
- package/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js +0 -28
- package/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js +0 -28
- package/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/input.js +0 -17
- package/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js +0 -31
- package/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js +0 -31
- package/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/input.js +0 -16
- package/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js +0 -31
- package/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js +0 -31
- package/transform/tests/fixture/transform-css/input.js +0 -176
- package/transform/tests/fixture/transform-css/output.lightningcss.js +0 -8
- package/transform/tests/fixture/transform-css/output.swc.js +0 -8
- package/transform/tests/fixture/transform-css-complex-selector/input.js +0 -116
- package/transform/tests/fixture/transform-css-complex-selector/output.lightningcss.js +0 -8
- package/transform/tests/fixture/transform-css-complex-selector/output.swc.js +0 -8
- package/transform/tests/fixture/transform-css-complex-selector-2/input.js +0 -12
- package/transform/tests/fixture/transform-css-complex-selector-2/output.lightningcss.js +0 -8
- package/transform/tests/fixture/transform-css-complex-selector-2/output.swc.js +0 -8
- package/transform/tests/fixture/transform-css-global/input.js +0 -32
- package/transform/tests/fixture/transform-css-global/output.lightningcss.js +0 -8
- package/transform/tests/fixture/transform-css-global/output.swc.js +0 -8
- package/transform/tests/fixture/transform-css-media-query/input.js +0 -24
- package/transform/tests/fixture/transform-css-media-query/output.lightningcss.js +0 -8
- package/transform/tests/fixture/transform-css-media-query/output.swc.js +0 -8
- package/transform/tests/fixture/transform-css-normal/input.js +0 -22
- package/transform/tests/fixture/transform-css-normal/output.lightningcss.js +0 -8
- package/transform/tests/fixture/transform-css-normal/output.swc.js +0 -8
- package/transform/tests/fixture/transform-css-nth-1/input.js +0 -10
- package/transform/tests/fixture/transform-css-nth-1/output.lightningcss.js +0 -8
- package/transform/tests/fixture/transform-css-nth-1/output.swc.js +0 -8
- package/transform/tests/fixture/whitespace/input.js +0 -12
- package/transform/tests/fixture/whitespace/output.lightningcss.js +0 -12
- package/transform/tests/fixture/whitespace/output.swc.js +0 -12
- package/transform/tests/fixture.rs +0 -129
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import styles from './styles';
|
|
3
|
-
const styles2 = require('./styles2');
|
|
4
|
-
import { foo as styles3 } from './styles';
|
|
5
|
-
export default (()=><div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__hash} jsx-${styles3.__hash}`}>
|
|
6
|
-
|
|
7
|
-
<p className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__hash} jsx-${styles3.__hash}` + " " + "foo"}>test</p>
|
|
8
|
-
|
|
9
|
-
<p className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__hash} jsx-${styles3.__hash}`}>woot</p>
|
|
10
|
-
|
|
11
|
-
<_JSXStyle id={styles2.__hash}>{styles2}</_JSXStyle>
|
|
12
|
-
|
|
13
|
-
<_JSXStyle id={styles3.__hash}>{styles3}</_JSXStyle>
|
|
14
|
-
|
|
15
|
-
<div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__hash} jsx-${styles3.__hash}`}>woot</div>
|
|
16
|
-
|
|
17
|
-
<_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"}</_JSXStyle>
|
|
18
|
-
|
|
19
|
-
<_JSXStyle id={styles.__hash}>{styles}</_JSXStyle>
|
|
20
|
-
|
|
21
|
-
</div>);
|
|
22
|
-
export const Test = ()=><div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3.__hash}`}>
|
|
23
|
-
|
|
24
|
-
<p className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3.__hash}` + " " + "foo"}>test</p>
|
|
25
|
-
|
|
26
|
-
<p className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3.__hash}`}>woot</p>
|
|
27
|
-
|
|
28
|
-
<_JSXStyle id={styles3.__hash}>{styles3}</_JSXStyle>
|
|
29
|
-
|
|
30
|
-
<div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3.__hash}`}>woot</div>
|
|
31
|
-
|
|
32
|
-
<_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"}</_JSXStyle>
|
|
33
|
-
|
|
34
|
-
</div>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import styles, { foo as styles3 } from './styles'
|
|
2
|
-
|
|
3
|
-
const styles2 = require('./styles2')
|
|
4
|
-
|
|
5
|
-
export default () =>
|
|
6
|
-
<div>
|
|
7
|
-
<p>test</p>
|
|
8
|
-
<div>woot</div>
|
|
9
|
-
<p>woot</p>
|
|
10
|
-
<style jsx global>
|
|
11
|
-
{styles2}
|
|
12
|
-
</style>
|
|
13
|
-
<style jsx global>
|
|
14
|
-
{styles3}
|
|
15
|
-
</style>
|
|
16
|
-
<style jsx global>
|
|
17
|
-
{styles}
|
|
18
|
-
</style>
|
|
19
|
-
</div>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import styles, { foo as styles3 } from './styles';
|
|
3
|
-
const styles2 = require('./styles2');
|
|
4
|
-
export default (()=><div>
|
|
5
|
-
|
|
6
|
-
<p>test</p>
|
|
7
|
-
|
|
8
|
-
<div>woot</div>
|
|
9
|
-
|
|
10
|
-
<p>woot</p>
|
|
11
|
-
|
|
12
|
-
<_JSXStyle id={styles2.__hash}>{styles2}</_JSXStyle>
|
|
13
|
-
|
|
14
|
-
<_JSXStyle id={styles3.__hash}>{styles3}</_JSXStyle>
|
|
15
|
-
|
|
16
|
-
<_JSXStyle id={styles.__hash}>{styles}</_JSXStyle>
|
|
17
|
-
|
|
18
|
-
</div>);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import styles, { foo as styles3 } from './styles';
|
|
3
|
-
const styles2 = require('./styles2');
|
|
4
|
-
export default (()=><div>
|
|
5
|
-
|
|
6
|
-
<p>test</p>
|
|
7
|
-
|
|
8
|
-
<div>woot</div>
|
|
9
|
-
|
|
10
|
-
<p>woot</p>
|
|
11
|
-
|
|
12
|
-
<_JSXStyle id={styles2.__hash}>{styles2}</_JSXStyle>
|
|
13
|
-
|
|
14
|
-
<_JSXStyle id={styles3.__hash}>{styles3}</_JSXStyle>
|
|
15
|
-
|
|
16
|
-
<_JSXStyle id={styles.__hash}>{styles}</_JSXStyle>
|
|
17
|
-
|
|
18
|
-
</div>);
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
export default () => (
|
|
4
|
-
<>
|
|
5
|
-
<p>Testing!!!</p>
|
|
6
|
-
<p className="foo">Bar</p>
|
|
7
|
-
<>
|
|
8
|
-
<h3 id="head">Title...</h3>
|
|
9
|
-
<React.Fragment>
|
|
10
|
-
<p>hello</p>
|
|
11
|
-
<>
|
|
12
|
-
<p>foo</p>
|
|
13
|
-
<p>bar</p>
|
|
14
|
-
</>
|
|
15
|
-
<p>world</p>
|
|
16
|
-
</React.Fragment>
|
|
17
|
-
</>
|
|
18
|
-
<style jsx>{`
|
|
19
|
-
p {
|
|
20
|
-
color: cyan;
|
|
21
|
-
}
|
|
22
|
-
.foo {
|
|
23
|
-
font-size: 18px;
|
|
24
|
-
color: hotpink;
|
|
25
|
-
}
|
|
26
|
-
#head {
|
|
27
|
-
text-decoration: underline;
|
|
28
|
-
}
|
|
29
|
-
`}</style>
|
|
30
|
-
</>
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
function Component1() {
|
|
34
|
-
return (
|
|
35
|
-
<>
|
|
36
|
-
<div>test</div>
|
|
37
|
-
</>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function Component2() {
|
|
42
|
-
return (
|
|
43
|
-
<div>
|
|
44
|
-
<style jsx>{`
|
|
45
|
-
div {
|
|
46
|
-
color: red;
|
|
47
|
-
}
|
|
48
|
-
`}</style>
|
|
49
|
-
</div>
|
|
50
|
-
)
|
|
51
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export default (()=><>
|
|
4
|
-
|
|
5
|
-
<p className={"jsx-6dd5f97e085c0297"}>Testing!!!</p>
|
|
6
|
-
|
|
7
|
-
<p className={"jsx-6dd5f97e085c0297" + " " + "foo"}>Bar</p>
|
|
8
|
-
|
|
9
|
-
<>
|
|
10
|
-
|
|
11
|
-
<h3 id="head" className={"jsx-6dd5f97e085c0297"}>Title...</h3>
|
|
12
|
-
|
|
13
|
-
<React.Fragment>
|
|
14
|
-
|
|
15
|
-
<p className={"jsx-6dd5f97e085c0297"}>hello</p>
|
|
16
|
-
|
|
17
|
-
<>
|
|
18
|
-
|
|
19
|
-
<p className={"jsx-6dd5f97e085c0297"}>foo</p>
|
|
20
|
-
|
|
21
|
-
<p className={"jsx-6dd5f97e085c0297"}>bar</p>
|
|
22
|
-
|
|
23
|
-
</>
|
|
24
|
-
|
|
25
|
-
<p className={"jsx-6dd5f97e085c0297"}>world</p>
|
|
26
|
-
|
|
27
|
-
</React.Fragment>
|
|
28
|
-
|
|
29
|
-
</>
|
|
30
|
-
|
|
31
|
-
<_JSXStyle id={"6dd5f97e085c0297"}>{"p.jsx-6dd5f97e085c0297{color:#0ff}.foo.jsx-6dd5f97e085c0297{color:#ff69b4;font-size:18px}#head.jsx-6dd5f97e085c0297{text-decoration:underline}"}</_JSXStyle>
|
|
32
|
-
|
|
33
|
-
</>);
|
|
34
|
-
function Component1() {
|
|
35
|
-
return <>
|
|
36
|
-
|
|
37
|
-
<div>test</div>
|
|
38
|
-
|
|
39
|
-
</>;
|
|
40
|
-
}
|
|
41
|
-
function Component2() {
|
|
42
|
-
return <div className={"jsx-678f41ca6d3b294b"}>
|
|
43
|
-
|
|
44
|
-
<_JSXStyle id={"678f41ca6d3b294b"}>{"div.jsx-678f41ca6d3b294b{color:red}"}</_JSXStyle>
|
|
45
|
-
|
|
46
|
-
</div>;
|
|
47
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export default (()=><>
|
|
4
|
-
|
|
5
|
-
<p className={"jsx-6dd5f97e085c0297"}>Testing!!!</p>
|
|
6
|
-
|
|
7
|
-
<p className={"jsx-6dd5f97e085c0297" + " " + "foo"}>Bar</p>
|
|
8
|
-
|
|
9
|
-
<>
|
|
10
|
-
|
|
11
|
-
<h3 id="head" className={"jsx-6dd5f97e085c0297"}>Title...</h3>
|
|
12
|
-
|
|
13
|
-
<React.Fragment>
|
|
14
|
-
|
|
15
|
-
<p className={"jsx-6dd5f97e085c0297"}>hello</p>
|
|
16
|
-
|
|
17
|
-
<>
|
|
18
|
-
|
|
19
|
-
<p className={"jsx-6dd5f97e085c0297"}>foo</p>
|
|
20
|
-
|
|
21
|
-
<p className={"jsx-6dd5f97e085c0297"}>bar</p>
|
|
22
|
-
|
|
23
|
-
</>
|
|
24
|
-
|
|
25
|
-
<p className={"jsx-6dd5f97e085c0297"}>world</p>
|
|
26
|
-
|
|
27
|
-
</React.Fragment>
|
|
28
|
-
|
|
29
|
-
</>
|
|
30
|
-
|
|
31
|
-
<_JSXStyle id={"6dd5f97e085c0297"}>{"p.jsx-6dd5f97e085c0297{color:cyan}.foo.jsx-6dd5f97e085c0297{font-size:18px;color:hotpink}#head.jsx-6dd5f97e085c0297{text-decoration:underline}"}</_JSXStyle>
|
|
32
|
-
|
|
33
|
-
</>);
|
|
34
|
-
function Component1() {
|
|
35
|
-
return <>
|
|
36
|
-
|
|
37
|
-
<div>test</div>
|
|
38
|
-
|
|
39
|
-
</>;
|
|
40
|
-
}
|
|
41
|
-
function Component2() {
|
|
42
|
-
return <div className={"jsx-678f41ca6d3b294b"}>
|
|
43
|
-
|
|
44
|
-
<_JSXStyle id={"678f41ca6d3b294b"}>{"div.jsx-678f41ca6d3b294b{color:red}"}</_JSXStyle>
|
|
45
|
-
|
|
46
|
-
</div>;
|
|
47
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const Test = () => (
|
|
2
|
-
<div>
|
|
3
|
-
<style jsx global>{`
|
|
4
|
-
body {
|
|
5
|
-
color: red
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:hover { color: red; display: flex;
|
|
9
|
-
animation: foo 1s ease-out }
|
|
10
|
-
|
|
11
|
-
div a {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
[data-test] > div {
|
|
16
|
-
color: red;
|
|
17
|
-
}
|
|
18
|
-
`}</style>
|
|
19
|
-
</div>
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
const Test2 = () => <style global jsx>{'p { color: red }'}</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
const Test = ()=><div className={"jsx-d47d6adadf14e957"}>
|
|
3
|
-
|
|
4
|
-
<_JSXStyle id={"d47d6adadf14e957"}>{"body{color:red}:hover{color:red;animation:1s ease-out foo;display:flex}div a{display:none}[data-test]>div{color:red}"}</_JSXStyle>
|
|
5
|
-
|
|
6
|
-
</div>;
|
|
7
|
-
const Test2 = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}</_JSXStyle>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
const Test = ()=><div className={"jsx-d47d6adadf14e957"}>
|
|
3
|
-
|
|
4
|
-
<_JSXStyle id={"d47d6adadf14e957"}>{"body{color:red}:hover{color:red;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-animation:foo 1s ease-out;-moz-animation:foo 1s ease-out;-o-animation:foo 1s ease-out;animation:foo 1s ease-out}div a{display:none}[data-test]>div{color:red}"}</_JSXStyle>
|
|
5
|
-
|
|
6
|
-
</div>;
|
|
7
|
-
const Test2 = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}</_JSXStyle>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
const Test = ()=><div className={"jsx-5a206f122d1cb32e"}>
|
|
3
|
-
|
|
4
|
-
<span className={"jsx-5a206f122d1cb32e"}>test</span>
|
|
5
|
-
|
|
6
|
-
<_JSXStyle id={"5a206f122d1cb32e"}>{"div.jsx-5a206f122d1cb32e>span{color:red}"}</_JSXStyle>
|
|
7
|
-
|
|
8
|
-
</div>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
const Test = ()=><div className={"jsx-5a206f122d1cb32e"}>
|
|
3
|
-
|
|
4
|
-
<span className={"jsx-5a206f122d1cb32e"}>test</span>
|
|
5
|
-
|
|
6
|
-
<_JSXStyle id={"5a206f122d1cb32e"}>{"div.jsx-5a206f122d1cb32e>span{color:red}"}</_JSXStyle>
|
|
7
|
-
|
|
8
|
-
</div>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
export default (({ breakPoint })=><div className={_JSXStyle.dynamic([
|
|
3
|
-
[
|
|
4
|
-
"ff798a455a83a572",
|
|
5
|
-
[
|
|
6
|
-
breakPoint
|
|
7
|
-
]
|
|
8
|
-
]
|
|
9
|
-
])}>
|
|
10
|
-
|
|
11
|
-
<_JSXStyle id={"ff798a455a83a572"} dynamic={[
|
|
12
|
-
breakPoint
|
|
13
|
-
]}>{`@media (${breakPoint}){.test.__jsx-style-dynamic-selector{margin-bottom:1em}}`}</_JSXStyle>
|
|
14
|
-
|
|
15
|
-
</div>);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
export default (({ breakPoint })=><div className={_JSXStyle.dynamic([
|
|
3
|
-
[
|
|
4
|
-
"ff798a455a83a572",
|
|
5
|
-
[
|
|
6
|
-
breakPoint
|
|
7
|
-
]
|
|
8
|
-
]
|
|
9
|
-
])}>
|
|
10
|
-
|
|
11
|
-
<_JSXStyle id={"ff798a455a83a572"} dynamic={[
|
|
12
|
-
breakPoint
|
|
13
|
-
]}>{`@media(${breakPoint}){.test.__jsx-style-dynamic-selector{margin-bottom:1em}}`}</_JSXStyle>
|
|
14
|
-
|
|
15
|
-
</div>);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
export default function IndexPage() {
|
|
3
|
-
return <div className={"jsx-bbdada4ef17d18ef"}>
|
|
4
|
-
|
|
5
|
-
<h1 className={"jsx-bbdada4ef17d18ef"}>Hello World.</h1>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<_JSXStyle id={"bbdada4ef17d18ef"}>{"@supports (display:flex){h1{color:#ff69b4}}"}</_JSXStyle>
|
|
10
|
-
|
|
11
|
-
</div>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
export default function IndexPage() {
|
|
3
|
-
return <div className={"jsx-bbdada4ef17d18ef"}>
|
|
4
|
-
|
|
5
|
-
<h1 className={"jsx-bbdada4ef17d18ef"}>Hello World.</h1>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<_JSXStyle id={"bbdada4ef17d18ef"}>{"@supports((display:flex)or (display:-webkit-box)or (display:-webkit-flex)or (display:-moz-box)or (display:-ms-flexbox)){h1{color:hotpink}}"}</_JSXStyle>
|
|
10
|
-
|
|
11
|
-
</div>;
|
|
12
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default class {
|
|
5
|
-
render() {
|
|
6
|
-
return (
|
|
7
|
-
<div>
|
|
8
|
-
<p>test</p>
|
|
9
|
-
<style jsx global>{`
|
|
10
|
-
html {
|
|
11
|
-
font-size: ${Typography.base.size.default};
|
|
12
|
-
line-height: ${Typography.base.lineHeight};
|
|
13
|
-
}
|
|
14
|
-
@media ${Target.mediumPlus} {
|
|
15
|
-
html {
|
|
16
|
-
font-size: ${Typography.base.size.mediumPlus};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
@media ${Target.largePlus} {
|
|
20
|
-
html {
|
|
21
|
-
font-size: ${Typography.base.size.largePlus};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
`}
|
|
25
|
-
</style>
|
|
26
|
-
</div>
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
export default class {
|
|
3
|
-
render() {
|
|
4
|
-
return <div className={_JSXStyle.dynamic([
|
|
5
|
-
[
|
|
6
|
-
"60bda1963c17b640",
|
|
7
|
-
[
|
|
8
|
-
Typography.base.size.default,
|
|
9
|
-
Typography.base.lineHeight,
|
|
10
|
-
Target.mediumPlus,
|
|
11
|
-
Typography.base.size.mediumPlus,
|
|
12
|
-
Target.largePlus,
|
|
13
|
-
Typography.base.size.largePlus
|
|
14
|
-
]
|
|
15
|
-
]
|
|
16
|
-
])}>
|
|
17
|
-
|
|
18
|
-
<p className={_JSXStyle.dynamic([
|
|
19
|
-
[
|
|
20
|
-
"60bda1963c17b640",
|
|
21
|
-
[
|
|
22
|
-
Typography.base.size.default,
|
|
23
|
-
Typography.base.lineHeight,
|
|
24
|
-
Target.mediumPlus,
|
|
25
|
-
Typography.base.size.mediumPlus,
|
|
26
|
-
Target.largePlus,
|
|
27
|
-
Typography.base.size.largePlus
|
|
28
|
-
]
|
|
29
|
-
]
|
|
30
|
-
])}>test</p>
|
|
31
|
-
|
|
32
|
-
<_JSXStyle id={"60bda1963c17b640"} dynamic={[
|
|
33
|
-
Typography.base.size.default,
|
|
34
|
-
Typography.base.lineHeight,
|
|
35
|
-
Target.mediumPlus,
|
|
36
|
-
Typography.base.size.mediumPlus,
|
|
37
|
-
Target.largePlus,
|
|
38
|
-
Typography.base.size.largePlus
|
|
39
|
-
]}>{`html{font-size:${Typography.base.size.default};line-height:${Typography.base.lineHeight}}@media ${Target.mediumPlus}{html{font-size:${Typography.base.size.mediumPlus}}}@media ${Target.largePlus}{html{font-size:${Typography.base.size.largePlus}}}`}</_JSXStyle>
|
|
40
|
-
|
|
41
|
-
</div>;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
export default class {
|
|
3
|
-
render() {
|
|
4
|
-
return <div className={_JSXStyle.dynamic([
|
|
5
|
-
[
|
|
6
|
-
"60bda1963c17b640",
|
|
7
|
-
[
|
|
8
|
-
Typography.base.size.default,
|
|
9
|
-
Typography.base.lineHeight,
|
|
10
|
-
Target.mediumPlus,
|
|
11
|
-
Typography.base.size.mediumPlus,
|
|
12
|
-
Target.largePlus,
|
|
13
|
-
Typography.base.size.largePlus
|
|
14
|
-
]
|
|
15
|
-
]
|
|
16
|
-
])}>
|
|
17
|
-
|
|
18
|
-
<p className={_JSXStyle.dynamic([
|
|
19
|
-
[
|
|
20
|
-
"60bda1963c17b640",
|
|
21
|
-
[
|
|
22
|
-
Typography.base.size.default,
|
|
23
|
-
Typography.base.lineHeight,
|
|
24
|
-
Target.mediumPlus,
|
|
25
|
-
Typography.base.size.mediumPlus,
|
|
26
|
-
Target.largePlus,
|
|
27
|
-
Typography.base.size.largePlus
|
|
28
|
-
]
|
|
29
|
-
]
|
|
30
|
-
])}>test</p>
|
|
31
|
-
|
|
32
|
-
<_JSXStyle id={"60bda1963c17b640"} dynamic={[
|
|
33
|
-
Typography.base.size.default,
|
|
34
|
-
Typography.base.lineHeight,
|
|
35
|
-
Target.mediumPlus,
|
|
36
|
-
Typography.base.size.mediumPlus,
|
|
37
|
-
Target.largePlus,
|
|
38
|
-
Typography.base.size.largePlus
|
|
39
|
-
]}>{`html{font-size:${Typography.base.size.default};line-height:${Typography.base.lineHeight}}@media ${Target.mediumPlus}{html{font-size:${Typography.base.size.mediumPlus}}}@media ${Target.largePlus}{html{font-size:${Typography.base.size.largePlus}}}`}</_JSXStyle>
|
|
40
|
-
|
|
41
|
-
</div>;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
const Test = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}</_JSXStyle>;
|
|
3
|
-
export default (()=><div className={"jsx-3822e6e1fb9fa41a"}>
|
|
4
|
-
|
|
5
|
-
<p className={"jsx-3822e6e1fb9fa41a"}>test</p>
|
|
6
|
-
|
|
7
|
-
<_JSXStyle id={"b7efb453c85593c1"}>{"body{background:red}"}</_JSXStyle>
|
|
8
|
-
|
|
9
|
-
<_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-3822e6e1fb9fa41a{color:red}"}</_JSXStyle>
|
|
10
|
-
|
|
11
|
-
</div>);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
const Test = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}</_JSXStyle>;
|
|
3
|
-
export default (()=><div className={"jsx-3822e6e1fb9fa41a"}>
|
|
4
|
-
|
|
5
|
-
<p className={"jsx-3822e6e1fb9fa41a"}>test</p>
|
|
6
|
-
|
|
7
|
-
<_JSXStyle id={"b7efb453c85593c1"}>{"body{background:red}"}</_JSXStyle>
|
|
8
|
-
|
|
9
|
-
<_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-3822e6e1fb9fa41a{color:red}"}</_JSXStyle>
|
|
10
|
-
|
|
11
|
-
</div>);
|