Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 778bb17

Browse files
committed
feat: fix types for chakra
1 parent 0bba9c4 commit 778bb17

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1124
-793
lines changed

components.d.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2021-11-09T11:33:47.844Z
9+
* This file was generated on 2021-12-09T21:05:11.038Z
1010
*/
1111

12-
import { ChakraProps } from '@chakra-ui/vue-system'
12+
import { ChakraProps, chakra } from '@chakra-ui/vue-system'
1313
import { VNodeChild, HTMLAttributes } from 'vue'
1414

1515
export type JsxNode = VNodeChild | JSX.Element
@@ -37,9 +37,14 @@ type JsxComponentCustomProps = {
3737
innerHTML?: JsxNode
3838
}
3939

40-
declare module 'vue' {
40+
declare module '@vue/runtime-core' {
41+
import { chakra } from '@chakra-ui/vue-next'
42+
export { chakra }
43+
4144
/* Global component types for Volar auto-complete */
4245
export interface GlobalComponents {
46+
chakra: typeof import('@chakra-ui/vue-next')['chakra']
47+
4348
CAlert: typeof import('@chakra-ui/vue-next')['CAlert']
4449
CAlertDescription: typeof import('@chakra-ui/vue-next')['CAlertDescription']
4550
CAlertIcon: typeof import('@chakra-ui/vue-next')['CAlertIcon']
@@ -223,3 +228,5 @@ declare module 'vue' {
223228
onClear?: EventHandler
224229
}
225230
}
231+
232+
export {}

examples/vue-ssr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"vue-router": "4"
1818
},
1919
"devDependencies": {
20-
"@vitejs/plugin-vue": "^1.2.4",
20+
"@vitejs/plugin-vue": "^1.10.2",
2121
"@vue/compiler-sfc": "^3.0.5",
2222
"typescript": "^4.1.3",
2323
"vite": "^2.6.13",

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"@types/uuid": "^8.3.1",
8686
"@typescript-eslint/eslint-plugin": "^2.34.0",
8787
"@typescript-eslint/parser": "4.0.1",
88-
"@vitejs/plugin-vue": "^1.9.3",
88+
"@vitejs/plugin-vue": "^1.10.2",
8989
"@vitejs/plugin-vue-jsx": "^1.1.6",
9090
"@vue/babel-plugin-jsx": "^1.0.3",
9191
"@vue/compiler-sfc": "^3.1.4",
@@ -114,6 +114,7 @@
114114
"cypress-plugin-tab": "^1.0.5",
115115
"dequal": "^2.0.2",
116116
"dom-focus-lock": "^1.0.4",
117+
"esbuild": "0.13.4",
117118
"esbuild-jest": "0.4.0",
118119
"esbuild-plugin-babel": "^0.2.3",
119120
"eslint": "^7.0.0",
@@ -151,25 +152,22 @@
151152
"ts-node": "^9.0.0",
152153
"typescript": "^4.4.3",
153154
"unplugin-vue-components": "^0.14.0",
154-
"vite": "^2.6.13",
155+
"vite": "^2.7.1",
155156
"vite-plugin-mdx-vue": "^1.1.3",
156-
"vite-plugin-pages": "^0.9.2",
157+
"vite-plugin-pages": "^0.18.2",
157158
"vite-plugin-vue-layouts": "^0.3.1",
158159
"vite-ssg": "^0.11.4",
159160
"vitepress": "^0.12.0",
160-
"vue": "^3.2.21",
161+
"vue": "^3.2.24",
161162
"vue-jest": "^5.0.0-alpha.7",
162163
"vue-prism-editor": "^2.0.0-alpha.2",
163-
"vue-router": "^4.0.10",
164+
"vue-router": "^4.0.12",
164165
"vue3-perfect-scrollbar": "^1.5.5"
165166
},
166167
"preconstruct": {
167168
"packages": [
168169
"packages/*",
169170
"tooling/*"
170171
]
171-
},
172-
"devDependencies": {
173-
"esbuild": "0.13.4"
174172
}
175173
}

packages/c-accordion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"access": "public"
3030
},
3131
"devDependencies": {
32-
"vue": "^3.2.21"
32+
"vue": "^3.2.24"
3333
}
3434
}

packages/c-alert/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
"access": "public"
3232
},
3333
"devDependencies": {
34-
"vue": "^3.2.21"
34+
"vue": "^3.2.24"
3535
}
3636
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * as SimpleBreadcrumb from './simple-breadcrumb.vue'
1+
export * as SimpleBreadcrumb from './simple-breadcrumb.vue'

packages/c-breadcrumb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"vue": "^3.1.4"
3838
},
3939
"devDependencies": {
40-
"vue": "^3.2.21"
40+
"vue": "^3.2.24"
4141
}
4242
}

0 commit comments

Comments
 (0)