Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Mad-Kat committed Dec 19, 2024
1 parent d63a3bb commit b989b05
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion packages/yak-swc/yak_swc/tests/fixture/css-prop/output.dev.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css, __yak_mergeCssProp } from "next-yak/internal";
import { css, styled, __yak_mergeCssProp } from "next-yak/internal";
import __styleYak from "./input.yak.module.css!=!./input?./input.yak.module.css";
const Elem = ()=><div {.../*YAK Extracted CSS:
.Elem {
Expand Down Expand Up @@ -50,3 +50,15 @@ const Elem7 = ()=><div className="no-css"/>;
const Elem8 = ()=><div {...__yak_mergeCssProp({
className: "empty-css"
}, /*#__PURE__*/ css(__styleYak.Elem8)({}))}/>;
const Text = /*YAK Extracted CSS:
.Text {
font-size: 20px;
}
*/ /*#__PURE__*/ styled.p(__styleYak.Text);
const StyledComponentWithCSSProp = ()=><Text {.../*YAK Extracted CSS:
.StyledComponentWithCSSProp {
color: red;
}
*/ /*#__PURE__*/ css(__styleYak.StyledComponentWithCSSProp)({})}>
test
</Text>;
14 changes: 13 additions & 1 deletion packages/yak-swc/yak_swc/tests/fixture/css-prop/output.prod.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css, __yak_mergeCssProp } from "next-yak/internal";
import { css, styled, __yak_mergeCssProp } from "next-yak/internal";
import __styleYak from "./input.yak.module.css!=!./input?./input.yak.module.css";
const Elem = ()=><div {.../*YAK Extracted CSS:
.Elem {
Expand Down Expand Up @@ -50,3 +50,15 @@ const Elem7 = ()=><div className="no-css"/>;
const Elem8 = ()=><div {...__yak_mergeCssProp({
className: "empty-css"
}, /*#__PURE__*/ css(__styleYak.Elem8)({}))}/>;
const Text = /*YAK Extracted CSS:
.Text {
font-size: 20px;
}
*/ /*#__PURE__*/ styled.p(__styleYak.Text);
const StyledComponentWithCSSProp = ()=><Text {.../*YAK Extracted CSS:
.StyledComponentWithCSSProp {
color: red;
}
*/ /*#__PURE__*/ css(__styleYak.StyledComponentWithCSSProp)({})}>
test
</Text>;

0 comments on commit b989b05

Please sign in to comment.