@chenyqthu/tp-mobile-ui-kit 0.2.1 → 0.3.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 +11 -9
- package/dist/assets.js +5 -5
- package/dist/catalog.json +1939 -152
- package/dist/chunks/OmadaAppDemo-BxWPBACn.js +7359 -0
- package/dist/chunks/{TPPrompt-6o6zUNzO.js → TPInfoSheet-DozlNuGj.js} +856 -533
- package/dist/chunks/asset-icons-BLfOEHzP.js +10434 -0
- package/dist/chunks/{asset-illustrations-YHXzEd7z.js → asset-illustrations-CslT-sgf.js} +28 -2051
- package/dist/chunks/{asset-logos-DAyGwOLj.js → asset-logos-B18ywOgH.js} +2 -2
- package/dist/chunks/{asset-motion-D7fWh_JS.js → asset-motion-CxM2f5Ft.js} +307 -70
- package/dist/core.js +3 -3
- package/dist/index.js +7 -7
- package/dist/omada.js +7 -7
- package/dist/standalone.js +2090 -622
- package/dist/style.css +1 -1
- package/dist/types/assets-lib/TPIcon.d.ts +3 -0
- package/dist/types/assets-lib/iconsManifest.d.ts +2 -0
- package/dist/types/assets-lib/motionsManifest.d.ts +1 -1
- package/dist/types/core/components/TPDatePicker.d.ts +1 -1
- package/dist/types/core/components/TPInfoSheet.d.ts +11 -0
- package/dist/types/core/components/TPLoadMore.d.ts +7 -0
- package/dist/types/core/index.d.ts +2 -0
- package/dist/types/core/types.d.ts +93 -8
- package/dist/types/omada/blocks/OmadaChartCard.d.ts +53 -0
- package/dist/types/omada/blocks/OmadaClientListBlock.d.ts +34 -0
- package/dist/types/omada/blocks/OmadaDeviceListBlock.d.ts +15 -2
- package/dist/types/omada/blocks/OmadaFormRepeaterBlock.d.ts +48 -0
- package/dist/types/omada/blocks/OmadaPortPanelBlock.d.ts +21 -3
- package/dist/types/omada/blocks/OmadaPortSelectorBlock.d.ts +23 -0
- package/dist/types/omada/blocks/OmadaSidebarDrawer.d.ts +27 -0
- package/dist/types/omada/blocks/OmadaSiteListBlock.d.ts +26 -0
- package/dist/types/omada/blocks/OmadaVoucherPreviewCard.d.ts +21 -0
- package/dist/types/omada/components/OmadaStandardInput.d.ts +3 -2
- package/dist/types/omada/index.d.ts +14 -2
- package/dist/types/omada/pages/OmadaAccessibilitySettingsPage.d.ts +12 -0
- package/dist/types/omada/pages/OmadaAppDemo.d.ts +6 -3
- package/dist/types/omada/pages/OmadaConfigFormPage.d.ts +24 -0
- package/dist/types/omada/pages/OmadaLanSettingsPage.d.ts +25 -0
- package/dist/types/omada/pages/OmadaPortDetailPage.d.ts +16 -0
- package/dist/types/omada/pages/OmadaPrivacyPolicyPage.d.ts +18 -0
- package/dist/types/theme/TPThemeProvider.d.ts +9 -0
- package/dist/types/theme/index.d.ts +1 -1
- package/dist/types/theme/tokens.d.ts +24 -0
- package/package.json +2 -2
- package/skills/tp-mobile-ui-kit/SKILL.md +17 -14
- package/skills/tp-mobile-ui-kit/references/catalog.json +1939 -152
- package/dist/chunks/OmadaAppDemo-Dwm_iU6O.js +0 -4922
- package/dist/chunks/asset-icons-BIenKvAh.js +0 -7613
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export { OmadaStandardInput, type OmadaStandardInputProps, type OmadaStandardInputType, } from './components/OmadaStandardInput';
|
|
2
|
-
export { OMADA_SITE_TABS, DEFAULT_OMADA_DEVICES, OmadaDeviceThumb, OmadaDeviceListBlock, type OmadaSiteTabKey, type OmadaDeviceType, type OmadaDeviceStatus, type OmadaDeviceRecord, type OmadaDeviceListBlockProps, } from './blocks/OmadaDeviceListBlock';
|
|
2
|
+
export { OMADA_SITE_TABS, DEFAULT_OMADA_DEVICES, OmadaDeviceThumb, OmadaDeviceListBlock, type OmadaSiteTabKey, type OmadaDeviceType, type OmadaDeviceStatus, type OmadaDeviceSecondaryMetric, type OmadaDeviceThumbSize, type OmadaDeviceRecord, type OmadaDeviceListBlockProps, } from './blocks/OmadaDeviceListBlock';
|
|
3
|
+
export { DEFAULT_OMADA_SITES, OmadaSiteListBlock, type OmadaSiteItem, type OmadaSiteListBlockProps, } from './blocks/OmadaSiteListBlock';
|
|
4
|
+
export { DEFAULT_OMADA_CLIENT_LIST, OmadaClientListBlock, type OmadaClientFilterKey, type OmadaClientListItem, type OmadaClientListBlockProps, } from './blocks/OmadaClientListBlock';
|
|
5
|
+
export { OmadaSidebarDrawer, type OmadaSidebarNavItem, type OmadaSidebarDrawerProps, } from './blocks/OmadaSidebarDrawer';
|
|
3
6
|
export { OmadaWirelessNetworkBlock, type OmadaBandKey, type OmadaSecurityMode, type OmadaWirelessConfig, type OmadaWirelessNetworkBlockProps, } from './blocks/OmadaWirelessNetworkBlock';
|
|
4
7
|
export { DEFAULT_OMADA_INCIDENTS, OmadaIncidentsBlock, type OmadaIncidentCategory, type OmadaIncidentSeverity, type OmadaIncidentItem, type OmadaIncidentsBlockProps, } from './blocks/OmadaIncidentsBlock';
|
|
5
8
|
export { DEFAULT_OMADA_SCHEDULES, OmadaScheduleBlock, type OmadaScheduleTarget, type OmadaScheduleRule, type OmadaScheduleBlockProps, } from './blocks/OmadaScheduleBlock';
|
|
6
|
-
export { DEFAULT_OMADA_PORTS, OmadaPortPanelBlock, type OmadaPortMedia, type OmadaPortSpeed, type OmadaHardwarePort, type OmadaPortPanelBlockProps, } from './blocks/OmadaPortPanelBlock';
|
|
9
|
+
export { DEFAULT_OMADA_PORTS, getOmadaPortSpeedColor, getOmadaPortBadgeIcon, OmadaPortLegendSheet, OmadaPortPanelBlock, type OmadaPortMedia, type OmadaPortSpeed, type OmadaPortBadgeType, type OmadaHardwarePort, type OmadaPortLegendSheetProps, type OmadaPortPanelBlockProps, } from './blocks/OmadaPortPanelBlock';
|
|
10
|
+
export { OmadaPortSelectorBlock, type OmadaPortSelectorMode, type OmadaPortSelectorBlockProps, } from './blocks/OmadaPortSelectorBlock';
|
|
11
|
+
export { computeOmadaAxisScale, OmadaChartCard, type OmadaChartType, type OmadaChartSeries, type OmadaChartTimeRangeOption, type OmadaChartScaleResult, type OmadaChartCardProps, } from './blocks/OmadaChartCard';
|
|
12
|
+
export { OmadaFormRepeaterBlock, OmadaCustomOptionList, type OmadaFormRepeaterItem, type OmadaFormRepeaterBlockProps, type OmadaCustomOption, type OmadaCustomOptionListProps, } from './blocks/OmadaFormRepeaterBlock';
|
|
13
|
+
export { OmadaVoucherPreviewCard, type OmadaVoucherStatus, type OmadaVoucherPreviewCardProps, } from './blocks/OmadaVoucherPreviewCard';
|
|
7
14
|
export { DEFAULT_TOPOLOGY_NODES, OmadaTopologyBlock, type OmadaTopologyNode, type OmadaTopologyBlockProps, } from './blocks/OmadaTopologyBlock';
|
|
8
15
|
export { DEFAULT_FIRMWARE_CANDIDATES, OmadaFirmwareUpdateBlock, type OmadaFirmwareCandidate, type OmadaFirmwareUpdateBlockProps, } from './blocks/OmadaFirmwareUpdateBlock';
|
|
9
16
|
export { OmadaLaunchLoadingPage, type OmadaLaunchLoadingPageProps, } from './pages/OmadaLaunchLoadingPage';
|
|
@@ -15,4 +22,9 @@ export { DEFAULT_OMADA_CLIENTS, OmadaSiteClientsPage, type OmadaClientStatus, ty
|
|
|
15
22
|
export { OmadaSiteSettingsPage, type OmadaSettingRowKey, type OmadaSiteSettingsPageProps, } from './pages/OmadaSiteSettingsPage';
|
|
16
23
|
export { OmadaHealthDetailPage, type OmadaHealthDetailPageProps, } from './pages/OmadaHealthDetailPage';
|
|
17
24
|
export { OmadaDeviceDetailPage, type OmadaDeviceDetailPageProps, } from './pages/OmadaDeviceDetailPage';
|
|
25
|
+
export { OmadaConfigFormPage, type OmadaConfigFormMode, type OmadaConfigFormPageProps, } from './pages/OmadaConfigFormPage';
|
|
26
|
+
export { DEFAULT_OMADA_LAN_CONFIG, OmadaLanSettingsPage, type OmadaLanNetworkConfig, type OmadaLanSettingsPageProps, } from './pages/OmadaLanSettingsPage';
|
|
27
|
+
export { OmadaPortDetailPage, type OmadaPortDetailPageProps, } from './pages/OmadaPortDetailPage';
|
|
28
|
+
export { OmadaAccessibilitySettingsPage, type OmadaAccessibilitySettingsPageProps, } from './pages/OmadaAccessibilitySettingsPage';
|
|
29
|
+
export { OmadaPrivacyPolicyPage, type OmadaPrivacyPolicyPageProps, } from './pages/OmadaPrivacyPolicyPage';
|
|
18
30
|
export { OmadaAppDemo, type OmadaAppScreenId, type OmadaAppDemoProps, } from './pages/OmadaAppDemo';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../styles/tp-omada.css';
|
|
3
|
+
export interface OmadaAccessibilitySettingsPageProps {
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Legacy-Omada Accessibility & Display Settings screen controlling WCAG 4.5:1 High Contrast
|
|
10
|
+
* mode (`Title 1` Bold + underlined links + accessible Tag contrast) and dynamic Font Scale.
|
|
11
|
+
*/
|
|
12
|
+
export declare const OmadaAccessibilitySettingsPage: React.FC<OmadaAccessibilitySettingsPageProps>;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TPPhoneFrameProps } from '../../core/types';
|
|
3
3
|
import '../../styles/tp-omada.css';
|
|
4
|
-
export type OmadaAppScreenId = 'launch' | 'controllers' | 'dashboard' | 'insights' | 'devices' | 'clients' | 'settings' | 'health-detail' | 'device-detail' | 'wireless-settings' | 'incidents' | 'schedule' | 'firmware' | 'topology' | 'port-panel';
|
|
4
|
+
export type OmadaAppScreenId = 'launch' | 'controllers' | 'dashboard' | 'insights' | 'devices' | 'clients' | 'settings' | 'health-detail' | 'device-detail' | 'wireless-settings' | 'incidents' | 'schedule' | 'firmware' | 'topology' | 'port-panel' | 'sites' | 'lan-settings' | 'port-detail' | 'accessibility' | 'privacy' | 'voucher-preview';
|
|
5
5
|
export interface OmadaAppDemoProps {
|
|
6
6
|
initialScreen?: OmadaAppScreenId;
|
|
7
7
|
screen?: OmadaAppScreenId;
|
|
8
8
|
onScreenChange?: (screen: OmadaAppScreenId) => void;
|
|
9
9
|
device?: TPPhoneFrameProps['device'];
|
|
10
10
|
showFrame?: boolean;
|
|
11
|
+
initialDrawerOpen?: boolean;
|
|
12
|
+
drawerOpen?: boolean;
|
|
13
|
+
onDrawerOpenChange?: (open: boolean) => void;
|
|
11
14
|
className?: string;
|
|
12
15
|
style?: React.CSSProperties;
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
|
-
* Interactive end-to-end Omada APP v5.3–6.3 prototype wiring all
|
|
16
|
-
* and
|
|
18
|
+
* Interactive end-to-end Omada APP v5.3–6.3 prototype wiring all core screens,
|
|
19
|
+
* OS-adaptive Liquid Glass (iOS) / Traditional (Android) chrome, sidebar drawer, and sub-pages inside `TPPhoneFrame`.
|
|
17
20
|
*/
|
|
18
21
|
export declare const OmadaAppDemo: React.FC<OmadaAppDemoProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../styles/tp-omada.css';
|
|
3
|
+
export type OmadaConfigFormMode = 'create' | 'edit' | 'subpage';
|
|
4
|
+
export interface OmadaConfigFormPageProps {
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
subtitle?: React.ReactNode;
|
|
7
|
+
mode?: OmadaConfigFormMode;
|
|
8
|
+
dirty?: boolean;
|
|
9
|
+
saving?: boolean;
|
|
10
|
+
saveText?: string;
|
|
11
|
+
showBottomBar?: boolean;
|
|
12
|
+
secondaryText?: string;
|
|
13
|
+
onSecondaryClick?: () => void;
|
|
14
|
+
onSave?: () => void;
|
|
15
|
+
onBack?: () => void;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Reusable Omada configuration form & edit page wrapper implementing create/edit/subpage chrome,
|
|
22
|
+
* Save/Apply header button, and automatic `Discard Changes?` confirmation when navigating back dirty.
|
|
23
|
+
*/
|
|
24
|
+
export declare const OmadaConfigFormPage: React.FC<OmadaConfigFormPageProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type OmadaFormRepeaterItem } from '../blocks/OmadaFormRepeaterBlock';
|
|
3
|
+
import '../../styles/tp-omada.css';
|
|
4
|
+
export interface OmadaLanNetworkConfig {
|
|
5
|
+
name: string;
|
|
6
|
+
vlanId: string;
|
|
7
|
+
gatewaySubnet: string;
|
|
8
|
+
dhcpEnabled: boolean;
|
|
9
|
+
dhcpRange: string;
|
|
10
|
+
dnsServers: OmadaFormRepeaterItem[];
|
|
11
|
+
}
|
|
12
|
+
export declare const DEFAULT_OMADA_LAN_CONFIG: OmadaLanNetworkConfig;
|
|
13
|
+
export interface OmadaLanSettingsPageProps {
|
|
14
|
+
initialConfig?: OmadaLanNetworkConfig;
|
|
15
|
+
mode?: 'create' | 'edit';
|
|
16
|
+
onSave?: (config: OmadaLanNetworkConfig) => void;
|
|
17
|
+
onBack?: () => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Legacy-Omada-aligned Wired LAN / VLAN Edit page combining `OmadaConfigFormPage`,
|
|
23
|
+
* underline/form-field rows, structured CIDR & IP Range inputs, and DNS repeater.
|
|
24
|
+
*/
|
|
25
|
+
export declare const OmadaLanSettingsPage: React.FC<OmadaLanSettingsPageProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type OmadaHardwarePort } from '../blocks/OmadaPortPanelBlock';
|
|
3
|
+
import '../../styles/tp-omada.css';
|
|
4
|
+
export interface OmadaPortDetailPageProps {
|
|
5
|
+
port?: OmadaHardwarePort;
|
|
6
|
+
deviceModel?: string;
|
|
7
|
+
onSave?: (updated: OmadaHardwarePort) => void;
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Dedicated Switch/Gateway Port Detail & Edit screen with status badges, speed/duplex selector,
|
|
14
|
+
* PoE output switch, VLAN profile picker, and Rx/Tx traffic spark chart.
|
|
15
|
+
*/
|
|
16
|
+
export declare const OmadaPortDetailPage: React.FC<OmadaPortDetailPageProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../styles/tp-omada.css';
|
|
3
|
+
export interface OmadaPrivacyPolicyPageProps {
|
|
4
|
+
analyticsEnabled?: boolean;
|
|
5
|
+
onAnalyticsChange?: (enabled: boolean) => void;
|
|
6
|
+
onAccept?: (consent: {
|
|
7
|
+
analyticsEnabled: boolean;
|
|
8
|
+
}) => void;
|
|
9
|
+
onDecline?: () => void;
|
|
10
|
+
onBack?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Legacy-Omada Privacy Policy & Telemetry Consent page with structured sections,
|
|
16
|
+
* diagnostics opt-in switch, and `TPFixedButtonBar` consent actions.
|
|
17
|
+
*/
|
|
18
|
+
export declare const OmadaPrivacyPolicyPage: React.FC<OmadaPrivacyPolicyPageProps>;
|
|
@@ -6,11 +6,16 @@ export interface TPThemeContextValue {
|
|
|
6
6
|
resolvedMode: TPResolvedMode;
|
|
7
7
|
os: TPPlatformOS;
|
|
8
8
|
screenSize: TPScreenSize;
|
|
9
|
+
highContrast: boolean;
|
|
10
|
+
fontScale: number;
|
|
9
11
|
tokens: TPThemeTokens;
|
|
10
12
|
setBrand: (brand: TPBrand) => void;
|
|
11
13
|
setMode: (mode: TPColorMode) => void;
|
|
12
14
|
setOS: (os: TPPlatformOS) => void;
|
|
13
15
|
setScreenSize: (size: TPScreenSize) => void;
|
|
16
|
+
setHighContrast: (highContrast: boolean) => void;
|
|
17
|
+
toggleHighContrast: () => void;
|
|
18
|
+
setFontScale: (scale: number) => void;
|
|
14
19
|
toggleMode: () => void;
|
|
15
20
|
}
|
|
16
21
|
export declare const TPThemeContext: React.Context<TPThemeContextValue>;
|
|
@@ -22,6 +27,10 @@ export interface TPThemeProviderProps {
|
|
|
22
27
|
os?: TPPlatformOS;
|
|
23
28
|
defaultOS?: TPPlatformOS;
|
|
24
29
|
screenSize?: TPScreenSize;
|
|
30
|
+
highContrast?: boolean;
|
|
31
|
+
defaultHighContrast?: boolean;
|
|
32
|
+
fontScale?: number;
|
|
33
|
+
defaultFontScale?: number;
|
|
25
34
|
/** When true, applies theme attributes only on the wrapper element instead of `document.documentElement`. */
|
|
26
35
|
scoped?: boolean;
|
|
27
36
|
className?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TP_BRANDS, TP_THEME_PRESETS, type TPBrand, type TPColorMode, type TPPlatformOS, type TPResolvedMode, type TPScreenSize, type TPThemeTokens, } from './tokens';
|
|
1
|
+
export { OMADA_EXTENDED_COLORS, OMADA_HIGH_CONTRAST_LIGHT_TOKENS, OMADA_PORT_SPEED_COLORS, TP_BRANDS, TP_SCREEN_DIMENSIONS, TP_TEXT_STYLES, TP_THEME_PRESETS, type TPBrand, type TPColorMode, type TPPlatformOS, type TPResolvedMode, type TPScreenSize, type TPTextStyleSpec, type TPThemeTokens, } from './tokens';
|
|
2
2
|
export { TPThemeContext, TPThemeProvider, useTPTheme, type TPThemeContextValue, type TPThemeProviderProps, } from './TPThemeProvider';
|
|
@@ -78,3 +78,27 @@ export interface TPTextStyleSpec {
|
|
|
78
78
|
lineHeight: number;
|
|
79
79
|
}
|
|
80
80
|
export declare const TP_TEXT_STYLES: readonly TPTextStyleSpec[];
|
|
81
|
+
export declare const OMADA_PORT_SPEED_COLORS: {
|
|
82
|
+
readonly '10/100M': "#F9B200";
|
|
83
|
+
readonly '1G': "#95CC00";
|
|
84
|
+
readonly '2.5G': "#00D076";
|
|
85
|
+
readonly '5G': "#00A870";
|
|
86
|
+
readonly '10G': "#00C9D4";
|
|
87
|
+
readonly '25G': "#009CFE";
|
|
88
|
+
readonly '40G': "#4C73FF";
|
|
89
|
+
readonly '100G': "#D562FF";
|
|
90
|
+
readonly Disabled: "#777777";
|
|
91
|
+
readonly Disconnected: "rgba(153, 153, 153, 0.32)";
|
|
92
|
+
};
|
|
93
|
+
export declare const OMADA_EXTENDED_COLORS: {
|
|
94
|
+
readonly lime: "#A6EF00";
|
|
95
|
+
readonly blue: "#0069CB";
|
|
96
|
+
readonly blueDark: "#33A0E9";
|
|
97
|
+
readonly magenta: "#F476FF";
|
|
98
|
+
readonly magentaDark: "#E077E9";
|
|
99
|
+
readonly magentaHC: "#9C4CA3";
|
|
100
|
+
readonly indigo: "#2F2FFF";
|
|
101
|
+
readonly indigoDark: "#ACACFF";
|
|
102
|
+
readonly yellowBright: "#FFCB00";
|
|
103
|
+
};
|
|
104
|
+
export declare const OMADA_HIGH_CONTRAST_LIGHT_TOKENS: Partial<TPThemeTokens>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chenyqthu/tp-mobile-ui-kit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TP-Link multi-brand mobile React UI component library (TP-Design 12-mode Theme Engine + Omada APP
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "TP-Link multi-brand mobile React UI component library (TP-Design 12-mode + WCAG High Contrast Theme Engine, 669 Figma Icons + Dark Variants, Omada APP V5.3–6.3 Blocks & Real PAG Motion Assets, Single-file HTML standalone bundle)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
name: tp-mobile-ui-kit
|
|
3
3
|
description: >-
|
|
4
4
|
Build TP-Link multi-brand mobile React UI prototypes and Omada APP v5.3–6.3 screens
|
|
5
|
-
using @chenyqthu/tp-mobile-ui-kit (TP-Design 6-brand 12-mode
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
using @chenyqthu/tp-mobile-ui-kit (TP-Design 6-brand 12-mode + WCAG High Contrast theme
|
|
6
|
+
engine, OS-adaptive iOS Liquid Glass / Android chrome, mobile TP* primitives, 669 Figma
|
|
7
|
+
icons with 25 dark variants, 42 Light/Dark illustrations, 16 brand logos, 17 Tencent PAG
|
|
8
|
+
.pag + 4 SVG motions, Omada P0/P1/P2 blocks/pages, and single-file zero-build HTML standalone
|
|
9
|
+
bundle). Activate when asked to build a TP-Link mobile UI demo, Omada/Tapo/Tether/Mercusys/Deco
|
|
10
|
+
mobile mockup, or single-file mobile prototype.
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
# TP-Mobile UI Kit — Mobile Prototype & Omada APP Skill
|
|
@@ -125,9 +126,9 @@ Prefer dedicated subpath imports to keep Vite/Rollup bundles lean via tree-shaki
|
|
|
125
126
|
|
|
126
127
|
| Subpath | Contents |
|
|
127
128
|
| :--- | :--- |
|
|
128
|
-
| `@chenyqthu/tp-mobile-ui-kit/core` | `TPThemeProvider`, `useTPTheme`, `TP_BRANDS`, `TP_THEME_PRESETS`, and all `TP*` mobile core primitives (including `TPLiquidGlass`, `TPIconButton`, `TPIconButtonGroup`, `TPCheckbox`, `TPRadio`, `TPSwipeRow`, `TPTooltip`, `TPFixedToast`, `TPMonthPicker`, `TPLast7DaysPicker`, `TPStepText`, `TPProgress`, `TPSkeleton`, `TPStepper`, `TPDivider`, `TPAvatar`, `TPPinInput`, dual-thumb `TPSlider`) + `useTPToast` |
|
|
129
|
-
| `@chenyqthu/tp-mobile-ui-kit/assets` | `TPIcon
|
|
130
|
-
| `@chenyqthu/tp-mobile-ui-kit/omada` | `OmadaStandardInput`, `OmadaDeviceThumb`,
|
|
129
|
+
| `@chenyqthu/tp-mobile-ui-kit/core` | `TPThemeProvider`, `useTPTheme` (`highContrast`, `fontScale`, `os`), `TP_BRANDS`, `TP_THEME_PRESETS`, and all `TP*` mobile core primitives (including `TPLiquidGlass`, `TPIconButton`, `TPIconButtonGroup`, `TPCheckbox`, `TPRadio`, `TPSwipeRow`, `TPTooltip`, `TPFixedToast`, `TPInfoSheet`, `TPLegendSheet`, `TPLoadMore`, `TPMonthPicker`, `TPLast7DaysPicker`, `TPStepText`, `TPProgress`, `TPSkeleton`, `TPStepper`, `TPDivider`, `TPAvatar`, `TPPinInput`, dual-thumb `TPSlider`) + `useTPToast` |
|
|
130
|
+
| `@chenyqthu/tp-mobile-ui-kit/assets` | `TPIcon` (669 icons + 25 dark variants), `TPIllustration`, `TPBrandLogo`, `TPMotion` (17 `.pag` + 4 SVG), and manifests (`TP_ICONS`, `TP_ILLUSTRATIONS`, `TP_BRAND_LOGOS`, `TP_MOTIONS`) |
|
|
131
|
+
| `@chenyqthu/tp-mobile-ui-kit/omada` | `OmadaStandardInput`, `OmadaDeviceThumb`, P0/P1/P2 blocks (`OmadaChartCard`, `OmadaDeviceListBlock`, `OmadaSiteListBlock`, `OmadaClientListBlock`, `OmadaSidebarDrawer`, `OmadaWirelessNetworkBlock`, `OmadaIncidentsBlock`, `OmadaScheduleBlock`, `OmadaPortPanelBlock`, `OmadaPortSelectorBlock`, `OmadaFormRepeaterBlock`, `OmadaCustomOptionList`, `OmadaTopologyBlock`, `OmadaFirmwareUpdateBlock`, `OmadaVoucherPreviewCard`), APP pages & `OmadaAppDemo` |
|
|
131
132
|
| `@chenyqthu/tp-mobile-ui-kit/style.css` | Complete CSS token variables and `.tp-*` component/Omada styles |
|
|
132
133
|
| `@chenyqthu/tp-mobile-ui-kit/standalone` | IIFE browser bundle attaching `window.TPMobileUI` |
|
|
133
134
|
| `@chenyqthu/tp-mobile-ui-kit/catalog.json` | Machine-readable component, token, and asset catalog |
|
|
@@ -168,16 +169,18 @@ Switch dynamically via `useTPTheme()`:
|
|
|
168
169
|
|
|
169
170
|
1. **Vite / React apps**: Place `libpag.wasm` in `public/libpag.wasm` (copied from `node_modules/libpag/lib/libpag.wasm`, or already in this repo's `public/libpag.wasm`).
|
|
170
171
|
2. **Automatic fallback**: In `file://` standalone HTML or when local `./libpag.wasm` is absent, `TPMotion` falls back to `https://cdn.jsdelivr.net/npm/libpag@4.5.85/lib/libpag.wasm`. In headless/non-WebGL environments (like `jsdom`), it degrades gracefully to a themed SVG indicator (`data-tp-motion-fallback="true"`).
|
|
171
|
-
3. Verified motion slugs (query via `search-assets motions`):
|
|
172
|
+
3. Verified motion slugs (query via `search-assets motions`):
|
|
173
|
+
- **PAG (`.pag`)**: `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`.
|
|
174
|
+
- **Procedural SVG**: `device-pairing`, `ap-scan`, `search-rotate`, `accessibility-zoom`.
|
|
172
175
|
|
|
173
176
|
---
|
|
174
177
|
|
|
175
|
-
## 6. Restored Omada APP Pages, Liquid Glass Chrome &
|
|
178
|
+
## 6. Restored Omada APP Pages, Liquid Glass / Android Chrome & Blocks
|
|
176
179
|
|
|
177
|
-
- **
|
|
178
|
-
- **
|
|
179
|
-
- **
|
|
180
|
-
- **
|
|
180
|
+
- **OS-Adaptive Navigation Chrome**: On `os="ios"`, set `overlayTop` and `overlayBottom` on `TPPhoneFrame` (with `<TPStatusBar transparent />` and `<TPTabBar variant="floating-pill" />`) for Apple Liquid Glass floating headers and pill tabs (`TPLiquidGlass`). On `os="android"`, `TPHeader` and `TPTabBar` automatically render traditional Material-era docked bars and circular solid FABs with zero Liquid Glass.
|
|
181
|
+
- **High Contrast & Font Scale**: `TPThemeProvider` supports `highContrast` (WCAG 4.5:1 Omada Light colors, Bold `700` `Title 1`, underlined bold links, and accessible Tags) and `fontScale` (`>= 1.4` enables stacked large-font list form rows).
|
|
182
|
+
- **Omada Pages**: `OmadaLaunchLoadingPage`, `OmadaControllerListPage`, `OmadaSiteDashboardPage`, `OmadaSiteInsightsPage`, `OmadaSiteDevicesPage`, `OmadaSiteClientsPage`, `OmadaSiteSettingsPage`, `OmadaHealthDetailPage`, `OmadaDeviceDetailPage`, `OmadaConfigFormPage`, `OmadaLanSettingsPage`, `OmadaPortDetailPage`, `OmadaAccessibilitySettingsPage`, `OmadaPrivacyPolicyPage`, `OmadaAppDemo`.
|
|
183
|
+
- **Omada Blocks & Inputs**: `OmadaChartCard`, `OmadaDeviceListBlock`, `OmadaSiteListBlock`, `OmadaClientListBlock`, `OmadaSidebarDrawer`, `OmadaWirelessNetworkBlock`, `OmadaIncidentsBlock`, `OmadaScheduleBlock`, `OmadaPortPanelBlock` (10 speeds + `dual-row` + `OmadaPortLegendSheet`), `OmadaPortSelectorBlock` (`select` / `icon-select` / `lag`), `OmadaFormRepeaterBlock`, `OmadaCustomOptionList`, `OmadaTopologyBlock`, `OmadaFirmwareUpdateBlock`, `OmadaVoucherPreviewCard`, `OmadaStandardInput` (`ip`, `mac`, `port`, `text`, `cidr`, `ip-range`, `ip-port`, `time-range`).
|
|
181
184
|
|
|
182
185
|
---
|
|
183
186
|
|