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

Commit 7599a3e

Browse files
Merge branch 'develop' into all-contributors/add-carwack
2 parents a499967 + 7e99062 commit 7599a3e

File tree

89 files changed

+3260
-546
lines changed

Some content is hidden

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

89 files changed

+3260
-546
lines changed

.changeset/config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@1.1.0/schema.json",
3-
"changelog": "@changesets/cli/changelog",
2+
"$schema": "https://unpkg.com/@changesets/config@1.4.0/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "chakra-ui/chakra-ui-vue" }
6+
],
47
"commit": false,
58
"linked": [],
69
"access": "restricted",

.eslintrc.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ module.exports = {
33
env: {
44
node: true
55
},
6-
plugins: ['testing-library'],
6+
plugins: [
7+
'testing-library',
8+
'@emotion'
9+
],
710
extends: [
811
'plugin:vue/essential',
912
'@vue/standard',
@@ -28,7 +31,8 @@ module.exports = {
2831
]
2932
}
3033
],
31-
'template-curly-spacing': 0
34+
'template-curly-spacing': 0,
35+
'@emotion/pkg-renaming': 'error'
3236
},
3337
parserOptions: {
3438
parser: 'babel-eslint'
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Build & Test Components
4+
name: PR Workflow
55

66
on:
7-
# Trigger the workflow on push or pull request,
8-
# but only for the master branch
9-
push:
7+
pull_request:
108
branches:
9+
- master
1110
- develop
12-
pull_request:
11+
push:
1312
branches:
1413
- develop
1514

@@ -20,15 +19,24 @@ jobs:
2019
matrix:
2120
node-version: [12.x]
2221
steps:
23-
- uses: actions/checkout@v2
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
2425
- name: Use Node.js ${{ matrix.node-version }}
2526
uses: actions/setup-node@v1
2627
with:
2728
node-version: ${{ matrix.node-version }}
28-
- run: yarn
29-
- run: yarn bootstrap
30-
- run: yarn lint
31-
- run: yarn build --if-present
32-
- run: yarn test
29+
30+
- name: Install dependencies
31+
run: yarn install --frozen-lockfile && yarn bootstrap
32+
33+
- name: Lint types and code
34+
run: yarn lint
35+
36+
- name: Build packages
37+
run: yarn build
38+
39+
- name: Run tests
40+
run: yarn test
3341
env:
3442
CI: true

.github/workflows/release.yml

Lines changed: 43 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,57 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Build & Test Components
4+
name: Release
55

66
on:
77
push:
8-
branches: [ master ]
9-
pull_request:
10-
branches: [ master ]
8+
paths:
9+
- "packages/**"
10+
branches:
11+
- master
1112

1213
jobs:
13-
build:
14+
release:
15+
name: Release
1416
runs-on: ubuntu-latest
15-
strategy:
16-
matrix:
17-
node-version: [12.x]
1817
steps:
19-
- uses: actions/checkout@v2
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v1
18+
- name: Checkout Repo
19+
uses: actions/checkout@master
2220
with:
23-
node-version: ${{ matrix.node-version }}
24-
- run: yarn
25-
- run: yarn bootstrap
26-
- run: yarn lint
27-
- run: yarn build --if-present
28-
- run: yarn test
21+
# This makes Actions fetch all Git history
22+
# so that Changesets can generate changelogs with the correct commits
23+
fetch-depth: 0
24+
25+
- name: Use Node.js 12.x
26+
uses: actions/setup-node@master
27+
with:
28+
node-version: 12.x
29+
30+
- name: Install dependencies
31+
run: yarn install --frozen-lockfile && yarn bootstrap
32+
33+
34+
- name: Linting
35+
run: yarn lint
36+
37+
- name: Building packages
38+
run: yarn build
39+
40+
- name: Testing components
41+
run: yarn test
2942
env:
3043
CI: true
31-
release:
32-
name: Release
33-
runs-on: ubuntu-latest
34-
steps:
35-
- name: Checkout Repo
36-
uses: actions/checkout@v1
37-
- name: Setup Node.js
38-
uses: actions/setup-node@v1
39-
with:
40-
node-version: 12
41-
- name: Install Dependencies
42-
run: yarn
43-
- name: Create Release Pull Request
44-
uses: changesets/action@master
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
publish-npm:
48-
needs: build
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v1
52-
- uses: actions/setup-node@v1
53-
with:
54-
node-version: 12
55-
registry-url: https://registry.npmjs.org/
56-
- run: yarn
57-
- run: yarn build
58-
- run: yarn publish-ci
59-
env:
60-
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6144

45+
- name: Setup CI Git User
46+
run: |
47+
git config --global user.name "codebender828"
48+
git config --global user.email "jbakebwa@163.com"
49+
50+
- name: Publish packages
51+
uses: changesets/action@master
52+
with:
53+
publish: yarn release
54+
commit: "chore(release): version packages"
55+
env:
56+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
57+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ lerna-debug.log
3535
.now
3636
config/.env
3737
packages/chakra-ui-nuxt/.github
38-
packages/chakra-ui-docs/static/sw.js
38+
packages/chakra-ui-docs/static/sw.js
39+
website/static/sw.js

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.storybook/config.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -7,59 +7,59 @@ import Canvas from './components/Canvas.vue'
77
import storyBookTheme from './theme'
88

99
import {
10-
faBraille,
11-
faAnchor,
12-
faPlus,
13-
faCoffee,
14-
faAmbulance,
15-
faCalendar,
16-
faCar,
17-
faCaretLeft,
18-
faBolt,
19-
faUserSlash,
20-
faCheckCircle,
21-
faCog,
22-
faLock,
23-
faEye,
24-
faEyeSlash } from '@fortawesome/free-solid-svg-icons'
25-
26-
import {
27-
faChevronCircleUp,
28-
faSearch,
29-
faTimesCircle } from '@fortawesome/pro-light-svg-icons'
30-
31-
import {
32-
faGithub
33-
} from '@fortawesome/free-brands-svg-icons'
34-
35-
import {
36-
faDiscord
37-
} from '@fortawesome/free-brands-svg-icons'
10+
feAnchor,
11+
fePlus,
12+
feShoppingBag,
13+
feCalendar,
14+
feShoppingCart,
15+
feChevronLeft,
16+
feStar,
17+
feUserMinus,
18+
feCheckCircle,
19+
feSettings,
20+
feLock,
21+
feEye,
22+
feSearch,
23+
feEyeOff,
24+
feGithub,
25+
feAirplay,
26+
feCloudRain,
27+
feUploadCloud,
28+
feMap,
29+
feSend,
30+
feServer
31+
} from 'feather-icons-paths'
3832

3933
Vue.use(Chakra, {
4034
icons: {
41-
iconPack: 'fa',
4235
iconSet: {
43-
faBraille,
44-
faAnchor,
45-
faPlus,
46-
faCoffee,
47-
faAmbulance,
48-
faCalendar,
49-
faCar,
50-
faCaretLeft,
51-
faBolt,
52-
faUserSlash,
53-
faChevronCircleUp,
54-
faSearch,
55-
faTimesCircle,
56-
faGithub,
57-
faDiscord,
58-
faCheckCircle,
59-
faCog,
60-
faLock,
61-
faEye,
62-
faEyeSlash
36+
feAnchor,
37+
fePlus,
38+
feShoppingBag,
39+
feCalendar,
40+
feShoppingCart,
41+
feChevronLeft,
42+
feStar,
43+
feUserMinus,
44+
feCheckCircle,
45+
feSettings,
46+
feLock,
47+
feEye,
48+
feSearch,
49+
feEyeOff,
50+
feGithub,
51+
feAirplay,
52+
feCloudRain,
53+
feUploadCloud,
54+
feMap,
55+
feSend,
56+
feServer
57+
},
58+
extend: {
59+
discord: {
60+
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>`,
61+
viewBox: '0 0 496 512'
62+
}
6363
}
6464
}
6565
})

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@ Head over here => https://vue.chakra-ui.com
5454
- [Storybook Components](#storybook-components)
5555
- [Development for Contributing:](#development-for-contributing)
5656
- [Related](#related)
57-
- [Contributors ✨](#contributors)
57+
- [Contributors ✨](#contributors-)
5858

5959
## Installation
6060

6161
```bash
62-
yarn add @chakra-ui/vue emotion
62+
yarn add @chakra-ui/vue @emotion/css
6363
```
6464

6565
or
6666

6767
```bash
68-
npm install @chakra-ui/vue emotion
68+
npm install @chakra-ui/vue @emotion/css
6969
```
7070

7171
<a id="nuxt-usage"></a>
@@ -74,7 +74,7 @@ npm install @chakra-ui/vue emotion
7474
> If you're using Nuxt, you need to install `@nuxtjs/emotion` package as well to server-side render your styles.
7575
7676
```bash
77-
yarn add @chakra-ui/vue emotion @nuxtjs/emotion
77+
yarn add @chakra-ui/vue @emotion/css @nuxtjs/emotion
7878
```
7979

8080
## Usage
@@ -170,7 +170,7 @@ Interested in contributing? See our [open issues](https://github.com/chakra-ui/c
170170

171171
```bash
172172
yarn install
173-
yarn bootstrap
173+
yarn build && yarn bootstrap
174174
yarn dev
175175
```
176176

0 commit comments

Comments
 (0)