rsnext/packages/next-swc/crates/styled_jsx/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.js
Donny/강동윤 16f7084e7f
feat(next-swc): Update swc crates (#35996)
* Move

* Adjust

* publish = false

* Tree

* Move tests

* fixup

* Split `emotion`

* Split `styled_jsx`

* Split `styled_jsx`

* fmt

* `--fix`

* clippy

* Update crates

* fixup

* publish

* Bump

* Rename

* authors

* Update

* More update

* Oh

* Update test refs

* Update test refs

* Update again

* Fix
2022-04-11 11:59:16 +02:00

31 lines
855 B
JavaScript

import _JSXStyle from "styled-jsx/style";
export default class {
render() {
return <div className={_JSXStyle.dynamic([
[
"e2cf1d088389269b",
[
a ? '100%' : '200px',
b ? '0' : '8px 20px'
]
]
])}>
<p className={_JSXStyle.dynamic([
[
"e2cf1d088389269b",
[
a ? '100%' : '200px',
b ? '0' : '8px 20px'
]
]
])}>test</p>
<_JSXStyle id={"e2cf1d088389269b"} 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>;
}
};