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

Commit 3ca7231

Browse files
committed
chore: fix package build
1 parent e88d29b commit 3ca7231

File tree

6 files changed

+35
-22
lines changed

6 files changed

+35
-22
lines changed

packages/anatomy/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"clean": "rimraf dist"
2626
},
2727
"dependencies": {
28-
"@chakra-ui/vue-system": "0.1.0-alpha.10"
28+
"@chakra-ui/vue-system": "0.1.0-alpha.10",
29+
"@chakra-ui/vue-theme-tools": "0.1.0-alpha.10"
2930
},
3031
"devDependencies": {
3132
"vue": "^3.2.29"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render properly 1`] = `
4+
<DocumentFragment>
5+
<!--[object Object]-->
6+
</DocumentFragment>
7+
`;

packages/c-accordion/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"clean": "rimraf dist"
2121
},
2222
"dependencies": {
23+
"@chakra-ui/utils": "^2.0.3",
24+
"@chakra-ui/vue-composables": "0.1.0-alpha.9",
2325
"@chakra-ui/vue-system": "0.1.0-alpha.10",
2426
"@chakra-ui/vue-utils": "0.1.0-alpha.10",
2527
"@zag-js/accordion": "^0.1.9",

packages/c-accordion/src/accordion.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ export const CAccordion: ComponentWithProps<CAccordionProps> = defineComponent({
104104
...attrs,
105105
})
106106

107-
console.log("styles", styles.value)
108-
109107
AccordionProvider(apiRef)
110108
StylesProvider(styles)
111109

@@ -213,9 +211,6 @@ export const CAccordionPanel = defineComponent({
213211
const state = computed(() => api.value.getItemState({ value: id.value }))
214212

215213
const isOpen = computed(() => state.value.isOpen)
216-
watchEffect(() => {
217-
console.log("isOpen", id.value, isOpen.value)
218-
})
219214

220215
return () => {
221216
const contentProps = api.value.getContentProps({

packages/c-theme-provider/src/index.ts

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,28 @@ import {
88
computed,
99
} from "vue"
1010
import { Theme } from "@chakra-ui/vue-theme"
11+
import { ComponentWithProps } from "@chakra-ui/vue-system"
1112

12-
const CThemeProvider = defineComponent({
13-
name: "CThemeProvider",
14-
props: {
15-
value: {
16-
type: [Object] as PropType<Theme>,
17-
default: () => undefined,
13+
export interface CThemeProviderProps {
14+
value?: Theme
15+
}
16+
17+
const CThemeProvider: ComponentWithProps<CThemeProviderProps> = defineComponent(
18+
{
19+
name: "CThemeProvider",
20+
props: {
21+
value: {
22+
type: [Object] as PropType<Theme>,
23+
default: () => undefined,
24+
},
25+
},
26+
setup(props, { slots }) {
27+
const pluginTheme = inject("$chakraTheme")
28+
const applicationTheme = computed(() => props.value || pluginTheme)
29+
provide("$chakraTheme", applicationTheme.value)
30+
return () => h(Fragment, slots.default?.({ $chakraTheme: props.value }))
1831
},
19-
},
20-
setup(props, { slots }) {
21-
const pluginTheme = inject("$chakraTheme")
22-
const applicationTheme = computed(() => props.value || pluginTheme)
23-
provide("$chakraTheme", applicationTheme.value)
24-
return () => h(Fragment, slots.default?.({ $chakraTheme: props.value }))
25-
},
26-
})
32+
}
33+
)
2734

2835
export default CThemeProvider

packages/theme/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
"clean": "rimraf dist"
2121
},
2222
"dependencies": {
23+
"@chakra-ui/vue-anatomy": "0.0.0-alpha.0",
2324
"@chakra-ui/vue-theme-tools": "0.1.0-alpha.10"
2425
},
2526
"peerDependencies": {
26-
"@chakra-ui/utils": "^1.8.2",
27+
"@chakra-ui/utils": "^2.0.3",
2728
"@chakra-ui/vue-system": "0.1.0-alpha.10",
28-
"vue": "^3.1.4"
29+
"vue": "^3.2.29"
2930
},
3031
"publishConfig": {
3132
"access": "public"

0 commit comments

Comments
 (0)