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

Commit 55418b6

Browse files
committed
fix(tabs): autoimporting with nuxt modules
1 parent 62b86e7 commit 55418b6

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

@types/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-03-28T18:16:17.195Z
9+
* This file was generated on 2023-03-28T18:38:28.043Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"

components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-03-28T18:16:17.195Z
9+
* This file was generated on 2023-03-28T18:38:28.043Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"

modules/nuxt/playground/pages/tabs.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919

2020
<script lang="ts" setup>
2121
import { chakra } from "@chakra-ui/vue-next"
22-
import {
23-
CTabs,
24-
CTabList,
25-
CTab,
26-
CTabPanel,
27-
CTabPanels,
28-
CTabIndicator,
29-
} from "@chakra-ui/vue-next"
22+
// import {
23+
// CTabs,
24+
// CTabList,
25+
// CTab,
26+
// CTabPanel,
27+
// CTabPanels,
28+
// CTabIndicator,
29+
// } from "@chakra-ui/vue-next"
3030
const value = ref("two")
3131
</script>

modules/nuxt/src/module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ export default defineNuxtModule<ChakraModuleOptions>({
7777
}
7878
})
7979

80+
const { resolve } = createResolver(import.meta.url)
81+
const runtimeDir = resolve("./runtime")
82+
nuxt.options.build.transpile.push(runtimeDir)
83+
8084
// Transpile
8185
nuxt.options.build.transpile.push("@chakra-ui/vue-next")
8286
nuxt.options.build.transpile.push("@emotion/server")
@@ -115,10 +119,6 @@ export default defineNuxtModule<ChakraModuleOptions>({
115119
emotionCacheOptions,
116120
}
117121

118-
const { resolve } = createResolver(import.meta.url)
119-
const runtimeDir = resolve("./runtime")
120-
nuxt.options.build.transpile.push(runtimeDir)
121-
122122
// Include all internal lodash modules
123123
// to the optimized dependencies since they do not
124124
// natively export ESM modules.

packages/vue/src/components.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export * from "@chakra-ui/c-motion"
4343

4444
// P
4545
export * from "@chakra-ui/c-pin-input"
46+
export * from "@chakra-ui/c-popover"
4647
export * from "@chakra-ui/c-popper"
4748
export * from "@chakra-ui/c-portal"
4849

@@ -58,6 +59,8 @@ export * from "@chakra-ui/c-scroll-lock"
5859
export * from "@chakra-ui/c-theme-provider"
5960
export * from "@chakra-ui/c-tag"
6061
export * from "@chakra-ui/c-toast"
62+
export * from "@chakra-ui/c-tooltip"
63+
export * from "@chakra-ui/c-tabs"
6164

6265
// V
6366
export * from "@chakra-ui/c-visually-hidden"

0 commit comments

Comments
 (0)