@faasjs/ant-design 8.0.0-beta.1 → 8.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/index.cjs +1642 -1531
- package/dist/index.d.ts +439 -379
- package/dist/index.mjs +1603 -1510
- package/package.json +25 -25
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,79 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { MessageInstance } from
|
|
4
|
-
import { NotificationInstance } from
|
|
5
|
-
import { BrowserRouterProps, RouteProps } from
|
|
6
|
-
import * as react from
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import * as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import {
|
|
19
|
-
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
|
|
20
|
-
import * as antd_es_form_context from 'antd/es/form/context';
|
|
21
|
-
import * as _rc_component_form from '@rc-component/form';
|
|
22
|
-
import * as antd_es_form_hooks_useFormInstance from 'antd/es/form/hooks/useFormInstance';
|
|
23
|
-
import * as antd_es_form_Form from 'antd/es/form/Form';
|
|
24
|
-
import { Tab } from '@rc-component/tabs/lib/interface';
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ButtonProps, ConfigProviderProps as ConfigProviderProps$1, DatePickerProps, DescriptionsProps, Drawer, DrawerProps as DrawerProps$1, FormInstance, FormItemProps as FormItemProps$1, FormProps as FormProps$1, GlobalToken, InputNumberProps, InputProps, Modal, ModalProps as ModalProps$1, RadioProps, SelectProps, SwitchProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, TabsProps as TabsProps$1 } from "antd";
|
|
3
|
+
import { MessageInstance } from "antd/es/message/interface";
|
|
4
|
+
import { NotificationInstance } from "antd/es/notification/interface";
|
|
5
|
+
import { BrowserRouterProps, RouteProps } from "react-router-dom";
|
|
6
|
+
import * as react from "react";
|
|
7
|
+
import { CSSProperties, ComponentType, Dispatch, FC, JSX, LazyExoticComponent, ReactElement, ReactNode, SetStateAction, lazy } from "react";
|
|
8
|
+
import { ErrorBoundaryProps, FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1, FaasDataWrapperRef, FaasReactClient, FaasReactClientOptions, faas, useFaas } from "@faasjs/react";
|
|
9
|
+
import { Dayjs } from "dayjs";
|
|
10
|
+
import * as antd_es_form_FormItem0 from "antd/es/form/FormItem";
|
|
11
|
+
import * as antd_es_form0 from "antd/es/form";
|
|
12
|
+
import { RuleObject } from "antd/es/form";
|
|
13
|
+
import { FilterValue, SorterResult, TableCurrentDataSource } from "antd/es/table/interface";
|
|
14
|
+
import * as antd_es_form_Form0 from "antd/es/form/Form";
|
|
15
|
+
import * as antd_es_form_hooks_useFormInstance0 from "antd/es/form/hooks/useFormInstance";
|
|
16
|
+
import * as _rc_component_form0 from "@rc-component/form";
|
|
17
|
+
import * as antd_es_form_context0 from "antd/es/form/context";
|
|
18
|
+
import { Tab } from "@rc-component/tabs/lib/interface";
|
|
25
19
|
|
|
20
|
+
//#region ../types/src/index.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* Interface for defining FaasJS actions.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* declare module '@faasjs/types' {
|
|
27
|
+
* interface FaasActions {
|
|
28
|
+
* demo: {
|
|
29
|
+
* Params: {
|
|
30
|
+
* key: string
|
|
31
|
+
* }
|
|
32
|
+
* Data: {
|
|
33
|
+
* value: string
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
interface FaasActions {
|
|
41
|
+
/**
|
|
42
|
+
* Internal placeholder to keep this interface visible in generated docs.
|
|
43
|
+
*/
|
|
44
|
+
faasjsActionsPlaceholder?: {
|
|
45
|
+
Params: Record<string, any>;
|
|
46
|
+
Data: Record<string, any>;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Infer all action paths declared in {@link FaasActions}.
|
|
51
|
+
*/
|
|
52
|
+
type FaasActionPaths = Exclude<Extract<keyof FaasActions, string>, 'faasjsActionsPlaceholder'>;
|
|
53
|
+
/**
|
|
54
|
+
* Union type accepted by action helpers.
|
|
55
|
+
*/
|
|
56
|
+
type FaasActionUnionType = FaasActionPaths | Record<string, any> | string;
|
|
57
|
+
/**
|
|
58
|
+
* Infer the action path type.
|
|
59
|
+
*
|
|
60
|
+
* Returns the original type when `T` is a known action path,
|
|
61
|
+
* otherwise falls back to `string`.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* type A = FaasAction<'demo'> // 'demo'
|
|
66
|
+
* type B = FaasAction<number> // string
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
type FaasAction<T = any> = T extends FaasActionPaths ? T : string;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/Loading.d.ts
|
|
26
72
|
type LoadingProps = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
73
|
+
style?: React.CSSProperties;
|
|
74
|
+
size?: 'small' | 'default' | 'large';
|
|
75
|
+
loading?: boolean;
|
|
76
|
+
children?: React.ReactNode;
|
|
31
77
|
};
|
|
32
78
|
/**
|
|
33
79
|
* Loading component based on Spin
|
|
@@ -41,17 +87,14 @@ type LoadingProps = {
|
|
|
41
87
|
* </Loading>
|
|
42
88
|
* ```
|
|
43
89
|
*/
|
|
44
|
-
declare function Loading(props: LoadingProps):
|
|
45
|
-
|
|
46
|
-
|
|
90
|
+
declare function Loading(props: LoadingProps): react_jsx_runtime0.JSX.Element;
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/FaasDataWrapper.d.ts
|
|
93
|
+
type FaasDataInjection<T extends FaasActionUnionType = any> = Partial<FaasDataInjection$1<T>>;
|
|
94
|
+
interface FaasDataWrapperProps<T extends FaasActionUnionType = any> extends FaasDataWrapperProps$1<T> {
|
|
95
|
+
loadingProps?: LoadingProps;
|
|
96
|
+
loading?: JSX.Element;
|
|
47
97
|
}
|
|
48
|
-
|
|
49
|
-
type FaasDataInjection<T = any> = Partial<FaasDataInjection$1<T>>;
|
|
50
|
-
interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
|
|
51
|
-
loadingProps?: LoadingProps;
|
|
52
|
-
loading?: JSX.Element;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
98
|
/**
|
|
56
99
|
* FaasDataWrapper component with Loading
|
|
57
100
|
*
|
|
@@ -68,10 +111,7 @@ interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
|
|
|
68
111
|
* }
|
|
69
112
|
* ```
|
|
70
113
|
*/
|
|
71
|
-
declare function FaasDataWrapper<T = any>(props: FaasDataWrapperProps<T>): JSX.Element;
|
|
72
|
-
declare namespace FaasDataWrapper {
|
|
73
|
-
var whyDidYouRender: boolean;
|
|
74
|
-
}
|
|
114
|
+
declare function FaasDataWrapper<T extends FaasActionUnionType = any>(props: FaasDataWrapperProps<T>): JSX.Element;
|
|
75
115
|
/**
|
|
76
116
|
* HOC to wrap a component with FaasDataWrapper and Loading
|
|
77
117
|
*
|
|
@@ -81,44 +121,76 @@ declare namespace FaasDataWrapper {
|
|
|
81
121
|
* ```
|
|
82
122
|
*/
|
|
83
123
|
declare function withFaasData<PathOrData extends FaasActionUnionType, TComponentProps extends Required<FaasDataInjection<PathOrData>> = Required<FaasDataInjection<PathOrData>>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>>>;
|
|
84
|
-
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/Config.d.ts
|
|
126
|
+
type ResolvedTheme = {
|
|
127
|
+
lang: string;
|
|
128
|
+
common: {
|
|
129
|
+
blank: string;
|
|
130
|
+
all: string;
|
|
131
|
+
submit: string;
|
|
132
|
+
pageNotFound: string;
|
|
133
|
+
add: string;
|
|
134
|
+
delete: string;
|
|
135
|
+
required: string;
|
|
136
|
+
search: string;
|
|
137
|
+
reset: string;
|
|
138
|
+
};
|
|
139
|
+
Blank: {
|
|
140
|
+
text: string;
|
|
141
|
+
};
|
|
142
|
+
Form: {
|
|
143
|
+
submit: {
|
|
144
|
+
text: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
Title: {
|
|
148
|
+
separator: string;
|
|
149
|
+
suffix: string;
|
|
150
|
+
};
|
|
151
|
+
Link: {
|
|
152
|
+
target?: string;
|
|
153
|
+
style: CSSProperties;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
type ConfigContextValue = {
|
|
157
|
+
theme: ResolvedTheme;
|
|
158
|
+
};
|
|
85
159
|
interface ConfigProviderProps {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
Form?: {
|
|
105
|
-
submit?: {
|
|
106
|
-
text?: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
Title?: {
|
|
110
|
-
/** ' - ' as default */
|
|
111
|
-
separator?: string;
|
|
112
|
-
suffix?: string;
|
|
113
|
-
};
|
|
114
|
-
Link?: {
|
|
115
|
-
/** '_blank' as default */
|
|
116
|
-
target?: string;
|
|
117
|
-
style?: CSSProperties;
|
|
118
|
-
};
|
|
160
|
+
faasClientOptions?: FaasReactClientOptions;
|
|
161
|
+
children: React.ReactNode;
|
|
162
|
+
theme?: {
|
|
163
|
+
lang?: string;
|
|
164
|
+
common?: {
|
|
165
|
+
blank?: string;
|
|
166
|
+
all?: string;
|
|
167
|
+
submit?: string;
|
|
168
|
+
pageNotFound?: string;
|
|
169
|
+
add?: string;
|
|
170
|
+
delete?: string;
|
|
171
|
+
required?: string;
|
|
172
|
+
search?: string;
|
|
173
|
+
reset?: string;
|
|
174
|
+
};
|
|
175
|
+
Blank?: {
|
|
176
|
+
text?: string;
|
|
119
177
|
};
|
|
178
|
+
Form?: {
|
|
179
|
+
submit?: {
|
|
180
|
+
text?: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
Title?: {
|
|
184
|
+
/** ' - ' as default */separator?: string;
|
|
185
|
+
suffix?: string;
|
|
186
|
+
};
|
|
187
|
+
Link?: {
|
|
188
|
+
/** '_blank' as default */target?: string;
|
|
189
|
+
style?: CSSProperties;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
120
192
|
}
|
|
121
|
-
declare const ConfigContext: react.Context<
|
|
193
|
+
declare const ConfigContext: react.Context<ConfigContextValue>;
|
|
122
194
|
/**
|
|
123
195
|
* Config for `@faasjs/ant-design` components.
|
|
124
196
|
*
|
|
@@ -131,14 +203,12 @@ declare const ConfigContext: react.Context<Partial<ConfigProviderProps>>;
|
|
|
131
203
|
* </ConfigProvider>
|
|
132
204
|
* ```
|
|
133
205
|
*/
|
|
134
|
-
declare function ConfigProvider(props: ConfigProviderProps):
|
|
135
|
-
declare function useConfigContext():
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
whyDidYouRender?: boolean;
|
|
139
|
-
};
|
|
206
|
+
declare function ConfigProvider(props: ConfigProviderProps): react_jsx_runtime0.JSX.Element | null;
|
|
207
|
+
declare function useConfigContext(): ConfigContextValue;
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/Drawer.d.ts
|
|
140
210
|
interface DrawerProps extends DrawerProps$1 {
|
|
141
|
-
|
|
211
|
+
children?: JSX.Element | JSX.Element[];
|
|
142
212
|
}
|
|
143
213
|
type setDrawerProps = Dispatch<SetStateAction<DrawerProps>>;
|
|
144
214
|
/**
|
|
@@ -158,27 +228,20 @@ type setDrawerProps = Dispatch<SetStateAction<DrawerProps>>;
|
|
|
158
228
|
* ```
|
|
159
229
|
*/
|
|
160
230
|
declare function useDrawer(init?: DrawerProps): {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
231
|
+
drawer: react_jsx_runtime0.JSX.Element;
|
|
232
|
+
drawerProps: DrawerProps;
|
|
233
|
+
setDrawerProps: setDrawerProps;
|
|
164
234
|
};
|
|
165
|
-
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/ErrorBoundary.d.ts
|
|
166
237
|
/**
|
|
167
238
|
* Styled error boundary.
|
|
168
239
|
*/
|
|
169
|
-
declare function ErrorBoundary(props: ErrorBoundaryProps):
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticFunctions & {
|
|
175
|
-
useModal: typeof antd_es_modal_useModal.default;
|
|
176
|
-
destroyAll: () => void;
|
|
177
|
-
config: typeof antd_es_modal_confirm.modalGlobalConfig;
|
|
178
|
-
_InternalPanelDoNotUseOrYouWillBeFired: (props: antd_es_modal_PurePanel.PurePanelProps) => React.JSX.Element;
|
|
179
|
-
};
|
|
240
|
+
declare function ErrorBoundary(props: ErrorBoundaryProps): react_jsx_runtime0.JSX.Element;
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/Modal.d.ts
|
|
180
243
|
interface ModalProps extends ModalProps$1 {
|
|
181
|
-
|
|
244
|
+
children?: JSX.Element | JSX.Element[] | string;
|
|
182
245
|
}
|
|
183
246
|
type setModalProps = Dispatch<SetStateAction<ModalProps>>;
|
|
184
247
|
/**
|
|
@@ -196,35 +259,36 @@ type setModalProps = Dispatch<SetStateAction<ModalProps>>;
|
|
|
196
259
|
* ```
|
|
197
260
|
*/
|
|
198
261
|
declare function useModal(init?: ModalProps): {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
262
|
+
modal: react_jsx_runtime0.JSX.Element;
|
|
263
|
+
modalProps: ModalProps;
|
|
264
|
+
setModalProps: setModalProps;
|
|
202
265
|
};
|
|
203
|
-
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/App.d.ts
|
|
204
268
|
interface AppProps {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
269
|
+
children: React.ReactNode;
|
|
270
|
+
/** @see https://ant.design/components/config-provider/#API */
|
|
271
|
+
configProviderProps?: ConfigProviderProps$1;
|
|
272
|
+
/**
|
|
273
|
+
* `false` to disable BrowserRouter.
|
|
274
|
+
*
|
|
275
|
+
* Auto disable when not in browser.
|
|
276
|
+
*
|
|
277
|
+
* @see https://api.reactrouter.com/v7/interfaces/react_router.BrowserRouterProps.html
|
|
278
|
+
*/
|
|
279
|
+
browserRouterProps?: BrowserRouterProps | false;
|
|
280
|
+
/** @see https://faasjs.com/doc/ant-design/#errorboundary */
|
|
281
|
+
errorBoundaryProps?: Omit<ErrorBoundaryProps, 'children'>;
|
|
282
|
+
/** @see https://faasjs.com/doc/ant-design/#configprovider */
|
|
283
|
+
faasConfigProviderProps?: Omit<ConfigProviderProps, 'children'> | false;
|
|
220
284
|
}
|
|
221
285
|
interface useAppProps {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
286
|
+
message: MessageInstance;
|
|
287
|
+
notification: NotificationInstance;
|
|
288
|
+
modalProps: ModalProps;
|
|
289
|
+
setModalProps: setModalProps;
|
|
290
|
+
drawerProps: DrawerProps;
|
|
291
|
+
setDrawerProps: setDrawerProps;
|
|
228
292
|
}
|
|
229
293
|
/**
|
|
230
294
|
* App component with Ant Design & FaasJS
|
|
@@ -253,10 +317,9 @@ interface useAppProps {
|
|
|
253
317
|
* }
|
|
254
318
|
* ```
|
|
255
319
|
*/
|
|
256
|
-
declare function App(props: AppProps):
|
|
320
|
+
declare function App(props: AppProps): react_jsx_runtime0.JSX.Element;
|
|
257
321
|
declare namespace App {
|
|
258
|
-
|
|
259
|
-
var whyDidYouRender: boolean;
|
|
322
|
+
var useApp: <NewT extends useAppProps = useAppProps>() => Readonly<NewT>;
|
|
260
323
|
}
|
|
261
324
|
/**
|
|
262
325
|
* Get app context.
|
|
@@ -268,10 +331,11 @@ declare namespace App {
|
|
|
268
331
|
* ```
|
|
269
332
|
*/
|
|
270
333
|
declare const useApp: <NewT extends useAppProps = useAppProps>() => Readonly<NewT>;
|
|
271
|
-
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/Blank.d.ts
|
|
272
336
|
interface BlankProps {
|
|
273
|
-
|
|
274
|
-
|
|
337
|
+
value?: any;
|
|
338
|
+
text?: string;
|
|
275
339
|
}
|
|
276
340
|
/**
|
|
277
341
|
* Blank component.
|
|
@@ -286,46 +350,44 @@ interface BlankProps {
|
|
|
286
350
|
* ```
|
|
287
351
|
*/
|
|
288
352
|
declare function Blank(options?: BlankProps): JSX.Element;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region src/FormItem.d.ts
|
|
293
355
|
type ExtendFormTypeProps<T = any> = {
|
|
294
|
-
|
|
356
|
+
children?: UnionFaasItemElement<T>;
|
|
295
357
|
};
|
|
296
358
|
type ExtendTypes = {
|
|
297
|
-
|
|
359
|
+
[type: string]: ExtendFormTypeProps;
|
|
298
360
|
};
|
|
299
361
|
type InputTypeMap<T> = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
362
|
+
string: InputProps | SelectProps<T> | RadioProps;
|
|
363
|
+
'string[]': InputProps | SelectProps<T> | RadioProps;
|
|
364
|
+
number: InputNumberProps | SelectProps<T> | RadioProps;
|
|
365
|
+
'number[]': InputNumberProps | SelectProps<T> | RadioProps;
|
|
366
|
+
boolean: SwitchProps;
|
|
367
|
+
date: DatePickerProps;
|
|
368
|
+
time: DatePickerProps;
|
|
369
|
+
object: never;
|
|
370
|
+
'object[]': never;
|
|
309
371
|
};
|
|
310
372
|
interface FormItemProps<T = any> extends BaseItemProps, Omit<FormItemProps$1<T>, 'id' | 'children' | 'render'> {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
373
|
+
type?: FaasItemType;
|
|
374
|
+
input?: InputTypeMap<T>[FaasItemType];
|
|
375
|
+
maxCount?: number;
|
|
376
|
+
object?: FormItemProps[];
|
|
377
|
+
disabled?: boolean;
|
|
378
|
+
required?: boolean;
|
|
379
|
+
col?: number;
|
|
380
|
+
children?: UnionFaasItemElement<T> | null;
|
|
381
|
+
formChildren?: UnionFaasItemElement<T> | null;
|
|
382
|
+
render?: UnionFaasItemRender<T> | null;
|
|
383
|
+
formRender?: UnionFaasItemRender<T> | null;
|
|
384
|
+
rules?: RuleObject[];
|
|
385
|
+
label?: string | false;
|
|
386
|
+
extendTypes?: ExtendTypes;
|
|
387
|
+
/** trigger when current item's value changed */
|
|
388
|
+
onValueChange?: (value: T, values: any, form: FormInstance) => void;
|
|
389
|
+
/** trigger when any item's value changed */
|
|
390
|
+
if?: (values: Record<string, any>) => boolean;
|
|
329
391
|
}
|
|
330
392
|
/**
|
|
331
393
|
* Extend custom form item types.
|
|
@@ -361,7 +423,7 @@ interface FormItemProps<T = any> extends BaseItemProps, Omit<FormItemProps$1<T>,
|
|
|
361
423
|
* ```
|
|
362
424
|
*/
|
|
363
425
|
interface ExtendFormItemProps extends Omit<FormItemProps, 'type'> {
|
|
364
|
-
|
|
426
|
+
type?: string;
|
|
365
427
|
}
|
|
366
428
|
/**
|
|
367
429
|
* FormItem
|
|
@@ -380,63 +442,63 @@ interface ExtendFormItemProps extends Omit<FormItemProps, 'type'> {
|
|
|
380
442
|
* </>
|
|
381
443
|
* ```
|
|
382
444
|
*/
|
|
383
|
-
declare function FormItem<T = any>(props: FormItemProps<T>):
|
|
445
|
+
declare function FormItem<T = any>(props: FormItemProps<T>): react_jsx_runtime0.JSX.Element | null;
|
|
384
446
|
declare namespace FormItem {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
447
|
+
var useStatus: () => {
|
|
448
|
+
status?: antd_es_form_FormItem0.ValidateStatus;
|
|
449
|
+
errors: React.ReactNode[];
|
|
450
|
+
warnings: React.ReactNode[];
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/Table.d.ts
|
|
393
455
|
interface TableItemProps<T = any> extends FaasItemProps, Omit<TableColumnProps<T>, 'title' | 'children' | 'render'> {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
456
|
+
optionsType?: 'auto';
|
|
457
|
+
children?: UnionFaasItemElement<T> | null;
|
|
458
|
+
tableChildren?: UnionFaasItemElement<T> | null;
|
|
459
|
+
render?: UnionFaasItemRender<T> | null;
|
|
460
|
+
tableRender?: UnionFaasItemRender<T> | null;
|
|
461
|
+
object?: TableItemProps<T>[];
|
|
400
462
|
}
|
|
401
463
|
type ExtendTableTypeProps<T = any> = {
|
|
402
|
-
|
|
403
|
-
|
|
464
|
+
children?: UnionFaasItemElement<T>;
|
|
465
|
+
render?: UnionFaasItemRender<T>;
|
|
404
466
|
};
|
|
405
467
|
type ExtendTableItemProps<T = any> = BaseItemProps & Omit<TableColumnProps<T>, 'children'>;
|
|
406
468
|
type TableProps<T = any, ExtendTypes = any> = {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
469
|
+
items: (TableItemProps | (ExtendTypes & ExtendTableItemProps))[];
|
|
470
|
+
extendTypes?: {
|
|
471
|
+
[key: string]: ExtendTableTypeProps;
|
|
472
|
+
};
|
|
473
|
+
faasData?: FaasDataWrapperProps<any>;
|
|
474
|
+
onChange?: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<T> | SorterResult<T>[], extra: TableCurrentDataSource<T>) => {
|
|
475
|
+
pagination: TablePaginationConfig;
|
|
476
|
+
filters: Record<string, FilterValue | null>;
|
|
477
|
+
sorter: SorterResult<T> | SorterResult<T>[];
|
|
478
|
+
extra: TableCurrentDataSource<T>;
|
|
479
|
+
};
|
|
418
480
|
} & TableProps$1<T>;
|
|
419
481
|
type TableFaasDataParams = {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
482
|
+
filters?: Record<string, any[]>;
|
|
483
|
+
pagination?: {
|
|
484
|
+
current?: number;
|
|
485
|
+
pageSize?: number;
|
|
486
|
+
};
|
|
487
|
+
sorter?: {
|
|
488
|
+
field: string;
|
|
489
|
+
order: 'ascend' | 'descend';
|
|
490
|
+
} | {
|
|
491
|
+
field: string;
|
|
492
|
+
order?: 'ascend' | 'descend';
|
|
493
|
+
}[];
|
|
432
494
|
};
|
|
433
495
|
type TableFaasDataResponse<T = any> = {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
496
|
+
rows: T[];
|
|
497
|
+
pagination: {
|
|
498
|
+
current: number;
|
|
499
|
+
pageSize: number;
|
|
500
|
+
total: number;
|
|
501
|
+
};
|
|
440
502
|
};
|
|
441
503
|
/**
|
|
442
504
|
* Table component with Ant Design & FaasJS
|
|
@@ -446,36 +508,37 @@ type TableFaasDataResponse<T = any> = {
|
|
|
446
508
|
* - Auto generate filter dropdown (disable with `filterDropdown: false`).
|
|
447
509
|
* - Auto generate sorter (disable with `sorter: false`).
|
|
448
510
|
*/
|
|
449
|
-
declare function Table<T extends Record<string, any>, ExtendTypes = any>(props: TableProps<T, ExtendTypes>):
|
|
450
|
-
|
|
511
|
+
declare function Table<T extends Record<string, any>, ExtendTypes = any>(props: TableProps<T, ExtendTypes>): react_jsx_runtime0.JSX.Element | null;
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/data.d.ts
|
|
451
514
|
type FaasItemType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'date' | 'time' | 'object' | 'object[]';
|
|
452
515
|
/** FaasItemType's value type */
|
|
453
516
|
type FaasItemTypeValue = {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
517
|
+
string: string;
|
|
518
|
+
'string[]': string[];
|
|
519
|
+
number: number;
|
|
520
|
+
'number[]': number[];
|
|
521
|
+
boolean: boolean;
|
|
522
|
+
date: Dayjs;
|
|
523
|
+
time: Dayjs;
|
|
524
|
+
object: any;
|
|
525
|
+
'object[]': any[];
|
|
463
526
|
};
|
|
464
527
|
type BaseOption = string | number | {
|
|
465
|
-
|
|
466
|
-
|
|
528
|
+
label: string;
|
|
529
|
+
value?: any;
|
|
467
530
|
};
|
|
468
531
|
interface BaseItemProps {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
532
|
+
id: string | number;
|
|
533
|
+
title?: string;
|
|
534
|
+
options?: BaseOption[];
|
|
472
535
|
}
|
|
473
536
|
interface FaasItemProps extends BaseItemProps {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
537
|
+
/**
|
|
538
|
+
* Support string, string[], number, number[], boolean, date, time, object, object[]
|
|
539
|
+
* @default 'string'
|
|
540
|
+
*/
|
|
541
|
+
type?: FaasItemType;
|
|
479
542
|
}
|
|
480
543
|
/**
|
|
481
544
|
* Converts an identifier string to a title case string.
|
|
@@ -496,16 +559,16 @@ declare function idToTitle(id: string | number): string;
|
|
|
496
559
|
* convert string[] or number[] to { label, value }[]
|
|
497
560
|
*/
|
|
498
561
|
declare function transferOptions(options: BaseOption[]): {
|
|
499
|
-
|
|
500
|
-
|
|
562
|
+
label: string;
|
|
563
|
+
value?: string | number;
|
|
501
564
|
}[];
|
|
502
|
-
declare function transferValue(type: FaasItemType, value: any): any;
|
|
565
|
+
declare function transferValue(type: FaasItemType | null | undefined, value: any): any;
|
|
503
566
|
type UnionScene = 'form' | 'description' | 'table';
|
|
504
567
|
type UnionFaasItemInjection<Value = any, Values = any> = {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
568
|
+
scene?: UnionScene;
|
|
569
|
+
value?: Value;
|
|
570
|
+
values?: Values;
|
|
571
|
+
index?: number;
|
|
509
572
|
};
|
|
510
573
|
/**
|
|
511
574
|
* A type representing a function that renders a React node for a given item in a list.
|
|
@@ -652,9 +715,9 @@ type UnionFaasItemElement<Value = any, Values = any> = ReactElement<UnionFaasIte
|
|
|
652
715
|
* ```
|
|
653
716
|
*/
|
|
654
717
|
interface UnionFaasItemProps<Value = any, Values = any> extends FormItemProps, DescriptionItemProps, TableItemProps {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
718
|
+
children?: UnionFaasItemElement<Value, Values> | null;
|
|
719
|
+
render?: UnionFaasItemRender<Value, Values> | null;
|
|
720
|
+
object?: UnionFaasItemProps<Value, Values>[];
|
|
658
721
|
}
|
|
659
722
|
/**
|
|
660
723
|
* Clone a UnionFaasItemElement with the given props.
|
|
@@ -668,36 +731,37 @@ interface UnionFaasItemProps<Value = any, Values = any> extends FormItemProps, D
|
|
|
668
731
|
* @returns The cloned element with the applied props.
|
|
669
732
|
*/
|
|
670
733
|
declare function cloneUnionFaasItemElement(element: UnionFaasItemElement, props: any): ReactElement<UnionFaasItemInjection<any, any>, string | react.JSXElementConstructor<any>>;
|
|
671
|
-
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region src/Description.d.ts
|
|
672
736
|
interface ExtendDescriptionTypeProps<T = any> {
|
|
673
|
-
|
|
674
|
-
|
|
737
|
+
children?: UnionFaasItemElement<T>;
|
|
738
|
+
render?: UnionFaasItemRender<T>;
|
|
675
739
|
}
|
|
676
740
|
type ExtendDescriptionItemProps = BaseItemProps;
|
|
677
741
|
interface DescriptionItemProps<T = any> extends FaasItemProps {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
742
|
+
children?: UnionFaasItemElement<T> | null;
|
|
743
|
+
descriptionChildren?: UnionFaasItemElement<T> | null;
|
|
744
|
+
render?: UnionFaasItemRender<T> | null;
|
|
745
|
+
descriptionRender?: UnionFaasItemRender<T> | null;
|
|
746
|
+
if?: (values: Record<string, any>) => boolean;
|
|
747
|
+
object?: DescriptionItemProps<T>[];
|
|
684
748
|
}
|
|
685
749
|
interface DescriptionProps<T = any, ExtendItemProps = any> extends Omit<DescriptionsProps, 'items'> {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
750
|
+
renderTitle?(values: T): ReactNode;
|
|
751
|
+
items: (DescriptionItemProps | ExtendItemProps)[];
|
|
752
|
+
extendTypes?: {
|
|
753
|
+
[key: string]: ExtendDescriptionTypeProps;
|
|
754
|
+
};
|
|
755
|
+
dataSource?: T;
|
|
756
|
+
faasData?: FaasDataWrapperProps<any>;
|
|
693
757
|
}
|
|
694
758
|
interface DescriptionItemContentProps<T = any> {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
759
|
+
item: DescriptionItemProps;
|
|
760
|
+
value: T;
|
|
761
|
+
values?: any;
|
|
762
|
+
extendTypes?: {
|
|
763
|
+
[key: string]: ExtendDescriptionTypeProps;
|
|
764
|
+
};
|
|
701
765
|
}
|
|
702
766
|
/**
|
|
703
767
|
* Description component
|
|
@@ -721,88 +785,92 @@ interface DescriptionItemContentProps<T = any> {
|
|
|
721
785
|
* />
|
|
722
786
|
* ```
|
|
723
787
|
*/
|
|
724
|
-
declare function Description<T extends Record<string, any> = any>({
|
|
788
|
+
declare function Description<T extends Record<string, any> = any>({
|
|
789
|
+
faasData,
|
|
790
|
+
dataSource,
|
|
791
|
+
renderTitle,
|
|
792
|
+
extendTypes,
|
|
793
|
+
...props
|
|
794
|
+
}: DescriptionProps<T>): react_jsx_runtime0.JSX.Element;
|
|
725
795
|
declare namespace Description {
|
|
726
|
-
|
|
727
|
-
var whyDidYouRender: boolean;
|
|
796
|
+
var displayName: string;
|
|
728
797
|
}
|
|
729
|
-
|
|
798
|
+
//#endregion
|
|
799
|
+
//#region src/Form.d.ts
|
|
730
800
|
type FormSubmitProps = {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
finally?: () => void;
|
|
765
|
-
};
|
|
801
|
+
/** Default: Submit */text?: string;
|
|
802
|
+
/**
|
|
803
|
+
* Submit to FaasJS server.
|
|
804
|
+
*
|
|
805
|
+
* If use onFinish, you should call submit manually.
|
|
806
|
+
* ```ts
|
|
807
|
+
* {
|
|
808
|
+
* submit: {
|
|
809
|
+
* to: {
|
|
810
|
+
* action: 'action_name'
|
|
811
|
+
* }
|
|
812
|
+
* },
|
|
813
|
+
* onFinish: (values, submit) => {
|
|
814
|
+
* // do something before submit
|
|
815
|
+
*
|
|
816
|
+
* // submit
|
|
817
|
+
* await submit({
|
|
818
|
+
* ...values,
|
|
819
|
+
* extraProps: 'some extra props'
|
|
820
|
+
* })
|
|
821
|
+
*
|
|
822
|
+
* // do something after submit
|
|
823
|
+
* }
|
|
824
|
+
* }
|
|
825
|
+
* ```
|
|
826
|
+
*/
|
|
827
|
+
to?: {
|
|
828
|
+
action: FaasAction | string; /** params will overwrite form values before submit */
|
|
829
|
+
params?: Record<string, any>;
|
|
830
|
+
then?: (result: any) => void;
|
|
831
|
+
catch?: (error: any) => void;
|
|
832
|
+
finally?: () => void;
|
|
833
|
+
};
|
|
766
834
|
};
|
|
767
835
|
interface FormProps<Values extends Record<string, any> = any, ExtendItemProps extends ExtendFormItemProps = ExtendFormItemProps> extends Omit<FormProps$1<Values>, 'onFinish' | 'children' | 'initialValues'> {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
836
|
+
items?: ((ExtendItemProps extends ExtendFormItemProps ? ExtendItemProps | FormItemProps : FormItemProps) | JSX.Element)[];
|
|
837
|
+
/** Default: { text: 'Submit' }, set false to disable it */
|
|
838
|
+
submit?: false | FormSubmitProps;
|
|
839
|
+
onFinish?: (values: Values, submit?: (values: any) => Promise<any>) => Promise<any>;
|
|
840
|
+
beforeItems?: JSX.Element | JSX.Element[];
|
|
841
|
+
footer?: JSX.Element | JSX.Element[];
|
|
842
|
+
extendTypes?: ExtendTypes;
|
|
843
|
+
children?: ReactNode;
|
|
844
|
+
initialValues?: Partial<Values>;
|
|
777
845
|
}
|
|
778
846
|
/**
|
|
779
847
|
* Form component with Ant Design & FaasJS
|
|
780
848
|
*
|
|
781
849
|
* - Based on [Ant Design Form](https://ant.design/components/form/).
|
|
782
850
|
*/
|
|
783
|
-
declare function Form<Values = any>(props: FormProps<Values>):
|
|
851
|
+
declare function Form<Values extends Record<string, any> = any>(props: FormProps<Values>): react_jsx_runtime0.JSX.Element | null;
|
|
784
852
|
declare namespace Form {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
853
|
+
var useForm: typeof antd_es_form_Form0.useForm;
|
|
854
|
+
var useFormInstance: typeof antd_es_form_hooks_useFormInstance0.default;
|
|
855
|
+
var useWatch: typeof _rc_component_form0.useWatch;
|
|
856
|
+
var Item: typeof FormItem;
|
|
857
|
+
var List: react.FC<antd_es_form0.FormListProps>;
|
|
858
|
+
var ErrorList: react.FC<antd_es_form0.ErrorListProps>;
|
|
859
|
+
var Provider: react.FC<antd_es_form_context0.FormProviderProps>;
|
|
860
|
+
}
|
|
861
|
+
//#endregion
|
|
862
|
+
//#region src/Link.d.ts
|
|
795
863
|
interface LinkProps {
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
864
|
+
href: string;
|
|
865
|
+
target?: '_blank';
|
|
866
|
+
text?: string | number;
|
|
867
|
+
children?: ReactNode;
|
|
868
|
+
style?: CSSProperties;
|
|
869
|
+
button?: ButtonProps | boolean;
|
|
870
|
+
block?: boolean;
|
|
871
|
+
/** only use for text without button */
|
|
872
|
+
copyable?: boolean;
|
|
873
|
+
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
806
874
|
}
|
|
807
875
|
/**
|
|
808
876
|
* Link component with button
|
|
@@ -816,18 +884,16 @@ interface LinkProps {
|
|
|
816
884
|
* <Link href="/" button={{ type:'primary' }}>Home</Link>
|
|
817
885
|
* ```
|
|
818
886
|
*/
|
|
819
|
-
declare function Link(props: LinkProps):
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
declare function PageNotFound(): react_jsx_runtime.JSX.Element;
|
|
887
|
+
declare function Link(props: LinkProps): react_jsx_runtime0.JSX.Element;
|
|
888
|
+
//#endregion
|
|
889
|
+
//#region src/Routers.d.ts
|
|
890
|
+
declare function PageNotFound(): react_jsx_runtime0.JSX.Element;
|
|
825
891
|
interface RoutesProps {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
892
|
+
routes: (RouteProps & {
|
|
893
|
+
page?: LazyExoticComponent<ComponentType<any>>;
|
|
894
|
+
})[];
|
|
895
|
+
fallback?: JSX.Element;
|
|
896
|
+
notFound?: JSX.Element;
|
|
831
897
|
}
|
|
832
898
|
/**
|
|
833
899
|
* Routes with lazy loading and 404 page.
|
|
@@ -849,19 +915,17 @@ interface RoutesProps {
|
|
|
849
915
|
* }
|
|
850
916
|
* ```
|
|
851
917
|
*/
|
|
852
|
-
declare function Routes(props: RoutesProps):
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
}
|
|
856
|
-
|
|
918
|
+
declare function Routes(props: RoutesProps): react_jsx_runtime0.JSX.Element;
|
|
919
|
+
//#endregion
|
|
920
|
+
//#region src/Tabs.d.ts
|
|
857
921
|
interface TabProps extends Partial<Tab> {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
922
|
+
id: string;
|
|
923
|
+
title?: React.ReactNode;
|
|
924
|
+
children: React.ReactNode;
|
|
861
925
|
}
|
|
862
926
|
interface TabsProps extends Omit<TabsProps$1, 'items'> {
|
|
863
|
-
|
|
864
|
-
|
|
927
|
+
/** auto skip null tab */
|
|
928
|
+
items: (TabProps | null | false)[];
|
|
865
929
|
}
|
|
866
930
|
/**
|
|
867
931
|
* Tabs component with Ant Design & FaasJS
|
|
@@ -888,25 +952,23 @@ interface TabsProps extends Omit<TabsProps$1, 'items'> {
|
|
|
888
952
|
* />
|
|
889
953
|
* ```
|
|
890
954
|
*/
|
|
891
|
-
declare function Tabs(props: TabsProps):
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}
|
|
895
|
-
|
|
955
|
+
declare function Tabs(props: TabsProps): react_jsx_runtime0.JSX.Element;
|
|
956
|
+
//#endregion
|
|
957
|
+
//#region src/Title.d.ts
|
|
896
958
|
interface TitleProps {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
959
|
+
title: string | string[];
|
|
960
|
+
/** ` - ` as default */
|
|
961
|
+
separator?: string;
|
|
962
|
+
suffix?: string;
|
|
963
|
+
/** return a h1 element */
|
|
964
|
+
h1?: boolean | {
|
|
965
|
+
className?: string;
|
|
966
|
+
style?: React.CSSProperties;
|
|
967
|
+
};
|
|
968
|
+
/** return a pure text element */
|
|
969
|
+
plain?: boolean;
|
|
970
|
+
/** return children */
|
|
971
|
+
children?: JSX.Element;
|
|
910
972
|
}
|
|
911
973
|
/**
|
|
912
974
|
* Title is used to change the title of the page
|
|
@@ -926,11 +988,9 @@ interface TitleProps {
|
|
|
926
988
|
* <Title title='hi'><CustomTitle /></Title> // => <CustomTitle />
|
|
927
989
|
* ```
|
|
928
990
|
*/
|
|
929
|
-
declare function Title(props: TitleProps): JSX.Element;
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
}
|
|
933
|
-
|
|
991
|
+
declare function Title(props: TitleProps): JSX.Element | null;
|
|
992
|
+
//#endregion
|
|
993
|
+
//#region src/useThemeToken.d.ts
|
|
934
994
|
/**
|
|
935
995
|
* Hook to retrieve the theme token from the Ant Design theme configuration.
|
|
936
996
|
*
|
|
@@ -940,5 +1000,5 @@ declare namespace Title {
|
|
|
940
1000
|
* @returns {GlobalToken} The theme token from the Ant Design theme configuration.
|
|
941
1001
|
*/
|
|
942
1002
|
declare function useThemeToken(): GlobalToken;
|
|
943
|
-
|
|
944
|
-
export { App,
|
|
1003
|
+
//#endregion
|
|
1004
|
+
export { App, AppProps, BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemContentProps, DescriptionItemProps, DescriptionProps, Drawer, DrawerProps, ErrorBoundary, type ErrorBoundaryProps, ExtendDescriptionItemProps, ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, ExtendTableItemProps, ExtendTableTypeProps, ExtendTypes, FaasDataInjection, FaasDataWrapper, FaasDataWrapperProps, type FaasDataWrapperRef, FaasItemProps, FaasItemType, FaasItemTypeValue, FaasReactClient, type FaasReactClientOptions, Form, FormItem, FormItemProps, FormProps, FormSubmitProps, Link, LinkProps, Loading, LoadingProps, Modal, ModalProps, PageNotFound, ResolvedTheme, Routes, RoutesProps, TabProps, Table, TableFaasDataParams, TableFaasDataResponse, TableItemProps, TableProps, Tabs, TabsProps, Title, TitleProps, UnionFaasItemElement, UnionFaasItemInjection, UnionFaasItemProps, UnionFaasItemRender, UnionScene, cloneUnionFaasItemElement, faas, idToTitle, lazy, setDrawerProps, setModalProps, transferOptions, transferValue, useApp, useAppProps, useConfigContext, useDrawer, useFaas, useModal, useThemeToken, withFaasData };
|