{"_id":"@aswaddev/compolib","_rev":"1-3e3340b5c3bc6f55ed85c3b29ff1d42b","name":"@aswaddev/compolib","description":"This is an example react component library","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.2":{"name":"@aswaddev/compolib","version":"1.0.2","keywords":[],"author":{"name":"Aswad Ali"},"license":"MIT","_id":"@aswaddev/compolib@1.0.2","maintainers":[{"name":"aswadali","email":"aswad.fsquad@gmail.com"}],"homepage":"https://github.com/aswaddev/example-npm-package-1#readme","bugs":{"url":"https://github.com/aswaddev/example-npm-package-1/issues"},"dist":{"shasum":"e99989e3bde9c38806f3316ee84d54b5da7c53db","tarball":"https://registry.npmjs.org/@aswaddev/compolib/-/compolib-1.0.2.tgz","fileCount":23,"integrity":"sha512-Jq643BFSV6gkyWWpgdqNwRk1h8Ya83d7TcC9324Vfkgj7b9Ttmv8hmz9uvKm3VeWIr+8lcjdOZpOV+i95/NBOg==","signatures":[{"sig":"MEYCIQDLO8WJRhRlqjKYl49eLXlSWPowZvYF2NaNw4DACiH+nAIhAPU2EHsbfVPpdRIpZ9SpFPtjIIWC3e0uMg73Ox5x0qEE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6913},"main":"dist/cjs/index.js","types":"./dist/cjs/index.d.ts","module":"dist/esm/index.js","gitHead":"dd9aa03cfed4348ed35dbbd2c30d5e81c3373f97","scripts":{"build":"rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs","build:cjs":"tsc --module CommonJS --outDir dist/cjs","build:esm":"tsc"},"_npmUser":{"name":"aswadali","email":"aswad.fsquad@gmail.com"},"repository":{"url":"git+https://github.com/aswaddev/example-npm-package-1.git","type":"git"},"_npmVersion":"10.5.0","description":"This is an example react component library","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"react":"^18.3.1","prettier":"^3.3.2","react-dom":"^18.3.1","typescript":"^5.4.5","@types/node":"^20.14.5","@types/react":"^18.3.3","@types/react-dom":"^18.3.0"},"peerDependencies":{"react":"^18.3.1","react-dom":"^18.3.1"},"_npmOperationalInternal":{"tmp":"tmp/compolib_1.0.2_1718745023421_0.45064722887635833","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@aswaddev/compolib","repository":{"type":"git","url":"git+https://github.com/aswaddev/example-npm-package-1.git"},"version":"1.0.3","description":"This is an example react component library","main":"dist/cjs/index.js","module":"dist/esm/index.js","scripts":{"build":"rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs","build:esm":"tsc","build:cjs":"tsc --module CommonJS --outDir dist/cjs"},"keywords":[],"author":{"name":"Aswad Ali"},"license":"MIT","devDependencies":{"@types/node":"^20.14.5","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","prettier":"^3.3.2","react":"^18.3.1","react-dom":"^18.3.1","typescript":"^5.4.5"},"peerDependencies":{"react":"^18.3.1","react-dom":"^18.3.1"},"_id":"@aswaddev/compolib@1.0.3","gitHead":"60fe13304fceb8c5c17df7a906be0886b0c42ecb","types":"./dist/cjs/index.d.ts","bugs":{"url":"https://github.com/aswaddev/example-npm-package-1/issues"},"homepage":"https://github.com/aswaddev/example-npm-package-1#readme","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-kCRK97I0y3wRdfEC4z1D1wb0y3ebnNtMN/1cjxfQfzYahkfKUJWIyHv2KDTMQTvenOaASElOBdEx6OQLp9IFRg==","shasum":"201c40d2205e8b9e1ca946c93001d5d3b52c830f","tarball":"https://registry.npmjs.org/@aswaddev/compolib/-/compolib-1.0.3.tgz","fileCount":23,"unpackedSize":8992,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0Gf9kcWfn3hcIc8iNYZIbw5E4iby0Wa79W7EnKYRjcAiEAvcl1UBmDExw8IyStGyZGLoKqnrFd+m2UKShKXFhAtGo="}]},"_npmUser":{"name":"aswadali","email":"aswad.fsquad@gmail.com"},"directories":{},"maintainers":[{"name":"aswadali","email":"aswad.fsquad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/compolib_1.0.3_1718746620409_0.956912908000433"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-18T21:10:23.292Z","modified":"2024-06-18T21:37:00.767Z","1.0.2":"2024-06-18T21:10:23.615Z","1.0.3":"2024-06-18T21:37:00.560Z"},"maintainers":[{"name":"aswadali","email":"aswad.fsquad@gmail.com"}],"author":{"name":"Aswad Ali"},"repository":{"type":"git","url":"git+https://github.com/aswaddev/example-npm-package-1.git"},"keywords":[],"license":"MIT","homepage":"https://github.com/aswaddev/example-npm-package-1#readme","bugs":{"url":"https://github.com/aswaddev/example-npm-package-1/issues"},"readme":"# Button Component Library\n\nWelcome to the **Button Component Library**! This is a simple React component library designed for testing and learning purposes.\n\n## Overview\n\nThis library offers a reusable `Button` component that supports customizable styles. You can pass in various props, including `color`, `backgroundColor`, and all the default button props available in\nReact.\n\n## Installation\n\nYou can install the package using npm:\n\n```\nbash npm install @aswadali/compolib\n```\n\nOr with yarn:\n\n```\nbash yarn add @aswadali/compolib\n```\n\n## Usage\n\nHere's a quick example of how to use the `Button` component in your React application:\n\n```jsx\nimport React from 'react';\nimport Button from '@aswadali/compolib';\n\nconst App = () => {\n    return (\n        <div>\n            <Button color=\"white\" backgroundColor=\"blue\" onClick={() => alert('Button clicked!')}>\n                Click Me\n            </Button>\n        </div>\n    );\n};\n\nexport default App;\n```\n\n## Props\n\nThe `Button` component supports the following props:\n\n-   **color**: Sets the text color of the button.\n-   **backgroundColor**: Sets the background color of the button.\n-   **...props**: Accepts all default button props from React, such as `onClick`, `disabled`, `type`, etc.\n\n### Example\n\n```jsx\n<Button color=\"white\" backgroundColor=\"green\" onClick={() => console.log('Green Button clicked!')}>\n    Green Button\n</Button>\n```\n\n## Contributing\n\nFeel free to contribute to this library! Whether it's reporting a bug, suggesting improvements, or submitting a pull request, your contributions are welcome.\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix.\n3. Commit your changes.\n4. Push to your branch.\n5. Create a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n\n## Acknowledgments\n\nThis library was created for learning and testing purposes. Thanks to the open-source community for their support and contributions.\n\n---\n\nHappy coding! 🎉\n\nIf you have any questions or need further assistance, please feel free to reach out.\n","readmeFilename":"README.md"}