rsnext/packages/next/build/swc/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/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

29 lines
853 B
JavaScript

import _JSXStyle from "styled-jsx/style";
export default class {
render() {
return <div className={_JSXStyle.dynamic([
[
"e9f85ed5d171a7cb",
[
a ? "100%" : "200px",
b ? "0" : "8px 20px"
]
]
])}>
<p className={_JSXStyle.dynamic([
[
"e9f85ed5d171a7cb",
[
a ? "100%" : "200px",
b ? "0" : "8px 20px"
]
]
])}>test</p>
<_JSXStyle id={"e9f85ed5d171a7cb"} dynamic={[
a ? "100%" : "200px",
b ? "0" : "8px 20px"
]}>{`.item.__jsx-style-dynamic-selector {max-width:${a ? "100%" : "200px"};
padding:${b ? "0" : "8px 20px"}}`}</_JSXStyle>
</div>;
}
}