@cloudtower/eagle 0.29.2 → 0.29.4-dry
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/cjs/core/KitStoreProvider/index.js +1 -42
- package/dist/cjs/core/ModalStack/index.js +2 -2
- package/dist/cjs/core/SimplePagination/index.js +3 -0
- package/dist/cjs/core/Table/index.js +5 -21
- package/dist/cjs/index.js +0 -3
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +1318 -1318
- package/dist/esm/core/KitStoreProvider/index.js +4 -42
- package/dist/esm/core/ModalStack/index.js +2 -2
- package/dist/esm/core/SimplePagination/index.js +3 -0
- package/dist/esm/core/Table/index.js +5 -21
- package/dist/esm/index.js +1 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/KitStoreProvider/index.d.ts +1 -4
- package/dist/src/core/SimplePagination/index.d.ts +1 -1
- package/dist/src/store/index.d.ts +0 -12
- package/dist/stories/docs/core/Table.stories.d.ts +16 -47
- package/dist/style.css +1232 -1232
- package/package.json +4 -4
- package/dist/stories/docs/core/KitStoreProvider.stories.d.ts +0 -23
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Actions,
|
|
1
|
+
import { Actions, KitRootState } from "../../store";
|
|
2
2
|
import React, { PropsWithChildren } from "react";
|
|
3
3
|
interface IProps {
|
|
4
4
|
}
|
|
@@ -6,6 +6,3 @@ declare const KitStoreProvider: (props: PropsWithChildren<IProps>) => React.JSX.
|
|
|
6
6
|
export default KitStoreProvider;
|
|
7
7
|
export declare const useKitDispatch: () => import("redux").Dispatch<Actions>;
|
|
8
8
|
export declare const useKitSelector: <Selected extends unknown>(selector: (state: KitRootState) => Selected, equalityFn?: ((previous: Selected, next: Selected) => boolean) | undefined) => Selected;
|
|
9
|
-
export declare const usePushModal: () => <K extends string | number>(modal: ModalType<IModalProps[K]>) => void;
|
|
10
|
-
export declare const useCloseModal: () => (id: number) => void;
|
|
11
|
-
export declare const usePopModal: () => () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ISimplePaginationProps } from "./simplePagination.type";
|
|
3
|
-
declare const SimplePagination: (props: ISimplePaginationProps) => React.JSX.Element;
|
|
3
|
+
declare const SimplePagination: (props: ISimplePaginationProps) => React.JSX.Element | null;
|
|
4
4
|
export default SimplePagination;
|
|
5
5
|
export * from "./simplePagination.type";
|
|
@@ -17,20 +17,8 @@ export declare const UIKitStore: import("redux").Store<import("redux").EmptyObje
|
|
|
17
17
|
chart: ChartState;
|
|
18
18
|
modal: ModalState;
|
|
19
19
|
}, Actions>;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
20
|
export declare function pushModal<K extends keyof IModalProps>(modal: ModalType<IModalProps[K]>): void;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
21
|
export declare function popModal(): void;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @deprecated
|
|
33
|
-
*/
|
|
34
22
|
export declare function closeModal(id: number): void;
|
|
35
23
|
export type GetModalProps<K extends keyof IModalProps> = IModalProps[K] & CloseCb;
|
|
36
24
|
export * from "./chart";
|
|
@@ -1,47 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const ShowData: Story;
|
|
18
|
-
/**
|
|
19
|
-
* 在 loading error dataSource 存在值的情况下
|
|
20
|
-
*
|
|
21
|
-
* 显示 loading
|
|
22
|
-
*/
|
|
23
|
-
export declare const ShowLoadingWithDataAndError: Story;
|
|
24
|
-
/**
|
|
25
|
-
* 在 error dataSource 存在值的情况下
|
|
26
|
-
*
|
|
27
|
-
* 显示 error
|
|
28
|
-
*/
|
|
29
|
-
export declare const ShowError: Story;
|
|
30
|
-
/**
|
|
31
|
-
* 在 loading dataSource 存在值的情况下
|
|
32
|
-
*
|
|
33
|
-
* 显示 loading
|
|
34
|
-
*/
|
|
35
|
-
export declare const ShowLoadingWithData: Story;
|
|
36
|
-
/**
|
|
37
|
-
* 在 error loading dataSource 不存在值的情况下
|
|
38
|
-
*
|
|
39
|
-
* 显示空表格
|
|
40
|
-
*/
|
|
41
|
-
export declare const ShowEmpty: Story;
|
|
42
|
-
/**
|
|
43
|
-
* 仅存在 loading 的情况
|
|
44
|
-
*
|
|
45
|
-
* 显示 Loading
|
|
46
|
-
*/
|
|
47
|
-
export declare const ShowLoadingWithEmpty: Story;
|
|
1
|
+
import Table from "../../../src/core/Table";
|
|
2
|
+
import { ComponentStory } from "@storybook/react";
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core/Table").TableProps<{
|
|
4
|
+
id: string;
|
|
5
|
+
}>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
interface DataType {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
age: number;
|
|
11
|
+
address: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core/Table").TableProps<DataType>>;
|
|
14
|
+
export declare const SortSimpleTitle: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core/Table").TableProps<DataType>>;
|
|
15
|
+
export declare const SortCustomTitle: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core/Table").TableProps<DataType>>;
|
|
16
|
+
export declare const OnRowPropCustom: ComponentStory<typeof Table<DataType>>;
|