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

@luoluoyu/fluentui-plus

v2.6.2

Published

A component library based on Fluent UI, targeting Chinese enterprise applications

Readme

FluentUI Plus

npm version License: MIT

基于 Fluent UI 的企业级组件库,专为中后台项目设计 (不要使用在项目中!!!我闲的做来玩的!!!)

✨ 特性

  • 🎨 设计语言: 基于 Fluent UI 设计语言,提供现代化的用户界面
  • 📦 开箱即用: 高质量的 React 组件,满足企业级产品需求
  • 🛡 TypeScript: 使用 TypeScript 开发,提供完整的类型定义
  • 🎯 按需加载: 支持 tree-shaking,优化包体积
  • 样式系统: 使用 Less 预处理器,支持主题定制和变量覆盖
  • 📱 现代浏览器: 支持现代浏览器及 IE11+

📦 安装

npm install @luoluoyu/fluentui-plus @fluentui/react-components

或者使用 yarn:

yarn add @luoluoyu/fluentui-plus @fluentui/react-components

🔨 使用

import React from 'react';
import { Tag, InputTag, Nav } from '@luoluoyu/fluentui-plus';
// 样式会自动导入,无需手动引入

function App() {
  const navItems = [
    { key: 'home', label: '首页', icon: '🏠', title: '首页' },
    { key: 'components', label: '组件', icon: '📦', title: '组件' },
  ];

  return (
    <div>
      <Tag color='#1890ff'>蓝色标签</Tag>
      <Tag.CheckableTag checked={true} onChange={checked => console.log(checked)}>
        可选择标签
      </Tag.CheckableTag>
      <InputTag defaultValue={['React', 'TypeScript']} placeholder='输入标签...' maxTags={10} allowDuplicates={false} />
      <Nav items={navItems} defaultSelectedKeys={['home']} onSelect={info => console.log('选择了:', info.key)} />
    </div>
  );
}

样式定制

如果需要定制主题,可以覆盖 Less 变量:

// your-theme.less
@import '~@luoluoyu/fluentui-plus/dist/styles/variables.less';

// 覆盖品牌色
@brand-primary: #your-brand-color;
@neutral-background-1: #your-background-color;

🌍 按需加载

你可以直接从主包按需引入组件(推荐方式,支持 tree-shaking):

import { Tag, InputTag, Nav } from '@luoluoyu/fluentui-plus';

如果需要兼容某些工具链或自定义打包方式,也可以使用子路径导入:

import Tag from '@luoluoyu/fluentui-plus/lib/Tag';
import InputTag from '@luoluoyu/fluentui-plus/lib/InputTag';

👥 开发指南

如果你是团队成员或想要为项目贡献代码,请参考以下文档:

快速开始开发

# 安装依赖
yarn install

# 启动开发服务器
yarn dev

# 启动 Storybook
yarn storybook

提交规范

本项目使用 Conventional Commits 规范:

# 示例
git commit -m "feat(Tag): add CheckableTag component"
git commit -m "fix(Button): resolve click event issue"

详细信息请查看 开发指南

🔗 链接

🤝 参与贡献

我们欢迎所有的贡献,请参考 贡献指南

📄 开源协议

本项目遵循 MIT 开源协议。

🏗️ 本地开发

# 克隆项目
git clone https://github.com/HuiruDong/fluentui-plus.git

# 安装依赖
npm install

# 启动开发服务器
npm run dev

# 运行测试
npm run test

# 构建组件库
npm run build

# 开发环境构建(包含详细 source map)
npm run build:lib:dev

# 生产环境构建(包含优化 source map)
npm run build:lib:prod

# 启动文档站点
npm run docs:dev

📋 项目结构

fluentui-plus/
├── src/                 # 源代码
│   ├── components/      # 组件源码
│   ├── styles/          # 样式和主题
│   └── utils/           # 工具函数
├── docs/                # 文档源码
├── dist/                # 构建产物(包含 source map)
├── BUILD.md             # 构建配置说明
└── tests/               # 测试文件