rsnext/packages/next/build/swc/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/output.js
Donny/강동윤 90a33e7994
Update css parser (#29484)
Co-authored-by: timneutkens <timneutkens@users.noreply.github.com>
2021-09-29 11:09:33 +02:00

25 lines
No EOL
857 B
JavaScript

import _JSXStyle from "styled-jsx/style";
export default class {
render() {
return <div className={_JSXStyle.dynamic([
[
"8b268cf2c0a3f89b",
[
inputSize ? "height: calc(2 * var(--a)) !important;" : ""
]
]
])}>
<p className={_JSXStyle.dynamic([
[
"8b268cf2c0a3f89b",
[
inputSize ? "height: calc(2 * var(--a)) !important;" : ""
]
]
])}>test</p>
<_JSXStyle id={"8b268cf2c0a3f89b"} dynamic={[
inputSize ? "height: calc(2 * var(--a)) !important;" : ""
]}>{`@media only screen {a.__jsx-style-dynamic-selector {${inputSize ? "height: calc(2 * var(--a)) !important;" : ""} }}`}</_JSXStyle>
</div>;
}
}