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

@safaricom/sui

v1.5.0

Published

SUI Design System

Downloads

3,184

Readme

Safaricom SUI

@safaricom/sui

A React Component Library (Typescript | React | MUI)

Getting Started

Peer dependencies

Please note that @mui/material, @emotion/react, @emotion/styled, @mui/icons-material, @mui/x-date-pickers, and dayjs are peer dependencies that should be installed before installing @safaricom/sui.

Installation

// with npm

npm install @safaricom/sui
// with yarn

yarn add @safaricom/sui

Usage

import { CssBaseline, ThemeProvider } from "@mui/material";
import theme from "@safaricom/sui";

const Layout = ({ children }) => {
  return (
    <ThemeProvider theme={theme}>
      <CssBaseline />
      {children}
    </ThemeProvider>
  );
};

export default Layout;

Usage with Nextjs

⚠️ If you're using @safaricom/sui with Next.js, you might face the following error:

...Doesn't build due to require() of ES Module (ERR_REQUIRE_ESM)

To solve it, transpile the package by adding transpilePackages: ['@safaricom/sui'] to your next.config.js/ts file.

/* Your Next.js config */
module.exports = {
  transpilePackages: ["@safaricom/sui"],
};

Changelog

Go to Version Releases

TypeScript

This library comes with TypeScript "typings". If you happen to find any bugs in those, create an issue.

🐛 Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

💡 Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.


Contributors Section

Here are some available commands/scripts and what they do.

  • build: Runs linting, builds the project using Vite`.
  • lint: Compiles TypeScript files and lints all TypeScript and TypeScript React files using ESLint.
  • lint:fix: Runs the lint command with the --fix flag to automatically fix linting errors.
  • storybook: Starts the Storybook development server on port 6006.
  • build-storybook: Builds the Storybook project.
  • test:generate-output: Runs Jest tests and outputs the results in JSON format to a file named .jest-test-results.json. If the Jest command fails, it exits with a status code of 0 (success).
  • test: Runs Jest tests.
  • start-and-test: Executes a Node.js script called startAndRunTestsWithOutput.js.
  • test:coverage: Runs tests for Storybook components with coverage enabled, generates coverage reports in the coverage/storybook directory, and outputs an lcov report.
  • test:coverage:generate-lcov: Same as test:coverage, but explicitly generates an lcov report.
  • release: Runs the standard-version package, which automatically increments the project version based on commit messages and generates a changelog.
  • test:vitestcoverage: Runs Vite tests with coverage enabled.
  • prepare: Installs Husky, a Git hooks manager, during the preparation step of installing dependencies.

LICENSE

MIT