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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@publishfx/publish-components

v2.0.3

Published

A React UI component library for the Publish platform, including ActionButton component

Downloads

91

Readme

@moonton/publish-components

A React UI component library for the Publish platform, built with React, TypeScript, and styled-components.

Installation

pnpm add @moonton/publish-components
# or
npm install @moonton/publish-components
# or
yarn add @moonton/publish-components

Peer Dependencies

This package requires the following peer dependencies:

  • react (>=18.3.1)
  • react-dom (>=18.3.1)

Make sure to install them in your project:

pnpm add react react-dom

Components

ActionButton

A customizable button component with predefined action types and icons.

import { ActionButton, ActionButtonType } from '@moonton/publish-components';

function App() {
  return (
    <ActionButton 
      action={ActionButtonType.Export}
      onClick={() => console.log('Export clicked')}
      monitorId="export-button"
    >
      Export
    </ActionButton>
  );
}

Props:

  • action: ActionButtonType - The action type (export, batchupload, add, setting, upload)
  • monitorId?: string - Monitoring ID for analytics
  • All other ButtonProps from @arco-design/web-react

Available Action Types:

  • ActionButtonType.Export - Export action
  • ActionButtonType.Batchupload - Batch upload action
  • ActionButtonType.Add - Add action
  • ActionButtonType.SETTING - Settings action
  • ActionButtonType.Upload - Upload action

PerformanceTable

A high-performance data table component with column resizing, sorting, pagination, and advanced formatting features.

import { PerformanceTable, PerformanceTableColumn } from '@moonton/publish-components';

const columns: PerformanceTableColumn[] = [
  {
    title: 'Name',
    dataIndex: 'name',
    minWidth: 100,
  },
  {
    title: 'Revenue',
    dataIndex: 'revenue',
    showCurrency: true,
    showPercent: true,
  },
];

function App() {
  return (
    <PerformanceTable
      columns={columns}
      dataSource={data}
      showPagination
      pagination={{
        pageSize: 10,
        current: 1,
      }}
    />
  );
}

Key Features:

  • Column resizing with min/max width constraints
  • Number, currency, and percentage formatting
  • Color scale visualization
  • Custom formatters
  • Sorting and pagination
  • Row selection
  • Summary rows
  • Highlight settings for weekends/special dates
  • Full-screen mode support

Props:

  • columns: PerformanceTableColumn[] - Column configuration
  • dataSource?: T[] - Table data
  • showPagination?: boolean - Show pagination
  • pagination?: TableProps['pagination'] | false - Pagination config
  • loading?: boolean - Loading state
  • onSort?: (dataIndex: string, direction: 'ascend' | 'descend' | null) => void - Sort callback
  • isFullScreen?: boolean - Full screen mode
  • And more... See TypeScript definitions for complete API

ReactSticky

Sticky positioning components for creating sticky headers, sidebars, and other elements.

import { Sticky, StickyContainer } from '@moonton/publish-components';

function App() {
  return (
    <StickyContainer>
      <Sticky>
        <div>This will stick to the top when scrolling</div>
      </Sticky>
      <div>Regular content</div>
    </StickyContainer>
  );
}

Components:

  • StickyContainer - Container component that manages sticky context
  • Sticky - Component that sticks to a position when scrolling

Icons

A collection of SVG icon components.

import { 
  IconExport, 
  IconAdd, 
  IconUpload,
  IconSearch,
  // ... and more
} from '@moonton/publish-components';

function App() {
  return (
    <div>
      <IconExport width={24} height={24} />
      <IconAdd width={24} height={24} />
    </div>
  );
}

Available Icons:

  • Icon403, IconAdd, IconBatchupload, IconClose, IconDrag_sort
  • IconError, IconExport, IconFolder, IconOpen_down, IconOpen_right
  • IconPlus, IconSearch, IconSelected_transfer, IconSettings
  • IconUp_down, IconUpload
  • And more platform icons (Apple, Facebook, Google, Instagram, TikTok, Twitch, Twitter, Youtube)

Development

Build

pnpm build

Development Mode (Watch)

pnpm dev

TypeScript Support

This package is written in TypeScript and includes full type definitions. All components and their props are fully typed.

License

ISC