@swc/plugin-styled-jsx 1.5.84 → 1.5.87

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.
Files changed (217) hide show
  1. package/package.json +1 -1
  2. package/swc_plugin_styled_jsx.wasm +0 -0
  3. package/transform/Cargo.toml +0 -39
  4. package/transform/src/lib.rs +0 -7
  5. package/transform/src/lifetime.rs +0 -408
  6. package/transform/src/style.rs +0 -25
  7. package/transform/src/transform_css_lightningcss.rs +0 -589
  8. package/transform/src/transform_css_swc.rs +0 -392
  9. package/transform/src/utils.rs +0 -371
  10. package/transform/src/visitor.rs +0 -963
  11. package/transform/tests/errors/nested-style-tags/input.js +0 -31
  12. package/transform/tests/errors/nested-style-tags/output-lightningcss.js +0 -58
  13. package/transform/tests/errors/nested-style-tags/output-lightningcss.stderr +0 -27
  14. package/transform/tests/errors/nested-style-tags/output-swc.js +0 -58
  15. package/transform/tests/errors/nested-style-tags/output-swc.stderr +0 -27
  16. package/transform/tests/errors/nested-style-tags/output.js +0 -58
  17. package/transform/tests/errors/no-child/input.js +0 -6
  18. package/transform/tests/errors/no-child/output-lightningcss.js +0 -8
  19. package/transform/tests/errors/no-child/output-lightningcss.stderr +0 -9
  20. package/transform/tests/errors/no-child/output-swc.js +0 -8
  21. package/transform/tests/errors/no-child/output-swc.stderr +0 -9
  22. package/transform/tests/errors/no-child/output.js +0 -8
  23. package/transform/tests/errors/ts-with-css-resolve/input.js +0 -10
  24. package/transform/tests/errors/ts-with-css-resolve/output-lightningcss.js +0 -5
  25. package/transform/tests/errors/ts-with-css-resolve/output-lightningcss.stderr +0 -2
  26. package/transform/tests/errors/ts-with-css-resolve/output-swc.js +0 -5
  27. package/transform/tests/errors/ts-with-css-resolve/output-swc.stderr +0 -2
  28. package/transform/tests/errors/ts-with-css-resolve/output.js +0 -5
  29. package/transform/tests/errors/two-children/input.js +0 -8
  30. package/transform/tests/errors/two-children/output-lightningcss.js +0 -12
  31. package/transform/tests/errors/two-children/output-lightningcss.stderr +0 -11
  32. package/transform/tests/errors/two-children/output-swc.js +0 -12
  33. package/transform/tests/errors/two-children/output-swc.stderr +0 -11
  34. package/transform/tests/errors/two-children/output.js +0 -12
  35. package/transform/tests/errors/wrong-child-type/input.js +0 -7
  36. package/transform/tests/errors/wrong-child-type/output-lightningcss.js +0 -10
  37. package/transform/tests/errors/wrong-child-type/output-lightningcss.stderr +0 -10
  38. package/transform/tests/errors/wrong-child-type/output-swc.js +0 -10
  39. package/transform/tests/errors/wrong-child-type/output-swc.stderr +0 -10
  40. package/transform/tests/errors/wrong-child-type/output.js +0 -10
  41. package/transform/tests/errors/wrong-jsx-expression-type/input.js +0 -7
  42. package/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.js +0 -10
  43. package/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.stderr +0 -10
  44. package/transform/tests/errors/wrong-jsx-expression-type/output-swc.js +0 -10
  45. package/transform/tests/errors/wrong-jsx-expression-type/output-swc.stderr +0 -10
  46. package/transform/tests/errors/wrong-jsx-expression-type/output.js +0 -10
  47. package/transform/tests/fixture/.expressions/input.js +0 -90
  48. package/transform/tests/fixture/absent/input.js +0 -6
  49. package/transform/tests/fixture/absent/output.lightningcss.js +0 -7
  50. package/transform/tests/fixture/absent/output.swc.js +0 -7
  51. package/transform/tests/fixture/attribute-generation-classname-rewriting/input.js +0 -55
  52. package/transform/tests/fixture/attribute-generation-classname-rewriting/output.lightningcss.js +0 -112
  53. package/transform/tests/fixture/attribute-generation-classname-rewriting/output.swc.js +0 -112
  54. package/transform/tests/fixture/attribute-generation-modes/input.js +0 -166
  55. package/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js +0 -228
  56. package/transform/tests/fixture/attribute-generation-modes/output.swc.js +0 -228
  57. package/transform/tests/fixture/class/input.js +0 -14
  58. package/transform/tests/fixture/class/output.lightningcss.js +0 -12
  59. package/transform/tests/fixture/class/output.swc.js +0 -12
  60. package/transform/tests/fixture/comments/input.js +0 -18
  61. package/transform/tests/fixture/comments/output.lightningcss.js +0 -12
  62. package/transform/tests/fixture/comments/output.swc.js +0 -12
  63. package/transform/tests/fixture/component-attribute/input.js +0 -11
  64. package/transform/tests/fixture/component-attribute/output.lightningcss.js +0 -10
  65. package/transform/tests/fixture/component-attribute/output.swc.js +0 -10
  66. package/transform/tests/fixture/conflicts/input.js +0 -16
  67. package/transform/tests/fixture/conflicts/output.lightningcss.js +0 -14
  68. package/transform/tests/fixture/conflicts/output.swc.js +0 -14
  69. package/transform/tests/fixture/css-selector-after-pseudo/input.js +0 -18
  70. package/transform/tests/fixture/css-selector-after-pseudo/output.lightningcss.js +0 -11
  71. package/transform/tests/fixture/css-selector-after-pseudo/output.swc.js +0 -11
  72. package/transform/tests/fixture/css-tag-same-file/input.js +0 -25
  73. package/transform/tests/fixture/css-tag-same-file/output.lightningcss.js +0 -21
  74. package/transform/tests/fixture/css-tag-same-file/output.swc.js +0 -21
  75. package/transform/tests/fixture/different-jsx-ids/input.js +0 -23
  76. package/transform/tests/fixture/different-jsx-ids/output.lightningcss.js +0 -24
  77. package/transform/tests/fixture/different-jsx-ids/output.swc.js +0 -24
  78. package/transform/tests/fixture/dynamic-element/input.js +0 -56
  79. package/transform/tests/fixture/dynamic-element/output.lightningcss.js +0 -40
  80. package/transform/tests/fixture/dynamic-element/output.swc.js +0 -40
  81. package/transform/tests/fixture/dynamic-element-class/input.js +0 -32
  82. package/transform/tests/fixture/dynamic-element-class/output.lightningcss.js +0 -25
  83. package/transform/tests/fixture/dynamic-element-class/output.swc.js +0 -25
  84. package/transform/tests/fixture/dynamic-element-external/input.js +0 -12
  85. package/transform/tests/fixture/dynamic-element-external/output.lightningcss.js +0 -12
  86. package/transform/tests/fixture/dynamic-element-external/output.swc.js +0 -12
  87. package/transform/tests/fixture/dynamic-this-in-arrow/input.js +0 -41
  88. package/transform/tests/fixture/dynamic-this-in-arrow/output.lightningcss.js +0 -39
  89. package/transform/tests/fixture/dynamic-this-in-arrow/output.swc.js +0 -39
  90. package/transform/tests/fixture/exported-jsx-style/input.js +0 -1
  91. package/transform/tests/fixture/exported-jsx-style/output.lightningcss.js +0 -1
  92. package/transform/tests/fixture/exported-jsx-style/output.swc.js +0 -1
  93. package/transform/tests/fixture/exported-non-jsx-style/input.js +0 -1
  94. package/transform/tests/fixture/exported-non-jsx-style/output.lightningcss.js +0 -1
  95. package/transform/tests/fixture/exported-non-jsx-style/output.swc.js +0 -1
  96. package/transform/tests/fixture/external-nested-scope/input.js +0 -5
  97. package/transform/tests/fixture/external-nested-scope/output.lightningcss.js +0 -7
  98. package/transform/tests/fixture/external-nested-scope/output.swc.js +0 -7
  99. package/transform/tests/fixture/external-stylesheet/input.js +0 -41
  100. package/transform/tests/fixture/external-stylesheet/output.lightningcss.js +0 -34
  101. package/transform/tests/fixture/external-stylesheet/output.swc.js +0 -34
  102. package/transform/tests/fixture/external-stylesheet-global/input.js +0 -19
  103. package/transform/tests/fixture/external-stylesheet-global/output.lightningcss.js +0 -18
  104. package/transform/tests/fixture/external-stylesheet-global/output.swc.js +0 -18
  105. package/transform/tests/fixture/external-stylesheet-multi-line/input.js +0 -9
  106. package/transform/tests/fixture/external-stylesheet-multi-line/output.lightningcss.js +0 -9
  107. package/transform/tests/fixture/external-stylesheet-multi-line/output.swc.js +0 -9
  108. package/transform/tests/fixture/fragment/input.js +0 -51
  109. package/transform/tests/fixture/fragment/output.lightningcss.js +0 -47
  110. package/transform/tests/fixture/fragment/output.swc.js +0 -47
  111. package/transform/tests/fixture/global/input.js +0 -22
  112. package/transform/tests/fixture/global/output.lightningcss.js +0 -7
  113. package/transform/tests/fixture/global/output.swc.js +0 -7
  114. package/transform/tests/fixture/global-child-selector/input.js +0 -10
  115. package/transform/tests/fixture/global-child-selector/output.lightningcss.js +0 -8
  116. package/transform/tests/fixture/global-child-selector/output.swc.js +0 -8
  117. package/transform/tests/fixture/global-redundant/input.js +0 -12
  118. package/transform/tests/fixture/global-redundant/output.lightningcss.js +0 -10
  119. package/transform/tests/fixture/global-redundant/output.swc.js +0 -10
  120. package/transform/tests/fixture/issue-30480/input.js +0 -11
  121. package/transform/tests/fixture/issue-30480/output.lightningcss.js +0 -15
  122. package/transform/tests/fixture/issue-30480/output.swc.js +0 -15
  123. package/transform/tests/fixture/issue-30570/input.js +0 -15
  124. package/transform/tests/fixture/issue-30570/output.lightningcss.js +0 -12
  125. package/transform/tests/fixture/issue-30570/output.swc.js +0 -12
  126. package/transform/tests/fixture/issue-31562-interpolation-in-mdea/input.js +0 -30
  127. package/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js +0 -43
  128. package/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js +0 -43
  129. package/transform/tests/fixture/mixed-global-scoped/input.js +0 -9
  130. package/transform/tests/fixture/mixed-global-scoped/output.lightningcss.js +0 -11
  131. package/transform/tests/fixture/mixed-global-scoped/output.swc.js +0 -11
  132. package/transform/tests/fixture/multiple-jsx/input.js +0 -43
  133. package/transform/tests/fixture/multiple-jsx/output.lightningcss.js +0 -32
  134. package/transform/tests/fixture/multiple-jsx/output.swc.js +0 -32
  135. package/transform/tests/fixture/nested-style-tags/index.js +0 -0
  136. package/transform/tests/fixture/next-54653/input.js +0 -10
  137. package/transform/tests/fixture/next-54653/output.lightningcss.js +0 -3
  138. package/transform/tests/fixture/next-54653/output.swc.js +0 -3
  139. package/transform/tests/fixture/non-styled-jsx-style/input.js +0 -7
  140. package/transform/tests/fixture/non-styled-jsx-style/output.lightningcss.js +0 -12
  141. package/transform/tests/fixture/non-styled-jsx-style/output.swc.js +0 -12
  142. package/transform/tests/fixture/not-styled-jsx-tagged-templates/input.js +0 -30
  143. package/transform/tests/fixture/not-styled-jsx-tagged-templates/output.lightningcss.js +0 -23
  144. package/transform/tests/fixture/not-styled-jsx-tagged-templates/output.swc.js +0 -23
  145. package/transform/tests/fixture/number-after-placeholder/input.js +0 -17
  146. package/transform/tests/fixture/number-after-placeholder/output.lightningcss.js +0 -17
  147. package/transform/tests/fixture/number-after-placeholder/output.swc.js +0 -17
  148. package/transform/tests/fixture/one-off-global-selectors/input.js +0 -10
  149. package/transform/tests/fixture/one-off-global-selectors/output.lightningcss.js +0 -8
  150. package/transform/tests/fixture/one-off-global-selectors/output.swc.js +0 -8
  151. package/transform/tests/fixture/source-maps/input.js +0 -8
  152. package/transform/tests/fixture/source-maps/output.lightningcss.js +0 -8
  153. package/transform/tests/fixture/source-maps/output.swc.js +0 -8
  154. package/transform/tests/fixture/stateless/input.js +0 -8
  155. package/transform/tests/fixture/stateless/output.lightningcss.js +0 -12
  156. package/transform/tests/fixture/stateless/output.swc.js +0 -12
  157. package/transform/tests/fixture/styles/input.js +0 -57
  158. package/transform/tests/fixture/styles/output.lightningcss.js +0 -39
  159. package/transform/tests/fixture/styles/output.swc.js +0 -39
  160. package/transform/tests/fixture/styles-external-invalid/input.js +0 -13
  161. package/transform/tests/fixture/styles-external-invalid/output.lightningcss.js +0 -9
  162. package/transform/tests/fixture/styles-external-invalid/output.swc.js +0 -9
  163. package/transform/tests/fixture/styles-external-invalid2/input.js +0 -11
  164. package/transform/tests/fixture/styles-external-invalid2/output.lightningcss.js +0 -8
  165. package/transform/tests/fixture/styles-external-invalid2/output.swc.js +0 -8
  166. package/transform/tests/fixture/styles2/input.js +0 -6
  167. package/transform/tests/fixture/styles2/output.lightningcss.js +0 -5
  168. package/transform/tests/fixture/styles2/output.swc.js +0 -5
  169. package/transform/tests/fixture/too-many/input.js +0 -35
  170. package/transform/tests/fixture/too-many/output.lightningcss.js +0 -49
  171. package/transform/tests/fixture/too-many/output.swc.js +0 -49
  172. package/transform/tests/fixture/tpl-escape-1/input.js +0 -14
  173. package/transform/tests/fixture/tpl-escape-1/output.lightningcss.js +0 -12
  174. package/transform/tests/fixture/tpl-escape-1/output.swc.js +0 -12
  175. package/transform/tests/fixture/tpl-escape-2/input.js +0 -17
  176. package/transform/tests/fixture/tpl-escape-2/output.lightningcss.js +0 -17
  177. package/transform/tests/fixture/tpl-escape-2/output.swc.js +0 -17
  178. package/transform/tests/fixture/tpl-placeholder-1-as-property/input.js +0 -17
  179. package/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js +0 -28
  180. package/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js +0 -28
  181. package/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/input.js +0 -21
  182. package/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js +0 -34
  183. package/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js +0 -34
  184. package/transform/tests/fixture/tpl-placeholder-3-as-value/input.js +0 -17
  185. package/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js +0 -28
  186. package/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js +0 -28
  187. package/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/input.js +0 -17
  188. package/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js +0 -31
  189. package/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js +0 -31
  190. package/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/input.js +0 -16
  191. package/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js +0 -31
  192. package/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js +0 -31
  193. package/transform/tests/fixture/transform-css/input.js +0 -176
  194. package/transform/tests/fixture/transform-css/output.lightningcss.js +0 -8
  195. package/transform/tests/fixture/transform-css/output.swc.js +0 -8
  196. package/transform/tests/fixture/transform-css-complex-selector/input.js +0 -116
  197. package/transform/tests/fixture/transform-css-complex-selector/output.lightningcss.js +0 -8
  198. package/transform/tests/fixture/transform-css-complex-selector/output.swc.js +0 -8
  199. package/transform/tests/fixture/transform-css-complex-selector-2/input.js +0 -12
  200. package/transform/tests/fixture/transform-css-complex-selector-2/output.lightningcss.js +0 -8
  201. package/transform/tests/fixture/transform-css-complex-selector-2/output.swc.js +0 -8
  202. package/transform/tests/fixture/transform-css-global/input.js +0 -32
  203. package/transform/tests/fixture/transform-css-global/output.lightningcss.js +0 -8
  204. package/transform/tests/fixture/transform-css-global/output.swc.js +0 -8
  205. package/transform/tests/fixture/transform-css-media-query/input.js +0 -24
  206. package/transform/tests/fixture/transform-css-media-query/output.lightningcss.js +0 -8
  207. package/transform/tests/fixture/transform-css-media-query/output.swc.js +0 -8
  208. package/transform/tests/fixture/transform-css-normal/input.js +0 -22
  209. package/transform/tests/fixture/transform-css-normal/output.lightningcss.js +0 -8
  210. package/transform/tests/fixture/transform-css-normal/output.swc.js +0 -8
  211. package/transform/tests/fixture/transform-css-nth-1/input.js +0 -10
  212. package/transform/tests/fixture/transform-css-nth-1/output.lightningcss.js +0 -8
  213. package/transform/tests/fixture/transform-css-nth-1/output.swc.js +0 -8
  214. package/transform/tests/fixture/whitespace/input.js +0 -12
  215. package/transform/tests/fixture/whitespace/output.lightningcss.js +0 -12
  216. package/transform/tests/fixture/whitespace/output.swc.js +0 -12
  217. 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,9 +0,0 @@
1
- import styles from './styles'
2
-
3
- export default () =>
4
- <div>
5
- <p>test</p>
6
- <style jsx>
7
- {styles}
8
- </style>
9
- </div>
@@ -1,9 +0,0 @@
1
- import _JSXStyle from "styled-jsx/style";
2
- import styles from './styles';
3
- export default (()=><div className={`jsx-${styles.__hash}`}>
4
-
5
- <p className={`jsx-${styles.__hash}`}>test</p>
6
-
7
- <_JSXStyle id={styles.__hash}>{styles}</_JSXStyle>
8
-
9
- </div>);
@@ -1,9 +0,0 @@
1
- import _JSXStyle from "styled-jsx/style";
2
- import styles from './styles';
3
- export default (()=><div className={`jsx-${styles.__hash}`}>
4
-
5
- <p className={`jsx-${styles.__hash}`}>test</p>
6
-
7
- <_JSXStyle id={styles.__hash}>{styles}</_JSXStyle>
8
-
9
- </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,10 +0,0 @@
1
- const Test = () => (
2
- <div>
3
- <span>test</span>
4
- <style jsx>{`
5
- div > :global(span) {
6
- color: red;
7
- }
8
- `}</style>
9
- </div>
10
- )
@@ -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,12 +0,0 @@
1
- export default function IndexPage() {
2
- return (
3
- <div>
4
- should be blue.
5
- <style jsx global>{`
6
- :global(div) {
7
- color: blue;
8
- }
9
- `}</style>
10
- </div>
11
- );
12
- }
@@ -1,10 +0,0 @@
1
- import _JSXStyle from "styled-jsx/style";
2
- export default function IndexPage() {
3
- return <div className={"jsx-b6abd0684ba81871"}>
4
-
5
- should be blue.
6
-
7
- <_JSXStyle id={"b6abd0684ba81871"}>{"div{color:#00f}"}</_JSXStyle>
8
-
9
- </div>;
10
- }
@@ -1,10 +0,0 @@
1
- import _JSXStyle from "styled-jsx/style";
2
- export default function IndexPage() {
3
- return <div className={"jsx-b6abd0684ba81871"}>
4
-
5
- should be blue.
6
-
7
- <_JSXStyle id={"b6abd0684ba81871"}>{"div{color:blue}"}</_JSXStyle>
8
-
9
- </div>;
10
- }
@@ -1,11 +0,0 @@
1
-
2
-
3
- export default ({ breakPoint }) => (
4
- <div>
5
- <style jsx>{`@media (${breakPoint}) {
6
- .test {
7
- margin-bottom: 1em;
8
- }
9
- }`}</style>
10
- </div>
11
- )
@@ -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,15 +0,0 @@
1
- export default function IndexPage() {
2
- return (
3
- <div>
4
- <h1>Hello World.</h1>
5
-
6
- <style jsx global>{`
7
- @supports (display: flex) {
8
- h1 {
9
- color: hotpink;
10
- }
11
- }
12
- `}</style>
13
- </div>
14
- );
15
- }
@@ -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,9 +0,0 @@
1
- const Test = () => <style global jsx>{'p { color: red }'}</style>
2
-
3
- export default () => (
4
- <div>
5
- <p>test</p>
6
- <style jsx global>{`body { background: red }`}</style>
7
- <style jsx>{'p { color: red }'}</style>
8
- </div>
9
- )
@@ -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>);