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

mot-ui

v1.0.36

Published

基于 `React 18 + TypeScript + antd 5` 的业务组件库,沉淀国际化、主题定制、可配置表格等通用能力。

Readme

mot-ui

基于 React 18 + TypeScript + antd 5 的业务组件库,沉淀国际化、主题定制、可配置表格等通用能力。

组件列表

| 组件 | 说明 | | --- | --- | | ResizableTable | 可配置表格:列宽拖拽、固定前 N 列、列显示/隐藏、列顺序拖拽排序,详见示例页文档 | | ColumnSettings | 表格列设置面板(固定列 / 显隐 / 排序),可脱离表格独立使用 | | IntlApp | 国际化示例应用(react-intl) | | ThemePicker / themeList | 主题色选择器 | | LocalePicker / localeList | 语言选择器 | | CommonLocales | 内置国际化文案(zh-CN / en-US / zh-TW) | | DrivingSchool | 3D 驾校应用组件 |

安装

yarn add mot-ui

组件依赖 react、react-dom、antd、react-intl 等作为 peer dependencies,请确保宿主项目已安装:

yarn add react react-dom antd react-intl react-router react-router-dom

使用示例

import { ResizableTable, ThemePicker, LocalePicker } from 'mot-ui'

// ResizableTable:拖拽列头右边缘调整列宽,右上角设置按钮支持固定前1/2列、
// 列显示/隐藏勾选(Shift 批量)、列顺序拖拽排序
<ResizableTable
    columns={columns}
    dataSource={dataSource}
    defaultFixedCount={1}
    title="用户列表"
/>

本地开发

# 启动 demo 开发服务(左侧组件目录 + 右侧示例 + 组件文档)
yarn start

# 打包组件库(输出 dist/mot-ui.js)
yarn build

src/demo 目录为组件示例与文档,不会打进 npm 包;src/components 为组件源码,新增组件后在 src/index.ts 中导出。

发布

npm 账号登录后,一键完成版本号升级、git commit + tag、打包、发布:

npm login                # 首次发布前登录一次
npm run release          # patch:x.y.z+1,日常修复迭代
npm run release:minor    # minor:x.y+1.0,新增功能
npm run release:major    # major:x+1.0.0,破坏性变更

发布完成后记得同步远程仓库(含 tag):git push && git push --tags