@topthink/components 1.0.55 → 1.0.57
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-74ef0417.js +2 -0
- package/es/form-74ef0417.js.map +1 -0
- package/es/form-8925a750.js +231 -0
- package/es/form-8925a750.js.map +1 -0
- package/es/form-9c0e638a.js +231 -0
- package/es/form-9c0e638a.js.map +1 -0
- package/es/index-303e1845.js +560 -0
- package/es/index-303e1845.js.map +1 -0
- package/es/index-4f51cece.js +1352 -0
- package/es/index-4f51cece.js.map +1 -0
- package/es/index-6ae8237d.js +67 -0
- package/es/index-6ae8237d.js.map +1 -0
- package/es/index-7a7c06a9.js +40 -0
- package/es/index-7a7c06a9.js.map +1 -0
- package/es/index-9869b1c6.js +1350 -0
- package/es/index-9869b1c6.js.map +1 -0
- package/es/index-d964165a.js +560 -0
- package/es/index-d964165a.js.map +1 -0
- package/es/index.js +1 -1
- package/package.json +2 -2
- package/types/components/form.d.ts +3 -3
- package/types/components/lazy/form.d.ts +2 -2
- package/types/components/lazy/table/index.d.ts +1 -1
- package/types/components/table.d.ts +3 -5
- package/types/index.d.ts +1 -1
- package/types/utils/is-record.d.ts +1 -0
- package/types/errors/unauthorized.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
1
|
+
import type { CustomFormType } from './lazy/form';
|
|
2
|
+
declare const Form: CustomFormType;
|
|
3
|
+
export default Form;
|
|
4
4
|
export type { FormProps, FormType } from './lazy/form';
|
|
@@ -14,6 +14,6 @@ export interface FormProps<T = any> extends JsonFormProps<T> {
|
|
|
14
14
|
}
|
|
15
15
|
export interface FormType extends JsonFormType {
|
|
16
16
|
}
|
|
17
|
-
type
|
|
18
|
-
declare const Form:
|
|
17
|
+
export type CustomFormType<T = any> = ForwardRefExoticComponent<PropsWithoutRef<FormProps<T>> & RefAttributes<FormType>>;
|
|
18
|
+
declare const Form: CustomFormType;
|
|
19
19
|
export default Form;
|
|
@@ -40,6 +40,6 @@ type Params = {
|
|
|
40
40
|
q?: string;
|
|
41
41
|
[key: string]: any;
|
|
42
42
|
};
|
|
43
|
-
type CustomTableType<T = any> = ForwardRefExoticComponent<PropsWithoutRef<PropsWithChildren<TableProps<T>>> & RefAttributes<TableType>>;
|
|
43
|
+
export type CustomTableType<T = any> = ForwardRefExoticComponent<PropsWithoutRef<PropsWithChildren<TableProps<T>>> & RefAttributes<TableType>>;
|
|
44
44
|
declare const _default: CustomTableType<any>;
|
|
45
45
|
export default _default;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
} & import("react").RefAttributes<import("./lazy/table").TableType>>>;
|
|
5
|
-
export default function Table(props: ComponentProps<typeof LazyTable>): JSX.Element;
|
|
1
|
+
import type { CustomTableType } from './lazy/table';
|
|
2
|
+
declare const Table: CustomTableType;
|
|
3
|
+
export default Table;
|
|
6
4
|
export type { TableProps, Columns, TableType } from './lazy/table';
|
package/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as Message } from './utils/message';
|
|
|
2
2
|
export { default as waitPayComplete } from './utils/wait-pay-complete';
|
|
3
3
|
export { default as Toast } from './utils/toast';
|
|
4
4
|
export { PaginationType } from './utils/types';
|
|
5
|
+
export { default as isRecord } from './utils/is-record';
|
|
5
6
|
export { default as Result } from './components/result';
|
|
6
7
|
export { default as Loader } from './components/loader';
|
|
7
8
|
export { default as Card } from './components/card';
|
|
@@ -26,7 +27,6 @@ export { default as useOverlayState } from './hooks/use-overlay-state';
|
|
|
26
27
|
export { default as useControllableState } from './hooks/use-controllable-state';
|
|
27
28
|
export { default as useDebounce } from './hooks/use-debounce';
|
|
28
29
|
export { default as useSafeState } from './hooks/use-safe-state';
|
|
29
|
-
export { default as Unauthorized } from './errors/unauthorized';
|
|
30
30
|
export { default as request, RequestConfig, RequestInstance, isRequestError, showRequestError } from './request';
|
|
31
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isRecord(data: any): data is Record<string, string>;
|