Skip to content

Commit 829e338

Browse files
author
chengzheng1
committed
init
0 parents  commit 829e338

File tree

123 files changed

+15769
-0
lines changed

Some content is hidden

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

123 files changed

+15769
-0
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
11+
"onlyUpdatePeerDependentsWhenOutOfRange": true
12+
},
13+
"ignore": [
14+
"@nextui-vue/docs",
15+
"@nextui-vue/storybook"
16+
]
17+
}

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
node_modules
2+
3+
# debug
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
.yarn-integrity
8+
.idea
9+
.now
10+
dist
11+
esm
12+
examples/**/yarn.lock
13+
examples/**/out
14+
examples/**/.next
15+
packages/**/*.backup
16+
packages/**/*.backup.ts
17+
18+
# misc
19+
.DS_Store
20+
.env
21+
.env.local
22+
.env.development.local
23+
.env.test.local
24+
.env.production.local
25+
.env.production
26+
27+
# turbo
28+
.turbo
29+
packages/**/.turbo

.npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
strict-peer-dependencies=false
2+
enable-pre-post-scripts=true
3+
public-hoist-pattern[]=*tailwind-variants*
4+
registry=https://registry.npmmirror.com/

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.x

.prettierignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
dist
2+
node_modules
3+
plop
4+
coverage
5+
.changeset
6+
.next
7+
build
8+
scripts
9+
pnpm-lock.yaml
10+
!.storybook
11+
!.commitlintrc.cjs
12+
!.lintstagedrc.cjs
13+
!jest.config.js
14+
!plopfile.js
15+
!react-shim.js
16+
!tsup.config.ts

.prettierrc.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc.json",
3+
"tabWidth": 2,
4+
"printWidth": 100,
5+
"semi": true,
6+
"useTabs": false,
7+
"singleQuote": false,
8+
"bracketSpacing": false,
9+
"endOfLine": "auto",
10+
"arrowParens": "always",
11+
"trailingComma": "all"
12+
}

apps/docs/package.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "@nextui-vue/docs",
3+
"version": "2.0.0",
4+
"private": true,
5+
"scripts": {},
6+
"dependencies": {},
7+
"devDependencies": {}
8+
}

package.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "nextui-vue",
3+
"private": true,
4+
"version": "2.0.0",
5+
"license": "MIT",
6+
"author": {
7+
"name": "Joeycz",
8+
"email": "[email protected]"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/Joeycz/nextui-vue"
13+
},
14+
"scripts": {
15+
"dev": "pnpm sb",
16+
"dev:docs": "turbo dev --filter=@nextui-vue/docs",
17+
"build": "turbo build --filter=!@nextui-vue/docs --filter=!@nextui-vue/storybook",
18+
"sb": "pnpm --filter @nextui-vue/storybook dev"
19+
},
20+
"pnpm": {
21+
"overrides": {
22+
"vue": "^3.4.21"
23+
}
24+
},
25+
"engines": {
26+
"node": ">=16.x",
27+
"pnpm": ">=8.x"
28+
},
29+
"packageManager": "[email protected]",
30+
"devDependencies": {
31+
"@changesets/cli": "^2.27.1",
32+
"@nextui-org/react": "^2.2.10",
33+
"@storybook/vue3": "^7.6.17",
34+
"react": "^18.2.0",
35+
"tailwind-variants": "^0.2.0",
36+
"tsup": "^8.0.2",
37+
"turbo": "1.12.5",
38+
"typescript": "^5.4.2",
39+
"vue": "^3.4.21"
40+
}
41+
}

packages/components/button/README.md

Whitespace-only changes.
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@nextui-vue/button",
3+
"version": "2.0.0",
4+
"description": "Buttons allow users to perform actions and choose with a single tap.",
5+
"keywords": [
6+
"button"
7+
],
8+
"author": "Joeycz <[email protected]>",
9+
"license": "MIT",
10+
"main": "src/index.ts",
11+
"sideEffects": false,
12+
"files": [
13+
"dist"
14+
],
15+
"publishConfig": {
16+
"access": "public"
17+
},
18+
"repository": {},
19+
"bugs": {
20+
"url": ""
21+
},
22+
"scripts": {
23+
"build": "tsup src --dts"
24+
},
25+
"peerDependencies": {},
26+
"dependencies": {},
27+
"devDependencies": {},
28+
"clean-package": ""
29+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineComponent } from "vue";
2+
import {UseButtonProps} from "./use-button";
3+
4+
export interface ButtonProps extends UseButtonProps {}
5+
6+
const Button = defineComponent({
7+
setup() {
8+
return {}
9+
},
10+
render() {
11+
return <div>button up</div>
12+
}
13+
})
14+
15+
export default Button;
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Button from "./button";
2+
3+
export type {ButtonProps} from "./button";
4+
5+
export {Button};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
interface Props {};
2+
3+
export type UseButtonProps = Props;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
import Vue from "vue";
2+
import React from "react";
3+
import type { Meta } from "@storybook/vue3";
4+
5+
import { Button, ButtonProps } from "../src";
6+
7+
export default {
8+
title: "Components/Button",
9+
component: Button,
10+
argTypes: {
11+
variant: {
12+
control: {
13+
type: "select",
14+
},
15+
options: ["solid", "bordered", "light", "flat", "faded", "shadow", "ghost"],
16+
},
17+
color: {
18+
control: {
19+
type: "select",
20+
},
21+
options: ["default", "primary", "secondary", "success", "warning", "danger"],
22+
},
23+
size: {
24+
control: {
25+
type: "select",
26+
},
27+
options: ["sm", "md", "lg"],
28+
},
29+
spinnerPlacement: {
30+
control: {
31+
type: "select",
32+
},
33+
options: ["start", "end"],
34+
},
35+
fullWidth: {
36+
control: {
37+
type: "boolean",
38+
},
39+
},
40+
radius: {
41+
control: {
42+
type: "select",
43+
},
44+
options: ["none", "sm", "md", "lg", "full"],
45+
},
46+
isDisabled: {
47+
control: {
48+
type: "boolean",
49+
},
50+
},
51+
isLoading: {
52+
control: {
53+
type: "boolean",
54+
},
55+
},
56+
disableAnimation: {
57+
control: {
58+
type: "boolean",
59+
},
60+
},
61+
},
62+
} as Meta<typeof Button>;
63+
64+
const defaultProps = {
65+
children: "Button",
66+
spinnerPlacement: "start",
67+
};
68+
69+
const StateTemplate = (args: ButtonProps) => {
70+
return (
71+
<Button>open</Button>
72+
);
73+
};
74+
75+
export const Default = {
76+
render: StateTemplate,
77+
args: {
78+
...defaultProps,
79+
},
80+
};
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"paths": {
6+
"tailwind-variants": ["../../../node_modules/tailwind-variants"]
7+
},
8+
},
9+
"include": ["src", "index.ts"]
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {defineConfig} from "tsup";
2+
3+
export default defineConfig({
4+
clean: true,
5+
target: "es2019",
6+
format: ["cjs", "esm"],
7+
banner: {js: '"use client";'},
8+
});

packages/core/theme/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# @nextui-vue/theme
2+
3+
NextUI theme primitives, here you can find the TailwindCSS `plugin`, `colors`, `layout`, `spacing`, `typography` and some other utilities.
4+
5+
Please refer to the [documentation](https://nextui.org/theme) for more information.
6+
7+
## Installation
8+
9+
```sh
10+
yarn add @nextui-vue/theme
11+
# or
12+
npm i @nextui-vue/theme
13+
# or
14+
pnpm add @nextui-vue/theme
15+
```

packages/core/theme/colors.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./dist/colors";

packages/core/theme/colors.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("./dist/colors");

0 commit comments

Comments
 (0)