@cloudtower/eagle 0.29.1 → 0.29.2

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.
@@ -0,0 +1,23 @@
1
+ import Button from "../../../src/core/Button";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ import React from "react";
4
+ declare const Demo: (props: {
5
+ name?: string;
6
+ }) => React.JSX.Element;
7
+ /**
8
+ *
9
+ * KitStoreProvider 提供 modal store 环境,并且相互隔离。
10
+ *
11
+ * ModalStack 需要放置于 KitStoreProvider 的子层级中。
12
+ *
13
+ * ModalStack 会向上查找 KitStoreContext, 如果未查找到,会使用 eagle 提供的默认 store。
14
+ *
15
+ * usePushModal,usePopModal,useCloseModal 与 ModalStack 同理。
16
+ */
17
+ declare const meta: Meta<typeof Demo>;
18
+ export default meta;
19
+ type Story = StoryObj<typeof Button>;
20
+ export declare const WithKitStoreProviderPrimary: Story;
21
+ export declare const WithKitStoreProviderSecondary: Story;
22
+ export declare const WithoutKitStoreProviderPrimary: Story;
23
+ export declare const WithoutKitStoreProviderSecondary: Story;
@@ -1,16 +1,47 @@
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>>;
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;