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

Commit e88d29b

Browse files
committed
feat(accordion): create accordion component
1 parent 1871c4a commit e88d29b

Some content is hidden

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

42 files changed

+1090
-127
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
to: packages/<%=h.changeCase.paramCase(name)%>/src/index.ts
2+
to: packages/<%=h.changeCase.paramCase(name)%>/src/index.tsx
33
---
44

55
export * from './<%=h.changeCase.paramCase(name)%>'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
to: packages/<%=h.changeCase.paramCase(name)%>/index.ts
2+
to: packages/<%=h.changeCase.paramCase(name)%>/index.tsx
33
---
44

55
export * from './src'

_templates/generator/module/src.ts.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
to: packages/<%=h.changeCase.paramCase(name)%>/src/index.ts
2+
to: packages/<%=h.changeCase.paramCase(name)%>/src/index.tsx
33
---
44
const <%= h.changeCase.pascalCase(name) %> = () => {
55
return {}

_templates/generator/tooling/src.ts.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
to: tooling/<%=h.changeCase.paramCase(name)%>/src/index.ts
2+
to: tooling/<%=h.changeCase.paramCase(name)%>/src/index.tsx
33
---
44
const <%= h.changeCase.pascalCase(name) %> = () => {
55
return {}

docs/guides/component-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ start building, here's what you need to do:
5151

5252
- Before you can play around with your new component in the playground you will have to export your component from the `@chakra-ui/vue-next` package in the `core` directory under `packages`.
5353

54-
* Inside the `index.ts` file, you will have to add `export * from '@chakra-ui/COMPONENT_NAME'`.
54+
* Inside the `index.tsx` file, you will have to add `export * from '@chakra-ui/COMPONENT_NAME'`.
5555

5656
* Your component also needs to be added as a dependency inside the `package.json` of the `@chakra-ui/vue-next` package as following:
5757
```jsx

jest.config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
module.exports = {
22
transform: {
3-
'^.+\\.(ts|tsx)$': [
4-
'esbuild-jest',
3+
"^.+\\.(ts|tsx)$": [
4+
"esbuild-jest",
55
{
6-
jsxFactory: 'h',
7-
jsxFragment: 'Fragment',
6+
jsxFactory: "h",
7+
jsxFragment: "Fragment",
88
sourcemap: true,
9-
target: 'es2020',
9+
target: "es2020",
1010
},
1111
],
1212
},
13-
transformIgnorePatterns: ['/node_modules/(?!@popperjs/.*|lodash.)'],
13+
transformIgnorePatterns: ["/node_modules/(?!@popperjs/.*|lodash.)"],
1414
moduleNameMapper: {
15-
'^@/(.*)$': '<rootDir>/$1',
16-
'@chakra-ui/vue-test-utils': '<rootDir>/packages/test-utils/src/index.ts',
15+
"^@/(.*)$": "<rootDir>/$1",
16+
"@chakra-ui/vue-test-utils": "<rootDir>/packages/test-utils/src/index.tsx",
1717
},
18-
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
19-
snapshotSerializers: ['@chakra-ui/vue-test-utils/src/snapshot-serializer.ts'],
20-
testMatch: ['**/**/*.test.(js|jsx|ts|tsx)'],
18+
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
19+
snapshotSerializers: ["@chakra-ui/vue-test-utils/src/snapshot-serializer.ts"],
20+
testMatch: ["**/**/*.test.(js|jsx|ts|tsx)"],
2121
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@
5454
"@babel/core": "^7.12.9",
5555
"@babel/preset-env": "^7.15.0",
5656
"@babel/preset-typescript": "^7.12.7",
57+
"@chakra-ui/anatomy": "^2.0.1",
5758
"@chakra-ui/styled-system": "^1.18.1",
5859
"@chakra-ui/utils": "^2.0.3",
5960
"@changesets/changelog-github": "^0.3.0",
6061
"@changesets/cli": "^2.14.1",
6162
"@commitlint/cli": "^11.0.0",
6263
"@commitlint/config-conventional": "^11.0.0",
64+
"@ctrl/tinycolor": "^3.4.1",
6365
"@cypress/snapshot": "^2.1.7",
6466
"@cypress/vite-dev-server": "^1.2.6",
6567
"@cypress/vue": "^3.0.3",
@@ -102,6 +104,8 @@
102104
"@vueuse/head": "^0.7.4",
103105
"@vueuse/integrations": "^4.8.1",
104106
"@vueuse/motion": "^1.5.4",
107+
"@zag-js/accordion": "^0.1.9",
108+
"@zag-js/vue": "^0.1.9",
105109
"aria-hidden": "^1.1.2",
106110
"axe-core": "^4.1.2",
107111
"babel-jest": "^26.6.3",
@@ -154,7 +158,7 @@
154158
"tinycolor2": "^1.4.2",
155159
"ts-jest": "^26.5.0",
156160
"ts-node": "^9.0.0",
157-
"typescript": "4.5.4",
161+
"typescript": "4.6.4",
158162
"unplugin-vue-components": "^0.14.0",
159163
"vite": "^2.8.6",
160164
"vite-plugin-mdx-vue": "^1.6.0",

packages/anatomy/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @chakra-ui/vue-anatomy
2+
3+
The anatomy of all chakra components
4+
5+
## Installation
6+
7+
```sh
8+
yarn add @chakra-ui/vue-anatomy
9+
# or
10+
npm i @chakra-ui/vue-anatomy
11+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<vue-anatomy> HELLO Anatomy </vue-anatomy>
3+
</template>

packages/anatomy/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)