@chenyqthu/omada-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.
- package/README.md +88 -2
- package/dist/catalog.json +13560 -0
- package/dist/index.js +22706 -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/SAclRuleBuilder.d.ts +53 -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/SExpandableSection.d.ts +20 -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 +15 -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 +13560 -0
- package/skills/omada-ui-kit/scripts/query-catalog.mjs +202 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SExpandableSectionProps {
|
|
3
|
+
/** Section heading displayed next to the `[+]` / `[-]` toggle square. */
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
/** Controlled expanded state. */
|
|
6
|
+
expanded?: boolean;
|
|
7
|
+
/** Initial uncontrolled expanded state (default `false`). */
|
|
8
|
+
defaultExpanded?: boolean;
|
|
9
|
+
/** Invoked when the section toggle is clicked. */
|
|
10
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
11
|
+
/** Optional trailing content rendered on the same row as the toggle header. */
|
|
12
|
+
extra?: React.ReactNode;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Omada Controller v6.3 square `[+]` / `[-]` expandable settings section
|
|
18
|
+
* (used for `Advanced Settings`, `ACL Binding`, and progressive disclosure blocks).
|
|
19
|
+
*/
|
|
20
|
+
export declare const SExpandableSection: React.FC<SExpandableSectionProps>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FormItemProps, type FormProps } from 'antd';
|
|
3
|
+
export interface SFormProps<Values = Record<string, unknown>> extends Omit<FormProps<Values>, 'children'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Omada-configured AntD Form.
|
|
8
|
+
* Defaults to horizontal layout with 200px left-aligned labels and no trailing colon.
|
|
9
|
+
*/
|
|
10
|
+
export declare function SForm<Values = Record<string, unknown>>({ layout, colon, labelAlign, labelCol, wrapperCol, className, children, ...rest }: SFormProps<Values>): React.JSX.Element;
|
|
11
|
+
export declare namespace SForm {
|
|
12
|
+
var useForm: typeof import("antd/es/form/Form").useForm;
|
|
13
|
+
var useWatch: typeof import("antd/es/form/Form").useWatch;
|
|
14
|
+
var List: React.FC<import("antd/es/form").FormListProps>;
|
|
15
|
+
}
|
|
16
|
+
export interface SFormItemProps extends Pick<FormItemProps, 'name' | 'rules' | 'valuePropName' | 'initialValue' | 'dependencies' | 'validateTrigger' | 'required' | 'className' | 'style' | 'children'> {
|
|
17
|
+
label?: React.ReactNode;
|
|
18
|
+
tooltip?: React.ReactNode;
|
|
19
|
+
optional?: boolean;
|
|
20
|
+
fieldWidth?: number | 'full';
|
|
21
|
+
hint?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Omada form row item supporting label info tooltips, 350px default field cap,
|
|
25
|
+
* inline `(Optional)` label, and helper hints.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SFormItem: React.FC<SFormItemProps>;
|
|
28
|
+
export interface SFormSectionProps {
|
|
29
|
+
title: React.ReactNode;
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
collapsible?: boolean;
|
|
32
|
+
defaultOpen?: boolean;
|
|
33
|
+
extra?: React.ReactNode;
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Collapsible form section header + divider matching Omada configuration panels.
|
|
39
|
+
*/
|
|
40
|
+
export declare const SFormSection: React.FC<SFormSectionProps>;
|
|
41
|
+
export interface SFormFooterProps {
|
|
42
|
+
onCancel?: () => void;
|
|
43
|
+
onApply?: () => void;
|
|
44
|
+
cancelText?: string;
|
|
45
|
+
applyText?: string;
|
|
46
|
+
loading?: boolean;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
align?: 'left' | 'right';
|
|
49
|
+
sticky?: boolean;
|
|
50
|
+
extra?: React.ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 56px Omada form action bar with top divider and Apply/Cancel buttons.
|
|
55
|
+
*/
|
|
56
|
+
export declare const SFormFooter: React.FC<SFormFooterProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SHealthGaugeProps {
|
|
3
|
+
/** Current site/device health score from `0` to `maxScore`. */
|
|
4
|
+
score?: number;
|
|
5
|
+
/** Maximum gauge score (defaults to `100`). */
|
|
6
|
+
maxScore?: number;
|
|
7
|
+
/** Subtitle beneath the large numeric score. */
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
/** Optional tooltip text displayed on the info icon next to `label`. */
|
|
10
|
+
tooltip?: React.ReactNode;
|
|
11
|
+
/** Width of the gauge SVG in pixels (defaults to `248`). */
|
|
12
|
+
width?: number;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 180-degree Omada Network Health semi-circle gauge featuring outer `0..100` ticks,
|
|
18
|
+
* rounded emerald progress arc, centered large numeric readout, and info tooltip.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SHealthGauge: React.FC<SHealthGaugeProps>;
|
|
21
|
+
export interface SHealthRadarProps {
|
|
22
|
+
/** Wi-Fi dimension health score (`0..maxValue`). */
|
|
23
|
+
wifi?: number;
|
|
24
|
+
/** Client dimension health score (`0..maxValue`). */
|
|
25
|
+
client?: number;
|
|
26
|
+
/** WAN dimension health score (`0..maxValue`). */
|
|
27
|
+
wan?: number;
|
|
28
|
+
/** Device dimension health score (`0..maxValue`). */
|
|
29
|
+
device?: number;
|
|
30
|
+
/** Maximum dimension scale (defaults to `100`). */
|
|
31
|
+
maxValue?: number;
|
|
32
|
+
/** Optional tooltip shown on the WAN `(i)` icon. */
|
|
33
|
+
wanTooltip?: React.ReactNode;
|
|
34
|
+
/** SVG width/height square box in pixels (defaults to `252` wide × `180` tall). */
|
|
35
|
+
width?: number;
|
|
36
|
+
className?: string;
|
|
37
|
+
style?: React.CSSProperties;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 4-axis concentric circular radar visualization (`Wi-Fi`, `Client`, `WAN`, `Device`)
|
|
41
|
+
* with translucent emerald polygon fill and vertex markers.
|
|
42
|
+
*/
|
|
43
|
+
export declare const SHealthRadar: React.FC<SHealthRadarProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SHealthTickStatus = 'good' | 'fair' | 'poor' | 'none';
|
|
3
|
+
export interface SHealthTrendRow {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
/** ~96 vertical status ticks ordered oldest -> newest. */
|
|
7
|
+
ticks: SHealthTickStatus[];
|
|
8
|
+
}
|
|
9
|
+
export interface SHealthTrendBarProps {
|
|
10
|
+
/** Dimension rows (`Device`, `Client`, `Wi-Fi`, `WAN`). */
|
|
11
|
+
rows: SHealthTrendRow[];
|
|
12
|
+
/** Optional labels per tick index for hover inspection. */
|
|
13
|
+
tickLabels?: string[];
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Multi-row 24h Network Health Trend timeline rendering ~96 thin vertical ticks per row
|
|
19
|
+
* across `Device`, `Client`, `Wi-Fi`, and `WAN` dimensions.
|
|
20
|
+
*/
|
|
21
|
+
export declare const SHealthTrendBar: React.FC<SHealthTrendBarProps>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type InputNumberProps, type InputProps } from 'antd';
|
|
3
|
+
import type { PasswordProps, TextAreaProps } from 'antd/es/input';
|
|
4
|
+
export interface SInputProps extends InputProps {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Omada text input defaulting to filled grey background (`#F4F4F4` / `#272727`).
|
|
8
|
+
*/
|
|
9
|
+
export declare const SInput: React.FC<SInputProps>;
|
|
10
|
+
export interface SSearchInputProps extends InputProps {
|
|
11
|
+
width?: number | string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Omada search input (260px default width, leading search icon, clearable).
|
|
15
|
+
*/
|
|
16
|
+
export declare const SSearchInput: React.FC<SSearchInputProps>;
|
|
17
|
+
export interface PasswordRuleConfig {
|
|
18
|
+
key: string;
|
|
19
|
+
label: string;
|
|
20
|
+
validate: (value: string) => boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_PASSWORD_RULES: PasswordRuleConfig[];
|
|
23
|
+
export interface SPasswordInputProps extends PasswordProps {
|
|
24
|
+
/** Show the 4-segment password strength indicator bar. */
|
|
25
|
+
showStrength?: boolean;
|
|
26
|
+
/** Show live validation checklist rules below the password field. */
|
|
27
|
+
showRules?: boolean;
|
|
28
|
+
/** Custom validation rules for `showRules` (defaults to Omada's 4 complexity rules). */
|
|
29
|
+
rules?: PasswordRuleConfig[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Omada password input with optional 4-segment strength meter (`Weak` -> `Very Strong`)
|
|
33
|
+
* and live password rule validation checklist (`showRules`).
|
|
34
|
+
*/
|
|
35
|
+
export declare const SPasswordInput: React.FC<SPasswordInputProps>;
|
|
36
|
+
export interface SNumberInputProps extends InputNumberProps {
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Omada numeric input defaulting to filled grey background.
|
|
40
|
+
*/
|
|
41
|
+
export declare const SNumberInput: React.FC<SNumberInputProps>;
|
|
42
|
+
export interface STextAreaProps extends TextAreaProps {
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Omada multiline text input defaulting to filled grey background.
|
|
46
|
+
*/
|
|
47
|
+
export declare const STextArea: React.FC<STextAreaProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SIpInputMode = 'ip' | 'cidr' | 'port';
|
|
3
|
+
export interface ParsedIpValue {
|
|
4
|
+
octets: [string, string, string, string];
|
|
5
|
+
extra: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SIpInputProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
mode?: SIpInputMode;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
status?: 'error' | 'warning';
|
|
14
|
+
size?: 'middle' | 'large';
|
|
15
|
+
placeholder?: [string, string, string, string];
|
|
16
|
+
extraPlaceholder?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
'aria-label'?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Parses an IPv4, IPv4/CIDR, or IPv4:Port string into 4 octet strings + optional extra suffix.
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseIpValue(raw?: string, mode?: SIpInputMode): ParsedIpValue;
|
|
24
|
+
/**
|
|
25
|
+
* Validates whether a string is a complete, in-range IPv4 address (`0.0.0.0` - `255.255.255.255`).
|
|
26
|
+
*/
|
|
27
|
+
export declare function validateIpv4(ip: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Validates whether a string is a valid IPv4/CIDR address (`a.b.c.d/0..32`).
|
|
30
|
+
*/
|
|
31
|
+
export declare function validateCidr(cidr: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Segmented IPv4 / CIDR / IP:Port input matching Omada's filled control specification.
|
|
34
|
+
* Supports dot-key advance, auto-advance, Backspace navigation, and smart clipboard paste.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SIpInput: React.FC<SIpInputProps>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SpinProps } from 'antd';
|
|
3
|
+
export type SLoadingSize = 'sm' | 'md' | 'lg' | number;
|
|
4
|
+
export type SLoadingTone = 'brand' | 'neutral' | 'inverse';
|
|
5
|
+
export interface SLoadingProps extends Omit<SpinProps, 'size' | 'tip' | 'wrapperClassName'> {
|
|
6
|
+
/** Spinner diameter preset (`sm`: 16px, `md`: 20px, `lg`: 32px) or custom px */
|
|
7
|
+
size?: SLoadingSize;
|
|
8
|
+
/** Visual spinner color tone (`brand`: Omada Green, `neutral`: grey/adaptive, `inverse`: white) */
|
|
9
|
+
tone?: SLoadingTone;
|
|
10
|
+
/** Optional loading label rendered with 8px gap next to or below the spinner */
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
/** Inline arrangement (`horizontal` matches Figma `Loading..` bar; `vertical` stacks centered) */
|
|
13
|
+
layout?: 'horizontal' | 'vertical';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Omada loading spinner & container overlay backed by official Figma conic-ring SVG icons
|
|
17
|
+
* (`16px` inline, `20px` default, `32px` container/fullscreen) and Ant Design 6 `<Spin>`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SLoading: React.FC<SLoadingProps>;
|
|
20
|
+
export type SSkeletonPreset = 'default' | 'list' | 'table' | 'card';
|
|
21
|
+
export interface SSkeletonProps {
|
|
22
|
+
/** Layout preset (`default` text lines, `list` items, `table` grid, `card` surface) */
|
|
23
|
+
preset?: SSkeletonPreset;
|
|
24
|
+
/** When `false`, renders `children` instead of the skeleton placeholder */
|
|
25
|
+
loading?: boolean;
|
|
26
|
+
/** Enables animated Light/Dark gradient shimmer (defaults to `true`) */
|
|
27
|
+
active?: boolean;
|
|
28
|
+
/** Number of placeholder lines/rows (preset-dependent defaults) */
|
|
29
|
+
rows?: number;
|
|
30
|
+
/** Column count for `table` preset (defaults to `4`) */
|
|
31
|
+
columns?: number;
|
|
32
|
+
/** Shows circular avatar placeholder in `default` / `list` / `card` presets */
|
|
33
|
+
avatar?: boolean;
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Omada skeleton loading placeholder (`default`, `list`, `table`, `card` presets)
|
|
40
|
+
* using Light/Dark token gradient shimmer (`--omada-bg-field` -> `--omada-bg-field-hover`).
|
|
41
|
+
*/
|
|
42
|
+
export declare const SSkeleton: React.FC<SSkeletonProps>;
|
|
43
|
+
export interface SMaskProps {
|
|
44
|
+
/** Controls visibility of the backdrop mask */
|
|
45
|
+
open?: boolean;
|
|
46
|
+
/** Covers either its positioned parent (`container`) or the full viewport (`page`) */
|
|
47
|
+
scope?: 'container' | 'page';
|
|
48
|
+
/** Applies a 4px frosted glass backdrop blur */
|
|
49
|
+
blur?: boolean;
|
|
50
|
+
/** Renders a centered inverse loading spinner inside the mask */
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
/** Optional text beneath the mask loading spinner */
|
|
53
|
+
loadingText?: React.ReactNode;
|
|
54
|
+
/** Optional backdrop click handler */
|
|
55
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
56
|
+
/** Custom z-index (`10` for container, `1100` for page by default) */
|
|
57
|
+
zIndex?: number;
|
|
58
|
+
children?: React.ReactNode;
|
|
59
|
+
className?: string;
|
|
60
|
+
style?: React.CSSProperties;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Omada backdrop overlay (`rgba(0, 0, 0, 0.40)` matching Figma `43:34769` Mask)
|
|
64
|
+
* for page-level or container/card-level blocking with optional frosted blur and centered content.
|
|
65
|
+
*/
|
|
66
|
+
export declare const SMask: React.FC<SMaskProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type MacSeparator = '-' | ':';
|
|
3
|
+
export interface SMacInputProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
separator?: MacSeparator;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
status?: 'error' | 'warning';
|
|
10
|
+
size?: 'middle' | 'large';
|
|
11
|
+
className?: string;
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Normalizes any MAC address string (`aa:bb:cc:dd:ee:ff` or `aabbccddeeff`) into uppercase separated form.
|
|
16
|
+
*/
|
|
17
|
+
export declare function normalizeMac(raw: string, separator?: MacSeparator): string;
|
|
18
|
+
/**
|
|
19
|
+
* Validates whether a string is a complete 6-byte MAC address with `-` or `:` separators.
|
|
20
|
+
*/
|
|
21
|
+
export declare function validateMac(mac: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 6-segment hexadecimal MAC address input matching Omada's filled control specification.
|
|
24
|
+
* Auto-uppercases, filters non-hex input, auto-advances across pairs, and formats pasted MACs.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SMacInput: React.FC<SMacInputProps>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ModalProps } from 'antd';
|
|
3
|
+
import type { OmadaIllustrationName } from '../assets/assetsManifest';
|
|
4
|
+
import { type SButtonProps } from './SButton';
|
|
5
|
+
export type SModalSize = 'sm' | 'confirm' | 'default' | 'centered' | 'form' | 'xl';
|
|
6
|
+
export interface SModalProps extends Omit<ModalProps, 'width' | 'okButtonProps' | 'cancelButtonProps'> {
|
|
7
|
+
size?: SModalSize;
|
|
8
|
+
width?: number | string;
|
|
9
|
+
danger?: boolean;
|
|
10
|
+
/** Optional subtitle rendered beneath the modal title */
|
|
11
|
+
subtitle?: React.ReactNode;
|
|
12
|
+
/** Optional leading icon rendered in the modal header */
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
/** Alignment of the default modal footer actions */
|
|
15
|
+
footerAlign?: 'left' | 'right';
|
|
16
|
+
okButtonProps?: SButtonProps;
|
|
17
|
+
cancelButtonProps?: SButtonProps;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Omada-styled Modal supporting preset sizes (`sm`: 480px, `confirm`: 540px,
|
|
21
|
+
* `default`: 640px, `centered`: 764px, `form`: 880px, `xl`: 1040px),
|
|
22
|
+
* optional header icon/subtitle slots, and Omada Secondary/Primary/Danger footer buttons.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SModal: React.FC<SModalProps>;
|
|
25
|
+
export type SInfoDialogStatus = 'info' | 'success' | 'warning' | 'error' | 'loading';
|
|
26
|
+
export interface SInfoDialogProps extends Omit<SModalProps, 'title' | 'footer' | 'children' | 'okText' | 'cancelText'> {
|
|
27
|
+
/** Semantic status icon state matching Figma Dialog specs */
|
|
28
|
+
status?: SInfoDialogStatus;
|
|
29
|
+
title: React.ReactNode;
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
/** Optional Figma illustration slug (`<SIllustration />`) displayed above the title */
|
|
32
|
+
illustration?: OmadaIllustrationName;
|
|
33
|
+
/** Custom icon overriding the default status icon */
|
|
34
|
+
icon?: React.ReactNode;
|
|
35
|
+
/** Centered hero dialog (`centered`) or compact top-aligned header (`header`) */
|
|
36
|
+
layout?: 'centered' | 'header';
|
|
37
|
+
/** Optional extra body content (e.g., progress bar, status metadata) */
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
/** Primary action label; pass `null` to omit */
|
|
40
|
+
okText?: React.ReactNode | null;
|
|
41
|
+
/** Optional secondary/stop action label (e.g., `'Stop'` or `'Cancel'`) */
|
|
42
|
+
cancelText?: React.ReactNode | null;
|
|
43
|
+
/** Variant override for the primary action button */
|
|
44
|
+
okVariant?: SButtonProps['variant'];
|
|
45
|
+
/** Custom action nodes replacing the default footer buttons */
|
|
46
|
+
actions?: React.ReactNode;
|
|
47
|
+
footer?: SModalProps['footer'];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Status/result information dialog using official Figma status icons or illustrations,
|
|
51
|
+
* supporting centered result layouts, progress content, and Stop/OK actions.
|
|
52
|
+
*/
|
|
53
|
+
export declare const SInfoDialog: React.FC<SInfoDialogProps>;
|
|
54
|
+
export interface SStepModalStep {
|
|
55
|
+
key?: string;
|
|
56
|
+
title: React.ReactNode;
|
|
57
|
+
subTitle?: React.ReactNode;
|
|
58
|
+
description?: React.ReactNode;
|
|
59
|
+
icon?: React.ReactNode;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
/** Step body content rendered when this step is active */
|
|
62
|
+
content: React.ReactNode;
|
|
63
|
+
}
|
|
64
|
+
export interface SStepModalProps extends Omit<SModalProps, 'children' | 'onOk' | 'footer'> {
|
|
65
|
+
steps: SStepModalStep[];
|
|
66
|
+
/** Controlled 0-based active step index */
|
|
67
|
+
current?: number;
|
|
68
|
+
/** Initial 0-based step index when uncontrolled */
|
|
69
|
+
defaultCurrent?: number;
|
|
70
|
+
/** Fired whenever the active step changes */
|
|
71
|
+
onStepChange?: (nextStep: number, prevStep: number) => void;
|
|
72
|
+
/** Optional guard run before advancing with Next; return `false` or reject to stay on current step */
|
|
73
|
+
onBeforeNext?: (currentStep: number) => boolean | void | Promise<boolean | void>;
|
|
74
|
+
/** Fired when clicking Finish on the final step */
|
|
75
|
+
onFinish?: () => void | Promise<void>;
|
|
76
|
+
/** Enable clicking step headers to navigate directly */
|
|
77
|
+
allowStepClick?: boolean;
|
|
78
|
+
backText?: React.ReactNode;
|
|
79
|
+
nextText?: React.ReactNode;
|
|
80
|
+
finishText?: React.ReactNode;
|
|
81
|
+
cancelText?: React.ReactNode;
|
|
82
|
+
/** Optional left-side footer content (defaults to step counter) */
|
|
83
|
+
footerExtra?: React.ReactNode;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Multi-step wizard modal embedding an Ant Design 6 `<Steps>` bar and
|
|
87
|
+
* Back / Next / Finish navigation footer.
|
|
88
|
+
*/
|
|
89
|
+
export declare const SStepModal: React.FC<SStepModalProps>;
|
|
90
|
+
export interface OmadaConfirmOptions {
|
|
91
|
+
title: React.ReactNode;
|
|
92
|
+
content?: React.ReactNode;
|
|
93
|
+
okText?: string;
|
|
94
|
+
cancelText?: string;
|
|
95
|
+
onOk?: () => void | Promise<void>;
|
|
96
|
+
onCancel?: () => void;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Theme-aware confirmation dialog presets (`confirm`, `confirmDanger`, `confirmLeave`)
|
|
100
|
+
* backed by `App.useApp().modal`.
|
|
101
|
+
*/
|
|
102
|
+
export declare function useOmadaConfirm(): {
|
|
103
|
+
confirm: (opts: OmadaConfirmOptions) => {
|
|
104
|
+
destroy: () => void;
|
|
105
|
+
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
|
|
106
|
+
} & {
|
|
107
|
+
then: <T>(resolve: (confirmed: boolean) => T, reject: VoidFunction) => Promise<T>;
|
|
108
|
+
};
|
|
109
|
+
confirmDanger: (opts: OmadaConfirmOptions) => {
|
|
110
|
+
destroy: () => void;
|
|
111
|
+
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
|
|
112
|
+
} & {
|
|
113
|
+
then: <T>(resolve: (confirmed: boolean) => T, reject: VoidFunction) => Promise<T>;
|
|
114
|
+
};
|
|
115
|
+
confirmLeave: (opts?: Partial<OmadaConfirmOptions>) => {
|
|
116
|
+
destroy: () => void;
|
|
117
|
+
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
|
|
118
|
+
} & {
|
|
119
|
+
then: <T>(resolve: (confirmed: boolean) => T, reject: VoidFunction) => Promise<T>;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NotificationPlacement } from 'antd/es/notification/interface';
|
|
3
|
+
export type SNotificationType = 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
export interface SNotificationProps {
|
|
5
|
+
/** Semantic notification level (`info` | `success` | `warning` | `error`) */
|
|
6
|
+
type?: SNotificationType;
|
|
7
|
+
/** Primary notification heading */
|
|
8
|
+
title: React.ReactNode;
|
|
9
|
+
/** Optional multi-line body description */
|
|
10
|
+
description?: React.ReactNode;
|
|
11
|
+
/** Custom icon overriding the semantic status icon */
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
/** Action buttons rendered at the bottom-right of the notification card */
|
|
14
|
+
actions?: React.ReactNode;
|
|
15
|
+
/** Whether the close button is displayed (defaults to `true`) */
|
|
16
|
+
closable?: boolean;
|
|
17
|
+
/** Fired when the user clicks the close button */
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Static/inline Omada notification card matching Figma `43:34759` specs
|
|
24
|
+
* (`--omada-bg-popover`, `--omada-shadow-popover`, semantic Figma status icons, and action slots).
|
|
25
|
+
*/
|
|
26
|
+
export declare const SNotification: React.FC<SNotificationProps>;
|
|
27
|
+
export interface OmadaNotificationOptions {
|
|
28
|
+
key?: React.Key;
|
|
29
|
+
title: React.ReactNode;
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
/** Action buttons rendered inside the AntD 6 notification card (`actions` slot) */
|
|
32
|
+
actions?: React.ReactNode;
|
|
33
|
+
icon?: React.ReactNode;
|
|
34
|
+
placement?: NotificationPlacement;
|
|
35
|
+
duration?: number | false;
|
|
36
|
+
showProgress?: boolean;
|
|
37
|
+
pauseOnHover?: boolean;
|
|
38
|
+
closable?: boolean;
|
|
39
|
+
onClose?: () => void;
|
|
40
|
+
onClick?: () => void;
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
}
|
|
44
|
+
type NotificationTrigger = (optionsOrTitle: OmadaNotificationOptions | React.ReactNode, description?: React.ReactNode) => void;
|
|
45
|
+
export interface OmadaNotificationApi {
|
|
46
|
+
info: NotificationTrigger;
|
|
47
|
+
success: NotificationTrigger;
|
|
48
|
+
warning: NotificationTrigger;
|
|
49
|
+
error: NotificationTrigger;
|
|
50
|
+
open: (options: OmadaNotificationOptions & {
|
|
51
|
+
type?: SNotificationType;
|
|
52
|
+
}) => void;
|
|
53
|
+
destroy: (key?: React.Key) => void;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Theme-aware Omada notification hook backed by Ant Design 6 `App.useApp().notification`.
|
|
57
|
+
* Uses AntD 6 `{ title, description, actions }` APIs and official Figma semantic status icons.
|
|
58
|
+
*/
|
|
59
|
+
export declare function useOmadaNotification(): OmadaNotificationApi;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaginationProps } from 'antd';
|
|
3
|
+
export type SPaginationVariant = 'default' | 'simple' | 'minimal';
|
|
4
|
+
export type SPaginationSize = 'small' | 'medium';
|
|
5
|
+
export interface SPaginationProps extends Omit<PaginationProps, 'size' | 'simple' | 'align'> {
|
|
6
|
+
/** Visual variant matching Figma `43:34717`: full (`default`), compact input (`simple`), or borderless hotspots (`minimal`). */
|
|
7
|
+
variant?: SPaginationVariant;
|
|
8
|
+
/** Component density (`small` or `medium`; never passes deprecated `size="default"` to AntD 6). */
|
|
9
|
+
size?: SPaginationSize;
|
|
10
|
+
/** Displays the `Showing X–Y of Z records` summary label (defaults to `true` for `default` variant). */
|
|
11
|
+
showSummary?: boolean;
|
|
12
|
+
/** Custom formatter for the summary text when `showSummary` is enabled. */
|
|
13
|
+
summaryRender?: (range: [number, number], total: number) => React.ReactNode;
|
|
14
|
+
/** Horizontal alignment of the pagination bar. */
|
|
15
|
+
align?: 'between' | 'left' | 'right' | 'center';
|
|
16
|
+
/** Read-only toggle when `variant="simple"`. */
|
|
17
|
+
simpleReadOnly?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Omada Pagination (`43:34717`) supporting `default` (summary + pages + size changer),
|
|
21
|
+
* `simple` (compact prev/input/next), and `minimal` (borderless numeric hover hotspots).
|
|
22
|
+
*/
|
|
23
|
+
export declare const SPagination: React.FC<SPaginationProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PopconfirmProps, type PopoverProps } from 'antd';
|
|
3
|
+
import type { TooltipRef } from 'antd/es/tooltip';
|
|
4
|
+
export interface SPopoverProps extends PopoverProps {
|
|
5
|
+
/** Optional leading icon rendered alongside the popover title */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Optional subtitle rendered beneath the popover title */
|
|
8
|
+
subtitle?: React.ReactNode;
|
|
9
|
+
/** Optional footer bar rendered below the popover body content */
|
|
10
|
+
footer?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Omada-styled Ant Design 6 Popover with Light/Dark elevation (`--omada-bg-popover`,
|
|
14
|
+
* `--omada-shadow-popover`) and optional header icon/subtitle and footer slots.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SPopover: React.ForwardRefExoticComponent<SPopoverProps & React.RefAttributes<TooltipRef>>;
|
|
17
|
+
export interface SPopconfirmProps extends Omit<PopconfirmProps, 'icon'> {
|
|
18
|
+
/** Custom icon node, or pass `null`/`false` to hide the icon (supporting all 4 Figma variants) */
|
|
19
|
+
icon?: React.ReactNode | false | null;
|
|
20
|
+
/** Styles the confirm button as a destructive Omada danger action */
|
|
21
|
+
danger?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Omada-styled Ant Design 6 Popconfirm supporting all 4 Figma icon/description
|
|
25
|
+
* combinations with Omada Primary/Danger and Neutral Secondary action buttons.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SPopconfirm: React.ForwardRefExoticComponent<SPopconfirmProps & React.RefAttributes<TooltipRef>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PortSpeedKey } from '../theme/tokens';
|
|
3
|
+
export type PortBadgeType = 'poe' | 'uplink' | 'mirror' | 'blocking' | 'stack';
|
|
4
|
+
export interface SPortItem {
|
|
5
|
+
id: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
status: PortSpeedKey;
|
|
8
|
+
type?: 'rj45' | 'sfp' | 'wan' | 'lan';
|
|
9
|
+
badges?: PortBadgeType[];
|
|
10
|
+
vlan?: string;
|
|
11
|
+
poeWatts?: number;
|
|
12
|
+
clientName?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SPortPanelProps {
|
|
15
|
+
ports: SPortItem[];
|
|
16
|
+
size?: 'sm' | 'lg';
|
|
17
|
+
layout?: 'double-row' | 'single-row';
|
|
18
|
+
selectable?: boolean;
|
|
19
|
+
selectedIds?: number[];
|
|
20
|
+
onSelectChange?: (ids: number[]) => void;
|
|
21
|
+
showLegend?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Interactive Switch / Gateway physical port matrix matching Omada Figma port speed colors (11 states).
|
|
26
|
+
* Supports single-row or double-row (odd top / even bottom) layout, port badges, tooltips, and selection.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SPortPanel: React.FC<SPortPanelProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ProgressProps } from 'antd';
|
|
3
|
+
export type SProgressStatus = 'normal' | 'active' | 'success' | 'warning' | 'exception';
|
|
4
|
+
export type SProgressVariant = 'default' | 'budget';
|
|
5
|
+
export interface SProgressProps extends Omit<ProgressProps, 'status' | 'trailColor' | 'gapPosition' | 'width'> {
|
|
6
|
+
/** All 5 Figma visual states: `normal`, `active`, `success`, `warning`, `exception` */
|
|
7
|
+
status?: SProgressStatus;
|
|
8
|
+
/** Standard progress bar/ring (`default`) or resource/PoE power budget readout (`budget`) */
|
|
9
|
+
variant?: SProgressVariant;
|
|
10
|
+
/** Animated indeterminate linear progress bar (ignores `percent`) */
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
/** Optional header label rendered above linear progress or budget bar */
|
|
13
|
+
label?: React.ReactNode;
|
|
14
|
+
/** Used resource value for `variant="budget"` (e.g., `186.4`) */
|
|
15
|
+
used?: number;
|
|
16
|
+
/** Total capacity value for `variant="budget"` (e.g., `384`) */
|
|
17
|
+
total?: number;
|
|
18
|
+
/** Unit suffix for `variant="budget"` readout (defaults to `'W'`) */
|
|
19
|
+
unit?: string;
|
|
20
|
+
/** Percentage threshold switching `budget` status to `warning` (defaults to `80`) */
|
|
21
|
+
warningThreshold?: number;
|
|
22
|
+
/** Percentage threshold switching `budget` status to `exception` (defaults to `95`) */
|
|
23
|
+
dangerThreshold?: number;
|
|
24
|
+
/** Linear stroke thickness in px (defaults to `6` matching Figma spec) */
|
|
25
|
+
strokeHeight?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Omada-styled Progress component supporting linear (`6px` pill bar), circular (`112px` ring),
|
|
29
|
+
* all 5 Figma visual states (`normal`, `active`, `success`, `warning`, `exception`),
|
|
30
|
+
* `indeterminate` animation, and a `variant="budget"` PoE power budget preset.
|
|
31
|
+
*/
|
|
32
|
+
export declare const SProgress: React.FC<SProgressProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Radio, type RadioGroupProps, type RadioProps, type RadioRef } from 'antd';
|
|
3
|
+
export type SRadioGroupVariant = 'default' | 'button' | 'capsule';
|
|
4
|
+
export interface SRadioProps extends RadioProps {
|
|
5
|
+
/** Optional explanatory copy rendered 4px beneath the radio label. */
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
/** Ref forwarded to the underlying AntD 6 Radio instance. */
|
|
8
|
+
ref?: React.Ref<RadioRef>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Omada Radio control with optional secondary `description` line.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SRadio: React.FC<SRadioProps> & {
|
|
14
|
+
Group: typeof SRadioGroup;
|
|
15
|
+
Button: typeof Radio.Button;
|
|
16
|
+
};
|
|
17
|
+
export interface SRadioOption<T = string | number> {
|
|
18
|
+
label: React.ReactNode;
|
|
19
|
+
value: T;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
description?: React.ReactNode;
|
|
22
|
+
icon?: React.ReactNode;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
export interface SRadioGroupProps<T = string | number> extends Omit<RadioGroupProps, 'options' | 'optionType'> {
|
|
27
|
+
/** Visual presentation: standard radios (`default`), linear buttons (`button`), or segmented pill (`capsule`). */
|
|
28
|
+
variant?: SRadioGroupVariant;
|
|
29
|
+
/** Array of radio options or primitive values. */
|
|
30
|
+
options?: Array<SRadioOption<T> | string | number>;
|
|
31
|
+
/** Layout axis for `default` radio items. */
|
|
32
|
+
direction?: 'horizontal' | 'vertical';
|
|
33
|
+
/** Rounded-full pill shape when `variant="capsule"`. */
|
|
34
|
+
pill?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Omada Radio Group supporting `default` circle radios (with optional descriptions),
|
|
38
|
+
* linear `button` groups, and segmented `capsule` switchers matching `STabs`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function SRadioGroup<T extends string | number = string | number>({ variant, options, direction, vertical, pill, value, defaultValue, onChange, disabled, name, buttonStyle, className, style, children, ...rest }: SRadioGroupProps<T>): React.JSX.Element;
|