Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@1money/component-ui

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1money/component-ui

React Components based on primereact for 1money front-end projects

latest
Source
npmnpm
Version
0.0.76
Version published
Weekly downloads
647
-60.45%
Maintainers
1
Weekly downloads
 
Created
Source

1Money Component UI

This repository contains the source for @1money/component-ui, a React component library used across 1Money front-end projects.

It combines reusable UI components with a 1Money SCSS design system, Storybook for local development, and dual CommonJS/ES module builds for distribution.

Live Storybook

Browse the published component documentation and interactive examples at:

https://1money-co.github.io/1money-components-ui/

The site is built from the main branch (pnpm build:demo) and deployed to GitHub Pages on every push. For unreleased work on other branches, run Storybook locally with pnpm dev.

Features

  • React and TypeScript component library
  • Reusable UI building blocks styled for 1Money products
  • SCSS design system in src/styles/
  • Storybook development server on port 6205
  • Dual build output to lib/ and es/

Installation

Install the package and the required React dependencies:

pnpm add @1money/component-ui react react-dom primereact primeicons

Then import the library stylesheet once in your app entrypoint:

import '@1money/component-ui/index.css';

Quick Start

Named imports are available from the root package entry:

import {
  Button,
  Checkbox,
  CheckboxGroup,
  Grid,
  Icons,
  notification,
  Tag,
  Tooltip,
} from '@1money/component-ui';
import '@1money/component-ui/index.css';

export function Example() {
  return (
    <>
      <Grid gutter={[16, 16]}>
        <Grid.Col span={12} md={6}>
          <Button color="primary">Continue</Button>
        </Grid.Col>
        <Grid.Col span={12} md={6}>
          <Checkbox label="Accept terms" />
        </Grid.Col>
        <Grid.Col span={12} md={6}>
          <CheckboxGroup
            options={['Email', 'SMS']}
            defaultValue={['Email']}
          />
        </Grid.Col>
      </Grid>

      <Tag label="Active" color="success" />

      <button id="help-trigger" type="button">
        <Icons name="info" />
      </button>
      <Tooltip anchorSelect="#help-trigger" body="More details" />

      {/*
        notification is a static API. Call it from event handlers,
        effects, or other client-side actions.
      */}
      <Button
        onClick={() =>
          notification.success({
            title: 'Saved',
            body: 'Settings were updated.',
          })
        }
      >
        Show notification
      </Button>
    </>
  );
}

Tree-shakeable subpath imports are also supported:

import { Button } from '@1money/component-ui/Button';
import { Spinner } from '@1money/component-ui/Spinner';

Components In This Repository

The current source tree includes these component modules:

  • Accordion
  • Alert
  • Button
  • Calendar
  • Carousel
  • Cell
  • Checkbox (+ CheckboxGroup)
  • CoachMark
  • Copy (+ Clipboard)
  • Dialog
  • Divider
  • Drawer
  • Dropdown
  • Empty
  • Flex
  • Grid (+ Row, Col)
  • Icons (+ IconWrapper, IconHover)
  • Input
  • Link
  • Navigation (+ Nav, NavigationStepper)
  • notification (static Notification API)
  • Pagination
  • Popconfirm
  • Portal
  • ProForm
  • Progress
  • Radio (+ RadioGroup)
  • ResizeObserver
  • Segment
  • Select
  • Skeleton
  • Slider
  • Space
  • Spinner
  • Step
  • Switch
  • Table (+ VirtualTable)
  • Tabs
  • Tag
  • Tooltip
  • Tour
  • Trigger
  • Typography
  • Upload (+ UploadFileBar)
  • VirtualList

The package manifest defines subpath exports for top-level component modules. Grouped exports such as Row, Col, Nav, and VirtualTable are imported from their parent module subpaths.

Styling

Consumers should import @1money/component-ui/index.css.

When building or updating components inside this repository, SCSS files should import the internal style API:

@use '@/styles/api' as theme;

The style system follows a layered boundary model:

  • theme/ = design-domain API
  • system/ = sx engine
  • recipes/ = library recipe helpers
  • public/ = consumer-facing facade exported by src/styles/_api.scss

Component SCSS should not import system/* or tokens/* directly. theme/functions is reserved for rare library-only reader access such as om-line-height(...) or om-line-height-px(...). The design token and utility system is documented in src/styles/README.md.

Development

Install dependencies:

pnpm install

Start Storybook locally:

pnpm dev

Storybook runs at http://localhost:6205.

Useful commands:

pnpm test
pnpm lint
pnpm build
pnpm new
pnpm new Button -f

Build output is generated in:

  • lib/ for CommonJS
  • es/ for ES modules

Project Structure

src/
├── components/   # Component source
├── styles/       # SCSS public/theme/system/recipes/internal layers
└── index.ts      # Root library exports

Release Notes

  • Package name: @1money/component-ui
  • Repository: https://github.com/1Money-Co/1money-components-ui
  • License: MIT

FAQs

Package last updated on 13 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts