@rahmatsaputra-my-id/react-js-library 0.0.7 → 0.0.9
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 +72 -26
- package/dist/constants/Images/Images.types.d.ts +3 -2
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,46 +1,92 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React JS Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](#license)
|
|
4
|
+
A React component and utility library developed by Rahmat Saputra to simplify and accelerate the development of modern React applications.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
---
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
## 🔍 Overview
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
**React JS Library** provides a set of reusable UI components and custom utilities built with TypeScript and React.
|
|
11
|
+
It aims to help developers build scalable and maintainable front-end applications quickly and efficiently.
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
+
---
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
You will also see any lint errors in the console.
|
|
15
|
+
## ✅ Key Features
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- Reusable and customizable UI components (e.g., Button, Modal, Input).
|
|
18
|
+
- Custom React hooks for state management, form handling, and side effects.
|
|
19
|
+
- Written in **TypeScript** for full type safety.
|
|
20
|
+
- Configured with **Rollup** for optimized production builds.
|
|
21
|
+
- Ready for unit testing and CI/CD integration.
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
23
|
+
---
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
## 📦 Installation
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
```bash
|
|
28
|
+
# via npm
|
|
29
|
+
npm install @rahmatsaputra-my-id/react-js-library
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
# or via yarn
|
|
32
|
+
yarn add @rahmatsaputra-my-id/react-js-library
|
|
33
|
+
```
|
|
29
34
|
|
|
30
|
-
|
|
35
|
+
> Note: Update the package name based on the actual npm publication.
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
---
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
## 🛠️ Usage Example
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
```tsx
|
|
42
|
+
import React from "react";
|
|
43
|
+
import { Button } from "@rahmatsaputra-my-id/react-js-library";
|
|
37
44
|
|
|
38
|
-
|
|
45
|
+
function App() {
|
|
46
|
+
return (
|
|
47
|
+
<div>
|
|
48
|
+
<Button onClick={() => alert("Clicked!")}>Click Me</Button>
|
|
49
|
+
</div>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
39
52
|
|
|
40
|
-
|
|
53
|
+
export default App;
|
|
54
|
+
```
|
|
41
55
|
|
|
42
|
-
|
|
56
|
+
---
|
|
43
57
|
|
|
44
|
-
|
|
58
|
+
## 🧩 Available Exports
|
|
45
59
|
|
|
46
|
-
|
|
60
|
+
- `Button` – Standard button component with `onClick`, `children`, and `variant` props.
|
|
61
|
+
- `Modal` – Overlay dialog with `isOpen`, `onClose`, and `children` props.
|
|
62
|
+
- _(Add more components or utilities as the library grows.)_
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 🤝 Contributing
|
|
67
|
+
|
|
68
|
+
Contributions are welcome!
|
|
69
|
+
|
|
70
|
+
1. Fork this repository.
|
|
71
|
+
2. Create a new branch for your feature or fix:
|
|
72
|
+
```bash
|
|
73
|
+
git checkout -b feature/new-feature
|
|
74
|
+
```
|
|
75
|
+
3. Commit and push your changes.
|
|
76
|
+
4. Open a pull request to the `master` branch.
|
|
77
|
+
5. Follow coding standards and documentation guidelines.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 📜 License
|
|
82
|
+
|
|
83
|
+
This project is licensed under the **MIT License** — see the [LICENSE](LICENSE) file for details.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
### 💡 Author
|
|
88
|
+
|
|
89
|
+
**Rahmat Saputra**
|
|
90
|
+
|
|
91
|
+
- 🌐 [rahmatsaputra.my.id](https://rahmatsaputra.my.id)
|
|
92
|
+
- 💼 [GitHub: rahmatsaputra-my-id](https://github.com/rahmatsaputra-my-id)
|
|
@@ -10,6 +10,9 @@ export interface IIconOption {
|
|
|
10
10
|
image_not_available: string;
|
|
11
11
|
information?: string;
|
|
12
12
|
langugage?: string;
|
|
13
|
+
list?: string;
|
|
14
|
+
love_empty?: string;
|
|
15
|
+
love_filled?: string;
|
|
13
16
|
more?: string;
|
|
14
17
|
printer?: string;
|
|
15
18
|
question?: string;
|
|
@@ -19,6 +22,4 @@ export interface IIconOption {
|
|
|
19
22
|
support?: string;
|
|
20
23
|
tax?: string;
|
|
21
24
|
terms_and_conditions?: string;
|
|
22
|
-
love_empty?: string;
|
|
23
|
-
love_filled?: string;
|
|
24
25
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -422,6 +422,9 @@ var Icons = {
|
|
|
422
422
|
image_not_available: "".concat(PATH.PERSONAL_WEB, "/image-not-available.png"),
|
|
423
423
|
information: "".concat(PATH.IMAGE, "/icon-information.png"),
|
|
424
424
|
langugage: "".concat(PATH.IMAGE, "/icon-language.png"),
|
|
425
|
+
list: "".concat(PATH.IMAGE, "/icon-list.png"),
|
|
426
|
+
love_empty: "".concat(PATH.IMAGE, "/icon-love-empty.png"),
|
|
427
|
+
love_filled: "".concat(PATH.IMAGE, "/icon-love-filled.png"),
|
|
425
428
|
more: "".concat(PATH.IMAGE, "/icon-more.png"),
|
|
426
429
|
printer: "".concat(PATH.IMAGE, "/icon-printer.png"),
|
|
427
430
|
question: "".concat(PATH.IMAGE, "/icon-question.png"),
|
|
@@ -431,8 +434,6 @@ var Icons = {
|
|
|
431
434
|
support: "".concat(PATH.IMAGE, "/icon-support.png"),
|
|
432
435
|
tax: "".concat(PATH.IMAGE, "/icon-tax.png"),
|
|
433
436
|
terms_and_conditions: "".concat(PATH.IMAGE, "/icon-terms-and-conditions.png"),
|
|
434
|
-
love_empty: "".concat(PATH.IMAGE, "/icon-love-empty.png"),
|
|
435
|
-
love_filled: "".concat(PATH.IMAGE, "/icon-love-filled.png"),
|
|
436
437
|
};
|
|
437
438
|
|
|
438
439
|
var Images = function (_a) {
|