npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@alto-avios/alto-ui

v2.3.3

Published

A react component library for Alto Design System

Downloads

3,847

Readme

Alto UI

license

Zeroheight Documentation

Prerequisites

Before setting up the project, ensure you have the following installed on your local machine:

  • Node.js: v20.11.1 (as recommended)
  • NPM: Comes with Node.js
  • nvm: (Optional, but recommended for managing Node versions)

Local Setup

Clone the repository from our github repository here: https://github.com/IAG-Loyalty/alto-ui

You will need to setup a personal access token.

Once cloned simply run

npm i

This should install the avios tokens package too which can be located in your node_modules folder.

Running Tests

If you want to run the tests for this project, you can do so with the following command:

npm run test

Running Storybook Locally

To run storybook locally run the following command

npm run storybook

Bundling the package with vite

If you want to bundle the components for production, use the following command to create an optimized build:

npm run vite

To create static Storybook files

We need to create static storybook files for our public domain site to use. Run the following command

npm run build:storybook

For Application using our package

Install Package in Applications

Install the Avios Alto Component Library package

npm install @alto-avios/alto-ui

Importing Alto Components

After following the installation process, you can import and use Alto-UI components in your React application. Here is an example of how to do it.


import { Button } from '@alto-avios/alto-ui';

const App = () => (
  <div>
    <Button>Click Me!</Button>
  </div>
);

export default App;

Update

Check if an update exists:

npm outdated

If an update is available, update the package:

npm i @alto-avios/alto-ui@latest

Node

Make sure to use Node -v 20.11.1.

Follow these steps to verify and install the required Node.js version for this project: Open your terminal.

Check the current version of Node.js installed on your system by running the following command:

node -v ​ Check the output. If it is not version 20.11.1, you will need to install this version.

If you don't have a Node version manager, install one. We recommend using NVM (Node Version Manager).

Install Node.js version 20.11.1 using your version manager. If you're using NVM, the command is:

nvm install 20.11.1 ​ Once the installation is complete, verify the installation by checking the Node.js version again:

node -v ​ The output should now be 20.11.1. You can now proceed with the project setup.

License

This project is licensed under the terms of the MIT license.