@chenyqthu/tp-mobile-ui-kit 0.1.0 → 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 (37) hide show
  1. package/README.md +5 -5
  2. package/dist/catalog.json +1302 -72
  3. package/dist/chunks/{OmadaAppDemo-BP4a4ch_.js → OmadaAppDemo-BO8a6A-m.js} +2005 -1206
  4. package/dist/chunks/{TPPrompt-Csg5YasJ.js → TPPrompt-DLd32rsN.js} +1191 -195
  5. package/dist/core.js +2 -2
  6. package/dist/index.js +7 -7
  7. package/dist/omada.js +7 -7
  8. package/dist/standalone.js +341 -341
  9. package/dist/style.css +1 -1
  10. package/dist/types/core/components/TPAvatar.d.ts +7 -0
  11. package/dist/types/core/components/TPCheckbox.d.ts +11 -0
  12. package/dist/types/core/components/TPDivider.d.ts +7 -0
  13. package/dist/types/core/components/TPFixedToast.d.ts +7 -0
  14. package/dist/types/core/components/TPIconButton.d.ts +11 -0
  15. package/dist/types/core/components/TPLast7DaysPicker.d.ts +7 -0
  16. package/dist/types/core/components/TPLiquidGlass.d.ts +8 -0
  17. package/dist/types/core/components/TPMonthPicker.d.ts +7 -0
  18. package/dist/types/core/components/TPPinInput.d.ts +7 -0
  19. package/dist/types/core/components/TPProgress.d.ts +7 -0
  20. package/dist/types/core/components/TPRadio.d.ts +11 -0
  21. package/dist/types/core/components/TPSkeleton.d.ts +7 -0
  22. package/dist/types/core/components/TPStepText.d.ts +7 -0
  23. package/dist/types/core/components/TPStepper.d.ts +7 -0
  24. package/dist/types/core/components/TPSwipeRow.d.ts +8 -0
  25. package/dist/types/core/components/TPTooltip.d.ts +7 -0
  26. package/dist/types/core/index.d.ts +16 -0
  27. package/dist/types/core/types.d.ts +232 -0
  28. package/dist/types/omada/blocks/OmadaFirmwareUpdateBlock.d.ts +23 -0
  29. package/dist/types/omada/blocks/OmadaPortPanelBlock.d.ts +31 -0
  30. package/dist/types/omada/blocks/OmadaScheduleBlock.d.ts +33 -0
  31. package/dist/types/omada/blocks/OmadaTopologyBlock.d.ts +26 -0
  32. package/dist/types/omada/index.d.ts +4 -0
  33. package/dist/types/omada/pages/OmadaAppDemo.d.ts +1 -1
  34. package/dist/types/omada/pages/OmadaSiteSettingsPage.d.ts +4 -2
  35. package/package.json +2 -2
  36. package/skills/tp-mobile-ui-kit/SKILL.md +5 -4
  37. package/skills/tp-mobile-ui-kit/references/catalog.json +1302 -72
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPAvatarProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * User / account / device avatar supporting image, name initials, TPIcon, shape, and presence status dot.
6
+ */
7
+ export declare const TPAvatar: React.FC<TPAvatarProps>;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { TPCheckboxGroupProps, TPCheckboxProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * TP-Design theme-adaptive checkbox with optional indeterminate state, label, and description.
6
+ */
7
+ export declare const TPCheckbox: React.FC<TPCheckboxProps>;
8
+ /**
9
+ * Vertical or horizontal group of TPCheckbox options.
10
+ */
11
+ export declare const TPCheckboxGroup: React.FC<TPCheckboxGroupProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPDividerProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Hairline separator supporting inset alignment, optional centered label, and spacing presets.
6
+ */
7
+ export declare const TPDivider: React.FC<TPDividerProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPFixedToastProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Persistent inline/sticky notification bar matching Figma `Toast / Fixed Toast`.
6
+ */
7
+ export declare const TPFixedToast: React.FC<TPFixedToastProps>;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { TPIconButtonGroupProps, TPIconButtonProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Circular mobile icon button supporting Apple Liquid Glass, filled, tonal, and ghost variants.
6
+ */
7
+ export declare const TPIconButton: React.FC<TPIconButtonProps>;
8
+ /**
9
+ * Floating pill capsule grouping multiple TPIconButton actions with shared Liquid Glass or solid backing.
10
+ */
11
+ export declare const TPIconButtonGroup: React.FC<TPIconButtonGroupProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPLast7DaysPickerProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Horizontal 7-day rolling calendar strip matching Figma `Picker / Last 7 Days 过去7天`.
6
+ */
7
+ export declare const TPLast7DaysPicker: React.FC<TPLast7DaysPickerProps>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { TPLiquidGlassProps } from '../types';
3
+ import '../../styles/tp-core-nav-controls.css';
4
+ /**
5
+ * Apple iOS 26/27 Liquid Glass surface primitive combining translucent refractive backdrop blur,
6
+ * a directional 135-degree specular rim highlight, and inner meniscus depth lighting.
7
+ */
8
+ export declare const TPLiquidGlass: React.FC<TPLiquidGlassProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPMonthPickerProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Year navigation + 12-month grid selector matching Figma `Picker / Month Picker 选择月份`.
6
+ */
7
+ export declare const TPMonthPicker: React.FC<TPMonthPickerProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPPinInputProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Multi-cell OTP / verification PIN code input with auto-advance, backspace stepping, and paste distribution.
6
+ */
7
+ export declare const TPPinInput: React.FC<TPPinInputProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPProgressProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Linear bar and circular SVG progress indicator driven by semantic `--tp-*` colors.
6
+ */
7
+ export declare const TPProgress: React.FC<TPProgressProps>;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { TPRadioGroupProps, TPRadioProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * TP-Design theme-adaptive radio selection button.
6
+ */
7
+ export declare const TPRadio: React.FC<TPRadioProps>;
8
+ /**
9
+ * Exclusive selection TPRadioGroup supporting vertical and horizontal layouts.
10
+ */
11
+ export declare const TPRadioGroup: React.FC<TPRadioGroupProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPSkeletonProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Shimmer placeholder supporting text line stacks, rect, circle, and dashboard card geometries.
6
+ */
7
+ export declare const TPSkeleton: React.FC<TPSkeletonProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPStepTextProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Structured instructional list matching Figma `Text / Step Text`, `Numbered Text`, and `Bullet Point`.
6
+ */
7
+ export declare const TPStepText: React.FC<TPStepTextProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPStepperProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Horizontal or vertical multi-step progress stepper for onboarding and device setup flows.
6
+ */
7
+ export declare const TPStepper: React.FC<TPStepperProps>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { TPSwipeRowProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Mobile swipeable list row exposing trailing actions (`neutral`, `focus`, `warning`, `alert`).
6
+ * Supports pointer horizontal drag gestures as well as accessible click/controlled `open`.
7
+ */
8
+ export declare const TPSwipeRow: React.FC<TPSwipeRowProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TPTooltipProps } from '../types';
3
+ import '../../styles/tp-core-extended.css';
4
+ /**
5
+ * Callout tooltip bubble matching Figma `Prompt 提示气泡` with 6 arrow placements and optional click toggle.
6
+ */
7
+ export declare const TPTooltip: React.FC<TPTooltipProps>;
@@ -31,4 +31,20 @@ export { TPBottomSheet } from './components/TPBottomSheet';
31
31
  export { TPPopup } from './components/TPPopup';
32
32
  export { TPMenu } from './components/TPMenu';
33
33
  export { TPToast, TPToastProvider, useTPToast, type TPToastOptions, type TPToastContextValue, } from './components/TPToast';
34
+ export { TPLiquidGlass } from './components/TPLiquidGlass';
35
+ export { TPIconButton, TPIconButtonGroup } from './components/TPIconButton';
36
+ export { TPCheckbox, TPCheckboxGroup } from './components/TPCheckbox';
37
+ export { TPRadio, TPRadioGroup } from './components/TPRadio';
38
+ export { TPSwipeRow } from './components/TPSwipeRow';
39
+ export { TPTooltip } from './components/TPTooltip';
40
+ export { TPFixedToast } from './components/TPFixedToast';
41
+ export { TPMonthPicker } from './components/TPMonthPicker';
42
+ export { TPLast7DaysPicker } from './components/TPLast7DaysPicker';
43
+ export { TPStepText } from './components/TPStepText';
44
+ export { TPProgress } from './components/TPProgress';
45
+ export { TPSkeleton } from './components/TPSkeleton';
46
+ export { TPStepper } from './components/TPStepper';
47
+ export { TPDivider } from './components/TPDivider';
48
+ export { TPAvatar } from './components/TPAvatar';
49
+ export { TPPinInput } from './components/TPPinInput';
34
50
  export { TPPrompt } from './components/TPPrompt';
@@ -9,6 +9,8 @@ export interface TPPhoneFrameProps {
9
9
  showFrame?: boolean;
10
10
  showDynamicIsland?: boolean;
11
11
  showHomeIndicator?: boolean;
12
+ overlayTop?: boolean;
13
+ overlayBottom?: boolean;
12
14
  statusBar?: React.ReactNode;
13
15
  bottomBar?: React.ReactNode;
14
16
  floatingAction?: React.ReactNode;
@@ -16,6 +18,18 @@ export interface TPPhoneFrameProps {
16
18
  style?: React.CSSProperties;
17
19
  children: React.ReactNode;
18
20
  }
21
+ export interface TPLiquidGlassProps {
22
+ shape?: 'pill' | 'circle' | 'rounded';
23
+ tint?: 'clear' | 'brand' | 'dark';
24
+ interactive?: boolean;
25
+ as?: 'div' | 'button' | 'nav' | 'section';
26
+ ariaLabel?: string;
27
+ disabled?: boolean;
28
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
29
+ className?: string;
30
+ style?: React.CSSProperties;
31
+ children?: React.ReactNode;
32
+ }
19
33
  export interface TPStatusBarProps {
20
34
  time?: string;
21
35
  os?: TPPlatformOS;
@@ -56,6 +70,7 @@ export interface TPTabBarProps {
56
70
  activeKey: string;
57
71
  onChange: (key: string) => void;
58
72
  variant?: 'floating-pill' | 'docked';
73
+ extraAction?: React.ReactNode;
59
74
  className?: string;
60
75
  style?: React.CSSProperties;
61
76
  }
@@ -125,6 +140,11 @@ export interface TPSliderProps {
125
140
  showValue?: boolean;
126
141
  unit?: string;
127
142
  disabled?: boolean;
143
+ range?: boolean;
144
+ rangeValue?: readonly [number, number];
145
+ defaultRangeValue?: readonly [number, number];
146
+ onRangeChange?: (value: [number, number]) => void;
147
+ onRangeAfterChange?: (value: [number, number]) => void;
128
148
  onChange?: (value: number) => void;
129
149
  onAfterChange?: (value: number) => void;
130
150
  ariaLabel?: string;
@@ -223,6 +243,7 @@ export interface TPEmptyStateProps {
223
243
  style?: React.CSSProperties;
224
244
  }
225
245
  export interface TPInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'prefix'> {
246
+ variant?: 'standard' | 'list' | 'borderless' | 'icon';
226
247
  label?: React.ReactNode;
227
248
  value?: string;
228
249
  defaultValue?: string;
@@ -412,3 +433,214 @@ export interface TPPromptProps {
412
433
  className?: string;
413
434
  style?: React.CSSProperties;
414
435
  }
436
+ export interface TPIconButtonProps {
437
+ icon: TPIconName | React.ReactNode;
438
+ variant?: 'glass' | 'filled' | 'tonal' | 'ghost';
439
+ size?: 'sm' | 'md' | 'lg';
440
+ badge?: number | string | boolean;
441
+ disabled?: boolean;
442
+ ariaLabel: string;
443
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
444
+ className?: string;
445
+ style?: React.CSSProperties;
446
+ }
447
+ export interface TPIconButtonGroupProps {
448
+ variant?: 'glass' | 'solid';
449
+ children: React.ReactNode;
450
+ className?: string;
451
+ style?: React.CSSProperties;
452
+ }
453
+ export interface TPCheckboxProps {
454
+ checked?: boolean;
455
+ defaultChecked?: boolean;
456
+ indeterminate?: boolean;
457
+ disabled?: boolean;
458
+ label?: React.ReactNode;
459
+ description?: React.ReactNode;
460
+ onChange?: (checked: boolean) => void;
461
+ ariaLabel?: string;
462
+ className?: string;
463
+ style?: React.CSSProperties;
464
+ }
465
+ export interface TPCheckboxOption {
466
+ value: string;
467
+ label: React.ReactNode;
468
+ description?: React.ReactNode;
469
+ disabled?: boolean;
470
+ }
471
+ export interface TPCheckboxGroupProps {
472
+ options: readonly TPCheckboxOption[];
473
+ value?: readonly string[];
474
+ defaultValue?: readonly string[];
475
+ onChange?: (values: string[]) => void;
476
+ direction?: 'vertical' | 'horizontal';
477
+ disabled?: boolean;
478
+ className?: string;
479
+ style?: React.CSSProperties;
480
+ }
481
+ export interface TPRadioProps {
482
+ checked?: boolean;
483
+ defaultChecked?: boolean;
484
+ disabled?: boolean;
485
+ label?: React.ReactNode;
486
+ description?: React.ReactNode;
487
+ value?: string;
488
+ name?: string;
489
+ onChange?: (checked: boolean) => void;
490
+ ariaLabel?: string;
491
+ className?: string;
492
+ style?: React.CSSProperties;
493
+ }
494
+ export interface TPRadioOption {
495
+ value: string;
496
+ label: React.ReactNode;
497
+ description?: React.ReactNode;
498
+ disabled?: boolean;
499
+ }
500
+ export interface TPRadioGroupProps {
501
+ options: readonly TPRadioOption[];
502
+ value?: string;
503
+ defaultValue?: string;
504
+ onChange?: (value: string) => void;
505
+ direction?: 'vertical' | 'horizontal';
506
+ disabled?: boolean;
507
+ name?: string;
508
+ className?: string;
509
+ style?: React.CSSProperties;
510
+ }
511
+ export interface TPSwipeAction {
512
+ key: string;
513
+ label: React.ReactNode;
514
+ tone?: 'neutral' | 'focus' | 'warning' | 'alert';
515
+ onClick?: () => void;
516
+ }
517
+ export interface TPSwipeRowProps {
518
+ actions: readonly TPSwipeAction[];
519
+ open?: boolean;
520
+ defaultOpen?: boolean;
521
+ onOpenChange?: (open: boolean) => void;
522
+ disabled?: boolean;
523
+ children: React.ReactNode;
524
+ className?: string;
525
+ style?: React.CSSProperties;
526
+ }
527
+ export interface TPTooltipProps {
528
+ content: React.ReactNode;
529
+ arrowPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left' | 'right';
530
+ contextAdaptive?: boolean;
531
+ open?: boolean;
532
+ defaultOpen?: boolean;
533
+ onOpenChange?: (open: boolean) => void;
534
+ children?: React.ReactNode;
535
+ className?: string;
536
+ style?: React.CSSProperties;
537
+ }
538
+ export interface TPFixedToastProps {
539
+ status?: 'default' | 'info' | 'success' | 'warning' | 'danger';
540
+ action?: 'none' | 'close' | 'go-to' | 'button';
541
+ actionLabel?: string;
542
+ onAction?: () => void;
543
+ onClose?: () => void;
544
+ message: React.ReactNode;
545
+ className?: string;
546
+ style?: React.CSSProperties;
547
+ }
548
+ export interface TPMonthPickerValue {
549
+ year: number;
550
+ month: number;
551
+ }
552
+ export interface TPMonthPickerProps {
553
+ value?: TPMonthPickerValue;
554
+ defaultValue?: TPMonthPickerValue;
555
+ minYear?: number;
556
+ maxYear?: number;
557
+ locale?: 'en' | 'zh';
558
+ onChange?: (val: TPMonthPickerValue) => void;
559
+ className?: string;
560
+ style?: React.CSSProperties;
561
+ }
562
+ export interface TPLast7DaysPickerProps {
563
+ value?: Date;
564
+ defaultValue?: Date;
565
+ referenceDate?: Date;
566
+ markedDates?: readonly string[];
567
+ locale?: 'en' | 'zh';
568
+ onChange?: (date: Date) => void;
569
+ className?: string;
570
+ style?: React.CSSProperties;
571
+ }
572
+ export interface TPStepTextItem {
573
+ key?: string;
574
+ title?: React.ReactNode;
575
+ text: React.ReactNode;
576
+ note?: React.ReactNode;
577
+ }
578
+ export interface TPStepTextProps {
579
+ variant?: 'step' | 'numbered' | 'bullet';
580
+ items: readonly TPStepTextItem[];
581
+ className?: string;
582
+ style?: React.CSSProperties;
583
+ }
584
+ export interface TPProgressProps {
585
+ variant?: 'linear' | 'circular';
586
+ percent: number;
587
+ tone?: 'focus' | 'success' | 'warning' | 'alert' | 'info';
588
+ size?: number;
589
+ strokeWidth?: number;
590
+ showValue?: boolean;
591
+ label?: React.ReactNode;
592
+ className?: string;
593
+ style?: React.CSSProperties;
594
+ }
595
+ export interface TPSkeletonProps {
596
+ variant?: 'text' | 'rect' | 'circle' | 'card';
597
+ width?: number | string;
598
+ height?: number | string;
599
+ lines?: number;
600
+ animated?: boolean;
601
+ className?: string;
602
+ style?: React.CSSProperties;
603
+ }
604
+ export interface TPStepperItem {
605
+ key: string;
606
+ title: React.ReactNode;
607
+ description?: React.ReactNode;
608
+ }
609
+ export interface TPStepperProps {
610
+ steps: readonly TPStepperItem[];
611
+ current: number;
612
+ direction?: 'horizontal' | 'vertical';
613
+ className?: string;
614
+ style?: React.CSSProperties;
615
+ }
616
+ export interface TPDividerProps {
617
+ inset?: boolean;
618
+ label?: React.ReactNode;
619
+ spacing?: 'sm' | 'md' | 'lg';
620
+ className?: string;
621
+ style?: React.CSSProperties;
622
+ }
623
+ export interface TPAvatarProps {
624
+ src?: string;
625
+ name?: string;
626
+ icon?: TPIconName | React.ReactNode;
627
+ size?: 'sm' | 'md' | 'lg';
628
+ status?: 'online' | 'offline' | 'busy' | 'none';
629
+ shape?: 'circle' | 'rounded';
630
+ alt?: string;
631
+ className?: string;
632
+ style?: React.CSSProperties;
633
+ }
634
+ export interface TPPinInputProps {
635
+ length?: number;
636
+ value?: string;
637
+ defaultValue?: string;
638
+ masked?: boolean;
639
+ error?: string;
640
+ disabled?: boolean;
641
+ onChange?: (value: string) => void;
642
+ onComplete?: (value: string) => void;
643
+ ariaLabel?: string;
644
+ className?: string;
645
+ style?: React.CSSProperties;
646
+ }
@@ -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,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>;
@@ -2,6 +2,10 @@ export { OmadaStandardInput, type OmadaStandardInputProps, type OmadaStandardInp
2
2
  export { OMADA_SITE_TABS, DEFAULT_OMADA_DEVICES, OmadaDeviceThumb, OmadaDeviceListBlock, type OmadaSiteTabKey, type OmadaDeviceType, type OmadaDeviceStatus, type OmadaDeviceRecord, type OmadaDeviceListBlockProps, } from './blocks/OmadaDeviceListBlock';
3
3
  export { OmadaWirelessNetworkBlock, type OmadaBandKey, type OmadaSecurityMode, type OmadaWirelessConfig, type OmadaWirelessNetworkBlockProps, } from './blocks/OmadaWirelessNetworkBlock';
4
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';
5
9
  export { OmadaLaunchLoadingPage, type OmadaLaunchLoadingPageProps, } from './pages/OmadaLaunchLoadingPage';
6
10
  export { DEFAULT_OMADA_CONTROLLERS, OmadaControllerListPage, type OmadaControllerKind, type OmadaControllerItem, type OmadaControllerListPageProps, } from './pages/OmadaControllerListPage';
7
11
  export { OmadaSiteDashboardPage, type OmadaSiteDashboardPageProps, } from './pages/OmadaSiteDashboardPage';
@@ -1,7 +1,7 @@
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';
4
+ export type OmadaAppScreenId = 'launch' | 'controllers' | 'dashboard' | 'insights' | 'devices' | 'clients' | 'settings' | 'health-detail' | 'device-detail' | 'wireless-settings' | 'incidents' | 'schedule' | 'firmware' | 'topology' | 'port-panel';
5
5
  export interface OmadaAppDemoProps {
6
6
  initialScreen?: OmadaAppScreenId;
7
7
  screen?: OmadaAppScreenId;
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
2
  import { type OmadaSiteTabKey } from '../blocks/OmadaDeviceListBlock';
3
3
  import '../../styles/tp-omada.css';
4
- export type OmadaSettingRowKey = 'internet' | 'lan' | 'wireless' | 'vpn' | 'security' | 'transmission' | 'authentication' | 'ddns' | 'profiles' | 'site' | 'logs';
4
+ export type OmadaSettingRowKey = 'internet' | 'lan' | 'wireless' | 'vpn' | 'security' | 'transmission' | 'authentication' | 'ddns' | 'profiles' | 'site' | 'schedule' | 'firmware' | 'logs';
5
5
  export interface OmadaSiteSettingsPageProps {
6
6
  logsCount?: number;
7
7
  activeTab?: OmadaSiteTabKey;
8
8
  onTabChange?: (tab: OmadaSiteTabKey) => void;
9
9
  onOpenWirelessNetworks?: () => void;
10
+ onOpenSchedule?: () => void;
11
+ onOpenFirmware?: () => void;
10
12
  onOpenLogs?: () => void;
11
13
  onSelectSetting?: (key: OmadaSettingRowKey) => void;
12
14
  showTabBar?: boolean;
@@ -15,6 +17,6 @@ export interface OmadaSiteSettingsPageProps {
15
17
  }
16
18
  /**
17
19
  * 1:1 restoration of `SiteSettings.png`: centered `Settings` header, live `TPSearchBar`,
18
- * 4 grouped `TPListCard`s with exact Omada `settings-*` icons, and drill-downs to Wireless Networks & Logs.
20
+ * 4 grouped `TPListCard`s with exact Omada `settings-*` icons, and drill-downs to Wireless Networks, Schedules, Firmware Updates & Logs.
19
21
  */
20
22
  export declare const OmadaSiteSettingsPage: React.FC<OmadaSiteSettingsPageProps>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chenyqthu/tp-mobile-ui-kit",
3
- "version": "0.1.0",
4
- "description": "TP-Link multi-brand mobile React UI component library (TP-Design 10-mode Theme Engine + Omada APP 5.3 Blocks & Real PAG Motion Assets + Single-file HTML standalone bundle)",
3
+ "version": "0.2.0",
4
+ "description": "TP-Link multi-brand mobile React UI component library (TP-Design 12-mode Theme Engine + Omada APP 5.3 Blocks & Real PAG Motion Assets + Single-file HTML standalone bundle)",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -125,9 +125,9 @@ Prefer dedicated subpath imports to keep Vite/Rollup bundles lean via tree-shaki
125
125
 
126
126
  | Subpath | Contents |
127
127
  | :--- | :--- |
128
- | `@chenyqthu/tp-mobile-ui-kit/core` | `TPThemeProvider`, `useTPTheme`, `TP_BRANDS`, `TP_THEME_PRESETS`, and all 34 `TP*` mobile core primitives + `useTPToast` |
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
129
  | `@chenyqthu/tp-mobile-ui-kit/assets` | `TPIcon`, `TPIllustration`, `TPBrandLogo`, `TPMotion`, and asset manifests (`TP_ICONS`, `TP_ILLUSTRATIONS`, `TP_BRAND_LOGOS`, `TP_MOTIONS`) |
130
- | `@chenyqthu/tp-mobile-ui-kit/omada` | `OmadaStandardInput`, `OmadaDeviceThumb`, 3 V5.3 blocks, 7 restored Omada APP pages, `OmadaHealthDetailPage`, `OmadaDeviceDetailPage`, `OmadaAppDemo` |
130
+ | `@chenyqthu/tp-mobile-ui-kit/omada` | `OmadaStandardInput`, `OmadaDeviceThumb`, 7 V5.3 blocks (`OmadaDeviceListBlock`, `OmadaWirelessNetworkBlock`, `OmadaIncidentsBlock`, `OmadaScheduleBlock`, `OmadaPortPanelBlock`, `OmadaTopologyBlock`, `OmadaFirmwareUpdateBlock`), 7 restored Omada APP pages, `OmadaHealthDetailPage`, `OmadaDeviceDetailPage`, `OmadaAppDemo` |
131
131
  | `@chenyqthu/tp-mobile-ui-kit/style.css` | Complete CSS token variables and `.tp-*` component/Omada styles |
132
132
  | `@chenyqthu/tp-mobile-ui-kit/standalone` | IIFE browser bundle attaching `window.TPMobileUI` |
133
133
  | `@chenyqthu/tp-mobile-ui-kit/catalog.json` | Machine-readable component, token, and asset catalog |
@@ -172,11 +172,12 @@ Switch dynamically via `useTPTheme()`:
172
172
 
173
173
  ---
174
174
 
175
- ## 6. 7 Restored Omada APP Pages + V5.3 Blocks
175
+ ## 6. Restored Omada APP Pages, Liquid Glass Chrome & V5.3 Blocks
176
176
 
177
+ - **Apple Liquid Glass Floating Chrome**: Set `overlayTop` and `overlayBottom` on `TPPhoneFrame` (with `<TPStatusBar transparent />` and `<TPTabBar variant="floating-pill" />`) so page content scrolls behind and softly blurs beneath both the floating glass header controls and the bottom pill tab bar (`TPLiquidGlass` exposes the standalone specular surface).
177
178
  - **7 Restored APP Screens**: `OmadaLaunchLoadingPage`, `OmadaControllerListPage`, `OmadaSiteDashboardPage`, `OmadaSiteInsightsPage`, `OmadaSiteDevicesPage`, `OmadaSiteClientsPage`, `OmadaSiteSettingsPage`
178
179
  - **Drill-Downs & Orchestrator**: `OmadaHealthDetailPage`, `OmadaDeviceDetailPage`, `OmadaAppDemo` (all-in-one interactive prototype inside `TPPhoneFrame`)
179
- - **V5.3 Blocks & Inputs**: `OmadaDeviceListBlock`, `OmadaWirelessNetworkBlock`, `OmadaIncidentsBlock`, `OmadaStandardInput` (segmented IPv4, MAC, Port, Text)
180
+ - **7 V5.3 Blocks & Inputs**: `OmadaDeviceListBlock`, `OmadaWirelessNetworkBlock`, `OmadaIncidentsBlock`, `OmadaScheduleBlock`, `OmadaPortPanelBlock`, `OmadaTopologyBlock`, `OmadaFirmwareUpdateBlock`, `OmadaStandardInput` (segmented IPv4, MAC, Port, Text)
180
181
 
181
182
  ---
182
183