0.0.26 • Published 5 months ago

@rssb/ui v0.0.26

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

RSSB UI Component Library

An internal, TypeScript-based React component library for the Rwanda Social Security Board (RSSB) organization. Built with modern tools and atomic design principles to ensure consistency across all RSSB digital products.

🌟 Overview

This private component library serves as the foundation for all RSSB web applications, ensuring a consistent user experience and accelerating development across teams.

Key Features

  • šŸ¢ Official RSSB design system implementation
  • šŸ“¦ Built with TypeScript for enhanced reliability
  • āš”ļø Powered by Vite and SWC for optimal performance
  • šŸ“š Comprehensive Storybook documentation
  • šŸŽØ Structured using atomic design principles

šŸ—ļø Component Structure

Following atomic design principles for scalable architecture:

src/
└── components/
    ā”œā”€ā”€ atoms/        # Basic RSSB UI elements (Button, Input, etc.)
    ā”œā”€ā”€ molecules/    # Simple component combinations
    ā”œā”€ā”€ organisms/    # Complex RSSB-specific UI components
    ā”œā”€ā”€ templates/    # RSSB application layout templates
    └── pages/        # Complete page implementations

šŸš€ Getting Started

For RSSB Developers

  1. Ensure you have access to the RSSB npm registry
  2. Set up your npm configuration with the appropriate credentials
# Authenticate with the RSSB registry
npm login --registry=https://rssb-registry.com

# Install the library in your project
yarn add @rssb/ui-components

For Library Developers

# Clone the repository from RSSB's internal GitLab
git clone https://gitlab.rssb.rw/frontend/ui-components.git

# Navigate to the project directory
cd ui-components

# Install dependencies
yarn install

šŸ“¦ Usage in RSSB Applications

import { Button } from "@rssb/ui-components";

function LoginForm() {
  return (
    <Button variant="primary" onClick={() => console.log("Logged in")}>
      Login
    </Button>
  );
}

šŸ› ļø Available Scripts

  • yarn dev - Starts Storybook for component development
  • yarn build - Builds the library for production
  • yarn test - Runs the test suite
  • yarn lint - Runs ESLint for code quality

šŸ“ Project Structure

rssb-ui/
ā”œā”€ā”€ .storybook/          # Storybook configuration
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ components/      # RSSB React components
│   ā”œā”€ā”€ utils/           # Utility functions
│   └── index.ts         # Main entry point
ā”œā”€ā”€ stories/             # Storybook stories
ā”œā”€ā”€ tests/               # Test files
└── [Config files...]    # Various configuration files

šŸ“š Documentation

Internal documentation is available through Storybook and our internal developer portal:

  1. Storybook (for component exploration):

    • Local: Start with yarn storybook and visit http://localhost:6006
  2. Developer Portal:

    • Comming soon!

šŸ¤ Contributing

As an internal RSSB project, contributions are welcome from all RSSB team members:

  1. Create a new branch from develop
  2. Make your changes following our coding standards
  3. Update tests and documentation
  4. Submit a merge request to develop

šŸ”„ Version Control & Updates

We use semantic versioning for releases.

šŸ‘„ Team

  • RSSB Front-ent Team

šŸ“‹ Changelog

See CHANGELOG.md for a list of changes and updates.


Copyright Ā© 2024 Rwanda Social Security Board (RSSB). All rights reserved.

0.0.21

10 months ago

0.0.22

10 months ago

0.0.23

10 months ago

0.0.24

10 months ago

0.0.25

10 months ago

0.0.1

12 months ago

0.0.2

10 months ago

0.0.26

5 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago