noon_sc_design_system_web 1.0.1
Install from the command line:
Learn more about npm packages
$ npm install @fastfishio/noon_sc_design_system_web@1.0.1
Install via package.json:
"@fastfishio/noon_sc_design_system_web": "1.0.1"
About this version
The Noon Supply Chain Design System is a reusable set of UI components built with React, TypeScript, and Tailwind CSS. It is designed to be easy to use and integrate into any React application, ensuring a consistent look and feel across your supply chain web applications.
- Installation
- Usage
- Components
- Storybook
- Development
- Contributing
- License
- Maintainers and Responsibilities
To install the design system, run:
npm install @ahmedatefdev/noon_sc_design_system_web
or if you are using Yarn:
yarn add @ahmedatefdev/noon_sc_design_system_web
To use the components from the design system, import them into your React
project. Example of using the Button
component:
import React from 'react';
import { Button } from '@ahmedatefdev/noon_sc_design_system_web';
const App = () => (
<div>
<Button label="Click me" onClick={() => alert('Button clicked!')} />
</div>
);
export default App;
A customizable button component.
Props:
-
label
(string): The text to display on the button. -
onClick
(function): The function to call when the button is clicked.
A customizable input component.
Props:
-
placeholder
(string): The placeholder text for the input field. -
value
(string): The value of the input field. -
onChange
(function): The function to call when the input value changes.
We use Storybook to document and test our components. To start Storybook locally:
npm run storybook
or if using Yarn:
yarn storybook
Developers interested in contributing can follow these steps:
- Clone the repository:
git clone https://github.com/ahmedatefdev/noon_sc_design_system_web.git
- Navigate to the project directory:
cd noon_sc_design_system_web
- Install dependencies:
or with Yarn:
npm install
yarn install
- Start the development server:
or with Yarn:
npm run storybook
yarn storybook
Contributions are welcome! To contribute:
- Create a new branch for your changes.
- Make changes or add new features.
- Commit your changes with clear commit messages.
- Push the branch to the repo.
- Submit a pull request with a clear description and link to any relevant issues.
- Adhere to the existing code style.
- Document new components in Storybook.
- Repository Managers: Responsible for reviewing and merging pull requests, managing releases, and maintaining the repository's health.
- Contributors: Expected to submit pull requests with adequate documentation and tests. Contributors should also participate in code reviews and discussions.
This project is licensed under the MIT License. See the LICENSE file for details.
-
Maintainers and Responsibilities: This section clearly outlines the roles and expectations for both repository managers and contributors. This helps set clear boundaries and expectations for everyone involved.
-
Detailed Contribution Process: Expanded the "Contributing" section to include specific steps for how to contribute, making it easier for new contributors to get involved.
-
Development and Storybook Instructions: Detailed instructions for setting up a development environment and using Storybook, which are crucial for ensuring contributors can work effectively.
To develop a component or feature for the Noon Supply Chain Design System, follow these best practices:
-
Environment Setup:
- Ensure you have Node.js and npm/yarn installed.
- Clone the repository and install dependencies as described in the Development section.
-
Component Creation:
- Create components within the
src/components
directory. - Use existing design tokens and styles to maintain consistency.
- Components should be functional and utilize hooks if needed.
- Create components within the
-
Testing:
- ensure that your changes do not break existing functionality.
-
Documentation:
- Document each component in Storybook by creating a
.stories.tsx
file in the same directory as the component. - Provide examples of different states and props configurations.
- Document each component in Storybook by creating a
-
Peer Review:
- Push your changes to your branch and create a pull request.
- Request a review from one or more existing contributors.
- Address any feedback and make necessary revisions before merging.
By following these guidelines, developers can ensure that their contributions are in line with the project's standards and are ready for integration into the main codebase.
To integrate the Noon Supply Chain Design System into your real applications, follow these steps:
-
Installation:
- Install the design system package using npm or Yarn as shown in the Installation section.
-
Importing Components:
- Import the components you need from the package like any other module.
import '@ahmedatefdev/noon_sc_design_system_web/dist/styles.css'; import { Button, Input } from '@ahmedatefdev/noon_sc_design_system_web';
-
Using Components:
- Use the imported components in your React application.
const App = () => ( <div> <Button label="Save" onClick={handleSave} /> <Input placeholder="Enter your name" value={name} onChange={handleChange} /> </div> );
-
Customization:
- Override styles using className or style props if customization is supported.
- Use Tailwind CSS utility classes to adjust the appearance as needed.
-
Deployment:
- Build your application using your standard build process.
- Ensure all assets from the design system are included in the build output.
-
Maintenance:
- Keep the design system package updated in your project.
- Monitor changes and updates to the design system for any breaking changes or new features.
By following these steps, developers can seamlessly integrate and use the Noon Supply Chain Design System in their applications, ensuring consistency and quality in the user interface.
Details
- noon_sc_design_system_web
- fastfishio
- 7 months ago
- MIT
- 43 dependencies
Assets
- noon_sc_design_system_web-1.0.1.tgz
Download activity
- Total downloads 11
- Last 30 days 0
- Last week 0
- Today 0