strivui 1.0.0

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 ADDED
@@ -0,0 +1,112 @@
1
+
2
+ ````markdown
3
+ # ๐Ÿš€ StrivUI
4
+
5
+ **StrivUI** is a modern, utility-first UI component library designed for building fast, beautiful, and accessible interfaces in **React** using both **TypeScript** and **JavaScript**.
6
+
7
+ > Developed with โค๏ธ by [ArchStriv](https://your-company-website.com)
8
+
9
+ ---
10
+
11
+ ## โœจ Features
12
+
13
+ - โšก Utility-first approach (inspired by Tailwind CSS)
14
+ - ๐Ÿงฉ Pre-built and customizable React components
15
+ - ๐Ÿ› ๏ธ Built with TypeScript (but works in JS projects too)
16
+ - ๐ŸŽจ Theming support and responsive design out of the box
17
+ - ๐ŸŒ Lightweight and blazing fast
18
+
19
+ ---
20
+
21
+ ## ๐Ÿ“ฆ Installation
22
+
23
+ Install via NPM or Yarn:
24
+
25
+ ```bash
26
+ npm install strive-ui
27
+ # or
28
+ yarn add strive-ui
29
+ ````
30
+
31
+ ---
32
+
33
+ ## ๐Ÿ”ง Usage
34
+
35
+ ### For JavaScript
36
+
37
+ ```jsx
38
+ import { Button } from 'strive-ui';
39
+
40
+ function App() {
41
+ return <Button variant="primary">Click Me</Button>;
42
+ }
43
+
44
+ export default App;
45
+ ```
46
+
47
+ ### For TypeScript
48
+
49
+ ```tsx
50
+ import { Button } from 'strive-ui';
51
+
52
+ const App: React.FC = () => {
53
+ return <Button variant="primary">Click Me</Button>;
54
+ };
55
+
56
+ export default App;
57
+ ```
58
+
59
+ ---
60
+
61
+ ## ๐Ÿงฑ Components (Preview)
62
+
63
+ * `<Button />`
64
+ * `<Input />`
65
+ * `<Card />`
66
+ * `<Modal />`
67
+ * `<Dropdown />`
68
+ * ...and more coming soon!
69
+
70
+ ---
71
+
72
+ ## ๐ŸŽจ Customization
73
+
74
+ StrivUI allows easy theme overrides and utility-based class extension.
75
+ Coming soon: a theme config file (`strive.config.js`) for color, spacing, and typography customization.
76
+
77
+ ---
78
+
79
+ ## ๐Ÿ“š Documentation
80
+
81
+ Full documentation is coming soon at: [https://strivui.archstriv.com](https://strivui.archstriv.com)
82
+
83
+ ---
84
+
85
+ ## ๐Ÿงช Development
86
+
87
+ Clone and start the library locally:
88
+
89
+ ```bash
90
+ git clone https://github.com/ArchStriv/strive-ui.git
91
+ cd strive-ui
92
+ npm install
93
+ npm run dev
94
+ ```
95
+
96
+ ---
97
+
98
+ ## ๐Ÿค Contributing
99
+
100
+ We welcome contributions!
101
+
102
+ 1. Fork the repo
103
+ 2. Create your feature branch: `git checkout -b feature/my-component`
104
+ 3. Commit your changes: `git commit -m 'Add my component'`
105
+ 4. Push to the branch: `git push origin feature/my-component`
106
+ 5. Open a Pull Request
107
+
108
+ ---
109
+
110
+ ## ๐Ÿ“„ License
111
+
112
+ MIT ยฉ 2025 [ArchStriv](https://archstrive.com/)
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+
3
+ const Button = ({ label, onClick, style }:{label:string,onClick:()=>void,style:{}}) => {
4
+ return (
5
+ <button style={{
6
+ padding: '10px 20px',
7
+ backgroundColor: '#28a745',
8
+ color: '#fff',
9
+ border: 'none',
10
+ borderRadius: '5px',
11
+ cursor: 'pointer',
12
+ ...style,
13
+ }} onClick={onClick}>
14
+ {label}
15
+ </button>
16
+ );
17
+ };
18
+
19
+ export default Button;
package/app/index.tsx ADDED
@@ -0,0 +1,2 @@
1
+ import Button from './component/Button';
2
+ export { Button };
@@ -0,0 +1,7 @@
1
+ export default {
2
+ presets: [
3
+ '@babel/preset-env',
4
+ '@babel/preset-react',
5
+ '@babel/preset-typescript',
6
+ ],
7
+ };
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "strivui",
3
+ "version": "1.0.0",
4
+ "scripts": {
5
+ "build": "rollup -c"
6
+ },
7
+ "description": "**StrivUI** is a modern, utility-first UI component library designed for building fast, beautiful, and accessible interfaces in **React** using both **TypeScript** and **JavaScript**.",
8
+ "keywords": [
9
+ "react",
10
+ "ui-library",
11
+ "components",
12
+ "react-components",
13
+ "strivui",
14
+ "typescript",
15
+ "javascript",
16
+ "styled-components",
17
+ "design-system",
18
+ "tailwindcss",
19
+ "accessibility",
20
+ "reusable-components",
21
+ "frontend",
22
+ "react-ui",
23
+ "ui-kit"
24
+ ],
25
+ "homepage": "https://github.com/Syed-Dev-Sphere/StrivUI#readme",
26
+ "bugs": {
27
+ "url": "https://github.com/Syed-Dev-Sphere/StrivUI/issues"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/Syed-Dev-Sphere/StrivUI.git"
32
+ },
33
+ "license": "MIT",
34
+ "author": "Syed Abdullah Ali",
35
+ "type": "module",
36
+ "main": "index.js",
37
+ "dependencies": {
38
+ "@babel/preset-env": "^7.28.0",
39
+ "@babel/preset-typescript": "^7.27.1",
40
+ "@rollup/plugin-typescript": "^12.1.4",
41
+ "react": "^17.0.0 || ^18.0.0",
42
+ "react-dom": "^17.0.0 || ^18.0.0",
43
+ "tslib": "^2.8.1",
44
+ "typescript": "^5.8.3"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/preset-react": "^7.27.1",
48
+ "@rollup/plugin-babel": "^6.0.4",
49
+ "@rollup/plugin-commonjs": "^28.0.6",
50
+ "@rollup/plugin-node-resolve": "^16.0.1",
51
+ "@types/react": "^19.1.8",
52
+ "@types/react-dom": "^19.1.6",
53
+ "rollup": "^4.45.1"
54
+ },
55
+ "module": "dist/index.esm.js",
56
+ "types": "dist/types/index.d.ts",
57
+ "peerDependencies": {
58
+ "react": "^17.0.0 || ^18.0.0",
59
+ "react-dom": "^17.0.0 || ^18.0.0"
60
+ }
61
+ }