@segmentify/ui 0.0.1 → 0.0.3
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 +70 -0
- package/package.json +7 -1
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# @segmentify/ui
|
|
2
|
+
|
|
3
|
+
A collection of reusable React UI components built with Tailwind CSS and Radix UI.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🎨 **Tailwind CSS**: Styled using Tailwind CSS for easy customization.
|
|
8
|
+
- 🧩 **Radix UI**: Built on top of Radix UI primitives for accessibility and reliability.
|
|
9
|
+
- 🎭 **Storybook**: Integrated Storybook for component development and documentation.
|
|
10
|
+
- 📦 **TypeScript**: Fully typed for a great developer experience.
|
|
11
|
+
- 🚀 **Vite**: Fast build and development workflow.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add @segmentify/ui
|
|
17
|
+
# or
|
|
18
|
+
npm install @segmentify/ui
|
|
19
|
+
# or
|
|
20
|
+
yarn add @segmentify/ui
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Peer Dependencies
|
|
24
|
+
|
|
25
|
+
Make sure you have `react`, `react-dom`, and `tailwindcss` installed in your project.
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
Import components directly from the package:
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { Button } from '@segmentify/ui';
|
|
33
|
+
|
|
34
|
+
function App() {
|
|
35
|
+
return <Button onClick={() => console.log('Clicked!')}>Click Me</Button>;
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Styling
|
|
40
|
+
|
|
41
|
+
Don't forget to import the CSS in your main entry file:
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
import '@segmentify/ui/dist/index.css';
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Development
|
|
48
|
+
|
|
49
|
+
### Scripts
|
|
50
|
+
|
|
51
|
+
- `pnpm dev`: Start the Vite development server.
|
|
52
|
+
- `pnpm build`: Build the library using Vite and generate TypeScript declarations.
|
|
53
|
+
- `pnpm storybook`: Start Storybook for component development.
|
|
54
|
+
- `pnpm build-storybook`: Build the Storybook documentation.
|
|
55
|
+
- `pnpm lint`: Run ESLint to check for code quality issues.
|
|
56
|
+
- `pnpm format`: Format the codebase using Prettier.
|
|
57
|
+
- `pnpm release`: Publish the package using Changesets.
|
|
58
|
+
|
|
59
|
+
### Creating Changesets
|
|
60
|
+
|
|
61
|
+
This project uses Changesets for versioning and releases. To create a new version:
|
|
62
|
+
|
|
63
|
+
1. Run `pnpm changeset`.
|
|
64
|
+
2. Select the packages to version and the type of change (patch, minor, major).
|
|
65
|
+
3. Provide a brief description of the changes.
|
|
66
|
+
4. Commit the generated changeset file.
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentify/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A collection of reusable React UI components built with Tailwind CSS and Radix UI",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/segmentify-frontend/segmentify-ui.git"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"homepage": "https://github.com/segmentify-frontend/segmentify-ui#readme",
|
|
5
11
|
"type": "module",
|
|
6
12
|
"main": "./dist/segmentify-ui.cjs",
|
|
7
13
|
"module": "./dist/segmentify-ui.js",
|