rsnext/packages/next-swc/crates/styled_jsx/tests/fixture/tpl-placeholder-2-as-part-of-value/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

34 lines
871 B
JavaScript

import _JSXStyle from "styled-jsx/style";
export default class {
render() {
return <div className={_JSXStyle.dynamic([
[
"5fd7f2008eca3a62",
[
a[b],
-1 * (c || 0),
d
]
]
])}>
<p className={_JSXStyle.dynamic([
[
"5fd7f2008eca3a62",
[
a[b],
-1 * (c || 0),
d
]
]
])}>test</p>
<_JSXStyle id={"5fd7f2008eca3a62"} dynamic={[
a[b],
-1 * (c || 0),
d
]}>{`.a:hover .b.__jsx-style-dynamic-selector{a:${a[b]}px!important;b:translate3d(0,${-1 * (c || 0)}px,-${d}px)scale(1)!important}`}</_JSXStyle>
</div>;
}
};