generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(outputs): update outputs system to use a real module path making…
… type resolution easier
- Loading branch information
Showing
120 changed files
with
529 additions
and
8,615 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
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
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
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
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,11 +1,15 @@ | ||
<script setup lang="ts"> | ||
const TestComponent = $styled.a({ | ||
}) | ||
</script> | ||
|
||
<template> | ||
<App> | ||
<App | ||
:styled="{ | ||
backgroundColor: '$color.blue.1' | ||
}" | ||
> | ||
<NuxtPage /> | ||
</App> | ||
</template> | ||
|
||
<style lang="ts"> | ||
css({ | ||
color: '' | ||
}) | ||
</style> |
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
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,4 +1,3 @@ | ||
{ | ||
"extends": "./.nuxt/tsconfig.json", | ||
"references": [{ "path": "@pinceau/configs/tsconfig.base.json" }] | ||
"extends": "./.nuxt/tsconfig.json" | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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,37 +1,72 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
import { useMouseInElement } from '@vueuse/core' | ||
import App from '../shared/App.vue' | ||
</script> | ||
<script lang="ts"> | ||
const TestComponent = $styled.a<{ color: keyof PinceauTheme['color'] }>({ | ||
color: ({ color = 'red' }) => `$color.${color}.5`, | ||
backgroundColor: 'green' | ||
}).withVariants({ | ||
size: { | ||
md: { | ||
padding: '$space.32' | ||
}, | ||
options: { | ||
default: 'md' | ||
} | ||
} | ||
}) | ||
</script> | ||
const containerRef = ref() | ||
<template> | ||
<App class="main"> | ||
<div> | ||
<Navigation /> | ||
</div> | ||
const size = ref(128) | ||
css({ | ||
'.container': { | ||
position: 'relative', | ||
width: '100%', | ||
height: '100vh', | ||
backgroundColor: '$color.gray.8', | ||
mixBlendMode: 'hard-light' | ||
}, | ||
'.dot-background': { | ||
position: 'absolute', | ||
width: '100%', | ||
height: '100%', | ||
backgroundImage: 'radial-gradient(circle, transparent 1px, black 1px)', | ||
backgroundSize: '10px 10px', | ||
zIndex: '2' | ||
}, | ||
}) | ||
<TestComponent> | ||
hello world | ||
</TestComponent> | ||
const { x, y } = useMouseInElement(containerRef) | ||
<TestComponent size="md" color="blue"> | ||
hello world | ||
</TestComponent> | ||
const CircleComponent = $styled.div({ | ||
$size: () => `${size.value}px`, | ||
position: 'absolute', | ||
left: () => `calc(${x.value}px - calc($size / 2))`, | ||
top: () => `calc(${y.value}px - calc($size / 2))`, | ||
width: '$size', | ||
height: '$size', | ||
borderRadius: 'calc($size / 2)', | ||
zIndex: '1', | ||
boxShadow: '10px 10px 10px red', | ||
backgroundImage: 'radial-gradient(circle at center, $color.red.5, $color.red.1, $color.red.9)', | ||
}) | ||
</script> | ||
|
||
<RouterView /> | ||
<template> | ||
<App ref="containerRef" class="main container"> | ||
<input :styled="{ position: 'absolute', zIndex: '9', color: '$color.gray.8', borderRadius: '9px', right: 0 }" v-model="size" /> | ||
<CircleComponent /> | ||
<div class="dot-background" /> | ||
</App> | ||
</template> | ||
|
||
<style lang="ts"> | ||
styled({ | ||
variants: { | ||
size: { | ||
sm: { | ||
padding: '$space.1' | ||
}, | ||
md: { | ||
padding: '$space.2' | ||
}, | ||
lg: { | ||
padding: '$space.4' | ||
} | ||
}, | ||
options: { | ||
default: 'sm' | ||
} | ||
} | ||
}) | ||
</style> |
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
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
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,8 +1,3 @@ | ||
{ | ||
"extends": "@pinceau/configs/tsconfig.base.json", | ||
"compilerOptions": { | ||
"paths": { | ||
"$pinceau/types": ["./node_modules/.pinceau/pinceau.d.ts"] | ||
} | ||
} | ||
"extends": "@pinceau/configs/tsconfig.base.json" | ||
} |
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
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
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
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
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
Oops, something went wrong.