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

@lidofinance/lido-ui

v3.26.1

Published

> React components for Lido Finance projects.

Downloads

11,282

Readme

Lido UI Components

React components for Lido Finance projects.

Check out our Storybook at https://ui.lido.fi

Breaking Changes

useSystemTheme hook will no longer return light theme as a fallback when system theme was not identified. A check needs to be added after upgrading.

Getting Started

Simply add lido-ui to your dependencies:

yarn add @lidofinance/lido-ui

Then, import Lido theme provider and wrap your components in _app.js:

import { ThemeProvider } from '../lido-ui'

function App({ Component }) {
  return (
    <ThemeProvider>
      <Component />
    </ThemeProvider>
  )
}

Usage

Simply import any components and use in your project:

import { Button } from '../lido-ui'

Developing

  • yarn dev - Start Storybook locally to start developing components.
  • yarn build - Build all components.
  • yarn test - Run tests across components.
  • yarn lint - Run eslint across components.

Initial setup

  1. To get started, install the dependencies:
yarn install
  1. Build the packages:
yarn build
  1. Run the storybook:
yarn dev

Adding a new package

Add files

  1. Add a new package directory into the packages dir.
  2. Add package.json, check other packages to find out what you can copy from their package.json files.
  3. Fill in correctly the name field in the package.json.
  4. Add README.md and LICENSE.txt. You can copy tsconfig.json and .npmignore from other packages.
  5. Add the src directory, where the package's code will be placed.

Run commands in the following order

yarn combine

It triggers a script, which updates the main lido-ui package. The script finds all packages, including the new one, and adds them to dependencies of lido-ui and to exports in its index file.

yarn install && yarn build

Publishing

Packages are automatically published to npm when you push to master. The publication is based on semantic-release and @qiwi/multi-semantic-release.

For correct version detection, please follow the conventional commit format.

Linking

To include a local version of modified lido in your project, run yarn link in packages/lido and run yarn link lido in project you want to use it in. Make sure to run yarn unlink lido after it's no longer needed.