xmirror-components 1.0.10 → 1.0.12
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/build/dist/index.cjs +9 -9
- package/build/dist/index.mjs +242 -233
- package/build/lib/components/AntdApp/index.d.ts +3 -4
- package/build/lib/index.d.ts +2 -4
- package/build/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppProps } from 'antd';
|
|
2
3
|
import { type MessageInstance } from 'antd/es/message/interface';
|
|
3
4
|
import { type NotificationInstance } from 'antd/es/notification/interface';
|
|
4
5
|
import { type ModalStaticFunctions } from 'antd/es/modal/confirm';
|
|
5
6
|
declare let message: MessageInstance;
|
|
6
7
|
declare let notification: NotificationInstance;
|
|
7
8
|
declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
8
|
-
declare function Index({ children }:
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}): ReactNode;
|
|
9
|
+
declare function Index({ children, ...props }: AppProps): React.JSX.Element;
|
|
11
10
|
export { message, notification, modal };
|
|
12
11
|
export default Index;
|
package/build/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppProps } from 'antd';
|
|
1
2
|
import { Checkbox } from 'antd';
|
|
2
3
|
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
3
4
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
@@ -6,14 +7,11 @@ import { NotificationInstance } from 'antd/es/notification/interface';
|
|
|
6
7
|
import type { Options as Options_2 } from 'ahooks/lib/useRequest/src/types';
|
|
7
8
|
import type { Plugin as Plugin_2 } from 'ahooks/lib/useRequest/src/types';
|
|
8
9
|
import { default as React_2 } from 'react';
|
|
9
|
-
import { ReactNode } from 'react';
|
|
10
10
|
import type { Result } from 'ahooks/lib/useRequest/src/types';
|
|
11
11
|
import type { Service } from 'ahooks/lib/useRequest/src/types';
|
|
12
12
|
import { SwitchProps } from 'antd/es/switch';
|
|
13
13
|
|
|
14
|
-
export declare function App({ children }:
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
}): ReactNode;
|
|
14
|
+
export declare function App({ children, ...props }: AppProps): React_2.JSX.Element;
|
|
17
15
|
|
|
18
16
|
export declare const CheckboxValue: <T = any, F = any>({ checked, onChange, trueValue, falseValue, trueLabel, falseLabel, children, ...props }: CheckboxValueProps<T, F>) => React_2.JSX.Element;
|
|
19
17
|
|
package/build/package.json
CHANGED