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

xdesign-component-center

v0.4.0

Published

XDesign React component library. Ant Design adapters with a shared Less visual layer.

Readme

xdesign-component-center

XDesign React component library. The package boundary is kept separate from the documentation application so components can be consumed by any React app.

All current components share an XDesign Less-based visual layer while keeping their existing Ant Design behavior and public APIs.

Usage

Business apps only install this package. Ant Design, @ant-design/icons, and dayjs are bundled as dependencies — do not install them in the app, and do not import from antd.

npm install xdesign-component-center
import { Button, ConfigProvider } from 'xdesign-component-center';
import 'xdesign-component-center/style.css';
import zhCN from 'xdesign-component-center/locale/zh_CN';
import { SearchOutlined } from 'xdesign-component-center/icons';

export function Example() {
  return (
    <ConfigProvider locale={zhCN}>
      <Button type="primary" icon={<SearchOutlined />}>
        保存
      </Button>
    </ConfigProvider>
  );
}

XDesign Button keeps Ant Design props and adds type="secondary", type="outline", size="mini", size="default", status="success | warning | danger", and long.

Project SVG icons maintained in the local component center are exported from the same path:

import { AgentRecommendationStrategy } from 'xdesign-component-center/icons';

<AgentRecommendationStrategy style={{ fontSize: 24 }} rotate={90} />

Uploaded icons use the Ant Design icon props (style, className, spin, rotate, onClick, ref, and accessibility attributes). Fixed SVG colors are preserved; paths using currentColor inherit style.color. twoToneColor continues to work for the built-in Ant Design two-tone icons; ordinary uploaded SVGs are not automatically converted into two-tone definitions.

Upload and deletion update src/custom-icons/catalog.json and the generated named exports in src/custom-icons/generated.tsx. Build and publish a new library version, then update the consuming application's dependency to use newly added icons. Removing an icon also removes its export from the next build.

React and react-dom remain peer dependencies (>=18). Date helpers can be imported from xdesign-component-center/dayjs if needed.

Structure

packages/xdesign-react/
├── src/index.ts
├── src/icons.ts
├── src/components/index.ts      # Ant Design exports plus explicit XDesign overrides
├── src/components/<name>/       # component adapter and Less source
├── src/style/index.less         # shared Less source entry
└── src/design-system/           # reserved for later token sync