@chenyqthu/tp-mobile-ui-kit 0.0.0-stage → 0.1.0
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 +214 -2
- package/dist/assets.js +5 -0
- package/dist/catalog.json +11125 -0
- package/dist/chunks/OmadaAppDemo-BP4a4ch_.js +4111 -0
- package/dist/chunks/TPPrompt-Csg5YasJ.js +2460 -0
- package/dist/chunks/asset-icons-BIenKvAh.js +7613 -0
- package/dist/chunks/asset-illustrations-YHXzEd7z.js +3086 -0
- package/dist/chunks/asset-logos-DAyGwOLj.js +59 -0
- package/dist/chunks/asset-motion-D7fWh_JS.js +376 -0
- package/dist/core.js +3 -0
- package/dist/index.js +7 -0
- package/dist/libpag.wasm +0 -0
- package/dist/omada.js +7 -0
- package/dist/standalone.js +3438 -0
- package/dist/style.css +2 -0
- package/dist/types/assets-lib/TPBrandLogo.d.ts +15 -0
- package/dist/types/assets-lib/TPIcon.d.ts +19 -0
- package/dist/types/assets-lib/TPIllustration.d.ts +17 -0
- package/dist/types/assets-lib/TPMotion.d.ts +25 -0
- package/dist/types/assets-lib/assetsManifest.d.ts +22 -0
- package/dist/types/assets-lib/iconsManifest.d.ts +14 -0
- package/dist/types/assets-lib/index.d.ts +8 -0
- package/dist/types/assets-lib/motionsManifest.d.ts +12 -0
- package/dist/types/assets-lib/runtimeUrl.d.ts +4 -0
- package/dist/types/core/components/TPActionSheet.d.ts +4 -0
- package/dist/types/core/components/TPAlert.d.ts +4 -0
- package/dist/types/core/components/TPBadge.d.ts +7 -0
- package/dist/types/core/components/TPBottomSheet.d.ts +4 -0
- package/dist/types/core/components/TPButton.d.ts +4 -0
- package/dist/types/core/components/TPDatePicker.d.ts +7 -0
- package/dist/types/core/components/TPDaySwitcher.d.ts +7 -0
- package/dist/types/core/components/TPEmptyState.d.ts +7 -0
- package/dist/types/core/components/TPFixedButtonBar.d.ts +4 -0
- package/dist/types/core/components/TPHeader.d.ts +4 -0
- package/dist/types/core/components/TPInput.d.ts +8 -0
- package/dist/types/core/components/TPKeyboard.d.ts +7 -0
- package/dist/types/core/components/TPListButton.d.ts +7 -0
- package/dist/types/core/components/TPListCard.d.ts +7 -0
- package/dist/types/core/components/TPListItem.d.ts +7 -0
- package/dist/types/core/components/TPMenu.d.ts +4 -0
- package/dist/types/core/components/TPPageControl.d.ts +4 -0
- package/dist/types/core/components/TPPhoneFrame.d.ts +4 -0
- package/dist/types/core/components/TPPopup.d.ts +4 -0
- package/dist/types/core/components/TPPrompt.d.ts +4 -0
- package/dist/types/core/components/TPSearchBar.d.ts +7 -0
- package/dist/types/core/components/TPSectionHeader.d.ts +7 -0
- package/dist/types/core/components/TPSectionNote.d.ts +7 -0
- package/dist/types/core/components/TPSegment.d.ts +4 -0
- package/dist/types/core/components/TPSlider.d.ts +4 -0
- package/dist/types/core/components/TPStatusBar.d.ts +4 -0
- package/dist/types/core/components/TPSwitch.d.ts +4 -0
- package/dist/types/core/components/TPTabBar.d.ts +4 -0
- package/dist/types/core/components/TPTag.d.ts +7 -0
- package/dist/types/core/components/TPText.d.ts +7 -0
- package/dist/types/core/components/TPTimePicker.d.ts +7 -0
- package/dist/types/core/components/TPToast.d.ts +13 -0
- package/dist/types/core/components/TPWheelPicker.d.ts +7 -0
- package/dist/types/core/index.d.ts +34 -0
- package/dist/types/core/types.d.ts +414 -0
- package/dist/types/lib/assets.d.ts +1 -0
- package/dist/types/lib/core.d.ts +2 -0
- package/dist/types/lib/index.d.ts +4 -0
- package/dist/types/lib/omada.d.ts +4 -0
- package/dist/types/lib/standalone.d.ts +8 -0
- package/dist/types/omada/blocks/OmadaDeviceListBlock.d.ts +42 -0
- package/dist/types/omada/blocks/OmadaIncidentsBlock.d.ts +26 -0
- package/dist/types/omada/blocks/OmadaWirelessNetworkBlock.d.ts +25 -0
- package/dist/types/omada/components/OmadaStandardInput.d.ts +23 -0
- package/dist/types/omada/index.d.ts +14 -0
- package/dist/types/omada/pages/OmadaAppDemo.d.ts +18 -0
- package/dist/types/omada/pages/OmadaControllerListPage.d.ts +26 -0
- package/dist/types/omada/pages/OmadaDeviceDetailPage.d.ts +15 -0
- package/dist/types/omada/pages/OmadaHealthDetailPage.d.ts +17 -0
- package/dist/types/omada/pages/OmadaLaunchLoadingPage.d.ts +24 -0
- package/dist/types/omada/pages/OmadaSiteClientsPage.d.ts +34 -0
- package/dist/types/omada/pages/OmadaSiteDashboardPage.d.ts +28 -0
- package/dist/types/omada/pages/OmadaSiteDevicesPage.d.ts +18 -0
- package/dist/types/omada/pages/OmadaSiteInsightsPage.d.ts +17 -0
- package/dist/types/omada/pages/OmadaSiteSettingsPage.d.ts +20 -0
- package/dist/types/theme/TPThemeProvider.d.ts +33 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/tokens.d.ts +80 -0
- package/package.json +88 -4
- package/skills/tp-mobile-ui-kit/SKILL.md +225 -0
- package/skills/tp-mobile-ui-kit/references/catalog.json +11125 -0
- package/skills/tp-mobile-ui-kit/scripts/query-catalog.mjs +289 -0
- package/skills/tp-mobile-ui-kit/scripts/verify-demo.mjs +193 -0
- package/skills/tp-mobile-ui-kit/templates/multi-brand.html +319 -0
- package/skills/tp-mobile-ui-kit/templates/multi-brand.tsx +337 -0
- package/skills/tp-mobile-ui-kit/templates/omada-dashboard.html +138 -0
- package/skills/tp-mobile-ui-kit/templates/omada-dashboard.tsx +119 -0
- package/skills/tp-mobile-ui-kit/templates/omada-device-detail.html +158 -0
- package/skills/tp-mobile-ui-kit/templates/omada-device-detail.tsx +135 -0
package/README.md
CHANGED
|
@@ -1,3 +1,215 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TP-Mobile UI Kit (`@chenyqthu/tp-mobile-ui-kit`)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
High-fidelity **TP-Link multi-brand mobile React UI component library** powered by the **TP-Design 12-Mode Theme Engine** (6 brands × Light/Dark + OS-adaptive iOS/Android geometry), **626 Figma icons**, **42 Light/Dark illustrations**, **16 brand logos**, **11 real Tencent PAG (`.pag`) vector animations**, **7 restored Omada APP v5.3–6.3 screens + V5.3 blocks**, and a zero-build single-file HTML standalone bundle.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. React / Vite Usage (ESM + Tree-Shaking)
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @chenyqthu/tp-mobile-ui-kit
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Import the stylesheet once at app entry and mount `<TPThemeProvider>` (plus `<TPToastProvider>` if using `useTPToast()`):
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import '@chenyqthu/tp-mobile-ui-kit/style.css';
|
|
17
|
+
import {
|
|
18
|
+
TPThemeProvider,
|
|
19
|
+
TPToastProvider,
|
|
20
|
+
TPPhoneFrame,
|
|
21
|
+
TPStatusBar,
|
|
22
|
+
TPButton,
|
|
23
|
+
} from '@chenyqthu/tp-mobile-ui-kit/core';
|
|
24
|
+
import { TPIcon, TPMotion } from '@chenyqthu/tp-mobile-ui-kit/assets';
|
|
25
|
+
import { OmadaAppDemo } from '@chenyqthu/tp-mobile-ui-kit/omada';
|
|
26
|
+
|
|
27
|
+
export function App() {
|
|
28
|
+
return (
|
|
29
|
+
<TPThemeProvider defaultBrand="omada" defaultMode="light" defaultOS="ios">
|
|
30
|
+
<TPToastProvider>
|
|
31
|
+
<OmadaAppDemo initialScreen="dashboard" />
|
|
32
|
+
</TPToastProvider>
|
|
33
|
+
</TPThemeProvider>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Subpath Entrypoints
|
|
39
|
+
|
|
40
|
+
| Subpath | Contents |
|
|
41
|
+
| :--- | :--- |
|
|
42
|
+
| `@chenyqthu/tp-mobile-ui-kit` | Root barrel re-exporting theme, core, assets, and Omada modules |
|
|
43
|
+
| `@chenyqthu/tp-mobile-ui-kit/core` | `TPThemeProvider`, `useTPTheme`, `TP_BRANDS`, `TP_THEME_PRESETS`, and all `TP*` core mobile primitives (`TPPhoneFrame`, `TPStatusBar`, `TPHeader`, `TPTabBar`, `TPSegment`, `TPButton`, `TPSwitch`, `TPSlider`, `TPListCard`, `TPListItem`, `TPAlert`, `TPActionSheet`, `TPBottomSheet`, `TPToast`, `TPToastProvider`, `useTPToast`, pickers, inputs, etc.) |
|
|
44
|
+
| `@chenyqthu/tp-mobile-ui-kit/assets` | `TPIcon`, `TPIllustration`, `TPBrandLogo`, `TPMotion`, and asset manifests (`TP_ICONS`, `TP_ILLUSTRATIONS`, `TP_BRAND_LOGOS`, `TP_MOTIONS`) |
|
|
45
|
+
| `@chenyqthu/tp-mobile-ui-kit/omada` | 7 restored Omada APP pages, `OmadaHealthDetailPage`, `OmadaDeviceDetailPage`, `OmadaAppDemo`, V5.3 blocks (`OmadaDeviceListBlock`, `OmadaWirelessNetworkBlock`, `OmadaIncidentsBlock`), and `OmadaStandardInput` |
|
|
46
|
+
| `@chenyqthu/tp-mobile-ui-kit/style.css` | All `--tp-*` CSS token definitions and `.tp-*` component/Omada stylesheets |
|
|
47
|
+
| `@chenyqthu/tp-mobile-ui-kit/standalone` | Browser IIFE bundle attaching everything to `window.TPMobileUI` |
|
|
48
|
+
| `@chenyqthu/tp-mobile-ui-kit/catalog.json` | Machine-readable component, prop, token, asset, and template catalog |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 2. Single-File HTML Prototype (Zero Build)
|
|
53
|
+
|
|
54
|
+
For shareable PRD prototypes that open cleanly via `file://` double-click or any static server, use classic `<script>` tags (`dist/style.css`, `dist/standalone.js`, and `@babel/standalone`):
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<!doctype html>
|
|
58
|
+
<html lang="en">
|
|
59
|
+
<head>
|
|
60
|
+
<meta charset="utf-8" />
|
|
61
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
62
|
+
<title>Omada Mobile Demo</title>
|
|
63
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@latest/dist/style.css" />
|
|
64
|
+
<script src="https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@latest/dist/standalone.js"></script>
|
|
65
|
+
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
|
|
66
|
+
</head>
|
|
67
|
+
<body style="margin: 0;">
|
|
68
|
+
<div id="root"></div>
|
|
69
|
+
<script type="text/babel">
|
|
70
|
+
const { TPThemeProvider, TPToastProvider, OmadaAppDemo } = window.TPMobileUI;
|
|
71
|
+
|
|
72
|
+
TPMobileUI.render(
|
|
73
|
+
<TPThemeProvider defaultBrand="omada" defaultMode="light" defaultOS="ios">
|
|
74
|
+
<TPToastProvider>
|
|
75
|
+
<div style={{ display: 'flex', justifyContent: 'center', padding: 24 }}>
|
|
76
|
+
<OmadaAppDemo initialScreen="dashboard" />
|
|
77
|
+
</div>
|
|
78
|
+
</TPToastProvider>
|
|
79
|
+
</TPThemeProvider>,
|
|
80
|
+
'#root',
|
|
81
|
+
);
|
|
82
|
+
</script>
|
|
83
|
+
</body>
|
|
84
|
+
</html>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
All icons, illustrations, brand logos, and `.pag` motion buffers are bundled inline in `dist/standalone.js`. Ready-to-run templates live in [templates/](./templates/):
|
|
88
|
+
- [templates/omada-dashboard.html](./templates/omada-dashboard.html) / [templates/omada-dashboard.tsx](./templates/omada-dashboard.tsx)
|
|
89
|
+
- [templates/multi-brand.html](./templates/multi-brand.html) / [templates/multi-brand.tsx](./templates/multi-brand.tsx)
|
|
90
|
+
- [templates/omada-device-detail.html](./templates/omada-device-detail.html) / [templates/omada-device-detail.tsx](./templates/omada-device-detail.tsx)
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 3. 6-Brand Theme Engine (Light / Dark / System + iOS / Android)
|
|
95
|
+
|
|
96
|
+
`TPThemeProvider` drives `--tp-*` CSS variables across **6 TP-Link brands** (`omada`, `tapo`, `tether`, `mercusys`, `deco`, `ux`) × **Light / Dark** (12 presets) plus `mode="system"` (`prefers-color-scheme`) and `os="ios" | "android"`:
|
|
97
|
+
|
|
98
|
+
| Brand | Focus | Button Radius | Secondary Button | Body Font Size |
|
|
99
|
+
| :--- | :--- | :--- | :--- | :--- |
|
|
100
|
+
| `omada` | `#00A870` | `10px` | `2px` outlined | `16px` |
|
|
101
|
+
| `tapo` | `#0088E3` | `24px` pill | `0px` tinted fill | `17px` |
|
|
102
|
+
| `tether` | `#4ACBD6` | `12px` | `2px` outlined | `17px` |
|
|
103
|
+
| `mercusys` | `#FA3332` | `24px` pill | `0px` tinted fill | `17px` |
|
|
104
|
+
| `deco` | `#1CD0E6` | `24px` pill | `0px` tinted fill | `17px` |
|
|
105
|
+
| `ux` | `#007AFF` | `24px` pill | `0px` tinted fill | `17px` |
|
|
106
|
+
|
|
107
|
+
Control theme dynamically with `useTPTheme()`:
|
|
108
|
+
```tsx
|
|
109
|
+
const { brand, mode, resolvedMode, os, tokens, setBrand, setMode, setOS, toggleMode } = useTPTheme();
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Note: `<TPButton>` uses `variant="primary" | "secondary" | "text" | "alert" | "tonal" | "in-card"` and `htmlType="button" | "submit" | "reset"` (never `type=`).
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 4. Real Tencent PAG (`.pag`) Motion Assets
|
|
117
|
+
|
|
118
|
+
`<TPMotion name="..." />` plays real `.pag` vector animations via `libpag` WASM and switches Light/Dark `.pag` files automatically with `useTPTheme().resolvedMode`:
|
|
119
|
+
|
|
120
|
+
- **Local Vite/React apps**: serve `libpag.wasm` at `./libpag.wasm` (included at `public/libpag.wasm` and `dist/libpag.wasm`).
|
|
121
|
+
- **CDN & `file://` fallback**: when running over `file://` or when local `./libpag.wasm` is unreachable, `TPMotion` automatically falls back to `https://cdn.jsdelivr.net/npm/libpag@4.5.85/lib/libpag.wasm` (or override via `wasmUrl`).
|
|
122
|
+
- **Headless / non-WebGL fallback**: gracefully renders an animated `--tp-focus` SVG fallback (`data-tp-motion-fallback="true"`).
|
|
123
|
+
|
|
124
|
+
Available motion slugs: `internet-connection`, `link-detection`, `update-network`, `deploy-config`, `discover-device`, `indeterminate-progress`, `connecting`, `tab-dropdown-select`, `tab-dropdown-mask`, `tab-dropdown-unmasked`, `port-card-expand`.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 5. Restored Omada APP Pages & V5.3 Blocks
|
|
129
|
+
|
|
130
|
+
- **7 Restored Omada APP Screens**:
|
|
131
|
+
- `OmadaLaunchLoadingPage` — floating glass header, dismissible `V2.5.2` upgrade prompt, animated skeleton cards, Toolkit FAB
|
|
132
|
+
- `OmadaControllerListPage` — `All Systems` filter menu, live search, `Cloud Management (5)` controller cards
|
|
133
|
+
- `OmadaSiteDashboardPage` — site switcher (`92 ⌄ / 62`), 4 KPI tiles, Topology sheet, Site Health `100` scrubber, ISP Activity, Internet Activity chart, Toolkit diagnostics
|
|
134
|
+
- `OmadaSiteInsightsPage` — `Wired | Wireless | Client | Apps` segments, `ISP Load` histogram + latency waveform, WAN/Gateway/Switch health trends
|
|
135
|
+
- `OmadaSiteDevicesPage` — `+ | ⋮` glass capsule, `Device List | Device Group` segment, expandable filter chips, firmware upgrade badges
|
|
136
|
+
- `OmadaSiteClientsPage` — `Online | Offline | Blocked | All` tabs, `All | Wired | Wireless` chips, dBm RSSI status, client detail & block actions
|
|
137
|
+
- `OmadaSiteSettingsPage` — 4 grouped `TPListCard` sections with Omada `settings-*` icons and drill-downs
|
|
138
|
+
- **Drill-Downs & Orchestrator**: `OmadaHealthDetailPage`, `OmadaDeviceDetailPage` (Ports `port-card-expand` + Firmware Upgrade `update-network` PAG motions), `OmadaAppDemo`
|
|
139
|
+
- **V5.3 Blocks & Inputs**: `OmadaDeviceListBlock`, `OmadaWirelessNetworkBlock` (`deploy-config` PAG motion), `OmadaIncidentsBlock`, `OmadaStandardInput` (segmented IPv4, MAC, Port, Text)
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## 6. Live Showcase & Online Demos
|
|
144
|
+
|
|
145
|
+
- **Interactive Showcase (GitHub Pages)**: **https://pages.chenge.ink/tp-mobile-ui-kit/**
|
|
146
|
+
- Includes all **7 restored Omada APP real-device pages**, **6-Brand Theme Lab**, **Core 21 Components**, **Assets & Live PAG Motions**, and **Agent Skill Setup**.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 7. Agent Skill Installation & Usage (`tp-mobile-ui-kit`)
|
|
151
|
+
|
|
152
|
+
This repository ships an Agent Skill under [skills/tp-mobile-ui-kit/](./skills/tp-mobile-ui-kit/) (and mirrored to [.agents/skills/tp-mobile-ui-kit/](./.agents/skills/tp-mobile-ui-kit/)).
|
|
153
|
+
|
|
154
|
+
### Quick Install (CLI)
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Project-level install
|
|
158
|
+
npx skills add ChenyqThu/tp-mobile-ui-kit
|
|
159
|
+
|
|
160
|
+
# Global user-level install (available across all repositories)
|
|
161
|
+
npx skills add ChenyqThu/tp-mobile-ui-kit -g
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Supported Agents & Skill Directory Paths
|
|
165
|
+
|
|
166
|
+
| Coding Agent | Project / Workspace Path | Global User Path |
|
|
167
|
+
| :--- | :--- | :--- |
|
|
168
|
+
| **Claude Code** | `.claude/skills/tp-mobile-ui-kit/` | `~/.claude/skills/tp-mobile-ui-kit/` |
|
|
169
|
+
| **Cursor** | `.cursor/skills/tp-mobile-ui-kit/` | `~/.cursor/skills/tp-mobile-ui-kit/` |
|
|
170
|
+
| **OpenAI Codex** | `.agents/skills/tp-mobile-ui-kit/` | `~/.agents/skills/tp-mobile-ui-kit/` |
|
|
171
|
+
| **Google Antigravity** | `.agents/skills/tp-mobile-ui-kit/` | `~/.gemini/config/skills/tp-mobile-ui-kit/` |
|
|
172
|
+
| **GitHub Copilot / VS Code** | `.github/skills/tp-mobile-ui-kit/` | `~/.copilot/skills/tp-mobile-ui-kit/` |
|
|
173
|
+
| **Windsurf** | `.windsurf/skills/tp-mobile-ui-kit/` | `~/.codeium/windsurf/skills/tp-mobile-ui-kit/` |
|
|
174
|
+
| **OpenCode** | `.opencode/skills/tp-mobile-ui-kit/` | `~/.config/opencode/skills/tp-mobile-ui-kit/` |
|
|
175
|
+
|
|
176
|
+
### Query Catalog & Verify Demos
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Inspect version, subpaths, CDN URLs, and counts
|
|
180
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs info
|
|
181
|
+
|
|
182
|
+
# Explore components, props, and brand tokens
|
|
183
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs list-components omada-pages
|
|
184
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs component TPButton
|
|
185
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs brands omada
|
|
186
|
+
|
|
187
|
+
# Search verified icons, illustrations, brand logos, and PAG motions
|
|
188
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs search-icons tabbar 20
|
|
189
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs search-assets motions
|
|
190
|
+
|
|
191
|
+
# Pull starter templates and verify generated HTML/TSX demos
|
|
192
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs templates
|
|
193
|
+
node skills/tp-mobile-ui-kit/scripts/query-catalog.mjs template omada-dashboard --html > demo.html
|
|
194
|
+
node skills/tp-mobile-ui-kit/scripts/verify-demo.mjs demo.html
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## 8. Missing Components & Bug Reports
|
|
200
|
+
|
|
201
|
+
- **Request Missing Component / Asset**: https://github.com/ChenyqThu/tp-mobile-ui-kit/issues/new?template=missing-component.yml
|
|
202
|
+
- **Report Component Bug / Visual Issue**: https://github.com/ChenyqThu/tp-mobile-ui-kit/issues/new?template=component-bug.yml
|
|
203
|
+
- **Browse All Issues**: https://github.com/ChenyqThu/tp-mobile-ui-kit/issues
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## 9. Development & Build Scripts
|
|
208
|
+
|
|
209
|
+
- `pnpm dev` — Start Vite dev server
|
|
210
|
+
- `pnpm build:lib` — Build ESM subpaths, CSS bundle, IIFE standalone bundle, `.d.ts` declarations, and `catalog.json` (plus skill sync)
|
|
211
|
+
- `pnpm build:catalog` — Generate `dist/catalog.json`, update skill `references/catalog.json` + `templates/`, and sync `.agents/skills/tp-mobile-ui-kit/` + `~/.gemini/config/skills/tp-mobile-ui-kit/`
|
|
212
|
+
- `pnpm build:pages` — Build static site for GitHub Pages (`dist-app/` with `/tp-mobile-ui-kit/` base path)
|
|
213
|
+
- `pnpm build:app` — Build showcase web app to `dist-app/`
|
|
214
|
+
- `pnpm typecheck` — Run strict TypeScript checks
|
|
215
|
+
- `pnpm test` — Run Vitest suite
|
package/dist/assets.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./chunks/asset-illustrations-YHXzEd7z.js";
|
|
2
|
+
import { a as i, i as a, n as o, r as s, t as c } from "./chunks/asset-icons-BIenKvAh.js";
|
|
3
|
+
import { n as l, r as u, t as d } from "./chunks/asset-motion-D7fWh_JS.js";
|
|
4
|
+
import { n as f, t as p } from "./chunks/asset-logos-DAyGwOLj.js";
|
|
5
|
+
export { p as TPBrandLogo, c as TPIcon, r as TPIllustration, d as TPMotion, n as TP_BRAND_LOGOS, i as TP_ICONS, e as TP_ILLUSTRATIONS, u as TP_MOTIONS, o as hasTPIcon, f as listTPBrandLogos, s as listTPIcons, t as listTPIllustrations, l as listTPMotions, a as resolveRuntimeAssetUrl };
|