@yuhuanowo/yunui 0.2.13 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,10 +1,26 @@
1
1
  # YunUI
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@yuhuanowo/yunui.svg)](https://www.npmjs.com/package/@yuhuanowo/yunui)
4
+ [![showcase & docs](https://img.shields.io/badge/showcase%20%26%20docs-ui.yuhuanstudio.com-111)](https://ui.yuhuanstudio.com)
4
5
 
5
6
  **English** · [简体中文](./README.zh-CN.md) · [繁體中文](./README.zh-TW.md)
6
7
 
7
- A standalone, versioned, multi-project React 19 + Tailwind v4 design system — in the spirit of [once-ui.com](https://once-ui.com).
8
+ A standalone, versioned React 19 + Tailwind v4 design system that doesn't shout — every detail quietly considered.
9
+
10
+ 🔗 **Live showcase & docs → [ui.yuhuanstudio.com](https://ui.yuhuanstudio.com)**
11
+
12
+ <p align="center">
13
+ <a href="https://ui.yuhuanstudio.com"><img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/hero-light.png" alt="YunUI — quietly beautiful, quietly engineered" width="100%"></a>
14
+ </p>
15
+
16
+ <p align="center">
17
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/showcase-light.png" alt="Every YunUI component on one page" width="49%">
18
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/hero-dark.png" alt="YunUI in the true-black theme" width="49%">
19
+ </p>
20
+
21
+ <p align="center">
22
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/theming.png" alt="Live theming — 12 multi-color presets, 24 OKLCH palettes, token-driven effects" width="100%">
23
+ </p>
8
24
 
9
25
  Edit YunUI once → publish a new version → every project picks up the same **design tokens, animations, and components** on its next upgrade (`pnpm up`). Already running in production at Yunxin.
10
26
 
package/README.zh-CN.md CHANGED
@@ -1,10 +1,26 @@
1
1
  # YunUI
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@yuhuanowo/yunui.svg)](https://www.npmjs.com/package/@yuhuanowo/yunui)
4
+ [![showcase & docs](https://img.shields.io/badge/展示与文档-ui.yuhuanstudio.com-111)](https://ui.yuhuanstudio.com)
4
5
 
5
6
  [English](./README.md) · **简体中文** · [繁體中文](./README.zh-TW.md)
6
7
 
7
- 一个独立、版本化、可被多项目引用的 React 19 + Tailwind v4 设计系统 —— 对标 [once-ui.com](https://once-ui.com)。
8
+ 一套不喧哗的 React 19 + Tailwind v4 设计系统 —— 每个细节都被好好想过。
9
+
10
+ 🔗 **在线展示与文档 → [ui.yuhuanstudio.com](https://ui.yuhuanstudio.com)**
11
+
12
+ <p align="center">
13
+ <a href="https://ui.yuhuanstudio.com"><img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/hero-light.png" alt="YunUI — 安静的好看,安静的扎实" width="100%"></a>
14
+ </p>
15
+
16
+ <p align="center">
17
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/showcase-light.png" alt="所有 YunUI 组件,尽在一页" width="49%">
18
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/hero-dark.png" alt="YunUI 纯黑主题" width="49%">
19
+ </p>
20
+
21
+ <p align="center">
22
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/theming.png" alt="即时主题 — 12 套多色预设、24 套 OKLCH 色盘、令牌驱动特效" width="100%">
23
+ </p>
8
24
 
9
25
  改 YunUI 一处 → 发版 → 各项目升级版本号即可同步获得统一的 **设计 token、动画、组件**。已在 Yunxin 生产环境使用。
10
26
 
package/README.zh-TW.md CHANGED
@@ -1,10 +1,26 @@
1
1
  # YunUI
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@yuhuanowo/yunui.svg)](https://www.npmjs.com/package/@yuhuanowo/yunui)
4
+ [![showcase & docs](https://img.shields.io/badge/展示與文件-ui.yuhuanstudio.com-111)](https://ui.yuhuanstudio.com)
4
5
 
5
6
  [English](./README.md) · [简体中文](./README.zh-CN.md) · **繁體中文**
6
7
 
7
- 一個獨立、版本化、可被多專案引用的 React 19 + Tailwind v4 設計系統 —— 對標 [once-ui.com](https://once-ui.com)。
8
+ 一套不喧嘩的 React 19 + Tailwind v4 設計系統 —— 每個細節都被好好想過。
9
+
10
+ 🔗 **線上展示與文件 → [ui.yuhuanstudio.com](https://ui.yuhuanstudio.com)**
11
+
12
+ <p align="center">
13
+ <a href="https://ui.yuhuanstudio.com"><img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/hero-light.png" alt="YunUI — 安靜的好看,安靜的扎實" width="100%"></a>
14
+ </p>
15
+
16
+ <p align="center">
17
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/showcase-light.png" alt="所有 YunUI 元件,盡在一頁" width="49%">
18
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/hero-dark.png" alt="YunUI 純黑主題" width="49%">
19
+ </p>
20
+
21
+ <p align="center">
22
+ <img src="https://raw.githubusercontent.com/YuhuanStudio/YunUI/main/assets/theming.png" alt="即時主題 — 12 套多色預設、24 套 OKLCH 色盤、權杖驅動特效" width="100%">
23
+ </p>
8
24
 
9
25
  改 YunUI 一處 → 發版 → 各專案升級版本號即可同步取得統一的 **設計 token、動畫、元件**。已在 Yunxin 生產環境使用。
10
26
 
package/dist/ai.d.ts CHANGED
@@ -115,6 +115,42 @@ interface ModelSelectProps {
115
115
  * filters + a pinned section + a styled dropdown. Domain-agnostic. */
116
116
  declare function ModelSelect({ options, value, onChange, className, labels, pinned, onTogglePin, filters, renderFooter, }: ModelSelectProps): React.JSX.Element;
117
117
 
118
+ /** One labelled spec shown in the card's spec grid. */
119
+ interface ModelManagerField {
120
+ label: ReactNode;
121
+ value: ReactNode;
122
+ /** Span both grid columns (e.g. a long price line). */
123
+ full?: boolean;
124
+ }
125
+ interface ModelManagerCardProps {
126
+ /** Leading model icon. */
127
+ icon?: ReactNode;
128
+ /** Model display name (the card title). */
129
+ name: ReactNode;
130
+ /** Inline status badges next to the name (YAML, deprecated, inactive, suspended…). */
131
+ nameBadges?: ReactNode;
132
+ /** Id / alias chips rendered under the name. */
133
+ ids?: ReactNode;
134
+ /** Row-select control (a checkbox). Sits at the left of the top control bar. */
135
+ selectSlot?: ReactNode;
136
+ /** Row actions (edit / enable / inspect / delete …) — sit at the right of the
137
+ * top control bar (no footer rule). */
138
+ actions?: ReactNode;
139
+ /** Labelled specs — provider, developer, type, status, context/resolution,
140
+ * max output, price, … — laid out in a 2-column grid. */
141
+ fields?: ModelManagerField[];
142
+ /** Capability badges + an optional label. */
143
+ capabilities?: {
144
+ label?: ReactNode;
145
+ value: ReactNode;
146
+ };
147
+ /** Mark the row selected (a ring + tint). */
148
+ selected?: boolean;
149
+ className?: string;
150
+ }
151
+ /** A model-management row as a card (all admin columns, top-to-bottom). */
152
+ declare function ModelManagerCard({ icon, name, nameBadges, ids, selectSlot, actions, fields, capabilities, selected, className, }: ModelManagerCardProps): React.JSX.Element;
153
+
118
154
  /** Click-to-copy mono ID badge (faithful port of Yunxin's IDBadge). */
119
155
  declare function IDBadge({ text, truncate }: {
120
156
  text: string;
@@ -302,4 +338,4 @@ interface NavbarProps {
302
338
  /** Floating top navigation bar: logo, center links with scroll-spy, theme/language slots, and auth buttons with a mobile menu. */
303
339
  declare function Navbar({ appName, logoSrc, links, currentPath, variant, labels, languageSwitcher, themeToggle, homeHref, loginHref, signupHref, }: NavbarProps): React.JSX.Element;
304
340
 
305
- export { type ButtonProps, CapabilityIcon, CapabilitySelector, IDBadge, type LanguageOption, LanguageSwitcher, ModelAvatar, ModelCard, type ModelCardProps, ModelIcon, ModelSelect, type ModelSelectFilter, type ModelSelectLabels, type ModelSelectOption, type ModelSelectProps, ModelTypeIcon, type NavLink, Navbar, PROVIDER_ICON_SLUGS, ProviderAvatar, ProviderIcon, ProviderIconImg, ProviderNames, ThinkingBlock, buttonVariants, getDeveloperIconPath, getIconPath, getProviderIconOptions, getProviderName, isKnownCapability, normalizeProviderId };
341
+ export { type ButtonProps, CapabilityIcon, CapabilitySelector, IDBadge, type LanguageOption, LanguageSwitcher, ModelAvatar, ModelCard, type ModelCardProps, ModelIcon, ModelManagerCard, type ModelManagerCardProps, type ModelManagerField, ModelSelect, type ModelSelectFilter, type ModelSelectLabels, type ModelSelectOption, type ModelSelectProps, ModelTypeIcon, type NavLink, Navbar, PROVIDER_ICON_SLUGS, ProviderAvatar, ProviderIcon, ProviderIconImg, ProviderNames, ThinkingBlock, buttonVariants, getDeveloperIconPath, getIconPath, getProviderIconOptions, getProviderName, isKnownCapability, normalizeProviderId };