@topthink/components 1.0.53 → 1.0.55
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/es/form-01bf45e9.js +233 -0
- package/es/form-01bf45e9.js.map +1 -0
- package/es/form-0a372a24.js +2 -0
- package/es/form-0a372a24.js.map +1 -0
- package/es/form-1791ea39.js +236 -0
- package/es/form-1791ea39.js.map +1 -0
- package/es/form-95db7eac.js +2 -0
- package/es/form-95db7eac.js.map +1 -0
- package/es/index-1930b692.js +67 -0
- package/es/index-1930b692.js.map +1 -0
- package/es/index-1d379f3a.js +562 -0
- package/es/index-1d379f3a.js.map +1 -0
- package/es/index-5142110c.js +67 -0
- package/es/index-5142110c.js.map +1 -0
- package/es/index-a48179db.js +1382 -0
- package/es/index-a48179db.js.map +1 -0
- package/es/index-b34ecf90.js +40 -0
- package/es/index-b34ecf90.js.map +1 -0
- package/es/index-e17dc6f0.js +40 -0
- package/es/index-e17dc6f0.js.map +1 -0
- package/es/index.js +1 -136
- package/es/index.js.map +1 -1
- package/es/steps-afba29a7.js +34 -0
- package/es/steps-afba29a7.js.map +1 -0
- package/es/steps-c27a3885.js +34 -0
- package/es/steps-c27a3885.js.map +1 -0
- package/package.json +2 -2
- package/types/components/form.d.ts +4 -19
- package/types/components/lazy/form.d.ts +19 -0
- package/types/components/lazy/steps.d.ts +9 -0
- package/types/components/steps.d.ts +6 -4
- package/types/components/table.d.ts +6 -0
- package/types/index.d.ts +2 -2
- /package/types/components/{table → lazy/table}/context.d.ts +0 -0
- /package/types/components/{table → lazy/table}/index.d.ts +0 -0
- /package/types/components/{table → lazy/table}/search.d.ts +0 -0
- /package/types/components/{table → lazy/table}/use-selection.d.ts +0 -0
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
onSuccess?: (data: any) => void;
|
|
6
|
-
method?: Method;
|
|
7
|
-
children?: ReactNode | ((props: {
|
|
8
|
-
submit: ReactNode;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
}) => ReactNode);
|
|
11
|
-
submitText?: string;
|
|
12
|
-
onSubmitting?: (submitting: boolean) => void;
|
|
13
|
-
transformData?: (data: T) => T;
|
|
14
|
-
}
|
|
15
|
-
export interface FormType extends JsonFormType {
|
|
16
|
-
}
|
|
17
|
-
type Form<T = any> = ForwardRefExoticComponent<PropsWithoutRef<FormProps<T>> & RefAttributes<FormType>>;
|
|
18
|
-
declare const Form: Form;
|
|
19
|
-
export default Form;
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
declare const LazyForm: import("react").LazyExoticComponent<import("./lazy/form").default<any>>;
|
|
3
|
+
export default function Form(props: ComponentProps<typeof LazyForm>): JSX.Element;
|
|
4
|
+
export type { FormProps, FormType } from './lazy/form';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JsonFormProps, JsonFormType } from '@topthink/json-form';
|
|
2
|
+
import { ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from 'react';
|
|
3
|
+
import { Method } from 'axios';
|
|
4
|
+
export interface FormProps<T = any> extends JsonFormProps<T> {
|
|
5
|
+
onSuccess?: (data: any) => void;
|
|
6
|
+
method?: Method;
|
|
7
|
+
children?: ReactNode | ((props: {
|
|
8
|
+
submit: ReactNode;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
}) => ReactNode);
|
|
11
|
+
submitText?: string;
|
|
12
|
+
onSubmitting?: (submitting: boolean) => void;
|
|
13
|
+
transformData?: (data: T) => T;
|
|
14
|
+
}
|
|
15
|
+
export interface FormType extends JsonFormType {
|
|
16
|
+
}
|
|
17
|
+
type Form<T = any> = ForwardRefExoticComponent<PropsWithoutRef<FormProps<T>> & RefAttributes<FormType>>;
|
|
18
|
+
declare const Form: Form;
|
|
19
|
+
export default Form;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import RcSteps, { Step } from 'rc-steps';
|
|
2
|
+
import 'rc-steps/assets/index.css';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
declare function Steps(props: ComponentProps<typeof RcSteps>): JSX.Element;
|
|
5
|
+
declare namespace Steps {
|
|
6
|
+
var Step: typeof import("rc-steps").Step;
|
|
7
|
+
}
|
|
8
|
+
export default Steps;
|
|
9
|
+
export { Step };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import RcSteps from 'rc-steps';
|
|
2
|
-
import 'rc-steps/assets/index.css';
|
|
3
1
|
import { ComponentProps } from 'react';
|
|
4
|
-
declare
|
|
2
|
+
declare const LazySteps: import("react").LazyExoticComponent<typeof import("./lazy/steps").default>;
|
|
3
|
+
declare const LazyStep: import("react").LazyExoticComponent<typeof import("rc-steps/lib/Step").default>;
|
|
4
|
+
declare function Steps(props: ComponentProps<typeof LazySteps>): JSX.Element;
|
|
5
5
|
declare namespace Steps {
|
|
6
|
-
var Step:
|
|
6
|
+
var Step: (props: import("rc-steps/lib/Step").StepProps & import("react").RefAttributes<import("rc-steps/lib/Step").default>) => JSX.Element;
|
|
7
7
|
}
|
|
8
8
|
export default Steps;
|
|
9
|
+
declare const Step: (props: ComponentProps<typeof LazyStep>) => JSX.Element;
|
|
10
|
+
export { Step };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
declare const LazyTable: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("./lazy/table").TableProps<any> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<import("./lazy/table").TableType>>>;
|
|
5
|
+
export default function Table(props: ComponentProps<typeof LazyTable>): JSX.Element;
|
|
6
|
+
export type { TableProps, Columns, TableType } from './lazy/table';
|
package/types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { default as Loader } from './components/loader';
|
|
|
7
7
|
export { default as Card } from './components/card';
|
|
8
8
|
export { default as Error } from './components/error';
|
|
9
9
|
export { default as Space } from './components/space';
|
|
10
|
-
export { default as Steps } from './components/steps';
|
|
10
|
+
export { default as Steps, Step } from './components/steps';
|
|
11
11
|
export { default as Statistic } from './components/statistic';
|
|
12
12
|
export { default as Pagination } from './components/pagination';
|
|
13
13
|
export { default as NumberFormat } from './components/number-format';
|
|
@@ -28,6 +28,6 @@ export { default as useDebounce } from './hooks/use-debounce';
|
|
|
28
28
|
export { default as useSafeState } from './hooks/use-safe-state';
|
|
29
29
|
export { default as Unauthorized } from './errors/unauthorized';
|
|
30
30
|
export { default as request, RequestConfig, RequestInstance, isRequestError, showRequestError } from './request';
|
|
31
|
-
export { UiSchema as FormUiSchema, Schema as FormSchema, WidgetProps as FormWidgetProps, Widget as FormWidget, IChangeEvent as FormChangeEvent, ISubmitEvent as FormSubmitEvent } from '@topthink/json-form';
|
|
31
|
+
export type { UiSchema as FormUiSchema, Schema as FormSchema, WidgetProps as FormWidgetProps, Widget as FormWidget, IChangeEvent as FormChangeEvent, ISubmitEvent as FormSubmitEvent } from '@topthink/json-form';
|
|
32
32
|
export { default as styled, css, keyframes, createGlobalStyle, StyleSheetManager, ThemeProvider } from 'styled-components';
|
|
33
33
|
export { useAsync, useAsyncCallback } from 'react-async-hook';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|