@chenyqthu/tp-mobile-ui-kit 0.0.0-stage → 0.2.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.
Files changed (113) hide show
  1. package/README.md +214 -2
  2. package/dist/assets.js +5 -0
  3. package/dist/catalog.json +12355 -0
  4. package/dist/chunks/OmadaAppDemo-BO8a6A-m.js +4910 -0
  5. package/dist/chunks/TPPrompt-DLd32rsN.js +3456 -0
  6. package/dist/chunks/asset-icons-BIenKvAh.js +7613 -0
  7. package/dist/chunks/asset-illustrations-YHXzEd7z.js +3086 -0
  8. package/dist/chunks/asset-logos-DAyGwOLj.js +59 -0
  9. package/dist/chunks/asset-motion-D7fWh_JS.js +376 -0
  10. package/dist/core.js +3 -0
  11. package/dist/index.js +7 -0
  12. package/dist/libpag.wasm +0 -0
  13. package/dist/omada.js +7 -0
  14. package/dist/standalone.js +3438 -0
  15. package/dist/style.css +2 -0
  16. package/dist/types/assets-lib/TPBrandLogo.d.ts +15 -0
  17. package/dist/types/assets-lib/TPIcon.d.ts +19 -0
  18. package/dist/types/assets-lib/TPIllustration.d.ts +17 -0
  19. package/dist/types/assets-lib/TPMotion.d.ts +25 -0
  20. package/dist/types/assets-lib/assetsManifest.d.ts +22 -0
  21. package/dist/types/assets-lib/iconsManifest.d.ts +14 -0
  22. package/dist/types/assets-lib/index.d.ts +8 -0
  23. package/dist/types/assets-lib/motionsManifest.d.ts +12 -0
  24. package/dist/types/assets-lib/runtimeUrl.d.ts +4 -0
  25. package/dist/types/core/components/TPActionSheet.d.ts +4 -0
  26. package/dist/types/core/components/TPAlert.d.ts +4 -0
  27. package/dist/types/core/components/TPAvatar.d.ts +7 -0
  28. package/dist/types/core/components/TPBadge.d.ts +7 -0
  29. package/dist/types/core/components/TPBottomSheet.d.ts +4 -0
  30. package/dist/types/core/components/TPButton.d.ts +4 -0
  31. package/dist/types/core/components/TPCheckbox.d.ts +11 -0
  32. package/dist/types/core/components/TPDatePicker.d.ts +7 -0
  33. package/dist/types/core/components/TPDaySwitcher.d.ts +7 -0
  34. package/dist/types/core/components/TPDivider.d.ts +7 -0
  35. package/dist/types/core/components/TPEmptyState.d.ts +7 -0
  36. package/dist/types/core/components/TPFixedButtonBar.d.ts +4 -0
  37. package/dist/types/core/components/TPFixedToast.d.ts +7 -0
  38. package/dist/types/core/components/TPHeader.d.ts +4 -0
  39. package/dist/types/core/components/TPIconButton.d.ts +11 -0
  40. package/dist/types/core/components/TPInput.d.ts +8 -0
  41. package/dist/types/core/components/TPKeyboard.d.ts +7 -0
  42. package/dist/types/core/components/TPLast7DaysPicker.d.ts +7 -0
  43. package/dist/types/core/components/TPLiquidGlass.d.ts +8 -0
  44. package/dist/types/core/components/TPListButton.d.ts +7 -0
  45. package/dist/types/core/components/TPListCard.d.ts +7 -0
  46. package/dist/types/core/components/TPListItem.d.ts +7 -0
  47. package/dist/types/core/components/TPMenu.d.ts +4 -0
  48. package/dist/types/core/components/TPMonthPicker.d.ts +7 -0
  49. package/dist/types/core/components/TPPageControl.d.ts +4 -0
  50. package/dist/types/core/components/TPPhoneFrame.d.ts +4 -0
  51. package/dist/types/core/components/TPPinInput.d.ts +7 -0
  52. package/dist/types/core/components/TPPopup.d.ts +4 -0
  53. package/dist/types/core/components/TPProgress.d.ts +7 -0
  54. package/dist/types/core/components/TPPrompt.d.ts +4 -0
  55. package/dist/types/core/components/TPRadio.d.ts +11 -0
  56. package/dist/types/core/components/TPSearchBar.d.ts +7 -0
  57. package/dist/types/core/components/TPSectionHeader.d.ts +7 -0
  58. package/dist/types/core/components/TPSectionNote.d.ts +7 -0
  59. package/dist/types/core/components/TPSegment.d.ts +4 -0
  60. package/dist/types/core/components/TPSkeleton.d.ts +7 -0
  61. package/dist/types/core/components/TPSlider.d.ts +4 -0
  62. package/dist/types/core/components/TPStatusBar.d.ts +4 -0
  63. package/dist/types/core/components/TPStepText.d.ts +7 -0
  64. package/dist/types/core/components/TPStepper.d.ts +7 -0
  65. package/dist/types/core/components/TPSwipeRow.d.ts +8 -0
  66. package/dist/types/core/components/TPSwitch.d.ts +4 -0
  67. package/dist/types/core/components/TPTabBar.d.ts +4 -0
  68. package/dist/types/core/components/TPTag.d.ts +7 -0
  69. package/dist/types/core/components/TPText.d.ts +7 -0
  70. package/dist/types/core/components/TPTimePicker.d.ts +7 -0
  71. package/dist/types/core/components/TPToast.d.ts +13 -0
  72. package/dist/types/core/components/TPTooltip.d.ts +7 -0
  73. package/dist/types/core/components/TPWheelPicker.d.ts +7 -0
  74. package/dist/types/core/index.d.ts +50 -0
  75. package/dist/types/core/types.d.ts +646 -0
  76. package/dist/types/lib/assets.d.ts +1 -0
  77. package/dist/types/lib/core.d.ts +2 -0
  78. package/dist/types/lib/index.d.ts +4 -0
  79. package/dist/types/lib/omada.d.ts +4 -0
  80. package/dist/types/lib/standalone.d.ts +8 -0
  81. package/dist/types/omada/blocks/OmadaDeviceListBlock.d.ts +42 -0
  82. package/dist/types/omada/blocks/OmadaFirmwareUpdateBlock.d.ts +23 -0
  83. package/dist/types/omada/blocks/OmadaIncidentsBlock.d.ts +26 -0
  84. package/dist/types/omada/blocks/OmadaPortPanelBlock.d.ts +31 -0
  85. package/dist/types/omada/blocks/OmadaScheduleBlock.d.ts +33 -0
  86. package/dist/types/omada/blocks/OmadaTopologyBlock.d.ts +26 -0
  87. package/dist/types/omada/blocks/OmadaWirelessNetworkBlock.d.ts +25 -0
  88. package/dist/types/omada/components/OmadaStandardInput.d.ts +23 -0
  89. package/dist/types/omada/index.d.ts +18 -0
  90. package/dist/types/omada/pages/OmadaAppDemo.d.ts +18 -0
  91. package/dist/types/omada/pages/OmadaControllerListPage.d.ts +26 -0
  92. package/dist/types/omada/pages/OmadaDeviceDetailPage.d.ts +15 -0
  93. package/dist/types/omada/pages/OmadaHealthDetailPage.d.ts +17 -0
  94. package/dist/types/omada/pages/OmadaLaunchLoadingPage.d.ts +24 -0
  95. package/dist/types/omada/pages/OmadaSiteClientsPage.d.ts +34 -0
  96. package/dist/types/omada/pages/OmadaSiteDashboardPage.d.ts +28 -0
  97. package/dist/types/omada/pages/OmadaSiteDevicesPage.d.ts +18 -0
  98. package/dist/types/omada/pages/OmadaSiteInsightsPage.d.ts +17 -0
  99. package/dist/types/omada/pages/OmadaSiteSettingsPage.d.ts +22 -0
  100. package/dist/types/theme/TPThemeProvider.d.ts +33 -0
  101. package/dist/types/theme/index.d.ts +2 -0
  102. package/dist/types/theme/tokens.d.ts +80 -0
  103. package/package.json +88 -4
  104. package/skills/tp-mobile-ui-kit/SKILL.md +226 -0
  105. package/skills/tp-mobile-ui-kit/references/catalog.json +12355 -0
  106. package/skills/tp-mobile-ui-kit/scripts/query-catalog.mjs +289 -0
  107. package/skills/tp-mobile-ui-kit/scripts/verify-demo.mjs +193 -0
  108. package/skills/tp-mobile-ui-kit/templates/multi-brand.html +319 -0
  109. package/skills/tp-mobile-ui-kit/templates/multi-brand.tsx +337 -0
  110. package/skills/tp-mobile-ui-kit/templates/omada-dashboard.html +138 -0
  111. package/skills/tp-mobile-ui-kit/templates/omada-dashboard.tsx +119 -0
  112. package/skills/tp-mobile-ui-kit/templates/omada-device-detail.html +158 -0
  113. package/skills/tp-mobile-ui-kit/templates/omada-device-detail.tsx +135 -0
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import type { TPTabBarItem } from '../../core/types';
3
+ import '../../styles/tp-omada.css';
4
+ export type OmadaSiteTabKey = 'dashboard' | 'insights' | 'devices' | 'clients' | 'settings';
5
+ export declare const OMADA_SITE_TABS: readonly TPTabBarItem[];
6
+ export type OmadaDeviceType = 'gateway' | 'switch' | 'ap';
7
+ export type OmadaDeviceStatus = 'connected' | 'disconnected' | 'pending';
8
+ export interface OmadaDeviceRecord {
9
+ id: string;
10
+ mac: string;
11
+ name?: string;
12
+ model: string;
13
+ type: OmadaDeviceType;
14
+ status: OmadaDeviceStatus;
15
+ ip: string;
16
+ healthLabel: string;
17
+ healthTone?: 'good' | 'warn' | 'alert';
18
+ upgradeAvailable?: boolean;
19
+ firmwareVersion?: string;
20
+ targetVersion?: string;
21
+ uptime?: string;
22
+ cpuPct?: number;
23
+ memoryPct?: number;
24
+ }
25
+ export declare const DEFAULT_OMADA_DEVICES: readonly OmadaDeviceRecord[];
26
+ export declare const OmadaDeviceThumb: React.FC<{
27
+ type: OmadaDeviceType;
28
+ size?: number;
29
+ }>;
30
+ export interface OmadaDeviceListBlockProps {
31
+ devices?: readonly OmadaDeviceRecord[];
32
+ grouped?: boolean;
33
+ onSelectDevice?: (device: OmadaDeviceRecord) => void;
34
+ emptyTitle?: string;
35
+ emptyDescription?: string;
36
+ className?: string;
37
+ style?: React.CSSProperties;
38
+ }
39
+ /**
40
+ * Reusable Omada v5.3+ Device List block matching real-device `SiteDevices.png` row geometry.
41
+ */
42
+ export declare const OmadaDeviceListBlock: React.FC<OmadaDeviceListBlockProps>;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export interface OmadaFirmwareCandidate {
4
+ id: string;
5
+ model: string;
6
+ mac: string;
7
+ currentVersion: string;
8
+ targetVersion: string;
9
+ }
10
+ export declare const DEFAULT_FIRMWARE_CANDIDATES: readonly OmadaFirmwareCandidate[];
11
+ export interface OmadaFirmwareUpdateBlockProps {
12
+ candidates?: readonly OmadaFirmwareCandidate[];
13
+ showHeader?: boolean;
14
+ onBack?: () => void;
15
+ onUpgradeStart?: (selectedIds: string[]) => void;
16
+ className?: string;
17
+ style?: React.CSSProperties;
18
+ }
19
+ /**
20
+ * Reusable Omada v5.3+ batch firmware update workflow block (`SMBNET-4894`) combining
21
+ * `TPFixedToast`, `TPStepText`, `TPCheckbox`, `TPProgress`, and `update-network` PAG motion.
22
+ */
23
+ export declare const OmadaFirmwareUpdateBlock: React.FC<OmadaFirmwareUpdateBlockProps>;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export type OmadaIncidentCategory = 'alert' | 'device' | 'client' | 'operation';
4
+ export type OmadaIncidentSeverity = 'warning' | 'error' | 'info';
5
+ export interface OmadaIncidentItem {
6
+ id: string;
7
+ category: OmadaIncidentCategory;
8
+ severity: OmadaIncidentSeverity;
9
+ title: string;
10
+ description: string;
11
+ timestamp: string;
12
+ unread?: boolean;
13
+ }
14
+ export declare const DEFAULT_OMADA_INCIDENTS: readonly OmadaIncidentItem[];
15
+ export interface OmadaIncidentsBlockProps {
16
+ incidents?: readonly OmadaIncidentItem[];
17
+ showHeader?: boolean;
18
+ onBack?: () => void;
19
+ onUnreadCountChange?: (count: number) => void;
20
+ className?: string;
21
+ style?: React.CSSProperties;
22
+ }
23
+ /**
24
+ * Reusable Omada v5.3+ Logs / Alerts & Events block with severity filtering and Mark All Read.
25
+ */
26
+ export declare const OmadaIncidentsBlock: React.FC<OmadaIncidentsBlockProps>;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export type OmadaPortMedia = 'rj45' | 'sfp';
4
+ export type OmadaPortSpeed = '2.5G' | '1000M' | '100M' | 'Down';
5
+ export interface OmadaHardwarePort {
6
+ id: string;
7
+ label: string;
8
+ media: OmadaPortMedia;
9
+ speed: OmadaPortSpeed;
10
+ poeCapable?: boolean;
11
+ poeEnabled?: boolean;
12
+ poeWatts?: number;
13
+ vlanProfile: string;
14
+ rxBytes: string;
15
+ txBytes: string;
16
+ }
17
+ export declare const DEFAULT_OMADA_PORTS: readonly OmadaHardwarePort[];
18
+ export interface OmadaPortPanelBlockProps {
19
+ deviceModel?: string;
20
+ ports?: readonly OmadaHardwarePort[];
21
+ showHeader?: boolean;
22
+ onBack?: () => void;
23
+ onPortUpdate?: (updated: OmadaHardwarePort) => void;
24
+ className?: string;
25
+ style?: React.CSSProperties;
26
+ }
27
+ /**
28
+ * Reusable Omada v5.3+ hardware port panel (`SMBNET-4185` / `SMBNET-4057`) showing RJ45 & SFP+
29
+ * physical faceplate indicators, PoE wattage badges, VLAN assignment, and interactive inspection.
30
+ */
31
+ export declare const OmadaPortPanelBlock: React.FC<OmadaPortPanelBlockProps>;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import type { TPDayKey } from '../../core/types';
3
+ import '../../styles/tp-omada.css';
4
+ export type OmadaScheduleTarget = 'wlan' | 'poe' | 'reboot';
5
+ export interface OmadaScheduleRule {
6
+ id: string;
7
+ name: string;
8
+ target: OmadaScheduleTarget;
9
+ enabled: boolean;
10
+ days: TPDayKey[];
11
+ startTime: {
12
+ hour: number;
13
+ minute: number;
14
+ };
15
+ endTime?: {
16
+ hour: number;
17
+ minute: number;
18
+ };
19
+ }
20
+ export declare const DEFAULT_OMADA_SCHEDULES: readonly OmadaScheduleRule[];
21
+ export interface OmadaScheduleBlockProps {
22
+ rules?: readonly OmadaScheduleRule[];
23
+ showHeader?: boolean;
24
+ onBack?: () => void;
25
+ onChange?: (rules: OmadaScheduleRule[]) => void;
26
+ className?: string;
27
+ style?: React.CSSProperties;
28
+ }
29
+ /**
30
+ * Reusable Omada v5.3+ Schedule block (`SMBNET-3501`) supporting WLAN, PoE, and Reboot schedules
31
+ * with `TPDaySwitcher` weekday selection and `TPTimePicker` bottom sheet editing.
32
+ */
33
+ export declare const OmadaScheduleBlock: React.FC<OmadaScheduleBlockProps>;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export interface OmadaTopologyNode {
4
+ id: string;
5
+ role: 'wan' | 'gateway' | 'ap' | 'client';
6
+ name: string;
7
+ modelOrDetail: string;
8
+ ip: string;
9
+ linkLabel: string;
10
+ status: 'online' | 'warning';
11
+ }
12
+ export declare const DEFAULT_TOPOLOGY_NODES: readonly OmadaTopologyNode[];
13
+ export interface OmadaTopologyBlockProps {
14
+ siteName?: string;
15
+ nodes?: readonly OmadaTopologyNode[];
16
+ showHeader?: boolean;
17
+ onBack?: () => void;
18
+ onSelectNode?: (node: OmadaTopologyNode) => void;
19
+ className?: string;
20
+ style?: React.CSSProperties;
21
+ }
22
+ /**
23
+ * Interactive Omada v5.3+ network topology diagram (`SMBNET-4433`) showing Internet WAN uplink,
24
+ * Gateway root, downlink Access Points, link rates, and loop-detection status.
25
+ */
26
+ export declare const OmadaTopologyBlock: React.FC<OmadaTopologyBlockProps>;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export type OmadaBandKey = '2.4G' | '5G' | '6G';
4
+ export type OmadaSecurityMode = 'WPA3-Personal' | 'WPA2/WPA3' | 'WPA2-Personal' | 'Open';
5
+ export interface OmadaWirelessConfig {
6
+ ssid: string;
7
+ enabled: boolean;
8
+ bands: OmadaBandKey[];
9
+ security: OmadaSecurityMode;
10
+ vlanId: string;
11
+ aclGatewayIp: string;
12
+ aclMacAddress: string;
13
+ }
14
+ export interface OmadaWirelessNetworkBlockProps {
15
+ initialConfig?: Partial<OmadaWirelessConfig>;
16
+ showHeader?: boolean;
17
+ onBack?: () => void;
18
+ onSave?: (config: OmadaWirelessConfig) => void;
19
+ className?: string;
20
+ style?: React.CSSProperties;
21
+ }
22
+ /**
23
+ * Reusable Omada v5.3+ Wireless Network (WLAN/SSID) configuration block with IP/MAC ACL and `deploy-config` PAG motion.
24
+ */
25
+ export declare const OmadaWirelessNetworkBlock: React.FC<OmadaWirelessNetworkBlockProps>;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export type OmadaStandardInputType = 'ip' | 'mac' | 'text' | 'port';
4
+ export interface OmadaStandardInputProps {
5
+ type?: OmadaStandardInputType;
6
+ label?: React.ReactNode;
7
+ value?: string;
8
+ defaultValue?: string;
9
+ onChange?: (value: string) => void;
10
+ placeholder?: string;
11
+ error?: string;
12
+ helperText?: string;
13
+ disabled?: boolean;
14
+ readOnly?: boolean;
15
+ id?: string;
16
+ name?: string;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ /**
21
+ * Figma `【Omada】Standard Input` supporting segmented IPv4 (`0-255`), segmented MAC (`8C-86-DD-A6-A7-5F`), port, and text fields.
22
+ */
23
+ export declare const OmadaStandardInput: React.FC<OmadaStandardInputProps>;
@@ -0,0 +1,18 @@
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';
3
+ export { OmadaWirelessNetworkBlock, type OmadaBandKey, type OmadaSecurityMode, type OmadaWirelessConfig, type OmadaWirelessNetworkBlockProps, } from './blocks/OmadaWirelessNetworkBlock';
4
+ export { DEFAULT_OMADA_INCIDENTS, OmadaIncidentsBlock, type OmadaIncidentCategory, type OmadaIncidentSeverity, type OmadaIncidentItem, type OmadaIncidentsBlockProps, } from './blocks/OmadaIncidentsBlock';
5
+ 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';
7
+ export { DEFAULT_TOPOLOGY_NODES, OmadaTopologyBlock, type OmadaTopologyNode, type OmadaTopologyBlockProps, } from './blocks/OmadaTopologyBlock';
8
+ export { DEFAULT_FIRMWARE_CANDIDATES, OmadaFirmwareUpdateBlock, type OmadaFirmwareCandidate, type OmadaFirmwareUpdateBlockProps, } from './blocks/OmadaFirmwareUpdateBlock';
9
+ export { OmadaLaunchLoadingPage, type OmadaLaunchLoadingPageProps, } from './pages/OmadaLaunchLoadingPage';
10
+ export { DEFAULT_OMADA_CONTROLLERS, OmadaControllerListPage, type OmadaControllerKind, type OmadaControllerItem, type OmadaControllerListPageProps, } from './pages/OmadaControllerListPage';
11
+ export { OmadaSiteDashboardPage, type OmadaSiteDashboardPageProps, } from './pages/OmadaSiteDashboardPage';
12
+ export { OmadaSiteInsightsPage, type OmadaInsightsTabKey, type OmadaSiteInsightsPageProps, } from './pages/OmadaSiteInsightsPage';
13
+ export { OmadaSiteDevicesPage, type OmadaSiteDevicesPageProps, } from './pages/OmadaSiteDevicesPage';
14
+ export { DEFAULT_OMADA_CLIENTS, OmadaSiteClientsPage, type OmadaClientStatus, type OmadaClientLinkType, type OmadaClientRecord, type OmadaSiteClientsPageProps, } from './pages/OmadaSiteClientsPage';
15
+ export { OmadaSiteSettingsPage, type OmadaSettingRowKey, type OmadaSiteSettingsPageProps, } from './pages/OmadaSiteSettingsPage';
16
+ export { OmadaHealthDetailPage, type OmadaHealthDetailPageProps, } from './pages/OmadaHealthDetailPage';
17
+ export { OmadaDeviceDetailPage, type OmadaDeviceDetailPageProps, } from './pages/OmadaDeviceDetailPage';
18
+ export { OmadaAppDemo, type OmadaAppScreenId, type OmadaAppDemoProps, } from './pages/OmadaAppDemo';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import type { TPPhoneFrameProps } from '../../core/types';
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';
5
+ export interface OmadaAppDemoProps {
6
+ initialScreen?: OmadaAppScreenId;
7
+ screen?: OmadaAppScreenId;
8
+ onScreenChange?: (screen: OmadaAppScreenId) => void;
9
+ device?: TPPhoneFrameProps['device'];
10
+ showFrame?: boolean;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ }
14
+ /**
15
+ * Interactive end-to-end Omada APP v5.3–6.3 prototype wiring all 7 real-device screens
16
+ * and drill-down sub-pages inside `TPPhoneFrame`.
17
+ */
18
+ export declare const OmadaAppDemo: React.FC<OmadaAppDemoProps>;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export type OmadaControllerKind = 'cloud' | 'software' | 'hardware';
4
+ export interface OmadaControllerItem {
5
+ id: string;
6
+ name: string;
7
+ edition: string;
8
+ version: string;
9
+ kind: OmadaControllerKind;
10
+ ips?: string;
11
+ systemGroup: 'Cloud Management' | 'Local Controllers';
12
+ }
13
+ export declare const DEFAULT_OMADA_CONTROLLERS: readonly OmadaControllerItem[];
14
+ export interface OmadaControllerListPageProps {
15
+ controllers?: readonly OmadaControllerItem[];
16
+ onSelectController?: (controller: OmadaControllerItem) => void;
17
+ onAddController?: () => void;
18
+ onAvatarClick?: () => void;
19
+ className?: string;
20
+ style?: React.CSSProperties;
21
+ }
22
+ /**
23
+ * 1:1 restoration of `controllerlist.png`: green `C` avatar, `All Systems` TPMenu filter, `+` add button,
24
+ * `TPSearchBar`, `Cloud Management (5)` section header, and all 5 real Omada controllers.
25
+ */
26
+ export declare const OmadaControllerListPage: React.FC<OmadaControllerListPageProps>;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { type OmadaDeviceRecord } from '../blocks/OmadaDeviceListBlock';
3
+ import '../../styles/tp-omada.css';
4
+ export interface OmadaDeviceDetailPageProps {
5
+ device?: OmadaDeviceRecord;
6
+ onBack?: () => void;
7
+ onSaveConfig?: (updated: OmadaDeviceRecord) => void;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ }
11
+ /**
12
+ * Full Device Detail screen supporting Overview (with `update-network` Firmware Upgrade sheet),
13
+ * interactive Ports grid (playing `port-card-expand` PAG motion), and Config (`OmadaStandardInput` IP/MAC/Port).
14
+ */
15
+ export declare const OmadaDeviceDetailPage: React.FC<OmadaDeviceDetailPageProps>;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import '../../styles/tp-omada.css';
3
+ export interface OmadaHealthDetailPageProps {
4
+ siteName?: string;
5
+ score?: number;
6
+ deviceScore?: number;
7
+ wifiScore?: number;
8
+ wanScore?: number;
9
+ onBack?: () => void;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ }
13
+ /**
14
+ * Drill-down Site Health Score detail screen with radial score gauge, subsystem metrics,
15
+ * and 24-hour historical health chart.
16
+ */
17
+ export declare const OmadaHealthDetailPage: React.FC<OmadaHealthDetailPageProps>;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { type OmadaSiteTabKey } from '../blocks/OmadaDeviceListBlock';
3
+ import '../../styles/tp-omada.css';
4
+ export interface OmadaLaunchLoadingPageProps {
5
+ siteName?: string;
6
+ controllerName?: string;
7
+ upgradeVersion?: string;
8
+ activeTab?: OmadaSiteTabKey;
9
+ onTabChange?: (tab: OmadaSiteTabKey) => void;
10
+ onBackToGlobal?: () => void;
11
+ onOpenLogs?: () => void;
12
+ onUpgrade?: () => void;
13
+ onToolkitClick?: () => void;
14
+ showUpgradeBanner?: boolean;
15
+ showTabBar?: boolean;
16
+ showFloatingAction?: boolean;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ /**
21
+ * 1:1 restoration of `launchloading.png`: floating glass header, blue dismissible upgrade prompt,
22
+ * 3 animated skeleton dashboard cards, green Toolkit FAB, and floating glass TabBar.
23
+ */
24
+ export declare const OmadaLaunchLoadingPage: React.FC<OmadaLaunchLoadingPageProps>;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { type TPIconName } from '../../assets-lib';
3
+ import { type OmadaSiteTabKey } from '../blocks/OmadaDeviceListBlock';
4
+ import '../../styles/tp-omada.css';
5
+ export type OmadaClientStatus = 'online' | 'offline' | 'blocked';
6
+ export type OmadaClientLinkType = 'wired' | 'wireless';
7
+ export interface OmadaClientRecord {
8
+ id: string;
9
+ name: string;
10
+ ip: string;
11
+ mac: string;
12
+ rssiDbm?: number;
13
+ networkName: string;
14
+ status: OmadaClientStatus;
15
+ linkType: OmadaClientLinkType;
16
+ iconName?: TPIconName;
17
+ customThumb?: 'thermostat';
18
+ }
19
+ export declare const DEFAULT_OMADA_CLIENTS: readonly OmadaClientRecord[];
20
+ export interface OmadaSiteClientsPageProps {
21
+ clients?: readonly OmadaClientRecord[];
22
+ activeTab?: OmadaSiteTabKey;
23
+ onTabChange?: (tab: OmadaSiteTabKey) => void;
24
+ onSelectClient?: (client: OmadaClientRecord) => void;
25
+ showTabBar?: boolean;
26
+ className?: string;
27
+ style?: React.CSSProperties;
28
+ }
29
+ /**
30
+ * 1:1 restoration of `SiteClients.png`: floating `Clients` header with `Filter | ⋮` glass capsule,
31
+ * live `TPSearchBar`, `Online | Offline | Blocked | All` underline segment, `All | Wired | Wireless` chips,
32
+ * and all 4 real clients with color-coded dBm RSSI metrics.
33
+ */
34
+ export declare const OmadaSiteClientsPage: React.FC<OmadaSiteClientsPageProps>;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { type OmadaSiteTabKey } from '../blocks/OmadaDeviceListBlock';
3
+ import '../../styles/tp-omada.css';
4
+ export interface OmadaSiteDashboardPageProps {
5
+ siteName?: string;
6
+ controllerName?: string;
7
+ unreadLogsCount?: number;
8
+ activeTab?: OmadaSiteTabKey;
9
+ onTabChange?: (tab: OmadaSiteTabKey) => void;
10
+ onSiteChange?: (site: string) => void;
11
+ onBackToGlobal?: () => void;
12
+ onOpenLogs?: () => void;
13
+ onOpenHealthDetail?: () => void;
14
+ onOpenInsights?: () => void;
15
+ onOpenDevices?: () => void;
16
+ onOpenClients?: () => void;
17
+ onToolkitClick?: () => void;
18
+ showTabBar?: boolean;
19
+ showFloatingAction?: boolean;
20
+ className?: string;
21
+ style?: React.CSSProperties;
22
+ }
23
+ /**
24
+ * 1:1 restoration of `siteDashboard.png`: floating site selector header (`92 ⌄ / 62`, log badge `1`),
25
+ * 4 KPI tiles + Topology CTA, Site Health Score (`100` + 3 subcards + timeline scrubber),
26
+ * ISP Activity (`SFP WAN/LAN1`, `WAN3`), Internet Activity dual-series chart, Toolkit FAB, and floating TabBar.
27
+ */
28
+ export declare const OmadaSiteDashboardPage: React.FC<OmadaSiteDashboardPageProps>;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { type OmadaDeviceRecord, type OmadaSiteTabKey } from '../blocks/OmadaDeviceListBlock';
3
+ import '../../styles/tp-omada.css';
4
+ export interface OmadaSiteDevicesPageProps {
5
+ devices?: readonly OmadaDeviceRecord[];
6
+ activeTab?: OmadaSiteTabKey;
7
+ onTabChange?: (tab: OmadaSiteTabKey) => void;
8
+ onSelectDevice?: (device: OmadaDeviceRecord) => void;
9
+ showTabBar?: boolean;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ }
13
+ /**
14
+ * 1:1 restoration of `SiteDevices.png`: floating `Devices` header with `+ | ⋮` glass capsule,
15
+ * live `TPSearchBar`, `Device List | Device Group` underline segment, expandable filter chips,
16
+ * `OmadaDeviceListBlock`, and floating TabBar.
17
+ */
18
+ export declare const OmadaSiteDevicesPage: React.FC<OmadaSiteDevicesPageProps>;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { type OmadaSiteTabKey } from '../blocks/OmadaDeviceListBlock';
3
+ import '../../styles/tp-omada.css';
4
+ export type OmadaInsightsTabKey = 'wired' | 'wireless' | 'client' | 'apps';
5
+ export interface OmadaSiteInsightsPageProps {
6
+ activeTab?: OmadaSiteTabKey;
7
+ onTabChange?: (tab: OmadaSiteTabKey) => void;
8
+ showTabBar?: boolean;
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ }
12
+ /**
13
+ * 1:1 restoration of `SiteInsights.png`: floating `Insights` header with calendar range button,
14
+ * 4 underline tabs (`Wired`, `Wireless`, `Client`, `Apps`), `ISP Load` dual-axis histogram + latency pulse,
15
+ * `WAN Health Trend`, `Gateway Utilization`, and `Switch Health Trend`.
16
+ */
17
+ export declare const OmadaSiteInsightsPage: React.FC<OmadaSiteInsightsPageProps>;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { type OmadaSiteTabKey } from '../blocks/OmadaDeviceListBlock';
3
+ import '../../styles/tp-omada.css';
4
+ export type OmadaSettingRowKey = 'internet' | 'lan' | 'wireless' | 'vpn' | 'security' | 'transmission' | 'authentication' | 'ddns' | 'profiles' | 'site' | 'schedule' | 'firmware' | 'logs';
5
+ export interface OmadaSiteSettingsPageProps {
6
+ logsCount?: number;
7
+ activeTab?: OmadaSiteTabKey;
8
+ onTabChange?: (tab: OmadaSiteTabKey) => void;
9
+ onOpenWirelessNetworks?: () => void;
10
+ onOpenSchedule?: () => void;
11
+ onOpenFirmware?: () => void;
12
+ onOpenLogs?: () => void;
13
+ onSelectSetting?: (key: OmadaSettingRowKey) => void;
14
+ showTabBar?: boolean;
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ }
18
+ /**
19
+ * 1:1 restoration of `SiteSettings.png`: centered `Settings` header, live `TPSearchBar`,
20
+ * 4 grouped `TPListCard`s with exact Omada `settings-*` icons, and drill-downs to Wireless Networks, Schedules, Firmware Updates & Logs.
21
+ */
22
+ export declare const OmadaSiteSettingsPage: React.FC<OmadaSiteSettingsPageProps>;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { TP_BRANDS, TP_THEME_PRESETS, type TPBrand, type TPColorMode, type TPPlatformOS, type TPResolvedMode, type TPScreenSize, type TPThemeTokens } from './tokens';
3
+ export interface TPThemeContextValue {
4
+ brand: TPBrand;
5
+ mode: TPColorMode;
6
+ resolvedMode: TPResolvedMode;
7
+ os: TPPlatformOS;
8
+ screenSize: TPScreenSize;
9
+ tokens: TPThemeTokens;
10
+ setBrand: (brand: TPBrand) => void;
11
+ setMode: (mode: TPColorMode) => void;
12
+ setOS: (os: TPPlatformOS) => void;
13
+ setScreenSize: (size: TPScreenSize) => void;
14
+ toggleMode: () => void;
15
+ }
16
+ export declare const TPThemeContext: React.Context<TPThemeContextValue>;
17
+ export interface TPThemeProviderProps {
18
+ brand?: TPBrand;
19
+ defaultBrand?: TPBrand;
20
+ mode?: TPColorMode;
21
+ defaultMode?: TPColorMode;
22
+ os?: TPPlatformOS;
23
+ defaultOS?: TPPlatformOS;
24
+ screenSize?: TPScreenSize;
25
+ /** When true, applies theme attributes only on the wrapper element instead of `document.documentElement`. */
26
+ scoped?: boolean;
27
+ className?: string;
28
+ style?: React.CSSProperties;
29
+ children: React.ReactNode;
30
+ }
31
+ export declare const TPThemeProvider: React.FC<TPThemeProviderProps>;
32
+ export declare function useTPTheme(): TPThemeContextValue;
33
+ export { TP_BRANDS, TP_THEME_PRESETS };
@@ -0,0 +1,2 @@
1
+ export { TP_BRANDS, TP_THEME_PRESETS, type TPBrand, type TPColorMode, type TPPlatformOS, type TPResolvedMode, type TPScreenSize, type TPThemeTokens, } from './tokens';
2
+ export { TPThemeContext, TPThemeProvider, useTPTheme, type TPThemeContextValue, type TPThemeProviderProps, } from './TPThemeProvider';
@@ -0,0 +1,80 @@
1
+ export type TPBrand = 'omada' | 'tapo' | 'tether' | 'mercusys' | 'deco' | 'ux';
2
+ export type TPColorMode = 'light' | 'dark' | 'system';
3
+ export type TPResolvedMode = 'light' | 'dark';
4
+ export type TPScreenSize = 'base' | 'new' | 'ios27';
5
+ export type TPPlatformOS = 'ios' | 'android';
6
+ export declare const TP_BRANDS: readonly {
7
+ id: TPBrand;
8
+ label: string;
9
+ accent: string;
10
+ description: string;
11
+ }[];
12
+ export interface TPThemeTokens {
13
+ brand: TPBrand;
14
+ mode: TPResolvedMode;
15
+ figmaMode: string;
16
+ focus: string;
17
+ focusSoft10: string;
18
+ focusSoft16: string;
19
+ focusSoft20: string;
20
+ background: string;
21
+ card: string;
22
+ modalPanel: string;
23
+ overlay: string;
24
+ searchBar: string;
25
+ listDivider: string;
26
+ viewBg: string;
27
+ viewDivider: string;
28
+ textPrimary: string;
29
+ textSecondary: string;
30
+ textSecondaryAlt: string;
31
+ textDisabled: string;
32
+ textInversePrimary: string;
33
+ textInverseSecondary: string;
34
+ textHighlighted: string;
35
+ alert: string;
36
+ alertSoft10: string;
37
+ green: string;
38
+ greenSoft10: string;
39
+ yellow: string;
40
+ yellowSoft10: string;
41
+ buttonPrimaryFill: string;
42
+ buttonSecondaryFill: string;
43
+ buttonSecondaryStroke: number;
44
+ buttonTextColor: string;
45
+ buttonAlertFill: string;
46
+ buttonDisabledFill: string;
47
+ buttonDisabledText: string;
48
+ radiusButton: number;
49
+ radiusInCardButton: number;
50
+ radiusCard: number;
51
+ fontFamily: string;
52
+ fontSizeMain: number;
53
+ fontWeightTitle1: string;
54
+ fontWeightTitle4: string;
55
+ fontWeightButton: string;
56
+ sliderStroke: number;
57
+ sliderTickSize: number;
58
+ segmentTabText: string;
59
+ toastDefault: string;
60
+ toastInfo: string;
61
+ toastBlue: string;
62
+ toastYellow: string;
63
+ toastRed: string;
64
+ toastText: string;
65
+ iconSet: string;
66
+ rawVariables: Record<string, string | number | boolean | Record<string, unknown>>;
67
+ }
68
+ export declare const TP_THEME_PRESETS: Record<TPBrand, Record<TPResolvedMode, TPThemeTokens>>;
69
+ export declare const TP_SCREEN_DIMENSIONS: Record<TPScreenSize, {
70
+ width: number;
71
+ height: number;
72
+ label: string;
73
+ }>;
74
+ export interface TPTextStyleSpec {
75
+ name: string;
76
+ fontSize: number;
77
+ fontWeight: number;
78
+ lineHeight: number;
79
+ }
80
+ export declare const TP_TEXT_STYLES: readonly TPTextStyleSpec[];