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

Commit 6e4d703

Browse files
Merge pull request #474 from chakra-ui/develop
chore: `@chakra-ui/[email protected]`, `@chakra-ui/nuxt` release candidate
2 parents cf67d4b + e1384b6 commit 6e4d703

File tree

151 files changed

+7637
-2937
lines changed

Some content is hidden

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

151 files changed

+7637
-2937
lines changed

.all-contributorsrc

+29-1
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,40 @@
265265
"contributions": [
266266
"doc"
267267
]
268+
},
269+
{
270+
"login": "abelnnieva",
271+
"name": "Abel N. Nieva",
272+
"avatar_url": "https://avatars.githubusercontent.com/u/931497?v=4",
273+
"profile": "https://github.com/abelnnieva",
274+
"contributions": [
275+
"code"
276+
]
277+
},
278+
{
279+
"login": "simpletrontdip",
280+
"name": "Lê Thông",
281+
"avatar_url": "https://avatars.githubusercontent.com/u/20158564?v=4",
282+
"profile": "https://github.com/simpletrontdip",
283+
"contributions": [
284+
"code"
285+
]
286+
},
287+
{
288+
"login": "Pwuts",
289+
"name": "Reinier van der Leer",
290+
"avatar_url": "https://avatars.githubusercontent.com/u/12185583?v=4",
291+
"profile": "https://pwuts.nl/",
292+
"contributions": [
293+
"code"
294+
]
268295
}
269296
],
270297
"contributorsPerLine": 7,
271298
"projectName": "chakra-ui-vue",
272299
"projectOwner": "chakra-ui",
273300
"repoType": "github",
274301
"repoHost": "https://github.com",
275-
"skipCi": true
302+
"skipCi": true,
303+
"commitConvention": "none"
276304
}

.changeset/healthy-clocks-train.md

+6
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+
fix(menu): update MenuOption defaultValue prop to inner value

.changeset/large-bananas-allow.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@chakra-ui/vue': minor
3+
'@chakra-ui/nuxt': minor
4+
'@chakra-ui/theme-vue': minor
5+
'chakra-ui-docs': minor
6+
---
7+
8+
Backport v1 Theme API to v0.x

.storybook/config.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { configure, addDecorator, addParameters } from '@storybook/vue';
22
import Vue from 'vue'
33
import VueLive from 'vue-live'
44
import Lorem from 'vue-lorem-ipsum'
5-
import Chakra from '../packages/chakra-ui-core/src'
5+
import Chakra, { mode } from '../packages/chakra-ui-core/src'
66
import Canvas from './components/Canvas.vue'
77
import storyBookTheme from './theme'
88

@@ -31,6 +31,15 @@ import {
3131
} from 'feather-icons-paths'
3232

3333
Vue.use(Chakra, {
34+
extendTheme: {
35+
baseStyles: {
36+
// CButton: ({ colorMode, theme }) => ({
37+
// bg: mode('tomato', 'hotpink'),
38+
// borderRadius: "lg",
39+
// shadow: 'xl'
40+
// })
41+
}
42+
},
3443
icons: {
3544
iconSet: {
3645
feAnchor,
@@ -60,7 +69,7 @@ Vue.use(Chakra, {
6069
path: `<path fill="currentColor" d="M297.216 243.2c0 15.616-11.52 28.416-26.112 28.416-14.336 0-26.112-12.8-26.112-28.416s11.52-28.416 26.112-28.416c14.592 0 26.112 12.8 26.112 28.416zm-119.552-28.416c-14.592 0-26.112 12.8-26.112 28.416s11.776 28.416 26.112 28.416c14.592 0 26.112-12.8 26.112-28.416.256-15.616-11.52-28.416-26.112-28.416zM448 52.736V512c-64.494-56.994-43.868-38.128-118.784-107.776l13.568 47.36H52.48C23.552 451.584 0 428.032 0 398.848V52.736C0 23.552 23.552 0 52.48 0h343.04C424.448 0 448 23.552 448 52.736zm-72.96 242.688c0-82.432-36.864-149.248-36.864-149.248-36.864-27.648-71.936-26.88-71.936-26.88l-3.584 4.096c43.52 13.312 63.744 32.512 63.744 32.512-60.811-33.329-132.244-33.335-191.232-7.424-9.472 4.352-15.104 7.424-15.104 7.424s21.248-20.224 67.328-33.536l-2.56-3.072s-35.072-.768-71.936 26.88c0 0-36.864 66.816-36.864 149.248 0 0 21.504 37.12 78.08 38.912 0 0 9.472-11.52 17.152-21.248-32.512-9.728-44.8-30.208-44.8-30.208 3.766 2.636 9.976 6.053 10.496 6.4 43.21 24.198 104.588 32.126 159.744 8.96 8.96-3.328 18.944-8.192 29.44-15.104 0 0-12.8 20.992-46.336 30.464 7.68 9.728 16.896 20.736 16.896 20.736 56.576-1.792 78.336-38.912 78.336-38.912z" fa-key="3" fill="currentColor"></path>`,
6170
viewBox: '0 0 496 512'
6271
}
63-
}
72+
},
6473
}
6574
})
6675

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
224224
<td align="center"><a href="https://github.com/MaySoMusician"><img src="https://avatars.githubusercontent.com/u/34566290?v=4?s=50" width="50px;" alt=""/><br /><sub><b>MaySoMusician</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=MaySoMusician" title="Code">💻</a></td>
225225
<td align="center"><a href="https://github.com/MWFIAE"><img src="https://avatars.githubusercontent.com/u/6072971?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Martin</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=MWFIAE" title="Code">💻</a> <a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=MWFIAE" title="Tests">⚠️</a></td>
226226
<td align="center"><a href="http://linkedin.com/in/ejiro-asiuwhu"><img src="https://avatars.githubusercontent.com/u/45228014?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Ejiro Asiuwhu</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=ejirocodes" title="Documentation">📖</a></td>
227+
<td align="center"><a href="https://github.com/abelnnieva"><img src="https://avatars.githubusercontent.com/u/931497?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Abel N. Nieva</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=abelnnieva" title="Code">💻</a></td>
228+
</tr>
229+
<tr>
230+
<td align="center"><a href="https://github.com/simpletrontdip"><img src="https://avatars.githubusercontent.com/u/20158564?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Lê Thông</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=simpletrontdip" title="Code">💻</a></td>
231+
<td align="center"><a href="https://pwuts.nl/"><img src="https://avatars.githubusercontent.com/u/12185583?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Reinier van der Leer</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=Pwuts" title="Code">💻</a></td>
227232
</tr>
228233
</table>
229234

bundlesize.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": [
33
{
4-
"path": "./packages/chakra-ui-core/dist/umd/*.js",
4+
"path": "./packages/chakra-ui-core/dist/cjs/*.js",
55
"maxSize": "85kB"
66
},
77
{

config/.env.defaults

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
BASE_URL=http://localhost:3000
2-
MIXPANEL_TOKEN=91ec73fd1b8e164d6cfbae6bf1a3e7d1

jest.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ module.exports = {
2020
breadstick: require.resolve('./tests/test-utils/module-mock.js')
2121
},
2222
snapshotSerializers: [
23-
'jest-serializer-vue'
23+
'jest-serializer-vue',
24+
'@emotion/jest/serializer'
2425
],
2526
testMatch: [
2627
'**/**/*.test.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'

package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@
4444
"docs-dev": "yarn workspace chakra-ui-docs dev",
4545
"docs-build": "yarn workspace chakra-ui-docs build",
4646
"docs-serve": "yarn workspace chakra-ui-docs nuxt start",
47-
"evalbundle": "bundlesize"
47+
"evalbundle": "bundlesize",
48+
"contributors:add": "all-contributors add",
49+
"contributors:generate": "all-contributors generate"
4850
},
4951
"dependencies": {
52+
"@chakra-ui/styled-system": "^1.12.1",
5053
"@emotion/css": "^11.0.0",
5154
"@mdx-js/vue-loader": "^1.6.1",
5255
"@nuxtjs/dotenv": "^1.4.0",
@@ -61,7 +64,6 @@
6164
"@storybook/storybook-deployer": "^2.8.1",
6265
"@storybook/theming": "^5.2.8",
6366
"@storybook/vue": "^5.3.3",
64-
"@styled-system/css": "^5.0.23",
6567
"aria-hidden": "^1.1.1",
6668
"breadstick": "^0.2.14",
6769
"can-use-dom": "^0.1.0",
@@ -85,13 +87,11 @@
8587
"mdx-vue": "^1.0.2",
8688
"mdx-vue-loader": "^1.0.2",
8789
"node-fetch": "^2.6.0",
88-
"node-sass": "^4.13.1",
8990
"nuxt": "2.14.6",
9091
"portal-vue": "^2.1.6",
9192
"prismjs": "^1.19.0",
9293
"register-service-worker": "^1.6.2",
9394
"sass-loader": "^8.0.2",
94-
"styled-system": "^5.1.2",
9595
"v-scroll-lock": "^1.1.0",
9696
"vue": "^2.6.11",
9797
"vue-error-boundary": "^1.0.3",
@@ -107,9 +107,10 @@
107107
"@babel/cli": "^7.8.4",
108108
"@babel/core": "^7.9.0",
109109
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
110+
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
110111
"@babel/plugin-transform-modules-commonjs": "^7.7.4",
111112
"@babel/plugin-transform-parameters": "^7.7.4",
112-
"@babel/preset-env": "^7.9.5",
113+
"@babel/preset-env": "^7.15.0",
113114
"@babel/runtime-corejs2": "^7.8.7",
114115
"@changesets/changelog-github": "^0.2.7",
115116
"@changesets/cli": "^2.7.1",
@@ -118,6 +119,7 @@
118119
"@commitlint/config-conventional": "^8.2.0",
119120
"@emotion/babel-plugin": "^11.1.2",
120121
"@emotion/eslint-plugin": "^11.0.0",
122+
"@emotion/jest": "^11.3.0",
121123
"@nuxtjs/eslint-config": "^3.0.0",
122124
"@nuxtjs/eslint-module": "^1.0.0",
123125
"@nuxtjs/google-analytics": "^2.4.0",
@@ -137,6 +139,7 @@
137139
"@vue/eslint-config-standard": "^4.0.0",
138140
"@vue/test-utils": "1.0.0-beta.29",
139141
"add": "^2.0.6",
142+
"all-contributors-cli": "^6.20.0",
140143
"babel-core": "7.0.0-bridge.0",
141144
"babel-eslint": "^10.1.0",
142145
"babel-helper-vue-jsx-merge-props": "^2.0.3",
@@ -169,7 +172,6 @@
169172
"rollup-plugin-scss": "^2.1.0",
170173
"rollup-plugin-terser": "^5.1.2",
171174
"rollup-plugin-vue": "^5.1.4",
172-
"styled-system": "^5.1.2",
173175
"v-scroll-lock": "^1.1.0",
174176
"vue-loader": "^15.7.1",
175177
"vue-lorem-ipsum": "^0.0.1",

packages/chakra-ui-core/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 0.9.4
4+
5+
### Patch Changes
6+
7+
- fix: syncs core and nuxt packages
8+
39
## 0.9.3
410

511
### Patch Changes

packages/chakra-ui-core/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chakra-ui/vue",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
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",
@@ -21,7 +21,7 @@
2121
"access": "public"
2222
},
2323
"scripts": {
24-
"build": "yarn clean && rollup -c && rollup -c --environment MINIFY",
24+
"build": "yarn clean && rollup -c --environment MINIFY",
2525
"dev": "rollup --config rollup.dev.config.js --watch",
2626
"test": "echo testing ...",
2727
"clean": "rimraf ./dist"
@@ -36,8 +36,8 @@
3636
"max-overall-size": "85KB"
3737
},
3838
"dependencies": {
39+
"@chakra-ui/styled-system": "^1.12.1",
3940
"@popperjs/core": "^2.4.0",
40-
"@styled-system/css": "^5.0.23",
4141
"animejs": "^3.1.0",
4242
"aria-hidden": "^1.1.1",
4343
"breadstick": "^0.2.14",
@@ -46,14 +46,14 @@
4646
"focus-trap-vue": "^0.0.4",
4747
"lodash-es": "^4.17.15",
4848
"portal-vue": "^2.1.6",
49-
"styled-system": "^5.1.2",
5049
"v-scroll-lock": "^1.1.0"
5150
},
5251
"peerDependencies": {
5352
"@emotion/css": "^11.0.0",
5453
"vue": "^2.6.10"
5554
},
5655
"devDependencies": {
56+
"@fortawesome/fontawesome-common-types": "^0.2.36",
5757
"rimraf": "^3.0.2"
5858
},
5959
"keywords": [

packages/chakra-ui-core/rollup.config.js

+20-18
Original file line numberDiff line numberDiff line change
@@ -95,24 +95,26 @@ const entries = {
9595
* Configurations
9696
*/
9797
export default () => {
98-
const config = [{
99-
input: entries,
100-
output: {
101-
dir: 'dist/esm/',
102-
format: 'esm',
103-
banner: bannerTxt
104-
},
105-
...commons
106-
},
107-
{
108-
input: entries,
109-
output: {
110-
dir: 'dist/cjs/',
111-
format: 'cjs',
112-
exports: 'named',
113-
banner: bannerTxt
98+
const config = [
99+
{
100+
input: entries,
101+
output: {
102+
dir: 'dist/esm/',
103+
format: 'esm',
104+
banner: bannerTxt
105+
},
106+
...commons
114107
},
115-
...commons
116-
}]
108+
{
109+
input: entries,
110+
output: {
111+
dir: 'dist/cjs/',
112+
format: 'cjs',
113+
exports: 'named',
114+
banner: bannerTxt
115+
},
116+
...commons
117+
}
118+
]
117119
return config
118120
}

0 commit comments

Comments
 (0)