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

@ditus/react-web-retail

v1.0.31

Published

A set of reusable React web components based on Material UI for retail applications.

Downloads

4

Readme

@ditus/react-web-retail

License: MIT build/test Coverage Status contributor covenant

This repo contains UI components based on Material UI for use in web-based retail applications. These components can be used when building a responsive, themed, and accessible web-based retail application. All components have multi-language/translation support and can be themed. The repo is open source and will remain so.

Installation

npm i @ditus/react-web-retail

Demo

To view the components, type:

npm i
npm run storybook

Components

The following components are included in the package. For demo's and to view components in actual size, run storybook as indicated above. Some components are internal and are not listed here since they are not exposed. If you don't see a component that you believe should be here or you would like to see an internal component made external, submit a request and we will respond promptly.

Add To Cart

The Add to Cart component displays a button that allows customers to add a product to their shopping cart.

Add to Cart component

Brand Link

The Brand Link component displays the brand name of a product.

Brand Link component

It can also be displayed as a link, if there are many products of the same brand:

Brand Link component as a link

Cart Empty

The Cart Empty component displays a message stating that the customers shopping cart is empty.

Choking Hazard component

Cart Icon

The Cart Icon component displays a shopping cart icon that can be clicked to redirect the customer to their shopping cart.

Cart Icon component

The Cart Icon with a badge specifying the number of products in the shopping cart:

Cart Icon component with badge

Choking Hazard

The Choking Hazard component displays a warning on products that contain small parts and could be harmful to younger children.

Choking Hazard component

Featured Product Attributes

The Featured Product Attributes component displays a subset of product attributes that consumers would be more interested in.

Featured Product Attributes component

Featured Taxonomies

The Featured Taxonomies component displays related taxonomies used to categories products. Customers would usually click a taxonomy to view all products within that category.

Featured Taxonomies component

Featured Taxonomy

The Featured Taxonomy component displays a single category or taxonomy of products, such as dog toys or cat food.

Featured Taxonomy component

When the mouse is hovered over the component, it appears as:

Featured Taxonomy component with mouse hovered

Low Stock

The Low Stock component displays a message when a product is low on quantity.

Low Stock component

Price

The Price component displays the price of a product.

Price component

Product

The Product component displays a product's information and is used in search results and lists of products.

Product component

Product Attribute

The Product Attribute component displays a single name/value pair representing an attribute of the product, such as the product's color or dimensions.

Product Attribute component

Product Attributes

The Product Attributes component displays a list of product attributes.

Product Attributes component

Product Image

The Product Image component displays a single image of a product.

Product Image component

Rating Bar

The Rating Bar component displays a product star rating and when the user presses or hovers over the component, a popup appears displaying more information on the ratings of the product.

Rating Bar component

Rating Linear Progress

The Rating Linear Progress component displays a styled Linear Progress bar that displays the rating for a product.

Rating Linear Progress component

Rating Summary

The Rating Summary component displays the ratings for a product broken down by star rating, including the average rating and total number of ratings.

Rating Summary component

Rating Summary Bar

The Rating Summary Bar component displays the ratings for a single star (1 through 5) on the Rating Summary component.

Rating Summary Bar component

Save Coupon

The Save Coupon component displays a message indicating how much the consumer will save with a coupon that is automatically applied at checkout.

Save Coupon component

Sponsored

The Sponsored component displays the word 'sponsored' and is meant to be displayed when a product is promoted for advertising reasons.

Sponsored component

Swatch

The Swatch component displays a variant color or material for a product using a solid color or image.

This is an example of a solid color:

Swatch component with solid color

This is an example of an image:

Swatch component with image

Swatches

The Swatches component displays one or more swatches.

Swatches component

Wish List Icon

The Wish List Icon component displays a wish list icon that can be clicked to redirect the customer to their wish list.

Wish List Icon component

The Wish List Icon with a badge specifying the number of products in the wish list:

Wish List Icon component with badge

Roadmap

See the open issues for a list of proposed features (and known issues).

License

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