@chenyqthu/omada-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 +88 -2
- package/dist/catalog.json +13396 -0
- package/dist/index.js +22452 -0
- package/dist/standalone.js +2490 -0
- package/dist/style.css +2 -0
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/standalone.d.ts +10 -0
- package/dist/types/omada/assets/SBrandAsset.d.ts +17 -0
- package/dist/types/omada/assets/SClientIcon.d.ts +16 -0
- package/dist/types/omada/assets/SIcon.d.ts +21 -0
- package/dist/types/omada/assets/SIllustration.d.ts +22 -0
- package/dist/types/omada/assets/SProductImage.d.ts +20 -0
- package/dist/types/omada/assets/ThemedAssetImage.d.ts +26 -0
- package/dist/types/omada/assets/assetsManifest.d.ts +19 -0
- package/dist/types/omada/assets/iconsManifest.d.ts +15 -0
- package/dist/types/omada/components/SAlert.d.ts +34 -0
- package/dist/types/omada/components/SAnchor.d.ts +32 -0
- package/dist/types/omada/components/SApDistributionRuler.d.ts +32 -0
- package/dist/types/omada/components/SAvatar.d.ts +28 -0
- package/dist/types/omada/components/SBadge.d.ts +17 -0
- package/dist/types/omada/components/SBreadcrumb.d.ts +36 -0
- package/dist/types/omada/components/SButton.d.ts +11 -0
- package/dist/types/omada/components/SCard.d.ts +28 -0
- package/dist/types/omada/components/SCascader.d.ts +20 -0
- package/dist/types/omada/components/SCategoryKpiCarousel.d.ts +26 -0
- package/dist/types/omada/components/SChannelUtilization.d.ts +25 -0
- package/dist/types/omada/components/SChart.d.ts +135 -0
- package/dist/types/omada/components/SCheckbox.d.ts +41 -0
- package/dist/types/omada/components/SClientOverviewStrip.d.ts +29 -0
- package/dist/types/omada/components/SCollapse.d.ts +28 -0
- package/dist/types/omada/components/SColorPicker.d.ts +17 -0
- package/dist/types/omada/components/SDatePicker.d.ts +57 -0
- package/dist/types/omada/components/SDescriptions.d.ts +21 -0
- package/dist/types/omada/components/SDeviceHealthSummary.d.ts +34 -0
- package/dist/types/omada/components/SDevicePortGraphic.d.ts +90 -0
- package/dist/types/omada/components/SDeviceStatus.d.ts +11 -0
- package/dist/types/omada/components/SDivider.d.ts +26 -0
- package/dist/types/omada/components/SDonutSummaryCard.d.ts +60 -0
- package/dist/types/omada/components/SDrawer.d.ts +36 -0
- package/dist/types/omada/components/SDropdown.d.ts +36 -0
- package/dist/types/omada/components/SEmpty.d.ts +17 -0
- package/dist/types/omada/components/SForm.d.ts +56 -0
- package/dist/types/omada/components/SHealthGauge.d.ts +43 -0
- package/dist/types/omada/components/SHealthTrendBar.d.ts +21 -0
- package/dist/types/omada/components/SInput.d.ts +47 -0
- package/dist/types/omada/components/SIpInput.d.ts +36 -0
- package/dist/types/omada/components/SLoading.d.ts +66 -0
- package/dist/types/omada/components/SMacInput.d.ts +26 -0
- package/dist/types/omada/components/SModal.d.ts +121 -0
- package/dist/types/omada/components/SNotification.d.ts +60 -0
- package/dist/types/omada/components/SPagination.d.ts +23 -0
- package/dist/types/omada/components/SPopover.d.ts +27 -0
- package/dist/types/omada/components/SPortPanel.d.ts +28 -0
- package/dist/types/omada/components/SProgress.d.ts +32 -0
- package/dist/types/omada/components/SRadio.d.ts +40 -0
- package/dist/types/omada/components/SRate.d.ts +20 -0
- package/dist/types/omada/components/SSchedule.d.ts +55 -0
- package/dist/types/omada/components/SSelect.d.ts +25 -0
- package/dist/types/omada/components/SSettingsPageShell.d.ts +104 -0
- package/dist/types/omada/components/SSlider.d.ts +31 -0
- package/dist/types/omada/components/SSteps.d.ts +41 -0
- package/dist/types/omada/components/SSwitch.d.ts +23 -0
- package/dist/types/omada/components/STable.d.ts +81 -0
- package/dist/types/omada/components/STabs.d.ts +27 -0
- package/dist/types/omada/components/STag.d.ts +23 -0
- package/dist/types/omada/components/STerminalConsole.d.ts +57 -0
- package/dist/types/omada/components/STile.d.ts +66 -0
- package/dist/types/omada/components/STimePicker.d.ts +16 -0
- package/dist/types/omada/components/STooltip.d.ts +34 -0
- package/dist/types/omada/components/STopologyCanvas.d.ts +66 -0
- package/dist/types/omada/components/STransfer.d.ts +34 -0
- package/dist/types/omada/components/STreeSelect.d.ts +24 -0
- package/dist/types/omada/components/SUpload.d.ts +58 -0
- package/dist/types/omada/icons/OmadaLogo.d.ts +20 -0
- package/dist/types/omada/index.d.ts +38 -0
- package/dist/types/omada/layout/SAppShell.d.ts +84 -0
- package/dist/types/omada/layout/SEmulatorShell.d.ts +80 -0
- package/dist/types/omada/layout/SPageHeader.d.ts +13 -0
- package/dist/types/omada/modules/data-charts.d.ts +8 -0
- package/dist/types/omada/modules/emulator-v6.d.ts +13 -0
- package/dist/types/omada/modules/feedback-overlays.d.ts +7 -0
- package/dist/types/omada/modules/nav-shell.d.ts +6 -0
- package/dist/types/omada/modules/select-inputs.d.ts +8 -0
- package/dist/types/omada/modules/time-schedule.d.ts +5 -0
- package/dist/types/omada/theme/OmadaProvider.d.ts +22 -0
- package/dist/types/omada/theme/antdTheme.d.ts +6 -0
- package/dist/types/omada/theme/tokens.d.ts +138 -0
- package/package.json +76 -4
- package/skills/omada-ui-kit/SKILL.md +170 -0
- package/skills/omada-ui-kit/references/catalog.json +13396 -0
- package/skills/omada-ui-kit/scripts/query-catalog.mjs +202 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type UploadProps } from 'antd';
|
|
3
|
+
import { type SButtonVariant } from './SButton';
|
|
4
|
+
export type SUploadPreset = 'firmware' | 'config' | 'image';
|
|
5
|
+
export type SUploadVariant = 'button' | 'dragger';
|
|
6
|
+
export interface SUploadPresetConfig {
|
|
7
|
+
accept: string;
|
|
8
|
+
maxSizeMB: number;
|
|
9
|
+
buttonText: string;
|
|
10
|
+
draggerTitle: string;
|
|
11
|
+
draggerDescription: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const OMADA_UPLOAD_PRESETS: Record<SUploadPreset, SUploadPresetConfig>;
|
|
14
|
+
export declare function formatFileSize(bytes: number): string;
|
|
15
|
+
export interface UploadValidationResult {
|
|
16
|
+
valid: boolean;
|
|
17
|
+
reason?: 'accept' | 'size';
|
|
18
|
+
message?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Validates a candidate file against `accept` extensions/MIME patterns and `maxSizeBytes`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateUploadFile(file: Pick<File, 'name' | 'size' | 'type'>, options: {
|
|
24
|
+
accept?: string;
|
|
25
|
+
maxSizeBytes?: number;
|
|
26
|
+
}): UploadValidationResult;
|
|
27
|
+
export interface SUploadProps extends Omit<UploadProps, 'type'> {
|
|
28
|
+
/** Render as inline trigger button (`button`) or dashed dropzone (`dragger`). */
|
|
29
|
+
variant?: SUploadVariant;
|
|
30
|
+
/** Preconfigured Omada validation & copy preset (`firmware` | `config` | `image`). */
|
|
31
|
+
preset?: SUploadPreset;
|
|
32
|
+
/** Maximum file size in bytes (overrides `maxSizeMB` and preset default). */
|
|
33
|
+
maxSize?: number;
|
|
34
|
+
/** Maximum file size in megabytes (overrides preset default). */
|
|
35
|
+
maxSizeMB?: number;
|
|
36
|
+
/** Button label when `variant="button"`. */
|
|
37
|
+
buttonText?: React.ReactNode;
|
|
38
|
+
/** Omada button variant when `variant="button"`. */
|
|
39
|
+
buttonVariant?: SButtonVariant;
|
|
40
|
+
/** Primary dropzone heading when `variant="dragger"`. */
|
|
41
|
+
title?: React.ReactNode;
|
|
42
|
+
/** Secondary dropzone hint when `variant="dragger"`. */
|
|
43
|
+
description?: React.ReactNode;
|
|
44
|
+
/** Show Omada theme-aware upgrade illustration inside the dragger dropzone instead of icon badge. */
|
|
45
|
+
showIllustration?: boolean;
|
|
46
|
+
/** Optional helper link text next to button upload (e.g. `"Download Template"`). */
|
|
47
|
+
templateText?: React.ReactNode;
|
|
48
|
+
/** Click callback for `"Download Template"` helper link. */
|
|
49
|
+
onDownloadTemplate?: () => void;
|
|
50
|
+
/** Display inline error alert when a file fails accept/size validation (default `true`). */
|
|
51
|
+
showValidationAlert?: boolean;
|
|
52
|
+
/** Callback fired when accept or max size validation blocks a file. */
|
|
53
|
+
onValidationError?: (message: string, file: File) => void;
|
|
54
|
+
}
|
|
55
|
+
export declare const SUpload: React.FC<SUploadProps> & {
|
|
56
|
+
Dragger: React.FC<Omit<SUploadProps, "variant">>;
|
|
57
|
+
LIST_IGNORE: string;
|
|
58
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface OmadaLogoProps {
|
|
3
|
+
height?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Official Omada wordmark SVG exported from Figma node `25947:13603`.
|
|
8
|
+
* Uses `currentColor` so it adapts to Top Bar (`#FFFFFF`) and light/dark surfaces.
|
|
9
|
+
*/
|
|
10
|
+
export declare const OmadaLogo: React.FC<OmadaLogoProps>;
|
|
11
|
+
export type OmadaDeviceType = 'gateway' | 'switch' | 'ap' | 'olt' | 'ipc' | 'nvr' | 'client';
|
|
12
|
+
export interface SDeviceIconProps {
|
|
13
|
+
type: OmadaDeviceType;
|
|
14
|
+
size?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Semantic device type badge icon for Omada gateways, switches, APs, OLTs, cameras, NVRs, and clients.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SDeviceIcon: React.FC<SDeviceIconProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export { OmadaProvider, useOmadaTheme, type OmadaProviderProps } from './theme/OmadaProvider';
|
|
2
|
+
export { buildOmadaAntdTheme } from './theme/antdTheme';
|
|
3
|
+
export { omadaChartPalette, omadaFontFamily, omadaLayout, omadaPortColors, omadaPortLabels, omadaRadius, omadaSemanticTokens, omadaSpacing, omadaTypography, omadaZIndex, type PortSpeedKey, type ResolvedTheme, type SemanticTokenSet, type ThemeMode, } from './theme/tokens';
|
|
4
|
+
export { OmadaLogo, SDeviceIcon, type OmadaDeviceType, type OmadaLogoProps, type SDeviceIconProps, } from './icons/OmadaLogo';
|
|
5
|
+
export { SIcon, hasOmadaIcon, type SIconProps } from './assets/SIcon';
|
|
6
|
+
export { SIllustration, hasOmadaIllustration, type SIllustrationProps, } from './assets/SIllustration';
|
|
7
|
+
export { SClientIcon, type SClientIconProps } from './assets/SClientIcon';
|
|
8
|
+
export { SProductImage, hasOmadaProductImage, type SProductImageProps, } from './assets/SProductImage';
|
|
9
|
+
export { SBrandAsset, type SBrandAssetProps } from './assets/SBrandAsset';
|
|
10
|
+
export { OMADA_ICON_CATEGORIES, OMADA_ICONS, type OmadaIconMeta, type OmadaIconName, } from './assets/iconsManifest';
|
|
11
|
+
export { OMADA_BRAND_ASSETS, OMADA_CLIENTS, OMADA_ILLUSTRATIONS, OMADA_PRODUCTS, type OmadaAssetMeta, type OmadaBrandAssetName, type OmadaClientIconName, type OmadaIllustrationName, type OmadaProductName, } from './assets/assetsManifest';
|
|
12
|
+
export { SAppShell, type SAppShellEdition, type SAppShellProps, type SAppShellServiceItem, type SAppShellTopNavItem, type SAppShellVariant, type SNavGroup, type SNavItem, type SSiteOption, } from './layout/SAppShell';
|
|
13
|
+
export { SPageHeader, type SPageHeaderProps } from './layout/SPageHeader';
|
|
14
|
+
export { SButton, type SButtonProps, type SButtonVariant } from './components/SButton';
|
|
15
|
+
export { DEFAULT_PASSWORD_RULES, SInput, SNumberInput, SPasswordInput, SSearchInput, STextArea, type PasswordRuleConfig, type SInputProps, type SNumberInputProps, type SPasswordInputProps, type SSearchInputProps, type STextAreaProps, } from './components/SInput';
|
|
16
|
+
export { SIpInput, parseIpValue, validateCidr, validateIpv4, type ParsedIpValue, type SIpInputMode, type SIpInputProps, } from './components/SIpInput';
|
|
17
|
+
export { SMacInput, normalizeMac, validateMac, type MacSeparator, type SMacInputProps, } from './components/SMacInput';
|
|
18
|
+
export { SForm, SFormFooter, SFormItem, SFormSection, type SFormFooterProps, type SFormItemProps, type SFormProps, type SFormSectionProps, } from './components/SForm';
|
|
19
|
+
export { SCard, SKpiCard, type SCardProps, type SKpiCardProps, } from './components/SCard';
|
|
20
|
+
export { STabs, type STabItem, type STabsProps, type STabsVariant, } from './components/STabs';
|
|
21
|
+
export { SCustomTag, STag, type SCustomTagProps, type STagColor, type STagProps, } from './components/STag';
|
|
22
|
+
export { SDeviceStatus, type DeviceStatusType, type SDeviceStatusProps, } from './components/SDeviceStatus';
|
|
23
|
+
export { STable, type STableProps, type STableToolbarProps, } from './components/STable';
|
|
24
|
+
export { SModal, useOmadaConfirm, type OmadaConfirmOptions, type SModalProps, type SModalSize, } from './components/SModal';
|
|
25
|
+
export { SDrawer, type SDrawerProps, type SDrawerSize, } from './components/SDrawer';
|
|
26
|
+
export { SAlert, useOmadaFeedback, type SAlertProps, type SAlertType, } from './components/SAlert';
|
|
27
|
+
export { SPortPanel, type PortBadgeType, type SPortItem, type SPortPanelProps, } from './components/SPortPanel';
|
|
28
|
+
export { SChart, type SChartProps } from './components/SChart';
|
|
29
|
+
export { SEmpty, type SEmptyProps } from './components/SEmpty';
|
|
30
|
+
export * from './modules/nav-shell';
|
|
31
|
+
export * from './modules/select-inputs';
|
|
32
|
+
export * from './modules/time-schedule';
|
|
33
|
+
export * from './modules/data-charts';
|
|
34
|
+
export * from './modules/feedback-overlays';
|
|
35
|
+
export * from './modules/emulator-v6';
|
|
36
|
+
export { Avatar, Badge, Breadcrumb, Cascader, Checkbox, Col, Collapse, DatePicker, Descriptions, Divider, Dropdown, Pagination, Popover, Progress, Radio, Row, Select, Slider, Space, Spin, Steps, Switch, TimePicker, Tooltip, Transfer, TreeSelect, Upload, } from 'antd';
|
|
37
|
+
export type { ColumnsType, TableProps } from 'antd/es/table';
|
|
38
|
+
export type { MenuProps } from 'antd';
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SAppShellEdition = 'standard' | 'pro' | 'msp';
|
|
3
|
+
export type SAppShellVariant = 'controller' | 'central' | 'portal' | 'account';
|
|
4
|
+
export interface SNavItem {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
badge?: string | number;
|
|
9
|
+
/** Optional nested submenu items rendered as an indented collapsible Level-2 list. */
|
|
10
|
+
children?: SNavItem[];
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SNavGroup {
|
|
14
|
+
key: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
items: SNavItem[];
|
|
17
|
+
}
|
|
18
|
+
export interface SSiteOption {
|
|
19
|
+
key: string;
|
|
20
|
+
label: string;
|
|
21
|
+
subtitle?: string;
|
|
22
|
+
/** Optional status/tier tag displayed alongside the site or organization label (e.g. `Cluster`, `MSP`). */
|
|
23
|
+
tag?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface SAppShellTopNavItem {
|
|
26
|
+
key: string;
|
|
27
|
+
label: string;
|
|
28
|
+
icon?: React.ReactNode;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface SAppShellServiceItem {
|
|
32
|
+
key: string;
|
|
33
|
+
label: string;
|
|
34
|
+
icon?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export interface SAppShellProps {
|
|
37
|
+
navGroups: SNavGroup[];
|
|
38
|
+
activeKey: string;
|
|
39
|
+
onSelect: (key: string) => void;
|
|
40
|
+
sites?: SSiteOption[];
|
|
41
|
+
activeSite?: string;
|
|
42
|
+
onSiteChange?: (siteKey: string) => void;
|
|
43
|
+
userName?: string;
|
|
44
|
+
userEmail?: string;
|
|
45
|
+
notificationCount?: number;
|
|
46
|
+
onNotificationClick?: () => void;
|
|
47
|
+
onSearchClick?: () => void;
|
|
48
|
+
onSignOut?: () => void;
|
|
49
|
+
topBarExtra?: React.ReactNode;
|
|
50
|
+
/** Top Bar branding & tier presentation (`standard`, `pro` using `<SBrandAsset name="omada-pro" />`, or `msp`). */
|
|
51
|
+
edition?: SAppShellEdition;
|
|
52
|
+
/** Shell presentation variant (`controller`, `central`, `portal`, or `account`). */
|
|
53
|
+
shellVariant?: SAppShellVariant;
|
|
54
|
+
/** Context title shown next to the logo when `shellVariant="account"`. */
|
|
55
|
+
accountTitle?: React.ReactNode;
|
|
56
|
+
/** Horizontal top-bar navigation tabs used when `shellVariant="portal"`. */
|
|
57
|
+
topNavItems?: SAppShellTopNavItem[];
|
|
58
|
+
activeTopNavKey?: string;
|
|
59
|
+
onTopNavSelect?: (key: string) => void;
|
|
60
|
+
/** Service switcher tabs used when `shellVariant="central"`. */
|
|
61
|
+
serviceTabs?: SAppShellServiceItem[];
|
|
62
|
+
activeServiceKey?: string;
|
|
63
|
+
onServiceChange?: (key: string) => void;
|
|
64
|
+
/** Optional organization tags displayed in the Top Bar (e.g. `['Cluster', 'MSP']`). */
|
|
65
|
+
orgTags?: string[];
|
|
66
|
+
/** Controlled sidebar collapsed state. */
|
|
67
|
+
collapsed?: boolean;
|
|
68
|
+
defaultCollapsed?: boolean;
|
|
69
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
70
|
+
/** Whether to display the left sidebar (defaults to `true`). */
|
|
71
|
+
showSidebar?: boolean;
|
|
72
|
+
/** Bounded container mode (`h-[520px]`) for embedded previews and showcase demos. */
|
|
73
|
+
embedded?: boolean;
|
|
74
|
+
className?: string;
|
|
75
|
+
children: React.ReactNode;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Omada Controller v6.3 layout shell:
|
|
79
|
+
* - `56px` gradient Top Bar supporting `standard` / `pro` (`<SBrandAsset name="omada-pro" />`) / `msp` editions
|
|
80
|
+
* and `controller` / `central` / `portal` / `account` shell variants
|
|
81
|
+
* - `216px` / `52px` collapsible left Sidebar with nested collapsible `children` submenus
|
|
82
|
+
* - Light / Dark / System theme switcher & scrollable content viewport
|
|
83
|
+
*/
|
|
84
|
+
export declare const SAppShell: React.FC<SAppShellProps>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { OmadaIconName } from '../assets/iconsManifest';
|
|
3
|
+
import type { SNavGroup, SNavItem, SSiteOption } from './SAppShell';
|
|
4
|
+
export interface SEmulatorSubmenuItem {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
iconName?: OmadaIconName;
|
|
8
|
+
activeIconName?: OmadaIconName;
|
|
9
|
+
}
|
|
10
|
+
export interface SEmulatorSubmenuGroup {
|
|
11
|
+
key: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
items: SEmulatorSubmenuItem[];
|
|
14
|
+
}
|
|
15
|
+
export interface SEmulatorNavItem extends SNavItem {
|
|
16
|
+
/** Default sidebar icon slug from `iconsManifest.ts`. */
|
|
17
|
+
iconName?: OmadaIconName;
|
|
18
|
+
/** Active sidebar icon slug from `iconsManifest.ts`. */
|
|
19
|
+
activeIconName?: OmadaIconName;
|
|
20
|
+
/** Whether the item renders a trailing `>` submenu indicator. */
|
|
21
|
+
hasSubmenu?: boolean;
|
|
22
|
+
/** Grouped flyout submenu items rendered in a right-aligned Popover. */
|
|
23
|
+
submenuGroups?: SEmulatorSubmenuGroup[];
|
|
24
|
+
}
|
|
25
|
+
export interface SEmulatorNavGroup extends Omit<SNavGroup, 'items'> {
|
|
26
|
+
items: SEmulatorNavItem[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Exact Omada Controller v6.3.0.34 sidebar hierarchy:
|
|
30
|
+
* 5 Title-Case sections and 13 navigation items.
|
|
31
|
+
*/
|
|
32
|
+
export declare const EMULATOR_NAV_GROUPS: SEmulatorNavGroup[];
|
|
33
|
+
export interface SEmulatorShellProps {
|
|
34
|
+
/** Active navigation item key (e.g. `'dashboard'`, `'devices'`). */
|
|
35
|
+
activeKey: string;
|
|
36
|
+
/** Invoked when a sidebar navigation item is selected. */
|
|
37
|
+
onSelect: (key: string) => void;
|
|
38
|
+
/** Optional navigation groups override; defaults to `EMULATOR_NAV_GROUPS`. */
|
|
39
|
+
navGroups?: SEmulatorNavGroup[];
|
|
40
|
+
/** Controller / organization name displayed on the left of the Top Bar. */
|
|
41
|
+
controllerName?: string;
|
|
42
|
+
/** Available site options shown in the sidebar site pill dropdown. */
|
|
43
|
+
sites?: SSiteOption[];
|
|
44
|
+
/** Controlled active site key or label. */
|
|
45
|
+
activeSite?: string;
|
|
46
|
+
/** Invoked when a site is picked from the site pill dropdown. */
|
|
47
|
+
onSiteChange?: (siteKey: string) => void;
|
|
48
|
+
/** Accessible user display name for the top-right avatar badge. */
|
|
49
|
+
userName?: string;
|
|
50
|
+
/** Invoked when the top-right Search icon button is clicked. */
|
|
51
|
+
onSearchClick?: () => void;
|
|
52
|
+
/** Invoked when the top-right Refresh icon button is clicked. */
|
|
53
|
+
onRefresh?: () => void;
|
|
54
|
+
/** Invoked when `Component Library` is chosen from the `More` menu. */
|
|
55
|
+
onOpenShowcase?: () => void;
|
|
56
|
+
/** Invoked when an item in the `More` dropdown menu is clicked. */
|
|
57
|
+
onMoreSelect?: (key: string) => void;
|
|
58
|
+
/** Invoked when the right-edge `<||` floating quick-drawer handle is clicked. */
|
|
59
|
+
onToggleQuickDrawer?: () => void;
|
|
60
|
+
/** Whether to show the right-edge floating quick-drawer handle (default `true`). */
|
|
61
|
+
showQuickDrawerHandle?: boolean;
|
|
62
|
+
/** Controlled sidebar collapsed state. */
|
|
63
|
+
collapsed?: boolean;
|
|
64
|
+
/** Initial uncontrolled sidebar collapsed state. */
|
|
65
|
+
defaultCollapsed?: boolean;
|
|
66
|
+
/** Invoked when the sidebar collapse button toggles state. */
|
|
67
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
68
|
+
/** Bounded container mode for embedded showcase previews. */
|
|
69
|
+
embedded?: boolean;
|
|
70
|
+
className?: string;
|
|
71
|
+
children: React.ReactNode;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Omada Controller v6.3.0.34 authentic emulator layout shell:
|
|
75
|
+
* - Scoped `.omada-emulator-root` Light/Dark surface & color palette
|
|
76
|
+
* - `56px` Top Bar with left controller context, centered Omada wordmark, and right utility controls
|
|
77
|
+
* - `216px` / `52px` borderless collapsible sidebar with site pill selector and 5 Title-Case sections
|
|
78
|
+
* - Right-edge floating `<||` quick-drawer handle
|
|
79
|
+
*/
|
|
80
|
+
export declare const SEmulatorShell: React.FC<SEmulatorShellProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SPageHeaderProps {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
onBack?: () => void;
|
|
6
|
+
tabs?: React.ReactNode;
|
|
7
|
+
extra?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Standard Omada page header supporting optional back navigation, description, tabs, and right-aligned actions.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SPageHeader: React.FC<SPageHeaderProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { SEditableCell, type SEditableCellOption, type SEditableCellProps, type STableColumnSettingItem, type STableDensity, } from '../components/STable';
|
|
2
|
+
export { SBarChart, SDonutChart, SLineChart, SSparkChart, type SBarChartProps, type SBarChartSeries, type SDonutChartDatum, type SDonutChartProps, type SLineChartProps, type SLineChartSeries, type SSparkChartProps, } from '../components/SChart';
|
|
3
|
+
export { SDescriptions, type SDescriptionItem, type SDescriptionsProps, type SDescriptionsVariant, } from '../components/SDescriptions';
|
|
4
|
+
export { SCollapse, type SCollapseItem, type SCollapseProps, type SCollapseVariant, } from '../components/SCollapse';
|
|
5
|
+
export { STile, STileGroup, type STileGroupBaseProps, type STileGroupMultiProps, type STileGroupProps, type STileGroupSingleProps, type STileLayout, type STileOption, type STileProps, type STileSelectionMode, } from '../components/STile';
|
|
6
|
+
export { SAvatar, SAvatarGroup, type SAvatarGroupProps, type SAvatarProps, type SAvatarSize, type SAvatarStatus, } from '../components/SAvatar';
|
|
7
|
+
export { SBadge, type SBadgeProps, type SBadgeStatus, type SBadgeTone, } from '../components/SBadge';
|
|
8
|
+
export { SRate, type SRateProps, type SRateSize, } from '../components/SRate';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { EMULATOR_NAV_GROUPS, SEmulatorShell, type SEmulatorNavGroup, type SEmulatorNavItem, type SEmulatorShellProps, type SEmulatorSubmenuGroup, type SEmulatorSubmenuItem, } from '../layout/SEmulatorShell';
|
|
2
|
+
export { DEFAULT_CLIENT_OVERVIEW_ITEMS, SClientOverviewStrip, type ClientOverviewItem, type SClientOverviewStripProps, } from '../components/SClientOverviewStrip';
|
|
3
|
+
export { DEFAULT_TOPOLOGY_DISPLAY_OPTIONS, DEFAULT_TOPOLOGY_TREE, STopologyCanvas, type STopologyCanvasProps, type TopologyDisplayOptions, type TopologyHealthFilter, type TopologyLayoutMode, type TopologyNodeData, } from '../components/STopologyCanvas';
|
|
4
|
+
export { SDonutSummaryCard, type SDonutSummaryCardProps, type SDonutSummaryItem, } from '../components/SDonutSummaryCard';
|
|
5
|
+
export { DEFAULT_INCIDENT_CATEGORY_ITEMS, SCategoryKpiCarousel, type CategoryKpiItem, type SCategoryKpiCarouselProps, } from '../components/SCategoryKpiCarousel';
|
|
6
|
+
export { SHealthGauge, SHealthRadar, type SHealthGaugeProps, type SHealthRadarProps, } from '../components/SHealthGauge';
|
|
7
|
+
export { SHealthTrendBar, type SHealthTickStatus, type SHealthTrendBarProps, type SHealthTrendRow, } from '../components/SHealthTrendBar';
|
|
8
|
+
export { SApDistributionRuler, type SApDistributionCluster, type SApDistributionRulerProps, } from '../components/SApDistributionRuler';
|
|
9
|
+
export { SChannelUtilization, type SChannelBand, type SChannelItem, type SChannelUtilizationLevel, type SChannelUtilizationProps, } from '../components/SChannelUtilization';
|
|
10
|
+
export { DEFAULT_DEVICE_HEALTH_SUMMARY_ITEMS, SDeviceHealthSummary, type DeviceHealthCounts, type DeviceHealthSummaryItem, type SDeviceHealthSummaryProps, } from '../components/SDeviceHealthSummary';
|
|
11
|
+
export { LagGlyph, PortBadgeTile, PortStatusLegend, SDevicePortGraphic, SfpGlyph, resolveConnectedProductSlug, type DrawerPortItem, type PortBadgeTileProps, type SDevicePortGraphicProps, } from '../components/SDevicePortGraphic';
|
|
12
|
+
export { SSettingsInfoBanner, SSettingsPageShell, SSettingsRow, SSettingsSection, type SSettingsInfoBannerProps, type SSettingsPageShellProps, type SSettingsRowProps, type SSettingsSectionProps, type SSettingsTabItem, } from '../components/SSettingsPageShell';
|
|
13
|
+
export { STerminalConsole, type STerminalConsoleProps, type STerminalSessionItem, } from '../components/STerminalConsole';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { SInfoDialog, SStepModal, type SInfoDialogProps, type SInfoDialogStatus, type SStepModalProps, type SStepModalStep, } from '../components/SModal';
|
|
2
|
+
export { SDrawerFooter, type SDrawerFooterProps, } from '../components/SDrawer';
|
|
3
|
+
export { SNotification, useOmadaNotification, type OmadaNotificationApi, type OmadaNotificationOptions, type SNotificationProps, type SNotificationType, } from '../components/SNotification';
|
|
4
|
+
export { SPopconfirm, SPopover, type SPopconfirmProps, type SPopoverProps, } from '../components/SPopover';
|
|
5
|
+
export { STooltip, STruncatedText, type STooltipProps, type STruncatedTextProps, } from '../components/STooltip';
|
|
6
|
+
export { SProgress, type SProgressProps, type SProgressStatus, type SProgressVariant, } from '../components/SProgress';
|
|
7
|
+
export { SLoading, SMask, SSkeleton, type SLoadingProps, type SLoadingSize, type SLoadingTone, type SMaskProps, type SSkeletonPreset, type SSkeletonProps, } from '../components/SLoading';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { SDropdown, type SDropdownItem, type SDropdownPlacement, type SDropdownProps, type SDropdownWidthPreset, } from '../components/SDropdown';
|
|
2
|
+
export { SPagination, type SPaginationProps, type SPaginationSize, type SPaginationVariant, } from '../components/SPagination';
|
|
3
|
+
export { SSteps, type SStepItem, type SStepsOrientation, type SStepsProps, type SStepsSize, type SStepsType, } from '../components/SSteps';
|
|
4
|
+
export { SBreadcrumb, type SBreadcrumbItem, type SBreadcrumbProps, } from '../components/SBreadcrumb';
|
|
5
|
+
export { SAnchor, type SAnchorDirection, type SAnchorItem, type SAnchorProps, } from '../components/SAnchor';
|
|
6
|
+
export { SDivider, type SDividerOrientation, type SDividerProps, type SDividerSize, type SDividerTitlePlacement, type SDividerVariant, } from '../components/SDivider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { SSelect, type SSelectOption, type SSelectProps, } from '../components/SSelect';
|
|
2
|
+
export { SCascader, type SCascaderOption, type SCascaderProps, } from '../components/SCascader';
|
|
3
|
+
export { STreeSelect, type STreeSelectNode, type STreeSelectProps, } from '../components/STreeSelect';
|
|
4
|
+
export { SCheckbox, SCheckboxGroup, type SCheckboxGroupProps, type SCheckboxGroupVariant, type SCheckboxOption, type SCheckboxProps, } from '../components/SCheckbox';
|
|
5
|
+
export { SRadio, SRadioGroup, type SRadioGroupProps, type SRadioGroupVariant, type SRadioOption, type SRadioProps, } from '../components/SRadio';
|
|
6
|
+
export { SSwitch, type SSwitchProps, } from '../components/SSwitch';
|
|
7
|
+
export { SSlider, type SSliderExtraProps, type SSliderHandleVariant, type SSliderPreset, type SSliderProps, type SSliderStepPreset, } from '../components/SSlider';
|
|
8
|
+
export { SColorPicker, type SColorPickerPreset, type SColorPickerProps, } from '../components/SColorPicker';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SDatePicker, SRangePicker, createPickerDate, formatOmadaDateRange, toNativeDate, type OmadaPickerDate, type SCapsulePreset, type SDatePickerProps, type SRangePickerProps, type SRangeQuickPreset, } from '../components/SDatePicker';
|
|
2
|
+
export { STimePicker, STimeRangePicker, type STimePickerProps, type STimeRangePickerProps, } from '../components/STimePicker';
|
|
3
|
+
export { STransfer, type STransferItem, type STransferProps, } from '../components/STransfer';
|
|
4
|
+
export { OMADA_UPLOAD_PRESETS, SUpload, formatFileSize, validateUploadFile, type SUploadPreset, type SUploadPresetConfig, type SUploadProps, type SUploadVariant, type UploadValidationResult, } from '../components/SUpload';
|
|
5
|
+
export { DEFAULT_SCHEDULE_PRESETS, SSchedule, createEmptySchedule, createSchedulePreset, formatScheduleSummary, formatSlotRange, normalizeScheduleValue, type SScheduleDayKey, type SScheduleMatrix, type SSchedulePreset, type SSchedulePresetKey, type SScheduleProps, } from '../components/SSchedule';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ResolvedTheme, type SemanticTokenSet, type ThemeMode } from './tokens';
|
|
3
|
+
interface OmadaThemeContextValue {
|
|
4
|
+
themeMode: ThemeMode;
|
|
5
|
+
resolvedTheme: ResolvedTheme;
|
|
6
|
+
tokens: SemanticTokenSet;
|
|
7
|
+
setThemeMode: (mode: ThemeMode) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface OmadaProviderProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
defaultThemeMode?: ThemeMode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Root theme & styling provider for Omada UI Kit.
|
|
15
|
+
* Syncs Light / Dark / System mode to `<html data-theme>` + `.dark` and wraps AntD 5 `<StyleProvider layer>`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const OmadaProvider: React.FC<OmadaProviderProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Access current Omada theme mode (`light` | `dark` | `system`), resolved theme, and semantic tokens.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useOmadaTheme(): OmadaThemeContextValue;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Omada Design System Tokens
|
|
3
|
+
*
|
|
4
|
+
* Reconciled from:
|
|
5
|
+
* - Figma TP Web Component Library (`原内容`, `Color Palette UI色板`, `🌟Shadow 投影`, `Local Text Styles`, `✍️✅设备端口`)
|
|
6
|
+
* - Live Omada Controller v6.3.0.34 Emulator CSS variables (`--s-color-*`)
|
|
7
|
+
*/
|
|
8
|
+
export type ResolvedTheme = 'light' | 'dark';
|
|
9
|
+
export type ThemeMode = 'light' | 'dark' | 'system';
|
|
10
|
+
export declare const omadaFontFamily: {
|
|
11
|
+
readonly sans: "'Manrope', Arial, Geneva, Verdana, sans-serif";
|
|
12
|
+
readonly mono: "'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace";
|
|
13
|
+
};
|
|
14
|
+
export declare const omadaTypography: {
|
|
15
|
+
readonly title1: {
|
|
16
|
+
readonly size: 22;
|
|
17
|
+
readonly lineHeight: 32;
|
|
18
|
+
readonly weight: 600;
|
|
19
|
+
};
|
|
20
|
+
readonly title2: {
|
|
21
|
+
readonly size: 20;
|
|
22
|
+
readonly lineHeight: 28;
|
|
23
|
+
readonly weight: 600;
|
|
24
|
+
};
|
|
25
|
+
readonly title3: {
|
|
26
|
+
readonly size: 18;
|
|
27
|
+
readonly lineHeight: 28;
|
|
28
|
+
readonly weight: 600;
|
|
29
|
+
};
|
|
30
|
+
readonly body1: {
|
|
31
|
+
readonly size: 16;
|
|
32
|
+
readonly lineHeight: 24;
|
|
33
|
+
readonly weight: 400;
|
|
34
|
+
};
|
|
35
|
+
readonly body2: {
|
|
36
|
+
readonly size: 14;
|
|
37
|
+
readonly lineHeight: 20;
|
|
38
|
+
readonly weight: 400;
|
|
39
|
+
};
|
|
40
|
+
readonly caption: {
|
|
41
|
+
readonly size: 12;
|
|
42
|
+
readonly lineHeight: 16;
|
|
43
|
+
readonly weight: 400;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const omadaSpacing: readonly [0, 4, 8, 12, 16, 20, 24, 32, 40];
|
|
47
|
+
export declare const omadaRadius: {
|
|
48
|
+
readonly none: 0;
|
|
49
|
+
readonly xs: 2;
|
|
50
|
+
readonly sm: 4;
|
|
51
|
+
readonly md: 6;
|
|
52
|
+
readonly lg: 8;
|
|
53
|
+
readonly xl: 10;
|
|
54
|
+
readonly pill: 9999;
|
|
55
|
+
};
|
|
56
|
+
export declare const omadaLayout: {
|
|
57
|
+
readonly topBarHeight: 56;
|
|
58
|
+
readonly sidebarWidth: 216;
|
|
59
|
+
readonly sidebarCollapsedWidth: 52;
|
|
60
|
+
readonly controlSm: 24;
|
|
61
|
+
readonly controlMd: 32;
|
|
62
|
+
readonly controlLg: 40;
|
|
63
|
+
readonly formLabelWidth: 200;
|
|
64
|
+
readonly formFieldWidth: 350;
|
|
65
|
+
readonly searchWidth: 260;
|
|
66
|
+
};
|
|
67
|
+
export declare const omadaZIndex: {
|
|
68
|
+
readonly base: 0;
|
|
69
|
+
readonly sticky: 100;
|
|
70
|
+
readonly dropdown: 1050;
|
|
71
|
+
readonly modal: 1100;
|
|
72
|
+
readonly drawer: 1100;
|
|
73
|
+
readonly popover: 1150;
|
|
74
|
+
readonly toast: 1200;
|
|
75
|
+
readonly tooltip: 1300;
|
|
76
|
+
};
|
|
77
|
+
export interface SemanticTokenSet {
|
|
78
|
+
brand: string;
|
|
79
|
+
brandHover: string;
|
|
80
|
+
brandActive: string;
|
|
81
|
+
brandText: string;
|
|
82
|
+
brandBgSubtle: string;
|
|
83
|
+
brandBgSubtlest: string;
|
|
84
|
+
topBarBg: string;
|
|
85
|
+
topBarText: string;
|
|
86
|
+
link: string;
|
|
87
|
+
linkHover: string;
|
|
88
|
+
success: string;
|
|
89
|
+
successBg: string;
|
|
90
|
+
error: string;
|
|
91
|
+
errorHover: string;
|
|
92
|
+
errorBg: string;
|
|
93
|
+
warning: string;
|
|
94
|
+
warningBg: string;
|
|
95
|
+
warningMinor: string;
|
|
96
|
+
warningMinorBg: string;
|
|
97
|
+
info: string;
|
|
98
|
+
infoBg: string;
|
|
99
|
+
magenta: string;
|
|
100
|
+
magentaBg: string;
|
|
101
|
+
purple: string;
|
|
102
|
+
purpleBg: string;
|
|
103
|
+
textPrimary: string;
|
|
104
|
+
textSecondary: string;
|
|
105
|
+
textTertiary: string;
|
|
106
|
+
textDisabled: string;
|
|
107
|
+
textInverse: string;
|
|
108
|
+
bgPage: string;
|
|
109
|
+
bgSurface: string;
|
|
110
|
+
bgSidebar: string;
|
|
111
|
+
bgSidebarActive: string;
|
|
112
|
+
bgField: string;
|
|
113
|
+
bgFieldHover: string;
|
|
114
|
+
bgSecondaryBtn: string;
|
|
115
|
+
bgSecondaryBtnHover: string;
|
|
116
|
+
bgTableHeader: string;
|
|
117
|
+
bgTableRowHover: string;
|
|
118
|
+
bgOverlay: string;
|
|
119
|
+
bgPopover: string;
|
|
120
|
+
bgTooltip: string;
|
|
121
|
+
bgSwitchOff: string;
|
|
122
|
+
bgSwitchOffHover: string;
|
|
123
|
+
bgMask: string;
|
|
124
|
+
borderDivider: string;
|
|
125
|
+
borderStrong: string;
|
|
126
|
+
borderOutlineBtn: string;
|
|
127
|
+
borderField: string;
|
|
128
|
+
borderFocus: string;
|
|
129
|
+
shadowTooltip: string;
|
|
130
|
+
shadowDropdown: string;
|
|
131
|
+
shadowPopover: string;
|
|
132
|
+
shadowDrawer: string;
|
|
133
|
+
}
|
|
134
|
+
export declare const omadaSemanticTokens: Record<ResolvedTheme, SemanticTokenSet>;
|
|
135
|
+
export type PortSpeedKey = 'disconnected' | 'disabled' | 'connected' | '100m' | '1g' | '2.5g' | '5g' | '10g' | '25g' | '40g' | '100g';
|
|
136
|
+
export declare const omadaPortLabels: Record<PortSpeedKey, string>;
|
|
137
|
+
export declare const omadaPortColors: Record<ResolvedTheme, Record<PortSpeedKey, string>>;
|
|
138
|
+
export declare const omadaChartPalette: Record<ResolvedTheme, readonly string[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chenyqthu/omada-ui-kit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Omada Controller v6.3 React UI component library (Ant Design 6 + Design Tokens + Figma Assets + Single-file HTML standalone bundle)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/ChenyqThu/omada-ui-kit.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/ChenyqThu/omada-ui-kit#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/ChenyqThu/omada-ui-kit/issues"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"sideEffects": ["**/*.css"],
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"module": "./dist/index.js",
|
|
18
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./style.css": "./dist/style.css",
|
|
25
|
+
"./standalone": "./dist/standalone.js",
|
|
26
|
+
"./catalog.json": "./dist/catalog.json"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"skills/omada-ui-kit",
|
|
31
|
+
"README.md"
|
|
32
|
+
],
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"dev": "vite",
|
|
38
|
+
"build": "pnpm build:lib",
|
|
39
|
+
"build:app": "vite build --outDir dist-app",
|
|
40
|
+
"build:esm": "vite build -c vite.lib.config.ts",
|
|
41
|
+
"build:standalone": "vite build -c vite.standalone.config.ts",
|
|
42
|
+
"build:types": "tsc -p tsconfig.lib.json",
|
|
43
|
+
"build:catalog": "node scripts/generate-catalog.mjs",
|
|
44
|
+
"build:lib": "pnpm build:esm && pnpm build:standalone && pnpm build:types && pnpm build:catalog",
|
|
45
|
+
"prepublishOnly": "pnpm build:lib",
|
|
46
|
+
"preview": "vite preview",
|
|
47
|
+
"typecheck": "tsc --noEmit -p tsconfig.app.json && tsc --noEmit -p tsconfig.node.json",
|
|
48
|
+
"test": "vitest run"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": ">=18.2.0 || >=19.0.0",
|
|
52
|
+
"react-dom": ">=18.2.0 || >=19.0.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@ant-design/cssinjs": "^2.1.2",
|
|
56
|
+
"@ant-design/icons": "^6.3.4",
|
|
57
|
+
"@fontsource/manrope": "^5.2.5",
|
|
58
|
+
"antd": "^6.7.1",
|
|
59
|
+
"echarts": "^5.6.0",
|
|
60
|
+
"lucide-react": "^1.77.0"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
64
|
+
"@testing-library/jest-dom": "^8.0.0",
|
|
65
|
+
"@testing-library/react": "^16.3.3",
|
|
66
|
+
"@types/node": "^22.0.0",
|
|
67
|
+
"@types/react": "^19.3.0",
|
|
68
|
+
"@types/react-dom": "^19.3.0",
|
|
69
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
70
|
+
"jsdom": "^26.1.0",
|
|
71
|
+
"react": "^19.3.1",
|
|
72
|
+
"react-dom": "^19.3.1",
|
|
73
|
+
"tailwindcss": "^4.3.5",
|
|
74
|
+
"typescript": "^5.8.3",
|
|
75
|
+
"vite": "^8.3.0",
|
|
76
|
+
"vitest": "^5.1.1"
|
|
77
|
+
}
|
|
78
|
+
}
|