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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bookit-n-go/ui-kit

v0.1.10

Published

Bookit-n-go UI Kit - A React component library for Bookit-n-go web applications

Readme

BNG UI Kit

A comprehensive React component library for BNG web applications. This UI kit provides reusable, accessible, and well-tested components to ensure consistency across all BNG web projects.

Built on top of Skyscanner's Backpack Design System, providing a solid foundation of accessible, well-designed components.

Available Scripts

Build the library

npm run rollup

Publish the library

npm publish

Run tests

npm run test

Run storybook locally

npm run storybook

Build storybook

npm run build-storybook

Installation

Install the BNG UI Kit in your project:

npm install @bng/uikit

Usage

Import components from the BNG UI Kit:

import { Button, Input, Card, Select, Text, Spinner } from "@bng/uikit";

const MyApp = () => {
  return (
    <div>
      {/* Button */}
      <Button label="Click me" onClick={() => console.log("Button clicked!")} />

      {/* Input */}
      <Input
        id="email"
        name="email"
        type="email"
        placeholder="Enter your email"
        onChange={(e) => console.log("Email:", e.target.value)}
      />

      {/* Card */}
      <Card>
        <Text textStyle="lg">Card Title</Text>
        <Text>Card content goes here</Text>
      </Card>

      {/* Select */}
      <Select
        id="country"
        name="country"
        options={[
          { value: "", label: "Select a country" },
          { value: "us", label: "United States" },
          { value: "uk", label: "United Kingdom" },
        ]}
        onChange={(e) => console.log("Country:", e.target.value)}
      />

      {/* Text */}
      <Text textStyle="xl">Large Heading</Text>
      <Text>Regular paragraph text</Text>

      {/* Spinner */}
      <Spinner type="primary" />
    </div>
  );
};

Requirements

The BNG UI Kit is built on Skyscanner's Backpack Design System. Make sure to install the required peer dependencies:

npm install react react-dom @skyscanner/backpack-web

Components

The BNG UI Kit includes the following components built on Backpack:

  • Button: Primary, secondary, destructive, and link button variants
  • Input: Text input with validation states and multiple types (text, email, password, etc.)
  • Card: Container component with padding options and click handlers
  • Select: Dropdown select with options and validation states
  • Text: Typography component with multiple text styles (xs, sm, base, lg, xl, xxl)
  • Spinner: Loading spinner with primary, light, and dark variants

Features

  • Built on Backpack: Components are built on Skyscanner's Backpack Design System for consistency and accessibility
  • TypeScript Support: Full TypeScript definitions included
  • Accessible: Components follow WCAG accessibility guidelines
  • Tested: Comprehensive test coverage with Jest and React Testing Library
  • Documented: Interactive component documentation with Storybook
  • Styled: SCSS support for customizable styling
  • Optimized: Minified bundles with tree-shaking support

Development

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Setup

Clone the repository and install dependencies:

git clone <repository-url>
cd template-react-component-library
npm install

Building

Build the library:

npm run rollup

This will generate the distribution files in the dist directory.

Testing

Run the test suite:

npm run test

Storybook

View components in Storybook:

npm run storybook

Build Storybook for deployment:

npm run build-storybook

Contributing

Contributions are welcome! Please ensure that:

  • All tests pass
  • New components include tests
  • Components are documented in Storybook
  • Code follows the existing style guidelines

License

ISC