elseware-ui 2.31.16 → 2.31.17
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.d.mts +1496 -1480
- package/dist/index.d.ts +1496 -1480
- package/dist/index.js +249 -193
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +240 -194
- package/dist/index.mjs.map +1 -1
- package/package.json +110 -110
package/dist/index.d.ts
CHANGED
|
@@ -6,456 +6,456 @@ 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
|
-
}
|
|
86
|
+
interface BarChartProps extends BaseComponentProps {
|
|
87
|
+
data: ChartData<"bar">;
|
|
88
|
+
options: ChartOptions<"bar">;
|
|
89
|
+
}
|
|
90
90
|
declare const BarChart: React$1.FC<BarChartProps>;
|
|
91
91
|
|
|
92
|
-
interface LineChartProps extends BaseComponentProps {
|
|
93
|
-
data: ChartData<"line">;
|
|
94
|
-
options?: ChartOptions<"line">;
|
|
95
|
-
}
|
|
92
|
+
interface LineChartProps extends BaseComponentProps {
|
|
93
|
+
data: ChartData<"line">;
|
|
94
|
+
options?: ChartOptions<"line">;
|
|
95
|
+
}
|
|
96
96
|
declare const LineChart: React$1.FC<LineChartProps>;
|
|
97
97
|
|
|
98
|
-
interface PieChartProps extends BaseComponentProps {
|
|
99
|
-
data: ChartData<"pie">;
|
|
100
|
-
options: ChartOptions<"pie">;
|
|
101
|
-
}
|
|
98
|
+
interface PieChartProps extends BaseComponentProps {
|
|
99
|
+
data: ChartData<"pie">;
|
|
100
|
+
options: ChartOptions<"pie">;
|
|
101
|
+
}
|
|
102
102
|
declare const PieChart: React$1.FC<PieChartProps>;
|
|
103
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
|
-
}
|
|
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$5<T> {
|
|
120
|
-
data: T[];
|
|
121
|
-
children: ReactNode;
|
|
122
|
-
defaultPageSize?: number;
|
|
123
|
-
sortConfig?: Record<string, SortConfig<T>>;
|
|
124
|
-
}
|
|
119
|
+
interface Props$5<T> {
|
|
120
|
+
data: T[];
|
|
121
|
+
children: ReactNode;
|
|
122
|
+
defaultPageSize?: number;
|
|
123
|
+
sortConfig?: Record<string, SortConfig<T>>;
|
|
124
|
+
}
|
|
125
125
|
declare function DataViewProvider<T extends Record<string, any>>({ data, children, defaultPageSize, sortConfig, }: Props$5<T>): react_jsx_runtime.JSX.Element;
|
|
126
126
|
|
|
127
|
-
type DataViewHeaderProps = {
|
|
128
|
-
children: ReactNode;
|
|
129
|
-
};
|
|
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$4 = {
|
|
176
|
-
pageSizeOptions?: (number | "All")[];
|
|
177
|
-
shape?: Shape$1;
|
|
178
|
-
};
|
|
175
|
+
type Props$4 = {
|
|
176
|
+
pageSizeOptions?: (number | "All")[];
|
|
177
|
+
shape?: Shape$1;
|
|
178
|
+
};
|
|
179
179
|
declare function DataViewPageSize({ pageSizeOptions, shape, }: Props$4): react_jsx_runtime.JSX.Element;
|
|
180
180
|
|
|
181
|
-
type Props$3 = {
|
|
182
|
-
shape?: Shape$1;
|
|
183
|
-
};
|
|
181
|
+
type Props$3 = {
|
|
182
|
+
shape?: Shape$1;
|
|
183
|
+
};
|
|
184
184
|
declare function DataViewPagination({ shape }: Props$3): react_jsx_runtime.JSX.Element | null;
|
|
185
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;
|
|
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
196
|
};
|
|
197
197
|
|
|
198
|
-
interface FlagProps extends BaseComponentProps {
|
|
199
|
-
code: string;
|
|
200
|
-
width?: number | string;
|
|
201
|
-
height?: number | string;
|
|
202
|
-
}
|
|
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 GraphLayoutType = "force" | "grid" | "tree" | (string & {});
|
|
206
|
-
interface GraphData {
|
|
207
|
-
nodes: GraphNodeType[];
|
|
208
|
-
edges: GraphEdgeType[];
|
|
209
|
-
}
|
|
210
|
-
interface GraphNodeType {
|
|
211
|
-
id: string;
|
|
212
|
-
label?: string;
|
|
213
|
-
type?: "default" | "avatar" | "custom";
|
|
214
|
-
data?: any;
|
|
215
|
-
x?: number;
|
|
216
|
-
y?: number;
|
|
217
|
-
vx?: number;
|
|
218
|
-
vy?: number;
|
|
219
|
-
fx?: number | null;
|
|
220
|
-
fy?: number | null;
|
|
221
|
-
size?: number;
|
|
222
|
-
color?: string;
|
|
223
|
-
}
|
|
224
|
-
interface GraphEdgeType {
|
|
225
|
-
id?: string;
|
|
226
|
-
from: string | GraphNodeType;
|
|
227
|
-
to: string | GraphNodeType;
|
|
228
|
-
weight?: string;
|
|
229
|
-
color?: string;
|
|
230
|
-
width?: number;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
interface GraphProps extends BaseComponentProps {
|
|
234
|
-
data: GraphData;
|
|
235
|
-
layout?: string;
|
|
236
|
-
nodeRenderer?: (node: any) => React$1.ReactNode;
|
|
237
|
-
width?: number;
|
|
238
|
-
height?: number;
|
|
239
|
-
}
|
|
205
|
+
type GraphLayoutType = "force" | "grid" | "tree" | (string & {});
|
|
206
|
+
interface GraphData {
|
|
207
|
+
nodes: GraphNodeType[];
|
|
208
|
+
edges: GraphEdgeType[];
|
|
209
|
+
}
|
|
210
|
+
interface GraphNodeType {
|
|
211
|
+
id: string;
|
|
212
|
+
label?: string;
|
|
213
|
+
type?: "default" | "avatar" | "custom";
|
|
214
|
+
data?: any;
|
|
215
|
+
x?: number;
|
|
216
|
+
y?: number;
|
|
217
|
+
vx?: number;
|
|
218
|
+
vy?: number;
|
|
219
|
+
fx?: number | null;
|
|
220
|
+
fy?: number | null;
|
|
221
|
+
size?: number;
|
|
222
|
+
color?: string;
|
|
223
|
+
}
|
|
224
|
+
interface GraphEdgeType {
|
|
225
|
+
id?: string;
|
|
226
|
+
from: string | GraphNodeType;
|
|
227
|
+
to: string | GraphNodeType;
|
|
228
|
+
weight?: string;
|
|
229
|
+
color?: string;
|
|
230
|
+
width?: number;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface GraphProps extends BaseComponentProps {
|
|
234
|
+
data: GraphData;
|
|
235
|
+
layout?: string;
|
|
236
|
+
nodeRenderer?: (node: any) => React$1.ReactNode;
|
|
237
|
+
width?: number;
|
|
238
|
+
height?: number;
|
|
239
|
+
}
|
|
240
240
|
declare const Graph: ({ data, layout, nodeRenderer, width, height, className, ...rest }: GraphProps) => react_jsx_runtime.JSX.Element;
|
|
241
241
|
|
|
242
|
-
interface Props$2 {
|
|
243
|
-
edge: GraphEdgeType;
|
|
244
|
-
nodeMap: Map<string, GraphNodeType>;
|
|
245
|
-
}
|
|
242
|
+
interface Props$2 {
|
|
243
|
+
edge: GraphEdgeType;
|
|
244
|
+
nodeMap: Map<string, GraphNodeType>;
|
|
245
|
+
}
|
|
246
246
|
declare const GraphEdge: React$1.FC<Props$2>;
|
|
247
247
|
|
|
248
|
-
interface Props$1 {
|
|
249
|
-
node: GraphNodeType;
|
|
250
|
-
renderCustom?: (node: GraphNodeType) => React$1.ReactNode;
|
|
251
|
-
}
|
|
248
|
+
interface Props$1 {
|
|
249
|
+
node: GraphNodeType;
|
|
250
|
+
renderCustom?: (node: GraphNodeType) => React$1.ReactNode;
|
|
251
|
+
}
|
|
252
252
|
declare const GraphNode: React$1.FC<Props$1>;
|
|
253
253
|
|
|
254
|
-
interface Props {
|
|
255
|
-
data: GraphData;
|
|
256
|
-
layout?: string;
|
|
257
|
-
nodeRenderer?: (node: GraphNodeType) => React$1.ReactNode;
|
|
258
|
-
width?: number;
|
|
259
|
-
height?: number;
|
|
260
|
-
}
|
|
254
|
+
interface Props {
|
|
255
|
+
data: GraphData;
|
|
256
|
+
layout?: string;
|
|
257
|
+
nodeRenderer?: (node: GraphNodeType) => React$1.ReactNode;
|
|
258
|
+
width?: number;
|
|
259
|
+
height?: number;
|
|
260
|
+
}
|
|
261
261
|
declare const GraphRenderer: React$1.FC<Props>;
|
|
262
262
|
|
|
263
263
|
declare const createForceLayout: (nodes: GraphNodeType[], edges: GraphEdgeType[], width: number, height: number) => d3.Simulation<GraphNodeType, undefined>;
|
|
264
264
|
|
|
265
|
-
declare function createGridLayout(nodes: GraphNodeType[], width: number, height: number): {
|
|
266
|
-
x: number;
|
|
267
|
-
y: number;
|
|
268
|
-
id: string;
|
|
269
|
-
label?: string | undefined;
|
|
270
|
-
type?: "default" | "custom" | "avatar" | undefined;
|
|
271
|
-
data?: any;
|
|
272
|
-
vx?: number | undefined;
|
|
273
|
-
vy?: number | undefined;
|
|
274
|
-
fx?: number | null | undefined;
|
|
275
|
-
fy?: number | null | undefined;
|
|
276
|
-
size?: number | undefined;
|
|
277
|
-
color?: string | undefined;
|
|
265
|
+
declare function createGridLayout(nodes: GraphNodeType[], width: number, height: number): {
|
|
266
|
+
x: number;
|
|
267
|
+
y: number;
|
|
268
|
+
id: string;
|
|
269
|
+
label?: string | undefined;
|
|
270
|
+
type?: "default" | "custom" | "avatar" | undefined;
|
|
271
|
+
data?: any;
|
|
272
|
+
vx?: number | undefined;
|
|
273
|
+
vy?: number | undefined;
|
|
274
|
+
fx?: number | null | undefined;
|
|
275
|
+
fy?: number | null | undefined;
|
|
276
|
+
size?: number | undefined;
|
|
277
|
+
color?: string | undefined;
|
|
278
278
|
}[];
|
|
279
279
|
|
|
280
280
|
declare function createTreeLayout(nodes: GraphNodeType[], edges: GraphEdgeType[], width: number, height: number): GraphNodeType[];
|
|
281
281
|
|
|
282
|
-
interface LayoutContext {
|
|
283
|
-
nodes: GraphNodeType[];
|
|
284
|
-
edges: GraphEdgeType[];
|
|
285
|
-
width: number;
|
|
286
|
-
height: number;
|
|
287
|
-
onTick?: (nodes: GraphNodeType[]) => void;
|
|
288
|
-
}
|
|
289
|
-
type LayoutExecutor = (ctx: LayoutContext) => {
|
|
290
|
-
type: "static" | "simulation";
|
|
291
|
-
stop?: () => void;
|
|
292
|
-
};
|
|
293
|
-
declare const registerLayout: (type: GraphLayoutType, executor: LayoutExecutor) => void;
|
|
282
|
+
interface LayoutContext {
|
|
283
|
+
nodes: GraphNodeType[];
|
|
284
|
+
edges: GraphEdgeType[];
|
|
285
|
+
width: number;
|
|
286
|
+
height: number;
|
|
287
|
+
onTick?: (nodes: GraphNodeType[]) => void;
|
|
288
|
+
}
|
|
289
|
+
type LayoutExecutor = (ctx: LayoutContext) => {
|
|
290
|
+
type: "static" | "simulation";
|
|
291
|
+
stop?: () => void;
|
|
292
|
+
};
|
|
293
|
+
declare const registerLayout: (type: GraphLayoutType, executor: LayoutExecutor) => void;
|
|
294
294
|
declare const getLayout: (type: GraphLayoutType) => LayoutExecutor;
|
|
295
295
|
|
|
296
|
-
interface CloudinaryImageProps extends BaseComponentProps<HTMLImageElement> {
|
|
297
|
-
publicId?: string;
|
|
298
|
-
cloudName?: string;
|
|
299
|
-
secure?: boolean;
|
|
300
|
-
alt?: string;
|
|
301
|
-
fallbackSrc?: string;
|
|
302
|
-
loading?: "lazy" | "eager";
|
|
303
|
-
}
|
|
296
|
+
interface CloudinaryImageProps extends BaseComponentProps<HTMLImageElement> {
|
|
297
|
+
publicId?: string;
|
|
298
|
+
cloudName?: string;
|
|
299
|
+
secure?: boolean;
|
|
300
|
+
alt?: string;
|
|
301
|
+
fallbackSrc?: string;
|
|
302
|
+
loading?: "lazy" | "eager";
|
|
303
|
+
}
|
|
304
304
|
declare function CloudinaryImage({ publicId, cloudName, secure, alt, fallbackSrc, loading, className, ...rest }: CloudinaryImageProps): react_jsx_runtime.JSX.Element;
|
|
305
305
|
|
|
306
|
-
interface ImageProps extends BaseComponentProps {
|
|
307
|
-
alt?: string;
|
|
308
|
-
src?: string;
|
|
309
|
-
height?: number;
|
|
310
|
-
width?: number;
|
|
311
|
-
}
|
|
306
|
+
interface ImageProps extends BaseComponentProps {
|
|
307
|
+
alt?: string;
|
|
308
|
+
src?: string;
|
|
309
|
+
height?: number;
|
|
310
|
+
width?: number;
|
|
311
|
+
}
|
|
312
312
|
declare const Image: ({ alt, src, height, width, className, ...rest }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
313
313
|
|
|
314
|
-
interface InfoProps extends BaseComponentProps {
|
|
315
|
-
variant?: Variant$1;
|
|
316
|
-
appearance?: Appearance;
|
|
317
|
-
shape?: Shape$1;
|
|
318
|
-
children?: ReactNode;
|
|
319
|
-
}
|
|
314
|
+
interface InfoProps extends BaseComponentProps {
|
|
315
|
+
variant?: Variant$1;
|
|
316
|
+
appearance?: Appearance;
|
|
317
|
+
shape?: Shape$1;
|
|
318
|
+
children?: ReactNode;
|
|
319
|
+
}
|
|
320
320
|
declare function Info({ children, variant, appearance, shape, className, ...rest }: InfoProps): react_jsx_runtime.JSX.Element;
|
|
321
321
|
|
|
322
|
-
interface ListItemData {
|
|
323
|
-
content: React$1.ReactNode;
|
|
324
|
-
bulletType?: ListBulletType;
|
|
325
|
-
renderBullet?: (index?: number) => React$1.ReactNode;
|
|
326
|
-
TypographyComponent?: React$1.ReactNode;
|
|
327
|
-
className?: string;
|
|
328
|
-
}
|
|
329
|
-
interface ListProps extends BaseComponentProps {
|
|
330
|
-
title?: string;
|
|
331
|
-
items: (string | React$1.ReactNode | ListItemData)[];
|
|
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
|
-
}
|
|
322
|
+
interface ListItemData {
|
|
323
|
+
content: React$1.ReactNode;
|
|
324
|
+
bulletType?: ListBulletType;
|
|
325
|
+
renderBullet?: (index?: number) => React$1.ReactNode;
|
|
326
|
+
TypographyComponent?: React$1.ReactNode;
|
|
327
|
+
className?: string;
|
|
328
|
+
}
|
|
329
|
+
interface ListProps extends BaseComponentProps {
|
|
330
|
+
title?: string;
|
|
331
|
+
items: (string | React$1.ReactNode | ListItemData)[];
|
|
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
|
+
}
|
|
339
339
|
declare function List({ title, items, direction, gap, columns, align, wrap, bulletType, className, ...rest }: ListProps): react_jsx_runtime.JSX.Element;
|
|
340
340
|
|
|
341
|
-
interface ListItemProps {
|
|
342
|
-
content: React$1.ReactNode;
|
|
343
|
-
index?: number;
|
|
344
|
-
TypographyComponent?: React$1.ReactNode;
|
|
345
|
-
bulletType?: ListBulletType;
|
|
346
|
-
renderBullet?: (index?: number) => React$1.ReactNode;
|
|
347
|
-
align?: ListAlign;
|
|
348
|
-
className?: string;
|
|
349
|
-
}
|
|
341
|
+
interface ListItemProps {
|
|
342
|
+
content: React$1.ReactNode;
|
|
343
|
+
index?: number;
|
|
344
|
+
TypographyComponent?: React$1.ReactNode;
|
|
345
|
+
bulletType?: ListBulletType;
|
|
346
|
+
renderBullet?: (index?: number) => React$1.ReactNode;
|
|
347
|
+
align?: ListAlign;
|
|
348
|
+
className?: string;
|
|
349
|
+
}
|
|
350
350
|
declare const ListItem: ({ content, TypographyComponent, bulletType, renderBullet, index, align, className, }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
351
351
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
365
365
|
declare function PriceTag({ price, discount, code, variant, appearance, shape, size, decimals, showCurrencyCode, currencyAsSubscript, showFreeLabel, className, ...rest }: PriceTagProps): react_jsx_runtime.JSX.Element;
|
|
366
366
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
386
386
|
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
387
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
396
396
|
declare function NumericRating({ rating, totalReviews, size, showStars, showReviewCount, reviewLabel, className, ...rest }: NumericRatingProps): react_jsx_runtime.JSX.Element;
|
|
397
397
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
408
408
|
declare function ProgressBarRating({ star, percentage, variant, appearance, shape, size, animated, striped, className, ...rest }: ProgressBarRatingProps): react_jsx_runtime.JSX.Element;
|
|
409
409
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
418
418
|
declare function StarRating({ rating, max, size, showValue, valuePosition, iconClassName, className, ...rest }: StarRatingProps): react_jsx_runtime.JSX.Element;
|
|
419
419
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
432
432
|
declare function Table<T extends Record<string, any>>({ title, columns, data, shape, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
433
433
|
|
|
434
|
-
interface TagProps extends BaseComponentProps {
|
|
435
|
-
text: string;
|
|
436
|
-
}
|
|
434
|
+
interface TagProps extends BaseComponentProps {
|
|
435
|
+
text: string;
|
|
436
|
+
}
|
|
437
437
|
declare function Tag({ text, className, ...rest }: TagProps): react_jsx_runtime.JSX.Element;
|
|
438
438
|
|
|
439
|
-
interface TooltipProps extends BaseComponentProps {
|
|
440
|
-
children: ReactNode;
|
|
441
|
-
show: boolean;
|
|
442
|
-
offsetX?: number;
|
|
443
|
-
offsetY?: number;
|
|
444
|
-
}
|
|
439
|
+
interface TooltipProps extends BaseComponentProps {
|
|
440
|
+
children: ReactNode;
|
|
441
|
+
show: boolean;
|
|
442
|
+
offsetX?: number;
|
|
443
|
+
offsetY?: number;
|
|
444
|
+
}
|
|
445
445
|
declare function Tooltip({ children, show, offsetX, offsetY, className, ...rest }: TooltipProps): react_jsx_runtime.JSX.Element | null;
|
|
446
446
|
|
|
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;
|
|
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;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
interface DisplayProps extends TypographyProps {
|
|
457
|
-
level?: 1 | 2 | 3;
|
|
458
|
-
}
|
|
456
|
+
interface DisplayProps extends TypographyProps {
|
|
457
|
+
level?: 1 | 2 | 3;
|
|
458
|
+
}
|
|
459
459
|
declare const Display: ({ level, children, variant, decoration, bold, italic, className, ...rest }: DisplayProps) => react_jsx_runtime.JSX.Element;
|
|
460
460
|
|
|
461
461
|
declare const Chapter: ({ level, children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -476,1283 +476,1299 @@ declare const Lead: ({ children, variant, decoration, bold, italic, className, .
|
|
|
476
476
|
|
|
477
477
|
declare const Overline: ({ children, variant, decoration, bold, italic, className, ...rest }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
478
478
|
|
|
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;
|
|
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;
|
|
490
490
|
};
|
|
491
491
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
508
508
|
declare const ValueBadge: ({ value, tiers, lowerBound, upperBound, formatValue, className, noBackground, }: ValueBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
509
509
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
522
522
|
declare function CloudinaryVideo({ publicId, cloudName, secure, controls, autoPlay, muted, loop, playsInline, poster, preload, className, ...rest }: CloudinaryVideoProps): react_jsx_runtime.JSX.Element;
|
|
523
523
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
534
534
|
declare function YoutubeVideo({ videoUrl, width, height, autoPlay, muted, controls, className, ...rest }: YoutubeVideoProps): react_jsx_runtime.JSX.Element;
|
|
535
535
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
550
550
|
declare function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble, disableCountryHover, disableCountrySelect, className, ...rest }: WorldMapProps): react_jsx_runtime.JSX.Element;
|
|
551
551
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
565
565
|
declare function Button({ type, icon, text, children, loading, disabled, block, variant, appearance, shape, size, className, onMouseMove, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
566
566
|
|
|
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[]>);
|
|
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[]>);
|
|
583
583
|
declare function Checkbox({ placeholder, variant, shape, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
584
584
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
639
639
|
declare const DateSelector: ({ placeholder, styles, shape, ...props }: DateSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
640
640
|
|
|
641
|
-
interface FormProps {
|
|
642
|
-
initialValues?: Record<string, any>;
|
|
643
|
-
validationSchema?: object;
|
|
644
|
-
enableReinitialize?: boolean;
|
|
645
|
-
children?: React$1.ReactNode;
|
|
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
|
-
}
|
|
641
|
+
interface FormProps {
|
|
642
|
+
initialValues?: Record<string, any>;
|
|
643
|
+
validationSchema?: object;
|
|
644
|
+
enableReinitialize?: boolean;
|
|
645
|
+
children?: React$1.ReactNode;
|
|
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
|
+
}
|
|
654
654
|
declare const Form: ({ initialValues, validationSchema, enableReinitialize, children, styles, onSubmit, onChange, warnOnUnsavedChanges, onDirtyChange, }: FormProps) => react_jsx_runtime.JSX.Element;
|
|
655
655
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
663
663
|
declare function FormResponse({ text, variant, shape, size, styles, }: FormResponseProps): react_jsx_runtime.JSX.Element;
|
|
664
664
|
|
|
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
|
-
}
|
|
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
674
|
declare const ImageInput: React$1.ForwardRefExoticComponent<(Omit<React$1.ClassAttributes<HTMLInputElement> & React$1.InputHTMLAttributes<HTMLInputElement> & formik.FieldConfig<string> & ImageInputProps, "ref"> | Omit<React$1.ClassAttributes<HTMLSelectElement> & React$1.SelectHTMLAttributes<HTMLSelectElement> & formik.FieldConfig<string> & ImageInputProps, "ref"> | Omit<React$1.ClassAttributes<HTMLTextAreaElement> & React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & formik.FieldConfig<string> & ImageInputProps, "ref">) & React$1.RefAttributes<ImageInputRef>>;
|
|
675
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
|
-
};
|
|
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
|
+
};
|
|
684
684
|
declare const Input: ({ type, placeholder, styles, step, shape, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
685
685
|
|
|
686
|
-
interface InputFileProps {
|
|
687
|
-
placeholder: string;
|
|
688
|
-
accept?: string;
|
|
689
|
-
styles?: string;
|
|
690
|
-
}
|
|
686
|
+
interface InputFileProps {
|
|
687
|
+
placeholder: string;
|
|
688
|
+
accept?: string;
|
|
689
|
+
styles?: string;
|
|
690
|
+
}
|
|
691
691
|
declare const InputFile: ({ placeholder, accept, styles, ...props }: FieldHookConfig<File | null> & InputFileProps) => react_jsx_runtime.JSX.Element;
|
|
692
692
|
|
|
693
|
-
interface FormDataEntryLabelProps {
|
|
694
|
-
text?: string;
|
|
695
|
-
children?: React$1.ReactNode;
|
|
696
|
-
styles?: string;
|
|
697
|
-
}
|
|
693
|
+
interface FormDataEntryLabelProps {
|
|
694
|
+
text?: string;
|
|
695
|
+
children?: React$1.ReactNode;
|
|
696
|
+
styles?: string;
|
|
697
|
+
}
|
|
698
698
|
declare function InputLabel({ text, children, styles }: FormDataEntryLabelProps): react_jsx_runtime.JSX.Element;
|
|
699
699
|
|
|
700
|
-
interface InputListProps {
|
|
701
|
-
name: string;
|
|
702
|
-
placeholder?: string;
|
|
703
|
-
shape?: keyof typeof Shape;
|
|
704
|
-
}
|
|
700
|
+
interface InputListProps {
|
|
701
|
+
name: string;
|
|
702
|
+
placeholder?: string;
|
|
703
|
+
shape?: keyof typeof Shape;
|
|
704
|
+
}
|
|
705
705
|
declare const InputList: ({ name, placeholder, shape }: InputListProps) => react_jsx_runtime.JSX.Element;
|
|
706
706
|
|
|
707
|
-
interface InputListGroupProps {
|
|
708
|
-
name: string;
|
|
709
|
-
placeholder?: string;
|
|
710
|
-
shape?: keyof typeof Shape;
|
|
711
|
-
}
|
|
707
|
+
interface InputListGroupProps {
|
|
708
|
+
name: string;
|
|
709
|
+
placeholder?: string;
|
|
710
|
+
shape?: keyof typeof Shape;
|
|
711
|
+
}
|
|
712
712
|
declare const InputListGroup: ({ name, placeholder, shape, }: InputListGroupProps) => react_jsx_runtime.JSX.Element;
|
|
713
713
|
|
|
714
|
-
interface InputResponseProps {
|
|
715
|
-
name: string;
|
|
716
|
-
visibility?: boolean;
|
|
717
|
-
variant?: keyof typeof TextVariant;
|
|
718
|
-
styles?: string;
|
|
719
|
-
}
|
|
714
|
+
interface InputResponseProps {
|
|
715
|
+
name: string;
|
|
716
|
+
visibility?: boolean;
|
|
717
|
+
variant?: keyof typeof TextVariant;
|
|
718
|
+
styles?: string;
|
|
719
|
+
}
|
|
720
720
|
declare function InputResponse({ name, visibility, variant, styles, }: InputResponseProps): react_jsx_runtime.JSX.Element;
|
|
721
721
|
|
|
722
|
-
interface MultiImageInputProps {
|
|
723
|
-
title?: string;
|
|
724
|
-
uploadDir?: string;
|
|
725
|
-
name: string;
|
|
726
|
-
}
|
|
722
|
+
interface MultiImageInputProps {
|
|
723
|
+
title?: string;
|
|
724
|
+
uploadDir?: string;
|
|
725
|
+
name: string;
|
|
726
|
+
}
|
|
727
727
|
declare function MultiImageInput({ title, uploadDir, ...props }: FieldHookConfig<string[]> & MultiImageInputProps): react_jsx_runtime.JSX.Element;
|
|
728
728
|
|
|
729
|
-
interface RadioProps {
|
|
730
|
-
placeholder: string;
|
|
731
|
-
options: any[];
|
|
732
|
-
}
|
|
729
|
+
interface RadioProps {
|
|
730
|
+
placeholder: string;
|
|
731
|
+
options: any[];
|
|
732
|
+
}
|
|
733
733
|
declare function Radio({ placeholder, options, ...props }: FieldHookConfig<string> & RadioProps): react_jsx_runtime.JSX.Element;
|
|
734
734
|
|
|
735
|
-
interface StarRatingInputProps {
|
|
736
|
-
starAmount?: number;
|
|
737
|
-
styles?: string;
|
|
738
|
-
}
|
|
735
|
+
interface StarRatingInputProps {
|
|
736
|
+
starAmount?: number;
|
|
737
|
+
styles?: string;
|
|
738
|
+
}
|
|
739
739
|
declare function StarRatingInput({ starAmount, styles, ...props }: FieldHookConfig<string> & StarRatingInputProps): react_jsx_runtime.JSX.Element;
|
|
740
740
|
|
|
741
|
-
type SelectProps = FieldHookConfig<string> & {
|
|
742
|
-
name: string;
|
|
743
|
-
placeholder: string;
|
|
744
|
-
options: any[];
|
|
745
|
-
styles?: string;
|
|
746
|
-
shape?: keyof typeof Shape;
|
|
747
|
-
};
|
|
741
|
+
type SelectProps = FieldHookConfig<string> & {
|
|
742
|
+
name: string;
|
|
743
|
+
placeholder: string;
|
|
744
|
+
options: any[];
|
|
745
|
+
styles?: string;
|
|
746
|
+
shape?: keyof typeof Shape;
|
|
747
|
+
};
|
|
748
748
|
declare function Select({ placeholder, options, styles, shape, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
749
749
|
|
|
750
|
-
interface SwitchProps {
|
|
751
|
-
name: string;
|
|
752
|
-
label?: string;
|
|
753
|
-
description?: string;
|
|
754
|
-
showStatus?: boolean;
|
|
755
|
-
}
|
|
750
|
+
interface SwitchProps {
|
|
751
|
+
name: string;
|
|
752
|
+
label?: string;
|
|
753
|
+
description?: string;
|
|
754
|
+
showStatus?: boolean;
|
|
755
|
+
}
|
|
756
756
|
declare function Switch({ label, description, showStatus, ...props }: FieldHookConfig<boolean> & SwitchProps): react_jsx_runtime.JSX.Element;
|
|
757
757
|
|
|
758
|
-
interface TagsProps {
|
|
759
|
-
placeholder: string;
|
|
760
|
-
styles?: string;
|
|
761
|
-
limit?: number;
|
|
762
|
-
}
|
|
758
|
+
interface TagsProps {
|
|
759
|
+
placeholder: string;
|
|
760
|
+
styles?: string;
|
|
761
|
+
limit?: number;
|
|
762
|
+
}
|
|
763
763
|
declare function Tags({ placeholder, styles, limit, ...props }: TagsProps & FieldHookConfig<string[]>): react_jsx_runtime.JSX.Element;
|
|
764
764
|
|
|
765
|
-
type TextAreaProps = FieldHookConfig<string> & {
|
|
766
|
-
name: string;
|
|
767
|
-
placeholder: string;
|
|
768
|
-
limit?: number;
|
|
769
|
-
styles?: string;
|
|
770
|
-
shape?: keyof typeof Shape;
|
|
771
|
-
};
|
|
765
|
+
type TextAreaProps = FieldHookConfig<string> & {
|
|
766
|
+
name: string;
|
|
767
|
+
placeholder: string;
|
|
768
|
+
limit?: number;
|
|
769
|
+
styles?: string;
|
|
770
|
+
shape?: keyof typeof Shape;
|
|
771
|
+
};
|
|
772
772
|
declare function TextArea({ placeholder, limit, styles, shape, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
773
773
|
|
|
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: React$1.Dispatch<React$1.SetStateAction<EUIConfigs>>;
|
|
792
|
-
}
|
|
793
|
-
declare const EUIProvider: ({ config, children, }: {
|
|
794
|
-
config: EUIConfigs;
|
|
795
|
-
children: React$1.ReactNode;
|
|
796
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
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: React$1.Dispatch<React$1.SetStateAction<EUIConfigs>>;
|
|
792
|
+
}
|
|
793
|
+
declare const EUIProvider: ({ config, children, }: {
|
|
794
|
+
config: EUIConfigs;
|
|
795
|
+
children: React$1.ReactNode;
|
|
796
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
797
797
|
declare const useEUIConfig: () => EUIContextValue;
|
|
798
798
|
|
|
799
799
|
declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
|
|
800
800
|
|
|
801
|
-
interface BackdropProps {
|
|
802
|
-
children?: React$1.ReactNode;
|
|
803
|
-
styles?: string;
|
|
804
|
-
}
|
|
801
|
+
interface BackdropProps {
|
|
802
|
+
children?: React$1.ReactNode;
|
|
803
|
+
styles?: string;
|
|
804
|
+
}
|
|
805
805
|
declare const Backdrop: ({ children, styles }: BackdropProps) => react_jsx_runtime.JSX.Element;
|
|
806
806
|
|
|
807
|
-
interface SkeletonProps extends BaseComponentProps {
|
|
808
|
-
children?: React$1.ReactNode;
|
|
809
|
-
}
|
|
807
|
+
interface SkeletonProps extends BaseComponentProps {
|
|
808
|
+
children?: React$1.ReactNode;
|
|
809
|
+
}
|
|
810
810
|
declare const Skeleton: ({ children, className, ...rest }: SkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
811
811
|
|
|
812
|
-
declare function sendToast(data?: {
|
|
813
|
-
status: string;
|
|
814
|
-
message: string;
|
|
815
|
-
}): void;
|
|
812
|
+
declare function sendToast(data?: {
|
|
813
|
+
status: string;
|
|
814
|
+
message: string;
|
|
815
|
+
}): void;
|
|
816
816
|
declare function Toast(): react_jsx_runtime.JSX.Element;
|
|
817
817
|
|
|
818
|
-
interface TransitionDropdownProps$1 {
|
|
819
|
-
visibility: any;
|
|
820
|
-
children?: ReactNode;
|
|
821
|
-
}
|
|
818
|
+
interface TransitionDropdownProps$1 {
|
|
819
|
+
visibility: any;
|
|
820
|
+
children?: ReactNode;
|
|
821
|
+
}
|
|
822
822
|
declare function TransitionDropdown({ visibility, children }: TransitionDropdownProps$1): react_jsx_runtime.JSX.Element;
|
|
823
823
|
|
|
824
|
-
interface TransitionDropdownProps {
|
|
825
|
-
visibility: any;
|
|
826
|
-
children?: ReactNode;
|
|
827
|
-
}
|
|
824
|
+
interface TransitionDropdownProps {
|
|
825
|
+
visibility: any;
|
|
826
|
+
children?: ReactNode;
|
|
827
|
+
}
|
|
828
828
|
declare function TransitionFadeIn({ visibility, children }: TransitionDropdownProps): react_jsx_runtime.JSX.Element;
|
|
829
829
|
|
|
830
|
-
declare const Transition: {
|
|
831
|
-
TransitionDropdown: typeof TransitionDropdown;
|
|
832
|
-
TransitionFadeIn: typeof TransitionFadeIn;
|
|
830
|
+
declare const Transition: {
|
|
831
|
+
TransitionDropdown: typeof TransitionDropdown;
|
|
832
|
+
TransitionFadeIn: typeof TransitionFadeIn;
|
|
833
833
|
};
|
|
834
834
|
|
|
835
|
-
interface ContentAreaProps {
|
|
836
|
-
children?: ReactNode;
|
|
837
|
-
styles?: string;
|
|
838
|
-
enablePadding?: boolean;
|
|
839
|
-
}
|
|
835
|
+
interface ContentAreaProps {
|
|
836
|
+
children?: ReactNode;
|
|
837
|
+
styles?: string;
|
|
838
|
+
enablePadding?: boolean;
|
|
839
|
+
}
|
|
840
840
|
declare function ContentArea({ children, styles, enablePadding, }: ContentAreaProps): react_jsx_runtime.JSX.Element;
|
|
841
841
|
|
|
842
|
-
interface FlexColProps$1 {
|
|
843
|
-
children?: React$1.ReactNode;
|
|
844
|
-
gap?: number;
|
|
845
|
-
styles?: string;
|
|
846
|
-
}
|
|
842
|
+
interface FlexColProps$1 {
|
|
843
|
+
children?: React$1.ReactNode;
|
|
844
|
+
gap?: number;
|
|
845
|
+
styles?: string;
|
|
846
|
+
}
|
|
847
847
|
declare function FlexCol({ children, gap, styles }: FlexColProps$1): react_jsx_runtime.JSX.Element;
|
|
848
848
|
|
|
849
|
-
interface FlexColProps {
|
|
850
|
-
children?: React$1.ReactNode;
|
|
851
|
-
gap?: number;
|
|
852
|
-
styles?: string;
|
|
853
|
-
}
|
|
849
|
+
interface FlexColProps {
|
|
850
|
+
children?: React$1.ReactNode;
|
|
851
|
+
gap?: number;
|
|
852
|
+
styles?: string;
|
|
853
|
+
}
|
|
854
854
|
declare function FlexRow({ children, gap, styles }: FlexColProps): react_jsx_runtime.JSX.Element;
|
|
855
855
|
|
|
856
|
-
declare const Flex: {
|
|
857
|
-
FlexCol: typeof FlexCol;
|
|
858
|
-
FlexRow: typeof FlexRow;
|
|
856
|
+
declare const Flex: {
|
|
857
|
+
FlexCol: typeof FlexCol;
|
|
858
|
+
FlexRow: typeof FlexRow;
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
-
interface GridProps {
|
|
862
|
-
children?: React$1.ReactNode;
|
|
863
|
-
styles?: string;
|
|
864
|
-
}
|
|
861
|
+
interface GridProps {
|
|
862
|
+
children?: React$1.ReactNode;
|
|
863
|
+
styles?: string;
|
|
864
|
+
}
|
|
865
865
|
declare function Grid({ children, styles }: GridProps): react_jsx_runtime.JSX.Element;
|
|
866
866
|
|
|
867
|
-
interface LayoutProps {
|
|
868
|
-
flexDirection?: "vertical" | "horizontal";
|
|
869
|
-
children?: React$1.ReactNode;
|
|
870
|
-
styles?: string;
|
|
871
|
-
}
|
|
867
|
+
interface LayoutProps {
|
|
868
|
+
flexDirection?: "vertical" | "horizontal";
|
|
869
|
+
children?: React$1.ReactNode;
|
|
870
|
+
styles?: string;
|
|
871
|
+
}
|
|
872
872
|
declare const Layout: ({ flexDirection, children, styles, }: LayoutProps) => react_jsx_runtime.JSX.Element;
|
|
873
873
|
|
|
874
|
-
interface HeaderProps {
|
|
875
|
-
position?: "static" | "fixed" | "sticky";
|
|
876
|
-
children?: React$1.ReactNode;
|
|
877
|
-
styles?: string;
|
|
878
|
-
}
|
|
874
|
+
interface HeaderProps {
|
|
875
|
+
position?: "static" | "fixed" | "sticky";
|
|
876
|
+
children?: React$1.ReactNode;
|
|
877
|
+
styles?: string;
|
|
878
|
+
}
|
|
879
879
|
declare const Header: ({ position, children, styles, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
880
880
|
|
|
881
|
-
interface ContentProps {
|
|
882
|
-
children?: React$1.ReactNode;
|
|
883
|
-
overlayedSidebar?: boolean;
|
|
884
|
-
sidebarVisible?: boolean;
|
|
885
|
-
styles?: string;
|
|
886
|
-
}
|
|
881
|
+
interface ContentProps {
|
|
882
|
+
children?: React$1.ReactNode;
|
|
883
|
+
overlayedSidebar?: boolean;
|
|
884
|
+
sidebarVisible?: boolean;
|
|
885
|
+
styles?: string;
|
|
886
|
+
}
|
|
887
887
|
declare const Content: ({ sidebarVisible, overlayedSidebar, children, styles, }: ContentProps) => react_jsx_runtime.JSX.Element;
|
|
888
888
|
|
|
889
|
-
interface FooterProps {
|
|
890
|
-
children?: React$1.ReactNode;
|
|
891
|
-
styles?: string;
|
|
892
|
-
}
|
|
889
|
+
interface FooterProps {
|
|
890
|
+
children?: React$1.ReactNode;
|
|
891
|
+
styles?: string;
|
|
892
|
+
}
|
|
893
893
|
declare const Footer: ({ children, styles }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
894
894
|
|
|
895
|
-
interface BlockProps extends BaseComponentProps {
|
|
896
|
-
title?: string;
|
|
897
|
-
description?: string;
|
|
898
|
-
required?: boolean;
|
|
899
|
-
layout?: ListDirection;
|
|
900
|
-
labelWidth?: string;
|
|
901
|
-
children: React$1.ReactNode;
|
|
902
|
-
}
|
|
895
|
+
interface BlockProps extends BaseComponentProps {
|
|
896
|
+
title?: string;
|
|
897
|
+
description?: string;
|
|
898
|
+
required?: boolean;
|
|
899
|
+
layout?: ListDirection;
|
|
900
|
+
labelWidth?: string;
|
|
901
|
+
children: React$1.ReactNode;
|
|
902
|
+
}
|
|
903
903
|
declare function Block({ title, description, required, layout, labelWidth, children, className, ...rest }: BlockProps): react_jsx_runtime.JSX.Element;
|
|
904
904
|
|
|
905
|
-
interface BlockGroupProps extends BaseComponentProps {
|
|
906
|
-
title?: string;
|
|
907
|
-
description?: string;
|
|
908
|
-
children: React$1.ReactNode;
|
|
909
|
-
noDivider?: boolean;
|
|
910
|
-
}
|
|
905
|
+
interface BlockGroupProps extends BaseComponentProps {
|
|
906
|
+
title?: string;
|
|
907
|
+
description?: string;
|
|
908
|
+
children: React$1.ReactNode;
|
|
909
|
+
noDivider?: boolean;
|
|
910
|
+
}
|
|
911
911
|
declare function BlockGroup({ title, description, children, noDivider, className, ...rest }: BlockGroupProps): react_jsx_runtime.JSX.Element;
|
|
912
912
|
|
|
913
|
-
interface MarkdownEditorProps {
|
|
914
|
-
placeholder?: string;
|
|
915
|
-
styles?: string;
|
|
916
|
-
}
|
|
913
|
+
interface MarkdownEditorProps {
|
|
914
|
+
placeholder?: string;
|
|
915
|
+
styles?: string;
|
|
916
|
+
}
|
|
917
917
|
declare function MarkdownEditor({ styles, ...props }: MarkdownEditorProps & FieldHookConfig<string>): react_jsx_runtime.JSX.Element;
|
|
918
918
|
|
|
919
|
-
interface MarkdownTOCProps {
|
|
920
|
-
title?: string;
|
|
921
|
-
}
|
|
919
|
+
interface MarkdownTOCProps {
|
|
920
|
+
title?: string;
|
|
921
|
+
}
|
|
922
922
|
declare function MarkdownTOC({ title }: MarkdownTOCProps): react_jsx_runtime.JSX.Element | null;
|
|
923
923
|
|
|
924
|
-
interface MarkdownViewerProps {
|
|
925
|
-
value?: string;
|
|
926
|
-
}
|
|
924
|
+
interface MarkdownViewerProps {
|
|
925
|
+
value?: string;
|
|
926
|
+
}
|
|
927
927
|
declare function MarkdownViewer({ value }: MarkdownViewerProps): react_jsx_runtime.JSX.Element;
|
|
928
928
|
|
|
929
|
-
interface MarkdownProviderProps {
|
|
930
|
-
markdown: string;
|
|
931
|
-
children: React$1.ReactNode;
|
|
932
|
-
}
|
|
929
|
+
interface MarkdownProviderProps {
|
|
930
|
+
markdown: string;
|
|
931
|
+
children: React$1.ReactNode;
|
|
932
|
+
}
|
|
933
933
|
declare function MarkdownProvider({ markdown, children }: MarkdownProviderProps): react_jsx_runtime.JSX.Element;
|
|
934
934
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
952
952
|
declare const Breadcrumb: ({ gap, seperator, data, routes, currentPath, navigate, styles, }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
953
953
|
|
|
954
|
-
interface BreadcrumbItemProps {
|
|
955
|
-
title: string;
|
|
956
|
-
href: string;
|
|
957
|
-
active: boolean;
|
|
958
|
-
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement>) => void;
|
|
959
|
-
}
|
|
954
|
+
interface BreadcrumbItemProps {
|
|
955
|
+
title: string;
|
|
956
|
+
href: string;
|
|
957
|
+
active: boolean;
|
|
958
|
+
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement>) => void;
|
|
959
|
+
}
|
|
960
960
|
declare function BreadcrumbItem({ title, href, active, onClick, }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
|
|
961
961
|
|
|
962
|
-
interface DrawerProps {
|
|
963
|
-
children?: React$1.ReactNode;
|
|
964
|
-
visibility: boolean;
|
|
965
|
-
side?: "left" | "right" | "top" | "bottom";
|
|
966
|
-
handleClose: () => void;
|
|
967
|
-
styles?: string;
|
|
968
|
-
}
|
|
962
|
+
interface DrawerProps {
|
|
963
|
+
children?: React$1.ReactNode;
|
|
964
|
+
visibility: boolean;
|
|
965
|
+
side?: "left" | "right" | "top" | "bottom";
|
|
966
|
+
handleClose: () => void;
|
|
967
|
+
styles?: string;
|
|
968
|
+
}
|
|
969
969
|
declare const Drawer: ({ children, visibility, side, handleClose, styles, }: DrawerProps) => react_jsx_runtime.JSX.Element;
|
|
970
970
|
|
|
971
|
-
interface DrawerTogglerProps {
|
|
972
|
-
icon?: ReactNode;
|
|
973
|
-
toggleDrawer?: () => void;
|
|
974
|
-
styles?: string;
|
|
975
|
-
}
|
|
971
|
+
interface DrawerTogglerProps {
|
|
972
|
+
icon?: ReactNode;
|
|
973
|
+
toggleDrawer?: () => void;
|
|
974
|
+
styles?: string;
|
|
975
|
+
}
|
|
976
976
|
declare function DrawerToggler({ icon, toggleDrawer, styles, }: DrawerTogglerProps): react_jsx_runtime.JSX.Element;
|
|
977
977
|
|
|
978
|
-
interface I_FooterNavItem {
|
|
979
|
-
component: any;
|
|
980
|
-
icon?: React$1.ReactNode;
|
|
981
|
-
name: string;
|
|
982
|
-
badge?: React$1.ReactNode;
|
|
983
|
-
to?: string;
|
|
984
|
-
onClick?: () => void;
|
|
985
|
-
}
|
|
986
|
-
interface I_FooterNavGroup {
|
|
987
|
-
component: any;
|
|
988
|
-
icon?: React$1.ReactNode;
|
|
989
|
-
name: string;
|
|
990
|
-
badge?: React$1.ReactNode;
|
|
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
|
-
}
|
|
978
|
+
interface I_FooterNavItem {
|
|
979
|
+
component: any;
|
|
980
|
+
icon?: React$1.ReactNode;
|
|
981
|
+
name: string;
|
|
982
|
+
badge?: React$1.ReactNode;
|
|
983
|
+
to?: string;
|
|
984
|
+
onClick?: () => void;
|
|
985
|
+
}
|
|
986
|
+
interface I_FooterNavGroup {
|
|
987
|
+
component: any;
|
|
988
|
+
icon?: React$1.ReactNode;
|
|
989
|
+
name: string;
|
|
990
|
+
badge?: React$1.ReactNode;
|
|
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
|
+
}
|
|
999
999
|
declare function FooterNav({ data, styles }: FooterNavProps): react_jsx_runtime.JSX.Element;
|
|
1000
1000
|
|
|
1001
|
-
interface FooterNavGroupProps {
|
|
1002
|
-
icon?: React$1.ReactNode;
|
|
1003
|
-
name: string;
|
|
1004
|
-
description: string;
|
|
1005
|
-
badge?: React$1.ReactNode;
|
|
1006
|
-
to?: string;
|
|
1007
|
-
children: React$1.ReactNode;
|
|
1008
|
-
styles?: string;
|
|
1009
|
-
}
|
|
1001
|
+
interface FooterNavGroupProps {
|
|
1002
|
+
icon?: React$1.ReactNode;
|
|
1003
|
+
name: string;
|
|
1004
|
+
description: string;
|
|
1005
|
+
badge?: React$1.ReactNode;
|
|
1006
|
+
to?: string;
|
|
1007
|
+
children: React$1.ReactNode;
|
|
1008
|
+
styles?: string;
|
|
1009
|
+
}
|
|
1010
1010
|
declare const FooterNavGroup: ({ icon, name, description, badge, to, styles, children, }: FooterNavGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1011
1011
|
|
|
1012
|
-
interface FooterNavItemProps {
|
|
1013
|
-
icon?: React$1.ReactNode;
|
|
1014
|
-
name: string;
|
|
1015
|
-
description: string;
|
|
1016
|
-
badge?: React$1.ReactNode;
|
|
1017
|
-
to?: string;
|
|
1018
|
-
onClick?: () => void;
|
|
1019
|
-
styles?: string;
|
|
1020
|
-
}
|
|
1012
|
+
interface FooterNavItemProps {
|
|
1013
|
+
icon?: React$1.ReactNode;
|
|
1014
|
+
name: string;
|
|
1015
|
+
description: string;
|
|
1016
|
+
badge?: React$1.ReactNode;
|
|
1017
|
+
to?: string;
|
|
1018
|
+
onClick?: () => void;
|
|
1019
|
+
styles?: string;
|
|
1020
|
+
}
|
|
1021
1021
|
declare const FooterNavItem: ({ icon, name, description, badge, to, onClick, styles, }: FooterNavItemProps) => react_jsx_runtime.JSX.Element;
|
|
1022
1022
|
|
|
1023
|
-
interface FooterNavItemTitleProps {
|
|
1024
|
-
icon?: React$1.ReactNode;
|
|
1025
|
-
name: string;
|
|
1026
|
-
description: string;
|
|
1027
|
-
badge?: React$1.ReactNode;
|
|
1028
|
-
styles?: string;
|
|
1029
|
-
}
|
|
1023
|
+
interface FooterNavItemTitleProps {
|
|
1024
|
+
icon?: React$1.ReactNode;
|
|
1025
|
+
name: string;
|
|
1026
|
+
description: string;
|
|
1027
|
+
badge?: React$1.ReactNode;
|
|
1028
|
+
styles?: string;
|
|
1029
|
+
}
|
|
1030
1030
|
declare const FooterNavItemTitle: ({ icon, name, description, badge, styles, }: FooterNavItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1031
1031
|
|
|
1032
|
-
interface FooterNavItemContextProps {
|
|
1033
|
-
icon?: React$1.ReactNode;
|
|
1034
|
-
name: string;
|
|
1035
|
-
description: string;
|
|
1036
|
-
badge?: React$1.ReactNode;
|
|
1037
|
-
}
|
|
1032
|
+
interface FooterNavItemContextProps {
|
|
1033
|
+
icon?: React$1.ReactNode;
|
|
1034
|
+
name: string;
|
|
1035
|
+
description: string;
|
|
1036
|
+
badge?: React$1.ReactNode;
|
|
1037
|
+
}
|
|
1038
1038
|
declare const FooterNavItemContext: ({ icon, name, description, badge, }: FooterNavItemContextProps) => react_jsx_runtime.JSX.Element;
|
|
1039
1039
|
|
|
1040
|
-
interface I_HeaderNavItem {
|
|
1041
|
-
component: any;
|
|
1042
|
-
icon?: React$1.ReactNode;
|
|
1043
|
-
name: string;
|
|
1044
|
-
badge?: React$1.ReactNode;
|
|
1045
|
-
to?: string;
|
|
1046
|
-
onClick?: () => void;
|
|
1047
|
-
}
|
|
1048
|
-
interface I_HeaderNavGroup {
|
|
1049
|
-
component: any;
|
|
1050
|
-
icon?: React$1.ReactNode;
|
|
1051
|
-
name: string;
|
|
1052
|
-
badge?: React$1.ReactNode;
|
|
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
|
-
}
|
|
1040
|
+
interface I_HeaderNavItem {
|
|
1041
|
+
component: any;
|
|
1042
|
+
icon?: React$1.ReactNode;
|
|
1043
|
+
name: string;
|
|
1044
|
+
badge?: React$1.ReactNode;
|
|
1045
|
+
to?: string;
|
|
1046
|
+
onClick?: () => void;
|
|
1047
|
+
}
|
|
1048
|
+
interface I_HeaderNavGroup {
|
|
1049
|
+
component: any;
|
|
1050
|
+
icon?: React$1.ReactNode;
|
|
1051
|
+
name: string;
|
|
1052
|
+
badge?: React$1.ReactNode;
|
|
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
|
+
}
|
|
1061
1061
|
declare function HeaderNav({ data, styles }: HeaderNavProps): react_jsx_runtime.JSX.Element;
|
|
1062
1062
|
|
|
1063
|
-
interface HeaderNavGroupProps {
|
|
1064
|
-
icon?: React$1.ReactNode;
|
|
1065
|
-
name: string;
|
|
1066
|
-
description: string;
|
|
1067
|
-
badge?: React$1.ReactNode;
|
|
1068
|
-
to?: string;
|
|
1069
|
-
children: React$1.ReactNode;
|
|
1070
|
-
styles?: string;
|
|
1071
|
-
}
|
|
1063
|
+
interface HeaderNavGroupProps {
|
|
1064
|
+
icon?: React$1.ReactNode;
|
|
1065
|
+
name: string;
|
|
1066
|
+
description: string;
|
|
1067
|
+
badge?: React$1.ReactNode;
|
|
1068
|
+
to?: string;
|
|
1069
|
+
children: React$1.ReactNode;
|
|
1070
|
+
styles?: string;
|
|
1071
|
+
}
|
|
1072
1072
|
declare const HeaderNavGroup: ({ icon, name, description, badge, to, styles, children, }: HeaderNavGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1073
1073
|
|
|
1074
|
-
interface HeaderNavItemProps {
|
|
1075
|
-
icon?: React$1.ReactNode;
|
|
1076
|
-
name: string;
|
|
1077
|
-
description: string;
|
|
1078
|
-
badge?: React$1.ReactNode;
|
|
1079
|
-
to?: string;
|
|
1080
|
-
onClick?: () => void;
|
|
1081
|
-
styles?: string;
|
|
1082
|
-
}
|
|
1074
|
+
interface HeaderNavItemProps {
|
|
1075
|
+
icon?: React$1.ReactNode;
|
|
1076
|
+
name: string;
|
|
1077
|
+
description: string;
|
|
1078
|
+
badge?: React$1.ReactNode;
|
|
1079
|
+
to?: string;
|
|
1080
|
+
onClick?: () => void;
|
|
1081
|
+
styles?: string;
|
|
1082
|
+
}
|
|
1083
1083
|
declare const HeaderNavItem: ({ icon, name, description, badge, to, onClick, styles, }: HeaderNavItemProps) => react_jsx_runtime.JSX.Element;
|
|
1084
1084
|
|
|
1085
|
-
interface HeaderNavItemTitleProps {
|
|
1086
|
-
icon?: React$1.ReactNode;
|
|
1087
|
-
name: string;
|
|
1088
|
-
description: string;
|
|
1089
|
-
badge?: React$1.ReactNode;
|
|
1090
|
-
styles?: string;
|
|
1091
|
-
}
|
|
1085
|
+
interface HeaderNavItemTitleProps {
|
|
1086
|
+
icon?: React$1.ReactNode;
|
|
1087
|
+
name: string;
|
|
1088
|
+
description: string;
|
|
1089
|
+
badge?: React$1.ReactNode;
|
|
1090
|
+
styles?: string;
|
|
1091
|
+
}
|
|
1092
1092
|
declare const HeaderNavItemTitle: ({ icon, name, description, badge, styles, }: HeaderNavItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1093
1093
|
|
|
1094
|
-
interface HeaderNavItemContextProps {
|
|
1095
|
-
icon?: React$1.ReactNode;
|
|
1096
|
-
name: string;
|
|
1097
|
-
description: string;
|
|
1098
|
-
badge?: React$1.ReactNode;
|
|
1099
|
-
}
|
|
1094
|
+
interface HeaderNavItemContextProps {
|
|
1095
|
+
icon?: React$1.ReactNode;
|
|
1096
|
+
name: string;
|
|
1097
|
+
description: string;
|
|
1098
|
+
badge?: React$1.ReactNode;
|
|
1099
|
+
}
|
|
1100
1100
|
declare const HeaderNavItemContext: ({ icon, name, description, badge, }: HeaderNavItemContextProps) => react_jsx_runtime.JSX.Element;
|
|
1101
1101
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
1113
1113
|
declare const Link: ({ children, href, target, variant, decoration, bold, italic, styles, onClick, }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
1114
1114
|
|
|
1115
|
-
type MenuElementType = "item" | "group" | "title";
|
|
1116
|
-
interface BaseMenuNode {
|
|
1117
|
-
key?: string;
|
|
1118
|
-
name: string;
|
|
1119
|
-
icon?: React$1.ReactNode;
|
|
1120
|
-
badge?: React$1.ReactNode;
|
|
1121
|
-
className?: string;
|
|
1122
|
-
component?: React$1.ElementType;
|
|
1123
|
-
}
|
|
1124
|
-
interface MenuItemNode extends BaseMenuNode {
|
|
1125
|
-
type: "item";
|
|
1126
|
-
to?: string;
|
|
1127
|
-
navigate?: (to: string) => void;
|
|
1128
|
-
onClick?: (e: React$1.MouseEvent<HTMLDivElement>) => void;
|
|
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?: React$1.ElementType;
|
|
1140
|
-
group?: React$1.ElementType;
|
|
1141
|
-
title?: React$1.ElementType;
|
|
1142
|
-
}
|
|
1143
|
-
interface MenuProps {
|
|
1144
|
-
items: MenuNode[];
|
|
1145
|
-
defaultMenuElements?: DefaultMenuElements;
|
|
1146
|
-
className?: string;
|
|
1147
|
-
navigate?: (to: string) => void;
|
|
1148
|
-
currentPath?: string;
|
|
1115
|
+
type MenuElementType = "item" | "group" | "title";
|
|
1116
|
+
interface BaseMenuNode {
|
|
1117
|
+
key?: string;
|
|
1118
|
+
name: string;
|
|
1119
|
+
icon?: React$1.ReactNode;
|
|
1120
|
+
badge?: React$1.ReactNode;
|
|
1121
|
+
className?: string;
|
|
1122
|
+
component?: React$1.ElementType;
|
|
1123
|
+
}
|
|
1124
|
+
interface MenuItemNode extends BaseMenuNode {
|
|
1125
|
+
type: "item";
|
|
1126
|
+
to?: string;
|
|
1127
|
+
navigate?: (to: string) => void;
|
|
1128
|
+
onClick?: (e: React$1.MouseEvent<HTMLDivElement>) => void;
|
|
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?: React$1.ElementType;
|
|
1140
|
+
group?: React$1.ElementType;
|
|
1141
|
+
title?: React$1.ElementType;
|
|
1142
|
+
}
|
|
1143
|
+
interface MenuProps {
|
|
1144
|
+
items: MenuNode[];
|
|
1145
|
+
defaultMenuElements?: DefaultMenuElements;
|
|
1146
|
+
className?: string;
|
|
1147
|
+
navigate?: (to: string) => void;
|
|
1148
|
+
currentPath?: string;
|
|
1149
1149
|
}
|
|
1150
1150
|
|
|
1151
1151
|
declare const Menu: ({ items, className, navigate, defaultMenuElements, currentPath, }: MenuProps) => react_jsx_runtime.JSX.Element;
|
|
1152
1152
|
|
|
1153
|
-
interface MenuGroupProps extends BaseComponentProps {
|
|
1154
|
-
icon?: React$1.ReactNode;
|
|
1155
|
-
name: string;
|
|
1156
|
-
badge?: React$1.ReactNode;
|
|
1157
|
-
to?: string;
|
|
1158
|
-
children: React$1.ReactNode;
|
|
1159
|
-
defaultOpen?: boolean;
|
|
1160
|
-
}
|
|
1153
|
+
interface MenuGroupProps extends BaseComponentProps {
|
|
1154
|
+
icon?: React$1.ReactNode;
|
|
1155
|
+
name: string;
|
|
1156
|
+
badge?: React$1.ReactNode;
|
|
1157
|
+
to?: string;
|
|
1158
|
+
children: React$1.ReactNode;
|
|
1159
|
+
defaultOpen?: boolean;
|
|
1160
|
+
}
|
|
1161
1161
|
declare const MenuGroup: ({ icon, name, badge, children, defaultOpen, className, style, ...rest }: MenuGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1162
1162
|
|
|
1163
|
-
interface MenuItemProps extends BaseComponentProps {
|
|
1164
|
-
icon?: React$1.ReactNode;
|
|
1165
|
-
name: string;
|
|
1166
|
-
badge?: React$1.ReactNode;
|
|
1167
|
-
to?: string;
|
|
1168
|
-
navigate?: (to: string) => void;
|
|
1169
|
-
}
|
|
1163
|
+
interface MenuItemProps extends BaseComponentProps {
|
|
1164
|
+
icon?: React$1.ReactNode;
|
|
1165
|
+
name: string;
|
|
1166
|
+
badge?: React$1.ReactNode;
|
|
1167
|
+
to?: string;
|
|
1168
|
+
navigate?: (to: string) => void;
|
|
1169
|
+
}
|
|
1170
1170
|
declare const MenuItem: ({ icon, name, badge, to, navigate, className, onClick, ...rest }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
1171
1171
|
|
|
1172
|
-
interface MenuItemTitleProps extends BaseComponentProps {
|
|
1173
|
-
icon?: React$1.ReactNode;
|
|
1174
|
-
name: string;
|
|
1175
|
-
badge?: React$1.ReactNode;
|
|
1176
|
-
}
|
|
1172
|
+
interface MenuItemTitleProps extends BaseComponentProps {
|
|
1173
|
+
icon?: React$1.ReactNode;
|
|
1174
|
+
name: string;
|
|
1175
|
+
badge?: React$1.ReactNode;
|
|
1176
|
+
}
|
|
1177
1177
|
declare const MenuItemTitle: ({ icon, name, badge, className, style, ...rest }: MenuItemTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1178
1178
|
|
|
1179
|
-
interface RouteTabProps extends BaseComponentProps {
|
|
1180
|
-
title: string;
|
|
1181
|
-
selected?: boolean;
|
|
1182
|
-
onClick?: () => void;
|
|
1183
|
-
}
|
|
1179
|
+
interface RouteTabProps extends BaseComponentProps {
|
|
1180
|
+
title: string;
|
|
1181
|
+
selected?: boolean;
|
|
1182
|
+
onClick?: () => void;
|
|
1183
|
+
}
|
|
1184
1184
|
declare function RouteTab({ title, onClick, selected, className, ...rest }: RouteTabProps): react_jsx_runtime.JSX.Element;
|
|
1185
1185
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
1199
1199
|
declare function RouteTabs({ navData, children, onTabClick, mode, defaultActive, animated, className, ...rest }: RouteTabsProps): react_jsx_runtime.JSX.Element;
|
|
1200
1200
|
|
|
1201
|
-
interface ModalProps {
|
|
1202
|
-
title: string;
|
|
1203
|
-
show: boolean;
|
|
1204
|
-
handleOnClose?: () => void;
|
|
1205
|
-
children?: React$1.ReactNode;
|
|
1206
|
-
enableCloseOnClickOutside?: boolean;
|
|
1207
|
-
isLoading?: boolean;
|
|
1208
|
-
isSuccess?: boolean;
|
|
1209
|
-
isError?: boolean;
|
|
1210
|
-
error?: unknown;
|
|
1211
|
-
styles?: string;
|
|
1212
|
-
shape?: keyof typeof Shape;
|
|
1213
|
-
}
|
|
1201
|
+
interface ModalProps {
|
|
1202
|
+
title: string;
|
|
1203
|
+
show: boolean;
|
|
1204
|
+
handleOnClose?: () => void;
|
|
1205
|
+
children?: React$1.ReactNode;
|
|
1206
|
+
enableCloseOnClickOutside?: boolean;
|
|
1207
|
+
isLoading?: boolean;
|
|
1208
|
+
isSuccess?: boolean;
|
|
1209
|
+
isError?: boolean;
|
|
1210
|
+
error?: unknown;
|
|
1211
|
+
styles?: string;
|
|
1212
|
+
shape?: keyof typeof Shape;
|
|
1213
|
+
}
|
|
1214
1214
|
declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, shape, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
1215
1215
|
|
|
1216
|
-
interface UnderConstructionBannerProps {
|
|
1217
|
-
text?: string;
|
|
1218
|
-
}
|
|
1216
|
+
interface UnderConstructionBannerProps {
|
|
1217
|
+
text?: string;
|
|
1218
|
+
}
|
|
1219
1219
|
declare function UnderConstructionBanner({ text, }: UnderConstructionBannerProps): react_jsx_runtime.JSX.Element;
|
|
1220
1220
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
1230
1230
|
declare function Accordion({ summary, children, lhsActions, rhsActions, defaultCollapse, toggleOnSummaryClick, enableChildrenPadding, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
1231
1231
|
|
|
1232
|
-
declare const hoverAnimations: {
|
|
1233
|
-
none: string;
|
|
1234
|
-
lift: string;
|
|
1235
|
-
scale: string;
|
|
1236
|
-
glow: string;
|
|
1237
|
-
borderGlow: string;
|
|
1238
|
-
softLift: string;
|
|
1232
|
+
declare const hoverAnimations: {
|
|
1233
|
+
none: string;
|
|
1234
|
+
lift: string;
|
|
1235
|
+
scale: string;
|
|
1236
|
+
glow: string;
|
|
1237
|
+
borderGlow: string;
|
|
1238
|
+
softLift: string;
|
|
1239
1239
|
};
|
|
1240
1240
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
1251
1251
|
declare function Card({ children, styles, bgVariant, borderVariant, interactive, ghost, shape, hoverAnimation, }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1252
1252
|
|
|
1253
|
-
interface CardHeaderProps {
|
|
1254
|
-
icon?: React$1.ReactNode;
|
|
1255
|
-
title?: string;
|
|
1256
|
-
description?: string;
|
|
1257
|
-
className?: string;
|
|
1258
|
-
}
|
|
1253
|
+
interface CardHeaderProps {
|
|
1254
|
+
icon?: React$1.ReactNode;
|
|
1255
|
+
title?: string;
|
|
1256
|
+
description?: string;
|
|
1257
|
+
className?: string;
|
|
1258
|
+
}
|
|
1259
1259
|
declare function CardHeader({ icon, title, description, className }: CardHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1260
1260
|
|
|
1261
|
-
interface CardContentProps {
|
|
1262
|
-
children?: React$1.ReactNode;
|
|
1263
|
-
className?: string;
|
|
1264
|
-
}
|
|
1261
|
+
interface CardContentProps {
|
|
1262
|
+
children?: React$1.ReactNode;
|
|
1263
|
+
className?: string;
|
|
1264
|
+
}
|
|
1265
1265
|
declare function CardContent({ children, className }: CardContentProps): react_jsx_runtime.JSX.Element;
|
|
1266
1266
|
|
|
1267
|
-
interface CardFooterProps {
|
|
1268
|
-
children?: React$1.ReactNode;
|
|
1269
|
-
className?: string;
|
|
1270
|
-
}
|
|
1267
|
+
interface CardFooterProps {
|
|
1268
|
+
children?: React$1.ReactNode;
|
|
1269
|
+
className?: string;
|
|
1270
|
+
}
|
|
1271
1271
|
declare function CardFooter({ children, className }: CardFooterProps): react_jsx_runtime.JSX.Element;
|
|
1272
1272
|
|
|
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?: React$1.ComponentType<any>;
|
|
1314
|
-
customOverlay?: React$1.ComponentType<any>;
|
|
1315
|
-
}
|
|
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?: React$1.ComponentType<any>;
|
|
1314
|
+
customOverlay?: React$1.ComponentType<any>;
|
|
1315
|
+
}
|
|
1316
1316
|
declare function MotionSurface({ children, animationVariant, animationConfig, animated, overlay, overlayConfig, className, customAnimation: CustomAnimation, customOverlay: CustomOverlay, }: MotionSurfaceProps): react_jsx_runtime.JSX.Element;
|
|
1317
1317
|
|
|
1318
|
-
interface ThemeContextProps {
|
|
1319
|
-
theme: "light" | "dark";
|
|
1320
|
-
setTheme: (theme: "light" | "dark") => void;
|
|
1321
|
-
toggleTheme: () => void;
|
|
1322
|
-
}
|
|
1323
|
-
declare const ThemeContext: React$1.Context<ThemeContextProps | undefined>;
|
|
1324
|
-
interface ThemeProviderProps {
|
|
1325
|
-
defaultTheme?: "light" | "dark";
|
|
1326
|
-
children: ReactNode;
|
|
1327
|
-
}
|
|
1318
|
+
interface ThemeContextProps {
|
|
1319
|
+
theme: "light" | "dark";
|
|
1320
|
+
setTheme: (theme: "light" | "dark") => void;
|
|
1321
|
+
toggleTheme: () => void;
|
|
1322
|
+
}
|
|
1323
|
+
declare const ThemeContext: React$1.Context<ThemeContextProps | undefined>;
|
|
1324
|
+
interface ThemeProviderProps {
|
|
1325
|
+
defaultTheme?: "light" | "dark";
|
|
1326
|
+
children: ReactNode;
|
|
1327
|
+
}
|
|
1328
1328
|
declare const ThemeProvider: ({ defaultTheme, children, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1329
1329
|
|
|
1330
1330
|
declare const ThemeSwitch: () => react_jsx_runtime.JSX.Element | null;
|
|
1331
1331
|
|
|
1332
1332
|
declare const ShapeSwitch: () => react_jsx_runtime.JSX.Element;
|
|
1333
1333
|
|
|
1334
|
-
interface AsyncComponentWrapperProps {
|
|
1335
|
-
children: React$1.ReactNode;
|
|
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
|
-
}
|
|
1334
|
+
interface AsyncComponentWrapperProps {
|
|
1335
|
+
children: React$1.ReactNode;
|
|
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
|
+
}
|
|
1345
1345
|
declare function AsyncComponentWrapper({ children, isLoading, isSuccess, isError, error, errorFormatter, }: AsyncComponentWrapperProps): react_jsx_runtime.JSX.Element;
|
|
1346
1346
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
1355
1355
|
declare const GlowWrapper: FC<GlowWrapperProps>;
|
|
1356
1356
|
|
|
1357
|
-
interface ShowMoreProps {
|
|
1358
|
-
text: string;
|
|
1359
|
-
limit: number;
|
|
1360
|
-
}
|
|
1357
|
+
interface ShowMoreProps {
|
|
1358
|
+
text: string;
|
|
1359
|
+
limit: number;
|
|
1360
|
+
}
|
|
1361
1361
|
declare function ShowMore({ text, limit }: ShowMoreProps): react_jsx_runtime.JSX.Element;
|
|
1362
1362
|
|
|
1363
|
-
interface CommentAuthor {
|
|
1364
|
-
id: string;
|
|
1365
|
-
username: string;
|
|
1366
|
-
avatar?: string;
|
|
1367
|
-
firstName?: string;
|
|
1368
|
-
lastName?: string;
|
|
1369
|
-
}
|
|
1370
|
-
interface CommentPermissions {
|
|
1371
|
-
canEdit?: boolean;
|
|
1372
|
-
canDelete?: boolean;
|
|
1373
|
-
canReply?: boolean;
|
|
1374
|
-
canReport?: boolean;
|
|
1375
|
-
}
|
|
1376
|
-
interface CommentEntity {
|
|
1377
|
-
id: string;
|
|
1378
|
-
postId: string;
|
|
1379
|
-
parentCommentId: string | null;
|
|
1380
|
-
content: string;
|
|
1381
|
-
edited: boolean;
|
|
1382
|
-
likes: number;
|
|
1383
|
-
dislikes: number;
|
|
1384
|
-
liked: boolean;
|
|
1385
|
-
disliked: boolean;
|
|
1386
|
-
replyCount: number;
|
|
1387
|
-
createdAt: string;
|
|
1388
|
-
updatedAt: string;
|
|
1389
|
-
author: CommentAuthor | null;
|
|
1390
|
-
permissions?: CommentPermissions;
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
interface CreateCommentInput {
|
|
1394
|
-
content: string;
|
|
1395
|
-
parentCommentId?: string | null;
|
|
1396
|
-
}
|
|
1397
|
-
interface UpdateCommentInput {
|
|
1398
|
-
id: string;
|
|
1399
|
-
content: string;
|
|
1400
|
-
}
|
|
1401
|
-
interface ToggleReactionResult {
|
|
1402
|
-
likes: number;
|
|
1403
|
-
dislikes: number;
|
|
1404
|
-
liked: boolean;
|
|
1405
|
-
disliked: boolean;
|
|
1406
|
-
}
|
|
1407
|
-
interface CommentQueryOptions {
|
|
1408
|
-
parentCommentId?: string | null;
|
|
1409
|
-
limit?: number;
|
|
1410
|
-
cursor?: string;
|
|
1411
|
-
sort?: "newest" | "oldest" | "top";
|
|
1412
|
-
}
|
|
1413
|
-
interface CommentPageResult {
|
|
1414
|
-
items: CommentEntity[];
|
|
1415
|
-
nextCursor?: string | null;
|
|
1416
|
-
hasMore: boolean;
|
|
1417
|
-
}
|
|
1418
|
-
interface CommentDataSource {
|
|
1419
|
-
/**
|
|
1420
|
-
* Load root comments
|
|
1421
|
-
*/
|
|
1422
|
-
getComments(options?: CommentQueryOptions): Promise<CommentPageResult>;
|
|
1423
|
-
/**
|
|
1424
|
-
* Load replies for a specific comment
|
|
1425
|
-
*/
|
|
1426
|
-
getReplies(commentId: string, options?: Omit<CommentQueryOptions, "parentCommentId">): Promise<CommentPageResult>;
|
|
1427
|
-
/**
|
|
1428
|
-
* Create root comment or reply
|
|
1429
|
-
*/
|
|
1430
|
-
createComment(input: CreateCommentInput): Promise<CommentEntity>;
|
|
1431
|
-
/**
|
|
1432
|
-
* Update comment
|
|
1433
|
-
*/
|
|
1434
|
-
updateComment(input: UpdateCommentInput): Promise<CommentEntity>;
|
|
1435
|
-
/**
|
|
1436
|
-
* Delete comment
|
|
1437
|
-
*/
|
|
1438
|
-
deleteComment(commentId: string): Promise<void>;
|
|
1439
|
-
/**
|
|
1440
|
-
* Toggle like
|
|
1441
|
-
*/
|
|
1442
|
-
toggleLike(commentId: string): Promise<ToggleReactionResult>;
|
|
1443
|
-
/**
|
|
1444
|
-
* Toggle dislike
|
|
1445
|
-
*/
|
|
1446
|
-
toggleDislike(commentId: string): Promise<ToggleReactionResult>;
|
|
1447
|
-
/**
|
|
1448
|
-
* Report comment
|
|
1449
|
-
*/
|
|
1450
|
-
reportComment?(commentId: string, reason: string, description?: string): Promise<void>;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
interface CommentHeaderProps {
|
|
1454
|
-
comment: CommentEntity;
|
|
1455
|
-
config: Required<CommentThreadConfig>;
|
|
1456
|
-
}
|
|
1457
|
-
interface CommentContentProps {
|
|
1458
|
-
comment: CommentEntity;
|
|
1459
|
-
}
|
|
1460
|
-
interface CommentActionsProps {
|
|
1461
|
-
comment: CommentEntity;
|
|
1462
|
-
onLike?: () => void;
|
|
1463
|
-
onDislike?: () => void;
|
|
1464
|
-
onReply?: () => void;
|
|
1465
|
-
}
|
|
1466
|
-
interface CommentMenuProps {
|
|
1467
|
-
comment: CommentEntity;
|
|
1468
|
-
open: boolean;
|
|
1469
|
-
setOpen: (open: boolean) => void;
|
|
1470
|
-
canEdit?: boolean;
|
|
1471
|
-
canDelete?: boolean;
|
|
1472
|
-
canReport?: boolean;
|
|
1473
|
-
onEdit?: () => void;
|
|
1474
|
-
onDelete?: () => void;
|
|
1475
|
-
onReport?: () => void;
|
|
1476
|
-
}
|
|
1477
|
-
interface CommentComposerProps {
|
|
1478
|
-
avatar?: string;
|
|
1479
|
-
placeholder?: string;
|
|
1480
|
-
submitLabel?: string;
|
|
1481
|
-
disabled?: boolean;
|
|
1482
|
-
loading?: boolean;
|
|
1483
|
-
onSubmit: (content: string) => Promise<void> | void;
|
|
1484
|
-
}
|
|
1485
|
-
interface ReplyComposerProps {
|
|
1486
|
-
avatar?: string;
|
|
1487
|
-
username?: string;
|
|
1488
|
-
placeholder?: string;
|
|
1489
|
-
submitLabel?: string;
|
|
1490
|
-
disabled?: boolean;
|
|
1491
|
-
loading?: boolean;
|
|
1492
|
-
onSubmit: (content: string) => Promise<void> | void;
|
|
1493
|
-
}
|
|
1494
|
-
interface CommentRepliesToggleProps {
|
|
1495
|
-
collapsed: boolean;
|
|
1496
|
-
repliesCount: number;
|
|
1497
|
-
loading?: boolean;
|
|
1498
|
-
onToggle: () => void;
|
|
1499
|
-
}
|
|
1500
|
-
interface CommentItemProps {
|
|
1501
|
-
comment: CommentEntity;
|
|
1502
|
-
replies?: CommentEntity[];
|
|
1503
|
-
allReplies?: Record<string, CommentEntity[]>;
|
|
1504
|
-
depth?: number;
|
|
1505
|
-
config: Required<CommentThreadConfig>;
|
|
1506
|
-
components?: CommentComponents;
|
|
1507
|
-
onLike?: (comment: CommentEntity) => void;
|
|
1508
|
-
onDislike?: (comment: CommentEntity) => void;
|
|
1509
|
-
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
1510
|
-
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
1511
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1512
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
1513
|
-
onReport?: (comment: CommentEntity) => void;
|
|
1514
|
-
}
|
|
1515
|
-
interface CommentListProps {
|
|
1516
|
-
comments: CommentEntity[];
|
|
1517
|
-
replies?: Record<string, CommentEntity[]>;
|
|
1518
|
-
depth?: number;
|
|
1519
|
-
config: Required<CommentThreadConfig>;
|
|
1520
|
-
components?: CommentComponents;
|
|
1521
|
-
onLike?: (comment: CommentEntity) => void;
|
|
1522
|
-
onDislike?: (comment: CommentEntity) => void;
|
|
1523
|
-
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
1524
|
-
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
1525
|
-
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1526
|
-
onDelete?: (comment: CommentEntity) => void;
|
|
1527
|
-
onReport?: (comment: CommentEntity) => void;
|
|
1528
|
-
}
|
|
1529
|
-
interface CommentThreadProps {
|
|
1530
|
-
postId: string;
|
|
1531
|
-
currentUser: CommentAuthor;
|
|
1532
|
-
dataSource: CommentDataSource;
|
|
1533
|
-
loading?: boolean;
|
|
1534
|
-
components?: CommentComponents;
|
|
1535
|
-
config?: CommentThreadConfig;
|
|
1536
|
-
updatedComment?: CommentEntity | null;
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1363
|
+
interface CommentAuthor {
|
|
1364
|
+
id: string;
|
|
1365
|
+
username: string;
|
|
1366
|
+
avatar?: string;
|
|
1367
|
+
firstName?: string;
|
|
1368
|
+
lastName?: string;
|
|
1369
|
+
}
|
|
1370
|
+
interface CommentPermissions {
|
|
1371
|
+
canEdit?: boolean;
|
|
1372
|
+
canDelete?: boolean;
|
|
1373
|
+
canReply?: boolean;
|
|
1374
|
+
canReport?: boolean;
|
|
1375
|
+
}
|
|
1376
|
+
interface CommentEntity {
|
|
1377
|
+
id: string;
|
|
1378
|
+
postId: string;
|
|
1379
|
+
parentCommentId: string | null;
|
|
1380
|
+
content: string;
|
|
1381
|
+
edited: boolean;
|
|
1382
|
+
likes: number;
|
|
1383
|
+
dislikes: number;
|
|
1384
|
+
liked: boolean;
|
|
1385
|
+
disliked: boolean;
|
|
1386
|
+
replyCount: number;
|
|
1387
|
+
createdAt: string;
|
|
1388
|
+
updatedAt: string;
|
|
1389
|
+
author: CommentAuthor | null;
|
|
1390
|
+
permissions?: CommentPermissions;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
interface CreateCommentInput {
|
|
1394
|
+
content: string;
|
|
1395
|
+
parentCommentId?: string | null;
|
|
1396
|
+
}
|
|
1397
|
+
interface UpdateCommentInput {
|
|
1398
|
+
id: string;
|
|
1399
|
+
content: string;
|
|
1400
|
+
}
|
|
1401
|
+
interface ToggleReactionResult {
|
|
1402
|
+
likes: number;
|
|
1403
|
+
dislikes: number;
|
|
1404
|
+
liked: boolean;
|
|
1405
|
+
disliked: boolean;
|
|
1406
|
+
}
|
|
1407
|
+
interface CommentQueryOptions {
|
|
1408
|
+
parentCommentId?: string | null;
|
|
1409
|
+
limit?: number;
|
|
1410
|
+
cursor?: string;
|
|
1411
|
+
sort?: "newest" | "oldest" | "top";
|
|
1412
|
+
}
|
|
1413
|
+
interface CommentPageResult {
|
|
1414
|
+
items: CommentEntity[];
|
|
1415
|
+
nextCursor?: string | null;
|
|
1416
|
+
hasMore: boolean;
|
|
1417
|
+
}
|
|
1418
|
+
interface CommentDataSource {
|
|
1419
|
+
/**
|
|
1420
|
+
* Load root comments
|
|
1421
|
+
*/
|
|
1422
|
+
getComments(options?: CommentQueryOptions): Promise<CommentPageResult>;
|
|
1423
|
+
/**
|
|
1424
|
+
* Load replies for a specific comment
|
|
1425
|
+
*/
|
|
1426
|
+
getReplies(commentId: string, options?: Omit<CommentQueryOptions, "parentCommentId">): Promise<CommentPageResult>;
|
|
1427
|
+
/**
|
|
1428
|
+
* Create root comment or reply
|
|
1429
|
+
*/
|
|
1430
|
+
createComment(input: CreateCommentInput): Promise<CommentEntity>;
|
|
1431
|
+
/**
|
|
1432
|
+
* Update comment
|
|
1433
|
+
*/
|
|
1434
|
+
updateComment(input: UpdateCommentInput): Promise<CommentEntity>;
|
|
1435
|
+
/**
|
|
1436
|
+
* Delete comment
|
|
1437
|
+
*/
|
|
1438
|
+
deleteComment(commentId: string): Promise<void>;
|
|
1439
|
+
/**
|
|
1440
|
+
* Toggle like
|
|
1441
|
+
*/
|
|
1442
|
+
toggleLike(commentId: string): Promise<ToggleReactionResult>;
|
|
1443
|
+
/**
|
|
1444
|
+
* Toggle dislike
|
|
1445
|
+
*/
|
|
1446
|
+
toggleDislike(commentId: string): Promise<ToggleReactionResult>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Report comment
|
|
1449
|
+
*/
|
|
1450
|
+
reportComment?(commentId: string, reason: string, description?: string): Promise<void>;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
interface CommentHeaderProps {
|
|
1454
|
+
comment: CommentEntity;
|
|
1455
|
+
config: Required<CommentThreadConfig>;
|
|
1456
|
+
}
|
|
1457
|
+
interface CommentContentProps {
|
|
1458
|
+
comment: CommentEntity;
|
|
1459
|
+
}
|
|
1460
|
+
interface CommentActionsProps {
|
|
1461
|
+
comment: CommentEntity;
|
|
1462
|
+
onLike?: () => void;
|
|
1463
|
+
onDislike?: () => void;
|
|
1464
|
+
onReply?: () => void;
|
|
1465
|
+
}
|
|
1466
|
+
interface CommentMenuProps {
|
|
1467
|
+
comment: CommentEntity;
|
|
1468
|
+
open: boolean;
|
|
1469
|
+
setOpen: (open: boolean) => void;
|
|
1470
|
+
canEdit?: boolean;
|
|
1471
|
+
canDelete?: boolean;
|
|
1472
|
+
canReport?: boolean;
|
|
1473
|
+
onEdit?: () => void;
|
|
1474
|
+
onDelete?: () => void;
|
|
1475
|
+
onReport?: () => void;
|
|
1476
|
+
}
|
|
1477
|
+
interface CommentComposerProps {
|
|
1478
|
+
avatar?: string;
|
|
1479
|
+
placeholder?: string;
|
|
1480
|
+
submitLabel?: string;
|
|
1481
|
+
disabled?: boolean;
|
|
1482
|
+
loading?: boolean;
|
|
1483
|
+
onSubmit: (content: string) => Promise<void> | void;
|
|
1484
|
+
}
|
|
1485
|
+
interface ReplyComposerProps {
|
|
1486
|
+
avatar?: string;
|
|
1487
|
+
username?: string;
|
|
1488
|
+
placeholder?: string;
|
|
1489
|
+
submitLabel?: string;
|
|
1490
|
+
disabled?: boolean;
|
|
1491
|
+
loading?: boolean;
|
|
1492
|
+
onSubmit: (content: string) => Promise<void> | void;
|
|
1493
|
+
}
|
|
1494
|
+
interface CommentRepliesToggleProps {
|
|
1495
|
+
collapsed: boolean;
|
|
1496
|
+
repliesCount: number;
|
|
1497
|
+
loading?: boolean;
|
|
1498
|
+
onToggle: () => void;
|
|
1499
|
+
}
|
|
1500
|
+
interface CommentItemProps {
|
|
1501
|
+
comment: CommentEntity;
|
|
1502
|
+
replies?: CommentEntity[];
|
|
1503
|
+
allReplies?: Record<string, CommentEntity[]>;
|
|
1504
|
+
depth?: number;
|
|
1505
|
+
config: Required<CommentThreadConfig>;
|
|
1506
|
+
components?: CommentComponents;
|
|
1507
|
+
onLike?: (comment: CommentEntity) => void;
|
|
1508
|
+
onDislike?: (comment: CommentEntity) => void;
|
|
1509
|
+
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
1510
|
+
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
1511
|
+
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1512
|
+
onDelete?: (comment: CommentEntity) => void;
|
|
1513
|
+
onReport?: (comment: CommentEntity) => void;
|
|
1514
|
+
}
|
|
1515
|
+
interface CommentListProps {
|
|
1516
|
+
comments: CommentEntity[];
|
|
1517
|
+
replies?: Record<string, CommentEntity[]>;
|
|
1518
|
+
depth?: number;
|
|
1519
|
+
config: Required<CommentThreadConfig>;
|
|
1520
|
+
components?: CommentComponents;
|
|
1521
|
+
onLike?: (comment: CommentEntity) => void;
|
|
1522
|
+
onDislike?: (comment: CommentEntity) => void;
|
|
1523
|
+
onReply?: (comment: CommentEntity, content: string) => Promise<void> | void;
|
|
1524
|
+
onLoadReplies?: (comment: CommentEntity) => Promise<void> | void;
|
|
1525
|
+
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1526
|
+
onDelete?: (comment: CommentEntity) => void;
|
|
1527
|
+
onReport?: (comment: CommentEntity) => void;
|
|
1528
|
+
}
|
|
1529
|
+
interface CommentThreadProps {
|
|
1530
|
+
postId: string;
|
|
1531
|
+
currentUser: CommentAuthor;
|
|
1532
|
+
dataSource: CommentDataSource;
|
|
1533
|
+
loading?: boolean;
|
|
1534
|
+
components?: CommentComponents;
|
|
1535
|
+
config?: CommentThreadConfig;
|
|
1536
|
+
updatedComment?: CommentEntity | null;
|
|
1537
|
+
deletedComment?: CommentEntity | null;
|
|
1538
|
+
onEdit?: (comment: CommentEntity) => CommentEntity | void | Promise<CommentEntity | void>;
|
|
1539
|
+
onDelete?: (comment: CommentEntity) => void;
|
|
1540
|
+
onReport?: (comment: CommentEntity) => void;
|
|
1541
|
+
}
|
|
1542
|
+
interface CommentThreadConfig {
|
|
1543
|
+
maxDepth?: number;
|
|
1544
|
+
indentation?: number;
|
|
1545
|
+
dateFormat?: "relative" | "absolute";
|
|
1546
|
+
commentsPerPage?: number;
|
|
1547
|
+
repliesPerPage?: number;
|
|
1548
|
+
}
|
|
1549
|
+
interface CommentComponents {
|
|
1550
|
+
/**
|
|
1551
|
+
* Root comment composer
|
|
1552
|
+
*/
|
|
1553
|
+
Composer?: ComponentType<CommentComposerProps>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Comment header section
|
|
1556
|
+
*/
|
|
1557
|
+
Header?: ComponentType<CommentHeaderProps>;
|
|
1558
|
+
/**
|
|
1559
|
+
* Comment content renderer
|
|
1560
|
+
*/
|
|
1561
|
+
Content?: ComponentType<CommentContentProps>;
|
|
1562
|
+
/**
|
|
1563
|
+
* Like / Dislike / Reply actions
|
|
1564
|
+
*/
|
|
1565
|
+
Actions?: ComponentType<CommentActionsProps>;
|
|
1566
|
+
/**
|
|
1567
|
+
* Comment menu (Edit/Delete/Report)
|
|
1568
|
+
*/
|
|
1569
|
+
Menu?: ComponentType<CommentMenuProps>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Reply composer shown below a comment
|
|
1572
|
+
*/
|
|
1573
|
+
ReplyComposer?: ComponentType<ReplyComposerProps>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Replies expand/collapse component
|
|
1576
|
+
*/
|
|
1577
|
+
RepliesToggle?: ComponentType<CommentRepliesToggleProps>;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
declare function CommentThread({ currentUser, dataSource, loading, components, config, updatedComment, deletedComment, onEdit, onDelete, onReport, }: CommentThreadProps): react_jsx_runtime.JSX.Element;
|
|
1581
|
+
|
|
1582
|
+
declare function getOptimisticLikeState(comment: CommentEntity): ToggleReactionResult;
|
|
1583
|
+
declare function getOptimisticDislikeState(comment: CommentEntity): ToggleReactionResult;
|
|
1584
|
+
declare function applyReactionState(comment: CommentEntity, reaction: ToggleReactionResult): CommentEntity;
|
|
1580
1585
|
|
|
1581
1586
|
declare function formatCommentDate(date: string, format?: "relative" | "absolute"): string;
|
|
1582
1587
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1588
|
+
declare function removeComment(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
1589
|
+
declare function incrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
1590
|
+
declare function decrementReplyCount(comments: CommentEntity[], commentId: string): CommentEntity[];
|
|
1591
|
+
|
|
1592
|
+
type CommentReplyCache = Record<string, CommentEntity[]>;
|
|
1593
|
+
declare function addReplyToCache(cache: CommentReplyCache, parentCommentId: string, reply: CommentEntity): CommentReplyCache;
|
|
1594
|
+
declare function updateReplyCacheComment(cache: CommentReplyCache, commentId: string, updater: (comment: CommentEntity) => CommentEntity): CommentReplyCache;
|
|
1595
|
+
declare function removeCommentTreeFromCache(cache: CommentReplyCache, commentId: string): CommentReplyCache;
|
|
1596
|
+
|
|
1597
|
+
declare function updateComment(comments: CommentEntity[], commentId: string, updater: (comment: CommentEntity) => CommentEntity): CommentEntity[];
|
|
1598
|
+
|
|
1599
|
+
type SortOption = {
|
|
1600
|
+
value: string;
|
|
1601
|
+
label: string;
|
|
1602
|
+
};
|
|
1603
|
+
interface DataViewTableProps<T> {
|
|
1604
|
+
title?: string;
|
|
1605
|
+
columns: TableColumnConfig<T>[];
|
|
1606
|
+
data: T[];
|
|
1607
|
+
sortOptions?: SortOption[];
|
|
1608
|
+
sortConfig?: Record<string, SortConfig<T>>;
|
|
1609
|
+
searchPlaceholder?: string;
|
|
1610
|
+
defaultPageSize?: number;
|
|
1611
|
+
isLoading?: boolean;
|
|
1612
|
+
isSuccess?: boolean;
|
|
1613
|
+
isError?: boolean;
|
|
1614
|
+
error?: unknown;
|
|
1615
|
+
}
|
|
1600
1616
|
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;
|
|
1601
1617
|
|
|
1602
|
-
interface DocumentationPanelProps {
|
|
1603
|
-
value: string;
|
|
1604
|
-
toc?: boolean;
|
|
1605
|
-
}
|
|
1618
|
+
interface DocumentationPanelProps {
|
|
1619
|
+
value: string;
|
|
1620
|
+
toc?: boolean;
|
|
1621
|
+
}
|
|
1606
1622
|
declare function DocumentationPanel({ value, toc }: DocumentationPanelProps): react_jsx_runtime.JSX.Element;
|
|
1607
1623
|
|
|
1608
|
-
interface SliderProps {
|
|
1609
|
-
isLoading?: boolean;
|
|
1610
|
-
isSuccess?: boolean;
|
|
1611
|
-
coverArt: string;
|
|
1612
|
-
screenshots: string[];
|
|
1613
|
-
}
|
|
1624
|
+
interface SliderProps {
|
|
1625
|
+
isLoading?: boolean;
|
|
1626
|
+
isSuccess?: boolean;
|
|
1627
|
+
coverArt: string;
|
|
1628
|
+
screenshots: string[];
|
|
1629
|
+
}
|
|
1614
1630
|
declare function Slider({ isLoading, isSuccess, coverArt, screenshots }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
1615
1631
|
|
|
1616
|
-
interface RatingDistributionItem {
|
|
1617
|
-
star: number;
|
|
1618
|
-
count: number;
|
|
1619
|
-
}
|
|
1620
|
-
interface StarRatingDistributionProps extends BaseComponentProps {
|
|
1621
|
-
numericRating?: boolean;
|
|
1622
|
-
progressBarsRating?: boolean;
|
|
1623
|
-
ratingDistribution?: RatingDistributionItem[];
|
|
1624
|
-
variant?: Variant$1;
|
|
1625
|
-
appearance?: Appearance;
|
|
1626
|
-
shape?: Shape$1;
|
|
1627
|
-
size?: Size$1;
|
|
1628
|
-
animated?: boolean;
|
|
1629
|
-
striped?: boolean;
|
|
1630
|
-
showReviewCount?: boolean;
|
|
1631
|
-
}
|
|
1632
|
+
interface RatingDistributionItem {
|
|
1633
|
+
star: number;
|
|
1634
|
+
count: number;
|
|
1635
|
+
}
|
|
1636
|
+
interface StarRatingDistributionProps extends BaseComponentProps {
|
|
1637
|
+
numericRating?: boolean;
|
|
1638
|
+
progressBarsRating?: boolean;
|
|
1639
|
+
ratingDistribution?: RatingDistributionItem[];
|
|
1640
|
+
variant?: Variant$1;
|
|
1641
|
+
appearance?: Appearance;
|
|
1642
|
+
shape?: Shape$1;
|
|
1643
|
+
size?: Size$1;
|
|
1644
|
+
animated?: boolean;
|
|
1645
|
+
striped?: boolean;
|
|
1646
|
+
showReviewCount?: boolean;
|
|
1647
|
+
}
|
|
1632
1648
|
declare function StarRatingDistribution({ numericRating, progressBarsRating, ratingDistribution, variant, appearance, shape, size, animated, striped, showReviewCount, className, ...rest }: StarRatingDistributionProps): react_jsx_runtime.JSX.Element;
|
|
1633
1649
|
|
|
1634
|
-
interface WorldMapCountryTableProps {
|
|
1635
|
-
title?: string;
|
|
1636
|
-
data: WorldMapPoint[];
|
|
1637
|
-
}
|
|
1650
|
+
interface WorldMapCountryTableProps {
|
|
1651
|
+
title?: string;
|
|
1652
|
+
data: WorldMapPoint[];
|
|
1653
|
+
}
|
|
1638
1654
|
declare function WorldMapCountryTable({ title, data, }: WorldMapCountryTableProps): react_jsx_runtime.JSX.Element;
|
|
1639
1655
|
|
|
1640
|
-
interface NavItem {
|
|
1641
|
-
icon: React$1.ReactNode;
|
|
1642
|
-
name: string;
|
|
1643
|
-
to: string;
|
|
1644
|
-
selected?: boolean;
|
|
1645
|
-
}
|
|
1646
|
-
interface BoxNavProps {
|
|
1647
|
-
data?: NavItem[];
|
|
1648
|
-
currentPath?: string;
|
|
1649
|
-
onNavigate?: (to: string) => void;
|
|
1650
|
-
navigate?: (to: string) => void;
|
|
1656
|
+
interface NavItem {
|
|
1657
|
+
icon: React$1.ReactNode;
|
|
1658
|
+
name: string;
|
|
1659
|
+
to: string;
|
|
1660
|
+
selected?: boolean;
|
|
1661
|
+
}
|
|
1662
|
+
interface BoxNavProps {
|
|
1663
|
+
data?: NavItem[];
|
|
1664
|
+
currentPath?: string;
|
|
1665
|
+
onNavigate?: (to: string) => void;
|
|
1666
|
+
navigate?: (to: string) => void;
|
|
1651
1667
|
}
|
|
1652
1668
|
|
|
1653
1669
|
declare function BoxNav({ data, currentPath, onNavigate, navigate }: BoxNavProps): react_jsx_runtime.JSX.Element;
|
|
1654
1670
|
|
|
1655
|
-
interface BoxNavItemProps {
|
|
1656
|
-
icon: React$1.ReactNode;
|
|
1657
|
-
name: string;
|
|
1658
|
-
to: string;
|
|
1659
|
-
selected?: boolean;
|
|
1660
|
-
onClick?: (event: React$1.MouseEvent<HTMLButtonElement>, to: string) => void;
|
|
1661
|
-
}
|
|
1671
|
+
interface BoxNavItemProps {
|
|
1672
|
+
icon: React$1.ReactNode;
|
|
1673
|
+
name: string;
|
|
1674
|
+
to: string;
|
|
1675
|
+
selected?: boolean;
|
|
1676
|
+
onClick?: (event: React$1.MouseEvent<HTMLButtonElement>, to: string) => void;
|
|
1677
|
+
}
|
|
1662
1678
|
declare function BoxNavItem({ icon, name, to, selected, onClick }: BoxNavItemProps): react_jsx_runtime.JSX.Element;
|
|
1663
1679
|
|
|
1664
|
-
interface SidebarProps extends BaseComponentProps {
|
|
1665
|
-
items?: MenuNode[];
|
|
1666
|
-
navigate?: (to: string) => void;
|
|
1667
|
-
currentPath?: string;
|
|
1668
|
-
}
|
|
1680
|
+
interface SidebarProps extends BaseComponentProps {
|
|
1681
|
+
items?: MenuNode[];
|
|
1682
|
+
navigate?: (to: string) => void;
|
|
1683
|
+
currentPath?: string;
|
|
1684
|
+
}
|
|
1669
1685
|
declare function Sidebar({ items, navigate, currentPath, className, ...rest }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1670
1686
|
|
|
1671
|
-
interface TopNavComponents {
|
|
1672
|
-
item?: React.ElementType;
|
|
1673
|
-
group?: React.ElementType;
|
|
1674
|
-
dropdown?: React.ElementType;
|
|
1675
|
-
dropdownItem?: React.ElementType;
|
|
1676
|
-
dropdownGroup?: React.ElementType;
|
|
1677
|
-
dropdownTitle?: React.ElementType;
|
|
1678
|
-
}
|
|
1679
|
-
interface BaseTopNavNode {
|
|
1680
|
-
key?: string;
|
|
1681
|
-
name: string;
|
|
1682
|
-
icon?: React.ReactNode;
|
|
1683
|
-
badge?: React.ReactNode;
|
|
1684
|
-
className?: string;
|
|
1685
|
-
component?: React.ElementType;
|
|
1686
|
-
}
|
|
1687
|
-
interface TopNavItemNode extends BaseTopNavNode {
|
|
1688
|
-
type: "item";
|
|
1689
|
-
to?: string;
|
|
1690
|
-
onClick?: () => void;
|
|
1691
|
-
}
|
|
1692
|
-
interface TopNavGroupNode extends BaseTopNavNode {
|
|
1693
|
-
type: "group";
|
|
1694
|
-
items: TopNavNode[];
|
|
1695
|
-
columns?: number;
|
|
1696
|
-
}
|
|
1697
|
-
interface TopNavTitleNode extends BaseTopNavNode {
|
|
1698
|
-
type: "title";
|
|
1699
|
-
}
|
|
1700
|
-
type TopNavNode = TopNavItemNode | TopNavGroupNode | TopNavTitleNode;
|
|
1701
|
-
interface TopNavProps {
|
|
1702
|
-
items: TopNavNode[];
|
|
1703
|
-
currentPath?: string;
|
|
1704
|
-
navigate?: (to: string) => void;
|
|
1705
|
-
components?: TopNavComponents;
|
|
1687
|
+
interface TopNavComponents {
|
|
1688
|
+
item?: React.ElementType;
|
|
1689
|
+
group?: React.ElementType;
|
|
1690
|
+
dropdown?: React.ElementType;
|
|
1691
|
+
dropdownItem?: React.ElementType;
|
|
1692
|
+
dropdownGroup?: React.ElementType;
|
|
1693
|
+
dropdownTitle?: React.ElementType;
|
|
1694
|
+
}
|
|
1695
|
+
interface BaseTopNavNode {
|
|
1696
|
+
key?: string;
|
|
1697
|
+
name: string;
|
|
1698
|
+
icon?: React.ReactNode;
|
|
1699
|
+
badge?: React.ReactNode;
|
|
1700
|
+
className?: string;
|
|
1701
|
+
component?: React.ElementType;
|
|
1702
|
+
}
|
|
1703
|
+
interface TopNavItemNode extends BaseTopNavNode {
|
|
1704
|
+
type: "item";
|
|
1705
|
+
to?: string;
|
|
1706
|
+
onClick?: () => void;
|
|
1707
|
+
}
|
|
1708
|
+
interface TopNavGroupNode extends BaseTopNavNode {
|
|
1709
|
+
type: "group";
|
|
1710
|
+
items: TopNavNode[];
|
|
1711
|
+
columns?: number;
|
|
1712
|
+
}
|
|
1713
|
+
interface TopNavTitleNode extends BaseTopNavNode {
|
|
1714
|
+
type: "title";
|
|
1715
|
+
}
|
|
1716
|
+
type TopNavNode = TopNavItemNode | TopNavGroupNode | TopNavTitleNode;
|
|
1717
|
+
interface TopNavProps {
|
|
1718
|
+
items: TopNavNode[];
|
|
1719
|
+
currentPath?: string;
|
|
1720
|
+
navigate?: (to: string) => void;
|
|
1721
|
+
components?: TopNavComponents;
|
|
1706
1722
|
}
|
|
1707
1723
|
|
|
1708
1724
|
declare const TopNav: ({ items, currentPath, navigate, components, }: TopNavProps) => react_jsx_runtime.JSX.Element;
|
|
1709
1725
|
|
|
1710
|
-
interface TNDropdownProps extends BaseComponentProps {
|
|
1711
|
-
items: TopNavNode[];
|
|
1712
|
-
navigate?: (to: string) => void;
|
|
1713
|
-
components?: any;
|
|
1714
|
-
}
|
|
1726
|
+
interface TNDropdownProps extends BaseComponentProps {
|
|
1727
|
+
items: TopNavNode[];
|
|
1728
|
+
navigate?: (to: string) => void;
|
|
1729
|
+
components?: any;
|
|
1730
|
+
}
|
|
1715
1731
|
declare const TNDropdown: ({ items, navigate, components, }: TNDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
1716
1732
|
|
|
1717
|
-
interface TNDropdownItemProps extends BaseComponentProps {
|
|
1718
|
-
icon?: React.ReactNode;
|
|
1719
|
-
name: string;
|
|
1720
|
-
badge?: React.ReactNode;
|
|
1721
|
-
to?: string;
|
|
1722
|
-
navigate?: (to: string) => void;
|
|
1723
|
-
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
1724
|
-
}
|
|
1733
|
+
interface TNDropdownItemProps extends BaseComponentProps {
|
|
1734
|
+
icon?: React.ReactNode;
|
|
1735
|
+
name: string;
|
|
1736
|
+
badge?: React.ReactNode;
|
|
1737
|
+
to?: string;
|
|
1738
|
+
navigate?: (to: string) => void;
|
|
1739
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
1740
|
+
}
|
|
1725
1741
|
declare const TNDropdownItem: ({ icon, name, badge, to, navigate, onClick, className, }: TNDropdownItemProps) => react_jsx_runtime.JSX.Element;
|
|
1726
1742
|
|
|
1727
|
-
interface TNDropdownTitleProps extends BaseComponentProps {
|
|
1728
|
-
name: string;
|
|
1729
|
-
}
|
|
1743
|
+
interface TNDropdownTitleProps extends BaseComponentProps {
|
|
1744
|
+
name: string;
|
|
1745
|
+
}
|
|
1730
1746
|
declare const TNDropdownTitle: ({ name, className }: TNDropdownTitleProps) => react_jsx_runtime.JSX.Element;
|
|
1731
1747
|
|
|
1732
|
-
interface TNGroupProps extends BaseComponentProps {
|
|
1733
|
-
icon?: React.ReactNode;
|
|
1734
|
-
name: string;
|
|
1735
|
-
items: TopNavNode[];
|
|
1736
|
-
navigate?: (to: string) => void;
|
|
1737
|
-
columns?: number;
|
|
1738
|
-
components?: any;
|
|
1739
|
-
selected?: boolean;
|
|
1740
|
-
}
|
|
1748
|
+
interface TNGroupProps extends BaseComponentProps {
|
|
1749
|
+
icon?: React.ReactNode;
|
|
1750
|
+
name: string;
|
|
1751
|
+
items: TopNavNode[];
|
|
1752
|
+
navigate?: (to: string) => void;
|
|
1753
|
+
columns?: number;
|
|
1754
|
+
components?: any;
|
|
1755
|
+
selected?: boolean;
|
|
1756
|
+
}
|
|
1741
1757
|
declare const TNGroup: ({ icon, name, items, navigate, columns, components, selected, }: TNGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1742
1758
|
|
|
1743
|
-
declare const useDrawer: (defaultVisibility?: boolean) => {
|
|
1744
|
-
show: boolean;
|
|
1745
|
-
openDrawer: () => void;
|
|
1746
|
-
closeDrawer: () => void;
|
|
1759
|
+
declare const useDrawer: (defaultVisibility?: boolean) => {
|
|
1760
|
+
show: boolean;
|
|
1761
|
+
openDrawer: () => void;
|
|
1762
|
+
closeDrawer: () => void;
|
|
1747
1763
|
};
|
|
1748
1764
|
|
|
1749
|
-
declare const useModal: () => {
|
|
1750
|
-
show: boolean;
|
|
1751
|
-
handleOpenModal: () => void;
|
|
1752
|
-
handleCloseModal: () => void;
|
|
1765
|
+
declare const useModal: () => {
|
|
1766
|
+
show: boolean;
|
|
1767
|
+
handleOpenModal: () => void;
|
|
1768
|
+
handleCloseModal: () => void;
|
|
1753
1769
|
};
|
|
1754
1770
|
|
|
1755
|
-
type ClickOutsideCallback = () => void;
|
|
1771
|
+
type ClickOutsideCallback = () => void;
|
|
1756
1772
|
declare function useClickOutside(ref: MutableRefObject<HTMLElement | null>, fun?: ClickOutsideCallback): void;
|
|
1757
1773
|
|
|
1758
1774
|
declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
@@ -1761,63 +1777,63 @@ declare const useCurrentTheme: () => "light" | "dark";
|
|
|
1761
1777
|
|
|
1762
1778
|
declare const useTheme: () => any;
|
|
1763
1779
|
|
|
1764
|
-
interface GenericLayoutProps {
|
|
1765
|
-
children?: ReactNode;
|
|
1766
|
-
styles?: string;
|
|
1767
|
-
defaultTheme?: "light" | "dark";
|
|
1768
|
-
}
|
|
1780
|
+
interface GenericLayoutProps {
|
|
1781
|
+
children?: ReactNode;
|
|
1782
|
+
styles?: string;
|
|
1783
|
+
defaultTheme?: "light" | "dark";
|
|
1784
|
+
}
|
|
1769
1785
|
declare function GenericLayout({ children, styles, defaultTheme, }: GenericLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1770
1786
|
|
|
1771
|
-
interface DefaultLayoutProps {
|
|
1772
|
-
children?: ReactNode;
|
|
1773
|
-
header?: ReactNode;
|
|
1774
|
-
footer?: ReactNode;
|
|
1775
|
-
}
|
|
1787
|
+
interface DefaultLayoutProps {
|
|
1788
|
+
children?: ReactNode;
|
|
1789
|
+
header?: ReactNode;
|
|
1790
|
+
footer?: ReactNode;
|
|
1791
|
+
}
|
|
1776
1792
|
declare function DefaultLayout({ children, header, footer, }: DefaultLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1777
1793
|
|
|
1778
|
-
interface HomeLayoutProps {
|
|
1779
|
-
children?: ReactNode;
|
|
1780
|
-
header?: ReactNode;
|
|
1781
|
-
footer?: ReactNode;
|
|
1782
|
-
}
|
|
1794
|
+
interface HomeLayoutProps {
|
|
1795
|
+
children?: ReactNode;
|
|
1796
|
+
header?: ReactNode;
|
|
1797
|
+
footer?: ReactNode;
|
|
1798
|
+
}
|
|
1783
1799
|
declare function HomeLayout({ children, header, footer, }: HomeLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1784
1800
|
|
|
1785
|
-
interface SidebarLayoutProps {
|
|
1786
|
-
children?: ReactNode;
|
|
1787
|
-
header?: ReactNode;
|
|
1788
|
-
footer?: ReactNode;
|
|
1789
|
-
}
|
|
1801
|
+
interface SidebarLayoutProps {
|
|
1802
|
+
children?: ReactNode;
|
|
1803
|
+
header?: ReactNode;
|
|
1804
|
+
footer?: ReactNode;
|
|
1805
|
+
}
|
|
1790
1806
|
declare function SidebarLayout({ children, header, footer, }: SidebarLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1791
1807
|
|
|
1792
|
-
interface SidemenuLayoutProps {
|
|
1793
|
-
data?: any;
|
|
1794
|
-
children?: ReactNode;
|
|
1795
|
-
}
|
|
1808
|
+
interface SidemenuLayoutProps {
|
|
1809
|
+
data?: any;
|
|
1810
|
+
children?: ReactNode;
|
|
1811
|
+
}
|
|
1796
1812
|
declare function SidemenuLayout({ data, children }: SidemenuLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1797
1813
|
|
|
1798
|
-
interface EUIDevLayoutProps {
|
|
1799
|
-
children?: ReactNode;
|
|
1800
|
-
header?: ReactNode;
|
|
1801
|
-
footer?: ReactNode;
|
|
1802
|
-
}
|
|
1814
|
+
interface EUIDevLayoutProps {
|
|
1815
|
+
children?: ReactNode;
|
|
1816
|
+
header?: ReactNode;
|
|
1817
|
+
footer?: ReactNode;
|
|
1818
|
+
}
|
|
1803
1819
|
declare function EUIDevLayout({ children, header, footer, }: EUIDevLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1804
1820
|
|
|
1805
|
-
interface CloudinaryConfig {
|
|
1806
|
-
cloudName: string;
|
|
1807
|
-
}
|
|
1808
|
-
interface CloudinaryProviderProps extends CloudinaryConfig {
|
|
1809
|
-
children: ReactNode;
|
|
1821
|
+
interface CloudinaryConfig {
|
|
1822
|
+
cloudName: string;
|
|
1823
|
+
}
|
|
1824
|
+
interface CloudinaryProviderProps extends CloudinaryConfig {
|
|
1825
|
+
children: ReactNode;
|
|
1810
1826
|
}
|
|
1811
1827
|
|
|
1812
1828
|
declare const CloudinaryProvider: ({ cloudName, children, }: CloudinaryProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1813
1829
|
|
|
1814
1830
|
declare const useCloudinaryConfig: () => CloudinaryConfig;
|
|
1815
1831
|
|
|
1816
|
-
interface ScrollToTopProps {
|
|
1817
|
-
trigger?: any;
|
|
1818
|
-
behavior?: ScrollBehavior;
|
|
1819
|
-
target?: HTMLElement | null;
|
|
1820
|
-
}
|
|
1832
|
+
interface ScrollToTopProps {
|
|
1833
|
+
trigger?: any;
|
|
1834
|
+
behavior?: ScrollBehavior;
|
|
1835
|
+
target?: HTMLElement | null;
|
|
1836
|
+
}
|
|
1821
1837
|
declare function ScrollToTop({ trigger, behavior, target, }: ScrollToTopProps): null;
|
|
1822
1838
|
|
|
1823
1839
|
declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -1828,16 +1844,16 @@ declare const getCurrencySymbol: (code: CurrencyCode) => string | null;
|
|
|
1828
1844
|
|
|
1829
1845
|
declare const enumValues: <T extends Record<string, string>>(enumObject: T) => string[];
|
|
1830
1846
|
|
|
1831
|
-
declare const normalize: (path?: string) => string;
|
|
1847
|
+
declare const normalize: (path?: string) => string;
|
|
1832
1848
|
declare const isMatch: (itemPath?: string, currentPath?: string) => boolean;
|
|
1833
1849
|
|
|
1834
|
-
interface ResolveAppearanceStylesProps {
|
|
1835
|
-
appearance?: Appearance;
|
|
1836
|
-
variant: Variant$1;
|
|
1837
|
-
solid: Record<string, string>;
|
|
1838
|
-
lite: Record<string, string>;
|
|
1839
|
-
ghost: Record<string, string>;
|
|
1840
|
-
}
|
|
1850
|
+
interface ResolveAppearanceStylesProps {
|
|
1851
|
+
appearance?: Appearance;
|
|
1852
|
+
variant: Variant$1;
|
|
1853
|
+
solid: Record<string, string>;
|
|
1854
|
+
lite: Record<string, string>;
|
|
1855
|
+
ghost: Record<string, string>;
|
|
1856
|
+
}
|
|
1841
1857
|
declare function resolveAppearanceStyles({ appearance, variant, solid, lite, ghost, }: ResolveAppearanceStylesProps): string;
|
|
1842
1858
|
|
|
1843
|
-
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, 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 GraphData, GraphEdge, type GraphEdgeType, type GraphLayoutType, GraphNode, type GraphNodeType, type GraphProps, GraphRenderer, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, type HorizontalPosition, type HyperRefTarget, Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, type LayoutContext, type LayoutExecutor, Lead, LineChart, 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, NumericRating, type OctilePosition, type OverlayVariant, Overline, Paragraph, PieChart, PriceTag, ProgressBar, type ProgressBarProps, ProgressBarRating, Quote, Radio, type ReplyComposerProps, RouteTab, type RouteTabMode, RouteTabs, ScrollToTop, Section, Select, type Shape$1 as Shape, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, type Size$1 as Size, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, 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, ValueBadge, type Variant$1 as Variant, type VerticalPosition, WorldMap, WorldMapCountryTable, YoutubeVideo as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, enumValues, formatCommentDate, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveAppearanceStyles, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };
|
|
1859
|
+
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 GraphData, GraphEdge, type GraphEdgeType, type GraphLayoutType, GraphNode, type GraphNodeType, type GraphProps, GraphRenderer, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, type HorizontalPosition, type HyperRefTarget, Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, type LayoutContext, type LayoutExecutor, Lead, LineChart, 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, NumericRating, type OctilePosition, type OverlayVariant, Overline, Paragraph, PieChart, PriceTag, ProgressBar, type ProgressBarProps, ProgressBarRating, Quote, Radio, type ReplyComposerProps, RouteTab, type RouteTabMode, RouteTabs, ScrollToTop, Section, Select, type Shape$1 as Shape, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, type Size$1 as Size, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, 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, ValueBadge, type Variant$1 as Variant, type VerticalPosition, WorldMap, WorldMapCountryTable, YoutubeVideo as YoutubeVideoPlayer, addReplyToCache, applyReactionState, cn, createForceLayout, createGridLayout, createTreeLayout, decrementReplyCount, enumValues, formatCommentDate, getCurrencySymbol, getLayout, getOptimisticDislikeState, getOptimisticLikeState, incrementReplyCount, isMatch, isRenderFn, normalize, registerLayout, removeComment, removeCommentTreeFromCache, resolveAppearanceStyles, resolveWithGlobal, sendToast, updateComment, updateReplyCacheComment, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };
|