-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
9b87c00
commit 5a31b67
Showing
48 changed files
with
1,245 additions
and
1,907 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
auto-install-peers=true | ||
auto-install-peers=true |
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 @@ | ||
test-ve |
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,10 +1,9 @@ | ||
import { defineConfig } from 'vite'; | ||
import solidPlugin from 'vite-plugin-solid'; | ||
import { defineConfig } from "vite"; | ||
import solidPlugin from "vite-plugin-solid"; | ||
|
||
export default defineConfig({ | ||
plugins: [solidPlugin()], | ||
build: { | ||
target: 'esnext', | ||
polyfillDynamicImport: false, | ||
}, | ||
plugins: [solidPlugin()], | ||
build: { | ||
target: "esnext", | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
import type { Component } from "solid-js"; | ||
import { Button, theme } from "@codeui/kit"; | ||
|
||
const App: Component = () => { | ||
return ( | ||
<div class={theme}> | ||
<Button theme={"primary"}>Button</Button> | ||
<Button theme={"secondary"}>Button</Button> | ||
<Button theme={"tertiary"}>Button</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; |
3 changes: 2 additions & 1 deletion
3
playgrounds/sandbox/src/index.css → packages/kit/dev/index.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
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<title>Playground | @codeui/kit</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/blackA.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/mauve.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/violet.css" /> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script src="./index.tsx" type="module"></script> | ||
</body> | ||
</html> |
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,7 @@ | ||
/* @refresh reload */ | ||
import { render } from "solid-js/web"; | ||
|
||
import "./index.css"; | ||
import App from "./App"; | ||
|
||
render(() => <App />, document.getElementById("root") as HTMLElement); |
File renamed without changes
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,11 @@ | ||
import { defineConfig } from "vite"; | ||
import solidPlugin from "vite-plugin-solid"; | ||
import { vanillaExtractPlugin } from "@codeimage/vanilla-extract"; | ||
import tsconfigPaths from "vite-tsconfig-paths"; | ||
|
||
export default defineConfig({ | ||
plugins: [solidPlugin(), vanillaExtractPlugin(), tsconfigPaths()], | ||
build: { | ||
target: "esnext", | ||
}, | ||
}); |
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 |
---|---|---|
|
@@ -42,13 +42,15 @@ | |
}, | ||
"scripts": { | ||
"dev": "pnpm run build -w", | ||
"build": "rollup -c ../../configs/rollup.config.ts", | ||
"playground": "vite serve ./dev --host", | ||
"build": "rollup -c rollup.config.js", | ||
"test": "pnpm run test:client && pnpm run test:ssr", | ||
"test:client": "jest --config jest.config.ts", | ||
"test:ssr": "jest --config jest.config.ssr.ts", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"devDependencies": { | ||
"@codeimage/vanilla-extract": "workspace:^0.2.0", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"jest": "^28.1.3", | ||
"jest-environment-jsdom": "^28.1.3", | ||
|
@@ -57,16 +59,19 @@ | |
"solid-js": "^1.4.8", | ||
"solid-testing-library": "^0.3.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.7.4", | ||
"vite-tsconfig-paths": "^4.0.3" | ||
}, | ||
"peerDependencies": { | ||
"solid-js": "^1.4.4" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@kobalte/core": "^0.1.0", | ||
"@radix-ui/colors": "^0.1.8", | ||
"@vanilla-extract/css": "^1.9.2", | ||
"@vanilla-extract/dynamic": "^2.0.3", | ||
"@vanilla-extract/recipes": "^0.3.0" | ||
"@vanilla-extract/recipes": "^0.3.0", | ||
"@vanilla-extract/vite-plugin": "^3.7.0" | ||
} | ||
} |
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 withSolid from "rollup-preset-solid"; | ||
|
||
export default withSolid({ | ||
input: "src/index.tsx", | ||
targets: ["esm"], | ||
output: { | ||
preserveModules: true, | ||
dir: "dist/esm", | ||
}, | ||
}); |
Oops, something went wrong.