@a2v2ai/uikit 0.0.1 → 0.0.2
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 +12 -12
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @a2v2ai/uikit
|
|
2
2
|
|
|
3
3
|
A React UI component library built with shadcn/ui and Tailwind CSS.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install @a2v2ai/uikit
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Setup
|
|
@@ -15,7 +15,7 @@ npm install a2v2-uikit
|
|
|
15
15
|
Add the styles to your app's entry point:
|
|
16
16
|
|
|
17
17
|
```tsx
|
|
18
|
-
import "
|
|
18
|
+
import "@a2v2ai/uikit/styles.css"
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### 2. Configure Tailwind CSS
|
|
@@ -27,7 +27,7 @@ Make sure you have Tailwind CSS v4+ configured in your project.
|
|
|
27
27
|
### Components
|
|
28
28
|
|
|
29
29
|
```tsx
|
|
30
|
-
import { Button, Input, Card, AlertDialog } from "
|
|
30
|
+
import { Button, Input, Card, AlertDialog } from "@a2v2ai/uikit"
|
|
31
31
|
|
|
32
32
|
function App() {
|
|
33
33
|
return (
|
|
@@ -42,7 +42,7 @@ function App() {
|
|
|
42
42
|
### Toast Notifications
|
|
43
43
|
|
|
44
44
|
```tsx
|
|
45
|
-
import { Toaster, toast } from "
|
|
45
|
+
import { Toaster, toast } from "@a2v2ai/uikit"
|
|
46
46
|
|
|
47
47
|
function App() {
|
|
48
48
|
return (
|
|
@@ -57,7 +57,7 @@ function App() {
|
|
|
57
57
|
### Form Validation
|
|
58
58
|
|
|
59
59
|
```tsx
|
|
60
|
-
import { Input, Label, ErrorMessage } from "
|
|
60
|
+
import { Input, Label, ErrorMessage } from "@a2v2ai/uikit"
|
|
61
61
|
|
|
62
62
|
function Form() {
|
|
63
63
|
const errors = { email: "Please enter a valid email" }
|
|
@@ -76,7 +76,7 @@ function Form() {
|
|
|
76
76
|
### Icons
|
|
77
77
|
|
|
78
78
|
```tsx
|
|
79
|
-
import { Home, Settings, User } from "
|
|
79
|
+
import { Home, Settings, User } from "@a2v2ai/uikit/icons"
|
|
80
80
|
|
|
81
81
|
function Nav() {
|
|
82
82
|
return (
|
|
@@ -92,7 +92,7 @@ function Nav() {
|
|
|
92
92
|
### Helpers
|
|
93
93
|
|
|
94
94
|
```tsx
|
|
95
|
-
import { cn, cva } from "
|
|
95
|
+
import { cn, cva } from "@a2v2ai/uikit/helpers"
|
|
96
96
|
|
|
97
97
|
const buttonVariants = cva("base-class", {
|
|
98
98
|
variants: {
|
|
@@ -167,10 +167,10 @@ function MyButton({ className, size }) {
|
|
|
167
167
|
|
|
168
168
|
| Path | Description |
|
|
169
169
|
|------|-------------|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
170
|
+
| `@a2v2ai/uikit` | All components and utilities |
|
|
171
|
+
| `@a2v2ai/uikit/icons` | Lucide React icons |
|
|
172
|
+
| `@a2v2ai/uikit/helpers` | Utility functions (cn, cva, clsx, twMerge) |
|
|
173
|
+
| `@a2v2ai/uikit/styles.css` | Component styles |
|
|
174
174
|
|
|
175
175
|
## Peer Dependencies
|
|
176
176
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2v2ai/uikit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"author": "Arulraj V & abofficial1997@gmail.com",
|
|
5
5
|
"description": "A React UI component library built with shadcn/ui and Tailwind CSS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,5 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"cpy-cli": "^6.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"typescript": "~5.9.3"
|
|
28
31
|
}
|
|
29
32
|
}
|