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

wet-react

v2.0.1

Published

React component library for WET-BOEW components compatible with the GC-Web theme

Downloads

55

Readme

WET-React UI components library

React implementation of the Web Experience Toolkit (WET).

:warning: This project is early stages of development. We are actively working hard to implement more components.

Build status

Chromatic Deployment Linting Check codecov npm version

Storybook deployments

The Storybook build can be found here:

Storybook

Core documentation

This react component library is implemented based on the WET frontend CSS framework and React Bootstrap.

The documentation for these core projects can be found here:

WET CSS

WET CSS

The purpose

The purpose of this package is to "Reactify" the Web Experience Toolkit (WET). This will make it faster and easier to develope applications using WET. It also removes the JQuery dependency of WET.

This project has 3 main goals:

  • :rocket: make it easier to create frontend apps
  • :wheelchair: have accessible components (WCAG AA)
  • :books: clean and accurate documentation (Storybook)

How to use

Installation

The best way to consume React-Bootstrap is via the npm package which you can install with npm (or yarn if you prefer).

npm i wet-react

Importing Components

You can import the desired component form @wet-react as shown below

import { Button } from '@wet-react';

Stylesheet

WET-React doesn't ship with a specific stylesheet. It is made to be compatible with either the WET or GCWeb theme (based on Bootstrap 3). To allow for this flexibility, you can choose to import either CSS file in the HTML header of your project.

As an example, using the following file in the HTML header will give the components the GCWeb theme.

<link
  rel="stylesheet"
  href="https://wet-boew.github.io/themes-dist/GCWeb/GCWeb/css/theme.min.css"
/>

Development

How to run locally

  1. clone the repo to you local machine
  2. open terminal inside the project directory
  3. install packages using npm install
  4. launch Storybook using npm run storybook
  5. navigate to http://localhost:6006 to see Storybook running based on you local code. As you save your changes, the storybook will automatically update.

Project scripts

Here is what each script in the package.json does:

  • test: runs the component tests
  • lint: runs ESlint to check for issues
  • lint:fix: runs ESlint to check for issues and auto fixes them
  • prettier: runs prettier to check for code styling issues
  • prettier:fix: runs prettier to check for code styling issues and auto fixes them
  • storybook: spins up a dev instance of Storybook that is based on the local changes. The running application can be found at http://localhost:6006
  • build-storybook: builds a static version of Storybook (not often needed)
  • chromatic: Deploy the current code to a chromatic image and provide a sharable link
  • prepare: Enable Git hooks