-
Notifications
You must be signed in to change notification settings - Fork 4
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
7 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/cross-file-tests/__tests__/fixtures/selector/icon.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { styled } from 'next-yak' | ||
|
||
export const Icon = styled.svg`` | ||
export const AnyIcon = styled.svg`` as any; |
10 changes: 10 additions & 0 deletions
10
packages/cross-file-tests/__tests__/fixtures/selector/index.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { styled } from "next-yak"; | ||
import { AnyIcon, Icon } from "./icon"; | ||
export const Button = styled.button` | ||
${Icon} { | ||
margin-right: 10px; | ||
} | ||
${ AnyIcon} { | ||
margin-right: 15px; | ||
} | ||
`; |
4 changes: 4 additions & 0 deletions
4
packages/cross-file-tests/__tests__/fixtures/selector/output/icon.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { styled } from "next-yak/internal"; | ||
import __styleYak from "./icon.yak.module.css!=!./icon?./icon.yak.module.css"; | ||
export var Icon = /*#__PURE__*/ styled.svg(); | ||
export var AnyIcon = /*#__PURE__*/ styled.svg(); |
Empty file.
13 changes: 13 additions & 0 deletions
13
packages/cross-file-tests/__tests__/fixtures/selector/output/index.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { styled } from "next-yak/internal"; | ||
import __styleYak from "./index.yak.module.css!=!./index?./index.yak.module.css"; | ||
import { AnyIcon, Icon } from "./icon"; | ||
export var Button = /*YAK Extracted CSS: | ||
.Button { | ||
--yak-css-import: url("./icon:Icon",selector) { | ||
margin-right: 10px; | ||
} | ||
--yak-css-import: url("./icon:AnyIcon",selector) { | ||
margin-right: 15px; | ||
} | ||
} | ||
*/ /*#__PURE__*/ styled.button(__styleYak.Button); |
8 changes: 8 additions & 0 deletions
8
packages/cross-file-tests/__tests__/fixtures/selector/output/index.yak.module.css
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.Button { | ||
:global(.icon_Icon___yEni) { | ||
margin-right: 10px; | ||
} | ||
:global(.icon_AnyIcon__xEcaO) { | ||
margin-right: 15px; | ||
} | ||
} |
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