rsnext/packages/next-swc/crates/styled_components/tests/fixtures/use-namespace/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

29 lines
717 B
JavaScript

import * as styled from 'styled-components';
const css = styled.css`
background: black;
`;
const GlobalStyle = styled.createGlobalStyle`
html {
background: black;
}
`;
const Test = styled.default.div.withConfig({
displayName: "code__Test",
componentId: "test-namespace__sc-d9ced075-0"
})`
color: red;
`;
const before = styled.default.div.withConfig({
displayName: "code__before",
componentId: "test-namespace__sc-d9ced075-1"
})`
color: blue;
`;
styled.default.div.withConfig({
displayName: "code",
componentId: "test-namespace__sc-d9ced075-2"
})``;
export default styled.default.button.withConfig({
displayName: "code",
componentId: "test-namespace__sc-d9ced075-3"
})``;