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

Commit 31868b4

Browse files
committed
feat(textarea): create textarea component
1 parent 2bef655 commit 31868b4

File tree

19 files changed

+278
-33
lines changed

19 files changed

+278
-33
lines changed

@types/components.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-02-26T19:46:48.080Z
9+
* This file was generated on 2023-02-26T20:03:44.297Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -161,6 +161,7 @@ declare module "@vue/runtime-core" {
161161
CTbody: typeof import("@chakra-ui/vue-next")["CTbody"]
162162
CTd: typeof import("@chakra-ui/vue-next")["CTd"]
163163
CText: typeof import("@chakra-ui/vue-next")["CText"]
164+
CTextarea: typeof import("@chakra-ui/vue-next")["CTextarea"]
164165
CTfoot: typeof import("@chakra-ui/vue-next")["CTfoot"]
165166
CTh: typeof import("@chakra-ui/vue-next")["CTh"]
166167
CThead: typeof import("@chakra-ui/vue-next")["CThead"]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ 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",
8+
"version": "0.0.0-beta.0",
99
"author": "Jonathan Bakebwa <codebender828@gmail.com>",
1010
"homepage": "https://github.com/chakra-ui/chakra-ui-vue-next#readme",
1111
"license": "MIT",

_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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-02-26T19:46:48.080Z
9+
* This file was generated on 2023-02-26T20:03:44.297Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
@@ -161,6 +161,7 @@ declare module "@vue/runtime-core" {
161161
CTbody: typeof import("@chakra-ui/vue-next")["CTbody"]
162162
CTd: typeof import("@chakra-ui/vue-next")["CTd"]
163163
CText: typeof import("@chakra-ui/vue-next")["CText"]
164+
CTextarea: typeof import("@chakra-ui/vue-next")["CTextarea"]
164165
CTfoot: typeof import("@chakra-ui/vue-next")["CTfoot"]
165166
CTh: typeof import("@chakra-ui/vue-next")["CTh"]
166167
CThead: typeof import("@chakra-ui/vue-next")["CThead"]

packages/c-live-region/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@chakra-ui/c-live-region",
33
"description": "Chakra UI Vue | Creates a hidden live region with dynamic content based on triggered events to be read out by the screen reader on change of the content component",
4-
"version": "0.0.0-next.0",
4+
"version": "2.0.0-beta.0",
55
"author": "Jonathan Bakebwa <[email protected]>",
66
"homepage": "https://github.com/chakra-ui/chakra-ui-vue-next#readme",
77
"license": "MIT",

packages/c-table/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@chakra-ui/c-table",
33
"description": "Chakra UI Vue | Table component is used to organize and display data efficiently it renders a table element by default component",
4-
"version": "0.0.0-next.0",
4+
"version": "2.0.0-beta.0",
55
"author": "Jonathan Bakebwa <[email protected]>",
66
"homepage": "https://github.com/chakra-ui/chakra-ui-vue-next#readme",
77
"license": "MIT",

packages/c-textarea/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# `@chakra-ui/c-textarea`
2+
3+
The textarea component allows you to easily create multi line text inputs
4+
5+
## Installation
6+
7+
```sh
8+
# with pnpm
9+
pnpm add @chakra-ui/c-textarea
10+
# or with Yarn
11+
yarn i @chakra-ui/c-textarea
12+
# or with npm
13+
npm i @chakra-ui/c-textarea
14+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script setup lang="ts">
2+
import { CTextarea } from "../src"
3+
import { ref } from "vue"
4+
import { chakra } from "../../vue/src"
5+
6+
const content = ref("")
7+
</script>
8+
9+
<template>
10+
<chakra.main>
11+
<chakra.div> Value: {{ content }} </chakra.div>
12+
<c-textarea v-model="content" />
13+
</chakra.main>
14+
</template>

packages/c-textarea/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./src"

0 commit comments

Comments
 (0)