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

Commit a25addc

Browse files
Merge pull request #280 from chakra-ui/develop
release @chakra-ui/[email protected]
2 parents 7c452f9 + 4564d8d commit a25addc

File tree

87 files changed

+1796
-143
lines changed

Some content is hidden

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

87 files changed

+1796
-143
lines changed

.changeset/spicy-doors-heal.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
"@chakra-ui/vue-composables": minor
3+
"@chakra-ui/c-close-button": minor
4+
"@chakra-ui/c-form-control": minor
5+
"@chakra-ui/c-live-region": minor
6+
"@chakra-ui/c-media-query": minor
7+
"@chakra-ui/c-scroll-lock": minor
8+
"@chakra-ui/c-breadcrumb": minor
9+
"@chakra-ui/c-accordion": minor
10+
"@chakra-ui/c-pin-input": minor
11+
"@chakra-ui/c-checkbox": minor
12+
"@chakra-ui/c-skip-nav": minor
13+
"@chakra-ui/c-textarea": minor
14+
"@chakra-ui/c-spinner": minor
15+
"@chakra-ui/c-avatar": minor
16+
"@chakra-ui/c-button": minor
17+
"@chakra-ui/c-motion": minor
18+
"@chakra-ui/vue-accessibilty": minor
19+
"@chakra-ui/c-alert": minor
20+
"@chakra-ui/c-image": minor
21+
"@chakra-ui/c-input": minor
22+
"@chakra-ui/c-modal": minor
23+
"@chakra-ui/c-table": minor
24+
"@chakra-ui/c-code": minor
25+
"@chakra-ui/c-menu": minor
26+
"@chakra-ui/vue-layout": minor
27+
"@chakra-ui/vue-system": minor
28+
"@chakra-ui/c-tag": minor
29+
"@chakra-ui/vue-utils": minor
30+
"@chakra-ui/vue-next": minor
31+
---
32+
33+
Create Live Region, Textarea and useBreakpoint and useBreakpointValue hooks and
34+
components

@types/components.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Typescript support for @chakra-ui/vue-next2.1.0-beta.2 auto-imported
2+
* Typescript support for @chakra-ui/vue-next2.1.0-beta.3 auto-imported
33
* components using `unplugin-vue-components,`
44
*
55
* @see: https://github.com/antfu/unplugin-vue-components/#typescript
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-02-25T17:54:59.918Z
9+
* This file was generated on 2023-02-26T20:07:20.175Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -155,9 +155,19 @@ declare module "@vue/runtime-core" {
155155
CStack: typeof import("@chakra-ui/vue-next")["CStack"]
156156
CStackDivider: typeof import("@chakra-ui/vue-next")["CStackDivider"]
157157
CStackItem: typeof import("@chakra-ui/vue-next")["CStackItem"]
158+
CTable: typeof import("@chakra-ui/vue-next")["CTable"]
159+
CTableCaption: typeof import("@chakra-ui/vue-next")["CTableCaption"]
160+
CTableContainer: typeof import("@chakra-ui/vue-next")["CTableContainer"]
161+
CTbody: typeof import("@chakra-ui/vue-next")["CTbody"]
162+
CTd: typeof import("@chakra-ui/vue-next")["CTd"]
158163
CText: typeof import("@chakra-ui/vue-next")["CText"]
164+
CTextarea: typeof import("@chakra-ui/vue-next")["CTextarea"]
165+
CTfoot: typeof import("@chakra-ui/vue-next")["CTfoot"]
166+
CTh: typeof import("@chakra-ui/vue-next")["CTh"]
167+
CThead: typeof import("@chakra-ui/vue-next")["CThead"]
159168
CThemeProvider: typeof import("@chakra-ui/vue-next")["CThemeProvider"]
160169
CToastContainer: typeof import("@chakra-ui/vue-next")["CToastContainer"]
170+
CTr: typeof import("@chakra-ui/vue-next")["CTr"]
161171
CUnorderedList: typeof import("@chakra-ui/vue-next")["CUnorderedList"]
162172
CVStack: typeof import("@chakra-ui/vue-next")["CVStack"]
163173
CVisuallyHidden: typeof import("@chakra-ui/vue-next")["CVisuallyHidden"]

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ 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": "0.0.0-next.0",
9-
"main": "<%= 'dist/chakra-ui-' + h.changeCase.paramCase(name) + '.cjs.js' %>",
10-
"module": "<%= 'dist/chakra-ui-' + h.changeCase.paramCase(name) + '.esm.js' %>",
8+
"version": "0.0.0-beta.0",
119
"author": "Jonathan Bakebwa <codebender828@gmail.com>",
1210
"homepage": "https://github.com/chakra-ui/chakra-ui-vue-next#readme",
1311
"license": "MIT",
12+
"main": "dist/index.js",
13+
"module": "dist/index.mjs",
14+
"typings": "dist/index.d.ts",
1415
"files": [
1516
"dist"
1617
],
1718
"exports": {
1819
".": {
19-
"require": "<%= './dist/chakra-ui-' + h.changeCase.paramCase(name) + '.cjs.js' %>",
20-
"default": "<%= './dist/chakra-ui-' + h.changeCase.paramCase(name) + '.esm.js' %>"
20+
"require": "./dist/index.js",
21+
"default": "./dist/index.mjs"
2122
}
2223
},
2324
"repository": {

_templates/generator/component/tsup.config.ts.ejs.t

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,14 @@ import EsbuildPluginJSX from "unplugin-vue-jsx/esbuild"
88
export default defineConfig({
99
clean: true,
1010
target: "es2019",
11-
outExtension({ format }) {
12-
return {
13-
js: `.${format}.js`,
14-
}
15-
},
1611
esbuildPlugins: [
17-
// @ts-expect-error `EsbuildPluginJSX` does not extend `tsup.Plugin` type.
1812
EsbuildPluginJSX({
1913
include: [/.[jt]sx?$/],
20-
}),
14+
}) as any,
2115
],
16+
metafile: true,
17+
external: ["lodash.mergewith"],
2218
format: ["esm", "cjs"],
23-
entry: {
24-
"<%=h.changeCase.paramCase(name)%>": "src/index.tsx",
25-
},
19+
entry: ["src/**/*.(ts|tsx)"],
2620
keepNames: true,
2721
})

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

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,37 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
44

55
{
66
"name": "<%= '@chakra-ui/' + h.changeCase.paramCase(name)%>",
7-
"version": "0.0.0-next.0",
8-
"main": "<%= 'dist/chakra-ui-' + h.changeCase.paramCase(name) + '.cjs.js' %>",
9-
"module": "<%= 'dist/chakra-ui-' + h.changeCase.paramCase(name) + '.esm.js' %>",
7+
"description": "<%= 'Chakra UI Vue | ' + h.changeCase.pascalCase(name) + ' module'%>",
8+
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
9+
"author": "Jonathan Bakebwa [email protected]",
10+
"version": "0.0.0-beta.0",
11+
"license": "MIT",
12+
"main": "dist/index.js",
13+
"module": "dist/index.mjs",
14+
"typings": "dist/index.d.ts",
1015
"files": [
1116
"dist"
1217
],
1318
"exports": {
1419
".": {
15-
"require": "<%= './dist/chakra-ui-' + h.changeCase.paramCase(name) + '.cjs.js' %>",
16-
"default": "<%= './dist/chakra-ui-' + h.changeCase.paramCase(name) + '.esm.js' %>"
20+
"require": "./dist/index.js",
21+
"default": "./dist/index.mjs"
1722
}
1823
},
19-
"description": "<%= 'Chakra UI Vue | ' + h.changeCase.pascalCase(name) + ' module'%>",
20-
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
21-
"author": "Jonathan Bakebwa [email protected]",
22-
"license": "MIT",
24+
"repository": {
25+
"type": "git",
26+
"url": "git+https://github.com/chakra-ui/chakra-ui-vue-next.git"
27+
},
28+
"bugs": {
29+
"url": "https://github.com/chakra-ui/chakra-ui-vue-next/issues"
30+
},
31+
"sideEffects": false,
2332
"scripts": {
24-
"build": "rimraf ./dist && concurrently yarn:build:*",
25-
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps",
26-
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps",
27-
"watch": "concurrently yarn:watch:*",
28-
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps --watch",
29-
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps --watch",
30-
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch --incremental"
33+
"clean": "rimraf dist .turbo",
34+
"build": "tsup && pnpm build:types",
35+
"build:fast": "tsup",
36+
"build:types": "tsup src --dts-only",
37+
"types:check": "tsc --noEmit",
38+
"dev": "tsup --watch"
3139
}
3240
}

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,28 @@ to: tooling/<%=h.changeCase.paramCase(name)%>/package.json
55
{
66
"name": "<%= '@chakra-ui/' + h.changeCase.paramCase(name)%>",
77
"version": "1.0.0",
8-
"main": "dist/cjs/index.js",
9-
"module": "dist/esm/index.js",
8+
"main": "dist/index.js",
9+
"module": "dist/index.mjs",
10+
"typings": "dist/index.d.ts",
1011
"files": [
1112
"dist"
1213
],
1314
"exports": {
1415
".": {
15-
"require": "./dist/cjs/index.js",
16-
"default": "./dist/esm/index.js"
16+
"require": "./dist/index.js",
17+
"default": "./dist/index.mjs"
1718
}
1819
},
1920
"description": "<%= 'Chakra UI Vue | ' + h.changeCase.pascalCase(name) + ' module'%>",
2021
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
2122
"author": "Jonathan Bakebwa [email protected]",
2223
"license": "MIT",
2324
"scripts": {
24-
"build": "rimraf ./dist && concurrently yarn:build:*",
25-
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps",
26-
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps",
27-
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
28-
"watch": "concurrently yarn:watch:*",
29-
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps --watch",
30-
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps --watch",
31-
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch --incremental"
25+
"clean": "rimraf dist .turbo",
26+
"build": "tsup && pnpm build:types",
27+
"build:fast": "tsup",
28+
"build:types": "tsup src --dts-only",
29+
"types:check": "tsc --noEmit",
30+
"dev": "tsup --watch"
3231
}
3332
}

components.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Typescript support for @chakra-ui/vue-next2.1.0-beta.2 auto-imported
2+
* Typescript support for @chakra-ui/vue-next2.1.0-beta.3 auto-imported
33
* components using `unplugin-vue-components,`
44
*
55
* @see: https://github.com/antfu/unplugin-vue-components/#typescript
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-02-25T17:54:59.918Z
9+
* This file was generated on 2023-02-26T20:07:20.175Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -155,9 +155,19 @@ declare module "@vue/runtime-core" {
155155
CStack: typeof import("@chakra-ui/vue-next")["CStack"]
156156
CStackDivider: typeof import("@chakra-ui/vue-next")["CStackDivider"]
157157
CStackItem: typeof import("@chakra-ui/vue-next")["CStackItem"]
158+
CTable: typeof import("@chakra-ui/vue-next")["CTable"]
159+
CTableCaption: typeof import("@chakra-ui/vue-next")["CTableCaption"]
160+
CTableContainer: typeof import("@chakra-ui/vue-next")["CTableContainer"]
161+
CTbody: typeof import("@chakra-ui/vue-next")["CTbody"]
162+
CTd: typeof import("@chakra-ui/vue-next")["CTd"]
158163
CText: typeof import("@chakra-ui/vue-next")["CText"]
164+
CTextarea: typeof import("@chakra-ui/vue-next")["CTextarea"]
165+
CTfoot: typeof import("@chakra-ui/vue-next")["CTfoot"]
166+
CTh: typeof import("@chakra-ui/vue-next")["CTh"]
167+
CThead: typeof import("@chakra-ui/vue-next")["CThead"]
159168
CThemeProvider: typeof import("@chakra-ui/vue-next")["CThemeProvider"]
160169
CToastContainer: typeof import("@chakra-ui/vue-next")["CToastContainer"]
170+
CTr: typeof import("@chakra-ui/vue-next")["CTr"]
161171
CUnorderedList: typeof import("@chakra-ui/vue-next")["CUnorderedList"]
162172
CVStack: typeof import("@chakra-ui/vue-next")["CVStack"]
163173
CVisuallyHidden: typeof import("@chakra-ui/vue-next")["CVisuallyHidden"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"@babel/runtime": "^7.20.13",
7676
"@chakra-ui/anatomy": "^2.0.1",
7777
"@chakra-ui/nuxt-next": "workspace:*",
78-
"@chakra-ui/styled-system": "2.5.1",
78+
"@chakra-ui/styled-system": "2.6.1",
7979
"@chakra-ui/theme": "^2.2.5",
8080
"@chakra-ui/theme-tools": "^2.0.17",
8181
"@chakra-ui/theme-utils": "^2.0.6",

packages/c-accordion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@chakra-ui/vue-system": "workspace:*",
3333
"@chakra-ui/vue-utils": "workspace:*",
3434
"@zag-js/accordion": "0.2.11",
35-
"@chakra-ui/styled-system": "2.5.1",
35+
"@chakra-ui/styled-system": "2.6.1",
3636
"@zag-js/vue": "^0.2.9"
3737
},
3838
"peerDependencies": {

packages/c-alert/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build:types": "tsup src --dts-only"
2626
},
2727
"dependencies": {
28-
"@chakra-ui/styled-system": "2.5.1",
28+
"@chakra-ui/styled-system": "2.6.1",
2929
"@chakra-ui/c-icon": "workspace:*",
3030
"@chakra-ui/vue-system": "workspace:*",
3131
"@chakra-ui/vue-utils": "workspace:*"

0 commit comments

Comments
 (0)