Catalog npm
Back to packageRELEASE DETAILS

0.1.6

npm

@0xintuition/1ui

Design system

Published4 Jun 2024
Direct dependencies46
Transitive dependenciesNot calculated

README

Current package documentation

Welcome to the Intuition 1ui Component Library

This is our initial 1ui component library. This will eventually become a published package, but right now we're developing it and running it from within the monorepo structure. We're importing this into our apps such as Portal while we're building.

Getting Started

Once you've cloned the intuition-ts monorepo you can run 1ui from the monorepo root. Install all packages from the monorepo root by running pnpm install.

Installing Components in Apps

Once you add components to the component library you'll need to run pnpm --filter 1ui build before they'll be ready for importing. The build is powered by Vite, so this is typically a quick process. Once 1ui successfully builds, you can import components into apps directly from the 1ui package: import { Button, Label, Input } from '@0xintuition/1ui'; These components are fully type safe and have the styles/variants/etc. injected.

Adding Components to the Component Library

To create a new component in 1ui run the command pnpm 1ui:component:create and follow the prompts. We leverage the Shadcn/ui stack whenever possible:

Running Storybook

This package also contains a Storybook instance that is using the Vite builder.

Storybook runs on port 6006. You're able to run Storybook and Portal at the same time since they're on unique ports.

You can run Storybook with pnpm run --filter 1ui ui. This opens a window with your default browser. You can also run Storybook without opening in your default browser with pnpm run --filter 1ui ui --ci -- this is helpful if you already have a tab open.

Publishing

Version Management

We follow semantic versioning (SemVer):

  • pnpm version:patch - Bug fixes (0.0.X)
  • pnpm version:minor - New features (0.X.0)
  • pnpm version:major - Breaking changes (X.0.0)
  • pnpm version:beta - Pre-release versions (X.X.X-beta.0)

Publishing Workflow

  1. Bump the version:
# For bug fixes
pnpm version:patch

# For new features
pnpm version:minor

# For breaking changes
pnpm version:major

# For beta releases
pnpm version:beta
  1. Verify package contents:
pnpm publish-dry
  1. Publish the package:
# For stable releases
pnpm publish-latest

# For beta/development releases
pnpm publish-next

Publishing Notes

  • Always run publish-dry before publishing to verify package contents
  • Use --tag next for development/beta versions
  • Use --tag latest for production versions
  • The package will be published to npm as @0xintuition/1ui

Local Development Testing

To test changes without publishing to npm, you can use the local registry (Verdaccio). This is useful for testing changes in other apps within the monorepo or in external projects.

Setup: Copy .npmrc.example from the root to .npmrc to configure the local registry.

  1. Start the local registry:
pnpm nx local-registry
  1. Make changes to the package and build:
cd packages/1ui
pnpm build
  1. Publish to local registry:
npm publish --registry http://localhost:4873
  1. In your test app (e.g., apps/template), update the package version:
{
  "dependencies": {
    "@0xintuition/1ui": "^x.x.x" // Use the version you just published
  }
}
  1. Install the updated package:
pnpm install

Testing in External Projects

If you need to test in a project outside the monorepo:

# Create and set up test project
mkdir ~/1ui-test
cd ~/1ui-test
pnpm init

# Install dependencies
pnpm add @0xintuition/1ui --registry http://localhost:4873
pnpm add react react-dom @types/react typescript

# Create a test file (test.tsx)
echo 'import React from "react";
import { Button } from "@0xintuition/1ui";
export default function Test() {
  return <Button>Test Button</Button>;
}' > test.tsx

# Verify types work
pnpm tsc test.tsx --noEmit

Notes

  • The local registry persists packages in tmp/local-registry/storage
  • Clear storage by stopping and restarting the registry
  • First-time publishing requires creating a user (any username/password works)
  • The registry runs on port 4873 by default

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 46

Native requirements
46 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
clsx
Environment
{
  "local_name": "clsx",
  "alias": false,
  "peer_metadata": null
}
^2.1.1runtime
cmdk
Environment
{
  "local_name": "cmdk",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
sonner
Environment
{
  "local_name": "sonner",
  "alias": false,
  "peer_metadata": null
}
^1.4.41runtime
lucide-react
Environment
{
  "local_name": "lucide-react",
  "alias": false,
  "peer_metadata": null
}
^0.376.0runtime
tailwind-merge
Environment
{
  "local_name": "tailwind-merge",
  "alias": false,
  "peer_metadata": null
}
^2.3.0runtime
tailwindcss-animate
Environment
{
  "local_name": "tailwindcss-animate",
  "alias": false,
  "peer_metadata": null
}
^1.0.7runtime
@radix-ui/react-slot
Environment
{
  "local_name": "@radix-ui/react-slot",
  "alias": false,
  "peer_metadata": null
}
^1.0.2runtime
@radix-ui/react-label
Environment
{
  "local_name": "@radix-ui/react-label",
  "alias": false,
  "peer_metadata": null
}
^2.0.2runtime
@radix-ui/react-avatar
Environment
{
  "local_name": "@radix-ui/react-avatar",
  "alias": false,
  "peer_metadata": null
}
^1.0.4runtime
@radix-ui/react-dialog
Environment
{
  "local_name": "@radix-ui/react-dialog",
  "alias": false,
  "peer_metadata": null
}
^1.0.5runtime
@radix-ui/react-switch
Environment
{
  "local_name": "@radix-ui/react-switch",
  "alias": false,
  "peer_metadata": null
}
^1.0.3runtime
react-resizable-panels
Environment
{
  "local_name": "react-resizable-panels",
  "alias": false,
  "peer_metadata": null
}
^2.0.19runtime
@radix-ui/react-popover
Environment
{
  "local_name": "@radix-ui/react-popover",
  "alias": false,
  "peer_metadata": null
}
^1.0.7runtime
@radix-ui/react-tooltip
Environment
{
  "local_name": "@radix-ui/react-tooltip",
  "alias": false,
  "peer_metadata": null
}
^1.0.7runtime
class-variance-authority
Environment
{
  "local_name": "class-variance-authority",
  "alias": false,
  "peer_metadata": null
}
^0.7.0runtime
@radix-ui/react-accordion
Environment
{
  "local_name": "@radix-ui/react-accordion",
  "alias": false,
  "peer_metadata": null
}
^1.1.2runtime
@radix-ui/react-separator
Environment
{
  "local_name": "@radix-ui/react-separator",
  "alias": false,
  "peer_metadata": null
}
^1.0.3runtime
@radix-ui/react-dropdown-menu
Environment
{
  "local_name": "@radix-ui/react-dropdown-menu",
  "alias": false,
  "peer_metadata": null
}
^2.0.6runtime
@tailwindcss/container-queries
Environment
{
  "local_name": "@tailwindcss/container-queries",
  "alias": false,
  "peer_metadata": null
}
^0.1.1runtime
@radix-ui/react-navigation-menu
Environment
{
  "local_name": "@radix-ui/react-navigation-menu",
  "alias": false,
  "peer_metadata": null
}
^1.1.4runtime
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^6.2.2development
vite
Environment
{
  "local_name": "vite",
  "alias": false,
  "peer_metadata": null
}
~5.0.0development
jsdom
Environment
{
  "local_name": "jsdom",
  "alias": false,
  "peer_metadata": null
}
~22.1.0development
postcss
Environment
{
  "local_name": "postcss",
  "alias": false,
  "peer_metadata": null
}
^8.4.38development
storybook
Environment
{
  "local_name": "storybook",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
tsc-alias
Environment
{
  "local_name": "tsc-alias",
  "alias": false,
  "peer_metadata": null
}
^1.8.10development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.1.6development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.12.7development
tailwindcss
Environment
{
  "local_name": "tailwindcss",
  "alias": false,
  "peer_metadata": null
}
^3.4.3development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^18.2.20development
autoprefixer
Environment
{
  "local_name": "autoprefixer",
  "alias": false,
  "peer_metadata": null
}
^10.4.19development
@storybook/test
Environment
{
  "local_name": "@storybook/test",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@storybook/react
Environment
{
  "local_name": "@storybook/react",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@storybook/blocks
Environment
{
  "local_name": "@storybook/blocks",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@storybook/theming
Environment
{
  "local_name": "@storybook/theming",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
vite-tsconfig-paths
Environment
{
  "local_name": "vite-tsconfig-paths",
  "alias": false,
  "peer_metadata": null
}
^4.3.2development
@storybook/react-vite
Environment
{
  "local_name": "@storybook/react-vite",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@storybook/addon-links
Environment
{
  "local_name": "@storybook/addon-links",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@storybook/manager-api
Environment
{
  "local_name": "@storybook/manager-api",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@testing-library/react
Environment
{
  "local_name": "@testing-library/react",
  "alias": false,
  "peer_metadata": null
}
^15.0.7development
@storybook/builder-vite
Environment
{
  "local_name": "@storybook/builder-vite",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@testing-library/jest-dom
Environment
{
  "local_name": "@testing-library/jest-dom",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
@storybook/addon-essentials
Environment
{
  "local_name": "@storybook/addon-essentials",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@storybook/addon-onboarding
Environment
{
  "local_name": "@storybook/addon-onboarding",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
@storybook/addon-interactions
Environment
{
  "local_name": "@storybook/addon-interactions",
  "alias": false,
  "peer_metadata": null
}
^8.0.9development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^18.2.0peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "71b7a3b4839cfe4023e1c05d3b34da58e3ad69f1",
  "tarball": "https://registry.npmjs.org/@0xintuition/1ui/-/1ui-0.1.6.tgz",
  "fileCount": 120,
  "integrity": "sha512-Zc8CkuuOdUwLsuZi+9irvc4d15bRD8ZN7HekzrTsWCHHaZo06k943YGir/gxp2DoLKhiPsTCPcFMkNuMxy0/ZA==",
  "signatures": [
    {
      "sig": "MEUCIF++g3mnuDCLULEa3e6Q9YbillBmCgz6jML1YMsPTLYtAiEAh9+IWqT+UuTbS30uUh60tMExYehey2qJ7EPFd1WmUl4=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 224434
}

Repository

PENDING
0xintuition/intuition-ts

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 08:57 UTC

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

Record identity

package_version:120b351e2a079dfb533eef52eb82771d8cf00dccc23fa7ed1624ca3d040bf532

Other collected versions

0.4.11 Apr0.3.613 Feb0.3.527 Nov0.3.427 Nov0.3.327 Nov0.3.227 NovView all collected versions →