Catalog npm
Back to packageRELEASE DETAILS

2.6.5-animate-number-beta.1

npm

@0xsquid/ui

Squid's UI components

Published21 May 2025
Direct dependencies57
Transitive dependenciesNot calculated

README

Current package documentation

Squid UI

React components library for Squid V2

Package installation and usage

Install the package:

yarn add @0xsquid/ui

Import styles in your entry point:

// src/main.tsx | src/pages/_app.tsx | etc...
import "@0xsquid/ui/dist/index.css";

Wrap your app with our theme provider <ThemeProvider /> and specify your theme:

import { ThemeProvider, Button } from "@0xsquid/ui";

function App() {
  return (
    <ThemeProvider theme={yourTheme}>
      <Button label="Hello world" variant="primary" size="md" />
    </ThemeProvider>
  );
}

Development

Install dependencies

yarn install

Start Storybook dev server

yarn storybook

Build package

To build the package using Rollup, run:

yarn build

This command will:

  1. compile Tailwind CSS classes into src/styles/compiled-tailwind.css
  2. bundle source code, along with its type declarations, into the dist/ folder
  3. copy src/styles/compiled-tailwind.css to dist/index.css

Lint and format

To format and lint the code, run:

yarn format:fix
yarn lint:fix

Folder structure

- src
  - index.ts <- barrel file
  - components
    - index.ts <- barrel file
    - buttons
      - index.ts <- barrel file
      - Button.tsx
    - lists
      - index.ts <- barrel file
      - HistoryItem.tsx
  - stories
    - buttons
      - Button.stories.tsx
    - lists
      - HistoryItem.stories.tsx

When creating a new component, don't forget to update the barrel file, exporting your component in the index.ts file in the corresponding component folder. You can also install the AutoBarrel VSCode extension.

Images

In case you need to add images somewhere that need to be included in the final bundle, convert them to base64 instead.

Example:

.my-image {
-  background-image: url('my-image.png');
+  background-image: url('data:image/png;base64,iVBORw0....');
}

Or in a React component:

-  <img src="my-image.png" />
+  <img src="data:image/png;base64,iVBORw0..." />

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 57

Native requirements
57 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
clsx
Environment
{
  "local_name": "clsx",
  "alias": false,
  "peer_metadata": null
}
2.1.1runtime
color
Environment
{
  "local_name": "color",
  "alias": false,
  "peer_metadata": null
}
4.2.3runtime
motion
Environment
{
  "local_name": "motion",
  "alias": false,
  "peer_metadata": null
}
^12.12.1runtime
zustand
Environment
{
  "local_name": "zustand",
  "alias": false,
  "peer_metadata": null
}
4.5.4runtime
date-fns
Environment
{
  "local_name": "date-fns",
  "alias": false,
  "peer_metadata": null
}
^3.6.0runtime
deepmerge
Environment
{
  "local_name": "deepmerge",
  "alias": false,
  "peer_metadata": null
}
4.3.1runtime
bignumber.js
Environment
{
  "local_name": "bignumber.js",
  "alias": false,
  "peer_metadata": null
}
9.1.2runtime
framer-motion
Environment
{
  "local_name": "framer-motion",
  "alias": false,
  "peer_metadata": null
}
^11.2.12runtime
tailwind-merge
Environment
{
  "local_name": "tailwind-merge",
  "alias": false,
  "peer_metadata": null
}
2.3.0runtime
react-day-picker
Environment
{
  "local_name": "react-day-picker",
  "alias": false,
  "peer_metadata": null
}
^8.10.1runtime
react-device-detect
Environment
{
  "local_name": "react-device-detect",
  "alias": false,
  "peer_metadata": null
}
2.2.3runtime
@lottiefiles/react-lottie-player
Environment
{
  "local_name": "@lottiefiles/react-lottie-player",
  "alias": false,
  "peer_metadata": null
}
3.5.0runtime
tslib
Environment
{
  "local_name": "tslib",
  "alias": false,
  "peer_metadata": null
}
^2.6.2development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^4.17.2development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
2.0.5development
postcss
Environment
{
  "local_name": "postcss",
  "alias": false,
  "peer_metadata": null
}
8.4.39development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
3.2.5development
storybook
Environment
{
  "local_name": "storybook",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
ts-loader
Environment
{
  "local_name": "ts-loader",
  "alias": false,
  "peer_metadata": null
}
9.5.1development
release-it
Environment
{
  "local_name": "release-it",
  "alias": false,
  "peer_metadata": null
}
17.2.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
5.4development
tailwindcss
Environment
{
  "local_name": "tailwindcss",
  "alias": false,
  "peer_metadata": null
}
3.4.1development
@types/color
Environment
{
  "local_name": "@types/color",
  "alias": false,
  "peer_metadata": null
}
^3.0.6development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^18development
autoprefixer
Environment
{
  "local_name": "autoprefixer",
  "alias": false,
  "peer_metadata": null
}
10.4.18development
concurrently
Environment
{
  "local_name": "concurrently",
  "alias": false,
  "peer_metadata": null
}
8.2.2development
@storybook/test
Environment
{
  "local_name": "@storybook/test",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
eslint-plugin-n
Environment
{
  "local_name": "eslint-plugin-n",
  "alias": false,
  "peer_metadata": null
}
^15.0.0 || ^16.0.0 development
@storybook/react
Environment
{
  "local_name": "@storybook/react",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
@types/react-dom
Environment
{
  "local_name": "@types/react-dom",
  "alias": false,
  "peer_metadata": null
}
^18development
@storybook/blocks
Environment
{
  "local_name": "@storybook/blocks",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
rollup-plugin-dts
Environment
{
  "local_name": "rollup-plugin-dts",
  "alias": false,
  "peer_metadata": null
}
^6.1.0development
@rollup/plugin-json
Environment
{
  "local_name": "@rollup/plugin-json",
  "alias": false,
  "peer_metadata": null
}
6.1.0development
eslint-plugin-react
Environment
{
  "local_name": "eslint-plugin-react",
  "alias": false,
  "peer_metadata": null
}
^7.34.1development
eslint-plugin-import
Environment
{
  "local_name": "eslint-plugin-import",
  "alias": false,
  "peer_metadata": null
}
^2.25.2development
eslint-plugin-promise
Environment
{
  "local_name": "eslint-plugin-promise",
  "alias": false,
  "peer_metadata": null
}
^6.0.0development
rollup-plugin-postcss
Environment
{
  "local_name": "rollup-plugin-postcss",
  "alias": false,
  "peer_metadata": null
}
4.0.2development
@storybook/addon-links
Environment
{
  "local_name": "@storybook/addon-links",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
9.1.0development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
5.1.3development
@rollup/plugin-commonjs
Environment
{
  "local_name": "@rollup/plugin-commonjs",
  "alias": false,
  "peer_metadata": null
}
^25.0.7development
@chromatic-com/storybook
Environment
{
  "local_name": "@chromatic-com/storybook",
  "alias": false,
  "peer_metadata": null
}
^1.2.22development
@rollup/plugin-typescript
Environment
{
  "local_name": "@rollup/plugin-typescript",
  "alias": false,
  "peer_metadata": null
}
^11.1.6development
@storybook/react-webpack5
Environment
{
  "local_name": "@storybook/react-webpack5",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
@rollup/plugin-node-resolve
Environment
{
  "local_name": "@rollup/plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^15.2.3development
@storybook/addon-essentials
Environment
{
  "local_name": "@storybook/addon-essentials",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
prettier-plugin-tailwindcss
Environment
{
  "local_name": "prettier-plugin-tailwindcss",
  "alias": false,
  "peer_metadata": null
}
0.5.12development
@storybook/addon-interactions
Environment
{
  "local_name": "@storybook/addon-interactions",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
@storybook/addon-styling-webpack
Environment
{
  "local_name": "@storybook/addon-styling-webpack",
  "alias": false,
  "peer_metadata": null
}
^1.0.0development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^6.4.0development
rollup-plugin-peer-deps-external
Environment
{
  "local_name": "rollup-plugin-peer-deps-external",
  "alias": false,
  "peer_metadata": null
}
^2.2.4development
@release-it/conventional-changelog
Environment
{
  "local_name": "@release-it/conventional-changelog",
  "alias": false,
  "peer_metadata": null
}
8.0.2-next.0development
@storybook/addon-webpack5-compiler-swc
Environment
{
  "local_name": "@storybook/addon-webpack5-compiler-swc",
  "alias": false,
  "peer_metadata": null
}
^1.0.2development
eslint-config-standard-with-typescript
Environment
{
  "local_name": "eslint-config-standard-with-typescript",
  "alias": false,
  "peer_metadata": null
}
^43.0.1development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^16.0.0 || ^17.0.0 || ^18.0.0peer
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^16.0.0 || ^17.0.0 || ^18.0.0peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "abcf98f9c8674a48d382a2a131fd910cdd918ba1",
  "tarball": "https://registry.npmjs.org/@0xsquid/ui/-/ui-2.6.5-animate-number-beta.1.tgz",
  "fileCount": 652,
  "integrity": "sha512-it+FrhXvYkyuK0OZ9l9O29rTntzvo4xuw5GNPsogw2cjJnDBAHcOEdk/lJmpmhQq0BaFo4i1NcMXpoLdEpLk1g==",
  "signatures": [
    {
      "sig": "MEQCIGVevm06ubhf586PQm53s2Jy/G1F5StXAM5Ec07kCg9YAiBXhU1C6bPrjw7DORzhJsRXZrepQ4+c4SCEMg5TAKgrpQ==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 6432274
}

Repository

PENDING
0xsquid/squid-ui

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xsquid/api-widget

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b725bc3aa6e4bb124d364cb5b5885dbfeb7c1905f891941e2df1b95101acc895

Other collected versions

3.8.015 Oct3.8.0-beta-nodev24.06 Oct3.7.1-beta-danal.02 Sept3.7.027 Jul3.6.027 Jul3.5.1-beta-staking-flow.124 JulView all collected versions →