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

Commit 5db9572

Browse files
committed
build: and export modules
1 parent 6e18f97 commit 5db9572

File tree

14 files changed

+1417
-17
lines changed

14 files changed

+1417
-17
lines changed

.changeset/giant-penguins-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chakra-ui/vue': patch
3+
---
4+
5+
Fix build for nuxt.js

.changeset/pre.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"mode": "pre",
3+
"tag": "next",
4+
"initialVersions": {
5+
"@chakra-ui/vue": "0.7.1",
6+
"@chakra-ui/nuxt": "0.2.1",
7+
"@chakra-ui/theme-vue": "0.2.7",
8+
"chakra-ui-docs": "0.5.3-next.0"
9+
},
10+
"changesets": [
11+
"giant-penguins-buy",
12+
"seven-actors-move"
13+
]
14+
}

.changeset/seven-actors-move.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@chakra-ui/vue': patch
3+
'@chakra-ui/nuxt': patch
4+
---
5+
6+
Export utils

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"mdx-vue-loader": "^1.0.2",
8484
"node-fetch": "^2.6.0",
8585
"node-sass": "^4.13.1",
86-
"nuxt": "^2.13.3",
86+
"nuxt": "2.14.6",
8787
"portal-vue": "^2.1.6",
8888
"prismjs": "^1.19.0",
8989
"register-service-worker": "^1.6.2",

packages/chakra-ui-core/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 0.7.2-next.0
4+
5+
### Patch Changes
6+
7+
- Fix build for nuxt.js
8+
- Export utils
9+
310
## 0.7.1
411

512
### Patch Changes

packages/chakra-ui-core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"name": "@chakra-ui/vue",
3-
"version": "0.7.1",
3+
"version": "0.7.2-next.0",
44
"description": "Build Accessible and Responsive Vue.js websites and applications with speed ⚡️",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
7-
"unpkg": "dist/umd/index.min.js",
87
"sideEffects": false,
98
"maintainers": [
109
"Jonathan Bakebwa <[email protected]>"

packages/chakra-ui-core/src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,10 @@ export { default as defaultTheme } from '@chakra-ui/theme-vue'
124124

125125
// Props objects
126126
export { baseProps as boxProps, pseudoProps as pseudoBoxProps } from './config'
127+
128+
// Internal icons
129+
export { parsePackIcons } from './utils/icons'
130+
export { default as internalIcons } from './lib/internal-icons'
131+
132+
// Directives
133+
export { createServerDirective, createClientDirective } from './directives/chakra.directive'

packages/chakra-ui-core/src/utils/icons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import merge from 'lodash-es/merge'
1+
import { merge } from 'lodash-es'
22

33
/**
44
* @description Custom parse all Icons provided by user

packages/chakra-ui-nuxt/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## 0.2.2-next.0
4+
5+
### Patch Changes
6+
7+
- Export utils
8+
- Updated dependencies [undefined]
9+
- Updated dependencies [undefined]
10+
- @chakra-ui/vue@0.7.2-next.0
11+
312
## 0.2.1
413

514
### Patch Changes

packages/chakra-ui-nuxt/lib/module.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
const { resolve } = require('path')
22
const defu = require('defu')
3-
const { defaultTheme } = require('@chakra-ui/vue')
3+
const { defaultTheme, parsePackIcons, internalIcons, createServerDirective } = require('@chakra-ui/vue')
44
const { ChakraLoaderPlugin } = require('chakra-loader')
5-
const { parsePackIcons } = require('@chakra-ui/vue/src/utils/icons')
6-
const internalIcons = require('@chakra-ui/vue/src/lib/internal-icons')
7-
const { createServerDirective } = require('@chakra-ui/vue/src/directives/chakra.directive')
85

96
module.exports = function (moduleOptions) {
107
const { nuxt } = this

0 commit comments

Comments
 (0)