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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@procurifieddxb/react-components

v0.21.13

Published

## Introduction

Readme

@procurifieddxb/react-components

Introduction

This library contains React components for Procurified projects. Figma Designs

Technologies Used

  • React: A JavaScript library for building user interfaces.
  • Vitest: A blazing fast unit test framework powered by Vite.
  • React Testing Library: Simple and complete React DOM testing utilities that encourage good testing practices.
  • Storybook: An open source tool for developing UI components in isolation. It makes building stunning UIs organized and efficient.
  • SCSS Modules: For styling components in a modular and maintainable way.

Getting Started

  1. Installation:

    npm install
  2. Running Storybook (for local development and documentation):

    npm run dev

    This will start Storybook, where you can view and interact with the components in isolation.

  3. Running Tests:

    npm run test

    This will run the component tests using Vitest and React Testing Library.

  4. Running Lint:

    npm run lint

Working with the Project

  1. Clone the repository:

    git clone [email protected]:Procurified-Core/react-components.git
    cd react-components
  2. Install dependencies:

    npm install
  3. Start developing:

    • Use Storybook to develop and test components in isolation (npm run dev).
    • Write unit tests for your components using Vitest and React Testing Library.
  4. Build the library:

    npm run build

    This will create a dist directory with the compiled components.

Local Development with boq-ui (npm link)

Use this workflow when developing react-components and testing changes in boq-ui simultaneously.

Initial Setup (one-time)

  1. In react-components, create a global link:

    cd /path/to/react-components
    npm link
  2. In boq-ui, link to react-components:

    cd /path/to/boq-ui
    npm link @procurifieddxb/react-components
  3. Verify the symlink was created:

    ls -la node_modules/@procurifieddxb/react-components
    # Should show: react-components -> ../../../react-components

Development Workflow

  1. Start boq-ui dev server:

    cd /path/to/boq-ui
    npm run dev
  2. Make changes in react-components, then build:

    cd /path/to/react-components
    npm run build

    Or use watch mode for auto-rebuild:

    npm run dev:watch
  3. Refresh browser to see changes in boq-ui

Troubleshooting

  • Changes not reflecting? Clear Vite cache:

    rm -rf /path/to/boq-ui/node_modules/.vite

    Then restart the boq-ui dev server.

  • Link lost after npm install? Re-run step 2 of Initial Setup:

    cd /path/to/boq-ui
    npm link @procurifieddxb/react-components
  • Vite pre-bundling issues? The optimizeDeps.exclude config in boq-ui's vite.config.mts should already exclude react-components from pre-bundling.

When Done Developing

  1. Commit and push changes in react-components
  2. Run CI - tests and lint will run automatically on push
  3. Publish - trigger "Publish to NPM" workflow in GitHub Actions
  4. Update boq-ui - change dependency back to version number:
    npm install @procurifieddxb/react-components@<new-version>

Alternative: Yalc (if npm link doesn't work)

  1. Setup Yalc

    • Install Yalc (npm i yalc -g)
  2. Set the path in boq-ui

    • In boq-ui's package.json, change:
      "@procurifieddxb/react-components": "0.20.44"
      to:
      "@procurifieddxb/react-components": "file:.yalc/@procurifieddxb/react-components"
  3. Run this command after making changes in react-components

    npm run update-components

    This builds, publishes to yalc, and clears boq-ui's vite cache.

  4. Restart boq-ui to see the changes