MCPcopy
hub / github.com/easysoft/zui

github.com/easysoft/zui @v3.0.0 sqlite

repository ↗ · DeepWiki ↗ · release v3.0.0 ↗
1,864 symbols 4,516 edges 715 files 84 documented · 5%
README

ZUI 3

ZUI 3 是一个全新的开源 UI 组件库,提供了丰富的实用组件,并提供自由的定制使用方式,不依赖任何 JavaScript 框架,可以在任何 Web 应用中通过原生的方式使用。

访问 https://openzui.com/ 来提前预览组件库。

👉 如果你需要访问 ZUI 1,请访问 https://openzui.com/1/ ,ZUI 1 源码已经转移到 zui1 分支。

特性

  • 📡 统一的 UI 配置:基于 CSS 变量实现的全局 UI 配置,为组件提供了统一的风格基础,支持深色模式,方便定制主题;
  • 👔 丰富的 CSS 工具类:基于 Tailwind CSS 提供了丰富的 CSS 工具类,包括特别的语义化外观工具类,轻松实现常见布局、文字排版、动画、外观定义;
  • ⭐️ 实用的 CSS 组件:提供了大量实用的 CSS 组件,无需借助 JS 即可实现界面基本功能,例如按钮、表单、导航、卡片、表格等;
  • 💎 强大的 JS 组件:通过 JS 实现很多功能强大的组件,包括下拉菜单、工具提示、对话框、数据表格、文件上传等;
  • 📦 使用灵活:不依赖具体的框架,所有 CSS 工具类开箱即用,所有 JS 组件支持原生调用,丰富的引入方式,支持通过 ESM 导入,或者直接在浏览器中引用整个 JS 和 CSS,支持打包定制自己的组合版本。

快速预览

使用 CSS 工具类

<button class="btn primary">ZUI 3</button>
<button class="btn primary-outline">Read more</button>

使用 JS 组件

<menu id="colorPicker"></menu>

<script>
const colorPicker = new ColorPicker('#colorPicker', {
    heading: '选择颜色',
    defaultValue: '#0ea5e9',
});
</script>

开发

安装

$ pnpm install

启动开发服务器

$ pnpm dev

构建

$ pnpm build

文档开发预览

$ pnpm docs:dev

文档构建

$ pnpm docs:build

技术栈

Extension points exported contracts — how you extend this code

AlertOptions (Interface)
(no doc)
lib/alert/src/types/alert-options.ts
ToolbarOptions (Interface)
(no doc)
lib/toolbar/src/types/toolbar-options.ts
CheckboxProps (Interface)
(no doc)
lib/checkbox/src/types/checkbox-props.ts
AvatarOptions (Interface)
(no doc)
lib/avatar/src/types/avatar-options.ts
CashStatic (Interface)
(no doc)
lib/core/src/ajax/helper.ts
Item (Interface)
(no doc)
lib/common-list/src/types/item.ts
SidebarOptions (Interface)
(no doc)
lib/sidebar/src/types/sidebar-options.ts
DatePickerOptions (Interface)
(no doc)
lib/datetime-picker/src/types/date-picker-options.ts

Core symbols most depended-on inside this repo

closest
called by 118
lib/sortable/src/vanilla/sortable.ts
get
called by 93
lib/core/src/ajax/helper.ts
on
called by 93
lib/core/src/helpers/bus.ts
classes
called by 92
lib/core/src/helpers/classes.ts
set
called by 59
lib/store/src/store.ts
css
called by 46
lib/core/src/helpers/css.ts
attr
called by 43
lib/core/src/helpers/attr.ts
mergeProps
called by 40
lib/core/src/helpers/merge-props.ts

Shape

Method 892
Function 547
Class 258
Interface 164
Enum 3

Languages

TypeScript100%

Modules by API surface

lib/sortable/public/sortable.min.js53 symbols
lib/kanban/src/component/kanban.tsx45 symbols
lib/list/src/component/nested-list.tsx43 symbols
lib/file-selector/src/components/file-selector.tsx43 symbols
lib/dtable/src/components/dtable.tsx40 symbols
lib/core/src/component/component.ts40 symbols
lib/dtable/src/plugins/datagrid/index.ts38 symbols
lib/list/src/component/list.tsx33 symbols
lib/dtable/src/plugins/selectable/index.tsx33 symbols
lib/pick/src/components/pick.tsx28 symbols
lib/dashboard/src/components/dashboard.tsx28 symbols
lib/picker/src/component/picker.tsx26 symbols

Dependencies from manifests, versioned

@faker-js/faker8.4.1 · 1×
@floating-ui/core1.6.4 · 1×
@floating-ui/dom1.6.7 · 1×
@floating-ui/utils0.2.4 · 1×
@mertasan/tailwindcss-variables2.7.0 · 1×
@preact/preset-vite2.8.3 · 1×
@types/fs-extra11.0.4 · 1×
@types/glob8.1.0 · 1×
@types/markdown-it13.0.8 · 1×
@types/minimist1.2.5 · 1×
@types/node20.14.10 · 1×
@types/sortablejs1.15.1 · 1×

For agents

$ claude mcp add zui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact