elseware-ui 2.32.0 → 2.33.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 +422 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +2158 -1524
- package/dist/index.d.ts +2158 -1524
- package/dist/index.js +2597 -380
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2413 -226
- package/dist/index.mjs.map +1 -1
- package/package.json +111 -110
package/dist/index.d.mts
CHANGED
|
@@ -1,461 +1,1095 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { HTMLAttributes, ReactNode, JSX, FC, ComponentType, MouseEvent, MutableRefObject } from 'react';
|
|
3
4
|
import { ChartData, ChartOptions } from 'chart.js';
|
|
4
|
-
import * as d3 from 'd3';
|
|
5
5
|
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
46
|
|
|
47
|
-
interface AvatarProps extends BaseComponentProps {
|
|
48
|
-
alt?: string;
|
|
49
|
-
icon?: ReactNode;
|
|
50
|
-
variant?: Variant$1;
|
|
51
|
-
appearance?: Appearance;
|
|
52
|
-
shape?: Shape$1;
|
|
53
|
-
size?: Size$1;
|
|
54
|
-
src?: string;
|
|
55
|
-
children?: ReactNode;
|
|
56
|
-
}
|
|
47
|
+
interface AvatarProps extends BaseComponentProps {
|
|
48
|
+
alt?: string;
|
|
49
|
+
icon?: ReactNode;
|
|
50
|
+
variant?: Variant$1;
|
|
51
|
+
appearance?: Appearance;
|
|
52
|
+
shape?: Shape$1;
|
|
53
|
+
size?: Size$1;
|
|
54
|
+
src?: string;
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
}
|
|
57
57
|
declare const Avatar: ({ alt, icon, children, variant, appearance, shape, size, src, className, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
71
71
|
declare const Badge: ({ children, offset, dot, count, variant, appearance, shape, size, showZero, position, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
|
-
interface TitleBannerProps extends BaseComponentProps {
|
|
74
|
-
title: string;
|
|
75
|
-
level?: TitleBannerLevel;
|
|
76
|
-
rightSection?: ReactNode;
|
|
77
|
-
}
|
|
73
|
+
interface TitleBannerProps extends BaseComponentProps {
|
|
74
|
+
title: string;
|
|
75
|
+
level?: TitleBannerLevel;
|
|
76
|
+
rightSection?: ReactNode;
|
|
77
|
+
}
|
|
78
78
|
declare const TitleBanner: ({ title, level, rightSection, className, ...rest }: TitleBannerProps) => react_jsx_runtime.JSX.Element;
|
|
79
79
|
|
|
80
|
-
interface BrandProps extends BaseComponentProps {
|
|
81
|
-
src?: string;
|
|
82
|
-
alt?: string;
|
|
83
|
-
}
|
|
80
|
+
interface BrandProps extends BaseComponentProps {
|
|
81
|
+
src?: string;
|
|
82
|
+
alt?: string;
|
|
83
|
+
}
|
|
84
84
|
declare function Brand({ src, alt, className, ...rest }: BrandProps): react_jsx_runtime.JSX.Element;
|
|
85
85
|
|
|
86
|
-
interface BarChartProps extends BaseComponentProps {
|
|
87
|
-
data: ChartData<"bar">;
|
|
88
|
-
options: ChartOptions<"bar">;
|
|
89
|
-
}
|
|
90
|
-
declare const BarChart:
|
|
91
|
-
|
|
92
|
-
interface LineChartProps extends BaseComponentProps {
|
|
93
|
-
data: ChartData<"line">;
|
|
94
|
-
options?: ChartOptions<"line">;
|
|
95
|
-
}
|
|
96
|
-
declare const LineChart:
|
|
97
|
-
|
|
98
|
-
interface PieChartProps extends BaseComponentProps {
|
|
99
|
-
data: ChartData<"pie">;
|
|
100
|
-
options: ChartOptions<"pie">;
|
|
101
|
-
}
|
|
102
|
-
declare const PieChart:
|
|
103
|
-
|
|
104
|
-
interface ChipProps extends BaseComponentProps {
|
|
105
|
-
label?: string;
|
|
106
|
-
variant?: Variant$1;
|
|
107
|
-
appearance?: Appearance;
|
|
108
|
-
shape?: Shape$1;
|
|
109
|
-
size?: Size$1;
|
|
110
|
-
}
|
|
86
|
+
interface BarChartProps extends BaseComponentProps {
|
|
87
|
+
data: ChartData<"bar">;
|
|
88
|
+
options: ChartOptions<"bar">;
|
|
89
|
+
}
|
|
90
|
+
declare const BarChart: React__default.FC<BarChartProps>;
|
|
91
|
+
|
|
92
|
+
interface LineChartProps extends BaseComponentProps {
|
|
93
|
+
data: ChartData<"line">;
|
|
94
|
+
options?: ChartOptions<"line">;
|
|
95
|
+
}
|
|
96
|
+
declare const LineChart: React__default.FC<LineChartProps>;
|
|
97
|
+
|
|
98
|
+
interface PieChartProps extends BaseComponentProps {
|
|
99
|
+
data: ChartData<"pie">;
|
|
100
|
+
options: ChartOptions<"pie">;
|
|
101
|
+
}
|
|
102
|
+
declare const PieChart: React__default.FC<PieChartProps>;
|
|
103
|
+
|
|
104
|
+
interface ChipProps extends BaseComponentProps {
|
|
105
|
+
label?: string;
|
|
106
|
+
variant?: Variant$1;
|
|
107
|
+
appearance?: Appearance;
|
|
108
|
+
shape?: Shape$1;
|
|
109
|
+
size?: Size$1;
|
|
110
|
+
}
|
|
111
111
|
declare const Chip: ({ label, variant, appearance, shape, size, className, ...rest }: ChipProps) => react_jsx_runtime.JSX.Element;
|
|
112
112
|
|
|
113
|
-
type SortConfig<T, K extends keyof T = keyof T> = {
|
|
114
|
-
key: K;
|
|
115
|
-
direction?: "asc" | "desc";
|
|
116
|
-
transform?: (value: T[K]) => number | string;
|
|
113
|
+
type SortConfig<T, K extends keyof T = keyof T> = {
|
|
114
|
+
key: K;
|
|
115
|
+
direction?: "asc" | "desc";
|
|
116
|
+
transform?: (value: T[K]) => number | string;
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
interface Props$
|
|
120
|
-
data: T[];
|
|
121
|
-
children: ReactNode;
|
|
122
|
-
defaultPageSize?: number;
|
|
123
|
-
sortConfig?: Record<string, SortConfig<T>>;
|
|
124
|
-
}
|
|
125
|
-
declare function DataViewProvider<T extends Record<string, any>>({ data, children, defaultPageSize, sortConfig, }: Props$
|
|
126
|
-
|
|
127
|
-
type DataViewHeaderProps = {
|
|
128
|
-
children: ReactNode;
|
|
129
|
-
};
|
|
119
|
+
interface Props$2<T> {
|
|
120
|
+
data: T[];
|
|
121
|
+
children: ReactNode;
|
|
122
|
+
defaultPageSize?: number;
|
|
123
|
+
sortConfig?: Record<string, SortConfig<T>>;
|
|
124
|
+
}
|
|
125
|
+
declare function DataViewProvider<T extends Record<string, any>>({ data, children, defaultPageSize, sortConfig, }: Props$2<T>): react_jsx_runtime.JSX.Element;
|
|
126
|
+
|
|
127
|
+
type DataViewHeaderProps = {
|
|
128
|
+
children: ReactNode;
|
|
129
|
+
};
|
|
130
130
|
declare function DataViewHeader({ children }: DataViewHeaderProps): react_jsx_runtime.JSX.Element;
|
|
131
131
|
|
|
132
|
-
type DataViewSidebarProps = {
|
|
133
|
-
children: ReactNode;
|
|
134
|
-
};
|
|
132
|
+
type DataViewSidebarProps = {
|
|
133
|
+
children: ReactNode;
|
|
134
|
+
};
|
|
135
135
|
declare function DataViewSidebar({ children }: DataViewSidebarProps): react_jsx_runtime.JSX.Element;
|
|
136
136
|
|
|
137
|
-
type DataViewContentProps<T = any> = {
|
|
138
|
-
children: ReactNode | ((data: T[]) => ReactNode);
|
|
139
|
-
};
|
|
137
|
+
type DataViewContentProps<T = any> = {
|
|
138
|
+
children: ReactNode | ((data: T[]) => ReactNode);
|
|
139
|
+
};
|
|
140
140
|
declare function DataViewContent<T = any>({ children, }: DataViewContentProps<T>): JSX.Element;
|
|
141
141
|
|
|
142
|
-
type DataViewFooterProps = {
|
|
143
|
-
children: ReactNode;
|
|
144
|
-
};
|
|
142
|
+
type DataViewFooterProps = {
|
|
143
|
+
children: ReactNode;
|
|
144
|
+
};
|
|
145
145
|
declare function DataViewFooter({ children }: DataViewFooterProps): react_jsx_runtime.JSX.Element;
|
|
146
146
|
|
|
147
|
-
type DataViewSearchProps = {
|
|
148
|
-
placeholder?: string;
|
|
149
|
-
shape?: Shape$1;
|
|
150
|
-
};
|
|
147
|
+
type DataViewSearchProps = {
|
|
148
|
+
placeholder?: string;
|
|
149
|
+
shape?: Shape$1;
|
|
150
|
+
};
|
|
151
151
|
declare function DataViewSearch({ placeholder, shape, }: DataViewSearchProps): react_jsx_runtime.JSX.Element;
|
|
152
152
|
|
|
153
|
-
type SortOption$1 = {
|
|
154
|
-
value: string;
|
|
155
|
-
label: string;
|
|
156
|
-
};
|
|
157
|
-
type DataViewSortProps = {
|
|
158
|
-
options: SortOption$1[];
|
|
159
|
-
shape?: Shape$1;
|
|
160
|
-
};
|
|
153
|
+
type SortOption$1 = {
|
|
154
|
+
value: string;
|
|
155
|
+
label: string;
|
|
156
|
+
};
|
|
157
|
+
type DataViewSortProps = {
|
|
158
|
+
options: SortOption$1[];
|
|
159
|
+
shape?: Shape$1;
|
|
160
|
+
};
|
|
161
161
|
declare function DataViewSort({ options, shape }: DataViewSortProps): react_jsx_runtime.JSX.Element;
|
|
162
162
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
173
173
|
declare function DataViewFilterGroup<T extends Record<string, any>>({ filterKey, options, title, }: DataViewFilterGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
174
174
|
|
|
175
|
-
type Props$
|
|
176
|
-
pageSizeOptions?: (number | "All")[];
|
|
177
|
-
shape?: Shape$1;
|
|
178
|
-
};
|
|
179
|
-
declare function DataViewPageSize({ pageSizeOptions, shape, }: Props$4): react_jsx_runtime.JSX.Element;
|
|
180
|
-
|
|
181
|
-
type Props$3 = {
|
|
182
|
-
shape?: Shape$1;
|
|
183
|
-
};
|
|
184
|
-
declare function DataViewPagination({ shape }: Props$3): react_jsx_runtime.JSX.Element | null;
|
|
185
|
-
|
|
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;
|
|
175
|
+
type Props$1 = {
|
|
176
|
+
pageSizeOptions?: (number | "All")[];
|
|
177
|
+
shape?: Shape$1;
|
|
196
178
|
};
|
|
179
|
+
declare function DataViewPageSize({ pageSizeOptions, shape, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
197
180
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
181
|
+
type Props = {
|
|
182
|
+
shape?: Shape$1;
|
|
183
|
+
};
|
|
184
|
+
declare function DataViewPagination({ shape }: Props): react_jsx_runtime.JSX.Element | null;
|
|
185
|
+
|
|
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;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
interface FlagProps extends BaseComponentProps {
|
|
199
|
+
code: string;
|
|
200
|
+
width?: number | string;
|
|
201
|
+
height?: number | string;
|
|
202
|
+
}
|
|
203
203
|
declare const Flag: ({ code, width, height, className, ...rest }: FlagProps) => react_jsx_runtime.JSX.Element;
|
|
204
204
|
|
|
205
|
-
type
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
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[];
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
declare function Graph<TData extends GraphDataPoint = GraphDataPoint>(props: GraphProps<TData>): react_jsx_runtime.JSX.Element;
|
|
436
|
+
|
|
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
|
+
}
|
|
456
|
+
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
|
+
|
|
458
|
+
interface GraphHeaderProps {
|
|
459
|
+
title?: ReactNode;
|
|
460
|
+
description?: ReactNode;
|
|
461
|
+
actions?: ReactNode;
|
|
462
|
+
className?: string;
|
|
463
|
+
}
|
|
464
|
+
declare function GraphHeader({ title, description, actions, className, }: GraphHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
465
|
+
|
|
466
|
+
interface GraphToolbarProps {
|
|
467
|
+
children?: ReactNode;
|
|
468
|
+
className?: string;
|
|
469
|
+
showRefresh?: boolean;
|
|
470
|
+
showLastUpdated?: boolean;
|
|
471
|
+
refreshLabel?: ReactNode;
|
|
472
|
+
onRefresh?: () => void | Promise<void>;
|
|
473
|
+
}
|
|
474
|
+
declare function GraphToolbar({ children, className, showRefresh, showLastUpdated, refreshLabel, onRefresh, }: GraphToolbarProps): react_jsx_runtime.JSX.Element | null;
|
|
475
|
+
|
|
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
|
+
}
|
|
496
|
+
declare function GraphLegend<TData extends GraphDataPoint = GraphDataPoint>({ items, series, data, className, showValues, valueSource, onItemClick, }: GraphLegendProps<TData>): react_jsx_runtime.JSX.Element | null;
|
|
497
|
+
|
|
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
|
+
}
|
|
513
|
+
declare function GraphTooltip({ active, label, payload, className, labelFormatter, valueFormatter, seriesFormatters, }: GraphTooltipProps): react_jsx_runtime.JSX.Element | null;
|
|
514
|
+
|
|
515
|
+
interface GraphEmptyStateProps {
|
|
516
|
+
height?: number;
|
|
517
|
+
message?: ReactNode;
|
|
518
|
+
description?: ReactNode;
|
|
519
|
+
className?: string;
|
|
520
|
+
}
|
|
521
|
+
declare function GraphEmptyState({ height, message, description, className, }: GraphEmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
522
|
+
|
|
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
|
+
}
|
|
532
|
+
declare function GraphErrorState({ error, height, title, message, className, onRetry, retryLabel, }: GraphErrorStateProps): react_jsx_runtime.JSX.Element;
|
|
533
|
+
|
|
534
|
+
interface GraphLoadingStateProps {
|
|
535
|
+
height?: number;
|
|
536
|
+
message?: ReactNode;
|
|
537
|
+
className?: string;
|
|
538
|
+
showMessage?: boolean;
|
|
539
|
+
}
|
|
540
|
+
declare function GraphLoadingState({ height, message, className, showMessage, }: GraphLoadingStateProps): react_jsx_runtime.JSX.Element;
|
|
279
541
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
542
|
+
interface GraphContainerProps {
|
|
543
|
+
children: ReactNode;
|
|
544
|
+
height?: number;
|
|
545
|
+
className?: string;
|
|
546
|
+
contentClassName?: string;
|
|
547
|
+
}
|
|
548
|
+
declare function GraphContainer({ children, height, className, contentClassName, }: GraphContainerProps): react_jsx_runtime.JSX.Element;
|
|
549
|
+
|
|
550
|
+
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
|
+
|
|
552
|
+
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
|
+
|
|
554
|
+
interface BarGraphProps<TData extends GraphDataPoint = GraphDataPoint> extends BaseGraphProps<TData> {
|
|
555
|
+
layout?: "horizontal" | "vertical";
|
|
556
|
+
}
|
|
557
|
+
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
|
+
|
|
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
|
+
}
|
|
567
|
+
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
|
+
|
|
569
|
+
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
|
+
|
|
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
|
+
}
|
|
586
|
+
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
|
+
|
|
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
|
+
}
|
|
603
|
+
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
|
+
|
|
605
|
+
declare function GraphProvider<TData extends GraphDataPoint = GraphDataPoint>({ children, data, dataSource, maxDataPoints, autoLoad, onDataChange, onError, }: GraphProviderProps<TData>): react_jsx_runtime.JSX.Element;
|
|
606
|
+
|
|
607
|
+
declare const GraphContext: React$1.Context<GraphContextValue<GraphDataPoint>>;
|
|
608
|
+
|
|
609
|
+
declare function useGraphContext<TData extends GraphDataPoint = GraphDataPoint>(): GraphContextValue<TData>;
|
|
610
|
+
|
|
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>;
|
|
633
|
+
declare function graphReducer<TData extends GraphDataPoint = GraphDataPoint>(state: GraphState<TData>, action: GraphAction<TData>): GraphState<TData>;
|
|
634
|
+
|
|
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
|
+
}
|
|
706
|
+
declare function useGraphData<TData extends GraphDataPoint = GraphDataPoint>({ data, dataSource, autoLoad, maxDataPoints, normalize, onDataChange, onError, }?: UseGraphDataOptions<TData>): UseGraphDataReturn<TData>;
|
|
707
|
+
|
|
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;
|
|
716
|
+
};
|
|
717
|
+
|
|
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>;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
declare function useGraphSeries<TData extends GraphDataPoint = GraphDataPoint>({ data, series, xKey, excludeKeys, }: UseGraphSeriesOptions<TData>): ResolvedGraphSeries[];
|
|
728
|
+
|
|
729
|
+
declare function useGraphTheme({ mode, theme, }?: UseGraphThemeOptions): GraphTheme;
|
|
730
|
+
|
|
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[];
|
|
764
|
+
declare function normalizeGraphDataPoint<TData extends RawGraphDataPoint>(dataPoint: TData, options?: NormalizeGraphDataOptions): NormalizedGraphDataPoint;
|
|
765
|
+
|
|
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
|
+
}
|
|
776
|
+
declare function formatGraphValue(value: unknown, options?: FormatGraphValueOptions): string;
|
|
777
|
+
|
|
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;
|
|
785
|
+
declare function resolveGraphColors(count: number, options?: ResolveGraphColorOptions): string[];
|
|
786
|
+
|
|
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[];
|
|
802
|
+
declare function replaceRealtimePoints<TData>(nextData?: TData[], options?: Pick<LimitRealtimePointsOptions, "maxPoints">): TData[];
|
|
803
|
+
|
|
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";
|
|
842
|
+
declare const GRAPH_LOADING_MESSAGE = "Loading graph data...";
|
|
843
|
+
|
|
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[];
|
|
928
|
+
};
|
|
929
|
+
|
|
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
|
+
}
|
|
304
938
|
declare function CloudinaryImage({ publicId, cloudName, secure, alt, fallbackSrc, loading, className, ...rest }: CloudinaryImageProps): react_jsx_runtime.JSX.Element;
|
|
305
939
|
|
|
306
|
-
interface ImageProps extends BaseComponentProps {
|
|
307
|
-
alt?: string;
|
|
308
|
-
src?: string;
|
|
309
|
-
height?: number;
|
|
310
|
-
width?: number;
|
|
311
|
-
}
|
|
940
|
+
interface ImageProps extends BaseComponentProps {
|
|
941
|
+
alt?: string;
|
|
942
|
+
src?: string;
|
|
943
|
+
height?: number;
|
|
944
|
+
width?: number;
|
|
945
|
+
}
|
|
312
946
|
declare const Image: ({ alt, src, height, width, className, ...rest }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
313
947
|
|
|
314
|
-
interface InfoProps extends BaseComponentProps {
|
|
315
|
-
variant?: Variant$1;
|
|
316
|
-
appearance?: Appearance;
|
|
317
|
-
shape?: Shape$1;
|
|
318
|
-
children?: ReactNode;
|
|
319
|
-
}
|
|
948
|
+
interface InfoProps extends BaseComponentProps {
|
|
949
|
+
variant?: Variant$1;
|
|
950
|
+
appearance?: Appearance;
|
|
951
|
+
shape?: Shape$1;
|
|
952
|
+
children?: ReactNode;
|
|
953
|
+
}
|
|
320
954
|
declare function Info({ children, variant, appearance, shape, className, ...rest }: InfoProps): react_jsx_runtime.JSX.Element;
|
|
321
955
|
|
|
322
|
-
interface ListItemData {
|
|
323
|
-
content:
|
|
324
|
-
bulletType?: ListBulletType;
|
|
325
|
-
renderBullet?: (index?: number) =>
|
|
326
|
-
TypographyComponent?:
|
|
327
|
-
className?: string;
|
|
328
|
-
}
|
|
329
|
-
interface ListProps extends BaseComponentProps {
|
|
330
|
-
title?: string;
|
|
331
|
-
items: (string |
|
|
332
|
-
direction?: ListDirection;
|
|
333
|
-
gap?: 1 | 2 | 3 | 4;
|
|
334
|
-
columns?: 1 | 2 | 3 | 4;
|
|
335
|
-
align?: ListAlign;
|
|
336
|
-
wrap?: boolean;
|
|
337
|
-
bulletType?: ListBulletType;
|
|
338
|
-
}
|
|
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
|
+
}
|
|
339
973
|
declare function List({ title, items, direction, gap, columns, align, wrap, bulletType, className, ...rest }: ListProps): react_jsx_runtime.JSX.Element;
|
|
340
974
|
|
|
341
|
-
interface ListItemProps {
|
|
342
|
-
content:
|
|
343
|
-
index?: number;
|
|
344
|
-
TypographyComponent?:
|
|
345
|
-
bulletType?: ListBulletType;
|
|
346
|
-
renderBullet?: (index?: number) =>
|
|
347
|
-
align?: ListAlign;
|
|
348
|
-
className?: string;
|
|
349
|
-
}
|
|
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
|
+
}
|
|
350
984
|
declare const ListItem: ({ content, TypographyComponent, bulletType, renderBullet, index, align, className, }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
351
985
|
|
|
352
|
-
interface PriceTagProps extends BaseComponentProps {
|
|
353
|
-
price: number;
|
|
354
|
-
discount?: number;
|
|
355
|
-
code?: CurrencyCode;
|
|
356
|
-
variant?: Variant$1;
|
|
357
|
-
appearance?: Appearance;
|
|
358
|
-
shape?: Shape$1;
|
|
359
|
-
size?: Size$1;
|
|
360
|
-
decimals?: number;
|
|
361
|
-
showCurrencyCode?: boolean;
|
|
362
|
-
currencyAsSubscript?: boolean;
|
|
363
|
-
showFreeLabel?: boolean;
|
|
364
|
-
}
|
|
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
|
+
}
|
|
365
999
|
declare function PriceTag({ price, discount, code, variant, appearance, shape, size, decimals, showCurrencyCode, currencyAsSubscript, showFreeLabel, className, ...rest }: PriceTagProps): react_jsx_runtime.JSX.Element;
|
|
366
1000
|
|
|
367
|
-
interface ProgressBarProps extends BaseComponentProps {
|
|
368
|
-
value: number;
|
|
369
|
-
max?: number;
|
|
370
|
-
min?: number;
|
|
371
|
-
variant?: Variant$1;
|
|
372
|
-
appearance?: Appearance;
|
|
373
|
-
size?: Size$1;
|
|
374
|
-
shape?: Shape$1;
|
|
375
|
-
striped?: boolean;
|
|
376
|
-
animated?: boolean;
|
|
377
|
-
showLabel?: boolean;
|
|
378
|
-
label?: string;
|
|
379
|
-
labelPlacement?: "top" | "overlay" | "bottom";
|
|
380
|
-
showPercentage?: boolean;
|
|
381
|
-
startContent?: ReactNode;
|
|
382
|
-
endContent?: ReactNode;
|
|
383
|
-
trackClassName?: string;
|
|
384
|
-
barClassName?: string;
|
|
385
|
-
}
|
|
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
|
+
}
|
|
386
1020
|
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;
|
|
387
1021
|
|
|
388
|
-
interface NumericRatingProps extends BaseComponentProps {
|
|
389
|
-
rating: number;
|
|
390
|
-
totalReviews?: number;
|
|
391
|
-
size?: Size$1;
|
|
392
|
-
showStars?: boolean;
|
|
393
|
-
showReviewCount?: boolean;
|
|
394
|
-
reviewLabel?: string;
|
|
395
|
-
}
|
|
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
|
+
}
|
|
396
1030
|
declare function NumericRating({ rating, totalReviews, size, showStars, showReviewCount, reviewLabel, className, ...rest }: NumericRatingProps): react_jsx_runtime.JSX.Element;
|
|
397
1031
|
|
|
398
|
-
interface ProgressBarRatingProps extends BaseComponentProps {
|
|
399
|
-
star: number;
|
|
400
|
-
percentage: number;
|
|
401
|
-
variant?: Variant$1;
|
|
402
|
-
appearance?: Appearance;
|
|
403
|
-
shape?: Shape$1;
|
|
404
|
-
size?: Size$1;
|
|
405
|
-
animated?: boolean;
|
|
406
|
-
striped?: boolean;
|
|
407
|
-
}
|
|
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
|
+
}
|
|
408
1042
|
declare function ProgressBarRating({ star, percentage, variant, appearance, shape, size, animated, striped, className, ...rest }: ProgressBarRatingProps): react_jsx_runtime.JSX.Element;
|
|
409
1043
|
|
|
410
|
-
interface StarRatingProps extends BaseComponentProps {
|
|
411
|
-
rating: number;
|
|
412
|
-
max?: number;
|
|
413
|
-
size?: Size$1;
|
|
414
|
-
showValue?: boolean;
|
|
415
|
-
valuePosition?: "start" | "end";
|
|
416
|
-
iconClassName?: string;
|
|
417
|
-
}
|
|
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
|
+
}
|
|
418
1052
|
declare function StarRating({ rating, max, size, showValue, valuePosition, iconClassName, className, ...rest }: StarRatingProps): react_jsx_runtime.JSX.Element;
|
|
419
1053
|
|
|
420
|
-
interface TableColumnConfig<T> {
|
|
421
|
-
key: keyof T | string;
|
|
422
|
-
header: string;
|
|
423
|
-
sortable?: boolean;
|
|
424
|
-
render?: (value: any, row: T) => ReactNode;
|
|
425
|
-
}
|
|
426
|
-
interface TableProps<T> {
|
|
427
|
-
title?: string;
|
|
428
|
-
columns: TableColumnConfig<T>[];
|
|
429
|
-
data: T[];
|
|
430
|
-
shape?: Shape$1;
|
|
431
|
-
}
|
|
1054
|
+
interface TableColumnConfig<T> {
|
|
1055
|
+
key: keyof T | string;
|
|
1056
|
+
header: string;
|
|
1057
|
+
sortable?: boolean;
|
|
1058
|
+
render?: (value: any, row: T) => ReactNode;
|
|
1059
|
+
}
|
|
1060
|
+
interface TableProps<T> {
|
|
1061
|
+
title?: string;
|
|
1062
|
+
columns: TableColumnConfig<T>[];
|
|
1063
|
+
data: T[];
|
|
1064
|
+
shape?: Shape$1;
|
|
1065
|
+
}
|
|
432
1066
|
declare function Table<T extends Record<string, any>>({ title, columns, data, shape, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
433
1067
|
|
|
434
|
-
interface TagProps extends BaseComponentProps {
|
|
435
|
-
text: string;
|
|
436
|
-
}
|
|
1068
|
+
interface TagProps extends BaseComponentProps {
|
|
1069
|
+
text: string;
|
|
1070
|
+
}
|
|
437
1071
|
declare function Tag({ text, className, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
|
|
438
1072
|
|
|
439
|
-
interface TooltipProps extends BaseComponentProps {
|
|
440
|
-
children: ReactNode;
|
|
441
|
-
show: boolean;
|
|
442
|
-
offsetX?: number;
|
|
443
|
-
offsetY?: number;
|
|
444
|
-
}
|
|
1073
|
+
interface TooltipProps extends BaseComponentProps {
|
|
1074
|
+
children: ReactNode;
|
|
1075
|
+
show: boolean;
|
|
1076
|
+
offsetX?: number;
|
|
1077
|
+
offsetY?: number;
|
|
1078
|
+
}
|
|
445
1079
|
declare function Tooltip({ children, show, offsetX, offsetY, className, ...rest }: TooltipProps): react_jsx_runtime.JSX.Element | null;
|
|
446
1080
|
|
|
447
|
-
interface TypographyProps extends BaseComponentProps {
|
|
448
|
-
children?: ReactNode;
|
|
449
|
-
level?: 1 | 2 | 3;
|
|
450
|
-
variant?: Variant$1;
|
|
451
|
-
decoration?: TextDecoration;
|
|
452
|
-
bold?: boolean;
|
|
453
|
-
italic?: boolean;
|
|
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;
|
|
454
1088
|
}
|
|
455
1089
|
|
|
456
|
-
interface DisplayProps extends TypographyProps {
|
|
457
|
-
level?: 1 | 2 | 3;
|
|
458
|
-
}
|
|
1090
|
+
interface DisplayProps extends TypographyProps {
|
|
1091
|
+
level?: 1 | 2 | 3;
|
|
1092
|
+
}
|
|
459
1093
|
declare const Display: ({ level, children, variant, decoration, bold, italic, className, ...rest }: DisplayProps) => react_jsx_runtime.JSX.Element;
|
|
460
1094
|
|
|
461
1095
|
declare const Chapter: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -476,1309 +1110,1309 @@ declare const Lead: ({ children, variant, decoration, bold, italic, className, .
|
|
|
476
1110
|
|
|
477
1111
|
declare const Overline: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
478
1112
|
|
|
479
|
-
declare const Typography: {
|
|
480
|
-
Display: ({ level, children, variant, decoration, bold, italic, className, ...rest }: DisplayProps) => react_jsx_runtime.JSX.Element;
|
|
481
|
-
Chapter: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
482
|
-
Section: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
483
|
-
Paragraph: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
484
|
-
Quote: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
485
|
-
Lead: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
486
|
-
Caption: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
487
|
-
Label: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
488
|
-
Code: ({ children, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
489
|
-
Overline: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
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;
|
|
490
1124
|
};
|
|
491
1125
|
|
|
492
|
-
interface Tier {
|
|
493
|
-
condition: (percent: number) => boolean;
|
|
494
|
-
style: {
|
|
495
|
-
bg: string;
|
|
496
|
-
color: string;
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
interface ValueBadgeProps {
|
|
500
|
-
value: number;
|
|
501
|
-
tiers?: Tier[];
|
|
502
|
-
lowerBound?: number;
|
|
503
|
-
upperBound?: number;
|
|
504
|
-
formatValue?: (value: number) => string | number;
|
|
505
|
-
className?: string;
|
|
506
|
-
noBackground?: boolean;
|
|
507
|
-
}
|
|
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
|
+
}
|
|
508
1142
|
declare const ValueBadge: ({ value, tiers, lowerBound, upperBound, formatValue, className, noBackground, }: ValueBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
509
1143
|
|
|
510
|
-
interface CloudinaryVideoProps extends BaseComponentProps<HTMLVideoElement> {
|
|
511
|
-
publicId?: string;
|
|
512
|
-
cloudName?: string;
|
|
513
|
-
secure?: boolean;
|
|
514
|
-
controls?: boolean;
|
|
515
|
-
autoPlay?: boolean;
|
|
516
|
-
muted?: boolean;
|
|
517
|
-
loop?: boolean;
|
|
518
|
-
playsInline?: boolean;
|
|
519
|
-
poster?: string;
|
|
520
|
-
preload?: "none" | "metadata" | "auto";
|
|
521
|
-
}
|
|
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
|
+
}
|
|
522
1156
|
declare function CloudinaryVideo({ publicId, cloudName, secure, controls, autoPlay, muted, loop, playsInline, poster, preload, className, ...rest }: CloudinaryVideoProps): react_jsx_runtime.JSX.Element;
|
|
523
1157
|
|
|
524
|
-
interface YoutubeVideoProps extends BaseComponentProps<HTMLIFrameElement> {
|
|
525
|
-
videoUrl: string;
|
|
526
|
-
width?: number;
|
|
527
|
-
height?: number;
|
|
528
|
-
autoPlay?: boolean;
|
|
529
|
-
muted?: boolean;
|
|
530
|
-
controls?: boolean;
|
|
531
|
-
loop?: boolean;
|
|
532
|
-
privacyMode?: boolean;
|
|
533
|
-
}
|
|
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
|
+
}
|
|
534
1168
|
declare function YoutubeVideo({ videoUrl, width, height, autoPlay, muted, controls, className, ...rest }: YoutubeVideoProps): react_jsx_runtime.JSX.Element;
|
|
535
1169
|
|
|
536
|
-
interface WorldMapPoint {
|
|
537
|
-
code: string;
|
|
538
|
-
value: number;
|
|
539
|
-
}
|
|
540
|
-
interface WorldMapProps extends BaseComponentProps {
|
|
541
|
-
data: WorldMapPoint[];
|
|
542
|
-
title?: string;
|
|
543
|
-
bubbleColor?: string;
|
|
544
|
-
bubbleStroke?: string;
|
|
545
|
-
bubbleScale?: number;
|
|
546
|
-
minBubble?: number;
|
|
547
|
-
disableCountryHover?: boolean;
|
|
548
|
-
disableCountrySelect?: boolean;
|
|
549
|
-
}
|
|
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
|
+
}
|
|
550
1184
|
declare function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble, disableCountryHover, disableCountrySelect, className, ...rest }: WorldMapProps): react_jsx_runtime.JSX.Element;
|
|
551
1185
|
|
|
552
|
-
interface ButtonProps extends BaseComponentProps<HTMLButtonElement> {
|
|
553
|
-
type?: "button" | "submit" | "reset";
|
|
554
|
-
icon?: ReactNode;
|
|
555
|
-
text?: string;
|
|
556
|
-
children?: ReactNode;
|
|
557
|
-
loading?: boolean;
|
|
558
|
-
disabled?: boolean;
|
|
559
|
-
block?: boolean;
|
|
560
|
-
variant?: Variant$1;
|
|
561
|
-
appearance?: Appearance;
|
|
562
|
-
shape?: Shape$1;
|
|
563
|
-
size?: Size$1;
|
|
564
|
-
}
|
|
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
|
+
}
|
|
565
1199
|
declare function Button({ type, icon, text, children, loading, disabled, block, variant, appearance, shape, size, className, onMouseMove, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
566
1200
|
|
|
567
|
-
interface CheckboxOption {
|
|
568
|
-
label: string;
|
|
569
|
-
value: string;
|
|
570
|
-
}
|
|
571
|
-
interface BaseCheckboxProps extends BaseComponentProps {
|
|
572
|
-
placeholder?: string;
|
|
573
|
-
variant?: Variant$1;
|
|
574
|
-
shape?: Shape$1;
|
|
575
|
-
}
|
|
576
|
-
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
577
|
-
options?: never;
|
|
578
|
-
}
|
|
579
|
-
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
580
|
-
options: CheckboxOption[];
|
|
581
|
-
}
|
|
582
|
-
type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
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[]>);
|
|
583
1217
|
declare function Checkbox({ placeholder, variant, shape, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
584
1218
|
|
|
585
|
-
declare enum Variant {
|
|
586
|
-
default = "default",
|
|
587
|
-
primary = "primary",
|
|
588
|
-
secondary = "secondary",
|
|
589
|
-
success = "success",
|
|
590
|
-
danger = "danger",
|
|
591
|
-
warning = "warning",
|
|
592
|
-
info = "info",
|
|
593
|
-
light = "light",
|
|
594
|
-
dark = "dark"
|
|
595
|
-
}
|
|
596
|
-
declare enum TextVariant {
|
|
597
|
-
default = "default",
|
|
598
|
-
primary = "primary",
|
|
599
|
-
secondary = "secondary",
|
|
600
|
-
success = "success",
|
|
601
|
-
danger = "danger",
|
|
602
|
-
warning = "warning",
|
|
603
|
-
info = "info",
|
|
604
|
-
light = "light",
|
|
605
|
-
dark = "dark"
|
|
606
|
-
}
|
|
607
|
-
declare enum Shape {
|
|
608
|
-
circle = "circle",
|
|
609
|
-
roundedSquare = "roundedSquare",
|
|
610
|
-
softRoundedSquare = "softRoundedSquare",
|
|
611
|
-
square = "square"
|
|
612
|
-
}
|
|
613
|
-
declare enum Size {
|
|
614
|
-
xs = "xs",
|
|
615
|
-
sm = "sm",
|
|
616
|
-
md = "md",
|
|
617
|
-
lg = "lg",
|
|
618
|
-
xl = "xl"
|
|
619
|
-
}
|
|
620
|
-
declare enum Decoration {
|
|
621
|
-
underline = "underline",
|
|
622
|
-
overline = "overline",
|
|
623
|
-
lineThrough = "lineThrough",
|
|
624
|
-
noUnderline = "noUnderline"
|
|
625
|
-
}
|
|
626
|
-
declare enum Target {
|
|
627
|
-
blank = "blank",
|
|
628
|
-
self = "self",
|
|
629
|
-
parent = "parent",
|
|
630
|
-
top = "top"
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
type DateSelectorProps = FieldHookConfig<string> & {
|
|
634
|
-
name: string;
|
|
635
|
-
placeholder: string;
|
|
636
|
-
styles?: string;
|
|
637
|
-
shape?: keyof typeof Shape;
|
|
638
|
-
};
|
|
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
|
+
};
|
|
639
1273
|
declare const DateSelector: ({ placeholder, styles, shape, ...props }: DateSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
640
1274
|
|
|
641
|
-
interface FormProps {
|
|
642
|
-
initialValues?: Record<string, any>;
|
|
643
|
-
validationSchema?: object;
|
|
644
|
-
enableReinitialize?: boolean;
|
|
645
|
-
children?:
|
|
646
|
-
styles?: string;
|
|
647
|
-
onSubmit: (values: any, helpers?: any) => void;
|
|
648
|
-
onChange?: (values: Record<string, any>, meta?: {
|
|
649
|
-
changed: Record<string, any>;
|
|
650
|
-
}) => void;
|
|
651
|
-
warnOnUnsavedChanges?: boolean;
|
|
652
|
-
onDirtyChange?: (dirty: boolean) => void;
|
|
653
|
-
}
|
|
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
|
+
}
|
|
654
1288
|
declare const Form: ({ initialValues, validationSchema, enableReinitialize, children, styles, onSubmit, onChange, warnOnUnsavedChanges, onDirtyChange, }: FormProps) => react_jsx_runtime.JSX.Element;
|
|
655
1289
|
|
|
656
|
-
interface FormResponseProps {
|
|
657
|
-
text: string | undefined;
|
|
658
|
-
variant?: keyof typeof Variant;
|
|
659
|
-
shape?: keyof typeof Shape;
|
|
660
|
-
size?: keyof typeof Size;
|
|
661
|
-
styles?: string;
|
|
662
|
-
}
|
|
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
|
+
}
|
|
663
1297
|
declare function FormResponse({ text, variant, shape, size, styles, }: FormResponseProps): react_jsx_runtime.JSX.Element;
|
|
664
1298
|
|
|
665
|
-
interface ImageInputProps {
|
|
666
|
-
title?: string;
|
|
667
|
-
uploadDir?: string;
|
|
668
|
-
onValueChanged?: (imageUrl: string) => void;
|
|
669
|
-
disableSetValue?: boolean;
|
|
670
|
-
}
|
|
671
|
-
interface ImageInputRef {
|
|
672
|
-
handleResetClick: () => void;
|
|
673
|
-
}
|
|
674
|
-
declare const ImageInput:
|
|
675
|
-
|
|
676
|
-
type InputProps = FieldHookConfig<string> & {
|
|
677
|
-
type: "text" | "password" | "number";
|
|
678
|
-
name: string;
|
|
679
|
-
placeholder: string;
|
|
680
|
-
styles?: string;
|
|
681
|
-
step?: string;
|
|
682
|
-
shape?: keyof typeof Shape;
|
|
683
|
-
};
|
|
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
|
+
}
|
|
1308
|
+
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
|
+
|
|
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
|
+
};
|
|
684
1318
|
declare const Input: ({ type, placeholder, styles, step, shape, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
685
1319
|
|
|
686
|
-
interface InputFileProps {
|
|
687
|
-
placeholder: string;
|
|
688
|
-
accept?: string;
|
|
689
|
-
styles?: string;
|
|
690
|
-
}
|
|
1320
|
+
interface InputFileProps {
|
|
1321
|
+
placeholder: string;
|
|
1322
|
+
accept?: string;
|
|
1323
|
+
styles?: string;
|
|
1324
|
+
}
|
|
691
1325
|
declare const InputFile: ({ placeholder, accept, styles, ...props }: FieldHookConfig<File | null> & InputFileProps) => react_jsx_runtime.JSX.Element;
|
|
692
1326
|
|
|
693
|
-
interface FormDataEntryLabelProps {
|
|
694
|
-
text?: string;
|
|
695
|
-
children?:
|
|
696
|
-
styles?: string;
|
|
697
|
-
}
|
|
1327
|
+
interface FormDataEntryLabelProps {
|
|
1328
|
+
text?: string;
|
|
1329
|
+
children?: React__default.ReactNode;
|
|
1330
|
+
styles?: string;
|
|
1331
|
+
}
|
|
698
1332
|
declare function InputLabel({ text, children, styles }: FormDataEntryLabelProps): react_jsx_runtime.JSX.Element;
|
|
699
1333
|
|
|
700
|
-
interface InputListProps {
|
|
701
|
-
name: string;
|
|
702
|
-
placeholder?: string;
|
|
703
|
-
shape?: keyof typeof Shape;
|
|
704
|
-
}
|
|
1334
|
+
interface InputListProps {
|
|
1335
|
+
name: string;
|
|
1336
|
+
placeholder?: string;
|
|
1337
|
+
shape?: keyof typeof Shape;
|
|
1338
|
+
}
|
|
705
1339
|
declare const InputList: ({ name, placeholder, shape }: InputListProps) => react_jsx_runtime.JSX.Element;
|
|
706
1340
|
|
|
707
|
-
interface InputListGroupProps {
|
|
708
|
-
name: string;
|
|
709
|
-
placeholder?: string;
|
|
710
|
-
shape?: keyof typeof Shape;
|
|
711
|
-
}
|
|
1341
|
+
interface InputListGroupProps {
|
|
1342
|
+
name: string;
|
|
1343
|
+
placeholder?: string;
|
|
1344
|
+
shape?: keyof typeof Shape;
|
|
1345
|
+
}
|
|
712
1346
|
declare const InputListGroup: ({ name, placeholder, shape, }: InputListGroupProps) => react_jsx_runtime.JSX.Element;
|
|
713
1347
|
|
|
714
|
-
interface InputResponseProps {
|
|
715
|
-
name: string;
|
|
716
|
-
visibility?: boolean;
|
|
717
|
-
variant?: keyof typeof TextVariant;
|
|
718
|
-
styles?: string;
|
|
719
|
-
}
|
|
1348
|
+
interface InputResponseProps {
|
|
1349
|
+
name: string;
|
|
1350
|
+
visibility?: boolean;
|
|
1351
|
+
variant?: keyof typeof TextVariant;
|
|
1352
|
+
styles?: string;
|
|
1353
|
+
}
|
|
720
1354
|
declare function InputResponse({ name, visibility, variant, styles, }: InputResponseProps): react_jsx_runtime.JSX.Element;
|
|
721
1355
|
|
|
722
|
-
interface MultiImageInputProps {
|
|
723
|
-
title?: string;
|
|
724
|
-
uploadDir?: string;
|
|
725
|
-
name: string;
|
|
726
|
-
}
|
|
1356
|
+
interface MultiImageInputProps {
|
|
1357
|
+
title?: string;
|
|
1358
|
+
uploadDir?: string;
|
|
1359
|
+
name: string;
|
|
1360
|
+
}
|
|
727
1361
|
declare function MultiImageInput({ title, uploadDir, ...props }: FieldHookConfig<string[]> & MultiImageInputProps): react_jsx_runtime.JSX.Element;
|
|
728
1362
|
|
|
729
|
-
interface RadioProps {
|
|
730
|
-
placeholder: string;
|
|
731
|
-
options: any[];
|
|
732
|
-
}
|
|
1363
|
+
interface RadioProps {
|
|
1364
|
+
placeholder: string;
|
|
1365
|
+
options: any[];
|
|
1366
|
+
}
|
|
733
1367
|
declare function Radio({ placeholder, options, ...props }: FieldHookConfig<string> & RadioProps): react_jsx_runtime.JSX.Element;
|
|
734
1368
|
|
|
735
|
-
interface StarRatingInputProps {
|
|
736
|
-
starAmount?: number;
|
|
737
|
-
styles?: string;
|
|
738
|
-
}
|
|
1369
|
+
interface StarRatingInputProps {
|
|
1370
|
+
starAmount?: number;
|
|
1371
|
+
styles?: string;
|
|
1372
|
+
}
|
|
739
1373
|
declare function StarRatingInput({ starAmount, styles, ...props }: FieldHookConfig<string> & StarRatingInputProps): react_jsx_runtime.JSX.Element;
|
|
740
1374
|
|
|
741
|
-
type SelectProps = FieldHookConfig<string> & {
|
|
742
|
-
name: string;
|
|
743
|
-
placeholder: string;
|
|
744
|
-
options: any[];
|
|
745
|
-
styles?: string;
|
|
746
|
-
shape?: keyof typeof Shape;
|
|
747
|
-
};
|
|
1375
|
+
type SelectProps = FieldHookConfig<string> & {
|
|
1376
|
+
name: string;
|
|
1377
|
+
placeholder: string;
|
|
1378
|
+
options: any[];
|
|
1379
|
+
styles?: string;
|
|
1380
|
+
shape?: keyof typeof Shape;
|
|
1381
|
+
};
|
|
748
1382
|
declare function Select({ placeholder, options, styles, shape, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
749
1383
|
|
|
750
|
-
interface SwitchProps {
|
|
751
|
-
name: string;
|
|
752
|
-
label?: string;
|
|
753
|
-
description?: string;
|
|
754
|
-
showStatus?: boolean;
|
|
755
|
-
}
|
|
1384
|
+
interface SwitchProps {
|
|
1385
|
+
name: string;
|
|
1386
|
+
label?: string;
|
|
1387
|
+
description?: string;
|
|
1388
|
+
showStatus?: boolean;
|
|
1389
|
+
}
|
|
756
1390
|
declare function Switch({ label, description, showStatus, ...props }: FieldHookConfig<boolean> & SwitchProps): react_jsx_runtime.JSX.Element;
|
|
757
1391
|
|
|
758
|
-
interface TagsProps {
|
|
759
|
-
placeholder: string;
|
|
760
|
-
styles?: string;
|
|
761
|
-
limit?: number;
|
|
762
|
-
}
|
|
1392
|
+
interface TagsProps {
|
|
1393
|
+
placeholder: string;
|
|
1394
|
+
styles?: string;
|
|
1395
|
+
limit?: number;
|
|
1396
|
+
}
|
|
763
1397
|
declare function Tags({ placeholder, styles, limit, ...props }: TagsProps & FieldHookConfig<string[]>): react_jsx_runtime.JSX.Element;
|
|
764
1398
|
|
|
765
|
-
type TextAreaProps = FieldHookConfig<string> & {
|
|
766
|
-
name: string;
|
|
767
|
-
placeholder: string;
|
|
768
|
-
limit?: number;
|
|
769
|
-
styles?: string;
|
|
770
|
-
shape?: keyof typeof Shape;
|
|
771
|
-
};
|
|
1399
|
+
type TextAreaProps = FieldHookConfig<string> & {
|
|
1400
|
+
name: string;
|
|
1401
|
+
placeholder: string;
|
|
1402
|
+
limit?: number;
|
|
1403
|
+
styles?: string;
|
|
1404
|
+
shape?: keyof typeof Shape;
|
|
1405
|
+
};
|
|
772
1406
|
declare function TextArea({ placeholder, limit, styles, shape, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
773
1407
|
|
|
774
|
-
interface EUIComponentDefaults {
|
|
775
|
-
variant?: keyof typeof Variant;
|
|
776
|
-
size?: keyof typeof Size;
|
|
777
|
-
shape?: keyof typeof Shape;
|
|
778
|
-
styles?: string;
|
|
779
|
-
}
|
|
780
|
-
interface EUIRoute {
|
|
781
|
-
path: string;
|
|
782
|
-
name: string;
|
|
783
|
-
}
|
|
784
|
-
interface EUIConfigs {
|
|
785
|
-
global?: EUIComponentDefaults;
|
|
786
|
-
routes?: EUIRoute[];
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
interface EUIContextValue {
|
|
790
|
-
config: EUIConfigs;
|
|
791
|
-
setConfig:
|
|
792
|
-
}
|
|
793
|
-
declare const EUIProvider: ({ config, children, }: {
|
|
794
|
-
config: EUIConfigs;
|
|
795
|
-
children:
|
|
796
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
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;
|
|
797
1431
|
declare const useEUIConfig: () => EUIContextValue;
|
|
798
1432
|
|
|
799
1433
|
declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
|
|
800
1434
|
|
|
801
|
-
interface BackdropProps {
|
|
802
|
-
children?:
|
|
803
|
-
styles?: string;
|
|
804
|
-
}
|
|
1435
|
+
interface BackdropProps {
|
|
1436
|
+
children?: React__default.ReactNode;
|
|
1437
|
+
styles?: string;
|
|
1438
|
+
}
|
|
805
1439
|
declare const Backdrop: ({ children, styles }: BackdropProps) => react_jsx_runtime.JSX.Element;
|
|
806
1440
|
|
|
807
|
-
interface SkeletonProps extends BaseComponentProps {
|
|
808
|
-
children?:
|
|
809
|
-
}
|
|
1441
|
+
interface SkeletonProps extends BaseComponentProps {
|
|
1442
|
+
children?: React__default.ReactNode;
|
|
1443
|
+
}
|
|
810
1444
|
declare const Skeleton: ({ children, className, ...rest }: SkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
811
1445
|
|
|
812
|
-
declare function sendToast(data?: {
|
|
813
|
-
status: string;
|
|
814
|
-
message: string;
|
|
815
|
-
}): void;
|
|
1446
|
+
declare function sendToast(data?: {
|
|
1447
|
+
status: string;
|
|
1448
|
+
message: string;
|
|
1449
|
+
}): void;
|
|
816
1450
|
declare function Toast(): react_jsx_runtime.JSX.Element;
|
|
817
1451
|
|
|
818
|
-
interface TransitionDropdownProps$1 {
|
|
819
|
-
visibility: any;
|
|
820
|
-
children?: ReactNode;
|
|
821
|
-
}
|
|
1452
|
+
interface TransitionDropdownProps$1 {
|
|
1453
|
+
visibility: any;
|
|
1454
|
+
children?: ReactNode;
|
|
1455
|
+
}
|
|
822
1456
|
declare function TransitionDropdown({ visibility, children }: TransitionDropdownProps$1): react_jsx_runtime.JSX.Element;
|
|
823
1457
|
|
|
824
|
-
interface TransitionDropdownProps {
|
|
825
|
-
visibility: any;
|
|
826
|
-
children?: ReactNode;
|
|
827
|
-
}
|
|
1458
|
+
interface TransitionDropdownProps {
|
|
1459
|
+
visibility: any;
|
|
1460
|
+
children?: ReactNode;
|
|
1461
|
+
}
|
|
828
1462
|
declare function TransitionFadeIn({ visibility, children }: TransitionDropdownProps): react_jsx_runtime.JSX.Element;
|
|
829
1463
|
|
|
830
|
-
declare const Transition: {
|
|
831
|
-
TransitionDropdown: typeof TransitionDropdown;
|
|
832
|
-
TransitionFadeIn: typeof TransitionFadeIn;
|
|
1464
|
+
declare const Transition: {
|
|
1465
|
+
TransitionDropdown: typeof TransitionDropdown;
|
|
1466
|
+
TransitionFadeIn: typeof TransitionFadeIn;
|
|
833
1467
|
};
|
|
834
1468
|
|
|
835
|
-
interface ContentAreaProps {
|
|
836
|
-
children?: ReactNode;
|
|
837
|
-
styles?: string;
|
|
838
|
-
enablePadding?: boolean;
|
|
839
|
-
}
|
|
1469
|
+
interface ContentAreaProps {
|
|
1470
|
+
children?: ReactNode;
|
|
1471
|
+
styles?: string;
|
|
1472
|
+
enablePadding?: boolean;
|
|
1473
|
+
}
|
|
840
1474
|
declare function ContentArea({ children, styles, enablePadding, }: ContentAreaProps): react_jsx_runtime.JSX.Element;
|
|
841
1475
|
|
|
842
|
-
interface FlexColProps$1 {
|
|
843
|
-
children?:
|
|
844
|
-
gap?: number;
|
|
845
|
-
styles?: string;
|
|
846
|
-
}
|
|
1476
|
+
interface FlexColProps$1 {
|
|
1477
|
+
children?: React__default.ReactNode;
|
|
1478
|
+
gap?: number;
|
|
1479
|
+
styles?: string;
|
|
1480
|
+
}
|
|
847
1481
|
declare function FlexCol({ children, gap, styles }: FlexColProps$1): react_jsx_runtime.JSX.Element;
|
|
848
1482
|
|
|
849
|
-
interface FlexColProps {
|
|
850
|
-
children?:
|
|
851
|
-
gap?: number;
|
|
852
|
-
styles?: string;
|
|
853
|
-
}
|
|
1483
|
+
interface FlexColProps {
|
|
1484
|
+
children?: React__default.ReactNode;
|
|
1485
|
+
gap?: number;
|
|
1486
|
+
styles?: string;
|
|
1487
|
+
}
|
|
854
1488
|
declare function FlexRow({ children, gap, styles }: FlexColProps): react_jsx_runtime.JSX.Element;
|
|
855
1489
|
|
|
856
|
-
declare const Flex: {
|
|
857
|
-
FlexCol: typeof FlexCol;
|
|
858
|
-
FlexRow: typeof FlexRow;
|
|
1490
|
+
declare const Flex: {
|
|
1491
|
+
FlexCol: typeof FlexCol;
|
|
1492
|
+
FlexRow: typeof FlexRow;
|
|
859
1493
|
};
|
|
860
1494
|
|
|
861
|
-
interface GridProps {
|
|
862
|
-
children?:
|
|
863
|
-
styles?: string;
|
|
864
|
-
}
|
|
1495
|
+
interface GridProps {
|
|
1496
|
+
children?: React__default.ReactNode;
|
|
1497
|
+
styles?: string;
|
|
1498
|
+
}
|
|
865
1499
|
declare function Grid({ children, styles }: GridProps): react_jsx_runtime.JSX.Element;
|
|
866
1500
|
|
|
867
|
-
interface LayoutProps {
|
|
868
|
-
flexDirection?: "vertical" | "horizontal";
|
|
869
|
-
children?:
|
|
870
|
-
styles?: string;
|
|
871
|
-
}
|
|
1501
|
+
interface LayoutProps {
|
|
1502
|
+
flexDirection?: "vertical" | "horizontal";
|
|
1503
|
+
children?: React__default.ReactNode;
|
|
1504
|
+
styles?: string;
|
|
1505
|
+
}
|
|
872
1506
|
declare const Layout: ({ flexDirection, children, styles, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
873
1507
|
|
|
874
|
-
interface HeaderProps {
|
|
875
|
-
position?: "static" | "fixed" | "sticky";
|
|
876
|
-
children?:
|
|
877
|
-
styles?: string;
|
|
878
|
-
}
|
|
1508
|
+
interface HeaderProps {
|
|
1509
|
+
position?: "static" | "fixed" | "sticky";
|
|
1510
|
+
children?: React__default.ReactNode;
|
|
1511
|
+
styles?: string;
|
|
1512
|
+
}
|
|
879
1513
|
declare const Header: ({ position, children, styles, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
880
1514
|
|
|
881
|
-
interface ContentProps {
|
|
882
|
-
children?:
|
|
883
|
-
overlayedSidebar?: boolean;
|
|
884
|
-
sidebarVisible?: boolean;
|
|
885
|
-
styles?: string;
|
|
886
|
-
}
|
|
1515
|
+
interface ContentProps {
|
|
1516
|
+
children?: React__default.ReactNode;
|
|
1517
|
+
overlayedSidebar?: boolean;
|
|
1518
|
+
sidebarVisible?: boolean;
|
|
1519
|
+
styles?: string;
|
|
1520
|
+
}
|
|
887
1521
|
declare const Content: ({ sidebarVisible, overlayedSidebar, children, styles, }: ContentProps) => react_jsx_runtime.JSX.Element;
|
|
888
1522
|
|
|
889
|
-
interface FooterProps {
|
|
890
|
-
children?:
|
|
891
|
-
styles?: string;
|
|
892
|
-
}
|
|
1523
|
+
interface FooterProps {
|
|
1524
|
+
children?: React__default.ReactNode;
|
|
1525
|
+
styles?: string;
|
|
1526
|
+
}
|
|
893
1527
|
declare const Footer: ({ children, styles }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
894
1528
|
|
|
895
|
-
interface BlockProps extends BaseComponentProps {
|
|
896
|
-
title?: string;
|
|
897
|
-
description?: string;
|
|
898
|
-
required?: boolean;
|
|
899
|
-
layout?: ListDirection;
|
|
900
|
-
labelWidth?: string;
|
|
901
|
-
children:
|
|
902
|
-
}
|
|
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
|
+
}
|
|
903
1537
|
declare function Block({ title, description, required, layout, labelWidth, children, className, ...rest }: BlockProps): react_jsx_runtime.JSX.Element;
|
|
904
1538
|
|
|
905
|
-
interface BlockGroupProps extends BaseComponentProps {
|
|
906
|
-
title?: string;
|
|
907
|
-
description?: string;
|
|
908
|
-
children:
|
|
909
|
-
noDivider?: boolean;
|
|
910
|
-
}
|
|
1539
|
+
interface BlockGroupProps extends BaseComponentProps {
|
|
1540
|
+
title?: string;
|
|
1541
|
+
description?: string;
|
|
1542
|
+
children: React__default.ReactNode;
|
|
1543
|
+
noDivider?: boolean;
|
|
1544
|
+
}
|
|
911
1545
|
declare function BlockGroup({ title, description, children, noDivider, className, ...rest }: BlockGroupProps): react_jsx_runtime.JSX.Element;
|
|
912
1546
|
|
|
913
|
-
interface MarkdownEditorProps {
|
|
914
|
-
placeholder?: string;
|
|
915
|
-
styles?: string;
|
|
916
|
-
}
|
|
1547
|
+
interface MarkdownEditorProps {
|
|
1548
|
+
placeholder?: string;
|
|
1549
|
+
styles?: string;
|
|
1550
|
+
}
|
|
917
1551
|
declare function MarkdownEditor({ styles, ...props }: MarkdownEditorProps & FieldHookConfig<string>): react_jsx_runtime.JSX.Element;
|
|
918
1552
|
|
|
919
|
-
interface MarkdownTOCProps {
|
|
920
|
-
title?: string;
|
|
921
|
-
}
|
|
1553
|
+
interface MarkdownTOCProps {
|
|
1554
|
+
title?: string;
|
|
1555
|
+
}
|
|
922
1556
|
declare function MarkdownTOC({ title }: MarkdownTOCProps): react_jsx_runtime.JSX.Element | null;
|
|
923
1557
|
|
|
924
|
-
interface MarkdownViewerProps {
|
|
925
|
-
value?: string;
|
|
926
|
-
}
|
|
1558
|
+
interface MarkdownViewerProps {
|
|
1559
|
+
value?: string;
|
|
1560
|
+
}
|
|
927
1561
|
declare function MarkdownViewer({ value }: MarkdownViewerProps): react_jsx_runtime.JSX.Element;
|
|
928
1562
|
|
|
929
|
-
interface MarkdownProviderProps {
|
|
930
|
-
markdown: string;
|
|
931
|
-
children:
|
|
932
|
-
}
|
|
1563
|
+
interface MarkdownProviderProps {
|
|
1564
|
+
markdown: string;
|
|
1565
|
+
children: React__default.ReactNode;
|
|
1566
|
+
}
|
|
933
1567
|
declare function MarkdownProvider({ markdown, children }: MarkdownProviderProps): react_jsx_runtime.JSX.Element;
|
|
934
1568
|
|
|
935
|
-
interface I_ItemType {
|
|
936
|
-
title: string;
|
|
937
|
-
href: string;
|
|
938
|
-
}
|
|
939
|
-
interface RouteConfig {
|
|
940
|
-
path: string;
|
|
941
|
-
name: string;
|
|
942
|
-
}
|
|
943
|
-
interface BreadcrumbProps {
|
|
944
|
-
gap?: number;
|
|
945
|
-
seperator?: string;
|
|
946
|
-
data?: I_ItemType[];
|
|
947
|
-
routes?: RouteConfig[];
|
|
948
|
-
currentPath?: string;
|
|
949
|
-
navigate?: (path: string) => void;
|
|
950
|
-
styles?: string;
|
|
951
|
-
}
|
|
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
|
+
}
|
|
952
1586
|
declare const Breadcrumb: ({ gap, seperator, data, routes, currentPath, navigate, styles, }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
953
1587
|
|
|
954
|
-
interface BreadcrumbItemProps {
|
|
955
|
-
title: string;
|
|
956
|
-
href: string;
|
|
957
|
-
active: boolean;
|
|
958
|
-
onClick?: (e:
|
|
959
|
-
}
|
|
1588
|
+
interface BreadcrumbItemProps {
|
|
1589
|
+
title: string;
|
|
1590
|
+
href: string;
|
|
1591
|
+
active: boolean;
|
|
1592
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
1593
|
+
}
|
|
960
1594
|
declare function BreadcrumbItem({ title, href, active, onClick, }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
|
|
961
1595
|
|
|
962
|
-
interface DrawerProps {
|
|
963
|
-
children?:
|
|
964
|
-
visibility: boolean;
|
|
965
|
-
side?: "left" | "right" | "top" | "bottom";
|
|
966
|
-
handleClose: () => void;
|
|
967
|
-
styles?: string;
|
|
968
|
-
}
|
|
1596
|
+
interface DrawerProps {
|
|
1597
|
+
children?: React__default.ReactNode;
|
|
1598
|
+
visibility: boolean;
|
|
1599
|
+
side?: "left" | "right" | "top" | "bottom";
|
|
1600
|
+
handleClose: () => void;
|
|
1601
|
+
styles?: string;
|
|
1602
|
+
}
|
|
969
1603
|
declare const Drawer: ({ children, visibility, side, handleClose, styles, }: DrawerProps) => react_jsx_runtime.JSX.Element;
|
|
970
1604
|
|
|
971
|
-
interface DrawerTogglerProps {
|
|
972
|
-
icon?: ReactNode;
|
|
973
|
-
toggleDrawer?: () => void;
|
|
974
|
-
styles?: string;
|
|
975
|
-
}
|
|
1605
|
+
interface DrawerTogglerProps {
|
|
1606
|
+
icon?: ReactNode;
|
|
1607
|
+
toggleDrawer?: () => void;
|
|
1608
|
+
styles?: string;
|
|
1609
|
+
}
|
|
976
1610
|
declare function DrawerToggler({ icon, toggleDrawer, styles, }: DrawerTogglerProps): react_jsx_runtime.JSX.Element;
|
|
977
1611
|
|
|
978
|
-
interface I_FooterNavItem {
|
|
979
|
-
component: any;
|
|
980
|
-
icon?:
|
|
981
|
-
name: string;
|
|
982
|
-
badge?:
|
|
983
|
-
to?: string;
|
|
984
|
-
onClick?: () => void;
|
|
985
|
-
}
|
|
986
|
-
interface I_FooterNavGroup {
|
|
987
|
-
component: any;
|
|
988
|
-
icon?:
|
|
989
|
-
name: string;
|
|
990
|
-
badge?:
|
|
991
|
-
to?: string;
|
|
992
|
-
items: I_FooterNavItem[];
|
|
993
|
-
}
|
|
994
|
-
type FooterDataItemProps = I_FooterNavItem | I_FooterNavGroup;
|
|
995
|
-
interface FooterNavProps {
|
|
996
|
-
data: FooterDataItemProps[];
|
|
997
|
-
styles?: string;
|
|
998
|
-
}
|
|
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
|
+
}
|
|
999
1633
|
declare function FooterNav({ data, styles }: FooterNavProps): react_jsx_runtime.JSX.Element;
|
|
1000
1634
|
|
|
1001
|
-
interface FooterNavGroupProps {
|
|
1002
|
-
icon?:
|
|
1003
|
-
name: string;
|
|
1004
|
-
description: string;
|
|
1005
|
-
badge?:
|
|
1006
|
-
to?: string;
|
|
1007
|
-
children:
|
|
1008
|
-
styles?: string;
|
|
1009
|
-
}
|
|
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
|
+
}
|
|
1010
1644
|
declare const FooterNavGroup: ({ icon, name, description, badge, to, styles, children, }: FooterNavGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1011
1645
|
|
|
1012
|
-
interface FooterNavItemProps {
|
|
1013
|
-
icon?:
|
|
1014
|
-
name: string;
|
|
1015
|
-
description: string;
|
|
1016
|
-
badge?:
|
|
1017
|
-
to?: string;
|
|
1018
|
-
onClick?: () => void;
|
|
1019
|
-
styles?: string;
|
|
1020
|
-
}
|
|
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
|
+
}
|
|
1021
1655
|
declare const FooterNavItem: ({ icon, name, description, badge, to, onClick, styles, }: FooterNavItemProps) => react_jsx_runtime.JSX.Element;
|
|
1022
1656
|
|
|
1023
|
-
interface FooterNavItemTitleProps {
|
|
1024
|
-
icon?:
|
|
1025
|
-
name: string;
|
|
1026
|
-
description: string;
|
|
1027
|
-
badge?:
|
|
1028
|
-
styles?: string;
|
|
1029
|
-
}
|
|
1657
|
+
interface FooterNavItemTitleProps {
|
|
1658
|
+
icon?: React__default.ReactNode;
|
|
1659
|
+
name: string;
|
|
1660
|
+
description: string;
|
|
1661
|
+
badge?: React__default.ReactNode;
|
|
1662
|
+
styles?: string;
|
|
1663
|
+
}
|
|
1030
1664
|
declare const FooterNavItemTitle: ({ icon, name, description, badge, styles, }: FooterNavItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1031
1665
|
|
|
1032
|
-
interface FooterNavItemContextProps {
|
|
1033
|
-
icon?:
|
|
1034
|
-
name: string;
|
|
1035
|
-
description: string;
|
|
1036
|
-
badge?:
|
|
1037
|
-
}
|
|
1666
|
+
interface FooterNavItemContextProps {
|
|
1667
|
+
icon?: React__default.ReactNode;
|
|
1668
|
+
name: string;
|
|
1669
|
+
description: string;
|
|
1670
|
+
badge?: React__default.ReactNode;
|
|
1671
|
+
}
|
|
1038
1672
|
declare const FooterNavItemContext: ({ icon, name, description, badge, }: FooterNavItemContextProps) => react_jsx_runtime.JSX.Element;
|
|
1039
1673
|
|
|
1040
|
-
interface I_HeaderNavItem {
|
|
1041
|
-
component: any;
|
|
1042
|
-
icon?:
|
|
1043
|
-
name: string;
|
|
1044
|
-
badge?:
|
|
1045
|
-
to?: string;
|
|
1046
|
-
onClick?: () => void;
|
|
1047
|
-
}
|
|
1048
|
-
interface I_HeaderNavGroup {
|
|
1049
|
-
component: any;
|
|
1050
|
-
icon?:
|
|
1051
|
-
name: string;
|
|
1052
|
-
badge?:
|
|
1053
|
-
to?: string;
|
|
1054
|
-
items: I_HeaderNavItem[];
|
|
1055
|
-
}
|
|
1056
|
-
type HeaderDataItemProps = I_HeaderNavItem | I_HeaderNavGroup;
|
|
1057
|
-
interface HeaderNavProps {
|
|
1058
|
-
data: HeaderDataItemProps[];
|
|
1059
|
-
styles?: string;
|
|
1060
|
-
}
|
|
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
|
+
}
|
|
1061
1695
|
declare function HeaderNav({ data, styles }: HeaderNavProps): react_jsx_runtime.JSX.Element;
|
|
1062
1696
|
|
|
1063
|
-
interface HeaderNavGroupProps {
|
|
1064
|
-
icon?:
|
|
1065
|
-
name: string;
|
|
1066
|
-
description: string;
|
|
1067
|
-
badge?:
|
|
1068
|
-
to?: string;
|
|
1069
|
-
children:
|
|
1070
|
-
styles?: string;
|
|
1071
|
-
}
|
|
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
|
+
}
|
|
1072
1706
|
declare const HeaderNavGroup: ({ icon, name, description, badge, to, styles, children, }: HeaderNavGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1073
1707
|
|
|
1074
|
-
interface HeaderNavItemProps {
|
|
1075
|
-
icon?:
|
|
1076
|
-
name: string;
|
|
1077
|
-
description: string;
|
|
1078
|
-
badge?:
|
|
1079
|
-
to?: string;
|
|
1080
|
-
onClick?: () => void;
|
|
1081
|
-
styles?: string;
|
|
1082
|
-
}
|
|
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
|
+
}
|
|
1083
1717
|
declare const HeaderNavItem: ({ icon, name, description, badge, to, onClick, styles, }: HeaderNavItemProps) => react_jsx_runtime.JSX.Element;
|
|
1084
1718
|
|
|
1085
|
-
interface HeaderNavItemTitleProps {
|
|
1086
|
-
icon?:
|
|
1087
|
-
name: string;
|
|
1088
|
-
description: string;
|
|
1089
|
-
badge?:
|
|
1090
|
-
styles?: string;
|
|
1091
|
-
}
|
|
1719
|
+
interface HeaderNavItemTitleProps {
|
|
1720
|
+
icon?: React__default.ReactNode;
|
|
1721
|
+
name: string;
|
|
1722
|
+
description: string;
|
|
1723
|
+
badge?: React__default.ReactNode;
|
|
1724
|
+
styles?: string;
|
|
1725
|
+
}
|
|
1092
1726
|
declare const HeaderNavItemTitle: ({ icon, name, description, badge, styles, }: HeaderNavItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1093
1727
|
|
|
1094
|
-
interface HeaderNavItemContextProps {
|
|
1095
|
-
icon?:
|
|
1096
|
-
name: string;
|
|
1097
|
-
description: string;
|
|
1098
|
-
badge?:
|
|
1099
|
-
}
|
|
1728
|
+
interface HeaderNavItemContextProps {
|
|
1729
|
+
icon?: React__default.ReactNode;
|
|
1730
|
+
name: string;
|
|
1731
|
+
description: string;
|
|
1732
|
+
badge?: React__default.ReactNode;
|
|
1733
|
+
}
|
|
1100
1734
|
declare const HeaderNavItemContext: ({ icon, name, description, badge, }: HeaderNavItemContextProps) => react_jsx_runtime.JSX.Element;
|
|
1101
1735
|
|
|
1102
|
-
interface LinkProps {
|
|
1103
|
-
children?: string;
|
|
1104
|
-
href?: string;
|
|
1105
|
-
target?: keyof typeof Target;
|
|
1106
|
-
variant?: keyof typeof TextVariant;
|
|
1107
|
-
styles?: string;
|
|
1108
|
-
decoration?: keyof typeof Decoration;
|
|
1109
|
-
bold?: boolean;
|
|
1110
|
-
italic?: boolean;
|
|
1111
|
-
onClick?: () => void;
|
|
1112
|
-
}
|
|
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
|
+
}
|
|
1113
1747
|
declare const Link: ({ children, href, target, variant, decoration, bold, italic, styles, onClick, }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
1114
1748
|
|
|
1115
|
-
type MenuElementType = "item" | "group" | "title";
|
|
1116
|
-
interface BaseMenuNode {
|
|
1117
|
-
key?: string;
|
|
1118
|
-
name: string;
|
|
1119
|
-
icon?:
|
|
1120
|
-
badge?:
|
|
1121
|
-
className?: string;
|
|
1122
|
-
component?:
|
|
1123
|
-
}
|
|
1124
|
-
interface MenuItemNode extends BaseMenuNode {
|
|
1125
|
-
type: "item";
|
|
1126
|
-
to?: string;
|
|
1127
|
-
navigate?: (to: string) => void;
|
|
1128
|
-
onClick?: (e:
|
|
1129
|
-
}
|
|
1130
|
-
interface MenuGroupNode extends BaseMenuNode {
|
|
1131
|
-
type: "group";
|
|
1132
|
-
items: MenuNode[];
|
|
1133
|
-
}
|
|
1134
|
-
interface MenuTitleNode extends BaseMenuNode {
|
|
1135
|
-
type: "title";
|
|
1136
|
-
}
|
|
1137
|
-
type MenuNode = MenuItemNode | MenuGroupNode | MenuTitleNode;
|
|
1138
|
-
interface DefaultMenuElements {
|
|
1139
|
-
item?:
|
|
1140
|
-
group?:
|
|
1141
|
-
title?:
|
|
1142
|
-
}
|
|
1143
|
-
interface MenuProps {
|
|
1144
|
-
items: MenuNode[];
|
|
1145
|
-
defaultMenuElements?: DefaultMenuElements;
|
|
1146
|
-
className?: string;
|
|
1147
|
-
navigate?: (to: string) => void;
|
|
1148
|
-
currentPath?: string;
|
|
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;
|
|
1149
1783
|
}
|
|
1150
1784
|
|
|
1151
1785
|
declare const Menu: ({ items, className, navigate, defaultMenuElements, currentPath, }: MenuProps) => react_jsx_runtime.JSX.Element;
|
|
1152
1786
|
|
|
1153
|
-
interface MenuGroupProps extends BaseComponentProps {
|
|
1154
|
-
icon?:
|
|
1155
|
-
name: string;
|
|
1156
|
-
badge?:
|
|
1157
|
-
to?: string;
|
|
1158
|
-
children:
|
|
1159
|
-
defaultOpen?: boolean;
|
|
1160
|
-
}
|
|
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
|
+
}
|
|
1161
1795
|
declare const MenuGroup: ({ icon, name, badge, children, defaultOpen, className, style, ...rest }: MenuGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1162
1796
|
|
|
1163
|
-
interface MenuItemProps extends BaseComponentProps {
|
|
1164
|
-
icon?:
|
|
1165
|
-
name: string;
|
|
1166
|
-
badge?:
|
|
1167
|
-
to?: string;
|
|
1168
|
-
navigate?: (to: string) => void;
|
|
1169
|
-
}
|
|
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
|
+
}
|
|
1170
1804
|
declare const MenuItem: ({ icon, name, badge, to, navigate, className, onClick, ...rest }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
1171
1805
|
|
|
1172
|
-
interface MenuItemTitleProps extends BaseComponentProps {
|
|
1173
|
-
icon?:
|
|
1174
|
-
name: string;
|
|
1175
|
-
badge?:
|
|
1176
|
-
}
|
|
1806
|
+
interface MenuItemTitleProps extends BaseComponentProps {
|
|
1807
|
+
icon?: React__default.ReactNode;
|
|
1808
|
+
name: string;
|
|
1809
|
+
badge?: React__default.ReactNode;
|
|
1810
|
+
}
|
|
1177
1811
|
declare const MenuItemTitle: ({ icon, name, badge, className, style, ...rest }: MenuItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1178
1812
|
|
|
1179
|
-
interface RouteTabProps extends BaseComponentProps {
|
|
1180
|
-
title: string;
|
|
1181
|
-
selected?: boolean;
|
|
1182
|
-
onClick?: () => void;
|
|
1183
|
-
}
|
|
1813
|
+
interface RouteTabProps extends BaseComponentProps {
|
|
1814
|
+
title: string;
|
|
1815
|
+
selected?: boolean;
|
|
1816
|
+
onClick?: () => void;
|
|
1817
|
+
}
|
|
1184
1818
|
declare function RouteTab({ title, onClick, selected, className, ...rest }: RouteTabProps): react_jsx_runtime.JSX.Element;
|
|
1185
1819
|
|
|
1186
|
-
interface RouteTabsNavItem {
|
|
1187
|
-
name: string;
|
|
1188
|
-
to: string;
|
|
1189
|
-
selected?: boolean;
|
|
1190
|
-
}
|
|
1191
|
-
interface RouteTabsProps extends BaseComponentProps {
|
|
1192
|
-
navData: RouteTabsNavItem[];
|
|
1193
|
-
children: React.ReactNode | ((activeTab: string) => React.ReactNode);
|
|
1194
|
-
onTabClick?: (to: string) => void;
|
|
1195
|
-
mode?: RouteTabMode;
|
|
1196
|
-
defaultActive?: string;
|
|
1197
|
-
animated?: boolean;
|
|
1198
|
-
}
|
|
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
|
+
}
|
|
1199
1833
|
declare function RouteTabs({ navData, children, onTabClick, mode, defaultActive, animated, className, ...rest }: RouteTabsProps): react_jsx_runtime.JSX.Element;
|
|
1200
1834
|
|
|
1201
|
-
interface ModalProps {
|
|
1202
|
-
title: string;
|
|
1203
|
-
show: boolean;
|
|
1204
|
-
handleOnClose?: () => void;
|
|
1205
|
-
children?:
|
|
1206
|
-
enableCloseOnClickOutside?: boolean;
|
|
1207
|
-
isLoading?: boolean;
|
|
1208
|
-
isSuccess?: boolean;
|
|
1209
|
-
isError?: boolean;
|
|
1210
|
-
error?: unknown;
|
|
1211
|
-
styles?: string;
|
|
1212
|
-
shape?: keyof typeof Shape;
|
|
1213
|
-
}
|
|
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
|
+
}
|
|
1214
1848
|
declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, shape, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
1215
1849
|
|
|
1216
|
-
interface UnderConstructionBannerProps {
|
|
1217
|
-
text?: string;
|
|
1218
|
-
}
|
|
1850
|
+
interface UnderConstructionBannerProps {
|
|
1851
|
+
text?: string;
|
|
1852
|
+
}
|
|
1219
1853
|
declare function UnderConstructionBanner({ text, }: UnderConstructionBannerProps): react_jsx_runtime.JSX.Element;
|
|
1220
1854
|
|
|
1221
|
-
interface AccordionProps {
|
|
1222
|
-
summary?: ReactNode | string;
|
|
1223
|
-
children?: ReactNode;
|
|
1224
|
-
lhsActions?: ReactNode;
|
|
1225
|
-
rhsActions?: ReactNode;
|
|
1226
|
-
defaultCollapse?: boolean;
|
|
1227
|
-
toggleOnSummaryClick?: boolean;
|
|
1228
|
-
enableChildrenPadding?: boolean;
|
|
1229
|
-
}
|
|
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
|
+
}
|
|
1230
1864
|
declare function Accordion({ summary, children, lhsActions, rhsActions, defaultCollapse, toggleOnSummaryClick, enableChildrenPadding, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
1231
1865
|
|
|
1232
|
-
declare const hoverAnimations: {
|
|
1233
|
-
none: string;
|
|
1234
|
-
lift: string;
|
|
1235
|
-
scale: string;
|
|
1236
|
-
glow: string;
|
|
1237
|
-
borderGlow: string;
|
|
1238
|
-
softLift: string;
|
|
1866
|
+
declare const hoverAnimations: {
|
|
1867
|
+
none: string;
|
|
1868
|
+
lift: string;
|
|
1869
|
+
scale: string;
|
|
1870
|
+
glow: string;
|
|
1871
|
+
borderGlow: string;
|
|
1872
|
+
softLift: string;
|
|
1239
1873
|
};
|
|
1240
1874
|
|
|
1241
|
-
interface CardProps {
|
|
1242
|
-
children?: ReactNode;
|
|
1243
|
-
styles?: string;
|
|
1244
|
-
bgVariant?: keyof typeof Variant;
|
|
1245
|
-
borderVariant?: keyof typeof Variant;
|
|
1246
|
-
interactive?: boolean;
|
|
1247
|
-
ghost?: boolean;
|
|
1248
|
-
shape?: keyof typeof Shape;
|
|
1249
|
-
hoverAnimation?: keyof typeof hoverAnimations;
|
|
1250
|
-
}
|
|
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
|
+
}
|
|
1251
1885
|
declare function Card({ children, styles, bgVariant, borderVariant, interactive, ghost, shape, hoverAnimation, }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1252
1886
|
|
|
1253
|
-
interface CardHeaderProps {
|
|
1254
|
-
icon?:
|
|
1255
|
-
title?: string;
|
|
1256
|
-
description?: string;
|
|
1257
|
-
className?: string;
|
|
1258
|
-
}
|
|
1887
|
+
interface CardHeaderProps {
|
|
1888
|
+
icon?: React__default.ReactNode;
|
|
1889
|
+
title?: string;
|
|
1890
|
+
description?: string;
|
|
1891
|
+
className?: string;
|
|
1892
|
+
}
|
|
1259
1893
|
declare function CardHeader({ icon, title, description, className }: CardHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1260
1894
|
|
|
1261
|
-
interface CardContentProps {
|
|
1262
|
-
children?:
|
|
1263
|
-
className?: string;
|
|
1264
|
-
}
|
|
1895
|
+
interface CardContentProps {
|
|
1896
|
+
children?: React__default.ReactNode;
|
|
1897
|
+
className?: string;
|
|
1898
|
+
}
|
|
1265
1899
|
declare function CardContent({ children, className }: CardContentProps): react_jsx_runtime.JSX.Element;
|
|
1266
1900
|
|
|
1267
|
-
interface CardFooterProps {
|
|
1268
|
-
children?:
|
|
1269
|
-
className?: string;
|
|
1270
|
-
}
|
|
1901
|
+
interface CardFooterProps {
|
|
1902
|
+
children?: React__default.ReactNode;
|
|
1903
|
+
className?: string;
|
|
1904
|
+
}
|
|
1271
1905
|
declare function CardFooter({ children, className }: CardFooterProps): react_jsx_runtime.JSX.Element;
|
|
1272
1906
|
|
|
1273
|
-
type AnimationVariant = "none" | "gradient" | "blobs" | "mesh" | "custom";
|
|
1274
|
-
interface BaseAnimationConfig {
|
|
1275
|
-
duration: number;
|
|
1276
|
-
ease?: string;
|
|
1277
|
-
opacity?: number;
|
|
1278
|
-
colors?: string[];
|
|
1279
|
-
}
|
|
1280
|
-
interface BlobAnimationConfig extends BaseAnimationConfig {
|
|
1281
|
-
size?: number;
|
|
1282
|
-
blur?: number;
|
|
1283
|
-
count?: number;
|
|
1284
|
-
}
|
|
1285
|
-
interface GradientAnimationConfig extends BaseAnimationConfig {
|
|
1286
|
-
angle?: number;
|
|
1287
|
-
backgroundSize?: string;
|
|
1288
|
-
}
|
|
1289
|
-
interface MeshAnimationConfig extends BaseAnimationConfig {
|
|
1290
|
-
density?: number;
|
|
1291
|
-
backgroundSize?: string;
|
|
1292
|
-
}
|
|
1293
|
-
interface AnimationComponentProps<T = BaseAnimationConfig> {
|
|
1294
|
-
config?: T;
|
|
1295
|
-
animated?: boolean;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
type OverlayVariant = "none" | "noise" | "grid" | "dots" | "custom";
|
|
1299
|
-
interface BaseOverlayConfig {
|
|
1300
|
-
opacity?: number;
|
|
1301
|
-
size?: number;
|
|
1302
|
-
color?: string;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
interface MotionSurfaceProps {
|
|
1306
|
-
children?: ReactNode;
|
|
1307
|
-
animationVariant?: AnimationVariant;
|
|
1308
|
-
animationConfig?: BaseAnimationConfig;
|
|
1309
|
-
animated?: boolean;
|
|
1310
|
-
overlay?: OverlayVariant;
|
|
1311
|
-
overlayConfig?: BaseOverlayConfig;
|
|
1312
|
-
className?: string;
|
|
1313
|
-
customAnimation?:
|
|
1314
|
-
customOverlay?:
|
|
1315
|
-
}
|
|
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
|
+
}
|
|
1316
1950
|
declare function MotionSurface({ children, animationVariant, animationConfig, animated, overlay, overlayConfig, className, customAnimation: CustomAnimation, customOverlay: CustomOverlay, }: MotionSurfaceProps): react_jsx_runtime.JSX.Element;
|
|
1317
1951
|
|
|
1318
|
-
interface ThemeContextProps {
|
|
1319
|
-
theme: "light" | "dark";
|
|
1320
|
-
setTheme: (theme: "light" | "dark") => void;
|
|
1321
|
-
toggleTheme: () => void;
|
|
1322
|
-
}
|
|
1323
|
-
declare const ThemeContext:
|
|
1324
|
-
interface ThemeProviderProps {
|
|
1325
|
-
defaultTheme?: "light" | "dark";
|
|
1326
|
-
children: ReactNode;
|
|
1327
|
-
}
|
|
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
|
+
}
|
|
1328
1962
|
declare const ThemeProvider: ({ defaultTheme, children, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1329
1963
|
|
|
1330
1964
|
declare const ThemeSwitch: () => react_jsx_runtime.JSX.Element | null;
|
|
1331
1965
|
|
|
1332
1966
|
declare const ShapeSwitch: () => react_jsx_runtime.JSX.Element;
|
|
1333
1967
|
|
|
1334
|
-
interface AsyncComponentWrapperProps {
|
|
1335
|
-
children:
|
|
1336
|
-
isLoading?: boolean;
|
|
1337
|
-
isSuccess?: boolean;
|
|
1338
|
-
isError?: boolean;
|
|
1339
|
-
error?: unknown;
|
|
1340
|
-
/**
|
|
1341
|
-
* Optional custom formatter if you want full control
|
|
1342
|
-
*/
|
|
1343
|
-
errorFormatter?: (error: unknown) => string;
|
|
1344
|
-
}
|
|
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
|
+
}
|
|
1345
1979
|
declare function AsyncComponentWrapper({ children, isLoading, isSuccess, isError, error, errorFormatter, }: AsyncComponentWrapperProps): react_jsx_runtime.JSX.Element;
|
|
1346
1980
|
|
|
1347
|
-
interface GlowWrapperProps {
|
|
1348
|
-
children: ReactNode;
|
|
1349
|
-
glowSize?: number;
|
|
1350
|
-
glowColor?: string;
|
|
1351
|
-
className?: string;
|
|
1352
|
-
/** optional: when true, glow hides while mouse is outside */
|
|
1353
|
-
hideOnLeave?: boolean;
|
|
1354
|
-
}
|
|
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
|
+
}
|
|
1355
1989
|
declare const GlowWrapper: FC<GlowWrapperProps>;
|
|
1356
1990
|
|
|
1357
|
-
interface InfiniteScrollTriggerProps extends BaseComponentProps {
|
|
1358
|
-
children?: ReactNode;
|
|
1359
|
-
hasMore?: boolean;
|
|
1360
|
-
isLoading?: boolean;
|
|
1361
|
-
rootMargin?: string;
|
|
1362
|
-
threshold?: number;
|
|
1363
|
-
onLoadMore?: () => void;
|
|
1364
|
-
}
|
|
1991
|
+
interface InfiniteScrollTriggerProps extends BaseComponentProps {
|
|
1992
|
+
children?: ReactNode;
|
|
1993
|
+
hasMore?: boolean;
|
|
1994
|
+
isLoading?: boolean;
|
|
1995
|
+
rootMargin?: string;
|
|
1996
|
+
threshold?: number;
|
|
1997
|
+
onLoadMore?: () => void;
|
|
1998
|
+
}
|
|
1365
1999
|
declare function InfiniteScrollTrigger({ children, className, hasMore, isLoading, rootMargin, threshold, onLoadMore, }: InfiniteScrollTriggerProps): react_jsx_runtime.JSX.Element;
|
|
1366
2000
|
|
|
1367
|
-
interface ShowMoreProps {
|
|
1368
|
-
text: string;
|
|
1369
|
-
limit: number;
|
|
1370
|
-
}
|
|
2001
|
+
interface ShowMoreProps {
|
|
2002
|
+
text: string;
|
|
2003
|
+
limit: number;
|
|
2004
|
+
}
|
|
1371
2005
|
declare function ShowMore({ text, limit }: ShowMoreProps): react_jsx_runtime.JSX.Element;
|
|
1372
2006
|
|
|
1373
|
-
interface CommentAuthor {
|
|
1374
|
-
id: string;
|
|
1375
|
-
username: string;
|
|
1376
|
-
avatar?: string;
|
|
1377
|
-
firstName?: string;
|
|
1378
|
-
lastName?: string;
|
|
1379
|
-
}
|
|
1380
|
-
interface CommentPermissions {
|
|
1381
|
-
canEdit?: boolean;
|
|
1382
|
-
canDelete?: boolean;
|
|
1383
|
-
canReply?: boolean;
|
|
1384
|
-
canReport?: boolean;
|
|
1385
|
-
}
|
|
1386
|
-
interface CommentEntity {
|
|
1387
|
-
id: string;
|
|
1388
|
-
postId: string;
|
|
1389
|
-
parentCommentId: string | null;
|
|
1390
|
-
content: string;
|
|
1391
|
-
edited: boolean;
|
|
1392
|
-
likes: number;
|
|
1393
|
-
dislikes: number;
|
|
1394
|
-
liked: boolean;
|
|
1395
|
-
disliked: boolean;
|
|
1396
|
-
replyCount: number;
|
|
1397
|
-
createdAt: string;
|
|
1398
|
-
updatedAt: string;
|
|
1399
|
-
author: CommentAuthor | null;
|
|
1400
|
-
permissions?: CommentPermissions;
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
interface CreateCommentInput {
|
|
1404
|
-
content: string;
|
|
1405
|
-
parentCommentId?: string | null;
|
|
1406
|
-
}
|
|
1407
|
-
interface UpdateCommentInput {
|
|
1408
|
-
id: string;
|
|
1409
|
-
content: string;
|
|
1410
|
-
}
|
|
1411
|
-
interface ToggleReactionResult {
|
|
1412
|
-
likes: number;
|
|
1413
|
-
dislikes: number;
|
|
1414
|
-
liked: boolean;
|
|
1415
|
-
disliked: boolean;
|
|
1416
|
-
}
|
|
1417
|
-
interface CommentQueryOptions {
|
|
1418
|
-
parentCommentId?: string | null;
|
|
1419
|
-
limit?: number;
|
|
1420
|
-
cursor?: string;
|
|
1421
|
-
sort?: "newest" | "oldest" | "top";
|
|
1422
|
-
}
|
|
1423
|
-
interface CommentPageResult {
|
|
1424
|
-
items: CommentEntity[];
|
|
1425
|
-
nextCursor?: string | null;
|
|
1426
|
-
hasMore: boolean;
|
|
1427
|
-
}
|
|
1428
|
-
interface CommentDataSource {
|
|
1429
|
-
/**
|
|
1430
|
-
* Load root comments
|
|
1431
|
-
*/
|
|
1432
|
-
getComments(options?: CommentQueryOptions): Promise<CommentPageResult>;
|
|
1433
|
-
/**
|
|
1434
|
-
* Load replies for a specific comment
|
|
1435
|
-
*/
|
|
1436
|
-
getReplies(commentId: string, options?: Omit<CommentQueryOptions, "parentCommentId">): Promise<CommentPageResult>;
|
|
1437
|
-
/**
|
|
1438
|
-
* Create root comment or reply
|
|
1439
|
-
*/
|
|
1440
|
-
createComment(input: CreateCommentInput): Promise<CommentEntity>;
|
|
1441
|
-
/**
|
|
1442
|
-
* Update comment
|
|
1443
|
-
*/
|
|
1444
|
-
updateComment(input: UpdateCommentInput): Promise<CommentEntity>;
|
|
1445
|
-
/**
|
|
1446
|
-
* Delete comment
|
|
1447
|
-
*/
|
|
1448
|
-
deleteComment(commentId: string): Promise<void>;
|
|
1449
|
-
/**
|
|
1450
|
-
* Toggle like
|
|
1451
|
-
*/
|
|
1452
|
-
toggleLike(commentId: string): Promise<ToggleReactionResult>;
|
|
1453
|
-
/**
|
|
1454
|
-
* Toggle dislike
|
|
1455
|
-
*/
|
|
1456
|
-
toggleDislike(commentId: string): Promise<ToggleReactionResult>;
|
|
1457
|
-
/**
|
|
1458
|
-
* Report comment
|
|
1459
|
-
*/
|
|
1460
|
-
reportComment?(commentId: string, reason: string, description?: string): Promise<void>;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
interface CommentHeaderProps {
|
|
1464
|
-
comment: CommentEntity;
|
|
1465
|
-
config: Required<CommentThreadConfig>;
|
|
1466
|
-
}
|
|
1467
|
-
interface CommentContentProps {
|
|
1468
|
-
comment: CommentEntity;
|
|
1469
|
-
}
|
|
1470
|
-
interface CommentActionsProps {
|
|
1471
|
-
comment: CommentEntity;
|
|
1472
|
-
onLike?: () => void;
|
|
1473
|
-
onDislike?: () => void;
|
|
1474
|
-
onReply?: () => void;
|
|
1475
|
-
}
|
|
1476
|
-
interface CommentMenuProps {
|
|
1477
|
-
comment: CommentEntity;
|
|
1478
|
-
open: boolean;
|
|
1479
|
-
setOpen: (open: boolean) => void;
|
|
1480
|
-
canEdit?: boolean;
|
|
1481
|
-
canDelete?: boolean;
|
|
1482
|
-
canReport?: boolean;
|
|
1483
|
-
onEdit?: () => void;
|
|
1484
|
-
onDelete?: () => void;
|
|
1485
|
-
onReport?: () => void;
|
|
1486
|
-
}
|
|
1487
|
-
interface CommentComposerProps {
|
|
1488
|
-
avatar?: string;
|
|
1489
|
-
placeholder?: string;
|
|
1490
|
-
submitLabel?: string;
|
|
1491
|
-
disabled?: boolean;
|
|
1492
|
-
loading?: boolean;
|
|
1493
|
-
onSubmit: (content: string) => Promise<void> | void;
|
|
1494
|
-
}
|
|
1495
|
-
interface ReplyComposerProps {
|
|
1496
|
-
avatar?: string;
|
|
1497
|
-
username?: string;
|
|
1498
|
-
placeholder?: string;
|
|
1499
|
-
submitLabel?: string;
|
|
1500
|
-
disabled?: boolean;
|
|
1501
|
-
loading?: boolean;
|
|
1502
|
-
onSubmit: (content: string) => Promise<void> | void;
|
|
1503
|
-
}
|
|
1504
|
-
interface CommentRepliesToggleProps {
|
|
1505
|
-
collapsed: boolean;
|
|
1506
|
-
repliesCount: number;
|
|
1507
|
-
loading?: boolean;
|
|
1508
|
-
onToggle: () => void;
|
|
1509
|
-
}
|
|
1510
|
-
interface CommentItemProps {
|
|
1511
|
-
comment: CommentEntity;
|
|
1512
|
-
replies?: CommentEntity[];
|
|
1513
|
-
allReplies?: Record<string, CommentEntity[]>;
|
|
1514
|
-
depth?: number;
|
|
1515
|
-
config: Required<CommentThreadConfig>;
|
|
1516
|
-
components?: CommentComponents;
|
|
1517
|
-
onLike?: (comment: CommentEntity) => void;
|
|
1518
|
-
onDislike?: (comment: CommentEntity) => void;
|
|
1519
|
-
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
1520
|
-
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
1521
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1522
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
1523
|
-
onReport?: (comment: CommentEntity) => void;
|
|
1524
|
-
}
|
|
1525
|
-
interface CommentListProps {
|
|
1526
|
-
comments: CommentEntity[];
|
|
1527
|
-
replies?: Record<string, CommentEntity[]>;
|
|
1528
|
-
depth?: number;
|
|
1529
|
-
config: Required<CommentThreadConfig>;
|
|
1530
|
-
components?: CommentComponents;
|
|
1531
|
-
onLike?: (comment: CommentEntity) => void;
|
|
1532
|
-
onDislike?: (comment: CommentEntity) => void;
|
|
1533
|
-
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
1534
|
-
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
1535
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1536
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
1537
|
-
onReport?: (comment: CommentEntity) => void;
|
|
1538
|
-
}
|
|
1539
|
-
interface CommentThreadProps {
|
|
1540
|
-
postId: string;
|
|
1541
|
-
currentUser: CommentAuthor;
|
|
1542
|
-
dataSource: CommentDataSource;
|
|
1543
|
-
loading?: boolean;
|
|
1544
|
-
components?: CommentComponents;
|
|
1545
|
-
config?: CommentThreadConfig;
|
|
1546
|
-
updatedComment?: CommentEntity | null;
|
|
1547
|
-
deletedComment?: CommentEntity | null;
|
|
1548
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1549
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
1550
|
-
onReport?: (comment: CommentEntity) => void;
|
|
1551
|
-
}
|
|
1552
|
-
interface CommentThreadConfig {
|
|
1553
|
-
maxDepth?: number;
|
|
1554
|
-
indentation?: number;
|
|
1555
|
-
dateFormat?: "relative" | "absolute";
|
|
1556
|
-
commentsPerPage?: number;
|
|
1557
|
-
repliesPerPage?: number;
|
|
1558
|
-
}
|
|
1559
|
-
interface CommentComponents {
|
|
1560
|
-
/**
|
|
1561
|
-
* Root comment composer
|
|
1562
|
-
*/
|
|
1563
|
-
Composer?: ComponentType<CommentComposerProps>;
|
|
1564
|
-
/**
|
|
1565
|
-
* Comment header section
|
|
1566
|
-
*/
|
|
1567
|
-
Header?: ComponentType<CommentHeaderProps>;
|
|
1568
|
-
/**
|
|
1569
|
-
* Comment content renderer
|
|
1570
|
-
*/
|
|
1571
|
-
Content?: ComponentType<CommentContentProps>;
|
|
1572
|
-
/**
|
|
1573
|
-
* Like / Dislike / Reply actions
|
|
1574
|
-
*/
|
|
1575
|
-
Actions?: ComponentType<CommentActionsProps>;
|
|
1576
|
-
/**
|
|
1577
|
-
* Comment menu (Edit/Delete/Report)
|
|
1578
|
-
*/
|
|
1579
|
-
Menu?: ComponentType<CommentMenuProps>;
|
|
1580
|
-
/**
|
|
1581
|
-
* Reply composer shown below a comment
|
|
1582
|
-
*/
|
|
1583
|
-
ReplyComposer?: ComponentType<ReplyComposerProps>;
|
|
1584
|
-
/**
|
|
1585
|
-
* Replies expand/collapse component
|
|
1586
|
-
*/
|
|
1587
|
-
RepliesToggle?: ComponentType<CommentRepliesToggleProps>;
|
|
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>;
|
|
1588
2222
|
}
|
|
1589
2223
|
|
|
1590
2224
|
declare function CommentThread({ currentUser, dataSource, loading, components, config, updatedComment, deletedComment, onEdit, onDelete, onReport, }: CommentThreadProps): react_jsx_runtime.JSX.Element;
|
|
1591
2225
|
|
|
1592
|
-
declare function getOptimisticLikeState(comment: CommentEntity): ToggleReactionResult;
|
|
1593
|
-
declare function getOptimisticDislikeState(comment: CommentEntity): ToggleReactionResult;
|
|
2226
|
+
declare function getOptimisticLikeState(comment: CommentEntity): ToggleReactionResult;
|
|
2227
|
+
declare function getOptimisticDislikeState(comment: CommentEntity): ToggleReactionResult;
|
|
1594
2228
|
declare function applyReactionState(comment: CommentEntity, reaction: ToggleReactionResult): CommentEntity;
|
|
1595
2229
|
|
|
1596
2230
|
declare function formatCommentDate(date: string, format?: "relative" | "absolute"): string;
|
|
1597
2231
|
|
|
1598
|
-
declare function removeComment(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
1599
|
-
declare function incrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
2232
|
+
declare function removeComment(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
2233
|
+
declare function incrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
1600
2234
|
declare function decrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
1601
2235
|
|
|
1602
|
-
type CommentReplyCache = Record<string, CommentEntity[]>;
|
|
1603
|
-
declare function addReplyToCache(cache: CommentReplyCache, parentCommentId: string, reply: CommentEntity): CommentReplyCache;
|
|
1604
|
-
declare function updateReplyCacheComment(cache: CommentReplyCache, commentId: string, updater: (comment: CommentEntity) => CommentEntity): CommentReplyCache;
|
|
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;
|
|
1605
2239
|
declare function removeCommentTreeFromCache(cache: CommentReplyCache, commentId: string): CommentReplyCache;
|
|
1606
2240
|
|
|
1607
2241
|
declare function updateComment(comments: CommentEntity[], commentId: string, updater: (comment: CommentEntity) => CommentEntity): CommentEntity[];
|
|
1608
2242
|
|
|
1609
|
-
type SortOption = {
|
|
1610
|
-
value: string;
|
|
1611
|
-
label: string;
|
|
1612
|
-
};
|
|
1613
|
-
interface DataViewTableProps<T> {
|
|
1614
|
-
title?: string;
|
|
1615
|
-
columns: TableColumnConfig<T>[];
|
|
1616
|
-
data: T[];
|
|
1617
|
-
sortOptions?: SortOption[];
|
|
1618
|
-
sortConfig?: Record<string, SortConfig<T>>;
|
|
1619
|
-
searchPlaceholder?: string;
|
|
1620
|
-
defaultPageSize?: number;
|
|
1621
|
-
isLoading?: boolean;
|
|
1622
|
-
isSuccess?: boolean;
|
|
1623
|
-
isError?: boolean;
|
|
1624
|
-
error?: unknown;
|
|
1625
|
-
}
|
|
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
|
+
}
|
|
1626
2260
|
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;
|
|
1627
2261
|
|
|
1628
|
-
interface DocumentationPanelProps {
|
|
1629
|
-
value: string;
|
|
1630
|
-
toc?: boolean;
|
|
1631
|
-
}
|
|
2262
|
+
interface DocumentationPanelProps {
|
|
2263
|
+
value: string;
|
|
2264
|
+
toc?: boolean;
|
|
2265
|
+
}
|
|
1632
2266
|
declare function DocumentationPanel({ value, toc }: DocumentationPanelProps): react_jsx_runtime.JSX.Element;
|
|
1633
2267
|
|
|
1634
|
-
interface SliderProps {
|
|
1635
|
-
isLoading?: boolean;
|
|
1636
|
-
isSuccess?: boolean;
|
|
1637
|
-
coverArt: string;
|
|
1638
|
-
screenshots: string[];
|
|
1639
|
-
}
|
|
2268
|
+
interface SliderProps {
|
|
2269
|
+
isLoading?: boolean;
|
|
2270
|
+
isSuccess?: boolean;
|
|
2271
|
+
coverArt: string;
|
|
2272
|
+
screenshots: string[];
|
|
2273
|
+
}
|
|
1640
2274
|
declare function Slider({ isLoading, isSuccess, coverArt, screenshots }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
1641
2275
|
|
|
1642
|
-
interface RatingDistributionItem {
|
|
1643
|
-
star: number;
|
|
1644
|
-
count: number;
|
|
1645
|
-
}
|
|
1646
|
-
interface StarRatingDistributionProps extends BaseComponentProps {
|
|
1647
|
-
numericRating?: boolean;
|
|
1648
|
-
progressBarsRating?: boolean;
|
|
1649
|
-
ratingDistribution?: RatingDistributionItem[];
|
|
1650
|
-
variant?: Variant$1;
|
|
1651
|
-
appearance?: Appearance;
|
|
1652
|
-
shape?: Shape$1;
|
|
1653
|
-
size?: Size$1;
|
|
1654
|
-
animated?: boolean;
|
|
1655
|
-
striped?: boolean;
|
|
1656
|
-
showReviewCount?: boolean;
|
|
1657
|
-
}
|
|
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
|
+
}
|
|
1658
2292
|
declare function StarRatingDistribution({ numericRating, progressBarsRating, ratingDistribution, variant, appearance, shape, size, animated, striped, showReviewCount, className, ...rest }: StarRatingDistributionProps): react_jsx_runtime.JSX.Element;
|
|
1659
2293
|
|
|
1660
|
-
interface WorldMapCountryTableProps {
|
|
1661
|
-
title?: string;
|
|
1662
|
-
data: WorldMapPoint[];
|
|
1663
|
-
}
|
|
2294
|
+
interface WorldMapCountryTableProps {
|
|
2295
|
+
title?: string;
|
|
2296
|
+
data: WorldMapPoint[];
|
|
2297
|
+
}
|
|
1664
2298
|
declare function WorldMapCountryTable({ title, data, }: WorldMapCountryTableProps): react_jsx_runtime.JSX.Element;
|
|
1665
2299
|
|
|
1666
|
-
interface NavItem {
|
|
1667
|
-
icon:
|
|
1668
|
-
name: string;
|
|
1669
|
-
to: string;
|
|
1670
|
-
selected?: boolean;
|
|
1671
|
-
}
|
|
1672
|
-
interface BoxNavProps {
|
|
1673
|
-
data?: NavItem[];
|
|
1674
|
-
currentPath?: string;
|
|
1675
|
-
onNavigate?: (to: string) => void;
|
|
1676
|
-
navigate?: (to: string) => void;
|
|
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;
|
|
1677
2311
|
}
|
|
1678
2312
|
|
|
1679
2313
|
declare function BoxNav({ data, currentPath, onNavigate, navigate }: BoxNavProps): react_jsx_runtime.JSX.Element;
|
|
1680
2314
|
|
|
1681
|
-
interface BoxNavItemProps {
|
|
1682
|
-
icon:
|
|
1683
|
-
name: string;
|
|
1684
|
-
to: string;
|
|
1685
|
-
selected?: boolean;
|
|
1686
|
-
onClick?: (event:
|
|
1687
|
-
}
|
|
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
|
+
}
|
|
1688
2322
|
declare function BoxNavItem({ icon, name, to, selected, onClick }: BoxNavItemProps): react_jsx_runtime.JSX.Element;
|
|
1689
2323
|
|
|
1690
|
-
interface SidebarProps extends BaseComponentProps {
|
|
1691
|
-
items?: MenuNode[];
|
|
1692
|
-
navigate?: (to: string) => void;
|
|
1693
|
-
currentPath?: string;
|
|
1694
|
-
}
|
|
2324
|
+
interface SidebarProps extends BaseComponentProps {
|
|
2325
|
+
items?: MenuNode[];
|
|
2326
|
+
navigate?: (to: string) => void;
|
|
2327
|
+
currentPath?: string;
|
|
2328
|
+
}
|
|
1695
2329
|
declare function Sidebar({ items, navigate, currentPath, className, ...rest }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1696
2330
|
|
|
1697
|
-
interface TopNavComponents {
|
|
1698
|
-
item?: React.ElementType;
|
|
1699
|
-
group?: React.ElementType;
|
|
1700
|
-
dropdown?: React.ElementType;
|
|
1701
|
-
dropdownItem?: React.ElementType;
|
|
1702
|
-
dropdownGroup?: React.ElementType;
|
|
1703
|
-
dropdownTitle?: React.ElementType;
|
|
1704
|
-
}
|
|
1705
|
-
interface BaseTopNavNode {
|
|
1706
|
-
key?: string;
|
|
1707
|
-
name: string;
|
|
1708
|
-
icon?: React.ReactNode;
|
|
1709
|
-
badge?: React.ReactNode;
|
|
1710
|
-
className?: string;
|
|
1711
|
-
component?: React.ElementType;
|
|
1712
|
-
}
|
|
1713
|
-
interface TopNavItemNode extends BaseTopNavNode {
|
|
1714
|
-
type: "item";
|
|
1715
|
-
to?: string;
|
|
1716
|
-
onClick?: () => void;
|
|
1717
|
-
}
|
|
1718
|
-
interface TopNavGroupNode extends BaseTopNavNode {
|
|
1719
|
-
type: "group";
|
|
1720
|
-
items: TopNavNode[];
|
|
1721
|
-
columns?: number;
|
|
1722
|
-
}
|
|
1723
|
-
interface TopNavTitleNode extends BaseTopNavNode {
|
|
1724
|
-
type: "title";
|
|
1725
|
-
}
|
|
1726
|
-
type TopNavNode = TopNavItemNode | TopNavGroupNode | TopNavTitleNode;
|
|
1727
|
-
interface TopNavProps {
|
|
1728
|
-
items: TopNavNode[];
|
|
1729
|
-
currentPath?: string;
|
|
1730
|
-
navigate?: (to: string) => void;
|
|
1731
|
-
components?: TopNavComponents;
|
|
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;
|
|
1732
2366
|
}
|
|
1733
2367
|
|
|
1734
2368
|
declare const TopNav: ({ items, currentPath, navigate, components, }: TopNavProps) => react_jsx_runtime.JSX.Element;
|
|
1735
2369
|
|
|
1736
|
-
interface TNDropdownProps extends BaseComponentProps {
|
|
1737
|
-
items: TopNavNode[];
|
|
1738
|
-
navigate?: (to: string) => void;
|
|
1739
|
-
components?: any;
|
|
1740
|
-
}
|
|
2370
|
+
interface TNDropdownProps extends BaseComponentProps {
|
|
2371
|
+
items: TopNavNode[];
|
|
2372
|
+
navigate?: (to: string) => void;
|
|
2373
|
+
components?: any;
|
|
2374
|
+
}
|
|
1741
2375
|
declare const TNDropdown: ({ items, navigate, components, }: TNDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
1742
2376
|
|
|
1743
|
-
interface TNDropdownItemProps extends BaseComponentProps {
|
|
1744
|
-
icon?: React.ReactNode;
|
|
1745
|
-
name: string;
|
|
1746
|
-
badge?: React.ReactNode;
|
|
1747
|
-
to?: string;
|
|
1748
|
-
navigate?: (to: string) => void;
|
|
1749
|
-
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
1750
|
-
}
|
|
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
|
+
}
|
|
1751
2385
|
declare const TNDropdownItem: ({ icon, name, badge, to, navigate, onClick, className, }: TNDropdownItemProps) => react_jsx_runtime.JSX.Element;
|
|
1752
2386
|
|
|
1753
|
-
interface TNDropdownTitleProps extends BaseComponentProps {
|
|
1754
|
-
name: string;
|
|
1755
|
-
}
|
|
2387
|
+
interface TNDropdownTitleProps extends BaseComponentProps {
|
|
2388
|
+
name: string;
|
|
2389
|
+
}
|
|
1756
2390
|
declare const TNDropdownTitle: ({ name, className }: TNDropdownTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1757
2391
|
|
|
1758
|
-
interface TNGroupProps extends BaseComponentProps {
|
|
1759
|
-
icon?: React.ReactNode;
|
|
1760
|
-
name: string;
|
|
1761
|
-
items: TopNavNode[];
|
|
1762
|
-
navigate?: (to: string) => void;
|
|
1763
|
-
columns?: number;
|
|
1764
|
-
components?: any;
|
|
1765
|
-
selected?: boolean;
|
|
1766
|
-
}
|
|
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
|
+
}
|
|
1767
2401
|
declare const TNGroup: ({ icon, name, items, navigate, columns, components, selected, }: TNGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1768
2402
|
|
|
1769
|
-
declare const useDrawer: (defaultVisibility?: boolean) => {
|
|
1770
|
-
show: boolean;
|
|
1771
|
-
openDrawer: () => void;
|
|
1772
|
-
closeDrawer: () => void;
|
|
2403
|
+
declare const useDrawer: (defaultVisibility?: boolean) => {
|
|
2404
|
+
show: boolean;
|
|
2405
|
+
openDrawer: () => void;
|
|
2406
|
+
closeDrawer: () => void;
|
|
1773
2407
|
};
|
|
1774
2408
|
|
|
1775
|
-
declare const useModal: () => {
|
|
1776
|
-
show: boolean;
|
|
1777
|
-
handleOpenModal: () => void;
|
|
1778
|
-
handleCloseModal: () => void;
|
|
2409
|
+
declare const useModal: () => {
|
|
2410
|
+
show: boolean;
|
|
2411
|
+
handleOpenModal: () => void;
|
|
2412
|
+
handleCloseModal: () => void;
|
|
1779
2413
|
};
|
|
1780
2414
|
|
|
1781
|
-
type ClickOutsideCallback = () => void;
|
|
2415
|
+
type ClickOutsideCallback = () => void;
|
|
1782
2416
|
declare function useClickOutside(ref: MutableRefObject<HTMLElement | null>, fun?: ClickOutsideCallback): void;
|
|
1783
2417
|
|
|
1784
2418
|
declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
@@ -1787,63 +2421,63 @@ declare const useCurrentTheme: () => "light" | "dark";
|
|
|
1787
2421
|
|
|
1788
2422
|
declare const useTheme: () => any;
|
|
1789
2423
|
|
|
1790
|
-
interface GenericLayoutProps {
|
|
1791
|
-
children?: ReactNode;
|
|
1792
|
-
styles?: string;
|
|
1793
|
-
defaultTheme?: "light" | "dark";
|
|
1794
|
-
}
|
|
2424
|
+
interface GenericLayoutProps {
|
|
2425
|
+
children?: ReactNode;
|
|
2426
|
+
styles?: string;
|
|
2427
|
+
defaultTheme?: "light" | "dark";
|
|
2428
|
+
}
|
|
1795
2429
|
declare function GenericLayout({ children, styles, defaultTheme, }: GenericLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1796
2430
|
|
|
1797
|
-
interface DefaultLayoutProps {
|
|
1798
|
-
children?: ReactNode;
|
|
1799
|
-
header?: ReactNode;
|
|
1800
|
-
footer?: ReactNode;
|
|
1801
|
-
}
|
|
2431
|
+
interface DefaultLayoutProps {
|
|
2432
|
+
children?: ReactNode;
|
|
2433
|
+
header?: ReactNode;
|
|
2434
|
+
footer?: ReactNode;
|
|
2435
|
+
}
|
|
1802
2436
|
declare function DefaultLayout({ children, header, footer, }: DefaultLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1803
2437
|
|
|
1804
|
-
interface HomeLayoutProps {
|
|
1805
|
-
children?: ReactNode;
|
|
1806
|
-
header?: ReactNode;
|
|
1807
|
-
footer?: ReactNode;
|
|
1808
|
-
}
|
|
2438
|
+
interface HomeLayoutProps {
|
|
2439
|
+
children?: ReactNode;
|
|
2440
|
+
header?: ReactNode;
|
|
2441
|
+
footer?: ReactNode;
|
|
2442
|
+
}
|
|
1809
2443
|
declare function HomeLayout({ children, header, footer, }: HomeLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1810
2444
|
|
|
1811
|
-
interface SidebarLayoutProps {
|
|
1812
|
-
children?: ReactNode;
|
|
1813
|
-
header?: ReactNode;
|
|
1814
|
-
footer?: ReactNode;
|
|
1815
|
-
}
|
|
2445
|
+
interface SidebarLayoutProps {
|
|
2446
|
+
children?: ReactNode;
|
|
2447
|
+
header?: ReactNode;
|
|
2448
|
+
footer?: ReactNode;
|
|
2449
|
+
}
|
|
1816
2450
|
declare function SidebarLayout({ children, header, footer, }: SidebarLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1817
2451
|
|
|
1818
|
-
interface SidemenuLayoutProps {
|
|
1819
|
-
data?: any;
|
|
1820
|
-
children?: ReactNode;
|
|
1821
|
-
}
|
|
2452
|
+
interface SidemenuLayoutProps {
|
|
2453
|
+
data?: any;
|
|
2454
|
+
children?: ReactNode;
|
|
2455
|
+
}
|
|
1822
2456
|
declare function SidemenuLayout({ data, children }: SidemenuLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1823
2457
|
|
|
1824
|
-
interface EUIDevLayoutProps {
|
|
1825
|
-
children?: ReactNode;
|
|
1826
|
-
header?: ReactNode;
|
|
1827
|
-
footer?: ReactNode;
|
|
1828
|
-
}
|
|
2458
|
+
interface EUIDevLayoutProps {
|
|
2459
|
+
children?: ReactNode;
|
|
2460
|
+
header?: ReactNode;
|
|
2461
|
+
footer?: ReactNode;
|
|
2462
|
+
}
|
|
1829
2463
|
declare function EUIDevLayout({ children, header, footer, }: EUIDevLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1830
2464
|
|
|
1831
|
-
interface CloudinaryConfig {
|
|
1832
|
-
cloudName: string;
|
|
1833
|
-
}
|
|
1834
|
-
interface CloudinaryProviderProps extends CloudinaryConfig {
|
|
1835
|
-
children: ReactNode;
|
|
2465
|
+
interface CloudinaryConfig {
|
|
2466
|
+
cloudName: string;
|
|
2467
|
+
}
|
|
2468
|
+
interface CloudinaryProviderProps extends CloudinaryConfig {
|
|
2469
|
+
children: ReactNode;
|
|
1836
2470
|
}
|
|
1837
2471
|
|
|
1838
2472
|
declare const CloudinaryProvider: ({ cloudName, children, }: CloudinaryProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1839
2473
|
|
|
1840
2474
|
declare const useCloudinaryConfig: () => CloudinaryConfig;
|
|
1841
2475
|
|
|
1842
|
-
interface ScrollToTopProps {
|
|
1843
|
-
trigger?: any;
|
|
1844
|
-
behavior?: ScrollBehavior;
|
|
1845
|
-
target?: HTMLElement | null;
|
|
1846
|
-
}
|
|
2476
|
+
interface ScrollToTopProps {
|
|
2477
|
+
trigger?: any;
|
|
2478
|
+
behavior?: ScrollBehavior;
|
|
2479
|
+
target?: HTMLElement | null;
|
|
2480
|
+
}
|
|
1847
2481
|
declare function ScrollToTop({ trigger, behavior, target, }: ScrollToTopProps): null;
|
|
1848
2482
|
|
|
1849
2483
|
declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -1854,16 +2488,16 @@ declare const getCurrencySymbol: (code: CurrencyCode) => string | null;
|
|
|
1854
2488
|
|
|
1855
2489
|
declare const enumValues: <T extends Record<string, string>>(enumObject: T) => string[];
|
|
1856
2490
|
|
|
1857
|
-
declare const normalize: (path?: string) => string;
|
|
2491
|
+
declare const normalize: (path?: string) => string;
|
|
1858
2492
|
declare const isMatch: (itemPath?: string, currentPath?: string) => boolean;
|
|
1859
2493
|
|
|
1860
|
-
interface ResolveAppearanceStylesProps {
|
|
1861
|
-
appearance?: Appearance;
|
|
1862
|
-
variant: Variant$1;
|
|
1863
|
-
solid: Record<string, string>;
|
|
1864
|
-
lite: Record<string, string>;
|
|
1865
|
-
ghost: Record<string, string>;
|
|
1866
|
-
}
|
|
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
|
+
}
|
|
1867
2501
|
declare function resolveAppearanceStyles({ appearance, variant, solid, lite, ghost, }: ResolveAppearanceStylesProps): string;
|
|
1868
2502
|
|
|
1869
|
-
export { Accordion, type AnimationComponentProps, type AnimationVariant, type Appearance, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, type BaseAnimationConfig, type BaseComponentProps, type BaseMenuNode, type BaseOverlayConfig, type BaseTopNavNode, type BlobAnimationConfig, Block, BlockGroup, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, 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, Content, ContentArea, type CornerPosition, type CreateCommentInput, type CurrencyCode, DataView, DataViewTable, DateSelector, DefaultLayout, type DefaultMenuElements, Display, DocumentationPanel, Drawer, DrawerToggler, type EUIComponentDefaults, type EUIConfigs, EUIDevLayout, EUIProvider, type EUIRoute, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GenericLayout, GlowWrapper, type GradientAnimationConfig, Graph, type
|
|
2503
|
+
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, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, 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, Content, ContentArea, type CornerPosition, type CreateCommentInput, type CurrencyCode, DEFAULT_GRAPH_THEME, DataView, DataViewTable, DateSelector, DefaultLayout, type DefaultMenuElements, Display, DocumentationPanel, Drawer, DrawerToggler, type EUIComponentDefaults, type EUIConfigs, EUIDevLayout, EUIProvider, type EUIRoute, 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, 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, RouteTab, type RouteTabMode, RouteTabs, ScatterGraph, ScrollToTop, Section, Select, type Shape$1 as Shape, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, type Size$1 as Size, Skeleton, Slider, 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, 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, cn, createInitialGraphState, decrementReplyCount, enumValues, formatCommentDate, formatGraphValue, getCurrencySymbol, getOptimisticDislikeState, getOptimisticLikeState, graphReducer, incrementReplyCount, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeGraphData, normalizeGraphDataPoint, removeComment, removeCommentTreeFromCache, replaceRealtimePoints, resolveAppearanceStyles, resolveGraphColor, resolveGraphColors, resolveWithGlobal, sendToast, updateComment, updateReplyCacheComment, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useGraphContext, useGraphData, useGraphPolling, useGraphRealtime, useGraphSeries, useGraphTheme, useIsMobile, useModal, useTheme };
|