@faasjs/ant-design 0.0.3-beta.79 → 0.0.3-beta.80
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/dist/index.d.ts +15 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
|
|
2
2
|
export { faas, useFaas } from '@faasjs/react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-provider';
|
|
4
5
|
import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
|
|
5
6
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
@@ -40,7 +41,7 @@ type setModalProps = (changes: Partial<ModalProps>) => void;
|
|
|
40
41
|
* ```
|
|
41
42
|
*/
|
|
42
43
|
declare function useModal(init?: ModalProps): {
|
|
43
|
-
modal: JSX.Element;
|
|
44
|
+
modal: react_jsx_runtime.JSX.Element;
|
|
44
45
|
modalProps: ModalProps;
|
|
45
46
|
setModalProps(changes: Partial<ModalProps>): void;
|
|
46
47
|
};
|
|
@@ -68,7 +69,7 @@ type setDrawerProps = (changes: Partial<DrawerProps>) => void;
|
|
|
68
69
|
* ```
|
|
69
70
|
*/
|
|
70
71
|
declare function useDrawer(init?: DrawerProps): {
|
|
71
|
-
drawer: JSX.Element;
|
|
72
|
+
drawer: react_jsx_runtime.JSX.Element;
|
|
72
73
|
drawerProps: DrawerProps;
|
|
73
74
|
setDrawerProps(changes: Partial<DrawerProps>): void;
|
|
74
75
|
};
|
|
@@ -85,7 +86,7 @@ interface useAppProps {
|
|
|
85
86
|
setModalProps: (changes: Partial<ModalProps>) => void;
|
|
86
87
|
setDrawerProps: (changes: Partial<DrawerProps>) => void;
|
|
87
88
|
}
|
|
88
|
-
declare function App(props: AppProps): JSX.Element;
|
|
89
|
+
declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
|
|
89
90
|
declare namespace App {
|
|
90
91
|
var useApp: typeof useApp;
|
|
91
92
|
}
|
|
@@ -160,7 +161,7 @@ declare const ConfigContext: react.Context<ConfigProviderProps>;
|
|
|
160
161
|
declare function ConfigProvider({ config, children }: {
|
|
161
162
|
config: ConfigProviderProps;
|
|
162
163
|
children: React.ReactNode;
|
|
163
|
-
}): JSX.Element;
|
|
164
|
+
}): react_jsx_runtime.JSX.Element;
|
|
164
165
|
declare function useConfigContext(): ConfigProviderProps;
|
|
165
166
|
|
|
166
167
|
type ExtendFormTypeProps<T = any> = {
|
|
@@ -202,7 +203,7 @@ interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>,
|
|
|
202
203
|
* </>
|
|
203
204
|
* ```
|
|
204
205
|
*/
|
|
205
|
-
declare function FormItem<T = any>(props: FormItemProps<T>): JSX.Element;
|
|
206
|
+
declare function FormItem<T = any>(props: FormItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
206
207
|
declare namespace FormItem {
|
|
207
208
|
var useStatus: () => {
|
|
208
209
|
status?: "" | "error" | "success" | "warning" | "validating";
|
|
@@ -226,7 +227,7 @@ type LoadingProps = {
|
|
|
226
227
|
* </Loading>
|
|
227
228
|
* ```
|
|
228
229
|
*/
|
|
229
|
-
declare function Loading(props: LoadingProps): JSX.Element;
|
|
230
|
+
declare function Loading(props: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
230
231
|
|
|
231
232
|
type FaasDataInjection<T = any> = Partial<FaasDataInjection$1<T>>;
|
|
232
233
|
interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
|
|
@@ -283,7 +284,7 @@ interface DescriptionItemContentProps<T = any> {
|
|
|
283
284
|
/**
|
|
284
285
|
* Description component.
|
|
285
286
|
*/
|
|
286
|
-
declare function Description<T = any>(props: DescriptionProps<T>): JSX.Element;
|
|
287
|
+
declare function Description<T = any>(props: DescriptionProps<T>): react_jsx_runtime.JSX.Element;
|
|
287
288
|
|
|
288
289
|
interface TableItemProps<T = any> extends FaasItemProps, Omit<TableColumnProps<T>, 'title' | 'children' | 'render'> {
|
|
289
290
|
optionsType?: 'auto';
|
|
@@ -316,7 +317,7 @@ type TableProps<T = any, ExtendTypes = any> = {
|
|
|
316
317
|
*
|
|
317
318
|
* @ref https://ant.design/components/table/
|
|
318
319
|
*/
|
|
319
|
-
declare function Table<T extends Record<string, any>, ExtendTypes = any>(props: TableProps<T, ExtendTypes>): JSX.Element;
|
|
320
|
+
declare function Table<T extends Record<string, any>, ExtendTypes = any>(props: TableProps<T, ExtendTypes>): react_jsx_runtime.JSX.Element;
|
|
320
321
|
|
|
321
322
|
type FaasItemType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'date' | 'time' | 'object' | 'object[]';
|
|
322
323
|
/** FaasItemType's value type */
|
|
@@ -384,7 +385,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, {
|
|
|
384
385
|
}> {
|
|
385
386
|
constructor(props: ErrorBoundaryProps);
|
|
386
387
|
componentDidCatch(error: Error | null, info: any): void;
|
|
387
|
-
render(): string | number | boolean |
|
|
388
|
+
render(): string | number | boolean | react.ReactFragment | react_jsx_runtime.JSX.Element;
|
|
388
389
|
}
|
|
389
390
|
|
|
390
391
|
type FormSubmitProps = {
|
|
@@ -440,7 +441,7 @@ interface FormProps<Values extends Record<string, any> = any, ExtendItemProps =
|
|
|
440
441
|
*
|
|
441
442
|
* @ref https://ant.design/components/form/
|
|
442
443
|
*/
|
|
443
|
-
declare function Form<Values = any>(props: FormProps<Values>): JSX.Element;
|
|
444
|
+
declare function Form<Values = any>(props: FormProps<Values>): react_jsx_runtime.JSX.Element;
|
|
444
445
|
declare namespace Form {
|
|
445
446
|
var useForm: typeof antd_es_form_Form.useForm;
|
|
446
447
|
var useFormInstance: typeof antd_es_form_hooks_useFormInstance.default;
|
|
@@ -471,9 +472,9 @@ interface LinkProps {
|
|
|
471
472
|
* <Link href="/" button={{ type:'primary' }}>Home</Link>
|
|
472
473
|
* ```
|
|
473
474
|
*/
|
|
474
|
-
declare function Link(props: LinkProps): JSX.Element;
|
|
475
|
+
declare function Link(props: LinkProps): react_jsx_runtime.JSX.Element;
|
|
475
476
|
|
|
476
|
-
declare function PageNotFound(): JSX.Element;
|
|
477
|
+
declare function PageNotFound(): react_jsx_runtime.JSX.Element;
|
|
477
478
|
interface RoutesProps {
|
|
478
479
|
routes: (RouteProps & {
|
|
479
480
|
page?: LazyExoticComponent<ComponentType<any>>;
|
|
@@ -500,7 +501,7 @@ interface RoutesProps {
|
|
|
500
501
|
* }
|
|
501
502
|
* ```
|
|
502
503
|
*/
|
|
503
|
-
declare function Routes(props: RoutesProps): JSX.Element;
|
|
504
|
+
declare function Routes(props: RoutesProps): react_jsx_runtime.JSX.Element;
|
|
504
505
|
|
|
505
506
|
interface TabProps extends Partial<Tab> {
|
|
506
507
|
id: string;
|
|
@@ -516,7 +517,7 @@ interface TabsProps extends Omit<TabsProps$1, 'items'> {
|
|
|
516
517
|
*
|
|
517
518
|
* @ref https://ant.design/components/tabs/
|
|
518
519
|
*/
|
|
519
|
-
declare function Tabs(props: TabsProps): JSX.Element;
|
|
520
|
+
declare function Tabs(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
520
521
|
|
|
521
522
|
interface TitleProps {
|
|
522
523
|
title: string | string[];
|