-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new extension
vike-react-chakra
- Loading branch information
Showing
8 changed files
with
1,979 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules/ | ||
/dist/ |
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 @@ | ||
TODO |
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 @@ | ||
export { config as default } | ||
import type { Config } from 'vike/types' | ||
|
||
const config = { | ||
name: 'vike-react-chakra', | ||
require: { | ||
'vike-react': '>=0.4.13', | ||
}, | ||
Wrapper: 'import:vike-react-chakra/__internal/integration/Wrapper:Wrapper', | ||
} satisfies Config |
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 @@ | ||
export { Wrapper } | ||
|
||
import React, { ReactNode } from "react"; | ||
import { ChakraProvider, defaultSystem } from "@chakra-ui/react"; | ||
|
||
function Wrapper({ children }: { children: ReactNode }) { | ||
return <ChakraProvider value={defaultSystem}>{children}</ChakraProvider> | ||
} |
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,47 @@ | ||
{ | ||
"name": "vike-react-chakra", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"exports": { | ||
"./config": "./dist/integration/+config.js", | ||
"./__internal/integration/Wrapper": "./dist/integration/Wrapper.js" | ||
}, | ||
"scripts": { | ||
"dev": "tsc --watch", | ||
"build": "rimraf dist/ && tsc" | ||
}, | ||
"peerDependencies": { | ||
"@chakra-ui/react": ">=3", | ||
"@emotion/react": ">=11", | ||
"react": ">=18.0.0", | ||
"vike-react": ">=0.4.13" | ||
}, | ||
"devDependencies": { | ||
"@chakra-ui/react": "^3.0.2", | ||
"@emotion/react": "^11.13.3", | ||
"@types/node": "^20.11.17", | ||
"@types/react": "^18.2.55", | ||
"jsdom": "^24.0.0", | ||
"react": "^18.3.1", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.5.3", | ||
"vike": "^0.4.197", | ||
"vike-react": "^0.5.7", | ||
"vite": "^5.4.0" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"config": [ | ||
"dist/integration/+config.d.ts" | ||
], | ||
"__internal/integration/Wrapper": [ | ||
"dist/integration/Wrapper.d.ts" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": "github:vikejs/vike-react", | ||
"license": "MIT" | ||
} |
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,24 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./dist/", | ||
// Resolution | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
// Libs | ||
"lib": ["ES2021", "DOM", "DOM.Iterable"], | ||
"types": ["vite/client", "vike-react"], | ||
// Strictness | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noImplicitAny": true, | ||
// Output | ||
"declaration": true, | ||
"noEmitOnError": false, | ||
"rootDir": "./", | ||
// Misc | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"jsx": "react" | ||
} | ||
} |
Oops, something went wrong.