elseware-ui 2.34.0 → 2.35.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/LICENSE +20 -20
- package/README.md +98 -98
- package/dist/index.css +656 -9
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +2270 -2185
- package/dist/index.d.ts +2270 -2185
- package/dist/index.js +399 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +397 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +111 -111
package/dist/index.d.mts
CHANGED
|
@@ -6,600 +6,602 @@ import * as formik from 'formik';
|
|
|
6
6
|
import { FieldHookConfig } from 'formik';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Contains ReactElements such as "children" using HTMLAttributes
|
|
11
|
-
*
|
|
12
|
-
* Contains DOMAttributes such as "onClick" using HTMLAttributes
|
|
13
|
-
*
|
|
14
|
-
* Define the custom types as follows for the custom DOM elements
|
|
15
|
-
* BaseComponentProps<HTMLDivElement> // default
|
|
16
|
-
* BaseComponentProps<HTMLButtonElement> // buttons
|
|
17
|
-
* BaseComponentProps<HTMLAnchorElement> // links
|
|
18
|
-
*/
|
|
19
|
-
interface BaseComponentProps<T extends HTMLElement = HTMLDivElement> extends Omit<HTMLAttributes<T>, "children"> {
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare const CURRENCIES: {
|
|
24
|
-
name: string;
|
|
25
|
-
symbol: string;
|
|
26
|
-
code: string;
|
|
9
|
+
/**
|
|
10
|
+
* Contains ReactElements such as "children" using HTMLAttributes
|
|
11
|
+
*
|
|
12
|
+
* Contains DOMAttributes such as "onClick" using HTMLAttributes
|
|
13
|
+
*
|
|
14
|
+
* Define the custom types as follows for the custom DOM elements
|
|
15
|
+
* BaseComponentProps<HTMLDivElement> // default
|
|
16
|
+
* BaseComponentProps<HTMLButtonElement> // buttons
|
|
17
|
+
* BaseComponentProps<HTMLAnchorElement> // links
|
|
18
|
+
*/
|
|
19
|
+
interface BaseComponentProps<T extends HTMLElement = HTMLDivElement> extends Omit<HTMLAttributes<T>, "children"> {
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const CURRENCIES: {
|
|
24
|
+
name: string;
|
|
25
|
+
symbol: string;
|
|
26
|
+
code: string;
|
|
27
27
|
}[];
|
|
28
28
|
|
|
29
|
-
type Variant$1 = "default" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
|
|
30
|
-
type Shape$1 = "circle" | "roundedSquare" | "softRoundedSquare" | "square";
|
|
31
|
-
type Size$1 = "xs" | "sm" | "md" | "lg" | "xl";
|
|
32
|
-
type Appearance = "solid" | "lite" | "ghost";
|
|
33
|
-
type TextDecoration = "underline" | "overline" | "lineThrough" | "noUnderline";
|
|
34
|
-
type HyperRefTarget = "blank" | "self" | "parent" | "top";
|
|
35
|
-
type VerticalPosition = "top" | "bottom";
|
|
36
|
-
type HorizontalPosition = "left" | "right";
|
|
37
|
-
type CardinalPosition = VerticalPosition | HorizontalPosition;
|
|
38
|
-
type CornerPosition = `${VerticalPosition}-${HorizontalPosition}`;
|
|
39
|
-
type OctilePosition = CardinalPosition | CornerPosition;
|
|
40
|
-
type TitleBannerLevel = 1 | 2;
|
|
41
|
-
type ListBulletType = "dot" | "diamond" | "number" | "none";
|
|
42
|
-
type ListAlign = "start" | "center";
|
|
43
|
-
type ListDirection = "vertical" | "horizontal";
|
|
44
|
-
type RouteTabMode = "route" | "state";
|
|
29
|
+
type Variant$1 = "default" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
|
|
30
|
+
type Shape$1 = "circle" | "roundedSquare" | "softRoundedSquare" | "square";
|
|
31
|
+
type Size$1 = "xs" | "sm" | "md" | "lg" | "xl";
|
|
32
|
+
type Appearance = "solid" | "lite" | "ghost";
|
|
33
|
+
type TextDecoration = "underline" | "overline" | "lineThrough" | "noUnderline";
|
|
34
|
+
type HyperRefTarget = "blank" | "self" | "parent" | "top";
|
|
35
|
+
type VerticalPosition = "top" | "bottom";
|
|
36
|
+
type HorizontalPosition = "left" | "right";
|
|
37
|
+
type CardinalPosition = VerticalPosition | HorizontalPosition;
|
|
38
|
+
type CornerPosition = `${VerticalPosition}-${HorizontalPosition}`;
|
|
39
|
+
type OctilePosition = CardinalPosition | CornerPosition;
|
|
40
|
+
type TitleBannerLevel = 1 | 2;
|
|
41
|
+
type ListBulletType = "dot" | "diamond" | "number" | "none";
|
|
42
|
+
type ListAlign = "start" | "center";
|
|
43
|
+
type ListDirection = "vertical" | "horizontal";
|
|
44
|
+
type RouteTabMode = "route" | "state";
|
|
45
45
|
type CurrencyCode = (typeof CURRENCIES)[number]["code"];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
type SpinnerType = "border" | "ring" | "dots" | "bars" | "pulse" | "orbit" | "dualRing" | "ripple" | "grid" | "wave";
|
|
47
|
+
type SpinnerDirection = "vertical" | "horizontal";
|
|
48
|
+
|
|
49
|
+
interface AvatarProps extends BaseComponentProps {
|
|
50
|
+
alt?: string;
|
|
51
|
+
icon?: ReactNode;
|
|
52
|
+
variant?: Variant$1;
|
|
53
|
+
appearance?: Appearance;
|
|
54
|
+
shape?: Shape$1;
|
|
55
|
+
size?: Size$1;
|
|
56
|
+
src?: string;
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
}
|
|
57
59
|
declare const Avatar: ({ alt, icon, children, variant, appearance, shape, size, src, className, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
58
60
|
|
|
59
|
-
interface BadgeProps extends BaseComponentProps {
|
|
60
|
-
offset?: [number, number];
|
|
61
|
-
dot?: boolean;
|
|
62
|
-
count?: number;
|
|
63
|
-
variant?: Variant$1;
|
|
64
|
-
appearance?: Appearance;
|
|
65
|
-
shape?: Shape$1;
|
|
66
|
-
size?: Size$1;
|
|
67
|
-
showZero?: boolean;
|
|
68
|
-
position?: OctilePosition;
|
|
69
|
-
children?: ReactNode;
|
|
70
|
-
}
|
|
61
|
+
interface BadgeProps extends BaseComponentProps {
|
|
62
|
+
offset?: [number, number];
|
|
63
|
+
dot?: boolean;
|
|
64
|
+
count?: number;
|
|
65
|
+
variant?: Variant$1;
|
|
66
|
+
appearance?: Appearance;
|
|
67
|
+
shape?: Shape$1;
|
|
68
|
+
size?: Size$1;
|
|
69
|
+
showZero?: boolean;
|
|
70
|
+
position?: OctilePosition;
|
|
71
|
+
children?: ReactNode;
|
|
72
|
+
}
|
|
71
73
|
declare const Badge: ({ children, offset, dot, count, variant, appearance, shape, size, showZero, position, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
72
74
|
|
|
73
|
-
interface TitleBannerProps extends BaseComponentProps {
|
|
74
|
-
title: string;
|
|
75
|
-
level?: TitleBannerLevel;
|
|
76
|
-
rightSection?: ReactNode;
|
|
77
|
-
}
|
|
75
|
+
interface TitleBannerProps extends BaseComponentProps {
|
|
76
|
+
title: string;
|
|
77
|
+
level?: TitleBannerLevel;
|
|
78
|
+
rightSection?: ReactNode;
|
|
79
|
+
}
|
|
78
80
|
declare const TitleBanner: ({ title, level, rightSection, className, ...rest }: TitleBannerProps) => react_jsx_runtime.JSX.Element;
|
|
79
81
|
|
|
80
|
-
interface BrandProps extends BaseComponentProps {
|
|
81
|
-
src?: string;
|
|
82
|
-
alt?: string;
|
|
83
|
-
}
|
|
82
|
+
interface BrandProps extends BaseComponentProps {
|
|
83
|
+
src?: string;
|
|
84
|
+
alt?: string;
|
|
85
|
+
}
|
|
84
86
|
declare function Brand({ src, alt, className, ...rest }: BrandProps): react_jsx_runtime.JSX.Element;
|
|
85
87
|
|
|
86
|
-
interface BarChartProps extends BaseComponentProps {
|
|
87
|
-
data: ChartData<"bar">;
|
|
88
|
-
options: ChartOptions<"bar">;
|
|
89
|
-
}
|
|
88
|
+
interface BarChartProps extends BaseComponentProps {
|
|
89
|
+
data: ChartData<"bar">;
|
|
90
|
+
options: ChartOptions<"bar">;
|
|
91
|
+
}
|
|
90
92
|
declare const BarChart: React__default.FC<BarChartProps>;
|
|
91
93
|
|
|
92
|
-
interface LineChartProps extends BaseComponentProps {
|
|
93
|
-
data: ChartData<"line">;
|
|
94
|
-
options?: ChartOptions<"line">;
|
|
95
|
-
}
|
|
94
|
+
interface LineChartProps extends BaseComponentProps {
|
|
95
|
+
data: ChartData<"line">;
|
|
96
|
+
options?: ChartOptions<"line">;
|
|
97
|
+
}
|
|
96
98
|
declare const LineChart: React__default.FC<LineChartProps>;
|
|
97
99
|
|
|
98
|
-
interface PieChartProps extends BaseComponentProps {
|
|
99
|
-
data: ChartData<"pie">;
|
|
100
|
-
options: ChartOptions<"pie">;
|
|
101
|
-
}
|
|
100
|
+
interface PieChartProps extends BaseComponentProps {
|
|
101
|
+
data: ChartData<"pie">;
|
|
102
|
+
options: ChartOptions<"pie">;
|
|
103
|
+
}
|
|
102
104
|
declare const PieChart: React__default.FC<PieChartProps>;
|
|
103
105
|
|
|
104
|
-
interface ChipProps extends BaseComponentProps {
|
|
105
|
-
label?: string;
|
|
106
|
-
variant?: Variant$1;
|
|
107
|
-
appearance?: Appearance;
|
|
108
|
-
shape?: Shape$1;
|
|
109
|
-
size?: Size$1;
|
|
110
|
-
}
|
|
106
|
+
interface ChipProps extends BaseComponentProps {
|
|
107
|
+
label?: string;
|
|
108
|
+
variant?: Variant$1;
|
|
109
|
+
appearance?: Appearance;
|
|
110
|
+
shape?: Shape$1;
|
|
111
|
+
size?: Size$1;
|
|
112
|
+
}
|
|
111
113
|
declare const Chip: ({ label, variant, appearance, shape, size, className, ...rest }: ChipProps) => react_jsx_runtime.JSX.Element;
|
|
112
114
|
|
|
113
|
-
type SortConfig<T, K extends keyof T = keyof T> = {
|
|
114
|
-
key: K;
|
|
115
|
-
direction?: "asc" | "desc";
|
|
116
|
-
transform?: (value: T[K]) => number | string;
|
|
115
|
+
type SortConfig<T, K extends keyof T = keyof T> = {
|
|
116
|
+
key: K;
|
|
117
|
+
direction?: "asc" | "desc";
|
|
118
|
+
transform?: (value: T[K]) => number | string;
|
|
117
119
|
};
|
|
118
120
|
|
|
119
|
-
interface Props$2<T> {
|
|
120
|
-
data: T[];
|
|
121
|
-
children: ReactNode;
|
|
122
|
-
defaultPageSize?: number;
|
|
123
|
-
sortConfig?: Record<string, SortConfig<T>>;
|
|
124
|
-
}
|
|
121
|
+
interface Props$2<T> {
|
|
122
|
+
data: T[];
|
|
123
|
+
children: ReactNode;
|
|
124
|
+
defaultPageSize?: number;
|
|
125
|
+
sortConfig?: Record<string, SortConfig<T>>;
|
|
126
|
+
}
|
|
125
127
|
declare function DataViewProvider<T extends Record<string, any>>({ data, children, defaultPageSize, sortConfig, }: Props$2<T>): react_jsx_runtime.JSX.Element;
|
|
126
128
|
|
|
127
|
-
type DataViewHeaderProps = {
|
|
128
|
-
children: ReactNode;
|
|
129
|
-
};
|
|
129
|
+
type DataViewHeaderProps = {
|
|
130
|
+
children: ReactNode;
|
|
131
|
+
};
|
|
130
132
|
declare function DataViewHeader({ children }: DataViewHeaderProps): react_jsx_runtime.JSX.Element;
|
|
131
133
|
|
|
132
|
-
type DataViewSidebarProps = {
|
|
133
|
-
children: ReactNode;
|
|
134
|
-
};
|
|
134
|
+
type DataViewSidebarProps = {
|
|
135
|
+
children: ReactNode;
|
|
136
|
+
};
|
|
135
137
|
declare function DataViewSidebar({ children }: DataViewSidebarProps): react_jsx_runtime.JSX.Element;
|
|
136
138
|
|
|
137
|
-
type DataViewContentProps<T = any> = {
|
|
138
|
-
children: ReactNode | ((data: T[]) => ReactNode);
|
|
139
|
-
};
|
|
139
|
+
type DataViewContentProps<T = any> = {
|
|
140
|
+
children: ReactNode | ((data: T[]) => ReactNode);
|
|
141
|
+
};
|
|
140
142
|
declare function DataViewContent<T = any>({ children, }: DataViewContentProps<T>): JSX.Element;
|
|
141
143
|
|
|
142
|
-
type DataViewFooterProps = {
|
|
143
|
-
children: ReactNode;
|
|
144
|
-
};
|
|
144
|
+
type DataViewFooterProps = {
|
|
145
|
+
children: ReactNode;
|
|
146
|
+
};
|
|
145
147
|
declare function DataViewFooter({ children }: DataViewFooterProps): react_jsx_runtime.JSX.Element;
|
|
146
148
|
|
|
147
|
-
type DataViewSearchProps = {
|
|
148
|
-
placeholder?: string;
|
|
149
|
-
shape?: Shape$1;
|
|
150
|
-
};
|
|
149
|
+
type DataViewSearchProps = {
|
|
150
|
+
placeholder?: string;
|
|
151
|
+
shape?: Shape$1;
|
|
152
|
+
};
|
|
151
153
|
declare function DataViewSearch({ placeholder, shape, }: DataViewSearchProps): react_jsx_runtime.JSX.Element;
|
|
152
154
|
|
|
153
|
-
type SortOption$1 = {
|
|
154
|
-
value: string;
|
|
155
|
-
label: string;
|
|
156
|
-
};
|
|
157
|
-
type DataViewSortProps = {
|
|
158
|
-
options: SortOption$1[];
|
|
159
|
-
shape?: Shape$1;
|
|
160
|
-
};
|
|
155
|
+
type SortOption$1 = {
|
|
156
|
+
value: string;
|
|
157
|
+
label: string;
|
|
158
|
+
};
|
|
159
|
+
type DataViewSortProps = {
|
|
160
|
+
options: SortOption$1[];
|
|
161
|
+
shape?: Shape$1;
|
|
162
|
+
};
|
|
161
163
|
declare function DataViewSort({ options, shape }: DataViewSortProps): react_jsx_runtime.JSX.Element;
|
|
162
164
|
|
|
163
|
-
type FilterOption = {
|
|
164
|
-
value: string;
|
|
165
|
-
label: string;
|
|
166
|
-
dotClass?: string;
|
|
167
|
-
};
|
|
168
|
-
type DataViewFilterGroupProps<T = any> = {
|
|
169
|
-
filterKey: keyof T;
|
|
170
|
-
options: FilterOption[];
|
|
171
|
-
title?: string;
|
|
172
|
-
};
|
|
165
|
+
type FilterOption = {
|
|
166
|
+
value: string;
|
|
167
|
+
label: string;
|
|
168
|
+
dotClass?: string;
|
|
169
|
+
};
|
|
170
|
+
type DataViewFilterGroupProps<T = any> = {
|
|
171
|
+
filterKey: keyof T;
|
|
172
|
+
options: FilterOption[];
|
|
173
|
+
title?: string;
|
|
174
|
+
};
|
|
173
175
|
declare function DataViewFilterGroup<T extends Record<string, any>>({ filterKey, options, title, }: DataViewFilterGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
174
176
|
|
|
175
|
-
type Props$1 = {
|
|
176
|
-
pageSizeOptions?: (number | "All")[];
|
|
177
|
-
shape?: Shape$1;
|
|
178
|
-
};
|
|
177
|
+
type Props$1 = {
|
|
178
|
+
pageSizeOptions?: (number | "All")[];
|
|
179
|
+
shape?: Shape$1;
|
|
180
|
+
};
|
|
179
181
|
declare function DataViewPageSize({ pageSizeOptions, shape, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
180
182
|
|
|
181
|
-
type Props = {
|
|
182
|
-
shape?: Shape$1;
|
|
183
|
-
};
|
|
183
|
+
type Props = {
|
|
184
|
+
shape?: Shape$1;
|
|
185
|
+
};
|
|
184
186
|
declare function DataViewPagination({ shape }: Props): react_jsx_runtime.JSX.Element | null;
|
|
185
187
|
|
|
186
|
-
declare const DataView: typeof DataViewProvider & {
|
|
187
|
-
Header: typeof DataViewHeader;
|
|
188
|
-
Sidebar: typeof DataViewSidebar;
|
|
189
|
-
Content: typeof DataViewContent;
|
|
190
|
-
Footer: typeof DataViewFooter;
|
|
191
|
-
Pagination: typeof DataViewPagination;
|
|
192
|
-
Search: typeof DataViewSearch;
|
|
193
|
-
Sort: typeof DataViewSort;
|
|
194
|
-
FilterGroup: typeof DataViewFilterGroup;
|
|
195
|
-
PageSize: typeof DataViewPageSize;
|
|
188
|
+
declare const DataView: typeof DataViewProvider & {
|
|
189
|
+
Header: typeof DataViewHeader;
|
|
190
|
+
Sidebar: typeof DataViewSidebar;
|
|
191
|
+
Content: typeof DataViewContent;
|
|
192
|
+
Footer: typeof DataViewFooter;
|
|
193
|
+
Pagination: typeof DataViewPagination;
|
|
194
|
+
Search: typeof DataViewSearch;
|
|
195
|
+
Sort: typeof DataViewSort;
|
|
196
|
+
FilterGroup: typeof DataViewFilterGroup;
|
|
197
|
+
PageSize: typeof DataViewPageSize;
|
|
196
198
|
};
|
|
197
199
|
|
|
198
|
-
interface FlagProps extends BaseComponentProps {
|
|
199
|
-
code: string;
|
|
200
|
-
width?: number | string;
|
|
201
|
-
height?: number | string;
|
|
202
|
-
}
|
|
200
|
+
interface FlagProps extends BaseComponentProps {
|
|
201
|
+
code: string;
|
|
202
|
+
width?: number | string;
|
|
203
|
+
height?: number | string;
|
|
204
|
+
}
|
|
203
205
|
declare const Flag: ({ code, width, height, className, ...rest }: FlagProps) => react_jsx_runtime.JSX.Element;
|
|
204
206
|
|
|
205
|
-
type GraphUnsubscribe = () => void;
|
|
206
|
-
type GraphDataHandler<TData extends GraphDataPoint = GraphDataPoint> = (data: TData | TData[]) => void;
|
|
207
|
-
type GraphErrorHandler = (error: Error) => void;
|
|
208
|
-
interface GraphDataSource<TData extends GraphDataPoint = GraphDataPoint> {
|
|
209
|
-
mode: GraphDataMode;
|
|
210
|
-
getInitialData?: () => Promise<TData[]> | TData[];
|
|
211
|
-
refresh?: () => Promise<TData[]> | TData[];
|
|
212
|
-
subscribe?: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
213
|
-
}
|
|
214
|
-
interface StaticGraphDataSourceOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
215
|
-
data: TData[];
|
|
216
|
-
}
|
|
217
|
-
interface PollingGraphDataSourceOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
218
|
-
interval?: number;
|
|
219
|
-
immediate?: boolean;
|
|
220
|
-
fetcher: () => Promise<TData[]> | TData[];
|
|
221
|
-
}
|
|
222
|
-
interface RealtimeGraphDataSourceOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
223
|
-
connect: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
224
|
-
getInitialData?: () => Promise<TData[]> | TData[];
|
|
225
|
-
refresh?: () => Promise<TData[]> | TData[];
|
|
226
|
-
}
|
|
227
|
-
interface UseGraphPollingOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
228
|
-
enabled?: boolean;
|
|
229
|
-
interval?: number;
|
|
230
|
-
immediate?: boolean;
|
|
231
|
-
normalize?: boolean;
|
|
232
|
-
fetcher: () => Promise<TData[]> | TData[];
|
|
233
|
-
onData?: (data: TData[]) => void;
|
|
234
|
-
onError?: GraphErrorHandler;
|
|
235
|
-
}
|
|
236
|
-
interface UseGraphRealtimeOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
237
|
-
enabled?: boolean;
|
|
238
|
-
maxDataPoints?: number;
|
|
239
|
-
normalize?: boolean;
|
|
240
|
-
connect: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
241
|
-
onData?: (data: TData[]) => void;
|
|
242
|
-
onError?: GraphErrorHandler;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
type GraphSeriesType = "line" | "area" | "bar" | "scatter";
|
|
246
|
-
type GraphSeriesColor = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "muted" | string;
|
|
247
|
-
interface GraphSeries {
|
|
248
|
-
key: string;
|
|
249
|
-
label?: string;
|
|
250
|
-
type?: GraphSeriesType;
|
|
251
|
-
color?: GraphSeriesColor;
|
|
252
|
-
unit?: string;
|
|
253
|
-
visible?: boolean;
|
|
254
|
-
strokeWidth?: number;
|
|
255
|
-
radius?: number;
|
|
256
|
-
format?: GraphValueFormat;
|
|
257
|
-
prefix?: string;
|
|
258
|
-
suffix?: string;
|
|
259
|
-
yAxisId?: string | number;
|
|
260
|
-
}
|
|
261
|
-
interface ResolvedGraphSeries extends Required<Pick<GraphSeries, "key">> {
|
|
262
|
-
label: string;
|
|
263
|
-
type: GraphSeriesType;
|
|
264
|
-
color: string;
|
|
265
|
-
unit?: string;
|
|
266
|
-
visible: boolean;
|
|
267
|
-
strokeWidth: number;
|
|
268
|
-
radius: number;
|
|
269
|
-
format?: GraphValueFormat;
|
|
270
|
-
prefix?: string;
|
|
271
|
-
suffix?: string;
|
|
272
|
-
yAxisId?: string | number;
|
|
273
|
-
}
|
|
274
|
-
interface UseGraphSeriesOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
275
|
-
data?: TData[];
|
|
276
|
-
series?: GraphSeries[];
|
|
277
|
-
excludeKeys?: string[];
|
|
278
|
-
xKey?: string;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
interface GraphThemePanel {
|
|
282
|
-
background: string;
|
|
283
|
-
border: string;
|
|
284
|
-
radius: string;
|
|
285
|
-
shadow: string;
|
|
286
|
-
}
|
|
287
|
-
interface GraphThemeText {
|
|
288
|
-
title: string;
|
|
289
|
-
description: string;
|
|
290
|
-
muted: string;
|
|
291
|
-
}
|
|
292
|
-
interface GraphThemeChart {
|
|
293
|
-
grid: string;
|
|
294
|
-
axis: string;
|
|
295
|
-
cursor: string;
|
|
296
|
-
}
|
|
297
|
-
interface GraphThemeTooltip {
|
|
298
|
-
background: string;
|
|
299
|
-
border: string;
|
|
300
|
-
text: string;
|
|
301
|
-
muted: string;
|
|
302
|
-
}
|
|
303
|
-
interface GraphTheme {
|
|
304
|
-
panel: GraphThemePanel;
|
|
305
|
-
text: GraphThemeText;
|
|
306
|
-
chart: GraphThemeChart;
|
|
307
|
-
tooltip: GraphThemeTooltip;
|
|
308
|
-
colors: string[];
|
|
309
|
-
}
|
|
310
|
-
type GraphThemeMode = "dark" | "light";
|
|
311
|
-
interface UseGraphThemeOptions {
|
|
312
|
-
mode?: GraphThemeMode;
|
|
313
|
-
theme?: Partial<GraphTheme>;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
type GraphPrimitive = string | number | boolean | Date | null | undefined;
|
|
317
|
-
type GraphDataPoint = Record<string, GraphPrimitive>;
|
|
318
|
-
type GraphStatus = "idle" | "loading" | "success" | "error" | "streaming";
|
|
319
|
-
type GraphDataMode = "static" | "polling" | "realtime";
|
|
320
|
-
type GraphChartType = "line" | "area" | "bar" | "pie" | "scatter" | "gauge" | "stat";
|
|
321
|
-
type GraphValueFormat = "raw" | "number" | "integer" | "compact" | "percent" | "currency" | "bytes" | "duration";
|
|
322
|
-
interface GraphState<TData extends GraphDataPoint = GraphDataPoint> {
|
|
323
|
-
data: TData[];
|
|
324
|
-
loading: boolean;
|
|
325
|
-
error: Error | null;
|
|
326
|
-
status: GraphStatus;
|
|
327
|
-
lastUpdatedAt?: Date;
|
|
328
|
-
}
|
|
329
|
-
interface GraphContextValue<TData extends GraphDataPoint = GraphDataPoint> extends GraphState<TData> {
|
|
330
|
-
mode?: GraphDataMode;
|
|
331
|
-
maxDataPoints: number;
|
|
332
|
-
refresh: () => Promise<void>;
|
|
333
|
-
replaceData: (data: TData[]) => void;
|
|
334
|
-
appendData: (data: TData | TData[]) => void;
|
|
335
|
-
clearData: () => void;
|
|
336
|
-
}
|
|
337
|
-
interface GraphProviderProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
338
|
-
children: ReactNode;
|
|
339
|
-
data?: TData[];
|
|
340
|
-
dataSource?: GraphDataSource<TData>;
|
|
341
|
-
maxDataPoints?: number;
|
|
342
|
-
autoLoad?: boolean;
|
|
343
|
-
theme?: Partial<GraphTheme>;
|
|
344
|
-
onDataChange?: (data: TData[]) => void;
|
|
345
|
-
onError?: (error: Error) => void;
|
|
346
|
-
}
|
|
347
|
-
interface BaseGraphProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
348
|
-
data?: TData[];
|
|
349
|
-
xKey?: keyof TData | string;
|
|
350
|
-
series?: GraphSeries[];
|
|
351
|
-
height?: number;
|
|
352
|
-
loading?: boolean;
|
|
353
|
-
error?: Error | null;
|
|
354
|
-
className?: string;
|
|
355
|
-
showGrid?: boolean;
|
|
356
|
-
showTooltip?: boolean;
|
|
357
|
-
showLegend?: boolean;
|
|
358
|
-
animated?: boolean;
|
|
359
|
-
}
|
|
360
|
-
interface GraphTooltipPayload {
|
|
361
|
-
name?: string;
|
|
362
|
-
value?: unknown;
|
|
363
|
-
color?: string;
|
|
364
|
-
dataKey?: string;
|
|
365
|
-
payload?: GraphDataPoint;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
interface GraphPanelConfig {
|
|
369
|
-
title?: ReactNode;
|
|
370
|
-
description?: ReactNode;
|
|
371
|
-
actions?: ReactNode;
|
|
372
|
-
toolbar?: ReactNode;
|
|
373
|
-
withPanel?: boolean;
|
|
374
|
-
showToolbar?: boolean;
|
|
375
|
-
showRefresh?: boolean;
|
|
376
|
-
showLastUpdated?: boolean;
|
|
377
|
-
emptyMessage?: ReactNode;
|
|
378
|
-
emptyDescription?: ReactNode;
|
|
379
|
-
onRetry?: () => void | Promise<void>;
|
|
380
|
-
}
|
|
381
|
-
interface GraphPieConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
382
|
-
nameKey?: keyof TData | string;
|
|
383
|
-
valueKey?: keyof TData | string;
|
|
384
|
-
innerRadius?: number | string;
|
|
385
|
-
outerRadius?: number | string;
|
|
386
|
-
valueFormat?: GraphValueFormat;
|
|
387
|
-
unit?: string;
|
|
388
|
-
}
|
|
389
|
-
interface GraphGaugeConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
390
|
-
valueKey?: keyof TData | string;
|
|
391
|
-
/**
|
|
392
|
-
* Shared with StatGraph.
|
|
393
|
-
* GaugeGraph uses only number values at runtime.
|
|
394
|
-
*/
|
|
395
|
-
value?: number | string;
|
|
396
|
-
label?: string;
|
|
397
|
-
min?: number;
|
|
398
|
-
max?: number;
|
|
399
|
-
color?: string;
|
|
400
|
-
unit?: string;
|
|
401
|
-
format?: GraphValueFormat;
|
|
402
|
-
}
|
|
403
|
-
interface GraphStatConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
404
|
-
valueKey?: keyof TData | string;
|
|
405
|
-
value?: number | string;
|
|
406
|
-
previousValue?: number;
|
|
407
|
-
label?: string;
|
|
408
|
-
format?: GraphValueFormat;
|
|
409
|
-
prefix?: string;
|
|
410
|
-
suffix?: string;
|
|
411
|
-
unit?: string;
|
|
412
|
-
showTrend?: boolean;
|
|
413
|
-
}
|
|
414
|
-
interface GraphBarConfig {
|
|
415
|
-
layout?: "horizontal" | "vertical";
|
|
416
|
-
}
|
|
417
|
-
interface GraphProps<TData extends GraphDataPoint = GraphDataPoint> extends Omit<BaseGraphProps<TData>, "data">, GraphPanelConfig, GraphPieConfig<TData>, GraphGaugeConfig<TData>, GraphStatConfig<TData>, GraphBarConfig {
|
|
418
|
-
children?: ReactNode;
|
|
419
|
-
type?: GraphChartType;
|
|
420
|
-
data?: TData[];
|
|
421
|
-
dataSource?: GraphDataSource<TData>;
|
|
422
|
-
autoLoad?: GraphProviderProps<TData>["autoLoad"];
|
|
423
|
-
maxDataPoints?: GraphProviderProps<TData>["maxDataPoints"];
|
|
424
|
-
theme?: Partial<GraphTheme>;
|
|
425
|
-
themeMode?: GraphThemeMode;
|
|
426
|
-
chartClassName?: string;
|
|
427
|
-
contentClassName?: string;
|
|
428
|
-
onDataChange?: GraphProviderProps<TData>["onDataChange"];
|
|
429
|
-
onError?: GraphProviderProps<TData>["onError"];
|
|
430
|
-
}
|
|
431
|
-
interface GraphRenderChartProps<TData extends GraphDataPoint = GraphDataPoint> extends GraphProps<TData> {
|
|
432
|
-
series?: GraphSeries[];
|
|
207
|
+
type GraphUnsubscribe = () => void;
|
|
208
|
+
type GraphDataHandler<TData extends GraphDataPoint = GraphDataPoint> = (data: TData | TData[]) => void;
|
|
209
|
+
type GraphErrorHandler = (error: Error) => void;
|
|
210
|
+
interface GraphDataSource<TData extends GraphDataPoint = GraphDataPoint> {
|
|
211
|
+
mode: GraphDataMode;
|
|
212
|
+
getInitialData?: () => Promise<TData[]> | TData[];
|
|
213
|
+
refresh?: () => Promise<TData[]> | TData[];
|
|
214
|
+
subscribe?: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
215
|
+
}
|
|
216
|
+
interface StaticGraphDataSourceOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
217
|
+
data: TData[];
|
|
218
|
+
}
|
|
219
|
+
interface PollingGraphDataSourceOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
220
|
+
interval?: number;
|
|
221
|
+
immediate?: boolean;
|
|
222
|
+
fetcher: () => Promise<TData[]> | TData[];
|
|
223
|
+
}
|
|
224
|
+
interface RealtimeGraphDataSourceOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
225
|
+
connect: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
226
|
+
getInitialData?: () => Promise<TData[]> | TData[];
|
|
227
|
+
refresh?: () => Promise<TData[]> | TData[];
|
|
228
|
+
}
|
|
229
|
+
interface UseGraphPollingOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
230
|
+
enabled?: boolean;
|
|
231
|
+
interval?: number;
|
|
232
|
+
immediate?: boolean;
|
|
233
|
+
normalize?: boolean;
|
|
234
|
+
fetcher: () => Promise<TData[]> | TData[];
|
|
235
|
+
onData?: (data: TData[]) => void;
|
|
236
|
+
onError?: GraphErrorHandler;
|
|
237
|
+
}
|
|
238
|
+
interface UseGraphRealtimeOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
239
|
+
enabled?: boolean;
|
|
240
|
+
maxDataPoints?: number;
|
|
241
|
+
normalize?: boolean;
|
|
242
|
+
connect: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
243
|
+
onData?: (data: TData[]) => void;
|
|
244
|
+
onError?: GraphErrorHandler;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
type GraphSeriesType = "line" | "area" | "bar" | "scatter";
|
|
248
|
+
type GraphSeriesColor = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "muted" | string;
|
|
249
|
+
interface GraphSeries {
|
|
250
|
+
key: string;
|
|
251
|
+
label?: string;
|
|
252
|
+
type?: GraphSeriesType;
|
|
253
|
+
color?: GraphSeriesColor;
|
|
254
|
+
unit?: string;
|
|
255
|
+
visible?: boolean;
|
|
256
|
+
strokeWidth?: number;
|
|
257
|
+
radius?: number;
|
|
258
|
+
format?: GraphValueFormat;
|
|
259
|
+
prefix?: string;
|
|
260
|
+
suffix?: string;
|
|
261
|
+
yAxisId?: string | number;
|
|
262
|
+
}
|
|
263
|
+
interface ResolvedGraphSeries extends Required<Pick<GraphSeries, "key">> {
|
|
264
|
+
label: string;
|
|
265
|
+
type: GraphSeriesType;
|
|
266
|
+
color: string;
|
|
267
|
+
unit?: string;
|
|
268
|
+
visible: boolean;
|
|
269
|
+
strokeWidth: number;
|
|
270
|
+
radius: number;
|
|
271
|
+
format?: GraphValueFormat;
|
|
272
|
+
prefix?: string;
|
|
273
|
+
suffix?: string;
|
|
274
|
+
yAxisId?: string | number;
|
|
275
|
+
}
|
|
276
|
+
interface UseGraphSeriesOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
277
|
+
data?: TData[];
|
|
278
|
+
series?: GraphSeries[];
|
|
279
|
+
excludeKeys?: string[];
|
|
280
|
+
xKey?: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface GraphThemePanel {
|
|
284
|
+
background: string;
|
|
285
|
+
border: string;
|
|
286
|
+
radius: string;
|
|
287
|
+
shadow: string;
|
|
288
|
+
}
|
|
289
|
+
interface GraphThemeText {
|
|
290
|
+
title: string;
|
|
291
|
+
description: string;
|
|
292
|
+
muted: string;
|
|
293
|
+
}
|
|
294
|
+
interface GraphThemeChart {
|
|
295
|
+
grid: string;
|
|
296
|
+
axis: string;
|
|
297
|
+
cursor: string;
|
|
298
|
+
}
|
|
299
|
+
interface GraphThemeTooltip {
|
|
300
|
+
background: string;
|
|
301
|
+
border: string;
|
|
302
|
+
text: string;
|
|
303
|
+
muted: string;
|
|
304
|
+
}
|
|
305
|
+
interface GraphTheme {
|
|
306
|
+
panel: GraphThemePanel;
|
|
307
|
+
text: GraphThemeText;
|
|
308
|
+
chart: GraphThemeChart;
|
|
309
|
+
tooltip: GraphThemeTooltip;
|
|
310
|
+
colors: string[];
|
|
311
|
+
}
|
|
312
|
+
type GraphThemeMode = "dark" | "light";
|
|
313
|
+
interface UseGraphThemeOptions {
|
|
314
|
+
mode?: GraphThemeMode;
|
|
315
|
+
theme?: Partial<GraphTheme>;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
type GraphPrimitive = string | number | boolean | Date | null | undefined;
|
|
319
|
+
type GraphDataPoint = Record<string, GraphPrimitive>;
|
|
320
|
+
type GraphStatus = "idle" | "loading" | "success" | "error" | "streaming";
|
|
321
|
+
type GraphDataMode = "static" | "polling" | "realtime";
|
|
322
|
+
type GraphChartType = "line" | "area" | "bar" | "pie" | "scatter" | "gauge" | "stat";
|
|
323
|
+
type GraphValueFormat = "raw" | "number" | "integer" | "compact" | "percent" | "currency" | "bytes" | "duration";
|
|
324
|
+
interface GraphState<TData extends GraphDataPoint = GraphDataPoint> {
|
|
325
|
+
data: TData[];
|
|
326
|
+
loading: boolean;
|
|
327
|
+
error: Error | null;
|
|
328
|
+
status: GraphStatus;
|
|
329
|
+
lastUpdatedAt?: Date;
|
|
330
|
+
}
|
|
331
|
+
interface GraphContextValue<TData extends GraphDataPoint = GraphDataPoint> extends GraphState<TData> {
|
|
332
|
+
mode?: GraphDataMode;
|
|
333
|
+
maxDataPoints: number;
|
|
334
|
+
refresh: () => Promise<void>;
|
|
335
|
+
replaceData: (data: TData[]) => void;
|
|
336
|
+
appendData: (data: TData | TData[]) => void;
|
|
337
|
+
clearData: () => void;
|
|
338
|
+
}
|
|
339
|
+
interface GraphProviderProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
340
|
+
children: ReactNode;
|
|
341
|
+
data?: TData[];
|
|
342
|
+
dataSource?: GraphDataSource<TData>;
|
|
343
|
+
maxDataPoints?: number;
|
|
344
|
+
autoLoad?: boolean;
|
|
345
|
+
theme?: Partial<GraphTheme>;
|
|
346
|
+
onDataChange?: (data: TData[]) => void;
|
|
347
|
+
onError?: (error: Error) => void;
|
|
348
|
+
}
|
|
349
|
+
interface BaseGraphProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
350
|
+
data?: TData[];
|
|
351
|
+
xKey?: keyof TData | string;
|
|
352
|
+
series?: GraphSeries[];
|
|
353
|
+
height?: number;
|
|
354
|
+
loading?: boolean;
|
|
355
|
+
error?: Error | null;
|
|
356
|
+
className?: string;
|
|
357
|
+
showGrid?: boolean;
|
|
358
|
+
showTooltip?: boolean;
|
|
359
|
+
showLegend?: boolean;
|
|
360
|
+
animated?: boolean;
|
|
361
|
+
}
|
|
362
|
+
interface GraphTooltipPayload {
|
|
363
|
+
name?: string;
|
|
364
|
+
value?: unknown;
|
|
365
|
+
color?: string;
|
|
366
|
+
dataKey?: string;
|
|
367
|
+
payload?: GraphDataPoint;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface GraphPanelConfig {
|
|
371
|
+
title?: ReactNode;
|
|
372
|
+
description?: ReactNode;
|
|
373
|
+
actions?: ReactNode;
|
|
374
|
+
toolbar?: ReactNode;
|
|
375
|
+
withPanel?: boolean;
|
|
376
|
+
showToolbar?: boolean;
|
|
377
|
+
showRefresh?: boolean;
|
|
378
|
+
showLastUpdated?: boolean;
|
|
379
|
+
emptyMessage?: ReactNode;
|
|
380
|
+
emptyDescription?: ReactNode;
|
|
381
|
+
onRetry?: () => void | Promise<void>;
|
|
382
|
+
}
|
|
383
|
+
interface GraphPieConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
384
|
+
nameKey?: keyof TData | string;
|
|
385
|
+
valueKey?: keyof TData | string;
|
|
386
|
+
innerRadius?: number | string;
|
|
387
|
+
outerRadius?: number | string;
|
|
388
|
+
valueFormat?: GraphValueFormat;
|
|
389
|
+
unit?: string;
|
|
390
|
+
}
|
|
391
|
+
interface GraphGaugeConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
392
|
+
valueKey?: keyof TData | string;
|
|
393
|
+
/**
|
|
394
|
+
* Shared with StatGraph.
|
|
395
|
+
* GaugeGraph uses only number values at runtime.
|
|
396
|
+
*/
|
|
397
|
+
value?: number | string;
|
|
398
|
+
label?: string;
|
|
399
|
+
min?: number;
|
|
400
|
+
max?: number;
|
|
401
|
+
color?: string;
|
|
402
|
+
unit?: string;
|
|
403
|
+
format?: GraphValueFormat;
|
|
404
|
+
}
|
|
405
|
+
interface GraphStatConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
406
|
+
valueKey?: keyof TData | string;
|
|
407
|
+
value?: number | string;
|
|
408
|
+
previousValue?: number;
|
|
409
|
+
label?: string;
|
|
410
|
+
format?: GraphValueFormat;
|
|
411
|
+
prefix?: string;
|
|
412
|
+
suffix?: string;
|
|
413
|
+
unit?: string;
|
|
414
|
+
showTrend?: boolean;
|
|
415
|
+
}
|
|
416
|
+
interface GraphBarConfig {
|
|
417
|
+
layout?: "horizontal" | "vertical";
|
|
418
|
+
}
|
|
419
|
+
interface GraphProps<TData extends GraphDataPoint = GraphDataPoint> extends Omit<BaseGraphProps<TData>, "data">, GraphPanelConfig, GraphPieConfig<TData>, GraphGaugeConfig<TData>, GraphStatConfig<TData>, GraphBarConfig {
|
|
420
|
+
children?: ReactNode;
|
|
421
|
+
type?: GraphChartType;
|
|
422
|
+
data?: TData[];
|
|
423
|
+
dataSource?: GraphDataSource<TData>;
|
|
424
|
+
autoLoad?: GraphProviderProps<TData>["autoLoad"];
|
|
425
|
+
maxDataPoints?: GraphProviderProps<TData>["maxDataPoints"];
|
|
426
|
+
theme?: Partial<GraphTheme>;
|
|
427
|
+
themeMode?: GraphThemeMode;
|
|
428
|
+
chartClassName?: string;
|
|
429
|
+
contentClassName?: string;
|
|
430
|
+
onDataChange?: GraphProviderProps<TData>["onDataChange"];
|
|
431
|
+
onError?: GraphProviderProps<TData>["onError"];
|
|
432
|
+
}
|
|
433
|
+
interface GraphRenderChartProps<TData extends GraphDataPoint = GraphDataPoint> extends GraphProps<TData> {
|
|
434
|
+
series?: GraphSeries[];
|
|
433
435
|
}
|
|
434
436
|
|
|
435
437
|
declare function Graph<TData extends GraphDataPoint = GraphDataPoint>(props: GraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
436
438
|
|
|
437
|
-
interface GraphPanelProps {
|
|
438
|
-
title?: ReactNode;
|
|
439
|
-
description?: ReactNode;
|
|
440
|
-
actions?: ReactNode;
|
|
441
|
-
toolbar?: ReactNode;
|
|
442
|
-
children: ReactNode;
|
|
443
|
-
className?: string;
|
|
444
|
-
contentClassName?: string;
|
|
445
|
-
height?: number;
|
|
446
|
-
loading?: boolean;
|
|
447
|
-
error?: Error | null;
|
|
448
|
-
empty?: boolean;
|
|
449
|
-
emptyMessage?: ReactNode;
|
|
450
|
-
emptyDescription?: ReactNode;
|
|
451
|
-
showToolbar?: boolean;
|
|
452
|
-
showRefresh?: boolean;
|
|
453
|
-
showLastUpdated?: boolean;
|
|
454
|
-
onRetry?: () => void | Promise<void>;
|
|
455
|
-
}
|
|
439
|
+
interface GraphPanelProps {
|
|
440
|
+
title?: ReactNode;
|
|
441
|
+
description?: ReactNode;
|
|
442
|
+
actions?: ReactNode;
|
|
443
|
+
toolbar?: ReactNode;
|
|
444
|
+
children: ReactNode;
|
|
445
|
+
className?: string;
|
|
446
|
+
contentClassName?: string;
|
|
447
|
+
height?: number;
|
|
448
|
+
loading?: boolean;
|
|
449
|
+
error?: Error | null;
|
|
450
|
+
empty?: boolean;
|
|
451
|
+
emptyMessage?: ReactNode;
|
|
452
|
+
emptyDescription?: ReactNode;
|
|
453
|
+
showToolbar?: boolean;
|
|
454
|
+
showRefresh?: boolean;
|
|
455
|
+
showLastUpdated?: boolean;
|
|
456
|
+
onRetry?: () => void | Promise<void>;
|
|
457
|
+
}
|
|
456
458
|
declare function GraphPanel({ title, description, actions, toolbar, children, className, contentClassName, height, loading, error, empty, emptyMessage, emptyDescription, showToolbar, showRefresh, showLastUpdated, onRetry, }: GraphPanelProps): react_jsx_runtime.JSX.Element;
|
|
457
459
|
|
|
458
|
-
interface GraphHeaderProps {
|
|
459
|
-
title?: ReactNode;
|
|
460
|
-
description?: ReactNode;
|
|
461
|
-
actions?: ReactNode;
|
|
462
|
-
className?: string;
|
|
463
|
-
}
|
|
460
|
+
interface GraphHeaderProps {
|
|
461
|
+
title?: ReactNode;
|
|
462
|
+
description?: ReactNode;
|
|
463
|
+
actions?: ReactNode;
|
|
464
|
+
className?: string;
|
|
465
|
+
}
|
|
464
466
|
declare function GraphHeader({ title, description, actions, className, }: GraphHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
465
467
|
|
|
466
|
-
interface GraphToolbarProps {
|
|
467
|
-
children?: ReactNode;
|
|
468
|
-
className?: string;
|
|
469
|
-
showRefresh?: boolean;
|
|
470
|
-
showLastUpdated?: boolean;
|
|
471
|
-
refreshLabel?: ReactNode;
|
|
472
|
-
onRefresh?: () => void | Promise<void>;
|
|
473
|
-
}
|
|
468
|
+
interface GraphToolbarProps {
|
|
469
|
+
children?: ReactNode;
|
|
470
|
+
className?: string;
|
|
471
|
+
showRefresh?: boolean;
|
|
472
|
+
showLastUpdated?: boolean;
|
|
473
|
+
refreshLabel?: ReactNode;
|
|
474
|
+
onRefresh?: () => void | Promise<void>;
|
|
475
|
+
}
|
|
474
476
|
declare function GraphToolbar({ children, className, showRefresh, showLastUpdated, refreshLabel, onRefresh, }: GraphToolbarProps): react_jsx_runtime.JSX.Element | null;
|
|
475
477
|
|
|
476
|
-
interface GraphLegendItem {
|
|
477
|
-
key: string;
|
|
478
|
-
label?: string;
|
|
479
|
-
color?: string;
|
|
480
|
-
value?: unknown;
|
|
481
|
-
unit?: string;
|
|
482
|
-
format?: GraphValueFormat;
|
|
483
|
-
prefix?: string;
|
|
484
|
-
suffix?: string;
|
|
485
|
-
active?: boolean;
|
|
486
|
-
}
|
|
487
|
-
interface GraphLegendProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
488
|
-
items?: GraphLegendItem[];
|
|
489
|
-
series?: GraphSeries[];
|
|
490
|
-
data?: TData[];
|
|
491
|
-
className?: string;
|
|
492
|
-
showValues?: boolean;
|
|
493
|
-
valueSource?: "latest" | "none";
|
|
494
|
-
onItemClick?: (item: GraphLegendItem) => void;
|
|
495
|
-
}
|
|
478
|
+
interface GraphLegendItem {
|
|
479
|
+
key: string;
|
|
480
|
+
label?: string;
|
|
481
|
+
color?: string;
|
|
482
|
+
value?: unknown;
|
|
483
|
+
unit?: string;
|
|
484
|
+
format?: GraphValueFormat;
|
|
485
|
+
prefix?: string;
|
|
486
|
+
suffix?: string;
|
|
487
|
+
active?: boolean;
|
|
488
|
+
}
|
|
489
|
+
interface GraphLegendProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
490
|
+
items?: GraphLegendItem[];
|
|
491
|
+
series?: GraphSeries[];
|
|
492
|
+
data?: TData[];
|
|
493
|
+
className?: string;
|
|
494
|
+
showValues?: boolean;
|
|
495
|
+
valueSource?: "latest" | "none";
|
|
496
|
+
onItemClick?: (item: GraphLegendItem) => void;
|
|
497
|
+
}
|
|
496
498
|
declare function GraphLegend<TData extends GraphDataPoint = GraphDataPoint>({ items, series, data, className, showValues, valueSource, onItemClick, }: GraphLegendProps<TData>): react_jsx_runtime.JSX.Element | null;
|
|
497
499
|
|
|
498
|
-
interface GraphTooltipFormatterOptions {
|
|
499
|
-
format?: GraphValueFormat;
|
|
500
|
-
prefix?: string;
|
|
501
|
-
suffix?: string;
|
|
502
|
-
unit?: string;
|
|
503
|
-
}
|
|
504
|
-
interface GraphTooltipProps {
|
|
505
|
-
active?: boolean;
|
|
506
|
-
label?: string | number;
|
|
507
|
-
payload?: GraphTooltipPayload[];
|
|
508
|
-
className?: string;
|
|
509
|
-
labelFormatter?: (label: string | number) => string;
|
|
510
|
-
valueFormatter?: (value: unknown, name?: string, payload?: GraphTooltipPayload) => string;
|
|
511
|
-
seriesFormatters?: Record<string, GraphTooltipFormatterOptions>;
|
|
512
|
-
}
|
|
500
|
+
interface GraphTooltipFormatterOptions {
|
|
501
|
+
format?: GraphValueFormat;
|
|
502
|
+
prefix?: string;
|
|
503
|
+
suffix?: string;
|
|
504
|
+
unit?: string;
|
|
505
|
+
}
|
|
506
|
+
interface GraphTooltipProps {
|
|
507
|
+
active?: boolean;
|
|
508
|
+
label?: string | number;
|
|
509
|
+
payload?: GraphTooltipPayload[];
|
|
510
|
+
className?: string;
|
|
511
|
+
labelFormatter?: (label: string | number) => string;
|
|
512
|
+
valueFormatter?: (value: unknown, name?: string, payload?: GraphTooltipPayload) => string;
|
|
513
|
+
seriesFormatters?: Record<string, GraphTooltipFormatterOptions>;
|
|
514
|
+
}
|
|
513
515
|
declare function GraphTooltip({ active, label, payload, className, labelFormatter, valueFormatter, seriesFormatters, }: GraphTooltipProps): react_jsx_runtime.JSX.Element | null;
|
|
514
516
|
|
|
515
|
-
interface GraphEmptyStateProps {
|
|
516
|
-
height?: number;
|
|
517
|
-
message?: ReactNode;
|
|
518
|
-
description?: ReactNode;
|
|
519
|
-
className?: string;
|
|
520
|
-
}
|
|
517
|
+
interface GraphEmptyStateProps {
|
|
518
|
+
height?: number;
|
|
519
|
+
message?: ReactNode;
|
|
520
|
+
description?: ReactNode;
|
|
521
|
+
className?: string;
|
|
522
|
+
}
|
|
521
523
|
declare function GraphEmptyState({ height, message, description, className, }: GraphEmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
522
524
|
|
|
523
|
-
interface GraphErrorStateProps {
|
|
524
|
-
error?: Error | null;
|
|
525
|
-
height?: number;
|
|
526
|
-
title?: ReactNode;
|
|
527
|
-
message?: ReactNode;
|
|
528
|
-
className?: string;
|
|
529
|
-
onRetry?: () => void | Promise<void>;
|
|
530
|
-
retryLabel?: ReactNode;
|
|
531
|
-
}
|
|
525
|
+
interface GraphErrorStateProps {
|
|
526
|
+
error?: Error | null;
|
|
527
|
+
height?: number;
|
|
528
|
+
title?: ReactNode;
|
|
529
|
+
message?: ReactNode;
|
|
530
|
+
className?: string;
|
|
531
|
+
onRetry?: () => void | Promise<void>;
|
|
532
|
+
retryLabel?: ReactNode;
|
|
533
|
+
}
|
|
532
534
|
declare function GraphErrorState({ error, height, title, message, className, onRetry, retryLabel, }: GraphErrorStateProps): react_jsx_runtime.JSX.Element;
|
|
533
535
|
|
|
534
|
-
interface GraphLoadingStateProps {
|
|
535
|
-
height?: number;
|
|
536
|
-
message?: ReactNode;
|
|
537
|
-
className?: string;
|
|
538
|
-
showMessage?: boolean;
|
|
539
|
-
}
|
|
536
|
+
interface GraphLoadingStateProps {
|
|
537
|
+
height?: number;
|
|
538
|
+
message?: ReactNode;
|
|
539
|
+
className?: string;
|
|
540
|
+
showMessage?: boolean;
|
|
541
|
+
}
|
|
540
542
|
declare function GraphLoadingState({ height, message, className, showMessage, }: GraphLoadingStateProps): react_jsx_runtime.JSX.Element;
|
|
541
543
|
|
|
542
|
-
interface GraphContainerProps {
|
|
543
|
-
children: ReactNode;
|
|
544
|
-
height?: number;
|
|
545
|
-
className?: string;
|
|
546
|
-
contentClassName?: string;
|
|
547
|
-
}
|
|
544
|
+
interface GraphContainerProps {
|
|
545
|
+
children: ReactNode;
|
|
546
|
+
height?: number;
|
|
547
|
+
className?: string;
|
|
548
|
+
contentClassName?: string;
|
|
549
|
+
}
|
|
548
550
|
declare function GraphContainer({ children, height, className, contentClassName, }: GraphContainerProps): react_jsx_runtime.JSX.Element;
|
|
549
551
|
|
|
550
552
|
declare function LineGraph<TData extends GraphDataPoint = GraphDataPoint>({ data, xKey, series, height, loading, error, className, showGrid, showTooltip, showLegend, animated, }: BaseGraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
551
553
|
|
|
552
554
|
declare function AreaGraph<TData extends GraphDataPoint = GraphDataPoint>({ data, xKey, series, height, loading, error, className, showGrid, showTooltip, showLegend, animated, }: BaseGraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
553
555
|
|
|
554
|
-
interface BarGraphProps<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphProps<TData> {
|
|
555
|
-
layout?: "horizontal" | "vertical";
|
|
556
|
-
}
|
|
556
|
+
interface BarGraphProps<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphProps<TData> {
|
|
557
|
+
layout?: "horizontal" | "vertical";
|
|
558
|
+
}
|
|
557
559
|
declare function BarGraph<TData extends GraphDataPoint = GraphDataPoint>({ data, xKey, series, height, loading, error, className, showGrid, showTooltip, showLegend, animated, layout, }: BarGraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
558
560
|
|
|
559
|
-
interface PieGraphProps<TData extends GraphDataPoint = GraphDataPoint> extends Omit<BaseGraphProps<TData>, "xKey" | "series"> {
|
|
560
|
-
nameKey?: keyof TData | string;
|
|
561
|
-
valueKey?: keyof TData | string;
|
|
562
|
-
innerRadius?: number | string;
|
|
563
|
-
outerRadius?: number | string;
|
|
564
|
-
valueFormat?: GraphValueFormat;
|
|
565
|
-
unit?: string;
|
|
566
|
-
}
|
|
561
|
+
interface PieGraphProps<TData extends GraphDataPoint = GraphDataPoint> extends Omit<BaseGraphProps<TData>, "xKey" | "series"> {
|
|
562
|
+
nameKey?: keyof TData | string;
|
|
563
|
+
valueKey?: keyof TData | string;
|
|
564
|
+
innerRadius?: number | string;
|
|
565
|
+
outerRadius?: number | string;
|
|
566
|
+
valueFormat?: GraphValueFormat;
|
|
567
|
+
unit?: string;
|
|
568
|
+
}
|
|
567
569
|
declare function PieGraph<TData extends GraphDataPoint = GraphDataPoint>({ data, nameKey, valueKey, height, loading, error, className, showTooltip, showLegend, animated, innerRadius, outerRadius, valueFormat, unit, }: PieGraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
568
570
|
|
|
569
571
|
declare function ScatterGraph<TData extends GraphDataPoint = GraphDataPoint>({ data, xKey, series, height, loading, error, className, showGrid, showTooltip, showLegend, animated, }: BaseGraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
570
572
|
|
|
571
|
-
interface GaugeGraphProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
572
|
-
data?: TData[];
|
|
573
|
-
valueKey?: keyof TData | string;
|
|
574
|
-
label?: string;
|
|
575
|
-
value?: number;
|
|
576
|
-
min?: number;
|
|
577
|
-
max?: number;
|
|
578
|
-
height?: number;
|
|
579
|
-
color?: string;
|
|
580
|
-
unit?: string;
|
|
581
|
-
format?: GraphValueFormat;
|
|
582
|
-
loading?: boolean;
|
|
583
|
-
error?: Error | null;
|
|
584
|
-
className?: string;
|
|
585
|
-
}
|
|
573
|
+
interface GaugeGraphProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
574
|
+
data?: TData[];
|
|
575
|
+
valueKey?: keyof TData | string;
|
|
576
|
+
label?: string;
|
|
577
|
+
value?: number;
|
|
578
|
+
min?: number;
|
|
579
|
+
max?: number;
|
|
580
|
+
height?: number;
|
|
581
|
+
color?: string;
|
|
582
|
+
unit?: string;
|
|
583
|
+
format?: GraphValueFormat;
|
|
584
|
+
loading?: boolean;
|
|
585
|
+
error?: Error | null;
|
|
586
|
+
className?: string;
|
|
587
|
+
}
|
|
586
588
|
declare function GaugeGraph<TData extends GraphDataPoint = GraphDataPoint>({ data, valueKey, label, value, min, max, height, color, unit, format, loading, error, className, }: GaugeGraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
587
589
|
|
|
588
|
-
interface StatGraphProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
589
|
-
data?: TData[];
|
|
590
|
-
valueKey?: keyof TData | string;
|
|
591
|
-
label?: string;
|
|
592
|
-
value?: number | string;
|
|
593
|
-
previousValue?: number;
|
|
594
|
-
format?: GraphValueFormat;
|
|
595
|
-
prefix?: string;
|
|
596
|
-
suffix?: string;
|
|
597
|
-
unit?: string;
|
|
598
|
-
loading?: boolean;
|
|
599
|
-
error?: Error | null;
|
|
600
|
-
className?: string;
|
|
601
|
-
showTrend?: boolean;
|
|
602
|
-
}
|
|
590
|
+
interface StatGraphProps<TData extends GraphDataPoint = GraphDataPoint> {
|
|
591
|
+
data?: TData[];
|
|
592
|
+
valueKey?: keyof TData | string;
|
|
593
|
+
label?: string;
|
|
594
|
+
value?: number | string;
|
|
595
|
+
previousValue?: number;
|
|
596
|
+
format?: GraphValueFormat;
|
|
597
|
+
prefix?: string;
|
|
598
|
+
suffix?: string;
|
|
599
|
+
unit?: string;
|
|
600
|
+
loading?: boolean;
|
|
601
|
+
error?: Error | null;
|
|
602
|
+
className?: string;
|
|
603
|
+
showTrend?: boolean;
|
|
604
|
+
}
|
|
603
605
|
declare function StatGraph<TData extends GraphDataPoint = GraphDataPoint>({ data, valueKey, label, value, previousValue, format, prefix, suffix, unit, loading, error, className, showTrend, }: StatGraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
604
606
|
|
|
605
607
|
declare function GraphProvider<TData extends GraphDataPoint = GraphDataPoint>({ children, data, dataSource, maxDataPoints, autoLoad, onDataChange, onError, }: GraphProviderProps<TData>): react_jsx_runtime.JSX.Element;
|
|
@@ -608,488 +610,545 @@ declare const GraphContext: React$1.Context<GraphContextValue<GraphDataPoint>>;
|
|
|
608
610
|
|
|
609
611
|
declare function useGraphContext<TData extends GraphDataPoint = GraphDataPoint>(): GraphContextValue<TData>;
|
|
610
612
|
|
|
611
|
-
type GraphAction<TData extends GraphDataPoint = GraphDataPoint> = {
|
|
612
|
-
type: "SET_LOADING";
|
|
613
|
-
payload?: boolean;
|
|
614
|
-
} | {
|
|
615
|
-
type: "SET_ERROR";
|
|
616
|
-
payload: Error | null;
|
|
617
|
-
} | {
|
|
618
|
-
type: "SET_DATA";
|
|
619
|
-
payload: TData[];
|
|
620
|
-
} | {
|
|
621
|
-
type: "APPEND_DATA";
|
|
622
|
-
payload: {
|
|
623
|
-
data: TData | TData[];
|
|
624
|
-
maxDataPoints?: number;
|
|
625
|
-
};
|
|
626
|
-
} | {
|
|
627
|
-
type: "CLEAR_DATA";
|
|
628
|
-
} | {
|
|
629
|
-
type: "SET_STREAMING";
|
|
630
|
-
payload?: boolean;
|
|
631
|
-
};
|
|
632
|
-
declare function createInitialGraphState<TData extends GraphDataPoint = GraphDataPoint>(data?: TData[]): GraphState<TData>;
|
|
613
|
+
type GraphAction<TData extends GraphDataPoint = GraphDataPoint> = {
|
|
614
|
+
type: "SET_LOADING";
|
|
615
|
+
payload?: boolean;
|
|
616
|
+
} | {
|
|
617
|
+
type: "SET_ERROR";
|
|
618
|
+
payload: Error | null;
|
|
619
|
+
} | {
|
|
620
|
+
type: "SET_DATA";
|
|
621
|
+
payload: TData[];
|
|
622
|
+
} | {
|
|
623
|
+
type: "APPEND_DATA";
|
|
624
|
+
payload: {
|
|
625
|
+
data: TData | TData[];
|
|
626
|
+
maxDataPoints?: number;
|
|
627
|
+
};
|
|
628
|
+
} | {
|
|
629
|
+
type: "CLEAR_DATA";
|
|
630
|
+
} | {
|
|
631
|
+
type: "SET_STREAMING";
|
|
632
|
+
payload?: boolean;
|
|
633
|
+
};
|
|
634
|
+
declare function createInitialGraphState<TData extends GraphDataPoint = GraphDataPoint>(data?: TData[]): GraphState<TData>;
|
|
633
635
|
declare function graphReducer<TData extends GraphDataPoint = GraphDataPoint>(state: GraphState<TData>, action: GraphAction<TData>): GraphState<TData>;
|
|
634
636
|
|
|
635
|
-
declare abstract class BaseGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> implements GraphDataSource<TData> {
|
|
636
|
-
abstract readonly mode: GraphDataMode;
|
|
637
|
-
getInitialData?(): Promise<TData[]> | TData[];
|
|
638
|
-
refresh?(): Promise<TData[]> | TData[];
|
|
639
|
-
subscribe?(onData: GraphDataHandler<TData>, onError?: GraphErrorHandler): GraphUnsubscribe;
|
|
640
|
-
protected normalizeError(error: unknown): Error;
|
|
641
|
-
protected ensureArray(data: TData | TData[] | null | undefined): TData[];
|
|
642
|
-
protected safeExecute<TResult>(executor: () => Promise<TResult> | TResult): Promise<TResult>;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
interface StaticGraphDataSourceConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
646
|
-
data?: TData[];
|
|
647
|
-
}
|
|
648
|
-
declare class StaticGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphDataSource<TData> {
|
|
649
|
-
readonly mode: GraphDataMode;
|
|
650
|
-
private data;
|
|
651
|
-
constructor(config?: StaticGraphDataSourceConfig<TData> | TData[]);
|
|
652
|
-
getInitialData(): TData[];
|
|
653
|
-
refresh(): TData[];
|
|
654
|
-
setData(data: TData[]): void;
|
|
655
|
-
appendData(data: TData | TData[]): void;
|
|
656
|
-
clearData(): void;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
interface PollingGraphDataSourceConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
660
|
-
fetcher: () => Promise<TData[]> | TData[];
|
|
661
|
-
interval?: number;
|
|
662
|
-
immediate?: boolean;
|
|
663
|
-
}
|
|
664
|
-
declare class PollingGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphDataSource<TData> {
|
|
665
|
-
readonly mode: GraphDataMode;
|
|
666
|
-
private readonly fetcher;
|
|
667
|
-
private readonly interval;
|
|
668
|
-
private readonly immediate;
|
|
669
|
-
constructor(config: PollingGraphDataSourceConfig<TData>);
|
|
670
|
-
getInitialData(): Promise<TData[]>;
|
|
671
|
-
refresh(): Promise<TData[]>;
|
|
672
|
-
subscribe(onData: GraphDataHandler<TData>, onError?: GraphErrorHandler): GraphUnsubscribe;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
interface RealtimeGraphDataSourceConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
676
|
-
connect: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
677
|
-
getInitialData?: () => Promise<TData[]> | TData[];
|
|
678
|
-
refresh?: () => Promise<TData[]> | TData[];
|
|
679
|
-
}
|
|
680
|
-
declare class RealtimeGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphDataSource<TData> {
|
|
681
|
-
readonly mode: GraphDataMode;
|
|
682
|
-
private readonly connect;
|
|
683
|
-
private readonly initialDataLoader?;
|
|
684
|
-
private readonly refreshHandler?;
|
|
685
|
-
constructor(config: RealtimeGraphDataSourceConfig<TData>);
|
|
686
|
-
getInitialData(): Promise<TData[]> | TData[];
|
|
687
|
-
refresh(): Promise<TData[]> | TData[];
|
|
688
|
-
subscribe(onData: GraphDataHandler<TData>, onError?: GraphErrorHandler): GraphUnsubscribe;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
interface UseGraphDataOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
692
|
-
data?: TData[];
|
|
693
|
-
dataSource?: GraphDataSource<TData>;
|
|
694
|
-
autoLoad?: boolean;
|
|
695
|
-
maxDataPoints?: number;
|
|
696
|
-
normalize?: boolean;
|
|
697
|
-
onDataChange?: (data: TData[]) => void;
|
|
698
|
-
onError?: (error: Error) => void;
|
|
699
|
-
}
|
|
700
|
-
interface UseGraphDataReturn<TData extends GraphDataPoint = GraphDataPoint> extends GraphState<TData> {
|
|
701
|
-
refresh: () => Promise<void>;
|
|
702
|
-
replaceData: (data: TData[]) => void;
|
|
703
|
-
appendData: (data: TData | TData[]) => void;
|
|
704
|
-
clearData: () => void;
|
|
705
|
-
}
|
|
637
|
+
declare abstract class BaseGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> implements GraphDataSource<TData> {
|
|
638
|
+
abstract readonly mode: GraphDataMode;
|
|
639
|
+
getInitialData?(): Promise<TData[]> | TData[];
|
|
640
|
+
refresh?(): Promise<TData[]> | TData[];
|
|
641
|
+
subscribe?(onData: GraphDataHandler<TData>, onError?: GraphErrorHandler): GraphUnsubscribe;
|
|
642
|
+
protected normalizeError(error: unknown): Error;
|
|
643
|
+
protected ensureArray(data: TData | TData[] | null | undefined): TData[];
|
|
644
|
+
protected safeExecute<TResult>(executor: () => Promise<TResult> | TResult): Promise<TResult>;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
interface StaticGraphDataSourceConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
648
|
+
data?: TData[];
|
|
649
|
+
}
|
|
650
|
+
declare class StaticGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphDataSource<TData> {
|
|
651
|
+
readonly mode: GraphDataMode;
|
|
652
|
+
private data;
|
|
653
|
+
constructor(config?: StaticGraphDataSourceConfig<TData> | TData[]);
|
|
654
|
+
getInitialData(): TData[];
|
|
655
|
+
refresh(): TData[];
|
|
656
|
+
setData(data: TData[]): void;
|
|
657
|
+
appendData(data: TData | TData[]): void;
|
|
658
|
+
clearData(): void;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
interface PollingGraphDataSourceConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
662
|
+
fetcher: () => Promise<TData[]> | TData[];
|
|
663
|
+
interval?: number;
|
|
664
|
+
immediate?: boolean;
|
|
665
|
+
}
|
|
666
|
+
declare class PollingGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphDataSource<TData> {
|
|
667
|
+
readonly mode: GraphDataMode;
|
|
668
|
+
private readonly fetcher;
|
|
669
|
+
private readonly interval;
|
|
670
|
+
private readonly immediate;
|
|
671
|
+
constructor(config: PollingGraphDataSourceConfig<TData>);
|
|
672
|
+
getInitialData(): Promise<TData[]>;
|
|
673
|
+
refresh(): Promise<TData[]>;
|
|
674
|
+
subscribe(onData: GraphDataHandler<TData>, onError?: GraphErrorHandler): GraphUnsubscribe;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
interface RealtimeGraphDataSourceConfig<TData extends GraphDataPoint = GraphDataPoint> {
|
|
678
|
+
connect: (onData: GraphDataHandler<TData>, onError?: GraphErrorHandler) => GraphUnsubscribe;
|
|
679
|
+
getInitialData?: () => Promise<TData[]> | TData[];
|
|
680
|
+
refresh?: () => Promise<TData[]> | TData[];
|
|
681
|
+
}
|
|
682
|
+
declare class RealtimeGraphDataSource<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphDataSource<TData> {
|
|
683
|
+
readonly mode: GraphDataMode;
|
|
684
|
+
private readonly connect;
|
|
685
|
+
private readonly initialDataLoader?;
|
|
686
|
+
private readonly refreshHandler?;
|
|
687
|
+
constructor(config: RealtimeGraphDataSourceConfig<TData>);
|
|
688
|
+
getInitialData(): Promise<TData[]> | TData[];
|
|
689
|
+
refresh(): Promise<TData[]> | TData[];
|
|
690
|
+
subscribe(onData: GraphDataHandler<TData>, onError?: GraphErrorHandler): GraphUnsubscribe;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
interface UseGraphDataOptions<TData extends GraphDataPoint = GraphDataPoint> {
|
|
694
|
+
data?: TData[];
|
|
695
|
+
dataSource?: GraphDataSource<TData>;
|
|
696
|
+
autoLoad?: boolean;
|
|
697
|
+
maxDataPoints?: number;
|
|
698
|
+
normalize?: boolean;
|
|
699
|
+
onDataChange?: (data: TData[]) => void;
|
|
700
|
+
onError?: (error: Error) => void;
|
|
701
|
+
}
|
|
702
|
+
interface UseGraphDataReturn<TData extends GraphDataPoint = GraphDataPoint> extends GraphState<TData> {
|
|
703
|
+
refresh: () => Promise<void>;
|
|
704
|
+
replaceData: (data: TData[]) => void;
|
|
705
|
+
appendData: (data: TData | TData[]) => void;
|
|
706
|
+
clearData: () => void;
|
|
707
|
+
}
|
|
706
708
|
declare function useGraphData<TData extends GraphDataPoint = GraphDataPoint>({ data, dataSource, autoLoad, maxDataPoints, normalize, onDataChange, onError, }?: UseGraphDataOptions<TData>): UseGraphDataReturn<TData>;
|
|
707
709
|
|
|
708
|
-
declare function useGraphRealtime<TData extends GraphDataPoint = GraphDataPoint>({ enabled, maxDataPoints, normalize, connect, onData, onError, }: UseGraphRealtimeOptions<TData>): {
|
|
709
|
-
data: TData[];
|
|
710
|
-
error: Error | null;
|
|
711
|
-
connected: boolean;
|
|
712
|
-
loading: boolean;
|
|
713
|
-
status: string;
|
|
714
|
-
lastUpdatedAt: Date | undefined;
|
|
715
|
-
clearData: () => void;
|
|
710
|
+
declare function useGraphRealtime<TData extends GraphDataPoint = GraphDataPoint>({ enabled, maxDataPoints, normalize, connect, onData, onError, }: UseGraphRealtimeOptions<TData>): {
|
|
711
|
+
data: TData[];
|
|
712
|
+
error: Error | null;
|
|
713
|
+
connected: boolean;
|
|
714
|
+
loading: boolean;
|
|
715
|
+
status: string;
|
|
716
|
+
lastUpdatedAt: Date | undefined;
|
|
717
|
+
clearData: () => void;
|
|
716
718
|
};
|
|
717
719
|
|
|
718
|
-
declare function useGraphPolling<TData extends GraphDataPoint = GraphDataPoint>({ enabled, interval, immediate, normalize, fetcher, onData, onError, }: UseGraphPollingOptions<TData>): {
|
|
719
|
-
data: TData[];
|
|
720
|
-
error: Error | null;
|
|
721
|
-
loading: boolean;
|
|
722
|
-
status: string;
|
|
723
|
-
lastUpdatedAt: Date | undefined;
|
|
724
|
-
refresh: () => Promise<void>;
|
|
720
|
+
declare function useGraphPolling<TData extends GraphDataPoint = GraphDataPoint>({ enabled, interval, immediate, normalize, fetcher, onData, onError, }: UseGraphPollingOptions<TData>): {
|
|
721
|
+
data: TData[];
|
|
722
|
+
error: Error | null;
|
|
723
|
+
loading: boolean;
|
|
724
|
+
status: string;
|
|
725
|
+
lastUpdatedAt: Date | undefined;
|
|
726
|
+
refresh: () => Promise<void>;
|
|
725
727
|
};
|
|
726
728
|
|
|
727
729
|
declare function useGraphSeries<TData extends GraphDataPoint = GraphDataPoint>({ data, series, xKey, excludeKeys, }: UseGraphSeriesOptions<TData>): ResolvedGraphSeries[];
|
|
728
730
|
|
|
729
731
|
declare function useGraphTheme({ mode, theme, }?: UseGraphThemeOptions): GraphTheme;
|
|
730
732
|
|
|
731
|
-
type RawGraphDataPoint = Record<string, unknown>;
|
|
732
|
-
type NormalizedGraphDataPoint = Record<string, GraphPrimitive>;
|
|
733
|
-
interface NormalizeGraphDataOptions {
|
|
734
|
-
/**
|
|
735
|
-
* Converts Date values to ISO strings.
|
|
736
|
-
*
|
|
737
|
-
* Default: true
|
|
738
|
-
*/
|
|
739
|
-
serializeDates?: boolean;
|
|
740
|
-
/**
|
|
741
|
-
* Converts numeric strings such as "42" or "12.5" to numbers.
|
|
742
|
-
*
|
|
743
|
-
* Default: true
|
|
744
|
-
*/
|
|
745
|
-
parseNumericStrings?: boolean;
|
|
746
|
-
/**
|
|
747
|
-
* Converts invalid values such as NaN and Infinity to null.
|
|
748
|
-
*
|
|
749
|
-
* Default: true
|
|
750
|
-
*/
|
|
751
|
-
sanitizeInvalidNumbers?: boolean;
|
|
752
|
-
/**
|
|
753
|
-
* Keeps only the selected keys.
|
|
754
|
-
*/
|
|
755
|
-
keys?: string[];
|
|
756
|
-
/**
|
|
757
|
-
* Removes keys with undefined values.
|
|
758
|
-
*
|
|
759
|
-
* Default: true
|
|
760
|
-
*/
|
|
761
|
-
removeUndefined?: boolean;
|
|
762
|
-
}
|
|
763
|
-
declare function normalizeGraphData<TData extends RawGraphDataPoint>(data: TData[] | null | undefined, options?: NormalizeGraphDataOptions): NormalizedGraphDataPoint[];
|
|
733
|
+
type RawGraphDataPoint = Record<string, unknown>;
|
|
734
|
+
type NormalizedGraphDataPoint = Record<string, GraphPrimitive>;
|
|
735
|
+
interface NormalizeGraphDataOptions {
|
|
736
|
+
/**
|
|
737
|
+
* Converts Date values to ISO strings.
|
|
738
|
+
*
|
|
739
|
+
* Default: true
|
|
740
|
+
*/
|
|
741
|
+
serializeDates?: boolean;
|
|
742
|
+
/**
|
|
743
|
+
* Converts numeric strings such as "42" or "12.5" to numbers.
|
|
744
|
+
*
|
|
745
|
+
* Default: true
|
|
746
|
+
*/
|
|
747
|
+
parseNumericStrings?: boolean;
|
|
748
|
+
/**
|
|
749
|
+
* Converts invalid values such as NaN and Infinity to null.
|
|
750
|
+
*
|
|
751
|
+
* Default: true
|
|
752
|
+
*/
|
|
753
|
+
sanitizeInvalidNumbers?: boolean;
|
|
754
|
+
/**
|
|
755
|
+
* Keeps only the selected keys.
|
|
756
|
+
*/
|
|
757
|
+
keys?: string[];
|
|
758
|
+
/**
|
|
759
|
+
* Removes keys with undefined values.
|
|
760
|
+
*
|
|
761
|
+
* Default: true
|
|
762
|
+
*/
|
|
763
|
+
removeUndefined?: boolean;
|
|
764
|
+
}
|
|
765
|
+
declare function normalizeGraphData<TData extends RawGraphDataPoint>(data: TData[] | null | undefined, options?: NormalizeGraphDataOptions): NormalizedGraphDataPoint[];
|
|
764
766
|
declare function normalizeGraphDataPoint<TData extends RawGraphDataPoint>(dataPoint: TData, options?: NormalizeGraphDataOptions): NormalizedGraphDataPoint;
|
|
765
767
|
|
|
766
|
-
interface FormatGraphValueOptions {
|
|
767
|
-
format?: GraphValueFormat;
|
|
768
|
-
locale?: string;
|
|
769
|
-
prefix?: string;
|
|
770
|
-
suffix?: string;
|
|
771
|
-
currency?: string;
|
|
772
|
-
minimumFractionDigits?: number;
|
|
773
|
-
maximumFractionDigits?: number;
|
|
774
|
-
fallback?: string;
|
|
775
|
-
}
|
|
768
|
+
interface FormatGraphValueOptions {
|
|
769
|
+
format?: GraphValueFormat;
|
|
770
|
+
locale?: string;
|
|
771
|
+
prefix?: string;
|
|
772
|
+
suffix?: string;
|
|
773
|
+
currency?: string;
|
|
774
|
+
minimumFractionDigits?: number;
|
|
775
|
+
maximumFractionDigits?: number;
|
|
776
|
+
fallback?: string;
|
|
777
|
+
}
|
|
776
778
|
declare function formatGraphValue(value: unknown, options?: FormatGraphValueOptions): string;
|
|
777
779
|
|
|
778
|
-
type GraphColorName = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "muted";
|
|
779
|
-
interface ResolveGraphColorOptions {
|
|
780
|
-
index?: number;
|
|
781
|
-
fallback?: string;
|
|
782
|
-
palette?: string[];
|
|
783
|
-
}
|
|
784
|
-
declare function resolveGraphColor(color?: string, options?: ResolveGraphColorOptions): string;
|
|
780
|
+
type GraphColorName = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "muted";
|
|
781
|
+
interface ResolveGraphColorOptions {
|
|
782
|
+
index?: number;
|
|
783
|
+
fallback?: string;
|
|
784
|
+
palette?: string[];
|
|
785
|
+
}
|
|
786
|
+
declare function resolveGraphColor(color?: string, options?: ResolveGraphColorOptions): string;
|
|
785
787
|
declare function resolveGraphColors(count: number, options?: ResolveGraphColorOptions): string[];
|
|
786
788
|
|
|
787
|
-
interface LimitRealtimePointsOptions {
|
|
788
|
-
/**
|
|
789
|
-
* Maximum number of points to keep.
|
|
790
|
-
*
|
|
791
|
-
* Default: 100
|
|
792
|
-
*/
|
|
793
|
-
maxPoints?: number;
|
|
794
|
-
/**
|
|
795
|
-
* Whether new data should be added to the end or beginning.
|
|
796
|
-
*
|
|
797
|
-
* Default: "end"
|
|
798
|
-
*/
|
|
799
|
-
appendDirection?: "start" | "end";
|
|
800
|
-
}
|
|
801
|
-
declare function limitRealtimePoints<TData>(currentData: TData[] | undefined, nextData: TData | TData[], options?: LimitRealtimePointsOptions): TData[];
|
|
789
|
+
interface LimitRealtimePointsOptions {
|
|
790
|
+
/**
|
|
791
|
+
* Maximum number of points to keep.
|
|
792
|
+
*
|
|
793
|
+
* Default: 100
|
|
794
|
+
*/
|
|
795
|
+
maxPoints?: number;
|
|
796
|
+
/**
|
|
797
|
+
* Whether new data should be added to the end or beginning.
|
|
798
|
+
*
|
|
799
|
+
* Default: "end"
|
|
800
|
+
*/
|
|
801
|
+
appendDirection?: "start" | "end";
|
|
802
|
+
}
|
|
803
|
+
declare function limitRealtimePoints<TData>(currentData: TData[] | undefined, nextData: TData | TData[], options?: LimitRealtimePointsOptions): TData[];
|
|
802
804
|
declare function replaceRealtimePoints<TData>(nextData?: TData[], options?: Pick<LimitRealtimePointsOptions, "maxPoints">): TData[];
|
|
803
805
|
|
|
804
|
-
declare const GRAPH_DEFAULT_HEIGHT = 320;
|
|
805
|
-
declare const GRAPH_DEFAULT_MAX_REALTIME_POINTS = 100;
|
|
806
|
-
declare const GRAPH_DEFAULT_POLLING_INTERVAL = 5000;
|
|
807
|
-
declare const GRAPH_DEFAULT_ANIMATION_DURATION = 350;
|
|
808
|
-
declare const GRAPH_DEFAULT_MARGIN: {
|
|
809
|
-
top: number;
|
|
810
|
-
right: number;
|
|
811
|
-
bottom: number;
|
|
812
|
-
left: number;
|
|
813
|
-
};
|
|
814
|
-
declare const GRAPH_DEFAULT_STROKE_WIDTH = 2;
|
|
815
|
-
declare const GRAPH_DEFAULT_DOT_RADIUS = 3;
|
|
816
|
-
declare const GRAPH_DEFAULT_ACTIVE_DOT_RADIUS = 5;
|
|
817
|
-
declare const GRAPH_DEFAULT_BAR_RADIUS: [number, number, number, number];
|
|
818
|
-
declare const GRAPH_STATUSES: {
|
|
819
|
-
readonly IDLE: "idle";
|
|
820
|
-
readonly LOADING: "loading";
|
|
821
|
-
readonly SUCCESS: "success";
|
|
822
|
-
readonly ERROR: "error";
|
|
823
|
-
readonly STREAMING: "streaming";
|
|
824
|
-
};
|
|
825
|
-
declare const GRAPH_DATA_MODES: {
|
|
826
|
-
readonly STATIC: "static";
|
|
827
|
-
readonly POLLING: "polling";
|
|
828
|
-
readonly REALTIME: "realtime";
|
|
829
|
-
};
|
|
830
|
-
declare const GRAPH_VALUE_FORMATS: {
|
|
831
|
-
readonly RAW: "raw";
|
|
832
|
-
readonly NUMBER: "number";
|
|
833
|
-
readonly INTEGER: "integer";
|
|
834
|
-
readonly COMPACT: "compact";
|
|
835
|
-
readonly PERCENT: "percent";
|
|
836
|
-
readonly CURRENCY: "currency";
|
|
837
|
-
readonly BYTES: "bytes";
|
|
838
|
-
readonly DURATION: "duration";
|
|
839
|
-
};
|
|
840
|
-
declare const GRAPH_EMPTY_MESSAGE = "No graph data available";
|
|
841
|
-
declare const GRAPH_ERROR_MESSAGE = "Unable to load graph data";
|
|
806
|
+
declare const GRAPH_DEFAULT_HEIGHT = 320;
|
|
807
|
+
declare const GRAPH_DEFAULT_MAX_REALTIME_POINTS = 100;
|
|
808
|
+
declare const GRAPH_DEFAULT_POLLING_INTERVAL = 5000;
|
|
809
|
+
declare const GRAPH_DEFAULT_ANIMATION_DURATION = 350;
|
|
810
|
+
declare const GRAPH_DEFAULT_MARGIN: {
|
|
811
|
+
top: number;
|
|
812
|
+
right: number;
|
|
813
|
+
bottom: number;
|
|
814
|
+
left: number;
|
|
815
|
+
};
|
|
816
|
+
declare const GRAPH_DEFAULT_STROKE_WIDTH = 2;
|
|
817
|
+
declare const GRAPH_DEFAULT_DOT_RADIUS = 3;
|
|
818
|
+
declare const GRAPH_DEFAULT_ACTIVE_DOT_RADIUS = 5;
|
|
819
|
+
declare const GRAPH_DEFAULT_BAR_RADIUS: [number, number, number, number];
|
|
820
|
+
declare const GRAPH_STATUSES: {
|
|
821
|
+
readonly IDLE: "idle";
|
|
822
|
+
readonly LOADING: "loading";
|
|
823
|
+
readonly SUCCESS: "success";
|
|
824
|
+
readonly ERROR: "error";
|
|
825
|
+
readonly STREAMING: "streaming";
|
|
826
|
+
};
|
|
827
|
+
declare const GRAPH_DATA_MODES: {
|
|
828
|
+
readonly STATIC: "static";
|
|
829
|
+
readonly POLLING: "polling";
|
|
830
|
+
readonly REALTIME: "realtime";
|
|
831
|
+
};
|
|
832
|
+
declare const GRAPH_VALUE_FORMATS: {
|
|
833
|
+
readonly RAW: "raw";
|
|
834
|
+
readonly NUMBER: "number";
|
|
835
|
+
readonly INTEGER: "integer";
|
|
836
|
+
readonly COMPACT: "compact";
|
|
837
|
+
readonly PERCENT: "percent";
|
|
838
|
+
readonly CURRENCY: "currency";
|
|
839
|
+
readonly BYTES: "bytes";
|
|
840
|
+
readonly DURATION: "duration";
|
|
841
|
+
};
|
|
842
|
+
declare const GRAPH_EMPTY_MESSAGE = "No graph data available";
|
|
843
|
+
declare const GRAPH_ERROR_MESSAGE = "Unable to load graph data";
|
|
842
844
|
declare const GRAPH_LOADING_MESSAGE = "Loading graph data...";
|
|
843
845
|
|
|
844
|
-
declare const GRAPH_COLOR_PALETTE: string[];
|
|
845
|
-
declare const GRAPH_STATUS_COLORS: {
|
|
846
|
-
primary: string;
|
|
847
|
-
secondary: string;
|
|
848
|
-
success: string;
|
|
849
|
-
warning: string;
|
|
850
|
-
danger: string;
|
|
851
|
-
info: string;
|
|
852
|
-
muted: string;
|
|
853
|
-
};
|
|
854
|
-
declare const GRAPH_DARK_THEME: {
|
|
855
|
-
panel: {
|
|
856
|
-
background: string;
|
|
857
|
-
border: string;
|
|
858
|
-
radius: string;
|
|
859
|
-
shadow: string;
|
|
860
|
-
};
|
|
861
|
-
text: {
|
|
862
|
-
title: string;
|
|
863
|
-
description: string;
|
|
864
|
-
muted: string;
|
|
865
|
-
};
|
|
866
|
-
chart: {
|
|
867
|
-
grid: string;
|
|
868
|
-
axis: string;
|
|
869
|
-
cursor: string;
|
|
870
|
-
};
|
|
871
|
-
tooltip: {
|
|
872
|
-
background: string;
|
|
873
|
-
border: string;
|
|
874
|
-
text: string;
|
|
875
|
-
muted: string;
|
|
876
|
-
};
|
|
877
|
-
colors: string[];
|
|
878
|
-
};
|
|
879
|
-
declare const GRAPH_LIGHT_THEME: {
|
|
880
|
-
panel: {
|
|
881
|
-
background: string;
|
|
882
|
-
border: string;
|
|
883
|
-
radius: string;
|
|
884
|
-
shadow: string;
|
|
885
|
-
};
|
|
886
|
-
text: {
|
|
887
|
-
title: string;
|
|
888
|
-
description: string;
|
|
889
|
-
muted: string;
|
|
890
|
-
};
|
|
891
|
-
chart: {
|
|
892
|
-
grid: string;
|
|
893
|
-
axis: string;
|
|
894
|
-
cursor: string;
|
|
895
|
-
};
|
|
896
|
-
tooltip: {
|
|
897
|
-
background: string;
|
|
898
|
-
border: string;
|
|
899
|
-
text: string;
|
|
900
|
-
muted: string;
|
|
901
|
-
};
|
|
902
|
-
colors: string[];
|
|
903
|
-
};
|
|
904
|
-
declare const DEFAULT_GRAPH_THEME: {
|
|
905
|
-
panel: {
|
|
906
|
-
background: string;
|
|
907
|
-
border: string;
|
|
908
|
-
radius: string;
|
|
909
|
-
shadow: string;
|
|
910
|
-
};
|
|
911
|
-
text: {
|
|
912
|
-
title: string;
|
|
913
|
-
description: string;
|
|
914
|
-
muted: string;
|
|
915
|
-
};
|
|
916
|
-
chart: {
|
|
917
|
-
grid: string;
|
|
918
|
-
axis: string;
|
|
919
|
-
cursor: string;
|
|
920
|
-
};
|
|
921
|
-
tooltip: {
|
|
922
|
-
background: string;
|
|
923
|
-
border: string;
|
|
924
|
-
text: string;
|
|
925
|
-
muted: string;
|
|
926
|
-
};
|
|
927
|
-
colors: string[];
|
|
846
|
+
declare const GRAPH_COLOR_PALETTE: string[];
|
|
847
|
+
declare const GRAPH_STATUS_COLORS: {
|
|
848
|
+
primary: string;
|
|
849
|
+
secondary: string;
|
|
850
|
+
success: string;
|
|
851
|
+
warning: string;
|
|
852
|
+
danger: string;
|
|
853
|
+
info: string;
|
|
854
|
+
muted: string;
|
|
855
|
+
};
|
|
856
|
+
declare const GRAPH_DARK_THEME: {
|
|
857
|
+
panel: {
|
|
858
|
+
background: string;
|
|
859
|
+
border: string;
|
|
860
|
+
radius: string;
|
|
861
|
+
shadow: string;
|
|
862
|
+
};
|
|
863
|
+
text: {
|
|
864
|
+
title: string;
|
|
865
|
+
description: string;
|
|
866
|
+
muted: string;
|
|
867
|
+
};
|
|
868
|
+
chart: {
|
|
869
|
+
grid: string;
|
|
870
|
+
axis: string;
|
|
871
|
+
cursor: string;
|
|
872
|
+
};
|
|
873
|
+
tooltip: {
|
|
874
|
+
background: string;
|
|
875
|
+
border: string;
|
|
876
|
+
text: string;
|
|
877
|
+
muted: string;
|
|
878
|
+
};
|
|
879
|
+
colors: string[];
|
|
880
|
+
};
|
|
881
|
+
declare const GRAPH_LIGHT_THEME: {
|
|
882
|
+
panel: {
|
|
883
|
+
background: string;
|
|
884
|
+
border: string;
|
|
885
|
+
radius: string;
|
|
886
|
+
shadow: string;
|
|
887
|
+
};
|
|
888
|
+
text: {
|
|
889
|
+
title: string;
|
|
890
|
+
description: string;
|
|
891
|
+
muted: string;
|
|
892
|
+
};
|
|
893
|
+
chart: {
|
|
894
|
+
grid: string;
|
|
895
|
+
axis: string;
|
|
896
|
+
cursor: string;
|
|
897
|
+
};
|
|
898
|
+
tooltip: {
|
|
899
|
+
background: string;
|
|
900
|
+
border: string;
|
|
901
|
+
text: string;
|
|
902
|
+
muted: string;
|
|
903
|
+
};
|
|
904
|
+
colors: string[];
|
|
905
|
+
};
|
|
906
|
+
declare const DEFAULT_GRAPH_THEME: {
|
|
907
|
+
panel: {
|
|
908
|
+
background: string;
|
|
909
|
+
border: string;
|
|
910
|
+
radius: string;
|
|
911
|
+
shadow: string;
|
|
912
|
+
};
|
|
913
|
+
text: {
|
|
914
|
+
title: string;
|
|
915
|
+
description: string;
|
|
916
|
+
muted: string;
|
|
917
|
+
};
|
|
918
|
+
chart: {
|
|
919
|
+
grid: string;
|
|
920
|
+
axis: string;
|
|
921
|
+
cursor: string;
|
|
922
|
+
};
|
|
923
|
+
tooltip: {
|
|
924
|
+
background: string;
|
|
925
|
+
border: string;
|
|
926
|
+
text: string;
|
|
927
|
+
muted: string;
|
|
928
|
+
};
|
|
929
|
+
colors: string[];
|
|
928
930
|
};
|
|
929
931
|
|
|
930
|
-
interface CloudinaryImageProps extends BaseComponentProps<HTMLImageElement> {
|
|
931
|
-
publicId?: string;
|
|
932
|
-
cloudName?: string;
|
|
933
|
-
secure?: boolean;
|
|
934
|
-
alt?: string;
|
|
935
|
-
fallbackSrc?: string;
|
|
936
|
-
loading?: "lazy" | "eager";
|
|
937
|
-
}
|
|
932
|
+
interface CloudinaryImageProps extends BaseComponentProps<HTMLImageElement> {
|
|
933
|
+
publicId?: string;
|
|
934
|
+
cloudName?: string;
|
|
935
|
+
secure?: boolean;
|
|
936
|
+
alt?: string;
|
|
937
|
+
fallbackSrc?: string;
|
|
938
|
+
loading?: "lazy" | "eager";
|
|
939
|
+
}
|
|
938
940
|
declare function CloudinaryImage({ publicId, cloudName, secure, alt, fallbackSrc, loading, className, ...rest }: CloudinaryImageProps): react_jsx_runtime.JSX.Element;
|
|
939
941
|
|
|
940
|
-
interface ImageProps extends BaseComponentProps {
|
|
941
|
-
alt?: string;
|
|
942
|
-
src?: string;
|
|
943
|
-
height?: number;
|
|
944
|
-
width?: number;
|
|
945
|
-
}
|
|
942
|
+
interface ImageProps extends BaseComponentProps {
|
|
943
|
+
alt?: string;
|
|
944
|
+
src?: string;
|
|
945
|
+
height?: number;
|
|
946
|
+
width?: number;
|
|
947
|
+
}
|
|
946
948
|
declare const Image: ({ alt, src, height, width, className, ...rest }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
947
949
|
|
|
948
|
-
interface InfoProps extends BaseComponentProps {
|
|
949
|
-
variant?: Variant$1;
|
|
950
|
-
appearance?: Appearance;
|
|
951
|
-
shape?: Shape$1;
|
|
952
|
-
children?: ReactNode;
|
|
953
|
-
}
|
|
950
|
+
interface InfoProps extends BaseComponentProps {
|
|
951
|
+
variant?: Variant$1;
|
|
952
|
+
appearance?: Appearance;
|
|
953
|
+
shape?: Shape$1;
|
|
954
|
+
children?: ReactNode;
|
|
955
|
+
}
|
|
954
956
|
declare function Info({ children, variant, appearance, shape, className, ...rest }: InfoProps): react_jsx_runtime.JSX.Element;
|
|
955
957
|
|
|
956
|
-
interface ListItemData {
|
|
957
|
-
content: React__default.ReactNode;
|
|
958
|
-
bulletType?: ListBulletType;
|
|
959
|
-
renderBullet?: (index?: number) => React__default.ReactNode;
|
|
960
|
-
TypographyComponent?: React__default.ReactNode;
|
|
961
|
-
className?: string;
|
|
962
|
-
}
|
|
963
|
-
interface ListProps extends BaseComponentProps {
|
|
964
|
-
title?: string;
|
|
965
|
-
items: (string | React__default.ReactNode | ListItemData)[];
|
|
966
|
-
direction?: ListDirection;
|
|
967
|
-
gap?: 1 | 2 | 3 | 4;
|
|
968
|
-
columns?: 1 | 2 | 3 | 4;
|
|
969
|
-
align?: ListAlign;
|
|
970
|
-
wrap?: boolean;
|
|
971
|
-
bulletType?: ListBulletType;
|
|
972
|
-
}
|
|
958
|
+
interface ListItemData {
|
|
959
|
+
content: React__default.ReactNode;
|
|
960
|
+
bulletType?: ListBulletType;
|
|
961
|
+
renderBullet?: (index?: number) => React__default.ReactNode;
|
|
962
|
+
TypographyComponent?: React__default.ReactNode;
|
|
963
|
+
className?: string;
|
|
964
|
+
}
|
|
965
|
+
interface ListProps extends BaseComponentProps {
|
|
966
|
+
title?: string;
|
|
967
|
+
items: (string | React__default.ReactNode | ListItemData)[];
|
|
968
|
+
direction?: ListDirection;
|
|
969
|
+
gap?: 1 | 2 | 3 | 4;
|
|
970
|
+
columns?: 1 | 2 | 3 | 4;
|
|
971
|
+
align?: ListAlign;
|
|
972
|
+
wrap?: boolean;
|
|
973
|
+
bulletType?: ListBulletType;
|
|
974
|
+
}
|
|
973
975
|
declare function List({ title, items, direction, gap, columns, align, wrap, bulletType, className, ...rest }: ListProps): react_jsx_runtime.JSX.Element;
|
|
974
976
|
|
|
975
|
-
interface ListItemProps {
|
|
976
|
-
content: React__default.ReactNode;
|
|
977
|
-
index?: number;
|
|
978
|
-
TypographyComponent?: React__default.ReactNode;
|
|
979
|
-
bulletType?: ListBulletType;
|
|
980
|
-
renderBullet?: (index?: number) => React__default.ReactNode;
|
|
981
|
-
align?: ListAlign;
|
|
982
|
-
className?: string;
|
|
983
|
-
}
|
|
977
|
+
interface ListItemProps {
|
|
978
|
+
content: React__default.ReactNode;
|
|
979
|
+
index?: number;
|
|
980
|
+
TypographyComponent?: React__default.ReactNode;
|
|
981
|
+
bulletType?: ListBulletType;
|
|
982
|
+
renderBullet?: (index?: number) => React__default.ReactNode;
|
|
983
|
+
align?: ListAlign;
|
|
984
|
+
className?: string;
|
|
985
|
+
}
|
|
984
986
|
declare const ListItem: ({ content, TypographyComponent, bulletType, renderBullet, index, align, className, }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
985
987
|
|
|
986
|
-
interface PriceTagProps extends BaseComponentProps {
|
|
987
|
-
price: number;
|
|
988
|
-
discount?: number;
|
|
989
|
-
code?: CurrencyCode;
|
|
990
|
-
variant?: Variant$1;
|
|
991
|
-
appearance?: Appearance;
|
|
992
|
-
shape?: Shape$1;
|
|
993
|
-
size?: Size$1;
|
|
994
|
-
decimals?: number;
|
|
995
|
-
showCurrencyCode?: boolean;
|
|
996
|
-
currencyAsSubscript?: boolean;
|
|
997
|
-
showFreeLabel?: boolean;
|
|
998
|
-
}
|
|
988
|
+
interface PriceTagProps extends BaseComponentProps {
|
|
989
|
+
price: number;
|
|
990
|
+
discount?: number;
|
|
991
|
+
code?: CurrencyCode;
|
|
992
|
+
variant?: Variant$1;
|
|
993
|
+
appearance?: Appearance;
|
|
994
|
+
shape?: Shape$1;
|
|
995
|
+
size?: Size$1;
|
|
996
|
+
decimals?: number;
|
|
997
|
+
showCurrencyCode?: boolean;
|
|
998
|
+
currencyAsSubscript?: boolean;
|
|
999
|
+
showFreeLabel?: boolean;
|
|
1000
|
+
}
|
|
999
1001
|
declare function PriceTag({ price, discount, code, variant, appearance, shape, size, decimals, showCurrencyCode, currencyAsSubscript, showFreeLabel, className, ...rest }: PriceTagProps): react_jsx_runtime.JSX.Element;
|
|
1000
1002
|
|
|
1001
|
-
interface ProgressBarProps extends BaseComponentProps {
|
|
1002
|
-
value: number;
|
|
1003
|
-
max?: number;
|
|
1004
|
-
min?: number;
|
|
1005
|
-
variant?: Variant$1;
|
|
1006
|
-
appearance?: Appearance;
|
|
1007
|
-
size?: Size$1;
|
|
1008
|
-
shape?: Shape$1;
|
|
1009
|
-
striped?: boolean;
|
|
1010
|
-
animated?: boolean;
|
|
1011
|
-
showLabel?: boolean;
|
|
1012
|
-
label?: string;
|
|
1013
|
-
labelPlacement?: "top" | "overlay" | "bottom";
|
|
1014
|
-
showPercentage?: boolean;
|
|
1015
|
-
startContent?: ReactNode;
|
|
1016
|
-
endContent?: ReactNode;
|
|
1017
|
-
trackClassName?: string;
|
|
1018
|
-
barClassName?: string;
|
|
1019
|
-
}
|
|
1003
|
+
interface ProgressBarProps extends BaseComponentProps {
|
|
1004
|
+
value: number;
|
|
1005
|
+
max?: number;
|
|
1006
|
+
min?: number;
|
|
1007
|
+
variant?: Variant$1;
|
|
1008
|
+
appearance?: Appearance;
|
|
1009
|
+
size?: Size$1;
|
|
1010
|
+
shape?: Shape$1;
|
|
1011
|
+
striped?: boolean;
|
|
1012
|
+
animated?: boolean;
|
|
1013
|
+
showLabel?: boolean;
|
|
1014
|
+
label?: string;
|
|
1015
|
+
labelPlacement?: "top" | "overlay" | "bottom";
|
|
1016
|
+
showPercentage?: boolean;
|
|
1017
|
+
startContent?: ReactNode;
|
|
1018
|
+
endContent?: ReactNode;
|
|
1019
|
+
trackClassName?: string;
|
|
1020
|
+
barClassName?: string;
|
|
1021
|
+
}
|
|
1020
1022
|
declare function ProgressBar({ value, min, max, variant, appearance, size, shape, striped, animated, showLabel, label, labelPlacement, showPercentage, startContent, endContent, trackClassName, barClassName, className, ...rest }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
1021
1023
|
|
|
1022
|
-
interface NumericRatingProps extends BaseComponentProps {
|
|
1023
|
-
rating: number;
|
|
1024
|
-
totalReviews?: number;
|
|
1025
|
-
size?: Size$1;
|
|
1026
|
-
showStars?: boolean;
|
|
1027
|
-
showReviewCount?: boolean;
|
|
1028
|
-
reviewLabel?: string;
|
|
1029
|
-
}
|
|
1024
|
+
interface NumericRatingProps extends BaseComponentProps {
|
|
1025
|
+
rating: number;
|
|
1026
|
+
totalReviews?: number;
|
|
1027
|
+
size?: Size$1;
|
|
1028
|
+
showStars?: boolean;
|
|
1029
|
+
showReviewCount?: boolean;
|
|
1030
|
+
reviewLabel?: string;
|
|
1031
|
+
}
|
|
1030
1032
|
declare function NumericRating({ rating, totalReviews, size, showStars, showReviewCount, reviewLabel, className, ...rest }: NumericRatingProps): react_jsx_runtime.JSX.Element;
|
|
1031
1033
|
|
|
1032
|
-
interface ProgressBarRatingProps extends BaseComponentProps {
|
|
1033
|
-
star: number;
|
|
1034
|
-
percentage: number;
|
|
1035
|
-
variant?: Variant$1;
|
|
1036
|
-
appearance?: Appearance;
|
|
1037
|
-
shape?: Shape$1;
|
|
1038
|
-
size?: Size$1;
|
|
1039
|
-
animated?: boolean;
|
|
1040
|
-
striped?: boolean;
|
|
1041
|
-
}
|
|
1034
|
+
interface ProgressBarRatingProps extends BaseComponentProps {
|
|
1035
|
+
star: number;
|
|
1036
|
+
percentage: number;
|
|
1037
|
+
variant?: Variant$1;
|
|
1038
|
+
appearance?: Appearance;
|
|
1039
|
+
shape?: Shape$1;
|
|
1040
|
+
size?: Size$1;
|
|
1041
|
+
animated?: boolean;
|
|
1042
|
+
striped?: boolean;
|
|
1043
|
+
}
|
|
1042
1044
|
declare function ProgressBarRating({ star, percentage, variant, appearance, shape, size, animated, striped, className, ...rest }: ProgressBarRatingProps): react_jsx_runtime.JSX.Element;
|
|
1043
1045
|
|
|
1044
|
-
interface StarRatingProps extends BaseComponentProps {
|
|
1045
|
-
rating: number;
|
|
1046
|
-
max?: number;
|
|
1047
|
-
size?: Size$1;
|
|
1048
|
-
showValue?: boolean;
|
|
1049
|
-
valuePosition?: "start" | "end";
|
|
1050
|
-
iconClassName?: string;
|
|
1051
|
-
}
|
|
1046
|
+
interface StarRatingProps extends BaseComponentProps {
|
|
1047
|
+
rating: number;
|
|
1048
|
+
max?: number;
|
|
1049
|
+
size?: Size$1;
|
|
1050
|
+
showValue?: boolean;
|
|
1051
|
+
valuePosition?: "start" | "end";
|
|
1052
|
+
iconClassName?: string;
|
|
1053
|
+
}
|
|
1052
1054
|
declare function StarRating({ rating, max, size, showValue, valuePosition, iconClassName, className, ...rest }: StarRatingProps): react_jsx_runtime.JSX.Element;
|
|
1053
1055
|
|
|
1054
|
-
interface
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1056
|
+
interface SpinnerProps extends BaseComponentProps {
|
|
1057
|
+
/**
|
|
1058
|
+
* Spinner animation type.
|
|
1059
|
+
*/
|
|
1060
|
+
type?: SpinnerType;
|
|
1061
|
+
/**
|
|
1062
|
+
* Spinner color variant.
|
|
1063
|
+
*/
|
|
1064
|
+
variant?: Variant$1;
|
|
1065
|
+
/**
|
|
1066
|
+
* Spinner size.
|
|
1067
|
+
*/
|
|
1068
|
+
size?: Size$1;
|
|
1069
|
+
/**
|
|
1070
|
+
* Optional loading label.
|
|
1071
|
+
*/
|
|
1072
|
+
label?: ReactNode;
|
|
1073
|
+
/**
|
|
1074
|
+
* Whether to visually show the label.
|
|
1075
|
+
*/
|
|
1076
|
+
showLabel?: boolean;
|
|
1077
|
+
/**
|
|
1078
|
+
* Center spinner inside parent.
|
|
1079
|
+
*/
|
|
1080
|
+
centered?: boolean;
|
|
1081
|
+
/**
|
|
1082
|
+
* Full viewport loading state.
|
|
1083
|
+
*/
|
|
1084
|
+
fullscreen?: boolean;
|
|
1085
|
+
/**
|
|
1086
|
+
* Absolute overlay loading state.
|
|
1087
|
+
*/
|
|
1088
|
+
overlay?: boolean;
|
|
1089
|
+
/**
|
|
1090
|
+
* Adds translucent backdrop for fullscreen/overlay mode.
|
|
1091
|
+
*/
|
|
1092
|
+
backdrop?: boolean;
|
|
1093
|
+
/**
|
|
1094
|
+
* Label layout direction.
|
|
1095
|
+
*/
|
|
1096
|
+
direction?: SpinnerDirection;
|
|
1097
|
+
/**
|
|
1098
|
+
* Custom class for the spinner animation element.
|
|
1099
|
+
*/
|
|
1100
|
+
spinnerClassName?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* Custom class for the label.
|
|
1103
|
+
*/
|
|
1104
|
+
labelClassName?: string;
|
|
1105
|
+
/**
|
|
1106
|
+
* Accessible label.
|
|
1107
|
+
*/
|
|
1108
|
+
ariaLabel?: string;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
declare function Spinner({ type, variant, size, label, showLabel, centered, fullscreen, overlay, backdrop, direction, className, spinnerClassName, labelClassName, ariaLabel, ...rest }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
1112
|
+
|
|
1113
|
+
interface TableColumnConfig<T> {
|
|
1114
|
+
key: keyof T | string;
|
|
1115
|
+
header: string;
|
|
1116
|
+
sortable?: boolean;
|
|
1117
|
+
render?: (value: any, row: T) => ReactNode;
|
|
1118
|
+
}
|
|
1119
|
+
interface TableProps<T> {
|
|
1120
|
+
title?: string;
|
|
1121
|
+
columns: TableColumnConfig<T>[];
|
|
1122
|
+
data: T[];
|
|
1123
|
+
shape?: Shape$1;
|
|
1124
|
+
}
|
|
1066
1125
|
declare function Table<T extends Record<string, any>>({ title, columns, data, shape, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1067
1126
|
|
|
1068
|
-
interface TagProps extends BaseComponentProps {
|
|
1069
|
-
text: string;
|
|
1070
|
-
}
|
|
1127
|
+
interface TagProps extends BaseComponentProps {
|
|
1128
|
+
text: string;
|
|
1129
|
+
}
|
|
1071
1130
|
declare function Tag({ text, className, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
|
|
1072
1131
|
|
|
1073
|
-
interface TooltipProps extends BaseComponentProps {
|
|
1074
|
-
children: ReactNode;
|
|
1075
|
-
show: boolean;
|
|
1076
|
-
offsetX?: number;
|
|
1077
|
-
offsetY?: number;
|
|
1078
|
-
}
|
|
1132
|
+
interface TooltipProps extends BaseComponentProps {
|
|
1133
|
+
children: ReactNode;
|
|
1134
|
+
show: boolean;
|
|
1135
|
+
offsetX?: number;
|
|
1136
|
+
offsetY?: number;
|
|
1137
|
+
}
|
|
1079
1138
|
declare function Tooltip({ children, show, offsetX, offsetY, className, ...rest }: TooltipProps): react_jsx_runtime.JSX.Element | null;
|
|
1080
1139
|
|
|
1081
|
-
interface TypographyProps extends BaseComponentProps {
|
|
1082
|
-
children?: ReactNode;
|
|
1083
|
-
level?: 1 | 2 | 3;
|
|
1084
|
-
variant?: Variant$1;
|
|
1085
|
-
decoration?: TextDecoration;
|
|
1086
|
-
bold?: boolean;
|
|
1087
|
-
italic?: boolean;
|
|
1140
|
+
interface TypographyProps extends BaseComponentProps {
|
|
1141
|
+
children?: ReactNode;
|
|
1142
|
+
level?: 1 | 2 | 3;
|
|
1143
|
+
variant?: Variant$1;
|
|
1144
|
+
decoration?: TextDecoration;
|
|
1145
|
+
bold?: boolean;
|
|
1146
|
+
italic?: boolean;
|
|
1088
1147
|
}
|
|
1089
1148
|
|
|
1090
|
-
interface DisplayProps extends TypographyProps {
|
|
1091
|
-
level?: 1 | 2 | 3;
|
|
1092
|
-
}
|
|
1149
|
+
interface DisplayProps extends TypographyProps {
|
|
1150
|
+
level?: 1 | 2 | 3;
|
|
1151
|
+
}
|
|
1093
1152
|
declare const Display: ({ level, children, variant, decoration, bold, italic, className, ...rest }: DisplayProps) => react_jsx_runtime.JSX.Element;
|
|
1094
1153
|
|
|
1095
1154
|
declare const Chapter: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1110,1309 +1169,1309 @@ declare const Lead: ({ children, variant, decoration, bold, italic, className, .
|
|
|
1110
1169
|
|
|
1111
1170
|
declare const Overline: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1112
1171
|
|
|
1113
|
-
declare const Typography: {
|
|
1114
|
-
Display: ({ level, children, variant, decoration, bold, italic, className, ...rest }: DisplayProps) => react_jsx_runtime.JSX.Element;
|
|
1115
|
-
Chapter: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1116
|
-
Section: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1117
|
-
Paragraph: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1118
|
-
Quote: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1119
|
-
Lead: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1120
|
-
Caption: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1121
|
-
Label: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1122
|
-
Code: ({ children, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1123
|
-
Overline: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1172
|
+
declare const Typography: {
|
|
1173
|
+
Display: ({ level, children, variant, decoration, bold, italic, className, ...rest }: DisplayProps) => react_jsx_runtime.JSX.Element;
|
|
1174
|
+
Chapter: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1175
|
+
Section: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1176
|
+
Paragraph: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1177
|
+
Quote: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1178
|
+
Lead: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1179
|
+
Caption: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1180
|
+
Label: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1181
|
+
Code: ({ children, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1182
|
+
Overline: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
1124
1183
|
};
|
|
1125
1184
|
|
|
1126
|
-
interface Tier {
|
|
1127
|
-
condition: (percent: number) => boolean;
|
|
1128
|
-
style: {
|
|
1129
|
-
bg: string;
|
|
1130
|
-
color: string;
|
|
1131
|
-
};
|
|
1132
|
-
}
|
|
1133
|
-
interface ValueBadgeProps {
|
|
1134
|
-
value: number;
|
|
1135
|
-
tiers?: Tier[];
|
|
1136
|
-
lowerBound?: number;
|
|
1137
|
-
upperBound?: number;
|
|
1138
|
-
formatValue?: (value: number) => string | number;
|
|
1139
|
-
className?: string;
|
|
1140
|
-
noBackground?: boolean;
|
|
1141
|
-
}
|
|
1185
|
+
interface Tier {
|
|
1186
|
+
condition: (percent: number) => boolean;
|
|
1187
|
+
style: {
|
|
1188
|
+
bg: string;
|
|
1189
|
+
color: string;
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
interface ValueBadgeProps {
|
|
1193
|
+
value: number;
|
|
1194
|
+
tiers?: Tier[];
|
|
1195
|
+
lowerBound?: number;
|
|
1196
|
+
upperBound?: number;
|
|
1197
|
+
formatValue?: (value: number) => string | number;
|
|
1198
|
+
className?: string;
|
|
1199
|
+
noBackground?: boolean;
|
|
1200
|
+
}
|
|
1142
1201
|
declare const ValueBadge: ({ value, tiers, lowerBound, upperBound, formatValue, className, noBackground, }: ValueBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1143
1202
|
|
|
1144
|
-
interface CloudinaryVideoProps extends BaseComponentProps<HTMLVideoElement> {
|
|
1145
|
-
publicId?: string;
|
|
1146
|
-
cloudName?: string;
|
|
1147
|
-
secure?: boolean;
|
|
1148
|
-
controls?: boolean;
|
|
1149
|
-
autoPlay?: boolean;
|
|
1150
|
-
muted?: boolean;
|
|
1151
|
-
loop?: boolean;
|
|
1152
|
-
playsInline?: boolean;
|
|
1153
|
-
poster?: string;
|
|
1154
|
-
preload?: "none" | "metadata" | "auto";
|
|
1155
|
-
}
|
|
1203
|
+
interface CloudinaryVideoProps extends BaseComponentProps<HTMLVideoElement> {
|
|
1204
|
+
publicId?: string;
|
|
1205
|
+
cloudName?: string;
|
|
1206
|
+
secure?: boolean;
|
|
1207
|
+
controls?: boolean;
|
|
1208
|
+
autoPlay?: boolean;
|
|
1209
|
+
muted?: boolean;
|
|
1210
|
+
loop?: boolean;
|
|
1211
|
+
playsInline?: boolean;
|
|
1212
|
+
poster?: string;
|
|
1213
|
+
preload?: "none" | "metadata" | "auto";
|
|
1214
|
+
}
|
|
1156
1215
|
declare function CloudinaryVideo({ publicId, cloudName, secure, controls, autoPlay, muted, loop, playsInline, poster, preload, className, ...rest }: CloudinaryVideoProps): react_jsx_runtime.JSX.Element;
|
|
1157
1216
|
|
|
1158
|
-
interface YoutubeVideoProps extends BaseComponentProps<HTMLIFrameElement> {
|
|
1159
|
-
videoUrl: string;
|
|
1160
|
-
width?: number;
|
|
1161
|
-
height?: number;
|
|
1162
|
-
autoPlay?: boolean;
|
|
1163
|
-
muted?: boolean;
|
|
1164
|
-
controls?: boolean;
|
|
1165
|
-
loop?: boolean;
|
|
1166
|
-
privacyMode?: boolean;
|
|
1167
|
-
}
|
|
1217
|
+
interface YoutubeVideoProps extends BaseComponentProps<HTMLIFrameElement> {
|
|
1218
|
+
videoUrl: string;
|
|
1219
|
+
width?: number;
|
|
1220
|
+
height?: number;
|
|
1221
|
+
autoPlay?: boolean;
|
|
1222
|
+
muted?: boolean;
|
|
1223
|
+
controls?: boolean;
|
|
1224
|
+
loop?: boolean;
|
|
1225
|
+
privacyMode?: boolean;
|
|
1226
|
+
}
|
|
1168
1227
|
declare function YoutubeVideo({ videoUrl, width, height, autoPlay, muted, controls, className, ...rest }: YoutubeVideoProps): react_jsx_runtime.JSX.Element;
|
|
1169
1228
|
|
|
1170
|
-
interface WorldMapPoint {
|
|
1171
|
-
code: string;
|
|
1172
|
-
value: number;
|
|
1173
|
-
}
|
|
1174
|
-
interface WorldMapProps extends BaseComponentProps {
|
|
1175
|
-
data: WorldMapPoint[];
|
|
1176
|
-
title?: string;
|
|
1177
|
-
bubbleColor?: string;
|
|
1178
|
-
bubbleStroke?: string;
|
|
1179
|
-
bubbleScale?: number;
|
|
1180
|
-
minBubble?: number;
|
|
1181
|
-
disableCountryHover?: boolean;
|
|
1182
|
-
disableCountrySelect?: boolean;
|
|
1183
|
-
}
|
|
1229
|
+
interface WorldMapPoint {
|
|
1230
|
+
code: string;
|
|
1231
|
+
value: number;
|
|
1232
|
+
}
|
|
1233
|
+
interface WorldMapProps extends BaseComponentProps {
|
|
1234
|
+
data: WorldMapPoint[];
|
|
1235
|
+
title?: string;
|
|
1236
|
+
bubbleColor?: string;
|
|
1237
|
+
bubbleStroke?: string;
|
|
1238
|
+
bubbleScale?: number;
|
|
1239
|
+
minBubble?: number;
|
|
1240
|
+
disableCountryHover?: boolean;
|
|
1241
|
+
disableCountrySelect?: boolean;
|
|
1242
|
+
}
|
|
1184
1243
|
declare function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble, disableCountryHover, disableCountrySelect, className, ...rest }: WorldMapProps): react_jsx_runtime.JSX.Element;
|
|
1185
1244
|
|
|
1186
|
-
interface ButtonProps extends BaseComponentProps<HTMLButtonElement> {
|
|
1187
|
-
type?: "button" | "submit" | "reset";
|
|
1188
|
-
icon?: ReactNode;
|
|
1189
|
-
text?: string;
|
|
1190
|
-
children?: ReactNode;
|
|
1191
|
-
loading?: boolean;
|
|
1192
|
-
disabled?: boolean;
|
|
1193
|
-
block?: boolean;
|
|
1194
|
-
variant?: Variant$1;
|
|
1195
|
-
appearance?: Appearance;
|
|
1196
|
-
shape?: Shape$1;
|
|
1197
|
-
size?: Size$1;
|
|
1198
|
-
}
|
|
1245
|
+
interface ButtonProps extends BaseComponentProps<HTMLButtonElement> {
|
|
1246
|
+
type?: "button" | "submit" | "reset";
|
|
1247
|
+
icon?: ReactNode;
|
|
1248
|
+
text?: string;
|
|
1249
|
+
children?: ReactNode;
|
|
1250
|
+
loading?: boolean;
|
|
1251
|
+
disabled?: boolean;
|
|
1252
|
+
block?: boolean;
|
|
1253
|
+
variant?: Variant$1;
|
|
1254
|
+
appearance?: Appearance;
|
|
1255
|
+
shape?: Shape$1;
|
|
1256
|
+
size?: Size$1;
|
|
1257
|
+
}
|
|
1199
1258
|
declare function Button({ type, icon, text, children, loading, disabled, block, variant, appearance, shape, size, className, onMouseMove, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1200
1259
|
|
|
1201
|
-
interface CheckboxOption {
|
|
1202
|
-
label: string;
|
|
1203
|
-
value: string;
|
|
1204
|
-
}
|
|
1205
|
-
interface BaseCheckboxProps extends BaseComponentProps {
|
|
1206
|
-
placeholder?: string;
|
|
1207
|
-
variant?: Variant$1;
|
|
1208
|
-
shape?: Shape$1;
|
|
1209
|
-
}
|
|
1210
|
-
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
1211
|
-
options?: never;
|
|
1212
|
-
}
|
|
1213
|
-
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
1214
|
-
options: CheckboxOption[];
|
|
1215
|
-
}
|
|
1216
|
-
type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
1260
|
+
interface CheckboxOption {
|
|
1261
|
+
label: string;
|
|
1262
|
+
value: string;
|
|
1263
|
+
}
|
|
1264
|
+
interface BaseCheckboxProps extends BaseComponentProps {
|
|
1265
|
+
placeholder?: string;
|
|
1266
|
+
variant?: Variant$1;
|
|
1267
|
+
shape?: Shape$1;
|
|
1268
|
+
}
|
|
1269
|
+
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
1270
|
+
options?: never;
|
|
1271
|
+
}
|
|
1272
|
+
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
1273
|
+
options: CheckboxOption[];
|
|
1274
|
+
}
|
|
1275
|
+
type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
1217
1276
|
declare function Checkbox({ placeholder, variant, shape, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
1218
1277
|
|
|
1219
|
-
declare enum Variant {
|
|
1220
|
-
default = "default",
|
|
1221
|
-
primary = "primary",
|
|
1222
|
-
secondary = "secondary",
|
|
1223
|
-
success = "success",
|
|
1224
|
-
danger = "danger",
|
|
1225
|
-
warning = "warning",
|
|
1226
|
-
info = "info",
|
|
1227
|
-
light = "light",
|
|
1228
|
-
dark = "dark"
|
|
1229
|
-
}
|
|
1230
|
-
declare enum TextVariant {
|
|
1231
|
-
default = "default",
|
|
1232
|
-
primary = "primary",
|
|
1233
|
-
secondary = "secondary",
|
|
1234
|
-
success = "success",
|
|
1235
|
-
danger = "danger",
|
|
1236
|
-
warning = "warning",
|
|
1237
|
-
info = "info",
|
|
1238
|
-
light = "light",
|
|
1239
|
-
dark = "dark"
|
|
1240
|
-
}
|
|
1241
|
-
declare enum Shape {
|
|
1242
|
-
circle = "circle",
|
|
1243
|
-
roundedSquare = "roundedSquare",
|
|
1244
|
-
softRoundedSquare = "softRoundedSquare",
|
|
1245
|
-
square = "square"
|
|
1246
|
-
}
|
|
1247
|
-
declare enum Size {
|
|
1248
|
-
xs = "xs",
|
|
1249
|
-
sm = "sm",
|
|
1250
|
-
md = "md",
|
|
1251
|
-
lg = "lg",
|
|
1252
|
-
xl = "xl"
|
|
1253
|
-
}
|
|
1254
|
-
declare enum Decoration {
|
|
1255
|
-
underline = "underline",
|
|
1256
|
-
overline = "overline",
|
|
1257
|
-
lineThrough = "lineThrough",
|
|
1258
|
-
noUnderline = "noUnderline"
|
|
1259
|
-
}
|
|
1260
|
-
declare enum Target {
|
|
1261
|
-
blank = "blank",
|
|
1262
|
-
self = "self",
|
|
1263
|
-
parent = "parent",
|
|
1264
|
-
top = "top"
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
type DateSelectorProps = FieldHookConfig<string> & {
|
|
1268
|
-
name: string;
|
|
1269
|
-
placeholder: string;
|
|
1270
|
-
styles?: string;
|
|
1271
|
-
shape?: keyof typeof Shape;
|
|
1272
|
-
};
|
|
1278
|
+
declare enum Variant {
|
|
1279
|
+
default = "default",
|
|
1280
|
+
primary = "primary",
|
|
1281
|
+
secondary = "secondary",
|
|
1282
|
+
success = "success",
|
|
1283
|
+
danger = "danger",
|
|
1284
|
+
warning = "warning",
|
|
1285
|
+
info = "info",
|
|
1286
|
+
light = "light",
|
|
1287
|
+
dark = "dark"
|
|
1288
|
+
}
|
|
1289
|
+
declare enum TextVariant {
|
|
1290
|
+
default = "default",
|
|
1291
|
+
primary = "primary",
|
|
1292
|
+
secondary = "secondary",
|
|
1293
|
+
success = "success",
|
|
1294
|
+
danger = "danger",
|
|
1295
|
+
warning = "warning",
|
|
1296
|
+
info = "info",
|
|
1297
|
+
light = "light",
|
|
1298
|
+
dark = "dark"
|
|
1299
|
+
}
|
|
1300
|
+
declare enum Shape {
|
|
1301
|
+
circle = "circle",
|
|
1302
|
+
roundedSquare = "roundedSquare",
|
|
1303
|
+
softRoundedSquare = "softRoundedSquare",
|
|
1304
|
+
square = "square"
|
|
1305
|
+
}
|
|
1306
|
+
declare enum Size {
|
|
1307
|
+
xs = "xs",
|
|
1308
|
+
sm = "sm",
|
|
1309
|
+
md = "md",
|
|
1310
|
+
lg = "lg",
|
|
1311
|
+
xl = "xl"
|
|
1312
|
+
}
|
|
1313
|
+
declare enum Decoration {
|
|
1314
|
+
underline = "underline",
|
|
1315
|
+
overline = "overline",
|
|
1316
|
+
lineThrough = "lineThrough",
|
|
1317
|
+
noUnderline = "noUnderline"
|
|
1318
|
+
}
|
|
1319
|
+
declare enum Target {
|
|
1320
|
+
blank = "blank",
|
|
1321
|
+
self = "self",
|
|
1322
|
+
parent = "parent",
|
|
1323
|
+
top = "top"
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
type DateSelectorProps = FieldHookConfig<string> & {
|
|
1327
|
+
name: string;
|
|
1328
|
+
placeholder: string;
|
|
1329
|
+
styles?: string;
|
|
1330
|
+
shape?: keyof typeof Shape;
|
|
1331
|
+
};
|
|
1273
1332
|
declare const DateSelector: ({ placeholder, styles, shape, ...props }: DateSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
1274
1333
|
|
|
1275
|
-
interface FormProps {
|
|
1276
|
-
initialValues?: Record<string, any>;
|
|
1277
|
-
validationSchema?: object;
|
|
1278
|
-
enableReinitialize?: boolean;
|
|
1279
|
-
children?: React__default.ReactNode;
|
|
1280
|
-
styles?: string;
|
|
1281
|
-
onSubmit: (values: any, helpers?: any) => void;
|
|
1282
|
-
onChange?: (values: Record<string, any>, meta?: {
|
|
1283
|
-
changed: Record<string, any>;
|
|
1284
|
-
}) => void;
|
|
1285
|
-
warnOnUnsavedChanges?: boolean;
|
|
1286
|
-
onDirtyChange?: (dirty: boolean) => void;
|
|
1287
|
-
}
|
|
1334
|
+
interface FormProps {
|
|
1335
|
+
initialValues?: Record<string, any>;
|
|
1336
|
+
validationSchema?: object;
|
|
1337
|
+
enableReinitialize?: boolean;
|
|
1338
|
+
children?: React__default.ReactNode;
|
|
1339
|
+
styles?: string;
|
|
1340
|
+
onSubmit: (values: any, helpers?: any) => void;
|
|
1341
|
+
onChange?: (values: Record<string, any>, meta?: {
|
|
1342
|
+
changed: Record<string, any>;
|
|
1343
|
+
}) => void;
|
|
1344
|
+
warnOnUnsavedChanges?: boolean;
|
|
1345
|
+
onDirtyChange?: (dirty: boolean) => void;
|
|
1346
|
+
}
|
|
1288
1347
|
declare const Form: ({ initialValues, validationSchema, enableReinitialize, children, styles, onSubmit, onChange, warnOnUnsavedChanges, onDirtyChange, }: FormProps) => react_jsx_runtime.JSX.Element;
|
|
1289
1348
|
|
|
1290
|
-
interface FormResponseProps {
|
|
1291
|
-
text: string | undefined;
|
|
1292
|
-
variant?: keyof typeof Variant;
|
|
1293
|
-
shape?: keyof typeof Shape;
|
|
1294
|
-
size?: keyof typeof Size;
|
|
1295
|
-
styles?: string;
|
|
1296
|
-
}
|
|
1349
|
+
interface FormResponseProps {
|
|
1350
|
+
text: string | undefined;
|
|
1351
|
+
variant?: keyof typeof Variant;
|
|
1352
|
+
shape?: keyof typeof Shape;
|
|
1353
|
+
size?: keyof typeof Size;
|
|
1354
|
+
styles?: string;
|
|
1355
|
+
}
|
|
1297
1356
|
declare function FormResponse({ text, variant, shape, size, styles, }: FormResponseProps): react_jsx_runtime.JSX.Element;
|
|
1298
1357
|
|
|
1299
|
-
interface ImageInputProps {
|
|
1300
|
-
title?: string;
|
|
1301
|
-
uploadDir?: string;
|
|
1302
|
-
onValueChanged?: (imageUrl: string) => void;
|
|
1303
|
-
disableSetValue?: boolean;
|
|
1304
|
-
}
|
|
1305
|
-
interface ImageInputRef {
|
|
1306
|
-
handleResetClick: () => void;
|
|
1307
|
-
}
|
|
1358
|
+
interface ImageInputProps {
|
|
1359
|
+
title?: string;
|
|
1360
|
+
uploadDir?: string;
|
|
1361
|
+
onValueChanged?: (imageUrl: string) => void;
|
|
1362
|
+
disableSetValue?: boolean;
|
|
1363
|
+
}
|
|
1364
|
+
interface ImageInputRef {
|
|
1365
|
+
handleResetClick: () => void;
|
|
1366
|
+
}
|
|
1308
1367
|
declare const ImageInput: React__default.ForwardRefExoticComponent<(Omit<React__default.ClassAttributes<HTMLInputElement> & React__default.InputHTMLAttributes<HTMLInputElement> & formik.FieldConfig<string> & ImageInputProps, "ref"> | Omit<React__default.ClassAttributes<HTMLSelectElement> & React__default.SelectHTMLAttributes<HTMLSelectElement> & formik.FieldConfig<string> & ImageInputProps, "ref"> | Omit<React__default.ClassAttributes<HTMLTextAreaElement> & React__default.TextareaHTMLAttributes<HTMLTextAreaElement> & formik.FieldConfig<string> & ImageInputProps, "ref">) & React__default.RefAttributes<ImageInputRef>>;
|
|
1309
1368
|
|
|
1310
|
-
type InputProps = FieldHookConfig<string> & {
|
|
1311
|
-
type: "text" | "password" | "number";
|
|
1312
|
-
name: string;
|
|
1313
|
-
placeholder: string;
|
|
1314
|
-
styles?: string;
|
|
1315
|
-
step?: string;
|
|
1316
|
-
shape?: keyof typeof Shape;
|
|
1317
|
-
};
|
|
1369
|
+
type InputProps = FieldHookConfig<string> & {
|
|
1370
|
+
type: "text" | "password" | "number";
|
|
1371
|
+
name: string;
|
|
1372
|
+
placeholder: string;
|
|
1373
|
+
styles?: string;
|
|
1374
|
+
step?: string;
|
|
1375
|
+
shape?: keyof typeof Shape;
|
|
1376
|
+
};
|
|
1318
1377
|
declare const Input: ({ type, placeholder, styles, step, shape, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
1319
1378
|
|
|
1320
|
-
interface InputFileProps {
|
|
1321
|
-
placeholder: string;
|
|
1322
|
-
accept?: string;
|
|
1323
|
-
styles?: string;
|
|
1324
|
-
}
|
|
1379
|
+
interface InputFileProps {
|
|
1380
|
+
placeholder: string;
|
|
1381
|
+
accept?: string;
|
|
1382
|
+
styles?: string;
|
|
1383
|
+
}
|
|
1325
1384
|
declare const InputFile: ({ placeholder, accept, styles, ...props }: FieldHookConfig<File | null> & InputFileProps) => react_jsx_runtime.JSX.Element;
|
|
1326
1385
|
|
|
1327
|
-
interface FormDataEntryLabelProps {
|
|
1328
|
-
text?: string;
|
|
1329
|
-
children?: React__default.ReactNode;
|
|
1330
|
-
styles?: string;
|
|
1331
|
-
}
|
|
1386
|
+
interface FormDataEntryLabelProps {
|
|
1387
|
+
text?: string;
|
|
1388
|
+
children?: React__default.ReactNode;
|
|
1389
|
+
styles?: string;
|
|
1390
|
+
}
|
|
1332
1391
|
declare function InputLabel({ text, children, styles }: FormDataEntryLabelProps): react_jsx_runtime.JSX.Element;
|
|
1333
1392
|
|
|
1334
|
-
interface InputListProps {
|
|
1335
|
-
name: string;
|
|
1336
|
-
placeholder?: string;
|
|
1337
|
-
shape?: keyof typeof Shape;
|
|
1338
|
-
}
|
|
1393
|
+
interface InputListProps {
|
|
1394
|
+
name: string;
|
|
1395
|
+
placeholder?: string;
|
|
1396
|
+
shape?: keyof typeof Shape;
|
|
1397
|
+
}
|
|
1339
1398
|
declare const InputList: ({ name, placeholder, shape }: InputListProps) => react_jsx_runtime.JSX.Element;
|
|
1340
1399
|
|
|
1341
|
-
interface InputListGroupProps {
|
|
1342
|
-
name: string;
|
|
1343
|
-
placeholder?: string;
|
|
1344
|
-
shape?: keyof typeof Shape;
|
|
1345
|
-
}
|
|
1400
|
+
interface InputListGroupProps {
|
|
1401
|
+
name: string;
|
|
1402
|
+
placeholder?: string;
|
|
1403
|
+
shape?: keyof typeof Shape;
|
|
1404
|
+
}
|
|
1346
1405
|
declare const InputListGroup: ({ name, placeholder, shape, }: InputListGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1347
1406
|
|
|
1348
|
-
interface InputResponseProps {
|
|
1349
|
-
name: string;
|
|
1350
|
-
visibility?: boolean;
|
|
1351
|
-
variant?: keyof typeof TextVariant;
|
|
1352
|
-
styles?: string;
|
|
1353
|
-
}
|
|
1407
|
+
interface InputResponseProps {
|
|
1408
|
+
name: string;
|
|
1409
|
+
visibility?: boolean;
|
|
1410
|
+
variant?: keyof typeof TextVariant;
|
|
1411
|
+
styles?: string;
|
|
1412
|
+
}
|
|
1354
1413
|
declare function InputResponse({ name, visibility, variant, styles, }: InputResponseProps): react_jsx_runtime.JSX.Element;
|
|
1355
1414
|
|
|
1356
|
-
interface MultiImageInputProps {
|
|
1357
|
-
title?: string;
|
|
1358
|
-
uploadDir?: string;
|
|
1359
|
-
name: string;
|
|
1360
|
-
}
|
|
1415
|
+
interface MultiImageInputProps {
|
|
1416
|
+
title?: string;
|
|
1417
|
+
uploadDir?: string;
|
|
1418
|
+
name: string;
|
|
1419
|
+
}
|
|
1361
1420
|
declare function MultiImageInput({ title, uploadDir, ...props }: FieldHookConfig<string[]> & MultiImageInputProps): react_jsx_runtime.JSX.Element;
|
|
1362
1421
|
|
|
1363
|
-
interface RadioProps {
|
|
1364
|
-
placeholder: string;
|
|
1365
|
-
options: any[];
|
|
1366
|
-
}
|
|
1422
|
+
interface RadioProps {
|
|
1423
|
+
placeholder: string;
|
|
1424
|
+
options: any[];
|
|
1425
|
+
}
|
|
1367
1426
|
declare function Radio({ placeholder, options, ...props }: FieldHookConfig<string> & RadioProps): react_jsx_runtime.JSX.Element;
|
|
1368
1427
|
|
|
1369
|
-
interface StarRatingInputProps {
|
|
1370
|
-
starAmount?: number;
|
|
1371
|
-
styles?: string;
|
|
1372
|
-
}
|
|
1428
|
+
interface StarRatingInputProps {
|
|
1429
|
+
starAmount?: number;
|
|
1430
|
+
styles?: string;
|
|
1431
|
+
}
|
|
1373
1432
|
declare function StarRatingInput({ starAmount, styles, ...props }: FieldHookConfig<string> & StarRatingInputProps): react_jsx_runtime.JSX.Element;
|
|
1374
1433
|
|
|
1375
|
-
type SelectProps = FieldHookConfig<string> & {
|
|
1376
|
-
name: string;
|
|
1377
|
-
placeholder: string;
|
|
1378
|
-
options: any[];
|
|
1379
|
-
styles?: string;
|
|
1380
|
-
shape?: keyof typeof Shape;
|
|
1381
|
-
};
|
|
1434
|
+
type SelectProps = FieldHookConfig<string> & {
|
|
1435
|
+
name: string;
|
|
1436
|
+
placeholder: string;
|
|
1437
|
+
options: any[];
|
|
1438
|
+
styles?: string;
|
|
1439
|
+
shape?: keyof typeof Shape;
|
|
1440
|
+
};
|
|
1382
1441
|
declare function Select({ placeholder, options, styles, shape, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
1383
1442
|
|
|
1384
|
-
interface SwitchProps {
|
|
1385
|
-
name: string;
|
|
1386
|
-
label?: string;
|
|
1387
|
-
description?: string;
|
|
1388
|
-
showStatus?: boolean;
|
|
1389
|
-
}
|
|
1443
|
+
interface SwitchProps {
|
|
1444
|
+
name: string;
|
|
1445
|
+
label?: string;
|
|
1446
|
+
description?: string;
|
|
1447
|
+
showStatus?: boolean;
|
|
1448
|
+
}
|
|
1390
1449
|
declare function Switch({ label, description, showStatus, ...props }: FieldHookConfig<boolean> & SwitchProps): react_jsx_runtime.JSX.Element;
|
|
1391
1450
|
|
|
1392
|
-
interface TagsProps {
|
|
1393
|
-
placeholder: string;
|
|
1394
|
-
styles?: string;
|
|
1395
|
-
limit?: number;
|
|
1396
|
-
}
|
|
1451
|
+
interface TagsProps {
|
|
1452
|
+
placeholder: string;
|
|
1453
|
+
styles?: string;
|
|
1454
|
+
limit?: number;
|
|
1455
|
+
}
|
|
1397
1456
|
declare function Tags({ placeholder, styles, limit, ...props }: TagsProps & FieldHookConfig<string[]>): react_jsx_runtime.JSX.Element;
|
|
1398
1457
|
|
|
1399
|
-
type TextAreaProps = FieldHookConfig<string> & {
|
|
1400
|
-
name: string;
|
|
1401
|
-
placeholder: string;
|
|
1402
|
-
limit?: number;
|
|
1403
|
-
styles?: string;
|
|
1404
|
-
shape?: keyof typeof Shape;
|
|
1405
|
-
};
|
|
1458
|
+
type TextAreaProps = FieldHookConfig<string> & {
|
|
1459
|
+
name: string;
|
|
1460
|
+
placeholder: string;
|
|
1461
|
+
limit?: number;
|
|
1462
|
+
styles?: string;
|
|
1463
|
+
shape?: keyof typeof Shape;
|
|
1464
|
+
};
|
|
1406
1465
|
declare function TextArea({ placeholder, limit, styles, shape, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
1407
1466
|
|
|
1408
|
-
interface EUIComponentDefaults {
|
|
1409
|
-
variant?: keyof typeof Variant;
|
|
1410
|
-
size?: keyof typeof Size;
|
|
1411
|
-
shape?: keyof typeof Shape;
|
|
1412
|
-
styles?: string;
|
|
1413
|
-
}
|
|
1414
|
-
interface EUIRoute {
|
|
1415
|
-
path: string;
|
|
1416
|
-
name: string;
|
|
1417
|
-
}
|
|
1418
|
-
interface EUIConfigs {
|
|
1419
|
-
global?: EUIComponentDefaults;
|
|
1420
|
-
routes?: EUIRoute[];
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
interface EUIContextValue {
|
|
1424
|
-
config: EUIConfigs;
|
|
1425
|
-
setConfig: React__default.Dispatch<React__default.SetStateAction<EUIConfigs>>;
|
|
1426
|
-
}
|
|
1427
|
-
declare const EUIProvider: ({ config, children, }: {
|
|
1428
|
-
config: EUIConfigs;
|
|
1429
|
-
children: React__default.ReactNode;
|
|
1430
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1467
|
+
interface EUIComponentDefaults {
|
|
1468
|
+
variant?: keyof typeof Variant;
|
|
1469
|
+
size?: keyof typeof Size;
|
|
1470
|
+
shape?: keyof typeof Shape;
|
|
1471
|
+
styles?: string;
|
|
1472
|
+
}
|
|
1473
|
+
interface EUIRoute {
|
|
1474
|
+
path: string;
|
|
1475
|
+
name: string;
|
|
1476
|
+
}
|
|
1477
|
+
interface EUIConfigs {
|
|
1478
|
+
global?: EUIComponentDefaults;
|
|
1479
|
+
routes?: EUIRoute[];
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
interface EUIContextValue {
|
|
1483
|
+
config: EUIConfigs;
|
|
1484
|
+
setConfig: React__default.Dispatch<React__default.SetStateAction<EUIConfigs>>;
|
|
1485
|
+
}
|
|
1486
|
+
declare const EUIProvider: ({ config, children, }: {
|
|
1487
|
+
config: EUIConfigs;
|
|
1488
|
+
children: React__default.ReactNode;
|
|
1489
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1431
1490
|
declare const useEUIConfig: () => EUIContextValue;
|
|
1432
1491
|
|
|
1433
1492
|
declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
|
|
1434
1493
|
|
|
1435
|
-
interface BackdropProps {
|
|
1436
|
-
children?: React__default.ReactNode;
|
|
1437
|
-
styles?: string;
|
|
1438
|
-
}
|
|
1494
|
+
interface BackdropProps {
|
|
1495
|
+
children?: React__default.ReactNode;
|
|
1496
|
+
styles?: string;
|
|
1497
|
+
}
|
|
1439
1498
|
declare const Backdrop: ({ children, styles }: BackdropProps) => react_jsx_runtime.JSX.Element;
|
|
1440
1499
|
|
|
1441
|
-
interface SkeletonProps extends BaseComponentProps {
|
|
1442
|
-
children?: React__default.ReactNode;
|
|
1443
|
-
}
|
|
1500
|
+
interface SkeletonProps extends BaseComponentProps {
|
|
1501
|
+
children?: React__default.ReactNode;
|
|
1502
|
+
}
|
|
1444
1503
|
declare const Skeleton: ({ children, className, ...rest }: SkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
1445
1504
|
|
|
1446
|
-
declare function sendToast(data?: {
|
|
1447
|
-
status: string;
|
|
1448
|
-
message: string;
|
|
1449
|
-
}): void;
|
|
1505
|
+
declare function sendToast(data?: {
|
|
1506
|
+
status: string;
|
|
1507
|
+
message: string;
|
|
1508
|
+
}): void;
|
|
1450
1509
|
declare function Toast(): react_jsx_runtime.JSX.Element;
|
|
1451
1510
|
|
|
1452
|
-
interface TransitionDropdownProps$1 {
|
|
1453
|
-
visibility: any;
|
|
1454
|
-
children?: ReactNode;
|
|
1455
|
-
}
|
|
1511
|
+
interface TransitionDropdownProps$1 {
|
|
1512
|
+
visibility: any;
|
|
1513
|
+
children?: ReactNode;
|
|
1514
|
+
}
|
|
1456
1515
|
declare function TransitionDropdown({ visibility, children }: TransitionDropdownProps$1): react_jsx_runtime.JSX.Element;
|
|
1457
1516
|
|
|
1458
|
-
interface TransitionDropdownProps {
|
|
1459
|
-
visibility: any;
|
|
1460
|
-
children?: ReactNode;
|
|
1461
|
-
}
|
|
1517
|
+
interface TransitionDropdownProps {
|
|
1518
|
+
visibility: any;
|
|
1519
|
+
children?: ReactNode;
|
|
1520
|
+
}
|
|
1462
1521
|
declare function TransitionFadeIn({ visibility, children }: TransitionDropdownProps): react_jsx_runtime.JSX.Element;
|
|
1463
1522
|
|
|
1464
|
-
declare const Transition: {
|
|
1465
|
-
TransitionDropdown: typeof TransitionDropdown;
|
|
1466
|
-
TransitionFadeIn: typeof TransitionFadeIn;
|
|
1523
|
+
declare const Transition: {
|
|
1524
|
+
TransitionDropdown: typeof TransitionDropdown;
|
|
1525
|
+
TransitionFadeIn: typeof TransitionFadeIn;
|
|
1467
1526
|
};
|
|
1468
1527
|
|
|
1469
|
-
interface ContentAreaProps {
|
|
1470
|
-
children?: ReactNode;
|
|
1471
|
-
styles?: string;
|
|
1472
|
-
enablePadding?: boolean;
|
|
1473
|
-
}
|
|
1528
|
+
interface ContentAreaProps {
|
|
1529
|
+
children?: ReactNode;
|
|
1530
|
+
styles?: string;
|
|
1531
|
+
enablePadding?: boolean;
|
|
1532
|
+
}
|
|
1474
1533
|
declare function ContentArea({ children, styles, enablePadding, }: ContentAreaProps): react_jsx_runtime.JSX.Element;
|
|
1475
1534
|
|
|
1476
|
-
interface FlexColProps$1 {
|
|
1477
|
-
children?: React__default.ReactNode;
|
|
1478
|
-
gap?: number;
|
|
1479
|
-
styles?: string;
|
|
1480
|
-
}
|
|
1535
|
+
interface FlexColProps$1 {
|
|
1536
|
+
children?: React__default.ReactNode;
|
|
1537
|
+
gap?: number;
|
|
1538
|
+
styles?: string;
|
|
1539
|
+
}
|
|
1481
1540
|
declare function FlexCol({ children, gap, styles }: FlexColProps$1): react_jsx_runtime.JSX.Element;
|
|
1482
1541
|
|
|
1483
|
-
interface FlexColProps {
|
|
1484
|
-
children?: React__default.ReactNode;
|
|
1485
|
-
gap?: number;
|
|
1486
|
-
styles?: string;
|
|
1487
|
-
}
|
|
1542
|
+
interface FlexColProps {
|
|
1543
|
+
children?: React__default.ReactNode;
|
|
1544
|
+
gap?: number;
|
|
1545
|
+
styles?: string;
|
|
1546
|
+
}
|
|
1488
1547
|
declare function FlexRow({ children, gap, styles }: FlexColProps): react_jsx_runtime.JSX.Element;
|
|
1489
1548
|
|
|
1490
|
-
declare const Flex: {
|
|
1491
|
-
FlexCol: typeof FlexCol;
|
|
1492
|
-
FlexRow: typeof FlexRow;
|
|
1549
|
+
declare const Flex: {
|
|
1550
|
+
FlexCol: typeof FlexCol;
|
|
1551
|
+
FlexRow: typeof FlexRow;
|
|
1493
1552
|
};
|
|
1494
1553
|
|
|
1495
|
-
interface GridProps {
|
|
1496
|
-
children?: React__default.ReactNode;
|
|
1497
|
-
styles?: string;
|
|
1498
|
-
}
|
|
1554
|
+
interface GridProps {
|
|
1555
|
+
children?: React__default.ReactNode;
|
|
1556
|
+
styles?: string;
|
|
1557
|
+
}
|
|
1499
1558
|
declare function Grid({ children, styles }: GridProps): react_jsx_runtime.JSX.Element;
|
|
1500
1559
|
|
|
1501
|
-
interface LayoutProps {
|
|
1502
|
-
flexDirection?: "vertical" | "horizontal";
|
|
1503
|
-
children?: React__default.ReactNode;
|
|
1504
|
-
styles?: string;
|
|
1505
|
-
}
|
|
1560
|
+
interface LayoutProps {
|
|
1561
|
+
flexDirection?: "vertical" | "horizontal";
|
|
1562
|
+
children?: React__default.ReactNode;
|
|
1563
|
+
styles?: string;
|
|
1564
|
+
}
|
|
1506
1565
|
declare const Layout: ({ flexDirection, children, styles, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1507
1566
|
|
|
1508
|
-
interface HeaderProps {
|
|
1509
|
-
position?: "static" | "fixed" | "sticky";
|
|
1510
|
-
children?: React__default.ReactNode;
|
|
1511
|
-
styles?: string;
|
|
1512
|
-
}
|
|
1567
|
+
interface HeaderProps {
|
|
1568
|
+
position?: "static" | "fixed" | "sticky";
|
|
1569
|
+
children?: React__default.ReactNode;
|
|
1570
|
+
styles?: string;
|
|
1571
|
+
}
|
|
1513
1572
|
declare const Header: ({ position, children, styles, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1514
1573
|
|
|
1515
|
-
interface ContentProps {
|
|
1516
|
-
children?: React__default.ReactNode;
|
|
1517
|
-
overlayedSidebar?: boolean;
|
|
1518
|
-
sidebarVisible?: boolean;
|
|
1519
|
-
styles?: string;
|
|
1520
|
-
}
|
|
1574
|
+
interface ContentProps {
|
|
1575
|
+
children?: React__default.ReactNode;
|
|
1576
|
+
overlayedSidebar?: boolean;
|
|
1577
|
+
sidebarVisible?: boolean;
|
|
1578
|
+
styles?: string;
|
|
1579
|
+
}
|
|
1521
1580
|
declare const Content: ({ sidebarVisible, overlayedSidebar, children, styles, }: ContentProps) => react_jsx_runtime.JSX.Element;
|
|
1522
1581
|
|
|
1523
|
-
interface FooterProps {
|
|
1524
|
-
children?: React__default.ReactNode;
|
|
1525
|
-
styles?: string;
|
|
1526
|
-
}
|
|
1582
|
+
interface FooterProps {
|
|
1583
|
+
children?: React__default.ReactNode;
|
|
1584
|
+
styles?: string;
|
|
1585
|
+
}
|
|
1527
1586
|
declare const Footer: ({ children, styles }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
1528
1587
|
|
|
1529
|
-
interface BlockProps extends BaseComponentProps {
|
|
1530
|
-
title?: string;
|
|
1531
|
-
description?: string;
|
|
1532
|
-
required?: boolean;
|
|
1533
|
-
layout?: ListDirection;
|
|
1534
|
-
labelWidth?: string;
|
|
1535
|
-
children: React__default.ReactNode;
|
|
1536
|
-
}
|
|
1588
|
+
interface BlockProps extends BaseComponentProps {
|
|
1589
|
+
title?: string;
|
|
1590
|
+
description?: string;
|
|
1591
|
+
required?: boolean;
|
|
1592
|
+
layout?: ListDirection;
|
|
1593
|
+
labelWidth?: string;
|
|
1594
|
+
children: React__default.ReactNode;
|
|
1595
|
+
}
|
|
1537
1596
|
declare function Block({ title, description, required, layout, labelWidth, children, className, ...rest }: BlockProps): react_jsx_runtime.JSX.Element;
|
|
1538
1597
|
|
|
1539
|
-
interface BlockGroupProps extends BaseComponentProps {
|
|
1540
|
-
title?: string;
|
|
1541
|
-
description?: string;
|
|
1542
|
-
children: React__default.ReactNode;
|
|
1543
|
-
noDivider?: boolean;
|
|
1544
|
-
}
|
|
1598
|
+
interface BlockGroupProps extends BaseComponentProps {
|
|
1599
|
+
title?: string;
|
|
1600
|
+
description?: string;
|
|
1601
|
+
children: React__default.ReactNode;
|
|
1602
|
+
noDivider?: boolean;
|
|
1603
|
+
}
|
|
1545
1604
|
declare function BlockGroup({ title, description, children, noDivider, className, ...rest }: BlockGroupProps): react_jsx_runtime.JSX.Element;
|
|
1546
1605
|
|
|
1547
|
-
interface MarkdownEditorProps {
|
|
1548
|
-
placeholder?: string;
|
|
1549
|
-
styles?: string;
|
|
1550
|
-
}
|
|
1606
|
+
interface MarkdownEditorProps {
|
|
1607
|
+
placeholder?: string;
|
|
1608
|
+
styles?: string;
|
|
1609
|
+
}
|
|
1551
1610
|
declare function MarkdownEditor({ styles, ...props }: MarkdownEditorProps & FieldHookConfig<string>): react_jsx_runtime.JSX.Element;
|
|
1552
1611
|
|
|
1553
|
-
interface MarkdownTOCProps {
|
|
1554
|
-
title?: string;
|
|
1555
|
-
}
|
|
1612
|
+
interface MarkdownTOCProps {
|
|
1613
|
+
title?: string;
|
|
1614
|
+
}
|
|
1556
1615
|
declare function MarkdownTOC({ title }: MarkdownTOCProps): react_jsx_runtime.JSX.Element | null;
|
|
1557
1616
|
|
|
1558
|
-
interface MarkdownViewerProps {
|
|
1559
|
-
value?: string;
|
|
1560
|
-
}
|
|
1617
|
+
interface MarkdownViewerProps {
|
|
1618
|
+
value?: string;
|
|
1619
|
+
}
|
|
1561
1620
|
declare function MarkdownViewer({ value }: MarkdownViewerProps): react_jsx_runtime.JSX.Element;
|
|
1562
1621
|
|
|
1563
|
-
interface MarkdownProviderProps {
|
|
1564
|
-
markdown: string;
|
|
1565
|
-
children: React__default.ReactNode;
|
|
1566
|
-
}
|
|
1622
|
+
interface MarkdownProviderProps {
|
|
1623
|
+
markdown: string;
|
|
1624
|
+
children: React__default.ReactNode;
|
|
1625
|
+
}
|
|
1567
1626
|
declare function MarkdownProvider({ markdown, children }: MarkdownProviderProps): react_jsx_runtime.JSX.Element;
|
|
1568
1627
|
|
|
1569
|
-
interface I_ItemType {
|
|
1570
|
-
title: string;
|
|
1571
|
-
href: string;
|
|
1572
|
-
}
|
|
1573
|
-
interface RouteConfig {
|
|
1574
|
-
path: string;
|
|
1575
|
-
name: string;
|
|
1576
|
-
}
|
|
1577
|
-
interface BreadcrumbProps {
|
|
1578
|
-
gap?: number;
|
|
1579
|
-
seperator?: string;
|
|
1580
|
-
data?: I_ItemType[];
|
|
1581
|
-
routes?: RouteConfig[];
|
|
1582
|
-
currentPath?: string;
|
|
1583
|
-
navigate?: (path: string) => void;
|
|
1584
|
-
styles?: string;
|
|
1585
|
-
}
|
|
1628
|
+
interface I_ItemType {
|
|
1629
|
+
title: string;
|
|
1630
|
+
href: string;
|
|
1631
|
+
}
|
|
1632
|
+
interface RouteConfig {
|
|
1633
|
+
path: string;
|
|
1634
|
+
name: string;
|
|
1635
|
+
}
|
|
1636
|
+
interface BreadcrumbProps {
|
|
1637
|
+
gap?: number;
|
|
1638
|
+
seperator?: string;
|
|
1639
|
+
data?: I_ItemType[];
|
|
1640
|
+
routes?: RouteConfig[];
|
|
1641
|
+
currentPath?: string;
|
|
1642
|
+
navigate?: (path: string) => void;
|
|
1643
|
+
styles?: string;
|
|
1644
|
+
}
|
|
1586
1645
|
declare const Breadcrumb: ({ gap, seperator, data, routes, currentPath, navigate, styles, }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
1587
1646
|
|
|
1588
|
-
interface BreadcrumbItemProps {
|
|
1589
|
-
title: string;
|
|
1590
|
-
href: string;
|
|
1591
|
-
active: boolean;
|
|
1592
|
-
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
1593
|
-
}
|
|
1647
|
+
interface BreadcrumbItemProps {
|
|
1648
|
+
title: string;
|
|
1649
|
+
href: string;
|
|
1650
|
+
active: boolean;
|
|
1651
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
1652
|
+
}
|
|
1594
1653
|
declare function BreadcrumbItem({ title, href, active, onClick, }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
|
|
1595
1654
|
|
|
1596
|
-
interface DrawerProps {
|
|
1597
|
-
children?: React__default.ReactNode;
|
|
1598
|
-
visibility: boolean;
|
|
1599
|
-
side?: "left" | "right" | "top" | "bottom";
|
|
1600
|
-
handleClose: () => void;
|
|
1601
|
-
styles?: string;
|
|
1602
|
-
}
|
|
1655
|
+
interface DrawerProps {
|
|
1656
|
+
children?: React__default.ReactNode;
|
|
1657
|
+
visibility: boolean;
|
|
1658
|
+
side?: "left" | "right" | "top" | "bottom";
|
|
1659
|
+
handleClose: () => void;
|
|
1660
|
+
styles?: string;
|
|
1661
|
+
}
|
|
1603
1662
|
declare const Drawer: ({ children, visibility, side, handleClose, styles, }: DrawerProps) => react_jsx_runtime.JSX.Element;
|
|
1604
1663
|
|
|
1605
|
-
interface DrawerTogglerProps {
|
|
1606
|
-
icon?: ReactNode;
|
|
1607
|
-
toggleDrawer?: () => void;
|
|
1608
|
-
styles?: string;
|
|
1609
|
-
}
|
|
1664
|
+
interface DrawerTogglerProps {
|
|
1665
|
+
icon?: ReactNode;
|
|
1666
|
+
toggleDrawer?: () => void;
|
|
1667
|
+
styles?: string;
|
|
1668
|
+
}
|
|
1610
1669
|
declare function DrawerToggler({ icon, toggleDrawer, styles, }: DrawerTogglerProps): react_jsx_runtime.JSX.Element;
|
|
1611
1670
|
|
|
1612
|
-
interface I_FooterNavItem {
|
|
1613
|
-
component: any;
|
|
1614
|
-
icon?: React__default.ReactNode;
|
|
1615
|
-
name: string;
|
|
1616
|
-
badge?: React__default.ReactNode;
|
|
1617
|
-
to?: string;
|
|
1618
|
-
onClick?: () => void;
|
|
1619
|
-
}
|
|
1620
|
-
interface I_FooterNavGroup {
|
|
1621
|
-
component: any;
|
|
1622
|
-
icon?: React__default.ReactNode;
|
|
1623
|
-
name: string;
|
|
1624
|
-
badge?: React__default.ReactNode;
|
|
1625
|
-
to?: string;
|
|
1626
|
-
items: I_FooterNavItem[];
|
|
1627
|
-
}
|
|
1628
|
-
type FooterDataItemProps = I_FooterNavItem | I_FooterNavGroup;
|
|
1629
|
-
interface FooterNavProps {
|
|
1630
|
-
data: FooterDataItemProps[];
|
|
1631
|
-
styles?: string;
|
|
1632
|
-
}
|
|
1671
|
+
interface I_FooterNavItem {
|
|
1672
|
+
component: any;
|
|
1673
|
+
icon?: React__default.ReactNode;
|
|
1674
|
+
name: string;
|
|
1675
|
+
badge?: React__default.ReactNode;
|
|
1676
|
+
to?: string;
|
|
1677
|
+
onClick?: () => void;
|
|
1678
|
+
}
|
|
1679
|
+
interface I_FooterNavGroup {
|
|
1680
|
+
component: any;
|
|
1681
|
+
icon?: React__default.ReactNode;
|
|
1682
|
+
name: string;
|
|
1683
|
+
badge?: React__default.ReactNode;
|
|
1684
|
+
to?: string;
|
|
1685
|
+
items: I_FooterNavItem[];
|
|
1686
|
+
}
|
|
1687
|
+
type FooterDataItemProps = I_FooterNavItem | I_FooterNavGroup;
|
|
1688
|
+
interface FooterNavProps {
|
|
1689
|
+
data: FooterDataItemProps[];
|
|
1690
|
+
styles?: string;
|
|
1691
|
+
}
|
|
1633
1692
|
declare function FooterNav({ data, styles }: FooterNavProps): react_jsx_runtime.JSX.Element;
|
|
1634
1693
|
|
|
1635
|
-
interface FooterNavGroupProps {
|
|
1636
|
-
icon?: React__default.ReactNode;
|
|
1637
|
-
name: string;
|
|
1638
|
-
description: string;
|
|
1639
|
-
badge?: React__default.ReactNode;
|
|
1640
|
-
to?: string;
|
|
1641
|
-
children: React__default.ReactNode;
|
|
1642
|
-
styles?: string;
|
|
1643
|
-
}
|
|
1694
|
+
interface FooterNavGroupProps {
|
|
1695
|
+
icon?: React__default.ReactNode;
|
|
1696
|
+
name: string;
|
|
1697
|
+
description: string;
|
|
1698
|
+
badge?: React__default.ReactNode;
|
|
1699
|
+
to?: string;
|
|
1700
|
+
children: React__default.ReactNode;
|
|
1701
|
+
styles?: string;
|
|
1702
|
+
}
|
|
1644
1703
|
declare const FooterNavGroup: ({ icon, name, description, badge, to, styles, children, }: FooterNavGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1645
1704
|
|
|
1646
|
-
interface FooterNavItemProps {
|
|
1647
|
-
icon?: React__default.ReactNode;
|
|
1648
|
-
name: string;
|
|
1649
|
-
description: string;
|
|
1650
|
-
badge?: React__default.ReactNode;
|
|
1651
|
-
to?: string;
|
|
1652
|
-
onClick?: () => void;
|
|
1653
|
-
styles?: string;
|
|
1654
|
-
}
|
|
1705
|
+
interface FooterNavItemProps {
|
|
1706
|
+
icon?: React__default.ReactNode;
|
|
1707
|
+
name: string;
|
|
1708
|
+
description: string;
|
|
1709
|
+
badge?: React__default.ReactNode;
|
|
1710
|
+
to?: string;
|
|
1711
|
+
onClick?: () => void;
|
|
1712
|
+
styles?: string;
|
|
1713
|
+
}
|
|
1655
1714
|
declare const FooterNavItem: ({ icon, name, description, badge, to, onClick, styles, }: FooterNavItemProps) => react_jsx_runtime.JSX.Element;
|
|
1656
1715
|
|
|
1657
|
-
interface FooterNavItemTitleProps {
|
|
1658
|
-
icon?: React__default.ReactNode;
|
|
1659
|
-
name: string;
|
|
1660
|
-
description: string;
|
|
1661
|
-
badge?: React__default.ReactNode;
|
|
1662
|
-
styles?: string;
|
|
1663
|
-
}
|
|
1716
|
+
interface FooterNavItemTitleProps {
|
|
1717
|
+
icon?: React__default.ReactNode;
|
|
1718
|
+
name: string;
|
|
1719
|
+
description: string;
|
|
1720
|
+
badge?: React__default.ReactNode;
|
|
1721
|
+
styles?: string;
|
|
1722
|
+
}
|
|
1664
1723
|
declare const FooterNavItemTitle: ({ icon, name, description, badge, styles, }: FooterNavItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1665
1724
|
|
|
1666
|
-
interface FooterNavItemContextProps {
|
|
1667
|
-
icon?: React__default.ReactNode;
|
|
1668
|
-
name: string;
|
|
1669
|
-
description: string;
|
|
1670
|
-
badge?: React__default.ReactNode;
|
|
1671
|
-
}
|
|
1725
|
+
interface FooterNavItemContextProps {
|
|
1726
|
+
icon?: React__default.ReactNode;
|
|
1727
|
+
name: string;
|
|
1728
|
+
description: string;
|
|
1729
|
+
badge?: React__default.ReactNode;
|
|
1730
|
+
}
|
|
1672
1731
|
declare const FooterNavItemContext: ({ icon, name, description, badge, }: FooterNavItemContextProps) => react_jsx_runtime.JSX.Element;
|
|
1673
1732
|
|
|
1674
|
-
interface I_HeaderNavItem {
|
|
1675
|
-
component: any;
|
|
1676
|
-
icon?: React__default.ReactNode;
|
|
1677
|
-
name: string;
|
|
1678
|
-
badge?: React__default.ReactNode;
|
|
1679
|
-
to?: string;
|
|
1680
|
-
onClick?: () => void;
|
|
1681
|
-
}
|
|
1682
|
-
interface I_HeaderNavGroup {
|
|
1683
|
-
component: any;
|
|
1684
|
-
icon?: React__default.ReactNode;
|
|
1685
|
-
name: string;
|
|
1686
|
-
badge?: React__default.ReactNode;
|
|
1687
|
-
to?: string;
|
|
1688
|
-
items: I_HeaderNavItem[];
|
|
1689
|
-
}
|
|
1690
|
-
type HeaderDataItemProps = I_HeaderNavItem | I_HeaderNavGroup;
|
|
1691
|
-
interface HeaderNavProps {
|
|
1692
|
-
data: HeaderDataItemProps[];
|
|
1693
|
-
styles?: string;
|
|
1694
|
-
}
|
|
1733
|
+
interface I_HeaderNavItem {
|
|
1734
|
+
component: any;
|
|
1735
|
+
icon?: React__default.ReactNode;
|
|
1736
|
+
name: string;
|
|
1737
|
+
badge?: React__default.ReactNode;
|
|
1738
|
+
to?: string;
|
|
1739
|
+
onClick?: () => void;
|
|
1740
|
+
}
|
|
1741
|
+
interface I_HeaderNavGroup {
|
|
1742
|
+
component: any;
|
|
1743
|
+
icon?: React__default.ReactNode;
|
|
1744
|
+
name: string;
|
|
1745
|
+
badge?: React__default.ReactNode;
|
|
1746
|
+
to?: string;
|
|
1747
|
+
items: I_HeaderNavItem[];
|
|
1748
|
+
}
|
|
1749
|
+
type HeaderDataItemProps = I_HeaderNavItem | I_HeaderNavGroup;
|
|
1750
|
+
interface HeaderNavProps {
|
|
1751
|
+
data: HeaderDataItemProps[];
|
|
1752
|
+
styles?: string;
|
|
1753
|
+
}
|
|
1695
1754
|
declare function HeaderNav({ data, styles }: HeaderNavProps): react_jsx_runtime.JSX.Element;
|
|
1696
1755
|
|
|
1697
|
-
interface HeaderNavGroupProps {
|
|
1698
|
-
icon?: React__default.ReactNode;
|
|
1699
|
-
name: string;
|
|
1700
|
-
description: string;
|
|
1701
|
-
badge?: React__default.ReactNode;
|
|
1702
|
-
to?: string;
|
|
1703
|
-
children: React__default.ReactNode;
|
|
1704
|
-
styles?: string;
|
|
1705
|
-
}
|
|
1756
|
+
interface HeaderNavGroupProps {
|
|
1757
|
+
icon?: React__default.ReactNode;
|
|
1758
|
+
name: string;
|
|
1759
|
+
description: string;
|
|
1760
|
+
badge?: React__default.ReactNode;
|
|
1761
|
+
to?: string;
|
|
1762
|
+
children: React__default.ReactNode;
|
|
1763
|
+
styles?: string;
|
|
1764
|
+
}
|
|
1706
1765
|
declare const HeaderNavGroup: ({ icon, name, description, badge, to, styles, children, }: HeaderNavGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1707
1766
|
|
|
1708
|
-
interface HeaderNavItemProps {
|
|
1709
|
-
icon?: React__default.ReactNode;
|
|
1710
|
-
name: string;
|
|
1711
|
-
description: string;
|
|
1712
|
-
badge?: React__default.ReactNode;
|
|
1713
|
-
to?: string;
|
|
1714
|
-
onClick?: () => void;
|
|
1715
|
-
styles?: string;
|
|
1716
|
-
}
|
|
1767
|
+
interface HeaderNavItemProps {
|
|
1768
|
+
icon?: React__default.ReactNode;
|
|
1769
|
+
name: string;
|
|
1770
|
+
description: string;
|
|
1771
|
+
badge?: React__default.ReactNode;
|
|
1772
|
+
to?: string;
|
|
1773
|
+
onClick?: () => void;
|
|
1774
|
+
styles?: string;
|
|
1775
|
+
}
|
|
1717
1776
|
declare const HeaderNavItem: ({ icon, name, description, badge, to, onClick, styles, }: HeaderNavItemProps) => react_jsx_runtime.JSX.Element;
|
|
1718
1777
|
|
|
1719
|
-
interface HeaderNavItemTitleProps {
|
|
1720
|
-
icon?: React__default.ReactNode;
|
|
1721
|
-
name: string;
|
|
1722
|
-
description: string;
|
|
1723
|
-
badge?: React__default.ReactNode;
|
|
1724
|
-
styles?: string;
|
|
1725
|
-
}
|
|
1778
|
+
interface HeaderNavItemTitleProps {
|
|
1779
|
+
icon?: React__default.ReactNode;
|
|
1780
|
+
name: string;
|
|
1781
|
+
description: string;
|
|
1782
|
+
badge?: React__default.ReactNode;
|
|
1783
|
+
styles?: string;
|
|
1784
|
+
}
|
|
1726
1785
|
declare const HeaderNavItemTitle: ({ icon, name, description, badge, styles, }: HeaderNavItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1727
1786
|
|
|
1728
|
-
interface HeaderNavItemContextProps {
|
|
1729
|
-
icon?: React__default.ReactNode;
|
|
1730
|
-
name: string;
|
|
1731
|
-
description: string;
|
|
1732
|
-
badge?: React__default.ReactNode;
|
|
1733
|
-
}
|
|
1787
|
+
interface HeaderNavItemContextProps {
|
|
1788
|
+
icon?: React__default.ReactNode;
|
|
1789
|
+
name: string;
|
|
1790
|
+
description: string;
|
|
1791
|
+
badge?: React__default.ReactNode;
|
|
1792
|
+
}
|
|
1734
1793
|
declare const HeaderNavItemContext: ({ icon, name, description, badge, }: HeaderNavItemContextProps) => react_jsx_runtime.JSX.Element;
|
|
1735
1794
|
|
|
1736
|
-
interface LinkProps {
|
|
1737
|
-
children?: string;
|
|
1738
|
-
href?: string;
|
|
1739
|
-
target?: keyof typeof Target;
|
|
1740
|
-
variant?: keyof typeof TextVariant;
|
|
1741
|
-
styles?: string;
|
|
1742
|
-
decoration?: keyof typeof Decoration;
|
|
1743
|
-
bold?: boolean;
|
|
1744
|
-
italic?: boolean;
|
|
1745
|
-
onClick?: () => void;
|
|
1746
|
-
}
|
|
1795
|
+
interface LinkProps {
|
|
1796
|
+
children?: string;
|
|
1797
|
+
href?: string;
|
|
1798
|
+
target?: keyof typeof Target;
|
|
1799
|
+
variant?: keyof typeof TextVariant;
|
|
1800
|
+
styles?: string;
|
|
1801
|
+
decoration?: keyof typeof Decoration;
|
|
1802
|
+
bold?: boolean;
|
|
1803
|
+
italic?: boolean;
|
|
1804
|
+
onClick?: () => void;
|
|
1805
|
+
}
|
|
1747
1806
|
declare const Link: ({ children, href, target, variant, decoration, bold, italic, styles, onClick, }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
1748
1807
|
|
|
1749
|
-
type MenuElementType = "item" | "group" | "title";
|
|
1750
|
-
interface BaseMenuNode {
|
|
1751
|
-
key?: string;
|
|
1752
|
-
name: string;
|
|
1753
|
-
icon?: React__default.ReactNode;
|
|
1754
|
-
badge?: React__default.ReactNode;
|
|
1755
|
-
className?: string;
|
|
1756
|
-
component?: React__default.ElementType;
|
|
1757
|
-
}
|
|
1758
|
-
interface MenuItemNode extends BaseMenuNode {
|
|
1759
|
-
type: "item";
|
|
1760
|
-
to?: string;
|
|
1761
|
-
navigate?: (to: string) => void;
|
|
1762
|
-
onClick?: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
1763
|
-
}
|
|
1764
|
-
interface MenuGroupNode extends BaseMenuNode {
|
|
1765
|
-
type: "group";
|
|
1766
|
-
items: MenuNode[];
|
|
1767
|
-
}
|
|
1768
|
-
interface MenuTitleNode extends BaseMenuNode {
|
|
1769
|
-
type: "title";
|
|
1770
|
-
}
|
|
1771
|
-
type MenuNode = MenuItemNode | MenuGroupNode | MenuTitleNode;
|
|
1772
|
-
interface DefaultMenuElements {
|
|
1773
|
-
item?: React__default.ElementType;
|
|
1774
|
-
group?: React__default.ElementType;
|
|
1775
|
-
title?: React__default.ElementType;
|
|
1776
|
-
}
|
|
1777
|
-
interface MenuProps {
|
|
1778
|
-
items: MenuNode[];
|
|
1779
|
-
defaultMenuElements?: DefaultMenuElements;
|
|
1780
|
-
className?: string;
|
|
1781
|
-
navigate?: (to: string) => void;
|
|
1782
|
-
currentPath?: string;
|
|
1808
|
+
type MenuElementType = "item" | "group" | "title";
|
|
1809
|
+
interface BaseMenuNode {
|
|
1810
|
+
key?: string;
|
|
1811
|
+
name: string;
|
|
1812
|
+
icon?: React__default.ReactNode;
|
|
1813
|
+
badge?: React__default.ReactNode;
|
|
1814
|
+
className?: string;
|
|
1815
|
+
component?: React__default.ElementType;
|
|
1816
|
+
}
|
|
1817
|
+
interface MenuItemNode extends BaseMenuNode {
|
|
1818
|
+
type: "item";
|
|
1819
|
+
to?: string;
|
|
1820
|
+
navigate?: (to: string) => void;
|
|
1821
|
+
onClick?: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
1822
|
+
}
|
|
1823
|
+
interface MenuGroupNode extends BaseMenuNode {
|
|
1824
|
+
type: "group";
|
|
1825
|
+
items: MenuNode[];
|
|
1826
|
+
}
|
|
1827
|
+
interface MenuTitleNode extends BaseMenuNode {
|
|
1828
|
+
type: "title";
|
|
1829
|
+
}
|
|
1830
|
+
type MenuNode = MenuItemNode | MenuGroupNode | MenuTitleNode;
|
|
1831
|
+
interface DefaultMenuElements {
|
|
1832
|
+
item?: React__default.ElementType;
|
|
1833
|
+
group?: React__default.ElementType;
|
|
1834
|
+
title?: React__default.ElementType;
|
|
1835
|
+
}
|
|
1836
|
+
interface MenuProps {
|
|
1837
|
+
items: MenuNode[];
|
|
1838
|
+
defaultMenuElements?: DefaultMenuElements;
|
|
1839
|
+
className?: string;
|
|
1840
|
+
navigate?: (to: string) => void;
|
|
1841
|
+
currentPath?: string;
|
|
1783
1842
|
}
|
|
1784
1843
|
|
|
1785
1844
|
declare const Menu: ({ items, className, navigate, defaultMenuElements, currentPath, }: MenuProps) => react_jsx_runtime.JSX.Element;
|
|
1786
1845
|
|
|
1787
|
-
interface MenuGroupProps extends BaseComponentProps {
|
|
1788
|
-
icon?: React__default.ReactNode;
|
|
1789
|
-
name: string;
|
|
1790
|
-
badge?: React__default.ReactNode;
|
|
1791
|
-
to?: string;
|
|
1792
|
-
children: React__default.ReactNode;
|
|
1793
|
-
defaultOpen?: boolean;
|
|
1794
|
-
}
|
|
1846
|
+
interface MenuGroupProps extends BaseComponentProps {
|
|
1847
|
+
icon?: React__default.ReactNode;
|
|
1848
|
+
name: string;
|
|
1849
|
+
badge?: React__default.ReactNode;
|
|
1850
|
+
to?: string;
|
|
1851
|
+
children: React__default.ReactNode;
|
|
1852
|
+
defaultOpen?: boolean;
|
|
1853
|
+
}
|
|
1795
1854
|
declare const MenuGroup: ({ icon, name, badge, children, defaultOpen, className, style, ...rest }: MenuGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1796
1855
|
|
|
1797
|
-
interface MenuItemProps extends BaseComponentProps {
|
|
1798
|
-
icon?: React__default.ReactNode;
|
|
1799
|
-
name: string;
|
|
1800
|
-
badge?: React__default.ReactNode;
|
|
1801
|
-
to?: string;
|
|
1802
|
-
navigate?: (to: string) => void;
|
|
1803
|
-
}
|
|
1856
|
+
interface MenuItemProps extends BaseComponentProps {
|
|
1857
|
+
icon?: React__default.ReactNode;
|
|
1858
|
+
name: string;
|
|
1859
|
+
badge?: React__default.ReactNode;
|
|
1860
|
+
to?: string;
|
|
1861
|
+
navigate?: (to: string) => void;
|
|
1862
|
+
}
|
|
1804
1863
|
declare const MenuItem: ({ icon, name, badge, to, navigate, className, onClick, ...rest }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
1805
1864
|
|
|
1806
|
-
interface MenuItemTitleProps extends BaseComponentProps {
|
|
1807
|
-
icon?: React__default.ReactNode;
|
|
1808
|
-
name: string;
|
|
1809
|
-
badge?: React__default.ReactNode;
|
|
1810
|
-
}
|
|
1865
|
+
interface MenuItemTitleProps extends BaseComponentProps {
|
|
1866
|
+
icon?: React__default.ReactNode;
|
|
1867
|
+
name: string;
|
|
1868
|
+
badge?: React__default.ReactNode;
|
|
1869
|
+
}
|
|
1811
1870
|
declare const MenuItemTitle: ({ icon, name, badge, className, style, ...rest }: MenuItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1812
1871
|
|
|
1813
|
-
interface RouteTabProps extends BaseComponentProps {
|
|
1814
|
-
title: string;
|
|
1815
|
-
selected?: boolean;
|
|
1816
|
-
onClick?: () => void;
|
|
1817
|
-
}
|
|
1872
|
+
interface RouteTabProps extends BaseComponentProps {
|
|
1873
|
+
title: string;
|
|
1874
|
+
selected?: boolean;
|
|
1875
|
+
onClick?: () => void;
|
|
1876
|
+
}
|
|
1818
1877
|
declare function RouteTab({ title, onClick, selected, className, ...rest }: RouteTabProps): react_jsx_runtime.JSX.Element;
|
|
1819
1878
|
|
|
1820
|
-
interface RouteTabsNavItem {
|
|
1821
|
-
name: string;
|
|
1822
|
-
to: string;
|
|
1823
|
-
selected?: boolean;
|
|
1824
|
-
}
|
|
1825
|
-
interface RouteTabsProps extends BaseComponentProps {
|
|
1826
|
-
navData: RouteTabsNavItem[];
|
|
1827
|
-
children: React.ReactNode | ((activeTab: string) => React.ReactNode);
|
|
1828
|
-
onTabClick?: (to: string) => void;
|
|
1829
|
-
mode?: RouteTabMode;
|
|
1830
|
-
defaultActive?: string;
|
|
1831
|
-
animated?: boolean;
|
|
1832
|
-
}
|
|
1879
|
+
interface RouteTabsNavItem {
|
|
1880
|
+
name: string;
|
|
1881
|
+
to: string;
|
|
1882
|
+
selected?: boolean;
|
|
1883
|
+
}
|
|
1884
|
+
interface RouteTabsProps extends BaseComponentProps {
|
|
1885
|
+
navData: RouteTabsNavItem[];
|
|
1886
|
+
children: React.ReactNode | ((activeTab: string) => React.ReactNode);
|
|
1887
|
+
onTabClick?: (to: string) => void;
|
|
1888
|
+
mode?: RouteTabMode;
|
|
1889
|
+
defaultActive?: string;
|
|
1890
|
+
animated?: boolean;
|
|
1891
|
+
}
|
|
1833
1892
|
declare function RouteTabs({ navData, children, onTabClick, mode, defaultActive, animated, className, ...rest }: RouteTabsProps): react_jsx_runtime.JSX.Element;
|
|
1834
1893
|
|
|
1835
|
-
interface ModalProps {
|
|
1836
|
-
title: string;
|
|
1837
|
-
show: boolean;
|
|
1838
|
-
handleOnClose?: () => void;
|
|
1839
|
-
children?: React__default.ReactNode;
|
|
1840
|
-
enableCloseOnClickOutside?: boolean;
|
|
1841
|
-
isLoading?: boolean;
|
|
1842
|
-
isSuccess?: boolean;
|
|
1843
|
-
isError?: boolean;
|
|
1844
|
-
error?: unknown;
|
|
1845
|
-
styles?: string;
|
|
1846
|
-
shape?: keyof typeof Shape;
|
|
1847
|
-
}
|
|
1894
|
+
interface ModalProps {
|
|
1895
|
+
title: string;
|
|
1896
|
+
show: boolean;
|
|
1897
|
+
handleOnClose?: () => void;
|
|
1898
|
+
children?: React__default.ReactNode;
|
|
1899
|
+
enableCloseOnClickOutside?: boolean;
|
|
1900
|
+
isLoading?: boolean;
|
|
1901
|
+
isSuccess?: boolean;
|
|
1902
|
+
isError?: boolean;
|
|
1903
|
+
error?: unknown;
|
|
1904
|
+
styles?: string;
|
|
1905
|
+
shape?: keyof typeof Shape;
|
|
1906
|
+
}
|
|
1848
1907
|
declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, shape, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
1849
1908
|
|
|
1850
|
-
interface UnderConstructionBannerProps {
|
|
1851
|
-
text?: string;
|
|
1852
|
-
}
|
|
1909
|
+
interface UnderConstructionBannerProps {
|
|
1910
|
+
text?: string;
|
|
1911
|
+
}
|
|
1853
1912
|
declare function UnderConstructionBanner({ text, }: UnderConstructionBannerProps): react_jsx_runtime.JSX.Element;
|
|
1854
1913
|
|
|
1855
|
-
interface AccordionProps {
|
|
1856
|
-
summary?: ReactNode | string;
|
|
1857
|
-
children?: ReactNode;
|
|
1858
|
-
lhsActions?: ReactNode;
|
|
1859
|
-
rhsActions?: ReactNode;
|
|
1860
|
-
defaultCollapse?: boolean;
|
|
1861
|
-
toggleOnSummaryClick?: boolean;
|
|
1862
|
-
enableChildrenPadding?: boolean;
|
|
1863
|
-
}
|
|
1914
|
+
interface AccordionProps {
|
|
1915
|
+
summary?: ReactNode | string;
|
|
1916
|
+
children?: ReactNode;
|
|
1917
|
+
lhsActions?: ReactNode;
|
|
1918
|
+
rhsActions?: ReactNode;
|
|
1919
|
+
defaultCollapse?: boolean;
|
|
1920
|
+
toggleOnSummaryClick?: boolean;
|
|
1921
|
+
enableChildrenPadding?: boolean;
|
|
1922
|
+
}
|
|
1864
1923
|
declare function Accordion({ summary, children, lhsActions, rhsActions, defaultCollapse, toggleOnSummaryClick, enableChildrenPadding, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
1865
1924
|
|
|
1866
|
-
declare const hoverAnimations: {
|
|
1867
|
-
none: string;
|
|
1868
|
-
lift: string;
|
|
1869
|
-
scale: string;
|
|
1870
|
-
glow: string;
|
|
1871
|
-
borderGlow: string;
|
|
1872
|
-
softLift: string;
|
|
1925
|
+
declare const hoverAnimations: {
|
|
1926
|
+
none: string;
|
|
1927
|
+
lift: string;
|
|
1928
|
+
scale: string;
|
|
1929
|
+
glow: string;
|
|
1930
|
+
borderGlow: string;
|
|
1931
|
+
softLift: string;
|
|
1873
1932
|
};
|
|
1874
1933
|
|
|
1875
|
-
interface CardProps {
|
|
1876
|
-
children?: ReactNode;
|
|
1877
|
-
styles?: string;
|
|
1878
|
-
bgVariant?: keyof typeof Variant;
|
|
1879
|
-
borderVariant?: keyof typeof Variant;
|
|
1880
|
-
interactive?: boolean;
|
|
1881
|
-
ghost?: boolean;
|
|
1882
|
-
shape?: keyof typeof Shape;
|
|
1883
|
-
hoverAnimation?: keyof typeof hoverAnimations;
|
|
1884
|
-
}
|
|
1934
|
+
interface CardProps {
|
|
1935
|
+
children?: ReactNode;
|
|
1936
|
+
styles?: string;
|
|
1937
|
+
bgVariant?: keyof typeof Variant;
|
|
1938
|
+
borderVariant?: keyof typeof Variant;
|
|
1939
|
+
interactive?: boolean;
|
|
1940
|
+
ghost?: boolean;
|
|
1941
|
+
shape?: keyof typeof Shape;
|
|
1942
|
+
hoverAnimation?: keyof typeof hoverAnimations;
|
|
1943
|
+
}
|
|
1885
1944
|
declare function Card({ children, styles, bgVariant, borderVariant, interactive, ghost, shape, hoverAnimation, }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1886
1945
|
|
|
1887
|
-
interface CardHeaderProps {
|
|
1888
|
-
icon?: React__default.ReactNode;
|
|
1889
|
-
title?: string;
|
|
1890
|
-
description?: string;
|
|
1891
|
-
className?: string;
|
|
1892
|
-
}
|
|
1946
|
+
interface CardHeaderProps {
|
|
1947
|
+
icon?: React__default.ReactNode;
|
|
1948
|
+
title?: string;
|
|
1949
|
+
description?: string;
|
|
1950
|
+
className?: string;
|
|
1951
|
+
}
|
|
1893
1952
|
declare function CardHeader({ icon, title, description, className }: CardHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1894
1953
|
|
|
1895
|
-
interface CardContentProps {
|
|
1896
|
-
children?: React__default.ReactNode;
|
|
1897
|
-
className?: string;
|
|
1898
|
-
}
|
|
1954
|
+
interface CardContentProps {
|
|
1955
|
+
children?: React__default.ReactNode;
|
|
1956
|
+
className?: string;
|
|
1957
|
+
}
|
|
1899
1958
|
declare function CardContent({ children, className }: CardContentProps): react_jsx_runtime.JSX.Element;
|
|
1900
1959
|
|
|
1901
|
-
interface CardFooterProps {
|
|
1902
|
-
children?: React__default.ReactNode;
|
|
1903
|
-
className?: string;
|
|
1904
|
-
}
|
|
1960
|
+
interface CardFooterProps {
|
|
1961
|
+
children?: React__default.ReactNode;
|
|
1962
|
+
className?: string;
|
|
1963
|
+
}
|
|
1905
1964
|
declare function CardFooter({ children, className }: CardFooterProps): react_jsx_runtime.JSX.Element;
|
|
1906
1965
|
|
|
1907
|
-
type AnimationVariant = "none" | "gradient" | "blobs" | "mesh" | "custom";
|
|
1908
|
-
interface BaseAnimationConfig {
|
|
1909
|
-
duration: number;
|
|
1910
|
-
ease?: string;
|
|
1911
|
-
opacity?: number;
|
|
1912
|
-
colors?: string[];
|
|
1913
|
-
}
|
|
1914
|
-
interface BlobAnimationConfig extends BaseAnimationConfig {
|
|
1915
|
-
size?: number;
|
|
1916
|
-
blur?: number;
|
|
1917
|
-
count?: number;
|
|
1918
|
-
}
|
|
1919
|
-
interface GradientAnimationConfig extends BaseAnimationConfig {
|
|
1920
|
-
angle?: number;
|
|
1921
|
-
backgroundSize?: string;
|
|
1922
|
-
}
|
|
1923
|
-
interface MeshAnimationConfig extends BaseAnimationConfig {
|
|
1924
|
-
density?: number;
|
|
1925
|
-
backgroundSize?: string;
|
|
1926
|
-
}
|
|
1927
|
-
interface AnimationComponentProps<T = BaseAnimationConfig> {
|
|
1928
|
-
config?: T;
|
|
1929
|
-
animated?: boolean;
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
type OverlayVariant = "none" | "noise" | "grid" | "dots" | "custom";
|
|
1933
|
-
interface BaseOverlayConfig {
|
|
1934
|
-
opacity?: number;
|
|
1935
|
-
size?: number;
|
|
1936
|
-
color?: string;
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
interface MotionSurfaceProps {
|
|
1940
|
-
children?: ReactNode;
|
|
1941
|
-
animationVariant?: AnimationVariant;
|
|
1942
|
-
animationConfig?: BaseAnimationConfig;
|
|
1943
|
-
animated?: boolean;
|
|
1944
|
-
overlay?: OverlayVariant;
|
|
1945
|
-
overlayConfig?: BaseOverlayConfig;
|
|
1946
|
-
className?: string;
|
|
1947
|
-
customAnimation?: React__default.ComponentType<any>;
|
|
1948
|
-
customOverlay?: React__default.ComponentType<any>;
|
|
1949
|
-
}
|
|
1966
|
+
type AnimationVariant = "none" | "gradient" | "blobs" | "mesh" | "custom";
|
|
1967
|
+
interface BaseAnimationConfig {
|
|
1968
|
+
duration: number;
|
|
1969
|
+
ease?: string;
|
|
1970
|
+
opacity?: number;
|
|
1971
|
+
colors?: string[];
|
|
1972
|
+
}
|
|
1973
|
+
interface BlobAnimationConfig extends BaseAnimationConfig {
|
|
1974
|
+
size?: number;
|
|
1975
|
+
blur?: number;
|
|
1976
|
+
count?: number;
|
|
1977
|
+
}
|
|
1978
|
+
interface GradientAnimationConfig extends BaseAnimationConfig {
|
|
1979
|
+
angle?: number;
|
|
1980
|
+
backgroundSize?: string;
|
|
1981
|
+
}
|
|
1982
|
+
interface MeshAnimationConfig extends BaseAnimationConfig {
|
|
1983
|
+
density?: number;
|
|
1984
|
+
backgroundSize?: string;
|
|
1985
|
+
}
|
|
1986
|
+
interface AnimationComponentProps<T = BaseAnimationConfig> {
|
|
1987
|
+
config?: T;
|
|
1988
|
+
animated?: boolean;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
type OverlayVariant = "none" | "noise" | "grid" | "dots" | "custom";
|
|
1992
|
+
interface BaseOverlayConfig {
|
|
1993
|
+
opacity?: number;
|
|
1994
|
+
size?: number;
|
|
1995
|
+
color?: string;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
interface MotionSurfaceProps {
|
|
1999
|
+
children?: ReactNode;
|
|
2000
|
+
animationVariant?: AnimationVariant;
|
|
2001
|
+
animationConfig?: BaseAnimationConfig;
|
|
2002
|
+
animated?: boolean;
|
|
2003
|
+
overlay?: OverlayVariant;
|
|
2004
|
+
overlayConfig?: BaseOverlayConfig;
|
|
2005
|
+
className?: string;
|
|
2006
|
+
customAnimation?: React__default.ComponentType<any>;
|
|
2007
|
+
customOverlay?: React__default.ComponentType<any>;
|
|
2008
|
+
}
|
|
1950
2009
|
declare function MotionSurface({ children, animationVariant, animationConfig, animated, overlay, overlayConfig, className, customAnimation: CustomAnimation, customOverlay: CustomOverlay, }: MotionSurfaceProps): react_jsx_runtime.JSX.Element;
|
|
1951
2010
|
|
|
1952
|
-
interface ThemeContextProps {
|
|
1953
|
-
theme: "light" | "dark";
|
|
1954
|
-
setTheme: (theme: "light" | "dark") => void;
|
|
1955
|
-
toggleTheme: () => void;
|
|
1956
|
-
}
|
|
1957
|
-
declare const ThemeContext: React__default.Context<ThemeContextProps | undefined>;
|
|
1958
|
-
interface ThemeProviderProps {
|
|
1959
|
-
defaultTheme?: "light" | "dark";
|
|
1960
|
-
children: ReactNode;
|
|
1961
|
-
}
|
|
2011
|
+
interface ThemeContextProps {
|
|
2012
|
+
theme: "light" | "dark";
|
|
2013
|
+
setTheme: (theme: "light" | "dark") => void;
|
|
2014
|
+
toggleTheme: () => void;
|
|
2015
|
+
}
|
|
2016
|
+
declare const ThemeContext: React__default.Context<ThemeContextProps | undefined>;
|
|
2017
|
+
interface ThemeProviderProps {
|
|
2018
|
+
defaultTheme?: "light" | "dark";
|
|
2019
|
+
children: ReactNode;
|
|
2020
|
+
}
|
|
1962
2021
|
declare const ThemeProvider: ({ defaultTheme, children, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1963
2022
|
|
|
1964
2023
|
declare const ThemeSwitch: () => react_jsx_runtime.JSX.Element | null;
|
|
1965
2024
|
|
|
1966
2025
|
declare const ShapeSwitch: () => react_jsx_runtime.JSX.Element;
|
|
1967
2026
|
|
|
1968
|
-
interface AsyncComponentWrapperProps {
|
|
1969
|
-
children: React__default.ReactNode;
|
|
1970
|
-
isLoading?: boolean;
|
|
1971
|
-
isSuccess?: boolean;
|
|
1972
|
-
isError?: boolean;
|
|
1973
|
-
error?: unknown;
|
|
1974
|
-
/**
|
|
1975
|
-
* Optional custom formatter if you want full control
|
|
1976
|
-
*/
|
|
1977
|
-
errorFormatter?: (error: unknown) => string;
|
|
1978
|
-
}
|
|
2027
|
+
interface AsyncComponentWrapperProps {
|
|
2028
|
+
children: React__default.ReactNode;
|
|
2029
|
+
isLoading?: boolean;
|
|
2030
|
+
isSuccess?: boolean;
|
|
2031
|
+
isError?: boolean;
|
|
2032
|
+
error?: unknown;
|
|
2033
|
+
/**
|
|
2034
|
+
* Optional custom formatter if you want full control
|
|
2035
|
+
*/
|
|
2036
|
+
errorFormatter?: (error: unknown) => string;
|
|
2037
|
+
}
|
|
1979
2038
|
declare function AsyncComponentWrapper({ children, isLoading, isSuccess, isError, error, errorFormatter, }: AsyncComponentWrapperProps): react_jsx_runtime.JSX.Element;
|
|
1980
2039
|
|
|
1981
|
-
interface GlowWrapperProps {
|
|
1982
|
-
children: ReactNode;
|
|
1983
|
-
glowSize?: number;
|
|
1984
|
-
glowColor?: string;
|
|
1985
|
-
className?: string;
|
|
1986
|
-
/** optional: when true, glow hides while mouse is outside */
|
|
1987
|
-
hideOnLeave?: boolean;
|
|
1988
|
-
}
|
|
2040
|
+
interface GlowWrapperProps {
|
|
2041
|
+
children: ReactNode;
|
|
2042
|
+
glowSize?: number;
|
|
2043
|
+
glowColor?: string;
|
|
2044
|
+
className?: string;
|
|
2045
|
+
/** optional: when true, glow hides while mouse is outside */
|
|
2046
|
+
hideOnLeave?: boolean;
|
|
2047
|
+
}
|
|
1989
2048
|
declare const GlowWrapper: FC<GlowWrapperProps>;
|
|
1990
2049
|
|
|
1991
|
-
interface InfiniteScrollTriggerProps extends BaseComponentProps {
|
|
1992
|
-
children?: ReactNode;
|
|
1993
|
-
hasMore?: boolean;
|
|
1994
|
-
isLoading?: boolean;
|
|
1995
|
-
rootMargin?: string;
|
|
1996
|
-
threshold?: number;
|
|
1997
|
-
onLoadMore?: () => void;
|
|
1998
|
-
}
|
|
2050
|
+
interface InfiniteScrollTriggerProps extends BaseComponentProps {
|
|
2051
|
+
children?: ReactNode;
|
|
2052
|
+
hasMore?: boolean;
|
|
2053
|
+
isLoading?: boolean;
|
|
2054
|
+
rootMargin?: string;
|
|
2055
|
+
threshold?: number;
|
|
2056
|
+
onLoadMore?: () => void;
|
|
2057
|
+
}
|
|
1999
2058
|
declare function InfiniteScrollTrigger({ children, className, hasMore, isLoading, rootMargin, threshold, onLoadMore, }: InfiniteScrollTriggerProps): react_jsx_runtime.JSX.Element;
|
|
2000
2059
|
|
|
2001
|
-
interface ShowMoreProps {
|
|
2002
|
-
text: string;
|
|
2003
|
-
limit: number;
|
|
2004
|
-
}
|
|
2060
|
+
interface ShowMoreProps {
|
|
2061
|
+
text: string;
|
|
2062
|
+
limit: number;
|
|
2063
|
+
}
|
|
2005
2064
|
declare function ShowMore({ text, limit }: ShowMoreProps): react_jsx_runtime.JSX.Element;
|
|
2006
2065
|
|
|
2007
|
-
interface CommentAuthor {
|
|
2008
|
-
id: string;
|
|
2009
|
-
username: string;
|
|
2010
|
-
avatar?: string;
|
|
2011
|
-
firstName?: string;
|
|
2012
|
-
lastName?: string;
|
|
2013
|
-
}
|
|
2014
|
-
interface CommentPermissions {
|
|
2015
|
-
canEdit?: boolean;
|
|
2016
|
-
canDelete?: boolean;
|
|
2017
|
-
canReply?: boolean;
|
|
2018
|
-
canReport?: boolean;
|
|
2019
|
-
}
|
|
2020
|
-
interface CommentEntity {
|
|
2021
|
-
id: string;
|
|
2022
|
-
postId: string;
|
|
2023
|
-
parentCommentId: string | null;
|
|
2024
|
-
content: string;
|
|
2025
|
-
edited: boolean;
|
|
2026
|
-
likes: number;
|
|
2027
|
-
dislikes: number;
|
|
2028
|
-
liked: boolean;
|
|
2029
|
-
disliked: boolean;
|
|
2030
|
-
replyCount: number;
|
|
2031
|
-
createdAt: string;
|
|
2032
|
-
updatedAt: string;
|
|
2033
|
-
author: CommentAuthor | null;
|
|
2034
|
-
permissions?: CommentPermissions;
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
interface CreateCommentInput {
|
|
2038
|
-
content: string;
|
|
2039
|
-
parentCommentId?: string | null;
|
|
2040
|
-
}
|
|
2041
|
-
interface UpdateCommentInput {
|
|
2042
|
-
id: string;
|
|
2043
|
-
content: string;
|
|
2044
|
-
}
|
|
2045
|
-
interface ToggleReactionResult {
|
|
2046
|
-
likes: number;
|
|
2047
|
-
dislikes: number;
|
|
2048
|
-
liked: boolean;
|
|
2049
|
-
disliked: boolean;
|
|
2050
|
-
}
|
|
2051
|
-
interface CommentQueryOptions {
|
|
2052
|
-
parentCommentId?: string | null;
|
|
2053
|
-
limit?: number;
|
|
2054
|
-
cursor?: string;
|
|
2055
|
-
sort?: "newest" | "oldest" | "top";
|
|
2056
|
-
}
|
|
2057
|
-
interface CommentPageResult {
|
|
2058
|
-
items: CommentEntity[];
|
|
2059
|
-
nextCursor?: string | null;
|
|
2060
|
-
hasMore: boolean;
|
|
2061
|
-
}
|
|
2062
|
-
interface CommentDataSource {
|
|
2063
|
-
/**
|
|
2064
|
-
* Load root comments
|
|
2065
|
-
*/
|
|
2066
|
-
getComments(options?: CommentQueryOptions): Promise<CommentPageResult>;
|
|
2067
|
-
/**
|
|
2068
|
-
* Load replies for a specific comment
|
|
2069
|
-
*/
|
|
2070
|
-
getReplies(commentId: string, options?: Omit<CommentQueryOptions, "parentCommentId">): Promise<CommentPageResult>;
|
|
2071
|
-
/**
|
|
2072
|
-
* Create root comment or reply
|
|
2073
|
-
*/
|
|
2074
|
-
createComment(input: CreateCommentInput): Promise<CommentEntity>;
|
|
2075
|
-
/**
|
|
2076
|
-
* Update comment
|
|
2077
|
-
*/
|
|
2078
|
-
updateComment(input: UpdateCommentInput): Promise<CommentEntity>;
|
|
2079
|
-
/**
|
|
2080
|
-
* Delete comment
|
|
2081
|
-
*/
|
|
2082
|
-
deleteComment(commentId: string): Promise<void>;
|
|
2083
|
-
/**
|
|
2084
|
-
* Toggle like
|
|
2085
|
-
*/
|
|
2086
|
-
toggleLike(commentId: string): Promise<ToggleReactionResult>;
|
|
2087
|
-
/**
|
|
2088
|
-
* Toggle dislike
|
|
2089
|
-
*/
|
|
2090
|
-
toggleDislike(commentId: string): Promise<ToggleReactionResult>;
|
|
2091
|
-
/**
|
|
2092
|
-
* Report comment
|
|
2093
|
-
*/
|
|
2094
|
-
reportComment?(commentId: string, reason: string, description?: string): Promise<void>;
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
|
-
interface CommentHeaderProps {
|
|
2098
|
-
comment: CommentEntity;
|
|
2099
|
-
config: Required<CommentThreadConfig>;
|
|
2100
|
-
}
|
|
2101
|
-
interface CommentContentProps {
|
|
2102
|
-
comment: CommentEntity;
|
|
2103
|
-
}
|
|
2104
|
-
interface CommentActionsProps {
|
|
2105
|
-
comment: CommentEntity;
|
|
2106
|
-
onLike?: () => void;
|
|
2107
|
-
onDislike?: () => void;
|
|
2108
|
-
onReply?: () => void;
|
|
2109
|
-
}
|
|
2110
|
-
interface CommentMenuProps {
|
|
2111
|
-
comment: CommentEntity;
|
|
2112
|
-
open: boolean;
|
|
2113
|
-
setOpen: (open: boolean) => void;
|
|
2114
|
-
canEdit?: boolean;
|
|
2115
|
-
canDelete?: boolean;
|
|
2116
|
-
canReport?: boolean;
|
|
2117
|
-
onEdit?: () => void;
|
|
2118
|
-
onDelete?: () => void;
|
|
2119
|
-
onReport?: () => void;
|
|
2120
|
-
}
|
|
2121
|
-
interface CommentComposerProps {
|
|
2122
|
-
avatar?: string;
|
|
2123
|
-
placeholder?: string;
|
|
2124
|
-
submitLabel?: string;
|
|
2125
|
-
disabled?: boolean;
|
|
2126
|
-
loading?: boolean;
|
|
2127
|
-
onSubmit: (content: string) => Promise<void> | void;
|
|
2128
|
-
}
|
|
2129
|
-
interface ReplyComposerProps {
|
|
2130
|
-
avatar?: string;
|
|
2131
|
-
username?: string;
|
|
2132
|
-
placeholder?: string;
|
|
2133
|
-
submitLabel?: string;
|
|
2134
|
-
disabled?: boolean;
|
|
2135
|
-
loading?: boolean;
|
|
2136
|
-
onSubmit: (content: string) => Promise<void> | void;
|
|
2137
|
-
}
|
|
2138
|
-
interface CommentRepliesToggleProps {
|
|
2139
|
-
collapsed: boolean;
|
|
2140
|
-
repliesCount: number;
|
|
2141
|
-
loading?: boolean;
|
|
2142
|
-
onToggle: () => void;
|
|
2143
|
-
}
|
|
2144
|
-
interface CommentItemProps {
|
|
2145
|
-
comment: CommentEntity;
|
|
2146
|
-
replies?: CommentEntity[];
|
|
2147
|
-
allReplies?: Record<string, CommentEntity[]>;
|
|
2148
|
-
depth?: number;
|
|
2149
|
-
config: Required<CommentThreadConfig>;
|
|
2150
|
-
components?: CommentComponents;
|
|
2151
|
-
onLike?: (comment: CommentEntity) => void;
|
|
2152
|
-
onDislike?: (comment: CommentEntity) => void;
|
|
2153
|
-
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
2154
|
-
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
2155
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
2156
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
2157
|
-
onReport?: (comment: CommentEntity) => void;
|
|
2158
|
-
}
|
|
2159
|
-
interface CommentListProps {
|
|
2160
|
-
comments: CommentEntity[];
|
|
2161
|
-
replies?: Record<string, CommentEntity[]>;
|
|
2162
|
-
depth?: number;
|
|
2163
|
-
config: Required<CommentThreadConfig>;
|
|
2164
|
-
components?: CommentComponents;
|
|
2165
|
-
onLike?: (comment: CommentEntity) => void;
|
|
2166
|
-
onDislike?: (comment: CommentEntity) => void;
|
|
2167
|
-
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
2168
|
-
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
2169
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
2170
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
2171
|
-
onReport?: (comment: CommentEntity) => void;
|
|
2172
|
-
}
|
|
2173
|
-
interface CommentThreadProps {
|
|
2174
|
-
postId: string;
|
|
2175
|
-
currentUser: CommentAuthor;
|
|
2176
|
-
dataSource: CommentDataSource;
|
|
2177
|
-
loading?: boolean;
|
|
2178
|
-
components?: CommentComponents;
|
|
2179
|
-
config?: CommentThreadConfig;
|
|
2180
|
-
updatedComment?: CommentEntity | null;
|
|
2181
|
-
deletedComment?: CommentEntity | null;
|
|
2182
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
2183
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
2184
|
-
onReport?: (comment: CommentEntity) => void;
|
|
2185
|
-
}
|
|
2186
|
-
interface CommentThreadConfig {
|
|
2187
|
-
maxDepth?: number;
|
|
2188
|
-
indentation?: number;
|
|
2189
|
-
dateFormat?: "relative" | "absolute";
|
|
2190
|
-
commentsPerPage?: number;
|
|
2191
|
-
repliesPerPage?: number;
|
|
2192
|
-
}
|
|
2193
|
-
interface CommentComponents {
|
|
2194
|
-
/**
|
|
2195
|
-
* Root comment composer
|
|
2196
|
-
*/
|
|
2197
|
-
Composer?: ComponentType<CommentComposerProps>;
|
|
2198
|
-
/**
|
|
2199
|
-
* Comment header section
|
|
2200
|
-
*/
|
|
2201
|
-
Header?: ComponentType<CommentHeaderProps>;
|
|
2202
|
-
/**
|
|
2203
|
-
* Comment content renderer
|
|
2204
|
-
*/
|
|
2205
|
-
Content?: ComponentType<CommentContentProps>;
|
|
2206
|
-
/**
|
|
2207
|
-
* Like / Dislike / Reply actions
|
|
2208
|
-
*/
|
|
2209
|
-
Actions?: ComponentType<CommentActionsProps>;
|
|
2210
|
-
/**
|
|
2211
|
-
* Comment menu (Edit/Delete/Report)
|
|
2212
|
-
*/
|
|
2213
|
-
Menu?: ComponentType<CommentMenuProps>;
|
|
2214
|
-
/**
|
|
2215
|
-
* Reply composer shown below a comment
|
|
2216
|
-
*/
|
|
2217
|
-
ReplyComposer?: ComponentType<ReplyComposerProps>;
|
|
2218
|
-
/**
|
|
2219
|
-
* Replies expand/collapse component
|
|
2220
|
-
*/
|
|
2221
|
-
RepliesToggle?: ComponentType<CommentRepliesToggleProps>;
|
|
2066
|
+
interface CommentAuthor {
|
|
2067
|
+
id: string;
|
|
2068
|
+
username: string;
|
|
2069
|
+
avatar?: string;
|
|
2070
|
+
firstName?: string;
|
|
2071
|
+
lastName?: string;
|
|
2072
|
+
}
|
|
2073
|
+
interface CommentPermissions {
|
|
2074
|
+
canEdit?: boolean;
|
|
2075
|
+
canDelete?: boolean;
|
|
2076
|
+
canReply?: boolean;
|
|
2077
|
+
canReport?: boolean;
|
|
2078
|
+
}
|
|
2079
|
+
interface CommentEntity {
|
|
2080
|
+
id: string;
|
|
2081
|
+
postId: string;
|
|
2082
|
+
parentCommentId: string | null;
|
|
2083
|
+
content: string;
|
|
2084
|
+
edited: boolean;
|
|
2085
|
+
likes: number;
|
|
2086
|
+
dislikes: number;
|
|
2087
|
+
liked: boolean;
|
|
2088
|
+
disliked: boolean;
|
|
2089
|
+
replyCount: number;
|
|
2090
|
+
createdAt: string;
|
|
2091
|
+
updatedAt: string;
|
|
2092
|
+
author: CommentAuthor | null;
|
|
2093
|
+
permissions?: CommentPermissions;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
interface CreateCommentInput {
|
|
2097
|
+
content: string;
|
|
2098
|
+
parentCommentId?: string | null;
|
|
2099
|
+
}
|
|
2100
|
+
interface UpdateCommentInput {
|
|
2101
|
+
id: string;
|
|
2102
|
+
content: string;
|
|
2103
|
+
}
|
|
2104
|
+
interface ToggleReactionResult {
|
|
2105
|
+
likes: number;
|
|
2106
|
+
dislikes: number;
|
|
2107
|
+
liked: boolean;
|
|
2108
|
+
disliked: boolean;
|
|
2109
|
+
}
|
|
2110
|
+
interface CommentQueryOptions {
|
|
2111
|
+
parentCommentId?: string | null;
|
|
2112
|
+
limit?: number;
|
|
2113
|
+
cursor?: string;
|
|
2114
|
+
sort?: "newest" | "oldest" | "top";
|
|
2115
|
+
}
|
|
2116
|
+
interface CommentPageResult {
|
|
2117
|
+
items: CommentEntity[];
|
|
2118
|
+
nextCursor?: string | null;
|
|
2119
|
+
hasMore: boolean;
|
|
2120
|
+
}
|
|
2121
|
+
interface CommentDataSource {
|
|
2122
|
+
/**
|
|
2123
|
+
* Load root comments
|
|
2124
|
+
*/
|
|
2125
|
+
getComments(options?: CommentQueryOptions): Promise<CommentPageResult>;
|
|
2126
|
+
/**
|
|
2127
|
+
* Load replies for a specific comment
|
|
2128
|
+
*/
|
|
2129
|
+
getReplies(commentId: string, options?: Omit<CommentQueryOptions, "parentCommentId">): Promise<CommentPageResult>;
|
|
2130
|
+
/**
|
|
2131
|
+
* Create root comment or reply
|
|
2132
|
+
*/
|
|
2133
|
+
createComment(input: CreateCommentInput): Promise<CommentEntity>;
|
|
2134
|
+
/**
|
|
2135
|
+
* Update comment
|
|
2136
|
+
*/
|
|
2137
|
+
updateComment(input: UpdateCommentInput): Promise<CommentEntity>;
|
|
2138
|
+
/**
|
|
2139
|
+
* Delete comment
|
|
2140
|
+
*/
|
|
2141
|
+
deleteComment(commentId: string): Promise<void>;
|
|
2142
|
+
/**
|
|
2143
|
+
* Toggle like
|
|
2144
|
+
*/
|
|
2145
|
+
toggleLike(commentId: string): Promise<ToggleReactionResult>;
|
|
2146
|
+
/**
|
|
2147
|
+
* Toggle dislike
|
|
2148
|
+
*/
|
|
2149
|
+
toggleDislike(commentId: string): Promise<ToggleReactionResult>;
|
|
2150
|
+
/**
|
|
2151
|
+
* Report comment
|
|
2152
|
+
*/
|
|
2153
|
+
reportComment?(commentId: string, reason: string, description?: string): Promise<void>;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
interface CommentHeaderProps {
|
|
2157
|
+
comment: CommentEntity;
|
|
2158
|
+
config: Required<CommentThreadConfig>;
|
|
2159
|
+
}
|
|
2160
|
+
interface CommentContentProps {
|
|
2161
|
+
comment: CommentEntity;
|
|
2162
|
+
}
|
|
2163
|
+
interface CommentActionsProps {
|
|
2164
|
+
comment: CommentEntity;
|
|
2165
|
+
onLike?: () => void;
|
|
2166
|
+
onDislike?: () => void;
|
|
2167
|
+
onReply?: () => void;
|
|
2168
|
+
}
|
|
2169
|
+
interface CommentMenuProps {
|
|
2170
|
+
comment: CommentEntity;
|
|
2171
|
+
open: boolean;
|
|
2172
|
+
setOpen: (open: boolean) => void;
|
|
2173
|
+
canEdit?: boolean;
|
|
2174
|
+
canDelete?: boolean;
|
|
2175
|
+
canReport?: boolean;
|
|
2176
|
+
onEdit?: () => void;
|
|
2177
|
+
onDelete?: () => void;
|
|
2178
|
+
onReport?: () => void;
|
|
2179
|
+
}
|
|
2180
|
+
interface CommentComposerProps {
|
|
2181
|
+
avatar?: string;
|
|
2182
|
+
placeholder?: string;
|
|
2183
|
+
submitLabel?: string;
|
|
2184
|
+
disabled?: boolean;
|
|
2185
|
+
loading?: boolean;
|
|
2186
|
+
onSubmit: (content: string) => Promise<void> | void;
|
|
2187
|
+
}
|
|
2188
|
+
interface ReplyComposerProps {
|
|
2189
|
+
avatar?: string;
|
|
2190
|
+
username?: string;
|
|
2191
|
+
placeholder?: string;
|
|
2192
|
+
submitLabel?: string;
|
|
2193
|
+
disabled?: boolean;
|
|
2194
|
+
loading?: boolean;
|
|
2195
|
+
onSubmit: (content: string) => Promise<void> | void;
|
|
2196
|
+
}
|
|
2197
|
+
interface CommentRepliesToggleProps {
|
|
2198
|
+
collapsed: boolean;
|
|
2199
|
+
repliesCount: number;
|
|
2200
|
+
loading?: boolean;
|
|
2201
|
+
onToggle: () => void;
|
|
2202
|
+
}
|
|
2203
|
+
interface CommentItemProps {
|
|
2204
|
+
comment: CommentEntity;
|
|
2205
|
+
replies?: CommentEntity[];
|
|
2206
|
+
allReplies?: Record<string, CommentEntity[]>;
|
|
2207
|
+
depth?: number;
|
|
2208
|
+
config: Required<CommentThreadConfig>;
|
|
2209
|
+
components?: CommentComponents;
|
|
2210
|
+
onLike?: (comment: CommentEntity) => void;
|
|
2211
|
+
onDislike?: (comment: CommentEntity) => void;
|
|
2212
|
+
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
2213
|
+
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
2214
|
+
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
2215
|
+
onDelete?: (comment: CommentEntity) => void;
|
|
2216
|
+
onReport?: (comment: CommentEntity) => void;
|
|
2217
|
+
}
|
|
2218
|
+
interface CommentListProps {
|
|
2219
|
+
comments: CommentEntity[];
|
|
2220
|
+
replies?: Record<string, CommentEntity[]>;
|
|
2221
|
+
depth?: number;
|
|
2222
|
+
config: Required<CommentThreadConfig>;
|
|
2223
|
+
components?: CommentComponents;
|
|
2224
|
+
onLike?: (comment: CommentEntity) => void;
|
|
2225
|
+
onDislike?: (comment: CommentEntity) => void;
|
|
2226
|
+
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
2227
|
+
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
2228
|
+
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
2229
|
+
onDelete?: (comment: CommentEntity) => void;
|
|
2230
|
+
onReport?: (comment: CommentEntity) => void;
|
|
2231
|
+
}
|
|
2232
|
+
interface CommentThreadProps {
|
|
2233
|
+
postId: string;
|
|
2234
|
+
currentUser: CommentAuthor;
|
|
2235
|
+
dataSource: CommentDataSource;
|
|
2236
|
+
loading?: boolean;
|
|
2237
|
+
components?: CommentComponents;
|
|
2238
|
+
config?: CommentThreadConfig;
|
|
2239
|
+
updatedComment?: CommentEntity | null;
|
|
2240
|
+
deletedComment?: CommentEntity | null;
|
|
2241
|
+
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
2242
|
+
onDelete?: (comment: CommentEntity) => void;
|
|
2243
|
+
onReport?: (comment: CommentEntity) => void;
|
|
2244
|
+
}
|
|
2245
|
+
interface CommentThreadConfig {
|
|
2246
|
+
maxDepth?: number;
|
|
2247
|
+
indentation?: number;
|
|
2248
|
+
dateFormat?: "relative" | "absolute";
|
|
2249
|
+
commentsPerPage?: number;
|
|
2250
|
+
repliesPerPage?: number;
|
|
2251
|
+
}
|
|
2252
|
+
interface CommentComponents {
|
|
2253
|
+
/**
|
|
2254
|
+
* Root comment composer
|
|
2255
|
+
*/
|
|
2256
|
+
Composer?: ComponentType<CommentComposerProps>;
|
|
2257
|
+
/**
|
|
2258
|
+
* Comment header section
|
|
2259
|
+
*/
|
|
2260
|
+
Header?: ComponentType<CommentHeaderProps>;
|
|
2261
|
+
/**
|
|
2262
|
+
* Comment content renderer
|
|
2263
|
+
*/
|
|
2264
|
+
Content?: ComponentType<CommentContentProps>;
|
|
2265
|
+
/**
|
|
2266
|
+
* Like / Dislike / Reply actions
|
|
2267
|
+
*/
|
|
2268
|
+
Actions?: ComponentType<CommentActionsProps>;
|
|
2269
|
+
/**
|
|
2270
|
+
* Comment menu (Edit/Delete/Report)
|
|
2271
|
+
*/
|
|
2272
|
+
Menu?: ComponentType<CommentMenuProps>;
|
|
2273
|
+
/**
|
|
2274
|
+
* Reply composer shown below a comment
|
|
2275
|
+
*/
|
|
2276
|
+
ReplyComposer?: ComponentType<ReplyComposerProps>;
|
|
2277
|
+
/**
|
|
2278
|
+
* Replies expand/collapse component
|
|
2279
|
+
*/
|
|
2280
|
+
RepliesToggle?: ComponentType<CommentRepliesToggleProps>;
|
|
2222
2281
|
}
|
|
2223
2282
|
|
|
2224
2283
|
declare function CommentThread({ currentUser, dataSource, loading, components, config, updatedComment, deletedComment, onEdit, onDelete, onReport, }: CommentThreadProps): react_jsx_runtime.JSX.Element;
|
|
2225
2284
|
|
|
2226
|
-
declare function getOptimisticLikeState(comment: CommentEntity): ToggleReactionResult;
|
|
2227
|
-
declare function getOptimisticDislikeState(comment: CommentEntity): ToggleReactionResult;
|
|
2285
|
+
declare function getOptimisticLikeState(comment: CommentEntity): ToggleReactionResult;
|
|
2286
|
+
declare function getOptimisticDislikeState(comment: CommentEntity): ToggleReactionResult;
|
|
2228
2287
|
declare function applyReactionState(comment: CommentEntity, reaction: ToggleReactionResult): CommentEntity;
|
|
2229
2288
|
|
|
2230
2289
|
declare function formatCommentDate(date: string, format?: "relative" | "absolute"): string;
|
|
2231
2290
|
|
|
2232
|
-
declare function removeComment(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
2233
|
-
declare function incrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
2291
|
+
declare function removeComment(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
2292
|
+
declare function incrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
2234
2293
|
declare function decrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
2235
2294
|
|
|
2236
|
-
type CommentReplyCache = Record<string, CommentEntity[]>;
|
|
2237
|
-
declare function addReplyToCache(cache: CommentReplyCache, parentCommentId: string, reply: CommentEntity): CommentReplyCache;
|
|
2238
|
-
declare function updateReplyCacheComment(cache: CommentReplyCache, commentId: string, updater: (comment: CommentEntity) => CommentEntity): CommentReplyCache;
|
|
2295
|
+
type CommentReplyCache = Record<string, CommentEntity[]>;
|
|
2296
|
+
declare function addReplyToCache(cache: CommentReplyCache, parentCommentId: string, reply: CommentEntity): CommentReplyCache;
|
|
2297
|
+
declare function updateReplyCacheComment(cache: CommentReplyCache, commentId: string, updater: (comment: CommentEntity) => CommentEntity): CommentReplyCache;
|
|
2239
2298
|
declare function removeCommentTreeFromCache(cache: CommentReplyCache, commentId: string): CommentReplyCache;
|
|
2240
2299
|
|
|
2241
2300
|
declare function updateComment(comments: CommentEntity[], commentId: string, updater: (comment: CommentEntity) => CommentEntity): CommentEntity[];
|
|
2242
2301
|
|
|
2243
|
-
type SortOption = {
|
|
2244
|
-
value: string;
|
|
2245
|
-
label: string;
|
|
2246
|
-
};
|
|
2247
|
-
interface DataViewTableProps<T> {
|
|
2248
|
-
title?: string;
|
|
2249
|
-
columns: TableColumnConfig<T>[];
|
|
2250
|
-
data: T[];
|
|
2251
|
-
sortOptions?: SortOption[];
|
|
2252
|
-
sortConfig?: Record<string, SortConfig<T>>;
|
|
2253
|
-
searchPlaceholder?: string;
|
|
2254
|
-
defaultPageSize?: number;
|
|
2255
|
-
isLoading?: boolean;
|
|
2256
|
-
isSuccess?: boolean;
|
|
2257
|
-
isError?: boolean;
|
|
2258
|
-
error?: unknown;
|
|
2259
|
-
}
|
|
2302
|
+
type SortOption = {
|
|
2303
|
+
value: string;
|
|
2304
|
+
label: string;
|
|
2305
|
+
};
|
|
2306
|
+
interface DataViewTableProps<T> {
|
|
2307
|
+
title?: string;
|
|
2308
|
+
columns: TableColumnConfig<T>[];
|
|
2309
|
+
data: T[];
|
|
2310
|
+
sortOptions?: SortOption[];
|
|
2311
|
+
sortConfig?: Record<string, SortConfig<T>>;
|
|
2312
|
+
searchPlaceholder?: string;
|
|
2313
|
+
defaultPageSize?: number;
|
|
2314
|
+
isLoading?: boolean;
|
|
2315
|
+
isSuccess?: boolean;
|
|
2316
|
+
isError?: boolean;
|
|
2317
|
+
error?: unknown;
|
|
2318
|
+
}
|
|
2260
2319
|
declare function DataViewTable<T extends Record<string, any>>({ title, columns, data, sortOptions, sortConfig, searchPlaceholder, defaultPageSize, isLoading, isSuccess, isError, error, }: DataViewTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2261
2320
|
|
|
2262
|
-
interface DocumentationPanelProps {
|
|
2263
|
-
value: string;
|
|
2264
|
-
toc?: boolean;
|
|
2265
|
-
}
|
|
2321
|
+
interface DocumentationPanelProps {
|
|
2322
|
+
value: string;
|
|
2323
|
+
toc?: boolean;
|
|
2324
|
+
}
|
|
2266
2325
|
declare function DocumentationPanel({ value, toc }: DocumentationPanelProps): react_jsx_runtime.JSX.Element;
|
|
2267
2326
|
|
|
2268
|
-
interface SliderProps {
|
|
2269
|
-
isLoading?: boolean;
|
|
2270
|
-
isSuccess?: boolean;
|
|
2271
|
-
coverArt: string;
|
|
2272
|
-
screenshots: string[];
|
|
2273
|
-
}
|
|
2327
|
+
interface SliderProps {
|
|
2328
|
+
isLoading?: boolean;
|
|
2329
|
+
isSuccess?: boolean;
|
|
2330
|
+
coverArt: string;
|
|
2331
|
+
screenshots: string[];
|
|
2332
|
+
}
|
|
2274
2333
|
declare function Slider({ isLoading, isSuccess, coverArt, screenshots }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
2275
2334
|
|
|
2276
|
-
interface RatingDistributionItem {
|
|
2277
|
-
star: number;
|
|
2278
|
-
count: number;
|
|
2279
|
-
}
|
|
2280
|
-
interface StarRatingDistributionProps extends BaseComponentProps {
|
|
2281
|
-
numericRating?: boolean;
|
|
2282
|
-
progressBarsRating?: boolean;
|
|
2283
|
-
ratingDistribution?: RatingDistributionItem[];
|
|
2284
|
-
variant?: Variant$1;
|
|
2285
|
-
appearance?: Appearance;
|
|
2286
|
-
shape?: Shape$1;
|
|
2287
|
-
size?: Size$1;
|
|
2288
|
-
animated?: boolean;
|
|
2289
|
-
striped?: boolean;
|
|
2290
|
-
showReviewCount?: boolean;
|
|
2291
|
-
}
|
|
2335
|
+
interface RatingDistributionItem {
|
|
2336
|
+
star: number;
|
|
2337
|
+
count: number;
|
|
2338
|
+
}
|
|
2339
|
+
interface StarRatingDistributionProps extends BaseComponentProps {
|
|
2340
|
+
numericRating?: boolean;
|
|
2341
|
+
progressBarsRating?: boolean;
|
|
2342
|
+
ratingDistribution?: RatingDistributionItem[];
|
|
2343
|
+
variant?: Variant$1;
|
|
2344
|
+
appearance?: Appearance;
|
|
2345
|
+
shape?: Shape$1;
|
|
2346
|
+
size?: Size$1;
|
|
2347
|
+
animated?: boolean;
|
|
2348
|
+
striped?: boolean;
|
|
2349
|
+
showReviewCount?: boolean;
|
|
2350
|
+
}
|
|
2292
2351
|
declare function StarRatingDistribution({ numericRating, progressBarsRating, ratingDistribution, variant, appearance, shape, size, animated, striped, showReviewCount, className, ...rest }: StarRatingDistributionProps): react_jsx_runtime.JSX.Element;
|
|
2293
2352
|
|
|
2294
|
-
interface WorldMapCountryTableProps {
|
|
2295
|
-
title?: string;
|
|
2296
|
-
data: WorldMapPoint[];
|
|
2297
|
-
}
|
|
2353
|
+
interface WorldMapCountryTableProps {
|
|
2354
|
+
title?: string;
|
|
2355
|
+
data: WorldMapPoint[];
|
|
2356
|
+
}
|
|
2298
2357
|
declare function WorldMapCountryTable({ title, data, }: WorldMapCountryTableProps): react_jsx_runtime.JSX.Element;
|
|
2299
2358
|
|
|
2300
|
-
interface NavItem {
|
|
2301
|
-
icon: React__default.ReactNode;
|
|
2302
|
-
name: string;
|
|
2303
|
-
to: string;
|
|
2304
|
-
selected?: boolean;
|
|
2305
|
-
}
|
|
2306
|
-
interface BoxNavProps {
|
|
2307
|
-
data?: NavItem[];
|
|
2308
|
-
currentPath?: string;
|
|
2309
|
-
onNavigate?: (to: string) => void;
|
|
2310
|
-
navigate?: (to: string) => void;
|
|
2359
|
+
interface NavItem {
|
|
2360
|
+
icon: React__default.ReactNode;
|
|
2361
|
+
name: string;
|
|
2362
|
+
to: string;
|
|
2363
|
+
selected?: boolean;
|
|
2364
|
+
}
|
|
2365
|
+
interface BoxNavProps {
|
|
2366
|
+
data?: NavItem[];
|
|
2367
|
+
currentPath?: string;
|
|
2368
|
+
onNavigate?: (to: string) => void;
|
|
2369
|
+
navigate?: (to: string) => void;
|
|
2311
2370
|
}
|
|
2312
2371
|
|
|
2313
2372
|
declare function BoxNav({ data, currentPath, onNavigate, navigate }: BoxNavProps): react_jsx_runtime.JSX.Element;
|
|
2314
2373
|
|
|
2315
|
-
interface BoxNavItemProps {
|
|
2316
|
-
icon: React__default.ReactNode;
|
|
2317
|
-
name: string;
|
|
2318
|
-
to: string;
|
|
2319
|
-
selected?: boolean;
|
|
2320
|
-
onClick?: (event: React__default.MouseEvent<HTMLButtonElement>, to: string) => void;
|
|
2321
|
-
}
|
|
2374
|
+
interface BoxNavItemProps {
|
|
2375
|
+
icon: React__default.ReactNode;
|
|
2376
|
+
name: string;
|
|
2377
|
+
to: string;
|
|
2378
|
+
selected?: boolean;
|
|
2379
|
+
onClick?: (event: React__default.MouseEvent<HTMLButtonElement>, to: string) => void;
|
|
2380
|
+
}
|
|
2322
2381
|
declare function BoxNavItem({ icon, name, to, selected, onClick }: BoxNavItemProps): react_jsx_runtime.JSX.Element;
|
|
2323
2382
|
|
|
2324
|
-
interface SidebarProps extends BaseComponentProps {
|
|
2325
|
-
items?: MenuNode[];
|
|
2326
|
-
navigate?: (to: string) => void;
|
|
2327
|
-
currentPath?: string;
|
|
2328
|
-
}
|
|
2383
|
+
interface SidebarProps extends BaseComponentProps {
|
|
2384
|
+
items?: MenuNode[];
|
|
2385
|
+
navigate?: (to: string) => void;
|
|
2386
|
+
currentPath?: string;
|
|
2387
|
+
}
|
|
2329
2388
|
declare function Sidebar({ items, navigate, currentPath, className, ...rest }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
2330
2389
|
|
|
2331
|
-
interface TopNavComponents {
|
|
2332
|
-
item?: React.ElementType;
|
|
2333
|
-
group?: React.ElementType;
|
|
2334
|
-
dropdown?: React.ElementType;
|
|
2335
|
-
dropdownItem?: React.ElementType;
|
|
2336
|
-
dropdownGroup?: React.ElementType;
|
|
2337
|
-
dropdownTitle?: React.ElementType;
|
|
2338
|
-
}
|
|
2339
|
-
interface BaseTopNavNode {
|
|
2340
|
-
key?: string;
|
|
2341
|
-
name: string;
|
|
2342
|
-
icon?: React.ReactNode;
|
|
2343
|
-
badge?: React.ReactNode;
|
|
2344
|
-
className?: string;
|
|
2345
|
-
component?: React.ElementType;
|
|
2346
|
-
}
|
|
2347
|
-
interface TopNavItemNode extends BaseTopNavNode {
|
|
2348
|
-
type: "item";
|
|
2349
|
-
to?: string;
|
|
2350
|
-
onClick?: () => void;
|
|
2351
|
-
}
|
|
2352
|
-
interface TopNavGroupNode extends BaseTopNavNode {
|
|
2353
|
-
type: "group";
|
|
2354
|
-
items: TopNavNode[];
|
|
2355
|
-
columns?: number;
|
|
2356
|
-
}
|
|
2357
|
-
interface TopNavTitleNode extends BaseTopNavNode {
|
|
2358
|
-
type: "title";
|
|
2359
|
-
}
|
|
2360
|
-
type TopNavNode = TopNavItemNode | TopNavGroupNode | TopNavTitleNode;
|
|
2361
|
-
interface TopNavProps {
|
|
2362
|
-
items: TopNavNode[];
|
|
2363
|
-
currentPath?: string;
|
|
2364
|
-
navigate?: (to: string) => void;
|
|
2365
|
-
components?: TopNavComponents;
|
|
2390
|
+
interface TopNavComponents {
|
|
2391
|
+
item?: React.ElementType;
|
|
2392
|
+
group?: React.ElementType;
|
|
2393
|
+
dropdown?: React.ElementType;
|
|
2394
|
+
dropdownItem?: React.ElementType;
|
|
2395
|
+
dropdownGroup?: React.ElementType;
|
|
2396
|
+
dropdownTitle?: React.ElementType;
|
|
2397
|
+
}
|
|
2398
|
+
interface BaseTopNavNode {
|
|
2399
|
+
key?: string;
|
|
2400
|
+
name: string;
|
|
2401
|
+
icon?: React.ReactNode;
|
|
2402
|
+
badge?: React.ReactNode;
|
|
2403
|
+
className?: string;
|
|
2404
|
+
component?: React.ElementType;
|
|
2405
|
+
}
|
|
2406
|
+
interface TopNavItemNode extends BaseTopNavNode {
|
|
2407
|
+
type: "item";
|
|
2408
|
+
to?: string;
|
|
2409
|
+
onClick?: () => void;
|
|
2410
|
+
}
|
|
2411
|
+
interface TopNavGroupNode extends BaseTopNavNode {
|
|
2412
|
+
type: "group";
|
|
2413
|
+
items: TopNavNode[];
|
|
2414
|
+
columns?: number;
|
|
2415
|
+
}
|
|
2416
|
+
interface TopNavTitleNode extends BaseTopNavNode {
|
|
2417
|
+
type: "title";
|
|
2418
|
+
}
|
|
2419
|
+
type TopNavNode = TopNavItemNode | TopNavGroupNode | TopNavTitleNode;
|
|
2420
|
+
interface TopNavProps {
|
|
2421
|
+
items: TopNavNode[];
|
|
2422
|
+
currentPath?: string;
|
|
2423
|
+
navigate?: (to: string) => void;
|
|
2424
|
+
components?: TopNavComponents;
|
|
2366
2425
|
}
|
|
2367
2426
|
|
|
2368
2427
|
declare const TopNav: ({ items, currentPath, navigate, components, }: TopNavProps) => react_jsx_runtime.JSX.Element;
|
|
2369
2428
|
|
|
2370
|
-
interface TNDropdownProps extends BaseComponentProps {
|
|
2371
|
-
items: TopNavNode[];
|
|
2372
|
-
navigate?: (to: string) => void;
|
|
2373
|
-
components?: any;
|
|
2374
|
-
}
|
|
2429
|
+
interface TNDropdownProps extends BaseComponentProps {
|
|
2430
|
+
items: TopNavNode[];
|
|
2431
|
+
navigate?: (to: string) => void;
|
|
2432
|
+
components?: any;
|
|
2433
|
+
}
|
|
2375
2434
|
declare const TNDropdown: ({ items, navigate, components, }: TNDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
2376
2435
|
|
|
2377
|
-
interface TNDropdownItemProps extends BaseComponentProps {
|
|
2378
|
-
icon?: React.ReactNode;
|
|
2379
|
-
name: string;
|
|
2380
|
-
badge?: React.ReactNode;
|
|
2381
|
-
to?: string;
|
|
2382
|
-
navigate?: (to: string) => void;
|
|
2383
|
-
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
2384
|
-
}
|
|
2436
|
+
interface TNDropdownItemProps extends BaseComponentProps {
|
|
2437
|
+
icon?: React.ReactNode;
|
|
2438
|
+
name: string;
|
|
2439
|
+
badge?: React.ReactNode;
|
|
2440
|
+
to?: string;
|
|
2441
|
+
navigate?: (to: string) => void;
|
|
2442
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
2443
|
+
}
|
|
2385
2444
|
declare const TNDropdownItem: ({ icon, name, badge, to, navigate, onClick, className, }: TNDropdownItemProps) => react_jsx_runtime.JSX.Element;
|
|
2386
2445
|
|
|
2387
|
-
interface TNDropdownTitleProps extends BaseComponentProps {
|
|
2388
|
-
name: string;
|
|
2389
|
-
}
|
|
2446
|
+
interface TNDropdownTitleProps extends BaseComponentProps {
|
|
2447
|
+
name: string;
|
|
2448
|
+
}
|
|
2390
2449
|
declare const TNDropdownTitle: ({ name, className }: TNDropdownTitleProps) => react_jsx_runtime.JSX.Element;
|
|
2391
2450
|
|
|
2392
|
-
interface TNGroupProps extends BaseComponentProps {
|
|
2393
|
-
icon?: React.ReactNode;
|
|
2394
|
-
name: string;
|
|
2395
|
-
items: TopNavNode[];
|
|
2396
|
-
navigate?: (to: string) => void;
|
|
2397
|
-
columns?: number;
|
|
2398
|
-
components?: any;
|
|
2399
|
-
selected?: boolean;
|
|
2400
|
-
}
|
|
2451
|
+
interface TNGroupProps extends BaseComponentProps {
|
|
2452
|
+
icon?: React.ReactNode;
|
|
2453
|
+
name: string;
|
|
2454
|
+
items: TopNavNode[];
|
|
2455
|
+
navigate?: (to: string) => void;
|
|
2456
|
+
columns?: number;
|
|
2457
|
+
components?: any;
|
|
2458
|
+
selected?: boolean;
|
|
2459
|
+
}
|
|
2401
2460
|
declare const TNGroup: ({ icon, name, items, navigate, columns, components, selected, }: TNGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2402
2461
|
|
|
2403
|
-
declare const useDrawer: (defaultVisibility?: boolean) => {
|
|
2404
|
-
show: boolean;
|
|
2405
|
-
openDrawer: () => void;
|
|
2406
|
-
closeDrawer: () => void;
|
|
2462
|
+
declare const useDrawer: (defaultVisibility?: boolean) => {
|
|
2463
|
+
show: boolean;
|
|
2464
|
+
openDrawer: () => void;
|
|
2465
|
+
closeDrawer: () => void;
|
|
2407
2466
|
};
|
|
2408
2467
|
|
|
2409
|
-
declare const useModal: () => {
|
|
2410
|
-
show: boolean;
|
|
2411
|
-
handleOpenModal: () => void;
|
|
2412
|
-
handleCloseModal: () => void;
|
|
2468
|
+
declare const useModal: () => {
|
|
2469
|
+
show: boolean;
|
|
2470
|
+
handleOpenModal: () => void;
|
|
2471
|
+
handleCloseModal: () => void;
|
|
2413
2472
|
};
|
|
2414
2473
|
|
|
2415
|
-
type ClickOutsideCallback = () => void;
|
|
2474
|
+
type ClickOutsideCallback = () => void;
|
|
2416
2475
|
declare function useClickOutside(ref: MutableRefObject<HTMLElement | null>, fun?: ClickOutsideCallback): void;
|
|
2417
2476
|
|
|
2418
2477
|
declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
@@ -2421,63 +2480,63 @@ declare const useCurrentTheme: () => "light" | "dark";
|
|
|
2421
2480
|
|
|
2422
2481
|
declare const useTheme: () => any;
|
|
2423
2482
|
|
|
2424
|
-
interface GenericLayoutProps {
|
|
2425
|
-
children?: ReactNode;
|
|
2426
|
-
styles?: string;
|
|
2427
|
-
defaultTheme?: "light" | "dark";
|
|
2428
|
-
}
|
|
2483
|
+
interface GenericLayoutProps {
|
|
2484
|
+
children?: ReactNode;
|
|
2485
|
+
styles?: string;
|
|
2486
|
+
defaultTheme?: "light" | "dark";
|
|
2487
|
+
}
|
|
2429
2488
|
declare function GenericLayout({ children, styles, defaultTheme, }: GenericLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2430
2489
|
|
|
2431
|
-
interface DefaultLayoutProps {
|
|
2432
|
-
children?: ReactNode;
|
|
2433
|
-
header?: ReactNode;
|
|
2434
|
-
footer?: ReactNode;
|
|
2435
|
-
}
|
|
2490
|
+
interface DefaultLayoutProps {
|
|
2491
|
+
children?: ReactNode;
|
|
2492
|
+
header?: ReactNode;
|
|
2493
|
+
footer?: ReactNode;
|
|
2494
|
+
}
|
|
2436
2495
|
declare function DefaultLayout({ children, header, footer, }: DefaultLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2437
2496
|
|
|
2438
|
-
interface HomeLayoutProps {
|
|
2439
|
-
children?: ReactNode;
|
|
2440
|
-
header?: ReactNode;
|
|
2441
|
-
footer?: ReactNode;
|
|
2442
|
-
}
|
|
2497
|
+
interface HomeLayoutProps {
|
|
2498
|
+
children?: ReactNode;
|
|
2499
|
+
header?: ReactNode;
|
|
2500
|
+
footer?: ReactNode;
|
|
2501
|
+
}
|
|
2443
2502
|
declare function HomeLayout({ children, header, footer, }: HomeLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2444
2503
|
|
|
2445
|
-
interface SidebarLayoutProps {
|
|
2446
|
-
children?: ReactNode;
|
|
2447
|
-
header?: ReactNode;
|
|
2448
|
-
footer?: ReactNode;
|
|
2449
|
-
}
|
|
2504
|
+
interface SidebarLayoutProps {
|
|
2505
|
+
children?: ReactNode;
|
|
2506
|
+
header?: ReactNode;
|
|
2507
|
+
footer?: ReactNode;
|
|
2508
|
+
}
|
|
2450
2509
|
declare function SidebarLayout({ children, header, footer, }: SidebarLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2451
2510
|
|
|
2452
|
-
interface SidemenuLayoutProps {
|
|
2453
|
-
data?: any;
|
|
2454
|
-
children?: ReactNode;
|
|
2455
|
-
}
|
|
2511
|
+
interface SidemenuLayoutProps {
|
|
2512
|
+
data?: any;
|
|
2513
|
+
children?: ReactNode;
|
|
2514
|
+
}
|
|
2456
2515
|
declare function SidemenuLayout({ data, children }: SidemenuLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2457
2516
|
|
|
2458
|
-
interface EUIDevLayoutProps {
|
|
2459
|
-
children?: ReactNode;
|
|
2460
|
-
header?: ReactNode;
|
|
2461
|
-
footer?: ReactNode;
|
|
2462
|
-
}
|
|
2517
|
+
interface EUIDevLayoutProps {
|
|
2518
|
+
children?: ReactNode;
|
|
2519
|
+
header?: ReactNode;
|
|
2520
|
+
footer?: ReactNode;
|
|
2521
|
+
}
|
|
2463
2522
|
declare function EUIDevLayout({ children, header, footer, }: EUIDevLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2464
2523
|
|
|
2465
|
-
interface CloudinaryConfig {
|
|
2466
|
-
cloudName: string;
|
|
2467
|
-
}
|
|
2468
|
-
interface CloudinaryProviderProps extends CloudinaryConfig {
|
|
2469
|
-
children: ReactNode;
|
|
2524
|
+
interface CloudinaryConfig {
|
|
2525
|
+
cloudName: string;
|
|
2526
|
+
}
|
|
2527
|
+
interface CloudinaryProviderProps extends CloudinaryConfig {
|
|
2528
|
+
children: ReactNode;
|
|
2470
2529
|
}
|
|
2471
2530
|
|
|
2472
2531
|
declare const CloudinaryProvider: ({ cloudName, children, }: CloudinaryProviderProps) => react_jsx_runtime.JSX.Element;
|
|
2473
2532
|
|
|
2474
2533
|
declare const useCloudinaryConfig: () => CloudinaryConfig;
|
|
2475
2534
|
|
|
2476
|
-
interface ScrollToTopProps {
|
|
2477
|
-
trigger?: any;
|
|
2478
|
-
behavior?: ScrollBehavior;
|
|
2479
|
-
target?: HTMLElement | null;
|
|
2480
|
-
}
|
|
2535
|
+
interface ScrollToTopProps {
|
|
2536
|
+
trigger?: any;
|
|
2537
|
+
behavior?: ScrollBehavior;
|
|
2538
|
+
target?: HTMLElement | null;
|
|
2539
|
+
}
|
|
2481
2540
|
declare function ScrollToTop({ trigger, behavior, target, }: ScrollToTopProps): null;
|
|
2482
2541
|
|
|
2483
2542
|
declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -2488,137 +2547,163 @@ declare const getCurrencySymbol: (code: CurrencyCode) => string | null;
|
|
|
2488
2547
|
|
|
2489
2548
|
declare const enumValues: <T extends Record<string, string>>(enumObject: T) => string[];
|
|
2490
2549
|
|
|
2491
|
-
declare const normalize: (path?: string) => string;
|
|
2550
|
+
declare const normalize: (path?: string) => string;
|
|
2492
2551
|
declare const isMatch: (itemPath?: string, currentPath?: string) => boolean;
|
|
2493
2552
|
|
|
2494
|
-
interface ResolveAppearanceStylesProps {
|
|
2495
|
-
appearance?: Appearance;
|
|
2496
|
-
variant: Variant$1;
|
|
2497
|
-
solid: Record<string, string>;
|
|
2498
|
-
lite: Record<string, string>;
|
|
2499
|
-
ghost: Record<string, string>;
|
|
2500
|
-
}
|
|
2553
|
+
interface ResolveAppearanceStylesProps {
|
|
2554
|
+
appearance?: Appearance;
|
|
2555
|
+
variant: Variant$1;
|
|
2556
|
+
solid: Record<string, string>;
|
|
2557
|
+
lite: Record<string, string>;
|
|
2558
|
+
ghost: Record<string, string>;
|
|
2559
|
+
}
|
|
2501
2560
|
declare function resolveAppearanceStyles({ appearance, variant, solid, lite, ghost, }: ResolveAppearanceStylesProps): string;
|
|
2502
2561
|
|
|
2503
|
-
type ConfigSchemaSuccess<TData> = {
|
|
2504
|
-
success: true;
|
|
2505
|
-
data: TData;
|
|
2506
|
-
};
|
|
2507
|
-
type ConfigSchemaFailure = {
|
|
2508
|
-
success: false;
|
|
2509
|
-
error: unknown;
|
|
2510
|
-
};
|
|
2511
|
-
type ConfigSchemaResult<TData> = ConfigSchemaSuccess<TData> | ConfigSchemaFailure;
|
|
2512
|
-
/**
|
|
2513
|
-
* Compatible with Zod's safeParse API.
|
|
2514
|
-
*
|
|
2515
|
-
* This avoids hard-coding zod as a direct dependency of the configurator core.
|
|
2516
|
-
*/
|
|
2517
|
-
type ConfigSchema<TData> = {
|
|
2518
|
-
safeParse: (value: unknown) => ConfigSchemaResult<TData>;
|
|
2519
|
-
};
|
|
2520
|
-
type ConfigTransformContext = {
|
|
2521
|
-
name: string;
|
|
2522
|
-
};
|
|
2523
|
-
type ConfigTransform<TParsed, TConfig> = (parsed: TParsed, context: ConfigTransformContext) => TConfig;
|
|
2524
|
-
type ConfiguratorOptions<TParsed, TConfig = TParsed> = {
|
|
2525
|
-
name?: string;
|
|
2526
|
-
env: Record<string, unknown>;
|
|
2527
|
-
schema: ConfigSchema<TParsed>;
|
|
2528
|
-
transform?: ConfigTransform<TParsed, TConfig>;
|
|
2529
|
-
/**
|
|
2530
|
-
* Default: true
|
|
2531
|
-
*
|
|
2532
|
-
* If true, config validation runs immediately.
|
|
2533
|
-
*/
|
|
2534
|
-
validateOnCreate?: boolean;
|
|
2535
|
-
};
|
|
2536
|
-
type ConfiguratorSuccess<TConfig> = {
|
|
2537
|
-
success: true;
|
|
2538
|
-
config: TConfig;
|
|
2539
|
-
error: null;
|
|
2540
|
-
};
|
|
2541
|
-
type ConfiguratorFailure = {
|
|
2542
|
-
success: false;
|
|
2543
|
-
config: null;
|
|
2544
|
-
error: Error;
|
|
2545
|
-
};
|
|
2562
|
+
type ConfigSchemaSuccess<TData> = {
|
|
2563
|
+
success: true;
|
|
2564
|
+
data: TData;
|
|
2565
|
+
};
|
|
2566
|
+
type ConfigSchemaFailure = {
|
|
2567
|
+
success: false;
|
|
2568
|
+
error: unknown;
|
|
2569
|
+
};
|
|
2570
|
+
type ConfigSchemaResult<TData> = ConfigSchemaSuccess<TData> | ConfigSchemaFailure;
|
|
2571
|
+
/**
|
|
2572
|
+
* Compatible with Zod's safeParse API.
|
|
2573
|
+
*
|
|
2574
|
+
* This avoids hard-coding zod as a direct dependency of the configurator core.
|
|
2575
|
+
*/
|
|
2576
|
+
type ConfigSchema<TData> = {
|
|
2577
|
+
safeParse: (value: unknown) => ConfigSchemaResult<TData>;
|
|
2578
|
+
};
|
|
2579
|
+
type ConfigTransformContext = {
|
|
2580
|
+
name: string;
|
|
2581
|
+
};
|
|
2582
|
+
type ConfigTransform<TParsed, TConfig> = (parsed: TParsed, context: ConfigTransformContext) => TConfig;
|
|
2583
|
+
type ConfiguratorOptions<TParsed, TConfig = TParsed> = {
|
|
2584
|
+
name?: string;
|
|
2585
|
+
env: Record<string, unknown>;
|
|
2586
|
+
schema: ConfigSchema<TParsed>;
|
|
2587
|
+
transform?: ConfigTransform<TParsed, TConfig>;
|
|
2588
|
+
/**
|
|
2589
|
+
* Default: true
|
|
2590
|
+
*
|
|
2591
|
+
* If true, config validation runs immediately.
|
|
2592
|
+
*/
|
|
2593
|
+
validateOnCreate?: boolean;
|
|
2594
|
+
};
|
|
2595
|
+
type ConfiguratorSuccess<TConfig> = {
|
|
2596
|
+
success: true;
|
|
2597
|
+
config: TConfig;
|
|
2598
|
+
error: null;
|
|
2599
|
+
};
|
|
2600
|
+
type ConfiguratorFailure = {
|
|
2601
|
+
success: false;
|
|
2602
|
+
config: null;
|
|
2603
|
+
error: Error;
|
|
2604
|
+
};
|
|
2546
2605
|
type ConfiguratorState<TConfig> = ConfiguratorSuccess<TConfig> | ConfiguratorFailure;
|
|
2547
2606
|
|
|
2548
|
-
declare class Configurator<TParsed, TConfig = TParsed> {
|
|
2549
|
-
private readonly name;
|
|
2550
|
-
private readonly schema;
|
|
2551
|
-
private readonly transform?;
|
|
2552
|
-
private source;
|
|
2553
|
-
private initialized;
|
|
2554
|
-
private config;
|
|
2555
|
-
private configError;
|
|
2556
|
-
constructor(options: ConfiguratorOptions<TParsed, TConfig>);
|
|
2557
|
-
get isValid(): boolean;
|
|
2558
|
-
get error(): Error | null;
|
|
2559
|
-
get value(): TConfig;
|
|
2560
|
-
get optionalValue(): TConfig | null;
|
|
2561
|
-
reload(env?: Record<string, unknown>): ConfiguratorState<TConfig>;
|
|
2562
|
-
get<TKey extends keyof TConfig>(key: TKey): TConfig[TKey] | undefined;
|
|
2563
|
-
getRequired<TKey extends keyof TConfig>(key: TKey): TConfig[TKey];
|
|
2564
|
-
getPath<TValue = unknown>(path: string, fallback?: TValue): TValue | undefined;
|
|
2565
|
-
getPathRequired<TValue = unknown>(path: string): TValue;
|
|
2566
|
-
private ensureInitialized;
|
|
2607
|
+
declare class Configurator<TParsed, TConfig = TParsed> {
|
|
2608
|
+
private readonly name;
|
|
2609
|
+
private readonly schema;
|
|
2610
|
+
private readonly transform?;
|
|
2611
|
+
private source;
|
|
2612
|
+
private initialized;
|
|
2613
|
+
private config;
|
|
2614
|
+
private configError;
|
|
2615
|
+
constructor(options: ConfiguratorOptions<TParsed, TConfig>);
|
|
2616
|
+
get isValid(): boolean;
|
|
2617
|
+
get error(): Error | null;
|
|
2618
|
+
get value(): TConfig;
|
|
2619
|
+
get optionalValue(): TConfig | null;
|
|
2620
|
+
reload(env?: Record<string, unknown>): ConfiguratorState<TConfig>;
|
|
2621
|
+
get<TKey extends keyof TConfig>(key: TKey): TConfig[TKey] | undefined;
|
|
2622
|
+
getRequired<TKey extends keyof TConfig>(key: TKey): TConfig[TKey];
|
|
2623
|
+
getPath<TValue = unknown>(path: string, fallback?: TValue): TValue | undefined;
|
|
2624
|
+
getPathRequired<TValue = unknown>(path: string): TValue;
|
|
2625
|
+
private ensureInitialized;
|
|
2567
2626
|
}
|
|
2568
2627
|
|
|
2569
2628
|
declare function createConfigurator<TParsed, TConfig = TParsed>(options: ConfiguratorOptions<TParsed, TConfig>): Configurator<TParsed, TConfig>;
|
|
2570
2629
|
|
|
2571
|
-
declare class ConfiguratorError extends Error {
|
|
2572
|
-
readonly cause?: unknown;
|
|
2573
|
-
constructor(message: string, cause?: unknown);
|
|
2574
|
-
}
|
|
2575
|
-
declare function formatConfigError(error: unknown): string;
|
|
2630
|
+
declare class ConfiguratorError extends Error {
|
|
2631
|
+
readonly cause?: unknown;
|
|
2632
|
+
constructor(message: string, cause?: unknown);
|
|
2633
|
+
}
|
|
2634
|
+
declare function formatConfigError(error: unknown): string;
|
|
2576
2635
|
declare function toConfiguratorError(error: unknown, fallbackMessage: string): ConfiguratorError;
|
|
2577
2636
|
|
|
2578
|
-
declare function getBrowserOrigin(): string;
|
|
2579
|
-
declare function getBrowserHref(): string;
|
|
2580
|
-
type BrowserRedirectURLOptions = {
|
|
2581
|
-
queryParam?: string;
|
|
2582
|
-
fallbackPath?: string;
|
|
2583
|
-
currentHref?: string;
|
|
2584
|
-
/**
|
|
2585
|
-
* Default: "path"
|
|
2586
|
-
*
|
|
2587
|
-
* "path" returns only pathname/search/hash from document.referrer.
|
|
2588
|
-
* "full" returns full referrer URL.
|
|
2589
|
-
*/
|
|
2590
|
-
referrerMode?: "path" | "full";
|
|
2591
|
-
};
|
|
2637
|
+
declare function getBrowserOrigin(): string;
|
|
2638
|
+
declare function getBrowserHref(): string;
|
|
2639
|
+
type BrowserRedirectURLOptions = {
|
|
2640
|
+
queryParam?: string;
|
|
2641
|
+
fallbackPath?: string;
|
|
2642
|
+
currentHref?: string;
|
|
2643
|
+
/**
|
|
2644
|
+
* Default: "path"
|
|
2645
|
+
*
|
|
2646
|
+
* "path" returns only pathname/search/hash from document.referrer.
|
|
2647
|
+
* "full" returns full referrer URL.
|
|
2648
|
+
*/
|
|
2649
|
+
referrerMode?: "path" | "full";
|
|
2650
|
+
};
|
|
2592
2651
|
declare function getBrowserRedirectURL(options?: BrowserRedirectURLOptions): string;
|
|
2593
2652
|
|
|
2594
|
-
declare function parseJson<TValue = unknown>(value: unknown, key?: string): TValue;
|
|
2653
|
+
declare function parseJson<TValue = unknown>(value: unknown, key?: string): TValue;
|
|
2595
2654
|
declare function parseJsonRecord<TValue = unknown>(value: unknown, key?: string, validateValue?: (name: string, value: unknown) => TValue): Record<string, TValue>;
|
|
2596
2655
|
|
|
2597
|
-
type URLMap = Record<string, string>;
|
|
2598
|
-
type URLQueryValue = string | number | boolean | null | undefined;
|
|
2599
|
-
type URLQueryParams = Record<string, URLQueryValue>;
|
|
2600
|
-
declare function assertAbsoluteURL(value: unknown, key?: string): string;
|
|
2601
|
-
declare function parseUrlMap(value: unknown, key?: string): URLMap;
|
|
2602
|
-
declare function buildURL(base: string, path?: string, params?: URLQueryParams): string;
|
|
2603
|
-
type URLMapSource = URLMap | (() => URLMap | null | undefined);
|
|
2604
|
-
type CreateURLResolverOptions = {
|
|
2605
|
-
label?: string;
|
|
2606
|
-
};
|
|
2607
|
-
declare function createURLResolver(source: URLMapSource, options?: CreateURLResolverOptions): (tag: string, path?: string, params?: URLQueryParams) => string;
|
|
2608
|
-
type GetAllowedOriginsOptions = {
|
|
2609
|
-
urls?: string[];
|
|
2610
|
-
maps?: Array<URLMap | null | undefined>;
|
|
2611
|
-
includeCurrentOrigin?: boolean;
|
|
2612
|
-
currentOrigin?: string;
|
|
2613
|
-
};
|
|
2614
|
-
declare function getAllowedOrigins(options?: GetAllowedOriginsOptions): string[];
|
|
2615
|
-
type SafeRedirectOptions = {
|
|
2616
|
-
redirectUri?: string | null;
|
|
2617
|
-
fallback?: string;
|
|
2618
|
-
allowedOrigins?: string[];
|
|
2619
|
-
currentOrigin?: string;
|
|
2620
|
-
allowedProtocols?: string[];
|
|
2621
|
-
};
|
|
2656
|
+
type URLMap = Record<string, string>;
|
|
2657
|
+
type URLQueryValue = string | number | boolean | null | undefined;
|
|
2658
|
+
type URLQueryParams = Record<string, URLQueryValue>;
|
|
2659
|
+
declare function assertAbsoluteURL(value: unknown, key?: string): string;
|
|
2660
|
+
declare function parseUrlMap(value: unknown, key?: string): URLMap;
|
|
2661
|
+
declare function buildURL(base: string, path?: string, params?: URLQueryParams): string;
|
|
2662
|
+
type URLMapSource = URLMap | (() => URLMap | null | undefined);
|
|
2663
|
+
type CreateURLResolverOptions = {
|
|
2664
|
+
label?: string;
|
|
2665
|
+
};
|
|
2666
|
+
declare function createURLResolver(source: URLMapSource, options?: CreateURLResolverOptions): (tag: string, path?: string, params?: URLQueryParams) => string;
|
|
2667
|
+
type GetAllowedOriginsOptions = {
|
|
2668
|
+
urls?: string[];
|
|
2669
|
+
maps?: Array<URLMap | null | undefined>;
|
|
2670
|
+
includeCurrentOrigin?: boolean;
|
|
2671
|
+
currentOrigin?: string;
|
|
2672
|
+
};
|
|
2673
|
+
declare function getAllowedOrigins(options?: GetAllowedOriginsOptions): string[];
|
|
2674
|
+
type SafeRedirectOptions = {
|
|
2675
|
+
redirectUri?: string | null;
|
|
2676
|
+
fallback?: string;
|
|
2677
|
+
allowedOrigins?: string[];
|
|
2678
|
+
currentOrigin?: string;
|
|
2679
|
+
allowedProtocols?: string[];
|
|
2680
|
+
};
|
|
2622
2681
|
declare function getSafeRedirect(options?: SafeRedirectOptions): string;
|
|
2623
2682
|
|
|
2624
|
-
|
|
2683
|
+
type EnvErrorScreenProps = {
|
|
2684
|
+
error?: unknown;
|
|
2685
|
+
title?: string;
|
|
2686
|
+
description?: string;
|
|
2687
|
+
footer?: ReactNode;
|
|
2688
|
+
showStack?: boolean;
|
|
2689
|
+
};
|
|
2690
|
+
declare function EnvErrorScreen({ error, title, description, footer, showStack, }: EnvErrorScreenProps): react_jsx_runtime.JSX.Element;
|
|
2691
|
+
|
|
2692
|
+
type BootstrapConfigLike = {
|
|
2693
|
+
isValid: boolean;
|
|
2694
|
+
error?: unknown;
|
|
2695
|
+
};
|
|
2696
|
+
type RootAppModule = {
|
|
2697
|
+
default: ComponentType;
|
|
2698
|
+
};
|
|
2699
|
+
type ConfigBootstrapProps = {
|
|
2700
|
+
config: BootstrapConfigLike;
|
|
2701
|
+
loadApp: () => Promise<RootAppModule>;
|
|
2702
|
+
ErrorComponent?: ComponentType<EnvErrorScreenProps>;
|
|
2703
|
+
LoadingComponent?: ComponentType;
|
|
2704
|
+
loadingFallback?: ReactNode;
|
|
2705
|
+
showStack?: boolean;
|
|
2706
|
+
};
|
|
2707
|
+
declare function ConfigBootstrap({ config, loadApp, ErrorComponent, LoadingComponent, loadingFallback, showStack, }: ConfigBootstrapProps): react_jsx_runtime.JSX.Element;
|
|
2708
|
+
|
|
2709
|
+
export { Accordion, type AnimationComponentProps, type AnimationVariant, type Appearance, AreaGraph, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, BarGraph, type BarGraphProps, type BaseAnimationConfig, type BaseComponentProps, BaseGraphDataSource, type BaseGraphProps, type BaseMenuNode, type BaseOverlayConfig, type BaseTopNavNode, type BlobAnimationConfig, Block, BlockGroup, type BootstrapConfigLike, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, type BrowserRedirectURLOptions, Button, Caption, Card, CardContent, CardFooter, CardHeader, type CardinalPosition, Chapter, Checkbox, Chip, type CloudinaryConfig, CloudinaryImage, CloudinaryProvider, type CloudinaryProviderProps, CloudinaryVideo, Code, type CommentActionsProps, type CommentAuthor, type CommentComponents, type CommentComposerProps, type CommentContentProps, type CommentDataSource, type CommentEntity, type CommentHeaderProps, type CommentItemProps, type CommentListProps, type CommentMenuProps, type CommentPageResult, type CommentPermissions, type CommentQueryOptions, type CommentRepliesToggleProps, type CommentReplyCache, CommentThread, type CommentThreadConfig, type CommentThreadProps, ConfigBootstrap, type ConfigBootstrapProps, type ConfigSchema, type ConfigSchemaFailure, type ConfigSchemaResult, type ConfigSchemaSuccess, type ConfigTransform, type ConfigTransformContext, Configurator, ConfiguratorError, type ConfiguratorFailure, type ConfiguratorOptions, type ConfiguratorState, type ConfiguratorSuccess, Content, ContentArea, type CornerPosition, type CreateCommentInput, type CreateURLResolverOptions, type CurrencyCode, DEFAULT_GRAPH_THEME, DataView, DataViewTable, DateSelector, DefaultLayout, type DefaultMenuElements, Display, DocumentationPanel, Drawer, DrawerToggler, type EUIComponentDefaults, type EUIConfigs, EUIDevLayout, EUIProvider, type EUIRoute, EnvErrorScreen, type EnvErrorScreenProps, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, type FormatGraphValueOptions, GRAPH_COLOR_PALETTE, GRAPH_DARK_THEME, GRAPH_DATA_MODES, GRAPH_DEFAULT_ACTIVE_DOT_RADIUS, GRAPH_DEFAULT_ANIMATION_DURATION, GRAPH_DEFAULT_BAR_RADIUS, GRAPH_DEFAULT_DOT_RADIUS, GRAPH_DEFAULT_HEIGHT, GRAPH_DEFAULT_MARGIN, GRAPH_DEFAULT_MAX_REALTIME_POINTS, GRAPH_DEFAULT_POLLING_INTERVAL, GRAPH_DEFAULT_STROKE_WIDTH, GRAPH_EMPTY_MESSAGE, GRAPH_ERROR_MESSAGE, GRAPH_LIGHT_THEME, GRAPH_LOADING_MESSAGE, GRAPH_STATUSES, GRAPH_STATUS_COLORS, GRAPH_VALUE_FORMATS, GaugeGraph, type GaugeGraphProps, GenericLayout, type GetAllowedOriginsOptions, GlowWrapper, type GradientAnimationConfig, Graph, type GraphAction, type GraphBarConfig, type GraphChartType, type GraphColorName, GraphContainer, type GraphContainerProps, GraphContext, type GraphContextValue, type GraphDataHandler, type GraphDataMode, type GraphDataPoint, type GraphDataSource, GraphEmptyState, type GraphEmptyStateProps, type GraphErrorHandler, GraphErrorState, type GraphErrorStateProps, type GraphGaugeConfig, GraphHeader, type GraphHeaderProps, GraphLegend, type GraphLegendItem, type GraphLegendProps, GraphLoadingState, type GraphLoadingStateProps, GraphPanel, type GraphPanelConfig, type GraphPanelProps, type GraphPieConfig, type GraphPrimitive, type GraphProps, GraphProvider, type GraphProviderProps, type GraphRenderChartProps, type GraphSeries, type GraphSeriesColor, type GraphSeriesType, type GraphStatConfig, type GraphState, type GraphStatus, type GraphTheme, type GraphThemeChart, type GraphThemeMode, type GraphThemePanel, type GraphThemeText, type GraphThemeTooltip, GraphToolbar, type GraphToolbarProps, GraphTooltip, type GraphTooltipFormatterOptions, type GraphTooltipPayload, type GraphTooltipProps, type GraphUnsubscribe, type GraphValueFormat, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, type HorizontalPosition, type HyperRefTarget, Image, ImageInput, InfiniteScrollTrigger, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, Lead, type LimitRealtimePointsOptions, LineChart, LineGraph, Link, List, type ListAlign, type ListBulletType, type ListDirection, ListItem, type ListItemData, MarkdownEditor, MarkdownProvider, MarkdownTOC, MarkdownViewer, Menu, type MenuElementType, MenuGroup, type MenuGroupNode, MenuItem, type MenuItemNode, MenuItemTitle, type MenuNode, type MenuProps, type MenuTitleNode, type MeshAnimationConfig, Modal, MotionSurface, MultiImageInput, type NavItem, type NormalizeGraphDataOptions, type NormalizedGraphDataPoint, NumericRating, type OctilePosition, type OverlayVariant, Overline, Paragraph, PieChart, PieGraph, type PieGraphProps, PollingGraphDataSource, type PollingGraphDataSourceConfig, type PollingGraphDataSourceOptions, PriceTag, ProgressBar, type ProgressBarProps, ProgressBarRating, Quote, Radio, type RawGraphDataPoint, RealtimeGraphDataSource, type RealtimeGraphDataSourceConfig, type RealtimeGraphDataSourceOptions, type ReplyComposerProps, type ResolveGraphColorOptions, type ResolvedGraphSeries, type RootAppModule, RouteTab, type RouteTabMode, RouteTabs, type SafeRedirectOptions, ScatterGraph, ScrollToTop, Section, Select, type Shape$1 as Shape, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, type Size$1 as Size, Skeleton, Slider, Spinner, type SpinnerDirection, type SpinnerProps, type SpinnerType, StarRating, StarRatingDistribution, StarRatingInput, StatGraph, type StatGraphProps, StaticGraphDataSource, type StaticGraphDataSourceConfig, type StaticGraphDataSourceOptions, Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table, Tag, Tags, TextArea, type TextDecoration, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, type TitleBannerLevel, Toast, type ToggleReactionResult, Tooltip, TopNav, type TopNavComponents, type TopNavGroupNode, type TopNavItemNode, type TopNavNode, type TopNavProps, type TopNavTitleNode, Transition, TransitionDropdown, TransitionFadeIn, Typography, type URLMap, type URLMapSource, type URLQueryParams, type URLQueryValue, UnderConstructionBanner, type UpdateCommentInput, type UseGraphDataOptions, type UseGraphDataReturn, type UseGraphPollingOptions, type UseGraphRealtimeOptions, type UseGraphSeriesOptions, type UseGraphThemeOptions, ValueBadge, type Variant$1 as Variant, type VerticalPosition, WorldMap, WorldMapCountryTable, YoutubeVideo as YoutubeVideoPlayer, addReplyToCache, applyReactionState, assertAbsoluteURL, buildURL, cn, createConfigurator, createInitialGraphState, createURLResolver, decrementReplyCount, enumValues, formatCommentDate, formatConfigError, formatGraphValue, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getCurrencySymbol, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, graphReducer, incrementReplyCount, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeGraphData, normalizeGraphDataPoint, parseJson, parseJsonRecord, parseUrlMap, removeComment, removeCommentTreeFromCache, replaceRealtimePoints, resolveAppearanceStyles, resolveGraphColor, resolveGraphColors, resolveWithGlobal, sendToast, toConfiguratorError, updateComment, updateReplyCacheComment, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useGraphContext, useGraphData, useGraphPolling, useGraphRealtime, useGraphSeries, useGraphTheme, useIsMobile, useModal, useTheme };
|