@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.
@@ -1,4 +1,4 @@
1
- import { Actions, IModalProps, KitRootState, ModalType } from "../../store";
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 { Table } from "../../../src/core";
2
- import { StoryObj } from "@storybook/react";
3
- import React from "react";
4
- declare const meta: {
5
- component: <T extends {
6
- id: string;
7
- }>(props: import("../../../src/core").TableProps<T>) => React.JSX.Element;
8
- title: "Core/Table | 表格组件";
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof Table>;
12
- /**
13
- * loading error 不存在的情况下
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>>;