@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 CHANGED
@@ -1,46 +1,92 @@
1
- # Getting Started with Create React App
1
+ # React JS Library
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](#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
- ## Available Scripts
6
+ ---
6
7
 
7
- In the project directory, you can run:
8
+ ## 🔍 Overview
8
9
 
9
- ### `npm start`
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
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+ ---
13
14
 
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
15
+ ## Key Features
16
16
 
17
- ### `npm test`
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
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
23
+ ---
21
24
 
22
- ### `npm run build`
25
+ ## 📦 Installation
23
26
 
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
27
+ ```bash
28
+ # via npm
29
+ npm install @rahmatsaputra-my-id/react-js-library
26
30
 
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
31
+ # or via yarn
32
+ yarn add @rahmatsaputra-my-id/react-js-library
33
+ ```
29
34
 
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
35
+ > Note: Update the package name based on the actual npm publication.
31
36
 
32
- ### `npm run eject`
37
+ ---
33
38
 
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
39
+ ## 🛠️ Usage Example
35
40
 
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
41
+ ```tsx
42
+ import React from "react";
43
+ import { Button } from "@rahmatsaputra-my-id/react-js-library";
37
44
 
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
45
+ function App() {
46
+ return (
47
+ <div>
48
+ <Button onClick={() => alert("Clicked!")}>Click Me</Button>
49
+ </div>
50
+ );
51
+ }
39
52
 
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
53
+ export default App;
54
+ ```
41
55
 
42
- ## Learn More
56
+ ---
43
57
 
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
58
+ ## 🧩 Available Exports
45
59
 
46
- To learn React, check out the [React documentation](https://reactjs.org/).
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) {