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

Commit a057f5b

Browse files
Merge pull request #62 from chakra-ui/develop
chore: alpha release candidate `@chakra-ui/[email protected]`
2 parents ef04724 + 0fd7b9c commit a057f5b

File tree

122 files changed

+5248
-811
lines changed

Some content is hidden

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

122 files changed

+5248
-811
lines changed

.changeset/dull-masks-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chakra-ui/vue-auto-import': patch
3+
---
4+
5+
Improve resolver to import from all Chakra UI components

.changeset/khaki-hounds-hunt.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
'@chakra-ui/c-accordion': patch
3+
'@chakra-ui/c-alert': patch
4+
'@chakra-ui/c-badge': patch
5+
'@chakra-ui/c-button': patch
6+
'@chakra-ui/c-close-button': patch
7+
'@chakra-ui/c-code': patch
8+
'@chakra-ui/c-color-mode': patch
9+
'@chakra-ui/c-flex': patch
10+
'@chakra-ui/c-icon': patch
11+
'@chakra-ui/c-modal': patch
12+
'@chakra-ui/c-popper': patch
13+
'@chakra-ui/c-portal': patch
14+
'@chakra-ui/c-reset': patch
15+
'@chakra-ui/c-spinner': patch
16+
'@chakra-ui/c-theme-provider': patch
17+
'@chakra-ui/c-visually-hidden': patch
18+
'@chakra-ui/vue-next': patch
19+
'@chakra-ui/nuxt-next': patch
20+
'@chakra-ui/vue-system': patch
21+
'@chakra-ui/vue-test-utils': patch
22+
'@chakra-ui/vue-theme': patch
23+
'@chakra-ui/vue-theme-tools': patch
24+
'@chakra-ui/vue-utils': patch
25+
'@chakra-ui/vue-auto-import': patch
26+
'@chakra-ui/vue-docs': patch
27+
---
28+
29+
Created code component

.changeset/kind-tools-camp.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
'@chakra-ui/c-accordion': minor
3+
'@chakra-ui/c-alert': minor
4+
'@chakra-ui/c-button': minor
5+
'@chakra-ui/c-close-button': minor
6+
'@chakra-ui/c-code': minor
7+
'@chakra-ui/c-color-mode': minor
8+
'@chakra-ui/c-flex': minor
9+
'@chakra-ui/c-icon': minor
10+
'@chakra-ui/c-modal': minor
11+
'@chakra-ui/c-popper': minor
12+
'@chakra-ui/c-portal': minor
13+
'@chakra-ui/c-reset': minor
14+
'@chakra-ui/c-spinner': minor
15+
'@chakra-ui/c-theme-provider': minor
16+
'@chakra-ui/c-visually-hidden': minor
17+
'@chakra-ui/vue-next': minor
18+
'@chakra-ui/vue-layout': minor
19+
'@chakra-ui/nuxt-next': minor
20+
'@chakra-ui/vue-system': minor
21+
'@chakra-ui/vue-test-utils': minor
22+
'@chakra-ui/vue-theme': minor
23+
'@chakra-ui/vue-theme-tools': minor
24+
'@chakra-ui/vue-utils': minor
25+
'@chakra-ui/vue-auto-import': minor
26+
'@chakra-ui/vue-docs': minor
27+
---
28+
29+
Created layout components and updated theminnng types for packages.

.changeset/proud-apples-compare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chakra-ui/c-flex': patch
3+
---
4+
5+
Fix bug where it was not possible to use object as prop

docs/.vitepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function getSetupSidebar() {
5555
{ text: 'Alert', link: '/components/alert' },
5656
{ text: 'Badge', link: '/components/badge' },
5757
{ text: 'Button', link: '/components/button' },
58+
{ text: 'Code', link: '/components/code' },
5859
{ text: 'Icon', link: '/components/icon' },
5960
{ text: 'Spinner', link: '/components/spinner' },
6061
{ text: 'CSS reset', link: '/components/css-reset' },

docs/components/code.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Code
2+
3+
Code is a component used to display inline code. It is composed from the Box component with a font family of `mono` for displaying code.
4+
5+
## Import
6+
7+
```js
8+
import { CCode } from "@chakra-ui/vue-next"
9+
```
10+
11+
## Usage
12+
```vue
13+
<c-code>hello world</c-code>
14+
```
15+
16+
### Code Color
17+
18+
Pass the `colorScheme` prop to customize the color of the Badge. `colorScheme` can be any **color key** that exists in `theme.colors`.
19+
20+
TODO: Link to theming page
21+
22+
```vue
23+
<c-code>hello world, default</c-code>
24+
<c-code color-scheme="green">hello world, green</c-code>
25+
<c-code color-scheme="red">hello world, red</c-code>
26+
<c-code color-scheme="purple">hello world, purple</c-code>
27+
```
28+
29+
## Props
30+
31+
| Name | Type | Description | Default |
32+
| :---: | :---: | :---: | :---: |
33+
|`colorScheme`|`string`|Color Scheme to be applied|"cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "whiteAlpha" | "blackAlpha" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"`|`"gray"`|

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
"@types/tinycolor2": "^1.4.2",
6060
"@typescript-eslint/eslint-plugin": "^2.34.0",
6161
"@typescript-eslint/parser": "4.0.1",
62-
"@vitejs/plugin-vue": "^1.1.4",
62+
"@vitejs/plugin-vue": "^1.2.1",
6363
"@vue/babel-plugin-jsx": "^1.0.3",
64-
"@vue/compiler-sfc": "^3.0.6",
64+
"@vue/compiler-sfc": "^3.0.11",
6565
"@vue/eslint-config-typescript": "^5.1.0",
6666
"@vuedx/typecheck": "^0.4.1",
6767
"@vuedx/typescript-plugin-vue": "^0.4.1",
@@ -107,13 +107,13 @@
107107
"ts-jest": "^26.5.0",
108108
"ts-node": "^9.0.0",
109109
"typescript": "^4.1.3",
110-
"vite": "^2.0.1",
111-
"vite-plugin-components": "^0.6.6",
112-
"vite-plugin-pages": "^0.5.1",
110+
"vite": "2.1.5",
111+
"vite-plugin-components": "^0.8.3",
112+
"vite-plugin-pages": "^0.9.2",
113113
"vitepress": "^0.12.0",
114114
"vue": ">=3.0.5",
115115
"vue-jest": "^5.0.0-alpha.7",
116-
"vue-router": "^4.0.4",
116+
"vue-router": "^4.0.6",
117117
"vue3-perfect-scrollbar": "^1.5.5"
118118
}
119119
}

packages/c-badge/CHANGELOG.md

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

packages/c-badge/README.md

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

packages/c-badge/examples/base-badge.vue

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

0 commit comments

Comments
 (0)