-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 19 additions & 13 deletions
32
packages/yak-swc/yak_swc/tests/fixture/css-prop/output.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,58 @@ | ||
import { css, __yak_mergeCssProp } from "next-yak/internal"; | ||
import "./input.yak.module.css!=!./input?./input.yak.module.css"; | ||
const Elem = ()=><div {.../*YAK Extracted CSS: | ||
.Elem { | ||
// cssmodules-pure-ignore | ||
:global(.Elem_m7uBBu) { | ||
color: red; | ||
} | ||
*/ /*#__PURE__*/ css("Elem")({})}/>; | ||
*/ /*#__PURE__*/ css("Elem_m7uBBu")({})}/>; | ||
const Elem2 = ()=><div {...__yak_mergeCssProp({ | ||
className: "test-class" | ||
}, /*YAK Extracted CSS: | ||
.Elem2 { | ||
// cssmodules-pure-ignore | ||
:global(.Elem2_m7uBBu) { | ||
color: blue; | ||
} | ||
*/ /*#__PURE__*/ css("Elem2")({}))}/>; | ||
*/ /*#__PURE__*/ css("Elem2_m7uBBu")({}))}/>; | ||
const Elem3 = ()=><div {...__yak_mergeCssProp({ | ||
style: { | ||
padding: "5px" | ||
} | ||
}, /*YAK Extracted CSS: | ||
.Elem3 { | ||
// cssmodules-pure-ignore | ||
:global(.Elem3_m7uBBu) { | ||
padding: 10px; | ||
} | ||
*/ /*#__PURE__*/ css("Elem3")({}))}/>; | ||
*/ /*#__PURE__*/ css("Elem3_m7uBBu")({}))}/>; | ||
const Elem4 = (props: any)=><div {...__yak_mergeCssProp({ | ||
...props | ||
}, /*YAK Extracted CSS: | ||
.Elem4 { | ||
// cssmodules-pure-ignore | ||
:global(.Elem4_m7uBBu) { | ||
color: green; | ||
} | ||
*/ /*#__PURE__*/ css("Elem4")({}))}/>; | ||
*/ /*#__PURE__*/ css("Elem4_m7uBBu")({}))}/>; | ||
const Elem5 = (props: any)=><div {...__yak_mergeCssProp({ | ||
...props.a, | ||
...props.b | ||
}, /*YAK Extracted CSS: | ||
.Elem5 { | ||
// cssmodules-pure-ignore | ||
:global(.Elem5_m7uBBu) { | ||
color: purple; | ||
} | ||
*/ /*#__PURE__*/ css("Elem5")({}))}/>; | ||
*/ /*#__PURE__*/ css("Elem5_m7uBBu")({}))}/>; | ||
const Elem6 = ()=><div {...__yak_mergeCssProp({ | ||
className: "main", | ||
style: { | ||
fontWeight: "bold" | ||
} | ||
}, /*YAK Extracted CSS: | ||
.Elem6 { | ||
// cssmodules-pure-ignore | ||
:global(.Elem6_m7uBBu) { | ||
font-size: 16px; | ||
} | ||
*/ /*#__PURE__*/ css("Elem6")({}))}/>; | ||
*/ /*#__PURE__*/ css("Elem6_m7uBBu")({}))}/>; | ||
const Elem7 = ()=><div className="no-css"/>; | ||
const Elem8 = ()=><div {...__yak_mergeCssProp({ | ||
className: "empty-css" | ||
}, /*#__PURE__*/ css("Elem8")({}))}/>; | ||
}, /*#__PURE__*/ css("Elem8_m7uBBu")({}))}/>; |