@ws-ui/ui-components 1.0.0 → 1.0.1
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 +58 -2
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -16,7 +16,63 @@ A comprehensive design system built with React, TypeScript, TailwindCSS, and Sto
|
|
|
16
16
|
|
|
17
17
|
## 🚀 Quick Start
|
|
18
18
|
|
|
19
|
-
### Installation
|
|
19
|
+
### Installation from npm
|
|
20
|
+
|
|
21
|
+
Install the package in your project:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @qodly/ui-components
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Using Components
|
|
28
|
+
|
|
29
|
+
Import and use components in your React application:
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { Button, Input, Checkbox } from '@qodly/ui-components';
|
|
33
|
+
|
|
34
|
+
function App() {
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<Input
|
|
38
|
+
placeholder="Enter your name"
|
|
39
|
+
label="Name"
|
|
40
|
+
/>
|
|
41
|
+
<Checkbox
|
|
42
|
+
label="Accept terms and conditions"
|
|
43
|
+
onChange={(checked) => console.log(checked)}
|
|
44
|
+
/>
|
|
45
|
+
<Button
|
|
46
|
+
variant="primary"
|
|
47
|
+
size="md"
|
|
48
|
+
onClick={() => alert('Hello!')}
|
|
49
|
+
>
|
|
50
|
+
Submit
|
|
51
|
+
</Button>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Available Components
|
|
58
|
+
|
|
59
|
+
- **Button**: Versatile button with multiple variants and sizes
|
|
60
|
+
- **Input**: Text input with label, error states, and validation
|
|
61
|
+
- **Checkbox**: Accessible checkbox with indeterminate state
|
|
62
|
+
- **Radio**: Radio button with group management
|
|
63
|
+
- **Dropdown**: Customizable dropdown with search and multi-select
|
|
64
|
+
- **Menu**: Context menu with nested submenus and keyboard navigation
|
|
65
|
+
- And more...
|
|
66
|
+
|
|
67
|
+
Check the [Storybook documentation](#-storybook) for complete component APIs and examples.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 🔧 Development Setup
|
|
72
|
+
|
|
73
|
+
For contributors who want to develop and extend the design system:
|
|
74
|
+
|
|
75
|
+
### Clone and Install
|
|
20
76
|
|
|
21
77
|
```bash
|
|
22
78
|
# Clone the repository
|
|
@@ -27,7 +83,7 @@ cd design-system
|
|
|
27
83
|
npm install
|
|
28
84
|
```
|
|
29
85
|
|
|
30
|
-
### Development
|
|
86
|
+
### Development Commands
|
|
31
87
|
|
|
32
88
|
```bash
|
|
33
89
|
# Start the development server
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/ui-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Qodly Design System - UI component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -98,7 +98,5 @@
|
|
|
98
98
|
"vite-plugin-svgr": "^4.3.0",
|
|
99
99
|
"vitest": "^3.2.3",
|
|
100
100
|
"vitest-browser-react": "^1.0.0"
|
|
101
|
-
}
|
|
102
|
-
"author": "",
|
|
103
|
-
"license": "ISC"
|
|
101
|
+
}
|
|
104
102
|
}
|