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

Commit 36d890b

Browse files
Merge pull request #92 from chakra-ui/develop
chore: release candidate v0.7.0-alpha.0
2 parents 0cb9cab + 2024423 commit 36d890b

File tree

83 files changed

+3966
-1194
lines changed

Some content is hidden

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

83 files changed

+3966
-1194
lines changed

.DS_Store

-6 KB
Binary file not shown.

.changeset/dry-mayflies-deny.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
'@chakra-ui/c-accordion': minor
3+
'@chakra-ui/c-alert': minor
4+
'@chakra-ui/c-breadcrumb': minor
5+
'@chakra-ui/c-button': minor
6+
'@chakra-ui/c-close-button': minor
7+
'@chakra-ui/c-code': minor
8+
'@chakra-ui/c-color-mode': minor
9+
'@chakra-ui/c-flex': minor
10+
'@chakra-ui/c-focus-lock': minor
11+
'@chakra-ui/c-form-control': minor
12+
'@chakra-ui/c-icon': minor
13+
'@chakra-ui/c-modal': minor
14+
'@chakra-ui/c-motion': minor
15+
'@chakra-ui/c-popper': minor
16+
'@chakra-ui/c-portal': minor
17+
'@chakra-ui/c-reset': minor
18+
'@chakra-ui/c-scroll-lock': minor
19+
'@chakra-ui/c-spinner': minor
20+
'@chakra-ui/c-theme-provider': minor
21+
'@chakra-ui/c-visually-hidden': minor
22+
'@chakra-ui/vue-next': minor
23+
'@chakra-ui/vue-layout': minor
24+
'@chakra-ui/nuxt-next': minor
25+
'@chakra-ui/vue-system': minor
26+
'@chakra-ui/vue-test-utils': minor
27+
'@chakra-ui/vue-theme': minor
28+
'@chakra-ui/vue-theme-tools': minor
29+
'@chakra-ui/vue-utils': minor
30+
'@chakra-ui/vue-a11y': minor
31+
'@chakra-ui/vue-composables': minor
32+
'@chakra-ui/vue-auto-import': minor
33+
'@chakra-ui/vue-docs': minor
34+
---
35+
36+
Create `CFormControl` component

.changeset/metal-tables-poke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chakra-ui/c-reset': patch
3+
---
4+
5+
remove console.logs

.github/workflows/pr.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
matrix:
2020
node-version: [14]
2121
steps:
22+
- name: Get Yarn cache path
23+
id: yarn-cache
24+
run: echo "::set-output name=dir::$(yarn cache dir)"
25+
2226
- name: Checkout
2327
uses: actions/checkout@v2
2428

@@ -27,16 +31,52 @@ jobs:
2731
with:
2832
node-version: ${{ matrix.node-version }}
2933

34+
- name: Load Yarn cache
35+
uses: actions/cache@v2
36+
with:
37+
path: ${{ steps.yarn-cache.outputs.dir }}
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-yarn-
41+
3042
- name: Install dependencies
31-
run: yarn install --frozen-lockfile && yarn bootstrap
43+
run: yarn install --frozen-lockfile
3244

3345
- name: Lint types and code
3446
run: yarn lint
3547

3648
- name: Build packages
37-
run: yarn build && yarn bootstrap
49+
run: yarn build
3850

3951
- name: Run tests
4052
run: yarn test
4153
env:
42-
CI: true
54+
CI: true
55+
56+
bundlesize:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Get Yarn cache path
60+
id: yarn-cache
61+
run: echo "::set-output name=dir::$(yarn cache dir)"
62+
63+
- name: Checkout
64+
uses: actions/checkout@master
65+
66+
- name: Setup Node.js 14.x
67+
uses: actions/setup-node@master
68+
with:
69+
node-version: 14.x
70+
71+
- name: Load Yarn cache
72+
uses: actions/cache@v2
73+
with:
74+
path: ${{ steps.yarn-cache.outputs.dir }}
75+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
76+
restore-keys: |
77+
${{ runner.os }}-yarn-
78+
- name: compressed-size-action
79+
uses: preactjs/compressed-size-action@v2
80+
with:
81+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
82+
pattern: "**/dist/**/*.prod.js"

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
name: Release
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Get Yarn cache path
19+
id: yarn-cache
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
1822
- name: Checkout Repo
1923
uses: actions/checkout@master
2024
with:
@@ -27,6 +31,14 @@ jobs:
2731
with:
2832
node-version: 14
2933

34+
- name: Load Yarn cache
35+
uses: actions/cache@v2
36+
with:
37+
path: ${{ steps.yarn-cache.outputs.dir }}
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-yarn-
41+
3042
- name: Install dependencies
3143
run: yarn install --frozen-lockfile && yarn bootstrap
3244

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ dist
44
yarn-error.log
55
test-vite-project
66

7+
.DS_Store
8+
79
# Logs
810
logs
911
*.log
@@ -97,5 +99,12 @@ dist
9799

98100
# vscode history extension
99101
.history
102+
103+
# SSG
100104
website/.vite-ssg-temp
101-
.npmrc
105+
106+
# npmrc
107+
.npmrc
108+
109+
# Cypress screenshots generated
110+
cypress/screenshots

.size-limit.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"path": "packages/core/dist/chakra-ui-vue-next.cjs.prod.js",
4+
"limit": "85 KB",
5+
"ignore": [
6+
"vue",
7+
"@emotion/css"
8+
]
9+
},
10+
{
11+
"path": "packages/core/dist/chakra-ui-vue-next.esm.js",
12+
"limit": "85 KB",
13+
"ignore": [
14+
"vue",
15+
"@emotion/css"
16+
]
17+
}
18+
]

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,24 @@ The official working repository for V1 of Chakra UI Vue with Vue 3 support.
99
yarn install
1010
```
1111

12-
### Build components
12+
### Watch components
1313
```bash
14-
yarn build
15-
```
16-
17-
### Bootstrap and link packages
18-
```bash
19-
yarn bootstrap
14+
yarn start
2015
```
2116

2217
### Component playground (based on vite)
2318
```bash
24-
yarn dev
19+
# In one background terminal (Only needs to be run once)
20+
yarn start
21+
22+
# In another terminal
23+
yarn playground:dev
2524
```
2625

2726
## Development Guide
2827
### Major todos:
29-
- [ ] Documentation
30-
- [ ] Accessibility JS hooks (Documented in Roadmap)
28+
- [-] Documentation (WIP)
29+
- [-] Accessibility JS hooks (WIP, Documented in Roadmap)
3130

3231
### Creating a new commit message
3332
The commits follow the [conventional commit format](https://www.conventionalcommits.org/). Husky is setup to lint your commit messages to match this format.

_templates/generator/component/package.json.ejs.t

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
55
{
66
"name": "<%= '@chakra-ui/' + h.changeCase.paramCase(name)%>",
77
"description": "<%= 'Chakra UI Vue | ' + h.changeCase.sentence(description) + ' component'%>",
8-
"version": "1.0.0",
9-
"main": "dist/cjs/index.js",
10-
"module": "dist/esm/index.js",
11-
"types": "dist/types/index.d.ts",
12-
"typings": "dist/types/index.d.ts",
8+
"version": "0.0.0-alpha.0",
9+
"main": "<%= 'dist/chakra-ui-' + h.changeCase.paramCase(name) + '.cjs.js' %>",
10+
"module": "<%= 'dist/chakra-ui-' + h.changeCase.paramCase(name) + '.esm.js' %>",
1311
"author": "Jonathan Bakebwa <codebender828@gmail.com>",
1412
"homepage": "https://github.com/chakra-ui/chakra-ui-vue-next#readme",
1513
"license": "MIT",
@@ -18,13 +16,10 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
1816
],
1917
"exports": {
2018
".": {
21-
"require": "./dist/cjs/index.js",
22-
"default": "./dist/esm/index.js"
19+
"require": "<%= './dist/chakra-ui-' + h.changeCase.paramCase(name) + '.cjs.js' %>",
20+
"default": "<%= './dist/chakra-ui-' + h.changeCase.paramCase(name) + '.esm.js' %>"
2321
}
2422
},
25-
"publishConfig": {
26-
"access": "public"
27-
},
2823
"repository": {
2924
"type": "git",
3025
"url": "git+https://github.com/chakra-ui/chakra-ui-vue-next.git"
@@ -33,22 +28,19 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
3328
"url": "https://github.com/chakra-ui/chakra-ui-vue-next/issues"
3429
},
3530
"sideEffects": false,
36-
"scripts": {
37-
"build": "rimraf ./dist && concurrently yarn:build:*",
38-
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps",
39-
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps",
40-
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
41-
"watch": "concurrently yarn:watch:*",
42-
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps --watch",
43-
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps --watch",
44-
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch --incremental"
31+
"scripts": {
32+
"clean": "rimraf dist"
4533
},
4634
"dependencies": {
47-
"@chakra-ui/styled-system": "^1.9.0",
48-
"@chakra-ui/vue-system": "*",
49-
"@chakra-ui/vue-utils": "*"
35+
"@chakra-ui/vue-system": "0.1.0-alpha.5"
36+
},
37+
"devDependencies": {
38+
"vue": "^3.1.4"
5039
},
5140
"peerDependencies": {
52-
"vue": ">=3.0.5"
41+
"vue": "^3.1.4"
42+
},
43+
"publishConfig": {
44+
"access": "public"
5345
}
5446
}

0 commit comments

Comments
 (0)