dishui 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,41 +1,41 @@
1
- # DiShui UI 组件库
1
+ # DiShUI Component Library
2
2
 
3
- 一个基于Reactvibe coding出来的UI组件库。
3
+ A React-based UI component library created through vibe coding.
4
4
 
5
- ## 安装
5
+ ## Installation
6
6
 
7
7
  ```bash
8
- npm install dishui
9
- #
8
+ pnpm install dishui
9
+ # or
10
10
  yarn add dishui
11
11
  ```
12
12
 
13
- ## 使用方法
13
+ ## Usage
14
14
 
15
- ### 导入组件和样式
15
+ ### Import Components and Styles
16
16
 
17
17
  ```tsx
18
18
  import React from "react";
19
19
  import { Button, Badge } from "dishui";
20
- import "dishui/dist/dishui.css"; // 导入样式文件
20
+ import "dishui/dist/dishui.css"; // Import style file
21
21
 
22
22
  function App() {
23
23
  return (
24
24
  <div className="p-4">
25
- <h1 className="text-2xl font-bold mb-4">DiShui UI 示例</h1>
25
+ <h1 className="text-2xl font-bold mb-4">DiShui UI Examples</h1>
26
26
 
27
27
  <div className="flex gap-2 mb-4">
28
- <Button>默认按钮</Button>
29
- <Button variant="primary">主要按钮</Button>
30
- <Button variant="secondary">次要按钮</Button>
31
- <Button variant="accent">强调按钮</Button>
28
+ <Button>Default Button</Button>
29
+ <Button variant="primary">Primary Button</Button>
30
+ <Button variant="secondary">Secondary Button</Button>
31
+ <Button variant="accent">Accent Button</Button>
32
32
  </div>
33
33
 
34
34
  <div className="flex gap-2">
35
- <Badge>默认</Badge>
36
- <Badge variant="primary">主要</Badge>
37
- <Badge variant="secondary">次要</Badge>
38
- <Badge variant="accent">强调</Badge>
35
+ <Badge>Default</Badge>
36
+ <Badge variant="primary">Primary</Badge>
37
+ <Badge variant="secondary">Secondary</Badge>
38
+ <Badge variant="accent">Accent</Badge>
39
39
  </div>
40
40
  </div>
41
41
  );
@@ -44,30 +44,30 @@ function App() {
44
44
  export default App;
45
45
  ```
46
46
 
47
- ### 可用组件
47
+ ### Available Components
48
48
 
49
- - Button - 按钮组件
50
- - Badge - 徽章组件
51
- - Input - 输入框组件
52
- - Label - 标签组件
53
- - 更多组件持续添加中...
49
+ - Button - Button component
50
+ - Badge - Badge component
51
+ - Input - Input component
52
+ - Label - Label component
53
+ - More components coming soon...
54
54
 
55
- ## 开发
55
+ ## Development
56
56
 
57
57
  ```bash
58
- # 安装依赖
59
- npm install
58
+ # Install dependencies
59
+ pnpm install
60
60
 
61
- # 启动开发服务器
62
- npm run dev
61
+ # Start development server
62
+ pnpm run dev
63
63
 
64
- # 构建库
65
- npm run build
64
+ # Build library
65
+ pnpm run build
66
66
 
67
- # 发布到npm
68
- npm run publish:npm
67
+ # Publish to npm
68
+ pnpm run publish:npm
69
69
  ```
70
70
 
71
- ## 许可证
71
+ ## License
72
72
 
73
73
  ISC